(_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
[bpt/emacs.git] / src / ChangeLog
1 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2
3 * emacs.c (main)
4 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
5 Call malloc_enable_thread on interactive startup.
6
7 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
8 [USE_PTHREAD] (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS)
9 (UNLOCK_ALIGNED_BLOCKS): Conditionalize with it.
10 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
11 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
12 New functions.
13
14 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
15
16 * xdisp.c (redisplay_window): When restoring original buffer
17 position, make sure it is still valid.
18
19 * image.c (png_load): Ignore png-supplied background color.
20
21 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22
23 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
24 Use kCFAbsoluteTimeIntervalSince1970.
25
26 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
27 New variable.
28 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
29 event loop should be quit.
30 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
31 Quit dialog event loop if quit_dialog_event_loop is set.
32
33 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
34 (Selection): New typedef. Use instead of ScrapRef.
35 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
36 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
37 (mac_clear_selection): Rename from clear_scrap.
38 (get_flavor_type_from_symbol): New argument SEL and subsume function of
39 scrap_has_target_type. All uses changed.
40 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
41 (mac_selection_has_target_p): New functions.
42 (mac_put_selection_value): Rename from put_scrap_string.
43 (mac_get_selection_value): Rename from get_scrap_string.
44 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
45 (put_scrap_private_timestamp, scrap_has_target_type)
46 (get_scrap_private_timestamp): Remove functions.
47 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
48 (x_own_selection, x_get_local_selection):
49 Use mac_valid_selection_value_p.
50 (x_own_selection): Don't use put_scrap_private_timestamp.
51 Record OWNERSHIP-INFO into Vselection_alist instead.
52 (x_get_local_selection): Don't check type if request is local.
53 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
54 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
55
56 2007-08-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
57
58 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
59 add comment explaining why.
60
61 2007-08-03 Richard Stallman <rms@gnu.org>
62
63 * fileio.c (Fvisited_file_modtime): Use make_time.
64
65 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
66
67 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
68 build.
69
70 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
71
72 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
73
74 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
75
76 * puresize.h (BASE_PURESIZE): Increase to 1130000.
77
78 2007-07-30 Richard Stallman <rms@gnu.org>
79
80 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
81
82 2007-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
83
84 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
85
86 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
87
88 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
89 remote default-directory.
90
91 * buffer.c (mode-line-format): Update doc string.
92
93 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
94
95 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
96 scroll bar gap.
97 (x_scroll_bar_create): Set bar->fringe_extended_p.
98 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
99 on frame edge. Check fringe background extension. Don't clear
100 extended fringe background area.
101
102 * w32term.h (struct scroll_bar): New member fringe_extended_p.
103 (w32_fill_area): Enclose multiple statements with do ... while (0).
104
105 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
106 Extend fringe background to scroll bar gap.
107 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
108 Set bar->fringe_extended_p.
109 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
110 Put leftmost/rightmost scroll bars on frame edge. Check fringe
111 background extension. Don't clear extended fringe background area.
112
113 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
114 New member fringe_extended_p.
115
116 2007-07-25 Glenn Morris <rgm@gnu.org>
117
118 * Relicense all FSF files to GPLv3 or later.
119
120 * COPYING: Switch to GPLv3.
121
122 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
123
124 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
125
126 * data.c (Finteractive_form): Check for the presence of an
127 `interactive-form' symbol property more thoroughly.
128
129 * data.c (Finteractive_form): Use an `interactive-form' property if
130 present, analogous to the function-documentation property.
131
132 2007-07-24 Jason Rumney <jasonr@gnu.org>
133
134 * w32fns.c (x_real_positions): Get real position from OS instead of
135 calculating it.
136
137 2007-07-23 Jason Rumney <jasonr@gnu.org>
138
139 * filelock.c (current_lock_owner): Allow for @ sign in username.
140
141 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
142
143 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
144 remote default-directory.
145
146 * buffer.c (mode-line-format): Describe above case in doc string.
147
148 2007-07-20 Eli Zaretskii <eliz@gnu.org>
149
150 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
151 Define if not defined.
152
153 2007-07-18 Jason Rumney <jasonr@gnu.org>
154
155 * w32proc.c (w32_executable_type): Handle 64 bit executables.
156
157 2007-07-18 Richard Stallman <rms@gnu.org>
158
159 * data.c (Fsetq_default): Doc fix.
160
161 * eval.c (Fsetq): Doc fix.
162
163 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
164
165 * coding.c (Ffind_operation_coding_system):
166 * eval.c (For, Fand): Doc fixes.
167 Reported by Johan Bockg\e,Ae\e(Brd.
168
169 2007-07-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
170
171 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
172
173 * xterm.h: Declare x_ewmh_activate_frame.
174
175 * xterm.c (x_ewmh_activate_frame): New function.
176 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
177
178 2007-07-17 Martin Rudalics <rudalics@gmx.at>
179
180 * window.c (Fdisplay_buffer): If largest or LRU window is the
181 only window, split it even if it is not eligible for splitting.
182 This restores the original behavior broken by the 2007-07-15
183 change.
184
185 2007-07-17 Glenn Morris <rgm@gnu.org>
186
187 * abbrev.c (abbrev_check_chars): New function.
188 (Fdefine_global_abbrev, Fdefine_mode_abbrev): Call
189 abbrev_check_chars to check abbrev characters are word
190 constituents. Doc fix.
191
192 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
193
194 * process.c (Fstart_process, Fmake_network_process)
195 (read_process_output): Fix up last changes.
196
197 2007-07-16 Eli Zaretskii <eliz@gnu.org>
198
199 * makefile.w32-in (clean): Don't delete *~.
200
201 2007-07-16 Andreas Schwab <schwab@suse.de>
202
203 * window.c (Fdisplay_buffer): Use NILP.
204 (Fset_window_scroll_bars): Likewise.
205
206 2007-07-15 Martin Rudalics <rudalics@gmx.at>
207
208 * window.c (window_min_size_2): New function.
209 (window_min_size_1, size_window, Fdisplay_buffer)
210 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
211 windows without mode- or header-lines when window-min-height is
212 too small.
213 (size_window): Reset nodelete_p after testing it, following an
214 earlier note by Kim F. Storm.
215 (display_buffer): Do not set split_height_threshold to twice the
216 value of window_min_height to avoid changing the value of a
217 customizable variable. Rather explicitly check whether the
218 height of the window that shall be splitted is at least as large
219 as split_height_threshold.
220
221 2007-07-14 Jason Rumney <jasonr@gnu.org>
222
223 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
224
225 2007-07-14 Richard Stallman <rms@gnu.org>
226
227 * eval.c (maybe_call_debugger): New function.
228 (find_handler_clause): Use maybe_call_debugger.
229 Call it when the handler says `debug'.
230 Eliminate DEBUGGER_VALUE_PTR.
231 (Fsignal): Eliminate debugger_value.
232 (Qdebug): New variable.
233 (syms_of_eval): Initialize it.
234
235 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
236
237 * eval.c (Fprogn):
238 * keyboard.c (Ftrack_mouse):
239 * print.c (Fwith_output_to_temp_buffer):
240 * window.c (Fsave_window_excursion): Doc fix.
241
242 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
243
244 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
245
246 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
247
248 * process.h (struct Lisp_Process): Turn slots infd, outfd,
249 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
250 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
251 read_output_delay, and read_output_skip from Lisp_Objects to ints.
252 Remove unused encoding_carryover.
253 * process.c: Adjust all functions accordingly.
254
255 2007-07-12 Richard Stallman <rms@gnu.org>
256
257 * term.c: Include unistd.h only if HAVE_UNISTD_H.
258
259 2007-07-11 Jason Rumney <jasonr@gnu.org>
260
261 * makefile.w32-in (LIBS): Include OLE32.
262
263 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
264 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
265
266 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
267
268 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
269 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
270 from a Lisp_Object into a bare pointer.
271 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
272 Adjust the code correspondingly.
273
274 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
275
276 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
277 (term_show_mouse_face): Remove unused var `j'.
278 (handle_one_term_event): Remove unused vars `i' and `j'.
279 Don't cast return value of ttyname since it's not necessary.
280
281 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
282
283 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
284 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
285
286 * fns.c (map_char_table): Use an array of int for `indices' rather than
287 an array of Lisp_Objects (which are only ever integers anyway).
288 (Fmap_char_table): Update caller.
289 * lisp.h: Update prototype.
290 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
291 * fontset.c (Ffontset_info):
292 * casetab.c (set_case_table): Update callers.
293
294 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
295
296 * keymap.c (struct accessible_keymaps_data)
297 (struct where_is_internal_data): New structures.
298 (accessible_keymaps_1, where_is_internal_1): Use them to change
299 interface to adhere to the one used by map_keymap.
300 (Faccessible_keymaps, where_is_internal): Use map_keymap.
301 (accessible_keymaps_char_table, where_is_internal_2): Remove.
302
303 * keymap.h (map_keymap_function_t): More informative prototype.
304
305 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
306
307 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
308 (looking_at_1): Don't change search_regs and last_thing_searched
309 if `inhibit-changing-match-data' is non-nil.
310 (string_match_1, search_buffer, set_search_regs): Likewise.
311 (syms_of_search): Add Lisp level definition for
312 `inhibit-changing-match-data' and set it to nil.
313 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
314 start and end of the match, instead of using values in search_regs.
315
316 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
317
318 * minibuf.c (Fcompleting_read): New value `confirm-only'
319 for `require-match'.
320
321 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
322
323 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
324 part of the 2007-06-27 change to syms_of_fileio.
325
326 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
327
328 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
329 Check WINDOWP before using XWINDOW. Consolidate return statements.
330
331 2007-06-27 Richard Stallman <rms@gnu.org>
332
333 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
334
335 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
336
337 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
338
339 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
340
341 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
342 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
343 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
344 (_free_internal, memalign): Use them.
345 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
346 Initialize to PTHREAD_MUTEX_INITIALIZER.
347 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
348 (morecore_nolock): Rename from morecore. All uses changed.
349 Use only nolock versions of internal allocation functions.
350 (_malloc_internal_nolock, _realloc_internal_nolock)
351 (_free_internal_nolock): New functions created from
352 _malloc_internal, _realloc_internal, and _free_internal.
353 (_malloc_internal, _realloc_internal, _free_internal): Use them.
354 Copy hook value to automatic variable before its use.
355 (memalign): Copy hook value to automatic variable before its use.
356
357 2007-06-26 Kenichi Handa <handa@m17n.org>
358
359 * coding.c (Ffind_operation_coding_system): Docstring improved.
360 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
361
362 2007-06-25 David Kastrup <dak@gnu.org>
363
364 * keymap.c (Fcurrent_active_maps): Add `position' argument.
365 (Fwhere_is_internal): Adjust call to `current-active-maps' to
366 cater for additional parameter.
367
368 * keymap.h: Adjust number of parameters to `current-active-maps'.
369
370 * doc.c (Fsubstitute_command_keys): Adjust call of
371 `current-active-maps'.
372
373 2007-06-25 David Kastrup <dak@gnu.org>
374
375 * callint.c (Fcall_interactively): Make the parsing of interactive
376 specs somewhat more readable.
377
378 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
379
380 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
381 to scroll bar gap also when bitmap fills fringe. Draw only foreground
382 if extended background has already been filled.
383
384 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
385
386 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
387 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
388
389 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
390 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
391 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
392 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
393 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
394 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
395 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
396 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
397 Run timers during dialog popup.
398 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
399
400 2007-06-21 Jason Rumney <jasonr@gnu.org>
401
402 * image.c (convert_mono_to_color_image): Swap fore and background.
403
404 2007-06-20 Jason Rumney <jasonr@gnu.org>
405
406 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
407 (w32_free_bdf_font): Unmap memory not handle.
408
409 2007-06-20 Sam Steingold <sds@gnu.org>
410
411 * gmalloc.c (__morecore): Fix the declaration to comply with the
412 definition.
413
414 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
415
416 * w32term.c (w32_delete_display): Remove leftover declaration.
417 (w32_define_cursor, w32_initialize): Make static.
418
419 * w32.c (_wsa_errlist): Fix typo in error message.
420 (init_environment): Ignore any environment variable from the
421 registry having a null value.
422
423 2007-06-20 Glenn Morris <rgm@gnu.org>
424
425 * Makefile.in (LIBGIF): Default to -lgif.
426
427 2007-06-17 Jason Rumney <jasonr@gnu.org>
428
429 * w32menu.c (add_menu_item): Don't use multibyte string functions on
430 unicode strings.
431
432 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
433
434 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
435 Fix typo in docstring.
436
437 2007-06-16 Eli Zaretskii <eliz@gnu.org>
438
439 * w32menu.c (add_menu_item): Escape `&' characters in menu items
440 and their keybindings.
441
442 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
443
444 * composite.c (update_compositions): Fix last fix.
445
446 2007-06-14 Jason Rumney <jasonr@gnu.org>
447
448 * w32.c (get_process_times_fn): New function pointer.
449 (globals_of_w32): Intialize it if present in kernel32.dll.
450 (w32_get_internal_run_time): New function.
451
452 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
453
454 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
455
456 * composite.c (update_compositions): Check the validness of
457 compositions.
458
459 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
460
461 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
462 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
463
464 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
465 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
466
467 * macgui.h (USE_MAC_TOOLBAR): New define.
468
469 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
470 Return immediately unless popup is activated.
471
472 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
473 background to scroll bar gap.
474 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
475 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
476 scroll bars on frame edge. Check fringe background extension.
477 Don't clear extended fringe background area.
478 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
479 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
480 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
481 [USE_MAC_TOOLBAR]: New macros.
482 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
483 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
484 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
485 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
486 [USE_MAC_TOOLBAR]: New functions.
487 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
488 manually if previous repositioning has failed.
489 (mac_handle_keyboard_event): Use precomputed event kind.
490 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
491 as tool bar item click. Handle mouse movement over tool bar items.
492
493 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
494 toolbar_win_gravity.
495 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
496 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
497 Add externs.
498
499 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
500 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
501
502 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
503
504 * image.c (search_image_cache): Remove unused variable.
505
506 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
507
508 * xfns.c, xmenu.c: Link to xaw3d if available.
509
510 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
511
512 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
513 frame_foreground and frame_background.
514
515 * image.c (lookup_image): Save frame foreground and background colors.
516 (search_image_cache): Check if saved and current frame colors match.
517
518 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
519
520 * regex.c (regex_compile): Remove the `regnum' counter.
521 Use bufp->re_nsub instead. Add support for \(?N:RE\).
522
523 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
524
525 * term.c: Include intervals.h to declare Fget_text_property.
526
527 2007-06-10 Jason Rumney <jasonr@gnu.org>
528
529 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
530
531 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
532
533 * callint.c (Fcall_interactively):
534 * editfns.c (Fdelete_and_extract_region):
535 * fileio.c (Fread_file_name):
536 * fns.c (Fmapconcat):
537 * keyboard.c (cmd_error_internal):
538 * keymap.c (Fkey_description):
539 * lread.c (openp):
540 * minibuf.c (read_minibuf):
541 * search.c (wordify):
542 * sunfns.c (sel_read):
543 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
544 * xfns.c (x_default_scroll_bar_color_parameter):
545 * xmenu.c (menu_help_callback):
546 * xselect.c (Fx_get_atom_name):
547 * xterm.c (x_term_init): Use empty_unibyte_string.
548
549 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
550
551 * alloc.c (init_strings): Initialize canonical empty strings.
552 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
553 canonical empty string when the requested size is 0.
554
555 * emacs.c (empty_unibyte_string): Rename from empty_string.
556 (empty_multibyte_string): New canonical empty string.
557 (syms_of_emacs): Don't initialize empty_string.
558
559 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
560 string, if appropriate.
561 (empty_unibyte_string, empty_multibyte_string): New externs.
562 (empty_string): Remove extern.
563
564 * lread.c (syms_of_lread): Use empty_unibyte_string.
565
566 2007-06-07 Jason Rumney <jasonr@gnu.org>
567
568 * s/ms-w32.h: Don't define HAVE_TZNAME.
569
570 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
571
572 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
573
574 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
575
576 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
577 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
578
579 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
580 Don't call next handler.
581 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
582 Remove argument. Install handler to application.
583 (set_frame_menubar): Don't change deep_p.
584 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
585 FRAME_OUTER_TO_INNER_DIFF_Y.
586 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
587 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
588 [HAVE_DIALOGS]: New macros.
589 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
590 Use them.
591 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
592
593 * macselect.c [MAC_OSX] (install_service_handler): Rename from
594 init_service_handler. All callers changed. Return OSStatus value.
595
596 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
597 All callers changed so as not to call SetPortWindowPort.
598 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
599 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
600 mac_draw_string_common.
601 (mac_draw_image_string_qd): Likewise.
602 (mac_draw_string_common): Use them. Add INLINE.
603 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
604 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
605 GetGlobalMouse.
606 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
607 and FRAME_OUTER_TO_INNER_DIFF_Y.
608 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
609 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
610 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
611 repositioning window to mac_handle_window_event.
612 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
613 saving window location to mac_handle_window_event
614 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
615 (install_menu_target_item_handler): Remove argument in extern.
616 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
617 Also accept command events.
618 (do_keystroke): New function created from XTread_socket.
619 (init_command_handler): Remove functions.
620 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
621 and save window location by kEventWindowShowing and kEventWindowHiding
622 handlers here. Don't call next handler for window state change and
623 focus events.
624 (mac_handle_application_event, mac_handle_keyboard_event)
625 [TARGET_API_MAC_CARBON]: New functions.
626 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
627 kEventWindowShowing and kEventWindowHiding events. Move installation
628 of mouse, font, text input and menu target item handlers to
629 install_application_handler.
630 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
631 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
632 New function.
633 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
634 Register it.
635 (XTread_socket) [TARGET_API_MAC_CARBON]:
636 Consolidate SendEventToEventTarget calls.
637 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
638 Move application activation handler to mac_handle_application_event.
639 Move keyboard handler to mac_handle_keyboard_event.
640 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
641 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
642 init_command_handler. Call install_application_handler.
643
644 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
645 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
646
647 2007-06-07 Glenn Morris <rgm@gnu.org>
648
649 * emacs.c (main): Use `emacs-copyright' in --version output.
650
651 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
652
653 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
654
655 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
656
657 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
658
659 * macgui.h: Replace WindowPtr with WindowRef.
660
661 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
662 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
663 Replace ControlHandle with ControlRef.
664 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
665
666 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
667 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
668 Replace ControlHandle with ControlRef.
669 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
670 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
671
672 * macterm.h (struct scroll_bar): Rename member control_handle_low
673 and control_handle_high to control_ref_low and control_ref_high.
674 All uses changed.
675 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
676 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
677 respectively. All uses changed.
678 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
679 (install_window_handler, remove_window_handler): Replace WindowPtr
680 with WindowRef in externs.
681
682 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
683
684 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
685
686 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
687
688 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
689
690 * frame.c (Fmouse_position, Fmouse_pixel_position):
691 Condition on HAVE_GPM too.
692
693 * term.c (term_mouse_highlight): Remove unused variables.
694 (Fterm_open_connection): Set gpm_zerobased to 1.
695 (term_mouse_movement, term_mouse_click, handle_one_term_event):
696 Use zero based co-ordinates.
697 (handle_one_term_event): Report a drag as mouse movement too.
698
699 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
700
701 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
702
703 * image.c (search_image_cache): New function. Require background
704 color match if background color is unspecified in the image spec.
705 (uncache_image, lookup_image): Use it.
706
707 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
708
709 * window.c (Fshrink_window): Reflow docstring.
710
711 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
712
713 * Version 22.1 released.
714
715 2007-06-01 Richard Stallman <rms@gnu.org>
716
717 * xfns.c (x_encode_text): Add GCPRO.
718
719 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
720
721 * xfns.c (x_set_name_internal): Save encoded name before
722 x_encode_text in case string data is relocated.
723
724 2007-05-31 Richard Stallman <rms@gnu.org>
725
726 * buffer.c (syms_of_buffer): Doc fix.
727
728 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
729
730 * sysdep.c (init_sys_modes): Add rather than replace with
731 O_NONBLOCK.
732
733 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
734 term_mouse_moveto.
735
736 * termhooks.h (term_mouse_moveto): New extern.
737
738 * term.c (mouse_face_window): Rename...
739 (Qmouse_face_window): ...to this.
740 (term_show_mouse_face, term_clear_mouse_face)
741 (term_mouse_highlight): Use Qmouse_face_window.
742 (term_mouse_moveto): New function.
743 (term_mouse_position): Make it work.
744 (syms_of_term): Uncomment assignment to mouse_position_hook.
745 Staticpro Qmouse_face_window.
746
747 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
748
749 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
750 around current_column call.
751
752 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
753
754 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
755 * xdisp.c (next_element_from_buffer):
756 * window.c (delete_window):
757 * term.c (term_mouse_highlight):
758 * msdos.c (getdefdir):
759 * macterm.c (mac_create_bitmap_from_bitmap_data)
760 (init_font_name_table):
761 * fns.c (Fsxhash):
762 * data.c (Fmake_local_variable):
763 * ccl.c (ccl_driver): Likewise.
764
765 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
766
767 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
768 Call mac_wakeup_from_rne on window size change.
769
770 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
771
772 * image.c (uncache_image): Fix typo.
773
774 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
775
776 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
777
778 2007-05-22 Richard Stallman <rms@gnu.org>
779
780 * xterm.c (x_connection_closed): Remove NO_RETURN.
781
782 2007-05-22 Martin Rudalics <rudalics@gmx.at>
783
784 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
785
786 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
787
788 * image.c (uncache_image): New function.
789 (Fimage_refresh): New function.
790
791 2007-05-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
792
793 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
794
795 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
796
797 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
798 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
799
800 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
801
802 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
803 conditional on [HAVE_GPM_H].
804
805 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
806
807 * syntax.c (skip_chars): Update syntax-table only after we checked that
808 the new location is valid.
809
810 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
811
812 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
813 mac_get_window_bounds.
814
815 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
816
817 * Makefile.in (LIBGPM): Allow it to be set from configure.
818 If set then link Emacs with it.
819
820 * config.in: Regenerate.
821
822 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
823 New externs.
824
825 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
826 Include gpm.h.
827 (handle_one_term_event, term_gpm): New externs.
828
829 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
830 and allow it to be interrupted by SIGIO.
831
832 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
833 (wait_reading_process_output): Wait on gpm_fd too.
834 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
835 (add_gpm_wait_descriptor_called_flag): New variable.
836 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
837
838 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
839 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
840 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
841 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
842 (make_lispy_event): Add case GPM_CLICK_EVENT.
843 (read_avail_input): Handle mouse input.
844
845 * term.c (write_glyphs_with_face): New function.
846 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
847 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
848 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
849 (mouse_face_face_id, term_gpm, pos_x, pos_y)
850 (last_mouse_x, last_mouse_y): New variables.
851 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
852 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
853 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
854 (Fterm_close_connection): New functions.
855 (term_init): Initialise mouse_face_window.
856
857 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
858
859 * xdisp.c (redisplay_window): If first window line is a
860 continuation line, recompute the new window start instead of
861 recentering.
862
863 2007-05-18 Glenn Morris <rgm@gnu.org>
864
865 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
866 Suggested by Alfred M. Szmidt <ams@gnu.org>.
867
868 2007-05-17 Glenn Morris <rgm@gnu.org>
869
870 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
871
872 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
873
874 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
875 dead key repeat and up events.
876
877 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
878
879 * image.c (pbm_load): Check image size for monochrome pbm.
880
881 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
882
883 * xterm.c (XTread_socket): Revert last change.
884
885 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
886
887 * image.c (pbm_load): Correctly check image size for greyscale pbm.
888
889 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
890
891 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
892
893 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
894 mixup (YAILOM).
895
896 2007-05-07 Andreas Schwab <schwab@suse.de>
897
898 * keymap.c (Flookup_key): Fix typo in last change.
899
900 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
901
902 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
903 mapping for unibyte strings.
904
905 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
906
907 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
908 (Fx_popup_dialog) [MAC_OSX]: Likewise.
909
910 2007-04-29 Richard Stallman <rms@gnu.org>
911
912 * insdel.c (replace_range): For undo, record insertion first.
913
914 2007-04-29 Andreas Schwab <schwab@suse.de>
915
916 * lisp.h (VECSIZE): Use OFFSETOF.
917
918 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
919
920 * xdisp.c (try_window_reusing_current_matrix): Fix number of
921 disabled lines.
922
923 2007-04-28 Richard Stallman <rms@gnu.org>
924
925 * lread.c (read_escape): In a string, \s is always space.
926
927 2007-04-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
928
929 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
930
931 * gtkutil.c (xg_update_menubar, create_menus): Create empty
932 submenu for menu bar items.
933
934 2007-04-24 Chong Yidong <cyd@stupidchicken.com>
935
936 * Branch for 22.1.
937
938 2007-04-24 Chong Yidong <cyd@stupidchicken.com>
939
940 * xdisp.c (redisplay_window): Use BEG_UNCHANGED and END_UNCHANGED
941 values of the actual window.
942
943 2007-04-23 Richard Stallman <rms@gnu.org>
944
945 * process.c (Fstart_process): Doc fix.
946
947 2007-04-23 Eli Zaretskii <eliz@gnu.org>
948
949 * process.c (Fstart_process): Doc fix.
950
951 2007-04-22 Richard Stallman <rms@gnu.org>
952
953 * abbrev.c (Fdefine_abbrev): Doc fix.
954
955 * keymap.c (Fdefine_key): Minor doc fix.
956
957 2007-04-21 Glenn Morris <rgm@gnu.org>
958
959 * keymap.c (Fdefine_key): Fix info ref in doc string.
960
961 2007-04-20 Glenn Morris <rgm@gnu.org>
962
963 * sysdep.c (init_system_name): Don't accept localhost.localdomain.
964
965 2007-04-19 Juanma Barranquero <lekktu@gmail.com>
966
967 * minibuf.c (Fminibuffer_contents, Fminibuffer_contents_no_properties)
968 (Fminibuffer_completion_contents, Fdelete_minibuffer_contents):
969 Doc fixes.
970
971 2007-04-16 Chong Yidong <cyd@stupidchicken.com>
972
973 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay):
974 Set garbaged flag in presence of window margins.
975 (showing_window_margins_p): New function.
976
977 * xdisp.c (cursor_row_p): Only end row on newline if it's a
978 display string. Suggested by Lennart Borgman.
979
980 2007-04-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
981
982 * alloc.c (mem_insert): Set min_heap_address and max_heap_address
983 if they are not yet initialized.
984
985 2007-04-15 Chong Yidong <cyd@stupidchicken.com>
986
987 * xdisp.c (redisplay_window): When deciding whether or not to
988 recenter, don't use the reset values of BEG_UNCHANGED and
989 END_UNCHANGED.
990
991 2007-04-13 Kim F. Storm <storm@cua.dk>
992
993 * buffer.c (Fkill_buffer): gcpro BUF during kill_buffer_processes
994 and check that buffer is still alive upon return.
995
996 2007-04-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
997
998 * macterm.c [!TARGET_API_MAC_CARBON]: Include Displays.h.
999 (mac_screen_config_changed): New variable.
1000 (mac_handle_dm_notification, init_dm_notification_handler)
1001 (mac_get_screen_info): New functions.
1002 [MAC_OS8] (main): Call init_dm_notification_handler.
1003 (mac_initialize) [MAC_OSX]: Likewise.
1004 (XTread_socket): Call mac_get_screen_info if screen config changed.
1005 (mac_initialized): Make static.
1006 (mac_initialize_display_info): Remove function.
1007 (mac_term_init): Call mac_get_screen_info. Add partial contents of
1008 mac_initialize_display_info.
1009
1010 2007-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1011
1012 * mac.c (xrm_get_preference_database, Fmac_get_preference)
1013 [TARGET_API_MAC_CARBON]: Use CFPreferencesAppSynchronize.
1014
1015 * macterm.c [TARGET_API_MAC_CARBON] (mac_post_mouse_moved_event):
1016 Use GetGlobalMouse instead of GetMouse and LocalToGlobal.
1017 (mac_initialize_display_info) [MAC_OSX]: Use CGRectZero.
1018 (mac_initialize_display_info) [!MAC_OSX]: dpyinfo->height and
1019 dpyinfo->width are those of whole screen.
1020
1021 2007-04-10 Chong Yidong <cyd@stupidchicken.com>
1022
1023 * xdisp.c (note_mode_line_or_margin_highlight): Don't decrement
1024 glyph pointer before start of glyph row.
1025
1026 2007-04-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1027
1028 * s/darwin.h (__restrict, struct kboard): Remove outdated workarounds.
1029 (C_SWITCH_SYSTEM): Remove `-I../mac/src'.
1030
1031 2007-04-09 Martin Rudalics <rudalics@gmx.at>
1032
1033 * indent.c (Fmove_to_column): Set next_boundary with correct start pt.
1034
1035 2007-04-08 Richard Stallman <rms@gnu.org>
1036
1037 * xdisp.c (syms_of_xdisp) <message-log-max>: Default 100.
1038
1039 2007-04-07 Chong Yidong <cyd@stupidchicken.com>
1040
1041 * editfns.c (Ftranspose_regions): Validate interval before setting
1042 text properties.
1043
1044 2007-04-03 Eli Zaretskii <eliz@gnu.org>
1045
1046 * emacs.c (main): Fix instructions for building Emacs for profiling.
1047
1048 2007-04-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1049
1050 * gtkutil.c (xg_update_menubar): Call g_list_next after moving
1051 menu bar item.
1052
1053 2007-04-02 Juanma Barranquero <lekktu@gmail.com>
1054
1055 * print.c (Fprin1_to_string): Use macro SPECPDL_INDEX.
1056
1057 2007-04-01 Chong Yidong <cyd@stupidchicken.com>
1058
1059 * keymap.c (Fcommand_remapping): New optional argument.
1060 (where_is_internal): Use new keymaps argument.
1061 (Fkey_binding): Caller changed.
1062
1063 * keyboard.c (command_loop_1): Caller changed.
1064
1065 2007-03-31 Eli Zaretskii <eliz@gnu.org>
1066
1067 * window.c (Fget_lru_window): Doc fix.
1068
1069 2007-03-30 Chong Yidong <cyd@stupidchicken.com>
1070
1071 * undo.c (Fprimitive_undo): Give clearer error message when trying
1072 to change text properties outside accessible part of buffer.
1073
1074 2007-03-29 Kim F. Storm <storm@cua.dk>
1075
1076 * process.c (wait_reading_process_output) [HAVE_PTYS]:
1077 When EIO happens, clear channel from descriptor masks before raising
1078 SIGCHLD signal to avoid busy loop between read and sigchld_handler.
1079 (sigchld_handler): Remove sleep (2007-03-11 & 2007-03-26 changes).
1080
1081 2007-03-29 Juanma Barranquero <lekktu@gmail.com>
1082
1083 * buffer.c (Fset_buffer_major_mode): Check that BUFFER is valid.
1084
1085 * process.c (Fformat_network_address): Return nil when the
1086 argument vector contains invalid values.
1087
1088 2007-03-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1089
1090 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Define USE_PTHREAD.
1091 [USE_PTHREAD]: Include pthread.h.
1092 (malloc_init_once_control, _malloc_mutex) [USE_PTHREAD]: New variables.
1093 (malloc_initialize_1): New function created from __malloc_initialize.
1094 (__malloc_initialize): Use it.
1095 (LOCK, UNLOCK): New macros to make malloc etc. thread safe.
1096 (_malloc_internal, _free_internal, _realloc_internal): Use them.
1097
1098 * lread.c (readchar): Extend BLOCK_INPUT block to ferror/clearerr.
1099
1100 2007-03-27 Juanma Barranquero <lekktu@gmail.com>
1101
1102 * process.c (Fformat_network_address): Make args array big enough
1103 to format IPv6 addresses.
1104
1105 2007-03-27 Glenn Morris <rgm@gnu.org>
1106
1107 * m/hp800.h: Restore HP-UX support (removed 2007-01-29).
1108
1109 2007-03-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1110
1111 * macfns.c (Fx_display_mm_height, Fx_display_mm_width): Scale whole
1112 screen size in pixels by millimeters per pixel of main display.
1113
1114 * macselect.c (get_scrap_target_type_list, x_own_selection):
1115 Move assignments outside predicate macros.
1116 (Vselection_converter_alist): Doc fix.
1117
1118 * macterm.c (create_text_encoding_info_alist): Move assignments
1119 outside predicate macros.
1120 (mac_initialize_display_info) [MAC_OSX]: dpyinfo->height and
1121 dpyinfo->width are those of whole screen.
1122
1123 2007-03-26 Sam Steingold <sds@gnu.org>
1124
1125 * process.c (sigchld_handler): Delay by 1ms instead of 1s to
1126 alleviate sluggishness (the original problem is still fixed).
1127
1128 2007-03-25 Kim F. Storm <storm@cua.dk>
1129
1130 * intervals.c (merge_properties): Use explicit loop instead of
1131 Fplist_member to avoid QUIT. Don't use Fcdr.
1132 (intervals_equal): Likewise. Rewrite loop to perform length check
1133 on the fly rather than calling Flength. Don't use Fcar.
1134
1135 2007-03-24 Eli Zaretskii <eliz@gnu.org>
1136
1137 * editfns.c (Fgoto_char): Doc fix.
1138
1139 * indent.c (Findent_to): Doc fix.
1140
1141 2007-03-24 Chong Yidong <cyd@stupidchicken.com>
1142
1143 * editfns.c (Ftranspose_regions): Use set_text_properties_1
1144 instead of Fset_text_properties to avoid GC. Signal after change.
1145
1146 2007-03-24 Eli Zaretskii <eliz@gnu.org>
1147
1148 * xfns.c (Fx_show_tip): Doc fix.
1149
1150 * macfns.c (Fx_show_tip): Doc fix.
1151
1152 * w32fns.c (Fx_show_tip): Doc fix.
1153
1154 2007-03-23 Kim F. Storm <storm@cua.dk>
1155
1156 * intervals.c (merge_properties, intervals_equal):
1157 Use Fplist_member instead of Fmemq to find properties.
1158
1159 2007-03-23 Glenn Morris <rgm@gnu.org>
1160
1161 * unexhp9k800.c: Restore file with clarified legal status.
1162 * m/sr2k.h: Restore since dependency unexhp9k800.c is restored.
1163
1164 2007-03-22 Chong Yidong <cyd@stupidchicken.com>
1165
1166 * widget.c (EmacsFrameSetCharSize): Catch X errors.
1167
1168 2007-03-22 Kenichi Handa <handa@m17n.org>
1169
1170 * fileio.c (Fcopy_file): Call barf_or_query_if_file_exists with
1171 non-encoded file name.
1172 (Frename_file): Likewise.
1173 (Fadd_name_to_file): Likewise.
1174 (Fmake_symbolic_link): Likewise.
1175
1176 2007-03-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1177
1178 * Makefile.in (alloca.o, gtkutil.o): Depend on systime.h.
1179 (dired.o, editfns.o, fileio.o, msdos.o): Depend on atimer.h.
1180 (dosfns.o, window.o, fns.o, macselect.o): Depend on atimer.h and
1181 systime.h.
1182 (term.o, print.o, lread.o): Depend on blockinput.h, atimer.h, and
1183 systime.h.
1184 (macfns.o): Remove duplicate dependency on systime.h.
1185
1186 * dispnew.c (Fopen_termscript): Add BLOCK_INPUT around fclose.
1187 (Fsend_string_to_terminal): Add BLOCK_INPUT around fwrite.
1188
1189 * fileio.c (do_auto_save_unwind): Add BLOCK_INPUT around fclose.
1190 (Fdo_auto_save): Add BLOCK_INPUT around fwrite.
1191
1192 * keyboard.c (record_char): Add BLOCK_INPUT around fwrite.
1193 (Fopen_dribble_file): Add BLOCK_INPUT around fclose.
1194
1195 * lread.c: Include blockinput.h.
1196 (readchar, Fget_file_char): Add BLOCK_INPUT around getc.
1197 (unreadchar): Add BLOCK_INPUT around ungetc.
1198 (load_unwind): Add BLOCK_INPUT around fclose.
1199
1200 * print.c: Include blockinput.h.
1201 (Fredirect_debugging_output): Add BLOCK_INPUT around fclose.
1202
1203 * process.c (Fmake_network_process) [HAVE_GETADDRINFO]:
1204 Clear immediate_quit before calling freeaddrinfo.
1205 Add BLOCK_INPUT around freeaddrinfo.
1206
1207 * term.c: Include blockinput.h.
1208 (write_glyphs, insert_glyphs): Add BLOCK_INPUT around fwrite.
1209
1210 2007-03-19 Richard Stallman <rms@gnu.org>
1211
1212 * keyboard.c (NUM_RECENT_KEYS): Bump up to 300.
1213
1214 * buffer.c (syms_of_buffer): Doc fix.
1215
1216 2007-03-18 Chong Yidong <cyd@stupidchicken.com>
1217
1218 * image.c (pbm_load): Signal error for invalid image size.
1219
1220 2007-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1221
1222 * macterm.c (note_mouse_movement): Don't return immediately for
1223 LeaveNotify case.
1224
1225 * macmenu.c (popup_activated_flag): New variable.
1226 (x_activate_menubar, mac_menu_show): Set it during menu tracking.
1227 (popup_activated): New function.
1228
1229 * xdisp.c (redisplay_internal, note_mouse_highlight):
1230 Check popup_activated for MAC_OS.
1231
1232 2007-03-17 Juanma Barranquero <lekktu@gmail.com>
1233
1234 * buffer.c (syms_of_buffer) <buffer-display-table>: Doc fix.
1235 Reported by Nikolaj Schumacher <n_schumacher@web.de>.
1236
1237 2007-03-17 Richard Stallman <rms@gnu.org>
1238
1239 * dired.c (file_name_completion): gcpro NAME.
1240
1241 2007-03-17 Chong Yidong <cyd@stupidchicken.com>
1242
1243 * xdisp.c (try_window_id): Increment matrix positions if the
1244 buffer's byte count has increased, but not the character count.
1245
1246 2007-03-12 Andreas Schwab <schwab@suse.de>
1247
1248 * lisp.h: Declare check_obarray.
1249
1250 * process.c (Fdelete_process): Properly handle deletion of first
1251 element of deleted_pid_list.
1252 (create_process): Declare pid as pid_t.
1253
1254 2007-03-12 Kim F. Storm <storm@cua.dk>
1255
1256 * process.c (sigchld_handler): Change type of pid to pid_t.
1257 Scan deleted_pid_list explicitly to avoid using Fmember which don't
1258 know about mark bits and make_fixnum_or_float which may malloc.
1259 Reported by Andreas Schwab.
1260
1261 * keyboard.c (read_key_sequence): Store original event into keybuf
1262 when replaying sequence with local keymap(s) from string.
1263
1264 2007-03-12 Glenn Morris <rgm@gnu.org>
1265
1266 * editfns.c (Fdecode_time, Fencode_time): Doc fix ("daylight
1267 savings" to "daylight saving").
1268
1269 2007-03-11 Sam Steingold <sds@gnu.org>
1270
1271 * process.c (sigchld_handler): Sleep before wait3 to avoid a busyloop.
1272
1273 2007-03-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1274
1275 * macfns.c (Fx_server_vendor): Change vendor string to "Apple Inc.".
1276
1277 2007-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1278
1279 * macterm.c [USE_CARBON_EVENTS] (mac_handle_mouse_event):
1280 Ignore mouse wheel movement on title bar or tool bar.
1281
1282 2007-03-10 Chong Yidong <cyd@stupidchicken.com>
1283
1284 * keyboard.c (help_form_saved_window_configs): New var.
1285 (read_char_help_form_unwind): New function.
1286 (read_char): Don't restore window configuration if a mouse click
1287 arrives while the help form is being displayed.
1288
1289 2007-03-10 Kim F. Storm <storm@cua.dk>
1290
1291 * xdisp.c (redisplay_window): Don't automatically select a new window
1292 start for a contination line during mouse-click.
1293
1294 2007-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1295
1296 * xterm.c (handle_one_xevent): Ignore buttons > 3 for the tool bar.
1297
1298 2007-03-09 Juanma Barranquero <lekktu@gmail.com>
1299
1300 * keymap.c (Fdescribe_buffer_bindings): Check that BUFFER is valid.
1301
1302 2007-03-08 Richard Stallman <rms@gnu.org>
1303
1304 * keyboard.c (syms_of_keyboard): Doc fix.
1305
1306 2007-03-08 Chong Yidong <cyd@stupidchicken.com>
1307
1308 * minibuf.c (Ftry_completion): Don't short circuit if
1309 completion-ignore-case is non-nil.
1310
1311 2007-03-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1312
1313 * macfns.c (mac_set_scroll_bar_width, mac_frame_parm_handlers):
1314 Undo 2006-03-06 changes.
1315
1316 * macterm.c (XTset_vertical_scroll_bar) [MAC_OSX]: Don't show scroll
1317 bar if its width is smaller than that of Aqua small scroll bar.
1318
1319 2007-03-07 Stefan Monnier <monnier@iro.umontreal.ca>
1320
1321 * minibuf.c (read_minibuf): Bind inhibit-read-only a bit longer so as
1322 to handle correctly prompts with read-only property.
1323
1324 2007-03-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1325
1326 * sound.c (wav_play): Check header->data_length to see how much we
1327 shall read.
1328 (alsa_period_size): Convert ALSA period size in frames to bytes.
1329 (alsa_write): Return if frames is zero.
1330
1331 2007-03-06 Kenichi Handa <handa@m17n.org>
1332
1333 * xselect.c (Vselection_coding_system): Documentation improved.
1334
1335 2007-03-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1336
1337 * macterm.c (x_scroll_bar_create, XTread_socket): Replace #if
1338 USE_TOOLKIT_SCROLL_BARS with #ifdef USE_TOOLKIT_SCROLL_BARS.
1339 (x_set_window_size): Call SET_FRAME_GARBAGED. Clear window if
1340 internal border width has changed.
1341
1342 * macterm.h (struct mac_output): New member `internal_border_width'.
1343
1344 2007-03-04 Richard Stallman <rms@gnu.org>
1345
1346 * window.c (Fdisplay_buffer): Doc fix.
1347
1348 2007-03-03 Glenn Morris <rgm@gnu.org>
1349
1350 * Makefile.in: Don't clear out LIB_X11_LIB, since XFT_LIBS does
1351 not include -lX11 on Solaris.
1352
1353 2007-03-02 Stuart D. Herring <herring@lanl.gov>
1354
1355 * keymap.c (Fkey_binding): Don't consider one-element lists as events.
1356
1357 2007-03-01 Kenichi Handa <handa@m17n.org>
1358
1359 * process.c (send_process_object): Check the process status and
1360 signal an error if something is wrong.
1361
1362 2007-02-28 Chong Yidong <cyd@stupidchicken.com>
1363
1364 * insdel.c (Fcombine_after_change_execute): Return nil if
1365 combine_after_change_buffer has been invalidated.
1366
1367 2007-02-25 Dan Nicolaescu <dann@ics.uci.edu>
1368
1369 * m/xtensa.h: New file.
1370
1371 2007-02-24 Nick Roberts <nickrob@snap.net.nz>
1372
1373 * .gdbinit (xprintstr): Ensure GDB (> 6.6) prints symbol name
1374 as strings and not character arrays.
1375
1376 2007-02-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1377
1378 * macterm.c [USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_handle_drag)
1379 (x_set_toolkit_scroll_bar_thumb): Add bar->min_handle as margin to
1380 scroll bar handle size in order to avoid `scroll backward' problem.
1381 (x_scroll_bar_create, XTset_vertical_scroll_bar)
1382 [USE_TOOLKIT_SCROLL_BARS]: Initialize bar->min_handle.
1383
1384 * macterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
1385 New member `min_handle'.
1386
1387 2007-02-23 Kim F. Storm <storm@cua.dk>
1388
1389 * print.c (print): Reset print_number_index if Vprint_number_table
1390 is nil.
1391
1392 2007-02-23 Eli Zaretskii <eliz@gnu.org>
1393
1394 * w32.c (stat, get_long_basename, is_unc_volume): Use _mbspbrk
1395 instead of strpbrk.
1396
1397 2007-02-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1398
1399 * macmenu.c (mac_menu_show): Call unbind_to early. Use variable
1400 `menu_item_selection' as in W32 version.
1401 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Add explicit
1402 braces to avoid ambiguous `else'.
1403
1404 * macterm.c (mac_display_info_for_display): Remove function.
1405 (mac_flush_display_optional) [USE_CG_DRAWING]: New function.
1406 (x_redisplay_interface) [USE_CG_DRAWING]: Set it as handler for
1407 flush_display_optional.
1408 [USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_handle_press):
1409 New argument MOUSE_POS. All uses changed. Set bar->dragging to
1410 negative integer if scroll bar handle is pressed.
1411 [USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_handle_release):
1412 Negative bar->dragging means scroll bar handle is not dragged.
1413 [USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_handle_drag): Get initial
1414 offset of scroll bar handle from negative bar->dragging.
1415 (XTread_socket) [USE_TOOLKIT_SCROLL_BARS]: Modifiers for scroll
1416 bar click is compared against mapped one. Set down/up_modifier
1417 for scroll bar click event with control key.
1418
1419 * macterm.h (x_display_info_for_display): Remove extern.
1420 (SCROLL_BAR_UNPACK, SET_SCROLL_BAR_CONTROL_HANDLE): Don't limit
1421 value to be unpacked to 32-bit on LP64 model.
1422
1423 2007-02-23 Kenichi Handa <handa@m17n.org>
1424
1425 * process.c (send_process_object_unwind): New function.
1426 (send_process_object): New function.
1427 (Fprocess_send_region): Call send_process_object.
1428 (Fprocess_send_string): Likewise.
1429
1430 2007-02-22 Jason Rumney <jasonr@gnu.org>
1431
1432 * w32menu.c (w32_menu_show): Mark the frame's menu as inactive
1433 when popup menu finishes.
1434
1435 * w32fns.c (menubar_in_use): New flag.
1436 (w32_wnd_proc) <WM_INITMENU, WM_EXITMENULOOP, WM_TIMER, WM_COMMAND>:
1437 Use it.
1438
1439 * w32menu.c (Fx_popup_menu): Don't free menu strings here.
1440 (w32_menu_show): Do it here instead.
1441
1442 * w32fns.c (w32_wnd_proc) <WM_INITMENU>: Set menubar_active frame
1443 parameter.
1444
1445 * w32menu.c (current_popup_menu): Make available globally.
1446 (menubar_selection_callback): Free menu strings before pushing the
1447 menu event into the keyboard buffer. Remove menu_command_in_progress.
1448
1449 * w32fns.c (current_popup_menu): Use from w32menu.c.
1450 (w32_wnd_proc) <WM_EXITMENULOOP, WM_TIMER>: Use menubar_active
1451 and current_popup_menu to determine whether a menubar menu has
1452 been cancelled.
1453
1454 * w32term.h (w32_output): Remove menu_command_in_progress.
1455
1456 2007-02-22 Kim F. Storm <storm@cua.dk>
1457
1458 * dispnew.c (update_frame, update_single_window): Set force_p here if
1459 redisplay_dont_pause is set or Vredisplay_preemption_period is nil...
1460 (update_window, update_frame_1): ... instead of here.
1461 (update_text_area): Clear mouse face on header lines.
1462
1463 2007-02-21 Kim F. Storm <storm@cua.dk>
1464
1465 * minibuf.c (Fassoc_string): Doc fix. Allow symbol for KEY too.
1466
1467 2007-02-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1468
1469 * macterm.c (WINDOW_RESOURCE, TERM_WINDOW_RESOURCE): Remove macros.
1470 [USE_MAC_TSM] (mac_handle_text_input_event): Remove unused variable
1471 `mapped_modifiers'.
1472 (XTread_socket) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1020]: Use Keyboard
1473 Layout Services routines to get current Unicode keyboard layout.
1474
1475 2007-02-20 Chong Yidong <cyd@stupidchicken.com>
1476
1477 * frame.c (x_set_screen_gamma): Apply gamma value to the frame's
1478 bgcolor.
1479
1480 2007-02-19 Kim F. Storm <storm@cua.dk>
1481
1482 * minibuf.c (Fassoc_string): Allow symbols as keys.
1483
1484 * w32term.c (w32_set_scroll_bar_thumb): Don't resize scroll-bar
1485 handle while dragging, except when we get close to eob.
1486 Fix position and size calculations so we don't scroll backwards
1487 just by clicking on the handle.
1488
1489 2007-02-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1490
1491 * Makefile.in (${emacsapp}Contents/Resources/Emacs.rsrc)
1492 [HAVE_CARBON]: Remove target.
1493 (macosx-app) [HAVE_CARBON]: Don't depend on it.
1494
1495 2007-02-17 Juanma Barranquero <lekktu@gmail.com>
1496
1497 * callproc.c (syms_of_callproc) <doc-directory>:
1498 <configure-info-directory>:
1499 (Fgetenv_internal): Fix typos in docstrings.
1500
1501 * doc.c (Fsubstitute_command_keys): Fix typo in docstring.
1502
1503 2007-02-16 Andreas Schwab <schwab@suse.de>
1504
1505 * frame.c (Fmodify_frame_parameters): Return a value.
1506
1507 * editfns.c (Fformat): Add support for '+' flag.
1508 * doprnt.c (doprnt1): Likewise. Fix overflow checking.
1509
1510 2007-02-14 Chong Yidong <cyd@stupidchicken.com>
1511
1512 * s/umips.h: Unused file removed.
1513
1514 2007-02-14 Juanma Barranquero <lekktu@gmail.com>
1515
1516 * xfaces.c (Fcolor_distance): Don't continue checking a color for
1517 errors after it has been correctly parsed as an RGB list.
1518
1519 2007-02-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1520
1521 * xterm.c (do_ewmh_fullscreen): Also check for _NET_WM_STATE_FULLSCREEN.
1522
1523 2007-02-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1524
1525 * macfns.c (Fx_focus_frame): Move current process to foreground if
1526 it is not.
1527 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Replace #if MAC_OSX with
1528 #ifdef MAC_OSX.
1529 (Fmac_set_font_panel_visible_p) [USE_MAC_FONT_PANEL]: Rename from
1530 Fmac_set_font_panel_visibility. All uses changed. Rename argument
1531 VISIBLE to FLAG.
1532
1533 * macterm.c (MakeMeTheFrontProcess) [MAC_OSX]: Remove function.
1534 (mac_initialize) [MAC_OSX]: Call SetFrontProcess instead of
1535 MakeMeTheFrontProcess.
1536
1537 2007-02-12 Chong Yidong <cyd@stupidchicken.com>
1538
1539 * frame.c (x_set_screen_gamma): Clear face cache.
1540
1541 2007-02-11 Juanma Barranquero <lekktu@gmail.com>
1542
1543 * buffer.c (Fgenerate_new_buffer_name, Fbuffer_modified_tick):
1544 Reflow docstrings.
1545
1546 2007-02-10 Eli Zaretskii <eliz@gnu.org>
1547
1548 * window.c (Fwindow_height, Fwindow_hscroll)
1549 (Fwindow_redisplay_end_trigger, Fwindow_point, Fwindow_start)
1550 (Fwindow_end, Fwindow_display_table, Fwindow_text_height):
1551 Document the effect of WINDOW arg being nil.
1552
1553 2007-02-08 Kim F. Storm <storm@cua.dk>
1554
1555 * minibuf.c (read_minibuf): Fix 2007-01-30 change.
1556 Use Qlambda as interim value of Vminibuffer_completing_file_name.
1557 (Fcompleting_read): Use non-filename maps if value is Qlambda (or Qnil).
1558 (syms_of_minibuf) <minibuffer-completing-file-name>: Document lambda.
1559
1560 2007-02-07 Juanma Barranquero <lekktu@gmail.com>
1561
1562 * makefile.w32-in ($(TRES)): Use literal "../nt/emacs.rc" instead
1563 of $(ALL_DEPS).
1564
1565 2007-02-07 Eli Zaretskii <eliz@gnu.org>
1566
1567 * makefile.w32-in ($(TRES)): Depend on stamp_BLD, since $(TRES) is
1568 put into $(BLD).
1569
1570 2007-02-06 Chong Yidong <cyd@stupidchicken.com>
1571
1572 * frame.c (Fmodify_frame_parameters): Don't bind
1573 Qinhibit_default_face_x_resources, which has no effect.
1574 (Qinhibit_default_face_x_resources): Symbol deleted.
1575
1576 2007-02-03 Eli Zaretskii <eliz@gnu.org>
1577
1578 * indent.c (Fmove_to_column): Document that the argument COLUMN is
1579 taken from prefix numeric argument.
1580
1581 2007-02-03 Juanma Barranquero <lekktu@gmail.com>
1582
1583 * lread.c (syms_of_lread) <load-history>: Doc fix.
1584
1585 2007-01-29 Andreas Seltenreich <uwi7@rz.uni-karlsruhe.de> (tiny change)
1586
1587 * xterm.c [!USE_TOOLKIT_SCROLL_BARS] (x_scroll_bar_expose):
1588 Use the foreground color of the scroll-bar face when drawing
1589 the scroll-bar's border.
1590
1591 2007-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1592
1593 * xterm.c (do_ewmh_fullscreen): Check that what != NULL before
1594 calling wm_supports.
1595
1596 2007-02-01 Juanma Barranquero <lekktu@gmail.com>
1597
1598 * lread.c (syms_of_lread) <user-init-file>: Doc fix.
1599 Wording by Eli Zaretskii.
1600
1601 2007-01-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1602
1603 * gtkutil.c (update_frame_tool_bar): Initialize h/vmargin to 0.
1604
1605 2007-01-30 Richard Stallman <rms@gnu.org>
1606
1607 * minibuf.c (read_minibuf):
1608 Save and clear Vminibuffer_completing_file_name.
1609 (read_minibuf_unwind): Restore it.
1610 (Vminibuffer_completion_table, Qminibuffer_completion_table)
1611 (Vminibuffer_completion_predicate, Qminibuffer_completion_predicate)
1612 (Vminibuffer_completion_confirm, Qminibuffer_completion_confirm)
1613 (Vminibuffer_completing_file_name): Definitions moved up.
1614
1615 2007-01-29 Chong Yidong <cyd@stupidchicken.com>
1616
1617 * m/hp800.h: Restore, removing HP-UX support.
1618
1619 2007-01-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1620
1621 * Makefile.in: Use a variable, XFT_LIBS, instead #define LIB_X11_LIB.
1622
1623 2007-01-28 Richard Stallman <rms@gnu.org>
1624
1625 * minibuf.c (Ftry_completion, Fall_completions)
1626 (Fcompleting_read, Ftest_completion):
1627 Rename arg ALIST or TABLE to COLLECTION.
1628
1629 2007-01-27 Chong Yidong <cyd@stupidchicken.com>
1630
1631 * unexhp9k800.c: Remove due to lack of legal papers.
1632
1633 * m/sr2k.h, m/hp800.h: Remove due to dependence on above.
1634
1635 2007-01-27 Eli Zaretskii <eliz@gnu.org>
1636
1637 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Doc fix.
1638
1639 * minibuf.c (Fcompleting_read): Doc fix.
1640
1641 2007-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1642
1643 * gtkutil.c (xg_initialize): Call XftInit if HAVE_XFT.
1644
1645 * Makefile.in: Use XFT_LIBS if defined.
1646
1647 2007-01-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1648
1649 * alloc.c (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Use
1650 BLOCK_INPUT/UNBLOCK_INPUT.
1651
1652 * blockinput.h (interrupt_input_blocked): Declare volatile.
1653
1654 * keyboard.c (interrupt_input_blocked): Declare volatile.
1655
1656 * syssignal.h (SIGNAL_THREAD_CHECK): Use pthread_equal.
1657
1658 2007-01-24 Kim F. Storm <storm@cua.dk>
1659
1660 * keymap.c (describe_map): Don't consider prefix keys to be shadowed.
1661
1662 2007-01-23 Juanma Barranquero <lekktu@gmail.com>
1663
1664 * editfns.c (Finsert_char): Doc fix.
1665 (Fget_internal_run_time, Fdecode_time): Fix typos in docstrings.
1666
1667 2007-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1668
1669 * macselect.c [TARGET_API_MAC_CARBON] (mac_do_receive_drag):
1670 Don't pass keyboard modifiers to mac_store_drag_event, but put
1671 them as kEventParamKeyModifiers Apple event parameter.
1672
1673 2007-01-21 Chong Yidong <cyd@stupidchicken.com>
1674
1675 * xdisp.c (try_window): Revert previous change.
1676
1677 * dispnew.c (update_text_area): Revert 2006-09-17 change.
1678 Always redraw non-mode-line rows with mouse-face.
1679
1680 2007-01-20 Chong Yidong <cyd@stupidchicken.com>
1681
1682 * xdisp.c (try_window): Clear mouse-face highlights first.
1683
1684 * window.c (set_window_buffer): Revert 2006-11-22 change.
1685
1686 2007-01-20 Eli Zaretskii <eliz@gnu.org>
1687
1688 * .gdbinit (ppt, xtype, xmisctype, xint, xptr, xmarker, xframe)
1689 (xbuffer, xcons, xcar, xcdr): Fix doc strings.
1690
1691 2007-01-20 Chong Yidong <cyd@stupidchicken.com>
1692
1693 * keyboard.c (read_key_sequence): Extract local map only if the
1694 given position is in an accessible buffer region.
1695
1696 2007-01-19 Nick Roberts <nickrob@snap.net.nz>
1697
1698 * .gdbinit: Reformat documentation so that first sentence
1699 displays properly with "help user-defined" (like apropos).
1700
1701 2007-01-18 Bruno Haible <bruno@clisp.org> (tiny change)
1702
1703 * epaths.in: Move PATH_DOC from local/info to local/share/info.
1704
1705 2007-01-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1706
1707 * macmenu.c (create_and_show_dialog) [TARGET_API_MAC_CARBON]:
1708 Create movable modal window instead of movable alert window.
1709 (create_and_show_dialog) [!MAC_OSX]: Use DeactivateControl instead
1710 of DisableControl.
1711
1712 * macselect.c (Fmac_resume_apple_event): Set error number when
1713 descriptor type of reply is non-null.
1714
1715 2007-01-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1716
1717 * macmenu.c (create_and_show_dialog) [TARGET_API_MAC_CARBON]:
1718 Use DisableControl for disabled items. Set default button to first
1719 enabled one. Use icon of application in execution.
1720
1721 2007-01-13 Eli Zaretskii <eliz@gnu.org>
1722
1723 * process.c (Fdelete_process, Fprocess_id, sigchld_handler):
1724 Copy PID into EMACS_INT to avoid GCC warnings.
1725
1726 * fns.c (maybe_resize_hash_table): Copy new size of hash table
1727 into EMACS_INT to avoid GCC warnings.
1728
1729 * editfns.c (Fuser_uid, Fuser_real_uid): Copy values returned by
1730 geteuid and getuid into EMACS_INT to avoid GCC warnings.
1731
1732 * dired.c (Ffile_attributes): Fix last change.
1733
1734 2007-01-12 Eli Zaretskii <eliz@gnu.org>
1735
1736 * dired.c (Ffile_attributes): Copy some members of `struct stat'
1737 into int's to avoid GCC warnings about limited range of short in
1738 arguments to FIXNUM_OVERFLOW_P.
1739
1740 2007-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1741
1742 * macmenu.c (HAVE_DIALOGS): Define if TARGET_API_MAC_CARBON.
1743 (mac_handle_dialog_event, install_dialog_event_handler)
1744 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: New functions.
1745 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
1746 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH)
1747 (DIALOG_MAX_INNER_WIDTH, DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
1748 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
1749 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
1750 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
1751 (DIALOG_ICON_TOP_MARGIN) [TARGET_API_MAC_CARBON]: New macros.
1752 (mac_dialog) [TARGET_API_MAC_CARBON]: Remove function.
1753 (mac_dialog_show) [TARGET_API_MAC_CARBON]: Use create_and_show_dialog.
1754
1755 * macterm.c (x_free_frame_resources) [USE_CG_DRAWING]:
1756 Call mac_prepare_for_quickdraw.
1757 (quit_char, make_ctrl_char) [TARGET_API_MAC_CARBON]: Move externs
1758 outside #ifdef MAC_OSX.
1759 (mac_quit_char_key_p) [TARGET_API_MAC_CARBON]: Move function
1760 outside #ifdef MAC_OSX.
1761 (mac_check_bundle) [MAC_OSX]: Remove unused function.
1762
1763 * macterm.h (mac_quit_char_key_p): Move extern outside #ifdef MAC_OSX.
1764 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Parenthesize definitions.
1765
1766 2007-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1767
1768 * alloc.c (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Use pthread_equal,
1769 block/unblock SIGIO.
1770
1771 2007-01-10 Stefan Monnier <monnier@iro.umontreal.ca>
1772
1773 * editfns.c (Fformat): Allow integer-format to work with floats of size
1774 larger than most-positive-fixnum (but still smaller than MAXINT).
1775
1776 * dired.c (Ffile_attributes): Use floats for large uids/gids.
1777
1778 2007-01-09 Eli Zaretskii <eliz@gnu.org>
1779
1780 * emacs.c (syms_of_emacs) <path-separator>: Doc fix.
1781
1782 2007-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1783
1784 * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Add BLOCK_INPUT
1785 around mkstemp.
1786
1787 * image.c (XDrawLine) [MAC_OS]: Remove macro.
1788 (XCreateGC_pixmap) [!HAVE_NTGUI]: Likewise.
1789 (x_disable_image) [!HAVE_NTGUI]: Use XCreateGC instead of
1790 XCreateGC_pixmap.
1791
1792 * macgui.h (Display): Typedef to opaque type.
1793
1794 * macmenu.c (mac_dialog_modal_filter) [MAC_OSX]: New function.
1795 (Fx_popup_dialog) [MAC_OSX]: Use standard alert if called from
1796 Fmessage_box, Fyes_or_no_p, or Fy_or_n_p.
1797 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030] (menu_quit_handler):
1798 Use mac_quit_char_key_p.
1799
1800 * macterm.c (XDrawLine): Rename from mac_draw_line_to_pixmap.
1801 (XCreateGC): Change type of 2nd argument to void *.
1802 (XFreeGC) [USE_CG_DRAWING && MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
1803 Fix last change.
1804 (mac_to_emacs_modifiers): Change return type to int.
1805 [USE_CARBON_EVENTS] (mac_event_to_emacs_modifiers): Likewise.
1806 (mac_mapped_modifiers): New function.
1807 (XTread_socket): Use it.
1808 [USE_TSM] (mac_handle_text_input_event): Likewise.
1809 (do_window_update) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
1810 (mac_quit_char_modifiers, mac_quit_char_keycode) [MAC_OSX]:
1811 Remove variables.
1812 (mac_determine_quit_char_modifiers, init_quit_char_handler)
1813 [MAC_OSX]: Remove functions.
1814 (make_ctrl_char) [MAC_OSX]: Add extern.
1815 (mac_quit_char_key_p) [MAC_OSX]: New function.
1816 (mac_initialize) [MAC_OSX]: Don't call init_quit_char_handler.
1817
1818 * macterm.h (FONT_MAX_WIDTH): Remove unused macro.
1819 (XCreateGC): Change type in extern.
1820 (XDrawLine): Rename from mac_draw_line_to_pixmap.
1821 (mac_quit_char_key_p) [MAC_OSX]: Add extern.
1822
1823 2007-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1824
1825 * keyboard.c (init_keyboard): Initialize interrupt_input_blocked and
1826 interrupt_input_pending.
1827
1828 * xterm.h (x_display_info): New: net_supported_atoms,
1829 nr_net_supported_atoms and net_supported_window.
1830
1831 * xterm.c (last_user_time): New variable.
1832 (handle_one_xevent): Set last_user_time from events that have Time.
1833 Set net_supported_window to 0 when reparented.
1834 (wm_supports): New function.
1835 (do_ewmh_fullscreen): Use wm_supports to check for _NET_WM_STATE.
1836 (x_term_init): Initialize net_supported_atoms, nr_net_supported_atoms
1837 and net_supported_window.
1838
1839 2007-01-05 Kim F. Storm <storm@cua.dk>
1840
1841 * indent.c (Fvertical_motion): Fix it overshoot check for overlay
1842 strings without embedded newlines immediately followed by newline.
1843
1844 2007-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1845
1846 * editfns.c (Fformat_time_string, Fdecode_time, Fencode_time)
1847 (Fcurrent_time_string, Fcurrent_time_zone): Add BLOCK_INPUT around
1848 gmtime/localtime/emacs_memftimeu/mktime.
1849
1850 * mac.c (Fmac_set_file_creator): Use MAC_EMACS_CREATOR_CODE
1851 instead of 'EMAx'.
1852 [!MAC_OSX] (sys_open, sys_creat, sys_fopen): Likewise.
1853
1854 * macgui.h (struct _XGC) [USE_CG_DRAWING
1855 && MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New members cg_fore_color
1856 and cg_back_color.
1857
1858 * macmenu.c (Vshow_help_function) [TARGET_API_MAC_CARBON]: Add extern.
1859 (restore_show_help_function, menu_target_item_handler)
1860 [TARGET_API_MAC_CARBON]: New functions.
1861 (install_menu_target_item_handler): New function.
1862 (add_menu_item) [TARGET_API_MAC_CARBON]: Set help string as menu
1863 item property.
1864
1865 * macterm.c (CG_SET_FILL_COLOR_MAYBE_WITH_CGCOLOR)
1866 (CG_SET_FILL_COLOR_WITH_GC_FOREGROUND)
1867 (CG_SET_FILL_COLOR_WITH_GC_BACKGROUND)
1868 (CG_SET_STROKE_COLOR_MAYBE_WITH_CGCOLOR)
1869 (CG_SET_STROKE_COLOR_WITH_GC_FOREGROUND): New macros.
1870 (mac_cg_color_space_rgb) [USE_CG_DRAWING]: New variable.
1871 (mac_cg_color_black) [USE_CG_DRAWING
1872 && MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New variable.
1873 (init_cg_color) [USE_CG_DRAWING]: New function.
1874 (mac_draw_line, mac_draw_rectangle) [USE_CG_DRAWING]: Use
1875 CG_SET_STROKE_COLOR_WITH_GC_FOREGROUND instead of CG_SET_STROKE_COLOR.
1876 (mac_erase_rectangle, mac_clear_window, mac_draw_cg_image)
1877 (mac_fill_rectangle, mac_draw_image_string_cg) [USE_CG_DRAWING]:
1878 Use CG_SET_FILL_COLOR_WITH_GC_FOREGROUND or
1879 CG_SET_FILL_COLOR_WITH_GC_BACKGROUND instead of CG_SET_FILL_COLOR.
1880 (mac_draw_string_common) [MAC_OSX && USE_ATSUI]: Likewise.
1881 (XCreateGC, XFreeGC, XSetForeground, XSetBackground) [USE_CG_DRAWING
1882 && MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Use gc->cg_fore_color and/or
1883 gc->cg_back_color.
1884 (install_drag_handler, remove_drag_handler): Make extern.
1885 (install_menu_target_item_handler): Add extern.
1886 (install_window_handler): Call install_menu_target_item_handler.
1887 [MAC_OS8] (main): Use MAC_EMACS_CREATOR_CODE instead of 'EMAx'.
1888 (mac_initialize) [USE_CG_DRAWING]: Call init_cg_color.
1889
1890 * macterm.h (MAC_EMACS_CREATOR_CODE): New enumerator.
1891
1892 2007-01-04 Juanma Barranquero <lekktu@gmail.com>
1893
1894 * window.c (Fwindow_end): Fix use of >= operator.
1895
1896 2007-01-03 Richard Stallman <rms@gnu.org>
1897
1898 * window.c (Fwindow_end): Check BUF_OVERLAY_MODIFF like BUF_MODIFF.
1899
1900 2007-01-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1901
1902 * gtkutil.h (xg_menu_item_cb_data_): Remove highlight_id and
1903 unhighlight_id.
1904
1905 * gtkutil.c (menuitem_highlight_callback): Invoked widget is the
1906 parent of the menu item. Get menu item widget from event.
1907 (xg_create_one_menuitem, xg_update_menu_item): highlight_id and
1908 unhighlight_id has been removed.
1909 (create_menus): Connect enter/leave-notify-event to the menu instead
1910 of individual items.
1911
1912 2006-12-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1913
1914 * gtkutil.c (update_frame_tool_bar): Connect create-menu-proxy with
1915 xg_tool_bar_menu_proxy.
1916 (xg_tool_bar_menu_proxy): New function.
1917 (xg_tool_bar_proxy_callback): New function.
1918
1919 2006-12-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1920
1921 * gtkutil.c (xg_tool_bar_button_cb): Save last modifier on widget.
1922 (xg_tool_bar_callback): Remove check for button.
1923 (update_frame_tool_bar): Put an event box in the tool bar and a button
1924 in the event box. Attach enter/leave-notify-event to the event box.
1925
1926 2006-12-30 Richard Stallman <rms@gnu.org>
1927
1928 * keymap.c (Fdefine_key): Doc fix.
1929
1930 2006-12-29 Kim F. Storm <storm@cua.dk>
1931
1932 * frame.h (struct frame): New member minimize_tool_bar_window_p.
1933
1934 * xdisp.c (auto_resize_tool_bars_p): Replace with ...
1935 (Vauto_resize_tool_bars): ... this.
1936 (syms_of_xdisp): DEFVAR_LISP and initialize it. Update doc string
1937 to describe new value `grow-only', and use of C-l.
1938 (display_tool_bar_line): Only use default face for border below
1939 toolbar if not grow-only (to get acceptable visual appearence).
1940 Explicitly set visible_height for empty toolbar lines.
1941 (redisplay_tool_bar): Handle `grow-only' setting. Check and clear
1942 minimize_tool_bar_window_p flag.
1943
1944 * window.c (Frecenter): Set minimize_tool_bar_window_p flag
1945 when called without arg to redraw with minimum toolbar height.
1946 Update doc string.
1947
1948 2006-12-29 Jason Rumney <jasonr@gnu.org>
1949
1950 * s/ms-w32.h (tzname): Do not define in msvc8.
1951 (utime): Do not define in msvc8.
1952
1953 * regex.c (regerror): Change parameter name err_code.
1954
1955 2006-12-26 Richard Stallman <rms@gnu.org>
1956
1957 * search.c (Fsearch_forward): Doc fix.
1958
1959 * callint.c (Finteractive): Doc fix.
1960
1961 2006-12-25 Kim F. Storm <storm@cua.dk>
1962
1963 * s/ms-w32.h (BROKEN_DATAGRAM_SOCKETS): Define it.
1964
1965 2006-12-23 Eli Zaretskii <eliz@gnu.org>
1966
1967 * keyboard.c (some_mouse_moved): Fix last change.
1968
1969 2006-12-22 Eli Zaretskii <eliz@gnu.org>
1970
1971 * callproc.c (syms_of_callproc) <shell-file-name>: Doc fix.
1972
1973 2006-12-22 Mark Davies <mark@mcs.vuw.ac.nz>
1974
1975 * m/amdx86-64.h, m/hp800.h: Add support for NetBSD.
1976 * m/sh3el.h: New file.
1977
1978 2006-12-22 Eli Zaretskii <eliz@gnu.org>
1979
1980 * makefile.w32-in (emacs, temacs): Depend on stamp_BLD instead of
1981 $(BLD).
1982 ($(OBJ0) $(OBJ1) $(WIN32OBJ)): New dependency on stamp_BLD.
1983 (bootstrap-temacs): Pass $(XMFLAGS) to sub-make.
1984 ($(OBJ0) $(OBJ1) $(WIN32OBJ)): Add lastfile.$(O) and firstfile.$(O).
1985 (clean): Delete stamp_BLD.
1986
1987 2006-12-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1988
1989 * macfns.c (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
1990 Call mac_update_proxy_icon also when buffer modification flag changed.
1991 [TARGET_API_MAC_CARBON] (mac_update_proxy_icon): Don't update alias,
1992 but compare FSRef/FSSpec of resolved alias.
1993
1994 2006-12-21 Kim F. Storm <storm@cua.dk>
1995
1996 * w32.c (_sys_wait_accept): Fix handle leak.
1997
1998 2006-12-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1999
2000 * sound.c: Include <alsa/asoundlib.h> if ALSA_SUBDIR_INCLUDE is
2001 defined.
2002
2003 2006-12-20 Kim F. Storm <storm@cua.dk>
2004
2005 * s/ms-w32.h (BROKEN_NON_BLOCKING_CONNECT): Define it.
2006
2007 2006-12-19 Juanma Barranquero <lekktu@gmail.com>
2008
2009 * keyboard.c (syms_of_keyboard) <double-click-time>:
2010 * mac.c (Fmac_code_convert_string):
2011 * search.c (Fsearch_forward): Doc fixes.
2012
2013 2006-12-19 Kim F. Storm <storm@cua.dk>
2014
2015 Rework 2006-12-04 change. A SIGUSR1 (SIGUSR2) signal now generates
2016 a sigusr1 event instead of [signal usr1] sequence, and signal events
2017 are now supposed to be handled via special-event-map.
2018
2019 * keyboard.c (kbd_buffer_store_event_hold): Undo 2006-12-04 change.
2020 (make_lispy_event): Don't generate Qsignal prefix for code 0.
2021 Abort if signal code is unknown.
2022 (store_user_signal_events): Don't make Qsignal prefix (code 0).
2023 (Qsignal): Move declaration back to process.c.
2024 (syms_of_keyboard): Don't intern or staticpro it here.
2025
2026 * process.c (Qsignal): Declare here.
2027 (syms_of_process): Intern or staticpro it.
2028
2029 * emacs.c (main): Rename user signals to sigusr1 and sigusr2.
2030
2031 * .gdbinit: Pass on SIGUSR1 and SIGUSR2 to Emacs.
2032
2033 2006-12-19 Juanma Barranquero <lekktu@gmail.com>
2034
2035 * buffer.c (syms_of_buffer) <buffer-display-table>:
2036 <scroll-up-aggressively, scroll-down-aggressively>: Doc fixes.
2037
2038 2006-12-17 Richard Stallman <rms@gnu.org>
2039
2040 * fileio.c (Fread_file_name_internal): Pass Vread_file_name_predicate
2041 to Ffile_name_completion.
2042
2043 * dired.c (file_name_completion): New arg PREDICATE. Some cleanup.
2044 (Ffile_name_completion): New arg PREDICATE.
2045
2046 2006-12-17 Juanma Barranquero <lekktu@gmail.com>
2047
2048 * buffer.c (Fkill_buffer): Doc fix.
2049 (syms_of_buffer) <kill-buffer-query-functions>: Doc fix.
2050
2051 2006-12-16 Juanma Barranquero <lekktu@gmail.com>
2052
2053 * minibuf.c (Ftry_completion): Check that obarray buckets are symbols.
2054
2055 2006-12-16 Eli Zaretskii <eliz@gnu.org>
2056
2057 * w32fns.c (w32-window-exists-p): New function.
2058 (syms_of_w32fns): Defsubr it.
2059
2060 * prefix-args.c [STDC_HEADERS]: Include stdlib.h.
2061
2062 2006-12-16 Juanma Barranquero <lekktu@gmail.com>
2063
2064 * minibuf.c (Ftry_completion): Use `check_obarray' if ALIST is a vector.
2065
2066 2006-12-15 Eli Zaretskii <eliz@gnu.org>
2067
2068 * emacs.c (USAGE3): Clarify documentation of --color.
2069
2070 2006-12-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2071
2072 * mac.c (wakeup_from_rne_enabled_p) [TARGET_API_MAC_CARBON]:
2073 New variable.
2074 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE): New macros.
2075 [!MAC_OSX] (select): Use them.
2076 [MAC_OSX] (select_and_poll_event, sys_select): Likewise.
2077 (mac_wakeup_from_rne) [TARGET_API_MAC_CARBON]: New function.
2078
2079 * macfns.c (mac_atsu_font_face_attributes) [USE_ATSUI]: Add extern.
2080 (Fmac_atsu_font_face_attributes) [USE_ATSUI]: New function.
2081 (syms_of_macfns) [USE_ATSUI]: Defsubr it.
2082
2083 * macselect.c [TARGET_API_MAC_CARBON] (mac_do_receive_drag):
2084 Use mac_wakeup_from_rne instead of mac_post_mouse_moved_event.
2085
2086 * macterm.c (mac_query_char_extents) [USE_ATSUI]: Don't call
2087 ATSUGetGlyphBounds if not necessary.
2088 (Vmac_atsu_font_table) [USE_ATSUI]: Remove variable.
2089 (syms_of_macterm) [USE_ATSUI]: Don't defvar it.
2090 (fm_get_style_from_font, atsu_find_font_from_family_name)
2091 (atsu_find_font_family_name, mac_atsu_font_face_attributes)
2092 [USE_ATSUI]: New functions.
2093 (init_font_name_table) [USE_ATSUI]: Use atsu_find_font_family_name.
2094 (mac_load_query_font) [USE_ATSUI]: Use atsu_find_font_from_family_name.
2095 Don't get metrics for Latin-1 right half characters.
2096 (mac_load_query_font): Don't load font if space width is not positive.
2097 [TARGET_API_MAC_CARBON] (mac_store_event_ref_as_apple_event):
2098 Use mac_wakeup_from_rne instead of mac_post_mouse_moved_event.
2099 (XTread_socket): Call SelectWindow when unfocused frame is clicked.
2100
2101 * macterm.h (mac_wakeup_from_rne) [TARGET_API_MAC_CARBON]: Add extern.
2102
2103 2006-12-15 Kim F. Storm <storm@cua.dk>
2104
2105 * keyboard.c (ignore_mouse_drag_p): New global var.
2106 (some_mouse_moved): Return 0 if it is non-zero.
2107 (make_lispy_event): Generate click event on mouse up if
2108 ignore_mouse_drag_p is non-zero, even if mouse moved.
2109 Clear ignore_mouse_drag_p on mouse down/up.
2110
2111 * xdisp.c (redisplay_window): Set ignore_mouse_drag_p if tool-bar
2112 is resized to avoid generating a mouse drag event.
2113
2114 2006-12-14 Juanma Barranquero <lekktu@gmail.com>
2115
2116 * w32fns.c (w32_wnd_proc): Force non-tooltip frames to respect the
2117 minimum tracking size. Remove non-working old hack to do the same.
2118
2119 2006-12-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2120
2121 * emacs.c (handle_user_signal): Move function to keyboard.c.
2122 (main): Use add_user_signal for SIGUSR1 and SIGUSR2.
2123
2124 * keyboard.c (make_lispy_event): Use find_user_signal_name.
2125 (read_avail_input): Store pending user signal events.
2126 (struct user_signal_info): New struct.
2127 (user_signals): New variable.
2128 (add_user_signal, store_user_signal_events)
2129 (find_user_signal_name): New functions.
2130 (handle_user_signal): Move function from emacs.c. Don't store
2131 USER_SIGNAL_EVENT here, but increment number of pending signals.
2132
2133 * keyboard.h (add_user_signals): Add extern.
2134
2135 2006-12-11 Juanma Barranquero <lekktu@gmail.com>
2136
2137 * buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
2138 <default-scroll-up-aggressively, default-scroll-down-aggressively>:
2139 <line-spacing, left-margin>: Doc fixes.
2140
2141 * xdisp.c (syms_of_xdisp) <mode-line-inverse-video>: Doc fix.
2142
2143 2006-12-10 Kim F. Storm <storm@cua.dk>
2144
2145 * xdisp.c (show_mouse_face): Never use text cursor in tool-bar.
2146
2147 2006-12-10 Juanma Barranquero <lekktu@gmail.com>
2148
2149 * abbrev.c (syms_of_abbrev) <last-abbrev-text>:
2150 * buffer.c (syms_of_buffer) <default-major-mode>:
2151 * keymap.c (Flookup_key):
2152 * lread.c (Feval_buffer, Feval_region):
2153 * macterm.c (syms_of_macterm) <x-use-underline-position-properties>:
2154 <x-underline-at-descent-line, mac-emulate-three-button-mouse>:
2155 * marker.c (Fmarker_insertion_type):
2156 * minibuf.c (syms_of_minibuf) <minibuffer-completion-table>:
2157 * msdos.c (syms_of_msdos) <delete-exited-processes>:
2158 * w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
2159 <x-underline-at-descent-line>:
2160 * xdisp.c (format-mode-line):
2161 * xterm.c (syms_of_xterm) <x-use-underline-position-properties>:
2162 <x-underline-at-descent-line>: Doc fixes.
2163
2164 2006-12-10 Andreas Schwab <schwab@suse.de>
2165
2166 * systime.h (EMACS_GET_TIME): Remove check for
2167 HAVE_STRUCT_TIMEZONE which is never defined.
2168
2169 2006-12-10 Alan Mackenzie <acm@muc.de>
2170
2171 * syntax.c (Fpartial_parse_sexp): Correct Docco: Elt 8 of the
2172 result is now neither the last elt nor optional for OLDSTATE.
2173
2174 2006-12-09 Eli Zaretskii <eliz@gnu.org>
2175
2176 * process.c (Fsignal_process): Doc fix. Use XFLOAT_DATA to
2177 extract the process ID from a Lisp float.
2178
2179 2006-12-09 Chong Yidong <cyd@stupidchicken.com>
2180
2181 * xterm.c (XTframe_raise_lower): Comment out _NET_ACTIVE_WINDOW code.
2182
2183 2006-12-08 Eli Zaretskii <eliz@gnu.org>
2184
2185 * frame.h (PIX_TYPE): Redefine as `unsigned long', for 64-bit
2186 platforms where long is 64-bit.
2187
2188 * msdos.h (PIX_TYPE): Redefine as `unsigned long'.
2189
2190 2006-12-08 NAKAJI Hiroyuki <nakaji@jp.freebsd.org> (tiny change)
2191
2192 * m/amdx86-64.h: Add support for Solaris 10 on x86-64.
2193
2194 2006-12-08 Kenichi Handa <handa@m17n.org>
2195
2196 * xterm.c (x_query_font): Use xstricmp instead off strcasecmp.
2197
2198 2006-12-08 Juanma Barranquero <lekktu@gmail.com>
2199
2200 * emacs.c (syms_of_emacs) <system-type>: Doc fix.
2201
2202 2006-12-07 Kim F. Storm <storm@cua.dk>
2203
2204 * process.c (parse_signal): Use xstricmp instead of strcasecmp.
2205 (Fsignal_process): Don't use strncasecmp.
2206
2207 2006-12-05 Glenn Morris <rgm@gnu.org>
2208
2209 * abbrev.c (Qforce): New Lisp_Object.
2210 (Fdefine_abbrev): Do not overwrite non-system abbrevs with system
2211 abbrevs, unless 'force is applied.
2212 (syms_of_abbrev): Add Qforce.
2213
2214 2006-12-04 Kim F. Storm <storm@cua.dk>
2215
2216 * process.c (parse_signal): Rename macro from handle_signal.
2217 (Fsignal_process): Also accept lower-case variants of signal
2218 names (to align with signal names generated by Emacs itself).
2219
2220 * emacs.c (handle_USR1_signal, handle_USR2_signal): Replace by...
2221 (handle_user_signal): ... this, which generates two USER_SIGNAL_EVENTs
2222 first with code == 0 [signal] and one with code == sig number.
2223 (main): Use it as handler for SIGUR1 and SIGUSR2.
2224
2225 * keyboard.c (kbd_buffer_store_event_hold): Don't throw-on-input
2226 if first event in [signal xxx] sequence.
2227 (lispy_user_signals, Qusr1_signal, Qusr2_signal): Remove.
2228 (syms_of_keyboard): Don't intern and staticpro them.
2229 (Qsignal): Declare here.
2230 (syms_of_keyboard): Intern and staticpro it.
2231 (make_lispy_event): Use it. Intern symbols on the fly for other
2232 USER_SIGNAL_EVENTs events.
2233
2234 * process.c (Qsignal): Declare extern.
2235 (syms_of_process): Don't intern/staticpro it here.
2236
2237 * process.c (read_process_output): Abort if carryover < 0.
2238
2239 2006-12-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2240
2241 * config.in: Regenerate.
2242
2243 * fileio.c [__NetBSD__]: Don't define `unix'.
2244 (Funix_sync, syms_of_fileio): Use `#ifdef HAVE_SYNC' instead of
2245 `#ifdef unix'.
2246
2247 2006-12-04 Glenn Morris <rgm@gnu.org>
2248
2249 * Makefile.in (version): New variable, set by configure.
2250 (bootstrapclean, mostlyclean): Also remove emacs-${version}.
2251
2252 2006-12-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2253
2254 * gtkutil.c (update_frame_tool_bar): Handle modifying a toolbar item
2255 without an image.
2256
2257 2006-12-01 Eli Zaretskii <eliz@gnu.org>
2258
2259 * w32fns.c (Fw32_shell_execute): Doc fix.
2260
2261 2006-11-30 Chong Yidong <cyd@stupidchicken.com>
2262
2263 * xdisp.c (move_it_to): Correctly count tab glyphs for continued
2264 lines ending in tab.
2265
2266 2006-11-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2267
2268 * xterm.c (x_raise_frame): Move setting of _NET_ACTIVE_WINDOW
2269 property ...
2270 (XTframe_raise_lower): ... to here.
2271
2272 2006-11-30 Kenichi Handa <handa@m17n.org>
2273
2274 * regex.c (regex_compile): Fix previous change.
2275
2276 2006-11-29 Juanma Barranquero <lekktu@gmail.com>
2277
2278 * sound.c (Fplay_sound_internal): Remove spurious newline in docstring.
2279
2280 2006-11-28 Chong Yidong <cyd@stupidchicken.com>
2281
2282 * config.in: Regenerate.
2283
2284 2006-11-28 Kenichi Handa <handa@m17n.org>
2285
2286 * regex.c (regex_compile): Don't call SET_LIST_BIT with a
2287 multibyte character.
2288
2289 2006-11-27 Chong Yidong <cyd@stupidchicken.com>
2290
2291 * s/aix4-2.h: Undefine _NO_PROTO. Suggested by Joe Buehler.
2292
2293 2006-11-27 Kim F. Storm <storm@cua.dk>
2294
2295 * window.c (set_window_buffer): Refactor recent changes.
2296
2297 2006-11-27 Jason Rumney <jasonr@gnu.org>
2298
2299 * w32term.c (w32_msg_worker): Declare correctly.
2300 (w32_initialize): Don't cast w32_msg_worker.
2301
2302 * w32fns.c (w32_msg_worker): Define as WINAPI and arg as void pointer.
2303
2304 2006-11-26 Chong Yidong <cyd@stupidchicken.com>
2305
2306 * m/amdx86-64.h: Look for standard libs in /usr/lib64 only if that
2307 directory exists.
2308
2309 2006-11-25 Eli Zaretskii <eliz@gnu.org>
2310
2311 * w16select.c (Fw16_set_clipboard_data): Fix the call to sit_for
2312 as per the calling sequence change on 2006-07-11.
2313
2314 2006-11-25 Chong Yidong <cyd@stupidchicken.com>
2315
2316 * window.c (set_window_buffer): Use BLOCK_INPUT.
2317
2318 2006-11-24 Juanma Barranquero <lekktu@gmail.com>
2319
2320 * fns.c (substring_both): Add missing address operator.
2321
2322 2006-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
2323
2324 * fns.c: Use AREF/ASIZE macros.
2325 (concat): Provide the full ANSI prototype.
2326
2327 2006-11-24 Juanma Barranquero <lekktu@gmail.com>
2328
2329 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
2330
2331 2006-11-23 William Smith <William.Smith@global360.com> (tiny change)
2332
2333 * strftime.c (HAVE_SYS__MBSTATE_T_H): Fix typo.
2334
2335 2006-11-22 Alfred M. Szmidt <ams@gnu.org> (tiny change)
2336
2337 * s/openbsd.h (LD_SWITCH_SYSTEM): Remove /usr/pkg/lib and
2338 /usr/pkg/lib from the library search path.
2339 (LD_SWITCH_X_DEFAULT): New macro.
2340
2341 2006-11-22 Chong Yidong <cyd@stupidchicken.com>
2342
2343 * window.c (set_window_buffer): Clear mouse highlight if it is in
2344 this window.
2345
2346 2006-11-21 Chong Yidong <cyd@stupidchicken.com>
2347
2348 * xfaces.c (realize_default_face): Check if the default font name
2349 exists on this display before trying to use it.
2350
2351 2006-11-21 Richard Stallman <rms@gnu.org>
2352
2353 * fileio.c: Break line before &&, not after.
2354
2355 2006-11-20 Eli Zaretskii <eliz@gnu.org>
2356
2357 * fns.c (concat) [!__GNUC__]: Add prototype.
2358
2359 2006-11-20 Kenichi Handa <handa@m17n.org>
2360
2361 * fileio.c (Fread_file_name_internal): Use SBYTES (not SCHARS) to
2362 check the tailing slash of a filename.
2363
2364 2006-11-20 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp> (tiny change)
2365
2366 * indent.c (Fvertical_motion): Include composition in the case of
2367 overshoot expected.
2368
2369 2006-11-19 Andreas Schwab <schwab@gnu.org>
2370
2371 * xfaces.c (Fdisplay_supports_face_attributes_p): Initialize supports.
2372
2373 * xmenu.c (Fx_popup_menu): Initialize selection.
2374
2375 2006-11-18 Andreas Schwab <schwab@suse.de>
2376
2377 * s/gnu-linux.h (GC_MARK_SECONDARY_STACK): Update call to mark_memory.
2378
2379 2006-11-17 Tetsurou Okazaki <okazaki@be.to> (tiny change)
2380
2381 * xterm.c (do_ewmh_fullscreen): Declare variable before XSETFRAME
2382 to avoid gcc 2.96 error.
2383
2384 2006-11-17 NIIMI Satoshi <sa2c@sa2c.net> (tiny change)
2385
2386 * search.c (simple_search): In the loop of backward searching,
2387 check also the byte position against the limit.
2388
2389 2006-11-14 Romain Francoise <romain@orebokech.com>
2390
2391 * minibuf.c (Fcompleting_read): Fix typo in docstring.
2392
2393 2006-11-14 Kenichi Handa <handa@m17n.org>
2394
2395 * coding.c (code_convert_region): Initialize coding->heading_ascii.
2396 (decode_coding_string, code_convert_region): Likewise.
2397
2398 2006-11-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2399
2400 * config.in: Regenerate.
2401
2402 * macfns.c (Fx_display_mm_height, Fx_display_mm_width)
2403 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030
2404 && MAC_OS_X_VERSION_MIN_REQUIRED == 1020]: Check if
2405 CGDisplayScreenSize is available.
2406
2407 * macmenu.c (menu_quit_handler, install_menu_quit_handler):
2408 Replace `#ifdef HAVE_CANCELMENUTRACKING' with
2409 `#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1030'.
2410 (install_menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030
2411 && MAC_OS_X_VERSION_MIN_REQUIRED == 1020]: Check if
2412 CancelMenuTracking is available.
2413
2414 * macterm.c [USE_CG_TEXT_DRAWING] (mac_draw_image_string_cg)
2415 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030
2416 && MAC_OS_X_VERSION_MIN_REQUIRED == 1020]: Check if
2417 CGContextShowGlyphsWithAdvances is available.
2418
2419 2006-11-13 Jason Rumney <jasonr@gnu.org>
2420
2421 * s/ms-w32.h: Define HAVE_INET_SOCKETS.
2422
2423 2006-11-13 Nozomu Ando <nand@mac.com>
2424
2425 * alloc.c (mark_memory): New argument OFFSET. All uses changed.
2426 Fix address calculations for case END < START.
2427 (mark_stack): Impose Lisp_Object alignment on jmp_buf.
2428
2429 2006-11-12 Juanma Barranquero <lekktu@gmail.com>
2430
2431 * coding.c (Fencode_sjis_char, Fencode_big5_char):
2432 Improve argument/docstring consistency.
2433
2434 * editfns.c (Fmessage): Doc fixes.
2435
2436 * process.c (syms_of_process) <delete-exited-processes>: Doc fix.
2437
2438 2006-11-12 Chong Yidong <cyd@stupidchicken.com>
2439
2440 * xmenu.c (popup_activated): Define outside HAVE_MENUS.
2441
2442 2006-11-12 Romain Francoise <romain@orebokech.com>
2443
2444 * xselect.c (selection-coding-system): Fix docstring.
2445
2446 2006-11-12 Juanma Barranquero <lekktu@gmail.com>
2447
2448 * category.c (Fchar_category_set): Improve arg/docstring consistency.
2449
2450 * data.c (Flogxor):
2451 * fns.c (Frandom, Flength, Fsafe_length, Fstring_bytes)
2452 (Fstring_equal, Fcompare_strings, Fstring_lessp, Fcopy_sequence)
2453 (Fstring_make_unibyte): Fix typos in docstrings.
2454
2455 2006-11-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2456
2457 * xterm.h (struct x_display_info): Fix indentation.
2458
2459 * xterm.c (do_ewmh_fullscreen, XTfullscreen_hook): New functions.
2460 (x_check_fullscreen): Call do_ewmh_fullscreen.
2461 (x_initialize): Set fullscreen_hook to XTfullscreen_hook.
2462
2463 * frame.c (x_set_fullscreen): Call fullscreen_hook if set.
2464
2465 * term.c: Define fullscreen_hook.
2466 (syms_of_term): Initialize fullscreen_hook to NULL.
2467
2468 * termhooks.h: Add fullscreen_hook.
2469
2470 2006-11-08 Juanma Barranquero <lekktu@gmail.com>
2471
2472 * bytecode.c (Fbyte_code):
2473 * data.c (Fmakunbound): Use SYMBOL_CONSTANT_P macro.
2474
2475 2006-11-06 Juanma Barranquero <lekktu@gmail.com>
2476
2477 * lread.c (syms_of_lread):
2478 * xsmfns.c (syms_of_xsmfns): Fix typo in docstring.
2479
2480 2006-11-06 Martin Rudalics <rudalics@gmx.at>
2481
2482 * macmenu.c (Fmenu_or_popup_active_p): Define outside HAVE_MENUS.
2483
2484 * w32menu.c (Fmenu_or_popup_active_p): Define outside HAVE_MENUS.
2485 Return nil if building without menus.
2486
2487 * xmenu.c (Fmenu_or_popup_active_p): Define outside HAVE_MENUS.
2488 Return nil if building without menus.
2489
2490 2006-11-05 Mark Davies <mark@mcs.vuw.ac.nz> (tiny change)
2491
2492 * s/netbsd.h (POSIX_SIGNALS): Define.
2493
2494 2006-11-05 Martin Rudalics <rudalics@gmx.at>
2495
2496 * macmenu.c (Fmenu_or_popup_active_p): New function.
2497 (syms_of_macmenu): Defsubr it.
2498
2499 * w32menu.c (Fmenu_or_popup_active_p): New function.
2500 (syms_of_w32menu): Defsubr it.
2501 (popup_activated_flag, popup_activated): Remove.
2502
2503 * xdisp.c (note_mouse_highlight) [HAVE_NTGUI]: Don't bother to
2504 check popup_activated.
2505
2506 * xmenu.c (Fmenu_or_popup_active_p): New function.
2507 (syms_of_xmenu): Defsubr it.
2508
2509 2006-11-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2510
2511 * unexmacosx.c (malloc_cookie): Remove unused variable.
2512 (region_list_head, region_list_tail, lca, nlc, infile_lc_highest_addr)
2513 (text_seg_lowest_offset, mh, curr_header_offset, infd, outfd)
2514 (emacs_zone, data_segment_old_fileoff, data_segment_scp)
2515 (num_unexec_regions, unexec_regions): Make variables static.
2516 (print_regions, find_emacs_zone_regions): Make static.
2517 (unexec_region_info): New typedef.
2518 (unexec_regions): Change type from vm_range_t[] to unexec_region_info[].
2519 All uses changed.
2520 (unexec_regions_recorder): Subtract size of trailing null pages from
2521 filesize. Show filesize.
2522 (unexec_regions_merge): Don't merge if null pages of preceding region
2523 is not too small. Use long format in printf.
2524 (copy_segment, copy_data_segment): Show filesize.
2525 (copy_data_segment): Write filesize bytes of region data.
2526 Adjust filesize in segment command accordingly.
2527 (dump_it): Use long format in printf.
2528
2529 2006-11-05 Juanma Barranquero <lekktu@gmail.com>
2530
2531 * dosfns.c (Finsert_startup_screen):
2532 * fns.c (Ffeaturep, syms_of_fns):
2533 * frame.c (syms_of_frame): Fix typos in docstrings.
2534
2535 * unexcw.c (unexec): Fix typo in output message.
2536
2537 2006-11-04 Ralf Angeli <angeli@caeruleus.net>
2538
2539 * w32fns.c (w32_createwindow): Remove code for handling -geometry
2540 command line option and `initial-frame-alist' which is superfluous
2541 after the last change to `w32_createwindow'.
2542
2543 2006-11-04 Slawomir Nowaczyk <slawek@cs.lth.se> (tiny change)
2544
2545 * w32proc.c (sys_wait): Only wait for processes with fd<0.
2546 Others should be handled by sys_select instead. Fixes problems
2547 with (progn (start-process "" nil "ls") (call-process "ls")).
2548
2549 2006-11-04 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
2550
2551 * xmenu.c (Fmenu_bar_open): Declare variable before BLOCK_INPUT to
2552 avoid gcc 2.95 error.
2553
2554 2006-11-04 Chong Yidong <cyd@stupidchicken.com>
2555
2556 * gtkutil.c (update_frame_tool_bar): If icon image is invalid and
2557 wicon is null, insert an empty button.
2558
2559 2006-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2560
2561 * xterm.c (x_raise_frame): Send _NET_ACTIVE_WINDOW when raising the
2562 window.
2563
2564 2006-11-02 Juanma Barranquero <lekktu@gmail.com>
2565
2566 * emacs.c (Fkill_emacs): Fix typo in docstring.
2567
2568 2006-11-02 Nozomu Ando <nand@mac.com>
2569
2570 * unexmacosx.c (mach_header, segment_command, vm_region, section)
2571 [_LP64]: New defines.
2572 (VM_REGION_BASIC_INFO_COUNT, VM_REGION_BASIC_INFO, LC_SEGMENT)
2573 (MH_MAGIC) [_LP64]: Redefine.
2574 (delta): Remove variable.
2575 (curr_file_offset, pagesize): New variables.
2576 (ROUNDUP_TO_PAGE_BOUNDARY): New macro.
2577 (data_segment_old_fileoff): Initialize explicitly.
2578 (print_region, unexec_regions_recorder, print_load_command_name)
2579 (copy_segment, copy_data_segment): Use long format in printf.
2580 (MAX_UNEXEC_REGIONS): Increase to 400.
2581 (unexec_regions_recorder): Don't warn too many regions here.
2582 (find_emacs_zone_regions): Warn too many regions here.
2583 (print_load_command_name) [_LP64]: Show correct load command name.
2584 (copy_segment, copy_data_segment): Use variable `curr_file_offset'.
2585 Show starting virtual memory address. Don't show ending file offset.
2586 (copy_symtab, copy_dysymtab, copy_twolevelhints): New argument DELTA.
2587 (dump_it): Use new local variable `linkedit_delta' and pass to them.
2588 Error if trying to handle multiple DATA segments.
2589 (unexec): Initialize variable `pagesize'.
2590
2591 2006-11-01 Juanma Barranquero <lekktu@gmail.com>
2592
2593 * eval.c (Fcatch): Doc fix.
2594
2595 2006-10-31 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2596
2597 * image.c [MAC_OS] (image_load_qt_1, xpm_scan, xpm_make_color_table_v)
2598 (xpm_put_color_table_v, xpm_get_color_table_v, xpm_make_color_table_h)
2599 (xpm_put_color_table_h, xpm_get_color_table_h, xpm_str_to_color_key)
2600 (xpm_load_image): Add const qualifier to arguments.
2601 [MAC_OS] (xpm_color_key_strings): Make static const.
2602
2603 * mac.c (create_apple_event_from_event_ref)
2604 (create_apple_event_from_drag_ref, skip_white_space, parse_comment)
2605 (parse_include_file, parse_binding, parse_component)
2606 (parse_resource_name, parse_value, parse_resource_line)
2607 (xrm_merge_string_database, xrm_get_resource)
2608 (xrm_get_preference_database): Add const qualifier to arguments.
2609 [MAC_OSX] (sys_select): Make variable `context' static const.
2610
2611 * macfns.c (mac_color_map): Make static const.
2612 (mac_color_map_lookup): Add const qualifier to arguments.
2613
2614 * macmenu.c (install_menu_quit_handler): Make variable `typesList'
2615 static const.
2616 (name_is_separator): Add const qualifier to arguments.
2617
2618 * macselect.c (init_service_handler): Make variable `specs' static
2619 const.
2620
2621 * macterm.c (mac_create_bitmap_from_bitmap_data): Make variable
2622 `swap_nibbles' static const.
2623 (atsu_get_text_layout_with_text_ptr): Make variables `lengths',
2624 `tags', `sizes', `values' static const.
2625 (mac_draw_string_common): Make variables `context' static.
2626 Make variables `tags', `sizes', and `values' static const.
2627 (pcm_get_status, x_detect_focus_change, x_scroll_bar_handle_click)
2628 (xlfdpat_create, xlfdpat_block_match_1, xlfdpat_match)
2629 (mac_to_x_fontname, parse_x_font_name, add_mac_font_name)
2630 (mac_do_list_fonts, is_fully_specified_xlfd, do_grow_window)
2631 (mac_store_event_ref_as_apple_event, mac_make_rdb): Add const
2632 qualifier to arguments.
2633 (xlfd_scalable_fields, keycode_to_xkeysym_table)
2634 (fn_keycode_to_keycode_table): Make static const.
2635 (mac_load_query_font): Make variables `tags', `sizes', `values',
2636 `types', and `selectors' static const.
2637 (mac_handle_command_event, mac_handle_window_event):
2638 Make variables `names' and `types' static const.
2639 (init_command_handler, install_window_handler): Make variables
2640 `specs*' static const.
2641 (mac_handle_font_event, mac_handle_text_input_event)
2642 (mac_store_service_event): Make variables `names' and `types'
2643 const. Make variables `names_*' and `types_*' static const.
2644
2645 * macterm.h (create_apple_event_from_event_ref)
2646 (create_apple_event_from_drag_ref, xrm_merge_string_database)
2647 (xrm_get_resource, xrm_get_preference_database): Add const
2648 qualifier to arguments in externs.
2649
2650 2006-10-31 Kenichi Handa <handa@m17n.org>
2651
2652 * xfns.c (xic_create_xfontset): Fix previous change.
2653
2654 2006-10-30 Chong Yidong <cyd@stupidchicken.com>
2655
2656 * s/openbsd.h (LD_SWITCH_SYSTEM): Add /usr/pkg/lib and
2657 /usr/pkg/lib to library search path.
2658
2659 2006-10-29 Mark Davies <mark@mcs.vuw.ac.nz> (tiny change)
2660
2661 * ralloc.c (relinquish): Use a long for excess space counter to
2662 handle 64-bit case correctly.
2663
2664 2006-10-29 Jeramey Crawford <jeramey@jeramey.com>
2665
2666 * m/amdx86-64.h: Add defines for OpenBSD x86-64.
2667
2668 2006-10-29 Juanma Barranquero <lekktu@gmail.com>
2669
2670 * window.c (Fdisplay_buffer): Fix typo in docstring.
2671
2672 2006-10-27 Ben North <ben@redfrontdoor.org> (tiny change)
2673
2674 * w32term.c (x_draw_glyph_string_foreground): Set background mode
2675 to TRANSPARENT before using overstrike to simulate bold faces.
2676
2677 * xfaces.c (best_matching_font): Fix logic to decide whether to
2678 use overstriking to simulate bold-face (it was reversed).
2679
2680 2006-10-23 Kim F. Storm <storm@cua.dk>
2681
2682 * xdisp.c (remember_mouse_glyph): Do nothing if glyphs are not
2683 initialized.
2684
2685 * keyboard.c (read_char): Make an element (t . EVENT) in
2686 unread-command-events add EVENT to the current command's key sequence.
2687 (syms_of_keyboard) <unread-command-events>: Update doc.
2688
2689 2006-10-21 Richard Stallman <rms@gnu.org>
2690
2691 * minibuf.c (Vread_expression_map): Define here.
2692 (Qread_expression_history): New variable.
2693 (syms_of_minibuf): Initialize them.
2694 (Feval_minibuffer): Use Vread_expression_map and
2695 Qread_expression_history.
2696
2697 2006-10-21 Kenichi Handa <handa@m17n.org>
2698
2699 * xfns.c (xic_create_fontsetname): If ADSTYLE field is not a wild
2700 card, change it to "*".
2701 (xic_create_xfontset): Call XCreateFontSet for each single
2702 fontname in fontsetname.
2703
2704 2006-10-19 Chong Yidong <cyd@stupidchicken.com>
2705
2706 * callint.c (callint_message): Convert to a Lisp string.
2707 (syms_of_callint): Initialize it.
2708 (callint_message_size): Var deleted.
2709 (Fcall_interactively): Use Fformat instead of doprnt to construct
2710 prompt string.
2711
2712 2006-10-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2713
2714 * xdisp.c (display_mode_line): Clear enabled_p flag on mode-line row.
2715
2716 2006-10-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2717
2718 * macfns.c (Vmac_carbon_version_string) [TARGET_API_MAC_CARBON]:
2719 New variable.
2720 (syms_of_macfns) [TARGET_API_MAC_CARBON]: Defvar it.
2721
2722 2006-10-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2723
2724 * xselect.c (x_handle_selection_request): If the converted_selection
2725 is nil or XCDR (converted_selection) is nil, decline the request.
2726
2727 2006-10-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2728
2729 * gtkutil.c (get_utf8_string): Remove warnings with casts.
2730 (xg_tool_bar_button_cb): Ditto.
2731 (xg_tool_bar_callback): Ditto.
2732
2733 2006-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2734
2735 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay): Remove unused
2736 variable ch_dim.
2737 (adjust_frame_glyphs_for_window_redisplay): Likewise. Don't allocate
2738 menu bar window matrices on non-X systems.
2739
2740 * mac.c (Fmac_get_preference, Fmac_code_convert_string): Add GCPROs.
2741
2742 * macterm.c (mac_query_char_extents): Don't return glyph ID if layout
2743 adjustment is needed.
2744 (mac_load_query_font): Check if width and height are positive.
2745
2746 2006-10-14 Richard Stallman <rms@gnu.org>
2747
2748 * sysdep.c (init_sys_modes): Delete DEFVAR_LISP in the wrong place.
2749
2750 2006-10-13 Chong Yidong <cyd@stupidchicken.com>
2751
2752 * xdisp.c (decode_mode_spec): Ignore %c and %l constructs in frame
2753 title.
2754
2755 2006-10-12 Chong Yidong <cyd@stupidchicken.com>
2756
2757 * keymap.c (Fkey_binding): Check Lisp_Object types before doing
2758 XCAR and XINT.
2759
2760 2006-10-12 Romain Francoise <romain@orebokech.com>
2761
2762 * image.c (xbm_read_bitmap_data): Delete extra semicolon.
2763
2764 2006-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
2765
2766 * eval.c: Include xterm.h for x_fully_uncatch_errors and friends.
2767
2768 * dispextern.h: Declare x_create_bitmap_from_xpm_data.
2769
2770 * xterm.c (x_check_expected_move): Remove unused var `count'.
2771
2772 * xmenu.c (syms_of_xmenu): Use Ffset rather than Fdefalias, since
2773 Fdefalias is not declared in any *.h file.
2774
2775 2006-10-09 Chong Yidong <cyd@stupidchicken.com>
2776
2777 * dispnew.c (sit_for): Sit forever if TIMEOUT is t.
2778
2779 * keyboard.c (command_loop_1): Handle non-number values of
2780 `minibuffer-message-timeout'.
2781 (Fexecute_extended_command): Fix typo.
2782
2783 * minibuf.c (temp_echo_area_glyphs): Sit for
2784 `minibuffer-message-timeout' seconds.
2785
2786 2006-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2787
2788 * macterm.c (mac_draw_image_string, mac_draw_image_string_16):
2789 Add argument OVERSTRIKE_P.
2790 (mac_draw_string_common, mac_draw_image_string_cg): Likewise.
2791 Support overstrike.
2792 (mac_draw_string, mac_draw_string_16): Remove functions.
2793 (x_draw_glyph_string_foreground): Use overstrike when needed.
2794 (x_draw_composite_glyph_string_foreground): Likewise.
2795 Use mac_draw_image_string_16 instead of mac_draw_string_16.
2796 (mac_load_query_font): Rename from XLoadQueryFont. Take argument
2797 F instead of DPY. All uses changed. Don't save/restore font.
2798
2799 2006-10-07 Ralf Angeli <angeli@caeruleus.net>
2800
2801 * w32fns.c (w32_createwindow): Honour left and top positions if
2802 supplied explicitly.
2803
2804 2006-10-06 Kim F. Storm <storm@cua.dk>
2805
2806 * xdisp.c (pos_visible_p): Fix value when EOB is visible.
2807
2808 2006-10-05 Chong Yidong <cyd@stupidchicken.com>
2809
2810 * frame.c (Qinhibit_face_set_after_frame_default): New var.
2811 (syms_of_frame): Initialize it.
2812 (x_set_frame_parameters): Avoid resetting :font attributes to the
2813 new-frame defaults.
2814
2815 2006-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
2816
2817 * lisp.h (clear_regexp_cache): Declare.
2818
2819 * search.c (compile_pattern): Only check `cp->syntax_table' if needed.
2820 (compile_pattern_1): Remember `used_syntax' in `cp->syntax_table'.
2821 (clear_regexp_cache): Only flush those regexps which depend on
2822 a syntax-table.
2823
2824 * regex.c (regex_compile): Set the new `used_syntax' bit.
2825
2826 * regex.h: Remove file local variables.
2827 (struct re_pattern_buffer): New field `used_syntax'.
2828
2829 2006-10-03 Kim F. Storm <storm@cua.dk>
2830
2831 * process.c (list_processes_1): Run sentinels before removing dead
2832 processes. Also remove `closed' network connections.
2833
2834 2006-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
2835
2836 * xdisp.c (handle_fontified_prop): Don't fontify at EOB.
2837
2838 2006-09-30 Eli Zaretskii <eliz@gnu.org>
2839
2840 * config.in: Regenerated.
2841
2842 2006-09-29 Juri Linkov <juri@jurta.org>
2843
2844 * buffer.c (syms_of_buffer): Reorder coding systems in the
2845 docstring of %z to the real order displayed in the modeline.
2846
2847 2006-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
2848
2849 * keymap.c (Fdefine_key): Yet another int/Lisp_Object mixup (YAILOM).
2850
2851 2006-09-26 Chong Yidong <cyd@stupidchicken.com>
2852
2853 * indent.c (Fvertical_motion): Do move back if the Lisp string
2854 being displayed contains newlines.
2855
2856 2006-09-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2857
2858 * macterm.c (mac_compute_glyph_string_overhangs, XLoadQueryFont)
2859 [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw before QDTextBounds.
2860
2861 2006-09-26 Kenichi Handa <handa@m17n.org>
2862
2863 * keymap.c (Fsingle_key_description): For an invalid char, return
2864 "Invalid char code NNNNN".
2865
2866 2006-09-25 Chong Yidong <cyd@stupidchicken.com>
2867
2868 * callint.c (Fcall_interactively): Doc fix.
2869
2870 2006-09-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2871
2872 * macterm.c (x_underline_at_descent_line): New variable.
2873 (syms_of_macterm): DEFVAR_BOOL it.
2874 (x_draw_glyph_string): Use it.
2875 (XLoadQueryFont): Calculate min_bounds.descent and max_bounds.descent.
2876
2877 2006-09-25 Kenichi Handa <handa@m17n.org>
2878
2879 * keymap.c (Fsingle_key_description): Return unique names for
2880 generic characters.
2881
2882 2006-09-24 Richard Stallman <rms@gnu.org>
2883
2884 * search.c (compile_pattern_1): Don't BLOCK_INPUT.
2885
2886 2006-09-24 Eli Zaretskii <eliz@gnu.org>
2887
2888 * makefile.w32-in ($(BLD)/fns.$(O), $(BLD)/w32proc.$(O)):
2889 Depend on nt/inc/langinfo.h and nt/inc/nl_types.h.
2890
2891 * w32proc.c (nl_langinfo): New function.
2892
2893 * w32fns.c (w32-pass-alt-to-system, w32-alt-is-meta)
2894 (w32-pass-lwindow-to-system, w32-enable-num-lock)
2895 (w32-enable-caps-lock, w32-scroll-lock-modifier)
2896 (w32-lwindow-modifier, w32-rwindow-modifier)
2897 (w32-apps-modifier, w32-mouse-button-tolerance): Doc fix.
2898
2899 2006-09-23 Juanma Barranquero <lekktu@gmail.com>
2900
2901 * minibuf.c (Finternal_complete_buffer, Fread_minibuffer)
2902 (Fdisplay_completion_list): Fix typos in docstrings.
2903
2904 2006-09-23 Romain Francoise <romain@orebokech.com>
2905
2906 * s/gnu-linux.h (MAIL_USE_FLOCK): Check for HAVE_LIBLOCKFILE too.
2907
2908 2006-09-23 Kenichi Handa <handa@m17n.org>
2909
2910 * keymap.c (Fmap_keymap): Docstring mentions about generic character.
2911
2912 2006-09-22 Stefan Monnier <monnier@iro.umontreal.ca>
2913
2914 * regex.c (analyse_first): For eight-bit-control chars, mark both the
2915 char's value and its leading byte in the fastmap.
2916 (re_search_2): When fast-scanning without translation, be careful to
2917 check that we only match the leading byte of a multibyte char.
2918
2919 * charset.h (PREV_CHAR_BOUNDARY): Make it work from within a char's
2920 byte sequence.
2921 (AT_CHAR_BOUNDARY): New macro.
2922
2923 2006-09-22 Kenichi Handa <handa@m17n.org>
2924
2925 * fns.c (optimize_sub_char_table): Don't optimize a sub-char-table
2926 whose default value is non-nil.
2927
2928 2006-09-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2929
2930 * gtkutil.c (xg_get_file_with_chooser): Only show C-l help for
2931 Gtk+ versions < 2.10.
2932
2933 * xfns.c (syms_of_xfns): Fix typo in help text for
2934 x-gtk-file-dialog-help-text.
2935
2936 2006-09-21 Kim F. Storm <storm@cua.dk>
2937
2938 * fns.c (Fmemq): Refill doc string.
2939 (Fmemql): New defun, like memq but using eql.
2940 (syms_of_fns): Defsubr it.
2941
2942 2006-09-20 Kim F. Storm <storm@cua.dk>
2943
2944 * xdisp.c (pos_visible_p): CHARPOS < 0 means return info for
2945 last visible glyph in window.
2946
2947 * window.c (Fset_window_hscroll, Fwindow_line_height):
2948 Doc fix. Use "off-window" instead of "off-screen".
2949 (Fpos_visible_in_window_p): Likewise.
2950 If POS is t, return info for last visible glyph in window.
2951
2952 2006-09-19 Chong Yidong <cyd@stupidchicken.com>
2953
2954 * search.c (struct regexp_cache): New entry syntax_table.
2955 (compile_pattern_1): Set it.
2956 (syms_of_search): Initialize it.
2957 (compile_pattern): Require the syntax_table entry of the cache
2958 element to match the current syntax table entry.
2959
2960 2006-09-19 Stefan Monnier <monnier@iro.umontreal.ca>
2961
2962 * window.c (Fwindow_end): Fix recent change.
2963
2964 2006-09-19 Kim F. Storm <storm@cua.dk>
2965
2966 * window.c (Fset_window_hscroll, Fpos_visible_in_window_p):
2967 Doc fix. Use "off-screen" instead of "invisible".
2968 (Fwindow_line_height): Make line numbers 0-based. Make line arg
2969 optional; if nil, use current cursor row. Handle text terminals
2970 properly. Return nil if non-interactive or pseudo-window.
2971
2972 2006-09-19 Stefan Monnier <monnier@iro.umontreal.ca>
2973
2974 * keymap.c: Include alloca.h if available.
2975 (Fkey_binding): Only use AREF after checking it's a vector.
2976 Remove unused var `window'.
2977
2978 2006-09-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2979
2980 * emacs.c (shut_down_emacs) [!subprocesses]: Don't set
2981 inhibit_sentinels.
2982
2983 * mac.c [!MAC_OSX] (select): Fix argument name.
2984
2985 * macmenu.c (enum mac_menu_kind, min_menu_id): New enumerator and
2986 menu ID for Apple menu.
2987 (menubar_selection_callback): Remove function.
2988 (find_and_call_menu_selection): New function from xmenu.c.
2989 (x_activate_menubar): Use it.
2990 (set_frame_menubar): Don't use f->output_data.mac->menubar_active.
2991
2992 * macterm.c (menubar_selection_callback): Remove extern.
2993 (M_APPLE): Change to 234.
2994 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Make non-static.
2995 (do_menu_choice): Remove function.
2996
2997 * macterm.h (struct mac_output): Remove member menubar_active.
2998 (do_menu_choice): Remove extern.
2999 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Add extern.
3000
3001 2006-09-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3002
3003 * xfns.c (syms_of_xfns): Rename x_gtk_show_chooser_help_text to
3004 x_gtk_file_dialog_help_text.
3005
3006 * gtkutil.c (xg_uses_old_file_dialog): Rename x-use-old-gtk-file-dialog
3007 to x-gtk-use-old-file-dialog.
3008 (xg_get_file_with_chooser): Rename x_gtk_show_chooser_help_text to
3009 x_gtk_file_dialog_help_text.
3010
3011 * xfns.c (syms_of_xfns): Ditto.
3012
3013 2006-09-18 Kim F. Storm <storm@cua.dk>
3014
3015 * window.c (Fwindow_line_visibility): Remove.
3016 (Fwindow_line_height): New defun replacing it.
3017 (syms_of_window): Defsubr it.
3018
3019 2006-09-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3020
3021 * mac.c (SELECT_USE_CFSOCKET) [MAC_OSX]: Set default to 1.
3022 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Fix pointer type.
3023
3024 2006-09-17 Jay Belanger <belanger@truman.edu>
3025
3026 * gmalloc.c:
3027 * md5.c:
3028 * md5.h:
3029 * strftime.c: Replace "GNU Library General Public License" by "GNU
3030 General Public License" throughout.
3031
3032 2006-09-17 Kim F. Storm <storm@cua.dk>
3033
3034 * dispnew.c (update_text_area): Undo 2000-07-18 change.
3035 Always redrawing whole row if line has mouse-face in it causes
3036 excessive flickering of the mode line.
3037
3038 2006-09-17 Chong Yidong <cyd@stupidchicken.com>
3039
3040 * search.c (clear_regexp_cache): New function.
3041
3042 * syntax.c (Fmodify_syntax_entry): Clear regexp cache.
3043
3044 2006-09-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3045
3046 * gtkutil.c (xg_get_file_with_chooser):
3047 Check x-gtk-show-chooser-help-text before adding the help text.
3048
3049 * xfns.c (syms_of_xfns): New variable: x-gtk-show-chooser-help-text.
3050
3051 * gtkutil.c (get_utf8_string): Try harder to convert to UTF8. Gtk+
3052 will simply crash if we fail.
3053
3054 2006-09-16 Richard Stallman <rms@gnu.org>
3055
3056 * regex.c (re_compile_pattern): Set gl_state.current_syntax_table.
3057
3058 2006-09-15 Kim F. Storm <storm@cua.dk>
3059
3060 * window.c (Fwindow_line_visibility): New defun for line-move-partial.
3061 (syms_of_window): Defsubr it.
3062 (Fwindow_end): Use window's buffer rather than current buffer.
3063
3064 2006-09-15 Jay Belanger <belanger@truman.edu>
3065
3066 * COPYING: Replace "Library Public License" by "Lesser Public
3067 License" throughout.
3068
3069 2006-09-15 David Kastrup <dak@gnu.org>
3070
3071 * Makefile.in (keymap.o): Add "keymap.h" and "window.h" dependencies.
3072
3073 * keymap.c: include "window.h".
3074 (Fcommand_remapping): New optional POSITION argument.
3075 (Fkey_binding): New optional POSITION argument. Completely rework
3076 handling of mouse clicks to get the same order of keymaps as
3077 `read-key-sequence' and heed POSITION. Also temporarily switch
3078 buffers to location of mouse click and back.
3079
3080 * keyboard.c (command_loop_1): Adjust call of `Fcommand_remapping'
3081 for additional argument.
3082 (parse_menu_item): Adjust call of `Fkey_binding' for additional
3083 argument.
3084 (read_key_sequence): If there are both `local-map' and `keymap'
3085 text properties at some buffer position, heed both.
3086
3087 * keymap.h: Declare additional optional arguments of
3088 `Fcommand_remapping' and `Fkey_binding'.
3089
3090 2006-09-15 Juanma Barranquero <lekktu@gmail.com>
3091
3092 * indent.c (Fcurrent_column, Findent_to): Fix typos in docstring.
3093
3094 2006-09-14 Andreas Schwab <schwab@suse.de>
3095
3096 * print.c: Whitespace fixup.
3097
3098 2006-09-14 Kim F. Storm <storm@cua.dk>
3099
3100 * xdisp.c (produce_image_glyph): Automatically crop wide images at
3101 right window edge so we can draw the cursor on the same row to
3102 avoid confusing redisplay by placing the cursor outside the visible
3103 window area.
3104
3105 2006-09-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3106
3107 * xterm.c (x_initialize): Don't install Xt event timer here.
3108 (x_timeout_atimer_activated_flag): New var.
3109 (x_activate_timeout_atimer): New function to install Xt timer.
3110 (x_send_scroll_bar_event, x_process_timeouts): Use it.
3111
3112 * xmenu.c (x_menu_set_in_use, popup_activate_callback)
3113 (create_and_show_popup_menu, create_and_show_dialog): Use it.
3114
3115 * xterm.h (x_activate_timeout_atimer): Add prototype.
3116
3117 2006-09-13 Richard Stallman <rms@gnu.org>
3118
3119 * print.c (print_string): When printcharfun is t,
3120 copy string contents and call strout on the copy.
3121
3122 * keyboard.c (read_char): If end_time specified, don't put the
3123 event into this_command_keys.
3124 (read_key_sequence): If Voverriding_terminal_local_map is specified,
3125 don't check Voverriding_local_map at all.
3126
3127 2006-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3128
3129 * textprop.c (Fnext_property_change, Fnext_single_property_change)
3130 (Fprevious_property_change, Fprevious_single_property_change):
3131 Avoid changing limit, so we can correctly catch the case where the
3132 property is constant up to limit.
3133
3134 2006-09-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3135
3136 * macfns.c (mac_window) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
3137 * macterm.c (XTread_socket) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
3138 Undo 2006-09-08 change.
3139
3140 2006-09-11 Chong Yidong <cyd@stupidchicken.com>
3141
3142 * keymap.c (Fkey_binding): Use string position for string objects.
3143
3144 2006-09-11 Kim F. Storm <storm@cua.dk>
3145
3146 * keymap.c (Fkey_binding): Fix last change.
3147
3148 * editfns.c (Fmessage): Recommend using (message "%s" ...).
3149
3150 2006-09-10 Chong Yidong <cyd@stupidchicken.com>
3151
3152 * keymap.c (Fkey_binding): Check for local keymap for mouse click
3153 events.
3154
3155 2006-09-10 Kim F. Storm <storm@cua.dk>
3156
3157 * keyboard.c (Finput_pending_p): Check Vunread_input_method_events
3158 and Vunread_post_input_method_events.
3159
3160 * dispnew.c (Fredisplay): Document return value.
3161
3162 2006-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3163
3164 * xfns.c (Fx_close_connection): Call xg_display_close when USE_GTK.
3165
3166 * gtkutil.c (xg_display_close): Always change default display if needed,
3167 check for < Gtk+ version 2.10 before calling gdk_display_close.
3168
3169 2006-09-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3170
3171 * mac.c [MAC_OSX] (sys_select): Check argument `nfds' more rigidly.
3172 Make variable `ofds' static. Remove variable `maxfd'.
3173
3174 * macfns.c (Fx_file_dialog): Remove unused variable `f'.
3175 Call check_mac.
3176
3177 * macmenu.c (Vmenu_updating_frame, syms_of_macmenu):
3178 * w32menu.c (Vmenu_updating_frame, syms_of_w32menu):
3179 Apply 2006-09-08 change for xmenu.c.
3180
3181 * xfns.c (Fx_file_dialog): Call check_x.
3182
3183 2006-09-10 Kim F. Storm <storm@cua.dk>
3184
3185 * xdisp.c (get_window_cursor_type): Use hollow cursor on
3186 non-transparent images.
3187
3188 2006-09-09 Eli Zaretskii <eliz@gnu.org>
3189
3190 * editfns.c (Fsystem_name): Mention "host" in the doc string.
3191 (syms_of_editfns) <system-name>: Likewise.
3192
3193 2006-09-08 Martin Rudalics <rudalics@gmx.at>
3194
3195 * xdisp.c (mouse_autoselect_window): Remove.
3196 (Vmouse_autoselect_window): New variable. DEFVAR_LISP it.
3197
3198 * dispextern.h (mouse_autoselect_window): Remove extern.
3199 (Vmouse_autoselect_window): Add extern.
3200
3201 * macterm.c (XTread_socket): Test Vmouse_autoselect_window
3202 instead of mouse_autoselect_window.
3203
3204 * msdos.c (dos_rawgetc): Likewise.
3205
3206 * w32term.c (w32_read_socket): Likewise.
3207
3208 * xterm.c (handle_one_xevent): Likewise.
3209
3210 2006-09-08 Richard Stallman <rms@gnu.org>
3211
3212 * xdisp.c (Vmenu_updating_frame): Define here.
3213 (syms_of_xdisp): DEFVAR it here.
3214 (update_menu_bar): Always return hooks_run.
3215 Set Vmenu_updating_frame.
3216
3217 * xdisp.c (redisplay_internal): Test Vinhibit_redisplay
3218 before calculating SELECTED_FRAME.
3219
3220 * xmenu.c (Vmenu_updating_frame): Don't define here.
3221 (syms_of_xmenu): Don't DEFVAR it here.
3222
3223 * xterm.c (x_error_quitter): For BadName error, just return.
3224
3225 * eval.c (find_handler_clause): Give up on debugger if INPUT_BLOCKED_P.
3226
3227 * casetab.c (init_casetab_once): Call set_case_table.
3228
3229 * emacs.c (shut_down_emacs): Set inhibit_sentinels.
3230
3231 * process.c (inhibit_sentinels): New variable.
3232 (exec_sentinel): Test inhibit_sentinels.
3233 (init_process): Initialize it.
3234
3235 * process.h (inhibit_sentinels): Add decl.
3236
3237 * search.c (looking_at_1, string_match_1, search_command):
3238 Make syntax table's canon table point to eqv table.
3239
3240 2006-09-08 Andreas Schwab <schwab@suse.de>
3241
3242 * print.c (strout): Fix whitespace.
3243
3244 2006-09-08 Kim F. Storm <storm@cua.dk>
3245
3246 * xterm.c (x_draw_glyph_string): Fix 2006-08-24 change.
3247
3248 2006-09-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3249
3250 * mac.c [!MAC_OSX]: Don't include keyboard.h.
3251 [!MAC_OSX] (select): Try detect_input_pending before ReceiveNextEvent
3252 in the same BLOCK_INPUT block, in case that some input has already
3253 been read asynchronously. Pretend to be interrupted by a signal
3254 if some input is available.
3255 [MAC_OSX] (select_and_poll_event, sys_select): Likewise.
3256 (SELECT_POLLING_PERIOD_USEC) [SELECT_USE_CFSOCKET]: Change to 100000.
3257 Now used for ReceiveNextEvent timeout instead of select timeout.
3258 (EVENT_CLASS_SOCK) [SELECT_USE_CFSOCKET]: Remove macro.
3259 [SELECT_USE_CFSOCKET] (socket_callback): Add non-blocking connect
3260 support. Quit event loop.
3261 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Add non-blocking
3262 connect support. Reuse previously allocated CFRunLoopSource.
3263 (Fmac_process_hi_command) [TARGET_API_MAC_CARBON]: New function.
3264 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
3265
3266 * macfns.c (mac_window) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
3267 Specify kWindowAsyncDragAttribute.
3268
3269 * macterm.c (mac_handle_origin_change, mac_handle_size_change)
3270 (mac_get_ideal_size): New functions.
3271 (x_set_offset, x_set_window_size, x_make_frame_visible)
3272 (do_zoom_window, mac_handle_window_event, XTread_socket): Use them.
3273 (install_window_handler, mac_handle_window_event)
3274 [USE_CARBON_EVENTS]: Handle kEventWindowGetIdealSize and
3275 kEventWindowBoundsChanged.
3276 (XTread_socket) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Don't call
3277 DragWindow.
3278
3279 2006-09-07 Andreas Schwab <schwab@suse.de>
3280
3281 * m/ibms390x.h (START_FILES, LIB_STANDARD): Override to
3282 use lib64 instead of lib.
3283
3284 2006-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
3285
3286 * Makefile.in: Avoid double quotes when possible.
3287
3288 2006-09-06 Kenichi Handa <handa@m17n.org>
3289
3290 * editfns.c (Fformat_time_string): Use make_unibyte_string to make
3291 a Lisp string from the result of emacs_memftimeu call.
3292
3293 2006-09-06 Kim F. Storm <storm@cua.dk>
3294
3295 * xdisp.c (pos_visible_p): Remove exact_mode_line_heights_p arg;
3296 so calculate heights even when pos-visible-in-window-p is called
3297 with partially = t. Don't overshoot last_visible_y in move_it_to.
3298 Return row height and row number in new rowh and vpos args.
3299 (cursor_row_fully_visible_p): First line is always "fully visible".
3300 (try_window): Don't clear matrix if vscrolled.
3301
3302 * lisp.h (pos_visible_p): Update prototype.
3303
3304 * window.c (Fpos_visible_in_window_p): Adapt to new pos_visible_p.
3305 Return row height and row number for partially visible rows.
3306 Modify return value to a 2 element list for fully visible rows and
3307 6 for partially visible row.
3308 (window_scroll_pixel_based): Use pos_visible_p directly instead of
3309 Fpos_visible_in_window_p. Fix auto vscrolling for partially
3310 visible lines. Only vscroll backwards if already vscrolled
3311 forwards. Unconditionally vscroll forwards if PT is first (and
3312 only) line. Set new window start instead of scrolling at
3313 start/end of tall line.
3314
3315 2006-09-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3316
3317 * macterm.c (install_window_handler, mac_handle_window_event)
3318 [USE_CARBON_EVENTS]: Handle kEventWindowClose.
3319 [USE_MAC_TSM] (mac_handle_text_input_event): Set modifiers for
3320 ASCII keystroke event.
3321
3322 2006-09-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3323
3324 * gtkutil.c (xg_get_file_with_chooser): Don't mention specific keys in
3325 the file chooser message. Only call gtk_file_chooser_set_current_name
3326 when action is SAVE.
3327
3328 2006-09-04 Andreas Schwab <schwab@suse.de>
3329
3330 * Makefile.in: Double all single and back quotes in C-style
3331 comments to help fontifier.
3332
3333 2006-09-03 Jason Rumney <jasonr@gnu.org>
3334
3335 * w32.c (shutdown_handler): New function to exit cleanly on shutdown.
3336 (globals_of_w32): Register it as a signal handler.
3337
3338 2006-09-02 Juri Linkov <juri@jurta.org>
3339
3340 * marker.c (Fmarker_position): Doc fix.
3341
3342 2006-09-03 Eli Zaretskii <eliz@gnu.org>
3343
3344 * window.c (syms_of_window) <split-height-threshold>:
3345 <window-min-height, window-min-width>: Doc fix.
3346
3347 2006-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3348
3349 * gtkutil.c (xg_get_file_with_chooser): Change file chooser message
3350 for writing files. Call gtk_file_chooser_set_current_name to keep
3351 default filename.
3352
3353 * minibuf.c (Finternal_complete_buffer): Move after DEFUN:s it calls.
3354
3355 2006-09-02 Jindrich Makovicka <makovick@gmail.com> (tiny change)
3356
3357 * fns.c (concat) [__GNUC__]: Declare with
3358 `__attribute__((noinline))'.
3359
3360 * eval.c (apply1, call2) [__GNUC__]: Declare with
3361 `__attribute__((noinline))'.
3362
3363 2006-09-02 Stuart D. Herring <herring@lanl.gov>
3364
3365 * minibuf.c (Finternal_complete_buffer): New function.
3366 (syms_of_minibuf): Defsubr it.
3367 (Fread_buffer): Use it, instead of Vbuffer_alist.
3368
3369 2006-09-01 Martin Rudalics <rudalics@gmx.at>
3370
3371 * buffer.h (struct buffer_text): New field chars_modiff.
3372 (CHARS_MODIFF, BUF_CHARS_MODIFF): New macros.
3373 * buffer.c (Fbuffer_chars_modified_tick): New function returning
3374 value of BUF_CHARS_MODIFF.
3375 (syms_of_buffer): Defsubr it.
3376 (Fget_buffer_create): Initialize BUF_CHARS_MODIFF.
3377 * insdel.c (modify_region): New argument preserve_chars_modiff.
3378 Set CHARS_MODIFF to MODIFF provided preserve_chars_modiff is zero.
3379 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
3380 (adjust_after_replace, adjust_after_replace_noundo)
3381 (replace_range, replace_range_2, del_range_2): Reset CHARS_MODIFF.
3382 * lisp.h (modify_region): Add fourth argument in extern.
3383 * casefiddle.c (casify_region): Call modify_region with fourth
3384 argument zero to assert that CHARS_MODIFF is updated.
3385 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
3386 (Ftranspose_regions): Likewise.
3387 * textprop.c (Fadd_text_properties, Fset_text_properties)
3388 (Fremove_text_properties, Fremove_list_of_text_properties):
3389 Call modify_region with fourth argument 1 to avoid that
3390 CHARS_MODIFF is updated.
3391
3392 2006-08-31 Richard Stallman <rms@gnu.org>
3393
3394 * editfns.c (Fformat): Don't sign-extend for %o or %x.
3395
3396 2006-08-29 Chong Yidong <cyd@stupidchicken.com>
3397
3398 * indent.c (Fvertical_motion): Don't move back if we were
3399 displaying a Lisp string, either.
3400
3401 2006-08-28 Kim F. Storm <storm@cua.dk>
3402
3403 * xdisp.c (get_window_cursor_type) [!HAVE_WINDOW_SYSTEM]:
3404 Don't attempt to replace cursor on image glyphs.
3405
3406 2006-08-28 Kenichi Handa <handa@m17n.org>
3407
3408 * coding.c (Fdetect_coding_region, Fdetect_coding_string):
3409 Fix docstring about ISO-2022 control characters.
3410
3411 2006-08-28 Kim F. Storm <storm@cua.dk>
3412
3413 * xdisp.c (get_window_cursor_type): Replace BOX cursor on images
3414 with a hollow box cursor if image is larger than 32x32 (or the default
3415 frame font if that is bigger). Replace any other cursor on images
3416 with hollow box cursor, as redisplay doesn't support bar and hbar
3417 cursors on images.
3418
3419 2006-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3420
3421 * alloc.c (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Undo previous
3422 change. Move mutex lock/unlock operations inside BLOCK_INPUT.
3423
3424 * dired.c (directory_files_internal_unwind, directory_files_internal)
3425 (file_name_completion): Add BLOCK_INPUT around opendir/closedir.
3426
3427 * image.c [MAC_OS] (image_load_qt_1): Use ComponentResult instead
3428 of OSErr.
3429
3430 * keyboard.c (in_sighandler): Remove variable.
3431 (Fcurrent_idle_time): Add missing `doc:'.
3432 (input_available_signal, init_keyboard): Undo previous change.
3433
3434 * keyboard.h (in_sighandler): Remove extern.
3435
3436 * mac.c (create_apple_event_from_event_ref, select)
3437 (Fmac_get_file_creator, Fmac_get_file_type, Fmac_set_file_creator)
3438 (Fmac_set_file_type, cfstring_create_normalized)
3439 (mac_get_system_locale, select_and_poll_event, sys_select):
3440 Use OSStatus instead of OSErr.
3441
3442 * macfns.c [TARGET_API_MAC_CARBON] (mac_update_proxy_icon):
3443 Don't use FRAME_FILE_NAME. Use (FS)UpdateAlias.
3444 (Fx_create_frame): Apply 2006-07-03 for xfns.c.
3445
3446 * macselect.c (get_scrap_from_symbol, clear_scrap, put_scrap_string)
3447 (put_scrap_private_timestamp, scrap_has_target_type, get_scrap_string)
3448 (get_scrap_private_timestamp, get_scrap_target_type_list)
3449 (x_own_selection, x_get_foreign_selection)
3450 (Fx_disown_selection_internal, Fx_selection_owner_p)
3451 (Fx_selection_exists_p): Use OSStatus instead of OSErr.
3452
3453 * macterm.c (mac_draw_string_common, mac_query_char_extents)
3454 (x_iconify_frame, XLoadQueryFont, install_window_handler)
3455 (mac_handle_command_event, init_command_handler, init_menu_bar):
3456 Use OSStatus instead of OSErr.
3457 (x_free_frame_resources) [TARGET_API_MAC_CARBON]: Don't use
3458 FRAME_FILE_NAME.
3459 (x_query_font): Apply 2006-08-04 change for xterm.c.
3460 (Qhi_command): Rename from Qhicommand. All uses changed.
3461
3462 * macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]: Remove member
3463 file_name.
3464 (FRAME_FILE_NAME): Remove macro.
3465 (install_window_handler, create_apple_event_from_event_ref):
3466 Return OSStatus instead of OSErr.
3467
3468 2006-08-26 Kim F. Storm <storm@cua.dk>
3469
3470 * buffer.c (Fset_buffer_multibyte):
3471 * editfns.c (Fcurrent_time, Fget_internal_run_time):
3472 * macfns.c (Fxw_color_values):
3473 * w32fns.c (Fxw_color_values):
3474 * xfns.c (Fxw_color_values): Simplify; use list3.
3475
3476 * fileio.c (Fmake_directory_internal, Fdelete_directory)
3477 (Fdelete_file): Simplify; use list1.
3478 (Frename_file, Fadd_name_to_file, Fmake_symbolic_link):
3479 Simplify; remove NO_ARG_ARRAY stuff, use list2.
3480
3481 2006-08-25 Richard Stallman <rms@gnu.org>
3482
3483 * buffer.c (Fswitch_to_buffer): Fix previous change.
3484
3485 2006-08-25 Kim F. Storm <storm@cua.dk>
3486
3487 * keyboard.c (Fcurrent_idle_time): Simplify.
3488
3489 2006-08-25 Richard Stallman <rms@gnu.org>
3490
3491 * fns.c (sxhash_string): Rotate properly; don't lose bits.
3492
3493 2006-08-24 Francesc Rocher <francesc.rocher@gmail.com>
3494
3495 * xdisp.c (overline_margin): New variable.
3496 (x_produce_glyphs): Use it.
3497 (syms_of_xdisp): DEFVAR_INT it.
3498
3499 * xterm.c (x_underline_at_descent_line): New variable.
3500 (syms_of_xterm): DEFVAR_BOOL it.
3501 (x_draw_glyph_string): Use it.
3502 Draw underline and overline up to the end of line if the face
3503 extends to the end of line.
3504
3505 * macterm.c: Likewise.
3506
3507 * w32term.c: Likewise.
3508
3509 2006-08-24 Nick Roberts <nickrob@snap.net.nz>
3510
3511 * buffer.c (Fswitch_to_buffer): Move buffer to front of
3512 buffer-alist if necessary.
3513
3514 2006-08-22 Kim F. Storm <storm@cua.dk>
3515
3516 * xdisp.c (update_tool_bar): Redisplay toolbar also when only
3517 number of items changes.
3518
3519 2006-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
3520
3521 * buffer.c (Fset_buffer_multibyte): Record proper undo entry.
3522
3523 2006-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3524
3525 * keyboard.c: Clarify difference between in_sighandler and
3526 handling_signal.
3527
3528 2006-08-21 Kim F. Storm <storm@cua.dk>
3529
3530 * macterm.c (x_draw_stretch_glyph_string):
3531 * w32term.c (x_draw_stretch_glyph_string):
3532 * xterm.c (x_draw_stretch_glyph_string): It is ok to draw a
3533 stretch glyph in left marginal areas on header and mode lines.
3534
3535 2006-08-21 Kenichi Handa <handa@m17n.org>
3536
3537 * keyboard.c (syms_of_keyboard): Docstring of
3538 Vunread_post_input_method_events and Vunread_input_method_events
3539 fixed.
3540
3541 2006-08-20 Chong Yidong <cyd@stupidchicken.com>
3542
3543 * keyboard.c (show_help_echo): Preserve mouse movement flag if
3544 tracking mouse.
3545
3546 2006-08-20 Richard Stallman <rms@gnu.org>
3547
3548 * xfaces.c (load_pixmap): Add quotes in error message.
3549
3550 * keyboard.c (Fcurrent_idle_time): New function.
3551 (syms_of_keyboard): defsubr it.
3552
3553 2006-08-18 Nick Roberts <nickrob@snap.net.nz>
3554
3555 * window.c (Fset_window_fringes): Do nothing on a tty.
3556 (Fwindow_fringes): Put ? operator after the line break.
3557
3558 2006-08-16 Andreas Schwab <schwab@suse.de>
3559
3560 * print.c (debug_output_compilation_hack): Fix return type.
3561
3562 2006-08-16 Richard Stallman <rms@gnu.org>
3563
3564 * print.c (debug_output_compilation_hack): New function.
3565
3566 2006-08-16 Kenichi Handa <handa@m17n.org>
3567
3568 * fileio.c (choose_write_coding_system): Use LF for end-of-line
3569 in auto-saving.
3570
3571 2006-08-15 Chong Yidong <cyd@stupidchicken.com>
3572
3573 * keyboard.c (read_char): Don't change idle timer state at all if
3574 end_time is supplied.
3575
3576 2006-08-15 Kenichi Handa <handa@m17n.org>
3577
3578 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New arg RET. If SRC
3579 is exhausted, return with RET.
3580 (detect_coding_emacs_mule, detect_coding_iso2022)
3581 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
3582 (detect_coding_utf_16, detect_coding_ccl): Adjusted for the above
3583 change.
3584
3585 2006-08-14 Chong Yidong <cyd@stupidchicken.com>
3586
3587 * keyboard.c (read_char): Don't reset idle timers if a time limit
3588 is supplied.
3589
3590 2006-08-14 Kim F. Storm <storm@cua.dk>
3591
3592 * .gdbinit (pitx): Print iterator position.
3593 Limit stack dump in case iterator is not initialized.
3594
3595 2006-08-12 Eli Zaretskii <eliz@gnu.org>
3596
3597 * frame.c (Fmouse_position, Fmouse_pixel_position)
3598 (Fset_mouse_position, Fset_mouse_pixel_position): Doc fix.
3599
3600 2006-08-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3601
3602 * xselect.c (Fx_register_dnd_atom): New function.
3603 (syms_of_xselect): Defsubr it.
3604 (x_handle_dnd_message): Check that message_type is in
3605 dpyinfo->x_dnd_atoms before generating lisp event.
3606
3607 * xterm.h (struct x_display_info): Add x_dnd_atoms* to keep track
3608 of drag and drop Atoms.
3609
3610 * xterm.c (x_term_init): Initialize dpyinfo->x_dnd_atoms*.
3611
3612 2006-08-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3613
3614 * keyboard.c: Define in_sighandler.
3615 (input_available_signal): Set in_sighandler.
3616 (init_keyboard): Initialize in_sighandler.
3617
3618 * keyboard.h: Declare in_sighandler.
3619
3620 * alloc.c (UNBLOCK_INPUT_ALLOC, BLOCK_INPUT_ALLOC): Use in_sighandler
3621 to check if mutex should be locked or not.
3622
3623 2006-08-09 Richard Stallman <rms@gnu.org>
3624
3625 * keyboard.c (keyremap_step): No-op if fkey->parent = nil.
3626 (read_key_sequence): Always start fkey.start and fkey.end at 0,
3627 and likewise for keytran.
3628
3629 2006-08-09 Kenichi Handa <handa@m17n.org>
3630
3631 * coding.c (syms_of_coding): Improve the docstring
3632 of file-coding-system-alist.
3633
3634 2006-08-07 Andreas Schwab <schwab@suse.de>
3635
3636 * puresize.h (BASE_PURESIZE): Increase to 1120000.
3637
3638 2006-08-06 Chong Yidong <cyd@stupidchicken.com>
3639
3640 * buffer.c (Vchange_major_mode_hook, Qchange_major_mode_hook): New vars.
3641 (Fkill_all_local_variables): Use it.
3642 (syms_of_buffer): Defvar it.
3643
3644 2006-08-05 Eli Zaretskii <eliz@gnu.org>
3645
3646 * w32.c (w32_valid_pointer_p): New function.
3647
3648 * w32.h: Add prototype for w32_valid_pointer_p.
3649
3650 * alloc.c: Include w32.h.
3651 (valid_lisp_object_p) [WINDOWSNT]: Call w32_valid_pointer_p to do
3652 the job.
3653
3654 * keyboard.c (kbd_buffer_get_event): Return Qnil when current time
3655 is exactly equal to end_time, not only when it is past that.
3656
3657 2006-08-04 Chong Yidong <cyd@stupidchicken.com>
3658
3659 * keyboard.c (read_char): Rebalance specpdl after receiving jump.
3660
3661 * process.c: Reapply 2006-08-01 change.
3662
3663 2006-08-04 Eli Zaretskii <eliz@gnu.org>
3664
3665 * w32fns.c (w32_query_font): Fix last change: use stricmp.
3666
3667 2006-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
3668
3669 * editfns.c (Fsubst_char_in_region): Redo the setup work after running
3670 the before-change-functions since they may have altered the buffer.
3671
3672 2006-08-04 Ralf Angeli <angeli@caeruleus.net>
3673
3674 * w32fns.c (w32_createwindow): Handle -geometry command line option
3675 and the geometry settings in the Registry.
3676
3677 2006-08-04 Kenichi Handa <handa@m17n.org>
3678
3679 * w32fns.c (w32_query_font): Compare names by ignoring case.
3680
3681 * xterm.c (x_query_font): Compare names by ignoring case.
3682
3683 2006-08-03 Jason Rumney <jasonr@gnu.org>
3684
3685 * w32menu.c (w32_menu_show, w32_dialog_show): Call Fsignal to quit
3686 when no option selected.
3687
3688 2006-08-03 Chong Yidong <cyd@stupidchicken.com>
3689
3690 * process.c: Revert last change.
3691
3692 2006-08-01 Kim F. Storm <storm@cua.dk>
3693
3694 * process.c (wait_reading_process_output_unwind): New function.
3695 Restores waiting_for_user_input_p to saved value.
3696 (wait_reading_process_output): Unwind protect waiting_for_user_input_p
3697 instead of save/restore old value on stack.
3698
3699 2006-07-30 Thien-Thi Nguyen <ttn@gnu.org>
3700
3701 * editfns.c: Undo 2006-06-27 change.
3702
3703 2006-07-29 Eli Zaretskii <eliz@gnu.org>
3704
3705 * coding.c (Ffind_operation_coding_system): Revert the change from
3706 2006-05-29.
3707
3708 * alloc.c [WINDOWSNT]: Include fcntl.h, to fix last change.
3709
3710 2006-07-28 Richard Stallman <rms@gnu.org>
3711
3712 * xfaces.c (lookup_named_face, Fdisplay_supports_face_attributes_p):
3713 Add conditional aborts for clarity.
3714
3715 * xdisp.c (update_menu_bar): New arg HOOKS_RUN. Callers changed.
3716 Used to avoid running the hooks over and over for each frame.
3717 (prepare_menu_bars): Pass value from update_menu_bar
3718 as HOOKS_RUN of next call.
3719
3720 * keyboard.c (safe_run_hooks_1): Don't crash if Vrun_hooks is nil.
3721
3722 2006-07-28 Kim F. Storm <storm@cua.dk>
3723
3724 * alloc.c (valid_pointer_p): New function (from valid_lisp_object_p).
3725 (valid_lisp_object_p): Use it to check for valid SUBRP obj.
3726
3727 2006-07-26 Chong Yidong <cyd@stupidchicken.com>
3728
3729 * keyboard.c (read_char): New arg END_TIME specifying timeout.
3730 All callers changed. Turn off echoing if END_TIME is non-NULL.
3731 (kbd_buffer_get_event): New arg END_TIME.
3732
3733 * lread.c (read_filtered_event): New arg SECONDS to wait until.
3734 (Fread_char, Fread_event, Fread_char_exclusive): New arg SECONDS.
3735
3736 * lisp.h: Update read-char, read-event, and read_filtered_event
3737 prototypes.
3738
3739 * keyboard.h: Include systime.h. Update read_char prototype.
3740
3741 2006-07-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3742
3743 * alloc.c (find_string_data_in_pure): New function.
3744 (make_pure_string): Use it to reuse existing string data if possible.
3745
3746 * puresize.h (BASE_PURESIZE): Decrease to 1102000.
3747
3748 2006-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
3749
3750 * keymap.c (Fdefine_key): If the key binding definition looks like an
3751 XEmacs-style key sequence, convert it to Emacs's format.
3752
3753 2006-07-22 Ralf Angeli <angeli@caeruleus.net>
3754
3755 * w32fns.c (w32_createwindow): If `left' and/or `top' frame
3756 parameters are bound to some values, use that instead of
3757 CW_USEDEFAULT.
3758
3759 2006-07-21 Eli Zaretskii <eliz@gnu.org>
3760
3761 * w32.c (convert_time): Use explicit long double constants to
3762 ensure long double arithmetics is used throughout.
3763
3764 2006-07-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3765
3766 * alloc.c (pure_bytes_used_lisp, pure_bytes_used_non_lisp): New vars.
3767 (init_alloc_once): Initialize them.
3768 (pure_alloc): Allocate non-Lisp objects from the end of pure storage
3769 without alignment.
3770
3771 * puresize.h (BASE_PURESIZE): Decrease to 1141000.
3772
3773 2006-07-18 Francis Litterio <franl@world.std.com>
3774
3775 * w32term.c (x_calc_absolute_position): Fix frame positioning
3776 with negative X/Y coordinates.
3777
3778 2006-07-18 Dan Nicolaescu <dann@ics.uci.edu>
3779
3780 * xterm.c (x_connection_closed, x_error_quitter): Mark as NO_RETURN.
3781
3782 * textprop.c (text_read_only): Likewise.
3783
3784 * lread.c (end_of_file_error): Likewise.
3785
3786 * lisp.h (circular_list_error, memory_full, buffer_memory_full):
3787 Likewise.
3788
3789 * eval.c (unwind_to_catch): Likewise.
3790
3791 * buffer.h (buffer_slot_type_mismatch): Likewise.
3792
3793 2006-07-18 Kim F. Storm <storm@cua.dk>
3794
3795 Cleanup Fsignal calls that never returns; now only use it for Qquit.
3796
3797 * eval.c (xsignal): New func. Like Fsignal, but marked no-return.
3798 (xsignal0, xsignal1, xsignal2, xsignal3): New no-return functions.
3799 (signal_error): New no-return function (from xfaces.c).
3800 (Fthrow): Use xsignal2 instead of Fsignal + abort.
3801 (error): Use xsignal1 instead of Fsignal + abort.
3802 (FletX, Flet, grow_specpdl): Use signal_error.
3803 (Feval, Ffuncall, funcall_lambda): Use xsignal1, xsignal2.
3804
3805 * alloc.c (buffer_memory_full, memory_full): Use xsignal. Remove loop.
3806 (list1): New function.
3807
3808 * lisp.h (list1): Add EXFUN.
3809 (xsignal, xsignal0, xsignal1, xsignal2, xsignal3, signal_error):
3810 Add prototypes. Mark them as no-return.
3811
3812 * buffer.c (Fbuffer_local_value, Fbarf_if_buffer_read_only):
3813 Use xsignal1.
3814
3815 * callint.c (check_mark): Use xsignal0.
3816
3817 * casefiddle.c (casify_object): wrong_type_argument is no-return.
3818
3819 * cmds.c (Fforward_char, Fdelete_char): Use xsignal0.
3820
3821 * coding.c (Fcheck_coding_system): Use xsignal1. Remove loop.
3822 (Fdefine_coding_system_internal): Use xsignal1.
3823
3824 * data.c (circular_list_error): Use xsignal.
3825 (wrong_type_argument): Use xsignal2. Don't care about return value.
3826 (args_out_of_range, args_out_of_range_3): Use xsignal2, xsignal3.
3827 Remove loop around Fsignal.
3828 (indirect_variable, Fsymbol_value, set_internal, Fdefault_value)
3829 (indirect_function, Findirect_function, Fstring_to_number)
3830 (Fmakunbound, Ffmakunbound, Fsymbol_function, Ffset): Use xsignal1.
3831 (arith_driver, float_arith_driver, Frem, Fmod, arith_error):
3832 Use xsignal0.
3833
3834 * doc.c (Fdocumentation): Use xsignal1.
3835
3836 * editfns.c (region_limit, Fget_internal_run_time): Use xsignal0.
3837
3838 * fileio.c (report_file_error): Use xsignal.
3839 (barf_or_query_if_file_exists, Fcopy_file, Fdelete_file)
3840 (Finsert_file_contents): Use xsignal2.
3841 (syms_of_fileio): Use list2, list3.
3842
3843 * floatfns.c (arith_error, range_error, domain_error): Use xsignal2.
3844 (range_error2, domain_error2): Use xsignal3.
3845 (rounding_driver, fmod_float): Use xsignal0.
3846 (float_error): Use xsignal1.
3847 (matherr): Use xsignal.
3848
3849 * fns.c (Flength): wrong_type_argument is no-return.
3850 (hashfn_user_defined, Fmake_hash_table): Use signal_error.
3851 (Fmd5): Use xsignal1.
3852
3853 * frame.c (x_set_line_spacing, x_set_screen_gamma): Use signal_error.
3854
3855 * keyboard.c (recursive_edit_1): Use xsignal1.
3856
3857 * keymap.c (Fmap_keymap): Use xsignal1.
3858
3859 * lread.c (Fload): Use xsignal2, signal_error.
3860 (end_of_file_error): Use xsignal0, xsignal1.
3861 (read0): Use xsignal1.
3862 (invalid_syntax): New error function marked no-return.
3863 (read_integer, read1, read_list): Use it.
3864
3865 * macselect.c (x_get_local_selection): Use signal_error.
3866
3867 * msdos.c (Fmsdos_set_mouse_buttons): Use xsignal2.
3868
3869 * search.c (compile_pattern_1): Use xsignal1.
3870 (signal_failure): Remove (was only called once).
3871 (search_command): Use xsignal1 instead of signal_failure.
3872
3873 * syntax.c (scan_lists): Use xsignal3.
3874
3875 * textprop.c (text_read_only): Use xsignal0, xsignal1.
3876
3877 * unexsol.c (unexec): Use xsignal.
3878
3879 * window.c (window_scroll_pixel_based, window_scroll_line_based):
3880 Use xsignal0.
3881
3882 * xfaces.c (signal_error): Move to eval.c.
3883 (resolve_face_name): Use xsignal1.
3884
3885 * xfns.c (x_decode_color): Use signal_error.
3886
3887 * xselect.c (x_get_local_selection, copy_multiple_data)
3888 (x_get_window_property_as_lisp_data)
3889 (lisp_data_to_selection_data, CHECK_CUT_BUFFER)
3890 (Fx_get_cut_buffer_internal): Use signal_error.
3891
3892 2006-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3893
3894 * macterm.c (XTread_socket): Undo previous change.
3895
3896 2006-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3897
3898 * macterm.c (keycode_to_xkeysym): Remove function. All uses now
3899 directly lookup keycode_to_xkeysym_table.
3900 [USE_MAC_TSM] (mac_handle_text_input_event): Don't construct
3901 ASCII_KEYSTROKE_EVENT for non-zero keycode_to_xkeysym_table entries.
3902 (XTread_socket): Use character codes to construct keypad key events.
3903 (mac_initialize_display_info) [MAC_OSX]: Use CGDisplaySamplesPerPixel.
3904 (x_delete_display): Apply 2006-07-04 change for xterm.c.
3905
3906 2006-07-17 Richard Stallman <rms@gnu.org>
3907
3908 * keyboard.c (Vcommand_error_function): New variable.
3909 (syms_of_keyboard): Defvar it.
3910 (cmd_error_internal): Simplify, and handle Vcommand_error_function.
3911
3912 * dispnew.c (init_display): Mention DISPLAY as well as TERM in err msg.
3913
3914 2006-07-17 Kim F. Storm <storm@cua.dk>
3915
3916 * xdisp.c (handle_single_display_spec): Ensure the right value of
3917 it->position is saved by push_it.
3918 (pop_it): Restore it->object for GET_FROM_BUFFER and GET_FROM_STRING.
3919 (reseat_1): Don't setup it->object twice.
3920 (set_iterator_to_next): No need to set it->object after pop_it.
3921 (move_it_to): Explicitly check to see if last move reached to_charpos.
3922
3923 2006-07-17 Thien-Thi Nguyen <ttn@gnu.org>
3924
3925 * xdisp.c (display_mode_line): Preserve match data.
3926
3927 2006-07-14 Kim F. Storm <storm@cua.dk>
3928
3929 * w32.c (pfn_WSACreateEvent, pfn_WSACloseEvent): New func ptrs.
3930 (init_winsock): Load them. Use ws2_32.dll.
3931 (sys_listen): Undo last change. Just set FILE_LISTEN flag.
3932 (sys_accept): Undo last change. Instead, set child status to
3933 STATUS_READ_ACKNOWLEDGED and reset char_avail event so next
3934 sys_select will wakeup the reader thread.
3935 (_sys_wait_accept): New function used by reader thread to wait for
3936 an incoming connection on a server socket.
3937
3938 * w32.h (_sys_read_ahead, _sys_wait_accept): Add prototypes.
3939
3940 * w32proc.c (reader_thread): Use _sys_wait_accept to wait on a
3941 server socket (FILE_LISTEN flag).
3942
3943 2006-07-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3944
3945 * sound.c (alsa_init): Call snd_pcm_close after successful snd_pcm_open.
3946
3947 2006-07-14 Kim F. Storm <storm@cua.dk>
3948
3949 * w32.c: Fix high cpu load for server sockets.
3950 (pfn_WSAEventSelect): New function ptr.
3951 (init_winsock): Load it.
3952 (sys_listen): Set FILE_LISTEN flag. Set event mask for socket's
3953 char_avail event object to FD_ACCEPT.
3954 (sys_accept): Check FILE_LISTEN flag. Set event mask on new
3955 socket's char_avail event object to FD_READ|FD_CLOSE.
3956
3957 * w32.h (FILE_LISTEN): New filedesc flag value.
3958
3959 2006-07-13 Kim F. Storm <storm@cua.dk>
3960
3961 * bytecode.c (Fbyte_code): Use CAR, CDR for Bcar, Bcdr.
3962 Use CAR_SAFE, CDR_SAFE for Bcar_safe, Bcdr_safe.
3963 Simplify loops and use CAR for Bnth and Belt.
3964
3965 * data.c (Findirect_function): Optimize for no indirection.
3966
3967 * eval.c (Fthrow): Remove loop around Fsignal.
3968 (Feval, Fapply, Ffuncall): Optimize for no function indirection.
3969 Use original function name in all signaled errors.
3970 Simplify Fsignal calls (no return).
3971 (funcall_lambda): Simplify Fsignal calls (no return).
3972
3973 2006-07-13 Andreas Schwab <schwab@suse.de>
3974
3975 * syntax.c (scan_sexps_forward): Use EMACS_INT for out_bytepos and
3976 out_charpos.
3977
3978 2006-07-13 Kenichi Handa <handa@m17n.org>
3979
3980 * editfns.c (Fformat): Fix calculation of text property positions
3981 of format string.
3982
3983 2006-07-12 Kim F. Storm <storm@cua.dk>
3984
3985 * lisp.h (CHECK_TYPE): New macro for generic type checking.
3986 (CAR_SAFE, CDR_SAFE): New macros.
3987 (ARRAYP, CHECK_ARRAY): New macros.
3988 (CHECK_VECTOR_OR_STRING, CHECK_SUBR): New macros.
3989 (CHECK_WINDOW_CONFIGURATION): New macro.
3990 (CHECK_LIST_CONS, CHECK_LIST_END): New checks for list traversal.
3991 (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
3992 (CHECK_STRING, CHECK_STRING_CAR, CHECK_CONS, CHECK_SYMBOL)
3993 (CHECK_CHAR_TABLE, CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE)
3994 (CHECK_BUFFER, CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS)
3995 (CHECK_NUMBER, CHECK_NATNUM, CHECK_MARKER, CHECK_OVERLAY)
3996 (CHECK_NUMBER_COERCE_MARKER, CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
3997 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER): Use CHECK_TYPE.
3998
3999 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET):
4000 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Use CHECK_TYPE.
4001
4002 * callint.c (Fcall_interactively):
4003 * casefiddle.c (casify_object):
4004 * editfns.c (general_insert_function):
4005 * fns.c (Flength, Felt, Ffillarray):
4006 * data.c (Fcar, Fcdr): Remove loop around wrong_type_argument.
4007
4008 * data.c (wrong_type_argument): Remove loop around Fsignal.
4009 (Farrayp, Fsequencep): Use ARRAYP.
4010 (Fcar): Use CAR.
4011 (Fcar_safe): Use CAR_SAFE.
4012 (Fcdr): Use CDR.
4013 (Fcdr_safe): Use CDR_SAFE.
4014 (Fsetcar, Fsetcdr): Use CHECK_CONS.
4015 (Fsubr_arity, Fsubr_name): Use CHECK_SUBR.
4016 (Faset): Use CHECK_ARRAY.
4017
4018 * fns.c (Felt): Use CHECK_ARRAY.
4019 (concat): Use CHECK_NUMBER.
4020 (Fsubstring, substring_both): Use CHECK_VECTOR_OR_STRING.
4021 (Fmemq): Use CHECK_LIST.
4022 (Fassq, Fassoc, Frassq, Frassoc): Use CAR.
4023 (assq_no_quit): Use CAR_SAFE.
4024 (Fnthcdr, Fmember, Fdelq, Fdelete, Fnreverse, Fnconc):
4025 Use CHECK_LIST_CONS.
4026 (Freverse, Fplist_get, Flax_plist_get): Use CHECK_LIST_END.
4027
4028 * bytecode.c (Fbyte_code): Use CHECK_VECTOR.
4029
4030 * casetab.c (check_case_table):
4031 * category.c (check_category_table):
4032 * marker.c (Fcopy_marker):
4033 * syntax.c (check_syntax_table):
4034 * xfaces.c (load_pixmap): Use CHECK_TYPE.
4035
4036 * fns.c (Fcopy_sequence, concat):
4037 * fringe.c (Fdefine_fringe_bitmap):
4038 * lread.c (check_obarray): Cleanup wrong_type_argument use.
4039
4040 * keyboard.c (access_keymap_keyremap): Use ARRAYP.
4041
4042 * keymap.c (Fdefine_key, Flookup_key):
4043 * macros.c (Fstart_kbd_macro): Use CHECK_VECTOR_OR_STRING.
4044
4045 * mac.c (Fmac_get_preference): Use CHECK_LIST_END.
4046
4047 * search.c (Fset_match_data): Use CHECK_LIST.
4048
4049 * sunfns.c (sun_item_create): Use CHECK_LIST_CONS.
4050
4051 * window.c (Fwindow_configuration_frame, Fset_window_configuration):
4052 (compare_window_configurations): Use CHECK_WINDOW_CONFIGURATION.
4053
4054 2006-07-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4055
4056 * Makefile.in (dired.o, editfns.o, fileio.o): Depend on blockinput.h.
4057
4058 * dired.c: Include blockinput.h.
4059 (Ffile_attributes): Add BLOCK_INPUT around getpwuid/getgrgid.
4060
4061 * editfns.c: Include blockinput.h.
4062 (Fuser_login_name, Fuser_full_name): Add BLOCK_INPUT around
4063 getpwuid/getpwnam.
4064
4065 * fileio.c: Include blockinput.h.
4066 (Fexpand_file_name, search_embedded_absfilename): Add BLOCK_INPUT
4067 around getpwnam.
4068 (search_embedded_absfilename): Remove spurious xfree.
4069
4070 2006-07-11 Kim F. Storm <storm@cua.dk>
4071
4072 * dispnew.c (sit_for): Reduce number of args from 5 to 3.
4073 Now just one TIMEOUT arg that can be a Lisp float or Lisp int.
4074 Combine args DISPLAY and INITIAL_DISPLAY into one arg DO_DISPLAY.
4075 Signal error if TIMEOUT is not a number.
4076 Undo 2006-06-14 change for non-preemptive display if TIMEOUT < 0.
4077 The rework of sit_for args also fixes several incorrect Qt args
4078 which should have been 1.
4079 (Fredisplay): Pass 1 instead of Qt to swallow_events and
4080 detect_input_pending_run_timers.
4081
4082 * lisp.h (sit_for): Update prototype.
4083 (Fredisplay): Add EXFUN.
4084
4085 * dispextern.h (sit_for): Remove prototype.
4086
4087 * callint.c (Fcall_interactively):
4088 * minibuf.c (temp_echo_area_glyphs):
4089 * keyboard.c (command_loop_1, read_char, Fexecute_extended_command):
4090 * fileio.c (Fdo_auto_save): Update/simplify sit_for calls.
4091
4092 2006-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
4093
4094 * syntax.c (forw_comment): Also use EMACS_INT for buffer positions.
4095
4096 2006-07-11 Kim F. Storm <storm@cua.dk>
4097
4098 * dispnew.c (Fredisplay): Add FORCE argument to force redisplay when
4099 input is available. Fix test for redisplay_dont_pause non-nil.
4100 Specbind redisplay-dont-pause to t if FORCE non-nil.
4101
4102 2006-07-10 Chong Yidong <cyd@stupidchicken.com>
4103
4104 * puresize.h (BASE_PURESIZE): Increment to 1211000.
4105
4106 * dispnew.c (Fredisplay): New function, equivalent to (sit-for 0).
4107 (Fsit_for): Function deleted.
4108
4109 * keyboard.c (command_loop_1, Fexecute_extended_command):
4110 Call sit_for instead of Fsit_for.
4111
4112 * minibuf.c (temp_echo_area_glyphs): Likewise.
4113
4114 2006-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
4115
4116 * syntax.c (Fforward_comment): Revert the reversion.
4117 (back_comment, scan_lists): Also use EMACS_INT for buffer positions.
4118
4119 2006-07-09 John Paul Wallington <jpw@pobox.com>
4120
4121 * syntax.c (Fforward_comment): Revert previous change.
4122
4123 2006-07-09 Kim F. Storm <storm@cua.dk>
4124
4125 * window.c (Fforce_window_update): Doc fix.
4126
4127 2006-07-08 Stephen Gildea <gildea@stop.mail-abuse.org>
4128
4129 * fileio.c (do_auto_save_make_dir): Make the auto-save-list-file
4130 directory unreadable for better user privacy.
4131
4132 2006-07-07 Stefan Monnier <monnier@iro.umontreal.ca>
4133
4134 * syntax.c (Fforward_comment): Fix int-32 vs EMACS_INT-64 mixup.
4135
4136 * lread.c (read_filtered_event): Remove `register' qualifier because it
4137 causes compilation problem with gcc-4.0.2-20051125 on amd64.
4138 (readevalloop): Remove unused var `bpos'.
4139 Yet another int/Lisp_Object mixup (YAILOM).
4140
4141 2006-07-07 Eli Zaretskii <eliz@gnu.org>
4142
4143 * keyboard.c (Fexecute_extended_command): Mention the argument
4144 PREFIXARG in the doc string.
4145
4146 2006-07-07 Kim F. Storm <storm@cua.dk>
4147
4148 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
4149
4150 2006-07-05 Chong Yidong <cyd@stupidchicken.com>
4151
4152 * insdel.c (prepare_to_modify_buffer): For an indirect buffer, do
4153 clash detection using the base buffer.
4154
4155 * puresize.h (BASE_PURESIZE): Increment to 1210500.
4156
4157 2006-07-04 Kim F. Storm <storm@cua.dk>
4158
4159 * xterm.c (x_delete_display): Don't free or derefence NULL pointers.
4160
4161 2006-07-04 Kenichi Handa <handa@m17n.org>
4162
4163 * fontset.c (Fset_overriding_fontspec_internal): Check if we need
4164 to update Voverriding_fontspec_alist.
4165
4166 2006-07-03 Richard Stallman <rms@gnu.org>
4167
4168 * xfns.c (Fx_create_frame): Move unwind_create_frame setup down.
4169
4170 * xfaces.c (Fface_attribute_relative_p): Doc fix.
4171
4172 * textprop.c (Fget_char_property_and_overlay): Doc fix.
4173
4174 * eval.c (Fdefvaralias): Doc fix.
4175
4176 2006-07-03 Kim F. Storm <storm@cua.dk>
4177
4178 * dispnew.c (sit_for): Fix preempt condition.
4179
4180 2006-07-02 Stefan Monnier <monnier@iro.umontreal.ca>
4181
4182 * lread.c (read_filtered_event): Treat select-window just like
4183 switch-frame.
4184
4185 2006-07-02 Kim F. Storm <storm@cua.dk>
4186
4187 * xdisp.c (display_tool_bar_line): Skip glyphs which are too big
4188 to ever fit the tool-bar,
4189 (MAX_FRAME_TOOL_BAR_HEIGHT): New macro.
4190 (tool_bar_lines_needed): Use unused mode-line row as temp_row.
4191 (redisplay_tool_bar): Only clear desired matrix if we actually
4192 change the tool-bar window height. Only try to make the tool-bar
4193 window bigger if there is actually room for it.
4194
4195 2006-06-30 Ralf Angeli <angeli@caeruleus.net>
4196
4197 * w32term.c (x_make_frame_visible): Use SystemParametersInfo with
4198 SPI_GETWORKAREA to find the dimensions of the screen work area,
4199 and adjust vertical position of the frame in order to avoid being
4200 covered by the task bar.
4201
4202 * w32fns.c (w32_createwindow): Use CW_USEDEFAULT instead of
4203 f->left_pos and SH_SHOW instead of f->top_pos in the call to
4204 CreateWindow. Record the actual position in f->left_pos and
4205 f->top_pos.
4206
4207 2006-06-30 John Paul Wallington <jpw@pobox.com>
4208
4209 * w32console.c (syms_of_ntterm) <w32-use-full-screen-buffer>:
4210 Doc fix - default value has changed.
4211
4212 2006-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4213
4214 * mac.c [!TARGET_API_MAC_CARBON]: Don't include FixMath.h or Scrap.h.
4215
4216 * macfns.c (Fx_create_frame): Apply 2006-06-24 change for xfns.c.
4217
4218 * macgui.h (USE_MAC_TSM) [TARGET_API_MAC_CARBON]: Set default to 1.
4219
4220 * macterm.c (Qeql): Add extern.
4221 (x_set_mouse_pixel_position) [MAC_OSX]: Use CGWarpMouseCursorPosition.
4222 (fm_style_face_attributes_alist) [USE_ATSUI]: New variable.
4223 (syms_of_macterm) [USE_ATSUI]: Initialize and staticpro it.
4224 Change keys of Vmac_atsu_font_table from strings to numbers.
4225 (fm_style_to_face_attributes) [USE_ATSUI]: New function.
4226 (init_font_name_table) [USE_ATSUI]: Use it.
4227 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: New variable.
4228 (syms_of_macterm) [USE_MAC_TSM]: Initialize and staticpro it.
4229 [USE_MAC_TSM] (mac_tsm_resume): Restore script and language codes
4230 only when saved_ts_script_language_on_focus coincides with
4231 Vmac_ts_script_language_on_focus.
4232 [USE_MAC_TSM] (mac_tsm_suspend): Save value of
4233 Vmac_ts_script_language_on_focus to saved_ts_script_language_on_focus.
4234 (XTread_socket) [USE_MAC_TSM]: Add Mac OS Classic support.
4235 [USE_MAC_TSM] (mac_handle_text_input_event, init_tsm): Likewise.
4236
4237 2006-06-27 Chong Yidong <cyd@stupidchicken.com>
4238
4239 * editfns.c (Fdelete_field, Ffield_string, Ffield_beginning)
4240 (Ffield_string_no_properties, Ffield_end): Mention
4241 args-out-of-range error condition in docstring.
4242
4243 2006-06-27 Kim F. Storm <storm@cua.dk>
4244
4245 * xdisp.c (handle_composition_prop): Set stop_charpos before push_it.
4246
4247 2006-06-25 Kim F. Storm <storm@cua.dk>
4248
4249 * s/gnu-linux.h (SIGNALS_VIA_CHARACTERS): Define for Linux kernel
4250 version 2.4 and later.
4251
4252 2006-06-24 Chong Yidong <cyd@stupidchicken.com>
4253
4254 * xfns.c (Fx_create_frame): Set font parameter directly instead of
4255 using x_default_parameter, since x_get_args clears the parm alist.
4256
4257 2006-06-24 Eli Zaretskii <eliz@gnu.org>
4258
4259 * dired.c (directory_files_internal) [WINDOWSNT]: Find files
4260 case-insensitively.
4261
4262 2006-06-24 Aidan Kehoe <kehoea@parhasard.net>
4263
4264 * lread.c (read_escape): When an unknown Unicode code point is
4265 encountered as a string or character escape, signal an error.
4266
4267 2006-06-23 Kim F. Storm <storm@cua.dk>
4268
4269 * .gdbinit (pitx): Dump iterator stack.
4270
4271 * xdisp.c (handle_composition_prop): Push iterator on stack.
4272 (set_iterator_to_next): Pop iterator at end of composition.
4273
4274 2006-06-23 Martin Rudalics <rudalics@gmx.at>
4275
4276 * fileio.c (Frename_file) [DOS_NT]: Don't try to move directory to
4277 itself on DOS_NT platforms, if the old and new names are identical
4278 but for the letter-case.
4279
4280 2006-06-21 Kim F. Storm <storm@cua.dk>
4281
4282 * dispextern.h (struct it): Add `position' member to iterator stack.
4283 Rename `pos' member to `current'. Rearrange and add comments.
4284
4285 * xdisp.c (handle_stop): Set it->ignore_overlay_strings_at_pos_p
4286 if we get any overlays.
4287 (set_cursor_from_row): Don't clobber `end' if we rescan from
4288 start_string.
4289 (push_it, pop_it): Save it->position.
4290
4291 2006-06-19 Richard Stallman <rms@gnu.org>
4292
4293 * window.c (size_window): New arg FIRST_ONLY. All callers changed.
4294 (adjust_window_trailing_edge): Specially compute FIRST_PARALLEL
4295 for the case of a top-level window and the following minibuffer.
4296 Don't exit because of no `next' when there is a parent.
4297 Use the FIRST_ONLY feature when resizing following windows.
4298
4299 * syntax.c (init_syntax_once): Give most control chars' syntax Spunct.
4300
4301 2006-06-17 Kim F. Storm <storm@cua.dk>
4302
4303 * dispnew.c (update_frame): Check for input pending on entry.
4304 (update_window, update_frame_1): Break loop if input is detected.
4305
4306 2006-06-16 Francis Litterio <flitterio@gmail.com>
4307
4308 * xterm.c (x_check_expected_move, handle_one_xevent)
4309 (x_set_offset, x_check_fullscreen): Extensive changes to make
4310 frame positioning deterministic under X.
4311
4312 * xterm.h (x_output): Add members left_before_move and
4313 top_before_move. Removed members expected_left and expected_top.
4314
4315 2006-06-16 Kim F. Storm <storm@cua.dk>
4316
4317 * dispextern.h (struct it): Add union to iterator stack to save
4318 image, composition, and stretch specific paramters.
4319
4320 * xdisp.c (next_overlay_string): Fix assert.
4321 (push_it, pop_it): Handle composition and stretch specific values.
4322 Only handle it->slice in image (for now).
4323 (back_to_previous_visible_line_start): Continue search if newline is
4324 part of a compisition. Simplify.
4325 (reseat_1): Set it->object to buffer.
4326 (set_iterator_to_next): Set it->object to string or buffer, when
4327 setting it->method to GET_FROM_STRING or GET_FROM_BUFFER.
4328 (next_element_from_composition): Set it->object to buffer if not
4329 from string.
4330 (set_cursor_from_row): Only save start of string if not already
4331 done to handle multiple strings in a row.
4332
4333 * .gdbinit (pitx): Show composition parameters.
4334 (pgx, pg): New commands to print a glyph structure.
4335 (pgi, pgn): New commands to print specific/next glyph.
4336 (pgrowx, pgrow): New commands to print all glyphs in a row.
4337
4338 2006-06-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4339
4340 * macfns.c (Fx_display_mm_height, Fx_display_mm_width)
4341 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Use CGDisplayScreenSize.
4342
4343 * macterm.c (do_app_resume, do_app_suspend): Remove functions.
4344 (mac_tsm_resume, mac_tsm_suspend) [USE_MAC_TSM]: New functions.
4345 (mac_handle_window_event, XTread_socket) [USE_MAC_TSM]: Use them.
4346 (Vmac_ts_script_language_on_focus) [USE_MAC_TSM]: New variable.
4347 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
4348 (saved_ts_language, saved_ts_component) [USE_MAC_TSM]: New variables.
4349 (mac_initialize_display_info) [MAC_OSX]: Use Quartz Display
4350 Services functions to get size of main display in pixels.
4351
4352 2006-06-14 Chong Yidong <cyd@stupidchicken.com>
4353
4354 * xdisp.c (back_to_previous_visible_line_start):
4355 Reset it->continuation_lines_width.
4356
4357 2006-06-14 Richard Stallman <rms@gnu.org>
4358
4359 * eval.c (Fdefconst): Mark variable as risky.
4360
4361 * callproc.c (Fcall_process): Doc fix.
4362
4363 * window.c (adjust_window_trailing_edge): Don't break out of the loop
4364 because there's no next window, if there are parallel windows.
4365 Do break out when WINDOW is nil.
4366
4367 2006-06-14 Kim F. Storm <storm@cua.dk>
4368
4369 * dispextern.h (IT_STACK_SIZE): New macro specifying size of
4370 iterator stack (instead of hardcoded number). Increase from 2 to
4371 4 to make room for propertized overlay strings before and after a
4372 display string, image or composition.
4373 (struct it): Add image_id and method members to iterator stack.
4374
4375 * xdisp.c (init_from_display_pos): Don't set it->method and
4376 overlay_string_index after pop_it. Add asserts.
4377 (handle_stop): Look for overlay strings around a display string,
4378 image, or composition. Handle properties on those strings.
4379 (next_overlay_string): Don't set string, pos or method after pop_it.
4380 (get_overlay_strings_1): Split from get_overlay_strings; don't
4381 modify it if no overlay strings are found.
4382 (get_overlay_strings): Use get_overlay_strings_1. Always set
4383 it->string and it->method.
4384 (push_it): Push it->image_id and it->method. Push it->object
4385 instead of it->string if method is GET_FROM_IMAGE.
4386 (pop_it): Pop it->image_id and it->method. Ppo it->object
4387 instead of it->string if method is GET_FROM_IMAGE.
4388 Reset it->current.string_pos if popped it->string is nil.
4389 (reseat_1): Remove comment dated 19 May 2003. It expressed doubt
4390 whether a given change was correct; but the change is correct.
4391 Clear it->string_from_display_prop_p.
4392 (set_iterator_to_next): Rely on it->method and it->image_id from
4393 iterator stack, instead of setting them explicitly after pop_it.
4394
4395 * dispnew.c (sit_for): Undo 2006-06-01 change. Instead, a
4396 negative time forces redisplay even when input is available.
4397 (Fsit_for): Doc fix.
4398
4399 2006-06-13 Kim F. Storm <storm@cua.dk>
4400
4401 * dispnew.c: Modify preemptive redisplay to be based on periodic
4402 checks for input.
4403 (PERIODIC_PREEMPTION_CHECKING): Define to 1 iff EMACS_HAS_USECS.
4404 (Vredisplay_preemption_period): New variable.
4405 (syms_of_display): DEFVAR_LISP and initialize it.
4406 (preemption_period, preemption_next_check): New variables.
4407 (update_frame, update_single_window): Initialize them based on
4408 Vredisplay_preemption_period if !force_p.
4409 (update_window, update_frame_1): Use them to determine when to
4410 check for input.
4411
4412 2006-06-03 Aidan Kehoe <kehoea@parhasard.net>
4413
4414 * lread.c (read_escape): Provide a Unicode character escape
4415 syntax; \u followed by exactly four or \U followed by exactly
4416 eight hex digits in a comment or string is read as a Unicode
4417 character with that code point.
4418
4419 2006-06-09 Eli Zaretskii <eliz@gnu.org>
4420
4421 * window.c (window_scroll_pixel_based): Signal "Beginning of
4422 buffer" when scroll-down at the beginning of an empty buffer.
4423
4424 2006-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4425
4426 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
4427 Exclude 0x7f from ASCII range.
4428
4429 2006-06-05 Jason Rumney <jasonr@gnu.org>
4430
4431 * w32term.c (w32_set_scroll_bar_thumb, x_scroll_bar_create)
4432 (w32_set_vertical_scroll_bar, w32_scroll_bar_handle_click)
4433 (x_scroll_bar_report_motion): Remove workarounds for
4434 versions of Windows NT < 3.51.
4435 [!SIF_ALL]: Remove.
4436 (pfnSetScrollInfo, pfnGetScrollInfo): Remove.
4437 (w32_initialize): Don't dynamically load Get/SetScrollInfo.
4438
4439 2006-06-04 David Kastrup <dak@gnu.org>
4440
4441 * dispnew.c: Mention `redisplay-dont-pause' in doc string of
4442 `sit-for'.
4443
4444 2006-06-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4445
4446 * macfns.c (x_set_icon_name): Apply 2006-06-02 change for xfns.c.
4447
4448 * macgui.h (USE_MAC_TSM): Set default to 1 on Mac OS X.
4449
4450 * macterm.c (tsm_document_id) [USE_MAC_TSM]: New variable.
4451 (Qtext_input, Qupdate_active_input_area, Qunicode_for_key_event)
4452 [USE_MAC_TSM]: Likewise.
4453 (syms_of_macterm) [USE_MAC_TSM]: Intern and staticpro them.
4454 (Qbefore_string) [USE_MAC_TSM]: Add extern.
4455 (do_app_resume, do_app_suspend) [USE_MAC_TSM]: Call
4456 ActivateTSMDocument/DeactivateTSMDocument.
4457 (mac_store_event_ref_as_apple_event): Call mac_post_mouse_moved_event.
4458 (mac_handle_window_event) [USE_MAC_TSM]: Handle
4459 kEventWindowFocusAcquired/kEventWindowFocusRelinquish.
4460 (mac_handle_text_input_event) [USE_MAC_TSM]: New function.
4461 (install_window_handler) [USE_MAC_TSM]: Install it. Register
4462 kEventWindowFocusAcquired/kEventWindowFocusRelinquish.
4463 (keycode_to_xkeysym_table): Add entry for f16.
4464 (XTread_socket) [USE_MAC_TSM]: Set/reset read_socket_inev
4465 before/after passing keystroke event to toolbox dispatcher.
4466 (init_tsm) [USE_MAC_TSM]: New function.
4467 (mac_initialize) [USE_MAC_TSM]: Call it.
4468 (Vmac_ts_active_input_overlay) [USE_MAC_TSM]: New defvar.
4469
4470 * macterm.h (EVENT_PARAM_TEXT_INPUT_SEQUENCE_NUMBER): New enumerator.
4471
4472 2006-06-02 John Paul Wallington <jpw@gnu.org>
4473
4474 * xfns.c (x_set_name_internal): Set icon to `text', derived from
4475 name, when frame's icon_name isn't a string rather than only when
4476 it is nil.
4477
4478 2006-06-03 Eli Zaretskii <eliz@gnu.org>
4479
4480 * w32fns.c (x_set_icon_name): Don't use arg if it's not a string
4481 and not nil.
4482
4483 2006-06-02 Chong Yidong <cyd@stupidchicken.com>
4484
4485 * xfns.c (x_set_icon_name): No-op if arg is non-nil and not a
4486 string.
4487
4488 2006-06-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4489
4490 * xdisp.c (next_element_from_composition): Set it->object to
4491 it->string if composition is coming from string.
4492 (set_cursor_from_row): Don't return 0 unless row displays a
4493 continued line.
4494 (dump_glyph): Dump composite glyph.
4495
4496 2006-06-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4497
4498 * gtkutil.c (menu_nav_ended): Check that menubar_widget is not NULL.
4499
4500 2006-06-01 Richard Stallman <rms@gnu.org>
4501
4502 * window.c (Fsplit_window): Doc fix.
4503
4504 2006-06-01 Micha\e,Ak\e(Bl Cadilhac <michael.cadilhac@lrde.org>
4505
4506 * process.c (deleted_pid_list): New variable to store the pids
4507 of deleted processes. Declare it only if SIGCHLD is defined.
4508 (init_process): Initialize it.
4509 (syms_of_process): Staticpro it.
4510 (Fdelete_process): Add pid of the deleted process to it. Check after
4511 the addition and before the kill if the process is already stopped,
4512 in which case it is deleted from the list and not killed.
4513 (sigchld_handler): Define it only if SIGCHLD is. Search the process
4514 that signaled Emacs in `deleted_pid_list' before `Vprocess_alist'.
4515 Original idea by Stefan Monnier.
4516
4517 2006-06-01 Kim F. Storm <storm@cua.dk>
4518
4519 * dispnew.c (sit_for): Perform redisplay even if input is pending
4520 when redisplay-dont-pause is non-nil.
4521
4522 2006-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4523
4524 * macterm.c (mac_handle_visibility_change): Set buf.arg to Qnil.
4525 (XTread_socket): Remove obsolete comment.
4526
4527 2006-06-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4528
4529 * xmenu.c (syms_of_xmenu): Make accelerate-menu an alias for
4530 menu-bar-open.
4531
4532 2006-06-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4533
4534 * xmenu.c (Fmenu_bar_open, syms_of_xmenu): Change menu-bar-start to
4535 menu-bar-open.
4536
4537 * gtkutil.c (menu_nav_ended): Change x-menu-bar-start to menu-bar-open.
4538
4539 2006-05-31 Juri Linkov <juri@jurta.org>
4540
4541 * minibuf.c (Vhistory_add_new_input): New variable.
4542 (read_minibuf): Use it.
4543 (syms_of_minibuf) <history-add-new-input>: New Lisp variable.
4544 (syms_of_minibuf) <history-delete-duplicates>: Doc fix.
4545
4546 2006-05-31 Kim F. Storm <storm@cua.dk>
4547
4548 * process.c (select_wrapper): Add wrapper around select to work around
4549 "incomplete backtrace" bug in gdb 5.3, when emacs is stopped inside
4550 select called from wait_reading_process_output.
4551
4552 2006-05-30 Andreas Schwab <schwab@suse.de>
4553
4554 * xmenu.c (Fmenu_bar_start): Return a value.
4555
4556 2006-05-30 Richard Stallman <rms@gnu.org>
4557
4558 * coding.c (Ffind_operation_coding_system): Doc fix.
4559
4560 2006-05-30 Eli Zaretskii <eliz@gnu.org>
4561
4562 * w32term.c (x_draw_hollow_cursor): Fix last change.
4563
4564 2006-05-29 Kim F. Storm <storm@cua.dk>
4565
4566 * w32term.c (x_draw_stretch_glyph_string): Fix last change.
4567
4568 2006-05-29 Eli Zaretskii <eliz@gnu.org>
4569
4570 * coding.c (Ffind_operation_coding_system): Doc fix.
4571
4572 2006-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4573
4574 * macfns.c [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility):
4575 Call mac_set_font_info_for_selection if font panel is made visible.
4576
4577 * macterm.c (font_panel_shown_p) [USE_MAC_FONT_PANEL]: New variable.
4578 (mac_font_panel_visible_p, mac_show_hide_font_panel)
4579 [USE_MAC_FONT_PANEL]: New functions.
4580 [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection):
4581 Return immediately if font panel is not visible.
4582
4583 * macterm.h (mac_font_panel_visible_p, mac_show_hide_font_panel):
4584 Add externs.
4585
4586 2006-05-29 Dan Nicolaescu <dann@ics.uci.edu>
4587
4588 * search.c (matcher_overflow): Mark as NO_RETURN.
4589
4590 * xterm.c (x_connection_closed): Likewise.
4591
4592 * sysdep.c (croak): Likewise.
4593
4594 * sound.c (sound_perror, alsa_sound_perror): Likewise.
4595
4596 * lisp.h (die, nsberror): Likewise.
4597
4598 2006-05-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4599
4600 * sound.c (alsa_open, alsa_configure, alsa_write):
4601 Move assignment to err out of if-statement.
4602
4603 * gtkutil.c (menu_nav_ended): New function.
4604 (create_menus): Connect menu_nav_ended to "selection-done" to fix
4605 grabs.
4606
4607 * xmenu.c (Fmenu_bar_start): New function for USE_GTK and USE_X_TOOLKIT.
4608
4609 2006-05-28 Dan Nicolaescu <dann@ics.uci.edu>
4610
4611 * charset.h (invalid_character): Mark as NO_RETURN.
4612
4613 2006-05-29 Kenichi Handa <handa@m17n.org>
4614
4615 * coding.c (Ffind_operation_coding_system): Call a function by
4616 safe_call1 instead of call1.
4617
4618 2006-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
4619
4620 * window.c (struct saved_window): Add `dedicated'.
4621 (Fset_window_configuration, save_window_save): Save/restore the
4622 `dedicated' flag.
4623
4624 2006-05-28 Kim F. Storm <storm@cua.dk>
4625
4626 * xdisp.c (set_cursor_from_row): If cursor cannot be set in row,
4627 don't update w->cursor and return 0. Return 1 on success.
4628 (try_cursor_movement): Repeat set_cursor_from_row on successive rows
4629 until it succeeds.
4630
4631 * dispextern.h (set_cursor_from_row): Update prototype.
4632
4633 2006-05-28 Kim F. Storm <storm@cua.dk>
4634
4635 * xdisp.c (get_phys_cursor_geometry): Return computed x and y through
4636 parameters. Adjust x and width in case cursor in on a partially
4637 visible stretch glyph on the left edge.
4638 (erase_phys_cursor): Don't erase into left fringe/margin in case
4639 previous cursor glyph is a partially visible stretch glyph on left.
4640
4641 * dispextern.h (get_phys_cursor_geometry): Update prototype.
4642
4643 * xterm.c (x_draw_stretch_glyph_string): Fix problems with invisible
4644 cursor and erasing cursor on partially visible stretch glyph on left.
4645 (x_draw_hollow_cursor): Compute x via get_phys_cursor_geometry.
4646
4647 * macterm.c: Likewise.
4648
4649 * w32term.c: Likewise.
4650
4651 2006-05-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4652
4653 * macselect.c (mac_handle_apple_event):
4654 Return errAEEventNotHandled if key binding is not found.
4655
4656 2006-05-26 Eli Zaretskii <eliz@gnu.org>
4657
4658 * emacs.c (main) [PROFILING]: Enable also for __MINGW32__.
4659 [__MINGW32__]: MinGW-specific declaration of `etext'.
4660
4661 * w32heap.c (etext, edata): Remove unused definitions.
4662
4663 2006-05-26 Chong Yidong <cyd@stupidchicken.com>
4664
4665 * fileio.c (Fcopy_file): Delete argument MUSTBENEW.
4666 Incorporate the exclusive file-opening functionality into the behavior
4667 when OK-IF-ALREADY-EXISTS is nil.
4668 (Frename_file): Call Fcopy_file without MUSTBENEW argument.
4669
4670 2006-05-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4671
4672 * sound.c (alsa_configure): Move get period/buffer_size after
4673 setting hwparams.
4674
4675 2006-05-26 Kenichi Handa <handa@m17n.org>
4676
4677 * coding.c (Ffind_operation_coding_system): Allow (FILENAME
4678 . BUFFER) in TARGET.
4679
4680 2006-05-25 Chong Yidong <cyd@stupidchicken.com>
4681
4682 * image.c (png_load): Don't call fclose on NULL.
4683
4684 2006-05-25 Luc Teirlinck <teirllm@auburn.edu>
4685
4686 * fns.c (Fyes_or_no_p):
4687 * callint.c (Fcall_interactively): Fread_from_minibuffer now takes
4688 only seven args.
4689
4690 2006-05-25 Juri Linkov <juri@jurta.org>
4691
4692 * lisp.h (Fread_from_minibuffer): Decrement number of args.
4693
4694 * minibuf.c (read_minibuf): Remove arg KEEP_ALL. Callers changed.
4695 (Fread_from_minibuffer): Remove arg KEEP_ALL. Callers changed.
4696
4697 * buffer.c (mode-line-format): Fix docstring.
4698
4699 2006-05-25 Richard Stallman <rms@gnu.org>
4700
4701 * emacs.c (main, Fdump_emacs): Don't test __linux or __linux__.
4702
4703 2006-05-24 Luc Teirlinck <teirllm@auburn.edu>
4704
4705 * puresize.h (BASE_PURESIZE): Increase to 1210000.
4706
4707 2006-05-24 Alan Mackenzie <acm@muc.de>
4708
4709 * lread.c (Vload_history): Enhance doc-string to say that the file
4710 is the absolute truename of the loaded file.
4711
4712 * lread.c (Vafter_load_alist): doc-string: state that an element
4713 now has a regexp to match file names, not a file name as such.
4714
4715 * lread.c (readevalloop): Call file-truename on the name for
4716 load-history, except at preloading time.
4717
4718 * lread.c (Fload): At preloading time, preserve the extension of
4719 the filename which goes into load-history. New var hist_file_name.
4720
4721 * lread.c (Fload): Do eval-after-load stuff by calling the lisp
4722 function do-after-load-evaluation.
4723
4724 2006-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4725
4726 * mac.c (ae_attr_table): New variable.
4727 (syms_of_mac): Intern and staticpro its elements.
4728 (mac_aelist_to_lisp): Also convert Apple event attributes.
4729 (mac_ae_put_lisp): New function.
4730 (create_apple_event_from_event_ref) [MAC_OSX]: Use typeUTF8Text.
4731
4732 * macfns.c (Fx_server_version): Use gestaltSystemVersionMajor etc.
4733
4734 * macselect.c (Qemacs_suspension_id): New variable.
4735 (syms_of_macselect): Intern and staticpro it.
4736 (struct suspended_ae_info): New struct.
4737 (deferred_apple_events, defer_apple_events)
4738 (Fmac_process_deferred_apple_events): Use it.
4739 (suspended_apple_events): New variable.
4740 (mac_handle_apple_event_1): New function.
4741 (mac_handle_apple_event): Use it. Don't process previously
4742 suspended events.
4743 (cleanup_suspended_apple_events, get_suspension_id)
4744 (cleanup_all_suspended_apple_events): New functions.
4745 (init_apple_event_handler): Call cleanup_all_suspended_apple_events
4746 at exit.
4747 (Fmac_cleanup_expired_apple_events, Fmac_ae_set_reply_parameter)
4748 (Fmac_resume_apple_event): New defuns.
4749 (syms_of_macselect): Defsubr them.
4750
4751 * macterm.c (fn_keycode_to_keycode_table, XTread_socket) [MAC_OSX]:
4752 Fix last change. Don't map `fn' modifier if pressed with F1 ... F12.
4753
4754 * macterm.h (TYPE_FILE_NAME): Change from macro to enumerator.
4755 (KEY_EMACS_SUSPENSION_ID_ATTR): New enumerator.
4756 (keyReplyRequestedAttr) [MAC_OS_X_VERSION_MAX_ALLOWED < 1030]: Likewise.
4757 (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
4758 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
4759 Likewise.
4760 (typeUTF8Text, kEventParamWindowMouseLocation)
4761 [MAC_OSX && MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Likewise.
4762 (x_get_focus_frame, mac_ae_put_lisp): Add externs.
4763
4764 2006-05-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4765
4766 * macterm.c (fn_keycode_to_xkeysym_table, convert_fn_keycode): Remove.
4767 (fn_keycode_to_keycode_table) [MAC_OSX]: New variable.
4768 (mac_set_unicode_keystroke_event) [TARGET_API_MAC_CARBON]: New function.
4769 (XTread_socket) [TARGET_API_MAC_CARBON]: Use it.
4770 (XTread_socket) [MAC_OSX]: Try 'uchr' Unicode keyboard-layout
4771 resource to backtranslate key with modifiers.
4772 (XTread_socket): Don't set read_socket_inev around AEProcessAppleEvent.
4773
4774 2006-05-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4775
4776 * xterm.c: Remove declarations already in xterm.h.
4777
4778 * xterm.h: Add extern declarations for x_clear_errors,
4779 x_fully_uncatch_errors, x_catching_errors and
4780 x_alloc_lighter_color_for_widget. Remove duplicated declarations.
4781
4782 2006-05-21 Richard Stallman <rms@gnu.org>
4783
4784 * xfaces.c (best_matching_font): Abort for best == NULL
4785 before we start to use it.
4786
4787 * buffer.c (syms_of_buffer, Fmake_overlay): Doc fixes.
4788
4789 2006-05-20 Kim F. Storm <storm@cua.dk>
4790
4791 * xfaces.c (best_matching_font): Fix crash in 2006-05-17 change.
4792
4793 2006-05-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4794
4795 * macterm.c (convert_fn_keycode): Fix last change.
4796
4797 2006-05-19 Eli Zaretskii <eliz@gnu.org>
4798
4799 * w32.c (init_environment): Perform the processing of environment
4800 variables on a copy of default variables and their values, not on
4801 the original. Simplify code that calls ExpandEnvironmentStrings
4802 and make buf1[] and buf2[] more visible for easier debugging.
4803
4804 2006-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4805
4806 * frame.c (x_set_border_width): Remove #ifndef MAC_OS.
4807
4808 * image.c [MAC_OS] (gif_load): Allocate Lisp string first.
4809
4810 * macfns.c (Fx_focus_frame): Don't check dpyinfo->x_focus_frame.
4811
4812 * macterm.c (XTread_socket) [TARGET_API_MAC_CARBON && MAC_OSX]:
4813 Forward keyUp events to toolbox_dispatcher.
4814
4815 * window.c (foreach_window): Check WINDOWP (FRAME_ROOT_WINDOW (f)).
4816
4817 2006-05-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4818
4819 * config.in: Regenerated (HAVE_ALSA).
4820
4821 * sound.c (alsa_sound_perror, alsa_open, alsa_period_size)
4822 (alsa_configure, alsa_close, alsa_choose_format, alsa_write)
4823 (snd_error_quiet, alsa_init): New functions.
4824 (vox_init): Return 0 if unable to open device.
4825 (Fplay_sound_internal): Test for alsa first and use vox (oss) as
4826 a fallback.
4827 (struct sound_device): Add period_size.
4828 (wav_play, au_play): Use period_size if set.
4829
4830 * Makefile.in (CFLAGS_SOUND): New flags for ALSA.
4831 (ALL_CFLAGS): Add CFLAGS_SOUND.
4832
4833 2006-05-18 Kenichi Handa <handa@m17n.org>
4834
4835 * callproc.c (Fcall_process): Reject encoding arguments by
4836 ascii-incompatible coding systems (e.g. utf-16).
4837
4838 * coding.c (Qascii_incompatible): New variable.
4839 (syms_of_coding): Setup Qascii_incompatible.
4840 (setup_coding_system): Be sure to initialize coding->common_flags.
4841 Check `ascii-incompatible' property of the coding system.
4842
4843 * coding.h (CODING_ASCII_INCOMPATIBLE_MASK): New macro.
4844
4845 2006-05-18 Kim F. Storm <storm@cua.dk>
4846
4847 * xdisp.c (display_tool_bar_line): Restore entire tool-bar
4848 geometry when backtracking in case last image doesn't fit on line.
4849
4850 2006-05-18 MIYOSHI Masanori <miyoshi@meadowy.org> (tiny change)
4851
4852 * xdisp.c (display_tool_bar_line): Don't adjust tool-bar height by
4853 more than height of one frame default line.
4854
4855 2006-05-17 Richard Stallman <rms@gnu.org>
4856
4857 * xfaces.c (better_font_p): Any font beats no font.
4858 (best_matching_font): Simplify based on above change.
4859
4860 * buffer.c (Fprevious_overlay_change, Fnext_overlay_change): Doc fixes.
4861
4862 2006-05-16 Kim F. Storm <storm@cua.dk>
4863
4864 * xterm.c (handle_one_xevent): Check that f is not NULL before
4865 calling x_kill_gs_process.
4866
4867 2006-05-14 Richard Stallman <rms@gnu.org>
4868
4869 * textprop.c (Fnext_single_char_property_change)
4870 (Fprevious_single_char_property_change): Don't allow returning
4871 value beyond LIMIT in any cases.
4872 (Fnext_char_property_change, Fprevious_char_property_change): Doc fix.
4873
4874 * intervals.c (get_local_map): Abort if POSITION outside BEGV, ZV.
4875
4876 2006-05-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4877
4878 * xterm.c (handle_one_xevent): Check that f is not NULL before
4879 calling _XEditResCheckMessages.
4880
4881 2006-05-14 Kim F. Storm <storm@cua.dk>
4882
4883 * xterm.c (handle_one_xevent): Fix crash in 2006-03-24 change.
4884
4885 2006-05-13 Eli Zaretskii <eliz@gnu.org>
4886
4887 * frame.c (x_set_border_width): Fix error message to say "frame",
4888 not "window".
4889
4890 * Makefile.in (SOME_MACHINE_LISP): Add fringe.elc.
4891
4892 2006-05-12 Chong Yidong <cyd@stupidchicken.com>
4893
4894 * intervals.c (set_point_both): Fix mixup before before and after
4895 in variable names.
4896
4897 * editfns.c (Fline_beginning_position): Inhibit point-motion hooks
4898 while setting point temporarily.
4899
4900 2006-05-11 Richard Stallman <rms@gnu.org>
4901
4902 * lread.c (readevalloop): Abort if START non-nil for non-buffer input.
4903
4904 2006-05-11 Kim F. Storm <storm@cua.dk>
4905
4906 * xdisp.c (redisplay_tool_bar): Handle large tool-bar-border values.
4907
4908 2006-05-11 Kenichi Handa <handa@m17n.org>
4909
4910 * fileio.c (Finsert_file_contents): Fix for the case of IO error
4911 while handling replace operation.
4912
4913 2006-05-10 Kenichi Handa <handa@m17n.org>
4914
4915 * xfaces.c (realize_default_face) [HAVE_X_WINDOWS]: If the font
4916 chosen for the default face was different from the frame font,
4917 adjust the frame font.
4918
4919 2006-05-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4920
4921 * image.c (Qduration) [MAC_OS]: Undo previous change.
4922 (syms_of_image) [MAC_OS]: Likewise.
4923 [MAC_OS] (gif_load): Emulate Graphic Control Extension block.
4924
4925 * macfns.c (x_to_mac_color): Fix shift amount change.
4926 (mac_set_font) [USE_MAC_FONT_PANEL]: Use x_get_focus_frame.
4927 [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility): Doc fix.
4928
4929 * macselect.c (Vmac_service_selection) [MAC_OSX]: Rename from
4930 Vmac_services_selection. All uses changed.
4931 (mac_store_service_event): Rename from mac_store_services_event in
4932 extern and calls.
4933
4934 * macterm.c (Qservice) [MAC_OSX]: Rename from Qservices. All uses
4935 changed.
4936 [MAC_OSX] (mac_store_service_event): Rename from
4937 mac_store_services_event. All callers changed.
4938 [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection): Add args
4939 FACE_ID and C. All callers changed.
4940 (x_free_frame_resources) [USE_MAC_FONT_PANEL]: Call
4941 mac_set_font_info_for_selection when focus frame is destroyed.
4942 (XTread_socket): Revert to FrontNonFloatingWindow/FrontWindow.
4943
4944 * macterm.h (mac_set_font_info_for_selection): Add 2nd and 3rd
4945 args in extern.
4946
4947 2006-05-09 Chong Yidong <cyd@stupidchicken.com>
4948
4949 * keymap.c (describe_map): Avoid generating duplicate entries if
4950 the shadowed binding has the same definition.
4951
4952 2006-05-09 Kenichi Handa <handa@m17n.org>
4953
4954 * keymap.c (push_key_description): Handle invalid character key.
4955
4956 2006-05-08 Kenichi Handa <handa@m17n.org>
4957
4958 * callproc.c (Fcall_process): Use system_eol_type for encoding
4959 arguments if eol_type is not yet decided.
4960
4961 * coding.h (system_eol_type): Extern it.
4962
4963 * coding.c (setup_coding_system): For invalid coding-system, set
4964 coding->eol_type to CODING_EOL_UNDECIDED.
4965 (encode_coding): Cancel previous change.
4966 (shrink_encoding_region): Likewise.
4967 (code_convert_region1): Likewise.
4968 (code_convert_string1): Likewise.
4969 (code_convert_string_norecord): Likewise.
4970
4971 * fileio.c (choose_write_coding_system): Use system_eol_type for
4972 encoding if eol_type is not yet decided.
4973
4974 * process.c (setup_process_coding_systems): Use system_eol_type
4975 for encoding if eol_type is not yet decided.
4976 (read_process_output): Likewise.
4977 (send_process): Likewise.
4978
4979 2006-05-07 Juanma Barranquero <lekktu@gmail.com>
4980
4981 * minibuf.c (syms_of_minibuf) <history-length>: Fix typo in doc.
4982
4983 2006-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4984
4985 * mac.c (Fmac_clear_font_name_table): Move defun to macfns.c.
4986 (syms_of_mac): Likewise for defsubr.
4987
4988 * macfns.c (mac_set_font): New function.
4989 (mac_frame_parm_handlers, syms_of_macfns): Replace x_set_font with it.
4990 (mac_window) [TARGET_API_MAC_CARBON && MAC_OSX]: Specify
4991 kWindowToolbarButtonAttribute when creating window.
4992 (Fmac_clear_font_name_table): Move from macfns.c.
4993 (syms_of_macfns): Likewise for defsubr.
4994 [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility): New defun.
4995 (syms_of_macfns) [USE_MAC_FONT_PANEL]: Defsubr it.
4996
4997 * macgui.h (USE_MAC_FONT_PANEL): Define to 1 if USE_ATSUI is set
4998 and build is done on Mac OS X 10.2 and later.
4999
5000 * macselect.c (mac_do_receive_drag): Remove unused variable `index'.
5001 (mac_store_services_event): Change return type in extern.
5002
5003 * macterm.c (XLoadQueryFont) [USE_ATSUI]: Set font->mac_fontnum to
5004 FMFontFamily value.
5005 [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection): New function.
5006 (x_new_focus_frame) [USE_MAC_FONT_PANEL]: Use it.
5007 (QCfamily, QCweight, QCslant, Qnormal, Qbold, Qitalic): Add extern.
5008 (QWindow) [MAC_OSX]: Likewise.
5009 (Qfont) [USE_MAC_FONT_PANEL]: Likewise.
5010 (Vmac_atsu_font_table) [USE_ATSUI]: New variable.
5011 (syms_of_macterm) [USE_ATSUI]: Defvar it.
5012 (Qtoolbar_switch_mode) [MAC_OSX]: New variable.
5013 (Qpanel_closed, Qselection) [USE_MAC_FONT_PANEL]: Likewise.
5014 (syms_of_macterm): Intern and staticpro them.
5015 (init_font_name_table) [USE_ATSUI]: Add data to Vmac_atsu_font_table.
5016 [TARGET_API_MAC_CARBON] (mac_store_event_ref_as_apple_event):
5017 New function.
5018 [USE_CARBON_EVENTS] (mac_handle_command_event): Use it.
5019 [MAC_OSX] (mac_store_services_event): Likewise.
5020 [USE_CARBON_EVENTS] (mac_handle_window_event) [MAC_OSX]: Handle
5021 kEventWindowToolbarSwitchMode event.
5022 (install_window_handler) [USE_CARBON_EVENTS && MAC_OSX]: Register it.
5023 [MAC_OSX] (mac_store_services_event): Change return type to OSStatus.
5024 [USE_MAC_FONT_PANEL] (mac_handle_font_event): New function.
5025 (install_window_handler) [USE_MAC_FONT_PANEL]: Install it.
5026 (XTread_socket): Select window on mouse click if x_focus_frame is NULL.
5027
5028 * macterm.h (mac_set_font_info_for_selection): Add extern.
5029
5030 2006-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5031
5032 * image.c (Qduration) [MAC_OS]: New variable.
5033 (syms_of_image) [MAC_OS]: Intern and staticpro it.
5034 [MAC_OS] (gif_load): Save image extension data in img->data.lisp_val.
5035 [MAC_OSX] (image_load_quartz2d): Use cfstring_create_with_utf8_cstring
5036 instead of cfstring_create_with_string.
5037
5038 2006-05-06 Kim F. Storm <storm@cua.dk>
5039
5040 * .gdbinit (xframe): Print frame name.
5041 (xlist): New command to print a list (max 10 elements).
5042 (xpr): Print lisp object of any type.
5043 (pitx): Print it->pixel_width.
5044
5045 2006-05-05 Kenichi Handa <handa@m17n.org>
5046
5047 * xdisp.c (handle_composition_prop): Fix for the case of empty
5048 composition component.
5049
5050 2006-05-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5051
5052 * keyboard.c (make_lispy_event) [MAC_OS]: Get Apple event info
5053 from event->arg.
5054
5055 * termhooks.h (enum event_kind) [MAC_OS]: Update comment for
5056 MAC_APPLE_EVENT.
5057
5058 * macterm.h (mac_make_lispy_event_code): Remove extern.
5059 (mac_post_mouse_moved_event): Add extern.
5060 (mac_aelist_to_lisp, mac_aedesc_to_lisp): Change arg 1 to
5061 `const AEDesc *' in externs.
5062 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]: New extern.
5063
5064 * mac.c (mac_aelist_to_lisp, mac_aedesc_to_lisp): Change arg 1 to
5065 `const AEDesc *'.
5066 [TARGET_API_MAC_CARBON] (create_apple_event): New function.
5067 [TARGET_API_MAC_CARBON] (create_apple_event_from_event_ref): Use it.
5068 Use xrealloc instead of repeated xmalloc/xfree.
5069 [TARGET_API_MAC_CARBON] (create_apple_event_from_drag_ref):
5070 New function.
5071
5072 * macmenu.c (restore_menu_items, cleanup_popup_menu): Return a value.
5073
5074 * macselect.c: Update copyright year.
5075 (mac_store_apple_event): Change return type to void in extern.
5076 (mac_handle_apple_event): Don't get return value from
5077 mac_store_apple_event.
5078 [TARGET_API_MAC_CARBON] (Vmac_dnd_known_types): New variable.
5079 (syms_of_macselect) [TARGET_API_MAC_CARBON]: Defvar it.
5080 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Move function from
5081 macterm.c. Use Vmac_dnd_known_types as acceptable flavors.
5082 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise. New
5083 implementation using create_apple_event_from_drag_ref.
5084 [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
5085 (mac_do_receive_dragUPP): Move variables from macterm.c.
5086 (install_drag_handler, remove_drag_handler): New functions.
5087
5088 * macterm.c (XTread_socket) [TARGET_API_MAC_CARBON]: Try window
5089 path select also for proxy icon click.
5090 [TARGET_API_MAC_CARBON] (mac_post_mouse_moved_event): New function.
5091 [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback): Use it.
5092 (xlfdpat_create): Remove unused label `error' and trailing sentences.
5093 (mac_do_track_drag, mac_do_receive_drag): Move functions to macselect.c.
5094 (mac_do_track_dragUPP, mac_do_receive_dragUPP): Move variables to
5095 macselect.c.
5096 (install_drag_handler, remove_drag_handler): Add extern.
5097 (mac_store_apple_event): Change return type to void. All uses changed.
5098 Create Lisp object from Apple event and store it into input event.
5099 (mac_make_lispy_event_code): Remove function.
5100 [TARGET_API_MAC_CARBON] (mac_store_drag_event): New function.
5101 (install_window_handler): Call install_drag_handler.
5102 (remove_window_handler): Call remove_drag_handler.
5103
5104 2006-05-03 Richard Stallman <rms@gnu.org>
5105
5106 * sound.c (Fplay_sound_internal): Dynamically allocate
5107 current_sound_device and current_sound.
5108 (sound_cleanup): Free them.
5109
5110 * minibuf.c (read_minibuf): Don't use read_minibuf_noninteractive
5111 when inside a keyboard macro.
5112
5113 2006-05-02 Andreas Schwab <schwab@suse.de>
5114
5115 * xmenu.c (restore_menu_items): Return a value.
5116
5117 2006-05-01 Martin Rudalics <rudalics@gmx.at>
5118
5119 * syntax.c (Fforward_comment): Detect generic comment at beginning of
5120 buffer when moving backwards.
5121
5122 2006-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5123
5124 * dispnew.c (update_window): Don't set changed_p when mode/header
5125 line is updated.
5126
5127 * xdisp.c (prepare_menu_bars) [MAC_OS]: Call mac_update_title_bar.
5128 (get_glyph_face_and_encoding, get_char_face_and_encoding):
5129 Don't distinguish known faces from others.
5130
5131 * mac.c (mac_coerce_file_name_ptr): Try typeFSRef if coercion
5132 through typeFileURL failed.
5133
5134 * macfns.c (mac_update_title_bar): New function.
5135 [TARGET_API_MAC_CARBON] (mac_update_proxy_icon): New function.
5136 (show_hourglass, hide_hourglass) [USE_CG_DRAWING]:
5137 Call mac_prepare_for_quickdraw.
5138
5139 * macgui.h (USE_ATSUI): Set default to 1 if MAC_OSX is defined.
5140 (USE_CG_DRAWING): Don't define if compiled on Mac OS X 10.1.
5141 (enum pcm_status): New enum.
5142 (XCHARSTRUCTROW_CHAR_VALID_P, XCHARSTRUCTROW_SET_CHAR_VALID)
5143 (XCharStructRow): Remove. Now validity is represented by
5144 non-negativeness of sum of ascent and descent.
5145 (struct MacFontStruct): Change type of member `rows'.
5146 (struct _XGC) [USE_CG_DRAWING]: Add member `clip_rects'.
5147
5148 * macterm.c (mac_draw_line, mac_draw_line_to_pixmap):
5149 Adjust endpoints of strictly horizontal/vertical lines.
5150 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Set clip_rects.
5151 (pcm_init, pcm_get_status): New functions.
5152 (x_per_char_metric, XLoadQueryFont): Use them instead of
5153 XCharStructRow and related macros.
5154 (x_draw_relief_rect): Don't adjust arguments of mac_draw_line.
5155 (x_free_frame_resources) [TARGET_API_MAC_CARBON]: Free FRAME_FILE_NAME.
5156 (XTread_socket) [TARGET_API_MAC_CARBON]: Handle proxy icon drag
5157 and window path pop-up menu on title bar.
5158 (mac_use_core_graphics) [USE_CG_DRAWING]: Set default to 1.
5159
5160 * macterm.h (mac_update_title_bar): Add extern.
5161 (struct mac_output) [TARGET_API_MAC_CARBON]: New member `file_name'.
5162 (FRAME_FILE_NAME): New macro.
5163
5164 * unexmacosx.c (unexec): Error if trying unexec from dumped executable.
5165
5166 2006-04-30 Richard Stallman <rms@gnu.org>
5167
5168 * keymap.c (Fdefine_key): Improve error message
5169 when KEY begins with a non-prefix key.
5170
5171 2006-04-30 Martin Rudalics <rudalics@gmx.at>
5172
5173 * syntax.c (Fforward_comment): Don't forget to break out of the loop
5174 when we skipped backward over a generic comment.
5175
5176 2006-04-27 Nick Roberts <nickrob@snap.net.nz>
5177
5178 * .gdbinit (pp1, pv1): Only print value as expression is now
5179 printed out by gud-print.
5180 (pv1): Correct doc string.
5181
5182 2006-04-26 Stefan Monnier <monnier@iro.umontreal.ca>
5183
5184 * keymap.c (store_in_keymap): Change `def' arg to not be `register'.
5185 Seems to trigger a bug in gcc-amd64 4.0.2 20051125 (Red Hat 4.0.2-8):
5186 keymap.c:895: error: address of register variable `def' requested.
5187
5188 2006-04-26 Jason Rumney <jasonr@gnu.org>
5189
5190 * w32term.c (construct_mouse_wheel): Handle negative coordinates.
5191
5192 * w32fns.c (w32_wnd_proc) <WM_LBUTTONDOWN, WM_RBUTTONDOWN>:
5193 <WM_LBUTTONUP, WM_RBUTTONUP>: Call signal_user_input in the cases
5194 where we preempt mouse_button_timer.
5195
5196 2006-04-25 Miles Bader <miles@gnu.org>
5197
5198 * editfns.c (Ffield_beginning, find_field): Undo change of 2006-04-23.
5199
5200 2006-04-24 Stefan Monnier <monnier@iro.umontreal.ca>
5201
5202 * process.h: Include headers for pid_t.
5203
5204 2006-04-24 Kim F. Storm <storm@cua.dk>
5205
5206 * xdisp.c (fill_stretch_glyph_string): Set s->nchars = 1 for code which
5207 does last_glyph=s->first_glyph+s->nchars-1, e.g. if stretch has relief.
5208 (produce_stretch_glyph): Assume that face box height and width is
5209 already included in stretch glyph size so caller doesn't have to
5210 consider the extra space otherwise added (fixes problem in ses.el).
5211
5212 * frame.c (x_set_font): Clear f->n_tool_bar_rows and current frame
5213 matrices to force recalculation of tool-bar height after font change.
5214
5215 * xdisp.c (tool_bar_lines_needed): New local `temp_row' for clarity.
5216 Clear it when done, so we don't accidentally draw a second copy of
5217 the tool-bar after resetting f->n_tool_bar_rows.
5218 (redisplay_tool_bar): Update tool-bar-lines frame parameter whenever
5219 we recalculate f->n_tool_bar_rows.
5220
5221 2006-04-23 Lars Hansen <larsh@soem.dk>
5222
5223 * editfns.c (find_field): Fix comment.
5224 (Ffield_beginning): Fix bug when POS is at field beginning.
5225
5226 2006-04-22 Eli Zaretskii <eliz@gnu.org>
5227
5228 * puresize.h (BASE_PURESIZE): Increase to 1205000.
5229
5230 2006-04-21 Kim F. Storm <storm@cua.dk>
5231
5232 * xdisp.c (redisplay_window): Fix last change. Don't recenter if
5233 window start is at BEGV.
5234
5235 * dispextern.h (struct image): New member `corners'.
5236 (TOP_CORNER, LEFT_CORNER, BOT_CORNER, RIGHT_CORNER): New macros.
5237
5238 * image.c (four_corners_best): New arg CORNERS specifies what pixels
5239 to look at in case image has margin.
5240 (x_create_bitmap_mask): Pass NULL for CORNERS to four_corners_best.
5241 (image_background, image_background_transparent)
5242 (x_build_heuristic_mask): Pass img->corners to four_corners_best.
5243 (gif_load): Set img->corners according to image's margin spec.
5244 Use img->corners values directly where applicable.
5245 Save image extension data in img->data.lisp_val.
5246 (gif_clear_image): New function to free img->data.lisp_val.
5247 (gif_type): Use it instead of generic x_clear_image.
5248 (Fimage_extension_data): New defun.
5249 (syms_of_image): Defsubr it.
5250
5251 2006-04-21 John Sullivan <john@wjsullivan.net> (tiny change)
5252
5253 * window.c (Fdisplay_buffer): Doc fix.
5254
5255 2006-04-21 Eli Zaretskii <eliz@gnu.org>
5256
5257 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Increase to 25000.
5258
5259 2006-04-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5260
5261 * image.c [MAC_OS] (xpm_load_image): Fill in background field
5262 while we have ximg handy.
5263
5264 * macmenu.c (restore_menu_items, save_menu_items): New functions
5265 from xmenu.c.
5266 (set_frame_menubar, digest_single_submenu): Apply 2006-04-18
5267 changes for xmenu.c.
5268
5269 * macterm.c (x_per_char_metric): Return NULL if glyph width is 0.
5270 (add_mac_font_name): New function.
5271 (init_font_name_table): Use it. Adopt the first found font from
5272 those having the same family name.
5273
5274 2006-04-21 Nick Roberts <nickrob@snap.net.nz>
5275
5276 * xdisp.c (note_mouse_highlight): Use build_string.
5277
5278 2006-04-20 Lars Hansen <larsh@soem.dk>
5279
5280 * textprop.c (Fremove_list_of_text_properties):
5281 Ensure modify_region is called only when buffer is modified and that
5282 signal_after_change is allways called in that case.
5283
5284 * print.c (PRINTFINISH): Call signal_after_change.
5285
5286 2006-04-20 Kim F. Storm <storm@cua.dk>
5287
5288 * xdisp.c (redisplay_window): Fix last change.
5289
5290 * xdisp.c (redisplay_window): If current window start is not at the
5291 beginning of a line, select a new window start if buffer is modified
5292 and window start is in the modified region, but the first change is
5293 before window start.
5294
5295 2006-04-18 Richard Stallman <rms@gnu.org>
5296
5297 * xmenu.c (restore_menu_items, save_menu_items): New fns.
5298 (set_frame_menubar): Use save_menu_items. Save updated vector in
5299 the frame before unwinding it. Don't use unuse_menu_items.
5300 Don't use discard_menu_items.
5301 (digest_single_submenu): Abort if an item is not in a pane.
5302 (init_menu_items): Put the error check at the top.
5303
5304 * keymap.c (describe_map): Make "shadowed" warning more verbose.
5305
5306 * window.c (adjust_window_trailing_edge): Correctly distinguish
5307 series vs parallel cases, even when window has no parent.
5308
5309 * abbrev.c (record_symbol): New function.
5310 (Finsert_abbrev_table_description): Sort the abbrevs alphabetically.
5311
5312 2006-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5313
5314 * image.c (x_create_bitmap_from_data) [MAC_OS]: Don't check return
5315 value of xmalloc.
5316
5317 * mac.c (mac_coerce_file_name_ptr, mac_coerce_file_name_desc)
5318 (create_apple_event_from_event_ref, xrm_get_preference_database)
5319 (cfstring_create_normalized): Don't check return value of xmalloc.
5320
5321 * macselect.c (get_scrap_target_type_list, defer_apple_events)
5322 (copy_scrap_flavor_data, mac_handle_service_event): Don't check
5323 return value of xmalloc/xrealloc.
5324
5325 * macterm.c (XCreateGC, x_per_char_metric, xlfdpat_create)
5326 (init_font_name_table, init_font_name_table, mac_do_list_fonts)
5327 (XLoadQueryFont, mac_store_apple_event): Don't check return value
5328 of xmalloc.
5329
5330 2006-04-17 Kim F. Storm <storm@cua.dk>
5331
5332 * window.c (coordinates_in_window): On the vertical border,
5333 calculate the row number measured from the top of the window, not
5334 the top of the frame.
5335 (window_loop): Test w->dedicated with !NILP instead of EQ Qt.
5336 (window_scroll_pixel_based): Fix off-by-one bug in 2002-12-23 change.
5337
5338 2006-04-16 Eli Zaretskii <eliz@gnu.org>
5339
5340 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Reduce to 24000.
5341
5342 2006-04-16 Romain Francoise <romain@orebokech.com>
5343
5344 * puresize.h (BASE_PURESIZE): Decrement back to 1200000.
5345
5346 2006-04-16 Andreas Schwab <schwab@suse.de>
5347
5348 * puresize.h (PURESIZE_RATIO): Reduce to 10/6.
5349
5350 2006-04-15 Romain Francoise <romain@orebokech.com>
5351
5352 * puresize.h (BASE_PURESIZE): Increment to 1210000.
5353
5354 2006-04-13 Micha\e,Ak\e(Bl Cadilhac <michael.cadilhac@lrde.org>
5355
5356 * print.c (Fprin1_to_string): Mention in the `doc' that the
5357 behavior is modified by `print-level' and `print-length'.
5358
5359 2006-04-13 Kenichi Handa <handa@m17n.org>
5360
5361 * coding.c (setup_coding_system): If eol-type is not yet decided
5362 and system_eol_type is not LF, set CODING_REQUIRE_ENCODING_MASK.
5363 If coding_system is nil, return 0.
5364 (code_convert_region1): Even if coding_system is nil, don't skip
5365 conversion if system_eol_type is not LF.
5366 (code_convert_string1): Likewise.
5367 (code_convert_string_norecord): Likewise.
5368
5369 2006-04-13 Kenichi Handa <handa@m17n.org>
5370
5371 * coding.c (setup_coding_system): Fix previous change.
5372 (encode_coding): If eol_type is not yet decided, use system_eol_type.
5373 (shrink_encoding_region): If eol_type is not yet decided and
5374 system_eol_type is not LF, don't shrink.
5375
5376 2006-04-13 Nick Roberts <nickrob@snap.net.nz>
5377
5378 * xdisp.c (note_mouse_highlight): Add help echo for dragging vertical
5379 line.
5380
5381 2006-04-12 Richard Stallman <rms@gnu.org>
5382
5383 * keyboard.c (read_key_sequence): Explicitly avoid keybuf[-1].
5384
5385 * process.c (conv_lisp_to_sockaddr): If FAMILY unknown, just return.
5386 (Fprocess_send_eof): Abort if fail to open null device.
5387
5388 2006-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5389
5390 * fns.c [HAVE_MENUS && MAC_OS]: Include macterm.h.
5391
5392 * image.c [MAC_OS] (xpm_load_image): Add parentheses around
5393 assignment used as truth value. Add explicit braces to avoid
5394 ambiguous `else'.
5395 [MAC_OS] (gif_load): Remove unused variable `gcpro1'.
5396
5397 * lisp.h (syms_of_fontset, Fset_fontset_font): Put extern and
5398 EXFUN in #ifdef HAVE_WINDOW_SYSTEM.
5399 (syms_of_xfns, syms_of_xsmfns, syms_of_xselect, syms_of_xterm):
5400 Put externs in #ifdef HAVE_X_WINDOWS.
5401 (syms_of_macfns, syms_of_macselect, syms_of_macterm)
5402 (syms_of_macmenu, syms_of_mac) [MAC_OS]: Add externs.
5403 (init_mac_osx_environment) [MAC_OSX]: Add extern.
5404
5405 * mac.c (init_process): Remove undef.
5406 (select) [MAC_OSX]: Undefine before including sysselect.h.
5407 (posix_pathname_to_fsspec, fsspec_to_posix_pathname) [MAC_OSX]:
5408 Remove functions and prototypes.
5409 (parse_value): Add parentheses around + inside shift.
5410 (path_from_vol_dir_name): Make static.
5411 (get_temp_dir_name): Remove unused variables `cpb' and `dir_name'.
5412 [!MAC_OSX] (get_path_to_system_folder): Likewise.
5413 (Fmac_get_file_creator, Fmac_get_file_type): Remove unused
5414 variable `cCode'.
5415 (Fmac_coerce_ae_data): Remove unused variables `fref' and `fs'.
5416 (Fmac_get_preference): Add explicit braces to avoid ambiguous `else'.
5417
5418 * macfns.c (x_to_mac_color): Remove unused variable `tail'.
5419 (x_set_mouse_color): Remove unused variable `dpy'.
5420 (Fx_create_frame): Remove unused variable `x_frame_count'.
5421 (Fx_server_version): Add explicit braces to avoid ambiguous `else'.
5422 (x_sync): Move from macterm.c.
5423 (Fx_file_dialog): Remove unused variable `default_filter_index'.
5424
5425 * macmenu.c (min_menu_id): Make element type explicit.
5426
5427 * macselect.c (get_flavor_type_from_symbol): Remove unused
5428 variable `val'.
5429 (get_scrap_private_timestamp, x_get_foreign_selection)
5430 (copy_scrap_flavor_data): Add explicit braces to avoid ambiguous `else'.
5431 (Fmac_process_deferred_apple_events): Remove unused variables
5432 `keyword', `reply', `apple_event', `count', and `err'.
5433
5434 * macterm.c: Don't include gnu.h.
5435 (x_io_error_quitter, x_draw_image_foreground_1): Remove prototypes.
5436 (x_sync): Move to macfns.c.
5437 [USE_CG_DRAWING] (mac_define_fringe_bitmap): Remove unused
5438 variable `mask_bits'.
5439 (mac_compute_glyph_string_overhangs): Avoid ambiguous `else'.
5440 (x_draw_image_glyph_string): Remove unused variable `pixmap'.
5441 (x_mac_to_emacs_modifiers): Remove function.
5442 (XTset_vertical_scroll_bar, mac_handle_visibility_change)
5443 (x_make_frame_visible, xlfdpat_create, mac_handle_command_event):
5444 Add explicit braces to avoid ambiguous `else'.
5445 (x_make_frame_visible): Remove unused variables `type',
5446 `original_top', and `original_left'.
5447 (mac_do_list_fonts, XTread_socket): Add parentheses around && within ||.
5448 (x_load_font): Remove unused variables `full_name', and `value'.
5449 (do_get_menus, do_init_managers, do_check_ram_size) [!MAC_OS8]:
5450 Remove functions.
5451 (do_zoom_window): Reorganize variables with respect to conditionals.
5452 (init_command_handler): Remove unused variable `err'.
5453 [MAC_OSX] (mac_check_bundle): Remove unused variable `child'.
5454
5455 * macterm.h (x_set_mouse_position, x_set_mouse_pixel_position)
5456 (x_make_frame_invisible, x_iconify_frame, x_free_frame_resources)
5457 (x_destroy_window, x_wm_set_size_hint, x_delete_display, XFreeGC)
5458 (do_menu_choice, have_menus_p, x_real_positions)
5459 (x_set_menu_bar_lines, x_pixel_width, x_pixel_height, x_char_width)
5460 (x_char_height, x_sync, x_set_tool_bar_lines, x_activate_menubar)
5461 (free_frame_menubar): Add externs.
5462
5463 * unexmacosx.c: Include config.h before using HAVE_MALLOC_MALLOC_H.
5464 (malloc, realloc, free): Add undefs.
5465 (read_load_commands): Remove unused variable `n' and `j'.
5466 (copy_data_segment): Remove unused variable `r'.
5467
5468 * xdisp.c (get_glyph_string_clip_rects): Add parentheses around &&
5469 within ||. Add explicit braces to avoid ambiguous `else'.
5470 (dump_glyph_row): Remove label for `inverse_p' from legend.
5471
5472 * xfaces.c (Finternal_merge_in_global_face, try_font_list):
5473 Add explicit braces to avoid ambiguous `else'.
5474
5475 2006-04-11 Micha\e,Ak\e(Bl Cadilhac <michael.cadilhac@lrde.org>
5476
5477 * dispnew.c (init_display): Don't init X display if the user asked
5478 for a non-X display.
5479
5480 2006-04-12 Kenichi Handa <handa@m17n.org>
5481
5482 * coding.c (setup_coding_system): Use system_eol_type for default
5483 coding->eol_type.
5484
5485 2006-04-11 Dan Nicolaescu <dann@ics.uci.edu>
5486
5487 * lisp.h (wrong_type_argument): Mark as NO_RETURN.
5488
5489 * data.c (wrong_type_argument): Try to avoid compiler warnings due
5490 to the fact the function is now marked as NO_RETURN.
5491
5492 2006-04-10 Eli Zaretskii <eliz@gnu.org>
5493
5494 * s/ms-w32.h (pid_t) [_MSC_VER]: New typedef.
5495
5496 2006-04-10 Romain Francoise <romain@orebokech.com>
5497
5498 * xrdb.c (gethomedir): Use xstrdup.
5499
5500 2006-04-10 Andreas Schwab <schwab@suse.de>
5501
5502 * xrdb.c (gethomedir): Make sure to always return a pointer that
5503 can be passed to free.
5504
5505 2006-04-09 Richard Stallman <rms@gnu.org>
5506
5507 * lisp.h (Fkill_emacs): Undo previous change.
5508
5509 2006-04-08 Richard Stallman <rms@gnu.org>
5510
5511 * search.c (boyer_moore): Test ch >= 0400, not >.
5512
5513 2006-04-09 Dan Nicolaescu <dann@ics.uci.edu>
5514
5515 * puresize.h (pure_write_error): Mark as NO_RETURN.
5516
5517 * lisp.h (args_out_of_range, args_out_of_range_3, Fkill_emacs):
5518 Likewise.
5519
5520 2006-04-08 Eli Zaretskii <eliz@gnu.org>
5521
5522 * w32fns.c (w32_wnd_proc) <WM_MOUSEMOVE>: Ignore mouse movements
5523 if a menu is active on this frame.
5524
5525 2006-04-08 Dan Nicolaescu <dann@ics.uci.edu>
5526
5527 * lisp.h (report_file_error): Mark as NO_RETURN.
5528
5529 2006-04-08 Eli Zaretskii <eliz@gnu.org>
5530
5531 * alloc.c [STDC_HEADERS]: Include stddef.h.
5532
5533 * lisp.h (PSEUDOVECSIZE): Fix last change.
5534
5535 2006-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
5536
5537 * process.h (struct Lisp_Process): Replace Lisp_Objects `pid',
5538 `raw_status_high', and `raw_status_low' with plain integers, and move
5539 them to the end of the structure.
5540
5541 * alloc.c (allocate_process): Use PSEUDOVECSIZE to initialize the
5542 pseudovector's size field so only the Lisp_Object fields get GC'd.
5543
5544 * process.c (update_status, make_process, Fdelete_process)
5545 (Fprocess_status, list_processes_1, start_process_unwind)
5546 (create_process, Fmake_network_process, server_accept_connection)
5547 (wait_reading_process_output, send_process, Fprocess_running_child_p)
5548 (process_send_signal, proc_encode_coding_system, Fprocess_send_eof)
5549 (sigchld_handler, status_notify): Adjust to new non-Lisp fields for
5550 `pid' and `raw_status'.
5551 (Fprocess_id, Fsignal_process): Same, and additionally use floats when
5552 representing PIDs that are larger than most-positive-fixnum.
5553
5554 * keymap.c (describe_map): Only use XINT if we checked INTEGERP.
5555
5556 * lisp.h (OFFSETOF, PSEUDOVECSIZE): New macros.
5557
5558 2006-04-08 Eli Zaretskii <eliz@gnu.org>
5559
5560 * w32fns.c (Fx_show_tip): Add 3 to the 5th arg of SetWindowPos.
5561
5562 2006-04-03 Paul Eggert <eggert@cs.ucla.edu>
5563
5564 * editfns.c (TM_YEAR_IN_ASCTIME_RANGE): New macro, identical to
5565 ../lib-src/b2m.c and ../lib-src/editfns.c.
5566 (Fcurrent_time_string): Use it.
5567 Document that the year might not consume 4 columns if it's outside
5568 the range 1000-9999.
5569 Check for asctime failure.
5570 Don't assume that the output string length is always exactly 24.
5571
5572 2006-04-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5573
5574 * macterm.c (XTread_socket): Initialize variable `f' before its use.
5575
5576 2006-04-03 Kenichi Handa <handa@m17n.org>
5577
5578 * image.c: Include "charset.h" and "coding.h".
5579 (x_find_image_file): Return an encoded file name.
5580
5581 2006-04-01 Eli Zaretskii <eliz@gnu.org>
5582
5583 * configure: Regenerated.
5584
5585 2006-03-31 Kenichi Handa <handa@m17n.org>
5586
5587 * xfns.c (xg_set_icon): Delete superfluous UNGCPRO.
5588
5589 2006-03-30 Dan Nicolaescu <dann@ics.uci.edu>
5590
5591 * xdisp.c (syms_of_xdisp): Fix variable name.
5592
5593 2006-03-30 Kenichi Handa <handa@m17n.org>
5594
5595 * xterm.c (x_term_init): Delete superfluous UNGCPRO.
5596
5597 2006-03-29 Juanma Barranquero <lekktu@gmail.com>
5598
5599 * keyboard.c (process_tool_bar_item): Reorder dummy args.
5600
5601 2006-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
5602
5603 * keyboard.c (tool_bar_items): Use map_keymap.
5604 (process_tool_bar_item): Add dummy args to fit the required interface.
5605
5606 2006-03-25 Eli Zaretskii <eliz@gnu.org>
5607
5608 * .gdbinit (pr, pp, pp1, pv, pv1): Force print_output_debug_flag
5609 to zero before calling debug_print or safe_debug_print.
5610
5611 * print.c (print_output_debug_flag): New global variable.
5612 (Fexternal_debugging_output) [WINDOWSNT]: Don't call
5613 OutputDebugString if print_output_debug_flag is zero.
5614
5615 2006-03-24 Paul Eggert <eggert@cs.ucla.edu>
5616
5617 * editfns.c (TM_YEAR_BASE): Move up, so the changes below can use it.
5618 (Fdecode_time, Fencode_time): Use TM_YEAR_BASE instead of 1900.
5619 (Fdecode_time): Cast tm_year to EMACS_INT.
5620 (Fcurrent_time_string): Report an invalid time specification if
5621 the argument is invalid. Also, check for out-of-range time stamps.
5622
5623 2006-03-24 Kim F. Storm <storm@cua.dk>
5624
5625 * xterm.c (handle_one_xevent):
5626 * w32term.c (w32_read_socket):
5627 * macterm.c (XTread_socket): Don't let key-press clear mouse face
5628 on in toolbar window if mouse-highlight is an integer.
5629
5630 * fns.c (sxhash_list): Include last non-nil CDR in hash.
5631
5632 2006-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5633
5634 * macmenu.c (enum mac_menu_kind): New enum.
5635 (min_menu_id): New variable.
5636 (POPUP_SUBMENU_ID, MIN_POPUP_SUBMENU_ID, MIN_MENU_ID)
5637 (MIN_SUBMENU_ID): Remove defines. All uses are replaced with
5638 min_menu_id and enumerators in enum mac_menu_kind.
5639 (fill_menu, dispose_menus, install_menu_quit_handler): New arg KIND.
5640 All uses changed. Add range check for menu ID.
5641 (fill_menubar): Add range check for menu ID.
5642 [HAVE_CANCELMENUTRACKING] (menu_quit_handler): Check error code of
5643 GetEventParameter.
5644 (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler
5645 for each menu kind.
5646
5647 2006-03-22 Kim F. Storm <storm@cua.dk>
5648
5649 * xdisp.c: Undo 2006-03-21 change.
5650
5651 * term.c: Define aliases for append_glyph and produce_stretch_glyph
5652 when `static' is defined to avoid name clash with those in xdisp.c.
5653
5654 * process.c (Faccept_process_output): Fix to comply with lisp
5655 reference. Change arg "timeout" to "seconds" and allow both
5656 integer and float value. Change arg "timeout-msec" to "millisec"
5657 and interpret" as milliseconds rather than microseconds. Fix doc
5658 string accordingly.
5659
5660 2006-03-21 Ken Raeburn <raeburn@raeburn.org>
5661
5662 * xdisp.c (store_next_glyph): Rename from append_glyph.
5663 (generate_stretch_glyph): Rename from produce_stretch_glyph.
5664 All callers changed accordingly.
5665
5666 2006-03-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5667
5668 * xterm.c: x_session_initialized new variable.
5669 (x_term_init): Use x_session_initialized to check if
5670 x_session_initialize should be called.
5671 (x_initialize): Initialize x_session_initialized.
5672
5673 2006-03-21 Kim F. Storm <storm@cua.dk>
5674
5675 * fringe.c (draw_fringe_bitmap): Don't calculate default overlay arrow
5676 bitmap here, but ...
5677 (update_window_fringes): ... here, so we can test if it has changed.
5678
5679 2006-03-20 Andreas Schwab <schwab@suse.de>
5680
5681 * dispnew.c (init_display): Check DISPLAY here.
5682
5683 * emacs.c (main): Don't check here.
5684
5685 * xterm.c (x_display_ok): Don't use DISPLAY env var.
5686
5687 2006-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
5688
5689 * window.c (window_scroll_pixel_based): Yet another int/Lisp_Object
5690 mixup (YAILOM).
5691
5692 2006-03-20 Eli Zaretskii <eliz@gnu.org>
5693
5694 * emacs.c (main): Fix last change.
5695
5696 2006-03-20 Kenichi Handa <handa@m17n.org>
5697
5698 * fileio.c (Fwrite_region): Set visit_file to Qnil before GCPRO it.
5699
5700 * keymap.c (map_keymap): Set tail to Qnil before GCPRO it.
5701
5702 * xfns.c (xg_set_icon): Remove unnecessary GCPRO.
5703
5704 * xterm.c (x_term_init): Remove unnecessary GCPRO.
5705
5706 2006-03-19 Kim F. Storm <storm@cua.dk>
5707
5708 * xdisp.c (set_cursor_from_row): Fix cursor property on overlay string,
5709 so it doesn't associate overlay string with following glyph by default.
5710 Allow integer property value to specify explicit number of buffer
5711 positions associate with overlay string.
5712
5713 2006-03-18 Chong Yidong <cyd@stupidchicken.com>
5714
5715 * xterm.c (x_display_ok): Fix minor bug and compilation warnings.
5716
5717 2006-03-18 Nozomu Ando <nand@mac.com>
5718
5719 * m/pmax.h (BROKEN_NOCOMBRELOC) [__NetBSD__]: Define.
5720 (LIB_STANDARD, START_FILES) [__NetBSD__]: Don't define.
5721 (START_FILES, RUN_TIME_REMAP, UNEXEC) [__NetBSD__, __OpenBSD__]:
5722 Don't redefine.
5723
5724 * m/mips.h: Don't use unexmips on NetBSD.
5725 (LIBS_MACHINE): Move definition lower, so it doesn't use
5726 LD_SWITCH_MACHINE, START_FILES, LIB_STANDARD, LIBS_TERMCAP,
5727 C_SWITCH_MACHINE, and C_DEBUG_SWITCH.
5728
5729 * unexelf.c [BROKEN_NOCOMBRELOC]: Include assert.h.
5730 (unexec) [BROKEN_NOCOMBRELOC]: Handle platforms whose nocombreloc
5731 option is broken (e.g., MIPS/NetBSD).
5732
5733 2006-03-18 Craig McDaniel <craigmcd@gmail.com> (tiny change)
5734
5735 * sheap.c (STATIC_HEAP_SIZE): Enlarge STATIC_HEAP_SIZE to 12MB.
5736 Remove the HAVE_X_WINDOWS conditional.
5737
5738 2006-03-18 Vivek Dasmohapatra <vivek@etla.org> (tiny change)
5739
5740 * emacs.c (main): If user asks for a display that is unavailable,
5741 simulate -nw.
5742
5743 * xterm.c (x_display_ok): New function.
5744
5745 * xterm.h: Add prototype for x_display_ok.
5746
5747 2006-03-18 Eli Zaretskii <eliz@gnu.org>
5748
5749 * w32fns.c (Fw32_select_font): Doc fix.
5750
5751 2006-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5752
5753 * image.c [MAC_OS] (XPutPixel, XGetPixel)
5754 [!WORDS_BIG_ENDIAN && USE_CG_DRAWING]: Don't use specialized
5755 version when depth is 32.
5756 (mac_create_cg_image_from_image) [MAC_OS && USE_CG_DRAWING]:
5757 New function.
5758 (prepare_image_for_display) [MAC_OS && USE_CG_DRAWING]: Use it.
5759 (x_clear_image_1) [MAC_OS && USE_CG_DRAWING]: Release CGImage.
5760
5761 * macterm.c (XCreatePixmap) [!WORDS_BIG_ENDIAN && USE_CG_DRAWING]:
5762 Create GWorld in ARGB pixel format.
5763 (mac_copy_area, mac_copy_area_with_mask) [USE_CG_DRAWING]:
5764 Remove functions.
5765 (x_draw_image_foreground) [USE_CG_DRAWING]: Use mac_draw_cg_image
5766 instead of mac_copy_area/mac_copy_area_with_mask.
5767
5768 2006-03-15 Kim F. Storm <storm@cua.dk>
5769
5770 * xdisp.c (extend_face_to_end_of_line): Always add space glyph to
5771 empty row. Fixes memory corruption revealed by 2006-03-02 change.
5772 (display_tool_bar_line): Skip empty tool-bar line if HEIGHT < 0.
5773 (tool_bar_lines_needed): Fix tool-bar display in case the tool-bar
5774 width is exactly the same as the window width. Don't count a final
5775 empty tool-bar line (pass HEIGHT = -1 to display_tool_bar_line).
5776
5777 2006-03-15 Juanma Barranquero <lekktu@gmail.com>
5778
5779 * fringe.c (w32_init_fringe, w32_reset_fringes): Revert to being
5780 conditional on HAVE_NTGUI, not WINDOWS_NT.
5781
5782 2006-03-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5783
5784 * dispextern.h (mac_init_fringe) [MAC_OS]: Add prototype.
5785
5786 * fringe.c (mac_init_fringe) [MAC_OS]: New function.
5787
5788 * macterm.c (mac_initialize) [USE_CG_DRAWING]: Call mac_init_fringe.
5789 (max_fringe_bmp, fringe_bmp) [USE_CG_DRAWING]: New variables.
5790 (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap)
5791 (mac_draw_cg_image) [USE_CG_DRAWING]: New functions.
5792 (mac_draw_bitmap) [USE_CG_DRAWING]: Remove function.
5793 (x_draw_fringe_bitmap) [USE_CG_DRAWING]: Use mac_draw_cg_image
5794 instead of mac_draw_bitmap.
5795 (x_redisplay_interface) [USE_CG_DRAWING]: Set handlers for
5796 define_fringe_bitmap and destroy_fringe_bitmap.
5797
5798 2006-03-14 Chong Yidong <cyd@stupidchicken.com>
5799
5800 * xterm.c (x_uncatch_errors): Block input for entire function.
5801
5802 2006-03-12 Jason Rumney <jasonr@gnu.org>
5803
5804 * w32fns.c (Fx_create_frame): Remove call to
5805 Qface_set_after_frame_default (from xfns.c 2003-05-26).
5806
5807 * w32menu.c (Fx_popup_menu): Call w32_free_menu_strings when
5808 finished with the menu.
5809
5810 * w32term.c: Sync 2005-10-24 xterm.c changes.
5811 (last_mouse_glyph_frame): New var.
5812 (note_mouse_movement): Say mouse moved if current frame differs
5813 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
5814 (w32_mouse_position): Set last_mouse_glyph_frame.
5815 Remove OLD_REDISPLAY_CODE block.
5816
5817 2006-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5818
5819 * macgui.h [USE_ATSUI && MAC_OSX]: Define USE_CG_TEXT_DRAWING to 1.
5820
5821 * macterm.h (struct mac_output) [USE_CG_DRAWING]: New member cg_context.
5822 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Add prototype.
5823
5824 * mac.c (sys_select) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
5825
5826 * macfns.c (x_create_tip_frame): Apply 2006-03-11 change for xfns.c.
5827
5828 * macterm.c (mac_draw_rectangle, x_draw_glyph_string_foreground)
5829 (x_draw_composite_glyph_string_foreground)
5830 (x_draw_image_foreground): Undo previous changes.
5831 (x_draw_hollow_cursor): Likewise. Subtract 1 from the last
5832 argument of mac_draw_rectangle.
5833 (CG_SET_FILL_COLOR, CG_SET_STROKE_COLOR): New macros.
5834 (mac_draw_string_common, mac_draw_image_string_cg): Use them.
5835 (FRAME_CG_CONTEXT) [USE_CG_DRAWING]: New macro.
5836 (mac_begin_cg_clip, mac_end_cg_clip, mac_prepare_for_quickdraw)
5837 [USE_CG_DRAWING]: New functions.
5838 (mac_draw_line, mac_erase_rectangle, mac_clear_window)
5839 (mac_fill_rectangle, mac_draw_rectangle, mac_draw_string_common)
5840 (mac_draw_image_string_cg) [USE_CG_DRAWING]: Add Quartz 2D drawing part.
5841 (mac_draw_bitmap, mac_invert_rectangle, mac_draw_string_common)
5842 (mac_copy_area, mac_scroll_area, x_scroll_bar_create)
5843 (x_scroll_bar_remove, XTset_vertical_scroll_bar, x_set_window_size)
5844 (XTread_socket) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
5845
5846 2006-03-12 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
5847
5848 * xfns.c (x_icon): Disable redundant call to `x_wm_set_window_state'.
5849
5850 2006-03-11 Jason Rumney <jasonr@gnu.org>
5851
5852 * w32fns.c (signal_user_input): New function.
5853 (post_character_message): Use it for keyboard input.
5854 (w32_msg_pump): Use it for mouse input.
5855
5856 2006-03-11 Luc Teirlinck <teirllm@auburn.edu>
5857
5858 * window.c: Rename preserve_y to window_scroll_pixel_based_preserve_y.
5859 (window_scroll_pixel_based, syms_of_window): Adapt to above change.
5860
5861 2006-03-11 Eli Zaretskii <eliz@gnu.org>
5862
5863 * w32fns.c (w32_wnd_proc): Ignore middle and extra button events
5864 if a menu is already active (the menubar_active flag is on).
5865
5866 2006-03-11 David Ponce <david@dponce.com>
5867
5868 * xfns.c (x_create_tip_frame): Preserve received parms by copying them.
5869
5870 2006-03-11 Eli Zaretskii <eliz@gnu.org>
5871
5872 * w32term.c: Add x_fully_uncatch_errors and x_catching_errors to
5873 the list of unused display error handling functions.
5874
5875 * eval.c (unwind_to_catch): Call x_fully_uncatch_errors only if
5876 HAVE_X_WINDOWS.
5877 (internal_condition_case, internal_condition_case_1)
5878 (internal_condition_case_2): Call x_catching_errors only if
5879 HAVE_X_WINDOWS.
5880
5881 * vm-limit.c [HAVE_GETRLIMIT]: Don't define unconditionally.
5882 Don't include sys/resource.h unless defined.
5883
5884 2006-03-11 Richard Stallman <rms@gnu.org>
5885
5886 * keymap.c (describe_map): Shorten string to indicate shadowed binding.
5887
5888 * vm-limit.c (get_lim_data, lim_data, data_space_start):
5889 Move from mem-limits.h.
5890 (enum warnlevel): New data type.
5891 (check_memory_limits): Rewrite the logic about warnings.
5892 Use standard `struct rlimit'. Check return values for nonsense.
5893 (memory_warnings): Always clear lim_data.
5894
5895 * mem-limits.h (get_lim_data, lim_data, data_space_start):
5896 Move to vm-limit.c.
5897
5898 * xterm.c (x_fully_uncatch_errors, x_catching_errors): New functions.
5899
5900 * eval.c (unwind_to_catch): Call x_fully_uncatch_errors.
5901 (internal_condition_case_1, internal_condition_case_2):
5902 Abort if within unclosed x_catch_errors.
5903
5904 2006-03-11 Romain Francoise <romain@orebokech.com>
5905
5906 * process.c (Vprocess_adaptive_read_buffering): Doc fix.
5907
5908 2006-03-11 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
5909
5910 * lisp.h: Remove duplicate prototypes. Make the prototype of
5911 getloadavg be conditioned on HAVE_GETLOADAVG being undefined.
5912
5913 2006-03-11 Eli Zaretskii <eliz@gnu.org>
5914
5915 * xterm.c (x_draw_hollow_cursor): Subtract 1 from the last
5916 argument of XDrawRectangle.
5917
5918 * xdisp.c (get_phys_cursor_geometry): Don't decrease height by 1.
5919
5920 * macterm.c (mac_draw_rectangle): Don't add 1 to width and height.
5921 (x_draw_glyph_string_foreground)
5922 (x_draw_composite_glyph_string_foreground)
5923 (x_draw_image_foreground): Don't subtract 1 from width and height
5924 arguments to mac_draw_rectangle.
5925 (x_draw_hollow_cursor): Add 1 to w->phys_cursor_width.
5926
5927 2006-03-10 Kim F. Storm <storm@cua.dk>
5928
5929 * alloc.c (USE_POSIX_MEMALIGN): Fix last change.
5930
5931 2006-03-09 Stefan Monnier <monnier@iro.umontreal.ca>
5932
5933 * alloc.c (USE_POSIX_MEMALIGN): New macro.
5934 (ABLOCKS_BASE, lisp_align_malloc, lisp_align_free): Use it.
5935
5936 2006-03-09 Kenichi Handa <handa@m17n.org>
5937
5938 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Fix decoding
5939 ASCII component of a composition.
5940
5941 2006-03-08 Luc Teirlinck <teirllm@auburn.edu>
5942
5943 * window.c: Declare preserve_y as a static global variable.
5944 (window_scroll_pixel_based): No longer declare preserve_y;
5945 it is global now.
5946 (syms_of_window): Set preserve_y to -1.
5947
5948 2006-03-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5949
5950 * image.c [MAC_OS] (XPutPixel): Set alpha channel bits if pixmap
5951 depth is 32.
5952 [MAC_OS] (XGetPixel): Strip off alpha channel bits if pixmap
5953 depth is 32.
5954
5955 2006-03-06 Chong Yidong <cyd@stupidchicken.com>
5956
5957 * xdisp.c (handle_invisible_prop): Don't update it->position with
5958 a buffer position if we're in a display string.
5959
5960 2006-03-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5961
5962 * macterm.h (MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH)
5963 (MAC_AQUA_SMALL_VERTICAL_SCROLL_BAR_WIDTH): New defines.
5964
5965 * macfns.c (x_default_scroll_bar_color_parameter)
5966 (x_set_scroll_bar_foreground, x_set_scroll_bar_background):
5967 Remove unnecessary prototypes.
5968 (x_set_scroll_bar_default_width):
5969 Use MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH.
5970 (mac_set_scroll_bar_width): New function.
5971 (mac_frame_parm_handlers): Set it as handler for scroll-bar-width.
5972
5973 * macterm.c (get_control_part_bounds): Fix type of return value.
5974 (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
5975 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]: Don't show
5976 scroll bar if it is not tall enough to display scroll bar thumb.
5977 [USE_CARBON_EVENTS] (mac_convert_event_ref)
5978 (mac_handle_command_event, mac_handle_window_event)
5979 (mac_handle_mouse_event): Check error code of GetEventParameter.
5980 (convert_fn_keycode) [MAC_OSX]: Likewise.
5981
5982 2006-03-05 Andreas Schwab <schwab@suse.de>
5983
5984 * xselect.c (x_catch_errors_unwind): Fix missing return value.
5985
5986 2006-03-02 Kim F. Storm <storm@cua.dk>
5987
5988 * frame.h (struct frame): New member n_tool_bar_rows.
5989
5990 * xdisp.c: Minimize the unpleasent visual impact of the requirement
5991 that non-toolkit tool-bars must occupy an integral number of screen
5992 lines, by distributing the rows evenly over the tool-bar screen area.
5993 (Vtool_bar_border): New variable.
5994 (syms_of_xdisp): DEFVAR_LISP it.
5995 (display_tool_bar_line): Add HEIGHT arg for desired row height.
5996 Make tool-bar row the desired height. Use default face for border
5997 below tool-bar.
5998 (tool_bar_lines_needed): Add N_ROWS arg. Use it to return number of
5999 actual tool-bar rows.
6000 (redisplay_tool_bar): Calculate f->n_tool_bar_rows initially.
6001 Adjust the height of the tool-bar rows to fill tool-bar screen area.
6002 (redisplay_tool_bar): Calculate f->n_tool_bar_rows when tool-bar area
6003 is resized.
6004
6005 2006-03-01 Luc Teirlinck <teirllm@auburn.edu>
6006
6007 * search.c (Fregexp_quote): Do not precede a literal `]' with two
6008 backslashes to try to make clear that it has a literal meaning; it
6009 does not do that. (It could close a character alternative
6010 containing a backslash.)
6011
6012 2006-02-28 Chong Yidong <cyd@stupidchicken.com>
6013
6014 * xselect.c (x_catch_errors_unwind): New function.
6015 (x_reply_selection_request): Put x_uncatch_errors in an unwind.
6016 (Fx_get_atom_name): Call x_uncatch_errors earlier.
6017
6018 * window.c (Qscroll_up, Qscroll_down): New syms.
6019 (window_scroll_pixel_based): Make preserve_y static to avoid
6020 getting point stuck when scrolling 1 line.
6021
6022 2006-02-26 Chong Yidong <cyd@stupidchicken.com>
6023
6024 * xterm.h, xterm.c (x_uncatch_errors): Delete unneccessary argument.
6025
6026 * xterm.c (x_load_font, x_term_init, XTmouse_position)
6027 (handle_one_xevent, x_connection_closed, x_list_fonts):
6028 No arg for x_uncatch_errors.
6029
6030 * xselect.c (x_own_selection, x_decline_selection_request)
6031 (x_reply_selection_request, x_get_foreign_selection)
6032 (Fx_get_atom_name, Fx_send_client_event): Likewise.
6033
6034 * xfns.c (x_real_positions, x_set_mouse_color, Fx_focus_frame):
6035 Likewise.
6036
6037 2006-02-26 Luc Teirlinck <teirllm@auburn.edu>
6038
6039 * lread.c: Declare Vload_file_rep_suffixes instead of
6040 deleted variable default_suffixes.
6041 (Fget_load_suffixes): New function.
6042 (Fload): Use Fget_load_suffixes and Vload_file_rep_suffixes.
6043 No longer use deleted variable default_suffixes. Update docstring.
6044 (syms_of_lread): defsubr Sget_load_suffixes.
6045 Expand `load-suffixes' docstring.
6046 Delete default_suffixes and DEFVAR_LISP the new variable
6047 `load-file-rep-suffixes'.
6048
6049 * w32.c (check_windows_init_file): Use Fget_load_suffixes instead
6050 of Vload_suffixes.
6051
6052 * lisp.h: EXFUN Fget_load_suffixes.
6053 Extern Vload_file_rep_suffixes.
6054
6055 * eval.c (specpdl_ptr): Remove volatile qualifier for consistency
6056 with lisp.h.
6057
6058 2006-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
6059
6060 * lisp.h (struct specbinding, specpdl_ptr): Remove the volatile
6061 qualifier which was trying to avoid the bug that was fixed by
6062 yesterday's changes to xterm.c.
6063
6064 2006-02-25 Chong Yidong <cyd@stupidchicken.com>
6065
6066 * xterm.h (x_catch_errors) Return value changed to void.
6067 (x_uncatch_errors): Delete unused count argument.
6068
6069 * xterm.c (x_catch_errors): Don't use record_unwind_protect, since
6070 it can be called in a signal handler.
6071 (x_catch_errors_unwind): Function deleted.
6072 (x_uncatch_errors): Deallocate last x_error_message_stack struct.
6073 (x_check_errors): Call x_uncatch_errors before signalling error.
6074
6075 (x_load_font, x_term_init, XTmouse_position, handle_one_xevent)
6076 (x_connection_closed, x_list_fonts): Use new versions of
6077 x_catch_errors and x_uncatch_errors.
6078
6079 * xselect.c (x_own_selection, x_decline_selection_request)
6080 (x_reply_selection_request, x_get_foreign_selection)
6081 (Fx_get_atom_name, Fx_send_client_event): Likewise.
6082
6083 * xfns.c (x_real_positions, x_set_mouse_color, Fx_focus_frame):
6084 Likewise.
6085
6086 * eval.c (record_unwind_protect): Add an assertion.
6087
6088 2006-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
6089
6090 * process.c (Fmake_network_process): Init the process's mark.
6091
6092 2006-02-25 Kim F. Storm <storm@cua.dk>
6093
6094 * buffer.c (modify_overlay): Force redisplay if we modify an
6095 overlay at the end of the buffer.
6096
6097 2006-02-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6098
6099 * gtkutil.c (xg_get_image_for_pixmap): If x_find_image_file returns
6100 nil the image file has been removed, in that case use the (cached)
6101 pixmap.
6102
6103 2006-02-24 Kenichi Handa <handa@m17n.org>
6104
6105 * fileio.c (Finsert_file_contents): When a text is replaced
6106 partially, be sure to set point before the inserted characters.
6107
6108 2006-02-23 Zhang Wei <id.brep@gmail.com> (tiny change)
6109
6110 * xfns.c (Fx_file_dialog): Return a decoded file name.
6111
6112 2006-02-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6113
6114 * dispnew.c (update_text_area): Avoid needless redraw of rightmost
6115 glyph whose face is extended to the text area end.
6116
6117 * macterm.c (x_set_toolkit_scroll_bar_thumb): Don't set control
6118 values if control is not visible or values are not changed.
6119
6120 2006-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
6121
6122 * window.c (Fwindow_list): Check `window' before doing XWINDOW.
6123 The default `window' should not be "on a different frame".
6124
6125 2006-02-22 Kim F. Storm <storm@cua.dk>
6126
6127 * indent.c (Fvertical_motion): Only try to move back if we can.
6128
6129 2006-02-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6130
6131 * macgui.h (struct _XGC) [!MAC_OSX || !USE_ATSUI]: New member
6132 n_clip_rects.
6133
6134 * macmenu.c (digest_single_submenu): Apply 2006-02-19 change for
6135 xmenu.c.
6136
6137 * macterm.c (GC_CLIP_REGION): Remove macro.
6138 (mac_begin_clip, mac_end_clip): Take arg GC instead of REGION.
6139 All uses changed. Don't do clipping if n_clip_rects is zero.
6140 (mac_set_clip_rectangles): Use xassert instead of abort.
6141 Set n_clip_rects. Don't make clip_region empty when number of
6142 clipping rectangles is zero.
6143 (mac_reset_clip_rectangles): Set n_clip_rects directly instead of
6144 calling mac_set_clip_rectangles.
6145 (x_set_toolkit_scroll_bar_thumb): Temporarily hide scroll bar to
6146 avoid multiple redraws.
6147
6148 2006-02-22 Kim F. Storm <storm@cua.dk>
6149
6150 * fringe.c (draw_fringe_bitmap): Fix overlay-arrow display.
6151
6152 2006-02-21 Kim F. Storm <storm@cua.dk>
6153
6154 * fringe.c (syms_of_fringe) <fringe-bitmaps>: Doc fix.
6155
6156 2006-02-21 Zhang Wei <brep@newsmth.org>
6157
6158 * xfns.c (Fx_file_dialog, Motif and GTK): DECODE_FILE before
6159 returning it.
6160
6161 2006-02-21 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
6162
6163 * fringe.c (horizontal_bar_bits): Rename from `horisontal_bar_bits'.
6164 (standard_bitmaps): Use it.
6165
6166 2006-02-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6167
6168 * macterm.c (mac_draw_string_common): Remove arg MODE. New arg
6169 BG_WIDTH. All uses changed. Draw background if BG_WIDTH is not zero.
6170 (mac_draw_image_string, mac_draw_image_string_16): New arg BG_WIDTH.
6171 [USE_CG_TEXT_DRAWING] (mac_draw_image_string_cg): Rename from
6172 mac_draw_string_cg. New arg BG_WIDTH. All uses changed.
6173 Draw background if BG_WIDTH is not zero. Use float constants as
6174 divisors instead of double. Use alloca instead of xmalloc/xfree.
6175 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
6176 [!MAC_OS8 || USE_ATSUI]: Background may be drawn using
6177 mac_draw_image_string* functions.
6178 (XLoadQueryFont) [MAC_OS8 && USE_ATSUI]: Don't adjust heights of
6179 some fonts when srcCopy text transfer mode might be used.
6180 (mac_begin_clip, mac_end_clip): Check if region is empty.
6181 (mac_set_clip_rectangles): When resetting clip region, make it
6182 empty instead of disposing of it.
6183
6184 2006-02-20 Kim F. Storm <storm@cua.dk>
6185
6186 * Makefile.in: Add fringe.elc to WINDOW_SUPPORT.
6187
6188 * buffer.h (struct buffer): New members fringe_indicator_alist and
6189 fringe_cursor_alist.
6190
6191 * buffer.c (init_buffer_once): Set dummy default values for
6192 fringe-indicator-alist and fringe-cursor-alist. The proper
6193 default values are set by pre-loading fringe.el.
6194 (syms_of_buffer): defvar_per_buffer new fringe-indicator-alist and
6195 fringe-cursor-alist buffer-local variables and defvar_lisp_nopro
6196 corresponding default- variables.
6197
6198 * fringe.c (enum fringe_bitmap_type): Remove. Change all uses
6199 to use `int'.
6200 (NO_FRINGE_BITMAP, UNDEF_FRINGE_BITMAP, MAX_STANDARD_FRINGE_BITMAPS):
6201 Define explicitly.
6202 (Qtruncation, Qcontinuation, Qempty_line, Qtop_bottom)
6203 (Qhollow_small): New variables.
6204 (syms_of_fringe): Intern and staticpro them.
6205 (question_mark_bits): Rename from unknown_bits.
6206 (left_curly_arrow_bits): Rename from continuation_bits.
6207 (right_curly_arrow_bits): Rename from continued_bits.
6208 (left_triangle_bits): Rename from ov_bits.
6209 (right_triangle_bits): Add.
6210 (filled_rectangle_bits): Rename from filled_box_cursor_bits.
6211 (hollow_rectangle_bits): Rename from hollow_box_cursor_bits.
6212 (filled_square_bits): Add.
6213 (vertical_bar_bits): Rename from bar_cursor_bits.
6214 (horizontal_bar_bits): Rename from hbar_cursor_bits.
6215 (empty_line_bits): Rename from zv_bits.
6216 (standard_bitmaps): Update to use new names.
6217 (draw_fringe_bitmap_1): Make static.
6218 (get_logical_cursor_bitmap, get_logical_fringe_bitmap): New functions
6219 to map from logical cursors and indicators to physical bitmaps.
6220 (draw_fringe_bitmap): Resolve fringe cursor and overlay-arrow
6221 bitmaps using symbol names instead of bitmap numbers.
6222 (update_window_fringes): Use logical indicator symbol names
6223 instead of bitmap numbers for logical. Add bitmap cache.
6224 (LEFT_FRINGE, RIGHT_FRINGE): New helper macros.
6225
6226 2006-02-20 Chong Yidong <cyd@stupidchicken.com>
6227
6228 * regex.c: Revert 2006-02-19 change.
6229 (xmalloc, xrealloc): Define these when not linked to Emacs.
6230 Redefine malloc -> xmalloc, realloc -> xrealloc as in Emacs case.
6231
6232 2006-02-19 Luc Teirlinck <teirllm@auburn.edu>
6233
6234 * regex.c (extend_range_table_work_area): Fix typo.
6235
6236 2006-02-19 Richard M. Stallman <rms@gnu.org>
6237
6238 * xterm.c (x_catch_errors): Use xmalloc.
6239
6240 * regex.c (extend_range_table_work_area): Call xmalloc and xrealloc.
6241 (regex_compile): Likewise.
6242 (regcomp): Use xmalloc.
6243
6244 * gtkutil.c (malloc_widget_value): Use xmalloc.
6245
6246 * vm-limit.c [HAVE_GETRLIMIT]: Include sys/resource.h.
6247 (check_memory_limits) [HAVE_GETRLIMIT]: Use getrlimit.
6248
6249 * xmenu.c (digest_single_submenu): When pane_string is empty,
6250 do initialize save_wv.
6251
6252 2006-02-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6253
6254 * xdisp.c (update_menu_bar) [MAC_OS]: Don't set
6255 w->update_mode_line if arg F is not the selected frame.
6256
6257 * macmenu.c (popup_activated_flag, submenu_id)
6258 (next_menubar_widget_id): Remove variables.
6259 (initialize_frame_menubar): Remove function.
6260 (pop_down_menu, mac_menu_show): Simplify save value.
6261 (dispose_menus): New function.
6262 (pop_down_menu, fill_menubar): Use it.
6263 (fill_submenu): Remove function. All uses changed to fill_menu.
6264 (add_menu_item): Remove args SUBMENU and FORCE_DISABLE. New arg
6265 POS. Don't call SetMenuItemHierarchicalID here.
6266 (fill_menu): Add arg SUBMENU_ID. Return submenu_id that is to be
6267 used next. Call SetMenuItemHierarchicalID here.
6268 (fill_menubar): Add arg DEEP_P. All uses changed. Clean up menu
6269 objects if needed. Reuse existing menu bar titles if possible.
6270 (set_frame_menubar): Don't clean up menu objects here.
6271
6272 2006-02-18 Chong Yidong <cyd@stupidchicken.com>
6273
6274 * window.c (window_min_size_1): Ensure room for the scroll bar and
6275 fringes.
6276
6277 2006-02-17 Romain Francoise <romain@orebokech.com>
6278
6279 * puresize.h (BASE_PURESIZE): Increment to 1200000.
6280
6281 2006-02-17 Stefan Monnier <monnier@iro.umontreal.ca>
6282
6283 * alloc.c (Fmake_symbol): Comment-out left-over assert from before the
6284 addition of the BLOCK_INPUTs.
6285
6286 2006-02-17 Juanma Barranquero <lekktu@gmail.com>
6287
6288 * window.c (Fset_window_scroll_bars): Doc fix.
6289
6290 2006-02-17 Kenichi Handa <handa@m17n.org>
6291
6292 * xdisp.c (display_mode_element): Call display_string with correct
6293 PREC arg (which must be a number of characters, not column width).
6294
6295 2006-02-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6296
6297 * frame.c (x_get_arg): Clear out PARAM in ALIST also on Mac.
6298
6299 * macfns.c (x_set_menu_bar_lines): Menu bar is always shown on Mac.
6300
6301 * macmenu.c (set_frame_menubar): Don't call DrawMenuBar.
6302
6303 2006-02-14 Richard M. Stallman <rms@gnu.org>
6304
6305 * frame.c (x_get_arg): Clear out all occurrences of PARAM in ALIST.
6306
6307 * m/ibms390x.h: New file.
6308
6309 2006-02-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6310
6311 * gtkutil.c (xg_tool_bar_detach_callback): Set show-arrow to the
6312 value of x-gtk-whole-detached-tool-bar.
6313 (xg_tool_bar_attach_callback): Set show-arrow to TRUE.
6314
6315 * xfns.c (syms_of_xfns): New variable: x-gtk-whole-detached-tool-bar.
6316
6317 2006-02-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6318
6319 * xterm.c (x_x_to_emacs_modifiers): Make non-static.
6320
6321 * xterm.h: Declare x_x_to_emacs_modifiers.
6322
6323 * gtkutil.c (xg_tool_bar_button_cb): New function.
6324 (xg_tool_bar_callback): Call x_x_to_emacs_modifiers to
6325 store modifiers in event.
6326 (update_frame_tool_bar): Connect button-release-event to
6327 xg_tool_bar_button_cb.
6328
6329 2006-02-13 Richard M. Stallman <rms@gnu.org>
6330
6331 * .gdbinit (xwindow): Update the code to show the window box.
6332
6333 2006-02-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6334
6335 * xterm.c (note_mouse_movement): Check for NULL FRAME_X_OUTPUT (frame).
6336
6337 2006-02-12 Richard M. Stallman <rms@gnu.org>
6338
6339 * cmds.c (internal_self_insert): Handle weird auto-fill-function.
6340
6341 2006-02-11 Eli Zaretskii <eliz@gnu.org>
6342
6343 * keyboard.c (Venable_disabled_menus_and_buttons): New variable.
6344 (syms_of_keyboard): DEVFAR_LISP and initialize it.
6345 (parse_tool_bar_item, parse_menu_item): If that variable is
6346 non-nil, don't disable menu items and tool-bar buttons.
6347
6348 2006-02-11 Juanma Barranquero <lekktu@gmail.com>
6349
6350 * doc.c (Fsubstitute_command_keys): Doc fix.
6351
6352 2006-02-10 Thien-Thi Nguyen <ttn@gnu.org>
6353
6354 * data.c (Findirect_function): Rewrite docstring.
6355 Fix omission bug: Declare new arg NOERROR.
6356
6357 2006-02-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6358
6359 * macfns.c (x_set_mouse_color): Don't call rif->define_frame_cursor
6360 if window_desc is not set yet.
6361 (Fx_create_frame): Remove variable x_frame_name. Apply 2005-12-07
6362 and 2006-01-26 changes for xfns.c. Call x_iconify_frame if frame
6363 parameter `visibility' is `icon'.
6364 (Fx_create_frame, x_create_tip_frame): Use "fontset-standard"
6365 instead of "fontset-mac".
6366 (Fx_focus_frame): New defun.
6367 (syms_of_macfns): Defsubr it.
6368
6369 * macterm.c (mac_define_frame_cursor): Don't change pointer shape
6370 for unfocused frame.
6371 (x_raise_frame): Call BringToFront instead of SelectWindow.
6372 (x_lower_frame): Use NULL instead of nil.
6373 (x_make_frame_visible): Don't call SelectWindow.
6374 (XTread_socket): Increment handling_signal at the start, decrement
6375 it at the end.
6376 [USE_CG_TEXT_DRAWING] (init_cg_text_anti_aliasing_threshold): Use
6377 CFPreferencesGetAppIntegerValue instead of Fmac_get_preference.
6378
6379 2006-02-10 Kim F. Storm <storm@cua.dk>
6380
6381 * data.c (Findirect_function): Add NOERROR arg. All callers changed
6382 to pass Qnil for NOERROR.
6383
6384 * keymap.c (current_minor_maps_error): Remove.
6385 (current_minor_maps): Pass Qt for NOERROR to Findirect_function
6386 instead of using internal_condition_case_1+current_minor_maps_error.
6387
6388 2006-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6389
6390 * xterm.c (handle_one_xevent): Must note mouse movement even for nil
6391 frames for GTK, in that case it is the tool bar. This is so that
6392 highlighted text get reset properly.
6393
6394 2006-02-09 Juanma Barranquero <lekktu@gmail.com>
6395
6396 * alloc.c (Fmake_bool_vector, Fpurecopy): Doc fixes.
6397
6398 2006-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6399
6400 * window.c (adjust_window_trailing_edge): Check that shrinking
6401 does not set a window to size zero or less.
6402
6403 2006-02-08 Miles Bader <miles@gnu.org>
6404
6405 * editfns.c (Fconstrain_to_field): Use Fget_char_property instead
6406 of Fget_text_property (other field functions work with overlays as
6407 well as text-properties).
6408
6409 2006-02-07 Kenichi Handa <handa@m17n.org>
6410
6411 * dispextern.h (unibyte_display_via_language_environment): Extern it.
6412
6413 * xterm.h (unibyte_display_via_language_environment):
6414 * w32term.h (unibyte_display_via_language_environment):
6415 * macterm.h (unibyte_display_via_language_environment): Delete extern.
6416
6417 2006-02-07 Kenichi Handa <handa@m17n.org>
6418
6419 * term.c (append_glyph): Refer to it->char_to_display instead of it->c.
6420 (produce_glyphs): Set the character to print in
6421 it->char_to_display. Handle unibyte-display-via-language-environment.
6422 (produce_stretch_glyph): Set character to print in it->char_to_display.
6423
6424 2006-02-06 Kenichi Handa <handa@m17n.org>
6425
6426 * lread.c (openp): Initialize encoded_fn before GCPRO it.
6427
6428 2006-02-05 Ken Raeburn <raeburn@raeburn.org>
6429
6430 * editfns.c (Fconstrain_to_field): Fix int/Lisp_Object mixup.
6431
6432 * lisp.h (XPNTR) [!NO_UNION_TYPE && !HAVE_SHM && !DATA_SEG_BITS]:
6433 Cast bitfield value to EMACS_INT, to suppress gcc warning.
6434
6435 * xrdb.c (malloc, realloc, free) [emacs]: Undefine macros before
6436 defining.
6437
6438 2006-02-03 Kim F. Storm <storm@cua.dk>
6439
6440 * xdisp.c: Cache last merged escape glyph face.
6441 (last_escape_glyph_frame, last_escape_glyph_face_id)
6442 (last_escape_glyph_merged_face_id): New variables.
6443 (get_next_display_element): Use/update them.
6444 (redisplay_internal): Reset them before redisplay.
6445
6446 * xdisp.c (set_iterator_to_next): Optimize 2004-12-13 fix.
6447 Only recheck faces after displaying ellipsis.
6448
6449 2006-02-02 Kenichi Handa <handa@m17n.org>
6450
6451 * coding.c (decode_composition_emacs_mule): Fix handling of
6452 incorrect format data.
6453
6454 2006-01-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6455
6456 * gtkutil.c (update_frame_tool_bar): Use new tool bar function
6457 gtk_toolbar_insert() so we can have tool bars of different sizes.
6458
6459 2006-01-30 Luc Teirlinck <teirllm@auburn.edu>
6460
6461 * data.c (Flistp): Doc fix.
6462
6463 2006-01-30 Juanma Barranquero <lekktu@gmail.com>
6464
6465 * window.c (Fother_window, Fwindow_vscroll, Fset_window_vscroll):
6466 Fix typos in docstrings.
6467
6468 2006-01-28 Luc Teirlinck <teirllm@auburn.edu>
6469
6470 * data.c (Fcar, Fcdr): Add links to Elisp manual to the docstrings.
6471
6472 2006-01-27 Chong Yidong <cyd@stupidchicken.com>
6473
6474 * alloc.c (make_interval, allocate_string)
6475 (allocate_string_data, make_float, Fcons, allocate_vectorlike)
6476 (Fmake_symbol, allocate_misc): Use BLOCK_INPUT when accessing
6477 global variables.
6478
6479 2006-01-27 Eli Zaretskii <eliz@gnu.org>
6480
6481 * dired.c (DIRENTRY_NONEMPTY) [__CYGWIN__]: Don't use d_ino; use
6482 the MSDOS definition.
6483
6484 2006-01-26 Richard M. Stallman <rms@gnu.org>
6485
6486 * alloc.c (check_pure_size): Make overflow message an "error message".
6487
6488 * keymap.c (Fmap_keymap): Doc fix.
6489
6490 * xfns.c (Fx_create_frame): Put all specified parms into f->param_alist
6491 unless they were cleared out.
6492
6493 * frame.c (x_get_arg): "Clear out" the parm in ALIST if found there.
6494
6495 2006-01-26 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
6496
6497 * editfns.c (Fconstrain_to_field): Fix behaviour on field boundaries.
6498 (find_field): Set before_field to after_field when pos is at BEGV.
6499 (Fline_beginning_position, Fline_end_position):
6500 Clarify confusing doc string.
6501
6502 * cmds.c (Fbeginning_of_line, Fend_of_line): Clarify confusing doc
6503 string.
6504
6505 2006-01-26 Kenichi Handa <handa@m17n.org>
6506
6507 * callproc.c (Fcall_process): GCPRO error_file. Encode infile,
6508 current_dir, and error_file. On reporting an error, decode them
6509 back.
6510
6511 2006-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
6512
6513 * regex.c (IMMEDIATE_QUIT_CHECK): Use it with SYNC_INPUT as well.
6514 (re_match_2_internal) <on_failure_jump, on_failure_jump_smart>:
6515 Don't check for quit, since any loop will go through fail or jump.
6516
6517 2006-01-24 Chong Yidong <cyd@stupidchicken.com>
6518
6519 * alloc.c (allocate_string_data): Update next_free immediately, to
6520 reduce risk of memory clobberage.
6521
6522 2006-01-24 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
6523
6524 * xdisp.c (handle_invisible_prop): Set it->position to fix cursor
6525 display when point moves across an ellipsis. If there are
6526 adjacent invisible texts, don't lose the second one's ellipsis.
6527 (x_produce_glyphs): Doc fix.
6528
6529 2006-01-23 Stefan Monnier <monnier@iro.umontreal.ca>
6530
6531 * xterm.c (x_catch_errors_unwind): Yet another int/Lisp_Object mixup.
6532
6533 2006-01-23 Kim F. Storm <storm@cua.dk>
6534
6535 * xdisp.c (handle_single_display_spec): Fix handling of space
6536 property on char from string: set *position rather than
6537 it->current.pos.
6538 (produce_stretch_glyph): Reduce width of stretch glyphs so they
6539 don't get wider than the window (unless truncate-lines is on).
6540
6541 2006-01-22 Stefan Monnier <monnier@iro.umontreal.ca>
6542
6543 * xterm.c: Avoid allocating Lisp data from a signal handler.
6544 (x_error_message): New var to replace x_error_message_string.
6545 (x_error_catcher, x_catch_errors, x_catch_errors_unwind)
6546 (x_check_errors, x_had_errors_p, x_clear_errors, x_error_handler)
6547 (syms_of_xterm): Use it instead of x_error_message_string.
6548
6549 * alloc.c (lisp_align_free): Add an assertion.
6550 (make_interval, allocate_string, make_float, Fcons, Fmake_symbol)
6551 (allocate_misc): If ENABLE_CHECKING is on, check we're not called from
6552 a signal handler.
6553
6554 2006-01-21 Luc Teirlinck <teirllm@auburn.edu>
6555
6556 * dired.c (syms_of_dired) <completion-ignored-extensions>: Doc fix.
6557
6558 2006-01-21 Romain Francoise <romain@orebokech.com>
6559
6560 * xdisp.c (get_window_cursor_type): Fix last change.
6561 Update copyright year.
6562
6563 2006-01-20 Eli Zaretskii <eliz@gnu.org>
6564
6565 * lread.c (Fload): Don't leak the file descriptor returned by
6566 openp if we are going to signal an error.
6567
6568 * w32.c (sys_close): If FD is outside [0..MAXDESC) limits, pass it
6569 directly to _close.
6570 (sys_dup): Protect against new_fd larger than fd_info[] can handle.
6571 (sys_read): If FD is outside [0..MAXDESC) limits, pass it directly
6572 to _read.
6573 (sys_write): If FD is outside [0..MAXDESC) limits, pass it
6574 directly to _write.
6575
6576 * .gdbinit: Don't dereference Vsystem_type's Lisp_Symbol pointer
6577 if it is NULL.
6578
6579 2006-01-20 Kenichi Handa <handa@m17n.org>
6580
6581 * puresize.h (BASE_PURESIZE): Increment to 1190000.
6582
6583 2006-01-19 Chong Yidong <cyd@stupidchicken.com>
6584
6585 * xdisp.c (get_window_cursor_type): Use cursor type specified by
6586 the selected buffer for the echo area too.
6587
6588 2006-01-19 Richard M. Stallman <rms@gnu.org>
6589
6590 * keymap.c (Fmap_keymap): Doc fix.
6591
6592 * s/irix6-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): New definitions.
6593
6594 * keyboard.c (echo_char): Don't omit the space between first two
6595 echoed chars.
6596
6597 * minibuf.c (read_minibuf): Fix previous change.
6598
6599 2006-01-19 Kenichi Handa <handa@m17n.org>
6600
6601 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
6602
6603 2006-01-17 Richard M. Stallman <rms@gnu.org>
6604
6605 * frame.c (x_frame_get_and_record_arg): Don't record Qunbound
6606 value in f->param_alist.
6607
6608 2006-01-15 Andreas Schwab <schwab@suse.de>
6609
6610 * search.c (Freplace_match): Use UPPERCASEP instead of !NOCASEP.
6611
6612 2006-01-13 Richard M. Stallman <rms@gnu.org>
6613
6614 * Makefile.in: Define new macro WINDOW_SUPPORT.
6615 (lisp): Use it.
6616 (SOME_MACHINE_LISP): Add conditionally loaded files.
6617
6618 2006-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6619
6620 * macterm.c [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
6621 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1020]: Specify kATSLineUseQDRendering.
6622 (XLoadQueryFont) [USE_ATSUI]: Display diacritical marks in
6623 decomposed form.
6624
6625 * process.c [HAVE_INTTYPES_H]: Include inttypes.h.
6626 (ifflag_table): Fix typo (IFF_OACTIV -> IFF_OACTIVE).
6627 (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ_IFR_NETMASK
6628 macro. Also try member ifr_addr when getting netmask.
6629
6630 2006-01-10 Stefan Monnier <monnier@iro.umontreal.ca>
6631
6632 * fileio.c (Fexpand_file_name): Remove redundant tests.
6633 Fix elimination of // so that it doesn't prevent elimination of an
6634 immediately following /. or /..
6635
6636 2006-01-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6637
6638 * gtkutil.c (xg_toggle_notify_cb): New function.
6639 (xg_toggle_visibility_cb): Move setting of x_gtk_show_hidden_files to
6640 xg_toggle_notify_cb.
6641 (xg_get_file_with_chooser): Add callback to xg_toggle_notify_cb when
6642 parameter value changes so the toggle button gets updated.
6643
6644 2006-01-06 Nick Roberts <nickrob@snap.net.nz>
6645
6646 * .gdbinit: Fix typo.
6647
6648 2006-01-05 Eli Zaretskii <eliz@gnu.org>
6649
6650 * .gdbinit: Fix last change.
6651
6652 2006-01-05 Kim F. Storm <storm@cua.dk>
6653
6654 * process.c (Fmake_network_process): Use AF_INET instead of
6655 AF_UNSPEC when AF_INET6 is not defined.
6656
6657 2006-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6658
6659 * mac.c (mac_coerce_file_name_ptr, mac_coerce_file_name_desc):
6660 Don't check that the other type is known file-related one.
6661
6662 * macfns.c (Fx_server_version): Use gestaltSystemVersionMajor,
6663 gestaltSystemVersionMinor, and gestaltSystemVersionBugFix on Mac
6664 OS X 10.4 and later.
6665
6666 2006-01-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6667
6668 * gtkutil.c (xg_get_image_for_pixmap): If the image is from a file,
6669 let GTK do all image processing. Importing Emacs own pixmaps to GTK
6670 looks bad for inactive tool bar items with some Gnome themes.
6671
6672 2006-01-04 Eli Zaretskii <eliz@gnu.org>
6673
6674 * .gdbinit: Avoid a warning message when x_error_quitter is not
6675 compiled in.
6676
6677 * process.c [WINDOWSNT]: Undef AF_INET6 to disable IPv6 support
6678 for w32.
6679
6680 2006-01-04 Kim F. Storm <storm@cua.dk>
6681
6682 * process.c: Add IPv6 support.
6683 (Qipv4, Qipv6): New vars.
6684 (syms_of_process): Intern and staticpro them.
6685 (Fformat_network_address): Handle 9 or 8 element vector as IPv6 address
6686 with or without port number. Handle 4 element vector as IPv4 address
6687 without port number.
6688 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
6689 (conv_lisp_to_sockaddr): Handle IPv6 addresses.
6690 (Fmake_network_process): Use :family 'ipv4 and 'ipv6 to explicitly
6691 request that address family only. :family nil or omitted means to
6692 determine address family from the specified :host and :service.
6693 (ifflag_table): Add missing OpenBSD IFF_ flags.
6694 (server_accept_connection): Handle IPv6 addresses.
6695 (init_process): Add (:family ipv4) and (:family ipv6) sub-features.
6696
6697 * .gdbinit: Undo last change. Instead, look at Vsystem_type to
6698 determine which breakpoints to set.
6699
6700 2006-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
6701
6702 * keymap.c (describe_map_compare): Yet another int/Lisp_Object mixup.
6703
6704 * window.h (Fwindow_minibuffer_p): Declare (for use in minibuf.c).
6705
6706 2006-01-03 Romain Francoise <romain@orebokech.com>
6707
6708 * emacs.c (main): Update copyright year.
6709
6710 2006-01-03 Ken Raeburn <raeburn@gnu.org>
6711
6712 * callproc.c (delete_temp_file): Bind file-name-handler-alist to
6713 nil for the call to internal_delete_file.
6714
6715 2006-01-01 Ken Raeburn <raeburn@gnu.org>
6716
6717 * callproc.c (Fcall_process_region): Bind file-name-handler-alist
6718 to nil for the call to Fwrite_region.
6719
6720 2005-12-31 Richard M. Stallman <rms@gnu.org>
6721
6722 * minibuf.c (read_minibuf): Clear out all other minibuffer windows.
6723
6724 2005-12-31 Eli Zaretskii <eliz@gnu.org>
6725
6726 * emacs.c (gdb_pvec_type): A dummy variable for GDB's sake.
6727
6728 2005-12-30 Luc Teirlinck <teirllm@auburn.edu>
6729
6730 * textprop.c (set_text_properties): Reword description of return value.
6731 Return Qnil if caller wants to remove all text properties from a
6732 string and the string already has no intervals.
6733
6734 2005-12-30 Stefan Monnier <monnier@iro.umontreal.ca>
6735
6736 * term.c (visible_cursor): New boolean var.
6737 (set_terminal_modes, tty_show_cursor): Use "vs" or "ve" depending on
6738 visible_cursor.
6739 (syms_of_term): Export the new var as "visible-cursor".
6740
6741 2005-12-30 Eli Zaretskii <eliz@gnu.org>
6742
6743 * .gdbinit: Tell users not to worry about GDB warnings that some
6744 functions do not exist in the binary.
6745
6746 2005-12-30 Andreas Schwab <schwab@suse.de>
6747
6748 * process.c (Fnetwork_interface_info): Correctly terminate the
6749 loop over ifflag_table.
6750
6751 2005-12-29 Richard M. Stallman <rms@gnu.org>
6752
6753 * lread.c (readevalloop): Test for reading a whole buffer
6754 before actually reading anything. Handle all cases, including
6755 START = END = nil and an already-narrowed buffer.
6756 Convert END to a marker if it is a number.
6757
6758 * keymap.c (describe_map): Put sparse map elements into an array,
6759 sort them, then output a sequence of identical bindings on one line.
6760 (struct describe_map_elt): New data type.
6761 (describe_map_compare): New function.
6762
6763 2005-12-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6764
6765 * gtkutil.c (xg_get_file_with_chooser): Change message shown
6766 in file chooser.
6767
6768 2005-12-27 Richard M. Stallman <rms@gnu.org>
6769
6770 * lread.c (readevalloop): Set PT and ZV in the proper buffer,
6771 not the current one.
6772
6773 * minibuf.c (Fminibuffer_message): Doc fix.
6774 (read_minibuf): Set current_buffer->enable_multibyte_characters sooner.
6775
6776 * eval.c (do_autoload): Ignore elements of Vautoload_queue
6777 where car is not symbol.
6778
6779 2005-12-27 Kenichi Handa <handa@m17n.org>
6780
6781 * charset.c (lisp_string_width): Check multibyteness of STRING.
6782
6783 2005-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6784
6785 * xfns.c (x_show_hidden_files): New variable.
6786 (syms_of_xfns): Defvar it.
6787
6788 * gtkutil.c (xg_toggle_visibility_cb): New function.
6789 (xg_get_file_with_chooser): Add toggle hidden files and a message
6790 to the new file chooser dialog. Show hidden files if
6791 x_show_hidden_files is non-zero.
6792
6793 2005-12-26 Richard M. Stallman <rms@gnu.org>
6794
6795 * keyboard.h: Undo previous change.
6796
6797 * Makefile.in (undo.o): Undo previous change.
6798
6799 * undo.c: Undo previous change.
6800
6801 2005-12-26 Luc Teirlinck <teirllm@auburn.edu>
6802
6803 * keyboard.h: extern last_point_position_window.
6804
6805 * undo.c: include keyboard.h.
6806
6807 * Makefile.in (undo.o): Depend on keyboard.h.
6808
6809 2005-12-26 Richard M. Stallman <rms@gnu.org>
6810
6811 * commands.h (last_point_position_window): Declare.
6812
6813 * undo.c: Depend on window.h.
6814 (record_point): Save old point from the correct window.
6815
6816 * keyboard.c (last_point_position_window): New variable.
6817 (command_loop_1): Set last_point_position_window.
6818 (syms_of_keyboard): Init it.
6819
6820 * Makefile.in (undo.o): Depend on window.h.
6821
6822 2005-12-25 Richard M. Stallman <rms@gnu.org>
6823
6824 * eval.c (un_autoload): Expect (0 . OFEATURES) in Vautoload_queue
6825 to undo a `provide'.
6826
6827 * fns.c (Fprovide): Store (0 . OFEATURES) in Vautoload_queue.
6828
6829 2005-12-25 Giorgos Keramidas <keramida@ceid.upatras.gr>
6830
6831 * m/amdx86-64.h [__FreeBSD__] (START_FILES, LIB_STANDARD):
6832 define for FreeBSD on this platform.
6833
6834 2005-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6835
6836 * macterm.h (TYPE_FILE_NAME): New define.
6837 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): Remove externs.
6838
6839 * mac.c (posix_pathname_to_fsspec, fsspec_to_posix_pathname):
6840 Add prototypes. Make static.
6841 (mac_aedesc_to_lisp): Initialize err to noErr.
6842 (mac_coerce_file_name_ptr, mac_coerce_file_name_desc)
6843 (init_coercion_handler): New functions.
6844 (Fmac_coerce_ae_data): Use coercion of Apple event data for
6845 translation from/to file names.
6846
6847 * macterm.c: Don't include sys/param.h.
6848 (init_coercion_handler): Add extern.
6849 [MAC_OS8] (main): Call init_coercion_handler.
6850 (mac_initialize) [MAC_OSX]: Likewise.
6851 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Use coercion of
6852 Apple event data for translation from/to file names.
6853
6854 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
6855
6856 * image.c [MAC_OS] (find_image_fsspec): Likewise.
6857
6858 2005-12-23 Martin Rudalics <rudalics@gmx.at>
6859
6860 * insdel.c (insert, insert_and_inherit, insert_before_markers)
6861 (insert_before_markers_and_inherit): Make sure FROM is correct
6862 when `after-change-functions' are called.
6863
6864 2005-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6865
6866 * xfns.c (Fx_uses_old_gtk_dialog): New function.
6867
6868 * gtkutil.c (xg_uses_old_file_dialog): New function.
6869 (xg_get_file_name): Use xg_uses_old_file_dialog.
6870
6871 * gtkutil.h: Declare xg_uses_old_file_dialog.
6872
6873 2005-12-22 Richard M. Stallman <rms@gnu.org>
6874
6875 * xmenu.c (xmenu_show): Call inhibit_garbage_collection.
6876
6877 2005-12-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6878
6879 * mac.c (Fmac_coerce_ae_data) [MAC_OSX]: Fix memory leak.
6880
6881 * macgui.h (XCharStruct): Remove member `valid_p'.
6882 (STORE_XCHARSTRUCT): Don't set member `valid_p'.
6883 (XCharStructRow): New typedef.
6884 (XCHARSTRUCTROW_CHAR_VALID_P, XCHARSTRUCTROW_SET_CHAR_VALID):
6885 New macros.
6886 (struct MacFontStruct): Add member `bounds'. Remove member
6887 `per_char'. All uses for QuichDraw Text fonts are changed to
6888 `bounds.per_char'. ATSUI font bounds are represented as an array
6889 `bounds.rows' of XCharStructRow's, each of which consists of a
6890 bitmap of valid entries and an array of char bounds.
6891
6892 * macterm.c (mac_per_char_metric): Add prototype.
6893 (x_per_char_metric) [USE_CG_TEXT_DRAWING]: Remove prototype.
6894 (mac_query_char_extents): New function.
6895 (x_per_char_metric): Use it.
6896 (XLoadQueryFont): Likewise. Consolidate min/max_bounds calculations.
6897 [USE_CG_TEXT_DRAWING] (mac_draw_string_cg):
6898 Use mac_per_char_metric instead of x_per_char_metric.
6899 (mac_text_extents_16): New function.
6900 (mac_compute_glyph_string_overhangs): Use it.
6901 (mac_unload_font): Free member `bounds' in struct MacFontStruct.
6902
6903 2005-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
6904
6905 * minibuf.c (Fdisplay_completion_list): Use XCAR/XCDR.
6906 (Fminibuffer_completion_help): Remove duplicates before display.
6907
6908 2005-12-21 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
6909
6910 * print.c (print_preprocess): Don't lose print_depth levels while
6911 iterating.
6912
6913 2005-12-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6914
6915 * macmenu.c (Qmac_apple_event): Add extern.
6916 (set_frame_menubar, mac_menu_show keymp_panes)
6917 (single_keymap_panes, list_of_panes, list_of_item)
6918 (single_menu_item): Add argument types to prototypes.
6919 (mac_dialog_show) [HAVE_DIALOGS]: Likewise.
6920 (struct skp): New struct (from xmenu.c).
6921 (single_keymap_panes, single_menu_item, list_of_panes)
6922 (list_of_item): Sync with xmenu.c.
6923 (Fx_popup_menu, Fx_popup_dialog): Likewise. Don't get window from
6924 POSITION if it is mac-apple-event event.
6925 (menubar_selection_callback): Don't use menu_command_in_progress.
6926 (set_frame_menubar): First parse all submenus, then make
6927 widget_value trees from them. Don't allocate any widget_value
6928 objects until we are done with the parsing.
6929 (parse_single_submenu, digest_single_submenu): New functions.
6930 (single_submenu): Function deleted, replaced by those two.
6931 (install_menu_quit_handler) [HAVE_CANCELMENUTRACKING]: Don't create
6932 or dispose of EventHandlerUPP. Install hander to all submenus.
6933 (mac_menu_show) [!HAVE_MULTILINGUAL_MENU]: Use ENCODE_MENU_STRING
6934 instead of ENCODE_SYSTEM.
6935 (free_frame_menubar, fill_submenu, fill_menu): Don't use NULL for
6936 integer values.
6937 [HAVE_DIALOGS] (mac_dialog_show): Sync with xdialog_show (in xmenu.c).
6938 (add_menu_item) [TARGET_API_MAC_CARBON]: Use CFString functions to
6939 format menu item string. Don't use NULL for integer value.
6940
6941 * macterm.h (struct mac_output): Remove unused member
6942 menu_command_in_progress.
6943
6944 2005-12-20 Juri Linkov <juri@jurta.org>
6945
6946 * xmenu.c (Fx_popup_menu): Set Vmenu_updating_frame to f if
6947 position is non-nil, else set it to nil.
6948
6949 * macmenu.c (Fx_popup_menu): Add `else' to set
6950 Vmenu_updating_frame to nil only if position is nil.
6951
6952 * w32menu.c (Fx_popup_menu): Add `else' to set
6953 Vmenu_updating_frame to nil only if position is nil.
6954
6955 2005-12-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6956
6957 * keyboard.c (make_lispy_event): Drag-and-drop items are now
6958 stored in member `args' of struct input_event.
6959
6960 * termhooks.h (struct input_event): Fix comment for DRAG_N_DROP_EVENT.
6961
6962 * xselect.c (x_handle_dnd_message): Drag-and-drop items are now
6963 stored in member `args' of struct input_event.
6964
6965 * w32term.c (construct_drag_n_drop): Likewise.
6966
6967 * macterm.c (mac_do_receive_drag): Likewise.
6968 (x_use_underline_position_properties): Undo 2005-07-13 change.
6969 (syms_of_macterm) <x-use-underline-position-properties>: Likewise.
6970 (mac_use_core_graphics, mac_wheel_button_is_mouse_2)
6971 (mac_pass_command_to_system, mac_pass_control_to_system):
6972 New boolean variables renamed from Lisp_Object ones
6973 Vmac_use_core_graphics, Vmac_wheel_button_is_mouse_2,
6974 Vmac_pass_command_to_system, and Vmac_pass_control_to_system.
6975 All uses changed.
6976 (syms_of_macterm): DEFVAR_BOOL them. Remove previous DEFVAR_LISPs.
6977 Make them user options.
6978 (mac_handle_command_event, mac_store_services_event):
6979 Call create_apple_event_from_event_ref without 5th argument.
6980 (backtranslate_modified_keycode): Mask off modifier keys that are
6981 mapped to some Emacs modifiers before passing it to KeyTranslate.
6982 (syms_of_macterm): Make variables `mac-emulate-three-button-mouse',
6983 `mac-wheel-button-is-mouse-2', and `mac-*-modifier' user options.
6984 Fix docstrings of `mac-*-modifier'.
6985
6986 * mac.c (create_apple_event_from_event_ref): Remove arg `types'.
6987 (do_applescript): Change argument types to Lisp_Object.
6988 All uses changed.
6989
6990 * macterm.h (create_apple_event_from_event_ref): Remove 5th
6991 argument from extern.
6992
6993 2005-12-18 Dan Nicolaescu <dann@ics.uci.edu>
6994
6995 * xfns.c (Fx_backspace_delete_keys_p): In case we cannot determine
6996 the answer, return `lambda', not nil.
6997
6998 2005-12-17 Eli Zaretskii <eliz@gnu.org>
6999
7000 * makefile.w32-in (bootstrap-temacs): Warn that parts of commands
7001 enclosed in $(ARGQUOTE)s should not be split between two lines, as
7002 that will break with GNU Make >3.80, when sh.exe is used and
7003 arg quoting is with '..'.
7004
7005 2005-12-17 Chong Yidong <cyd@stupidchicken.com>
7006
7007 * print.c (print_preprocess): Just signal an error if print_depth
7008 is exceeded.
7009
7010 2005-12-17 Eli Zaretskii <eliz@gnu.org>
7011
7012 * .gdbinit: Set a breakpoint on w32_abort.
7013
7014 2005-12-16 Juri Linkov <juri@jurta.org>
7015
7016 * minibuf.c (Fminibuffer_completion_contents): New Lisp function
7017 created from minibuffer_completion_contents.
7018 (minibuffer_completion_contents): Remove.
7019 (do_completion, Fminibuffer_complete_word)
7020 (Fminibuffer_completion_help): Replace minibuffer_completion_contents
7021 with Fminibuffer_completion_contents.
7022 (syms_of_minibuf): Add Sminibuffer_completion_contents.
7023 (Fdisplay_completion_list): Doc fix.
7024 (display_completion_list_1): Use `nil' for second arg of
7025 `Fdisplay_completion_list'.
7026
7027 2005-12-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7028
7029 * xfns.c (compute_tip_xy): Handle negative dx and dy.
7030
7031 * w32fns.c (compute_tip_xy): Ditto.
7032
7033 * macfns.c (compute_tip_xy): Ditto.
7034
7035 2005-12-14 Chong Yidong <cyd@stupidchicken.com>
7036
7037 * print.c (print_preprocess): Go to a deeper print_depth to avoid
7038 print_object loop.
7039
7040 2005-12-14 Kyotaro HORIGUCHI <horiguti@meadowy.org> (tiny change)
7041
7042 * coding.c (code_convert_region_unwind): GCPRO arg.
7043
7044 2005-12-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7045
7046 * xfns.c (compute_tip_xy): Calculate root_y the same way as root_x,
7047 i.e. dy is offset from top of frame instead of bottom.
7048
7049 * macfns.c (compute_tip_xy): Ditto.
7050
7051 * w32fns.c (compute_tip_xy): Ditto.
7052
7053 * gtkutil.c (SSDATA): New macro to remove compiler warnings.
7054 (xg_get_image_for_pixmap, xg_create_frame_widgets)
7055 (xg_get_file_with_chooser): Use SSDATA instead of SDATA.
7056
7057 * xmenu.c (menubar_selection_callback): Do nothing if the callback
7058 is for an unselected radio menu item.
7059
7060 2005-12-11 Richard M. Stallman <rms@gnu.org>
7061
7062 * xdisp.c (syms_of_xdisp) <blink-cursor-alist>: Doc fix.
7063
7064 * lisp.h [! NO_UNION_TYPE] (EQ): Use == so args are computed just once.
7065
7066 * keymap.c (Fset_keymap_parent, store_in_keymap): Use CHECK_IMPURE.
7067 (Flookup_key): Doc fix.
7068 (syms_of_keymap) <function-key-map>: Doc fix.
7069
7070 * fns.c (Frequire): Treat evaluating from a source file
7071 like loading the file.
7072
7073 * floatfns.c (Flog): Doc fix.
7074
7075 * fileio.c (Finsert_file_contents): Set Vdeactivate_mark
7076 when we change the buffer.
7077
7078 2005-12-11 Juri Linkov <juri@jurta.org>
7079
7080 * minibuf.c (display_completion_list_1):
7081 Call `minibuffer_completion_contents' instead of using `nil' as
7082 second arg of `Fdisplay_completion_list'.
7083 (keys_of_minibuf): Unbind SPC in
7084 Vminibuffer_local_filename_completion_map (see also related
7085 change on 2005-12-06).
7086
7087 2005-12-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7088
7089 * emacs.c (main) [MAC_OS8]: Undo previous change.
7090
7091 * macselect.c (syms_of_macselect) <mac-apple-event-map>:
7092 Initialize to nil. Keymap is now created in lisp/term/mac-win.el.
7093
7094 2005-12-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7095
7096 * Makefile.in (macselect.o): Depend on keymap.h.
7097
7098 * emacs.c (main) [MAC_OS8]: Call syms_of_keymap before
7099 syms_of_macselect.
7100
7101 * image.c (init_image) [MAC_OS]: Don't call EnterMovies.
7102 [!HAVE_GIF && MAC_OS] (gif_load): Call EnterMovies.
7103
7104 * keyboard.c (Qmac_apple_event) [MAC_OS]: New variable.
7105 (syms_of_keyboard) [MAC_OS]: Initialize it.
7106 (make_lispy_event) [MAC_OS]: Build lisp event for MAC_APPLE_EVENT.
7107
7108 * mac.c (Qundecoded_file_name): New variable.
7109 (syms_of_mac): Initialize it.
7110 (mac_aelist_to_lisp, mac_aedesc_to_lisp): New functions.
7111 [TARGET_API_MAC_CARBON] (create_apple_event_from_event_ref): New fun.
7112 (Fmac_coerce_ae_data): New defun.
7113 (syms_of_mac): Defsubr it.
7114
7115 * macselect.c: Include keymap.h.
7116 (mac_ready_for_apple_events): New variable.
7117 (Vmac_apple_event_map, Qmac_apple_event_class)
7118 (Qmac_apple_event_id): New variables.
7119 (syms_of_macselect): Initialize them.
7120 (Qundefined, mac_store_apple_event): Add externs.
7121 (struct apple_event_binding): New struct.
7122 (find_event_binding_fun, find_event_binding)
7123 (mac_find_apple_event_spec, defer_apple_events)
7124 (mac_handle_apple_event, init_apple_event_handler)
7125 (copy_scrap_flavor_data): New functions.
7126 (Fmac_process_deferred_apple_events): New defun.
7127 (syms_of_macselect): Defsubr it.
7128 (mac_store_services_event): Fix extern.
7129 (mac_handle_service_event): Don't allocate Lisp objects during
7130 asynchronous input processing. Use mac_store_services_event
7131 instead of mac_store_application_menu_event.
7132
7133 * macterm.c (Qmac_ready_for_drag_n_drop, Qapplication, Qabout)
7134 (Qpreferences): Remove variables.
7135 (syms_of_macterm): Don't initialize them.
7136 (Qhicommand) [USE_CARBON_EVENTS]: New variable.
7137 (syms_of_macterm) [USE_CARBON_EVENTS]: Initialize it.
7138 (init_required_apple_events, do_ae_open_application)
7139 (do_ae_print_documents, do_ae_open_documents)
7140 (do_ae_quit_application): Remove functions and prototypes.
7141 (mac_ready_for_apple_events, Qundefined, init_apple_event_handler)
7142 (mac_find_apple_event_spec): Add externs.
7143 (mac_store_application_menu_event): Remove function.
7144 (mac_store_apple_event, mac_make_lispy_event_code): New functions.
7145 (mac_handle_command_event): Create Apple event from Carbon event.
7146 Use mac_store_apple_event instead of mac_store_application_menu_event.
7147 [MAC_OSX] (mac_store_services_event): Likewise.
7148 (struct SelectionRange, SelectionRange): Remove struct and typedef.
7149 [MAC_OS8] (main): Call init_apple_event_handler instead of
7150 init_required_apple_events.
7151 (mac_initialize) [MAC_OSX]: Likewise.
7152 [!USE_CARBON_EVENTS] (mac_wait_next_event):
7153 Use mac_ready_for_apple_events instead of Qmac_ready_for_drag_n_drop.
7154
7155 * macterm.h (mac_make_lispy_event_code, mac_aedesc_to_lisp):
7156 Add externs.
7157 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]: Likewise.
7158 (Fmac_get_preference): Add EXFUN.
7159
7160 * termhooks.h (enum event_kind) [MAC_OS]: Add new MAC_APPLE_EVENT
7161 event.
7162
7163 2005-12-09 Richard M. Stallman <rms@gnu.org>
7164
7165 * xfns.c (Fx_create_frame): Reinstate previous change.
7166
7167 2005-12-09 Eli Zaretskii <eliz@gnu.org>
7168
7169 * w32fns.c (w32_abort) [__GNUC__]: Add instructions for attaching
7170 GDB to the abort dialog.
7171
7172 2005-12-09 Kyotaro HORIGUCHI <horiguti@meadowy.org> (tiny change)
7173
7174 * indent.c (Fvertical_motion): Force move if starting on
7175 stretch glyph.
7176
7177 2005-12-08 Richard M. Stallman <rms@gnu.org>
7178
7179 * lread.c (read_escape) <\s>: Don't treat strings specially.
7180
7181 * xfns.c (Fx_create_frame): Comment out previous change.
7182
7183 2005-12-07 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
7184
7185 * xfns.c (Fx_create_frame): Initialize Vdefault_minibuffer_frame,
7186 when needed.
7187
7188 2005-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
7189
7190 * minibuf.c (keys_of_minibuf): Just unbind SPC in
7191 Vminibuffer_local_filename_completion_map rather than forcing it
7192 explicitly to the same binding as the global map.
7193
7194 2005-12-06 Ken Raeburn <raeburn@gnu.org>
7195
7196 * buffer.c (Fkill_buffer): Avoid dangerous side effects in NILP args.
7197 * bytecode.c (Fbyte_code): Likewise.
7198 * fileio.c (internal_delete_file, Fread_file_name_internal): Likewise.
7199 * minibuf.c (Fminibuffer_complete_and_exit): Likewise.
7200 * undo.c (truncate_undo_list): Likewise.
7201
7202 2005-12-05 Richard M. Stallman <rms@gnu.org>
7203
7204 * window.c (enlarge_window): Eliminate arg preserve_before.
7205 Assume it is 0. All callers changed.
7206 (Fenlarge_window, Fshrink_window): Likewise.
7207
7208 2005-12-02 Eli Zaretskii <eliz@gnu.org>
7209
7210 * w32fns.c (compute_tip_xy): Put tip above pointer if it doesn't
7211 fit below.
7212
7213 2005-12-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7214
7215 * xterm.h: Add prototype for xg_set_icon_from_xpm_data.
7216
7217 * xfns.c (x_real_positions): int ign => unsigned int.
7218 (xg_set_icon_from_xpm_data): Remove unused variable err.
7219 (x_set_name_internal, Fx_create_frame, xg_set_icon): Add cast
7220 to remove compiler warning.
7221 (compute_tip_xy): Put tip above pointer if it doesn't fit below.
7222
7223 2005-12-02 David Reitter <david.reitter@gmail.com>
7224
7225 * minibuf.c (Fcompleting_read): If Vminibuffer_completing_file_name is
7226 non-nil, use the new keymaps Vminibuffer_local_filename_completion_map
7227 and Vminibuffer_local_must_match_filename_map keymaps.
7228 (keys_of_minibuf): Bind SPC in the new file-name completion keymaps.
7229
7230 * keymap.c (Vminibuffer_local_filename_completion_map)
7231 (Vminibuffer_local_must_match_filename_map): New variables.
7232 (syms_of_keymap): DEFVAR_LISP them, initialize them, and set their
7233 parent to be Vminibuffer_local_completion_map and
7234 Vminibuffer_local_must_match_map, respectively.
7235
7236 * commands.h (Vminibuffer_local_filename_completion_map)
7237 (Vminibuffer_local_must_match_filename_map): Declare the new keymaps.
7238
7239 2005-12-01 Stefan Monnier <monnier@iro.umontreal.ca>
7240
7241 * window.c (Fset_window_configuration): Don't accidentally copy the
7242 window-point of one window to another.
7243
7244 2005-11-30 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
7245
7246 * buffer.c (Fpop_to_buffer): Remove superfluous call to record_buffer.
7247
7248 2005-11-30 Kim F. Storm <storm@cua.dk>
7249
7250 * alloc.c: Include fcntl.h. Define O_WRONLY if not defined.
7251 (valid_lisp_object_p) [!GC_MARK_STACK]: Validate pointer by
7252 passing it to `emacs_write'.
7253
7254 2005-11-29 Ari Roponen <arjuropo@cc.jyu.fi> (tiny change)
7255
7256 * atimer.c (stop_other_atimers): Fix loop to correctly compute `prev'.
7257
7258 2005-11-27 Richard M. Stallman <rms@gnu.org>
7259
7260 * window.c (adjust_window_trailing_edge): New function.
7261 (Fadjust_window_trailing_edge): New function.
7262 (syms_of_window): Defsubr it.
7263 (window_deletion_count): New variable.
7264 (delete_window): Update window_deletion_count.
7265
7266 2005-11-26 Eli Zaretskii <eliz@gnu.org>
7267
7268 * minibuf.c (syms_of_minibuf): Mention the extension of
7269 `completion-auto-help's meaning by complete.el.
7270
7271 2005-11-26 Henrik Enberg <henrik.enberg@telia.com>
7272
7273 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
7274 Handle :inherit property as a lisp expression.
7275
7276 2005-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7277
7278 * macterm.c (Qcontrol): Rename from Qctrl. All uses changed.
7279 (syms_of_macterm): Staticpro Qcontrol, Qmeta, Qalt, Qhyper,
7280 Qsuper, and Qmodifier_value.
7281 (Vmac_control_modifier, Vmac_option_modifier)
7282 (Vmac_command_modifier, Vmac_function_modifier)
7283 (Vmac_emulate_three_button_mouse, Vmac_wheel_button_is_mouse_2)
7284 (Vmac_pass_command_to_system, Vmac_pass_control_to_system)
7285 (Vmac_charset_info_alist): Doc fixes.
7286
7287 2005-11-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7288
7289 * emacs.c (main) [MAC_OSX]: Change working directory to home
7290 directory if `-psn_*' option is specified.
7291
7292 * mac.c (DECODE_UTF_8): Remove macro.
7293 [TARGET_API_MAC_CARBON] (cfstring_to_lisp_nodecode): New function
7294 created from cfstring_to_lisp.
7295 [TARGET_API_MAC_CARBON] (cfstring_to_lisp): Use it.
7296 (xrm_get_preference_database) [TARGET_API_MAC_CARBON]: Likewise.
7297
7298 * macterm.h (cfstring_to_lisp_nodecode) [TARGET_API_MAC_CARBON]:
7299 Add prototype.
7300
7301 2005-11-21 Ken Raeburn <raeburn@gnu.org>
7302
7303 * keymap.c (shadow_lookup): Use make_number to pass a number to
7304 Fsubstring.
7305
7306 2005-11-21 Juri Linkov <juri@jurta.org>
7307
7308 * puresize.h (BASE_PURESIZE): Increment to 1180000.
7309
7310 2005-11-20 Chong Yidong <cyd@stupidchicken.com>
7311
7312 * xfaces.c (Finternal_set_lisp_face_attribute):
7313 Use :ignore-defface for new frame defaults when `unspecified' is
7314 supplied.
7315 (Finternal_get_lisp_face_attribute): Hide :ignore-defface.
7316 (merge_face_vectors): Don't do :ignore-defface overwriting here.
7317 (Finternal_merge_in_global_face): Do it here.
7318
7319 2005-11-20 Juri Linkov <juri@jurta.org>
7320
7321 * charset.c (invalid_character): Use Lisp-readable syntax
7322 for octal and hex. Reorder decimal, octal and hex values.
7323
7324 2005-11-20 Nick Roberts <nickrob@snap.net.nz>
7325
7326 * lisp.h: Use typedef when Lisp_Object is EMACS_INT so that
7327 this type is recognised when debugging.
7328
7329 2005-11-19 Andreas Schwab <schwab@suse.de>
7330
7331 * .gdbinit (nextcons, xcdr, xfloat): Update for changes in
7332 Lisp_Cons and Lisp_Float.
7333
7334 2005-11-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7335
7336 * macterm.c [USE_CG_TEXT_DRAWING] (cg_text_anti_aliasing_threshold):
7337 New variable.
7338 [USE_CG_TEXT_DRAWING] (init_cg_text_anti_aliasing_threshold): New fun.
7339 (init_font_name_table) [USE_ATSUI && USE_CG_TEXT_DRAWING]: Use it.
7340 [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): Don't do antialiasing if
7341 font size is smaller than or equal to cg_text_anti_aliasing_threshold.
7342
7343 2005-11-17 Chong Yidong <cyd@stupidchicken.com>
7344
7345 * image.c (x_create_bitmap_from_xpm_data): Free attributes on fail.
7346
7347 * xfaces.c (Qignore_defface): New variable.
7348 (syms_of_xfaces): Provide `:ignore-defface'.
7349 (IGNORE_DEFFACE_P): New macro.
7350 (check_lface_attrs, lface_fully_specified_p)
7351 (Finternal_set_lisp_face_attribute)
7352 (Fface_attribute_relative_p, Fmerge_face_attribute):
7353 Handle Qignore_defface as a possible value.
7354 (merge_face_vectors): The merged face is `unspecified' if the
7355 mergee specifies `:ignore-defface'.
7356
7357 2005-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
7358
7359 * lread.c (readevalloop): Add missing GCPROs.
7360
7361 2005-11-16 Chong Yidong <cyd@stupidchicken.com>
7362
7363 * xfns.c (xg_set_icon_from_xpm_data): New function.
7364
7365 * gnu.h (gnu_xpm_bits): Rename from gnu_bits.
7366 (gnu_xbm_bits): Rename from gnu_bits (xbm version).
7367
7368 * xterm.c (x_bitmap_icon): Use the xpm if available.
7369
7370 * image.c (x_create_bitmap_from_xpm_data): New function.
7371 (x_create_bitmap_from_xpm_data): Initialize XpmAttributes.
7372
7373 2005-11-15 Luc Teirlinck <teirllm@auburn.edu>
7374
7375 * Makefile.in (lisp, shortlisp): Add rfn-eshadow.
7376
7377 2005-11-16 Nick Roberts <nickrob@snap.net.nz>
7378
7379 * .gdbinit: Make SIGTSTP work like SIGINT normally does.
7380
7381 2005-11-15 Andreas Schwab <schwab@suse.de>
7382
7383 * lisp.h (struct Lisp_Cons): Make cdr a union.
7384 (XCDR_AS_LVALUE): Adjust.
7385 (struct Lisp_Float): Make data a union.
7386 (XFLOAT_DATA): Adjust.
7387
7388 * alloc.c (free_float): Make free list chaining aliasing-safe.
7389 (make_float): Likewise.
7390 (free_cons): Likewise.
7391 (Fcons): Likewise.
7392 (check_cons_list): Likewise.
7393 (Fmake_symbol): Likewise.
7394 (allocate_misc): Likewise.
7395 (free_misc): Likewise.
7396 (gc_sweep): Likewise.
7397
7398 2005-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7399
7400 * mac.c (HASHKEY_QUERY_CACHE): New define.
7401 (xrm_create_database, xrm_q_put_resource): Empty query cache.
7402 (xrm_get_resource): Use query cache.
7403
7404 * image.c (init_image) [MAC_OS]: Don't call EnterMovies if
7405 inhibit_window_system is set.
7406
7407 2005-11-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7408
7409 * macgui.h (USE_CG_TEXT_DRAWING): New define.
7410 (struct MacFontStruct) [USE_CG_TEXT_DRAWING]: New members cg_font
7411 and cg_glyphs.
7412
7413 * macterm.c [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): New function.
7414 (x_draw_glyph_string_foreground) [USE_CG_TEXT_DRAWING]: Use it.
7415 (XLoadQueryFont) [USE_CG_TEXT_DRAWING]: Set members cg_font and
7416 cg_glyphs in struct MacFontStruct if synthesized bold or italic is
7417 not used and font substitution never occurs for ASCII and Latin-1
7418 characters.
7419 (XLoadQueryFont): Maximum and minimum metrics are now those among
7420 ASCII characters.
7421 (XLoadQueryFont) [!MAC_OS8 || USE_ATSUI]: Apply WebKit-style
7422 height adjustments for Courier, Helvetica, and Times.
7423
7424 * s/darwin.h (LIBS_CARBON) [!HAVE_CARBON]: Remove `-framework Carbon'.
7425
7426 2005-11-11 David Reitter <david.reitter@gmail.com>
7427
7428 * macterm.c (syms_of_macterm): Remove macCtrlKey, macShiftKey,
7429 macMetaKey, macAltKey. Introduce Qctrl, Qmeta,
7430 Vmac_control_modifier / mac-control-modifier,
7431 Vmac_option_modifier / mac-option-modifier,
7432 Vmac_command_modifier / mac-command-modifier.
7433 (mac_to_emacs_modifiers): Use the new style modifier
7434 variables. Return UInt32 (modifiers are longs now.)
7435 (backtranslate_modified_keycode): New function (refactoring).
7436 (XTread_socket): Use new modifier variables and refactored function.
7437 (mac_determine_quit_char_modifiers): Remove macMetaKey (there is
7438 no dedicated meta key. Not in use anyway.)
7439 (convert_fn_keycode): Map Fn-keys to their original keycode
7440 using a table (english keyboard only).
7441
7442 2005-11-11 Kim F. Storm <storm@cua.dk>
7443
7444 * .gdbinit (pitx): Fix output format if n_overlay_strings > 0.
7445 Add post hook to "backtrace" to always dump lisp call stack to
7446 increase chance of people sending it to us when reporting bugs.
7447
7448 * doc.c (Fsubstitute_command_keys): Doc fix.
7449
7450 * dispextern.h (struct it): New member ignore_overlay_strings_at_pos_p.
7451
7452 * xdisp.c (handle_stop): Skip overlay string handling if
7453 ignore_overlay_strings_at_pos_p is set.
7454 (set_iterator_to_next): At end of display vector, set
7455 ignore_overlay_strings_at_pos_p if dpvec came from an overlay
7456 string, so we skip those overlay strings at current pos.
7457
7458 2005-11-10 Lars Hansen <larsh@soem.dk>
7459
7460 * fileio.c (file-regular-p): Doc fix.
7461
7462 2005-11-10 Kim F. Storm <storm@cua.dk>
7463
7464 * alloc.c (valid_lisp_object_p): New function to validate that
7465 an object is really a valid Lisp_Object.
7466
7467 * lisp.h (valid_lisp_object_p): Add prototype.
7468
7469 * print.c (safe_debug_print): New function to be called from gdb
7470 to print Lisp objects; use valid_lisp_object_p to avoid crashing
7471 if user tries to print something which is not a Lisp object.
7472
7473 * .gdbinit (pp, pp1): Use safe_debug_print.
7474 (pv, pv1): New commands to print value of a lisp variable.
7475
7476 2005-11-10 Nick Roberts <nickrob@snap.net.nz>
7477
7478 * .gdbinit (pp1): New user-defined function.
7479
7480 2005-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7481
7482 * image.c [MAC_OSX] (image_load_quartz2d): Fix memory leak.
7483
7484 * mac.c [MAC_OSX] (init_mac_osx_environment): Reinitialize locale
7485 related variables for dumped executable.
7486
7487 * unexmacosx.c (unexec_write_zero): New function.
7488 (copy_data_segment): Clear uninitialized local variables in
7489 statically linked libraries.
7490
7491 * s/darwin.h (C_SWITCH_SYSTEM): Remove -fno-common.
7492
7493 2005-11-09 Juri Linkov <juri@jurta.org>
7494
7495 * keymap.c (shadow_lookup): If Flookup_key returns a number,
7496 call it again with a sub-key-sequence, and if its return value
7497 is non-nil (sub-key is bound), return nil.
7498
7499 2005-11-08 Kim F. Storm <storm@cua.dk>
7500
7501 * process.c (Fsignal_process): Recognize signal names with and
7502 without SIG prefix, e.g. SIGHUP and HUP.
7503
7504 * search.c (search_buffer): No need to initialize base_pat.
7505
7506 2005-11-04 Stefan Monnier <monnier@iro.umontreal.ca>
7507
7508 * window.c (Fget_lru_window, Fget_largest_window, window_loop):
7509 Don't abuse the `mini' arg. Use the `obj' arg instead.
7510
7511 2005-11-04 Kim F. Storm <storm@cua.dk>
7512
7513 * xdisp.c (show_mouse_face): Clear mouse face to eol.
7514
7515 2005-11-03 Dan Nicolaescu <dann@ics.uci.edu>
7516
7517 * Makefile.in (lisp, shortlisp): Add emacs-lisp/syntax.elc,
7518 font-lock.elc and jit-lock.elc.
7519
7520 2005-11-03 Richard M. Stallman <rms@gnu.org>
7521
7522 * window.c (Fenlarge_window): Rename SIDE to HORIZONTAL.
7523 (enlarge_window): Rename WIDTHFLAG to HORIZ_FLAG.
7524 (CURBEG, CURSIZE): Use HORIZ_FLAG instead of WIDTHFLAG.
7525
7526 * sheap.c (STATIC_HEAP_SIZE): Increment both definitions.
7527
7528 * alloc.c (refill_memory_reserve): Move decl out of conditionals.
7529
7530 2005-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
7531
7532 * window.c (Fdisplay_buffer): Fix last change to not use
7533 a dedicated window.
7534
7535 2005-11-01 Kim F. Storm <storm@cua.dk>
7536
7537 * fringe.c (update_window_fringes): Undo 2005-10-27 change.
7538 Instead, rotate the bottom angle bitmap 180 degrees to indicate
7539 that the bottom row does not end in a newline.
7540
7541 2005-11-01 Andreas Schwab <schwab@suse.de>
7542
7543 * unexelf.c (unexec): Handle .plt section in BSS segment.
7544
7545 2005-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
7546
7547 * lread.c (readevalloop): Yet another int/Lisp_Object mixup (YAILOM).
7548
7549 * window.c (window_loop): For LRU and LARGEST, let the `mini' argument
7550 determine whether to consider dedicated windows as well.
7551 (Fget_lru_window, Fget_largest_window): Add `dedicated' argument.
7552 (Fdisplay_buffer): Do consider dedicated windows in those cases where
7553 we will split the window rather than reuse it.
7554 Don't try to use windows on other displays.
7555
7556 2005-10-31 Dan Nicolaescu <dann@ics.uci.edu>
7557
7558 * puresize.h (BASE_PURESIZE): Increment to 1170000.
7559
7560 2005-10-31 Romain Francoise <romain@orebokech.com>
7561
7562 * macfns.c: Update copyright year.
7563 * m/gould.h: Likewise.
7564
7565 2005-10-30 Kim F. Storm <storm@cua.dk>
7566
7567 * xdisp.c (display_line): Restore it->current_x and call
7568 extend_face_to_end_of_line when last glyph doesn't fit on line.
7569 (set_glyph_string_background_width): Remove specific tests here
7570 to see if face background should extend to end of line. Simplify.
7571
7572 2005-10-30 Richard M. Stallman <rms@gnu.org>
7573
7574 * alloc.c (BYTES_USED): Use uordblks, not arena.
7575 (bytes_used_when_reconsidered): New variable.
7576 (emacs_blocked_free): Set that.
7577
7578 2005-10-29 Chong Yidong <cyd@stupidchicken.com>
7579
7580 * alloc.c (emacs_blocked_free): Fix typo.
7581
7582 2005-10-29 Richard M. Stallman <rms@gnu.org>
7583
7584 * data.c (Fmake_variable_frame_local): Doc fix.
7585
7586 * xdisp.c (handle_fontified_prop): Do nothing if memory full.
7587 (format_mode_line_unwind_data): New arg SAVE_PROPTRANS
7588 controls whether to save and restore mode_line_proptrans_alist.
7589 Callers changed.
7590 (unwind_format_mode_line): Work with that feature.
7591 (redisplay_internal): Don't call prepare_menu_bars if memory full.
7592 (move_elt_to_front): New function.
7593 (display_mode_element): Use move_elt_to_front.
7594 Don't bother munging text props on a null string.
7595 Delete obsolete elts from mode_line_proptrans_alist.
7596 (decode_mode_spec): Test Vmemory_full, not spare_memory.
7597 (Fformat_mode_line): Clear mode_line_proptrans_alist after saving.
7598
7599 * lisp.h (memory_full_cons_threshold): Declare.
7600 (internal_lisp_condition_case): Declare.
7601
7602 * alloc.c (syms_of_alloc) <memory-full>: Doc fix.
7603 (Fmemory_full_p): Function deleted.
7604 (syms_of_alloc): Don't defsubr it.
7605 (memory_full_cons_threshold): New variable.
7606 (spare_memory): Now a vector of 7 elts.
7607 (buffer_memory_full): Don't set Vmemory_full here.
7608 (xfree): Don't try to refill here.
7609 (emacs_blocked_free): Record BYTES_USED in local var.
7610 (memory_full): Now free all the slots in spare_memory.
7611 (refill_memory_reserve): Allocate each slot in spare_memory.
7612 (init_alloc_once): Call refill_memory_reserve.
7613
7614 * keyboard.c (command_loop_1): Don't set Vmemory_full here.
7615
7616 * eval.c (internal_lisp_condition_case): New function.
7617 (Fcondition_case): Use internal_lisp_condition_case.
7618 (Feval): Test Vmemory_full and memory_full_cons_threshold.
7619 (Ffuncall): Likewise.
7620
7621 * bytecode.c (Fbyte_code): Use internal_lisp_condition_case.
7622
7623 2005-10-29 Stefan Monnier <monnier@iro.umontreal.ca>
7624
7625 * syntax.c (Fparse_partial_sexp): Fix docstring.
7626
7627 2005-10-28 Romain Francoise <romain@orebokech.com>
7628
7629 * puresize.h (BASE_PURESIZE): Increment to 1130000.
7630
7631 2005-10-28 Richard M. Stallman <rms@gnu.org>
7632
7633 * xfns.c (syms_of_xfns): Provide `x' as feature.
7634
7635 * xdisp.c (decode_mode_spec): Define %e to indicate memory full.
7636
7637 * editfns.c (Fformat): Don't include string padding
7638 between info[n].start and info[n].end.
7639
7640 * alloc.c (spare_memory): No longer static.
7641 (xfree) [!SYSTEM_MALLOC]: Call refill_memory_reserve.
7642
7643 * puresize.h (BASE_PURESIZE): Increment to 1120000.
7644
7645 2005-10-27 Chong Yidong <cyd@stupidchicken.com>
7646
7647 * data.c (Fmake_variable_frame_local): Add clarification to docstring.
7648
7649 * fringe.c (update_window_fringes): Handle case where buffer ends
7650 with a newline.
7651
7652 2005-10-27 Kenichi Handa <handa@m17n.org>
7653
7654 * coding.h (DECODE_SYSTEM): Fix argument name; name->str.
7655
7656 2005-10-24 Kenichi Handa <handa@m17n.org>
7657
7658 * charset.h (charset_mule_unicode_0100_24ff)
7659 (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
7660 Extern them.
7661
7662 * charset.c (charset_mule_unicode_0100_24ff)
7663 (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
7664 New variables.
7665 (Fsetup_special_charsets): Initialize them.
7666
7667 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
7668 supported Unicode characters.
7669
7670 2005-10-25 Jason Rumney <jasonr@gnu.org>
7671
7672 * w32fns.c (w32_to_x_font): Avoid forcing font widths.
7673
7674 2005-10-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7675
7676 * image.c [MAC_OS] (image_load_qt_1): Check image size.
7677 Use GraphicsImportGetImageDescription instead of
7678 GraphicsImportGetNaturalBounds.
7679 [MAC_OSX] (image_load_quartz2d): Check image size.
7680 [MAC_OS] (xpm_load_image): Likewise.
7681
7682 * macterm.c (last_mouse_glyph_frame): New var.
7683 (note_mouse_movement): Say mouse moved if current frame differs
7684 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
7685 (XTmouse_position): Set last_mouse_glyph_frame.
7686 (XTread_socket): Clear last_mouse_glyph_frame on mouse up/down event.
7687 (mac_draw_string_common) [USE_ATSUI && WORDS_BIG_ENDIAN]: Fix typo.
7688 Use EndianU16_BtoN.
7689 (mac_draw_string_common) [MAC_OSX]: Don't use ATSUClearLayoutControls.
7690 (x_per_char_metric, XLoadQueryFont)
7691 [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Use device origins to get
7692 glyph bounds.
7693 (mac_to_x_fontname, mac_do_list_fonts)
7694 (mac_initialize_display_info): Change screen resolutions to 72dpi.
7695
7696 2005-10-25 Masatake YAMATO <jet@gyve.org>
7697
7698 * minibuf.c (Fdisplay_completion_list): Small doc fix.
7699
7700 2005-10-24 Kim F. Storm <storm@cua.dk>
7701
7702 * xterm.c: Undo 2005-10-23 change.
7703 (last_mouse_glyph_frame): New var.
7704 (note_mouse_movement): Say mouse moved if current frame differs
7705 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
7706 (XTmouse_position): Set last_mouse_glyph_frame.
7707 (handle_one_xevent): Clear last_mouse_glyph_frame [instead of
7708 last_mouse_glyph] on mouse up/down event.
7709
7710 * editfns.c (Fcompare_buffer_substrings): Fix last change.
7711
7712 2005-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
7713
7714 * editfns.c (Fcompare_buffer_substrings): Handle multibyte chars.
7715
7716 2005-10-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7717
7718 * xterm.c (note_mouse_movement): Always call note_mouse_highlight
7719 so tool tips don't interfere with press on tool bar button.
7720
7721 2005-10-23 Richard M. Stallman <rms@gnu.org>
7722
7723 * casetab.c (Fset_case_table): Doc fix.
7724
7725 * lread.c (build_load_history): Replace STREAM arg with ENTIRE.
7726 (readevalloop): Compute ENTIRE properly.
7727 (syms_of_lread) <load-history>: Doc fix.
7728
7729 2005-10-21 Richard M. Stallman <rms@gnu.org>
7730
7731 * lread.c (Fload): Simplify gcpro structure.
7732 Gcpro FOUND as well as FILE, but not EFOUND.
7733 Unless preloading, record FOUND instead of FILE in Vload_history.
7734 Rename repeat local FILE to MSG_FILE.
7735 (syms_of_lread) <load-history>: Doc fix.
7736
7737 2005-10-21 Kenichi Handa <handa@m17n.org>
7738
7739 * search.c (boyer_moore): Add parens to fix and/or precedence bug.
7740
7741 2005-10-20 Kim F. Storm <storm@cua.dk>
7742
7743 * buffer.c (clone_per_buffer_values): Remove unused var tem.
7744 (init_buffer): Remove unused vars dotstat, pwdstat.
7745
7746 * ccl.c (check_ccl_update): Remove unused var vp.
7747
7748 * fileio.c (auto_save_error): Call SAFE_FREE.
7749
7750 * fns.c (Fchar_table_range): Remove unused var i.
7751
7752 * minibuf.c (display_completion_list_1): New wrapper function
7753 for Fdisplay_completion_list.
7754 (Fminibuffer_completion_help): Use it.
7755
7756 * term.c (encode_terminal_code): Remove unused var src_start.
7757
7758 * window.c (Fwindow_tree): Remove unused var alist.
7759
7760 * xterm.c (x_calc_absolute_position): Remove unused vars win_x, win_y.
7761
7762 2005-10-20 Aubrey Jaffer <agj@alum.mit.edu> (tiny change)
7763
7764 * unexelf.c (unexec): Fix calls to `fatal' with less than 3 arguments.
7765
7766 2005-10-20 Olli Savia <ops@iki.fi> (tiny change)
7767
7768 * syssignal.h [__Lynx__]: Undef SIGPOLL along with SIGIO.
7769
7770 2005-10-20 Andreas Schwab <schwab@suse.de>
7771
7772 * minibuf.c (Fdisplay_completion_list): Doc fix.
7773
7774 2005-10-19 Kim F. Storm <storm@cua.dk>
7775
7776 * image.c (check_image_size): Handle integer Vmax_image_size value
7777 directly as max pixel value. Use default frame size for null frame.
7778 (syms_of_image) <max-image-size>: Describe integer value.
7779
7780 2005-10-19 Romain Francoise <romain@orebokech.com>
7781
7782 * emacs.c (main): Update copyright year.
7783
7784 2005-10-18 Chong Yidong <cyd@stupidchicken.com>
7785
7786 * image.c (Vmax_image_size): New variable.
7787 (check_image_size): New function.
7788 (xbm_read_bitmap_data, pbm_load, png_load, jpeg_load, tiff_load)
7789 (gif_load, gs_load): Use it.
7790 (lookup_image): Try loading again if previous load failed.
7791 (xbm_read_bitmap_data): Add a new argument, a pointer to the frame
7792 to display in, NULL if none.
7793 (xbm_load_image, xbm_file_p): Pass xbm_read_bitmap_data the new
7794 argument.
7795
7796 2005-10-18 Richard M. Stallman <rms@gnu.org>
7797
7798 * search.c (Fstring_match): Doc fix.
7799
7800 2005-10-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7801
7802 * macterm.c (note_mouse_movement): Use PtInRect.
7803 (XTread_socket): Also ignore mouse motion just before a button
7804 release event. Don't process button release event when mouse is
7805 not grabbed.
7806
7807 2005-10-16 Masatake YAMATO <jet@gyve.org>
7808
7809 * minibuf.c (Fdisplay_completion_list): Add new optional
7810 argument COMMON_SUBSTRING. Bind `completion-common-substring'
7811 to the optional argument during running `completion-setup-hook'.
7812
7813 2005-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7814
7815 * mac.c [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp):
7816 Allow nil as argument.
7817 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Regard nil
7818 for encoding arguments as UTF-16 in native byte order, no BOM.
7819
7820 * macfns.c (Fx_create_frame): Add debugging code.
7821 (Fx_show_tip): Set frame pixel width and height.
7822
7823 * macterm.c (MAC_WINDOW_NORMAL_GC): Remove macro.
7824 (FRAME_NORMAL_GC): New macro.
7825 (mac_draw_line, mac_clear_area, mac_clear_window)
7826 (mac_fill_rectangle, mac_draw_string, mac_draw_string_16)
7827 (mac_draw_image_string, mac_draw_image_string_16): Rename from
7828 XDrawLine, XClearArea, XClearWindow, XFillRectangle, XDrawString,
7829 XDrawString16, XDrawImageString, and XDrawImageString16, respectively.
7830 All uses changed.
7831 (mac_draw_line, mac_erase_rectangle, mac_clear_area)
7832 (mac_clear_window, mac_draw_bitmap, mac_draw_rectangle)
7833 (mac_invert_rectangle, mac_draw_string_common, mac_draw_string)
7834 (mac_draw_string_16, mac_draw_image_string)
7835 (mac_draw_image_string_16, mac_copy_area, mac_copy_area_with_mask)
7836 (mac_scroll_area): Drawing functions now take frame as destination.
7837 All uses changed.
7838 (mac_draw_string_common): Get port height with FRAME_PIXEL_HEIGHT.
7839 (x_draw_fringe_bitmap): Set clipping area in face->gc.
7840
7841 * macterm.h (mac_clear_area): Add extern.
7842
7843 2005-10-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7844
7845 * macterm.c (note_mouse_movement, XTread_socket): Apply 2005-10-14
7846 changes for xterm.c.
7847
7848 * w32term.c (note_mouse_movement, w32_read_socket): Likewise.
7849
7850 2005-10-14 Kenichi Handa <handa@m17n.org>
7851
7852 * search.c (search_buffer): Give up BM search on case-fold-search
7853 if one of a target character has a case-equivalence of different
7854 charset even if that target charcter is an ASCII.
7855
7856 * casefiddle.c (casify_object): Fix for the case that case
7857 conversion change the byte length.
7858
7859 2005-10-14 Kim F. Storm <storm@cua.dk>
7860
7861 * xterm.c (note_mouse_movement): Return 1 if mouse moved; 0 otherwise.
7862 (handle_one_xevent): Only clear help_echo_string; restore it if
7863 note_mouse_movement didn't record any mouse movement.
7864
7865 * xdisp.c (pos_visible_p): Convert w->hscroll to pixels before use.
7866 (remember_mouse_glyph): Clear RECT if mouse is over an image glyph.
7867
7868 * keyboard.c (make_lispy_position): Adjust wx for left margin if
7869 ON_TEXT.
7870 (Fposn_at_x_y): Fix calculation of x coordinate.
7871 (Fposn_at_point): Return nil if point is hscrolled out of view.
7872
7873 2005-10-13 Andreas Schwab <schwab@suse.de>
7874
7875 * sysdep.c (request_sigio, unrequest_sigio): Do nothing in
7876 non-interactive mode.
7877
7878 2005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7879
7880 * xterm.c, w32term.c, macterm.c (note_mouse_movement): Undo last change.
7881
7882 2005-10-12 Kim F. Storm <storm@cua.dk>
7883
7884 * xterm.c (handle_one_xevent): Clear last_mouse_glyph on mouse up/down.
7885
7886 2005-10-12 Romain Francoise <romain@orebokech.com>
7887
7888 * buffer.c (init_buffer): Rename `rc' to `len' for clarity.
7889
7890 2005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7891
7892 * xdisp.c (remember_mouse_glyph): Use MATRIX_BOTTOM_TEXT_ROW to
7893 get end of text rows. Obtain header-line/mode-line rows directly.
7894
7895 * xterm.c, w32term.c, macterm.c (note_mouse_movement):
7896 Restore help_echo_string if mouse is moved inside last_mouse_glyph.
7897
7898 2005-10-12 Kim F. Storm <storm@cua.dk>
7899
7900 * xdisp.c (remember_mouse_glyph): New generic version based on
7901 glyph_rect and remember_mouse_glyph from xterm.c enhanced to
7902 properly handle all different window areas.
7903
7904 * dispextern.h (remember_mouse_glyph): Add prototype.
7905
7906 * xterm.c (glyph_rect, remember_mouse_glyph): Remove X versions.
7907 (note_mouse_movement, XTmouse_position): Use generic
7908 remember_mouse_glyph, add last_mouse_glyph arg.
7909
7910 * w32term.c (note_mouse_movement): Fix last_mouse_glyph check.
7911 (glyph_rect, remember_mouse_glyph): Remove w32 specific versions.
7912 (note_mouse_movement, w32_mouse_position): Use generic
7913 remember_mouse_glyph, add last_mouse_glyph arg.
7914
7915 * macterm.c (note_mouse_movement): Add call to remember_mouse_glyph.
7916 (glyph_rect, remember_mouse_glyph): Remove mac specific versions.
7917 (XTmouse_position): Adapt to use generic remember_mouse_glyph
7918 instead of pixel_to_glyph_coords.
7919
7920 * window.c (coordinates_in_window): Fix x position for ON_RIGHT_MARGIN.
7921 Fix x position for ON_TEXT when left margin width > 0.
7922
7923 2005-10-11 Kim F. Storm <storm@cua.dk>
7924
7925 * window.c (coordinates_in_window): Fix y position for ON_SCROLL_BAR.
7926
7927 * keyboard.c (make_lispy_position): Fix buffer calculations for
7928 mouse click or movement in right fringe and the margins.
7929
7930 2005-10-11 Juanma Barranquero <lekktu@gmail.com>
7931
7932 * image.c (fn_jpeg_stdio_src): Don't define it.
7933 (init_jpeg_functions): Don't initialize `fn_jpeg_stdio_src'.
7934 (our_common_init_source): Rename from `our_init_source'.
7935 (our_common_term_source): Rename from `our_term_source'.
7936 (our_memory_fill_input_buffer): Rename from
7937 `our_fill_input_buffer'.
7938 (our_memory_skip_input_data): Rename from `our_skip_input_data'.
7939 (jpeg_memory_src): Use the new names.
7940 (struct jpeg_stdio_mgr): New struct.
7941 (JPEG_STDIO_BUFFER_SIZE): New constant.
7942 (our_stdio_fill_input_buffer, our_stdio_skip_input_data)
7943 (jpeg_file_src): New functions.
7944 (jpeg_load): Use `jpeg_file_src' instead of `fn_jpeg_stdio_src'.
7945
7946 2005-10-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7947
7948 * macterm.c (PER_CHAR_METRIC): Remove unused macro.
7949 (fm_font_family_alist): New variable.
7950 (syms_of_macterm): Initialize and staticpro it.
7951 (decode_mac_font_name): Replace '-' in family name with '_' if it
7952 occurs just once. Lower family name.
7953 (parse_x_font_name): Rename from x_font_name_to_mac_font_name.
7954 All uses changed. Remove argument MF and code conversion for it.
7955 Add argument SIZE. Rename argument MF_DECODED to FAMILY, and CS
7956 to CHARSET. Parse font size. Lower family name. Return integer
7957 value for status of parsing.
7958 (init_font_name_table) [USE_ATSUI]: Use decode_mac_font_name.
7959 Don't use Fdowncase because family name is already lowered by
7960 decode_mac_font_name.
7961 (init_font_name_table): Always call decode_mac_font_name.
7962 Add pair of family name and its reference to fm_font_family_alist.
7963 (mac_clear_font_name_table): Clear fm_font_family_alist.
7964 (XLoadQueryFont): Move font size parsing part to parse_x_font_name.
7965 Lookup fm_font_family_alist to get font family reference.
7966 (XLoadQueryFont) [USE_ATSUI]: Don't use Fdowncase because family
7967 name is already lowered by parse_x_font_name.
7968
7969 2005-10-11 Kim F. Storm <storm@cua.dk>
7970
7971 * xterm.c (glyph_rect): Return 0 if position is outside text area.
7972
7973 * keyboard.c (make_lispy_position): Fix buffer position calculation for
7974 mouse click or movement in fringe.
7975
7976 2005-10-10 Jason Rumney <jasonr@gnu.org>
7977
7978 * xterm.c (remember_mouse_glyph): New function.
7979 (note_mouse_movement): Use it to remember the current glyph if changed.
7980 (XTmouse_position): Fix calculation of fake glyph under mouse.
7981 Move code to calculate glyph under mouse into remember_mouse_glyph.
7982
7983 2005-10-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7984
7985 * emacs.c (USAGE3, standard_args): -nb => -nbi.
7986
7987 2005-10-10 Juanma Barranquero <lekktu@gmail.com>
7988
7989 * frame.c (Fredirect_frame_focus): Fix typos in docstring.
7990 (next_frame, prev_frame, set_term_frame_name): Make static.
7991
7992 * window.c (Fwindow_tree): Fix spelling.
7993
7994 2005-10-09 Romain Francoise <romain@orebokech.com>
7995
7996 * window.c (Fwindow_end): Don't try to redisplay if non-interactive.
7997
7998 2005-10-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7999
8000 * emacs.c (standard_args): Remove options -i, -itype, --icon-type.
8001 Add options -nb, --no-bitmap-icon.
8002
8003 * xfns.c (Fx_create_frame): Make bitmapIcon have default on.
8004
8005 2005-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8006
8007 * macgui.h (MAX_CLIP_RECTS): New define.
8008 (struct _XGC): New member clip_region.
8009 (struct _XGC) [MAC_OSX && USE_ATSUI]: New members n_clip_rects and
8010 clip_rects.
8011
8012 * macterm.c (GC_CLIP_REGION): New macro.
8013 (saved_port_clip_region): New variable.
8014 (mac_begin_clip, mac_end_clip): New functions.
8015 (XDrawLine, mac_erase_rectangle, mac_draw_bitmap, XFillRectangle)
8016 (mac_draw_rectangle, mac_draw_string_common, mac_copy_area)
8017 (mac_copy_area_with_mask, mac_scroll_area): Use them.
8018 (mac_set_clip_rectangle, mac_reset_clipping): Remove functions.
8019 [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
8020 [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Specify kATSLineFractDisable.
8021 (mac_draw_string_common) [MAC_OSX && USE_ATSUI]: Clip to clipping
8022 rectangles stored in gc.
8023 (XFreeGC): Dispose of clipping region.
8024 (mac_set_clip_rectangles, mac_reset_clip_rectangles): New functions.
8025 (x_draw_fringe_bitmap, x_set_glyph_string_clipping)
8026 (x_draw_relief_rect, x_draw_box_rect, x_draw_stretch_glyph_string)
8027 (x_draw_glyph_string, x_clip_to_row, x_draw_hollow_cursor)
8028 (x_draw_bar_cursor): Use them.
8029 (x_set_glyph_string_clipping): Use get_glyph_string_clip_rects to
8030 get multiple clipping rectangles.
8031
8032 * macterm.h (mac_term_init): Add types to extern.
8033 (struct mac_output): Remove members mWP and pending_menu_activation.
8034 Put members scroll_bar_foreground_pixel and
8035 scroll_bar_background_pixel in #if 0.
8036 (FRAME_MAC_WINDOW, FRAME_X_WINDOW): Use window_desc.
8037
8038 * xfaces.c (x_create_gc, x_free_gc) [MAC_OS]: Add BLOCK_INPUT.
8039 Add debugging code.
8040
8041 2005-10-08 Kim F. Storm <storm@cua.dk>
8042
8043 * window.c (window_tree, Fwindow_tree): Rename fns added 2005-10-04.
8044
8045 2005-10-07 Kim F. Storm <storm@cua.dk>
8046
8047 * dispnew.c (redraw_overlapped_rows, redraw_overlapping_rows)
8048 [!HAVE_WINDOW_SYSTEM]: Don't declare them...
8049 (update_window) [!HAVE_WINDOW_SYSTEM]: ...and don't call them.
8050
8051 2005-10-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8052
8053 * dispextern.h (struct glyph_string): Rename member for_overlaps_p
8054 to for_overlaps. Now occupy 3 bits.
8055 (OVERLAPS_PRED, OVERLAPS_SUCC, OVERLAPS_BOTH)
8056 (OVERLAPS_ERASED_CURSOR): New defines.
8057 (struct redisplay_interface): Add new OVERLAPS arg to member
8058 fix_overlapping_area.
8059 (x_fix_overlapping_area): Add new OVERLAPS arg.
8060 (get_glyph_string_clip_rects): Add extern.
8061
8062 * dispnew.c (redraw_overlapping_rows):
8063 Call rif->fix_overlapping_area with new OVERLAPS arg as redrawn part.
8064
8065 * xdisp.c: Rename member for_overlaps_p in struct glyph_string to
8066 for_overlaps.
8067 (get_glyph_string_clip_rects): New function created from
8068 get_glyph_string_clip_rect. Set clipping rectangles according to the
8069 value of for_overlaps. Enable to store multiple clipping rectangles.
8070 (get_glyph_string_clip_rect): Use get_glyph_string_clip_rects.
8071 (fill_composite_glyph_string, fill_glyph_string, draw_glyphs):
8072 Rename argument OVERLAPS_P to OVERLAPS. All uses in macros changed.
8073 (x_fix_overlapping_area): Add OVERLAPS arg. Pass it to draw_glyphs.
8074 (draw_phys_cursor_glyph): Set width of erased cursor to use it for
8075 calculating clipping rectangles later. Call x_fix_overlapping_area
8076 with new OVERLAPS arg to draw only erased cursor area.
8077 (expose_overlaps): Call x_fix_overlapping_area with new OVERLAPS arg
8078 to draw overlaps in both preceding and succeeding rows.
8079
8080 * xterm.c, w32term.c, macterm.c: Rename member for_overlaps_p in
8081 struct glyph_string to for_overlaps.
8082
8083 2005-10-04 Richard M. Stallman <rms@gnu.org>
8084
8085 * alloc.c (refill_memory_reserve): Conditionalize the body,
8086 not the function's existence.
8087
8088 2005-10-04 Kim F. Storm <storm@cua.dk>
8089
8090 * window.c (window_split_tree): New function.
8091 (Fwindow_split_tree): New defun.
8092 (syms_of_window): Defsubr it.
8093
8094 2005-10-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8095
8096 * macterm.c (mac_invert_rectangle): New function.
8097 (XTflash): Use it.
8098
8099 2005-10-04 Stefan Monnier <monnier@iro.umontreal.ca>
8100
8101 * regex.h (re_char): Don't expose it in the interface.
8102 (re_set_whitespace_regexp): Adjust the arg's type to not use it.
8103
8104 * regex.c (re_char): Move it back here.
8105 (re_set_whitespace_regexp): Change the arg's type to not use it.
8106
8107 * keyboard.c (make_lispy_event): If point has moved between down and up
8108 event, make it a drag, not a click, to mirror what
8109 mouse-drag-region expects.
8110
8111 2005-10-02 Dan Nicolaescu <dann@ics.uci.edu>
8112
8113 * lisp.h (fatal): Undo previous change.
8114 * term.c (fatal): Undo previous change.
8115
8116 2005-10-01 Richard M. Stallman <rms@gnu.org>
8117
8118 * xfaces.c (face_color_gray_p): Colors close to black count as gray.
8119
8120 2005-10-01 Kim F. Storm <storm@cua.dk>
8121
8122 * xdisp.c (try_window): Skip scroll-margin check if ZV is visible.
8123
8124 2005-10-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8125
8126 * keyboard.c (init_keyboard) [MAC_OSX]: Don't install SIGINT handler.
8127
8128 * macfns.c (start_hourglass): Apply 2005-05-07 change for xfns.c.
8129 (x_create_tip_frame) [GLYPH_DEBUG]: Uncomment debugging code.
8130 (Fx_create_frame, x_create_tip_frame) [USE_ATSUI]:
8131 Try ATSUI-compatible 12pt Monaco font first.
8132
8133 * macgui.h (struct _XCharStruct): New member valid_p.
8134 (STORE_XCHARSTRUCT): Set valid_p.
8135 (struct MacFontStruct) [USE_ATSUI]: New member mac_style.
8136
8137 * macterm.c (mac_draw_string_common, x_per_char_metric)
8138 (mac_compute_glyph_string_overhangs, init_font_name_table)
8139 (XLoadQueryFont, mac_unload_font) [USE_ATSUI]: Add ATSUI support.
8140 (atsu_get_text_layout_with_text_ptr) [USE_ATSUI]: New function.
8141 (x_draw_glyph_string_background)
8142 (x_draw_glyph_string_foreground) [MAC_OS8 && USE_ATSUI]: Don't use
8143 XDrawImageString. Always draw background and foreground separately.
8144 (x_draw_glyph_string_foreground) [USE_ATSUI]: Don't use 8-bit
8145 functions for one-byte chars when using ATSUI-compatible fonts.
8146 (atsu_font_id_hash) [USE_ATSUI]: New variable.
8147 (syms_of_macterm) [USE_ATSUI]: Initialize and staticpro it.
8148 (XLoadQueryFont): Set min_byte1, max_byte1, min_char_or_byte2, and
8149 max_char_or_byte2 more in detail.
8150 (quit_char_comp, mac_check_for_quit_char) [MAC_OSX]: Remove functions.
8151
8152 2005-09-30 Dan Nicolaescu <dann@ics.uci.edu>
8153
8154 * image.c (slurp_file, xbm_read_bitmap_data): Cast to the correct type.
8155 * xterm.c (handle_one_xevent, handle_one_xevent): Likewise.
8156
8157 * unexelf.c (fatal): Fix prototype.
8158
8159 * term.c (fatal): Implement using varargs.
8160
8161 * regex.c (re_char): Move typedef ...
8162 * regex.h (re_char): ... here.
8163 (re_iswctype, re_wctype, re_set_whitespace_regexp): New prototypes.
8164
8165 * emacs.c (malloc_set_state): Fix return type.
8166 (endif): Fix type.
8167
8168 * lisp.h (fatal): Add argument types.
8169
8170 * dispextern.h (fatal): Delete prototype.
8171
8172 * systime.h (make_time): Prototype moved from ...
8173 * editfns.c (make_time): ... here.
8174
8175 * editfns.c: Move systime.h include after lisp.h.
8176 * dired.c:
8177 * xsmfns.c:
8178 * process.c: Likewise.
8179
8180 * alloc.c (old_malloc_hook, old_realloc_hook, old_realloc_hook):
8181 Add parameter types.
8182 (__malloc_hook, __realloc_hook, __free_hook): Fix prototypes.
8183 (emacs_blocked_free): Change definition to match __free_hook.
8184 (emacs_blocked_malloc): Change definition to match __malloc_hook.
8185 (emacs_blocked_realloc): Change definition to match __realloc_hook.
8186
8187 2005-09-30 Romain Francoise <romain@orebokech.com>
8188
8189 * minibuf.c (Fread_buffer): Follow convention for reading from the
8190 minibuffer with a default value. Doc fix.
8191
8192 2005-09-29 Juri Linkov <juri@jurta.org>
8193
8194 * editfns.c (Fmessage, Fmessage_box, Fmessage_or_box):
8195 Rename argument name `string' to `format-string'.
8196 (Fformat): Doc fix.
8197
8198 2005-09-28 Kim F. Storm <storm@cua.dk>
8199
8200 * image.c (gif_load): Fix size of allocated image buffer
8201 for images where a sub-image may be larger than the image's
8202 total height/width specifications.
8203
8204 2005-09-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8205
8206 * macgui.h (struct _XCharStruct): Each member now takes short value.
8207
8208 2005-09-27 Dan Nicolaescu <dann@ics.uci.edu>
8209
8210 * xfaces.c (lookup_derived_face): Add parameter type.
8211
8212 * xdisp.c (cursor_row_fully_visible_p): Add parameter type.
8213
8214 * marker.c (verify_bytepos): Add parameter type.
8215
8216 * process.c (get_operating_system_release): Move prototype ...
8217
8218 * systime.h (get_operating_system_release): ... here.
8219
8220 * xterm.c (handle_one_xevent): Refer to union field to match the
8221 type required by the function definition.
8222 (set_vertical_scroll_bar): Move prototype ...
8223
8224 * xterm.h: ... here.
8225
8226 * fns.c (internal_equal, seed_random): Fix prototypes.
8227 (internal_equal): Add missing parameter.
8228
8229 2005-09-25 Richard M. Stallman <rms@gnu.org>
8230
8231 * keyboard.c (update_menu_bindings): Variable deleted.
8232 (syms_of_keyboard): Don't defvar it.
8233 (parse_menu_item): Don't test it.
8234
8235 2005-09-23 Richard M. Stallman <rms@gnu.org>
8236
8237 * editfns.c (Fformat): Explicitly test for end of format string
8238 and don't use `index'.
8239
8240 2005-09-23 Dan Nicolaescu <dann@ics.uci.edu>
8241
8242 * s/aix4-2.h (BROKEN_GET_CURRENT_DIR_NAME):
8243 Define BROKEN_GET_CURRENT_DIR_NAME.
8244
8245 * sysdep.c (get_current_dir_name): Also define if
8246 BROKEN_GET_CURRENT_DIR_NAME.
8247
8248 * m/ibmrs6000.h: Test for USG5, not USG5_4.
8249
8250 2005-09-22 Kim F. Storm <storm@cua.dk>
8251
8252 * xdisp.c (message_dolog): Add warning about GC and Lisp strings.
8253 (message2): Fix commentary. Ok to use alloca'ed memory.
8254 Still not ok to use Lisp string data (because of GC).
8255 (set_message): Add comment why GC cannot happen.
8256
8257 2005-09-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8258
8259 * macterm.c (xlfdpat_block_match_1): Fix assertion.
8260 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't add style
8261 variants for a scalable font multiple times.
8262
8263 2005-09-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8264
8265 * process.c (create_process) [RTU || UNIPLUS || DONT_REOPEN_PTY]:
8266 Setup slave tty options before forking.
8267
8268 2005-09-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8269
8270 * gtkutil.c (xg_set_geometry): Do a gtk_window_move if program
8271 positions have been set for the frame (as is done for frames in
8272 special-display-buffer-names).
8273
8274 2005-09-19 Kim F. Storm <storm@cua.dk>
8275
8276 * editfns.c (Fformat): Don't scan past end of format string that
8277 ends in %. Reported by Johan Bockg\e,Ae\e(Brd.
8278
8279 2005-09-18 Andreas Schwab <schwab@suse.de>
8280
8281 * window.h (struct window): Remove height_fixed_p, no longer set.
8282
8283 * window.c (make_window): Don't initialize height_fixed_p.
8284 (window_fixed_size_p): Don't use it.
8285
8286 2005-09-18 John Paul Wallington <jpw@pobox.com>
8287
8288 * data.c (Fdefalias): Signal an error if SYMBOL is not a symbol.
8289
8290 2005-09-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8291
8292 * Makefile.in (SOME_MACHINE_OBJECTS): Undo previous change.
8293
8294 * macfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
8295 New variables.
8296 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Don't allow multiple
8297 file selection.
8298
8299 * sysdep.c [MAC_OS8]: Don't include stdlib.h. Include sys/param.h.
8300
8301 2005-09-17 Eli Zaretskii <eliz@gnu.org>
8302
8303 * Makefile.in (XMENU_OBJ) [!HAVE_CARBON]: Reinstate variable.
8304 (obj): Use XMENU_OBJ, not a literal xmenu.o.
8305
8306 2005-09-16 Romain Francoise <romain@orebokech.com>
8307
8308 * fileio.c (syms_of_fileio) <write-region-inhibit-fsync>: Doc fix.
8309
8310 2005-09-15 Richard M. Stallman <rms@gnu.org>
8311
8312 * xdisp.c (overlay_arrow_at_row): Add HAVE_WINDOW_SYSTEM conditional.
8313 (display_mode_element): Instead of `lisp_string' and `this',
8314 record `offset' and increment that.
8315 `last_offset' replaces `last'.
8316
8317 * Makefile.in (XMENU_OBJ): Variable deleted.
8318 (obj): Use xmenu.o unconditionally.
8319 (SOME_MACHINE_OBJECTS): Delete xmenu.o.
8320
8321 * emacs.c (main): Don't conditionalize syms_of_xmenu on HAVE_XMENU.
8322
8323 2005-09-15 Kim F. Storm <storm@cua.dk>
8324
8325 * xdisp.c (move_it_vertically): Don't try to fetch byte BEGV-1.
8326 (reseat_at_next_visible_line_start): Likewise (in xassert).
8327
8328 2005-09-14 Romain Francoise <romain@orebokech.com>
8329
8330 * fileio.c (write_region_inhibit_fsync): New variable.
8331 (Fwrite_region): Use it to skip call to fsync.
8332 (syms_of_fileio): Initialize it.
8333
8334 2005-09-14 Kenichi Handa <handa@m17n.org>
8335
8336 * coding.c (code_convert_region_unwind): Argument format changed.
8337 (run_pre_post_conversion_on_str): If pre-write-conversion function
8338 changed the current buffer, delete the new buffer.
8339 (run_pre_write_conversin_on_c_str): Likewise.
8340
8341 * fileio.c (Fexpand_file_name): Check multibyteness of
8342 default_directory.
8343
8344 2005-09-13 Kenichi Handa <handa@m17n.org>
8345
8346 * composite.c (compose_chars_in_text): Delete it.
8347
8348 * composite.h (compose_chars_in_text): Delete extern.
8349
8350 2005-09-13 Kim F. Storm <storm@cua.dk>
8351
8352 * print.c (print_error_message): Fix last change.
8353
8354 2005-09-12 Kim F. Storm <storm@cua.dk>
8355
8356 * composite.c (compose_chars_in_text): Fix setup of `pend'.
8357 Unconditionally reload `ptr' and `pend' after eval.
8358
8359 * xdisp.c (message3): Pass copy of lisp string to message_dolog.
8360
8361 * print.c (print_error_message): Pass copy of caller name to
8362 message_dolog.
8363
8364 * fileio.c (auto_save_error): Pass copy of lisp string to message2.
8365
8366 2005-09-12 Kenichi Handa <handa@m17n.org>
8367
8368 * xdisp.c (display_mode_element): Be sure to make variables THIS
8369 and LISP_STRING point into a string data of ELT.
8370
8371 2005-09-12 Kim F. Storm <storm@cua.dk>
8372
8373 * editfns.c (Ftranslate_region_internal): Reload `tt' after
8374 signal_after_change that may have GC'ed.
8375 (Fmessage, Fmessage_box, Fmessage_or_box): Doc fix.
8376
8377 * keymap.c (Fdescribe_buffer_bindings): Reload `translate'
8378 after insert while runs signal_after_change.
8379
8380 * minibuf.c (Fminibuffer_complete_word): Move `completion_string'
8381 declaration to where it is used.
8382
8383 * w32.c (check_windows_init_file): Fix allocation of error buffer.
8384
8385 * xfns.c (x_encode_text): Declare static. Add FREEP arg.
8386 (x_set_name_internal): Call x_encode_text with new FREEP arg to
8387 know if xfree is needed instead of guessing.
8388
8389 * xterm.h (x_encode_text): Remove prototype.
8390
8391 2005-09-11 Chris Prince <cprince@gmail.com> (tiny change)
8392
8393 * w32term.c (x_bitmap_icon): Load small icons too.
8394
8395 2005-09-10 Romain Francoise <romain@orebokech.com>
8396
8397 * buffer.c (init_buffer): Grow buffer to add directory separator
8398 and terminal zero. Fix typos.
8399
8400 2005-09-10 Eli Zaretskii <eliz@gnu.org>
8401
8402 * buffer.c (init_buffer): Fix error message for failed call to
8403 get_current_dir_name.
8404 (get_current_dir_name): Remove prototype.
8405
8406 * xsmfns.c (get_current_dir_name): Remove prototype.
8407
8408 * lisp.h (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
8409 Add prototype.
8410
8411 * sysdep.c [WINDOWSNT]: Add prototype for getwd.
8412 Don't #undef NULL after including blockinput.h.
8413
8414 * config.in: Regenerated.
8415
8416 2005-09-10 Giuseppe Scrivano <gscrivano@gmail.com>
8417
8418 Remove the MAXPATHLEN limitations:
8419
8420 * sysdep.c (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
8421 New function.
8422
8423 * buffer.c (init_buffer): Use it.
8424
8425 * xsmfns.c (smc_save_yourself_CB): Ditto.
8426
8427 2005-09-09 Kim F. Storm <storm@cua.dk>
8428
8429 * doc.c (Fsubstitute_command_keys): Lookup key binding for
8430 commands that are remapped from some other command.
8431
8432 * xdisp.c (try_window_reusing_current_matrix): Clear mode_line_p
8433 flag in disabled rows below the window.
8434
8435 * frame.h (struct frame): New member updated_p.
8436
8437 * xdisp.c (redisplay_internal): Mark updated frames in new updated_p
8438 member. Remove local `updated' array and associated variables.
8439
8440 2005-09-07 Kim F. Storm <storm@cua.dk>
8441
8442 * xdisp.c (handle_display_prop): Respect overlay window property.
8443
8444 * xdisp.c (try_window): Remove superfluous cursor_height calculation.
8445 Fixes crash reported by YAMAMOTO Mitsuharu.
8446
8447 2005-09-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8448
8449 * macterm.c (struct xlfdpat_block, struct xlfdpat): New structs.
8450 (xlfdpat_destroy, xlfdpat_create, xlfdpat_exact_p)
8451 (xlfdpat_block_match_1, xlfdpat_match): New functions.
8452 (xlfdpat_block_match): New macro.
8453 (mac_to_x_fontname): Don't use tolower for non-ASCII characters.
8454 (x_font_name_to_mac_font_name): Set coding.dst_multibyte to 0.
8455 (add_font_name_table_entry): Increase font_name_table_size more
8456 rapidly.
8457 (mac_c_string_match): Remove function.
8458 (mac_do_list_fonts): Use XLFD pattern match instead of regular
8459 expression match.
8460
8461 * xfaces.c (xstrlwr): Don't use tolower for non-ASCII characters.
8462
8463 2005-09-03 Richard M. Stallman <rms@gnu.org>
8464
8465 * xdisp.c (redisplay_internal): Make UPDATED as long as needed.
8466 (move_it_in_display_line_to): Stop after last char on line even
8467 on a windowing terminal, if that's the specified stop position.
8468
8469 * fns.c (Fsort): Doc fix.
8470
8471 * editfns.c (Fpropertize): Don't insist that properties be symbols.
8472
8473 2005-09-02 Stefan Monnier <monnier@iro.umontreal.ca>
8474
8475 * dired.c (directory_files_internal_unwind, directory_files_internal)
8476 (file_name_completion): Use a Save_Value object rather than a cons of
8477 two 16bit ints to store the DIR*.
8478 (directory_files_internal, file_name_completion): Handle both EINTR and
8479 EAGAIN consistently after `readdir'.
8480
8481 2005-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
8482
8483 * intervals.c (update_interval): Add position info in error.
8484
8485 * dispnew.c (window_to_frame_hpos, update_window):
8486 Avoid gcc warning about unused variable `f'.
8487
8488 2005-08-31 Jason Rumney <jasonr@gnu.org>
8489
8490 * w32menu.c (add_menu_item): If unicode_append_menu returns an
8491 error, revert to using AppendMenu.
8492
8493 2005-08-31 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8494
8495 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN): Remove argument.
8496 All uses changed.
8497 [MAC_OS] (XPutPixel, XGetPixel): Add efficient versions for common
8498 cases.
8499 (x_create_x_image_and_pixmap) [MAC_OS]: Don't call x_destroy_x_image.
8500 [MAC_OS] (find_image_fsspec) [!MAC_OSX]: Don't use FSRef.
8501 Use posix_pathname_to_fsspec.
8502 [MAC_OS] (xpm_load_image): Fill in background_transparent field
8503 while we have mask.
8504
8505 * macgui.h [!TARGET_API_MAC_CARBON] (GetPixDepth): New define.
8506
8507 * macterm.h (PIX_MASK_DRAW, PIX_MASK_RETAIN): Move defines to image.c.
8508
8509 2005-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
8510
8511 * syntax.c (update_syntax_table): Properly reproduce the special +1
8512 setting of e_property at the end of the buffer when bumping into the
8513 INTERVALS_AT_ONCE limit.
8514
8515 2005-08-27 Eli Zaretskii <eliz@gnu.org>
8516
8517 * emacs.c (USAGE1): Fix the description of the -Q option.
8518
8519 2005-08-26 Stefan Monnier <monnier@iro.umontreal.ca>
8520
8521 * xdisp.c (pos_visible_p): Yet another int/Lisp_Object mixup (YAILOM).
8522
8523 2005-08-26 Kim F. Storm <storm@cua.dk>
8524
8525 * xdisp.c (resize_mini_window): Fix 2005-08-20 change.
8526 Don't move PT to new window start.
8527
8528 2005-08-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8529
8530 * keyboard.c (kbd_buffer_get_event) [MAC_OS]: Make events for
8531 ICONIFY/DEICONIFY_EVENT.
8532
8533 * macterm.c (mac_copy_area, mac_copy_area_with_mask):
8534 Restore background color.
8535 (mac_handle_visibility_change): New function.
8536 (x_make_frame_invisible, x_iconify_frame)
8537 (XTread_socket) [!USE_CARBON_EVENTS]: Use it.
8538 [USE_CARBON_EVENTS] (mac_handle_window_event)
8539 (install_window_handler): Handle visibility change events.
8540 (x_make_frame_visible): Don't reposition window if it is iconified
8541 or asked for visible before. Select and uncollapse window when it
8542 is made visible.
8543 (x_make_frame_invisible): Don't reset x_highlight_frame.
8544 (x_iconify_frame): Likewise. Make invisible frame visible before
8545 it is iconified.
8546 (read_socket_inev): Move variable outside #if USE_CARBON_EVENTS.
8547 (do_window_update): Don't change visibility of invisible frame.
8548
8549 2005-08-22 Juri Linkov <juri@jurta.org>
8550
8551 * term.c (turn_on_face): Check for TS_set_foreground and
8552 TS_set_background depending on standout_mode. Simplify.
8553
8554 2005-08-21 Kim F. Storm <storm@cua.dk>
8555
8556 * fringe.c (update_window_fringes): Only put TOP and BOTTOM
8557 bitmaps on fully visible rows.
8558
8559 * fringe.c (update_window_fringes): Replace FORCE_P arg with
8560 KEEP_CURRENT_P arg; if non-zero, don't update current row fringes,
8561 and return 0.
8562
8563 * xdisp.c (redisplay_window): Call update_window_fringes with
8564 KEEP_CURRENT_P non-0 if we are going to refresh fringes later.
8565
8566 2005-08-20 Richard M. Stallman <rms@gnu.org>
8567
8568 * xdisp.c (display_echo_area_1): Get display start pos from w->start.
8569 (resize_mini_window): Set w->start, and PT, so as to display the tail
8570 end of the buffer, if it doesn't all fit.
8571
8572 2005-08-18 Kim F. Storm <storm@cua.dk>
8573
8574 * xdisp.c (calc_pixel_width_or_height): Use actual display
8575 resolution when available instead of Vdisplay_pixels_per_inch.
8576
8577 2005-08-17 Kim F. Storm <storm@cua.dk>
8578
8579 * xdisp.c (pos_visible_p): Adjust X value if window is hscrolled.
8580
8581 * dispnew.c (buffer_posn_from_coords): Check that target row is
8582 within matrix.
8583
8584 2005-08-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8585
8586 * xterm.c (x_wm_set_icon_pixmap): Move GTK specific code to
8587 xg_set_frame_icon and call it.
8588
8589 * gtkutil.c (xg_set_frame_icon): New function.
8590
8591 * gtkutil.h (xg_set_frame_icon): Declare it.
8592
8593 2005-08-16 Kim F. Storm <storm@cua.dk>
8594
8595 * dispnew.c (increment_row_positions): Skip non-enabled rows.
8596
8597 * window.c (SAVED_WINDOW_VECTOR_SIZE): Remove dangerous define.
8598 (Fcurrent_window_configuration): Use VECSIZE macro instead.
8599
8600 2005-08-15 Richard M. Stallman <rms@gnu.org>
8601
8602 * xdisp.c (message3_nolog): Clear echo_message_buffer.
8603
8604 2005-08-15 Kim F. Storm <storm@cua.dk>
8605
8606 * lisp.h (QUIT) [!SYNC_INPUT]: Throw t to Vthrow_on_input.
8607
8608 * process.c (deactivate_process, status_notify, read_process_output)
8609 (update_status, status_convert, decode_status, allocate_pty)
8610 (make_process, remove_process, list_processes_1)
8611 (create_process_1, unwind_request_sigio, read_process_output)
8612 (send_process, keyboard_bit_set): Declare static.
8613 (Fdelete_process): Simplify. Pass process to status_notify, so we
8614 don't try to read output from it.
8615 (status_notify): New arg deleting_process--don't try to read
8616 output from that process.
8617
8618 * lisp.h (deactivate_process, status_notify, read_process_output):
8619 Remove prototypes.
8620
8621 2005-08-14 Richard M. Stallman <rms@gnu.org>
8622
8623 * image.c (syms_of_image): Init Qxbm, Qpbm before calling
8624 define_image_type.
8625
8626 2005-08-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8627
8628 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask): New function.
8629 (xg_get_image_for_pixmap): Move some code to
8630 xg_get_pixbuf_from_pix_and_mask, and call it.
8631
8632 * gtkutil.h (xg_get_pixbuf_from_pix_and_mask): Declare.
8633
8634 * xterm.c (x_wm_set_icon_pixmap): Call xg_get_pixbuf_from_pix_and_mask
8635 to get an GTK icon and set it with GTK functions to avoid having GTK
8636 override an icon set with just X functions.
8637
8638 2005-08-11 Richard M. Stallman <rms@gnu.org>
8639
8640 * image.c (syms_of_image): Init image_types here, and call
8641 define_image_type.
8642 (init_image): Not here.
8643
8644 2005-08-09 Richard M. Stallman <rms@gnu.org>
8645
8646 * bytecode.c (BYTE_CODE_QUIT): Throw t to Vthrow_on_input.
8647
8648 * lisp.h (QUIT): Throw t to Vthrow_on_input.
8649
8650 2005-08-09 Thien-Thi Nguyen <ttn@gnu.org>
8651
8652 * floatfns.c (Fexpt): Use floats for negative exponent.
8653
8654 2005-08-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8655
8656 * gtkutil.c (xg_modify_menubar_widgets): Remove semicolon that
8657 should not be there, causing menu display errors with GTK 2.6.9.
8658
8659 2005-08-07 Richard M. Stallman <rms@gnu.org>
8660
8661 * floatfns.c (Fexpt): Undo previous change.
8662
8663 * dispnew.c (Fframe_or_buffer_changed_p): Take an arg
8664 so it can be used with various state vectors.
8665
8666 * emacs.c (endif): Convert -script into -scriptload.
8667 (standard_args): Add -scriptload. Allow -basic-display with one dash.
8668
8669 * fns.c (syms_of_fns): Add `emacs' to features.
8670
8671 * term.c (set_terminal_modes): If no TS_termcap_modes string,
8672 output newlines to scroll the old screen contents off the screen.
8673
8674 2005-08-06 Thien-Thi Nguyen <ttn@gnu.org>
8675
8676 * floatfns.c (Fexpt): Use floats for negative exponent.
8677 Reported by D Goel.
8678
8679 2005-08-02 Richard M. Stallman <rms@gnu.org>
8680
8681 * frame.c (Fframe_char_width): Doc fix.
8682
8683 2005-07-30 Juanma Barranquero <lekktu@gmail.com>
8684
8685 * xdisp.c (syms_of_xdisp) <redisplay-end-trigger-functions>:
8686 Defvar it.
8687
8688 2005-07-28 Juanma Barranquero <lekktu@gmail.com>
8689
8690 * w32fns.c (my_set_window_pos, my_show_window): Don't declare.
8691 (my_create_window, my_create_tip_window): Make static.
8692
8693 * w32term.c (my_show_window, my_set_window_pos, my_set_focus)
8694 (my_set_foreground_window, my_destroy_window): Make static.
8695
8696 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
8697
8698 Merge gnulib getopt implementation into Emacs.
8699
8700 * s/cygwin.h (C_SWITCH_SYSTEM): Remove, since gettext.h is
8701 now part of lib-src.
8702
8703 2005-07-26 Stefan Monnier <monnier@iro.umontreal.ca>
8704
8705 * eval.c (Fdefvar): Allow (defvar enable-multibyte-characters).
8706
8707 2005-07-25 Jason Rumney <jasonr@gnu.org>
8708
8709 * w32menu.c (w32_menu_display_help): Suppress tooltip when
8710 navigating menus with the keyboard.
8711
8712 2005-07-23 Richard M. Stallman <rms@gnu.org>
8713
8714 * insdel.c (syms_of_insdel): staticpro combine_after_change_buffer.
8715
8716 * bytecode.c (MAYBE_GC): Test gc_cons_threshold and
8717 gc_relative_threshold, one by one.
8718
8719 * keyboard.c (read_char): Test gc_cons_threshold.
8720 (syms_of_keyboard): staticpro Qecho_area_clear_hook.
8721
8722 * eval.c (Feval, Ffuncall): Test gc_cons_threshold and
8723 gc_relative_threshold, one by one.
8724
8725 * alloc.c (gc_cons_threshold): Not static.
8726 (gc_cons_combined_threshold): Var deleted.
8727 (gc_relative_threshold): New variable.
8728 (Fgarbage_collect, init_alloc_once): Compute gc_relative_threshold
8729 instead of gc_cons_combined_threshold.
8730
8731 * lisp.h (gc_cons_threshold, gc_relative_threshold): Declare.
8732 (gc_cons_combined_threshold): Declaration deleted.
8733
8734 2005-07-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8735
8736 * mac.c: Don't include stdlib.h or string.h.
8737 (Fdo_applescript, Fmac_file_name_to_posix)
8738 (Fmac_file_name_to_posix): Doc fixes.
8739 [TARGET_API_MAC_CARBON] (Fmac_get_preference)
8740 (Fmac_code_convert_string): Likewise.
8741 [MAC_OSX] (init_mac_osx_environment): Fall back on terminal mode
8742 if the executable is not contained in a bundle.
8743
8744 * macfns.c: Don't include stdlib.h or string.h. Include atimer.h.
8745 (gray_width, gray_height): Remove defines.
8746 (gray_bits, gray_bitmap_width, gray_bitmap_height)
8747 (gray_bitmap_bits): Remove variables.
8748 (lispy_function_keys): Remove extern.
8749 (free_frame_menubar): Add extern.
8750 (x_window_to_frame): Remove function.
8751 (unwind_create_tip_frame): Add declaration.
8752 (x_set_name_internal): New function.
8753 (x_set_name, x_set_title): Use it.
8754 (Fx_create_frame, Fx_display_grayscale_p, Fx_display_pixel_width)
8755 (Fx_display_pixel_height, Fx_display_planes)
8756 (Fx_display_color_cells, Fx_server_max_request_size)
8757 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
8758 (Fx_display_mm_height, Fx_display_mm_width)
8759 (Fx_display_backing_store, Fx_display_visual_class)
8760 (Fx_display_save_under, Fx_synchronize, Fx_show_tip): Doc fixes.
8761
8762 * macmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
8763
8764 * macselect.c (Fx_own_selection_internal): Follow error conventions.
8765 (Fx_get_selection_internal, Fx_selection_owner_p)
8766 (Fx_selection_exists_p): Doc fixes.
8767 (syms_of_macselect) <selection-converter-alist>: Likewise.
8768
8769 2005-07-21 Juanma Barranquero <lekktu@gmail.com>
8770
8771 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
8772
8773 * ccl.c (Fregister_ccl_program): Fix typos in docstring.
8774 (Fccl_execute_on_string): Likewise; add usage info.
8775
8776 * composite.c (Fcompose_region_internal)
8777 (Fcompose_string_internal):
8778 Improve argument/docstring consistency.
8779
8780 * minibuf.c (Fminibuffer_prompt_end, Feval_minibuffer):
8781 Fix typos in docstrings.
8782
8783 * textprop.c (Fnext_char_property_change)
8784 (Fprevious_char_property_change): Doc fixes.
8785
8786 * window.c (Fset_window_margins, Fset_window_fringes):
8787 Improve argument/docstring consistency.
8788
8789 * xfaces.c (Finternal_lisp_face_p): Doc fix.
8790
8791 2005-07-21 Andreas Schwab <schwab@suse.de>
8792
8793 * eval.c (restore_stack_limits): Return a value.
8794
8795 2005-07-20 Juanma Barranquero <lekktu@gmail.com>
8796
8797 * eval.c (Fdefvar): Doc fix.
8798
8799 2005-07-20 Kim F. Storm <storm@cua.dk>
8800
8801 * fileio.c (Fdo_auto_save, do_auto_save_unwind):
8802 Use make_save_value to unwind protect stream.
8803
8804 * lread.c (Fload, load_unwind):
8805 Use make_save_value to unwind protect stream.
8806
8807 2005-07-19 Juanma Barranquero <lekktu@gmail.com>
8808
8809 * eval.c (Fprog2, Fcalled_interactively_p),
8810 (syms_of_eval) <debug-on-quit>: Doc fixes.
8811 (syms_of_eval) <max-specpdl-size>:
8812 (Finteractive_p): Fix typos in docstrings.
8813
8814 2005-07-19 Kim F. Storm <storm@cua.dk>
8815
8816 * w32fns.c (Vx_hand_shape): Variable removed.
8817 (syms_of_w32fns): Intern and staticpro Qw32_charset_default.
8818
8819 2005-07-19 Kenichi Handa <handa@m17n.org>
8820
8821 * fns.c (Fstring_as_multibyte): Escape backslashes in the docstring.
8822
8823 2005-07-18 Stefan Monnier <monnier@iro.umontreal.ca>
8824
8825 * buffer.h (Fgenerate_new_buffer_name): Declare (for use in coding.c).
8826
8827 2005-07-18 Kim F. Storm <storm@cua.dk>
8828
8829 * frame.h (struct frame): New member already_hscrolled_p.
8830
8831 * xdisp.c (redisplay_internal): Only try to hscroll each frame once
8832 to avoid redisplay looping hscrolling back and forth ad infinitum.
8833
8834 2005-07-18 Juri Linkov <juri@jurta.org>
8835
8836 * buffer.c (scroll-up-aggressively, scroll-down-aggressively):
8837 * keymap.c (Fminor_mode_key_binding):
8838 * macterm.c (mac-emulate-three-button-mouse):
8839 Delete duplicate duplicate words.
8840
8841 2005-07-18 Ken Raeburn <raeburn@gnu.org>
8842
8843 * minibuf.c (Ftest_completion): Fix odd syntax in test.
8844
8845 2005-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8846
8847 * macfns.c (x_set_cursor_color): Use XSetBackground and XSetForeground.
8848
8849 * macgui.h (struct _XGC): New struct.
8850 (GC): Use it.
8851 (GCForeground, GCBackground, GCFont): Use X11 mask values.
8852 (XCreateGC, XParseGeometry): Move externs to macterm.h.
8853
8854 * macterm.c (x_bitmap_icon, x_make_frame_visible): Remove declarations.
8855 (XSetFont): Add declaration.
8856 (mac_set_forecolor, mac_set_backcolor, mac_set_colors):
8857 Remove functions.
8858 (GC_FORE_COLOR, GC_BACK_COLOR, GC_FONT, MAC_WINDOW_NORMAL_GC):
8859 New defines.
8860 (XDrawLine, mac_draw_line_to_pixmap, XClearWindow)
8861 (mac_draw_bitmap, XCreatePixmapFromBitmapData, XFillRectangle)
8862 (mac_draw_rectangle, mac_draw_string_common, mac_scroll_area):
8863 Use them.
8864 (mac_erase_rectangle): New function.
8865 (XClearArea, x_draw_fringe_bitmap, x_clear_glyph_string_rect)
8866 (x_draw_stretch_glyph_string): Use it.
8867 (XChangeGC, XCreateGC, XGetGCValues, XSetForeground)
8868 (XSetBackground, XSetFont): Adjust for new GC implementation.
8869 (x_draw_fringe_bitmap, x_draw_box_rect): Use GC to set colors.
8870 (XTset_vertical_scroll_bar): Clear area under scroll bar.
8871
8872 * macterm.h (struct mac_display_info): Change types of
8873 scratch_cursor_gc black_relief.gc, and white_relief.gc to GC.
8874 (XCreateGC, XParseGeometry): Move externs from macgui.h.
8875
8876 * xfaces.c [MAC_OS] (XCreateGC): Remove extern.
8877
8878 2005-07-16 Richard M. Stallman <rms@gnu.org>
8879
8880 * buffer.c (Fmake_overlay): Doc fix.
8881
8882 2005-07-16 Eli Zaretskii <eliz@gnu.org>
8883
8884 * w32proc.c (syms_of_ntproc): staticpro Qhigh, Qlow,
8885 Vw32_valid_locale_ids, and Vw32_valid_codepages.
8886
8887 2005-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8888
8889 * mac.c [TARGET_API_MAC_CARBON] (Fmac_code_convert_string):
8890 Use Fstring_as_unibyte instead of string_make_unibyte.
8891
8892 2005-07-15 Richard M. Stallman <rms@gnu.org>
8893
8894 * xdisp.c (select_frame_for_redisplay): Use find_symbol_value.
8895
8896 2005-07-15 Kim F. Storm <storm@cua.dk>
8897
8898 * xdisp.c: Fix redisplay loop in last change.
8899 (IT_POS_VALID_AFTER_MOVE_P): New macro.
8900 (move_it_vertically_backward, move_it_by_lines): Use it.
8901
8902 2005-07-14 Jason Rumney <jasonr@gnu.org>
8903
8904 * w32.c (init_environment): Default HOME directory to user's
8905 appdata directory if possible.
8906
8907 2005-07-14 Kim F. Storm <storm@cua.dk>
8908
8909 * .gdbinit (pitx): Fix output format. Print string charpos.
8910
8911 * lread.c (syms_of_lread): Initialize seen_list.
8912
8913 * search.c (syms_of_search): Staticpro searchbuf.whitespace_regexp.
8914
8915 * syntax.c (syms_of_syntax): Staticpro lisp objects in gl_state.
8916 Staticpro re_match_object.
8917
8918 2005-07-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8919
8920 * macselect.c (get_scrap_target_type_list): Avoid NULL pointer
8921 dereference.
8922
8923 * macterm.c (mac_window_to_frame): Remove duplicate define.
8924
8925 2005-07-14 Kenichi Handa <handa@m17n.org>
8926
8927 * coding.c (code_convert_region_unwind): ARG is changed to a cons.
8928 (code_convert_region): Adjust for the above change.
8929 (set_conversion_work_buffer): If the work buffer is already in
8930 use, generate a new buffer and return it. Otherwise return Qnil.
8931 (run_pre_post_conversion_on_str): Adjust for the above change.
8932 (run_pre_write_conversin_on_c_str): Likewise.
8933
8934 2005-07-13 Kim F. Storm <storm@cua.dk>
8935
8936 * xdisp.c (start_display): Don't reseat to next visible line start
8937 if current start position is in a string or image.
8938 (move_it_vertically_backward): Be sure to move out of strings and
8939 images when moving it2 forward.
8940 (move_it_by_lines): When moving forward, move to next buffer
8941 position if we end up in a string or image. When moving backward,
8942 count rows moved over when moving to start of current row in case
8943 row starts in middle of a string or image. Also move further
8944 backward if we end up in a string or image.
8945 (try_cursor_movement): If overlay string spans multiple lines,
8946 move backward to set cursor on start of an overlay string.
8947 (cursor_row_p): Row is ok if cursor is at newline from string, but
8948 string starts on this line (so we always position cursor at start
8949 of string).
8950
8951 * indent.c (Fvertical_motion): If start position is on an image,
8952 don't move back if we move too far (that's almost certain to happen).
8953
8954 * xdisp.c (cursor_row_fully_visible_p): Allow partially visible
8955 row in minibuffer windows.
8956 (try_window): Don't check margins in minibuffer windows.
8957
8958 2005-07-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8959
8960 * macterm.c: Don't include stdlib.h or composite.h.
8961 (x_use_underline_position_properties, last_mouse_press_frame)
8962 (x_noop_count, Qvendor_specific_keysyms): Remove unused variables.
8963 (syms_of_macterm, mac_initialize): Don't initialize them.
8964 (waiting_for_input, initial_argv, initial_argc)
8965 (Vcommand_line_args, Vx_no_window_manager, errno, window_scroll)
8966 (set_frame_menubar, path_from_vol_dir_name): Remove externs.
8967 (extra_keyboard_modifiers): Fix type in extern.
8968 (x_window_to_frame, x_window_to_scroll_bar): Remove declarations.
8969 (x_scroll_bar_report_motion): Add argument types to declaration.
8970 (mac_compute_glyph_string_overhangs): Add declaration.
8971 (disable_mouse_highlight): Remove unused variable.
8972 [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click)
8973 (x_scroll_bar_handle_press, x_scroll_bar_handle_release)
8974 (x_scroll_bar_handle_drag): Remove argument `timestamp'.
8975 All callers changed.
8976 [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click): Don't set
8977 timestamp.
8978 [USE_CARBON_EVENTS] (mac_handle_mouse_event): Likewise.
8979 (x_scroll_bar_create, XTset_vertical_scroll_bar): Show scroll bar
8980 only when its width is less than the height.
8981 (XTredeem_scroll_bar): Sync with xterm.c.
8982 (font_name_table, font_name_table_size, font_name_count):
8983 Make static.
8984 (drag_and_drop_file_list): Remove variable. Previous use is now
8985 local to function.
8986 (do_ae_open_documents): Move DRAG_N_DROP event construction part
8987 from XTread_socket.
8988 (XTread_socket): Consolidate setting of event timestamp.
8989 Move DRAG_N_DROP event construction part to do_ae_open_documents.
8990 Support extra_keyboard_modifiers.
8991
8992 * xfaces.c (try_font_list) [MAC_OS]: Try font family name
8993 beginning with that for ASCII.
8994
8995 2005-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
8996
8997 * alloc.c (gc_cons_combined_threshold, Vgc_cons_percentage): New vars.
8998 (Fgarbage_collect, init_alloc_once): Set gc_cons_combined_threshold.
8999 (syms_of_alloc): Declare gc-cons-percentage.
9000
9001 * eval.c (Feval, Ffuncall):
9002 * keyboard.c (read_char):
9003 * bytecode.c (MAYBE_GC): Use gc_cons_combined_threshold.
9004
9005 * lisp.h (gc_cons_combined_threshold): Declare.
9006
9007 2005-07-12 Kim F. Storm <storm@cua.dk>
9008
9009 * coding.c (Qprocess_argument):
9010 * coding.h (Qprocess_argument): Remove unused var.
9011
9012 * xselect.c (intern): Remove dup. intern and staticpro for QTIMESTAMP.
9013
9014 2005-07-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9015
9016 * mac.c [!TARGET_API_MAC_CARBON]: Include charset.h, coding.h, and
9017 Endian.h.
9018 [!MAC_OSX] (fchmod, fchown): New functions.
9019 (mac_get_code_from_arg): Don't accept Lisp integer as argument.
9020 Use SBYTES and EndianU32_BtoN.
9021 (mac_get_object_from_code): Return 4 byte string even if argument
9022 is 0. Use make_unibyte_string and EndianU32_NtoB.
9023 (Fmac_get_file_creator, Fmac_get_file_type, Fmac_set_file_creator)
9024 (Fmac_set_file_type): Fix documents and argument declarations.
9025 Don't specify kFSCatInfoNodeFlags. Support Mac OS Classic.
9026
9027 2005-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
9028
9029 * window.c (Frecenter): Yet another int/Lisp_Object mixup (YAILOM).
9030
9031 2005-07-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9032
9033 * xfaces.c (x_update_menu_appearance): Use fontSet resource for
9034 Lucid if X_I18N, font otherwise.
9035
9036 2005-07-10 Steven Tamm <steventamm@mac.com>
9037
9038 * mac.c (Fmac_get_file_type, Fmac_get_file_creator): Add.
9039 (Fmac_set_file_type, Fmac_set_file_creator): Add.
9040 (mac_get_object_from_code, mac_get_code_from_arg): Add.
9041
9042 2005-07-10 Richard M. Stallman <rms@gnu.org>
9043
9044 * lread.c (Qeval_buffer_list, Veval_buffer_list): New vars.
9045 (syms_of_lread): Set up eval-buffer-list.
9046 (Feval_buffer, Feval_region): Bind eval-buffer-list.
9047
9048 2005-07-08 Richard M. Stallman <rms@gnu.org>
9049
9050 * eval.c (Fdefvar): Allow defvaring a constant to itself quoted.
9051
9052 2005-07-08 Kim F. Storm <storm@cua.dk>
9053
9054 * keyboard.c (menu_bar_items): Don't GCPRO menu_bar_items_vector here.
9055 (syms_of_keyboard): Initialize and staticpro menu_bar_items_vector.
9056
9057 2005-07-07 Kim F. Storm <storm@cua.dk>
9058
9059 * window.c (Frecenter): Fix last change (set iarg before use).
9060
9061 2005-07-06 Richard M. Stallman <rms@gnu.org>
9062
9063 * window.c (Frecenter): When arg is inside the scroll margin,
9064 move it out of the margin.
9065
9066 2005-07-06 Jason Rumney <jasonr@gnu.org>
9067
9068 * w32console.c (initialize_w32_display): Detect when the console
9069 dimensions are insane, and default to 80x25 instead.
9070 (w32_use_full_screen_buffer): Default to nil.
9071
9072 2005-07-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9073
9074 * macterm.c (mac_draw_vertical_window_border): Use foreground of
9075 VERTICAL_BORDER_FACE_ID for vertical border line.
9076 (mac_encode_char): Call check_ccl_update in advance.
9077 (mac_to_x_fontname, x_font_name_to_mac_font_name)
9078 (init_font_name_table, mac_do_list_fonts, XLoadQueryFont):
9079 Don't assume that font family length is less than 32.
9080 (x_compute_min_glyph_bounds): Make static.
9081 (x_load_font): Never set fonts_changed_p to zero.
9082
9083 2005-07-04 Lute Kamstra <lute@gnu.org>
9084
9085 * Update FSF's address in GPL notices.
9086
9087 2005-07-03 Richard M. Stallman <rms@gnu.org>
9088
9089 * xdisp.c (try_window): Fix previous change in how it handles
9090 a partially-visible line or one only partly past the margin.
9091
9092 * window.c (window_scroll_pixel_based): Take account
9093 of this_scroll_margin when finding point when scrolling up.
9094
9095 2005-06-29 Ralf Angeli <angeli@iwi.uni-sb.de>
9096
9097 * window.c (window_scroll_pixel_based, window_scroll_line_based):
9098 Handle `scroll-preserve-screen-position' non-nil, non-t specially.
9099 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
9100
9101 2005-07-02 Juri Linkov <juri@jurta.org>
9102
9103 * w32term.c (w32_draw_vertical_window_border): Use foreground of
9104 VERTICAL_BORDER_FACE_ID for vertical border line.
9105
9106 2005-07-02 Eli Zaretskii <eliz@gnu.org>
9107
9108 * fileio.c (Fcopy_file): Rearrange the code that calls fchown and
9109 fchmod so that chmod doesn't get called on MSDOS before the file
9110 is closed.
9111
9112 2005-07-01 Jason Rumney <jasonr@gnu.org>
9113
9114 * w32term.c (cleartype_active): New flag for enabling sub-pixel
9115 workaround.
9116 (w32_initialize): Initialize it.
9117 (w32_native_per_char_metric): Allow a couple of extra pixels when
9118 Cleartype is active.
9119
9120 * w32term.c (w32_initialize): Move check for screen reader here
9121 from syms_of_w32term.
9122
9123 2005-06-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9124
9125 * xterm.c (handle_one_xevent): bzero compose_status when nbytes
9126 is not zero.
9127
9128 2005-07-01 Masatake YAMATO <jet@gyve.org>
9129
9130 * emacs.c (main): Passing ADD_NO_RANDOMIZE to `personality'.
9131
9132 2005-06-30 Juri Linkov <juri@jurta.org>
9133
9134 * xdisp.c (x_draw_vertical_border): If left fringe is not present
9135 decrease x coord of vertical border by 1 pixel to not occupy text
9136 area of the right window.
9137
9138 * xterm.c (x_draw_vertical_window_border): Use foreground of
9139 VERTICAL_BORDER_FACE_ID for vertical border line.
9140
9141 * term.c (turn_on_face): In standout mode apply specified
9142 fg to bg, and specified bg to fg (this makes the logic of
9143 inversion on terminal consistent with X).
9144
9145 2005-06-29 Juanma Barranquero <lekktu@gmail.com>
9146
9147 * eval.c (user_variable_p_eh): New function.
9148 (Fuser_variable_p): Use it. Clarify docstring.
9149 Return t for aliases of user options, nil for alias loops.
9150
9151 2005-06-27 Richard M. Stallman <rms@gnu.org>
9152
9153 * eval.c (Fdefvar): Improve error message.
9154
9155 2005-06-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9156
9157 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Fix last
9158 change.
9159
9160 2005-06-27 Juanma Barranquero <lekktu@gmail.com>
9161
9162 * eval.c (Fdefvar): Don't try to set constant symbols.
9163
9164 2005-06-25 Richard M. Stallman <rms@gnu.org>
9165
9166 * macfns.c (Fx_show_tip): Pass new arg to try_window.
9167
9168 * w32fns.c (Fx_show_tip): Pass new arg to try_window.
9169
9170 * xfns.c (Fx_show_tip): Pass new arg to try_window.
9171
9172 * xdisp.c (try_window): New arg CHECK_MARGINS. Calls changed.
9173 (redisplay_window): Handle try_window reporting point in scroll margin.
9174
9175 * dispextern.h (try_window): Declare new arg.
9176
9177 * fileio.c (Fcopy_file): New arg PRESERVE_UID_GID.
9178 Use fchmod to copy the file modes.
9179 (Frename_file): Don't copy UID and GID here;
9180 instead, specify t for PRESERVE_UID_GID when calling Fcopy_file.
9181
9182 * eval.c (call_debugger): Take full care of extending stack limits
9183 to make space for the debugger, and restore the change afterward.
9184 Bind debug-on-error to nil.
9185 (restore_stack_limits): New subroutine.
9186 (Fsignal): Extend specpdl bound along with eval depth bound,
9187 for calling edebug. Don't do either one, for calling debugger.
9188 (find_handler_clause): Don't bind debug-on-error here.
9189 Don't unbind anything either.
9190 Temporarily advance max_specpdl_size for calling
9191 internal_with_output_to_temp_buffer.
9192 (grow_specpdl): Don't alter max_specpdl_size before signaling
9193 an error.
9194 (syms_of_eval) <max-specpdl-size>: Doc fix.
9195
9196 * lread.c (read1): 0.0e+NaN should make a "positive" NaN.
9197
9198 2005-06-24 Eli Zaretskii <eliz@gnu.org>
9199
9200 * fileio.c (Frename_file): Undo last change: no need to ifdef away
9201 chown on DOS_NT platforms.
9202
9203 * w32.c (sys_chown): New function.
9204
9205 * s/ms-w32.h (chown): New; define to sys_chown.
9206
9207 2005-06-24 Juanma Barranquero <lekktu@gmail.com>
9208
9209 * xdisp.c (syms_of_xdisp) <nobreak-char-display>: Doc fix.
9210 (syms_of_xdisp) <void-text-area-pointer>: Doc fix.
9211
9212 * fileio.c (Frename_file)[!DOS_NT]: Don't call chown on MSDOS/Windows.
9213
9214 2005-06-23 Richard M. Stallman <rms@gnu.org>
9215
9216 * xdisp.c (get_next_display_element): Finish reversing the tests of
9217 Vnobreak_char_display.
9218
9219 * xdisp.c (Vnobreak_char_display): Rename from Vshow_nonbreak_escape.
9220 All uses changed.
9221 (Qnobreak_space): Rename from Qno_break_space. All uses changed.
9222 (syms_of_xdisp): Define nobreak-char-display and nobreak-space.
9223
9224 * fileio.c (Frename_file): Preserve owner and group, if possible,
9225 when copying.
9226
9227 2005-06-23 Juanma Barranquero <lekktu@gmail.com>
9228
9229 * abbrev.c (Funexpand_abbrev):
9230 * category.c (Fmake_category_set):
9231 * dispnew.c (Fsleep_for, Fsit_for):
9232 * editfns.c (Fsubst_char_in_region):
9233 * eval.c (Fdefvar, Fdefconst, Feval, Ffuncall):
9234 * frame.c (make_frame_without_minibuffer):
9235 * lread.c (read_vector):
9236 * macfns.c (check_x_frame):
9237 * process.c (Fstop_process, Fcontinue_process):
9238 * search.c (Freplace_match):
9239 * syntax.c (Fstring_to_syntax):
9240 * w32fns.c (check_x_frame, check_x_display_info):
9241 * xfaces.c (x_supports_face_attributes_p):
9242 * xselect.c (Fx_own_selection_internal): Follow error conventions.
9243
9244 * image.c (fn_png_init_io): Don't define it.
9245 (init_png_functions) [HAVE_NTGUI]: Don't initialize fn_png_init_io.
9246 (png_read_from_file): New function, based on png_read_from_memory.
9247 (png_load): Use it, instead of fn_png_init_io.
9248
9249 2005-06-23 Kim F. Storm <storm@cua.dk>
9250
9251 * search.c (Fmatch_data): Remove evaporate option.
9252 (Fset_match_data): Do not mention evaporate option in doc string.
9253 Add commentary explaining evaporate arg (for internal use only).
9254 (unwind_set_match_data): Add comment on evaporate use.
9255
9256 2005-06-22 Miles Bader <miles@gnu.org>
9257
9258 * xfaces.c (Qvertical_border): Rename from `Qvertical_divider'.
9259 (realize_basic_faces, syms_of_xfaces): Update references to it.
9260 * dispextern.h (enum face_id): Rename `VERTICAL_DIVIDER_FACE_ID'
9261 to `VERTICAL_BORDER_FACE_ID'.
9262 * dispnew.c (build_frame_matrix_from_leaf_window): Update references.
9263
9264 2005-06-21 Juri Linkov <juri@jurta.org>
9265
9266 * dispextern.h: Add extern Qframe_set_background_mode.
9267
9268 * xfaces.c: Rename obsolete function Qframe_update_face_colors to
9269 Qframe_set_background_mode.
9270
9271 * frame.c (Fmodify_frame_parameters):
9272 Call frame-set-background-mode after changing the background color
9273 on non-window non-dos branch.
9274
9275 2005-06-21 Juanma Barranquero <lekktu@gmail.com>
9276
9277 * fns.c (Fchar_table_range):
9278 * process.c (Fmake_network_process): Fix spellings.
9279
9280 2005-06-20 Kim F. Storm <storm@cua.dk>
9281
9282 * fns.c (Fsort): Doc fix.
9283
9284 2005-06-20 Miles Bader <miles@gnu.org>
9285
9286 * xfaces.c (Qvertical_divider): New variable.
9287 (realize_basic_faces): Realize its face.
9288 (syms_of_xfaces): Initialize it.
9289
9290 * dispextern.h (enum face_id): Add `VERTICAL_DIVIDER_FACE_ID'.
9291
9292 * dispnew.c (build_frame_matrix_from_leaf_window): Display vertical
9293 window-separator on ttys using `vertical-divider' face by default.
9294
9295 2005-06-17 Richard M. Stallman <rms@gnu.org>
9296
9297 * xdisp.c (get_next_display_element):
9298 Reverse test of Vshow_nonbreak_escape.
9299
9300 * term.c (produce_special_glyphs): Use spec_glyph_lookup_face.
9301 (Ftty_no_underline): New function.
9302 (syms_of_term): defsubr it.
9303
9304 * keyboard.c (read_char): Call restore_getcjmp after jump occurs.
9305
9306 * dispnew.c (spec_glyph_lookup_face): New function.
9307 (build_frame_matrix_from_leaf_window): Use it.
9308
9309 * dispextern.h (spec_glyph_lookup_face): Add declaration.
9310
9311 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
9312
9313 2005-06-12 Richard M. Stallman <rms@gnu.org>
9314
9315 * keyboard.c (read_char): After catching a longjmp,
9316 call restore_getcjmp.
9317
9318 2005-06-17 Juanma Barranquero <lekktu@gmail.com>
9319
9320 * xselect.c (lisp_data_to_selection_data): Fix spelling.
9321
9322 2005-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9323
9324 * macterm.c (mac_compute_glyph_string_overhangs): Don't set
9325 overhangs unless the given glyph type is noncomposite CHAR_GLYPH.
9326 [USE_CARBON_EVENTS] (mac_convert_event_ref): Convert dead key down
9327 events.
9328 (XTread_socket): Don't pass keyboard events with the option
9329 modifier to the system when Vmac_command_key_is_meta is nil or
9330 Vmac_option_modifier is non-nil.
9331 [USE_CARBON_EVENTS] (read_socket_inev): New variable.
9332 [USE_CARBON_EVENTS] (init_command_handler): Fix argument.
9333 [USE_CARBON_EVENTS] (mac_handle_mouse_event): New Carbon event
9334 handler function.
9335 (install_window_handler) [USE_CARBON_EVENTS]: Install it.
9336 (XTread_socket) [USE_CARBON_EVENTS]: Move mouse wheel event
9337 handler part to mac_handle_mouse_event.
9338
9339 2005-06-14 Juanma Barranquero <lekktu@gmail.com>
9340
9341 * eval.c (Fdefvaralias): Rename arguments SYMBOL and ALIASED to
9342 NEW-ALIAS and BASE-VARIABLE, respectively.
9343
9344 2005-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
9345
9346 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
9347 (get_phys_cursor_geometry, format_mode_line_unwind_data)
9348 (get_line_height_property, x_produce_glyphs): Remove unused vars.
9349
9350 * coding.c (run_pre_post_conversion_on_str): Remove unused var `buf'.
9351
9352 2005-06-13 Eli Zaretskii <eliz@gnu.org>
9353
9354 * w32term.c (x_use_underline_position_properties): New variable.
9355 (x_draw_glyph_string): Remind in a comment to change doc string of
9356 x-use-underline-position-properties if/when underline positioning
9357 is implemented.
9358 (syms_of_w32term): DEFVAR_BOOL x-use-underline-position-properties,
9359 and initialize it to nil.
9360
9361 2005-06-12 Jason Rumney <jasonr@gnu.org>
9362
9363 * w32fns.c (NEWOPENFILENAME): New struct.
9364 (Fx_file_dialog): Use it to trick the system into giving us up to
9365 date dialogs on systems that are documented to support it.
9366 Do not set OFN_FILEMUSTEXIST flag if looking for a directory.
9367
9368 2005-06-12 Eli Zaretskii <eliz@gnu.org>
9369
9370 * w32fns.c (w32_abort): Use the MB_YESNO dialog instead of
9371 MB_ABORTRETRYIGNORE. Never return, even if DebugBreak does.
9372
9373 2005-06-11 Eli Zaretskii <eliz@gnu.org>
9374
9375 * image.c (x_create_x_image_and_pixmap) [HAVE_NTGUI]: Cast 4th arg
9376 to CreateDIBSection to avoid a compiler warning.
9377 (pbm_load): Cast 3rd arg to IMAGE_BACKGROUND to avoid a compiler
9378 warning.
9379 (png_load): Cast return values of fn_png_create_read_struct and
9380 fn_png_create_info_struct, to avoid compiler warnings on W32.
9381 Cast 3rd arg to IMAGE_BACKGROUND and image_background_transparent
9382 to avoid compiler warnings.
9383 (jpeg_load): Cast return value of fn_jpeg_std_error to avoid a
9384 compiler warning on W32. Cast 3rd arg to IMAGE_BACKGROUND to
9385 avoid a compiler warning.
9386 (tiff_load): Cast return values of fn_TIFFOpen and
9387 fn_TIFFClientOpen to avoid compiler warning on W32. Cast 3rd arg
9388 to IMAGE_BACKGROUND to avoid a compiler warning.
9389 (gif_load): Cast return values of fn_DGifOpenFileName and
9390 fn_DGifOpen to avoid compiler warnings on W32. Cast 3rd arg to
9391 IMAGE_BACKGROUND to avoid a compiler warning.
9392 (DrawText) [HAVE_NTGUI || MAC_OS]: If already defined, undef
9393 before redefining.
9394
9395 * w32bdf.c (create_offscreen_bitmap): Cast `bitsp' to `void **' in
9396 the call to CreateDIBSection, to avoid a compiler warning.
9397
9398 2005-06-11 Jason Rumney <jasonr@gnu.org>
9399
9400 * w32fns.c (Fx_file_dialog): Unblock input before falling back to
9401 minibuffer.
9402 * macfns.c (Fx_file_dialog): Likewise.
9403
9404 2005-06-10 Eli Zaretskii <eliz@gnu.org>
9405
9406 * makefile.w32-in ($(TEMACS)): Depend on addsection.exe.
9407
9408 2005-06-10 Juanma Barranquero <lekktu@gmail.com>
9409
9410 * process.c (syms_of_process) [ADAPTIVE_READ_BUFFERING]:
9411 * w32fns.c (syms_of_w32fns): Fix spellings.
9412
9413 2005-06-10 Eli Zaretskii <eliz@gnu.org>
9414
9415 * unexw32.c (COPY_CHUNK, COPY_PROC_CHUNK): Add a new argument
9416 `verbose'; print diagnostic messages only if it is non-zero.
9417 All callers changed to pass a zero value unless DEBUG_DUMP is defined
9418 in the environment.
9419 (copy_executable_and_dump_data): Print section names with %.8s.
9420
9421 2005-06-10 Masatake YAMATO <jet@gyve.org>
9422
9423 * xdisp.c (note_mode_line_or_margin_highlight): Call clear_mouse_face
9424 when mouse_face is not given.
9425
9426 2005-06-09 Luc Teirlinck <teirllm@auburn.edu>
9427
9428 * window.c (Fselect_window): Adapt call to Fselect_frame.
9429
9430 * lisp.h: Update EXFUN of Fselect_frame.
9431
9432 * keyboard.c (command_loop_1): Adapt call to Fselect_frame.
9433
9434 * frame.c (Fhandle_switch_frame, Fselect_frame): Delete unused arg
9435 no_enter.
9436 (Fset_mouse_position, Fset_mouse_pixel_position, Ficonify_frame):
9437 Adapt to above change.
9438
9439 2005-06-10 Juanma Barranquero <lekktu@gmail.com>
9440
9441 * fns.c (Fmemq, Fmaphash): Doc fixes.
9442
9443 2005-06-09 Juanma Barranquero <lekktu@gmail.com>
9444
9445 * xfaces.c (Fdisplay_supports_face_attributes_p):
9446 Fix typo in docstring.
9447
9448 2005-06-08 Steven Tamm <steventamm@mac.com>
9449
9450 * unexmacosx.c (copy_data_segment): Copy __la_sym_ptr2 section
9451 used by gcc4 on intel mac.
9452
9453 2005-06-09 Kim F. Storm <storm@cua.dk>
9454
9455 * search.c (Fmatch_data): Add optional RESEAT arg. Unchain markers
9456 in REUSE list if non-nil; free them if equal to evaporate.
9457 (Fset_match_data): Add optional RESEAT arg. Unchain markers in LIST
9458 if non-nil; free them if equal to evaporate. Use XCAR/XCDR.
9459 (restore_search_regs): Rename from restore_match_data. Uses changed.
9460 (unwind_set_match_data): New function.
9461 (record_unwind_save_match_data): New function like save-match-data.
9462
9463 * lisp.h (Fmatch_data, Fset_match_data): Fix EXFUN.
9464 (record_unwind_save_match_data): Add prototype.
9465 (restore_search_regs): Rename from restore_match_data.
9466
9467 * composite.c (compose_chars_in_text):
9468 * eval.c (do_autoload):
9469 * macmenu.c (set_frame_menubar):
9470 * process.c (read_process_output, exec_sentinel):
9471 * xmenu.c (set_frame_menubar):
9472 * xdisp.c (prepare_menu_bars, update_menu_bar, update_tool_bar):
9473 * w32menu.c (set_frame_menubar):
9474 Use record_unwind_save_match_data.
9475
9476 2005-06-08 Richard M. Stallman <rms@gnu.org>
9477
9478 * xdisp.c (get_next_display_element): Alter previous change:
9479 Distinguish Vshow_nonbreak_escape = t or not t.
9480 For t, use escape_glyph once again, as before previous change.
9481 Use space or hyphen for display, instead of the non-ASCII char.
9482 (syms_of_xdisp) <show-nonbreak-escape>: Doc fix.
9483
9484 * process.c (Fstart_process): Don't touch command_channel_p slot.
9485
9486 * process.h (struct process): Delete command_channel_p.
9487
9488 2005-06-07 Masatake YAMATO <jet@gyve.org>
9489
9490 * xdisp.c (note_mode_line_or_margin_highlight):
9491 Check the overlapping of re-rendering area to avoid flickering.
9492 (note_mouse_highlight): Call clear_mouse_face if PART
9493 is not ON_MODE_LINE nor ON_HEADER_LINE.
9494
9495 2005-06-07 Kim F. Storm <storm@cua.dk>
9496
9497 * process.c: Improve commentary for adaptive read buffering.
9498
9499 2005-06-06 Stefan Monnier <monnier@iro.umontreal.ca>
9500
9501 * xterm.c (x_create_toolkit_scroll_bar): Use XtNarrowScrollbars
9502 if available.
9503
9504 2005-06-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9505
9506 * macmenu.c (menu_quit_handler, install_menu_quit_handler):
9507 New functions for popping down menus on C-g.
9508 (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler.
9509
9510 * macterm.c: Make mac_quit_char_modifiers and mac_quit_char_keycode
9511 non-static.
9512
9513 * config.in: Add HAVE_CANCELMENUTRACKING.
9514
9515 2005-06-06 Eli Zaretskii <eliz@gnu.org>
9516
9517 * w32heap.h (OFFSET_TO_RVA, RVA_TO_OFFSET, RVA_TO_PTR): Remove macros.
9518
9519 * unexw32.c (RVA_TO_PTR): Move here from w32heap.h.
9520
9521 * w32proc.c (RVA_TO_PTR): New macro.
9522
9523 * w32heap.c (RVA_TO_PTR): No need to #undef now.
9524
9525 * makefile.w32-in ($(BLD)/emacs.$(O), $(BLD)/w32select.$(O)):
9526 Depend on w32heap.h.
9527
9528 2005-06-06 Luc Teirlinck <teirllm@auburn.edu>
9529
9530 * keyboard.c (command_loop_1): Update Vthis_original_command.
9531
9532 2005-06-06 Richard M. Stallman <rms@gnu.org>
9533
9534 * xmenu.c (popup_get_selection): Undo previous change.
9535
9536 2005-06-06 Juri Linkov <juri@jurta.org>
9537
9538 * xdisp.c (Qno_break_space): New variable.
9539 (syms_of_xdisp): Initialize it.
9540 (get_next_display_element): Add no-break space and soft hypen
9541 codes for iso8859-2 and iso8859-5. Don't add `\' for them.
9542 Use `no-break-space' face for no-break spaces.
9543
9544 2005-06-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9545
9546 * window.c (delete_window): Handle the case where a h/vchild has
9547 a h/vchild.
9548
9549 2005-06-05 Eli Zaretskii <eliz@gnu.org>
9550
9551 * w32.c (sys_setsockopt): Change arg 4 to `const void *'. In the
9552 call to pfn_setsockopt, cast optval to `const char *'.
9553
9554 2005-06-04 Eli Zaretskii <eliz@gnu.org>
9555
9556 * w32.c (gettimeofday): Use struct _timeb, not struct timeb.
9557 (open_unc_volume): Cast return value of map_w32_filename, to avoid
9558 compiler warnings.
9559
9560 * s/ms-w32.h (fileno): Don't define if already defined.
9561
9562 * emacs.c: Include w32heap.h, to avoid compiler warning about sbrk.
9563
9564 * makefile.w32-in (DOC): Define to point to the generated DOC-X.
9565
9566 2005-06-04 Richard M. Stallman <rms@gnu.org>
9567
9568 * xmenu.c (popup_get_selection): Click not in menu deactivates menu.
9569
9570 2005-06-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9571
9572 * macmenu.c (cleanup_popup_menu): New function.
9573 (Fx_popup_menu): Unwind protect cleanup_popup_menu in case
9574 mac_menu_show Quit:s.
9575 (mac_menu_show): Quit on cancel if not popped up on click (i.e.
9576 a dialog).
9577
9578 2005-06-04 Kim F. Storm <storm@cua.dk>
9579
9580 * coding.c (decode_coding_string): Handle CODING_FINISH_INTERRUPT.
9581
9582 * callproc.c (Fcall_process): Don't use alloca to gradually
9583 increase size of buf, as it effectively uses twice the necessary
9584 space on the stack. Instead, pre-allocate buf of full size, and
9585 gradually increase the read size.
9586
9587 * bytecode.c (BYTE_CODE_QUIT): Check Vthrow_on_input.
9588
9589 * eval.c (unbind_to): Preserve value of Vquit_flag.
9590
9591 * xterm.c (handle_one_xevent): Also ignore mouse motion just
9592 before a button release event.
9593
9594 2005-06-03 Juanma Barranquero <lekktu@gmail.com>
9595
9596 * xfaces.c (Finternal_lisp_face_equal_p): Really report
9597 on faces in a frame, if the argument FRAME is non-nil.
9598 Improve argument/docstring consistency.
9599
9600 2005-06-02 Kim F. Storm <storm@cua.dk>
9601
9602 * xdisp.c (MODE_LINE_NOPROP_LEN): New macro.
9603 (x_consider_frame_title, Fformat_mode_line): Save offset into
9604 mode_line_noprop_buf rather than pointer, in case buffer is relocated.
9605
9606 2005-06-01 Kim F. Storm <storm@cua.dk>
9607
9608 * fns.c (mapcar1): Maybe exit loop if original sequence was modified.
9609
9610 2005-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9611
9612 * macterm.c (mac_to_x_fontname, mac_do_list_fonts): Set XLFD
9613 resolution fields for scalable fonts to 0.
9614
9615 * xfaces.c (build_scalable_font_name): Round pixel size to the
9616 nearest integer.
9617
9618 2005-06-01 Kim F. Storm <storm@cua.dk>
9619
9620 * xdisp.c (display_mode_line): Support nested calls to redisplay
9621 and format-mode-line. Set mode_line_target to MODE_LINE_DISPLAY.
9622
9623 2005-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
9624
9625 * fileio.c (Finsert_file_contents):
9626 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
9627
9628 2005-05-31 Kim F. Storm <storm@cua.dk>
9629
9630 * xdisp.c (mode_line_noprop_buf, mode_line_noprop_buf_end)
9631 (mode_line_noprop_ptr): Rename from frame_title_*.
9632 (store_mode_line_noprop_char): Rename from store_frame_title_char.
9633 (store_mode_line_noprop): Rename from store_frame_title.
9634 (mode_line_target): New enum to specify current output target
9635 for mode line formatting.
9636 (display_mode_element): Test it rather than frame_title_ptr and
9637 mode_line_string_list to determine where output should go.
9638 (mode_line_proptrans_alist, mode_line_string_alist): Make static.
9639 (Vmode_line_unwind_vector): New variable.
9640 (format_mode_line_unwind_data, unwind_format_mode_line):
9641 New functions for unwind protection in mode line formatting.
9642 (x_consider_frame_title): Use them and new local var 'title_start'
9643 to support nested calls to format-mode-line and redisplay.
9644 Set mode_line_target to MODE_LINE_TITLE.
9645 (Fformat_mode_line): Use them and new local var 'string_start' to
9646 support nested calls to format-mode-line and redisplay.
9647 Set mode_line_target to MODE_LINE_NOPROP or MODE_LINE_STRING.
9648 Don't trim trailing dashes.
9649 (decode_mode_spec): Don't make infinite number of trailing dashes
9650 for MODE_LINE_NOPROP and MODE_LINE_STRING targets.
9651 (syms_of_xdisp): Initialize and staticpro mode_line_string_face,
9652 mode_line_string_face_prop, and Vmode_line_unwind_vector.
9653 (init_xdisp): Initialize mode_line_noprop_ptr to start of _buf.
9654 Initialize mode_line_target to MODE_LINE_DISPLAY.
9655
9656 2005-05-29 Richard M. Stallman <rms@gnu.org>
9657
9658 * buffer.c (Fbuffer_local_value): Call indirect_variable.
9659
9660 2005-05-28 Masatake YAMATO <jet@gyve.org>
9661
9662 * xdisp.c (note_mode_line_or_margin_highlight): Change the
9663 pointer to a hand cursor when hoovering over a mouse-face.
9664
9665 2005-05-27 Kenichi Handa <handa@m17n.org>
9666
9667 * xterm.c (x_encode_char): Call check_ccl_update in advance.
9668
9669 * ccl.c: Now an element of Vccl_program_table is a vector of
9670 length 4, not 3.
9671 (ccl_get_compiled_code): New arg idx. Caller changed.
9672 Adjust for the change of Vccl_program_table.
9673 (setup_ccl_program): Adjust for the change of Vccl_program_table.
9674 (check_ccl_update): New function.
9675 (Fregister_ccl_program): Use ASET to set an element of a vector.
9676 Adjusted for the change of Vccl_program_table.
9677
9678 * ccl.h (struct ccl_program): New member idx.
9679 (check_ccl_update): Extern it.
9680
9681 2005-05-27 Juanma Barranquero <lekktu@gmail.com>
9682
9683 * image.c (Vimage_library_alist): Move from image.el.
9684 (syms_of_image): Defvar it.
9685 (lookup_image_type): Use it.
9686
9687 * buffer.c (Fbuffer_local_value): Make argument name match its use
9688 in docstring.
9689
9690 2005-05-26 Juanma Barranquero <lekktu@gmail.com>
9691
9692 * keyboard.c (Frecursive_edit): Fix typo in docstring.
9693 (Fposn_at_x_y): Make argument name match its use in docstring.
9694
9695 2005-05-26 Lute Kamstra <lute@gnu.org>
9696
9697 * eval.c (Frun_hooks): Mention run-mode-hooks in docstring.
9698
9699 2005-05-24 Masatake YAMATO <jet@gyve.org>
9700
9701 * xdisp.c (note_mode_line_or_margin_highlight): Use b and e
9702 as loop sentinels.
9703
9704 2005-05-24 Nick Roberts <nickrob@snap.net.nz>
9705
9706 * xmenu.c (Fx_popup_dialog): Add a third boolean argument to
9707 select frame title ("Question"/"Information").
9708 (xdialog_show): Use it.
9709
9710 * macmenu.c (Fx_popup_dialog, mac_dialog_show): As for xmenu.c.
9711
9712 * w32menu.c (Fx_popup_dialog, w32_dialog_show): As for xmenu.c.
9713
9714 * fns.c (Fyes_or_no_p, Fy_or_n_p): Call Fx_popup_dialog with
9715 a third argument (Qnil).
9716
9717 * lisp.h: x-popup-dialog can have three arguments.
9718
9719 * editfns.c (Fmessage_box): Use "Information" for frame title.
9720
9721 2005-05-23 Thien-Thi Nguyen <ttn@gnu.org>
9722
9723 * termcap.c [VMS]: Include <starlet.h>.
9724
9725 2005-05-23 Masatake YAMATO <jet@gyve.org>
9726
9727 * xdisp.c (note_mode_line_or_margin_highlight): Add code
9728 for mouse-face. Change the type of the first argument from `window'
9729 to `Lisp_Object'.
9730 (note_mouse_highlight): Call note_mode_line_or_margin_highlight with
9731 window instead of w.
9732
9733 2005-05-22 Andreas Schwab <schwab@suse.de>
9734
9735 * process.c (send_process): Move misplaced volatile.
9736
9737 2005-05-21 Richard M. Stallman <rms@gnu.org>
9738
9739 * xdisp.c (display_mode_element): If we're processing a list and
9740 padding is specified, put it after the last element.
9741
9742 2005-05-21 Eli Zaretskii <eliz@gnu.org>
9743
9744 * fileio.c (Fexpand_file_name) [DOS_NT]: Don't try to support
9745 "superroot" on DOS_NT systems.
9746
9747 2005-05-21 David Hunter <hunterd42@comcast.net> (tiny change)
9748
9749 * process.c (send_process): Restore the SIGPIPE handler if we
9750 catch a SIGPIPE.
9751
9752 2005-05-20 Juanma Barranquero <lekktu@gmail.com>
9753
9754 * image.c (lookup_image, png_read_from_memory): Remove hacks (and
9755 misleading comments).
9756 (DEF_IMGLIB_FN): Use C calling convention for image libraries.
9757
9758 2005-05-20 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
9759
9760 * window.c (Fwindow_inside_edges, Fwindow_inside_pixel_edges):
9761 Correct the right value.
9762
9763 2005-05-19 Nick Roberts <nickrob@snap.net.nz>
9764
9765 * keyboard.c (syms_of_keyboard): Remove Lisp variables
9766 post-command-idle-hook and post-command-idle-delay.
9767 (command_loop_1): Don't try to execute post-command-idle-hook.
9768
9769 2005-05-16 Kim F. Storm <storm@cua.dk>
9770
9771 * xdisp.c (handle_display_prop): Handle empty replacement.
9772 (handle_single_display_spec): Return -1 for empty replacement.
9773
9774 * keyboard.c (adjust_point_for_property): Skip empty overlay string.
9775
9776 * .gdbinit (pitx): Print more info about iterator.
9777
9778 2005-05-16 Andreas Schwab <schwab@suse.de>
9779
9780 * unexmacosx.c (unexec_realloc): Move declarations before statements.
9781
9782 2005-05-14 Richard M. Stallman <rms@gnu.org>
9783
9784 * xdisp.c (message3): Call cancel_echoing.
9785
9786 * alloc.c (Fmemory_full_p): New function.
9787 (syms_of_alloc): defsubr it.
9788
9789 * process.c (send_process_trap): Unblock SIGPIPE.
9790 (send_process): Reset SIGPIPE handler before reporting error.
9791
9792 2005-05-14 Nick Roberts <nickrob@snap.net.nz>
9793
9794 * emacs.c (syms_of_emacs): Fix doc string for system-type.
9795
9796 2005-05-13 Richard M. Stallman <rms@gnu.org>
9797
9798 * fileio.c (Ffind_file_name_handler): Handle lambda-exp as handler.
9799 (Finsert_file_contents): If we read 0 bytes from a special file,
9800 unlock the visited file if we locked it.
9801 (Fmake_symbolic_link, Frecent_auto_save_p): Doc fixes.
9802 (Ffile_exists_p, Ffile_symlink_p): Doc fixes.
9803
9804 2005-05-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9805
9806 * emacs.c (main) [MAC_OS8]: Call init_atimer before mac_term_init.
9807
9808 * keyboard.c (readable_events) [USE_TOOLKIT_SCROLL_BARS]:
9809 Regard toolkit scroll bar thumb drag events as squeezable and prevent
9810 redisplay from being paused by them.
9811
9812 * mac.c [!MAC_OSX]: Include keyboard.h and syssignal.h.
9813 [!MAC_OSX] (target_ticks): Remove variable.
9814 [!MAC_OSX] (check_alarm, pause, index): Remove functions.
9815 [!MAC_OSX && __MRC__] (sys_strftime): Likewise.
9816 [!MAC_OSX] (select): If fd 0 is not set in rfds and some input
9817 event occurs before timeout, behave as if the function were interrupted.
9818 [!MAC_OSX] (sigblock, sigsetmask, alarm): Simulate SIGALRM
9819 handling using Time Manager routines.
9820 [!MAC_OSX] (mac_atimer_task, mac_atimer_qlink, signal_mask):
9821 New variables.
9822 [!MAC_OSX] (mac_atimer_handler, set_mac_atimer, remove_mac_atimer)
9823 (setitimer): New functions.
9824
9825 * macfns.c, macmenu.c: Don't include signal.h.
9826
9827 * macterm.c [USE_TOOLKIT_SCROLL_BARS] (get_control_part_bounds):
9828 Rename from get_control_part_bound. All callers changed.
9829 (x_scroll_bar_clear): New function.
9830 (x_clear_frame): Use it.
9831 (XTset_vertical_scroll_bar): Don't call Draw1Control.
9832 (x_scroll_bar_handle_click): Change type of second argument from
9833 int to ControlPartCode.
9834 (check_alarm): Remove declaration.
9835 (XTread_socket) [!TARGET_API_MAC_CARBON]: Don't call it.
9836 (XTread_socket): Use ControlPartCode instead of SInt16.
9837
9838 2005-05-13 Nozomu Ando <nand@mac.com>
9839
9840 * unexmacosx.c: Include assert.h.
9841 (MACOSX_MALLOC_MULT16): New define.
9842 [MACOSX_MALLOC_MULT16] (ptr_in_unexec_regions): Determine whether
9843 ptr is in unexec regions by checking it is multiple of 16.
9844 (unexec_malloc_header_t): New typedef.
9845 (unexec_malloc, unexec_realloc, unexec_free): Store and use
9846 allocated size information in unexec_malloc_header.
9847
9848 2005-05-10 Richard M. Stallman <rms@gnu.org>
9849
9850 * xterm.c (noinclude): Add #undef.
9851
9852 * image.c, xfns.c, xmenu.c: Don't include signal.h.
9853
9854 2005-05-09 Juanma Barranquero <lekktu@gmail.com>
9855
9856 * fileio.c (Fexpand_file_name, Frename_file, Fadd_name_to_file)
9857 (Fmake_symbolic_link, Faccess_file, Frecent_auto_save_p):
9858 Doc fixes.
9859
9860 * dired.c (Ffile_name_completion): Make argument name
9861 match its use in docstring.
9862
9863 2005-05-08 Luc Teirlinck <teirllm@auburn.edu>
9864
9865 * eval.c (Fdefvaralias): Remove any pre-existing
9866 variable-documentation property of the alias.
9867
9868 2005-05-07 Thien-Thi Nguyen <ttn@gnu.org>
9869
9870 * xfns.c (start_hourglass): Do nothing when running on a tty.
9871
9872 2005-05-07 Juanma Barranquero <lekktu@gmail.com>
9873
9874 * fns.c (Fchar_table_range): Fix typos in docstring.
9875
9876 2005-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
9877
9878 * fns.c (Fchar_table_range): Yet Another Int/Lisp_Object Mixup.
9879
9880 2005-05-06 Eli Zaretskii <eliz@gnu.org>
9881
9882 * lread.c (Flocate_file_internal): Doc fix.
9883
9884 * Makefile.in (lisp, shortlisp): Add jka-cmpr-hook.elc.
9885
9886 2005-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9887
9888 * macselect.c (x_own_selection): Accept Lisp string as result of
9889 selection converter function.
9890 (x_clear_frame_selections): Don't call x-lost-selection-functions
9891 if Emacs is not owner of the selection.
9892 (Vmac_services_selection): Put variable and initialization in
9893 #ifdef MAC_OSX.
9894 (syms_of_macselect) [MAC_OSX]: Set default value of
9895 Vmac_services_selection to PRIMARY.
9896
9897 * macterm.c (toolkit_scroll_bar_interaction): Remove unused variable.
9898 (mac_handle_tool_bar_click): Remove unused function and declaration.
9899 [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback)
9900 (install_scroll_bar_timer, set_scroll_bar_timer)
9901 (control_part_code_to_scroll_bar_part, construct_scroll_bar_click)
9902 (get_control_part_bound, x_scroll_bar_handle_press)
9903 (x_scroll_bar_handle_release, x_scroll_bar_handle_drag)
9904 (x_set_toolkit_scroll_bar_thumb): New functions and declarations.
9905 [USE_TOOLKIT_SCROLL_BARS] (last_scroll_bar_part, scroll_bar_timer)
9906 (scroll_bar_timer_event_posted_p): New variables.
9907 [USE_TOOLKIT_SCROLL_BARS] (SCROLL_BAR_FIRST_DELAY)
9908 (SCROLL_BAR_CONTINUOUS_DELAY): New macros.
9909 (x_scroll_bar_create): Set control reference with NewControl.
9910 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
9911 Initialize track_top and track_height to nil.
9912 (x_scroll_bar_set_handle, x_scroll_bar_note_movement):
9913 Put functions in #ifndef USE_TOOLKIT_SCROLL_BARS.
9914 (XTset_vertical_scroll_bar): Don't make space between scroll bar
9915 and associated window.
9916 (XTset_vertical_scroll_bar) [MAC_OSX]: Get scroll bar area width
9917 from window config.
9918 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
9919 Set track_top and track_height to nil when scroll bar size is changed.
9920 Recalculate them if they are nil.
9921 (XTread_socket) [MAC_OSX]: Use control kind to determine if the
9922 clicked control is a scroll bar.
9923 (XTread_socket) [USE_TOOLKIT_SCROLL_BARS]: Use toolkit scroll bar
9924 event handler functions. Don't add modifiers to scroll bar click
9925 events. Call scroll bar release handler when window is deactivated.
9926 (mac_initialize): Remove unused code for X toolkit.
9927 (syms_of_macterm) [!USE_TOOLKIT_SCROLL_BARS]:
9928 Initialize Vx_toolkit_scroll_bars to nil.
9929
9930 * macterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
9931 New members track_top and track_height.
9932
9933 * sysselect.h [DARWIN || MAC_OSX]: Temporarily undefine
9934 init_process when including sys/select.h.
9935
9936 2005-05-05 Luc Teirlinck <teirllm@auburn.edu>
9937
9938 * eval.c (Fdefvaralias): Doc fix.
9939
9940 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
9941
9942 2005-05-05 Kim F. Storm <storm@cua.dk>
9943
9944 * buffer.c (init_buffer_once): Set cursor_in_non_selected_windows
9945 default value.
9946 (syms_of_buffer): Add default-cursor-in-non-selected-windows.
9947 Fix type of cursor-in-non-selected-windows.
9948
9949 2005-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9950
9951 * mac.c: #undef init_process so not to conflict with system headers.
9952
9953 2005-05-02 Richard M. Stallman <rms@gnu.org>
9954
9955 * buffer.c (syms_of_buffer): Define cursor-in-non-selected-windows.
9956
9957 * buffer.h (struct buffer): Add cursor_in_non_selected_windows slot.
9958
9959 * xdisp.c (Vcursor_in_non_selected_windows)
9960 (Qcursor_in_non_selected_windows): Vars deleted.
9961 (syms_of_xdisp): Don't initialize them.
9962 (get_window_cursor_type): Use cursor_in_non_selected_windows
9963 buffer slot.
9964
9965 2005-05-02 Kim F. Storm <storm@cua.dk>
9966
9967 * macros.c (executing_kbd_macro_index): Rename from
9968 executing_macro_index. All uses changed.
9969 (executing_kbd_macro_iterations): Rename from
9970 executing_macro_iterations. All uses changed.
9971 (executing_kbd_macro): Rename from executing_macro.
9972 All uses changed.
9973 (syms_of_macros): Rename Lisp var executing-macro-index to
9974 executing-kbd-macro-index.
9975
9976 * xdisp.c (move_it_in_display_line_to): Fix last change.
9977
9978 2005-05-01 Luc Teirlinck <teirllm@auburn.edu>
9979
9980 * xmenu.c (Fx_popup_menu): Doc fix.
9981
9982 * charset.c (syms_of_charset): Delete defsubr for Schars_in_region.
9983
9984 2005-05-02 Jason Rumney <jasonr@gnu.org>
9985
9986 * emacs.c (USAGE3, USAGE4): Keep strings below 2048 bytes.
9987
9988 2005-05-02 Nozomu Ando <nand@mac.com>
9989
9990 * sysselect.h: Fix typo.
9991
9992 2005-05-02 Nick Roberts <nickrob@snap.net.nz>
9993
9994 * charset.c (Fchars_in_region): Remove as obsolete.
9995
9996 2005-05-01 Kim F. Storm <storm@cua.dk>
9997
9998 * xdisp.c (move_it_in_display_line_to): Stop if we move beyond
9999 TO_CHARPOS. This may happen if last glyphs was an image or stretch
10000 glyph.
10001
10002 2005-05-01 Luc Teirlinck <teirllm@auburn.edu>
10003
10004 * dispnew.c (sit_for): Vexecuting_macro -> Vexecuting_kbd_macro.
10005
10006 2005-05-01 Richard M. Stallman <rms@gnu.org>
10007
10008 * xmenu.c [not HAVE_X_TOOLKIT] (xmenu_show):
10009 If user cancels the menu, quit unless FOR_CLICK.
10010
10011 * macros.c (Vexecuting_kbd_macro): Rename from Vexecuting_macro.
10012 All uses changed.
10013 (syms_of_macros): Define only executing-kbd-macro, not executing-macro.
10014 * keyboard.c: Change Vexecuting_macro to Vexecuting_kbd_macro.
10015 * macros.h (Vexecuting_kbd_macro): Declare instead of Vexecuting_macro.
10016 * commands.h (Vexecuting_kbd_macro): Likewise.
10017
10018 2005-05-01 Thien-Thi Nguyen <ttn@gnu.org>
10019
10020 * sysdep.c (get_frame_size) [VMS]: Use a fresh i/o channel.
10021
10022 2005-04-30 Richard M. Stallman <rms@gnu.org>
10023
10024 * fileio.c (Ffind_file_name_handler): Handle the `operations'
10025 property of the file name handler.
10026 (Qoperations): New variable.
10027 (syms_of_fileio): Initialize and staticpro it.
10028
10029 * xdisp.c (set_message_1): Delete xassert.
10030
10031 2005-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10032
10033 * mac.c: Don't include time.h. Include sysselect.h after systime.h.
10034
10035 * macfns.c (Fx_server_version): Add BLOCK_INPUT around Gestalt.
10036
10037 * macgui.h [HAVE_CARBON && MAC_OSX]: Don't undefine/define mktime
10038 before/after including Carbon.h if there is a working mktime.
10039
10040 2005-04-28 Kim F. Storm <storm@cua.dk>
10041
10042 * xfaces.c (resolve_face_name): Add arg SIGNAL_P. Calls changed.
10043 Fix cyclic alias check. If alias loop is detected, signal
10044 circular-list error if SIGNAL_P, and return Qdefault if !SIGNAL_P.
10045
10046 2005-04-28 Lute Kamstra <lute@gnu.org>
10047
10048 * eval.c (do_autoload): Record only autoloads in the autoload
10049 property of symbols.
10050
10051 2005-04-28 Nick Roberts <nickrob@snap.net.nz>
10052
10053 * emacs.c (USAGE1): Add --basic-display and --quick options.
10054
10055 2005-04-27 Kim F. Storm <storm@cua.dk>
10056
10057 * data.c (syms_of_data) Staticpro Qcyclic_variable_indirection.
10058
10059 2005-04-26 Richard M. Stallman <rms@gnu.org>
10060
10061 * window.c (Fsame_window_p, Fspecial_display_p): Doc fixes.
10062 (syms_of_window): Doc fixes.
10063
10064 * indent.c (Fvertical_motion): Undo previous change.
10065
10066 2005-04-26 Kenichi Handa <handa@m17n.org>
10067
10068 * fns.c (char_table_range): New function.
10069 (Fchar_table_range): Signal an error if characters in the range
10070 have inconsistent values. Don't check the parent.
10071
10072 2005-04-25 Kenichi Handa <handa@m17n.org>
10073
10074 * fontset.c (fontset_set): Fix previous change.
10075
10076 2005-04-24 Richard M. Stallman <rms@gnu.org>
10077
10078 * indent.c (Fvertical_motion): Bind fontification-functions to nil.
10079
10080 2005-04-24 Eli Zaretskii <eliz@gnu.org>
10081
10082 * regex.c (re_search_2, re_match_2_internal): Convert second arg
10083 of RE_TRANSLATE to int, to shut up GCC warnings.
10084
10085 * fileio.c (Fcopy_file): Doc fix.
10086 [MSDOS]: Fix call to emacs_open: buffer_file_type not defined and
10087 not needed.
10088
10089 2005-04-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10090
10091 * Makefile.in [HAVE_CARBON] (MAC_OBJ): Add macselect.o.
10092 (SOME_MACHINE_OBJECTS): Likewise.
10093 (mac.o): Depend on ccl.h.
10094 (macselect.o): New target.
10095
10096 * emacs.c (main) [MAC_OS8 || MAC_OSX && HAVE_CARBON]:
10097 Call syms_of_macselect.
10098
10099 * frame.c (Fdelete_frame) [MAC_OS]: Call x_clear_frame_selections.
10100
10101 * mac.c [!TARGET_API_MAC_CARBON]: Don't include charset.h or coding.h.
10102 (QCLIPBOARD): Remove variable.
10103 (syms_of_mac): Don't initialize it.
10104 (Fmac_paste_function, Fmac_cut_function, Fx_selection_exists_p):
10105 Remove functions.
10106 (syms_of_mac): Don't defsubr them.
10107 [TARGET_API_MAC_CARBON] (Qmime_charset, QNFD, QNFKD, QNFC, QNFKC)
10108 (QHFS_plus_D, QHFS_plus_C): New variables.
10109 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
10110 [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp)
10111 (cfstring_create_normalized): New functions.
10112 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Likewise.
10113 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
10114
10115 * macterm.c (handling_window_update, terminate_flag):
10116 Remove variables.
10117 (do_window_update, do_ae_quit_application, XTread_socket):
10118 Don't use them.
10119 (WNE_SLEEP_AT_SUSPEND, WNE_SLEEP_AT_RESUME): Don't define.
10120 [USE_CARBON_EVENTS && MAC_OSX] (mac_handle_service_event)
10121 (init_service_handler): Move to macselect.c. Remove declarations.
10122 [USE_CARBON_EVENTS && MAC_OSX] (init_service_handler): Add extern.
10123 (Qapplication, Qabout): New variables.
10124 (syms_of_mac): Initialize them.
10125 [USE_CARBON_EVENTS && MAC_OSX] (Qpreferences, Qservices, Qpaste)
10126 (Qperform): New variables.
10127 (syms_of_mac) [USE_CARBON_EVENTS && MAC_OSX]: Initialize them.
10128 (do_get_menus) [TARGET_API_MAC_CARBON]: Don't call AppendResMenu.
10129 (do_menu_choice): Unhighlight menu bar also when menu_id is 0.
10130 (mac_store_application_menu_event, init_menu_bar): New functions.
10131 [USE_CARBON_EVENTS] (mac_handle_command_event)
10132 (init_command_handler): New functions.
10133 (mac_handle_window_event): Return noErr on window update event.
10134 (do_ae_quit_application): Call mac_store_application_menu_event.
10135 (mac_initialize) [USE_CARBON_EVENTS]: Call init_command_handler
10136 and init_menu_bar.
10137
10138 * macterm.h (x_clear_frame_selections): Add extern.
10139
10140 * macselect.c: New file for selection processing on Mac OS.
10141
10142 2005-04-23 Richard M. Stallman <rms@gnu.org>
10143
10144 * fileio.c (Fcopy_file): New arg MUSTBENEW.
10145 (Frename_file): Pass new arg to Fcopy_file.
10146
10147 * window.c (window_size_fixed): Variable deleted.
10148 (syms_of_window): Initialize window-size-fixed to nil.
10149 But don't DEFVAR window_size_fixed.
10150
10151 2005-04-23 Andreas Schwab <schwab@suse.de>
10152
10153 * m/macppc.h (LD_SWITCH_MACHINE) [LINUX]: Don't define.
10154 (START_FILES, LIB_STANDARD) [LINUX && _ARCH_PPC64]: Override to
10155 use lib64 instead of lib.
10156 (_LP64) [_ARCH_PPC64]: Define if not defined.
10157
10158 2005-04-23 David Hunter <hunterd42@comcast.net> (tiny change)
10159
10160 * s/ms-w32.h (HAVE_PWD_H): Define.
10161
10162 2005-04-22 Kenichi Handa <handa@m17n.org>
10163
10164 * fns.c (copy_sub_char_table): Explicitly copy the default value
10165 of the sub-chartable.
10166
10167 * fontset.c (fontset_set): When a sub-chartable is created,
10168 explicitly sets the defalt value.
10169
10170 2005-04-22 Kim F. Storm <storm@cua.dk>
10171
10172 * fns.c (Fplist_get): Replace by Fsafe_plist_get.
10173 (Fsafe_plist_get): Rename to Fplist_get.
10174 (Fsafe_get): Remove, as Fget now uses safe Fplist_get.
10175 (defsubr): Remove defsubr for Fsafe_plist_get and Fsafe_get.
10176
10177 * lisp.h (Fsafe_plist_get, Fsafe_get): Remove EXFUN.
10178
10179 * xdisp.c (store_mode_line_string, produce_stretch_glyph)
10180 (note_mode_line_or_margin_highlight, note_mouse_highlight):
10181 Use Fplist_get instead of Fsafe_plist_get.
10182
10183 * xfaces.c (resolve_face_name): Use Fget instead of Fsafe_get.
10184
10185 2005-04-21 Miles Bader <miles@gnu.org>
10186
10187 * xdisp.c (dump_glyph_row): Don't display overlay_arrow_p field.
10188
10189 2005-04-20 Thien-Thi Nguyen <ttn@gnu.org>
10190
10191 * sysdep.c: Remove reference to defunct vms-pwd.h.
10192 * dired.c: Likewise. Also, for pwd.h, use HAVE_PWD_H, not !VMS.
10193 * editfns.c, fileio.c, filelock.c, sysdep.c, xrdb.c: Likewise.
10194
10195 * config.in: Regenerate.
10196
10197 2005-04-20 Kenichi Handa <handa@m17n.org>
10198
10199 * lisp.h (CHAR_TABLE_DEFAULT_SLOT_ASCII): New macro.
10200 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_CONTROL): New macro.
10201 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_GRAPHIC): New macro.
10202
10203 * alloc.c (make_sub_char_table): Argument changed to initial
10204 value of the slots.
10205
10206 * data.c (Faref): Handle special slots used as default values of
10207 ascii, eight-bit-control, eight-bit-control. Don't ignore a
10208 default value set for a group of characters.
10209 (Faset): Signal an error if IDXVAL is not a valid character code.
10210 Make a sub-chartable with correct initial value.
10211
10212 * fns.c (Fset_char_table_range): Don't set slots used as default
10213 values for ascii, eight-bit-control, eight-bit-graphic.
10214 Don't call Faref with charset-id.
10215 (Fset_char_table_default): Document how to treat normal character
10216 argument. Handle special slots used as default values of ascii,
10217 eight-bit-control, eight-bit-control. Make a sub chartable if
10218 necessary.
10219
10220 2005-04-20 Kenichi Handa <handa@m17n.org>
10221
10222 * search.c (boyer_moore): Fix previous change.
10223
10224 2005-04-19 Kim F. Storm <storm@cua.dk>
10225
10226 * xdisp.c (setup_for_ellipsis): Reset saved_face_id to use default
10227 face unless last visible char and first invisible char have the
10228 same face. Also use default face if saved_face_id is undefined.
10229
10230 2005-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10231
10232 * macgui.h (MacFontStruct): Remove member `fontname'. Add member
10233 `full_name'.
10234 [TARGET_API_MAC_CARBON] (MacFontStruct): Use type int for
10235 mac_scriptcode member.
10236
10237 * macterm.c (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): Remove variables.
10238 (syms_of_mac): Don't initialize them.
10239 (Vmac_charset_info_alist): New variable.
10240 (syms_of_mac): Defvar it.
10241 (create_text_encoding_info_alist): New function.
10242 (decode_mac_font_name, mac_to_x_fontname)
10243 (x_font_name_to_mac_font_name, init_font_name_table): Don't hard
10244 code the correspondence among XLFD charsets, Mac script codes, and
10245 Emacs coding systems. Use Vmac_charset_info_alist and result of
10246 create_text_encoding_info_alist instead.
10247 (init_font_name_table) [TARGET_API_MAC_CARBON]: Use Font Manager
10248 routines also on Mac OS Classic.
10249 (init_font_name_table) [!TARGET_API_MAC_CARBON]:
10250 Use add_font_name_table_entry.
10251 (mac_do_list_fonts): Regard 0 in XLFD scaleble fields as
10252 specified. Derive unspecified scalable fields from specified one.
10253 (x_list_fonts): Consider Valternate_fontname_alist.
10254 (kDefaultFontSize): Change value from 9 to 12.
10255 (XLoadQueryFont): Get decoded font family, font face, and charset
10256 from x_font_name_to_mac_font_name. Set full name of loaded font.
10257 (mac_unload_font): Free `full_name' member.
10258 (x_load_font): Don't try XLoadQueryFont if x_list_fonts returns
10259 NULL. Copy full_name member of struct MacFontStruct to that of
10260 struct font_info.
10261
10262 2005-04-19 Kim F. Storm <storm@cua.dk>
10263
10264 * xdisp.c (handle_stop): Set saved_face_id to current face if
10265 selective_display_ellipsis_p so ellipsis will be shown in same
10266 face as preceding text.
10267 (setup_for_ellipsis): Don't set saved_face_id here.
10268 (next_element_from_display_vector): Default to saved_face_id.
10269
10270 * fns.c (Fsafe_get): New function.
10271 (syms_of_fns): Defsubr it.
10272
10273 * lisp.h (Fsafe_get): EXFUN it.
10274
10275 * xfaces.c (resolve_face_name): Use Fsafe_get to avoid redisplay
10276 loops in case of bad face property lists. Limit number of face
10277 alias lookups to 10 (in case of face alias loops).
10278
10279 2005-04-18 Kim F. Storm <storm@cua.dk>
10280
10281 * dispextern.h (struct glyph_row): New member overlay_arrow_bitmap.
10282 It replaces the corresponding member from struct window, as a
10283 window may now show multiple overlay arrows.
10284 Remove member overlay_arrow_p, superseeded by overlay_arrow_bitmap.
10285
10286 * dispnew.c (row_equal_p, update_window_line, scrolling_window):
10287 Compare overlay_arrow_bitmap than overlay_arrow_p members.
10288
10289 * fringe.c (draw_fringe_bitmap): Use overlay_arrow_bitmap from row
10290 rather than from window.
10291 (update_window_fringes): Compare overlay_arrow_bitmap rather than
10292 overlay_arrow_p members.
10293 (Ffringe_bitmaps_at_pos): Return fringe overlay_arrow_bitmap name
10294 if not default.
10295
10296 * window.h (struct window): Remove member overlay_arrow_bitmap.
10297
10298 * window.c (make_window): Don't initialize overlay_arrow_bitmap.
10299
10300 * xdisp.c (overlay_arrow_string_or_property): Remove PBITMAP arg.
10301 Calls changed. Don't check for overlay-arrow-bitmap property here.
10302 (overlay_arrow_at_row): Remove PBITMAP arg. Instead, if left
10303 fringe is present, return Lisp integer for bitmap (or -1 for default).
10304 Fix value of overlay-arrow-bitmap property to be a symbol, use
10305 lookup_fringe_bitmap to parse it.
10306 (display_line): Change call to overlay_arrow_at_row. Store integer
10307 return value as overlay bitmap in row rather than window.
10308 Only show overlay arrow if row displays text, or if no other overlay
10309 arrow is seen in window (if overlay marker is at point-max).
10310
10311 2005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
10312
10313 * xfaces.c (realize_x_face) [!HAVE_WINDOW_SYSTEM]: Return NULL.
10314
10315 2005-04-18 Lute Kamstra <lute@gnu.org>
10316
10317 * lread.c (Vloads_in_progress): Static.
10318 * fns.c (Vloads_in_progress): Remove extern.
10319 (load_in_progress): Add extern.
10320 (Frequire): Use load_in_progress instead of Vloads_in_progress.
10321
10322 2005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
10323
10324 * xmenu.c (Fx_popup_menu): Initialize error_name to NULL.
10325
10326 2005-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10327
10328 * macterm.c (XTread_socket): Don't beep on keyboard input even if
10329 no frame is visible.
10330
10331 2005-04-16 Dan Nicolaescu <dann@ics.uci.edu>
10332
10333 * term.c (struct keys): Add support for shifted keys.
10334
10335 2005-04-16 Richard M. Stallman <rms@gnu.org>
10336
10337 * xdisp.c (with_echo_area_buffer): Delete WHICH < 0 case.
10338 (set_message): Call with_echo_area_buffer with WHICH = 0.
10339 (set_message_1): Erase the echo area buffer first thing.
10340 (echo_area_display): Don't clear echo_message_buffer.
10341
10342 2005-04-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10343
10344 * Makefile.in (mac.o): Depend on charset.h and coding.h.
10345
10346 * mac.c: Include charset.h and coding.h.
10347 [TARGET_API_MAC_CARBON] (Qutf_8): Remove extern.
10348 [TARGET_API_MAC_CARBON] (cfstring_create_with_string): New function.
10349 [TARGET_API_MAC_CARBON] (Fmac_get_preference): Use it.
10350
10351 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
10352
10353 * image.c [MAC_OSX] (image_load_quartz2d): Likewise.
10354
10355 * macterm.c (x_autoselect_window_p): Remove variable.
10356 (last_window): New variable.
10357 (XTreassert_line_highlight, x_change_line_highlight):
10358 Remove declarations.
10359 (mac_focus_changed, x_detect_focus_change): New functions and
10360 declarations.
10361 (XTextExtents16, front_emacs_window): Remove function.
10362 (mac_focus_frame): New function.
10363 (XTmouse_position, do_menu_choice, do_zoom_window, XTread_socket)
10364 (mac_check_for_quit_char): Use it instead of front_emacs_window.
10365 (x_scroll_bar_report_motion): Obtain window from control owner.
10366 (x_make_frame_invisible): Set window manager size hint.
10367 (do_mouse_moved): Remove function.
10368 (XTread_socket): Move its contents here. Generate select-window
10369 event on mouse movement if needed. Use x_detect_focus_change on
10370 activate/deactivate events. Don't deiconify frame or invalidate
10371 window rectangle when dnd items are dropped.
10372 Don't activate/deactivate root control.
10373 (frame_highlight, frame_unhighlight): Activate/deactivate root
10374 control here.
10375 (syms_of_macterm): Delete DEFVAR_BOOL for x_autoselect_window_p.
10376
10377 * macterm.h (cfstring_create_with_string) [TARGET_API_MAC_CARBON]:
10378 New extern.
10379
10380 2005-04-15 Luc Teirlinck <teirllm@auburn.edu>
10381
10382 * Makefile.in: Define new macro TOOLTIP_SUPPORT.
10383 (lisp): Use it.
10384 (SOME_MACHINE_LISP): Add tooltip.
10385
10386 2005-04-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10387
10388 * mac.c [!TARGET_API_MAC_CARBON]: Include MacLocales.h.
10389 Don't include TextEncodingConverter.h.
10390 (mac_system_script_code, Vmac_system_locale): New variables.
10391 (syms_of_mac): Defvar them.
10392 (mac_get_system_locale): New function.
10393
10394 * macfns.c (x_set_name, x_set_title) [!TARGET_API_MAC_CARBON]:
10395 Use ENCODE_SYSTEM to encode title bar string.
10396 (x_create_tip_frame): Apply 2005-03-18 change for xfns.c.
10397 (Fx_file_dialog) [TARGET_API_MAC_CARBON && !MAC_OSX]:
10398 Use CFStringGetSystemEncoding to get system default string encoding.
10399
10400 * macterm.c [!TARGET_API_MAC_CARBON]: Don't include
10401 TextEncodingConverter.h.
10402
10403 2005-04-13 Steven Tamm <steventamm@mac.com>
10404
10405 * macterm.c (syms_of_macterm): Remove redundant definition of
10406 mac-pass-control-to-system.
10407
10408 2005-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
10409
10410 * window.c (Fset_window_configuration): Be careful when you choose
10411 among several possible points for the new_current_buffer.
10412
10413 2005-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10414
10415 * keyboard.c (poll_for_input) [SYNC_INPUT]: Don't call
10416 poll_for_input_1. Set interrupt_input_pending to 1 instead.
10417 (Qlanguage_change) [MAC_OS]: New variable.
10418 (syms_of_keyboard) [MAC_OS]: Intern and staticpro it.
10419 (kbd_buffer_get_event) [MAC_OS]: Make event for LANGUAGE_CHANGE_EVENT.
10420
10421 * macterm.c (mac_keyboard_text_encoding)
10422 (current_mac_keyboard_text_encoding): Remove variables.
10423 (XTread_socket): Store language-change event if keyboard script change
10424 is detected. Don't convert input to `mac_keyboard_text_encoding'.
10425 (syms_of_macterm): Delete DEFVAR_INT for mac-keyboard-text-encoding.
10426
10427 * termhooks.h (enum event_kind) [MAC_OS]: Add LANGUAGE_CHANGE_EVENT.
10428
10429 2005-04-10 Richard M. Stallman <rms@gnu.org>
10430
10431 * emacs.c (standard_args): Rename --bare-bones to --quick.
10432 Add -D aka --basic-display.
10433
10434 * buffer.c (Fmake_indirect_buffer): Clear out some local variables.
10435
10436 2005-04-09 Richard M. Stallman <rms@gnu.org>
10437
10438 * keymap.c (where_is_internal): Convert a string used as event type
10439 into "(any string)".
10440
10441 * lread.c (Vloads_in_progress): Not static.
10442 * fns.c (Vloads_in_progress): Add extern.
10443 (Frequire): Don't do LOADHIST_ATTACH if Vloads_in_progress is nil.
10444
10445 2005-04-09 Thien-Thi Nguyen <ttn@surf.glug.org>
10446
10447 * dispnew.c (mirror_line_dance): Avoid crash if W2 is null.
10448
10449 2005-04-09 Lute Kamstra <lute@gnu.org>
10450
10451 * print.c (PRINTPREPARE): Check if the marker PRINTCHARFUN is
10452 within the accessible part of the buffer.
10453
10454 2005-04-09 Kim F. Storm <storm@cua.dk>
10455
10456 * lread.c (readevalloop): Add args START and END as region in
10457 current buffer to read. Callers changed.
10458 When specified, narrow to this region only when reading,
10459 not during eval. Track next point to read from during eval.
10460 Also restore point to "real" buffer position before eval.
10461 (Feval_region): Don't save excursion and restriction here, and
10462 don't narrow to region. Just pass region to readevalloop.
10463 Note: Point is now preserved even when PRINTFLAG is nil.
10464
10465 2005-04-08 Kim F. Storm <storm@cua.dk>
10466
10467 * xdisp.c (syms_of_xdisp): Init overlay-arrow-string to "=>".
10468
10469 2005-04-06 Kim F. Storm <storm@cua.dk>
10470
10471 * emacs.c (standard_args): Add -Q, --bare-bones, -bare-bones.
10472
10473 2005-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10474
10475 * mac.c (cfdate_to_lisp): Add `const' for variable `epoch_gdate'.
10476 (Fmac_get_preference): Doc fix.
10477
10478 * macfns.c (Fx_create_frame, x_create_tip_frame):
10479 Add "fontset-mac" to fallback font/fontsets.
10480
10481 2005-04-04 Kim F. Storm <storm@cua.dk>
10482
10483 * alloc.c (Fgarbage_collect): Call CHECK_CONS_LIST before and after gc.
10484
10485 * eval.c (Ffuncall): Always call CHECK_CONS_LIST on entry.
10486 Call it again after autoload.
10487
10488 2005-04-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10489
10490 * alloc.c (allocate_string_data): Call BLOCK_INPUT before calling
10491 mallopt.
10492
10493 * ralloc.c (r_alloc_init): Ditto.
10494
10495 2005-04-01 Kenichi Handa <handa@m17n.org>
10496
10497 * lisp.h (Vascii_upcase_table, Vascii_canon_table)
10498 (Vascii_eqv_table): Extern them.
10499
10500 * casetab.c (set_case_table): If standard is nonzero, setup
10501 Vascii_upcase_table, Vascii_canon_table, and Vascii_eqv_table.
10502
10503 * search.c (looking_at_1): Use current_buffer->case_canon_table,
10504 not DOWNCASE_TABLE.
10505 (string_match_1): Likewise.
10506 (fast_c_string_match_ignore_case): Use Vascii_canon_table, not
10507 Vascii_downcase_table.
10508 (fast_string_match_ignore_case): Likewise.
10509 (search_buffer): Fix checking of boyer-moore usability.
10510 (boyer_moore): Calculate translate_prev_byte1/2/3 in advance.
10511 No need of tranlating characters in PAT. Fix calculation of
10512 simple_translate.
10513
10514 2005-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
10515
10516 * xterm.c [HAVE_XAW3D]: Include ThreeD.h for XtNbeNiceToColormap.
10517 (x_create_toolkit_scroll_bar): Test XtNbeNiceToColormap before using it.
10518 Use XtNtopShadowPixel and XtNbottomShadowPixel.
10519 (x_set_toolkit_scroll_bar_thumb): Remove ugly old hack that didn't
10520 really work and that breaks with some versions of Xaw3d.
10521
10522 2005-03-31 Kenichi Handa <handa@m17n.org>
10523
10524 * coding.c (syms_of_coding): Fix previous change.
10525
10526 2005-03-30 Stefan Monnier <monnier@iro.umontreal.ca>
10527
10528 * fileio.c (search_embedded_absfilename): Fix last change.
10529
10530 2005-03-25 Kenichi Handa <handa@m17n.org>
10531
10532 * coding.c (syms_of_coding): Suggest to use set-coding-category in
10533 the docstring of coding-category-list.
10534
10535 2005-03-31 Kim F. Storm <storm@cua.dk>
10536
10537 * keyboard.c (Qmouse_fixup_help_message): New var.
10538 (syms_of_keyboard): Intern and staticpro it.
10539 (show_help_echo): Apply mouse-fixup-help-message to help string.
10540
10541 2005-03-30 Kim F. Storm <storm@cua.dk>
10542
10543 * xdisp.c (display_line): Allow multiple overlay arrows in window.
10544
10545 2005-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
10546
10547 * fileio.c (Fexpand_file_name): Use IS_DEVICE_SEP.
10548 (file_name_absolute_p): New fun, extracted from Ffile_name_absolute_p.
10549 (Ffile_name_absolute_p): Use it.
10550 (search_embedded_absfilename): New fun, extracted from
10551 Fsubstitute_in_file_name. Use file_name_absolute_p.
10552 Free the pw data after use.
10553 (Fsubstitute_in_file_name): Use it.
10554 After cutting a prefix, re-check file-name-handler.
10555
10556 2005-03-26 Lennart Borgman <lennart.borgman.073@student.lu.se>
10557
10558 * w32term.h (x_output): Add focus_state.
10559
10560 * w32term.c (x_focus_changed, w32_detect_focus_change): New functions.
10561 (w32_read_socket) <WM_SETFOCUS>: Call w32_detect_focus_change.
10562
10563 2005-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
10564
10565 * minibuf.c (Fminibuffer_complete_and_exit, Fself_insert_and_exit):
10566 Use Fexit_minibuffer.
10567 (Fexit_minibuffer): Mark it as no-return, deactivate the mark.
10568
10569 2005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
10570
10571 * dired.c (Ffile_attributes): Add a missing gcpro.
10572
10573 * alloc.c (make_number): The arg can be bigger than `int'.
10574 * lisp.h (make_number): Make prototype more precise.
10575
10576 * process.c, dired.c (Vfile_name_coding_system)
10577 (Vdefault_file_name_coding_system):
10578 * callproc.c (Vdoc_file_name, Vfile_name_coding_system)
10579 (Vdefault_file_name_coding_system): Remove unused declarations.
10580
10581 2005-03-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10582
10583 * xmenu.c (create_and_show_popup_menu): Just remove menu and return
10584 if it failed to pop up (Gnome "show pointer on ctrl" option makes
10585 menus fail to pop up).
10586
10587 2005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
10588
10589 * xdisp.c (get_next_display_element): Also use `\ ' & `\-' for latin-9.
10590 Just prepend a backslash without replacing the NBSP by an SPC.
10591
10592 2005-03-22 Kim F. Storm <storm@cua.dk>
10593
10594 * xfaces.c (lookup_derived_face): Add arg SIGNAL_P.
10595 * dispextern.h (lookup_derived_face): Fix prototype.
10596 * msdos.c (XMenuActivate): Fix call to lookup_derived_face.
10597
10598 * xdisp.c (handle_single_display_spec): Derive left-fringe and
10599 right-fringe face from fringe face.
10600
10601 * fringe.c (draw_fringe_bitmap_1, Fset_fringe_bitmap_face):
10602 Derive face from fringe face.
10603
10604 2005-03-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10605
10606 * xrdb.c (x_load_resources): Undo previous change (2005-03-18).
10607
10608 2005-03-22 David Kastrup <dak@gnu.org>
10609
10610 * textprop.c (Fnext_char_property_change)
10611 (Fprevious_char_property_change): Allow marker as limit.
10612 (Fnext_single_char_property_change)
10613 (Fprevious_single_char_property_change): Check that limit is a
10614 number in strings.
10615 (Fnext_single_char_property_change): Coerce position to integer.
10616 (Fprevious_single_char_property_change): Same here.
10617
10618 2005-03-21 Thien-Thi Nguyen <ttn@gnu.org>
10619
10620 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Define if undefined.
10621
10622 2005-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
10623
10624 * frame.c (Fignore_event): Remove.
10625 (syms_of_frame): Don't defsubr it.
10626
10627 * keyboard.c (keys_of_keyboard): Just use `ignore' instead of the
10628 redundant `ignore-event'.
10629
10630 2005-03-19 Eli Zaretskii <eliz@gnu.org>
10631
10632 * unexec.c (write_segment, unexec): Move these functions to avoid
10633 forward references (which cause errors with "gcc -gcoff").
10634
10635 2005-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10636
10637 * xfns.c (x_create_tip_frame): Remove setting of Vx_resource_name so
10638 that it doesn't become "tooltip". The specbind is enough.
10639
10640 * xrdb.c (x_load_resources): Use different char *helv when I18N
10641 is present.
10642
10643 2005-03-17 Kenichi Handa <handa@m17n.org>
10644
10645 * coding.c (syms_of_coding): Docstring of coding-category-list fixed.
10646
10647 2005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
10648
10649 * xfaces.c (x_update_menu_appearance) [HAVE_X_I18N]:
10650 Use xic_create_fontsetname even for non-Motif menus.
10651 Don't forget to free the fontsetname.
10652
10653 * xfns.c (xic_create_fontsetname): Add a final catch-all font pattern.
10654
10655 2005-03-17 Richard M. Stallman <rms@gnu.org>
10656
10657 * dispnew.c (mirror_line_dance): Set W2 according to FRAME_FROM.
10658
10659 * fileio.c (Fcopy_file, Frename_file, Fadd_name_to_file)
10660 (Fmake_symbolic_link): Use G to read the new file name.
10661
10662 * callint.c (Finteractive): Document G option.
10663 (Fcall_interactively): Implement G option.
10664
10665 * buffer.c (buffer_lisp_local_variables): New function,
10666 broken out from Fbuffer_local_variables.
10667 (clone_per_buffer_values): Use buffer_lisp_local_variables.
10668
10669 2005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
10670
10671 * xfns.c (xic_create_fontsetname): Add `motif' argument.
10672 Always return a freshly allocated string.
10673 (xic_create_xfontset): Adjust call.
10674
10675 * xfaces.c (x_update_menu_appearance) [USE_MOTIF]:
10676 Use xic_create_fontsetname to create a fontset so utf-8 locales work.
10677 (dump_realized_face): Fix warning.
10678
10679 * emacs.c (Fkill_emacs): YAILOM.
10680
10681 * frame.c (Fignore_event): Fix ancient obscure C-u handling bug.
10682
10683 2005-03-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10684
10685 * mac.c (HASHKEY_TERMINAL): Remove.
10686 (HASHKEY_MAX_NID): New macro.
10687 (xrm_q_get_resource_1): Rename from xrm_q_get_resource. Add extra
10688 argument.
10689 (xrm_q_get_resource): Call xrm_q_get_resource_1 with extra argument.
10690 (xrm_create_database, xrm_q_put_resource)
10691 (xrm_merge_string_database, xrm_q_get_resource_1)
10692 (xrm_q_get_resource): Change resource database representation so
10693 that it may not use multiple hash tables for a single database.
10694 [TARGET_API_MAC_CARBON] (xrm_cfproperty_list_to_value): YAILOM.
10695
10696 2005-03-16 Stefan Monnier <monnier@iro.umontreal.ca>
10697
10698 * xmenu.c (ENCODE_MENU_STRING) [HAVE_X_I18N]: Use ENCODE_SYSTEM.
10699
10700 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [!WINDOWSNT]: Use the
10701 locale-coding-system, as was already done for WINDOWSNT.
10702
10703 * keyboard.c (read_char): Only do the 7-bit-meta -> 27-bit-meta
10704 translation for chars in the 0-255 range.
10705
10706 2005-03-16 Lute Kamstra <lute@gnu.org>
10707
10708 * floatfns.c (Ffloor): Doc fix.
10709
10710 2005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10711
10712 * mac.c: Include macterm.h instead of directly including Carbon.h.
10713 [TARGET_API_MAC_CARBON] (Qstring, Qnumber, Qboolean, Qdate, Qdata)
10714 (Qarray, Qdictionary): New variables.
10715 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
10716 [TARGET_API_MAC_CARBON] (Qutf_8): Add extern.
10717 [TARGET_API_MAC_CARBON] (DECODE_UTF_8): New macro.
10718 [TARGET_API_MAC_CARBON] (struct cfdict_context): New struct used
10719 in callback for CFDictionaryApplyFunction.
10720 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
10721 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
10722 (cfobject_desc_to_lisp, cfdictionary_add_to_list)
10723 (cfdictionary_puthash, cfproperty_list_to_lisp): New functions.
10724 [TARGET_API_MAC_CARBON] (Fmac_get_preference): New function.
10725 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
10726 (P, LOOSE_BINDING, SINGLE_COMPONENT, HASHKEY_TERMINAL): New macro.
10727 (skip_white_space, parse_comment, parse_include_file)
10728 (parse_binding, parse_component, parse_resource_name, parse_value)
10729 (parse_resource_line, xrm_create_database, xrm_q_put_resource)
10730 (xrm_merge_string_database, xrm_q_get_resource, xrm_get_resource)
10731 (xrm_cfproperty_list_to_value, xrm_get_preference_database):
10732 New functions.
10733
10734 * macfns.c (mac_get_rdb_resource): Remove function.
10735 (x_get_string_resource): Use xrm_get_resource.
10736
10737 * macgui.h (XrmDatabase): Typedef to Lisp_Object.
10738
10739 * macterm.c (x_list_fonts): FONT-LIST-CACHE is now cadr part of
10740 name_list_element.
10741 (mac_make_rdb): Create resource database from preferences and
10742 argument string.
10743 (mac_term_init): Save resource database to cddr part of
10744 name_list_element.
10745
10746 * macterm.h (xrm_merge_string_database, xrm_get_resource)
10747 (xrm_get_preference_database): Add externs.
10748 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
10749 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
10750 (cfobject_desc_to_lisp, cfproperty_list_to_lisp): Likewise.
10751
10752 * process.c (init_process): Change `#ifdef DARWIN' to `#if
10753 defined (DARWIN) || defined (MAC_OSX)'.
10754
10755 * s/darwin.h (DARWIN): Don't define.
10756
10757 2005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10758
10759 * macfns.c (Qhyper, Qsuper, Qmeta, Qalt, Qctrl, Qcontrol, Qshift):
10760 Remove unused variables.
10761 (syms_of_macfns): Don't initialize them. Likewise for
10762 Qface_set_after_frame_default. Defvar and initialize
10763 Vx_window_horizontal_drag_shape.
10764 (x_set_mouse_color): Change mouse pointer shape.
10765 (mac_window) [!MAC_OSX]: Create root control.
10766 (Fx_create_frame): Remove initializations of mouse pointer shapes.
10767 (hourglass_started): New function (from xfns.c).
10768 (start_hourglass, cancel_hourglass): Put function body in #ifdef
10769 MAC_OSX.
10770 (show_hourglass) [TARGET_API_MAC_CARBON]: Create progress
10771 indicator for each non-tooltip frame if needed, and show it.
10772 (hide_hourglass) [TARGET_API_MAC_CARBON]: Hide progress indicators.
10773
10774 * macgui.h [!TARGET_API_MAC_CARBON]: Include Appearance.h and
10775 Controls.h. Use ThemeCursor instead of CursHandle.
10776
10777 * macterm.c (activate_scroll_bars, deactivate_scroll_bars):
10778 Remove functions and declarations.
10779 (mac_set_colors): Take argument for saving background color.
10780 All callers changed.
10781 (XDrawLine, XClearArea, mac_draw_bitmap, XFillRectangle)
10782 (mac_draw_rectangle, mac_draw_string_common): Save and Restore
10783 background color.
10784 (x_update_end, mac_do_track_drag): Don't reset background color.
10785 (mac_define_frame_cursor) [!TARGET_API_MAC_CARBON]:
10786 Use SetThemeCursor.
10787 (x_set_window_size) [TARGET_API_MAC_CARBON]: Move progress
10788 indicator control to the upper-right corner of the window.
10789 (arrow_cursor) [!TARGET_API_MAC_CARBON]: Remove variable.
10790 (do_init_managers) [!TARGET_API_MAC_CARBON]: Don't initialize it.
10791 (do_window_update): Update controls after updating content area.
10792 (mac_handle_window_event): Remove unused extern.
10793 (XTread_socket): Check both control handle and control part code
10794 to determine whether a scroll bar is clicked. Activate/deactivate
10795 root control instead of contained scroll bar controls.
10796 (make_mac_terminal_frame): Use ThemeCursor constants.
10797
10798 * macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]:
10799 New member hourglass_control.
10800 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): New defines.
10801 (activate_scroll_bars, deactivate_scroll_bars): Remove declarations.
10802
10803 2005-03-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10804
10805 * macterm.c (keycode_to_xkeysym_table): Change mapping so that it
10806 coincides with that in Apple X11 except `clear', `enter' on
10807 laptops, and fn + `enter' on laptops.
10808
10809 2005-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
10810
10811 * xmenu.c (ENCODE_MENU_STRING): Explicitly use string_make_unibyte.
10812 (list_of_panes, list_of_items, Fx_popup_menu): Use XCAR/XCDR.
10813 (digest_single_submenu, xmenu_show): Use ENCODE_MENU_STRING.
10814
10815 * xfns.c (xic_defaut_fontset): New constant.
10816 (xic_create_fontsetname): New function.
10817 Extracted from create_frame_xic. Try to generate a slightly
10818 better fontset.
10819 (xic_create_xfontset): Use it.
10820 (create_frame_xic): Simplify.
10821
10822 2005-03-11 Stefan Monnier <monnier@iro.umontreal.ca>
10823
10824 * fileio.c (Fmake_symbolic_link): Fix last change.
10825
10826 2005-03-11 Richard M. Stallman <rms@gnu.org>
10827
10828 * fileio.c (Frename_file, Fadd_name_to_file)
10829 (Fmake_symbolic_link): If NEWNAME or LINKNAME is a directory,
10830 expand the basename of FILE relative to it.
10831
10832 2005-03-11 Kenichi Handa <handa@m17n.org>
10833
10834 * fileio.c (Finsert_file_contents): Call Fcheck_coding_system
10835 before calling setup_coding_system so that autoloading of a coding
10836 system work.
10837
10838 2005-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10839
10840 * xfns.c (hourglass_started): New function.
10841
10842 * dispextern.h: Declare hourglass_started.
10843
10844 * keyboard.c (Fexecute_extended_command): Restart hourglass
10845 after call to Fcompleting_read if already started.
10846
10847 * gtkutil.c (xg_update_scrollbar_pos): Call x_sync so that the
10848 GTK main loop is entered in xterm.c, thus doing the redraw.
10849
10850 2005-03-10 Kim F. Storm <storm@cua.dk>
10851
10852 * xdisp.c (pos_visible_p): Fix X value in last line of buffer.
10853
10854 2005-03-08 Kenichi Handa <handa@m17n.org>
10855
10856 * frame.c (x_set_font): Call set_default_ascii_font if an
10857 available font is found.
10858
10859 * fontset.c (set_default_ascii_font): New function.
10860 (syms_of_fontset): Don't set FONTSET_ASCII (Vdefault_fontset) here.
10861
10862 * fontset.h (set_default_ascii_font): Extern it.
10863
10864 2005-03-07 Kim F. Storm <storm@cua.dk>
10865
10866 * xdisp.c (CLEAR_IMAGE_CACHE_COUNT): New const.
10867 (clear_image_cache_count): New var.
10868 (redisplay_internal): Don't clear face and image caches in the
10869 middle of redisplay; do it afterwards.
10870
10871 * blockinput.h (TOTALLY_UNBLOCK_INPUT): Avoid dangling else.
10872
10873 * xdisp.c (notice_overwritten_cursor): Check that phys_cursor.vpos
10874 is valid. If not, clear phys_cursor_on_p and return.
10875
10876 2005-03-07 Andreas Schwab <schwab@suse.de>
10877
10878 * blockinput.h (UNBLOCK_INPUT_TO): Always call UNBLOCK_INPUT.
10879
10880 2005-03-06 Richard M. Stallman <rms@gnu.org>
10881
10882 * keyboard.c (Ftop_level): Let Fthrow deal with UNBLOCK_INPUT.
10883
10884 * eval.c (unwind_to_catch): Use UNBLOCK_INPUT_TO.
10885 (Feval, Ffuncall): Use CHECK_CONS_LIST.
10886
10887 * lisp.h (CHECK_CONS_LIST): New macro (two definitions).
10888
10889 * blockinput.h (UNBLOCK_INPUT_TO): New macro.
10890 (TOTALLY_UNBLOCK_INPUT): Handle a pending signal if any.
10891
10892 2005-03-05 Juri Linkov <juri@jurta.org>
10893
10894 * emacs.c (USAGE1): Replace Info node name "command arguments"
10895 with "emacs invocation".
10896 (USAGE3): Fix usage of `--color=MODE' which actually doesn't
10897 allow arguments `--color' and `MODE' to be separated by space.
10898 Add --no-blinking-cursor, -nbc.
10899 (standard_args): Add -nbc, --no-blinking-cursor.
10900
10901 2005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
10902
10903 * s/vms.h: Define NO_HYPHENS_IN_FILENAMES.
10904 * s/vms4-4.h, s/vms5-5.h: Undefine NO_HYPHENS_IN_FILENAMES.
10905 * fileio.c (Fexpand_file_name) [VMS]:
10906 Use NO_HYPHENS_IN_FILENAMES, not VMS4_4.
10907 * doc.c (munge_doc_file_name) [VMS]: Likewise.
10908 (Fsnarf_documentation): Call munge_doc_file_name.
10909
10910 2005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
10911
10912 * s/vms.h (FILE_SYSTEM_CASE): New macro.
10913 * fileio.c (Fexpand_file_name) [VMS]: Don't upcase the name
10914 "manually"; this is now handled generally via FILE_SYSTEM_CASE.
10915
10916 2005-03-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10917
10918 * emacs.c (main): Change `#ifdef HAVE_CARBON' to `#if
10919 defined (MAC_OSX) && defined (HAVE_CARBON)'.
10920
10921 * image.c [!MAC_OSX && TARGET_API_MAC_CARBON]: Include QuickTime.h.
10922
10923 * mac.c [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
10924 [!MAC_OSX] (select) [TARGET_API_MAC_CARBON]: Use ReceiveNextEvent.
10925 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): New functions.
10926 (mac_clear_font_name_table): Move extern to macterm.h.
10927
10928 * macfns.c (install_window_handler): Move extern to macterm.h.
10929 (Fx_file_dialog): Check STRINGP (default_filename) to see it is
10930 valid. Don't check !NILP (dir) because it is already checked with
10931 CHECK_STRING.
10932 (Fx_file_dialog) [!MAC_OSX]: Use FSSpec instead of FSRef for
10933 specifying the default location and obtaining the selected filename.
10934
10935 * macgui.h [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
10936
10937 * macmenu.c [TARGET_API_MAC_CARBON]: Don't include headers that
10938 are included via Carbon.h.
10939
10940 * macterm.c [TARGET_API_MAC_CARBON && !MAC_OSX]:
10941 Define USE_CARBON_EVENTS to 1.
10942 (qd) [__MRC__ && TARGET_API_MAC_CARBON]: Don't declare.
10943 (x_free_frame_resources): Call remove_window_handler for
10944 non-tooltip windows.
10945 [TARGET_API_MAC_CARBON]: Don't include headers that are included
10946 via Carbon.h.
10947 [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
10948 (mac_do_receive_dragUPP): New variables.
10949 (mac_handle_service_event, init_service_handler): Put declarations
10950 and definitions in #ifdef MAC_OSX.
10951 (install_window_handler) [TARGET_API_MAC_CARBON]: Create UPPs for
10952 drag-and-drop handler functions and register them.
10953 (remove_window_handler): New function.
10954 (do_ae_open_documents, mac_do_receive_drag) [!MAC_OSX]:
10955 Use fsspec_to_posix_pathname.
10956 (main): Change #if !TARGET_API_MAC_CARBON to #ifdef MAC_OS8.
10957 (XTread_socket) [!MAC_OSX]: Don't pass keyboard events to TSM.
10958 [MAC_OS8] (make_mac_terminal_frame) [TARGET_API_MAC_CARBON]:
10959 Set default cursors.
10960 (mac_initialize) [USE_CARBON_EVENTS && !MAC_OSX]: Don't call
10961 init_service_handler or init_quit_char_handler.
10962 (mac_initialize) [!MAC_OSX]: Don't call MakeMeTheFrontProcess.
10963
10964 * macterm.h (install_window_handler, remove_window_handler)
10965 (posix_pathname_to_fsspec, fsspec_to_posix_pathname)
10966 (mac_clear_font_name_table): New externs.
10967
10968 2005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
10969
10970 * fileio.c (FILE_SYSTEM_CASE): Define macro if not already defined.
10971 (Ffile_name_directory): Use FILE_SYSTEM_CASE unconditionally.
10972 (Fexpand_file_name): Likewise.
10973
10974 2005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
10975
10976 * emacs.c (Fkill_emacs): Use EXIT_SUCCESS;
10977 no longer special-case VMS. Add bogus return value.
10978
10979 2005-03-02 Kim F. Storm <storm@cua.dk>
10980
10981 * dispextern.h (XASSERTS): Define to 0 if not already defined.
10982 (xassert) [!XASSERTS]: Define dummy version.
10983
10984 2005-03-02 Kim F. Storm <storm@cua.dk>
10985
10986 * xdisp.c (redisplay_window): YABX (yet another bogus xassert).
10987 Reported by David Kastrup.
10988
10989 2005-03-01 Ehud Karni <ehud@unix.mvs.co.il>
10990
10991 * xdisp.c (get_next_display_element): Fix control and escape
10992 glyph from display vector.
10993
10994 2005-03-01 Stefan Monnier <monnier@iro.umontreal.ca>
10995
10996 * keyboard.c (Fposn_at_x_y): Check integerness of X and Y.
10997
10998 2005-02-27 Richard M. Stallman <rms@gnu.org>
10999
11000 * xdisp.c (fast_find_position): Rename END to BEG.
11001 (syms_of_xdisp) <menu-bar-update-hook>: Doc fix.
11002
11003 2005-02-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11004
11005 * gtkutil.c (xg_resize_outer_widget): Remove unneeded call to
11006 gtk_window_resize and x_wm_set_size_hint.
11007
11008 2005-02-25 Kim F. Storm <storm@cua.dk>
11009
11010 * dispextern.h (OVERLAY_STRING_CHUNK_SIZE): Increase from 3 to 16.
11011
11012 * xdisp.c (init_from_display_pos): Don't read past end of
11013 it->overlay_strings array.
11014
11015 2005-02-25 Stephan Stahl <stahl@eos.franken.de> (tiny change)
11016
11017 * buffer.c (syms_of_buffer): Fix typo.
11018
11019 2005-02-23 Lute Kamstra <lute@gnu.org>
11020
11021 * buffer.c (Foverlay_buffer): Doc fix.
11022
11023 2005-02-22 Kim F. Storm <storm@cua.dk>
11024
11025 * minibuf.c (Ftry_completion, Fall_completions): Allow both string
11026 and symbol keys in alists and hash tables.
11027
11028 * xdisp.c (fast_find_position): Fix search for start of overlay.
11029
11030 2005-02-21 Kim F. Storm <storm@cua.dk>
11031
11032 * window.c (window_scroll_pixel_based): When scrolling backwards,
11033 handle partial visible line at end of window even when we hit PT.
11034
11035 2005-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
11036
11037 * keymap.h: Declare Fcurrent_active_maps, used in doc.c.
11038
11039 2005-02-21 Kim F. Storm <storm@cua.dk>
11040
11041 * xdisp.c (move_it_vertically_backward): Eliminate two xasserts.
11042 I think those asserts are bogus if buffer contains invisible text
11043 or images.
11044
11045 2005-02-21 David Kastrup <dak@gnu.org>
11046
11047 * gtkutil.c (xg_create_frame_widgets): UNBLOCK_INPUT on error.
11048
11049 2005-02-20 Kim F. Storm <storm@cua.dk>
11050
11051 * xdisp.c (pos_visible_p): Be sure to move to the specified
11052 position. Always get the full ascent / descent of the
11053 corresponding row, to return reliable rtop and rbot values.
11054 (back_to_previous_visible_line_start): Fix 2005-01-18 change.
11055 Must look one character back, as back_to_previous_line_start
11056 returns position after the newline.
11057 (move_it_vertically_backward): Fix heuristic for when to move further
11058 back in case line_height * 2/3 is larger than window height.
11059 (cursor_row_fully_visible_p): Rename make_cursor_line_fully_visible_p
11060 as it does not do anything anymore. Add arg current_matrix_p to
11061 use current matrix rather than desired matrix when set.
11062 (try_cursor_movement): Don't scroll to make cursor row fully
11063 visible if cursor didn't move. This avoids unexpected recentering
11064 in case of blinking cursor or accepting process output.
11065 Use current matrix to check cursor row visibility.
11066 (redisplay_window): Fix whether to recenter or move to top in case
11067 cursor line is taller than window height.
11068 (find_first_unchanged_at_end_row): Stop search if we reach a row
11069 which not enabled (instead of abort).
11070
11071 2005-02-18 Kim F. Storm <storm@cua.dk>
11072
11073 * xfaces.c (Finternal_set_lisp_face_attribute): Allow :color property
11074 to be nil in a :box attribute value list; customize prints that
11075 as lisp value when no box color is specified.
11076
11077 * .gdbinit (pitx, pit): Pretty print display iterator.
11078 (prowx, prow): Pretty print glyph row.
11079 (pcursorx, pcursor): Pretty print a window cursor.
11080 (pwinx, pwin): Pretty print struct window.
11081
11082 2005-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
11083
11084 * alloc.c (BLOCK_BYTES): Harmless typo.
11085
11086 2005-02-17 Andreas Schwab <schwab@suse.de>
11087
11088 * xfns.c (hack_wm_protocols): Use correct type for last parameter
11089 of XGetWindowProperty to avoid aliasing issues.
11090 (Fx_window_property): Likewise.
11091
11092 * xselect.c (Fx_disown_selection_internal): Use union of struct
11093 input_event and struct selection_input_event to avoid aliasing issues.
11094
11095 * xterm.c (handle_one_xevent): Use union of struct input_event and
11096 struct selection_input_event to avoid aliasing issues.
11097 (SET_SAVED_MENU_EVENT): Adapt reference to inev.
11098
11099 2005-02-17 Kim F. Storm <storm@cua.dk>
11100
11101 * dispextern.h (enum it_method): New enum.
11102 (GET_FROM_*): Its members.
11103 (struct it): Change member method from function pointer to enum.
11104
11105 * xdisp.c (check_it, init_from_display_pos, handle_stop)
11106 (setup_for_ellipsis, handle_single_display_spec)
11107 (handle_composition_prop, next_overlay_string)
11108 (get_overlay_strings, reseat_1, reseat_to_string)
11109 (next_element_from_ellipsis, BUFFER_POS_REACHED_P)
11110 (in_display_vector_p, display_line, get_next_display_element):
11111 Change it->method from function pointer to enum.
11112 (get_next_element): New array to map it->method to function.
11113 (get_next_display_element): Use it.
11114 (set_iterator_to_next): Use switch instead of if/else chain.
11115
11116 2005-02-15 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
11117
11118 * w32select.c: Summary: Thorough rework to implement Unicode
11119 clipboard operations and delayed rendering.
11120
11121 Drop last_clipboard_text and related code, keep track of
11122 ownership via clipboard_owner instead. Drop old #if0 sections.
11123
11124 (DEFAULT_LCID, ANSICP, OEMCP, QUNICODE, QANSICP, QOEMCP)
11125 (clipboard_owner, modifying_clipboard, cfg_coding_system)
11126 (cfg_codepage, cfg_lcid, cfg_clipboard_type, current_text)
11127 (current_coding_system, current_requires_encoding)
11128 (current_num_nls, current_clipboard_type, current_lcid):
11129 New static variables.
11130
11131 (convert_to_handle_as_ascii, convert_to_handle_as_coded)
11132 (render, render_all, run_protected, lisp_error_handler)
11133 (owner_callback, create_owner, setup_config)
11134 (enum_locale_callback, cp_from_locale, coding_from_cp):
11135 New local functions.
11136
11137 (term_w32select, globals_of_w32select): New global functions.
11138
11139 (Fw32_set_clipboard_data): Ignore parameter FRAME, use
11140 clipboard_owner instead. Use delayed rendering and provide
11141 all text formats. Provide CF_LOCALE if necessary.
11142
11143 (Fw32_get_clipboard_data): Handle CF_UNICODETEXT and
11144 CF_LOCALE. Fall back to CF_TEXT, if CF_UNICODETEXT is not
11145 available. Force DOS line-ends for decoding.
11146
11147 (Fx_selection_exists_p): Handle CF_UNICODETEXT.
11148
11149 (syms_of_w32select): Init and register new variables.
11150
11151 * w32.h: Add prototypes for globals_of_w32select and
11152 term_w32select. Make the neighboring K&R declarations into
11153 prototypes, too.
11154
11155 * emacs.c: Include w32.h to get function prototypes.
11156 (main): Call globals_of_w32select.
11157
11158 * w32.c (term_ntproc): Call term_w32select.
11159
11160 * s/ms-w32.h: Guard MSC-specific #pragmas with an #ifdef.
11161
11162 2005-02-16 Kim F. Storm <storm@cua.dk>
11163
11164 * xdisp.c (BUFFER_POS_REACHED_P): Return true if pos reached and
11165 at end of display vector.
11166
11167 2005-02-15 Richard M. Stallman <rms@gnu.org>
11168
11169 * xdisp.c (get_next_display_element): Fix escape-glyph criterion
11170 for mode and header lines.
11171
11172 * lread.c (syms_of_lread) <user-init-file>: Doc fix.
11173
11174 * keymap.h (describe_map_tree): Change decl.
11175
11176 * keyboard.c (command_loop_1): Always use safe_run_hooks
11177 to run Qdeferred_action_function.
11178
11179 * keymap.c (describe_map_tree): New arg MENTION_SHADOW. Calls changed.
11180 (describe_map, describe_vector): Likewise. When it's 1,
11181 don't omit shadowed bindings, instead mark them as shadowed.
11182
11183 * doc.c (Fsubstitute_command_keys): Compute list of shadowing maps
11184 for describe_map_tree. Pass 1 for MENTION_SHADOW.
11185
11186 * data.c (Fsetq_default): Allow no arg case.
11187
11188 2005-02-14 Kenichi Handa <handa@m17n.org>
11189
11190 * coding.c (encode_coding_string): Always return a unibyte string.
11191 If NOCOPY is nonzero and there's no need of encoding, make STR
11192 unibyte directly.
11193
11194 * xselect.c (lisp_data_to_selection_data): If OBJ is a non-ASCII
11195 multibyte string, signal an error instead of aborting.
11196
11197 2005-02-12 Dan Nicolaescu <dann@ics.uci.edu>
11198
11199 * keyboard.c: If HAVE_FCNTL_H include fcntl.h.
11200
11201 2005-02-12 Kim F. Storm <storm@cua.dk>
11202
11203 * xdisp.c (expose_window): Don't fix overlaps for mode lines.
11204
11205 2005-02-10 Kim F. Storm <storm@cua.dk>
11206
11207 * xdisp.c (try_window_id): Set first_unchanged_at_end_row to NULL
11208 if it moves outside window or it doesn't display text.
11209
11210 2005-02-09 Kim F. Storm <storm@cua.dk>
11211
11212 * undo.c (Fprimitive_undo): Check that undo function does not
11213 switch buffer.
11214
11215 2005-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11216
11217 * xselect.c (selection_data_to_lisp_data): For the special case
11218 type == XA_ATOM, data contains array of int, not array of Atom.
11219 (x_property_data_to_lisp, selection_data_to_lisp_data):
11220 Comment update: data must be array of int for format == 32.
11221
11222 2005-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
11223
11224 * undo.c (Fprimitive_undo): Check veracity of delta,start,end.
11225
11226 2005-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11227
11228 * xfns.c (Fx_change_window_property): Use long array when format is 32.
11229 (Fx_window_property): If format is 32 and long is bigger than 32 bits,
11230 convert long array returned from XGetWindowProperty to an int array.
11231 (x_set_tool_bar_lines): Check that width and height is greater than
11232 zero before clearing area.
11233
11234 * xselect.c (x_reply_selection_request): Pass long array to
11235 XChangeProperty so that 64 bit longs are handeled correctly.
11236 (x_get_window_property): If format is 32 and long is bigger than 32
11237 bits convert data from XGetWindowProperty from long array to int array.
11238 (lisp_data_to_selection_data): When the input is a vector and the
11239 format is 32, allocate a long array even if long is bigger than 32 bits.
11240 (x_fill_property_data): Use char, short and long as the man page
11241 for XChangeProperty specifies. This way the data returned is OK for
11242 both 32 and 64 bit machines.
11243 (x_handle_dnd_message): Calculate size correctly even for 64 bit
11244 machines.
11245 (Fx_send_client_event): Undo change from 2005-02-05,
11246 x_fill_property_data now handles that case.
11247
11248 * xfns.c (Fx_backspace_delete_keys_p): Add comment about the
11249 reason for the approach in the code.
11250
11251 2005-02-07 Kim F. Storm <storm@cua.dk>
11252
11253 * undo.c (Fprimitive_undo): Record max one dummmy apply element.
11254
11255 2005-02-06 Richard M. Stallman <rms@gnu.org>
11256
11257 * eval.c (Frun_hook_with_args)
11258 (Frun_hook_with_args_until_success)
11259 (Frun_hook_with_args_until_failure): Doc fixes.
11260
11261 2005-02-05 Andreas Schwab <schwab@suse.de>
11262
11263 * sysdep.c (sys_subshell): Properly terminate execlp argument list.
11264
11265 2005-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11266
11267 * xselect.c (Fx_send_client_event, x_handle_dnd_message): Handle
11268 the longs in a XClientMessageEvent correctly when long is 64 bits.
11269
11270 2005-02-05 Eli Zaretskii <eliz@gnu.org>
11271
11272 * xfaces.c (face_color_supported_p): Use HAVE_WINDOW_SYSTEM
11273 instead of HAVE_X_WINDOWS, for non-X windowed sessions.
11274
11275 2005-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11276
11277 * xmenu.c (menubar_selection_callback): Force out GTK buffered
11278 events so the menu event comes after them. This is to prevent sit-for
11279 from exiting on buffered events directly after a menu selection,
11280 lisp code for Help => About Emacs uses sit-for.
11281
11282 * gtkutil.c (create_menus): Connect selection-done event instead of
11283 the deactivate event to deactivate_cb. This will make the last
11284 leave event come before the call to deactivate_cb, so the leave
11285 event does not make sit-for exit after a menu selection.
11286
11287 2005-02-03 Kim F. Storm <storm@cua.dk>
11288
11289 * dispnew.c (build_frame_matrix_from_leaf_window)
11290 [!GLYPH_DEBUG]: Fix xassert.
11291
11292 * xfaces.c (x_free_gc) [!GLYPH_DEBUG]: Fix xassert.
11293
11294 * xfns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
11295
11296 2005-02-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11297
11298 * mac.c: Use MAC_OS_X_VERSION_MAX_ALLOWED to conditionalize by
11299 the compiling OS version.
11300
11301 * macfns.c (x_create_tip_frame): Likewise.
11302
11303 * macterm.c (mac_draw_string_common, x_make_frame_visible): Likewise.
11304
11305 2005-02-03 Richard M. Stallman <rms@gnu.org>
11306
11307 * xterm.c (x_error_quitter): On GCC 3 and up, specify noinline.
11308
11309 * xdisp.c (echo_area_display): Clear echo_message_buffer.
11310
11311 * buffer.c (Fbury_buffer): Doc fix.
11312
11313 2005-02-02 Steven Tamm <steventamm@mac.com>
11314
11315 * macfns.c (unwind_create_frame): Fix compile error due to
11316 xassert being uncondition, but predicate is.
11317 * dispnew.c (update_window): Fix compile error due to
11318 xassert being uncondition, but predicate is.
11319
11320 2005-02-02 Miles Bader <miles@gnu.org>
11321
11322 * dispextern.h (xassert): Enable unconditionally.
11323
11324 2005-02-02 Kim F. Storm <storm@cua.dk>
11325
11326 * undo.c (Fprimitive_undo): Fix dummy apply undo entry.
11327
11328 2005-02-02 Kenichi Handa <handa@m17n.org>
11329
11330 * casefiddle.c (casify_object): Enable changing characters of
11331 different byte length.
11332 (casify_region): Fix loop condition, args to replace_range_2, and
11333 update opoint_byte.
11334
11335 * insdel.c (replace_range_2): Fix bugs in adjusting markers and point.
11336
11337 2005-02-01 Kim F. Storm <storm@cua.dk>
11338
11339 * xdisp.c (back_to_previous_visible_line_start): Reset iterator
11340 stack before calling handle_display_prop.
11341
11342 2005-01-31 Kim F. Storm <storm@cua.dk>
11343
11344 * undo.c (Qapply): New lisp var.
11345 (syms_of_undo): Intern and staticpro it.
11346 (Fprimitive_undo): Support formats (apply FUNNAME . ARGS) and
11347 (apply DELTA BEG END FUNNAME . ARGS) instead of (FUNNAME . ARGS).
11348
11349 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
11350
11351 2005-01-30 Jesper Harder <harder@phys.au.dk>
11352
11353 * macterm.c (syms_of_macterm) <mac-reverse-ctrl-meta>
11354 <mac-emulate-three-button-mouse>: Fix docstring indentation.
11355
11356 2005-01-29 Luc Teirlinck <teirllm@auburn.edu>
11357
11358 * undo.c (syms_of_undo) <undo-outer-limit>: Doc update.
11359 Increase value to 3 Meg.
11360
11361 2005-01-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11362
11363 * xfns.c (show_hourglass): Use FRAME_X_WINDOW as parent for GTK,
11364 button events are not received otherwise.
11365
11366 2005-01-29 Richard M. Stallman <rms@gnu.org>
11367
11368 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
11369
11370 * undo.c (Fprimitive_undo): Handle (FUNNAME . ARGS) by calling FUNNAME.
11371
11372 2005-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
11373
11374 * keymap.c (access_keymap): YAILOM.
11375
11376 2005-01-27 Kim F. Storm <storm@cua.dk>
11377
11378 * xdisp.c (get_phys_cursor_geometry): New function to calculate
11379 phys cursor position and size for hollow cursor. Position is
11380 aligned with get_glyph_string_clip_rect and ensures that a hollow
11381 cursor is shown, even when the actual glyph is not visible.
11382
11383 * dispextern.h (get_phys_cursor_geometry): Add prototype.
11384
11385 * xterm.c (x_clip_to_row): Ensure y >= 0.
11386 (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
11387
11388 * w32term.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
11389
11390 * macterm.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
11391
11392 2005-01-27 Stefan Monnier <monnier@iro.umontreal.ca>
11393
11394 * xterm.c (x_error_quitter): Add a prototype. Make it static again.
11395
11396 2005-01-27 Kim F. Storm <storm@cua.dk>
11397
11398 * xdisp.c (get_glyph_string_clip_rect): Always show a cursor
11399 glyph, even when row is only partially visible and actual cursor
11400 position is not visible.
11401
11402 2005-01-24 Richard M. Stallman <rms@gnu.org>
11403
11404 * xterm.c (x_error_quitter): No longer static, and moved after
11405 x_error_handler.
11406
11407 2005-01-24 Kim F. Storm <storm@cua.dk>
11408
11409 * xdisp.c (move_it_by_lines): If we move forward after going too
11410 far back, cancel move if end position is same as start position.
11411
11412 2005-01-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11413
11414 * dispextern.h (struct glyph_string): New members clip_head and
11415 clip_tail.
11416
11417 * xdisp.c (get_glyph_string_clip_rect): Restrict horizontal clip
11418 region to the area between clip_head and clip_tail.
11419 (draw_glyphs): Record the area that need to be actually redrawn to
11420 the new variables clip_head and clip_tail when there are
11421 overhangs. Set values of these variables to the corresponding
11422 members in struct glyph_string. Refine x coordinates for
11423 notice_overwritten_cursor using clip_head and clip_tail.
11424
11425 * macgui.h (STORE_XCHARSETSTRUCT): New macro.
11426
11427 * macterm.c (mac_compute_glyph_string_overhangs): Implement with
11428 QDTextBounds.
11429 (x_draw_glyph_string): Don't fill the background of the successor
11430 of a glyph with a right overhang if the successor will draw a cursor.
11431 (XLoadQueryFont): Obtain font metrics using QDTextBounds.
11432 (x_redisplay_interface): Add entry for compute_glyph_string_overhangs.
11433
11434 2005-01-24 Kim F. Storm <storm@cua.dk>
11435
11436 * window.c (window_scroll_pixel_based): Fix scrolling in the wrong
11437 direction if window height was smaller than next-screen-context-lines.
11438 Now always scroll at least one line in the requested direction.
11439 Ensure that we actually do scroll backwards when requested to do so.
11440
11441 * xdisp.c (redisplay_window): Only try to make cursor line fully
11442 visible once (to avoid redisplay loop).
11443
11444 2005-01-23 Kim F. Storm <storm@cua.dk>
11445
11446 * window.c (Fpos_visible_in_window_p): Simplify return value for
11447 partially visible rows.
11448 (window_scroll_pixel_based): Adapt to that change.
11449
11450 * window.c (window_scroll_pixel_based): Force moving to next line
11451 if scrolling doesn't move start point, e.g. if looking at tall image.
11452
11453 * xdisp.c (pos_visible_p): Return 0 if non-interactive.
11454 Clear last_height before calling line_bottom_y to get real height.
11455 Fix calculation of y.
11456
11457 2005-01-22 Steven Tamm <steventamm@mac.com>
11458
11459 * s/darwin.h: Removed PTY_ITERATION from here.
11460 (DARWIN): Define.
11461
11462 * process.c (init_process): Default process-connection-type to
11463 nil on darwin 6 or less, t if it is 7 or higher. This way the
11464 broken pty behavior is still allowed on darwin 6 for interactive
11465 processes for people that know what they are doing.
11466
11467 2005-01-22 Kim F. Storm <storm@cua.dk>
11468
11469 * window.c (auto_window_vscroll_p): New boolean.
11470 (syms_of_window): DEFVAR_BOOL it.
11471 (Fpos_visible_in_window_p): Extend return value to include RTOP
11472 and RBOT values if FULLY is nil.
11473 (window_scroll_pixel_based): Adjust vscroll for partially visible
11474 rows if auto_window_vscroll_p is set.
11475 (Fset_window_vscroll): Do nothing if vscroll is not modified.
11476
11477 * xdisp.c (pos_visible_p): Replace FULLY arg by RTOP and RBOT args
11478 to return number of partially invisible pixels at top and bottom
11479 of the dislay row at POS.
11480
11481 * lisp.h (pos_visible_p): Fix prototype.
11482
11483 2005-01-21 Richard M. Stallman <rms@gnu.org>
11484
11485 * fileio.c (Fcopy_file): Doc fix.
11486
11487 2005-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11488
11489 * gtkutil.c (xg_tool_bar_detach_callback): Remove unused variable bw.
11490 (xg_get_file_name): Move declaration ofx_use_old_gtk_file_dialog to
11491 start of function for older compilers.
11492
11493 2005-01-20 Richard M. Stallman <rms@gnu.org>
11494
11495 * editfns.c (Fmessage): If arg is "", return "" (as before).
11496
11497 * keymap.c (access_keymap): Protect from bad value of meta_prefix_char.
11498
11499 * .gdbinit (xgetptr, xgetint, xgettype): Copy $arg0 into a temp
11500 variable.
11501
11502 2005-01-20 Steven Tamm <steventamm@mac.com>
11503
11504 * editfns.c (Voperating_system_release): Add.
11505 (init_editfns): Assign new variable operating-system-release
11506 based on call to uname if available.
11507 (get_operating_system_release): Add function to
11508 allow c-level access to operating system release.
11509
11510 * config.h: Regenerated.
11511
11512 * s/darwin.h (PTY_ITERATION): Don't allow PTYs on darwin 6 or less.
11513 (MIN_PTY_KERNEL_VERSION): Define minimum kernel version for
11514 using ptys as '7'.
11515
11516 2005-01-20 Kim F. Storm <storm@cua.dk>
11517
11518 * alloc.c (STRING_MARKED_P, VECTOR_MARKED_P): Return boolean.
11519
11520 * xterm.c (x_draw_glyph_string_box): Fix last_x for full width rows.
11521 Thanks to Chong Yidong <cyd@stupidchicken.com> for debugging this.
11522
11523 * macterm.c (x_draw_glyph_string_box): Likewise.
11524
11525 * w32term.c (x_draw_glyph_string_box): Likewise.
11526
11527 * indent.c (Fvertical_motion): Temporarily disable selective display.
11528
11529 2005-01-19 Kim F. Storm <storm@cua.dk>
11530
11531 * xdisp.c (note_mode_line_or_margin_highlight): Fix :pointer
11532 image property.
11533
11534 * fns.c (sweep_weak_table): Advance prev pointer when we keep a pair.
11535
11536 2005-01-18 Kim F. Storm <storm@cua.dk>
11537
11538 * xdisp.c (fast_find_position): Backtrack to find first row if
11539 charpos is inside a display overlay that spans multiple lines.
11540
11541 2005-01-18 Kenichi Handa <handa@m17n.org>
11542
11543 * coding.c (decode_coding_iso2022): Translate invalid codes if
11544 translation-table is specified.
11545
11546 2005-01-18 Kim F. Storm <storm@cua.dk>
11547
11548 * xdisp.c (back_to_previous_visible_line_start): Undo 2004-12-28
11549 change. If handle_display_prop indicates newline is replaced by
11550 image or text, move back to start of relevant overlay or interval
11551 and continue scan from there. Simplify.
11552
11553 2005-01-17 Kim F. Storm <storm@cua.dk>
11554
11555 * dispnew.c (mode_line_string, marginal_area_string):
11556 Fix off-by-one error in search for glyph.
11557
11558 2005-01-16 Kim F. Storm <storm@cua.dk>
11559
11560 * macterm.c (syms_of_macterm) <mac-allow-anti-aliasing>: Doc fix.
11561
11562 2005-01-16 Steven Tamm <steventamm@mac.com>
11563
11564 * macterm.c (mac_to_x_fontname): Remove spurious argument.
11565
11566 2005-01-16 Andreas Schwab <schwab@suse.de>
11567
11568 * macterm.c (mac_draw_string_common): Fix compilation on OSX 10.1.
11569
11570 2005-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11571
11572 * fringe.c (Fdefine_fringe_bitmap, init_fringe): When assigning
11573 fringe_faces, cast result from xmalloc/xrealloc to Lisp_Object *.
11574
11575 2005-01-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11576
11577 * keyboard.c (READABLE_EVENTS_DO_TIMERS_NOW)
11578 (READABLE_EVENTS_FILTER_EVENTS, READABLE_EVENTS_IGNORE_SQUEEZABLES):
11579 New flags for readable_events.
11580 (get_filtered_input_pending, readable_filtered_events): Remove.
11581 (tracking_off): Call readable_events and get_input_pending with
11582 flag READABLE_EVENTS_DO_TIMERS_NOW.
11583 (readable_events): Move code from old readable_filtered_events here,
11584 but check new READABLE_EVENTS_* in argument flags instead of previous
11585 two boolean arguments do_timers_now and filter_events.
11586 If we are doing mouse tracking and the mouse moved, return only if
11587 READABLE_EVENTS_IGNORE_SQUEEZABLES is not set in flags.
11588 (swallow_events): Call get_input_pending with flag
11589 READABLE_EVENTS_DO_TIMERS_NOW.
11590 (get_input_pending): Move code from old get_filtered_input_pending
11591 here. Replace boolean arguments do_timers_now, filter_events with
11592 flags, and pass flags to readable_events. Document new
11593 READABLE_EVENTS_* flags.
11594 (detect_input_pending_ignore_squeezables): New function.
11595 (detect_input_pending_run_timers): Call get_input_pending with flag
11596 READABLE_EVENTS_DO_TIMERS_NOW.
11597 (Finput_pending_p): Call get_input_pending with flags
11598 READABLE_EVENTS_DO_TIMERS_NOW and READABLE_EVENTS_FILTER_EVENTS.
11599
11600 * dispnew.c (update_window, update_frame_1): Replace calls to
11601 detect_input_pending with detect_input_pending_ignore_squeezables
11602 so that redisplay is not paused if the event queue contains only
11603 mouse movements.
11604
11605 * lisp.h: Declare detect_input_pending_ignore_squeezables.
11606
11607 2005-01-15 Steven Tamm <steventamm@mac.com>
11608
11609 * macterm.c (Vmac_use_core_graphics): Declare variable for
11610 mac-allow-anti-aliasing.
11611 (syms_of_macterm): DEFVAR_LISP and initialize it.
11612 (mac_draw_string_common): Use core graphics text rendering if
11613 mac-allow-anti-aliasing is enabled.
11614
11615 * macfns.c (Fx_file_dialog): Save As dialog includes only the
11616 file name in the text box.
11617
11618 2005-01-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11619
11620 * macfns.c (x_set_foreground_color, x_set_background_color):
11621 Sync with xfns.c.
11622 (mac_window, x_create_tip_frame): Use XSetWindowBackground.
11623 * macterm.c (XSetBackground, XSetWindowBackground): New functions.
11624 * macterm.h (XSetBackground, XSetWindowBackground): Add externs.
11625
11626 2005-01-14 Kim F. Storm <storm@cua.dk>
11627
11628 * keyboard.c (Fposn_at_x_y): Add optional arg WHOLE.
11629
11630 2005-01-13 Richard M. Stallman <rms@gnu.org>
11631
11632 * keymap.c (Fcurrent_active_maps): Ignore Voverriding_local_map
11633 if Voverriding_terminal_local_map is non-nil.
11634
11635 * keyboard.c (syms_of_keyboard): Doc fix.
11636
11637 2005-01-13 Kim F. Storm <storm@cua.dk>
11638
11639 * xdisp.c (Fformat_mode_line): Fix last change. Remove NO_PROPS arg
11640 (specify 0 for FACE instead). Reorder arg list. Doc fix.
11641
11642 2005-01-12 Richard M. Stallman <rms@gnu.org>
11643
11644 * xdisp.c (Fformat_mode_line): New arg FACE specifies a default
11645 face property for characters that don't specify one.
11646
11647 * fns.c (Frequire): Record in load-history unconditionally.
11648
11649 2005-01-10 Kim F. Storm <storm@cua.dk>
11650
11651 * dispextern.h (merge_faces): Rename from merge_into_realized_face.
11652
11653 * xfaces.c (merge_faces): Rename from merge_into_realized_face.
11654 Callers changed.
11655 Add support to merge with lisp face id too (if face_name is t).
11656
11657 * xdisp.c (get_next_display_element, next_element_from_display_vector):
11658 Don't lookup lface_id from display table glyphs here; instead use
11659 merge_faces to merge the lisp face id into current face.
11660
11661 2005-01-09 Kim F. Storm <storm@cua.dk>
11662
11663 * dispextern.h (struct it): New member dpvec_face_id.
11664 (merge_into_realized_face): Add prototype.
11665
11666 * xfaces.c (merge_into_realized_face): New function. Used to
11667 merge escape-glyph face or face from display table into current face.
11668
11669 * xdisp.c (Vshow_nonbreak_escape): New lisp var.
11670 (syms_of_xdisp): DEFVAR_LISP it.
11671 (escape_glyph_face): Remove var.
11672 (redisplay_window): Don't initialize it.
11673 (setup_for_ellipsis, get_next_display_element):
11674 Set it->dpvec_face_id to -1.
11675 (get_next_display_element): Test Vshow_nonbreak_escape.
11676 Do not setup escape_glyph_face.
11677 Properly merge escape-glyph face or face from display table with
11678 current face for escape and control characters.
11679 Set it->dpvec_face_id to relevant face id instead of adding it to each
11680 element of display vector.
11681 (next_element_from_display_vector): If it->dpvec_face_id is set,
11682 use that instead of lface_id from glyph itself.
11683
11684 2005-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11685
11686 * xterm.h (struct x_output): New member, toolbar_detached.
11687
11688 * gtkutil.c (xg_create_frame_widgets): Set initial tool bar height to
11689 38.
11690 (xg_tool_bar_detach_callback): Set toolbar_detached to 1.
11691 (xg_tool_bar_attach_callback): Set toolbar_detached to 0.
11692 (xg_create_tool_bar): Initialize toolbar_detached.
11693 (update_frame_tool_bar): Only set FRAME_TOOLBAR_HEIGHT (f) if
11694 toolbar_detached is zero.
11695
11696 2005-01-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11697
11698 * xmenu.c (create_and_show_popup_menu): Pass zero as button to
11699 gtk_menu_popup if not for_click, so callbacks for the menu are called.
11700
11701 * gtkutil.c (xg_gtk_scroll_destroy, xg_create_scroll_bar)
11702 (xg_tool_bar_callback, xg_tool_bar_help_callback)
11703 (update_frame_tool_bar): Cast to EMACS_INT to avoid compiler warning.
11704
11705 * xselect.c (x_get_foreign_selection, x_fill_property_data)
11706 (Fx_get_atom_name, Fx_send_client_event): Replace XFLOAT with
11707 XFLOAT_DATA to get extract number from Lisp object.
11708
11709 2005-01-07 Kim F. Storm <storm@cua.dk>
11710
11711 * xdisp.c (set_iterator_to_next): Fix 2004-12-13 change.
11712 Set stop_charpos to current charpos instead of 0.
11713
11714 2005-01-06 Nick Roberts <nickrob@snap.net.nz>
11715
11716 * xdisp.c (Fformat_mode_line): First arg now required.
11717
11718 2005-01-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11719
11720 * macterm.c (XLoadQueryFont): Correctly handle 0 size
11721 font widths that are returned from some Japanese fonts.
11722
11723 2005-01-06 Kim F. Storm <storm@cua.dk>
11724
11725 * fringe.c (fringe_faces): Change to Lisp_Object pointer.
11726 (draw_fringe_bitmap_1): Lookup user defined fringe faces here.
11727 (destroy_fringe_bitmap): Set fringe_faces element to nil.
11728 (Fdefine_fringe_bitmap, init_fringe): Change allocation of
11729 fringe_faces array and init elements to nil.
11730 (Fset_fringe_bitmap_face): Set fringe_faces to face name instead of
11731 non-persistent face id.
11732 (mark_fringe_data): New function for GC.
11733
11734 * alloc.c (mark_fringe_data): Declare extern.
11735 (Fgarbage_collect): Call mark_fringe_data.
11736
11737 * alloc.c (overrun_check_free): Invalidate freed memory if
11738 XMALLOC_CLEAR_FREE_MEMORY is defined.
11739
11740 2005-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11741
11742 * macfns.c: Include sys/param.h.
11743 [TARGET_API_MAC_CARBON] (mac_nav_event_callback): New declaration
11744 and function.
11745 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Use MAXPATHLEN for size
11746 of filename string. Set event callback function when creating
11747 dialog boxes. Add code conversions for filenames. Don't dispose
11748 of apple event descriptor record if failed to create it.
11749
11750 * macterm.c: Include sys/param.h.
11751 [USE_CARBON_EVENTS] (mac_handle_window_event): Add handler for
11752 kEventWindowUpdate.
11753 (install_window_handler) [USE_CARBON_EVENTS]: Register it.
11754 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Get FSRef instead
11755 of FSSpec from apple event descriptor record.
11756 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Use MAXPATHLEN for
11757 size of filename string.
11758 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.
11759 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Return error when a
11760 file dialog is in action.
11761 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Likewise.
11762 Reject only when there are no filename items. Set background color
11763 before (un)highlighting the window below the dragged items.
11764 (XTread_socket) [USE_CARBON_EVENTS]: Don't call do_window_update.
11765
11766 2005-01-05 Romain Francoise <romain@orebokech.com>
11767
11768 * term.c (encode_terminal_code): Fix buffer size computation.
11769
11770 2005-01-04 Richard M. Stallman <rms@gnu.org>
11771
11772 * xdisp.c (Fformat_mode_line): Doc fix.
11773
11774 2005-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
11775
11776 * alloc.c (refill_memory_reserve): Move.
11777 (emacs_blocked_free, emacs_blocked_malloc, emacs_blocked_realloc)
11778 (reset_malloc_hooks, uninterrupt_malloc) [SYNC_INPUT]: Don't define.
11779
11780 2005-01-03 Richard M. Stallman <rms@gnu.org>
11781
11782 * window.c (window_scroll_pixel_based): Don't correct preserve_y
11783 for CURRENT_HEADER_LINE_HEIGHT when moving backwards.
11784
11785 2005-01-03 Jason Rumney <jasonr@gnu.org>
11786
11787 * w32bdf.c (w32_load_bdf_font): Set fontp->average_width and
11788 fontp->space_width to FONT_WIDTH so they are valid.
11789
11790 * w32fns.c (w32_load_system_font): Set FONT_WIDTH to maximum, not
11791 average width. Set fontp->average_width and fontp->space_width to
11792 their appropriate values.
11793
11794 * w32term.c (x_new_font): Set FRAME_COLUMN_WIDTH to
11795 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
11796 fontp->space_width.
11797
11798 2005-01-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11799
11800 * macterm.c (x_new_font): Set FRAME_SPACE_WIDTH.
11801 (x_font_min_bounds, XLoadQueryFont): Use the correct font width
11802 metrics for max and min bounds.
11803 (x_load_font): Correctly calculate average font width metrics.
11804
11805 2005-01-02 Richard M. Stallman <rms@gnu.org>
11806
11807 * alloc.c (Fgarbage_collect): Don't truncate_undo_list on dead buffers.
11808
11809 2004-12-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11810
11811 * xterm.c (handle_one_xevent): Clear area in expose event for GTK.
11812
11813 2004-12-31 Richard M. Stallman <rms@gnu.org>
11814
11815 * xdisp.c (setup_for_ellipsis, get_next_display_element):
11816 Set it->ellipsis_p to 1 or 0.
11817 (display_line): Record whether row ends in mid-ellipsis.
11818 (set_cursor_from_row): If ends in ellipsis, find start of it.
11819 (cursor_row_p): If PT's at the end of the ellipsis the row
11820 ends within, don't display cursor on this row.
11821
11822 * dispextern.h (struct it): New element ellipsis_p.
11823 (struct glyph_row): New element ends_in_ellipsis_p.
11824
11825 * xdisp.c (BUFFER_POS_REACHED_P): We haven't reached the specified
11826 position if we're reading from something other than the buffer.
11827
11828 * window.c (window_scroll_pixel_based): Only look at
11829 Vscroll_preserve_screen_position if the old PT can't be kept.
11830 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
11831
11832 2004-12-30 Kim F. Storm <storm@cua.dk>
11833
11834 * xdisp.c (get_line_height_property): New function extracted from
11835 original calc_line_height_property.
11836 (calc_line_height_property): Rework. Handle t and (nil . ratio).
11837 (x_produce_glyphs): Use them to handle line-height and
11838 line-spacing according to new height spec.
11839 (Qtotal): Remove.
11840 (syms_of_xdisp): Remove intern and staticpro for Qtotal.
11841
11842 2004-12-30 Kenichi Handa <handa@m17n.org>
11843
11844 * fileio.c (Finsert_file_contents): Don't use
11845 current_buffer->buffer_file_coding_system even if REPLACE is
11846 non-nil. Call Qafter_insert_file_set_coding with the second arg VISIT.
11847
11848 * fontset.h (struct font_info): New members space_width and
11849 average_width.
11850
11851 * frame.h (struct frame): New member space_width.
11852 (FRAME_SPACE_WIDTH): New macro.
11853
11854 * xterm.h (struct x_display_info): New member Xatom_AVERAGE_WIDTH.
11855
11856 * xterm.c (x_new_font): Set FRAME_COLUMN_WIDTH to
11857 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
11858 fontp->space_width.
11859 (x_load_font): Calculate fontp->space_width and fontp->average_width.
11860 (x_term_init): Initialize dpyinfo->Xatom_AVERAGE_WIDTH.
11861
11862 * xdisp.c (x_produce_glyphs): Calculate tab width by
11863 FRAME_SPACE_WIDTH, not FRAME_COLUMN_WIDTH.
11864
11865 2004-12-29 Sanghyuk Suh <han9kin@mac.com>
11866
11867 * macterm.c (SelectionRange): Add Xcode position apple event struct.
11868 (do_ae_open_documents): Handle Xcode-style file position open events.
11869
11870 2004-12-29 Luc Teirlinck <teirllm@auburn.edu>
11871
11872 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Correct typo.
11873
11874 2004-12-29 Richard M. Stallman <rms@gnu.org>
11875
11876 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Doc fix.
11877
11878 2004-12-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11879
11880 * macfns.c (install_window_handler): Modify extern to return OSErr
11881 value.
11882 (mac_window): Handle return value of install_window_handler.
11883
11884 * macterm.c (reflect_byte): Remove function.
11885 (mac_create_bitmap_from_bitmap_data): Don't call reflect_byte.
11886 Lookup table instead.
11887 (mac_do_font_lists): Simplify calculation of the longest
11888 nonspecial string.
11889 (init_mac_drag_n_drop): Remove function and declaration.
11890 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
11891 init_mac_drag_n_drop.
11892 (mac_do_track_drag): New function and declaration.
11893 (install_window_handler): Return OSErr value.
11894 (install_window_handler) [TARGET_API_MAC_CARBON]:
11895 Register handlers for tracking/receiving drag-and-drop items.
11896 (do_ae_open_documents): Generate unibyte strings for filenames.
11897 (mac_do_receive_drag) [TARGET_API_MAC_CARBON]: Likewise.
11898 Reject only non-filename items. Set event modifiers, and return value.
11899
11900 2004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
11901
11902 * coding.c (decode_coding): Fix previous change.
11903
11904 2004-12-28 Richard M. Stallman <rms@gnu.org>
11905
11906 * xdisp.c (back_to_previous_visible_line_start):
11907 Don't call handle_display_prop.
11908
11909 2004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
11910
11911 * coding.c (decode_coding_XXX, decode_composition_emacs_mule)
11912 (decode_coding_emacs_mule, encode_coding_emacs_mule)
11913 (decode_coding_iso2022, encode_designation_at_bol)
11914 (encode_coding_iso2022, decode_coding_sjis_big5, decode_eol)
11915 (decode_coding): Constify arguments and local vars.
11916
11917 2004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11918
11919 * xmenu.c (popup_get_selection): Only pop down dialogs
11920 on C-g and Escape.
11921 (popup_get_selection): Remove parameter down_on_keypress.
11922 (create_and_show_popup_menu, create_and_show_dialog):
11923 Remove parameter down_on_keypress to popup_get_selection.
11924
11925 2004-12-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11926
11927 * dispextern.h: Change HAVE_CARBON to MAC_OS.
11928 (struct glyph_string): Likewise.
11929
11930 * emacs.c (main) [MAC_OS8]: Call mac_term_init instead of
11931 mac_initialize.
11932
11933 * fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name):
11934 Change TARGET_API_MAC_CARBON to HAVE_CARBON.
11935
11936 * fns.c (vector): Change MAC_OSX to MAC_OS.
11937
11938 * frame.c (x_set_frame_parameters, x_report_frame_params)
11939 (x_set_fullscreen): Remove #ifndef HAVE_CARBON.
11940 (x_set_border_width, Vdefault_frame_scroll_bars):
11941 Change HAVE_CARBON to MAC_OS.
11942
11943 * image.c [MAC_OS]: Include sys/stat.h.
11944 [MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and
11945 QuickTimeComponents.h.
11946
11947 * mac.c [!MAC_OSX] (mac_wait_next_event): Add extern.
11948 [!MAC_OSX] (select): Use mac_wait_next_event.
11949 [!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to Vexec_suffixes.
11950 [!MAC_OSX] (select, run_mac_command): Change `#ifdef
11951 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
11952 (mac_clear_font_name_table): Add extern.
11953 (Fmac_clear_font_name_table): New defun.
11954 (syms_of_mac): Defsubr it.
11955 [MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define.
11956 [MAC_OSX] (select_and_poll_event): New function.
11957 [MAC_OSX] (sys_select): Use it.
11958 [MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function.
11959 [MAC_OSX && SELECT_USE_CFSOCKET]
11960 (SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines.
11961 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and
11962 RunLoop for simultaneously monitoring two kinds of inputs, window
11963 events and process outputs, without periodically polling.
11964
11965 * macfns.c (mac_initialized): Remove extern.
11966 (stricmp): Put in #if 0. All callers changed to use xstricmp in
11967 xfaces.c.
11968 (strnicmp): Decrement `n' at the end of each loop, not the beginning.
11969 (check_mac): Use the term "Mac native windows" instead of "Mac OS".
11970 (check_x_display_info, x_display_info_for_name): Sync with xfns.c.
11971 (mac_get_rdb_resource): New function (from w32reg.c).
11972 (x_get_string_resource): Use it.
11973 (install_window_handler): Add extern.
11974 (mac_window): New function.
11975 (Fx_create_frame): Use it instead of make_mac_frame.
11976 Set parameter for Qfullscreen. Call x_wm_set_size_hint.
11977 (Fx_open_connection, Fx_close_connection): New defuns.
11978 (syms_of_macfns): Defsubr them.
11979 (x_create_tip_frame) [TARGET_API_MAC_CARBON]:
11980 Add kWindowNoUpdatesAttribute to the window attribute.
11981 (x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow.
11982 (x_create_tip_frame): Don't call ShowWindow.
11983 (Fx_show_tip): Call ShowWindow.
11984 (Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if
11985 TARGET_API_MAC_CARBON'.
11986 (mac_frame_parm_handlers): Set handlers for Qfullscreen.
11987 (syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0.
11988
11989 * macgui.h [!MAC_OSX]: Don't include Controls.h. Include Windows.h.
11990 (Window): Typedef to WindowPtr and move outside `#if
11991 TARGET_API_MAC_CARBON'.
11992 (XSizeHints): New struct.
11993
11994 * macterm.c (x_update_begin, x_update_end)
11995 [TARGET_API_MAC_CARBON]: Disable screen updates during update of a
11996 frame.
11997 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
11998 [MAC_OS8]: Use XDrawImageString/XDrawImageString16.
11999 (construct_mouse_click): Put in #if 0.
12000 (x_check_fullscreen, x_check_fullscreen_move): Remove decls.
12001 (x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef
12002 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
12003 (activate_scroll_bars, deactivate_scroll_bars)
12004 [!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl.
12005 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window
12006 if the position is neither user-specified nor program-specified.
12007 (x_free_frame_resources): Free size_hints.
12008 (x_wm_set_size_hint): Allocate size_hints if needed. Set size_hints.
12009 (mac_clear_font_name_table): New function.
12010 (mac_do_list_fonts): Initialize font_name_table if needed.
12011 (x_list_fonts): Don't initialize font_name_table. Add BLOCK_INPUT
12012 around mac_do_list_fonts.
12013 (mac_unload_font): New function.
12014 (x_load_font): Add BLOCK_INPUT around XLoadQueryFont.
12015 (init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations
12016 and definitions with #if TARGET_API_MAC_CARBON.
12017 [USE_CARBON_EVENTS] (mac_handle_window_event): Add decl.
12018 (install_window_handler): Add decl.
12019 (do_window_update): Add BeginUpdate/EndUpdate for the tooltip
12020 window. Use UpdateControls. Get the rectangle that should be
12021 updated and restrict the target of expose_frame to it.
12022 (do_grow_window): Set minimum height/width according to size_hints.
12023 (do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow.
12024 (do_zoom_window): Don't use x_set_window_size.
12025 [USE_CARBON_EVENTS] (mac_handle_window_event): New function.
12026 (install_window_handler): New function.
12027 [!USE_CARBON_EVENTS] (mouse_region): New variable.
12028 [!USE_CARBON_EVENTS] (mac_wait_next_event): New function.
12029 (XTread_socket) [USE_CARBON_EVENTS]: Move call to
12030 GetEventDispatcherTarget inside BLOCK_INPUT.
12031 (XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event.
12032 Update mouse_region when mouse is moved.
12033 (make_mac_frame): Remove.
12034 (make_mac_terminal_frame): Put in #ifdef MAC_OS8.
12035 Initialize mouse pointer shapes. Change values of f->left_pos and
12036 f->top_pos. Don't use make_mac_frame. Use NewCWindow.
12037 Don't call ShowWindow.
12038 (mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from
12039 Vinvocation_name and Vsystem_name.
12040 (mac_make_rdb): New function (from w32term.c).
12041 (mac_term_init): Use it. Add BLOCK_INPUT. Error if display has
12042 already been opened. Don't pass argument to
12043 mac_initialize_display_info. Don't set dpyinfo->height/width.
12044 Add entries to x_display_list and x_display_name_list.
12045 (x_delete_display): New function.
12046 (mac_initialize): Don't call mac_initialize_display_info.
12047 (syms_of_macterm) [!MAC_OSX]: Don't call Fprovide.
12048
12049 * macterm.h (check_mac): Add extern.
12050 (struct mac_output): New member size_hints.
12051 (FRAME_SIZE_HINTS): New macro.
12052 (mac_unload_font): Add extern.
12053
12054 * xdisp.c (expose_window, expose_frame): Remove kludges for Mac.
12055
12056 * xfaces.c (clear_font_table) [MAC_OS]: Call mac_unload_font.
12057
12058 2004-12-27 Richard M. Stallman <rms@gnu.org>
12059
12060 * buffer.c (Fbuffer_disable_undo): Delete (move to simple.el).
12061 (syms_of_buffer): Don't defsubr it.
12062
12063 * process.c (list_processes_1): Set undo_list instead
12064 of calling Fbuffer_disable_undo.
12065
12066 * xdisp.c (single_display_spec_string_p): Rename from
12067 single_display_prop_string_p.
12068 (single_display_spec_intangible_p): Rename from
12069 single_display_prop_intangible_p.
12070 (handle_single_display_spec): Rename from handle_single_display_prop.
12071 Rewritten to be easier to understand.
12072
12073 Change in load-history format. Functions now get (defun . NAME),
12074 and variables get just NAME.
12075
12076 * data.c (Fdefalias): Use (defun . FN_NAME) in LOADHIST_ATTACH.
12077
12078 * eval.c (Fdefun, Fdefmacro): Use (defun . FN_NAME) in LOADHIST_ATTACH.
12079 (Fdefvaralias, Fdefvar, Fdefconst): Use just SYM in LOADHIST_ATTACH.
12080 (Qdefvar): Var deleted.
12081 (syms_of_eval): Don't initialze it.
12082
12083 * lread.c (syms_of_lread) <load-history>: Doc fix.
12084
12085 2004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12086
12087 * xmenu.c (popup_get_selection): Pop down on C-g.
12088 (set_frame_menubar): Install translations for Lucid/Motif/Lesstif that
12089 pops down menu on C-g.
12090 (xdialog_show): If dialog popped down and no button in the dialog was
12091 pushed, call Fsignal to quit.
12092 (xmenu_show): In no toolkit version, if menu returns NO_SELECT call
12093 Fsignal to quit.
12094
12095 * xfns.c (Fx_file_dialog): Motif/Lesstif version: Pop down on C-g.
12096
12097 * gtkutil.c (xg_initialize): Install bindings for C-g so that
12098 dialogs and menus pop down.
12099
12100 2004-12-27 Kenichi Handa <handa@m17n.org>
12101
12102 * coding.c (code_convert_region): Fix calculation of `ratio'.
12103
12104 2004-12-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12105
12106 * gtkutil.c (update_frame_tool_bar): Make the value of
12107 tool-bar-button-margin control margins of images in tool bar.
12108
12109 * alloc.c (check_depth): New variable.
12110 (overrun_check_malloc, overrun_check_realloc): Only add
12111 overhead and write check pattern if check_depth is 1 (to handle
12112 recursive calls). Increase/decrease check_depth in entry/exit.
12113 (overrun_check_free): Only check for overhead if check_depth is 1.
12114 Increase/decrease check_depth in entry/exit.
12115
12116 2004-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12117
12118 * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK
12119 before touching input_available_clear_time, to avoid accessing it
12120 from multiple threads.
12121
12122 2004-12-23 Jason Rumney <jasonr@gnu.org>
12123
12124 * image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behaviour
12125 of JPEG library.
12126
12127 2004-12-22 Richard M. Stallman <rms@gnu.org>
12128
12129 * emacs.c (main): If batch mode, set Vundo_outer_limit to nil.
12130
12131 * lisp.h (Vundo_outer_limit): Fix decl.
12132
12133 * undo.c (Vundo_outer_limit): Replaces undo_outer_limit.
12134 Uses changed.
12135 (syms_of_undo): Initialize appropriately.
12136 (truncate_undo_list): If it's nil, there's no limit.
12137
12138 2004-12-22 Kenichi Handa <handa@m17n.org>
12139
12140 * xselect.c (Fx_get_cut_buffer_internal): Return a unibyte string.
12141
12142 2004-12-21 Richard M. Stallman <rms@gnu.org>
12143
12144 * eval.c (unwind_to_catch): Clear immediate_quit.
12145
12146 * xdisp.c (get_next_display_element): Display codes 8a0 and 8ad
12147 specially as `\ ' and `\-'.
12148
12149 * keyboard.c (kbd_buffer_store_event_hold):
12150 In the code for while-no-input, handle immediate_quit.
12151
12152 * alloc.c (Fgarbage_collect): Update call to truncate_undo_list.
12153 Call that at the very start.
12154 (undo_limit, undo_strong_limit, undo_outer_limit): Move to undo.c.
12155 (syms_of_alloc): Don't define undo-limit,
12156 undo-strong-limit and undo-outer-limit here.
12157
12158 * undo.c (truncate_undo_list): Return void.
12159 Take just one argument, the buffer.
12160 Make it current, and inhibit recursive GC.
12161 Access and update the undo list directly; return void.
12162 Refer to the undo...limit variables directly.
12163 Test undo_outer_limit only after counting the whole current command.
12164 When it's exceeded, call the function in undo-outer-limit-function.
12165 (undo_limit, undo_strong_limit, undo_outer_limit): From alloc.c.
12166 (Vundo_outer_limit_function): New variable.
12167 (syms_of_undo): Define undo-limit, undo-strong-limit
12168 and undo-outer-limit here, and undo-outer-limit-function.
12169 Doc fixes.
12170
12171 * lisp.h (truncate_undo_list): Update decl.
12172
12173 2004-12-21 Piet van Oostrum <piet@cs.uu.nl>
12174
12175 * fileio.c (Fread_file_name): Delete duplicates in
12176 file-name-history when history_delete_duplicates is true.
12177
12178 2004-12-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12179
12180 * macterm.c (mac_do_list_fonts): Fix memory leak.
12181
12182 2004-12-20 Richard M. Stallman <rms@gnu.org>
12183
12184 * regex.c (re_match_2_internal) <symend, wordend>:
12185 Fix calls to UPDATE_SYNTAX_TABLE_FORWARD.
12186
12187 2004-12-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12188
12189 * macterm.c (endif, x_font_name_to_mac_font_name):
12190 Use maccentraleurroman instead of maccentraleuropean
12191 (mac_c_string_match, mac_do_list_fonts): Speed up font search by
12192 quickly finding a specific font without needing regexps.
12193
12194 2004-12-15 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12195
12196 * syssignal.h: Declare main_thread.
12197 (SIGNAL_THREAD_CHECK): New macro.
12198
12199 * keyboard.c (input_available_signal): Move thread checking code
12200 to macro SIGNAL_THREAD_CHECK and call that macro.
12201 (interrupt_signal): Call SIGNAL_THREAD_CHECK.
12202
12203 * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.
12204
12205 * emacs.c: Define main_thread.
12206 (main): Initialize main_thread.
12207 (handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
12208 (memory_warning_signal): Call SIGNAL_THREAD_CHECK.
12209
12210 * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.
12211
12212 * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.
12213
12214 * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.
12215
12216 * process.c (send_process_trap, sigchld_handler):
12217 Call SIGNAL_THREAD_CHECK.
12218
12219 * data.c (arith_error): Call SIGNAL_THREAD_CHECK.
12220
12221 * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
12222
12223 * xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
12224 returning when xg_ignore_gtk_scrollbar is true.
12225
12226 2004-12-14 Kim F. Storm <storm@cua.dk>
12227
12228 * keyboard.c (read_char): Save and restore echo_string when
12229 handling input method.
12230
12231 2004-12-13 Richard M. Stallman <rms@gnu.org>
12232
12233 * eval.c (syms_of_eval) <quit-flag>: Doc fix.
12234
12235 * keyboard.c (Vthrow_on_input): New variable.
12236 (syms_of_keyboard): Defvar and initialize it.
12237 (kbd_buffer_store_event_hold): Handle Vthrow_on_input.
12238
12239 * lisp.h (QUIT): Check for Vthrow_on_input.
12240 (Vthrow_on_input): Declare it.
12241
12242 2004-12-13 Kim F. Storm <storm@cua.dk>
12243
12244 * xdisp.c (set_iterator_to_next): Reset stop_charpos after display
12245 vector.
12246
12247 2004-12-12 Richard M. Stallman <rms@gnu.org>
12248
12249 * indent.c (Fvertical_motion): Call move_it_by_lines even if LINES = 0.
12250
12251 * minibuf.c (Fall_completions): Add var `zero' and use it in loop.
12252 (Ftry_completion): Really use outer `zero'; eliminate inner one.
12253
12254 2004-12-12 Kenichi Handa <handa@m17n.org>
12255
12256 * term.c (encode_terminal_code): Fix previous change.
12257
12258 2004-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
12259
12260 * keyboard.c (handle_async_input): Remove pthread mutex handling.
12261 (input_available_signal): Move pthread thingy to !SYNC_INPUT branch.
12262
12263 * syntax.c (Fforward_word): Avoid non-idempotent side-effects
12264 in macro arguments.
12265
12266 * minibuf.c (Ftry_completion, Fall_completions): Don't use
12267 XFASTINT blindly.
12268
12269 * emacs.c (main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT.
12270
12271 2004-12-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12272
12273 * w32term.c (x_calc_absolute_position): Remove calculation of
12274 difference between inner and outer window. Don't subtract difference
12275 for left and top calculations.
12276
12277 * xterm.c (x_calc_absolute_position): Don't subtract outer_pixel_diff
12278 for left and top calculations. Remove call to x_real_positions.
12279 [Bug report by Drew Adams in November.]
12280 (x_check_expected_move): Do not set change_gravity to 1 when calling
12281 x_set_offset.
12282
12283 2004-12-08 Richard M. Stallman <rms@gnu.org>
12284
12285 * xdisp.c (get_next_display_element): Use `escape-glyph' for
12286 control chars and escaped octal codes.
12287 (Qescape_glyph): New variable.
12288 (syms_of_xdisp): Initialize it.
12289 (escape_glyph_face): New variable.
12290 (redisplay_window): Initialize it.
12291
12292 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
12293
12294 * image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE)
12295 (init_image): Use 1 rather than TRUE. TRUE's not always defined.
12296
12297 2004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12298
12299 * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
12300 reset_malloc_hooks.
12301
12302 * keyboard.c (handle_async_input, input_available_signal):
12303 Add ! defined (SYSTEM_MALLOC) around thread code.
12304
12305 * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
12306
12307 2004-12-07 Stefan Monnier <monnier@iro.umontreal.ca>
12308
12309 * eval.c (init_eval_once): Increase max_specpdl_size to 1000.
12310
12311 * config.in: Regenerate.
12312
12313 2004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12314
12315 * xmenu.c (Fx_popup_menu): Correct documentation about position.
12316 (xmenu_show): Do not call XTranslateCoordinates. Adjust position
12317 if not given by a mouse click to correspond with x-popup-menu
12318 documentation.
12319
12320 * config.in: Regenerate.
12321
12322 * gtkutil.c: Include signal.h and syssignal.h.
12323 (xg_get_file_name): Block and unblock __SIGRTMIN if defined.
12324
12325 * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
12326 new variables main_thread and alloc_mutex,
12327 define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
12328 emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
12329 If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same
12330 as (UN)BLOCK_INPUT.
12331 (emacs_blocked_free, emacs_blocked_malloc)
12332 (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
12333 (uninterrupt_malloc): Initialize main_thread and alloc_mutex.
12334 (reset_malloc_hooks): New function.
12335
12336 * lisp.h: Declare reset_malloc_hooks.
12337
12338 * emacs.c (Fdump_emacs): Call reset_malloc_hooks.
12339
12340 * keyboard.c: Conditionally include pthread.h.
12341 (handle_async_input, input_available_signalt): If not in the main
12342 thread, block signal, send signal to main thread and return.
12343
12344 * gtkutil.c (xg_get_file_with_chooser): Handle local files only.
12345 Set current folder in file chooser if default_filename is a directory.
12346
12347 2004-12-05 Stefan Monnier <monnier@iro.umontreal.ca>
12348
12349 * regex.c (GET_UNSIGNED_NUMBER): Signal an error when reaching the end.
12350 Remove redundant correctness checks.
12351 (regex_compile): Fix up error codes for \{..\} expressions.
12352
12353 2004-12-05 Richard M. Stallman <rms@gnu.org>
12354
12355 * regex.c (regex_compile): Fix end-of-pattern case for space.
12356
12357 2004-12-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12358
12359 * macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
12360 * mac.c (cfstring_create_with_utf8_cstring): Add to prevent
12361 crashes with invalid characters.
12362 * macmenu.c (add_menu_item): Use it.
12363 * image.c (image_load_quartz2d): Likewise.
12364 * macfns.c (x_set_name, x_set_title): Likewise.
12365 (Fx_file_dialog): Likewise. Use constant CFRefs instead of
12366 creating them each time for labels.
12367
12368 2004-12-02 Richard M. Stallman <rms@gnu.org>
12369
12370 * config.in (RE_TRANSLATE_P): If make_number is not a macro,
12371 don't use it here.
12372
12373 * eval.c (Fcalled_interactively_p): Don't check INTERACTIVE.
12374 (interactive_p): Skip Scalled_interactively_p frames
12375 like Sinteractive_p frames.
12376 (unwind_to_catch): Clear handling_signal.
12377
12378 * data.c (Fmake_variable_buffer_local): Doc fix.
12379 (Fmake_local_variable): Doc fix.
12380
12381 * insdel.c (insert_from_string_before_markers)
12382 (insert_from_string): Don't modify buffer on empty insertion.
12383
12384 * window.c (Fget_lru_window, Fget_largest_window): Doc fixes.
12385
12386 2004-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12387
12388 * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
12389 menu text as UTF8 fails.
12390
12391 2004-12-01 Kim F. Storm <storm@cua.dk>
12392
12393 * alloc.c: Add commentary for last change.
12394 (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
12395 sizeof(size_t) != 4.
12396 (overrun_check_malloc, overrun_check_realloc, overrun_check_free):
12397 Use them. Also clear header and trailer of freed memory.
12398 (GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
12399 (string_overrun_cookie): Rename from string_overrun_pattern.
12400 (GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
12401
12402 2004-12-01 Andreas Schwab <schwab@suse.de>
12403
12404 * lisp.h: Declare string_to_multibyte.
12405
12406 2004-12-01 Kenichi Handa <handa@m17n.org>
12407
12408 * w32console.c (w32con_write_glyphs): Decide coding here.
12409 Adjusted for the change of encode_terminal_code.
12410
12411 * term.c (encode_terminal_code): Don't make it "static".
12412
12413 2004-11-30 Kenichi Handa <handa@m17n.org>
12414
12415 * term.c (encode_terminal_buf, encode_terminal_bufsize): New variables.
12416 (encode_terminal_code): Argument changed. Encode all
12417 characters at once, and return a pointer to the result of encoding.
12418 (write_glyphs): Decide coding here. Adjusted for the above change.
12419 (insert_glyphs): Likewise.
12420 (term_init): Initialize encode_terminal_bufsize to 0.
12421
12422 * coding.c (Vcode_conversion_workbuf_name): New variable.
12423 (syms_of_coding): Initialize and staticpro it.
12424 (set_conversion_work_buffer): New function.
12425 (run_pre_post_conversion_on_str): Use it.
12426 (run_pre_write_conversin_on_c_str): New function.
12427
12428 * coding.h (run_pre_write_conversin_on_c_str): Extern it.
12429
12430 2004-11-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12431
12432 * keyboard.c: Don't undef SIGIO
12433 * s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
12434 * Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
12435 (macfns.o): Don't depend on ccl.h.
12436 * macfns.c (mac_frame_parm_handlers): Set handlers for
12437 Qleft_fringe and Qright_fringe.
12438 * macterm.c (mac_fill_rectangle_to_pixmap)
12439 (mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
12440 (mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
12441 Put in #if 0.
12442 (mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
12443 (x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
12444 (XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
12445 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
12446 [!MAC_OS8]: Added ifdef'd out code for os8. Don't use
12447 XDrawImageString. Always draw background and foreground separately.
12448 (x_draw_image_foreground): Use clipping instead of computing the
12449 intersection rectangle.
12450 (x_draw_image_glyph_string): Don't draw an image with mask to a
12451 pixmap.
12452 (x_redisplay_interface): Set flush_display_optional member to 0.
12453 (XTread_socket): Correctly reset the TEConverter
12454 object.
12455
12456 2004-11-30 Kim F. Storm <storm@cua.dk>
12457
12458 * lisp.h: New defines to enable buffer overrun checking.
12459 (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
12460 (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
12461
12462 * alloc.c: Add more checks for buffer overruns.
12463 (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
12464 xmalloc_overrun_check_trailer, overrun_check_malloc)
12465 overrun_check_realloc, overrun_check_free): Add.
12466 (GC_STRING_EXTRA, string_overrun_pattern): Add.
12467 (check_sblock, allocate_string_data, compact_small_strings):
12468 Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
12469 (check_cons_list): Condition on GC_CHECK_CONS_LIST.
12470 (check_string_free_list): Add.
12471 (allocate_string, sweep_strings): Call check_string_free_list.
12472
12473 * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if
12474 XMALLOC_OVERRUN_CHECK to avoid crash during load.
12475
12476 2004-11-29 Kim F. Storm <storm@cua.dk>
12477
12478 * fns.c (concat): Use SAFE_ALLOCA.
12479
12480 2004-11-29 Stefan Monnier <monnier@iro.umontreal.ca>
12481
12482 * sysdep.c (emacs_write): Don't use QUIT.
12483
12484 2004-11-29 Kenichi Handa <handa@m17n.org>
12485
12486 * buffer.c (init_buffer): Set current_buffer->directory to a
12487 multibyte string made by string_to_multibyte.
12488
12489 * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
12490
12491 2004-11-27 Andreas Schwab <schwab@suse.de>
12492
12493 * alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined.
12494
12495 * s/gnu-linux.h: Enable no-op gcpros on ia64.
12496 (GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
12497
12498 * filelock.c (lock_file_1): Call get_boot_time early.
12499 Increase buffer size.
12500
12501 2004-11-27 Eli Zaretskii <eliz@gnu.org>
12502
12503 * lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN
12504 is not defined.
12505
12506 2004-11-27 Kim F. Storm <storm@cua.dk>
12507
12508 * search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:'
12509 marker out of doc string.
12510
12511 2004-11-26 Stefan Monnier <monnier@iro.umontreal.ca>
12512
12513 * s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25,
12514 which was not mentioned in the log.
12515
12516 2004-11-26 Kim F. Storm <storm@cua.dk>
12517
12518 * fringe.c (update_window_fringes): Prefer truncation bitmaps over
12519 angle bitmaps at top/bottom line.
12520
12521 * xdisp.c: Undo recent changes for restoring saved_face_id. Instead,
12522 set it when it->method is set to next_element_from_display_vector.
12523 (setup_for_ellipsis): Add LEN argument. Callers changed.
12524 Set it->saved_face_id.
12525 (get_next_display_element): Use loop instead of recursion.
12526 Set it->saved_face_id. Combine duplicate code for ctr chars.
12527 (next_element_from_display_vector): Do not set it->saved_face_id.
12528 (next_element_from_ellipsis): Use setup_for_ellipsis.
12529
12530 2004-11-26 Eli Zaretskii <eliz@gnu.org>
12531
12532 * eval.c (Fdefvar): Declare pdl from last change as `volatile' to
12533 prevent compiler warnings.
12534
12535 2004-11-25 Stefan Monnier <monnier@iro.umontreal.ca>
12536
12537 * keyboard.c (command_loop_1): Print a message describing the key
12538 the user just pressed when this key has no binding.
12539
12540 * sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
12541 (emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
12542
12543 * lread.c (readchar): Check QUIT when `getc' is interrupted.
12544
12545 2004-11-24 Richard M. Stallman <rms@gnu.org>
12546
12547 * coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
12548
12549 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
12550
12551 2004-11-24 Kim F. Storm <storm@cua.dk>
12552
12553 * xdisp.c (move_it_in_display_line_to, display_line):
12554 Restore saved_face_id also when truncate-lines or hscrolled.
12555
12556 2004-11-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12557
12558 * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
12559 x-use-old-gtk-file-dialog.
12560
12561 * xfns.c: Define x_use_old_gtk_file_dialog.
12562 (syms_of_xfns): Rename use-old-gtk-file-dialog to x-... Move it
12563 outside ifdef USE_GTK.
12564
12565 2004-11-23 Stefan Monnier <monnier@iro.umontreal.ca>
12566
12567 * coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
12568 Don't use XFASTINT blindly.
12569
12570 * config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly.
12571
12572 * indent.c (skip_invisible): Avoid non-idempotent side-effects
12573 in macro arguments.
12574
12575 * keymap.c (Flookup_key): Check INTEGERP before XINT.
12576
12577 * lread.c (oblookup): Don't use XFASTINT blindly.
12578
12579 * window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int.
12580 (decode_next_window_args, window_loop): Don't use XFASTINT blindly.
12581
12582 2004-11-23 Kim F. Storm <storm@cua.dk>
12583
12584 * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
12585 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
12586
12587 * xfaces.c (lookup_named_face): Add signal_p arg. Return -1 if
12588 signal_p is zero and face name is unknown.
12589 (Fx_list_fonts): Don't signal error in lookup_named_face.
12590 (Fface_font): Signal error in lookup_named_face.
12591 (ascii_face_of_lisp_face): Likewise.
12592
12593 * dispextern.h (lookup_named_face): Fix prototype.
12594
12595 * xdisp.c (handle_single_display_prop): Don't signal error in
12596 lookup_named_face for unknown fringe face name.
12597 (highlight_trailing_whitespace): Don't signal error in
12598 lookup_named_face if trailing-whitespace face unknown.
12599 (calc_line_height_property): Don't signal error in
12600 lookup_named_face if specified face name is unknown.
12601
12602 * fringe.c (update_window_fringes): Show top row indicator if
12603 window has header-line. Don't show arrow at bob and eob
12604 if the boundary indicators are not used.
12605 (Fset_fringe_bitmap_face): Signal error in lookup_named_face.
12606
12607 * window.c (set_window_buffer): Clear display_error_modiff.
12608
12609 2004-11-22 Kim F. Storm <storm@cua.dk>
12610
12611 * fringe.c (update_window_fringes): Provide sensible fall-back
12612 value for non-nil indicate-buffer-boundaries setting.
12613
12614 2004-11-22 Markus Rost <rost@ias.edu>
12615
12616 * minibuf.c (Fminibuffer_complete_and_exit): Fix previous change.
12617
12618 2004-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
12619
12620 * eval.c (Fdefvar): Warn when var is let-bound but globally void.
12621
12622 2004-11-21 Kim F. Storm <storm@cua.dk>
12623
12624 * xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA.
12625
12626 * xterm.c (x_clip_to_row): Add area arg. Callers changed.
12627 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
12628
12629 * w32term.c (w32_clip_to_row): Add area arg. Callers changed.
12630 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
12631
12632 * macterm.c (x_clip_to_row): Add area arg. Callers changed.
12633 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
12634
12635 * xdisp.c (move_it_in_display_line_to, display_line):
12636 Restore saved_face_id if overflow-newline-into-fringe is enabled and
12637 line is continued before or in middle of element from display vector.
12638
12639 * indent.c (Fvertical_motion): Fix last change. Use another
12640 method to detect if iterator moved too far ahead after reseat.
12641
12642 * xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro. Do not
12643 expand matrix width for overflow in zero-width area.
12644 (append_glyph, append_composite_glyph, produce_image_glyph)
12645 (append_stretch_glyph): Use it to avoid loop in redisplay.
12646 (note_mode_line_or_margin_highlight): Don't let help-echo from
12647 string override help-echo from image map.
12648
12649 2004-11-20 Luc Teirlinck <teirllm@auburn.edu>
12650
12651 * fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument.
12652 * callint.c (Fcall_interactively): Ditto.
12653
12654 2004-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
12655
12656 * minibuf.c (Fminibuffer_complete_and_exit):
12657 Fixup the case of the completed value, for case-indep completion.
12658
12659 2004-11-20 Richard M. Stallman <rms@gnu.org>
12660
12661 * lisp.h (Fread_from_minibuffer): Add arg in decl.
12662
12663 * minibuf.c (read_minibuf): New arg KEEP_ALL. Callers changed.
12664 (Fread_from_minibuffer): New arg KEEP_ALL. Callers changed.
12665
12666 * search.c (Vsearch_spaces_regexp):
12667 Rename from Vsearch_whitespace_regexp. All uses changed.
12668
12669 2004-11-20 Thien-Thi Nguyen <ttn@gnu.org>
12670
12671 * eval.c (init_eval_once): Increase `max_specpdl_size' to 650.
12672
12673 2004-11-19 Richard M. Stallman <rms@gnu.org>
12674
12675 * search.c (Vsearch_whitespace_regexp): New variable.
12676 (syms_of_search): Defvar it.
12677 (compile_pattern_1): Call re_set_whitespace_regexp with it.
12678 (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
12679 is non-nil.
12680 (struct regexp_cache): New element whitespace_regexp.
12681 (syms_of_search): Initialize whitespace_regexp elements.
12682 (compile_pattern): Compare whitespace_regexp elements.
12683 (compile_pattern_1): Set whitespace_regexp elements.
12684
12685 * regex.c (regex_compile): Substitute whitespace_regexp
12686 for spaces, if it is nonzero.
12687 (whitespace_regexp): New variable.
12688 (re_set_whitespace_regexp): New function.
12689
12690 2004-11-19 Kim F. Storm <storm@cua.dk>
12691
12692 * indent.c (Fvertical_motion): Fix last change.
12693
12694 2004-11-18 Kim F. Storm <storm@cua.dk>
12695
12696 * indent.c (Fvertical_motion): Undo 2004-11-16 change.
12697 Instead, move back again if reseating moves too far ahead.
12698
12699 2004-11-17 Luc Teirlinck <teirllm@auburn.edu>
12700
12701 * xdisp.c (message3): Call clear_message.
12702
12703 2004-11-17 Kim F. Storm <storm@cua.dk>
12704
12705 * xdisp.c (erase_phys_cursor): Adjust cursor row visible height.
12706
12707 2004-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12708
12709 * gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW.
12710
12711 * xmenu.c (x_menu_in_use): Remove.
12712 (x_menu_set_in_use): Also set popup_activated_flag.
12713
12714 * xfns.c (Fx_file_dialog): Call popup_activated instead of
12715 x_menu_in_use. Call x_menu_set_in_use in Motif version also.
12716
12717 * xterm.h (x_menu_in_use): Remove.
12718
12719 2004-11-16 Richard M. Stallman <rms@gnu.org>
12720
12721 * keymap.c (Fmap_keymap): New arg SORT-FIRST.
12722 Use map-keymap-internal to implement that.
12723
12724 * indent.c (Fvertical_motion): In batch mode, use vmotion directly.
12725
12726 2004-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
12727
12728 * xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's
12729 a window before using XWINDOW.
12730
12731 * window.c (make_window, Fselect_window, make_dummy_parent)
12732 (save_window_save):
12733 * frame.c (make_frame):
12734 * fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments.
12735
12736 * lisp.h (NILP): Use EQ rather than XFASTINT.
12737
12738 2004-11-16 Kim F. Storm <storm@cua.dk>
12739
12740 * fringe.c (Fdefine_fringe_bitmap): Always set 'h'. Simplify.
12741
12742 * indent.c (Fvertical_motion): Fix last change. Only reseat when
12743 moving backwards.
12744
12745 2004-11-16 Luc Teirlinck <teirllm@auburn.edu>
12746
12747 * dispextern.h: Extern reseat_at_previous_visible_line_start.
12748
12749 2004-11-16 Kenichi Handa <handa@m17n.org>
12750
12751 * xdisp.c (display_mode_element): Fix previous change (calculate
12752 end position of substring to display correctly).
12753
12754 2004-11-16 Kim F. Storm <storm@cua.dk>
12755
12756 * keyboard.c (Fposn_at_point): Remove extra */ after doc string.
12757 Reported by Andrew M. Scott.
12758
12759 2004-11-15 Kim F. Storm <storm@cua.dk>
12760
12761 * fns.c (Fsafe_plist_get): New defun.
12762 (syms_of_fns): Defsubr it.
12763
12764 * lisp.h (Fsafe_plist_get): Add EXFUN.
12765
12766 * xdisp.c (store_mode_line_string, produce_stretch_glyph):
12767 Use Fsafe_plist_get.
12768 (note_mode_line_or_margin_highlight, note_mouse_highlight):
12769 Fix image map element parsing. Use Fsafe_plist_get.
12770
12771 2004-11-15 Richard M. Stallman <rms@gnu.org>
12772
12773 * xdisp.c (get_next_display_element): Fix previous change.
12774
12775 2004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12776
12777 * window.c (shrink_windows): Handle special case of one window left
12778 when trying to shrink the final reminder. Grow windows if
12779 total_removed is less than total_shrink.
12780
12781 * xmenu.c (pop_down_menu): Remove global variable current_menu,
12782 extract pointer from arg with XSAVE_VALUE.
12783 (create_and_show_popup_menu, create_and_show_dialog, xmenu_show):
12784 Construct arg to record_unwind_protect with make_save_value.
12785
12786 2004-11-13 Richard M. Stallman <rms@gnu.org>
12787
12788 * xdisp.c (reseat_at_previous_visible_line_start): No longer static.
12789 (get_next_display_element): Fix previous change to apply only to \n.
12790
12791 * indent.c (Fvertical_motion): Scan to PT from start of line to
12792 make iterator consistent.
12793
12794 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
12795
12796 2004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12797
12798 * gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT.
12799
12800 * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
12801 Record unwind with clean_up_file_dialog.
12802
12803 * xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event):
12804 Declare.
12805
12806 * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
12807
12808 2004-11-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12809
12810 * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
12811 (xg_file_sel_destroy): Remove.
12812 (xg_file_response_cb, pop_down_file_dialog)
12813 (xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
12814 New functions.
12815 (xg_get_file_with_chooser, xg_get_file_with_selection):
12816 Take new arg func, set it to xg_get_file_name_from_chooser/selector.
12817 Move common code to xg_get_file_name. Return widget created.
12818 (xg_get_file_name): Set name, transient for, modal and destroy
12819 with parent here. Connect response signal to xg_file_response_cb,
12820 connect delete-event to gtk_true. Record pop_down_file_dialog
12821 for unwind. Do event loop and call x_menu_wait_for_event in loop.
12822 (xg_create_widget): Make dialogs modal.
12823
12824 * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
12825 Lisp_Object.
12826 (popup_get_selection): Move unwind protect ...
12827 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
12828 Move destroy of widget to pop_down_menu.
12829 (popup_widget_loop): Move unwind protect ...
12830 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
12831 Move destroy of widget to pop_down_menu.
12832 (pop_down_menu): BLOCK_INPUT and destroy widget/window.
12833 (xmenu_show): Record unwind pop_down_menu. Move XMenuDestroy,
12834 x_mouse_leave and grabbed = 0 to pop_down_menu.
12835
12836 2004-11-13 Kim F. Storm <storm@cua.dk>
12837
12838 * xdisp.c (make_cursor_line_fully_visible_p): New variable.
12839 (syms_of_xdisp): DEFVAR_BOOL it.
12840 (make_cursor_line_fully_visible, try_cursor_movement)
12841 (try_window_id): Use it.
12842
12843 2004-11-12 Kim F. Storm <storm@cua.dk>
12844
12845 * dispextern.h (struct glyph_row): New member extra_line_spacing.
12846 (struct it): New member max_extra_line_spacing.
12847 (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
12848 (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
12849 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
12850 part of last line is only extra line spacing (so the text on the
12851 line is fully visible). Use helper macros.
12852 Add W arg (to use them). All callers changed.
12853 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
12854 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
12855
12856 * window.c (window_scroll_pixel_based, Frecenter):
12857 Use move_it_vertically_backward directly.
12858 (Frecenter): Fix calculation of new start pos for negative arg.
12859 Before, the new start pos was sometimes chosen too far back, so
12860 the last line became only partially visible, and thus would be
12861 either only semi-visible or automatically scrolled to the middle
12862 of the window by redisplay.
12863
12864 * xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
12865 (move_it_vertically_backward): Don't recure to move further back.
12866 (move_it_vertically): Remove superfluous condition.
12867 (move_it_by_lines): Clear last_height when moved 0 lines.
12868 (resize_mini_window): Use it.max_extra_line_spacing.
12869 (display_tool_bar_line): Clear row->extra_line_spacing.
12870 (try_scrolling): Use move_it_vertically_backward directly.
12871 (redisplay_window): Likewise.
12872 (compute_line_metrics): Set row->extra_line_spacing.
12873 (display_line, display_string): Likewise.
12874 (x_produce_glyphs): Update it->max_extra_line_spacing.
12875
12876 * xmenu.c (pop_down_menu): Return nil.
12877
12878 2004-11-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12879
12880 * xmenu.c (x_menu_wait_for_event): New function.
12881 (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
12882 to handle timers.
12883 (popup_widget_loop): Add argument do_timers.
12884 (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
12885 do_timers to popup_widget_loop.
12886 (xmenu_show): Call XMenuActivateSetWaitFunction so that
12887 x_menu_wait_for_event is called by XMenuActivate.
12888 (create_and_show_popup_menu): Pass 1 for do_timers to
12889 popup_get_selection.
12890 (pop_down_menu): New function.
12891 (popup_get_selection, popup_widget_loop): Unwind protect to
12892 pop_down_menu.
12893 (popup_widget_loop): Add argument widget.
12894 (create_and_show_popup_menu, create_and_show_dialog): Pass new
12895 argument widget to popup_widget_loop.
12896
12897 2004-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
12898
12899 * keymap.c (Fkeymap_prompt): Accept symbol keymaps.
12900
12901 2004-11-09 Kim F. Storm <storm@cua.dk>
12902
12903 * xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
12904 Fix various comments referring to XEvents instead of input events.
12905 (x_queue_event): Fix format strings.
12906 (x_stop_queuing_selection_requests): Likewise.
12907
12908 * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
12909 (pint2hrstr): Add extra braces to silence compiler.
12910
12911 * print.c (print_object): Fix format string.
12912
12913 * lread.c (read1): Fix next_char matching.
12914
12915 * lisp.h (Fdelete): Add EXFUN.
12916 (replace_range_2): Add prototype.
12917
12918 * keyboard.c (read_avail_input): Remove unused variable 'discard'.
12919
12920 * intervals.h (NULL_INTERVAL_P): Add separate version when
12921 ENABLE_CHECKING is not defined to silence compiler.
12922 (compare_string_intervals): Add prototype.
12923
12924 * fringe.c (destroy_fringe_bitmap): Fix return type.
12925 (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
12926
12927 * emacs.c (Fdump_emacs): Fix format string.
12928
12929 * doc.c: Include <ctype.h>.
12930 (Fsubstitute_command_keys): Remove unused variable 'firstkey'.
12931
12932 * data.c (store_symval_forwarding): Remove unused variables.
12933
12934 * callint.c (Fcall_interactively): Remove unused variable 'funcar'.
12935
12936 2004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12937
12938 * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
12939 to ${OLDXMENU}.
12940
12941 2004-11-09 Kim F. Storm <storm@cua.dk>
12942
12943 * process.c (Fmake_network_process): Remove kludge for interrupted
12944 connects on BSD. If connect is interrupted, just close socket and
12945 start over rather than sleeping and retry with same socket.
12946
12947 2004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12948
12949 * .cvsignore: Add buildobj.lst.
12950
12951 * doc.c: New variable Vbuild_files.
12952 (Fsnarf_documentation): If Vbuild_files is nil, populate it with
12953 file names from buildobj.lst. Only attach docstrings from files
12954 that are in Vbuild_files.
12955 (syms_of_doc): Defvar Vbuild_files.
12956
12957 * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
12958 and w32*.o.
12959 (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
12960 (mostlyclean): Rm buildobj.lst.
12961
12962 * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
12963 is linked.
12964
12965 2004-11-09 Kim F. Storm <storm@cua.dk>
12966
12967 * fringe.c (update_window_fringes): Update fringe bitmaps if
12968 cur and row ends_at_zv_p differs. If bitmaps of a row is updated,
12969 also update previous row to get rid of misc. artifacts.
12970
12971 2004-11-08 Kim F. Storm <storm@cua.dk>
12972
12973 * xdisp.c (fast_find_position): Fix start pos if header line present.
12974 (note_mouse_highlight): Clear mouse face if we move out of text area.
12975
12976 2004-11-08 Eli Zaretskii <eliz@gnu.org>
12977
12978 * editfns.c: Move #include "systime.h" before <sys/resource.h>.
12979 Don't include <sys/time.h> explicitly.
12980 Include <stdio.h> unconditionally, not just on MacOS.
12981
12982 2004-11-08 Kenichi Handa <handa@m17n.org>
12983
12984 * fontset.c (fontset_pattern_regexp): Cancel my previous change;
12985 don't pay attention to '\' before '*'.
12986 (fontset_pattern_regexp): Change the meaning of the second arg.
12987 (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
12988 (check_fontset_name): Try NAME as literal at first, and if it
12989 failes, try NAME as pattern.
12990
12991 2004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12992
12993 * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
12994
12995 2004-11-07 Andreas Schwab <schwab@suse.de>
12996
12997 * lisp.h (Fmsdos_downcase_filename): Declare.
12998 * dired.c (Fmsdos_downcase_filename): Don't declare here.
12999 * fileio.c: Likewise.
13000
13001 2004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13002
13003 * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
13004 comparisons with integers instead of Lisp_Object address.
13005 (Fmsdos_set_keyboard): Declare argument allkeys.
13006
13007 * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
13008
13009 * dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid
13010 int/Lisp_Object mixup.
13011
13012 * fileio.c: Ditto.
13013
13014 2004-11-06 Steven Tamm <steventamm@mac.com>
13015
13016 * editfns.c: Need to include sys/time.h before resource.h on darwin.
13017
13018 2004-11-06 Richard M. Stallman <rms@gnu.org>
13019
13020 * callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
13021
13022 * xfaces.c (merge_named_face): GCPRO the face_name in the
13023 named_merge_point struct that we make.
13024 (merge_face_heights): Eliminate GCPRO arg. All callers changed.
13025
13026 * keyboard.c (command_loop_1): Change Vtransient_mark_mode
13027 before deciding whether to inactivate mark.
13028
13029 2004-11-06 Lars Brinkhoff <lars@nocrew.org>
13030
13031 * config.in: Regenerate (add HAVE_GETRUSAGE).
13032 * editfns.c (Fget_internal_run_time): New function.
13033 (syms_of_data): Defsubr it.
13034 * fns.c (sxhash): As far as possible, merge calculation of
13035 hash code for symbols and strings.
13036
13037 2004-11-06 Eli Zaretskii <eliz@gnu.org>
13038
13039 * frame.c (syms_of_frame): Fix the example in the doc string.
13040
13041 2004-11-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13042
13043 * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
13044
13045 * xmenu.c (popup_get_selection, create_and_show_popup_menu)
13046 (create_and_show_dialog): Revert change from 2004-10-31.
13047
13048 2004-11-05 Luc Teirlinck <teirllm@auburn.edu>
13049
13050 * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
13051
13052 2004-11-05 Kim F. Storm <storm@cua.dk>
13053
13054 * print.c (print_object): Print Lisp_Misc_Save_Value objects.
13055
13056 * fileio.c (Ffile_modes): Doc fix.
13057 (auto_save_1): Check for Ffile_modes nil value.
13058
13059 2004-11-05 Kim F. Storm <storm@cua.dk>
13060
13061 * xselect.c (struct selection_event_queue, selection_queue)
13062 (x_queue_selection_requests, x_queue_event)
13063 (x_start_queuing_selection_requests)
13064 (x_stop_queuing_selection_requests): Add new queue for selection
13065 input events to replace previous XEvent queue in xterm.c.
13066 (queue_selection_requests_unwind): Adapt to new queue.
13067 (x_reply_selection_request): Adapt to new queue.
13068 Unexpect wait_object in case of x errors (memory leak).
13069 (x_handle_selection_request, x_handle_selection_clear): Make static.
13070 (x_handle_selection_event): New function. May queue selection events.
13071 (wait_for_property_change_unwind): Use save_value instead of cons.
13072 Clear property_change_reply_object.
13073 (wait_for_property_change): Abort if already waiting.
13074 Use save_value instead of cons for unwind data.
13075 (x_handle_property_notify): Skip events already arrived, but don't
13076 free them, as "arrived" field is checked by wait_for_property_change,
13077 and it will be freed by unwind or explicit unexpect_property_change.
13078 (x_get_foreign_selection): Add to new queue.
13079 (receive_incremental_selection): Don't unexpect wait_object when done
13080 as it has already been freed by previous wait_for_property_change.
13081
13082 * xterm.h (x_start_queuing_selection_requests)
13083 (x_stop_queuing_selection_requests, x_handle_selection_request)
13084 (x_handle_selection_clear): Remove prototypes.
13085 (x_handle_selection_event): Add prototype.
13086
13087 * xterm.c (handle_one_xevent): Don't queue X selection events
13088 here, it may be too late if we start queuing after we have already
13089 stored some selection events into the kbd buffer.
13090 (struct selection_event_queue, queue, x_queue_selection_requests)
13091 (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
13092 (x_stop_queuing_selection_requests): Remove/move to xselect.c.
13093 (x_catch_errors_unwind): Block input around final XSync.
13094
13095 * keyboard.h (kbd_buffer_unget_event): Add prototype.
13096
13097 * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
13098 (kbd_buffer_unget_event): New function.
13099 (kbd_buffer_get_event, swallow_events): Combine SELECTION events
13100 and use x_handle_selection_event.
13101 (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
13102
13103 2004-11-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13104
13105 * xselect.c (TRACE3): New debug macro.
13106 (x_reply_selection_request): Use it.
13107 (receive_incremental_selection): In call to TRACE0, the name of
13108 a symbol is in xname.
13109
13110 2004-11-05 Kim F. Storm <storm@cua.dk>
13111
13112 * fontset.c (fontset_pattern_regexp): Use unsigned char.
13113
13114 2004-11-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13115
13116 * fileio.c (Fnext_read_file_uses_dialog_p): New function.
13117
13118 * gtkutil.h (use_old_gtk_file_dialog): Declare.
13119
13120 * gtkutil.c: Make use_old_gtk_file_dialog non-static.
13121 (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
13122 * xfns.c (syms_of_xfns): ... to here.
13123
13124 * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
13125 it doesn't start with /.
13126
13127 2004-11-04 Kenichi Handa <handa@m17n.org>
13128
13129 * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
13130 treat it as a literal character.
13131
13132 2004-11-03 Kim F. Storm <storm@cua.dk>
13133
13134 * .gdbinit (ppt): New function.
13135
13136 2004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13137
13138 * xterm.c (x_window_to_scroll_bar): Only call
13139 xg_get_scroll_id_for_window if toolkit scroll bars are used.
13140
13141 * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
13142 of save.
13143
13144 2004-11-02 Andreas Schwab <schwab@suse.de>
13145
13146 * window.c (Fscroll_right): Fix last change.
13147
13148 2004-11-02 Kim F. Storm <storm@cua.dk>
13149
13150 * Makefile.in (callproc.o): Depend on blockinput.h, atimer.h, systime.h.
13151
13152 2004-11-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13153
13154 * callproc.c (Fcall_process): Block input around vfork.
13155
13156 2004-11-02 Kim F. Storm <storm@cua.dk>
13157
13158 * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
13159 (syms_of_eval): Defsubr it.
13160
13161 2004-11-02 Richard M. Stallman <rms@gnu.org>
13162
13163 * insdel.c (replace_range_2): New function.
13164
13165 * casefiddle.c (casify_region): Handle changes in byte-length
13166 using replace_range_2.
13167
13168 * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
13169
13170 * xdisp.c (back_to_previous_visible_line_start):
13171 Subtract 1 from pos when checking previous newline for invisibility.
13172
13173 * window.c (window_scroll_pixel_based): Update preserve_y
13174 for header line if any.
13175 (Fscroll_left, Fscroll_right): Don't call interactive_p;
13176 use a new second argument instead.
13177
13178 * eval.c (Fcall_interactive_p): New function.
13179 (interactive_p): Don't test INTERACTIVE here.
13180 (Finteractive_p): Doc fix.
13181
13182 * eval.c (Feval): Abort if INPUT_BLOCKED_P.
13183
13184 2004-11-02 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
13185
13186 * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
13187 comparing font names.
13188
13189 2004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13190
13191 * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
13192 Fx_file_dialog if only directories should be read.
13193
13194 * lisp.h: Fx_file_dialog takes 5 parameters.
13195
13196 * xfns.c (Fx_file_dialog): Both Motif and GTK version:
13197 Add parameter only_dir_p.
13198 In Motif version, don't put DEFAULT_FILENAME in filter part of the
13199 dialog, just text field part. Do not add DEFAULT_FILENAME
13200 to list of files if it isn't there.
13201 In GTK version, pass only_dir_p parameter to xg_get_file_name.
13202
13203 * macfns.c (Fx_file_dialog): Add parameter only_dir_p.
13204 Check only_dir_p instead of comparing prompt to "Dired". When using
13205 a save dialog, add option kNavDontConfirmReplacement, change title
13206 to "Enter name", change text for save button to "Ok".
13207
13208 * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
13209 Check only_dir_p instead of comparing prompt to "Dired".
13210
13211 * gtkutil.c (xg_get_file_with_chooser, xg_get_file_with_selection):
13212 New functions, only defined ifdef HAVE_GTK_FILE_CHOOSER_DIALOG_NEW
13213 and HAVE_GTK_FILE_SELECTION_NEW respectively.
13214 (xg_get_file_name): Add parameter only_dir_p.
13215 Call xg_get_file_with_chooser or xg_get_file_with_selection
13216 depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
13217 (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
13218
13219 * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
13220
13221 * config.in: Rebuild (added HAVE_GTK_FILE_*).
13222
13223 2004-11-01 Kim F. Storm <storm@cua.dk>
13224
13225 * process.c (connect_wait_mask, num_pending_connects):
13226 Only declare and use them if NON_BLOCKING_CONNECT is defined.
13227 (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
13228 (IF_NON_BLOCKING_CONNECT): New helper macro.
13229 (wait_reading_process_output): Only declare and use local vars
13230 Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
13231
13232 2004-11-01 Andy Petrusenco <Igrek@star-sw.com> (tiny change)
13233
13234 * w32term.c (x_scroll_run): Delete region objects after use.
13235
13236 2004-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13237
13238 * xmenu.c: Add prototypes for forward function declarations.
13239 (popup_get_selection): Remove parameter do_timers, remove call to
13240 timer_check.
13241 (create_and_show_popup_menu, create_and_show_dialog):
13242 Remove parameter do_timers from call to popup_get_selection.
13243
13244 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
13245 tool_bar_items and assign the result to f->tool_bar_items if
13246 not equal. Move BLOCK/UNBLOCK_INPUT from around call to
13247 tool_bar_items to assignment of result.
13248
13249 * atimer.c (alarm_signal_handler): Do not call set_alarm if
13250 pending_atimers is non-zero.
13251
13252 2004-10-31 Kim F. Storm <storm@cua.dk>
13253
13254 * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
13255
13256 2004-10-28 Will <will@glozer.net>
13257
13258 * macterm.c: Allow user to assign key modifiers to the Mac Option
13259 key via a 'mac-option-modifier' variable.
13260
13261 2004-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
13262
13263 * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
13264 Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
13265 (x_handle_selection_request, x_handle_selection_clear)
13266 (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
13267
13268 2004-10-28 Richard M. Stallman <rms@gnu.org>
13269
13270 * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
13271
13272 * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
13273
13274 2004-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
13275
13276 * syntax.c (scan_sexps_forward): Give precedence to a 2-char
13277 comment-starter over a 1-char one.
13278
13279 2004-10-27 Richard M. Stallman <rms@gnu.org>
13280
13281 * xdisp.c (get_next_display_element): In mode lines,
13282 treat newline and tab like other control characters.
13283
13284 * editfns.c (Fmessage): Doc fix.
13285
13286 * indent.c (vmotion): When moving up, check the newline before.
13287 Make prevline an int, not a Lisp_Object.
13288
13289 2004-10-27 Kim F. Storm <storm@cua.dk>
13290
13291 * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
13292 Only allocate info and discarded tables once.
13293
13294 * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
13295 (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
13296 (SAFE_FREE): Test it to determine if we need to unwind to free.
13297 Remove size arg. All users changed.
13298 (SAFE_FREE_LISP): Remove. All users changed to use SAFE_FREE.
13299
13300 2004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13301
13302 * gtkutil.c: Put empty line between comment and function body.
13303 (xg_destroy_widgets): Rename from remove_from_container.
13304 Just destroy all widgets in list. Argument wcont removed.
13305 (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
13306 instead of remove_from_container.
13307 (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
13308 (free_frame_tool_bar): Add comment.
13309
13310 * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
13311 is not NULL before strcmp.
13312
13313 2004-10-26 Kim F. Storm <storm@cua.dk>
13314
13315 * callint.c (Fcall_interactively): Add 'U' code to get the
13316 up-event discarded by a previous 'k' or 'K' argument.
13317
13318 2004-10-26 David Kastrup <dak@gnu.org>
13319
13320 * buffer.c (syms_of_buffer): Fix a few typos.
13321
13322 2004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13323
13324 * xsmfns.c: Put empty line between comment and function body.
13325 Use two spaces before comment end.
13326
13327 2004-10-25 Kenichi Handa <handa@m17n.org>
13328
13329 * fontset.c (fontset_pattern_regexp): Optimize for the case that
13330 PATTERN is full XLFD.
13331
13332 2004-10-24 Kenichi Handa <handa@m17n.org>
13333
13334 * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
13335
13336 * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
13337 (regex_compile): Return REG_ERANGEX if appropriate.
13338
13339 2004-10-22 Kenichi Handa <handa@m17n.org>
13340
13341 * editfns.c (Ftranslate_region_internal): New function.
13342 (syms_of_editfns): Defsubr it.
13343
13344 2004-10-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13345
13346 * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
13347
13348 2004-10-21 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
13349
13350 * xterm.h (x_output): New member `xic_base_fontname'.
13351 (FRAME_XIC_BASE_FONTNAME): New macro.
13352 (xic_free_xfontset): Declare.
13353
13354 * xfns.c (xic_create_xfontset): Share fontsets between frames
13355 based on base_fontname.
13356 (xic_free_xfontset): New function.
13357 (free_frame_xic): Use it.
13358 (xic_set_xfontset): Ditto.
13359
13360 * xterm.c (xim_destroy_callback): Ditto.
13361
13362 2004-10-20 B. Anyos <banyos@freemail.hu> (tiny change)
13363
13364 * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
13365
13366 2004-10-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13367
13368 * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
13369 XSync.
13370
13371 * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
13372 New variables and constant.
13373 (main): Calculate heap_bss_diff. If we are dumping and the
13374 heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
13375 and exec ourself again.
13376 (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
13377 print a warning.
13378
13379 * lastfile.c: Make my_endbss and my_endbss_static available on all
13380 platforms.
13381
13382 * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
13383 * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
13384
13385 2004-10-19 Luc Teirlinck <teirllm@auburn.edu>
13386
13387 * data.c (Flocal_variable_if_set_p): Doc fix.
13388
13389 2004-10-19 Jason Rumney <jasonr@gnu.org>
13390
13391 * w32.c (init_environment): Set emacs_dir correctly when running
13392 emacs from the build directory.
13393
13394 2004-10-19 Richard M. Stallman <rms@gnu.org>
13395
13396 * editfns.c (Fdelete_and_extract_region):
13397 If region is empty, return null string.
13398
13399 2004-10-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13400
13401 * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
13402 and canon_width.
13403 (xg_frame_cleared): Remove.
13404
13405 * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
13406 (xg_find_top_left_in_fixed): Remove.
13407 (xg_create_scroll_bar): Put an event box widget between
13408 the scroll bar widget and the edit widget.
13409 (xg_show_scroll_bar): Show the parent widget (the event box).
13410 (xg_remove_scroll_bar): Destroy parent (the event box) also.
13411 (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
13412 Move the parent (the event box) widget inside the fixed widget.
13413 Move window clear to xterm.c.
13414
13415 * gtkutil.h (xg_frame_cleared): Remove.
13416
13417 * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
13418 (x_scroll_bar_create, XTset_vertical_scroll_bar):
13419 Remove arguments left and width to xg_update_scrollbar_pos.
13420 (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
13421
13422 2004-10-19 Kenichi Handa <handa@m17n.org>
13423
13424 * xdisp.c (display_mode_element): Fix display of wide chars.
13425
13426 2004-10-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13427
13428 * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
13429 gdk_window_clear and move gdk_window_process_all_updates after
13430 clear so events are sent to the X server in correct order.
13431
13432 2004-10-18 Kenichi Handa <handa@m17n.org>
13433
13434 * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
13435 comparing font names.
13436 (fs_query_fontset): Use fast_string_match for comparing fontset names.
13437 (list_fontsets): Likewise.
13438
13439 * search.c (fast_string_match_ignore_case): New function.
13440
13441 * lisp.h (fast_string_match_ignore_case): Extern it.
13442
13443 2004-10-17 Kim F. Storm <storm@cua.dk>
13444
13445 * xdisp.c (overlay_arrow_at_row): Return overlay string rather
13446 than bitmap if there is not left fringe.
13447 (get_overlay_arrow_glyph_row): Also used on windows system.
13448 (display_line): Display overlay string if no left fringe.
13449
13450 2004-10-16 Jason Rumney <jasonr@gnu.org>
13451
13452 * w32fns.c (w32_font_match): Encode font name being matched.
13453
13454 2004-10-16 Richard M. Stallman <rms@gnu.org>
13455
13456 * window.c (Fspecial_display_p): Doc fix.
13457
13458 2004-10-15 Stefan Monnier <monnier@iro.umontreal.ca>
13459
13460 * doc.c (Fsubstitute_command_keys): Fix remap-handling.
13461 Don't ignore menus, because where-is-internal already does it for us.
13462
13463 2004-10-15 Kim F. Storm <storm@cua.dk>
13464
13465 * xdisp.c (redisplay_window): Only update fringes and vertical
13466 border on window frames.
13467
13468 2004-10-14 Andreas Schwab <schwab@suse.de>
13469
13470 * m/ia64.h (DATA_SEG_BITS): Don't define.
13471
13472 2004-10-14 Kim F. Storm <storm@cua.dk>
13473
13474 * xterm.h: Include Xutil.h after keysym.h to work around bug
13475 in some X versions.
13476
13477 2004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
13478
13479 * fns.c (map_char_table): Add missing gcpros.
13480
13481 2004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
13482
13483 * keymap.c (get_keymap): An autoload form is not a keymap.
13484
13485 * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
13486
13487 2004-10-13 Kim F. Storm <storm@cua.dk>
13488
13489 * callproc.c (Fcall_process): Simplify handling of display arg.
13490 Resume `display_on_the_fly' once a coding system is determined.
13491
13492 * xdisp.c (redisplay_preserve_echo_area): Fix last change.
13493
13494 2004-10-12 Kim F. Storm <storm@cua.dk>
13495
13496 * xdisp.c (redisplay_preserve_echo_area): Flush display in case
13497 caller, such as call-process, is not going to poll for input.
13498 (calc_line_height_property): Handle case where it->object is nil.
13499
13500 * xterm.c (x_redisplay_interface): Fix flush_display_optional.
13501
13502 2004-10-12 Kenichi Handa <handa@m17n.org>
13503
13504 * xdisp.c (get_next_display_element):
13505 If unibyte_display_via_language_environment is zero, display 8-bit
13506 chars in octal in unibyte buffer.
13507
13508 2004-10-12 Kim F. Storm <storm@cua.dk>
13509
13510 * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
13511 are no ordinary bindings.
13512
13513 2004-10-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13514
13515 * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
13516
13517 2004-10-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13518
13519 * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
13520 (x_lower_frame): Add BLOCK_INPUT around SendBehind.
13521 (make_mac_frame): Add BLOCK_INPUT around the making of a
13522 terminal frame.
13523 (mac_initialize): Add BLOCK_INPUT around carbon initialization.
13524 * macgui.h (mktime): Use emacs_mktime.
13525 * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
13526 Make a cancel file-open dialog be like C-g.
13527 * mac.c (mktime): Use emacs_mktime.
13528 (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
13529 (Fmac_paste_function): Add better error handling for carbon cut/paste.
13530
13531 2004-10-10 Kim F. Storm <storm@cua.dk>
13532
13533 * keyboard.c (timer_resume_idle): New function to resume idle
13534 timer without resetting timers on the idle list.
13535 (read_char): Use timer_resume_idle. Remove local var last_idle_start.
13536 (timer_start_idle, timer_stop_idle): Declare static.
13537 (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
13538
13539 * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
13540
13541 2004-10-08 Steven Tamm <steventamm@mac.com>
13542
13543 * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
13544 * macterm.c (mac_check_for_quit_char): Remove warning for using
13545 NULL where 0 should be used.
13546 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
13547 objc/malloc.h
13548 * mac.c: Include time.h for Tiger compatibility.
13549
13550 2004-10-07 Kim F. Storm <storm@cua.dk>
13551
13552 * xdisp.c (redisplay_window): Fix flicker on vertical line between
13553 windows. Update vertical line after drawing window fringes, but
13554 only if actually drawing any bitmaps--or there is no fringe.
13555
13556 * xterm.c (x_update_window_end): Likewise.
13557 * macterm.c (x_update_window_end): Likewise.
13558 * w32term.c (x_update_window_end): Likewise.
13559
13560 * fringe.c (draw_window_fringes): Return value now indicates if
13561 any fringe bitmaps were redrawn (or there are no fringes).
13562
13563 * dispextern.h (draw_window_fringes): Update prototype.
13564
13565 2004-10-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13566
13567 * macfns.c (mac_get_window_bounds): Add extern.
13568 (x_real_positions): Use mac_get_window_bounds.
13569
13570 * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
13571 xmenu.c (YAILOM).
13572
13573 * macterm.c [!MAC_OSX]: Include Windows.h.
13574 (front_emacs_window): Rename from mac_front_window. All uses
13575 changed. Return the frontmost non-tooltip emacs window.
13576 (mac_get_window_bounds): New function.
13577 (x_calc_absolute_position): Use the difference of width and height
13578 between the inner and outer window.
13579 (x_set_offset): Specify window position by the coordinae of the
13580 outer window. Adjust the position if the title bar is completely
13581 outside the screen.
13582 (app_is_suspended, app_sleep_time): Remove unused variables.
13583 (do_app_resume, do_app_suspend): Remove their contents because
13584 window-activate/deactivate events will do the job.
13585 (do_zoom_window): Remove unused variables. Make compliant to the
13586 standard way of zooming. Set f->left_pos and f->top_pos.
13587 (XTread_socket): Don't use argument `expected'. Don't use
13588 FrontWindow to determine the clicked window. Exclude unprocessed
13589 mouseUp cases in the early stage. Add parentheses to fix operator
13590 precedence.
13591 (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
13592
13593 2004-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13594
13595 * config.in: Regenerate.
13596
13597 * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
13598 HAVE_EXECSHIELD.
13599
13600 2004-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13601
13602 * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
13603 a row if Alt or Meta has been found for that row. Also stop scanning
13604 for Keysyms for that row.
13605
13606 2004-10-04 Kim F. Storm <storm@cua.dk>
13607
13608 * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
13609 to list. Include overlay arrow bitmap in return value.
13610
13611 * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
13612 bars with fractional column width. If scroll bar separates two
13613 windows, move it towards the window it belongs to. Only update
13614 the padding area below the scroll bar widget when necessary,
13615 i.e. when scroll bar widget is created, moved, or resized.
13616
13617 * xdisp.c (define_frame_cursor1): Do not change frame cursor
13618 while tracking/dragging mouse.
13619 (x_draw_vertical_border): Do not draw line if frame has scroll bars.
13620
13621 * window.c (coordinates_in_window): Relax check for cursor
13622 on vertial border between mode lines.
13623 (Fset_window_fringes): Do not allow negative widths.
13624 (Fset_window_scroll_bars): Likewise.
13625
13626 * .gdbinit (pp): Shorthand for p ARG + pr.
13627 (ff): New command: flush frame updates (X only).
13628
13629 2004-10-03 Michael Albinus <michael.albinus@gmx.de>
13630
13631 * fileio.c (auto_save_1) Call Ffile_modes for remote files.
13632
13633 2004-09-30 Kenichi Handa <handa@m17n.org>
13634
13635 * process.c (send_process): Free composition data.
13636
13637 * fileio.c (Finsert_file_contents): Free composition data.
13638
13639 * coding.c (code_convert_region): Don't skip ASCIIs if there are
13640 compositions to encode.
13641 (encode_coding_string): Likewise. Free composition data.
13642
13643 2004-09-30 Florian Weimer <fw@deneb.enyo.de>
13644
13645 * coding.c (code_convert_region): Free composition data.
13646
13647 2004-09-29 Kim F. Storm <storm@cua.dk>
13648
13649 * fringe.c: Remove limit on number of bitmaps.
13650 (fringe_bitmaps, fringe_faces): Change to pointers.
13651 (max_fringe_bitmaps): New var.
13652 (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
13653 (init_fringe): Allocate fringe_bitmaps and fringe_faces.
13654
13655 * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
13656 (struct glyph_row): Reorder fringe_bitmap related fields.
13657 (struct it): Likewise.
13658
13659 * w32term.c (fringe_bmp): Change to pointer.
13660 (max_fringe_bmp): New var.
13661 (w32_define_fringe_bitmap): Expand fringe_bmp.
13662 (w32_draw_fringe_bitmap): Check max_fringe_bmp.
13663 (w32_destroy_fringe_bitmap): Likewise.
13664
13665 2004-09-29 Kim F. Storm <storm@cua.dk>
13666
13667 * fringe.c: Simplify last change.
13668 (lookup_fringe_bitmap): New function.
13669 (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
13670 (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
13671 Keep standard bitmaps in Vfringe_bitmaps.
13672 (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
13673 (Fset_fringe_bitmap_face): Likewise.
13674
13675 * dispextern.h (lookup_fringe_bitmap): Add prototype.
13676 (valid_fringe_bitmap_p): Remove prototype.
13677
13678 * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
13679
13680 2004-09-29 Kim F. Storm <storm@cua.dk>
13681
13682 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
13683 (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
13684
13685 * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
13686
13687 * fringe.c (Vfringe_bitmaps): New variable.
13688 (syms_of_fringe): DEFVAR_LISP it.
13689 (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
13690 Change arg to Lisp_Object and fail if not an integer.
13691 (get_fringe_bitmap_name, resolve_fringe_bitmap)
13692 (destroy_fringe_bitmap): New functions.
13693 (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
13694 Use destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and
13695 clear its fringe property.
13696 (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
13697 Fdestroy_fringe_bitmap.
13698 (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
13699 bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps
13700 and set fringe property. Signal error if no free slots.
13701 (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
13702 (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
13703
13704 * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
13705 symbols with a fringe property.
13706
13707 2004-09-27 Kim F. Storm <storm@cua.dk>
13708
13709 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
13710 Doc fix. Format may now be a symbol or alist, not a cons.
13711
13712 * fringe.c (update_window_fringes): Handle new formats of
13713 indicate-buffer-boundaries (symbol or alist). No longer
13714 allow a simple cons.
13715 (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
13716
13717 2004-09-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13718
13719 * config.in: Rebuild.
13720
13721 2004-09-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13722
13723 * config.in: Rebuild.
13724
13725 * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
13726
13727 2004-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
13728
13729 * xterm.c (x_term_init): Work around a bug in some X servers.
13730
13731 2004-09-18 Richard M. Stallman <rms@gnu.org>
13732
13733 * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
13734
13735 * xdisp.c (try_window_reusing_current_matrix):
13736 Handle the case where we reach the old displayed text,
13737 out of sync with the old line boundary.
13738
13739 2004-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
13740
13741 * fileio.c (Finsert_file_contents): Fix case of replacement in a
13742 narrowed buffer.
13743
13744 2004-09-14 Kim F. Storm <storm@cua.dk>
13745
13746 * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
13747
13748 * xfaces.c (Qface_no_inherit): New var.
13749 (syms_of_xfaces): Intern and staticpro it.
13750 (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
13751 (Finternal_copy_lisp_face, update_face_from_frame_parameter):
13752 Don't increment face_change_count when face has non-nil
13753 face-no-inherit property.
13754
13755 2004-09-13 Stefan Monnier <monnier@iro.umontreal.ca>
13756
13757 * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
13758 (Fbyte_code): Remove dead code after `wrong_type_argument'.
13759
13760 * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
13761 before doing the mark_stack_check_gcpros since they're not on the stack.
13762
13763 2004-09-12 Kim F. Storm <storm@cua.dk>
13764
13765 * editfns.c (Fformat): Handle format strings with multiple text
13766 properties. Reverse text property list from the format string,
13767 so the positions are in increasing order.
13768
13769 2004-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13770
13771 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
13772 x_uncatch_errors so that possible protocol errors are delivered.
13773
13774 2004-09-10 Eli Zaretskii <eliz@gnu.org>
13775
13776 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
13777 blockinput.h.
13778 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
13779 charset.h, and coding.h
13780 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
13781 (term.o): Depend on window.h and keymap.h.
13782 (abbrev.o): Depend on syntax.h.
13783 (callint.o): Depend on keymap.h.
13784 (casefiddle.o): Depend on charset.h and keymap.h.
13785 (category.o): Depend on keymap.h.
13786 (coding.o): Depend on dispextern.h.
13787 (cmds.o): Depend on keyboard.h and keymap.h.
13788 (dispnew.o): Depend on indent.h and intervals.h.
13789 (doc.o): Depend on keymap.h.
13790 (editfns.o): Depend on frame.h.
13791 (emacs.o): Depend on dispextern.h.
13792 (fileio.o): Don't depend on ccl.h.
13793 (filelock.o): Depend on charset.h and coding.h.
13794 (frame.o): Depend on w32term.h and macterm.h.
13795 (insdel.o): Depend on region-cache.h.
13796 (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
13797 (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
13798 (search.o): Depend on $(INTERVALS_SRC).
13799 (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
13800 (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
13801 xterm.h, w32term.h, and macterm.h.
13802 (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
13803 w32term.h, and macterm.h.
13804 (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
13805 region-cache.h, xterm.h, w32term.h, and macterm.h.
13806 (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
13807 (data.o): Depend on frame.h.
13808 (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
13809 (print.o): Depend on termchar.h and $(INTERVALS_SRC).
13810 (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
13811 (intervals.o): Depend on keymap.h.
13812
13813 * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
13814 Add debugging print-out to termscript.
13815
13816 2004-09-09 Richard M. Stallman <rms@gnu.org>
13817
13818 * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
13819
13820 2004-09-08 Richard M. Stallman <rms@gnu.org>
13821
13822 * window.c (Fset_window_buffer): Doc fix.
13823
13824 * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
13825
13826 2004-09-08 Dan Nicolaescu <dann@ics.uci.edu>
13827
13828 * minibuf.c (history_delete_duplicates): New variable.
13829 (read_minibuf): Use it.
13830 (syms_of_minibuf): Create the corresponding lisp variable.
13831
13832 2004-09-08 Kim F. Storm <storm@cua.dk>
13833
13834 * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
13835 overlay just before point.
13836
13837 2004-09-07 Luc Teirlinck <teirllm@auburn.edu>
13838
13839 * buffer.h (struct buffer): Add auto_save_file_format field.
13840 * buffer.c (reset_buffer, init_buffer_once):
13841 Handle auto_save_file_format field.
13842 (syms_of_buffer): Add DEFVAR_PER_BUFFER for
13843 `buffer-auto-save-file-format'.
13844 * fileio.c: Delete declaration for removed Vauto_save_file_format.
13845 (build_annotations): Adapt to replacement of
13846 `auto-save-file-format' with the new buffer-local variable
13847 `buffer-auto-save-file-format'.
13848 (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
13849
13850 2004-09-07 Jason Rumney <jasonr@gnu.org>
13851
13852 * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
13853
13854 * w32fns.c (w32_wnd_proc) <WM_MEASUREITEM, WM_DRAWITEM>:
13855 Handle Unicode menu titles.
13856
13857 2004-09-07 Kim F. Storm <storm@cua.dk>
13858
13859 * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor'
13860 property from text property or overlay strings at point.
13861
13862 2004-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
13863
13864 * xmenu.c (update_submenu_strings): YAILOM.
13865 (set_frame_menubar): Make sure last_i is initialized.
13866
13867 2004-09-03 Jason Rumney <jasonr@gnu.org>
13868
13869 * w32menu.c (_widget_value): Add lname and lkey.
13870 (digest_single_submenu): Set lname and lkey in widget_value
13871 instead of name and key.
13872 (update_submenu_strings): New function.
13873 (set_frame_menubar): Remove call to inhibit_garbage_collection,
13874 call update_submenu_strings.
13875
13876 * w32menu.c (globals_of_w32menu): Check for Unicode API.
13877 (digest_single_submenu, w32_menu_show): Encode menu strings as
13878 UTF-8 if Unicode API is available.
13879 (utf8to16): New function.
13880 (add_menu_item): Use it when calling Unicode API.
13881
13882 2004-09-03 Kim F. Storm <storm@cua.dk>
13883
13884 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
13885 in overlay or text-property strings; set cursor on corresponding
13886 glyph rather than at end of the string.
13887
13888 2004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13889
13890 * macfns.c (x_real_positions): Save the current window port and
13891 set a new one before obtaining the global coordinate.
13892 Use FRAME_MAC_WINDOW.
13893 (x_set_name, x_set_title): Encode title to UTF8.
13894 Use SetWindowTitleWithCFString.
13895 (Fx_server_version): Get correct OS version.
13896
13897 * macmenu.c (add_menu_item): Remove unused variable `i'.
13898 Don't let separator items destroy refence constants of other menu items.
13899
13900 * macterm.c (x_update_end): Move SetPortWindowPort to inside
13901 BLOCK_INPUT.
13902 (x_set_offset): Use FRAME_MAC_WINDOW.
13903
13904 * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
13905 nontext_cursor if it is on a scroll bar.
13906
13907 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
13908 Carbon support.
13909 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
13910 Use LIBS_CARBON.
13911
13912 2004-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13913
13914 * xfns.c (x_set_name_internal): New function. Check if we shall call
13915 xfree before ENCODE_UTF_8.
13916 (x_set_name, x_set_title): Call x_set_name_internal.
13917
13918 2004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
13919
13920 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
13921 reload it.
13922
13923 2004-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13924
13925 * macmenu.c (_widget_value): Add lname and lkey.
13926 (single_submenu): Set lname and lkey in widget_value
13927 instead of name and key.
13928 (update_submenu_strings): New function.
13929 (set_frame_menubar): Remove call to inhibit_garbage_collection,
13930 call update_submenu_strings.
13931
13932 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
13933 instead of name and key.
13934 (update_submenu_strings): New function.
13935 (set_frame_menubar): Remove call to inhibit_garbage_collection,
13936 call update_submenu_strings.
13937
13938 * gtkutil.h (_widget_value): Added lname and lkey.
13939
13940 2004-08-30 Steven Tamm <steventamm@mac.com>
13941
13942 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
13943 by using different names for inner loop variables.
13944
13945 2004-08-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13946
13947 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
13948 from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
13949
13950 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
13951 tool bar items is 0.
13952
13953 2004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13954
13955 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
13956 strings in menu items.
13957 (single_submenu): Use ENCODE_MENU_STRING
13958 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
13959 button release isn't passed to event loop
13960 (add_menu_item): Use SetMenuItemWithCFString.
13961
13962 2004-08-26 Steven Tamm <steventamm@mac.com>
13963
13964 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
13965 tool-bar/menu click.
13966 * macfns.c (Fx_file_dialog): Implement using NavServices.
13967
13968 2004-08-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13969
13970 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
13971
13972 * xfns.c (x_window_to_frame, x_any_window_to_frame)
13973 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
13974 (x_top_window_to_frame): Return 0 if wdesc is None.
13975
13976 2004-08-22 Richard M. Stallman <rms@gnu.org>
13977
13978 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
13979 HAVE_TERMIOS]: If there's no char for this signal, drop through
13980 and use system calls.
13981
13982 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
13983
13984 2004-08-20 Kim F. Storm <storm@cua.dk>
13985
13986 * process.c (wait_reading_process_output): Rename from
13987 wait_reading_process_input. All uses changed.
13988 (wait_reading_process_output_1): Rename from
13989 wait_reading_process_input_1. All uses changed.
13990
13991 * dispnew.c (Fsleep_for): Remove obsolete code.
13992
13993 2004-08-20 Kenichi Handa <handa@m17n.org>
13994
13995 * syntax.c (skip_chars): Fix for unibyte case.
13996
13997 2004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
13998
13999 * syntax.c (char_quoted): Mixup byte/char pos.
14000 (back_comment): Fixup globals in all cases.
14001
14002 2004-08-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14003
14004 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
14005 passing it to gtk_window_set_title.
14006
14007 2004-08-19 Kim F. Storm <storm@cua.dk>
14008
14009 * process.c (wait_reading_process_input): Clean up.
14010 Add wait_for_cell, wait_proc, and just_wait_proc args
14011 to avoid overloading `read_kbd' and `do_display' args.
14012 Change read_kbd arg to int. All callers changed.
14013
14014 * process.c (process_send_signal): Use CDISABLE.
14015
14016 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
14017
14018 2004-08-18 Kim F. Storm <storm@cua.dk>
14019
14020 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
14021 forward to wait_reading_process_input via DO_DISPLAY arg.
14022 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
14023 object, only process output from that process; also inhibit
14024 running timers if DO_DISPLAY==-2.
14025
14026 2004-08-17 Kim F. Storm <storm@cua.dk>
14027
14028 * process.c (process_send_signal): Fix last change--use
14029 _POSIX_VDISABLE instead of CVDISABLE when available.
14030
14031 2004-08-16 Richard M. Stallman <rms@gnu.org>
14032
14033 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
14034 Set VQUIT and VINTR chars to the standard ones if they are unset.
14035 [AIX]: Don't do that here. And don't force VINTR to standard
14036 when SIGNALS_VIA_CHARACTERS.
14037
14038 * process.c (process_send_signal)
14039 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
14040 Do nothing if the character is CVDISABLE.
14041
14042 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
14043
14044 * intervals.c (move_if_not_intangible):
14045 Force POSITION to be between BEGV and ZV.
14046
14047 2004-08-14 John Paul Wallington <jpw@gnu.org>
14048
14049 * buffer.c (Frestore_buffer_modified_p): Doc fix.
14050
14051 * fileio.c (Fread_file_name): Doc fix.
14052
14053 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
14054
14055 2004-08-09 Luc Teirlinck <teirllm@auburn.edu>
14056
14057 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
14058
14059 2004-08-08 Luc Teirlinck <teirllm@auburn.edu>
14060
14061 * keyboard.c: Declare Qdisabled_command_function instead of
14062 Qdisabled_command_hook.
14063 (Fcommand_execute): Use Qdisabled_command_function instead of
14064 Qdisabled_command_hook.
14065 (syms_of_keyboard): Ditto.
14066
14067 2004-08-07 Luc Teirlinck <teirllm@auburn.edu>
14068
14069 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
14070 (syms_of_keymap) <key-translation-map>: Doc fixes.
14071
14072 2004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
14073
14074 * window.c (window_list_1): YAILOM.
14075
14076 * fileio.c (make_temp_name): Handle multibyte prefixes.
14077
14078 2004-08-06 Luc Teirlinck <teirllm@auburn.edu>
14079
14080 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
14081 Doc fix.
14082
14083 2004-08-03 Kenichi Handa <handa@m17n.org>
14084
14085 * coding.c (decode_coding_string): Adjust coding->consumed, and
14086 etc. with shrinked_bytes.
14087
14088 2004-08-03 Kim F. Storm <storm@cua.dk>
14089
14090 * indent.c (compute_motion): Fix check for full width window
14091 in non-window case. Do not count left truncation glyph on
14092 window systems.
14093
14094 2004-08-02 Luc Teirlinck <teirllm@auburn.edu>
14095
14096 * data.c (Finteractive_form): Doc fix.
14097
14098 2004-08-02 Kim F. Storm <storm@cua.dk>
14099
14100 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
14101 properly accounting for continuation glyph on non-window systems.
14102 (Fcompute_motion): Use actual window width if WIDTH is nil, and
14103 actual window width/height if TOPOS is nil, properly accounting for
14104 continuation glyphs on non-window systems, and optional header lines.
14105 (vmotion): Let compute_motion calculate actual window width.
14106
14107 * window.c (window_scroll_line_based): Let compute_motion
14108 calculate actual window width.
14109
14110 2004-08-02 Kim F. Storm <storm@cua.dk>
14111
14112 * process.c (read_process_output): Use whole read buffer.
14113 Don't trigger adaptive read buffering on errors.
14114
14115 2004-07-31 Luc Teirlinck <teirllm@auburn.edu>
14116
14117 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
14118
14119 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
14120
14121 * callint.c (Fcall_interactively): Doc fix.
14122
14123 2004-07-30 Richard M. Stallman <rms@gnu.org>
14124
14125 * abbrev.c (Fexpand_abbrev): Undo previous change.
14126
14127 2004-07-30 Kim F. Storm <storm@cua.dk>
14128
14129 * editfns.c (Fformat): Allocate extra (dummy) element in info.
14130
14131 2004-07-28 Luc Teirlinck <teirllm@auburn.edu>
14132
14133 * eval.c (Fdefvar, Fdefconst): Doc fixes.
14134
14135 2004-07-27 Kim F. Storm <storm@cua.dk>
14136
14137 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
14138 we have ensured that the glyph fits on the current line (or returned
14139 MOVE_LINE_CONTINUED otherwise).
14140
14141 2004-07-26 Kim F. Storm <storm@cua.dk>
14142
14143 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
14144 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
14145 if target position is at end of display line but char is not a newline.
14146
14147 2004-07-25 Richard M. Stallman <rms@gnu.org>
14148
14149 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
14150 instead of ON_VERTICAL_BORDER, when on scroll bar.
14151 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
14152
14153 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
14154
14155 * window.c (Fcoordinates_in_window_p):
14156 Take account of FRAME_INTERNAL_BORDER_WIDTH.
14157
14158 * alloc.c (check_cons_list): New function (contents commented out).
14159
14160 2004-07-24 Luc Teirlinck <teirllm@auburn.edu>
14161
14162 * xfaces.c (Fcolor_supported_p): Doc fix.
14163
14164 * frame.c (Fselect_frame, Fset_frame_selected_window)
14165 (Fframe_visible_p, Fraise_frame): Doc fixes.
14166
14167 2004-07-24 Richard M. Stallman <rms@gnu.org>
14168
14169 * keyboard.h (not_single_kboard_state): Declare.
14170
14171 * fileio.c (Fwrite_region): Doc fix.
14172
14173 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
14174
14175 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
14176 only when a real abbrev is present.
14177
14178 * xfns.c (x_icon_verify): New function.
14179 (Fx_create_frame): Use it.
14180
14181 2004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
14182
14183 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
14184
14185 2004-07-21 Kim F. Storm <storm@cua.dk>
14186
14187 * window.h (struct glyph_matrix): New members nrows_scale_factor
14188 and ncols_scale_factor.
14189
14190 * window.c (make_window): Initialize nrows_scale_factor and
14191 ncols_scale_factor members.
14192
14193 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
14194 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
14195 (required_matrix_height): Apply nrows_scale_factor.
14196 (required_matrix_width): Apply ncols_scale_factor.
14197
14198 * xdisp.c (display_line): Increment nrows_scale_factor and set
14199 fonts_changed_p if past last allocated row.
14200 (append_glyph, append_composite_glyph, produce_image_glyph)
14201 (append_stretch_glyph): Increment ncols_scale_factor and set
14202 fonts_changed_p if current area is full.
14203
14204 2004-07-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14205
14206 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
14207
14208 2004-07-19 Luc Teirlinck <teirllm@auburn.edu>
14209
14210 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
14211 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
14212 (Fset_window_start, Fscroll_up, Fscroll_down)
14213 (Fother_window_for_scrolling, Fscroll_other_window)
14214 (Fsave_window_excursion, Fset_window_vscroll)
14215 (syms_of_window) <window-size-fixed>: Doc fixes.
14216
14217 2004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
14218
14219 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
14220 ENCODE_SYSTEM for filenames.
14221
14222 2004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14223
14224 * mac.c (sys_select): Block input around call to
14225 ReceiveNextEvent to prevent breakage. Correctly handle
14226 blocking on event queue only by calling ReceiveNextEvent
14227 instead of select (since GUI events aren't on an fd).
14228 (sys_read): Remove function
14229 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON.
14230
14231 2004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14232
14233 * mac.c (sys_select): Redo sys_select to use alarm-based
14234 polling instead of 1 sec timeouts (like solaris).
14235
14236 * macterm.c (x_make_frame_visible): Comment in polling on
14237 frame creation.
14238
14239 * keyboard.c: Undef SIGIO on Carbon.
14240
14241 * atimer.c (alarm_signal_handler): Call alarm handlers after
14242 scheduling.
14243
14244 * eval.c (Feval): Remove quit_char test.
14245
14246 * process.c (wait_reading_process_input): Remove clearing
14247 stdin for select call on process input.
14248
14249 2004-07-18 Luc Teirlinck <teirllm@auburn.edu>
14250
14251 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
14252 capitalization error in docstring.
14253
14254 2004-07-17 Juanma Barranquero <lektu@terra.es>
14255
14256 * keyboard.c (not_single_kboard_state): Do nothing unless
14257 MULTI_KBOARD is defined.
14258
14259 2004-07-17 Richard M. Stallman <rms@gnu.org>
14260
14261 * window.c (coordinates_in_window): Inside the window but outside
14262 its box to the L or R, return ON_VERTICAL_BORDER.
14263 (window_list_1): Rotate the list to start with WINDOW.
14264
14265 * print.c (print_preprocess): Test for print_depth at limit
14266 before entering in being_printed.
14267
14268 * keyboard.c (not_single_kboard_state): New function.
14269 (stuff_buffered_input): Now no-op only if no SIGTSTP.
14270
14271 * frame.c (Fdelete_frame): If we're in single_bboard_state on
14272 this kboard, and we delete its last frame, go to any_kboard_state.
14273
14274 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
14275
14276 2004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
14277
14278 * w32fns.c (Fx_file_dialog): Encode strings in system coding
14279 system before passing them to OS functions for display.
14280
14281 2004-07-15 David Kastrup <dak@gnu.org>
14282
14283 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
14284 Apparently fixes an abort condition.
14285
14286 2004-07-14 Luc Teirlinck <teirllm@auburn.edu>
14287
14288 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
14289 instead of a cons.
14290
14291 2004-07-14 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
14292
14293 * keyboard.c (echo_dash): Do nothing if there already is a dash
14294 at the end of the echo string.
14295
14296 2004-07-12 Kim F. Storm <storm@cua.dk>
14297
14298 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
14299 if GC_MARK_STACK.
14300
14301 2004-07-10 Luc Teirlinck <teirllm@auburn.edu>
14302
14303 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
14304
14305 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
14306 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
14307 (Freplace_buffer_in_windows, Fset_window_buffer)
14308 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
14309 (syms_of_window): Expand docstring of `display-buffer-function'.
14310
14311 2004-07-09 Luc Teirlinck <teirllm@auburn.edu>
14312
14313 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
14314 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
14315 that time values of the type (HIGH . LOW) are considered obsolete.
14316
14317 2004-07-06 Luc Teirlinck <teirllm@auburn.edu>
14318
14319 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
14320 docstring.
14321
14322 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
14323
14324 2004-07-06 John Paul Wallington <jpw@gnu.org>
14325
14326 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
14327
14328 * fns.c (Fclear_string): Signal an error if STRING is not a string.
14329
14330 2004-07-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14331
14332 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
14333 instead of CGMainDisplayID (only in OSX 10.2 and later).
14334
14335 2004-07-04 John Paul Wallington <jpw@gnu.org>
14336
14337 * fileio.c (read_file_name_completion_ignore_case): New variable.
14338 (syms_of_fileio): Declare and initialise it.
14339 (Fread_file_name): Bind `completion-ignore-case' to respect it.
14340
14341 2004-07-03 Eli Zaretskii <eliz@gnu.org>
14342
14343 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
14344 for event.x and event.y.
14345
14346 2004-07-01 Kenichi Handa <handa@m17n.org>
14347
14348 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
14349 after getting a new string by pre-write-conversion.
14350
14351 2004-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
14352
14353 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
14354 (x_calc_absolute_position): Remove unused var `child'.
14355
14356 * xfaces.c (x_supports_face_attributes_p)
14357 (Fdisplay_supports_face_attributes_p): YAILOM.
14358 (tty_supports_face_attributes_p): Remove unused var `i'.
14359
14360 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
14361 back_unibyte_ok.
14362
14363 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
14364
14365 * fontset.c (Fset_fontset_font): Remove unused vars `family' and
14366 `registry'.
14367
14368 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
14369
14370 2004-06-30 Andreas Schwab <schwab@suse.de>
14371
14372 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
14373 (Finit_image_library): Pass LIBRARIES through to
14374 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
14375 (lookup_image_type): Pass Qnil as second argument to
14376 Finit_image_library.
14377
14378 * lisp.h (Finit_image_library): Declare.
14379
14380 2004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14381
14382 * macterm.c (do_window_activate, do_window_deactivate): Remove.
14383 (XTread_socket): Send mouse button events to the toolbox
14384 dispatcher even when the mouse is grabbed. Don't process window
14385 activate events for non-Emacs windows. Replace function calls to
14386 do_window_activate and do_window_deactivate with their contents.
14387 Reset mouse grabbing status when a window is deactivated.
14388
14389 2004-06-29 Steven Tamm <steventamm@mac.com>
14390
14391 * macterm.c (mac_get_emulated_btn)
14392 (mac_event_to_emacs_modifiers): Fix emulated mouse button
14393 support to correctly mask out modifiers.
14394
14395 2004-06-29 David Kastrup <dak@gnu.org>
14396
14397 * search.c (Fset_match_data): Allow buffer before end of list
14398 which can happen if set-match-data is using a pre-consed list.
14399
14400 2004-06-28 Steven Tamm <steventamm@mac.com>
14401
14402 * macterm.c (XTread_socket): Correctly set the frame position
14403 after the window is moved.
14404
14405 2004-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14406
14407 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
14408 gpix and gmask just before return to avoid memory leak.
14409 (xg_get_image_for_pixmap): Add workaround for monochrome displays
14410 so insensitive and activated icons look ok.
14411
14412 2004-06-27 Jason Rumney <jasonr@gnu.org>
14413
14414 * w32fns.c (file_dialog_callback): Disable edit control if set
14415 to directories only on CDN_INITDONE message.
14416 (Fx_file_dialog): Default to directories only when prompt starts
14417 with "Dired".
14418
14419 2004-06-25 Kim F. Storm <storm@cua.dk>
14420
14421 * alloc.c (allocate_misc): Update total_free_markers.
14422 (free_misc): New function.
14423 (safe_alloca_unwind, free_marker): Use it.
14424
14425 * lisp.h (free_misc): Add prototype.
14426
14427 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
14428
14429 2004-06-24 Richard M. Stallman <rms@gnu.org>
14430
14431 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
14432 (syms_of_emacs): Lisp variables deleted.
14433
14434 2004-06-23 David Kastrup <dak@gnu.org>
14435
14436 * search.c (Freplace_match): Adjust the match-data more thoroughly
14437 when replacing strings in the buffer.
14438 (Fmatch_data): When INTEGERS is non-nil and the last match was in
14439 a buffer, add the buffer as last element to the match data.
14440 (Fset_match_data): If an additional element of the match-data is a
14441 buffer, restore it to last_thing_searched.
14442 (save_search_regs): Save last_thing_searched as part of the match data.
14443 (restore_match_data): Restore it again.
14444
14445 2004-06-23 Luc Teirlinck <teirllm@auburn.edu>
14446
14447 * keymap.c (Ftext_char_description): Doc fix.
14448 * doc.c (Fsnarf_documentation): Doc fix.
14449
14450 2004-06-22 Kim F. Storm <storm@cua.dk>
14451
14452 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
14453
14454 * lisp.h (struct Lisp_Save_Value): New member dogc.
14455 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
14456 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
14457 (SAFE_FREE_LISP): New macro.
14458
14459 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
14460 (make_save_value): Init new dogc member.
14461 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
14462
14463 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
14464 SAFE_FREE_LISP macros.
14465
14466 2004-06-22 Kim F. Storm <storm@cua.dk>
14467
14468 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
14469 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
14470 in that memory area are unknown to GC. Add comments.
14471
14472 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
14473
14474 2004-06-21 Kim F. Storm <storm@cua.dk>
14475
14476 * lisp.h (MAX_ALLOCA): Define here.
14477 (safe_alloca_unwind): Add prototype.
14478 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
14479
14480 * alloc.c (safe_alloca_unwind): New function.
14481
14482 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
14483
14484 * charset.c (Fstring): Use SAFE_ALLOCA.
14485
14486 * coding.c (MAX_ALLOCA): Remove define.
14487
14488 * data.c (MAX_ALLOCA): Remove define.
14489 (Faset): Use SAFE_ALLOCA.
14490
14491 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
14492
14493 * fns.c (string_make_multibyte, string_to_multibyte)
14494 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
14495 (MAX_ALLOCA): Remove define.
14496 (Fbase64_encode_region, Fbase64_encode_string)
14497 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
14498 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
14499 memory leak if encoding fails.
14500
14501 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
14502
14503 2004-06-21 Eli Zaretskii <eliz@gnu.org>
14504
14505 * print.c (Fwith_output_to_temp_buffer): Doc fix.
14506
14507 2004-06-20 Richard M. Stallman <rms@gnu.org>
14508
14509 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
14510
14511 * search.c (match_limit): Cleaner err msg when no match data available.
14512
14513 * window.c (syms_of_window): Doc fix.
14514
14515 * keyboard.c (command_loop_1): Handle values `only' and `identity'
14516 for Vtransient_mark_mode.
14517
14518 * buffer.c (syms_of_buffer): Doc fix.
14519
14520 2004-06-21 David Kastrup <dak@gnu.org>
14521
14522 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
14523 and unbinding of `case-fold-search' according to
14524 `completion-ignore-case' around calls of string-match and
14525 predicates, respectively. Should give satisfactory performance
14526 in all relevant cases.
14527
14528 2004-06-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14529
14530 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
14531 clip_x/y_origin.
14532
14533 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
14534
14535 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
14536
14537 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
14538 on Mac OSX.
14539
14540 2004-06-16 Luc Teirlinck <teirllm@auburn.edu>
14541
14542 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
14543
14544 2004-06-16 Kim F. Storm <storm@cua.dk>
14545
14546 * dispextern.h (Vimage_types): Remove extern.
14547
14548 2004-06-16 Miles Bader <miles@gnu.org>
14549
14550 * image.c (lookup_image_type): Initialize image type if necessary.
14551
14552 2004-06-15 Kim F. Storm <storm@cua.dk>
14553
14554 * xdisp.c (try_cursor_movement): Exclude header line from scroll
14555 margin at top of window.
14556 (try_window_reusing_current_matrix): Calculate proper cursor position
14557 after scrolling up with non-zero scroll margin, as the old cursor
14558 position corresponds to value of PT before executing this command.
14559 (try_window_id): Consider scroll margin at bottom of window too;
14560 otherwise we fail to scroll when hl-line-mode is enabled.
14561
14562 * syntax.c (skip_chars): Only recognize [:class:] when it has the
14563 proper format and class is a lower-case word.
14564
14565 2004-06-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14566
14567 * gtkutil.c (xg_get_image_for_pixmap): New function.
14568 (xg_get_gdk_pixmap_and_mask): Remove.
14569 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
14570 xg_get_gdk_pixmap_and_mask.
14571
14572 * xterm.h (struct x_display_info): Typo in comment fixed.
14573
14574 2004-06-14 Juanma Barranquero <lektu@terra.es>
14575
14576 * dispextern.h (Vimage_types): Make it conditional on
14577 HAVE_WINDOW_SYSTEM.
14578
14579 * image.c (Vimage_types): Move from xdisp.c.
14580 (Vimage_type_cache): New variable.
14581 (define_image_type): New argument indicating whether an image
14582 library was loaded; cache loaded status and return t on success,
14583 nil otherwise.
14584 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
14585 (w32_delayed_load): New function to load an image library from a
14586 list of possible filenames.
14587 (init_xpm_functions, init_png_functions, init_jpeg_functions)
14588 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
14589 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
14590 (Finit_image_library): New function, extracted from `init_image'.
14591 Try to initialize an image library on demand and cache whether we
14592 were successful or not.
14593 (syms_of_image): Initialize `Vimage_types' and
14594 `Vimage_type_cache'. Add recognized image types to Vimage_types.
14595 Export `init-image-library'.
14596 (init_image): Remove initialization of all image types, except xbm
14597 and pbm.
14598
14599 * xdisp.c (Vimage_types): Delete (moved to image.c).
14600
14601 2004-06-14 Andreas Schwab <schwab@suse.de>
14602
14603 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
14604 Avoid calling specbind when completion-regexp-list is empty.
14605
14606 2004-06-13 Richard M. Stallman <rms@gnu.org>
14607
14608 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
14609 (re_wctype, re_iswctype, re_wctype_to_bit):
14610 Non-function definitions moved here from regex.c.
14611
14612 * regex.c (re_wctype, re_iswctype): Function defs longer static.
14613 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
14614 (re_wctype, re_iswctype, re_wctype_to_bit):
14615 Non-function definitions moved to regex.h.
14616
14617 * window.c (Fselect_window): Doc fix.
14618
14619 * syntax.c: Include regex.h.
14620 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
14621 If requested, make a list of classes, then check the scanned
14622 chars for membership in them.
14623 (in_classes): New function.
14624 Doc fix.
14625
14626 * keyboard.c (cmd_error): Don't call any_kboard_state
14627 if inside a recursive edit level.
14628
14629 2004-06-13 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
14630
14631 * keyboard.c (command_loop): Call any_kboard_state before
14632 command_loop_2 when at top level.
14633
14634 2004-06-13 Andreas Schwab <schwab@suse.de>
14635
14636 * print.c (print_object): Always use %ld for printing EMACS_INT.
14637
14638 * keyboard.c (cancel_hourglass_unwind): Return a value.
14639 (modify_event_symbol): Always use %ld for printing EMACS_INT.
14640 (Fexecute_extended_command): Likewise.
14641
14642 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
14643 avoid clashes.
14644 (SYNTAX): Likewise.
14645 (SYNTAX_WITH_FLAGS): Likewise.
14646 (SYNTAX_MATCH): Likewise.
14647
14648 * syntax.c (char_quoted): Avoid warning about undefined operation.
14649 (find_defun_start): Likewise.
14650 (scan_lists): Likewise.
14651 (INC_FROM): Likewise.
14652 (scan_sexps_forward): Likewise.
14653
14654 * image.c: Include <ctype.h>.
14655
14656 * xfaces.c (face_attr_equal_p): Declare parameters.
14657
14658 2004-06-13 Kenichi Handa <handa@m17n.org>
14659
14660 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
14661
14662 2004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
14663
14664 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
14665
14666 2004-06-12 Kenichi Handa <handa@m17n.org>
14667
14668 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
14669 ccl_prog_stack_struct and update it.
14670 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
14671 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
14672 ccl->eof_ic on EOF.
14673 (ccl_debug_hook): New function.
14674 (struct ccl_prog_stack): New member eof_ic.
14675 (ccl_driver): Handle EOF in subrountine call correctly.
14676
14677 2004-06-11 Kenichi Handa <handa@m17n.org>
14678
14679 * coding.c (encode_coding_string): Check CODING_FINISH_INTERRUPT.
14680
14681 2004-06-11 Kim F. Storm <storm@cua.dk>
14682
14683 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
14684
14685 2004-06-11 Juanma Barranquero <lektu@terra.es>
14686
14687 * keyboard.c (Fposn_at_point): Doc fix.
14688
14689 2004-06-11 David Kastrup <dak@gnu.org>
14690
14691 * search.c (match_limit): Don't flag an error if match-data
14692 exceeding the allocated search_regs.num_regs gets requested, just
14693 return Qnil.
14694
14695 2004-06-08 Miles Bader <miles@gnu.org>
14696
14697 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
14698
14699 2004-06-07 Juanma Barranquero <lektu@terra.es>
14700
14701 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
14702 (Fcurrent_time_string, Fcurrent_time_zone)
14703 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
14704
14705 2004-06-07 Miles Bader <miles@gnu.org>
14706
14707 * xfaces.c (struct named_merge_point): New type.
14708 (push_named_merge_point): New function.
14709 (merge_named_face): New function.
14710 (merge_face_ref, face_at_buffer_position, face_at_string_position):
14711 Use `merge_named_face'.
14712 (merge_face_inheritance): Function removed.
14713 (merge_face_ref): Rename from `merge_face_vector_with_property'.
14714 Add new `err_msgs' and `named_merge_points' args. Return error
14715 status. Only print error messages if ERR_MSGS is true. Don't try to
14716 do :inherit attribute validation.
14717 (merge_face_heights): Handle `unspecified' in both directions.
14718 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
14719 Call `merge_face_ref' instead of `merge_face_inheritance'.
14720 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
14721 (compute_char_face, face_at_buffer_position)
14722 (face_at_string_position): Call `merge_face_ref' instead of
14723 `merge_face_vector_with_property'.
14724
14725 2004-06-07 Kenichi Handa <handa@m17n.org>
14726
14727 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
14728 the necessary places.
14729
14730 2004-06-07 Kim F. Storm <storm@cua.dk>
14731
14732 * process.c (Fdelete_process): Undo 2004-05-28 change.
14733 Instead, call status_notify also for network process.
14734 (status_message): Use process instead of status as arg.
14735 Give messages "deleted" or "connection broken by remote peer" for
14736 an exited network process.
14737 (status_notify): Change call to status_message.
14738 (read_process_output): Increase readmax to 4096. Do not increase
14739 buffer size for datagram channels (default is now large enough).
14740
14741 2004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
14742
14743 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
14744 problem due to newly defined variable.
14745
14746 2004-06-06 Miles Bader <miles@gnu.org>
14747
14748 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
14749 immediately if non-interactive or not initialized.
14750
14751 2004-06-05 Richard M. Stallman <rms@gnu.org>
14752
14753 * minibuf.c (Fcompleting_read): Doc fix.
14754
14755 2004-06-05 Andreas Schwab <schwab@suse.de>
14756
14757 * macfns.c (x_create_tip_frame): Fix declaration after statement.
14758
14759 2004-06-05 Juanma Barranquero <lektu@terra.es>
14760
14761 * keymap.c (Fdescribe_vector): Fix docstring.
14762 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
14763
14764 2004-06-05 Miles Bader <miles@gnu.org>
14765
14766 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
14767 attributes have different values than the default face.
14768
14769 2004-06-04 Eli Zaretskii <eliz@gnu.org>
14770
14771 * xfaces.c (x_supports_face_attributes_p): Make this function
14772 conditional on HAVE_WINDOW_SYSTEM.
14773 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
14774 Don't call x_supports_face_attributes_p if it was not compiled in.
14775
14776 2004-06-04 Miles Bader <miles@gnu.org>
14777
14778 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
14779 from Ftty_supports_face_attributes_p.
14780 (x_supports_face_attributes_p): New function.
14781 (Ftty_supports_face_attributes_p): Function deleted.
14782 (Fdisplay_supports_face_attributes_p): New function.
14783 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
14784 (face_attr_equal_p): New function.
14785 (lface_equal_p): Use it.
14786
14787 2004-06-03 Juanma Barranquero <lektu@terra.es>
14788
14789 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
14790 (Vw32_color_map): Fix typo in docstring.
14791 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
14792 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
14793 Make argument names match their use in docstring.
14794
14795 2004-06-02 Juanma Barranquero <lektu@terra.es>
14796
14797 Work around bugs/problems with MinGW builds of graphics libraries
14798 called from MSVC builds of Emacs.
14799
14800 * image.c (lookup_image): Make pointer to img static.
14801 (png_read_from_memory): Disable "global" optimization.
14802
14803 2004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
14804
14805 * eval.c (Fcondition_case): Fix usage. Simplify.
14806
14807 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
14808
14809 2004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14810
14811 * macfns.c: Don't include ccl.h.
14812 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
14813 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
14814 TextUtils.h.
14815 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
14816 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
14817 display height/width.
14818 (compute_tip_xy, Vx_max_tooltip_size): Declare.
14819 (unwind_create_tip_frame, compute_tip_xy): New functions.
14820 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
14821 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
14822 and last_show_tip_args.
14823
14824 * macgui.h [!MAC_OSX]: Include Gestalt.h.
14825 (Cursor, No_Cursor): New defines.
14826 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
14827 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
14828
14829 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
14830
14831 * macterm.c: Don't include Gestalt.h.
14832 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
14833 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
14834 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
14835 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
14836 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
14837 (construct_mouse_click, XTmouse_position)
14838 (x_scroll_bar_report_motion, x_calc_absolute_position)
14839 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
14840 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
14841 (note_mouse_movement): Clear the mouse face and reset the pointer
14842 shape when the pointer goes outside the frame without grabbing.
14843 (mac_front_window): New function.
14844 (mac_window_to_frame): New macro.
14845 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
14846 (do_window_activate, do_window_deactivate, do_app_resume)
14847 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
14848 (do_zoom_window, mac_do_receive_drag, XTread_socket)
14849 (mac_check_for_quit_char): Use mac_front_window and/or
14850 mac_window_to_frame.
14851 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
14852 scroll-bar click event.
14853 (mac_define_frame_cursor): Change the pointer shape.
14854 (x_free_frame_resources): Reset tip_window to NULL when it is
14855 disposed of.
14856 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
14857 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
14858 (do_window_update): Don't do anything if the updated window is the
14859 tooltip window.
14860 (do_mouse_moved): Handle mouse movement events here (previously in
14861 XTread_socket). Clear the mouse face if
14862 dpyinfo->mouse_face_hidden is set.
14863 (do_os_event, do_events): Remove (now in XTread_socket).
14864 (XTread_socket): Immediately return if interrupt_input_blocked.
14865 Loop until all the events in the queue are processed.
14866 Rearrange codes for mouse grabbing. Add tooltip support. Include the
14867 contents of do_os_event and do_events. Remove mouse movement
14868 handling (now in do_mouse_moved). Add the case where
14869 Vmouse_highlight has an integer value.
14870 (NewMacWindow): Remove.
14871 (make_mac_frame): Do what NewMacWindow previously did. Don't do
14872 excess initializations.
14873 (make_mac_terminal_frame): Previous initializations in
14874 make_mac_frame are moved here.
14875 (mac_initialize_display_info):
14876 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
14877
14878 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
14879 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
14880
14881 2004-05-29 Richard M. Stallman <rms@gnu.org>
14882
14883 * lisp.h (truncate_undo_list): Update decl.
14884
14885 * alloc.c (undo_outer_limit): New variable.
14886 (syms_of_alloc): Defvar it.
14887 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
14888
14889 * undo.c (truncate_undo_list): New arg LIMITSIZE.
14890
14891 * alloc.c (lisp_align_malloc): Check for base == 0
14892 regardless of HAVE_POSIX_MEMALIGN.
14893 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
14894
14895 2004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
14896
14897 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
14898 (marker_blocks_pending_free): Remove.
14899 (Fgarbage_collect): Sweep after cleaning up undo-lists.
14900 Mark the undo lists after claning them up.
14901 Don't free block in marker_blocks_pending_free.
14902 (mark_buffer): Don't mark undo_list.
14903 (gc_sweep): Sweep hash-tables and strings first.
14904 Do free marker blocks that are empty.
14905
14906 2004-05-28 Jim Blandy <jimb@redhat.com>
14907
14908 * regex.c (print_partial_compiled_pattern): Add missing 'break'
14909 after 'case wordend'. For symbeg and symend, print to stderr,
14910 like the other cases.
14911
14912 2004-05-28 Noah Friedman <friedman@splode.com>
14913
14914 * process.c (Fdelete_process): Do not call remove_process.
14915
14916 2004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
14917
14918 * alloc.c (struct backtrace): Remove.
14919 (Fgarbage_collect): Use the new mark_backtrace.
14920
14921 * eval.c (mark_backtrace): New function.
14922
14923 * minibuf.c (run_exit_minibuf_hook): New function.
14924 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
14925 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
14926
14927 2004-05-27 Kim F. Storm <storm@cua.dk>
14928
14929 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
14930 over display properties, e.g. images, that replace buffer text.
14931
14932 2004-05-25 Kim F. Storm <storm@cua.dk>
14933
14934 * alloc.c (marker_blocks_pending_free): New var.
14935 (gc_sweep): Store free marker blocks on that list.
14936 (Fgarbage_collect): Free them after undo-list cleanup.
14937
14938 * process.c (wait_reading_process_input): Check connect_wait_mask
14939 before actually accepting connection in case it has already been
14940 accepted due to recursion.
14941
14942 2004-05-23 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
14943
14944 * coding.c (Fset_safe_terminal_coding_system_internal):
14945 Set suppress_error in safe_terminal_coding, not terminal_coding.
14946
14947 2004-05-22 Richard M. Stallman <rms@gnu.org>
14948
14949 * alloc.c (Fmake_string): Doc fix.
14950
14951 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
14952 and the alist pairs too.
14953
14954 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
14955
14956 * emacs.c (main): Update copyright year.
14957
14958 * fileio.c (Fread_file_name): Expand DIR if not absolute.
14959
14960 * insdel.c (del_range_2, replace_range): Don't write an anchor
14961 if the gap is empty.
14962
14963 * xdisp.c (try_scrolling): If scroll-up-aggressively or
14964 scroll-down-aggressively is small but positive, put point
14965 near the screen edge.
14966
14967 2004-05-22 Juanma Barranquero <lektu@terra.es>
14968
14969 * keymap.c (Fdefine_key): Doc fix.
14970
14971 2004-05-22 Kim F. Storm <storm@cua.dk>
14972
14973 * alloc.c (struct backtrace): Add debug_on_exit member.
14974 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
14975 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
14976 the removed cons cells.
14977 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
14978 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
14979 any cons cells pointing to unallocated stings.
14980 Do not lisp_free any marker blocks, as there may still be pointers
14981 to them from buffer undo lists at this stage of GC.
14982
14983 * keyboard.c (struct backtrace): Add debug_on_exit member.
14984 (Fcommand_execute): Clear it.
14985
14986 2004-05-20 Luc Teirlinck <teirllm@auburn.edu>
14987
14988 * intervals.c (lookup_char_property): Do not prematurely return nil.
14989
14990 2004-05-19 Jim Blandy <jimb@redhat.com>
14991
14992 Add support for new '\_<' and '\_>' regexp operators, matching the
14993 beginning and end of symbols.
14994
14995 * regex.c (enum syntaxcode): Add Ssymbol.
14996 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
14997 (re_opcode_t): New opcodes `symbeg' and `symend'.
14998 (print_partial_compiled_pattern): Print the new opcodes properly.
14999 (regex_compile): Parse the new operators.
15000 (analyse_first): Skip sym(beg|end) (they match only the empty string).
15001 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
15002 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
15003 (re_match_2_internal): Match symbeg and symend.
15004
15005 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
15006
15007 2004-05-19 Kim F. Storm <storm@cua.dk>
15008
15009 * .gdbinit (xsymbol): Fix last change.
15010
15011 2004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
15012
15013 * .gdbinit (xprintstr): New fun.
15014 (xstring, xprintsym): Use it.
15015
15016 * w32proc.c (create_child): Use INTMASK.
15017
15018 * alloc.c (Fgarbage_collect): Do all the marking before flushing
15019 unmarked elements of the undo list.
15020
15021 2004-05-18 David Ponce <david@dponce.com>
15022
15023 * print.c (print): Reset print_depth before to call print_object.
15024
15025 2004-05-18 Jason Rumney <jasonr@gnu.org>
15026
15027 * w32console.c: Prefix RIF functions with w32con_ to avoid
15028 namespace clash with functions in term.c and w32term.c.
15029
15030 * w32menu.c (add_menu_item, w32_menu_display_help)
15031 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
15032
15033 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
15034
15035 2004-05-18 Eli Zaretskii <eliz@gnu.org>
15036
15037 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
15038
15039 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
15040 with make_number.
15041 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
15042 with XINT.
15043
15044 2004-05-18 Kim F. Storm <storm@cua.dk>
15045
15046 * blockinput.h (INPUT_BLOCKED_P): New macros.
15047
15048 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
15049 (Ftop_level): Unblock input if blocked.
15050
15051 * buffer.h (GET_OVERLAYS_AT): New macro.
15052 * msdos.c (IT_note_mouse_highlight): Use it.
15053 * textprop.c (get_char_property_and_overlay): Use it.
15054 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
15055 * xfaces.c (face_at_buffer_position): Use it.
15056
15057 * print.c (print_object): Increase buf size.
15058
15059 2004-05-17 Jason Rumney <jasonr@gnu.org>
15060
15061 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
15062 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
15063 Lisp_Object using i member.
15064 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
15065 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
15066 consistently.
15067
15068 * w32proc.c (create_child): Use make_number instead of masking pid.
15069
15070 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
15071 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
15072 Use EQ to compare Lisp_Objects.
15073 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
15074
15075 * w32term.c (w32_num_mouse_buttons): Rename from
15076 Vw32_num_mouse_buttons and make it an int.
15077
15078 * w32.c (init_environment): Use it.
15079
15080 * w32fns.c (w32_wnd_proc): Likewise.
15081
15082 * w32proc.c (w32_pipe_read_delay): Rename from
15083 Vw32_pipe_read_delay and make it an int.
15084
15085 * w32.c (_sys_read_ahead): Use it.
15086
15087 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
15088
15089 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
15090
15091 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
15092 (key_event): Don't mix Lisp_Object and int.
15093
15094 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
15095
15096 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
15097 modifiers in language change event.
15098
15099 2004-05-17 Kim F. Storm <storm@cua.dk>
15100
15101 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
15102 Such objects may be freed markers which still exist on an undo list.
15103
15104 2004-05-16 Juanma Barranquero <lektu@terra.es>
15105
15106 * data.c (Fset_default): Make argument names match their use in
15107 docstring.
15108
15109 2004-05-15 Andreas Schwab <schwab@suse.de>
15110
15111 * emacs.c (gdb_array_mark_flag): Define.
15112 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
15113
15114 2004-05-15 Eli Zaretskii <eliz@gnu.org>
15115
15116 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
15117 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
15118 defined for the MS-DOS build.
15119
15120 2004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
15121
15122 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
15123
15124 2004-05-14 Kenichi Handa <handa@m17n.org>
15125
15126 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
15127
15128 2004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15129
15130 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
15131 section to frame.c section.
15132 (Fxw_display_color_p, Fx_file_dialog): Declare if
15133 HAVE_WINDOW_SYSTEM defined.
15134
15135 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
15136
15137 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
15138
15139 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
15140 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
15141 (XTread_socket): Fix int/Lisp_Object mixup.
15142 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
15143
15144 * macterm.h (struct frame, struct face, struct image)
15145 (display_x_get_resource, Fx_display_color_p)
15146 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
15147 Add prototypes.
15148
15149 2004-05-14 Kim F. Storm <storm@cua.dk>
15150
15151 * process.c (wait_reading_process_input): Make reentrant.
15152 Make Available and Connecting non-static. Save and restore value
15153 of waiting_for_user_input_p.
15154
15155 2004-05-13 Kim F. Storm <storm@cua.dk>
15156
15157 * keyboard.c (mark_kboards): Don't mark x and y members
15158 that are overloaded in selection request events.
15159
15160 2004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
15161
15162 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
15163
15164 2004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
15165
15166 * window.c (Fdisplay_buffer, Fsplit_window)
15167 (split-height-threshold): Doc fix.
15168
15169 2004-05-13 Juanma Barranquero <lektu@terra.es>
15170
15171 * xfaces.c (Ftty_supports_face_attributes_p)
15172 (Finternal_copy_lisp_face): Fix typo in docstring.
15173 (Finternal_get_lisp_face_attribute): Fix docstring.
15174
15175 2004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15176
15177 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
15178
15179 2004-05-11 Steven Tamm <steventamm@mac.com>
15180
15181 * macfns.c (Fx_create_frame): Default to using tool-bar by
15182 setting tool-bar-lines to 1 in default-frame-alist.
15183
15184 2004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15185
15186 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
15187 (xpm_get_color_table_v, xpm_make_color_table_h)
15188 (xpm_put_color_table_h, xpm_get_color_table_h)
15189 (xpm_str_to_color_key, xpm_load_image, xpm_load)
15190 (syms_of_image): Support XPM on Carbon Emacs. Does not
15191 depend on libXpm, but only supports XPM version 3 without extensions.
15192
15193 2004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15194
15195 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
15196 instead of FRAME_X_P.
15197
15198 2004-05-11 Kim F. Storm <storm@cua.dk>
15199
15200 * process.c (read_process_output): Grow decoding_buf when needed;
15201 this could cause a crash in allocate_string and compact_small_strings.
15202
15203 2004-04-29 Jim Blandy <jimb@redhat.com>
15204
15205 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
15206 against proper opcode.
15207
15208 2004-05-10 Juanma Barranquero <lektu@terra.es>
15209
15210 * process.c (Fstart_process): Fix docstring.
15211
15212 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
15213 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
15214 (Fsplit_char, Fchar_charset): Make argument names match their use
15215 in docstring.
15216
15217 2004-05-10 Richard M. Stallman <rms@gnu.org>
15218
15219 * print.c (print_preprocess): Use being_printed, loop_count and
15220 halftail to detect overdeep nesting and cyclic cdr chains.
15221
15222 2004-05-10 Andreas Schwab <schwab@suse.de>
15223
15224 * lisp.h (Fmake_symbolic_link): Declare.
15225
15226 * fileio.c (Frename_file): Remove extra argument in call to
15227 Fmake_symbolic_link.
15228
15229 2004-05-10 Kim F. Storm <storm@cua.dk>
15230
15231 * xdisp.c (calc_line_height_property): Use string position when
15232 object is a string.
15233
15234 2004-05-10 Kenichi Handa <handa@m17n.org>
15235
15236 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
15237 inhibit-modification-hooks to t temporarily before calling
15238 Ferase_buffer.
15239
15240 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
15241 inhibit-modification-hooks to t temporarily before calling
15242 Ferase_buffer.
15243
15244 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
15245 inhibit-modification-hooks to t temporarily before calling
15246 Ferase_buffer.
15247
15248 * fns.c (count_combining): Delete it.
15249 (concat): Don't check combining bytes.
15250
15251 2004-05-09 Jason Rumney <jasonr@gnu.org>
15252
15253 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
15254 (globals_of_w32fns): Set it.
15255
15256 2004-05-09 Piet van Oostrum <piet@cs.uu.nl>
15257
15258 * data.c (Fquo): Simplify.
15259
15260 2004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
15261
15262 * data.c (Fquo): If any argument is float, do the computation in
15263 floating point.
15264
15265 2004-05-08 Juanma Barranquero <lektu@terra.es>
15266
15267 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
15268 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
15269 Fix spelling of Emacs on docstring.
15270 (Fset_process_coding_system, Fprocess_coding_system)
15271 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
15272 Make argument names match their use in docstring.
15273 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
15274 Fix docstring.
15275
15276 * editfns.c (Finsert_buffer_substring): Make argument names match their
15277 use in docstring.
15278
15279 * syntax.c (Fmodify_syntax_entry): Fix docstring.
15280
15281 2004-05-07 Steven Tamm <steventamm@mac.com>
15282
15283 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
15284 around call to ReceiveEvent to avoid certain crashes.
15285
15286 2004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15287
15288 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
15289 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
15290 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
15291 Save/restore the current graphics port and device handle when
15292 drawing into an offscreen graphics world.
15293
15294 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
15295 (gif_load): Likewise.
15296
15297 2004-05-07 Juanma Barranquero <lektu@terra.es>
15298
15299 * window.c (Fset_window_buffer): Fix docstring.
15300
15301 2004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
15302
15303 * emacs.c (main) [VMS]: Fix var ref.
15304
15305 2004-05-06 Romain Francoise <romain@orebokech.com>
15306
15307 * data.c (Fsetq_default): Fix docstring.
15308
15309 2004-05-06 Jason Rumney <jasonr@gnu.org>
15310
15311 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
15312 to avoid name clash.
15313
15314 2004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15315
15316 * fileio.c (barf_or_query_if_file_exists): Use lstat.
15317 (Frename_file): Handle renaming of symlinks across file systems.
15318 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
15319
15320 2004-05-04 Kim F. Storm <storm@cua.dk>
15321
15322 * xdisp.c (Qtotal): New var.
15323 (syms_of_xdisp): Intern and staticpro it.
15324 (calc_line_height_property): New arg total. Set it if
15325 line-spacing property has format (total . VALUE).
15326 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
15327 Handle total line-spacing property.
15328
15329 2004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15330
15331 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
15332 "under" scroll bar when size/position changes.
15333
15334 2004-05-03 Jason Rumney <jasonr@gnu.org>
15335
15336 * makefile.nt: Remove.
15337
15338 2004-05-02 Eli Zaretskii <eliz@gnu.org>
15339
15340 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
15341 Avoid compiler warnings.
15342
15343 * Makefile.in (region-cache.o): Depend on config.h.
15344
15345 2004-05-02 Romain Francoise <romain@orebokech.com>
15346
15347 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
15348 with continuation lines, too.
15349
15350 2004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
15351
15352 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
15353
15354 2004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
15355
15356 * xdisp.c (calc_line_height_property): YAILOM (yet another
15357 int/Lisp_Object mixup).
15358
15359 2004-05-01 Eli Zaretskii <eliz@gnu.org>
15360
15361 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
15362 undo bad effect of pack(4) in some versions of system headers.
15363
15364 2004-05-01 Jason Rumney <jasonr@gnu.org>
15365
15366 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c.
15367
15368 2004-04-30 Kim F. Storm <storm@cua.dk>
15369
15370 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
15371 (syms_of_buffer) <cursor-type>: Doc fix.
15372
15373 * dispextern.h (struct it): Remove member use_default_face.
15374 Add members override_ascent, override_descent, override_boff.
15375
15376 * xdisp.c (init_iterator): Handle line-spacing float value.
15377 Initialize override_ascent member.
15378 (append_space_for_newline): Reset override_ascent.
15379 Remove use_default_face.
15380 (calc_line_height_property): New function to calculate value of
15381 line-height and line-spacing properties. Look at overlays, too.
15382 Set override_ascent, override_descent, override_boff members when
15383 using another face than the current face. Float values are now
15384 relative to the frame default font, by default; accept a cons
15385 of ratio and face name to specify value relative to a specific face.
15386 (x_produce_glyphs): Use calc_line_height_property.
15387 Use override_ascent etc. when set to handle different face heights.
15388 A negative line-spacing property value is interpreted as a total
15389 line height, rather than inter-line spacing.
15390 (note_mouse_highlight): Allocate room for 40 overlays initially.
15391
15392 2004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
15393
15394 * data.c (Fsubr_name): New fun.
15395 (syms_of_data): Defsubr it.
15396
15397 2004-04-29 Kim F. Storm <storm@cua.dk>
15398
15399 * xdisp.c (null_glyph_slice): New var.
15400 (append_glyph, append_composite_glyph, append_stretch_glyph):
15401 Use it to initialize glyph slice.
15402
15403 2004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
15404
15405 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
15406 (on_hot_spot_p): Make sure we always return a value.
15407 (Flookup_image_map): Remove unused var ix and iy.
15408 (note_mode_line_or_margin_highlight): Remove unused var `image'.
15409
15410 2004-04-27 Eli Zaretskii <eliz@gnu.org>
15411
15412 * msdos.c (init_environment): If one of the TMP... environment
15413 variables is set to a drive letter without a trailing slash,
15414 append a slash.
15415
15416 2004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
15417
15418 * editfns.c (lisp_time_argument): Provide externally.
15419
15420 * fileio.c (Fset_file_times): New function.
15421 (syms_of_fileio): Intern and staticpro it.
15422
15423 2004-04-27 Kim F. Storm <storm@cua.dk>
15424
15425 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
15426 header line strings.
15427
15428 * dispextern.h (struct it): New member use_default_face.
15429
15430 * xdisp.c (Qline_height): New variable.
15431 (syms_of_xdisp): Intern and staticpro it.
15432 (append_space_for_newline): Partially undo 2004-04-25 change;
15433 add default_face_p arg, and restore callers.
15434 Clear it->use_default_face after use.
15435 (x_produce_glyphs): Set default font for ascii char if
15436 it->use_default_font is set. Change line-spacing property to set
15437 just extra line spacing. Handle new line-height property.
15438
15439 2004-04-26 Andreas Schwab <schwab@suse.de>
15440
15441 * print.c (print_object): Print non-ascii characters in bool
15442 vector representation as octal escapes.
15443
15444 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
15445 * print.c (print_object): Use it instead of BITS_PER_CHAR for
15446 bool vectors.
15447 * lread.c (read1): Likewise.
15448 * alloc.c (Fmake_bool_vector): Likewise.
15449 * data.c (Faref, Faset): Likewise.
15450 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
15451 (mapcar1): Likewise.
15452
15453 2004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
15454
15455 * lread.c (init_lread): Fix typo in HAVE_CARBON test logic.
15456
15457 2004-04-26 Miles Bader <miles@gnu.org>
15458
15459 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
15460
15461 2004-04-26 Juanma Barranquero <lektu@terra.es>
15462
15463 * buffer.c (Fpop_to_buffer): Fix docstring.
15464
15465 2004-04-26 Steven Tamm <steventamm@mac.com>
15466
15467 * lread.c (init_lread): Don't display missing lisp directory
15468 warnings with Carbon Emacs because self-contained bundled Emacs
15469 may be built without correct installation path.
15470
15471 2004-04-25 Kim F. Storm <storm@cua.dk>
15472
15473 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
15474
15475 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
15476
15477 * xdisp.c (append_space_for_newline): Rename from append_space.
15478 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
15479 (x_produce_glyphs): Handle line-spacing property on newline char.
15480 If value is t, adjust ascent and descent to fit current row height.
15481 If value is an integer or float, set extra_line_spacing to integer
15482 value, or to float value x current line height.
15483
15484 2004-04-23 Kenichi Handa <handa@m17n.org>
15485
15486 * fontset.c (Finternal_char_font): If POSITION is nil, return
15487 font for displaying CH with the default face.
15488
15489 2004-04-23 Juanma Barranquero <lektu@terra.es>
15490
15491 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
15492
15493 2004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
15494
15495 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
15496 Don't make assumptions about the relative place of i and val.
15497 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
15498
15499 2004-04-21 Kim F. Storm <storm@cua.dk>
15500
15501 * dispextern.h (struct glyph_slice): New struct.
15502 (struct glyph): New member slice.
15503 (GLYPH_SLICE_EQUAL_P): New macro.
15504 (GLYPH_EQUAL_P): Use it.
15505 (struct glyph_string): New member slice.
15506 (struct it_slice): New struct.
15507 (struct it): New member slice, add member to stack too.
15508 New member constrain_row_ascent_descent_p.
15509 (image_ascent): Add prototype.
15510
15511 * dispnew.c (buffer_posn_from_coords): Return full image width
15512 and height even for image slices (posn is relative to full image).
15513 (marginal_area_string): Adjust x0,y0 for image slice.
15514
15515 * image.c (image_ascent): Add slice arg; calculate ascent for
15516 image slice (or full image).
15517
15518 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
15519 (syms_of_keyboard): Defsubr them.
15520
15521 * lisp.h (pos_visible_p): Fix prototype.
15522
15523 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
15524 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
15525 (x_draw_image_foreground, x_draw_image_relief)
15526 (x_draw_image_foreground_1, x_draw_image_glyph_string):
15527 Draw sliced images.
15528
15529 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
15530 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
15531 (x_draw_image_foreground, x_draw_image_relief)
15532 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
15533 Draw sliced images.
15534
15535 * w32term.h (image_ascent): Remove prototype.
15536
15537 * window.c (Fpos_visible_in_window_p): Return pixel position if
15538 PARTIALLY arg is non-nil. Simplify. Doc fix.
15539 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
15540 to return/set vscroll in pixels.
15541
15542 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
15543
15544 * xdisp.c (Qslice): New variable.
15545 (syms_of_xdisp): Intern and staticpro it.
15546 (pos_visible_p): Return pixel position in new x and y args.
15547 (init_iterator): Reset it->slice info.
15548 (handle_display_prop): Parse (slice ...) property.
15549 (push_it, pop_it): Save/restore slice info.
15550 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
15551 force repositioning of tall row if window is vscrolled, as that
15552 would reset vscroll.
15553 (append_space): Set it->constrain_row_ascent_descent_p to avoid
15554 increasing row height if row is non-empty.
15555 (fill_image_glyph_string): Copy slice info.
15556 (take_vertical_position_into_account): Simplify.
15557 (produce_image_glyph): Handle iterator slice info, setup glyph
15558 slice info. Do not force minimum line height.
15559 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
15560 do not increase height (ascent/descent) of non-empty row when
15561 adding normal character glyph; instead reduce glyph ascent/descent
15562 appropriately; if row is higher than current glyph, adjust glyph
15563 descent/ascent to reposition glyph within the existing row.
15564 Likewise, when char is newline, only set ascent/descent if row is
15565 currently empty.
15566 (note_mouse_highlight): Handle hotspots with sliced image.
15567
15568 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
15569 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
15570 (x_draw_image_foreground, x_draw_image_relief)
15571 (x_draw_image_foreground_1, x_draw_image_glyph_string):
15572 Draw sliced images.
15573
15574 * xterm.h (image_ascent): Remove prototype.
15575
15576 2004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
15577
15578 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
15579
15580 2004-04-20 John Paul Wallington <jpw@gnu.org>
15581
15582 * fns.c (Fassoc, Feql): Fix indentation.
15583
15584 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
15585
15586 2004-04-19 John Paul Wallington <jpw@gnu.org>
15587
15588 * fns.c (Feql): New function.
15589 (syms_of_fns): Defsubr it.
15590
15591 2004-04-18 Jason Rumney <jasonr@gnu.org>
15592
15593 * w32select.c (Fw32_set_clipboard_data): Get sequence number
15594 after closing the clipboard.
15595
15596 2004-04-16 Luc Teirlinck <teirllm@auburn.edu>
15597
15598 * buffer.c (Fbuffer_base_buffer): Doc fix.
15599
15600 2004-04-17 Kim F. Storm <storm@cua.dk>
15601
15602 * keymap.c (Fkey_description): Add optional PREFIX arg.
15603 Combine prefix with KEYS to make up the full key sequence to describe.
15604 Correlate meta_prefix_char and following (simple) key to describe
15605 as meta modifier. All callers changed.
15606 (describe_map): Rename arg `keys' to `prefix'. Remove local
15607 `elt_prefix' var. Use Fkey_description with prefix instead of
15608 elt_prefix combined with Fsingle_key_description.
15609 (describe_vector): Declare static. Replace arg `elt_prefix' with
15610 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
15611 if !KEYMAP_P. Use Fkey_description with prefix instead of
15612 Fsingle_key_description.
15613
15614 * keymap.h (Fkey_description): Fix prototype.
15615 (describe_vector): Remove prototype.
15616
15617 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
15618
15619 * image.c (PNG_BG_COLOR_SHIFT): Remove.
15620 (png_load): Fix calculation of transparent background color on X
15621 and W32 platforms.
15622
15623 2004-04-16 Juanma Barranquero <lektu@terra.es>
15624
15625 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
15626 not too large before computing how much to scroll.
15627
15628 2004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
15629
15630 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
15631
15632 2004-04-14 Luc Teirlinck <teirllm@auburn.edu>
15633
15634 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
15635 Add hyperlink to Elisp manual to the docstring.
15636
15637 2004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
15638
15639 * callint.c (fix_command): Use XDCR.
15640
15641 2004-04-14 Nick Roberts <nick@nick.uklinux.net>
15642
15643 * window.c (Fget_lru_window): Doc fix.
15644
15645 2004-04-14 Kim F. Storm <storm@cua.dk>
15646
15647 * editfns.c (Fformat): Fix allocation size of precision array.
15648
15649 * dispnew.c (update_window): Only set changed_p if
15650 scrolling_window actually did scroll.
15651 (scrolling_window): Only return 1 if we actually did scroll.
15652
15653 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
15654 height to glyph height when cursor row is not fully visible.
15655 (make_cursor_line_fully_visible): Add FORCE_P arg to return
15656 failure in case row is higher than window. Callers changed.
15657 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
15658 Try to scroll partially visible, higher-than-window cursor row.
15659 (redisplay_window): Always try to scroll partially visible,
15660 higher-than-window cursor row - both initially and again with
15661 centering_position = 0.
15662 Clear desired matrix before retrying with centering_position = 0.
15663
15664 2004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
15665
15666 * syntax.c (scan_lists): Simplify backward string scan.
15667 Fix off-by-one boundary check for string and comment fences.
15668
15669 2004-04-13 Joe Buehler <jbuehler@hekimian.com>
15670
15671 * sheap.c, unexcw.c: New files.
15672
15673 2004-04-12 Luc Teirlinck <teirllm@auburn.edu>
15674
15675 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
15676 base buffer has been killed. Correct the error message if the
15677 base buffer does not exist.
15678
15679 2004-04-12 Joe Buehler <jbuehler@hekimian.com>
15680
15681 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
15682 Cygwin itself. Add support for Xaw3d scrollbars.
15683
15684 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
15685
15686 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
15687
15688 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
15689 before Cygwin unexec.
15690
15691 * Makefile.in: Link changes for Cygwin unexec() support.
15692
15693 2004-04-12 Andreas Schwab <schwab@suse.de>
15694
15695 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
15696
15697 2004-04-11 Luc Teirlinck <teirllm@auburn.edu>
15698
15699 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
15700 IGNORE argument equals NAME. Doc fix.
15701
15702 2004-04-11 Masatake YAMATO <jet@gyve.org>
15703
15704 * buffer.c (fix_start_end_in_overlays): Make overlays
15705 empty if they are backwards.
15706
15707 2004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
15708
15709 * xfaces.c (face_color_supported_p): Fix compilation without X11.
15710
15711 2004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
15712
15713 * doc.c (Fsnarf_documentation): Ignore new file name entries.
15714
15715 2004-04-06 Kim F. Storm <storm@cua.dk>
15716
15717 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
15718 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
15719
15720 * w32term.c (w32_read_socket): Set mouse_face_hidden after
15721 clearing highlight.
15722
15723 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
15724
15725 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
15726 clearing highlight.
15727
15728 * indent.c (vmotion): Do not reserve one column for continuation
15729 marks on window frames.
15730
15731 2004-04-04 Eli Zaretskii <eliz@gnu.org>
15732
15733 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
15734 from GCC.
15735
15736 2004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
15737
15738 * .gdbinit-union: Remove.
15739
15740 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
15741 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
15742 ($nonvalbits): Remove.
15743 ($valmask): Set it by calling xreload to avoid redundancy.
15744
15745 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
15746 (gdb_emacs_intbits): Remove.
15747
15748 2004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15749
15750 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
15751
15752 2004-03-30 Kenichi Handa <handa@m17n.org>
15753
15754 * editfns.c (Fformat): Fix initialization of the array info.
15755
15756 2004-03-30 Kim F. Storm <storm@cua.dk>
15757
15758 * xterm.c (x_mouse_click_focus_ignore_position): New var.
15759 (syms_of_xterm): DEFVAR_BOOL it.
15760 (ignore_next_mouse_click_timeout): New var.
15761 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
15762 Use it to filter mouse clicks following focus event.
15763
15764 2004-03-29 David Ponce <david@dponce.com>
15765
15766 * callint.c (Fcall_interactively): Fix last change.
15767
15768 2004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
15769
15770 * eval.c (Fcommandp): Simplify.
15771
15772 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
15773 Extend to handle all kinds of functions.
15774
15775 * lisp.h (Finteractive_form): Declare.
15776
15777 * callint.c (Fcall_interactively): Use it.
15778
15779 2004-03-26 Kim F. Storm <storm@cua.dk>
15780
15781 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
15782 to catch errors in calc_pixel_width_or_height during redisplay.
15783
15784 2004-03-26 Masatake YAMATO <jet@gyve.org>
15785
15786 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
15787
15788 * lisp.h (fix_start_end_in_overlays): Likewise.
15789
15790 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
15791
15792 * editfns.c (Ftranspose_regions): Likewise.
15793
15794 2004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15795
15796 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
15797
15798 2004-03-19 Richard M. Stallman <rms@gnu.org>
15799
15800 * s/sol2-6.h: Delete previous change.
15801
15802 2004-03-19 Kim F. Storm <storm@cua.dk>
15803
15804 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
15805 to_charpos corresponds to newline in right fringe. Use local
15806 BUFFER_POS_REACHED_P macro.
15807
15808 2004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15809
15810 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
15811 to compile on non-window system.
15812
15813 2004-03-19 Kim F. Storm <storm@cua.dk>
15814
15815 * dispextern.h (calc_pixel_width_or_height): Add prototype.
15816
15817 * image.c (Qcenter): Move to xdisp.c.
15818
15819 * xdisp.c (Qcenter): Declare here.
15820 (syms_of_xdisp): Intern and staticpro it.
15821 (handle_single_display_prop): Allow space display property on all
15822 platforms.
15823 (display_mode_line): Set mode_line_p before displaying line.
15824 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
15825 handling. Remove complex cases for fringes and scroll-bars.
15826 Add left, right, and center alignment positions. Add text (area)
15827 width/height. Return width or height for image specs.
15828 (produce_stretch_glyph): Improve handling of :align-to. Is now
15829 relative to left of text area by default, but other base offsets
15830 can be specified -- also for text lines.
15831
15832 * term.c (produce_glyphs): Handle IT_STRETCH.
15833 (produce_stretch_glyph): New function to handle space width and
15834 align-to display properties on non-window systems.
15835
15836 2004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
15837
15838 * fileio.c (Fread_file_name): Set completion-ignore-case for
15839 case-insensitive systems.
15840
15841 2004-03-14 Masatake YAMATO <jet@gyve.org>
15842
15843 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
15844 when keymap and cursor are setup.
15845
15846 2004-03-14 Steven Tamm <steventamm@mac.com>
15847
15848 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
15849
15850 2004-03-14 Kim F. Storm <storm@cua.dk>
15851
15852 * dispextern.h (x_find_image_file): Add prototype.
15853
15854 * image.c (x_find_image_file): Make extern.
15855
15856 * xfns.c (x_find_image_file): Remove prototype.
15857
15858 2004-03-13 Eli Zaretskii <eliz@gnu.org>
15859
15860 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
15861
15862 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
15863
15864 2004-03-12 Richard M. Stallman <rms@gnu.org>
15865
15866 * fns.c (internal_equal): New arg PROPS controls comparing
15867 text properties. All callers changed.
15868 (Fequal_including_properties): New function.
15869 (syms_of_fns): defsubr it.
15870
15871 2004-03-12 Kim F. Storm <storm@cua.dk>
15872
15873 Fix image support on MAC. From YAMAMOTO Mitsuharu.
15874
15875 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
15876 (image_background, image_background_transparent): Fix prototypes.
15877
15878 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
15879
15880 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
15881 (x_query_font, x_find_ccl_program, x_set_window_size)
15882 (x_make_frame_visible, mac_initialize, XCreatePixmap)
15883 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
15884 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
15885
15886 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
15887 (x_query_font, x_find_ccl_program, x_set_window_size)
15888 (x_make_frame_visible, mac_initialize, XCreatePixmap)
15889 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
15890 (mac_draw_line_to_pixmap): Add prototypes.
15891
15892 2004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15893
15894 * macterm.c (XTread_socket): Fix mouse click on tool bar.
15895
15896 2004-03-11 Kim F. Storm <storm@cua.dk>
15897
15898 * dispextern.h: Move image related prototypes from xfns.c section
15899 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
15900 HAVE_X_WINDOWS.
15901
15902 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
15903 Move gtkutil.o to new GTK_OBJ list.
15904 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
15905 (GTK_OBJ) [USE_GTK]: New declaration.
15906 (obj): Add $(GTK_OBJ) to list.
15907
15908 2004-03-11 Steven Tamm <steventamm@mac.com>
15909
15910 * image.c [MAC_OSX]: Include sys/stat.h.
15911
15912 * macfns.c (syms_of_macfns): Remove definitions of things now
15913 defined in image.c.
15914
15915 2004-03-11 Kim F. Storm <storm@cua.dk>
15916
15917 The following changes consolidates the identical/similar image
15918 support code previously found in xfns.c, w32fns.c, and macfns.c
15919 into a new file image.c.
15920
15921 * makefile.w32-in (OBJ1): Add image.o.
15922 ($(BLD)/image.$(O)): Add dependencies.
15923
15924 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
15925 (image.o): Add dependencies.
15926
15927 * image.c: New file with consolidated image support code.
15928 (COLOR_TABLE_SUPPORT): New define to control whether
15929 color table support is available (X only).
15930 (Bitmap_Record): Common name for x_bitmap_record,
15931 w32_bitmap_record, and mac_bitmap_record.
15932 (XImagePtr): Common name for pointer to XImage or equivalent.
15933 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
15934 to XImagePtr on X+MAC, and to HDC on W32.
15935 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
15936 (NO_PIXMAP): Common name for "None" or equivalent.
15937 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
15938 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
15939 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
15940 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
15941 Define with suitable equivalents on W32 and MAC for code sharing.
15942 (XDrawLine): Define on MAC for code sharing.
15943 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
15944 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
15945 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
15946 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
15947 (x_reference_bitmap, x_create_bitmap_from_data)
15948 (x_create_bitmap_from_file, x_destroy_bitmap)
15949 (x_destroy_all_bitmaps, x_create_bitmap_mask)
15950 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
15951 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
15952 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
15953 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
15954 (define_image_type, lookup_image_type, valid_image_p)
15955 (image_error, enum image_value_type, struct image_keyword)
15956 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
15957 (make_image, free_image, prepare_image_for_display, image_ascent)
15958 (four_corners_best, image_background, image_background_transparent)
15959 (x_clear_image_1, x_clear_image, x_alloc_image_color)
15960 (make_image_cache, free_image_cache, clear_image_cache)
15961 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
15962 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
15963 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
15964 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
15965 (init_image_func_pointer, image_load_quartz2d)
15966 (struct ct_color, init_color_table, free_color_table)
15967 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
15968 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
15969 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
15970 (x_disable_image, x_build_heuristic_mask)
15971 (XBM support, XPM support, PBM support, PNG support, JPEG support)
15972 (TIFF support, GIF support, Ghostscript support): Consolidate image
15973 code from xfns.c, w32fns.c, and macfns.c.
15974 (syms_of_image): Consolidate image related symbol setup here.
15975 (init_image): Consolidate image related initializations here.
15976
15977 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
15978 and init_image. Remove call to init_xfns.
15979
15980 * macterm.h (struct mac_bitmap_record): Add file member.
15981 Not currently used, but simplifies code sharing.
15982
15983 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
15984 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
15985 (x_reference_bitmap, x_create_bitmap_from_data)
15986 (x_create_bitmap_from_file, x_destroy_bitmap)
15987 (x_destroy_all_bitmaps, x_create_bitmap_mask)
15988 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
15989 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
15990 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
15991 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
15992 (define_image_type, lookup_image_type, valid_image_p)
15993 (image_error, enum image_value_type, struct image_keyword)
15994 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
15995 (make_image, free_image, prepare_image_for_display, image_ascent)
15996 (four_corners_best, image_background, image_background_transparent)
15997 (x_clear_image_1, x_clear_image, x_alloc_image_color)
15998 (make_image_cache, free_image_cache, clear_image_cache)
15999 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
16000 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
16001 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
16002 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
16003 (init_image_func_pointer, image_load_quartz2d)
16004 (struct ct_color, init_color_table, free_color_table)
16005 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
16006 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
16007 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
16008 (x_disable_image, x_build_heuristic_mask)
16009 (XBM support, XPM support, PBM support, PNG support, JPEG support)
16010 (TIFF support, GIF support, Ghostscript support): Merge with image
16011 code from xfns.c and macfns.c into image.c.
16012 (syms_of_xfns): Move image related symbols to image.c.
16013 (init_external_image_libraries, init_xfns): Remove; initialization
16014 moved to init_image in image.c.
16015
16016 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
16017 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
16018 (x_reference_bitmap, x_create_bitmap_from_data)
16019 (x_create_bitmap_from_file, x_destroy_bitmap)
16020 (x_destroy_all_bitmaps, x_create_bitmap_mask)
16021 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
16022 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
16023 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
16024 (define_image_type, lookup_image_type, valid_image_p)
16025 (image_error, enum image_value_type, struct image_keyword)
16026 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
16027 (make_image, free_image, prepare_image_for_display, image_ascent)
16028 (four_corners_best, image_background, image_background_transparent)
16029 (x_clear_image_1, x_clear_image, x_alloc_image_color)
16030 (make_image_cache, free_image_cache, clear_image_cache)
16031 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
16032 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
16033 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
16034 (struct ct_color, init_color_table, free_color_table)
16035 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
16036 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
16037 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
16038 (x_disable_image, x_build_heuristic_mask)
16039 (XBM support, XPM support, PBM support, PNG support, JPEG support)
16040 (TIFF support, GIF support, Ghostscript support): Merge with image
16041 code from xfns.c and macfns.c into image.c.
16042 (syms_of_xfns): Move image related symbols to image.c.
16043 (init_external_image_libraries, init_xfns): Remove; initialization
16044 moved to init_image in image.c.
16045
16046 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
16047 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
16048 (x_reference_bitmap, x_create_bitmap_from_data)
16049 (x_create_bitmap_from_file, x_destroy_bitmap)
16050 (x_destroy_all_bitmaps, x_create_bitmap_mask)
16051 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
16052 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
16053 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
16054 (define_image_type, lookup_image_type, valid_image_p)
16055 (image_error, enum image_value_type, struct image_keyword)
16056 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
16057 (make_image, free_image, prepare_image_for_display, image_ascent)
16058 (four_corners_best, image_background, image_background_transparent)
16059 (x_clear_image_1, x_clear_image, x_alloc_image_color)
16060 (make_image_cache, free_image_cache, clear_image_cache)
16061 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
16062 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
16063 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
16064 (struct ct_color, init_color_table, free_color_table)
16065 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
16066 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
16067 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
16068 (x_disable_image, x_build_heuristic_mask)
16069 (XBM support, XPM support, PBM support, PNG support, JPEG support)
16070 (TIFF support, GIF support, Ghostscript support): Merge with
16071 w32fns.c and macfns.c image code into image.c.
16072 (syms_of_xfns): Move image related symbols to image.c.
16073 (init_xfns): Remove; initialization moved to init_image in image.c.
16074
16075 * lisp.h (syms_of_image, init_image): Add protoypes.
16076 (init_xfns): Remove prototype.
16077
16078 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
16079 (x_reference_bitmap, x_create_bitmap_from_data)
16080 (x_create_bitmap_from_file, x_destroy_bitmap)
16081 (x_create_bitmap_mask): Move prototypes from dispextern.h.
16082 (gamma_correct) [MAC_OS]: Add prototype.
16083
16084 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
16085 (x_reference_bitmap, x_create_bitmap_from_data)
16086 (x_create_bitmap_from_file, x_destroy_bitmap)
16087 (x_create_bitmap_mask): Move prototypes to dispextern.h.
16088
16089 2004-03-09 Kenichi Handa <handa@etlken2>
16090
16091 * coding.c (decode_coding_emacs_mule): Handle insufficent source
16092 correctly.
16093
16094 2004-03-04 Richard M. Stallman <rms@gnu.org>
16095
16096 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
16097
16098 * window.c (Fdisplay_buffer): Doc fix.
16099
16100 * buffer.c (Fpop_to_buffer): Doc fix.
16101
16102 2004-03-03 Kim F. Storm <storm@cua.dk>
16103
16104 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
16105
16106 2004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
16107
16108 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
16109
16110 2004-03-02 Richard M. Stallman <rms@gnu.org>
16111
16112 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
16113
16114 2004-03-02 Kenichi Handa <handa@m17n.org>
16115
16116 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
16117
16118 2004-03-02 Kim F. Storm <storm@cua.dk>
16119
16120 * window.h (struct window): New member overlay_arrow_bitmap.
16121
16122 * window.c (make_window): Initialize overlay_arrow_bitmap.
16123
16124 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
16125 implement and integrate multiple overlay arrows with redisplay.
16126 (syms_of_xdisp): DEFVAR_LISP and initialize it.
16127 (last_arrow_position, last_arrow_string): Replace by properties.
16128 (Qlast_arrow_position, Qlast_arrow_string)
16129 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
16130 (syms_of_xdisp): Intern and staticpro them.
16131 (overlay_arrow_string_or_property, update_overlay_arrows)
16132 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
16133 (overlay_arrow_at_row): New functions for multiple overlay arrows.
16134 (redisplay_internal): Use them instead of directly accessing
16135 Voverlay_arrow_position etc. for multiple overlay arrows.
16136 (mark_window_display_accurate): Use update_overlay_arrows.
16137 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
16138 (try_window_id): Use overlay_arrows_changed_p.
16139 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
16140 (display_line): Use overlay_arrow_at_row to check multiple
16141 overlay arrows, and get relevant overlay-arrow-string and
16142 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
16143 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
16144 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
16145
16146 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
16147 (update_window_fringes): Remove unused code.
16148
16149 2004-03-01 Jason Rumney <jasonr@gnu.org>
16150
16151 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
16152
16153 2004-03-01 Juanma Barranquero <lektu@terra.es>
16154
16155 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
16156
16157 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
16158
16159 2004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16160
16161 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
16162 how many colors can be displayed.
16163
16164 2004-03-01 Kenichi Handa <handa@m17n.org>
16165
16166 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
16167 correctly.
16168
16169 2004-02-28 Kim F. Storm <storm@cua.dk>
16170
16171 * dispnew.c (update_window): Update header line also if there are
16172 no other changes in window (move code after set_cursor label).
16173
16174 * lisp.h (mark_window_display_accurate): Remove prototype.
16175
16176 * window.c (window_loop, Fforce_window_update): Force mode line
16177 updates by setting prevent_redisplay_optimizations_p and
16178 update_mode_lines.
16179
16180 2004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16181
16182 * xfns.c (x_window): Fix indentation.
16183
16184 * xterm.c (x_calc_absolute_position): Call x_real_positions
16185 to get WM window sizes and use those to calculate position.
16186 (x_set_offset): Remove code commented out.
16187
16188 2004-02-28 Miles Bader <miles@gnu.org>
16189
16190 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
16191
16192 2004-02-28 Kim F. Storm <storm@cua.dk>
16193
16194 * keyboard.c (kbd_buffer_store_event_hold): New function to store
16195 an event into kbd fifo, but with special handling of quit event;
16196 a quit event is saved for later, and further events are discarded
16197 until the saved quit event has been processed.
16198 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
16199 (gen_help_event): Store help event in kbd fifo.
16200 (NREAD_INPUT_EVENTS): Remove.
16201 (read_avail_input): Adapt to new read_socket_hook interface.
16202 Remove allocation and initialization of local input_event buffer,
16203 as read_socket_hook stores events directly in fifo. Allocate and
16204 initialize local hold_quit event to handle postponed quit event
16205 (and store it if set by kbd_buffer_store_event_hold).
16206
16207 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
16208 (gen_help_event): Fix prototype.
16209
16210 * macterm.c (XTread_socket): Remove bufp_r and
16211 numcharsp args. Add hold_quit arg.
16212 Rework to use just one, local, inev input_event. Store inev
16213 directly in fifo using kbd_buffer_store_event_hold.
16214
16215 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
16216 (read_input_waiting): Adapt to new read_socket_hook interface.
16217 Remove allocation and initialization of local input_event buffer,
16218 as read_socket_hook stores events directly in fifo. Allocate and
16219 initialize local hold_quit event to handle postponed quit event
16220 (and store it if set by kbd_buffer_store_event_hold).
16221
16222 * term.c (read_socket_hook): Fix arg list.
16223
16224 * termhooks.h (read_socket_hook): Fix prototype.
16225
16226 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
16227 numcharsp args. Add hold_quit arg.
16228 Rework to use just one, local, inev input_event. Store inev
16229 directly in fifo using kbd_buffer_store_event_hold.
16230
16231 * w32inevt.h (w32_console_mouse_position): Fix prototype.
16232
16233 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
16234 Add hold_quit arg. Rework to use just one, local, inev
16235 input_event. Store inev directly in fifo using
16236 kbd_buffer_store_event_hold. Update count in one place.
16237 Postpone call to gen_help_event until inev is stored; use new
16238 local do_help for this.
16239 Remove local emacs_event in handing of ButtonPress event; just use
16240 inev instead (so no reason to copy it later).
16241
16242 * xsmfns.c (x_session_check_input): Remove numchars arg.
16243
16244 * xterm.c (x_focus_changed, x_detect_focus_change):
16245 Remove numchars arg. Always store event into bufp arg.
16246 Return nothing. Callers changed accordingly.
16247 (glyph_rect): Simplify.
16248 (STORE_KEYSYM_FOR_DEBUG): New macro.
16249 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
16250 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
16251 (current_hold_quit) [USE_GTK]: Add.
16252 (event_handler_gdk): Adapt to new handle_one_xevent.
16253 (handle_one_xevent): Remove bufp_r and numcharsp args.
16254 Add hold_quit arg. Rework to use just one, local, inev
16255 input_event. Store inev directly in fifo using
16256 kbd_buffer_store_event_hold. Update count in one place.
16257 Postpone call to gen_help_event until inev is stored; use new
16258 local do_help for this.
16259 Simplify handling of keysyms (consolidate common code). Fix bug
16260 where count was updated with nchars instead of nbytes.
16261 Remove local emacs_event in handing of ButtonPress event; just use
16262 inev instead (so no reason to copy it later).
16263 Remove `out' label. Rename label `ret' to `done'; add various
16264 `goto done' to clarify code flow in deeply nested blocks.
16265 (x_dispatch_event): Simplify as handle_one_xevent now calls
16266 kbd_buffer_store_event itself.
16267 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
16268 arg. Call handle_one_xevent with new arglist. Store event from
16269 x_session_check_input in fifo.
16270 [USE_GTK]: Setup current_hold_quit.
16271 Decrement handling_signal before unblocking input.
16272 (x_initialize) [USE_GTK]: Initialize current_count.
16273
16274 * xterm.h (x_session_check_input): Fix prototype.
16275
16276 2004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16277
16278 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
16279
16280 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
16281 macgui.h).
16282
16283 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
16284
16285 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
16286 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
16287 (init_process) [MAC_OSX]: Avoid conflicts with Carbon/Carbon.h.
16288 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
16289 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
16290 (Bitmap): Remove typedef.
16291 (Pixmap): Change int to GWorldPtr.
16292
16293 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
16294
16295 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
16296 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
16297 New #define to extract 16-bit depth color components from unsigned
16298 long representation.
16299 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
16300 colors used for masks.
16301 (struct mac_display_info): Add color_p. Remove n_cbits.
16302
16303 * macfns.c: Include sys/types.h and sys/stat.h.
16304 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
16305 Include QuickTime/QuickTime.h.
16306 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
16307 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
16308 functions defined in macterm.c.
16309 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
16310 (ZPixmap): New #define for compatibility with xfns.c.
16311 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
16312 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
16313 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
16314 New functions.
16315 (four_corners_best, x_create_x_image_and_pixmap)
16316 (x_destroy_x_image, unwind_create_frame, x_disable_image)
16317 (x_edge_detection, init_color_table, colors_in_color_table)
16318 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
16319 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
16320 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
16321 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
16322 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
16323 long mixup.
16324 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
16325 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
16326 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
16327 (x_set_cursor_type, Fxw_color_values, valid_image_p)
16328 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
16329 (x_alloc_image_color, clear_image_cache, lookup_image)
16330 (x_find_image_file, xbm_read_bitmap_file_data)
16331 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
16332 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
16333 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
16334 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
16335 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
16336 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
16337 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
16338 #if 0.
16339 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
16340 #if 0. Free white_relief.gc and black_relief.gc.
16341 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
16342 New functions (from xfns.c).
16343 (Fx_create_frame): Record unwind_create_frame.
16344 (Fxw_display_color_p): Use dpyinfo->color_p.
16345 (Fx_display_grayscale_p, Fx_display_planes): Don't use
16346 dpyinfo->n_cbits.
16347 (Fx_display_color_cells): Use dpyinfo->n_planes;
16348 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
16349 (Qheuristic, cross_disabled_images, emboss_matrix)
16350 (laplace_matrix): New variables (from xfns.c).
16351 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
16352 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
16353 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
16354 (image_background_transparent): New function (from xfns.c).
16355 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
16356 (image_load_quicktime): Add declaration.
16357 [MAC_OSX] (image_load_quartz2d): Likewise.
16358 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
16359 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
16360 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
16361 (xbm_load_image_from_file, x_laplace_read_row)
16362 (x_laplace_write_row, pbm_read_file): Remove functions.
16363 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
16364 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
16365 (colors_in_color_table): Sync with xfns.c (although not used).
16366 (lookup_rgb_color): Don't lookup color table. Just do gamma
16367 correction.
16368 (COLOR_INTENSITY): New #define (from xfns.c).
16369 (x_disable_image): New function (from xfns.c).
16370 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
16371 (x_build_heuristic_mask): Sync with xfns.c.
16372 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
16373 (HAVE_PBM): Remove #ifdef.
16374 (pbm_load): Sync with xfns.c. Set img->width and img->height
16375 before IMAGE_BACKGROUND.
16376 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
16377 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
16378 Don't enclose with #if HAVE_PNG.
16379 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
16380 symbol _CGImageCreateWithPNGDataProvider is defined.
16381 Otherwise use image_load_quicktime.
16382 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
16383 [HAVE_PNG] (png_load): Sync with xfns.c.
16384 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
16385 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
16386 HAVE_JPEG.
16387 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
16388 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
16389 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
16390 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
16391 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
16392 (tiff_image_p, tiff_load): Don't enclose declarations with #if
16393 HAVE_TIFF.
16394 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
16395 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
16396 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
16397 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
16398 New functions (from xfns.c).
16399 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
16400 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
16401 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
16402 Don't enclose with #if HAVE_GIF.
16403 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
16404 animated gif. Otherwise use image_load_quicktime.
16405 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
16406 gif_DrawText to avoid conflict with QuickdrawText.h.
16407 [HAVE_GIF] (gif_load): Sync with xfns.c.
16408 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
16409 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
16410 Ghostscript is not supported yet).
16411 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
16412 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
16413 cross_disabled_images (from xfns.c). Remove #if 0 for supported
16414 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
16415 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
16416 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
16417 HAVE_PNG. Call EnterMovies to support animated gifs.
16418 Call init_image_func_pointer to bind a symbol
16419 _CGImageCreateWithPNGDataProvider if it is defined.
16420
16421 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
16422 (x_draw_bar_cursor): Sync declaration with xterm.c.
16423 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
16424 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
16425 graphics).
16426 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
16427 (mac_draw_line_to_pixmap, XCreatePixmap)
16428 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
16429 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
16430 New functions.
16431 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
16432 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
16433 Cast bits to char *.
16434 (reflect_byte): New function (from w32fns.c).
16435 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
16436 due to byte alignment.
16437 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
16438 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
16439 (XSetForeground): Remove static (now used in macfns.c).
16440 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
16441 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
16442 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
16443 (x_draw_glyph_string_box, x_draw_image_foreground)
16444 (x_draw_image_foreground_1, x_draw_image_glyph_string)
16445 (x_draw_stretch_glyph_string, x_draw_glyph_string)
16446 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
16447 Sync with xterm.c.
16448 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
16449 than the xterm.c version when a strictly horizontal or vertical
16450 line is drawn.
16451 (XTset_terminal_window): Add static.
16452 (x_make_frame_visible): Add UNBLOCK_INPUT.
16453 (x_free_frame_resources): New funcion (from xterm.c).
16454 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
16455 occurs in tool bar area.
16456 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
16457 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
16458 Initialize image cache.
16459 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
16460 Enclose unused functions with #if 0.
16461 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
16462 (decode_mac_font_name): New function to apply code conversions
16463 from a mac font name to an XLFD font name according to its script code.
16464 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
16465 font name to a mac font name according to REGISTRY and ENCODING fields.
16466 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
16467 whose name starts with `.'.
16468 (init_font_name_table): Use decode_mac_font_name. Add both
16469 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
16470 of a font is smJapanese.
16471 (mac_do_list_fonts): New function to list fonts that match a given
16472 pattern.
16473 (x_list_fonts, XLoadQueryFont): Use it.
16474 (XLoadQueryFont): Set rbearing field for each variable width
16475 character to avoid needless redraw.
16476 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
16477
16478 2004-02-26 Kim F. Storm <storm@cua.dk>
16479
16480 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
16481 as read_socket_hook handler on X aborts if buffer is too small
16482 and W32 handler doesn't always check buffer limit.
16483
16484 * xdisp.c (handle_single_display_prop): Handle left-fringe and
16485 right-fringe similar to a display margin image. Specifically,
16486 the characters having the fringe prop are no longer shown, and
16487 we use IT_IMAGE/next_element_from_image with image_id = -1 to
16488 do this. Set fringe bitmap face_id in it->face_id.
16489 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
16490 still realize it->face (i.e. the fringe bitmap face).
16491
16492 2004-02-25 Miles Bader <miles@gnu.org>
16493
16494 * xdisp.c (check_it): Check string/string_pos consistency.
16495 (init_iterator): Initialize string-related fields properly.
16496
16497 2004-02-11 Miles Bader <miles@gnu.org>
16498
16499 * xdisp.c (produce_image_glyph): Force negative descents to zero.
16500
16501 2004-02-10 Miles Bader <miles@gnu.org>
16502
16503 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
16504 BLOCK_INPUT can be nested, so it doesn't make much sense.
16505
16506 2004-02-24 Michael Mauger <mmaug@yahoo.com>
16507
16508 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
16509 (xbm_read_bitmap_data): Use unsigned char for image data.
16510
16511 2004-02-23 Luc Teirlinck <teirllm@auburn.edu>
16512
16513 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
16514
16515 2004-02-22 Jason Rumney <jasonr@gnu.org>
16516
16517 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
16518 correctly over other bitmaps.
16519
16520 2004-02-21 Eli Zaretskii <eliz@gnu.org>
16521
16522 * emacs.c (USAGE1): Split into two halves.
16523 (USAGE2): Second half of the old USAGE1.
16524 (USAGE3): Rename from USAGE2.
16525 (USAGE4): Rename from USAGE3.
16526
16527 2004-02-21 Juri Linkov <juri@jurta.org>
16528
16529 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
16530 Fix --multibyte. Move --help, --version to USAGE2. Add alias
16531 --file. Fix -f, -l. Sort options. Untabify.
16532 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
16533
16534 2004-02-19 Luc Teirlinck <teirllm@auburn.edu>
16535
16536 * category.c (Fdefine_category, Fcategory_docstring)
16537 (Fget_unused_category, Fset_category_table)
16538 (Fcategory_set_mnemonics): Doc fixes.
16539
16540 2004-02-20 Kim F. Storm <storm@cua.dk>
16541
16542 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
16543 The following changes are relative to the 2004-01-21 revision.
16544 (NREAD_INPUT_EVENTS): Define as max number of input events to read
16545 in one call to read_socket_hook. Value is 8.
16546 (read_avail_input): Separate and rework handling of read_socket_hook
16547 and non-read_socket_hook cases. Use smaller input_event buffer
16548 in read_socket_hook case, and repeat if full buffer is read.
16549 Use new local variable 'discard' to skip input after C-g.
16550 In non-read_socket_hook case, just use a single input_event, and
16551 call kbd_buffer_store_event on the fly for each character.
16552
16553 2004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
16554
16555 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
16556 Remove unused `gu' alternative.
16557
16558 2004-02-19 Andreas Schwab <schwab@suse.de>
16559
16560 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
16561 warning.
16562
16563 2004-02-18 Kim F. Storm <storm@cua.dk>
16564
16565 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
16566 Fix last change.
16567
16568 2004-02-17 Kim F. Storm <storm@cua.dk>
16569
16570 * xdisp.c (fast_find_position): Fix return value of new version;
16571 it was inverted compared to the 21.1 version.
16572 (get_window_cursor_type): Don't look at glyph if NULL.
16573 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
16574
16575 * keyboard.c: Rework previous change; it didn't consider that the
16576 buf array was allocated on the stack.
16577 (prev_read): Remove variable.
16578 (read_avail_input_buf): New static event buffer array.
16579 (in_read_avail_input): New static variable to handle re-entrancy.
16580 (read_avail_input): Change buf to pinter to read_avail_input_buf.
16581 Use in_read_avail_input to handle re-entrance; when re-entered,
16582 fully initialize and use tmp_buf array instead of read_avail_input_buf.
16583 Do not initialize read_avail_input_buf in full here; instead assume it
16584 is always cleared on entry. To ensure that, we clear (just) the
16585 entries that were used before we return.
16586 (init_keyboard): Initialize read_avail_input_buf here.
16587
16588 2004-02-16 Jesper Harder <harder@ifa.au.dk>
16589
16590 * cmds.c (Fend_of_line): Doc fix.
16591
16592 2004-02-16 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
16593
16594 * keyboard.c (prev_read): New static variable.
16595 (read_avail_input): Use it to zero out only those slots in buf[]
16596 that were used last time we were called.
16597
16598 2004-02-16 Eli Zaretskii <eliz@gnu.org>
16599
16600 * Makefile.in (obj): Move fringe.o from here...
16601 (XOBJ, MAC_OBJ): ...to here.
16602
16603 2004-02-16 Stephen Eglen <stephen@gnu.org>
16604
16605 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
16606
16607 2004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
16608
16609 * data.c (Fbyteorder):
16610 * fringe.c (Fdefine_fringe_bitmap):
16611 * xdisp.c (handle_single_display_prop):
16612 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
16613
16614 2004-02-16 Jason Rumney <jasonr@gnu.org>
16615
16616 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
16617
16618 2004-02-15 Steven Tamm <steventamm@mac.com>
16619
16620 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
16621 controlling emulation of a three button mouse with option and
16622 command keys.
16623 (Qreverse, mac_get_enumlated_btn): Handle the emulation.
16624 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
16625
16626 2004-02-15 Kim F. Storm <storm@cua.dk>
16627
16628 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
16629
16630 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
16631 Perform byte-swapping.
16632
16633 2004-02-14 Kim F. Storm <storm@cua.dk>
16634
16635 * dispextern.h (struct draw_fringe_bitmap_params): Change member
16636 bits from char to short to facilitate wider bitmaps.
16637 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
16638 member.
16639
16640 * fringe.c (struct fringe_bitmap): Change member bits from char to
16641 short to facilitate 16 bits wide bitmaps. Modify all standard
16642 bitmaps accordingly.
16643 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
16644 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
16645 (draw_fringe_bitmap): Ditto.
16646 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
16647 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
16648 handle up to 16 bits wide bitmaps.
16649 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
16650 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
16651
16652 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
16653 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
16654 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
16655
16656 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
16657 so it is no longer necessary to expand them here.
16658
16659 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
16660
16661 2004-02-12 Kim F. Storm <storm@cua.dk>
16662
16663 * window.c (Fwindow_fringes): Doc fix.
16664
16665 2004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16666
16667 * xselect.c (x_get_foreign_selection): Add new optional parameter
16668 time_stamp.
16669 (Fx_get_selection_internal): Ditto, pass time_stamp to
16670 x_get_foreign_selection.
16671
16672 * data.c (Fbyteorder): New function.
16673
16674 2004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16675
16676 * atimer.c: Move include stdio.h to same place as in other files.
16677
16678 * region-cache.c: Ditto.
16679
16680 * sysdep.c: Ditto.
16681
16682 * xfaces.c: Ditto.
16683
16684 2004-02-09 Sam Steingold <sds@gnu.org>
16685
16686 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
16687
16688 2004-02-09 Kim F. Storm <storm@cua.dk>
16689
16690 * fringe.c: New file. Move original fringe related declarations
16691 and code from dispextern.h and xdisp.c here.
16692 Rework code to support user defined fringe bitmaps, redefining
16693 standard bitmaps, ability to overlay user defined bitmap with
16694 overlay arrow bitmap, and add faces to bitmaps.
16695 (Voverflow_newline_into_fringe): Declare here.
16696 (enum fringe_bitmap_align): New enum.
16697 (..._bits): All bitmaps are now defined without bitswapping; that
16698 is now done in init_fringe_once (if necessary).
16699 (standard_bitmaps): New array with specifications for the
16700 standard fringe bitmaps.
16701 (fringe_faces): New array.
16702 (valid_fringe_bitmap_id_p): New function.
16703 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
16704 (draw_fringe_bitmap): New function which draws fringe bitmap,
16705 possibly overlaying bitmap with cursor in right fringe or the
16706 overlay arrow in the left fringe.
16707 (update_window_fringes): Do not handle overlay arrow here.
16708 Compare and copy fringe bitmap faces.
16709 (init_fringe_bitmap): New function.
16710 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
16711 define and destroy user defined fringe bitmaps.
16712 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
16713 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
16714 (syms_of_fringe): New function. Defsubr new DEFUNs.
16715 DEFVAR_LISP Voverflow_newline_into_fringe.
16716 (init_fringe_once, init_fringe): New functions.
16717 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
16718
16719 * Makefile.in (obj): Add fringe.o.
16720 (fringe.o): New dependencies.
16721
16722 * dispextern.h (FRINGE_ID_BITS): New definition for number of
16723 bits allocated to hold a fringe number. Increase number of bits
16724 from 4 to 8 to allow user defined fringe bitmaps.
16725 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
16726 left_user_fringe_face_id, right_user_fringe_bitmap,
16727 right_user_fringe_face_id.
16728 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
16729 Move to new file fringe.c.
16730 (MAX_FRINGE_BITMAPS): Define here.
16731 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
16732 and overlay_p. Change member which to int.
16733 (struct redisplay_interface): New members define_fringe_bitmap
16734 and destroy_fringe_bitmap.
16735 (valid_fringe_bitmap_id_p): Add prototype.
16736 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
16737
16738 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
16739 arrows.
16740 (update_frame): Do flush_display if force_flush_display_p to
16741 ensure display (specifically fringes) are updated in a timely
16742 manner when resizing the frame by dragging the mouse.
16743 (update_window_line): Update row if overlay arrow changed.
16744 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
16745 or overlay arrow changed.
16746
16747 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
16748 syms_of_fringe, and init_fringe.
16749
16750 * frame.h (struct frame): New member force_flush_display_p.
16751
16752 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
16753 Add prototypes.
16754
16755 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
16756 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
16757 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
16758 Use cursor color for displaying cursor in fringe.
16759 (x_redisplay_interface): Add null handlers for
16760 define_fringe_bitmap and destroy_fringe_bitmap functions.
16761
16762 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
16763 xterm.c to handle overlayed fringe bitmaps and to use cursor color
16764 for displaying cursor in fringe.
16765 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
16766 specific functions to define and destroy fringe bitmaps in fringe_bmp.
16767 (w32_redisplay_interface): Add them to redisplay_interface.
16768 (w32_term_init): Call w32_init_fringe instead of explicitly
16769 defining fringe bitmaps in fringe_bmp array.
16770 (x_delete_display): Call w32_reset_fringes instead of explicitly
16771 destroying fringe bitmaps in fringe_bmp array.
16772
16773 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
16774 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
16775 (continued_bits, continuation_bits, ov_bits, first_line_bits)
16776 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
16777 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
16778 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
16779 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
16780 Move fringe handling vars and code to new file fringe.c.
16781 (handle_display_prop): Handle left-fringe and right-fringe
16782 display properties; store user fringe bitmaps in iterator.
16783 (move_it_in_display_line_to): Handle cursor in fringe at eob.
16784 (clear_garbaged_frames): Set force_flush_display_p if resized.
16785 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
16786 (display_line): Handle cursor in fringe at eob.
16787 (display_line): Set row user fringe bitmaps from iterator.
16788
16789 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
16790 Use cursor color for displaying cursor in fringe.
16791 (x_redisplay_interface): Add null handlers for
16792 define_fringe_bitmap and destroy_fringe_bitmap functions.
16793
16794 2004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16795
16796 * macfns.c (Fx_change_window_property): Make doc string and
16797 parameters same as for X version.
16798
16799 * w32fns.c (Fx_change_window_property): Ditto.
16800
16801 2004-02-07 Kim F. Storm <storm@cua.dk>
16802
16803 * xdisp.c (hscroll_window_tree): Position cursor near to right
16804 margin in hscrolled window when jumping to end of line (rather
16805 than centering cursor).
16806
16807 * process.c (wait_reading_process_input): Don't do adaptive read
16808 buffering if waiting for a specific process.
16809
16810 2004-02-05 Luc Teirlinck <teirllm@auburn.edu>
16811
16812 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
16813 (Fread_minibuffer, Feval_minibuffer)
16814 (Fread_string, Fread_no_blanks_input)
16815 (Fcompleting_read): Doc fixes.
16816 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
16817 completion-regexp-list. Define Qcase_fold_search and staticpro it.
16818 (read_minibuf): Fix initial comment.
16819 (Ftry_completion, Fall_completions, Ftest_completion): Bind
16820 case-fold-search to the value of completion-ignore-case when
16821 checking completion-regexp-list.
16822 (Fdisplay_completion_list): Make it handle arguments that are
16823 symbols. Doc fix.
16824
16825 2004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16826
16827 * xterm.h: Add declaration of free_frame_menubar.
16828
16829 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
16830 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
16831 (Fx_change_window_property): Add declaration of parameters type and
16832 format. Remove unused variable cons.
16833
16834 * xselect.c: Include stdio.h.
16835
16836 2004-02-05 Kenichi Handa <handa@m17n.org>
16837
16838 * fns.c (Fset_char_table_range): Fix previous change.
16839
16840 * buffer.c (Fset_buffer_multibyte): Fix docstring.
16841
16842 2004-02-04 Luc Teirlinck <teirllm@auburn.edu>
16843
16844 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
16845
16846 2004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
16847
16848 * keymap.c (Vmouse_events): Rename from Vmenu_events.
16849 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
16850
16851 2004-02-04 Kenichi Handa <handa@m17n.org>
16852
16853 * fns.c (Fset_char_table_range): Handle charsets ascii,
16854 eight-bit-control, and eight-bit-graphic correctly.
16855
16856 2004-02-03 Jason Rumney <jasonr@gnu.org>
16857
16858 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
16859
16860 * w32fns.c (x_to_w32_font): Likewise.
16861
16862 2004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16863
16864 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
16865 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
16866
16867 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
16868 ClientMessages.
16869
16870 * xselect.c: Include termhooks.h and X11/Xproto.h.
16871 (x_check_property_data, x_fill_property_data)
16872 (x_property_data_to_lisp, mouse_position_for_drop)
16873 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
16874 (Fx_send_client_event): Move here from xfns.c.
16875 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
16876
16877 * xfns.c (x-send-client-message): Move to xselect.c.
16878 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
16879 OUTER_P.
16880 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
16881 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
16882 if vector_ret_p is true.
16883 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
16884
16885 2004-02-02 Eli Zaretskii <eliz@gnu.org>
16886
16887 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
16888 basename of FILE relative to it, not FILE itself.
16889
16890 2004-02-02 Kenichi Handa <handa@m17n.org>
16891
16892 * coding.c (coding_restore_composition): Check invalid
16893 composition data more rigidly.
16894
16895 2004-01-30 Luc Teirlinck <teirllm@auburn.edu>
16896
16897 * fileio.c (Fread_file_name_internal): Correctly handle the case
16898 where insert-default-directory is nil.
16899 (Fread_file_name): Always return an empty string if the user exits
16900 with an empty minibuffer. Adapt the docstring accordingly.
16901 (syms_of_fileio): Adapt the docstring of insert-default-directory
16902 to the change in Fread_file_name.
16903
16904 2004-01-29 Eli Zaretskii <eliz@gnu.org>
16905
16906 * alloca.c [!alloca]: Fix the prototype for xfree.
16907
16908 2004-01-29 Kenichi Handa <handa@m17n.org>
16909
16910 * fns.c (string_char_to_byte): Optimize for ASCII only string.
16911 (string_byte_to_char): Likewise.
16912
16913 2004-01-28 Peter Runestig <peter@runestig.com>
16914
16915 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
16916
16917 2004-01-27 Steven Tamm <steventamm@mac.com>
16918
16919 * unexmacosx.c (unexec_copy): Do not copy more than was
16920 requested to prevent overwriting during unexec.
16921
16922 2004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16923
16924 * process.c (sigchld_handler): Add comment about not calling malloc.
16925
16926 * process.h: Add extern to synch_process_termsig.
16927
16928 2004-01-27 Steven Tamm <steventamm@mac.com>
16929
16930 * macterm.c (make_mac_frame, make_mac_terminal_frame):
16931 Move setting of scroll bars from make_mac_frame to
16932 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
16933
16934 2004-01-26 Richard M. Stallman <rms@gnu.org>
16935
16936 * search.c (Freplace_match): Handle nonexistent
16937 back-references properly.
16938
16939 2004-01-03 Richard M. Stallman <rms@gnu.org>
16940
16941 * window.c (decode_any_window): New function.
16942 (Fwindow_height, Fwindow_width, Fwindow_edges)
16943 (Fwindow_pixel_edges, Fwindow_inside_edges)
16944 (Fwindow_inside_pixel_edges): Use decode_any_window.
16945
16946 2004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16947
16948 * process.h: synch_process_termsig new variable.
16949
16950 * callproc.c: Define synch_process_termsig.
16951 (Fcall_process): Initiate synch_process_termsig to zero and
16952 check if non-zero and get signal name after subprocess has ended.
16953
16954 * process.c (sigchld_handler): Set synch_process_termsig
16955 if terminated by a signal. synch_process_death setting removed.
16956
16957 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
16958
16959 2004-01-26 Andreas Schwab <schwab@suse.de>
16960
16961 * print.c (print_preprocess): Declare size as EMACS_INT to not
16962 lose bits.
16963 (print_object): Likewise.
16964 * alloc.c (Fpurecopy): Likewise.
16965
16966 2004-01-25 Luc Teirlinck <teirllm@auburn.edu>
16967
16968 * window.c (Fwindow_minibuffer_p): Doc fix.
16969
16970 2004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
16971
16972 * editfns.c (Fformat): Make both passes accept the same set of flags.
16973
16974 2004-01-23 Kenichi Handa <handa@m17n.org>
16975
16976 * fns.c (Fmd5): If OBJECT is a buffer different from the current
16977 one, set buffer to OBJECT temporarily.
16978
16979 2004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
16980
16981 * keyboard.c (kbd_buffer_gcpro): Remove.
16982 (kbd_buffer_store_event, clear_event, Fdiscard_input)
16983 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
16984 Don't initialize and/or maintain the variable any more. It was made
16985 redundant by my commit of 2003-06-15.
16986
16987 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
16988
16989 2004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16990
16991 * lisp.h: Add undef DECL_ALIGN.
16992
16993 2004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
16994
16995 * process.c (wait_reading_process_input) [SYNC_INPUT]:
16996 Check interrupt_input_pending explicitly.
16997
16998 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
16999
17000 * keyboard.c (handle_async_input): New fun,
17001 extracted from input_available_signal.
17002 (input_available_signal, reinvoke_input_signal): Use it.
17003
17004 2004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
17005
17006 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
17007
17008 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
17009 manipulation macros for when tags are in the lower bits.
17010 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
17011 (DECL_ALIGN): New macro.
17012 (DEFUN): Use it.
17013
17014 * lisp.h [ENABLE_CHECKING]: Don't force union type.
17015
17016 * s/darwin.h (__attribute__): Remove outdated workaround.
17017
17018 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
17019
17020 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
17021 Don't check range of malloc address.
17022 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
17023
17024 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
17025
17026 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
17027
17028 2004-01-19 Kenichi Handa <handa@m17n.org>
17029
17030 * fontset.c (fontset_font_pattern): Fix previous change.
17031
17032 2004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
17033
17034 * xdisp.c (Voverflow_newline_into_fringe)
17035 (move_it_in_display_line_to, redisplay_internal)
17036 (update_window_fringes, redisplay_window, display_line, window):
17037 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
17038 that it compiles without a window-system.
17039 * dispnew.c (direct_output_for_insert, update_window): Likewise.
17040
17041 2004-01-16 Kim F. Storm <storm@cua.dk>
17042
17043 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
17044
17045 * buffer.c (init_buffer_once): Set buffer_defaults and
17046 buffer_local_flags for indicate_buffer_boundaries.
17047 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
17048 default- variable for it.
17049
17050 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
17051 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
17052 New members exact_window_width_line_p and cursor_in_fringe_p for
17053 overflowing newlines into right fringe.
17054 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
17055 and indicate_bottom_line_p for buffer boundaries and scrolling.
17056 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
17057 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
17058 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
17059 and HOLLOW_SQUARE_BITMAP.
17060 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
17061 Add prototypes.
17062
17063 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
17064 instead of related indicator fields.
17065 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
17066 (direct_output_for_insert): Handle exact width lines like
17067 contined lines. Call update_window_fringes.
17068 (update_window): Call update_window_fringes.
17069 (scrolling_window): Don't skip desired rows with changed bitmaps.
17070 Check if fringe bitmaps changes when assigning scrolled rows.
17071
17072 * xdisp.c (Voverflow_newline_into_fringe): New variable.
17073 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
17074 (move_it_in_display_line_to): Overflow newline into fringe for
17075 rows that are exactly as wide as the window.
17076 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
17077 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
17078 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
17079 (fringe_bitmaps): Add new bitmaps.
17080 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
17081 Select proper bitmap for cursor in fringe when appropriate.
17082 Handle alignment of bitmap to top or bottom of row.
17083 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
17084 done by update_window_fringes.
17085 (update_window_fringes, draw_window_fringes): New functions.
17086 (redisplay_internal): Call update_window_fringes in case only
17087 cursor row is updated.
17088 (redisplay_window): Call update_window_fringes.
17089 Explicitly call draw_window_fringes if redisplay was done using
17090 the current matrix or the overlay arrow is in the window.
17091 (try_window_reusing_current_matrix): Mark scrolled rows for
17092 fringe update (to update buffer-boundaries / scrolling icons).
17093 (find_last_unchanged_at_beg_row): Handle exact width lines line
17094 continued lines.
17095 (display_line): Overflow newline into fringe for rows that are
17096 exactly as wide as the window. Don't append space for newline
17097 in this case.
17098 (notice_overwritten_cursor): Explicitly clear cursor bitmap
17099 in fringe as if it had been overwritten.
17100 (erase_phys_cursor): Erase cursor bitmap in fringe.
17101 (syms_of_xdisp): Mark show-trailing-whitespace and
17102 void-text-area-pointer as user options.
17103 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
17104
17105 * xterm.c (x_update_window_end): Call draw_window_fringes.
17106 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
17107 in row instead of actually drawing fringe bitmaps.
17108 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
17109 (x_draw_window_cursor): Draw cursor in fringe.
17110
17111 * w32term.c (x_update_window_end): Call draw_window_fringes.
17112 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
17113 in row instead of actually drawing fringe bitmaps.
17114 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
17115 (w32_draw_window_cursor): Draw cursor in fringe.
17116
17117 * macterm.c (x_update_window_end): Call draw_window_fringes.
17118 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
17119 in row instead of actually drawing fringe bitmaps.
17120 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
17121 (mac_draw_window_cursor): Draw cursor in fringe.
17122
17123 2004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17124
17125 * xterm.c (handle_one_xevent): Don't handle characters that are part
17126 of an old style (XLookupString) compose sequence.
17127
17128 2004-01-15 Kenichi Handa <handa@m17n.org>
17129
17130 * search.c (Freplace_match): Use make_multibyte_string or
17131 make_unibyte_string according to the buffer multibyteness.
17132
17133 2004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
17134
17135 * alloc.c (struct interval_block, struct string_block)
17136 (struct symbol_block, struct marker_block, live_string_p)
17137 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
17138 Better preserve alignment for objects in blocks.
17139 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
17140
17141 * lread.c (defvar_per_buffer): Remove dead declaration.
17142
17143 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
17144 space size.
17145
17146 2004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17147
17148 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
17149 if a key press should pop down. Only pop down if a key is pressed
17150 outside the menu/dialog.
17151 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
17152 popup_get_selection.
17153 (create_and_show_dialog): Pass 1 for down_on_keypress to
17154 popup_get_selection.
17155
17156 2004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17157
17158 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
17159 BLOCK/UNBLOCK_INPUT.
17160
17161 2004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17162
17163 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
17164 specified.
17165
17166 2004-01-08 Kenichi Handa <handa@m17n.org>
17167
17168 * editfns.c (Fformat): Fix '&' to '&&'.
17169
17170 2004-01-08 Andreas Schwab <schwab@suse.de>
17171
17172 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
17173 size if PSEUDOVECTOR_FLAG is set.
17174
17175 2004-01-07 Kenichi Handa <handa@m17n.org>
17176
17177 * charset.c (Fdeclare_equiv_charset): Fix docstring.
17178
17179 * fontset.c (fontset_ref_via_base): Fix previous change.
17180
17181 2004-01-07 Kim F. Storm <storm@cua.dk>
17182
17183 * process.c (read_process_output): Only activate adaptive
17184 buffering if we read less than 256 bytes at a time.
17185
17186 2004-01-06 Kim F. Storm <storm@cua.dk>
17187
17188 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
17189 object and image object. Return glyph width and height.
17190 (mode_line_string, marginal_area_string): Ditto.
17191
17192 * dispextern.h (buffer_posn_from_coords, mode_line_string)
17193 (marginal_area_string): Fix prototypes.
17194
17195 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
17196 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
17197 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
17198
17199 * keyboard.c (make_lispy_position): Use modified mode_line_string,
17200 buffer_posn_from_coords, and marginal_area_string functions to
17201 include both string object and image object in the lispy position.
17202 Also add actual glyph width and height to position.
17203 (read_key_sequence): Use real buffer position from mouse
17204 event to find keymap property even when click is in marginal area.
17205
17206 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
17207 mode_line_string and marginal_area_string functions to handle
17208 both string object and image object properties.
17209
17210 2004-01-06 Andreas Schwab <schwab@suse.de>
17211
17212 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
17213 character.
17214
17215 2004-01-02 Andreas Schwab <schwab@suse.de>
17216
17217 * macterm.c (emacs_options, x_initialized, same_x_server):
17218 Remove unused (and duplicated) definitions.
17219
17220 2004-01-02 Kim F. Storm <storm@cua.dk>
17221
17222 * process.h (struct Lisp_Process): New members for adaptive read
17223 buffering: adaptive_read_buffering, read_output_delay, and
17224 read_output_skip.
17225
17226 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
17227 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
17228 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
17229 (process_output_delay_count, process_output_skip): New vars.
17230 (Vprocess_adaptive_read_buffering): New variable.
17231 (make_process): Initialize adaptive read buffering members.
17232 (Fstart_process): Set adaptive_read_buffering member.
17233 (deactivate_process): Cleanup adaptive read buffering.
17234 (wait_reading_process_input): Temporarily omit delayed
17235 subprocesses from the set of file descriptors to read from;
17236 adjust the select timeout if we skipped any subprocesses.
17237 (read_process_output): Increase adaptive read buffering delay if
17238 we read less than a full buffer; reduce delay when we read a
17239 full buffer.
17240 (send_process): Simplify using local Lisp_Process var.
17241 Reset adaptive read buffering delay after write.
17242 (init_process): Initialize process_output_delay_count and
17243 process_output_skip.
17244 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
17245
17246 2004-01-01 Jason Rumney <jasonr@gnu.org>
17247
17248 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
17249
17250 2003-12-30 Luc Teirlinck <teirllm@auburn.edu>
17251
17252 * print.c (Ferror_message_string): Add hyperlink in the docstring
17253 to the definition of `signal' in the Elisp manual.
17254 * eval.c (Fsignal): Ditto.
17255
17256 2003-12-29 James Clark <jjc@jclark.com>
17257
17258 * fns.c (internal_equal): Return t for two NaN arguments.
17259
17260 2003-12-29 Richard M. Stallman <rms@gnu.org>
17261
17262 * data.c (store_symval_forwarding): Handle setting
17263 default-fill-column, etc., by changing the value in
17264 buffers that use the default.
17265
17266 * minibuf.c (Fset_minibuffer_window): Doc fix.
17267
17268 * fileio.c (choose_write_coding_system): Ignore auto_saving
17269 if using the visited file for auto saves.
17270 (Fwrite_region): Don't update SAVE_MODIFF
17271 if auto-saving in visited file.
17272
17273 2003-12-29 Kenichi Handa <handa@m17n.org>
17274
17275 * dispextern.h (face_font_available_p): Extern it.
17276
17277 * fontset.c (Voverriding_fontspec_alist): New variable.
17278 (lookup_overriding_fontspec): New function.
17279 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
17280 (fontset_font_pattern): Likewise.
17281 (regulalize_fontname): New function.
17282 (Fset_fontset_font): Call regulalize_fontname.
17283 (Fset_overriding_fontspec_internal): New function.
17284 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
17285 Defsubr Sset_overriding_fontspec_internal.
17286
17287 * xfaces.c (face_font_available_p): New function.
17288
17289 2003-12-28 Richard M. Stallman <rms@gnu.org>
17290
17291 * buffer.c (Fother_buffer): Don't crash if BUF is nil
17292 or if its name is nil.
17293
17294 * buffer.c (Fkill_buffer): Don't delete auto-save file
17295 if it's the same as the visited file.
17296
17297 2003-12-28 Luc Teirlinck <teirllm@auburn.edu>
17298
17299 * coding.c (Fcheck_coding_system): Doc fix.
17300
17301 2003-12-28 Kim F. Storm <storm@cua.dk>
17302
17303 * Makefile.in (eval.o): Depend on dispextern.h.
17304
17305 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
17306 image glyph using image's ascent.
17307 (mode_line_string): Return image glyph as object clicked on.
17308 Adjust y0 for image glyph using image's ascent.
17309
17310 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
17311 (struct glyph): New members, ascent and descent. Used to save
17312 this glyph's ascent and descent, instead of having.
17313 (struct glyph): Declare member face_id using FACE_ID_BITS.
17314 (find_hot_spot): Add prototype.
17315
17316 * keyboard.c (Qimage): Remove extern (now in lisp.h).
17317 (QCmap): Declare extern.
17318 (make_lispy_position): When position is inside image hot-spot,
17319 use hot-spot element's id as posn element.
17320
17321 * lisp.h (IMAGEP): New macro to test for image object type.
17322 (Qimage): Declare extern.
17323
17324 * macfns.c (Qimage): Remove extern (now in lisp.h).
17325 (valid_image_p, parse_image_spec): Use IMAGEP macro.
17326
17327 * macterm.c (Qface, Qmouse_face): Remove unused externs.
17328
17329 * w32fns.c (Qimage): Remove extern (now in lisp.h).
17330 (valid_image_p, parse_image_spec): Use IMAGEP macro.
17331
17332 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
17333
17334 * w32term.c (Qface, Qmouse_face): Remove unused externs.
17335
17336 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
17337 pointer types.
17338 (Qrelative_width, Qalign_to): Remove unused variables.
17339 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
17340 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for image
17341 maps.
17342 (x_y_to_hpos_vpos): Return glyph relative coordinates through new
17343 dx and dy args. Remove buffer_only_p arg (always 0). Simplify
17344 code accordingly.
17345 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
17346 than row's ascent and height, to get sensible height on tall rows.
17347 (build_desired_tool_bar_string): Remove Qimage extern.
17348 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
17349 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
17350 image glyph is alone on the last line.
17351 (append_glyph, append_composite_glyph, produce_image_glyph)
17352 (append_stretch_glyph): Set glyph's ascent and descent.
17353 (on_hot_spot_p): New function to check if position is inside an
17354 rectangular, circular, or polygon-shaped image hot-spot,
17355 (find_hot_spot): New function to search for image hot-spot.
17356 (Flookup_image_map): New defun to search for image hot-spot.
17357 (define_frame_cursor1): New aux function to determine frame
17358 pointer.
17359 (note_mode_line_or_margin_highlight, note_mouse_highlight): Handle
17360 `pointer' text property and :pointer image property to control
17361 frame pointer shape. Detect image hot-spots for pointer and
17362 help_echo properties. Use define_frame_cursor1.
17363 (note_mouse_highlight): Use Vvoid_text_area_pointer.
17364 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new
17365 variables. DEFVAR_LISP Vvoid_text_area_pointer instead of
17366 Vshow_text_cursor_in_void.
17367
17368 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
17369
17370 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
17371 (Qimage): Remove extern (now in lisp.h).
17372 (valid_image_p, parse_image_spec): Use IMAGEP macro.
17373
17374 * xmenu.c (show_help_event): Remove unused code.
17375
17376 * xterm.c (Qface, Qmouse_face): Remove unused externs.
17377 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
17378 row's ascent and descent, to get a sensible height on tall rows.
17379
17380 2003-12-25 Luc Teirlinck <teirllm@auburn.edu>
17381
17382 * minibuf.c (Fcompleting_read): Undo previous change.
17383
17384 2003-12-25 Lars Hansen <larsh@math.ku.dk>
17385
17386 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
17387 Arguments GCPRO'ed in call to file name handler.
17388
17389 2003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
17390
17391 * termcap.c (tgetst1): Scan for "%pN"; if all
17392 N are continuous in [1,9], remove all "%pN".
17393
17394 2003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17395
17396 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
17397
17398 * xfaces.c (lface_fully_specified_p): Take into account that
17399 MAC OS always have unspecified stipple.
17400
17401 2003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
17402
17403 * tparam.c (tparam1): Add handling for `%pN', which
17404 means use param N for the next substitution.
17405
17406 2003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
17407
17408 * xfaces.c (Fcolor_gray_p): Fix omission bug:
17409 In case `frame' is nil, consult the selected frame.
17410 (Fcolor_supported_p): Likewise.
17411
17412 2003-12-23 Luc Teirlinck <teirllm@auburn.edu>
17413
17414 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
17415 Doc fixes.
17416
17417 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
17418 and an integer. Adapt the introductory comment accordingly.
17419 (Fread_from_minibuffer): Delete code moved into read_minibuf.
17420 Doc fix.
17421 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
17422 read_minibuf.
17423 (Fcompleting_read): Delete code moved into read_minibuf.
17424 (Ftest_completion): Make it handle obarrays and hash tables correctly.
17425
17426 2003-12-03 Kenichi Handa <handa@m17n.org>
17427
17428 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
17429 encoding sequence.
17430
17431 2003-12-01 Kenichi Handa <handa@m17n.org>
17432
17433 * composite.c (syms_of_composite): Don't make the compostion hash
17434 table week.
17435
17436 2003-11-30 Luc Teirlinck <teirllm@auburn.edu>
17437
17438 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
17439 * textprop.c (Fget_char_property_and_overlay): New function.
17440 (syms_of_textprop): Defsubr it.
17441
17442 2003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17443
17444 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
17445 to compile on terminal configuration.
17446
17447 * fileio.c (Fread_file_name): Check use_file_dialog also before
17448 calling Fx_file_dialog.
17449
17450 * fns.c (use_file_dialog): New variable.
17451 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
17452
17453 2003-11-29 Kim F. Storm <storm@cua.dk>
17454
17455 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
17456 (syms_of_msdos): Don't intern and staticpro them.
17457
17458 2003-11-27 Kim F. Storm <storm@cua.dk>
17459
17460 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
17461 coordinates relative to glyph at posn. If glyph is an image,
17462 return that as object at posn. Callers changed.
17463 (mode_line_string, marginal_area_string): Calculate and return
17464 pixel coordinates relative to glyph. Callers changed.
17465
17466 * dispextern.h (buffer_posn_from_coords, mode_line_string)
17467 (marginal_area_string): Fix prototypes.
17468 (window_box_left_offset, window_box_right_offset): Add prototypes.
17469
17470 * frame.h (get_specified_cursor_type, get_window_cursor_type):
17471 Remove prototypes.
17472
17473 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
17474
17475 * keyboard.c (make_lispy_position): Add x and y coordinates
17476 relative to the current glyph as 7th element of position.
17477 If glyph is an image, return it in the object element.
17478 (read_key_sequence): Skip checks for keymap property in cases
17479 where POSN_STRING is not a string (e.g. an image).
17480
17481 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
17482 (Vshow_text_cursor_in_void): New variable.
17483 (glyph_to_pixel_coords): Don't use negative hpos.
17484 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
17485 (append_stretch_glyph): Change ascent arg to be actual value
17486 in pixels rather than ratio to height. Callers changed.
17487 (calc_pixel_width_or_height): New aux function, implementing
17488 pixel based artihmetic for glyph widths and heights.
17489 (produce_stretch_glyph): Use calc_pixel_width_or_height for
17490 :width, :height, :align-to, and :ascent, thus allowing these to
17491 be specified in pixels as well as multiples of characters.
17492 Don't produce stretch glyphs with zero width or height.
17493 (get_specified_cursor_type): Declare static.
17494 (get_window_cursor_type): Declare static. Add glyph arg to be
17495 able to know when cursor is on an image; always substitute
17496 hollow-box cursor for filled-box cursor on images, to avoid
17497 negative images and flicker when blinking the cursor.
17498 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
17499 (note_mode_line_or_margin_highlight): Use non-text cursor rather
17500 than vertical scroll-bar cursor in display margins.
17501 (note_mouse_highlight): Use non-text cursor rather than text
17502 cursor in fringes and over images in the text area.
17503 Use non-text cursor when mouse pointer is outside editable text,
17504 i.e. in the void after end-of-line or end-of-buffer; this was
17505 already done for W32, but is now standard for all systems --
17506 user can toggle show-text-cursor-in-void to get old behaviour.
17507 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
17508 Vdisplay_pixels_per_inch.
17509
17510 2003-11-25 Andreas Schwab <schwab@suse.de>
17511
17512 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
17513 EMACS_INT to not lose bits.
17514 (Ffillarray): Don't set bits beyond the size of a bool vector.
17515
17516 2003-11-25 Kim F. Storm <storm@cua.dk>
17517
17518 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
17519 define this defun on systems that cannot use stderr as lvalue.
17520
17521 2003-11-24 Gerd Moellmann <gerd@gnu.org>
17522
17523 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
17524 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
17525 ld's default is incompatible with unexec.
17526
17527 2003-11-23 Kim F. Storm <storm@cua.dk>
17528
17529 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
17530 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
17531 (Fforce_window_update): New defun.
17532 (syms_of_window): Defsubr it.
17533 (Fset_window_margins, Fset_window_fringes): Doc fix.
17534
17535 * print.c (Fredirect_debugging_output): New defun.
17536 (syms_of_print): Defsubr it.
17537
17538 2003-11-22 Luc Teirlinck <teirllm@auburn.edu>
17539
17540 * fns.c (Fset_char_table_parent): Doc fix.
17541
17542 2003-11-22 Kim F. Storm <storm@cua.dk>
17543
17544 * dispnew.c (buffer_posn_from_coords): Return actual row/column
17545 for glyph clicked on, rather than (unused) pixel positions.
17546 (mode_line_string, marginal_area_string): Change X and Y args to
17547 pointers for returning actual row/column for glyph clicked on.
17548 Simplify and optimize loops.
17549
17550 * dispextern.h (mode_line_string, marginal_area_string):
17551 Update prototypes.
17552
17553 * keyboard.c (make_lispy_position): New function for generating
17554 mouse click positions from frame and pixel coordinates.
17555 Enhanced to return buffer position and actual row/column for
17556 events outside the text area using updated mode_line_string and
17557 marginal_area_string functions.
17558 Return left-fringe and right-fringe clicks as such, rather than
17559 clicks in text area.
17560 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
17561 pixel_to_glyph_coords, as we never use the results.
17562 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
17563 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
17564 Eliminate unused code in WHEEL_EVENT handling.
17565 (make_lispy_movement): Use make_lispy_position.
17566
17567 * window.c (coordinates_in_window): Remove redundant tests.
17568 Fix returned X pixel value for left-margin.
17569
17570 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
17571 mode_line_string and marginal_area_string parameters.
17572
17573 2003-11-22 Lars Hansen <larsh@math.ku.dk>
17574
17575 * w32.c (struct the_group, getgrgid): Add.
17576 * mac.c (struct my_group, getgrgid): Add.
17577
17578 2003-11-21 Luc Teirlinck <teirllm@auburn.edu>
17579
17580 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
17581
17582 2003-11-21 Lars Hansen <larsh@math.ku.dk>
17583
17584 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
17585 include in call to file name handler. Optionally translate numeric
17586 UID and GID to strings. Update docstring.
17587 (directory_files_internal): Add parameter ID-FORMAT.
17588 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
17589 include in call to file name handler and call to
17590 directory_files_internal. Update Docstring.
17591 (Fdirectory_files): Add dummy parameter in call to
17592 directory_files_internal.
17593 * lisp.h (Qinteger): Add.
17594 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
17595 (Ffile_attributes): Add parameter.
17596 * data.c (Qinteger): Export.
17597
17598 2003-11-21 Luc Teirlinck <teirllm@auburn.edu>
17599
17600 * fns.c (Freverse, Fnreverse): Doc fixes.
17601
17602 2003-11-19 Kim F. Storm <storm@cua.dk>
17603
17604 * xdisp.c (init_iterator): Initialize it->start to position
17605 before reseating (in case start position is invisible).
17606 (init_to_row_start): Set it->start to row-start.
17607 (redisplay_window): Accept optional_new_start if start position
17608 is invisible (in which case IT_CHARPOS overshoots PT).
17609 (display_line): Setup row->start from it->start (rather than
17610 it->current which is wrong if first char on line is invisible).
17611 When done, reseat it->start to it->current (= start of next row).
17612 (expose_area): Fix exposure of text area when first char (e.g. TAB)
17613 is only partially visible.
17614
17615 * dispextern.h (struct it): New member start.
17616
17617 2003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
17618
17619 * alloc.c (make_float, Fcons): Clear the markbit at init time.
17620 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
17621 of block_index outside of the macro call.
17622 (Fgarbage_collect): Remove null code.
17623
17624 * m/amdx86-64.h: Don't redefine XPNTR.
17625
17626 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
17627 of VALMASK.
17628
17629 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
17630 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
17631 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
17632
17633 * lisp.h (VALMASK): Only define for non-union type.
17634 (MARKBIT): Remove.
17635 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
17636 (XTYPE): Define unconditionally.
17637 (XSETTYPE): Remove one more remnant.
17638 (EQ): Define differently for the union and non-union cases.
17639 (INTMASK): New bit mask.
17640 (struct Lisp_Marker): Move down to prepare for upcoming patch.
17641 (GC_EQ): Delegate to EQ.
17642
17643 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
17644
17645 2003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17646
17647 * xterm.c (x_window_to_scroll_bar): Move check of display to
17648 where window_id is compared.
17649
17650 2003-11-17 Kim F. Storm <storm@cua.dk>
17651
17652 * dispextern.h (struct it): New member first_vpos.
17653
17654 * xdisp.c (start_display): Set it->first_vpos.
17655 (try_window_id): Use first_vpos to start display in first _text_
17656 line if no reusable lines at start of window with header line.
17657
17658 2003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17659
17660 * w32fns.c (XPutPixel):
17661 * w32bdf.c (w32_init_bdf_font):
17662 * sunfns.c (sel_read):
17663 * process.c (Fmake_network_process):
17664 * frame.c (store_frame_param):
17665 * fontset.c (Fset_fontset_font):
17666 * emacs.c (shut_down_emacs):
17667 * ccl.c (ccl_driver): Remove period at end of error message.
17668
17669 * config.in: Regenerate.
17670
17671 * xfns.c (x_window_to_frame, x_any_window_to_frame)
17672 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
17673 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
17674 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
17675 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
17676
17677 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
17678
17679 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
17680 (XTmouse_position, handle_one_xevent): Pass Display* to
17681 x_window_to_scroll_bar.
17682 (x_window_to_scroll_bar): Take a Display* argument.
17683 Check that display for frame is equal to Display* argument.
17684 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
17685 x_display_info_for_display instead. Use Display in xev instead
17686 of GDK_DISPLAY.
17687 (x_dispatch_event): Call x_display_info_for_display.
17688 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
17689 (x_connection_closed): Call xg_display_close for GTK.
17690 (x_term_init): Call xg_display_open for additional displays.
17691 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
17692 for GTK.
17693
17694 * xmenu.c (single_menu_item, mouse_position_for_popup)
17695 (x_activate_menubar): Formatting adjustments.
17696
17697 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
17698 adjustments.
17699
17700 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
17701 (xg_display_close, xg_create_default_cursor)
17702 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
17703 handling.
17704 (xg_left_ptr_cursor): Remove.
17705 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
17706 cursor here.
17707 (xg_win_to_widget): Take Display* argument, call
17708 gdk_xid_table_lookup_for_display.
17709 (xg_create_frame_widgets, xg_get_file_name, create_menus)
17710 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
17711 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
17712 in FRAME_X_DISPLAY_INFO.
17713 (xg_get_scroll_id_for_window): Take Display* argument.
17714 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
17715 (xg_initialize): Remove xg_left_ptr_cursor.
17716
17717 * gtkutil.h (xg_get_scroll_id_for_window, xg_win_to_widget): Add
17718 Display* argument.
17719 (xg_display_open, xg_display_close, xg_create_default_cursor): Declare.
17720
17721 2003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17722
17723 * xterm.c (x_detect_focus_change): Do not change focus frame for
17724 Enter/LeaveNotify if the current focus frame has explicit focus.
17725
17726 2003-11-14 Kim F. Storm <storm@cua.dk>
17727
17728 * dispnew.c (update_text_area): Fix redisplay error when hscroll
17729 is active and first glyph is only partially visible.
17730
17731 2003-11-13 Kenichi Handa <handa@m17n.org>
17732
17733 * xdisp.c (select_frame_for_redisplay): New function.
17734 (redisplay_internal): Record also selected_frame for
17735 unwind_redisplay. Call select_frame_for_redisplay before
17736 redrawing each frame.
17737 (unwind_redisplay): Argument changed to a cons.
17738
17739 2003-11-12 Luc Teirlinck <teirllm@auburn.edu>
17740
17741 * fns.c (Fstring_to_multibyte): Doc fix.
17742
17743 2003-11-11 Kenichi Handa <handa@m17n.org>
17744
17745 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
17746
17747 2003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17748
17749 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
17750 program specified positions.
17751
17752 2003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17753
17754 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
17755
17756 2003-11-08 Kenichi Handa <handa@m17n.org>
17757
17758 * Makefile.in (lisp): Add kannada.el.
17759 (shortlisp): Likewise.
17760
17761 2003-11-07 Kenichi Handa <handa@m17n.org>
17762
17763 * coding.c (coding_allocate_composition_data):
17764 Reset coding->composing to COMPOSITION_NO.
17765 (coding_restore_composition): Detect invalid composition data.
17766 Give Fstring and Fvector a Lispy integer, not C int.
17767
17768 2003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
17769
17770 * floatfns.c (Flogb): Don't use VALMASK.
17771
17772 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
17773 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
17774
17775 * lisp.h (XINT): Move the cast to clarify what is going on.
17776 (GCTYPEMASK, XSETTYPE): Remove.
17777 (XGCTYPE): Make it an alias of XTYPE.
17778
17779 2003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17780
17781 * xterm.c (x_term_init): Fix formatting.
17782
17783 2003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17784
17785 * gtkutil.h (xg_have_tear_offs): Declare.
17786 (xg_keep_popup, xg_did_tearoff): Remove.
17787
17788 * gtkutil.c: Remove variable xg_did_tearoff.
17789 (xg_have_tear_offs): New function.
17790 (tearoff_remove): Just decrease xg_detached_menus.
17791 (tearoff_activate): Increase xg_detached_menus and call
17792 tearoff_remove when tearoff is removed.
17793 (xg_keep_popup): Remove function.
17794 (create_menus): Give add_tearoff_p as argument to recursive
17795 call to create_menus.
17796 (xg_create_widget): Use variables instead of multiple
17797 strcmp. Tell create_menus to create tear off only for
17798 menu bar menus.
17799 (xg_update_menubar): Change title for a detached menu also.
17800 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
17801 of deep_p.
17802 (xg_initialize): Initialize xg_detached_menus, remove
17803 initialization of xg_did_tearoff.
17804
17805 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
17806 xg_have_tear_offs returns non-zero.
17807 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
17808 call to xg_keep_popup.
17809
17810 2003-11-01 Andrew Choi <akochoi@shaw.ca>
17811
17812 * macterm.c (XTread_socket): Handle menubar selection and grow
17813 window only for mouseDown events.
17814
17815 2003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17816
17817 * xterm.c (x_term_init): For GTK part, increase x_initialized
17818 to check for more than one display. Use error instead of return 0.
17819
17820 2003-10-31 Andrew Choi <akochoi@shaw.ca>
17821
17822 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
17823 (copy_dysymtab): Call it.
17824
17825 2003-10-31 Luc Teirlinck <teirllm@auburn.edu>
17826
17827 * eval.c (Fdefvaralias): Doc fix.
17828
17829 2003-10-26 Luc Teirlinck <teirllm@auburn.edu>
17830
17831 * data.c (Fsetplist): Doc fix.
17832
17833 2003-10-14 Lute Kamstra <lute@gnu.org>
17834
17835 * window.c (Fset_window_fringes): Clarify docstring.
17836
17837 2003-10-14 Kim F. Storm <storm@cua.dk>
17838
17839 * window.c (Fset_window_margins): Simplify arg checking.
17840
17841 2003-10-13 Richard M. Stallman <rms@gnu.org>
17842
17843 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
17844 (print_partial_compiled_pattern): Replace assert with a printout.
17845 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
17846
17847 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
17848
17849 * window.c (Fset_window_margins): Allow only integers as args.
17850 (syms_of_window) <special-display-buffer-names,
17851 special-display-regexps>: Doc fixes.
17852
17853 2003-10-13 Lute Kamstra <lute@gnu.org>
17854
17855 * window.c (Fset_window_fringes): Elaborate docstring.
17856
17857 2003-10-12 Andrew Choi <akochoi@shaw.ca>
17858
17859 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
17860
17861 * s/darwin.h (GC_MARK_STACK): Define.
17862
17863 2003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17864
17865 * window.c (shrink_windows): New function.
17866 (size_window): Call shrink_windows to calculate window sizes when
17867 shrinking frame with more than one window.
17868
17869 2003-10-12 Kim F. Storm <storm@cua.dk>
17870
17871 * xdisp.c (compute_fringe_widths): Doc fix.
17872
17873 2003-10-08 Kenichi Handa <handa@m17n.org>
17874
17875 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
17876
17877 2003-10-07 Kenichi Handa <handa@m17n.org>
17878
17879 * coding.c (Qcoding_system_define_form): New variable.
17880 (syms_of_coding): Intern and staticpro it.
17881 (Fcheck_coding_system): Try to autoload the definition of
17882 CODING-SYSTEM.
17883
17884 2003-10-05 Luc Teirlinck <teirllm@auburn.edu>
17885
17886 * fns.c (Frequire): Doc fix.
17887
17888 2003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17889
17890 * xfns.c (Fx_send_client_event): New function as a base for
17891 manipulating extended window manager hints.
17892 (Fx_send_client_event): Remove unused variable s.
17893
17894 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
17895 that function is removed.
17896
17897 * xterm.c (x_set_offset): Use move_offset_left/top instead of
17898 x/y_pixels_outer_diff.
17899 (x_check_expected_move): Calculate move_offset_left/top.
17900
17901 * xterm.h (struct x_output): New members: move_offset_top/left.
17902
17903 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
17904 call x_set_offset directly.
17905
17906 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
17907
17908 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
17909
17910 * xterm.c (x_delete_display): Free font names and font_encoder
17911 in dpyinfo->font_table.
17912
17913 * xfns.c (Fx_close_connection): Only call XFreeFont here.
17914 Move xfree of font names to x_delete_display.
17915
17916 * xterm.h (struct x_display_info): New member, wm_type.
17917 (struct x_output): New members, expected_top/left and
17918 check_expected_move.
17919
17920 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
17921 is received.
17922 (handle_one_xevent): Rename x_check_expected_move from
17923 x_check_fullscreen_move.
17924 (x_set_offset): Only add WM decoration sizes to modified_top/left
17925 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
17926 (x_check_expected_move): Rename from x_check_fullscreen_move.
17927 Removed fullscreen specific code. Use check_expected_move,
17928 expected_left/top instead. Also, set wm_type.
17929 (x_term_init): Initialize wm_type to unknown.
17930
17931 * frame.c (x_fullscreen_move): Remove addition of WM decoration
17932 sizes to move_x/y.
17933
17934 2003-10-03 Kenichi Handa <handa@m17n.org>
17935
17936 * macterm.c (x_load_font): Clear all members of FONTP before start
17937 filling them.
17938
17939 2003-10-02 Kenichi Handa <handa@m17n.org>
17940
17941 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
17942 before calling find_ccl_program_func. Call find_ccl_program_func
17943 only when fontp->font_encoder is not NULL.
17944
17945 * xterm.c (x_load_font): Clear all members of FONTP before start
17946 filling them.
17947
17948 2003-10-03 John Paul Wallington <jpw@gnu.org>
17949
17950 * keymap.c (map_keymap): Don't abort when binding is a vector.
17951
17952 2003-10-02 Jason Rumney <jasonr@gnu.org>
17953
17954 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
17955 Sync dependencies with Makefile.in.
17956 (alloca.o): Remove.
17957
17958 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
17959 filling them.
17960
17961 * w32bdf.c (w32_load_bdf_font): Likewise.
17962
17963 2003-09-30 Richard M. Stallman <rms@gnu.org>
17964
17965 * term.c (set_tty_color_mode): Calculate current_mode_spec
17966 regardless of value of VAL.
17967
17968 * intervals.c (graft_intervals_into_buffer):
17969 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
17970 Handle over_used when splitting UNDER.
17971
17972 2003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17973
17974 * regex.c (regex_compile): Free the stack when returning from function.
17975
17976 2003-09-28 Kenichi Handa <handa@m17n.org>
17977
17978 * fontset.c (Finternal_char_font): Change return value to
17979 cons (FONT-NAME . GLYPH-CODE).
17980
17981 2003-09-28 Eli Zaretskii <eliz@gnu.org>
17982
17983 * term.c (tty_setup_colors): Treat any negative argument as -1.
17984
17985 2003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
17986
17987 * process.c (send_process): Delete unused temp_buf.
17988
17989 2003-09-26 Dave Love <fx@gnu.org>
17990
17991 * xterm.c (x_bitmap_mask): Declare.
17992
17993 2003-09-25 Dave Love <fx@gnu.org>
17994
17995 * Makefile.in (fns.o): Depend on md5.h.
17996
17997 2003-09-25 Kim F. Storm <storm@cua.dk>
17998
17999 * window.c (set_window_buffer): Fix redisplay problems when
18000 switching between buffers with different display margin widths.
18001
18002 2003-09-23 Kim F. Storm <storm@cua.dk>
18003
18004 * process.c (set_socket_option): Fix :bindtodevice option.
18005 (Fset_network_process_option): Update process contact list when
18006 setting option succeeds.
18007 (Fmake_network_process): Doc fix.
18008
18009 2003-09-23 Dave Love <fx@gnu.org>
18010
18011 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
18012
18013 2003-09-22 Eli Zaretskii <eliz@gnu.org>
18014
18015 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
18016 color mode is an integer number (it could be -1).
18017
18018 2003-09-22 Richard M. Stallman <rms@gnu.org>
18019
18020 * intervals.c (graft_intervals_into_buffer): Correct the main loop
18021 in the case where OVER is longer than UNDER.
18022
18023 2003-09-22 Masatake YAMATO <jet@gyve.org>
18024
18025 * window.c (Fset_window_scroll_bars): Validate the value of
18026 `vertical_type'.
18027
18028 2003-09-21 Kim F. Storm <storm@cua.dk>
18029
18030 * frame.c (Vdefault_frame_scroll_bars): New variable.
18031 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
18032 (syms_of_frame): DEFVAR_LISP it, and initialize according to
18033 window-system default scroll bar position.
18034
18035 * window.c (Fwindow_scroll_bars): Doc fix.
18036
18037 2003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18038
18039 * xterm.c (x_set_offset): Take window manager decorations into account.
18040
18041 2003-09-19 Richard M. Stallman <rms@gnu.org>
18042
18043 * atimer.h: Don't include lisp.h.
18044 (P_): Define it here (as well as elsewhere).
18045
18046 * print.c (Fprin1_to_string): Move the PRINTPREPARE
18047 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
18048
18049 * data.c (Fvariable_binding_locus): New function.
18050 (syms_of_data): defsubr it.
18051 (Flocal_variable_p): Delete duplicate call to indirect_variable.
18052
18053 2003-09-18 Dave Love <fx@gnu.org>
18054
18055 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
18056
18057 * process.c (Fnetwork_interface_info): Fix type error.
18058 (Fnetwork_interface_list): Doc fix.
18059 (read_process_output, read_process_output): Delete unused var.
18060
18061 2003-09-17 Kim F. Storm <storm@cua.dk>
18062
18063 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
18064 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
18065 (Fnetwork_interface_info): Check that ifreq struct has required
18066 fields before accessing them; this requires that those fields are
18067 defined as macros, which may be too restrictive on some platforms,
18068 but it is better than failing on other platforms.
18069 (syms_of_process): Only defsubr above fns when included.
18070
18071 2003-09-17 Dave Love <fx@gnu.org>
18072
18073 * unexalpha.c: Don't include varargs.h.
18074
18075 2003-09-17 Kim F. Storm <storm@cua.dk>
18076
18077 * process.c (Fset_process_sentinel): Add sentinel to childp plist
18078 for network process.
18079 (socket_options): Add `:' prefix to option names. Add optbit field.
18080 (set_socket_option): Remove no_error arg and special handling of s < 0.
18081 Return 1<<optbit for known option, 0 for unknown.
18082 Do not interpret 0 as false for boolean option (only nil).
18083 Pass failed option and value to report_file_error.
18084 (Fset_network_process_options): Replace by Fset_network_process_option.
18085 (Fset_network_process_option): New function to set just one option.
18086 (Fmake_network_process): Allow :coding arg to be a cons.
18087 Allow :server arg to be an integer specifying backlog size.
18088 Remove :options arg, and allow options to be specified directly
18089 as :KEY, VALUE pairs. Parse these options before binding socket.
18090 As before, :reuseaddr t is default for a server process, but this
18091 can now be disabled by specifying :reuseaddr nil.
18092 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
18093 (init_process): Availability of network options is now checked with
18094 simpler syntax (featurep 'make-network-process :OPTION); use loop to
18095 setup features.
18096 (syms_of_process): Fix defsubr's for the replaced functions.
18097
18098 2003-09-16 Dave Love <fx@gnu.org>
18099
18100 * Makefile.in: Depend on coding.h.
18101
18102 2003-09-14 Kim F. Storm <storm@cua.dk>
18103
18104 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
18105 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
18106 (syms_of_process): Defsubr them.
18107
18108 * config.in: Regenerate.
18109
18110 2003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
18111
18112 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
18113 * m/news-r6.h (XUNMARK): Remove.
18114 * m/mips.h (XUNMARK): Remove.
18115 * m/mips-siemens.h (XUNMARK): Remove.
18116 * m/iris4d.h (XUNMARK): Remove.
18117 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
18118
18119 2003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
18120
18121 * lisp.h (VALBITS): Don't remove 1 for the markbit.
18122 (union Lisp_Object): Use unsigned int for types. Remove markbit.
18123 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
18124 (XTYPE): Use unsigned right-shift.
18125 (XMARKBIT, XMARK, XUNMARK): Remove.
18126
18127 * alloc.c (init_intervals, init_symbol, init_marker):
18128 Don't preallocate anything.
18129 (Fgarbage_collect, mark_object): Ignore the markbit.
18130
18131 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
18132
18133 2003-09-08 Lute Kamstra <lute@gnu.org>
18134
18135 * xdisp.c (pint2hrstr): New function.
18136 (decode_mode_spec): Add `%i' and `%I' specs.
18137 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
18138 for `mode-line-format'.
18139
18140 2003-09-07 Andreas Schwab <schwab@suse.de>
18141
18142 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
18143 avoid warning.
18144
18145 2003-09-07 Eli Zaretskii <eliz@gnu.org>
18146
18147 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
18148
18149 2003-09-03 Kim F. Storm <storm@cua.dk>
18150
18151 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
18152 change (superseded by 2002-08-30 change); the default blink-off
18153 cursor is now again "no cursor".
18154
18155 2003-09-01 Jason Rumney <jasonr@gnu.org>
18156
18157 * makefile.w32-in (alloca.o): Remove.
18158 (coding.o): Depend on intervals.h
18159 (emacs.o, bytecode.o): Depend on window.h.
18160
18161 2003-09-01 Dave Love <fx@gnu.org>
18162
18163 * Makefile.in (alloca.o): Remove commands.
18164 (coding.o): Depend on intervals.h composite.h window.h.
18165 (emacs.o): Depend on window.h keyboard.h keymap.h.
18166 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
18167 (bytecode.o): Depend on window.h.
18168
18169 2003-08-31 Jason Rumney <jasonr@gnu.org>
18170
18171 * w32term.c (w32_per_char_metric): Allow cached metrics to be
18172 returned even when font_type is unknown.
18173
18174 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
18175
18176 2003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18177
18178 * xterm.c (x_term_init): Initialize new fields in x_display_info.
18179
18180 * xterm.h (struct x_display_info): Add red/green/blue_bits and
18181 *_offset.
18182
18183 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
18184 calculate pixel value.
18185
18186 2003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
18187
18188 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
18189 Don't tell redisplay display is accurate when it's actually been
18190 paused for pending input.
18191
18192 2003-08-29 Richard M. Stallman <rms@gnu.org>
18193
18194 * dispnew.c (adjust_glyph_matrix): Call window_box
18195 whenever W is nonzero.
18196
18197 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
18198 (Fkill_local_variable, Fmake_variable_frame_local)
18199 (Flocal_variable_p, Flocal_variable_if_set_p):
18200 Use indirect_variable to trace thru variable aliases.
18201
18202 * config.in: Updated.
18203
18204 * callint.c (Fcall_interactively): Save and restore
18205 Vthis_command, Vthis_original_command, real_this_command,
18206 and current_kboard->Vlast_command.
18207
18208 * abbrev.c (Fexpand_abbrev): Insert before deleting.
18209
18210 2003-08-29 Gerd Moellmann <gerd@gnu.org>
18211
18212 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
18213
18214 2003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
18215
18216 * coding.c (decode_coding_iso2022): Initialize local variable c2.
18217 (decode_coding_sjis_big5): Likewise.
18218
18219 2003-08-27 Jason Rumney <jasonr@gnu.org>
18220
18221 * w32.c (sys_pipe): Protect against file descriptor overflow.
18222
18223 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
18224
18225 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
18226
18227 2003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
18228
18229 * xfns.c (Vgtk_version_string): New variable.
18230 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
18231
18232 2003-08-24 Eli Zaretskii <eliz@gnu.org>
18233
18234 * term.c (term_init): Remove `const' from buffer_size's declaration.
18235
18236 * Makefile.in (msdos.o): Depend on intervals.h.
18237
18238 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
18239
18240 2003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18241
18242 * xterm.h (struct x_display_info): New fields: client_leader_window
18243 and Xatom_wm_client_leader.
18244
18245 * xterm.c (x_initialize): Move call to x_session_initialize to ...
18246 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
18247
18248 * xsmfns.c (create_client_leader_window): New function.
18249 (x_session_initialize): Call create_client_leader_window, take
18250 dpyinfo as argument.
18251
18252 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
18253
18254 * Makefile.in (xsmfns.o): Add more depenedencies.
18255
18256 2003-08-21 Dave Love <fx@gnu.org>
18257
18258 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
18259
18260 2003-08-21 Kenichi Handa <handa@m17n.org>
18261
18262 * term.c (term_init): Fix previous change; don't rely on the
18263 length of `buffer' if TERMINFO is defined.
18264
18265 2003-08-20 Dave Love <fx@gnu.org>
18266
18267 * atimer.h: Include lisp.h.
18268
18269 * lisp.h (EMACS_LISP_H): New.
18270 (popup_activated_flag): Don't declare.
18271
18272 * alloca.c: Some merging with gnulib. Change logic and doc
18273 concerning (x)malloc/(x)free -- no longer Emacs-specific.
18274 [DO_BLOCK_INPUT]: Don't include lisp.h.
18275 (xmalloc, xfree): Declare.
18276 (malloc): Don't declare.
18277
18278 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
18279 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
18280 atimer.h, blockinput.h.
18281
18282 * alloc.c (lisp_align_malloc): Change type of `aligned'.
18283
18284 * alloca.s: Remove.
18285
18286 2003-08-19 Gerd Moellmann <gerd@gnu.org>
18287
18288 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
18289 use -lncurses.
18290
18291 * term.c (term_init): Use a buffer of size 4096 for tgetent since
18292 FreeBSD returns something longer than 2044. Abort if the end of
18293 the buffer is overwritten.
18294
18295 2003-08-19 Miles Bader <miles@gnu.org>
18296
18297 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
18298
18299 2003-08-19 Gerd Moellmann <gerd@gnu.org>
18300
18301 * alloc.c (lisp_align_malloc): Check for memory full when
18302 allocating ablocks, which also avoids freeing a pointer into an
18303 ablocks structure.
18304
18305 * puresize.h (BASE_PURESIZE): Increase to 1100000.
18306
18307 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
18308
18309 2003-08-16 Richard M. Stallman <rms@gnu.org>
18310
18311 * editfns.c (Fencode_time): Doc fix.
18312
18313 2003-08-16 David Ponce <david@dponce.com>
18314
18315 * fileio.c (Fwrite_region): Fix conditional expression to issue
18316 the right message.
18317
18318 2003-08-16 Juri Linkov <juri@jurta.org>
18319
18320 * syntax.c (Fforward_word): Argument changed to optional.
18321 Set default value to 1.
18322
18323 2003-08-15 Kenichi Handa <handa@m17n.org>
18324
18325 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
18326 what autoscaled.
18327 (best_matching_font): Once we find a better scalable font, set
18328 non_scalable_has_exact_height_p to 1.
18329 (try_font_list): Call try_alternative_families to try any family
18330 with the given registry.
18331
18332 2003-08-09 Andreas Schwab <schwab@suse.de>
18333
18334 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
18335
18336 * print.c (print_string): Fix printing of multibyte string with
18337 nontrivial printcharfun.
18338
18339 2003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18340
18341 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
18342
18343 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
18344
18345 2003-07-31 Kenichi Handa <handa@m17n.org>
18346
18347 * process.c (read_process_output): Return the actually read bytes
18348 instead of the result of decoding.
18349
18350 2003-07-31 Kenichi Handa <handa@m17n.org>
18351
18352 * xterm.h (struct x_bitmap_record): New member have_mask.
18353
18354 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
18355 to 0.
18356 (x_create_bitmap_from_file): Likewise.
18357 (x_destroy_bitmap): Check have_mask member before freeing a mask.
18358 (x_destroy_all_bitmaps): Likewise.
18359 (x_create_bitmap_mask): Set have_mask member to 1.
18360
18361 2003-07-30 Richard M. Stallman <rms@gnu.org>
18362
18363 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
18364
18365 2003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18366
18367 * gtkutil.c (xg_mark_data): Update calls to mark_object.
18368
18369 2003-07-29 Richard M. Stallman <rms@gnu.org>
18370
18371 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
18372 Conditionalize XIM code on HAVE_XIM.
18373
18374 * fns.c (Fclear_string): New function.
18375 (syms_of_fns): defsubr it.
18376
18377 2003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
18378
18379 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
18380
18381 2003-07-22 Stefan Monnier <monnier@cs.yale.edu>
18382
18383 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
18384
18385 * buffer.c (delete_all_overlays): New function.
18386 * buffer.h (delete_all_overlays): Declare.
18387 * coding.c (run_pre_post_conversion_on_str):
18388 * print.c (temp_output_buffer_setup):
18389 * fileio.c (Finsert_file_contents):
18390 * minibuf.c (get_minibuffer): Use it.
18391
18392 2003-07-22 Andrew Choi <akochoi@shaw.ca>
18393
18394 * unexmacosx.c (unexec_regions_sort_compare):
18395 (unexec_regions_merge): New functions. Sort and merge unexec
18396 regions before dumping them.
18397
18398 2003-07-22 Dave Love <fx@gnu.org>
18399
18400 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
18401
18402 2003-07-21 Stefan Monnier <monnier@cs.yale.edu>
18403
18404 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
18405 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
18406 MARKBIT as the gcmarkbit for strings.
18407
18408 2003-07-21 Richard M. Stallman <rms@gnu.org>
18409
18410 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
18411
18412 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
18413 (syms_of_fns): Corresponding change.
18414
18415 * alloc.c (syms_of_alloc): Doc fixes.
18416
18417 2003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
18418
18419 * s/netbsd.h: Use -Wl syntax.
18420
18421 2003-07-17 Richard M. Stallman <rms@gnu.org>
18422
18423 * xterm.c (xim_initialize): Redo 6/24 change.
18424
18425 2003-07-15 Stefan Monnier <monnier@cs.yale.edu>
18426
18427 * buffer.c (copy_overlays): Use EMACS_INT for positions.
18428 (Fswitch_to_buffer): Don't signal an error when switching to the same
18429 buffer in a dedicated window.
18430
18431 * alloc.c: Use bitmaps for cons, as was done for floats.
18432 (init_float, init_cons): Let the normal code allocate the first block.
18433 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
18434 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
18435 New macros.
18436 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
18437 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
18438 (live_cons_p): Check the pointer is not past the `conses' array.
18439 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
18440 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
18441 (survives_gc_p): Use CONS_MARKED_P and simplify.
18442 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
18443
18444 2003-07-13 Paul Eggert <eggert@twinsun.com>
18445
18446 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
18447 puts it into BSS instead, at least on Solaris 8 and 9.
18448 This is a valid optimization, and it may occur on other platforms,
18449 so Emacs should not assume that initializing a static variable to
18450 zero puts it into data.
18451 * alloc.c (pure, staticvec):
18452 Initialize these arrays to nonzero, so that they're not
18453 put into BSS by that optimization.
18454
18455 2003-07-13 Stefan Monnier <monnier@cs.yale.edu>
18456
18457 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
18458 (lisp_align_malloc): Use posix_memalign is available.
18459 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
18460 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
18461 for consistency. Update users.
18462
18463 2003-07-13 Richard M. Stallman <rms@gnu.org>
18464
18465 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
18466
18467 2003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
18468
18469 * xterm.c (x_bitmap_icon, x_wm_set_icon_pixmap): Modify to add mask,
18470 and use the Gtk+ function gtk_window_icon_from_file if available.
18471
18472 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
18473 handle mask of bitmaps.
18474 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
18475 mask property.
18476 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
18477
18478 * xterm.h (xg_set_icon): New function.
18479
18480 2003-07-12 Paul Eggert <eggert@twinsun.com>
18481
18482 * unexelf.c (unexec): Consider a section to precede the .bss
18483 section if its addresses overlap that of .bss.
18484
18485 2003-07-12 Richard M. Stallman <rms@gnu.org>
18486
18487 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
18488
18489 * config.in (HAVE_CRTIN): Add #undef.
18490 (INLINE): Really inline only if OPTIMIZE is defined.
18491
18492 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
18493 END_FILES_1.
18494 (START_FILES_1, END_FILES_1): New macros (conditional).
18495 (LD_SWITCH_SYSTEM_TEMACS): Define.
18496
18497 * s/openbsd.h: Don't include bsd4-3.h.
18498 (TERMINFO): Define.
18499 (LIBS_TERMCAP): Define.
18500 (LD_SWITCH_SYSTEM): Define (two definitions).
18501
18502 * xfns.c: Include libpng/png.h instead of png.h.
18503
18504 2003-07-11 Andreas Schwab <schwab@suse.de>
18505
18506 * buffer.c (modify_overlay): Update prototype.
18507 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
18508 Likewise.
18509
18510 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
18511
18512 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
18513 (struct interval): Move to intervals.h.
18514 (struct Lisp_Marker): Use EMACS_INT for position info.
18515 (forward_point): Remove prototype of defunct function.
18516 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
18517 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
18518 (syms_of_textprop, set_text_properties): Remove prototypes that are
18519 already in intervals.h.
18520
18521 * intervals.h (struct interval): Move from lisp.h.
18522 Use EMACS_INT for position and size info.
18523
18524 * coding.c: Include intervals.h for Fset_text_properties.
18525
18526 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
18527 position and length information.
18528
18529 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
18530
18531 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
18532 position and length information.
18533
18534 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
18535
18536 Change overlays_after and overlays_before so the overlays themselves
18537 are linked into lists, rather than using cons cells. After all each
18538 Lisp_Misc already occupies 5 words, so we can add a `next' field to
18539 Lisp_Overlay for free and save up one cons cell per overlay (not
18540 to mention one indirection when traversing the list of overlay).
18541
18542 * lisp.h (struct Lisp_Overlay): New field `next'.
18543
18544 * buffer.h (struct buffer): Change overlays_before and overlays_after
18545 from Lisp lists of overlays to pointers to overlays.
18546
18547 * buffer.c (overlay_strings, recenter_overlay_lists):
18548 Fix typo in eassert in last commit.
18549 (unchain_overlay): New function.
18550 (add_overlay_mod_hooklist): Use AREF.
18551 (copy_overlays, reset_buffer, overlays_at, overlays_in)
18552 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
18553 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
18554 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
18555 (report_overlay_modification, evaporate_overlays, init_buffer_once):
18556 Adjust to new type of overlays_(before|after).
18557
18558 * alloc.c (mark_object): Mark the new `next' field of overlays.
18559 (mark_buffer): Manually mark the overlays_(after|before) fields.
18560
18561 * coding.c (run_pre_post_conversion_on_str):
18562 * editfns.c (overlays_around):
18563 * xdisp.c (load_overlay_strings):
18564 * fileio.c (Finsert_file_contents):
18565 * indent.c (current_column):
18566 * insdel.c (signal_before_change, signal_after_change):
18567 * intervals.c (set_point_both):
18568 * print.c (temp_output_buffer_setup): Use new type for
18569 overlays_(before|after).
18570
18571 2003-07-08 Stefan Monnier <monnier@cs.yale.edu>
18572
18573 * buffer.c (report_overlay_modification): Don't run hooks while
18574 traversing the list of overlays.
18575
18576 * buffer.h (struct buffer): Use an int for overlay_center.
18577 (overlays_at, evaporate_overlays, recenter_overlay_lists)
18578 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
18579
18580 * buffer.c (reset_buffer, recenter_overlay_lists)
18581 (adjust_overlays_for_insert, adjust_overlays_for_delete)
18582 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
18583 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
18584 (overlays_at, evaporate_overlays, recenter_overlay_lists)
18585 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
18586
18587 * xdisp.c (fast_find_position): Remove unused var.
18588
18589 * cmds.c (Qexpand_abbrev): New sym.
18590 (syms_of_cmds): Initialize it.
18591 (internal_self_insert): Use it to call expand-abbrev.
18592
18593 2003-07-09 Kim F. Storm <storm@cua.dk>
18594
18595 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
18596 was configured with --without-xim.
18597 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
18598
18599 2003-07-07 Richard M. Stallman <rms@gnu.org>
18600
18601 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
18602
18603 * alloc.c (Fgarbage_collect): Doc fix.
18604
18605 2003-07-07 Nozomu Ando <nand@mac.com>
18606
18607 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
18608
18609 2003-07-06 Stefan Monnier <monnier@cs.yale.edu>
18610
18611 * minibuf.c (read_minibuf): UNGCPRO before returning.
18612 (Ftry_completion, Fall_completions): Doc fix.
18613
18614 * alloc.c (live_float_p): Check that p is not past the `floats' array,
18615 now that `floats' is not the last element of the struct any more.
18616
18617 2003-07-06 Jason Rumney <jasonr@gnu.org>
18618
18619 * w32term.h (ClipboardSequence_Proc): New type.
18620
18621 * w32fns.c (clipboard_sequence_fn): New variable.
18622 (globals_of_w32fns): Initialize it.
18623
18624 * w32select.c (last_clipboard_sequence_number): New variable.
18625 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
18626 number if possible.
18627
18628 2003-07-06 Stefan Monnier <monnier@cs.yale.edu>
18629
18630 * m/amdx86-64.h (MARKBIT):
18631 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
18632 MARKBIT and ARRAY_MARK_FLAG any more.
18633
18634 * m/hp800.h (XSETMARKBIT):
18635 * m/sr2k.h (XSETMARKBIT):
18636 * lisp.h (XSETMARKBIT): Remove unused macro.
18637
18638 * lisp.h (mark_object): Change prototype.
18639
18640 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
18641 (last_marked): Change accordingly.
18642 (mark_interval, mark_maybe_object, mark_maybe_pointer)
18643 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
18644 (mark_buffer): Update calls to mark_object.
18645
18646 * bytecode.c (mark_byte_stack):
18647 * fns.c (sweep_weak_table):
18648 * keyboard.c (mark_kboards): Update calls to mark_object.
18649
18650 2003-07-06 Jason Rumney <jasonr@gnu.org>
18651
18652 * alloc.c (struct ablock): Only include padding when there is some.
18653
18654 2003-07-04 Stefan Monnier <monnier@cs.yale.edu>
18655
18656 * alloc.c (ALIGN): Add casts to simplify usage.
18657 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
18658 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
18659 (struct ablock, struct ablocks): New types.
18660 (free_ablock): New global var.
18661 (lisp_align_malloc, lisp_align_free): New functions.
18662 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
18663 (struct float_block): Reorder and add gcmarkbits.
18664 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
18665 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
18666 (init_float, make_float): Use lisp_align_malloc.
18667 (free_float, live_float_p): Don't use `type' any more.
18668 (make_float): Use FLOAT_UNMARK to access to mark bit.
18669 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
18670 Use FLOAT_MARKED_P to access the mark bit.
18671 (pure_alloc): Simplify use of ALIGN.
18672 (mark_object): Use FLOAT_MARK to access the mark bit.
18673 (gc_sweep): Use new macros to access the float's mark bit.
18674 (init_alloc_once): Init free_ablock.
18675
18676 * lisp.h (struct Lisp_Float): Remove unused field `type'.
18677
18678 2003-06-27 Stefan Monnier <monnier@cs.yale.edu>
18679
18680 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
18681 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
18682 (allocate_buffer): Move.
18683 (string_bytes): Don't mask markbit of `size_byte'.
18684 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
18685 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
18686 Use the `size' field of buffers (rather than the `name' field) for
18687 the mark bit, as is done for all other vectorlike objects.
18688 Use the new macros to access the mark bit of vectorlike objects.
18689
18690 2003-06-26 Richard M. Stallman <rms@gnu.org>
18691
18692 * puresize.h (BASE_PURESIZE): Increment base size.
18693
18694 * xdisp.c (fast_find_position): Enable Gerd's new definition.
18695
18696 * xterm.c (xim_initialize): Undo previous change.
18697
18698 2003-06-26 Stefan Monnier <monnier@cs.yale.edu>
18699
18700 * alloc.c (survives_gc_p): Simplify.
18701
18702 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
18703
18704 * window.c (Fset_window_dedicated_p): Simplify.
18705 (display_buffer_1): Don't raise the win from which minibuf was entered.
18706 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
18707 (Fminibuffer_selected_window): Simplify.
18708
18709 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
18710
18711 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
18712 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
18713
18714 * insdel.c (check_markers, adjust_markers_for_delete)
18715 (adjust_markers_for_insert, adjust_markers_for_replace)
18716 (prepare_to_modify_buffer, RESTORE_VALUE):
18717 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
18718 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
18719 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
18720 * alloc.c (Fmake_marker, free_marker, gc_sweep):
18721 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
18722 * editfns.c (save_excursion_restore, transpose_markers):
18723 * window.c (delete_window):
18724 * xdisp.c (message_dolog): Update for new types.
18725
18726 2003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18727
18728 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
18729 (realize_default_face): Use default_face_done_p for the force_p
18730 argument to set_lface_from_font_name. Set default_face_done_p to one.
18731
18732 * frame.c (make_frame): Initialize default_face_done_p.
18733
18734 * frame.h (struct frame): Add default_face_done_p.
18735
18736 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
18737 will be defined.
18738
18739 2003-06-25 Stefan Monnier <monnier@cs.yale.edu>
18740
18741 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
18742 Initialize the new field `gcmarkbit'.
18743 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
18744 (mark_interval_tree): Don't mark the tree separately from the nodes.
18745 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
18746 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
18747 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
18748
18749 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
18750 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
18751 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
18752 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
18753 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
18754
18755 2003-06-24 Dave Love <fx@gnu.org>
18756
18757 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
18758
18759 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
18760 from gnulib.
18761
18762 2003-06-21 Richard M. Stallman <rms@gnu.org>
18763
18764 * fileio.c (Fwrite_region): Alternate messages
18765 for append and partial write.
18766
18767 * keyboard.c (read_key_sequence): When converting upcase fn key to
18768 downcase, update fkey and keytran so `backspace' gets translated.
18769
18770 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
18771
18772 * process.c (wait_reading_process_input): Don't signal SIGIO
18773 in batch mode.
18774
18775 2003-06-17 Kenichi Handa <handa@m17n.org>
18776
18777 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
18778 composite.h.
18779
18780 * xselect.c: Don't include charset.h, coding.h, composite.h.
18781 (Qforeign_selection): New variable.
18782 (syms_of_xselect): Intern and static it.
18783 (selection_data_to_lisp_data): Return a unibyte string made from
18784 data with `foreign-selection' text property.
18785
18786 2003-06-15 Stefan Monnier <monnier@cs.yale.edu>
18787
18788 * termhooks.h (EVENT_INIT): New macro.
18789
18790 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
18791
18792 * alloc.c (mark_kboards): Move to keyboard.c.
18793
18794 * keyboard.c (record_asynch_buffer_change, read_avail_input):
18795 * xterm.c (x_dispatch_event):
18796 * xmenu.c (find_and_call_menu_selection):
18797 * xdisp.c (handle_tool_bar_click):
18798 * w32menu.c (menubar_selection_callback):
18799 * sysdep.c (kbd_input_ast, read_input_waiting):
18800 * msdos.c (dos_rawgetc):
18801 * macterm.c (mac_check_for_quit_char):
18802 * macmenu.c (menubar_selection_callback):
18803 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
18804 data to kbd_buffer_store_event.
18805
18806 2003-06-15 Kim F. Storm <storm@cua.dk>
18807
18808 * xdisp.c (x_fix_overlapping_area): Always use area relative X
18809 to fix redisplay problem with tall characters (such as \e,AC\e(B).
18810
18811 2003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
18812
18813 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
18814
18815 2003-06-12 Kenichi Handa <handa@m17n.org>
18816
18817 * fileio.c (Fwrite_region): Save and restore restriction.
18818
18819 2003-06-12 Dave Love <fx@gnu.org>
18820
18821 * alloca.c (alloca): Declare arg as size_t.
18822
18823 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
18824 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
18825
18826 2003-06-11 Dave Love <fx@gnu.org>
18827
18828 * search.c (shrink_regexp_cache): Use xrealloc.
18829 (syms_of_search): Use xmalloc.
18830
18831 2003-06-10 Kim F. Storm <storm@cua.dk>
18832
18833 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
18834 Adjust phys_cursor.x to be relative to window box, rather than
18835 text area before checking -- to ensure cursor is redrawn when
18836 exposing window.
18837 Note: This also fixes a similar (older) bug if display margins
18838 are present.
18839
18840 2003-06-06 Kenichi Handa <handa@m17n.org>
18841
18842 * coding.c (encoding_buffer_size): If coding->type is
18843 coding_type_ccl, double magnification on CRLF encoding.
18844
18845 2003-06-06 Jason Rumney <jasonr@gnu.org>
18846
18847 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
18848 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
18849
18850 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
18851 Mac too.
18852
18853 2003-06-05 Dave Love <fx@gnu.org>
18854
18855 * strftime.c: Merge changes from gnulib.
18856
18857 * mktime.c (__mktime_internal): Merge changes from gnulib
18858 involving year 69 and dst2.
18859
18860 Changes to merge with gnulib version and be consistent with the
18861 autoconf test:
18862
18863 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
18864 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
18865 [HAVE_LOCALE_H]: Include locale.h.
18866 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
18867
18868 2003-06-05 Kim F. Storm <storm@cua.dk>
18869
18870 * window.c (coordinates_in_window): Convert X and Y to window
18871 relative coordinates inside mode-line and header-line parts.
18872 Convert X and Y to margin area relative coordinates inside left
18873 and right display margin parts.
18874
18875 2003-06-05 Jason Rumney <jasonr@gnu.org>
18876
18877 * w32fns.c (add_system_logical_colors_to_map): New function.
18878 (Fx_open_connection): Use it.
18879
18880 2003-06-04 Stefan Monnier <monnier@cs.yale.edu>
18881
18882 * process.c (allocate_pty): Revert part of the previous patch.
18883 (Faccept_process_output): Simplify.
18884
18885 2003-06-04 Jason Rumney <jasonr@gnu.org>
18886
18887 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
18888
18889 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
18890 (lispy_mouse_wheel_names): Remove.
18891 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
18892 Always define drag_and_drop_syms.
18893
18894 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
18895 WHEEL_EVENT events.
18896
18897 2003-06-03 Stefan Monnier <monnier@cs.yale.edu>
18898
18899 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
18900
18901 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
18902
18903 2003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18904
18905 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
18906 menu item label.
18907
18908 2003-06-03 Richard M. Stallman <rms@gnu.org>
18909
18910 * window.c (Fwindow_edges): Doc fix.
18911 (Fwindow_pixel_edges, Fwindow_inside_edges)
18912 (Fwindow_inside_pixel_edges): New functions.
18913 (syms_of_window): defsubr them.
18914
18915 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
18916 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
18917
18918 2003-06-02 Stefan Monnier <monnier@cs.yale.edu>
18919
18920 * dispnew.c (Fsit_for): Don't lie about the number of args.
18921
18922 2003-06-02 Dave Love <fx@gnu.org>
18923
18924 * callproc.c: Use HAVE_FCNTL_H, not USG5.
18925 (syms_of_callproc) <process-environment>: Doc fix.
18926
18927 * doc.c: Use HAVE_FCNTL_H, not USG5.
18928
18929 * xfaces.c (font_rescale_ratio): Fix for K&R.
18930
18931 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
18932
18933 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
18934
18935 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
18936
18937 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
18938 (xg_create_frame_widgets): Use ENCODE_UTF_8.
18939
18940 * xterm.c (Qutf_8): Move to coding.c.
18941
18942 * xmenu.c (ENCODE_MENU_STRING): New.
18943 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
18944 Use it.
18945
18946 * coding.h (ENCODE_UTF_8): New.
18947 (Qutf_8): Declare.
18948
18949 * coding.c (Qutf_8): New.
18950 (syms_of_coding): Intern it.
18951
18952 * fns.c: Doc fixes.
18953
18954 2003-06-02 Kenichi Handa <handa@m17n.org>
18955
18956 * buffer.c (Fset_buffer_multibyte): Fix previous change.
18957
18958 2003-06-01 Stefan Monnier <monnier@cs.yale.edu>
18959
18960 * lread.c (openp): Make sure STR is a string.
18961
18962 2003-06-01 David Ponce <david@dponce.com>
18963
18964 * termhooks.h (enum event_kind): Add new WHEEL_EVENT event.
18965 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
18966
18967 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
18968 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
18969 (discard_mouse_events): Discard WHEEL_EVENT events too.
18970 (lispy_wheel_names, wheel_syms): New.
18971 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
18972 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX defined.
18973 (make_lispy_event): Add WHEEL_EVENT handler.
18974
18975 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
18976 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
18977 WHEEL_EVENT events.
18978
18979 2003-05-31 John Paul Wallington <jpw@gnu.org>
18980
18981 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
18982 timer are in lisp/emacs-lisp.
18983
18984 2003-05-31 Kenichi Handa <handa@m17n.org>
18985
18986 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
18987 region when a buffer is changed to unibyte.
18988
18989 * charset.h (VALID_LEADING_CODE_P): New macro.
18990 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
18991
18992 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
18993 is nonzero, accept multibyte form of eight-bit-control chars.
18994 (decode_composition_emacs_mule): Likewise.
18995 (decode_coding_emacs_mule): Likewise.
18996 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
18997 multibyte form of eight-bit-control chars.
18998
18999 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
19000 (Finsert_file_contents): If coding-system-for-read is bound to
19001 Qauto_save_coding, use the coding system emacs-mule with special
19002 setting for recovering a file.
19003 (choose_write_coding_system): On auto saving, use the coding
19004 system emacs-mule with special setting for auto saving.
19005 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
19006
19007 2003-05-30 Kenichi Handa <handa@m17n.org>
19008
19009 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
19010 properly before calling ccl_driver.
19011
19012 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
19013
19014 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is nonzero.
19015 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
19016 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
19017
19018 2003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
19019
19020 * xfaces.c (realize_default_face): Do not abort if lface is
19021 non-existent - reverts change from 2003-05-19.
19022
19023 2003-05-29 Kenichi Handa <handa@m17n.org>
19024
19025 * coding.c (decode_coding_iso2022): Pay attention to the byte
19026 sequence of CTEXT extended segment, and retain those bytes as is.
19027
19028 2003-05-28 Kenichi Handa <handa@m17n.org>
19029
19030 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjust for the name change
19031 of CODING_REPLACEMENT_CHARACTER.
19032 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
19033 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
19034 check this flag on encoding.
19035 (encode_coding_sjis_big5):
19036 Check CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
19037 (Fset_terminal_coding_system_internal):
19038 Set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
19039 instead of setting CODING_FLAG_ISO_SAFE flag in terminal_coding.flags.
19040
19041 * coding.h (CODING_REPLACEMENT_CHARACTER): Rename from
19042 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
19043 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
19044
19045 2003-05-28 Richard M. Stallman <rms@gnu.org>
19046
19047 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
19048
19049 * eval.c (unbind_to): Move init of this_binding to separate statement.
19050
19051 2003-05-28 Kim F. Storm <storm@cua.dk>
19052
19053 * xdisp.c (expose_window): Fix error in calculation of
19054 window relative coordinates of area to redisplay.
19055
19056 2003-05-27 Jason Rumney <jasonr@gnu.org>
19057
19058 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
19059
19060 2003-05-27 David Ponce <david@dponce.com>
19061
19062 Handle W32 mouse wheel events as mouse click events, like in X.
19063
19064 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
19065 MOUSE_WHEEL_EVENT anymore.
19066
19067 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
19068 Scrolling down/up the mouse wheel is respectively mapped to mouse
19069 button 4 and 5.
19070 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
19071 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
19072 WM_MOUSEWHEEL events.
19073
19074 2003-05-27 Andreas Schwab <schwab@suse.de>
19075
19076 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
19077
19078 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
19079 partially visible line.
19080
19081 * alloc.c (Fgarbage_collect): Fix last change.
19082
19083 2003-05-26 John Paul Wallington <jpw@gnu.org>
19084
19085 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
19086
19087 2003-05-25 Stefan Monnier <monnier@cs.yale.edu>
19088
19089 * window.c (Fset_window_buffer): Add type of `keep_margins'.
19090 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
19091
19092 * window.h (window_box_text_cols): Declare.
19093
19094 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
19095 (x_draw_vertical_border): Remove unused var `f'.
19096
19097 * xfaces.c (build_scalable_font_name): Remove `unused var
19098 pixel_size' warning.
19099
19100 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
19101
19102 * unexelf.c (unexec): Remove `unused var n' warning.
19103
19104 * strftime.c (my_strftime_localtime_r): Remove `defined but
19105 unused' warning.
19106
19107 * process.c (allocate_pty): Remove `unused var stb' and
19108 `cp might be used uninitialized' warnings.
19109
19110 * dispnew.c (mode_line_string): Remove unused var `f'.
19111
19112 * coding.c (find_safe_codings): Remove unused var `i'.
19113
19114 * bytecode.c (Fbyte_code): Remove `unused val' warning.
19115
19116 * buffer.c (Fkill_buffer): Remove unused var `list'.
19117
19118 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
19119
19120 2003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19121
19122 * frame.c (make_frame): Condition want_fullscreen with
19123 HAVE_WINDOW_SYSTEM.
19124
19125 2003-05-25 Juanma Barranquero <lektu@terra.es>
19126
19127 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
19128 (Fwindow_scroll_bars): Fix typo in docstring.
19129
19130 2003-05-24 Kim F. Storm <storm@cua.dk>
19131
19132 The following changes serve several purposes:
19133
19134 1) Swap the position of fringes and display margins in windows, i.e.
19135 the fringes are now displayed between the margins and the text area
19136 (by default).
19137
19138 2) Allow fringe and scroll bar parameters to be set per-buffer and
19139 per-window (like display margins). Such settings are now stored
19140 in window configurations, preserved when frames are resized, and
19141 copied when windows are split vertically or horizontally.
19142 Several bugs related to display margins have been fixed.
19143
19144 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
19145
19146 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
19147 rather than FRAME_WIDTH (FRAME_FONT (f)).
19148
19149 5) Introduce a consistent naming of variables, members and macros
19150 depending on whether their value is measured in pixels or in
19151 canonical columns/lines. Pixel dimensions are named *_width and
19152 *_height, while canonical columns/lines are named *_cols and
19153 *_lines. Pixel positions are named *_x and *_y, while column/line
19154 positions are named *_col and *_line.
19155
19156 6) Consolidate more of the X, W32, and MAC gui code by moving
19157 common data into struct frame, and generalize it for the non-gui
19158 case by using suitable defaults.
19159
19160 7) Cleanup and consolidate the macros controlling frame and window
19161 layout into frame.h and window.h, and generalize the use of the
19162 various window_box_* functions (enhanced to handle the new fringe
19163 position and the per-window fringe and scroll bar settings).
19164
19165 * frame.h (struct frame): Rename members height to text_lines,
19166 width to text_cols, window_height to total_lines, window_width to
19167 total_cols, new_height to new_text_lines, new_width to
19168 new_text_cols. All uses changed.
19169 (struct frame): New members which consolidate common members of
19170 x_output, w32_output, and mac_output structures: left_pos,
19171 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
19172 win_gravity, size_hint_flags, border_width, internal_border_width,
19173 line_height, fringe_cols, left_fringe_width, right_fringe_width,
19174 want_fullscreen. All uses changed.
19175 (struct frame): New member column_width contaning the canonical
19176 column width, analogue to line_height. All uses changed.
19177 (struct frame): Rename members scroll_bar_pixel_width to
19178 config_scroll_bar_width, and scroll_bar_cols to
19179 config_scroll_bar_cols. All uses changed.
19180 (struct frame): New member scroll_bar_actual_width which
19181 consolidates and renames the vertical_scroll_bar_extra member of
19182 x_output, w32_output, and mac_output structures. All uses changed.
19183 (FRAME_PIXEL_HEIGHT): Rename from PIXEL_HEIGHT and moved
19184 from x/w32/macterm.h files. All uses changed. Also change code
19185 which referred to f->output_data...->pixel_height.
19186 (FRAME_PIXEL_WIDTH): Rename from PIXEL_WIDTH and moved
19187 from x/w32/macterm.h files. All uses changed. Also change code
19188 which referred to f->output_data...->pixel_width.
19189 (FRAME_LINES): Rename from FRAME_HEIGHT. All uses changed.
19190 Also change code which referred to f->height.
19191 (FRAME_COLS): Rename from FRAME_WIDTH. All uses changed.
19192 Also change code which referred to f->width.
19193 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
19194 to update new_text_lines and new_text_cols members directly.
19195 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Rename from
19196 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
19197 (FRAME_CONFIG_SCROLL_BAR_COLS): Rename from
19198 FRAME_SCROLL_BAR_COLS. All uses changed.
19199 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
19200 Rename from FRAME_LEFT_SCROLL_BAR_WIDTH and
19201 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
19202 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
19203 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
19204 (FRAME_TOTAL_COLS): Rename from FRAME_WINDOW_WIDTH.
19205 (SET_FRAME_COLS): Rename from SET_FRAME_WIDTH.
19206 (FRAME_TOTAL_COLS_ARG): Rename from FRAME_WINDOW_WIDTH_ARG.
19207 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
19208 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
19209 (FRAME_LINE_HEIGHT): Rename from CANON_Y_UNIT.
19210 Unconditionally return line_height member (it now has proper value
19211 also for non-window frames).
19212 (FRAME_COLUMN_WIDTH): Rename from CANON_X_UNIT. Unconditionally
19213 return new column_width member (rather than the default font width).
19214 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
19215 (FRAME_RIGHT_FRINGE_WIDTH): Rename from FRAME_X_... and moved
19216 from x/w32/macterm.h files. Unconditionally return corresponding
19217 member of frame structure (they now have proper values also for
19218 non-window frames).
19219 (FRAME_TOTAL_FRINGE_WIDTH): Rename from FRAME_FRINGE_WIDTH.
19220 Calculate return value from left and right widths.
19221 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
19222 internal_border_width member (has proper value for non-window frame).
19223 (FRAME_PIXEL_X_FROM_CANON_X): Rename from PIXEL_X_FROM_CANON_X.
19224 (FRAME_PIXEL_Y_FROM_CANON_Y): Rename from PIXEL_Y_FROM_CANON_Y.
19225 (FRAME_CANON_X_FROM_PIXEL_X): Rename from CANON_X_FROM_PIXEL_X.
19226 (FRAME_CANON_Y_FROM_PIXEL_Y): Rename from CANON_Y_FROM_PIXEL_Y.
19227 (FRAME_LINE_TO_PIXEL_Y): Rename from CHAR_TO_PIXEL_ROW,
19228 consolidated from xterm.h, macterm.h, and w32term.h.
19229 (FRAME_COL_TO_PIXEL_X): Rename from CHAR_TO_PIXEL_COL,
19230 consolidated from xterm.h, macterm.h, and w32term.h.
19231 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Rename from
19232 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
19233 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Rename from
19234 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
19235 (FRAME_PIXEL_Y_TO_LINE): Rename from PIXEL_TO_CHAR_ROW
19236 consolidated from x/mac/w32term.h.
19237 (FRAME_PIXEL_X_TO_COL): Rename from PIXEL_TO_CHAR_COL
19238 consolidated from x/mac/w32term.h.
19239 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Rename from
19240 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
19241 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Rename from
19242 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
19243
19244 * window.h (struct window): Rename members left to left_col,
19245 top to top_line, height to total_lines, width to total_cols,
19246 left_margin_width to left_margin_cols, right_margin_width to
19247 right_margin_cols, orig_height to orig_total_lines, orig_top to
19248 orig_top_line. All uses changed.
19249 (struct window): New members left_fringe_width, right_fringe_width,
19250 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
19251 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
19252 New macros primarily used to simplify other macros.
19253 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
19254 referred to XINT (w->width).
19255 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
19256 referred to XINT (w->height).
19257 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
19258 referred to XINT (w->width) * canon_x_unit.
19259 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
19260 referred to XINT (w->height) * canon_y_unit.
19261 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
19262 referred to XINT (w->left).
19263 (WINDOW_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_EDGE. Change
19264 all uses and code that referred to XINT (w->left) + XINT (w->width).
19265 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
19266 referred to XINT (w->top).
19267 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
19268 referred to XINT (w->top) + XINT (w->height).
19269 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
19270 referred to XINT (w->left) * canon_x_unit.
19271 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
19272 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
19273 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
19274 referred to XINT (w->top) * canon_y_unit.
19275 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
19276 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
19277 (WINDOW_LEFTMOST_P): New macro.
19278 (WINDOW_BOX_LEFT_EDGE_COL): Rename from WINDOW_LEFT_MARGIN.
19279 All uses changed.
19280 (WINDOW_BOX_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_MARGIN.
19281 All uses changed.
19282 (WINDOW_BOX_LEFT_EDGE_X): Rename from
19283 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
19284 Do not exclude left fringe width.
19285 (WINDOW_BOX_RIGHT_EDGE_X): Rename from
19286 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
19287 Do not exclude fringe widths.
19288 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
19289 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
19290 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
19291 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
19292 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
19293 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
19294 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
19295 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
19296 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
19297 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
19298 New macros. Change code which referenced corresponding
19299 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
19300 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
19301 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
19302 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
19303 allow per-window scroll-bar settings.
19304 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
19305 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
19306 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
19307 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
19308 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
19309 FRAME_SCROLL_BAR_WIDTH.
19310 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
19311 (WINDOW_SCROLL_BAR_AREA_X): New macros.
19312 (WINDOW_HEADER_LINE_HEIGHT): Rename from
19313 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
19314 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Rename from
19315 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
19316 (WINDOW_BOX_TEXT_HEIGHT): Rename from
19317 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
19318 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
19319 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
19320 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Move here from dispextern.h.
19321 (WINDOW_LEFT_MARGIN_WIDTH): Rename from
19322 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
19323 (WINDOW_RIGHT_MARGIN_WIDTH): Rename from
19324 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
19325 (window_from_coordinates): Update prototype.
19326 (Fset_window_buffer): Update EXFUN.
19327 (set_window_buffer): Update prototype.
19328
19329 * dispextern.h (struct glyph_matrix): Rename members window_left_x
19330 to window_left_col, window_top_y to window_top_line. All uses
19331 changed.
19332 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
19333 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
19334 internal_border_width is now set to 0 for non-window frames.
19335 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
19336 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
19337 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
19338 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
19339 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
19340 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
19341 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
19342 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
19343 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
19344 Move to window.h and renamed [see window.h changes].
19345 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
19346 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
19347 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
19348 Use WINDOW_TOTAL_LINES.
19349 (frame_update_line_height): Remove prototype.
19350
19351 * buffer.h (struct buffer): Rename members measured in columns:
19352 left_margin_width to left_margin_cols, right_margin_width to
19353 right_margin_cols. All uses changed.
19354 New members left_fringe_width, right_fringe_width,
19355 fringes_outside_margins for per-buffer fringe settings.
19356 New members scroll_bar_width and vertical_scroll_bar_type for
19357 per-buffer scroll bar settings.
19358
19359 * buffer.c (init_buffer_once): Set buffer_defaults and
19360 buffer_local_flags for new buffer-local variables
19361 left_fringe_width, right_fringe_width, fringes_outside_margins,
19362 scroll_bar_width, and vertical_scroll_bar_type.
19363 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
19364 default-* variables for them.
19365
19366 * dispnew.c: Make (many) trivial substitutions for renamed and
19367 new macros in dispextern.h, frame.h and window.h.
19368 (mode_line_string): No need to adjust width for mode lines, as it
19369 is already adjusted by the caller.
19370 (marginal_area_string): Handle fringes inside/outside margins.
19371
19372 * frame.c: Make (many) trivial substitutions for renamed and
19373 new macros in dispextern.h, frame.h and window.h.
19374 (make_frame): Initialize left_fringe_width, right_fringe_width,
19375 fringe_cols, scroll_bar_actual_width, border_width,
19376 internal_border_width, column_width, line_height, x_pixels_diff,
19377 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
19378 members with values suitable for a non-window frames.
19379
19380 * gtkutil.c: Make (many) trivial substitutions for renamed and
19381 new macros in dispextern.h, frame.h and window.h.
19382
19383 * indent.c: Make (few) trivial substitutions for renamed and
19384 new macros in dispextern.h, frame.h and window.h.
19385
19386 * keyboard.c: Make (many) trivial substitutions for renamed and
19387 new macros in dispextern.h, frame.h and window.h.
19388 (make_lispy_event): Use window positions returned from
19389 window_from_coordinates when constructing the lisp event for
19390 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
19391 (incorrect) values locally.
19392 (make_lispy_movement): Use window positions returned from
19393 window_from_coordinates when constructing the lisp event, rather
19394 than calculating (incorrect) values locally.
19395
19396 * scroll.c: Make (some) trivial substitutions for renamed and
19397 new macros in dispextern.h, frame.h and window.h.
19398
19399 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
19400 scroll-bars.
19401
19402 * sysdep.c: Make (few) trivial substitutions for renamed and
19403 new macros in dispextern.h, frame.h and window.h.
19404
19405 * term.c: Make (some) trivial substitutions for renamed and
19406 new macros in dispextern.h, frame.h and window.h.
19407
19408 * widget.c: Make (few) trivial substitutions for renamed and
19409 new macros in dispextern.h, frame.h and window.h.
19410
19411 * window.c: Make (many) trivial substitutions for renamed and
19412 new macros in dispextern.h, frame.h and window.h.
19413 (make_window): Initialize new members
19414 left_margin_cols, right_margin_cols, left_fringe_width,
19415 right_fringe_width, fringes_outside_margins, scroll_bar_width,
19416 and vertical_scroll_bar_type.
19417 (coordinates_in_window): Adapt to new fringe/margin positions
19418 and per-window fringes and scroll-bars.
19419 Fix bug related to incorrectly adjusting coordinates by
19420 frame's internal_border_width (the effect normally negible since
19421 the internal_border_width is typically 0 or 1 pixel, but very
19422 noticeable for an internal_border_width of e.g. 25 pixels).
19423 Upon successful return (other than ON_NOTHING), the coordinates
19424 are now always properly converted to window relative for the
19425 given display element.
19426 (window_from_coordinates): Add new parameters wx and wy to
19427 return the window relative x and y position in the returned
19428 window and part. A null arg means, don't return the position.
19429 All callers changed.
19430 (adjust_window_margins): New function which may reduce the width
19431 of the display margins if a window's text area is too small after
19432 resizing or splitting windows.
19433 (size_window): Fix bug that did not account for display margin
19434 widths when checking the minimum width of a window; use
19435 adjust_window_margins.
19436 (set_window_buffer): Call Fset_window_fringes and
19437 Fset_window_scroll_bars to setup per-window elements.
19438 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
19439 existing display margin, fringe widths, and scroll bar settings
19440 (e.g. after splitting a window or resizing the frame).
19441 All callers changed.
19442 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
19443 (Fsplit_window): Duplicate original window's display margin,
19444 fringe, and scroll-bar settings; then call Fset_window_buffer with
19445 KEEP_MARGINS non-nil. This fixes a bug which caused a split
19446 window to only preserve the display margins in one of the windows.
19447 When splitting horizontally, call adjust_window_margins on both
19448 windows to ensure that the text area of the new windows is non too
19449 narrow. This fixes a bug which could cause Emacs to trap if the
19450 width of the split window was less than the width of the display
19451 margins.
19452 (window_box_text_cols): Rename from window_internal_width.
19453 All uses changed. Adapt to per-window fringes and scroll bars.
19454 Fix bug that caused vertical separator to be subtracted also on
19455 window frames. Fix another bug that did not reduce the returned
19456 value by the columns used for display margins.
19457 (window_scroll_line_based): Fix bug related to scrolling too much
19458 when display margins are present (implicitly fixed by the fix to
19459 window_box_text_cols).
19460 (scroll_left, scroll_right): Fix bug related to scrolling too far
19461 by default when display margins are present (implicitly fixed by
19462 the fix to window_box_text_cols).
19463 (struct saved_window): Rename members left to left_col, top to
19464 top_line, width to total_cols, height to total_lines, orig_top to
19465 orig_top_line, orig_height to orig_total_lines. All uses changed.
19466 New members left_margin_cols, right_margin_cols,
19467 left_fringe_width, right_fringe_width, fringes_outside_margins,
19468 scroll_bar_width, and vertical_scroll_bar_type for saving
19469 per-window display elements.
19470 (Fset_window_configuration): Restore display margins, fringes,
19471 and scroll bar settings. This fixes a bug which caused display
19472 margins to be discarded when saving and restoring a window
19473 configuration.
19474 (save_window_save): Save display margins, fringes, and scroll bar
19475 settings. This fixes a bug which caused display margins to be
19476 discarded when saving and restoring a window configuration.
19477 (Fset_window_margins): Do nothing if display margins are not
19478 really changed. Otherwise, call adjust_window_margins to ensure
19479 the text area doesn't get too narrow. This fixes a bug which
19480 could cause Emacs to trap if setting display margins wider than
19481 the width of the window.
19482 (Fset_window_fringes): New defun to allow user to specifically set
19483 this window's fringe widths and position vs. display margins.
19484 (Fwindow_fringes): New defun to return window's actual fringe settings.
19485 (Fset_window_scroll_bars): New defun to allow user to specifically
19486 set this window's scroll bar width and position.
19487 (Fwindow_scroll_bars): New defun to return window's actual scroll
19488 bar settings.
19489 (compare_window_configurations): Also compare display margins,
19490 fringes, and scroll bar settings.
19491 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
19492
19493 * xdisp.c: Make (many) trivial substitutions for renamed and
19494 new macros in dispextern.h, frame.h and window.h.
19495 (window_box_width): Adapt to per-window fringes and scroll bars,
19496 and new fringe vs. display margin position. Note that returned
19497 value is no longer guaranteed to be a whole multiple of the frame
19498 column width, since per-window fringes may now be any width.
19499 (window_box_left_offset): New function like window_box_left, but
19500 value is relative to left border of window (rather than frame).
19501 (window_box_right_offset): New function like window_box_right,
19502 but value is relative to left border of window.
19503 (window_box_left): Adapt to per-window fringes and scroll bars,
19504 and new fringe vs. display margin position. Simplify by using
19505 WINDOW_LEFT_EDGE_X and window_box_left_offset.
19506 (window_box): Allow null args for unnecessary return values;
19507 change/simplify relevant callers.
19508 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
19509 and new fringe vs. display margin position.
19510 Use window_box_left_offset and window_box_right_offset
19511 (get_glyph_string_clip_rect): Adapt to per-window fringes and
19512 scroll bars, and new fringe vs. display margin position.
19513 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
19514 (draw_fringe_bitmap): Rework to handle per-window fringes and new
19515 fringe vs. display margin position.
19516 (hscroll_window_tree): Use window_box_width instead of window_box.
19517 (redisplay_window): Adapt to per-window scroll bars.
19518 (draw_glyphs): Rework to handle per-window fringes and scroll
19519 bars, and new fringe vs. display margin position.
19520 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
19521 (x_clear_end_of_line): Adapt to per-window fringes and scroll
19522 bars, and new fringe vs. display margin position. Fix bug which
19523 increased total width of full_width rows by width of scroll bars
19524 although window's total width already includes that.
19525 (x_fix_overlapping_area): Simplify using window_box_left_offset.
19526 (expose_area): Simplify using window_box_left_offset.
19527 (x_draw_vertical_border): Handle per-window scroll bar settings,
19528 mixing windows with left, right and no scroll bars.
19529
19530 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
19531 where it's used in x_list_fonts (for clarity).
19532 (frame_update_line_height): Remove unused function; functionality
19533 is now done directly when setting the default font in x_set_font.
19534
19535 * xfns.c: Make (many) trivial substitutions for renamed and
19536 new macros in dispextern.h, frame.h and window.h.
19537
19538 * xmenu.c: Make (some) trivial substitutions for renamed and
19539 new macros in dispextern.h, frame.h and window.h.
19540
19541 * xterm.h (struct x_output): Move members left_pos, top_pos,
19542 border_width, pixel_height, pixel_width, line_height,
19543 internal_border_width, vertical_scroll_bar_extra,
19544 left_fringe_width, right_fringe_width, fringe_cols,
19545 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
19546 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
19547 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
19548 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
19549 (PIXEL_WIDTH, PIXEL_HEIGHT)
19550 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
19551 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
19552 frame.h and renamed [see frame.h changes].
19553 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
19554 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
19555 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
19556 and renamed [see frame.h changes].
19557
19558 * xterm.c: Make (several) trivial substitutions for renamed and
19559 new macros in dispextern.h, frame.h and window.h.
19560 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
19561 (scroll_run): Adapt to new fringe position.
19562 (glyph_rect): Use window coordinates returned from
19563 window_from_coordinates rather than frame_to_window_pixel_xy.
19564 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
19565 scroll-bars.
19566 (handle_one_xevent): Simplify a USE_GTK conditional.
19567 (x_clip_to_row): Remove superfluous whole_line_p arg and code
19568 (fringes are now inside margins, i.e. always in the clipping area).
19569 All callers changed.
19570 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
19571 directly, then call compute_fringe_widths. Don't call
19572 frame_update_line_height.
19573
19574 * w32term.h (struct w32_output): Move members left_pos, top_pos,
19575 border_width, pixel_height, pixel_width, line_height,
19576 internal_border_width, vertical_scroll_bar_extra,
19577 left_fringe_width, right_fringe_width, fringe_cols,
19578 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
19579 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
19580 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
19581 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
19582 (PIXEL_WIDTH, PIXEL_HEIGHT)
19583 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
19584 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
19585 frame.h and renamed [see frame.h changes].
19586 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
19587 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
19588 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
19589 and renamed [see frame.h changes].
19590
19591 * w32term.c: Make (several) trivial substitutions for renamed and
19592 new macros in dispextern.h, frame.h and window.h.
19593 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
19594 (glyph_rect): Use window coordinates returned from
19595 window_from_coordinates rather than frame_to_window_pixel_xy.
19596 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
19597 scroll-bars.
19598 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
19599 (fringes are now inside margins, i.e. always in the clipping area).
19600 All callers changed.
19601 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
19602 directly, then call compute_fringe_widths. Don't call
19603 frame_update_line_height.
19604
19605 * w32console.c: Make (few) trivial substitutions for renamed and
19606 new macros in dispextern.h, frame.h and window.h.
19607
19608 * w32fns.c: Make (many) trivial substitutions for renamed and
19609 new macros in dispextern.h, frame.h and window.h.
19610
19611 * w32menu.c: Make (few) trivial substitutions for renamed and
19612 new macros in dispextern.h, frame.h and window.h.
19613
19614 * macterm.h (struct mac_output): Move members left_pos, top_pos,
19615 border_width, pixel_height, pixel_width, line_height,
19616 internal_border_width, vertical_scroll_bar_extra,
19617 left_fringe_width, right_fringe_width, fringe_cols,
19618 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
19619 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
19620 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
19621 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
19622 (PIXEL_WIDTH, PIXEL_HEIGHT)
19623 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
19624 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
19625 frame.h and renamed [see frame.h changes].
19626 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
19627 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
19628 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
19629 and renamed [see frame.h changes].
19630
19631 * macterm.c: Make (several) trivial substitutions for renamed and
19632 new macros in dispextern.h, frame.h and window.h.
19633 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
19634 (glyph_rect): Use window coordinates returned from
19635 window_from_coordinates rather than frame_to_window_pixel_xy.
19636 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
19637 scroll-bars.
19638 (x_clip_to_row): Remove superfluous whole_line_p arg and code
19639 (fringes are now inside margins, i.e. always in the clipping area).
19640 All callers changed.
19641 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
19642 directly, then call compute_fringe_widths. Don't call
19643 frame_update_line_height.
19644
19645 * macfns.c: Make (several) trivial substitutions for renamed and
19646 new macros in dispextern.h, frame.h and window.h.
19647 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
19648
19649 * macmenu.c: Make (few) trivial substitutions for renamed and
19650 new macros in dispextern.h, frame.h and window.h.
19651
19652 * msdos.h (struct x_output): Remove members left_pos, top_pos,
19653 and line_height, and use corresponding new members in struct
19654 frame. All uses changed.
19655 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
19656 superseeded by corresponding macros in frame.h.
19657
19658 * msdos.c: Make (several) trivial substitutions for renamed and
19659 new macros in dispextern.h, frame.h and window.h.
19660 (IT_note_mouse_highlight): Use updated window coordinates returned
19661 by window_from_coordinates, rather than adjusting them locally.
19662 (internal_terminal_init): No need to initialize line_height here;
19663 it now defaults to 1.
19664
19665 2003-05-24 Stefan Monnier <monnier@cs.yale.edu>
19666
19667 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
19668 dropping `down' events.
19669
19670 2003-05-24 Andreas Schwab <schwab@suse.de>
19671
19672 * coding.c (find_safe_codings): Fix last change.
19673
19674 2003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
19675
19676 * xfns.c (x_window): Fix typo from 2003-05-21 change.
19677
19678 2003-05-23 Stefan Monnier <monnier@cs.yale.edu>
19679
19680 * xdisp.c (display_mode_element): Increase max depth.
19681 Simplify the error handling code. Use a different error string
19682 for the case where we hit the depth limit.
19683
19684 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
19685
19686 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
19687
19688 2003-05-21 Stefan Monnier <monnier@cs.yale.edu>
19689
19690 * intervals.c (get_local_map): Don't get char-property of previous
19691 point any more: get_pos_property already does it and better.
19692
19693 2003-05-21 Dave Love <fx@gnu.org>
19694
19695 [Merged from unicode branch.]
19696
19697 * xfns.c (x_window, x_window): Use use_xim.
19698
19699 * xterm.c (use_xim): Initialize.
19700 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
19701 (x_term_init): Maybe set use_xim.
19702
19703 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
19704
19705 2003-05-21 Jason Rumney <jasonr@gnu.org>
19706
19707 * unexw32.c (_start): Remove _fmode initialization.
19708
19709 * emacs.c (main) [WINDOWSNT]: Move it here.
19710
19711 2003-05-20 Dave Love <fx@gnu.org>
19712
19713 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
19714
19715 2003-05-19 Richard M. Stallman <rms@gnu.org>
19716
19717 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
19718 as value for QCfont attribute.
19719 (realize_default_face): lface should already exist; crash if not.
19720 Specify 0 for FORCE_P when calling set_lface_from_font_name.
19721
19722 * frame.c (Fignore_event): Doc fix.
19723
19724 2003-05-19 Kenichi Handa <handa@m17n.org>
19725
19726 * coding.c (decode_coding_string): Handle post-read-conversion
19727 even if the coding doesn't require decoding.
19728
19729 2003-05-18 Richard M. Stallman <rms@gnu.org>
19730
19731 * callproc.c (Fcall_process_region): Doc fix.
19732
19733 2003-05-17 Stefan Monnier <monnier@cs.yale.edu>
19734
19735 * lread.c (Fload): Print a message if package is obsolete.
19736
19737 * window.c (Fselect_window): Add optional `norecord' arg.
19738 (select_window_1): Fold into Fselect_window.
19739 (select_window_norecord): New function.
19740 (temp_output_buffer_show): Use it. Preserve current buffer.
19741
19742 * window.h (Fselect_window): Update declaration.
19743
19744 * window.c (delete_window, Fother_window, Fset_window_configuration):
19745 * minibuf.c (read_minibuf):
19746 * macterm.c (x_new_focus_frame):
19747 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
19748 * callint.c (Fcall_interactively):
19749 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
19750
19751 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
19752
19753 2003-05-17 David Kastrup <dak@gnu.org>
19754
19755 * process.c (read_process_output): Back out change from 2003-03-09.
19756
19757 2003-05-17 Stefan Monnier <monnier@cs.yale.edu>
19758
19759 * editfns.c (get_pos_property): Don't assume that `object' = nil.
19760
19761 * textprop.c (text_property_stickiness): New arg `buffer'.
19762
19763 * intervals.h (text_property_stickiness): New arg `buffer'.
19764 (get_pos_property): Declare.
19765
19766 * intervals.c (get_local_map): Use get_pos_property, to obey
19767 stickiness and empty overlays.
19768 (create_root_interval, graft_intervals_into_buffer): Use BEG.
19769 (merge_properties, intervals_equal, merge_properties_sticky):
19770 Use XCAR, XCDR.
19771 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
19772
19773 2003-05-17 Richard M. Stallman <rms@gnu.org>
19774
19775 * minibuf.c (read_minibuf): If buffer is empty, record the default
19776 in the history.
19777 (Fminibuffer_complete_word): When deleting the overlap, take account
19778 of its real position.
19779
19780 * fns.c (map_char_table): Fix previous change.
19781
19782 * syntax.c (find_defun_start):
19783 When open_paren_in_column_0_is_defun_start,
19784 return beginning of buffer.
19785
19786 * lisp.h (map_char_table): Declare added arg.
19787
19788 * fns.c (map_char_table): New arg TABLE gets the master table.
19789 All calls changed.
19790 Process default and inheritance, resorting to Faref if necessary.
19791
19792 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
19793 (Faccessible_keymaps): Pass new arg to map_char_table.
19794
19795 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
19796
19797 * casetab.c (set_case_table): Pass new arg to map_char_table.
19798
19799 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
19800
19801 * lisp.h (specbinding_func): New typedef.
19802 (struct specbinding): Use specbinding_func, to put the `volatile'
19803 in the right place.
19804
19805 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
19806 to avoid GCC warning.
19807
19808 2003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org>
19809
19810 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
19811
19812 2003-05-15 Stefan Monnier <monnier@cs.yale.edu>
19813
19814 * keyboard.c (apply_modifiers): Don't fill the other cache.
19815
19816 2003-05-14 Stefan Monnier <monnier@cs.yale.edu>
19817
19818 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
19819
19820 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
19821 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
19822 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
19823 (Fset_window_configuration, Fcurrent_window_configuration)
19824 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
19825 (Fpos_visible_in_window_p, mark_window_cursors_off)
19826 (window_internal_height, window_internal_width, Frecenter)
19827 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
19828 (replace_buffer_in_all_windows, init_window_once, init_window)
19829 (syms_of_window, keys_of_window): Move from lisp.h.
19830 * lisp.h: Move window.c declarations to window.h.
19831
19832 * bytecode.c: Include window.h.
19833 * emacs.c: Include window.h.
19834
19835 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
19836 (keyremap): Add `parent' field.
19837 (keyremap_step): Use it. Remove `parent' argument.
19838 (read_key_sequence): Setup and use the new `parent' field.
19839
19840 2003-05-11 Stefan Monnier <monnier@cs.yale.edu>
19841
19842 * keyboard.c (adjust_point_for_property): Ensure termination.
19843
19844 2003-05-10 Stefan Monnier <monnier@cs.yale.edu>
19845
19846 * keyboard.c (follow_key): Remove dead variable `did_meta'.
19847 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
19848 duplicated handling of function-key-map and key-translation-map
19849 in read_key_sequence.
19850 (read_key_sequence): Use them.
19851
19852 * keyboard.c (adjust_point_for_property): Try harder to move point
19853 to the non-sticky end of an invisible property.
19854
19855 * xdisp.c (single_display_prop_intangible_p): Make `space' display
19856 property intangible as well.
19857
19858 2003-05-10 Andreas Schwab <schwab@suse.de>
19859
19860 * xmenu.c (single_menu_item): Change last parameter to void* to
19861 avoid warning.
19862
19863 2003-05-09 Richard M. Stallman <rms@gnu.org>
19864
19865 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
19866 Bind Qinhibit_modification_hooks to t so there will be no GC.
19867 Rename local `tem' to `save_deactivate_mark'.
19868
19869 * eval.c (specpdl_ptr): Declare volatile.
19870 (unbind_to): Copy the whole binding and decrement specpdl_ptr
19871 before doing the work of unbinding it.
19872
19873 * lisp.h (struct specbinding): Declare elements volatile.
19874 (specpdl_ptr): Declare volatile.
19875
19876 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
19877
19878 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
19879 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
19880
19881 2003-05-08 Dave Love <fx@gnu.org>
19882
19883 * coding.c (Vlast_coding_system_used): Doc fix.
19884
19885 2003-05-07 Jason Rumney <jasonr@gnu.org>
19886
19887 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
19888 when system does not support them.
19889
19890 2003-05-05 Stefan Monnier <monnier@cs.yale.edu>
19891
19892 * fileio.c (Qwrite_region_annotate_functions): New var.
19893 (build_annotations): Use it to process the global part of the hook.
19894 (syms_of_fileio): Init and staticpro it.
19895
19896 * keyboard.c (safe_run_hooks_error): Display a message instead of
19897 silently ignoring the error.
19898
19899 2003-05-03 Stefan Monnier <monnier@cs.yale.edu>
19900
19901 * keyboard.c (input_available_signal): Mark static.
19902 (menu_bar_items): Use map_keymap.
19903 (menu_bar_one_keymap): Remove.
19904 (menu_bar_item): Adjust arglist (for use in map_keymap).
19905 Properly hide a second binding when not both are keymaps.
19906
19907 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
19908 (single_keymap_panes): Use it and map_keymap.
19909 (single_menu_item): Use skp as well.
19910
19911 * keymap.h (map_keymap_function_t): New type.
19912 (map_keymap): Declare.
19913
19914 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
19915 (map_keymap_call, Fmap_keymap): New functions.
19916 (syms_of_keymap): Defsubr map-keymap.
19917
19918 2003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19919
19920 * gtkutil.c (create_dialog, make_widget_for_menu_item)
19921 (make_menu_item, create_menus, xg_update_menu_item): Don't call
19922 ..._with_mnemonic functions for menu items.
19923
19924 2003-05-01 Kenichi Handa <handa@m17n.org>
19925
19926 * coding.c (coding_system_accept_latin_extra_p): Delete this
19927 function.
19928 (find_safe_codings): Pay attention to
19929 the property tranlsation-table-for-encode of each codings.
19930 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
19931
19932 2003-05-01 Stefan Monnier <monnier@cs.yale.edu>
19933
19934 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
19935
19936 2003-04-30 Stefan Monnier <monnier@cs.yale.edu>
19937
19938 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
19939
19940 * lisp.h (CHECK): Wrap args in parenthesis.
19941 (specbind): Fix doc: symbol = Qnil is not supported any more.
19942
19943 * bytecode.c (Fbyte_code) <unwind-protect>:
19944 Use Fprogn rather than 0 and Qnil.
19945
19946 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
19947 `double', and `triple' modifiers as well.
19948
19949 2003-04-30 Richard M. Stallman <rms@gnu.org>
19950
19951 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
19952
19953 * alloc.c (abort_on_gc): New variable.
19954 (Fgarbage_collect): Abort if abort_on_gc is set.
19955
19956 * lisp.h (abort_on_gc): Add decl.
19957
19958 * eval.c (Fsignal): Clear abort_on_gc.
19959
19960 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
19961 Reinit FORMAT_START and END before second scan.
19962
19963 * xdisp.c (move_it_vertically_backward): Do the final big else
19964 even if nlines is 0.
19965
19966 * xdisp.c (redisplay_internal): Finish the per-frame loop
19967 even if redisplay is suspended by input.
19968
19969 2003-04-24 Andrew Choi <akochoi@shaw.ca>
19970
19971 * macterm.c (x_list_fonts): Return all fonts that match if
19972 maxnames = -1.
19973
19974 2003-04-25 Kenichi Handa <handa@m17n.org>
19975
19976 * syntax.c (skip_chars): Fix previous change.
19977
19978 2003-04-24 Kenichi Handa <handa@m17n.org>
19979
19980 * syntax.c (skip_chars): Make the code faster by using the common
19981 technique of *p, *stop, and *endp.
19982
19983 2003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19984
19985 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
19986 tool_bar_items so GTK tool bar expose callback does not access items
19987 being updated.
19988
19989 2003-04-19 Stefan Monnier <monnier@cs.yale.edu>
19990
19991 * eval.c (Fapply): Undo last change and add a comment about why.
19992
19993 2003-04-18 Miles Bader <miles@gnu.org>
19994
19995 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
19996 pickier PARSE_MULTIBYTE_SEQ.
19997
19998 2003-04-17 Stefan Monnier <monnier@cs.yale.edu>
19999
20000 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
20001 Use XCDR, XCAR, CONSP.
20002 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
20003 (Fapply): Remove unnecessary GCPRO.
20004
20005 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
20006
20007 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
20008
20009 * buffer.h: Don't hardcode BEG==1.
20010
20011 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
20012
20013 2003-04-16 Richard M. Stallman <rms@gnu.org>
20014
20015 * xdisp.c (try_window, try_window_reusing_current_matrix):
20016 When at end of window, set window_end_pos to Z-ZV.
20017
20018 * buffer.c (Foverlay_recenter): Doc fix.
20019
20020 2003-04-14 Stefan Monnier <monnier@cs.yale.edu>
20021
20022 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
20023
20024 2003-04-14 Andrew Choi <akochoi@shaw.ca>
20025
20026 * macterm.c (mac_check_for_quit_char): Don't check more often than
20027 once a second.
20028
20029 2003-04-11 Stefan Monnier <monnier@cs.yale.edu>
20030
20031 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
20032 specially, so that they can't hide an implicit switch-frame event.
20033 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
20034 (head_table): Use switch-frame as event_kind for select-window.
20035 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
20036
20037 * editfns.c (Fformat): Lisp_Object/int mixup.
20038 (format2): Remove unused var numargs.
20039
20040 2003-04-11 Kenichi Handa <handa@m17n.org>
20041
20042 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
20043 (Qafter_insert_file_set_coding): New variable.
20044 (syms_of_fileio): Initialize and staticpro it. Delete declaration
20045 for after-insert-file-adjust-coding-function.
20046 (Finsert_file_contents): Call Qafter_insert_file_set_coding
20047 instead of Vafter_insert_file_adjust_coding_function.
20048
20049 2003-04-11 Kenichi Handa <handa@m17n.org>
20050
20051 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
20052
20053 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
20054 string. Callers changed.
20055
20056 2003-04-10 Kenichi Handa <handa@m17n.org>
20057
20058 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
20059 (syms_of_fileio): Declare it as a lisp variable.
20060 (Finsert_file_contents):
20061 Call Vafter_insert_file_adjust_coding_function before calling
20062 decode-format.
20063
20064 2003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20065
20066 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
20067 get GtkAdjustment as widget now is a GtkRange.
20068
20069 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
20070 GtkRange to avoid memory leak.
20071
20072 2003-04-09 Kenichi Handa <handa@m17n.org>
20073
20074 * xfaces.c (Vface_font_rescale_alist): New variable.
20075 (struct font_name): New member rescale_ratio.
20076 (font_rescale_ratio): New function.
20077 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
20078 (better_font_p): On comparing point sized, pay attention to
20079 recale_ratio member of fonts.
20080 (build_scalable_font_name): Reflect font->rescale_ratio in the
20081 font name.
20082 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
20083
20084 * lread.c (read1): Before calling index, check if the 2nd
20085 arguemnt is in ASCII range.
20086
20087 2003-04-08 Richard M. Stallman <rms@gnu.org>
20088
20089 * fileio.c (Ffile_symlink_p): Doc fix.
20090
20091 * editfns.c (Fformat): Translate positions of text properties
20092 in the format string to apply them to the result.
20093
20094 * fileio.c (Finsert_file_contents): Doc fix.
20095 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
20096
20097 2003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
20098
20099 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
20100
20101 2003-04-08 Steven Tamm <steventamm@mac.com>
20102
20103 * mac.c (init_mac_osx_environment): Switch libexec and bin so
20104 that self-contained application finds libexec files.
20105
20106 2003-04-08 Kenichi Handa <handa@m17n.org>
20107
20108 * coding.c (code_convert_region_unwind):
20109 Set Vlast_coding_system_used to the argument.
20110 (code_convert_region): If post-read-conversion function changed
20111 the value of last-coding-sytem, keep the new value in
20112 coding->symbol so that it won't be overridden.
20113 (run_pre_post_conversion_on_str): Likewise.
20114 (coding_system_accept_latin_extra_p): New function.
20115 (find_safe_codings): Pay attention to characters registered in
20116 latin-extra-code-table.
20117
20118 2003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
20119
20120 * Makefile.in (md5.o): Add missing dependency info.
20121
20122 2003-04-06 Richard M. Stallman <rms@gnu.org>
20123
20124 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
20125
20126 * marker.c (verify_bytepos): New function.
20127
20128 * intervals.c (set_intervals_multibyte_1): When becoming
20129 multibyte, adjust right and left child sizes to a whole set of
20130 characters. If an interval gets zero total-length, delete it.
20131 If an interval consists of just its children, delete one of them.
20132
20133 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
20134 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
20135
20136 * alloc.c (VALIDATE_LISP_STORAGE): Macro deleted.
20137 All calls deleted.
20138 (lisp_malloc): Do the work here directly.
20139
20140 2003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
20141
20142 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
20143 char tables.
20144
20145 2003-04-04 Kenichi Handa <handa@m17n.org>
20146
20147 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
20148 destructively change "%S" to "%s".
20149
20150 2003-04-03 Miles Bader <miles@gnu.org>
20151
20152 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
20153 always set.
20154
20155 2003-04-01 Dave Love <fx@gnu.org>
20156
20157 * xfns.c (xpm_lookup_color): Grok "opaque".
20158
20159 2003-03-31 Andrew Choi <akochoi@shaw.ca>
20160
20161 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
20162 parent window ID.
20163
20164 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
20165
20166 * macterm.h (struct mac_output): Define x_pixels_diff and
20167 y_pixels_diff.
20168
20169 2003-03-31 Juanma Barranquero <lektu@terra.es>
20170
20171 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
20172 blockinput.h and files included from it.
20173
20174 2003-03-31 Kim F. Storm <storm@cua.dk>
20175
20176 The following changes consolidates the common code related to
20177 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
20178 files into frame.c.
20179
20180 * frame.c: Include blockinput.h.
20181 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
20182 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
20183 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
20184 related vars here.
20185 (struct frame_parm_table, frame_parms): New table for describing
20186 frame parameters and their associated Q-variable.
20187 The order of the parameters corresponds to the sequence of the
20188 frame_parm_handlers table in redisplay_interface.
20189 (x_fullscreen_move, x_set_frame_parameters)
20190 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
20191 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
20192 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
20193 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
20194 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
20195 Generic functions for processing of frame parameters.
20196 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
20197 (display_x_get_resource, x_get_resource_string): Functions for
20198 generic access to X resources.
20199 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
20200 (x_default_parameter, Fx_parse_geometry): Functions for generic
20201 access to frame parameters.
20202 (x_figure_window_size): Generic calculation of frame size.
20203 Fixed to add space needed for tool bar. Also setup size_hint_flags.
20204 (syms_of_frame): Intern and staticpro frame parameter variables.
20205 Defvar_lisp Vx_resource_class and Vx_resource_name here.
20206 Defsubr Sx_get_resource and Sx_parse_geometry.
20207
20208 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
20209 parameter related vars defined in frame.c.
20210 (EMACS_CLASS): Define here.
20211 (enum FULLSCREEN_*): Define here.
20212 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
20213 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
20214 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
20215 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
20216 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
20217 (x_set_visibility, x_set_autoraise, x_set_autolower)
20218 (x_set_unsplittable, x_set_vertical_scroll_bars)
20219 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
20220 (x_figure_window_size): Add prototypes.
20221
20222 * dispextern.h (frame_parm_handler): New typedef.
20223 (struct redisplay_interface): New member frame_parm_handlers.
20224 (enum resource_types): Move declaration here.
20225 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
20226 (x_default_parameter): Add prototypes.
20227
20228 * window.c: Remove extern decl for frame parameter vars.
20229 (change_window_heights): New generic function;
20230 replaces x_change_window_heights. All users changed.
20231
20232 * window.h (change_window_heights): Add prototype.
20233
20234 * xfaces.c: Remove extern decl for frame parameter vars.
20235
20236 * xterm.h (EMACS_CLASS): Remove. Use generic define.
20237 (struct w32_display_info): Fix type of xrdb member.
20238 (enum FULLSCREEN_*): Remove.
20239 Remove prototypes for generic functions (in frame.h).
20240
20241 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
20242 parameters now defined in frame.h and frame.c.
20243 (Vx_resource_name): Remove. Use generic var.
20244 (enum x_frame_parms): Remove (bogus, unused enum).
20245 (check_x_display_info): Make non-static (for frame.c).
20246 (struct x_frame_parm_table, x_frame_parms): Remove.
20247 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
20248 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
20249 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
20250 (x_change_window_heights, x_set_autoraise, x_set_autolower)
20251 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
20252 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
20253 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
20254 Remove. Use generic functions instead.
20255 (enum resource_types): Remove.
20256 (x_set_scroll_bar_default_width): New global function (for frame.c).
20257 (Fx_create_frame): Depend on x_figure_window_size to add space for
20258 toolbar and setup size_hint_flags.
20259 (x_frame_parm_handlers): New table for redisplay_interface.
20260 (syms_of_xfns): Don't intern/staticpro removed vars.
20261
20262 * xterm.c: Remove unnecessary extern declarations.
20263 (x_fullscreen_adjust): Remove. Use generic instead.
20264 (x_redisplay_interface): Add x_frame_parm_handlers member.
20265
20266 * w32gui.h (XrmDatabase): New (dummy) typedef.
20267
20268 * w32term.h (EMACS_CLASS): Remove. Use generic define.
20269 (struct w32_display_info): Fix type of xrdb member.
20270 (enum FULLSCREEN_*): Remove.
20271 (x_fullscreen_adjust): Remove prototype.
20272
20273 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
20274 parameters now defined in frame.h and frame.c.
20275 (Vx_resource_name): Remove. Use generic var.
20276 (enum x_frame_parms): Remove (bogus, unused enum).
20277 (check_x_display_info): Make non-static (for frame.c).
20278 (struct x_frame_parm_table, x_frame_parms): Remove.
20279 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
20280 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
20281 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
20282 (x_change_window_heights, x_set_autoraise, x_set_autolower)
20283 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
20284 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
20285 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
20286 Remove. Use generic functions instead.
20287 (enum resource_types): Remove.
20288 (x_set_scroll_bar_default_width): New global function (for frame.c).
20289 (Fx_create_frame): Depend on x_figure_window_size to add space for
20290 toolbar and setup size_hint_flags.
20291 (w32_frame_parm_handlers): New table for redisplay_interface.
20292 (syms_of_w32fns): Don't intern/staticpro removed vars.
20293
20294 * w32term.c: Remove unnecessary extern declarations.
20295 (x_fullscreen_adjust): Remove. Use generic instead.
20296 (x_redisplay_interface): Add w32_frame_parm_handlers member.
20297
20298 * w32reg.c (x_get_string_resource): Use XrmDatabase.
20299
20300 * macgui.h (XrmDatabase): New (dummy) typedef.
20301
20302 * macterm.h (EMACS_CLASS): Remove.
20303 (struct mac_display_info): Add xrdb member.
20304 (struct mac_output): Add want_fullscreen member.
20305
20306 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
20307 parameters now defined in frame.h and frame.c.
20308 (Vx_resource_name): Remove. Use generic var.
20309 (check_x_display_info): Make non-static (for frame.c).
20310 (struct x_frame_parm_table, x_frame_parms): Remove.
20311 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
20312 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
20313 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
20314 (x_change_window_heights, x_set_autoraise, x_set_autolower)
20315 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
20316 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
20317 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
20318 Remove. Use generic functions instead.
20319 (enum resource_types): Remove.
20320 (x_set_scroll_bar_default_width): New global function (for frame.c).
20321 (mac_frame_parm_handlers): New table for redisplay_interface.
20322 (syms_of_macfns): Don't intern/staticpro removed vars.
20323
20324 * macterm.c: Remove unnecessary extern declarations.
20325 (x_redisplay_interface): Add mac_frame_parm_handlers member.
20326
20327 * Makefile.in (frame.o): Add dependency on blockinput.h and files
20328 included from it (atimer.h and systime.h).
20329
20330 2003-03-30 Andreas Schwab <schwab@suse.de>
20331
20332 * xdisp.c (x_insert_glyphs): Fix swapped width and height
20333 parameters for shift_glyphs_for_insert.
20334
20335 * macterm.c (x_redisplay_interface): Add missing entry for
20336 draw_vertical_window_border.
20337
20338 2003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
20339
20340 * fileio.c (Fexpand_file_name): In the no-handler case, after
20341 expanding, look again for a handler and invoke it. This is needed
20342 for filenames like "/foo/../user@host:/bar/../baz" -- the first
20343 expansion produces "/user@host:/bar/../baz" which needs to be
20344 expanded again for the finame result "/user@host:/baz".
20345
20346 2003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20347
20348 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
20349 of area to be redrawn for better performance.
20350
20351 2003-03-28 Stefan Monnier <monnier@cs.yale.edu>
20352
20353 * xterm.c (take_vertical_position_into_account): Remove.
20354 (xt_action_hook): Call set_vertical_scroll_bar if needed.
20355 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
20356 (xm_scroll_callback, x_create_toolkit_scroll_bar)
20357 (x_set_toolkit_scroll_bar_thumb): Simplify.
20358 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
20359 (XTread_socket): Remove unused var.
20360 (x_make_frame_invisible): Replace goto with else.
20361
20362 * xdisp.c (set_vertical_scroll_bar): New fun.
20363 (redisplay_window): Use it.
20364
20365 2003-03-26 Richard M. Stallman <rms@gnu.org>
20366
20367 * xdisp.c (update_tool_bar): Recompute tool bar if
20368 update_mode_lines is set. Set w->update_mode_line
20369 only if the tool bar contents actually change.
20370 (update_menu_bar): Undo previous change.
20371
20372 2003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20373
20374 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
20375 (xg_frame_set_char_size): Calculate scroll bar width before frame
20376 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
20377 (xg_separator_p): Check for all documented separator types.
20378 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
20379 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
20380
20381 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
20382 so tool bar gets updated.
20383
20384 2003-03-26 Stefan Monnier <monnier@cs.yale.edu>
20385
20386 * data.c (store_symval_forwarding): Re-instate part of the code
20387 that was deleted with too much enthusiasm.
20388
20389 2003-03-25 Stefan Monnier <monnier@cs.yale.edu>
20390
20391 * data.c (store_symval_forwarding): Delete special read-only
20392 hack for type == -1, since we now use ->constant instead.
20393 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
20394
20395 * buffer.c (overlays_in): Declare static.
20396 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
20397 `constant' field rather than the variable's `type' field.
20398
20399 2003-03-24 Andrew Choi <akochoi@shaw.ca>
20400
20401 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
20402
20403 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
20404
20405 * fns.c [MAC_OSX]: Do not redefine vector.
20406
20407 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
20408
20409 * macgui.h: Remove definition of No_Cursor.
20410
20411 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
20412
20413 * xdisp.c: Define No_Cursor.
20414 (x_write_glyphs, notice_overwritten_cursor)
20415 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
20416 (note_mouse_highlight): Remove Mac-specific code.
20417 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
20418
20419 2003-03-24 John Paul Wallington <jpw@gnu.org>
20420
20421 * xdisp.c (redisplay_window): If mini window's buffer is not
20422 empty, then redisplay it like other windows.
20423
20424 2003-03-23 Kim F. Storm <storm@cua.dk>
20425
20426 * w32term.c (w32_draw_window_cursor): Fix last change.
20427
20428 2003-03-23 Kenichi Handa <handa@m17n.org>
20429
20430 * alloc.c (make_string_from_bytes, make_specified_string):
20431 Add `const' for the arg CONTENTS.
20432
20433 * lisp.h (make_string_from_bytes, make_specified_string):
20434 Prototypes adjusted.
20435
20436 2003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20437
20438 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif.
20439
20440 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
20441 (XG_SB_RANGE): New define.
20442
20443 * gtkutil.c (xg_fixed_handle_expose): New function.
20444 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
20445 expose events.
20446 (xg_update_scrollbar_pos): Take two more arguments, left and width
20447 of scroll bar including borders.
20448 Clear left and right part outside scroll bar separately as some
20449 themes have bars that are not an even number of pixels.
20450 Don't set reallocate_redraws, don't call
20451 gdk_window_process_all_updates.
20452 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
20453 so no need to change it. Calculate size and value with XG_SB_RANGE.
20454
20455 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
20456 Pass left and width of scroll bar including borders to
20457 xg_update_scrollbar_pos.
20458
20459 2003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
20460
20461 * Makefile.in: Make sure space precedes end-of-line backslashes.
20462
20463 2003-03-22 Kim F. Storm <storm@cua.dk>
20464
20465 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
20466 Add generic versions here. Remove system specific versions
20467 defined elsewhere.
20468
20469 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
20470 Add prototypes.
20471
20472 * xterm.h (STORE_NATIVE_RECT): New macro.
20473
20474 2003-03-21 Kim F. Storm <storm@cua.dk>
20475
20476 * xdisp.c (get_glyph_string_clip_rect):
20477 Use FRAME_INTERNAL_BORDER_WIDTH.
20478
20479 * dispextern.h (struct redisplay_interface): Add active_p
20480 argument to draw_window_cursor member. All uses changed.
20481
20482 2003-03-21 Kim F. Storm <storm@cua.dk>
20483
20484 The following changes consolidate code related to writing and
20485 inserting glyphs, exposing frame, the tool bar, the mouse face,
20486 the output cursor, and help echo from xterm.c, w32term.c and
20487 macterm.c into xdisp.c. It also generalizes the use of the
20488 window_part enum instead of using numeric values throughout.
20489
20490 * xdisp.c: Consolidate gui-independent code here.
20491 Include keymap.h.
20492 (Qhelp_echo): Import.
20493 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
20494 (help_echo_string, help_echo_window, help_echo_object)
20495 (previous_help_echo_string, help_echo_pos): Declare here.
20496 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
20497 (estimate_mode_line_height): Define here. Handle windowing
20498 systems directly (without using estimate_mode_line_height_hook).
20499 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
20500 (update_window_cursor, update_cursor_in_window_tree)
20501 (fast_find_position, fast_find_string_pos)
20502 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
20503 (expose_area, expose_line, expose_overlaps, expose_window)
20504 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
20505 declared static as they are only used locally in xdisp.c.
20506 (draw_glyphs): Rename from x_draw_glyphs and make static.
20507 (tool_bar_item_info, notice_overwritten_cursor): Make static.
20508 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
20509 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
20510 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
20511 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
20512 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
20513 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
20514 (note_mouse_highlight, x_clear_window_mouse_face)
20515 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
20516 (x_intersect_rectangles): New generic functions for use by xdisp.c
20517 and GUI front-ends.
20518 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
20519 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
20520
20521 * dispextern.h (Display_Info): Generic typedef for *_display_info.
20522 (NativeRectangle): Generic typedef for rectangle type.
20523 (enum window_part): Move here from window.c.
20524 (struct redisplay_interface): New members flush_display_optional,
20525 define_frame_cursor, clear_frame_area, draw_window_cursor,
20526 draw_vertical_window_border, shift_glyphs_for_insert.
20527 Rename member clear_mouse_face to clear_window_mouse_face.
20528 (estimate_mode_line_height_hook): Remove hook.
20529 (auto_raise_tool_bar_buttons_p): Don't declare extern.
20530 (tool_bar_item_info): Remove prototype.
20531 (help_echo_string, help_echo_window, help_echo_object)
20532 (previous_help_echo_string, help_echo_pos)
20533 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
20534 (x_stretch_cursor_p, output_cursor): Declare extern.
20535 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
20536 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
20537 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
20538 (display_and_set_cursor, set_output_cursor, x_cursor_to)
20539 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
20540 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
20541 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
20542 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
20543 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
20544 Add prototypes.
20545 (mode_line_string, marginal_area_string): Fix prototypes.
20546
20547 * window.c (enum window_part): Move to dispextern.h.
20548 (coordinates_in_window): Use enum window_part member names
20549 instead of numbers to describe return value.
20550 (struct check_window_data): Change part member to window_part.
20551 (check_window_containing): Return window_part unaltered.
20552 (window_from_coordinates): Change part arg from int to enum
20553 window_part. Allow part arg to be null. All users changed.
20554
20555 * window.h (window_from_coordinates): Fix prototype.
20556
20557 * term.c (estimate_mode_line_height): Move to xdisp.c.
20558
20559 * keyboard.c (make_lispy_event): Use enum window_part.
20560
20561 * dispnew.c (mode_line_string, marginal_area_string): Use enum
20562 window_part instead of int in arg list. Users changed.
20563
20564 * xterm.h (No_Cursor): Declare as None for X.
20565 (struct mac_output): Replace member cross_cursor by hand_cursor.
20566
20567 * xterm.c: Remove consolidated defines and code.
20568 (BETWEEN): Remove unused macro.
20569 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
20570 (x_define_frame_cursor, x_clear_frame_area)
20571 (x_draw_window_cursor): New X-specific functions for RIF.
20572 (x_redisplay_interface): Add new members.
20573
20574 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
20575
20576 * w32term.h (struct w32_output): Remove cross_cursor member.
20577
20578 * w32term.c: Remove consolidated defines and code.
20579 (BETWEEN): Remove unused macro.
20580 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
20581 (w32_define_frame_cursor, w32_clear_frame_area)
20582 (w32_draw_window_cursor): New W32-specific functions for RIF.
20583 (w32_redisplay_interface): Add new members.
20584
20585 * w32gui.h (No_Cursor): Define as 0 for W32.
20586 (XRectangle): Add X compatible rectangle type.
20587 (NativeRectangle): Declare as RECT for W32.
20588 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
20589
20590 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
20591
20592 * w32console.c: Remove consolidated defines and code.
20593
20594 * msdos.h (Display_Info): Add generic typedef.
20595
20596 * msdos.c: Remove consolidated defines and code.
20597 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
20598
20599 * macterm.h (struct mac_output): Replace member cross_cursor by
20600 hand_cursor.
20601 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
20602
20603 * macterm.c: Remove consolidated defines and code.
20604 (BETWEEN): Remove unused macro.
20605 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
20606 (mac_define_frame_cursor, mac_clear_frame_area)
20607 (mac_draw_window_cursor): New Mac-specific functions for RIF.
20608 (x_redisplay_interface): Add new members.
20609
20610 * macgui.h (No_Cursor): Define as 0 for Mac.
20611 (XRectangle): Add X compatible rectangle type.
20612 (NativeRectangle): Declare as Rect for Mac.
20613 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
20614
20615 * macfns.c (x_set_mouse_color): Setup hand_cursor.
20616 (x_set_cursor_color): Use x_display_and_set_cursor.
20617
20618 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
20619 included from it. Add dependency on keymap.h.
20620
20621 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
20622
20623 2003-03-21 Kenichi Handa <handa@m17n.org>
20624
20625 * fileio.c (Fexpand_file_name): Fix previous change.
20626
20627 2003-03-19 Kenichi Handa <handa@m17n.org>
20628
20629 * fileio.c (Ffile_name_directory): Reconstruct file name by
20630 make_specified_string.
20631 (Ffile_name_nondirectory, Ffile_name_as_directory)
20632 (Fdirectory_file_name, Fexpand_file_name)
20633 (Fsubstitute_in_file_name): Likewise.
20634 (Fread_file_name): Compare decoded homedir with DIR and
20635 DEFAULT_FILENAME.
20636
20637 * alloc.c (make_specified_string): If NCHARS is negative, count
20638 the number of characters.
20639
20640 2003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20641
20642 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
20643 all widgets.
20644
20645 * gtkutil.h: Removed xg_ignore_next_thumb.
20646
20647 2003-03-18 Kenichi Handa <handa@m17n.org>
20648
20649 * coding.c (Vchar_coding_system_table): Remove this variable.
20650 (Vcoding_system_safe_chars): New variable.
20651 (intersection): Remove this function.
20652 (find_safe_codings): Don't use Vchar_coding_system_table, but try
20653 all codings in SAFE_CODINGS.
20654 (Ffind_coding_systems_region_internal): Adjust for the change of
20655 find_safe_codings. Get generic coding systems from
20656 Vcoding_system_safe_chars.
20657 (Fdefine_coding_system_internal): New function.
20658 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
20659 Initialize and staticpro Vcoding_system_safe_chars.
20660
20661 2003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20662
20663 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
20664 equal old values before updating.
20665
20666 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
20667
20668 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
20669
20670 2003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20671
20672 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
20673 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
20674 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
20675 (scroll_bar_button_cb): Set bar->dragging to nil on button release.
20676 (xg_create_scroll_bar): Pass bar to button event callback.
20677 (xg_find_top_left_in_fixed): New function.
20678 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
20679 whole scroll bar area. Get old position with
20680 xg_find_top_left_in_fixed, calculate and only clear needed areas.
20681 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
20682 dragging is in progress. Calculate whole as for Motif.
20683 Remove code that saved last values. Call gtk_range functions to
20684 set scroll bar sizes.
20685
20686 * gtkutil.h: Removed xg_ignore_next_thumb.
20687
20688 2003-03-17 Juanma Barranquero <lektu@terra.es>
20689
20690 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
20691 and files included from it.
20692
20693 2003-03-18 Stefan Monnier <monnier@cs.yale.edu>
20694
20695 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
20696 multiple occurrences of the same keymap under different prefixes.
20697 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
20698
20699 2003-03-16 Jason Rumney <jasonr@gnu.org>
20700
20701 * w32gui.h: Use HDC for Display.
20702
20703 * w32term.c (w32_encode_char): Prevent double-byte chars from
20704 crashing Emacs.
20705
20706 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
20707 as binary.
20708
20709 2003-03-16 Juanma Barranquero <lektu@terra.es>
20710
20711 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
20712
20713 2003-03-16 Kim F. Storm <storm@cua.dk>
20714
20715 The following changes consolidate some of the gui-independent
20716 parts of the processing and drawing of "glyph strings" from
20717 xterm.c, w32term.c, and macterm.c into xdisp.c.
20718
20719 * dispextern.h (struct glyph): Reduce face_id member from 22 to
20720 21 bits (this reduces number of faces from 4M to 2M).
20721 Replace W32 specific w32_font_type member (2 bits) by generic
20722 font_type member (3 bits) for portability.
20723 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
20724 (enum draw_glyphs_face): Define here.
20725 (struct glyph_string): Define here. Merge W32 and X versions.
20726 (struct redisplay_interface): New members per_char_metric,
20727 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
20728 (VCENTER_BASELINE_OFFSET): Define here.
20729 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
20730 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
20731
20732 * xdisp.c: Consolidate gui-independent "glyph string" code here.
20733 (dump_glyph_string): Moved here.
20734 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
20735 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
20736 (fill_composite_glyph_string, fill_glyph_string)
20737 (fill_image_glyph_string, fill_stretch_glyph_string)
20738 (left_overwritten, left_overwriting, right_overwritten)
20739 (right_overwriting, get_char_face_and_encoding)
20740 (set_glyph_string_background_width, compute_overhangs_and_x)
20741 (append_glyph, append_composite_glyph, produce_image_glyph)
20742 (take_vertical_position_into_account, append_stretch_glyph)
20743 (produce_stretch_glyph): New generic functions (based on X version).
20744 Call platform specific functions through rif.
20745 (INIT_GLYPH_STRING): New macro, hides W32 details.
20746 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
20747 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
20748 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
20749 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
20750 (notice_overwritten_cursor):
20751 Generic functions exported to platform modules. Users changed.
20752
20753 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
20754 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
20755 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
20756 New macros for consolidated code.
20757
20758 * xterm.c: Remove consolidated defines and code.
20759 (x_per_char_metric, x_encode_char)
20760 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
20761 (x_redisplay_interface): Add new members.
20762
20763 * w32gui.h (Display): Add dummy typedef for consolidation.
20764 (XChar2b): Define alias for wchar_t for consolidation.
20765 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
20766
20767 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
20768 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
20769 New macros for consolidation.
20770
20771 * w32term.c: Remove consolidated defines and code.
20772 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
20773 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
20774 (w32_per_char_metric): Change font_type arg to int for RIF.
20775 (w32_encode_char): Return int according to RIF requirements.
20776 (w32_compute_glyph_string_overhangs): Adapt to RIF.
20777 (w32_get_glyph_overhangs): New function for RIF. Uses generic
20778 x_get_glyph_overhangs.
20779 (w32_redisplay_interface): Add new members.
20780
20781 * macgui.h (XChar2b): Move typedef here for consolidation.
20782 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
20783
20784 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
20785 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
20786 consolidation.
20787
20788 * macterm.c: Remove consolidated defines and code.
20789 (mac_per_char_metric): New function for RIF.
20790 (mac_encode_char): Adapt to new RIF requirements.
20791 (mac_compute_glyph_string_overhangs): Adapt for RIF.
20792 (x_redisplay_interface): Add new members.
20793
20794 2003-03-15 Stefan Monnier <monnier@cs.yale.edu>
20795
20796 * keymap.c (Vmenu_events): New var.
20797 (syms_of_keymap): Initialize it.
20798 (where_is_internal): Check more carefully what is a menu event.
20799
20800 2003-03-14 Richard M. Stallman <rms@gnu.org>
20801
20802 * lread.c (read1): After #!, exit loop on eof.
20803
20804 2003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20805
20806 * gtkutil.h: Add declaration for xg_frame_cleared.
20807
20808 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
20809
20810 * gtkutil.c (struct xg_last_sb_pos): New structure.
20811 (handle_fixed_child): New function.
20812 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
20813 and force a redraw on them.
20814 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
20815 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
20816 so we can avoid unneeded redraws.
20817 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
20818 and force a redraw on the scroll bar.
20819 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
20820 if xg_last_sb_pos shows the positions are up to date.
20821 (xg_frame_cleared): New function.
20822
20823 2003-03-13 Kenichi Handa <handa@m17n.org>
20824
20825 * coding.c (Fdetect_coding_region): Fix docstring.
20826 (Fdetect_coding_string): Fix docstring.
20827
20828 2003-03-13 Andreas Schwab <schwab@suse.de>
20829
20830 * gtkutil.c: Add prototype for create_menus.
20831
20832 * data.c (long_to_cons): Fix type of top.
20833
20834 * xselect.c (selection_data_to_lisp_data): Use int instead of
20835 long for an integer of size 4.
20836
20837 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
20838 (xg_tool_bar_help_callback): Likewise.
20839
20840 2003-03-12 Andreas Schwab <schwab@suse.de>
20841
20842 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
20843
20844 2003-03-12 Kim F. Storm <storm@cua.dk>
20845
20846 The following changes consolidate the fringe handling from
20847 xterm.c, w32term.c, and macterm.c into xdisp.c.
20848
20849 * xdisp.c: Consolidate fringe handling code here.
20850 (left_bits, right_bits, continued_bits, continuation_bits)
20851 (ov_bits, zv_bits): Define fringe bitmaps.
20852 (fringe_bitmaps): New array holding fringe bitmaps.
20853 (draw_fringe_bitmap): Draw a specific bitmap; call display
20854 specific drawing routine via rif->draw_fringe_bitmap.
20855 (draw_row_fringe_bitmaps): Generic replacement for
20856 x_draw_row_fringe_bitmaps; all callers changed.
20857 (compute_fringe_widths): Generic replacement for
20858 x_compute_fringe_widths; all callers changed.
20859
20860 * dispextern.h (enum fringe_bitmap_type): Define here.
20861 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
20862 (fringe_bitmaps): Declare extern.
20863 (struct redisplay_interface): New member draw_fringe_bitmap.
20864 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
20865
20866 * xterm.c: Remove generic fringe code.
20867 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
20868 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
20869
20870 * w32term.c: Remove generic fringe code.
20871 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
20872 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
20873
20874 * macterm.c: Remove generic fringe code.
20875 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
20876 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
20877
20878 2003-03-11 Stefan Monnier <monnier@cs.yale.edu>
20879
20880 * print.c (Fprin1_to_string): Return unibyte string if possible.
20881
20882 2003-03-09 David Kastrup <dak@gnu.org>
20883
20884 * process.c (read_process_output): We have allocated enough space
20885 for readmax and carryover, so actually use the alloted space.
20886
20887 2003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20888
20889 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
20890 toolkit scrollbar click.
20891
20892 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
20893 for USE_GTK.
20894 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
20895 also.
20896 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
20897 scrollbar and control is pressed, call x_scroll_bar_handle_click.
20898
20899 * gtkutil.h (xg_get_scroll_id_for_window): Declare.
20900
20901 * gtkutil.c (xg_get_scroll_id_for_window): New function.
20902 (xg_tool_bar_item_expose_callback): New function.
20903 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
20904 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
20905 on the tool bar widget.
20906 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
20907 to expose on the tool bar item widgets.
20908
20909 2003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20910
20911 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
20912 struct image* when deciding to update (struct image* may have been
20913 deleted from the image cache).
20914
20915 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
20916 the event isn't for a frame (i.e. for dialogs).
20917
20918 2003-03-07 Kenichi Handa <handa@m17n.org>
20919
20920 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
20921 composition components reaches the limit, terminate composing.
20922 (COMPOSITION_OK): New macro.
20923 (detect_coding_iso2022): Use it if an escape sequence for
20924 composition is found.
20925 (coding_restore_composition): Adjust the number of composition
20926 components if it is not sane.
20927
20928 2003-03-06 Juanma Barranquero <lektu@terra.es>
20929
20930 * w32term.h (struct w32_display_info): Add xrdb member to support
20931 passing resources via -xrm on Windows.
20932
20933 * w32term.c (w32_make_rdb): New function.
20934 (w32_term_init): Use it to initialize xrdb member of w32_display_info
20935 struct. Delete leftover code.
20936
20937 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
20938 for resources passed on the command line.
20939
20940 * w32reg.c (w32_get_rdb_resource): New function.
20941 (x_get_string_resource): Use it, so resources passed with -xrm
20942 supercede the ones in the registry.
20943
20944 2003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20945
20946 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
20947 instead of x_top_window_to_frame.
20948
20949 2003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20950
20951 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
20952 when restarting Emacs.
20953
20954 2003-03-03 Richard M. Stallman <rms@gnu.org>
20955
20956 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
20957 to run kill-buffer-query-functions.
20958 (Qkill_buffer_query_functions): New var.
20959 (syms_of_buffer): Init and staticpro it.
20960
20961 2003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20962
20963 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
20964
20965 2003-02-25 Kim F. Storm <storm@cua.dk>
20966
20967 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
20968 If centering point failed to make whole line visible and vscroll
20969 is non-zero, disable vscroll and try centering point again.
20970
20971 * lread.c (read1): Accept `single space' syntax like (? x).
20972
20973 2003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20974
20975 * keyboard.c (cancel_hourglass_unwind): Surround with
20976 #ifdef HAVE_X_WINDOWS.
20977
20978 2003-02-25 Kenichi Handa <handa@m17n.org>
20979
20980 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
20981 process only when "subprocesses" is defined.
20982
20983 2003-02-24 Stefan Monnier <monnier@cs.yale.edu>
20984
20985 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
20986
20987 2003-02-24 Juanma Barranquero <lektu@terra.es>
20988
20989 * callint.c (fix_command): Declare as static void and move before
20990 Fcall_interactively.
20991
20992 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
20993 (syms_of_xdisp): Don't initialize Qwhen.
20994
20995 2003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20996
20997 * keyboard.c (cancel_hourglass_unwind): New function.
20998 (command_loop_1): Cancel hourglass with unwind-protect.
20999
21000 2003-02-23 Richard M. Stallman <rms@gnu.org>
21001
21002 * callint.c (fix_command): New subroutine, from Fcall_interactively.
21003 Detect (when ... (region-beginning)) etc.
21004 (Fcall_interactively): Call fix_command.
21005 (Qif, Qwhen): New variables.
21006 (syms_of_callint): Init and staticpro them.
21007
21008 * regex.c (print_partial_compiled_pattern): Output to stderr.
21009
21010 2003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
21011
21012 * dired.c (directory_files_internal): Don't expand directory.
21013 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
21014 instead. From Lars Hansen <larsh@math.ku.dk>.
21015
21016 2003-02-22 Stefan Monnier <monnier@cs.yale.edu>
21017
21018 * fns.c (string_to_multibyte): Remove unused var i.
21019 (Flanginfo): Fix int/Lisp_Object mixup.
21020 (void_call2): New fun.
21021 (Fmap_char_table): Use it in place of call2.
21022
21023 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
21024
21025 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
21026
21027 * keymap.c (copy_keymap_1): Make it static.
21028
21029 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
21030
21031 2003-02-22 David Ponce <david@dponce.com>
21032
21033 * lread.c (Fload): Don't check STRING_MULTIBYTE.
21034
21035 2003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
21036
21037 * process.h: Removed subtty field from struct Lisp_Process.
21038
21039 * process.c (create_process): Remove setting of subtty.
21040 (emacs_get_tty_pgrp): New function.
21041 (Fprocess_running_child_p, process_send_signal):
21042 Call emacs_get_tty_pgrp instead of ioctl.
21043 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
21044
21045 2003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
21046
21047 * keymap.c (Fdefine_key): Doc fix.
21048
21049 2003-02-21 Juanma Barranquero <lektu@terra.es>
21050
21051 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
21052
21053 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
21054 POLLING_PROBLEM_IN_SELECT.
21055
21056 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
21057 Delete #undef of POLLING_PROBLEM_IN_SELECT.
21058
21059 * s/hpux10-20.h: New file.
21060
21061 * process.c (wait_reading_process_input):
21062 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
21063
21064 2003-02-20 Kenichi Handa <handa@m17n.org>
21065
21066 * fontset.c (check_fontset_name): If NAME is nil, return the
21067 default fontset.
21068 (override_font_info): New function.
21069 (Fset_fontset_font): Document that NAME nil means the default fontset.
21070 (Ffontset_info): If FONTSET is not the default fontset, merge
21071 FONTSET onto the copy of the default fontset, and work on that
21072 copy. Document that NAME nil means the default fontset.
21073 (Ffontset_font): Document that NAME nil means the default fontset.
21074
21075 * process.c (setup_process_coding_systems): If the process's
21076 in/out descriptor is -1, do nothing.
21077
21078 2003-02-19 Andreas Schwab <schwab@suse.de>
21079
21080 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
21081 Add prototypes.
21082
21083 2003-02-19 Kenichi Handa <handa@m17n.org>
21084
21085 * xfaces.c (try_alternative_families): Try all scalable fonts if
21086 Vscalable_fonts_allowed is not Qt.
21087
21088 2003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
21089
21090 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
21091
21092 2003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
21093
21094 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
21095 names.
21096
21097 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
21098 (sorted_font_list): Move allocation of struct font_name to
21099 x_face_list_fonts.
21100 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
21101 (Fx_list_fonts): Set maxnames to -1 to get all font names.
21102
21103 2003-02-18 Kim F. Storm <storm@cua.dk>
21104
21105 * lread.c (read1): Fix last change.
21106 "`" is not always special. Allow "?" after a character constant.
21107
21108 2003-02-18 Andrew Choi <akochoi@shaw.ca>
21109
21110 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
21111
21112 2003-02-18 Andreas Schwab <schwab@suse.de>
21113
21114 * window.c (window_scroll_pixel_based): Move outside a
21115 multi-glyph character before setting new window start.
21116
21117 * xdisp.c (in_display_vector_p): New function.
21118 * dispextern.h (in_display_vector_p): Declare.
21119
21120 2003-02-18 Kim F. Storm <storm@cua.dk>
21121
21122 * lread.c (read1): Fix and relax read syntax.
21123 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
21124 Only recognize "," after dotted-pair dot if inside backquote.
21125 Never include "`" or "," (inside backquote) in a symbol.
21126 Allow dotted-pair dot after a character constant.
21127 Allow "`" and "," (inside backquote) after a character constant.
21128
21129 2003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
21130
21131 * gtkutil.c (xg_tool_bar_expose_callback): New function.
21132 (xg_create_tool_bar): Force style of tool bar to be horizontal with
21133 icons. Set name of tool bar to emacs-toolbar.
21134 (update_frame_tool_bar): Connect expose event to
21135 xg_tool_bar_expose_callback.
21136
21137 2003-02-17 Richard M. Stallman <rms@gnu.org>
21138
21139 * keyboard.c (this_command_key_count_reset): New variable.
21140 Initiatize to 0 where this_command_key_count is set.
21141 (read_char): Save and restore this_command_key_count_reset
21142 around input method code.
21143 (read_char): If this_command_key_count_reset, echo reread commands.
21144 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
21145
21146 2003-02-17 Kenichi Handa <handa@m17n.org>
21147
21148 * fns.c (string_to_multibyte): Always return a multibyte string.
21149
21150 2003-02-16 Jason Rumney <jasonr@gnu.org>
21151
21152 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
21153 Negative max_fonts parameter means list all.
21154
21155 2003-02-14 Dave Love <fx@gnu.org>
21156
21157 * fns.c (Flanginfo): Doc fix.
21158
21159 2003-02-13 Kim F. Storm <storm@cua.dk>
21160
21161 * lread.c (read_escape): Interpret \s as a SPACE character, except
21162 for \s-X in a character constant which still is the super modifier.
21163 (read1): Signal an `invalid read syntax' error if a character
21164 constant is immediately followed by a digit or symbol character.
21165
21166 * search.c (Fmatch_data): Doc fix. Explicitly state that
21167 match-data is undefined if last search failed.
21168
21169 * keymap.c (Fcommand_remapping): Rename from Fremap_command.
21170 All uses changed.
21171
21172 2003-02-12 Juanma Barranquero <lektu@terra.es>
21173
21174 * eval.c (Fdefmacro): Fix typo.
21175
21176 2003-02-12 Kim F. Storm <storm@cua.dk>
21177
21178 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
21179 macro is a string, convert meta modifiers in string when copying
21180 the string into a vector.
21181
21182 2003-02-11 Kim F. Storm <storm@cua.dk>
21183
21184 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
21185
21186 2003-02-11 Kenichi Handa <handa@m17n.org>
21187
21188 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
21189
21190 2003-02-10 Kim F. Storm <storm@cua.dk>
21191
21192 * process.c: Doc fixes.
21193 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
21194
21195 2003-02-10 Kenichi Handa <handa@m17n.org>
21196
21197 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
21198
21199 * process.c (QCfilter_multibyte): New variable.
21200 (setup_process_coding_systems): New function.
21201 (Fset_process_buffer, Fset_process_filter):
21202 Call setup_process_coding_systems.
21203 (Fstart_process): Initialize the member `filter_multibyte' of
21204 struct Lisp_Process.
21205 (create_process): Call setup_process_coding_systems.
21206 (Fmake_network_process): New keyward `:filter-multibyte'.
21207 Initialize the member `filter_multibyte' of struct Lisp_Process.
21208 Call setup_process_coding_systems.
21209 (server_accept_connection): Call setup_process_coding_systems.
21210 (read_process_output): If the process has a filter, decide the
21211 multibyteness of a string to given to the filter by
21212 `filter_multibyte' member of the process. If the process doesn't
21213 have a filter and the result of conversion is unibyte, use
21214 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
21215 multibyte form.
21216 (Fset_process_coding_system): Call setup_process_coding_systems.
21217 (Fset_process_filter_multibyte): New function.
21218 (Fprocess_filter_multibyte_p): New function.
21219 (syms_of_process): Intern and staticpro QCfilter_multibyte.
21220 Defsubr Sset_process_filter_multibyte and
21221 Sprocess_filter_multibyte_p.
21222
21223 * process.h (struct Lisp_Process): New member filter_multibyte.
21224
21225 * lisp.h (setup_process_coding_systems): Add prototype.
21226
21227 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
21228 process, update coding systems for the process.
21229
21230 2003-02-09 Kenichi Handa <handa@m17n.org>
21231
21232 * fns.c (string_to_multibyte): New function.
21233 (Fstring_to_multibyte): New function.
21234 (syms_of_fns): Defsubr it.
21235
21236 2003-02-08 Andreas Schwab <schwab@suse.de>
21237
21238 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
21239 instead of the substitution.
21240
21241 2003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
21242
21243 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
21244
21245 * xmenu.c (menu_position_func): Adjust menu popup position so that
21246 the menu is fully visible.
21247
21248 2003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
21249
21250 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
21251 (x_make_frame_invisible, x_wm_set_icon_position):
21252 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
21253
21254 * xfns.c (x_set_name, x_set_title): Ditto.
21255
21256 2003-02-04 Richard M. Stallman <rms@gnu.org>
21257
21258 * keyboard.c (echo_now): Update before_command_echo_length.
21259 (Freset_this_command_lengths): Reset this_command_key_count etc.
21260 immediately rather than arranging to do it later.
21261 (before_command_key_count_1, before_command_echo_length_1)
21262 (before_command_restore_flag): Vars deleted.
21263 (add_command_key): Don't handle before_command_restore_flag.
21264 (read_char, record_menu_key): Don't update before_command_key_count or
21265 before_command_echo_length.
21266 (read_char): Don't handle before_command_restore_flag.
21267
21268 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
21269 in direct-output clauses if it wouldn't be called in the ordinary case.
21270
21271 2003-02-04 Kim F. Storm <storm@cua.dk>
21272
21273 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
21274
21275 2003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
21276
21277 * gtkutil.c (remove_from_container): Copying list is not needed.
21278 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
21279 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
21280 on list returned from gtk_container_get_children to avoid memory leak.
21281
21282 2003-02-01 Jason Rumney <jasonr@gnu.org>
21283
21284 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
21285 local malloc.
21286 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
21287 definitions in xpm.h.
21288 (init_xpm_functions): New function.
21289 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
21290 (init_external_image_libraries): Try to load libXpm.dll.
21291
21292 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
21293 timestamp.
21294
21295 2003-01-31 Dave Love <fx@gnu.org>
21296
21297 * syntax.c (Fskip_chars_forward)
21298 (open-paren-in-column-0-is-defun-start): Doc fix.
21299
21300 2003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
21301
21302 * fileio.c: Support // at start of name for Cygwin (just added proper
21303 preprocessor tests).
21304
21305 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
21306
21307 * Makefile.in: Use @EXEEXT@ for Cygwin.
21308
21309 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
21310
21311 * s/cygwin.h: Added for Cygwin port.
21312
21313 2003-01-31 Juanma Barranquero <lektu@terra.es>
21314
21315 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
21316 when including gif_lib.h.
21317 (init_gif_functions, init_tiff_functions): New functions.
21318 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
21319 Windows. Disable color table lookups. Call library functions
21320 through pointers determined at runtime.
21321 (init_external_image_libraries): Try to load libungif.dll and
21322 libtiff.dll.
21323
21324 2003-01-31 Kenichi Handa <handa@m17n.org>
21325
21326 * xdisp.c (SKIP_GLYPHS): New macro.
21327 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
21328
21329 2003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
21330
21331 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
21332
21333 2003-01-30 Dave Love <fx@gnu.org>
21334
21335 * alloc.c (Vgc_elapsed, gcs_done): New variables.
21336 (Fgarbage_collect): Use them.
21337 (init_alloc, syms_of_alloc): Set them up.
21338
21339 2003-01-30 Juanma Barranquero <lektu@terra.es>
21340
21341 * w32fns.c (init_external_image_libraries): Add missing operator.
21342
21343 2003-01-29 Jason Rumney <jasonr@gnu.org>
21344
21345 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
21346 an alternative name for jpeg.dll.
21347
21348 2003-01-29 Kenichi Handa <handa@m17n.org>
21349
21350 * xdisp.c (set_cursor_from_row): Pay attention to string display
21351 properties.
21352
21353 2003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
21354
21355 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
21356 <escape>.
21357 (keycode_to_xkeysym_table): Reformat and add more comments.
21358 (XTread_socket): Drop special case for backspace.
21359
21360 2003-01-28 Andrew Choi <akochoi@shaw.ca>
21361
21362 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
21363 values in old-style RGB specs.
21364
21365 2003-01-27 Juanma Barranquero <lektu@terra.es>
21366
21367 * w32fns.c (init_external_image_libraries): Try alternate names for the
21368 jpeg dll.
21369
21370 2003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
21371
21372 * gtkutil.c (create_dialog, xg_separator_p)
21373 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
21374 before calling strcmp or strlen.
21375
21376 2003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
21377
21378 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
21379 and handle image load failure.
21380
21381 2003-01-26 Jason Rumney <jasonr@gnu.org>
21382
21383 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
21384 New functions.
21385 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
21386 Disable color table lookups. Call jpeg library functions
21387 through pointers determined at runtime.
21388 (init_external_image_libraries): Try to load jpeg.dll.
21389
21390 2003-01-25 Richard M. Stallman <rms@gnu.org>
21391
21392 * lisp.h: Declare format2 instead of format1.
21393
21394 * fileio.c (barf_or_query_if_file_exists):
21395 Call format2 instead of format1.
21396
21397 * editfns.c (format2): New function, replaces format1
21398 but takes exactly two Lisp Objects as format args.
21399
21400 * buffer.c (Fkill_buffer): Call format2 instead of format1.
21401
21402 2003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
21403
21404 * xterm.h: Change to return value of x_dispatch_event to int.
21405
21406 * xterm.c (x_filter_event): New function.
21407 (event_handler_gdk, XTread_socket): Call x_filter_event.
21408 (x_dispatch_event): Change to return value of finish.
21409 (event_handler_gdk): Use return value from x_dispatch_event.
21410
21411 * xfns.c (x_window): Call create_frame_xic for GTK version to
21412 initialize input methods.
21413
21414 * gtkutil.h: Add (void) prototypes.
21415
21416 * gtkutil.c (create_menus): Remove code that puts the help menu to
21417 the right.
21418
21419 2003-01-25 Jason Rumney <jasonr@gnu.org>
21420
21421 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
21422 [HAVE_PNG]: Sync with xfns.c version.
21423 (png_load): Adjust colors for Windows. Use Windows
21424 bitmaps. Disable color table lookups.
21425 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
21426 (init_png_functions): New function.
21427 (png_read_from_memory, png_load): Call png library functions
21428 through pointers determined at runtime.
21429 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
21430 (init_external_image_libraries): New function.
21431 (init_xfns): Call it.
21432
21433 2003-01-24 Andreas Schwab <schwab@suse.de>
21434
21435 * minibuf.c (Fminibuffer_message): Verify type of parameter.
21436
21437 2003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
21438
21439 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
21440 of static initializer.
21441
21442 2003-01-24 Dave Love <fx@gnu.org>
21443
21444 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
21445 architectures.
21446
21447 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
21448 Use __alignof__.
21449
21450 2003-01-24 Kenichi Handa <handa@m17n.org>
21451
21452 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
21453 It it is nonzero, don't pretend that an invisible area doesn't exist.
21454 (command_loop_1): Call adjust_point_for_property with proper
21455 second arg.
21456
21457 2003-01-22 Jason Rumney <jasonr@gnu.org>
21458
21459 Sync changes with xterm.c and xfns.c.
21460
21461 * w32term.c (x_draw_glyph_string_foreground)
21462 (x_draw_composite_glyph_string_foreground): Implement overstriking.
21463
21464 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
21465 phys_cursor's hpos is overwritten. This is still not completely
21466 correct, as it doesn't really make sense to use hpos at all to
21467 get the cursor glyph (as that is relative to the width of the
21468 characters on the line, which may have changed during the update).
21469
21470 * w32term.c (notice_overwritten_cursor): Handle the special case
21471 of the cursor being in the first blank non-text line at the
21472 end of a window.
21473
21474 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
21475 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
21476 Compute from the x position returned by x_draw_glyphs.
21477
21478 (x_display_and_set_cursor): Don't set phys_cursor_width here,
21479 except for NO_CURSOR and system caret, to make phys_cursor_width
21480 contain what its name suggests.
21481 (notice_overwritten_cursor): Consider the cursor image erased if
21482 the output area intersects the cursor image in y-direction.
21483
21484 * w32term.c (note_mode_line_or_margin_highlight): Rename from
21485 note_mode_line_highlight and extend.
21486
21487 * w32term.c (last_window): New variable.
21488 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
21489 (note_mouse_movement): Remove reimplemented code in #if 0.
21490
21491 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
21492 not update_mode_lines, and always set it to 1.
21493
21494 2003-01-21 Jason Rumney <jasonr@gnu.org>
21495
21496 * w32fns.c (IDC_HAND): Define it if system headers don't.
21497
21498 2003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
21499
21500 * w32term.h (struct w32_output): New member hand_cursor.
21501 (WM_EMACS_SETCURSOR): New message definition.
21502
21503 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
21504 function w32_define_cursor.
21505 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
21506 position, change member name output_data.x to output_data.w32 and
21507 add function w32_define_cursor.
21508 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
21509 and change member name output_data.x to output_data.w32.
21510 (w32_initialize_display_info):
21511 Setup dpyinfo->vertical_scroll_bar_cursor.
21512
21513 * w32fns.c (Vx_hand_shape): New variable.
21514 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
21515 WM_EMACS_SETCURSOR.
21516 (x-create-frame): Setup Cursor types.
21517
21518 2003-01-21 David Ponce <david@dponce.com>
21519
21520 * w32term.c (w32_encode_char): For DIM=1 charset, set
21521 ccl->reg[2] to -1 before calling ccl_driver.
21522 (Sync. with xterm.c x_encode_char change by Kenichi Handa
21523 <handa@m17n.org> on 2002-09-30.)
21524 (w32_draw_relief_rect): Declare all args.
21525 (w32_define_cursor): New.
21526
21527 * w32fns.c (w32_load_cursor): New function.
21528 (w32_init_class): Use it.
21529 (x_put_x_image): Declare all args.
21530
21531 2003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk>
21532
21533 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
21534
21535 2003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
21536
21537 * gtkutil.c: Must include stdio.h before termhooks.h.
21538
21539 2003-01-21 Dave Love <fx@gnu.org>
21540
21541 * alloc.c (Fgc_status): Print zombie list.
21542 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
21543 Fix assignment of zombies.
21544 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
21545 Don't take car of non-cons.
21546
21547 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
21548
21549 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
21550
21551 2003-01-20 David Ponce <david@dponce.com>
21552
21553 * w32menu.c (digest_single_submenu): Declare all args.
21554
21555 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
21556 changes in xmenu.c:
21557
21558 (parse_single_submenu): Use individual keymap's prompt
21559 string as pane name, if there is one.
21560 (set_frame_menubar): Save menu_items_n_panes from each call to
21561 parse_single_submenu and use it when calling digest_single_submenu.
21562
21563 2003-01-20 Steven Tamm <steventamm@mac.com>
21564
21565 * macterm.c (XTread_socket): Check for valid, visible window
21566 before sending a scroll-wheel event.
21567
21568 2003-01-20 Richard M. Stallman <rms@gnu.org>
21569
21570 * xdisp.c (redisplay_window): If mini window's buffer is not
21571 a minibuffer, then redisplay it like other windows.
21572
21573 2003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
21574
21575 * gtkutil.c (xg_create_frame_widgets): Check if there is an
21576 external tool bar before setting tool bar height.
21577
21578 2003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
21579
21580 * xterm.c (handle_one_xevent): Surround popup_activated
21581 with #ifdef:s for non-toolkit version.
21582
21583 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK.
21584 (gtkutil.o): New file.
21585 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
21586 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
21587
21588 * gtkutil.c: New file for GTK version.
21589
21590 * gtkutil.h: New file for GTK version.
21591
21592 * xterm.h: Add xt_or_gtk_widget.
21593 Include gtk files for USE_GTK.
21594 (struct x_output): Add toolbar_height.
21595 (struct x_output): Add GTK widgets and Gdk size_hints.
21596 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
21597 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
21598 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
21599
21600 * xterm.c: Include gtkutil.h for USE_GTK.
21601 (free_frame_menubar): Declare extern void for USE_GTK.
21602 (note_mouse_highlight): Check popup_activated for USE_GTK.
21603 (xt_action_hook): Don't compile if USE_GTK.
21604 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
21605 (xg_scroll_callback): New function.
21606 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
21607 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
21608 for USE_GTK.
21609 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
21610 xg_show_scroll_bar for USE_GTK.
21611 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
21612 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
21613 (event_handler_gdk): New function for USE_GTK.
21614 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
21615 (handle_one_xevent): Make sure widget is mapped before
21616 calling x_real_positions for USE_GTK.
21617 (XTread_socket): Add GTK event loop for USE_GTK.
21618 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
21619 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
21620 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
21621 (x_iconify_frame): Add code for USE_GTK.
21622 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
21623 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
21624 is in gtkutil.c.
21625 (x_term_init): Add initialization for GTK.
21626 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
21627
21628 * xmenu.c: Include gtkutil.h for USE_GTK.
21629 (Fx_popup_menu): Use current position if x and y are nil.
21630 (single_menu_item, single_menu_item, Fx_popup_dialog):
21631 Check for USE_GTK.
21632 (popup_widget_loop): New function for USE_GTK.
21633 (x_activate_menubar): Add code for USE_GTK.
21634 (popup_activate_callback, popup_deactivate_callback)
21635 (menu_highlight_callback, menubar_selection_callback):
21636 Add USE_GTK versions.
21637 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
21638 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
21639 (free_frame_menubar): Only compile if not USE_GTK. GTK version
21640 is in gtkutil.c.
21641 (popup_selection_callback): New version for USE_GTK.
21642 (create_and_show_popup_menu): New fuction, one USE_GTK version and
21643 one USE_X_TOOLKIT version.
21644 (xmenu_show): Call create_and_show_popup_menu.
21645 (dialog_selection_callback): New version for USE_GTK.
21646 (create_and_show_dialog): New fuction, one USE_GTK version and
21647 one USE_X_TOOLKIT version.
21648 (xdialog_show): Call create_and_show_dialog.
21649
21650 * xfns.c: Include gtkutil for USE_GTK.
21651 (x_window_to_frame, x_any_window_to_frame)
21652 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
21653 (x_top_window_to_frame): Add code for USE_GTK.
21654 (x_set_background_color): Call xg_set_background_color for GTK.
21655 (x_set_menu_bar_lines): Check for USE_GTK.
21656 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
21657 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
21658 (x_window): Call xg_create_frame_widgets for USE_GTK.
21659 (Fx_create_frame): Check for USE_GTK.
21660 (Fx_file_dialog): New implementation for USE_GTK.
21661
21662 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
21663 (update_menu_bar): Add check for USE_GTK.
21664 (update_tool_bar): Add check for USE_GTK and external tool bar.
21665 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
21666 (redisplay_internal): Add check for USE_GTK and popup_activated.
21667 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
21668 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
21669 (display_menu_bar): Add check for USE_GTK.
21670
21671 * lisp.h (Vx_resource_name): Declare extern.
21672
21673 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
21674 for USE_GTK.
21675 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
21676
21677 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
21678 (FRAME_EXTERNAL_TOOL_BAR): New macro.
21679 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
21680
21681 * fileio.c (Fread_file_name): Add check for USE_GTK.
21682
21683 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
21684 Add check for USE_GTK.
21685
21686 * config.in: Added HAVE_GTK.
21687
21688 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
21689
21690 2003-01-18 Stefan Monnier <monnier@cs.yale.edu>
21691
21692 * charset.h (Funibyte_char_to_multibyte): Export.
21693
21694 2003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
21695
21696 * xmenu.c (mouse_position_for_popup): New function.
21697 (Fx_popup_menu): Call mouse_position_for_popup for X and
21698 mouse_position_hook for others.
21699
21700 2003-01-17 Kim F. Storm <storm@cua.dk>
21701
21702 * editfns.c (Finsert): Mention `string-make-multibyte' and
21703 `string-as-multibyte' in doc string.
21704
21705 2003-01-17 Kenichi Handa <handa@m17n.org>
21706
21707 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
21708
21709 * editfns.c (Fformat): Convert an unibyte char argument that is
21710 formatted by "%c" to multibyte if the total result must be a
21711 multibyte string.
21712
21713 2003-01-16 Kim F. Storm <storm@cua.dk>
21714
21715 * process.c (set-process-filter): Document unibyte/multibyte-ness
21716 of string argument.
21717
21718 2003-01-16 Kenichi Handa <handa@m17n.org>
21719
21720 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
21721
21722 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
21723 (re_search_2): Likewise.
21724
21725 2003-01-15 Kenichi Handa <handa@m17n.org>
21726
21727 * xdisp.c (message_dolog): Fix bug of the case that *Message*
21728 buffer is unibyte.
21729
21730 2003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
21731
21732 * fns.c (Fsubstring): Clarify doc string.
21733
21734 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
21735 (Fprevious_char_property_change)
21736 (Fnext_single_char_property_change)
21737 (Fprevious_single_char_property_change, Fnext_property_change)
21738 (Fnext_single_property_change, Fprevious_property_change)
21739 (Fprevious_single_property_change, Fadd_text_properties)
21740 (Fput_text_property, Fset_text_properties)
21741 (Fremove_text_properties, Fremove_list_of_text_properties)
21742 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
21743
21744 2003-01-14 Kim F. Storm <storm@cua.dk>
21745
21746 * process.h (struct Lisp_Process): New member plist replaces old
21747 member private_vars. All uses changed.
21748
21749 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
21750 (QCplist): Rename from QCvars. Change all uses.
21751 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
21752 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
21753 (syms_of_process): Intern, staticpro, defsubr these.
21754 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
21755
21756 2003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
21757
21758 * m/delta.h: Remove (obsolete).
21759
21760 2003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
21761
21762 * fileio.c (Fdelete_directory, Fdelete_file): Document the
21763 behaviour in front of symlinks.
21764 (Fdelete_file): Raise an error on directories.
21765
21766 2003-01-13 Dave Love <fx@gnu.org>
21767
21768 * fns.c (Freverse): Use QUIT.
21769
21770 2003-01-13 Richard M. Stallman <rms@gnu.org>
21771
21772 * minibuf.c (minibuffer_completion_contents):
21773 Error if point is inside prompt.
21774
21775 * keyboard.c (command_loop_1): Don't redisplay directly
21776 if there's a post-command-hook.
21777
21778 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
21779 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
21780
21781 2003-01-12 Kim F. Storm <storm@cua.dk>
21782
21783 * process.h (struct Lisp_Process): New member private_vars.
21784
21785 * process.c (QCvars): New variable.
21786 (syms_of_process): Intern and staticpro it.
21787 (Fset_process_contact): Removed function.
21788 (Fprocess_variable, Fset_process_variable): New functions.
21789 (syms_of_process): Defsubr them.
21790 (Fstart_process): Initialize private_vars plist to nil.
21791 (Fmake_network_process): New arg :vars to setup the private
21792 variables for new network process.
21793 (server_accept_connection): Copy server's private variables to
21794 client process.
21795
21796 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
21797 crashes). Code rewritten and simplified. Now directly aligns the
21798 pointer and recalculates pure_bytes_used, rather than aligning the
21799 size and adjusting the pointer.
21800
21801 2003-01-11 Kim F. Storm <storm@cua.dk>
21802
21803 * process.c (Fset_process_contact): New function.
21804 (syms_of_process): defsubr it.
21805 (make-network-process): Update doc.
21806
21807 2003-01-10 Andreas Schwab <schwab@suse.de>
21808
21809 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
21810 Reported by Berthold Gunreben <b.gunreben@web.de>.
21811
21812 2003-01-10 Dave Love <fx@gnu.org>
21813
21814 * composite.c (syms_of_composite): Make composition_hash_table weak.
21815
21816 2003-01-09 Kim F. Storm <storm@cua.dk>
21817
21818 * process.c (Fmake_network_process): Convert new port number
21819 to host byte order for `:service t' case. From Mario Lang.
21820
21821 2003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
21822
21823 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
21824 instead of XtAppProcessEvent.
21825
21826 * xterm.c (handle_one_xevent): New function.
21827 (x_dispatch_event): New function.
21828 (XTread_socket): Call handle_one_xevent.
21829
21830 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
21831
21832 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
21833 call XQueryPointer to get coordinates.
21834 (popup_get_selection): Do not set popup_activated_flag to zero,
21835 let popup_deactivate_callback do that. Needed for Motif.
21836 Call x_dispatch_event instead of XtDispatchEvent.
21837 (xmenu_show): Calculate root coordinate from frame top/left position.
21838
21839 2003-01-08 Kim F. Storm <storm@cua.dk>
21840
21841 * process.c (server_accept_connection): Fix recording of new
21842 connection's local address in :local property of contact info.
21843 (Fmake_network_process): Record local network address for new
21844 client processes in :local property of contact info.
21845 (format-network-address): Add arg OMIT-PORT. Change callers.
21846
21847 2003-01-07 Dave Love <fx@gnu.org>
21848
21849 * Makefile.in (fns.o): Depend on coding.h.
21850
21851 2003-01-06 Dave Love <fx@gnu.org>
21852
21853 * fns.c: Include coding.h. Use POINTER_TYPE*, not void*.
21854 (Vlocale_coding_system): Declare.
21855 (Qcodeset, Qdays, Qmonths, Qpaper): New.
21856 (Flanginfo): New.
21857 (syms_of_fns): Initialize new stuff.
21858
21859 2003-01-07 Markus Rost <rost@math.ohio-state.edu>
21860
21861 * minibuf.c (Fread_variable): Doc fix.
21862
21863 * eval.c (Fuser_variable_p): Doc change. For custom variables,
21864 use the same test as for custom-variable-p.
21865
21866 2003-01-05 Richard M. Stallman <rms@gnu.org>
21867
21868 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
21869 Count LAST_LINE_MISFIT in scroll margin for end of window.
21870 Move label too_near_end before setting SCROLL_MARGIN_POS.
21871 Set LAST_LINE_MISFIT before jumping there.
21872
21873 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
21874 scroll_conservatively case. If scrolling that much doesn't change
21875 STARTP, move it down one line.
21876
21877 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
21878 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
21879
21880 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
21881 selected frame.
21882
21883 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
21884 (syms_of_keymap): Staticpro them.
21885 (Fapropos_internal): Initialize them and clear them out.
21886 Don't GCPRO them.
21887
21888 * buffer.c (syms_of_buffer) <scroll-up|down-aggressively>: Doc fixes.
21889
21890 * lisp.h: New misc type Lisp_Save_Value.
21891 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
21892 (XSAVE_VALUE): New macro.
21893 (struct Lisp_Save_Value): New data type.
21894 (union Lisp_Misc): Add u_save_value alternative.
21895 (make_save_value): Declare.
21896
21897 * alloc.c (make_save_value): New function.
21898
21899 * xterm.c (x_catch_errors): Save dpy using make_save_value.
21900 (x_catch_errors_unwind): Call XSync.
21901
21902 2003-01-01 Richard M. Stallman <rms@gnu.org>
21903
21904 * window.c (window_scroll_pixel_based): Partially undo last change.
21905
21906 * keyboard.c (command_loop_1): Call adjust_point_for_property
21907 in direct action cases for Qforward_char and Qbackward_char.
21908 Set already_adjusted so it won't be done twice.
21909
21910 2002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk>
21911
21912 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
21913 type definition of size_t.
21914
21915 2003-01-02 Steven Tamm <steventamm@mac.com>
21916
21917 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
21918 distinguish Carbon GUI builds from X11 builds on darwin.
21919
21920 2002-12-30 Steven Tamm <steventamm@mac.com>
21921
21922 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
21923 to default to t.
21924
21925 2002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
21926
21927 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
21928
21929 2002-12-28 Steven Tamm <steventamm@mac.com>
21930
21931 * Makefile.in (macosx-bundle): Fix Mac OS X/Carbon port to
21932 allow building in a different directory than source. Uses some
21933 GNU Make extensions, but there is no other make on Mac OS X.
21934
21935 2002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
21936
21937 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
21938 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
21939 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
21940 (Fstring_to_number): Mention the returned value in the doc strings.
21941
21942 2002-12-23 Richard M. Stallman <rms@gnu.org>
21943
21944 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
21945 <scroll-down-aggressively>: Doc fix.
21946
21947 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
21948 string as pane name, if there is one.
21949 (set_frame_menubar): Save menu_items_n_panes from each call to
21950 parse_single_submenu and use it when calling digest_single_submenu.
21951
21952 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
21953 Don't try to make last line fully visible if it is past end of window.
21954
21955 2002-12-22 Steven Tamm <steventamm@mac.com>
21956
21957 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
21958 (mac_menu_show): Add support for hierarchical popup menus.
21959 (add_menu_item): Remove indentation support.
21960 (fill_submenu, fill_menu): Create hierarchical menus
21961 instead of using indentation.
21962
21963 2002-12-22 Richard M. Stallman <rms@gnu.org>
21964
21965 * xdisp.c (try_cursor_movement): Don't call try_window here.
21966 (redisplay_window): Never redisplay minibuffer when inactive.
21967
21968 * window.c (select_window_1): Undo 9/21 change.
21969
21970 2002-12-22 Steven Tamm <steventamm@mac.com>
21971
21972 * macterm.c (XTread_socket): Call KeyTranslate for control and
21973 meta to deal correctly shifted non-alpha characters, like C-S-5
21974 being treated like C-%. Do not look for shift key to deal
21975 with masking off control-key with mac-reverse-ctrl-meta.
21976
21977 2002-12-21 Richard M. Stallman <rms@gnu.org>
21978
21979 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
21980 If it is non-nil, run timers. Use an unwind-protect to requeue
21981 the events that were read ahead.
21982 (popup_get_selection_unwind): New subroutine.
21983 (popup_get_selection_queue): File-scope variable now holds that queue.
21984 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
21985 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
21986 Use an unwind-protect to pop down the dialog box.
21987 (xdialog_show_unwind): New subroutine implements that.
21988
21989 * xdisp.c (row_containing_pos): Change exit test using last_y.
21990 (try_window_id): Abort if row_containing_pos returns null.
21991
21992 * lread.c (load_error_handler): New function.
21993 (Fload): Handle errors in Fsubstitute_in_file_name.
21994 Don't expect Fsignal to return.
21995
21996 * eval.c: Errors and throws work right with interrupt blocking.
21997 (struct catchtag): New elt interrupt_input_blocked.
21998 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
21999 (internal_catch, Fcondition_case, internal_condition_case)
22000 (internal_condition_case_1, internal_condition_case_2): Save it.
22001 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
22002
22003 * editfns.c (Fformat): Add parens.
22004
22005 * dired.c (file_name_completion): Fix that change.
22006 Delete special quit-handling code; just use QUIT.
22007
22008 2002-12-21 Tak Ota <Takaaki.Ota@am.sony.com>
22009
22010 * dired.c (file_name_completion): Close directory on error
22011 just as in directory_files_internal.
22012
22013 2002-12-19 David Kastrup <David.Kastrup@t-online.de>
22014
22015 * window.c (Fset_window_configuration): Set old_point to correct
22016 value when new_current_buffer == current_buffer.
22017
22018 2002-12-17 Ben Key <bkey1@tampabay.rr.com>
22019
22020 Revisited my earlier fix for the following entry in etc/PROBLEMS:
22021 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
22022 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
22023
22024 These changes were in part based upon suggestions made by Peter
22025 'Luna' Runestig [peter@runestig.com].
22026
22027 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token)
22028 (g_b_init_get_token_information, g_b_init_lookup_account_sid)
22029 (g_b_init_get_sid_identifier_authority ): Add several static
22030 global variables.
22031
22032 * w32.c (globals_of_w32): New function. Used to initialize those
22033 global variables that must always be initialized on startup even
22034 when the global variable initialized is non zero. Its primary
22035 purpose at this time is to set the global variables
22036 g_b_init_is_windows_9x, g_b_init_open_process_token,
22037 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
22038 g_b_init_get_sid_identifier_authority to 0 on startup.
22039 Called from main.
22040
22041 * w32.c (is_windows_9x): Perform initialization only if
22042 g_b_init_is_windows_9x is equal to 0. On initialization set
22043 g_b_init_is_windows_9x equal to 1.
22044
22045 * w32.c (open_process_token): Perform initialization only if
22046 g_b_init_open_process_token is equal to 0. On initialization set
22047 g_b_init_open_process_token equal to 1.
22048
22049 * w32.c (get_token_information): Perform initialization only if
22050 g_b_init_get_token_information is equal to 0. On initialization
22051 set g_b_init_get_token_information equal to 1.
22052
22053 * w32.c (lookup_account_sid): Perform initialization only if
22054 g_b_init_lookup_account_sid is equal to 0. On initialization
22055 set g_b_init_lookup_account_sid equal to 1.
22056
22057 * w32.c (get_sid_identifier_authority): Perform initialization
22058 only if g_b_init_get_sid_identifier_authority is equal to 0.
22059 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
22060
22061 * w32fns.c (globals_of_w32fns): New function. Used to initialize
22062 those global variables that must always be initialized on startup
22063 even when the global variable initialized is non zero.
22064 Its primary purpose at this time is to initialize the global variable
22065 track_mouse_event_fn.
22066
22067 * w32fns.c (w32_wnd_proc): Remove initialization of
22068 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
22069
22070 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
22071
22072 * w32menu.c (globals_of_w32menu): New function. Used to
22073 initialize those global variables that must always be initialized
22074 on startup even when the global variable initialized is non zero.
22075 Its primary purpose at this time is to initialize the global
22076 variables get_menu_item_info and set_menu_item_info.
22077
22078 * w32menu.c (initialize_frame_menubar): Remove initialization of
22079 get_menu_item_info and set_menu_item_info.
22080
22081 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
22082
22083 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
22084 Declare them.
22085
22086 * emacs.c (main): Call globals_of_w32 prior to calling
22087 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
22088 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
22089 is defined.
22090
22091 * w32term.c (x_update_window_begin): Fix Windows API error
22092 detected by BoundsChecker. Test to determine if
22093 w32_system_caret_hwnd is NULL prior to attempting to use
22094 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
22095
22096 * w32term.c (x_update_window_end): Fix Windows API error
22097 detected by BoundsChecker. Test to determine if
22098 w32_system_caret_hwnd is NULL prior to attempting to use
22099 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
22100
22101 2002-12-17 Kenichi Handa <handa@m17n.org>
22102
22103 * coding.c (coding_system_require_warning): New variable.
22104 (syms_of_coding): DEFVAR it.
22105
22106 * coding.h (coding_system_require_warning): Extern it.
22107
22108 * fileio.c (choose_write_coding_system): Even if
22109 Vcoding_system_for_write is non-nil, if
22110 coding_system_require_warning is nonzero, call
22111 Vselect_safe_coding_system_function.
22112
22113 2002-12-17 Markus Rost <rost@math.ohio-state.edu>
22114
22115 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
22116 (lisp): Add font-core.
22117
22118 2002-12-13 Stefan Monnier <monnier@cs.yale.edu>
22119
22120 * textprop.c (text_read_only): New arg `propval'.
22121 (get_char_property_and_overlay): Remove unused var `next_overlay'.
22122 (verify_interval_modification): Use text_read_only's new arg.
22123
22124 2002-12-13 Kenichi Handa <handa@m17n.org>
22125
22126 * coding.c (Funencodable_char_position): Set pend correctly.
22127
22128 2002-12-12 Jason Rumney <jasonr@gnu.org>
22129
22130 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
22131 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
22132 Be more careful about when help_events are generated.
22133
22134 2002-12-12 Steven Tamm <steventamm@mac.com>
22135
22136 * macterm.c (mac_check_for_quit_char): Correctly set the
22137 modifiers of the event to 0.
22138 * mac.c (sys_select): Duplicate rfds before calling select to
22139 ensure that rfds survive the while loop.
22140
22141 2002-12-11 Kim F. Storm <storm@cua.dk>
22142
22143 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
22144 row_containing_pos returned NULL.
22145
22146 2002-12-10 Steven Tamm <steventamm@mac.com>
22147
22148 * mac.c (sys_read): Fix sys_read to not call select if IO is
22149 non-blocking.
22150 (sys_select): Fix sys_select to not use a timeout larger than
22151 the one given.
22152
22153 2002-12-10 Juanma Barranquero <lektu@terra.es>
22154
22155 * editfns.c (Fformat): Use alloca, not _alloca.
22156
22157 2002-12-09 Richard M. Stallman <rms@gnu.org>
22158
22159 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
22160 as the last thing.
22161
22162 2002-12-09 Dave Love <fx@gnu.org>
22163
22164 * s/sol2-8.h: Removed. (Not necessary.)
22165
22166 2002-12-09 Matthew Swift <swift@alum.mit.edu>
22167
22168 * editfns.c (Fformat): Handle precision in string conversion
22169 specifiers like libc functions do (ie, print at most that many
22170 characters).
22171
22172 2002-12-08 Richard M. Stallman <rms@gnu.org>
22173
22174 * xdisp.c (row_containing_pos): Check more carefully
22175 whether charpos is really in the row before returning it.
22176
22177 2002-12-07 Steven Tamm <steventamm@mac.com>
22178
22179 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
22180
22181 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
22182 each stack frame. This may change as it could be time consuming.
22183
22184 * macterm.c (mac_check_for_quit_char, quit_char_comp)
22185 (init_quit_char_handler, mac_determine_quit_char_modifiers)
22186 (mac_initialize): Add code to check for pressing of quit_char
22187 in the OS event queue.
22188
22189 * mac.c (sys_select): Call mac_check_for_quit_char every second
22190 while blocking on select.
22191
22192 * mac.c (sys_read): Use sys_select to test for input first
22193 before calling read, to allow C-g to break.
22194
22195 2002-12-07 Richard M. Stallman <rms@gnu.org>
22196
22197 * minibuf.c (Fcompleting_read): Doc fix.
22198
22199 * lread.c (syms_of_lread) <load-history>: Doc fix.
22200
22201 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
22202
22203 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
22204 autoload.
22205
22206 * data.c (Fdefalias): Record in load-history redefining an autoload.
22207
22208 * alloca.c: Undo ifdef change accidentally made on 12-04.
22209
22210 2002-12-06 Francesco Potort\e,Al\e(B <pot@gnu.org>
22211
22212 * xfns.c (png_load): Avoid double gamma correction for PNG images.
22213
22214 2002-12-04 Richard M. Stallman <rms@gnu.org>
22215
22216 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
22217
22218 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
22219
22220 * alloca.c: Don't use #error.
22221
22222 2002-12-03 Dave Love <fx@gnu.org>
22223
22224 * buffer.c (Qucs_set_table_for_input): New.
22225 (Fget_buffer_create): Use it.
22226 (Qset_buffer_major_mode_hook): Deleted.
22227 (Fset_buffer_major_mode): Revert previous change.
22228 (init_buffer_once): Intern ucs-set-table-for-input.
22229 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
22230 Add &Qucs_set_table_for_input.
22231
22232 2002-12-03 Andreas Schwab <schwab@suse.de>
22233
22234 * callint.c (Fcall_interactively): Use next_event only if less
22235 than key_count.
22236
22237 2002-12-02 Andrew Choi <akochoi@shaw.ca>
22238
22239 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
22240 names to 255 characters.
22241
22242 * macterm.c (XTread_socket): If all frames have been collapsed,
22243 expand the first one before handling drag-and-drop events.
22244
22245 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
22246 which is detected by autoconf.
22247
22248 2002-12-01 Steven Tamm <steventamm@mac.com>
22249
22250 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
22251 offset in two hints table to allow prebinding to be redone and
22252 allow the executable to be stripped.
22253
22254 2002-11-29 Dave Love <fx@gnu.org>
22255
22256 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
22257 already provided.
22258
22259 2002-11-29 Richard M. Stallman <rms@gnu.org>
22260
22261 * xdisp.c (start_display): Check more intelligently for
22262 whether the line is continued.
22263 (move_it_vertically_backward): Clear it->continuation_lines_width.
22264
22265 2002-11-28 Dave Love <fx@gnu.org>
22266
22267 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
22268 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
22269
22270 2002-11-27 Steven Tamm <steventamm@mac.com>
22271
22272 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
22273 more descriptive error output from lread.c:Fload upon most require
22274 cycles during boostrapping.
22275
22276 2002-11-27 Jason Rumney <jasonr@gnu.org>
22277
22278 * fileio.c (Finsert_file_contents): Give a more appropriate error
22279 for files bigger than 2Gb when off_t is 32 bit.
22280
22281 * dired.c (Ffile_attributes): Don't return negative file sizes for
22282 files bigger than 2Gb when off_t is 32 bit.
22283
22284 2002-11-27 Dave Love <fx@gnu.org>
22285
22286 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
22287
22288 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
22289 Test GETPGRP_VOID instead.
22290 [BSD_TERMIOS]: Remove definitions (never used).
22291
22292 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
22293 Don't define.
22294 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
22295
22296 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
22297
22298 2002-11-25 Jason Rumney <jasonr@gnu.org>
22299
22300 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
22301 supported.
22302
22303 2002-11-25 Dave Love <fx@gnu.org>
22304
22305 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
22306
22307 * Makefile.in (TEMACS_LDFLAGS): Update last change.
22308
22309 2002-11-25 Andreas Schwab <schwab@suse.de>
22310
22311 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
22312
22313 2002-11-24 Steven Tamm <steventamm@mac.com>
22314
22315 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
22316 determine the size of pointers alloced in unexed space instead
22317 of using possibly invalid emacs_zone pointers. This fixes the
22318 binary incompatibility problems caused by updates to libSystem.B.
22319
22320 2002-11-24 Richard M. Stallman <rms@gnu.org>
22321
22322 * search.c (Fstring_match): Doc fix.
22323
22324 * callint.c (Fcall_interactively): If a command fails because
22325 `*' detects a read-only buffer, but RECORD_FLAG is set,
22326 record it anyway if the args don't actually do tty input.
22327
22328 2002-11-22 Dave Love <fx@gnu.org>
22329
22330 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
22331
22332 * keyboard.c (interrupt_signal): Provide forward declaration.
22333 (kbd_buffer_store_event): Don't declare interrupt_signal.
22334
22335 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
22336
22337 2002-11-21 Richard M. Stallman <rms@gnu.org>
22338
22339 * eval.c (interactive_p): Skip any number of bytecode
22340 and special form frames, in any order.
22341
22342 2002-11-20 Jason Rumney <jasonr@gnu.org>
22343
22344 * w32fns.c (convert_mono_to_color_image): New function.
22345 (xbm_load, xbm_load_image): Use it when foreground or background
22346 is explicitly set.
22347
22348 2002-11-19 Dave Love <fx@gnu.org>
22349
22350 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
22351
22352 2002-11-18 Jason Rumney <jasonr@gnu.org>
22353
22354 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
22355 (XPutPixel): Swap blue and red.
22356 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
22357 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
22358 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
22359 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
22360
22361 2002-11-18 Dave Love <fx@gnu.org>
22362
22363 * m/orion105.h (HAVE_ALLOCA): Don't define.
22364
22365 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
22366
22367 * m/intel386.h: Don't include alloca.h or define alloca.
22368
22369 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
22370 malloc, realloc, calloc.
22371
22372 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
22373 (bcmp): Don't define.
22374
22375 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
22376
22377 * m/amdahl.h: Don't define LIB_STANDARD.
22378
22379 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
22380
22381 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
22382
22383 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
22384 Don't include alloca.h.
22385
22386 * s/aix3-2.h (HAVE_FSYNC): Don't define.
22387
22388 * regex.c (_GNU_SOURCE): Don't define.
22389
22390 * process.c (_GNU_SOURCE): Don't define.
22391
22392 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
22393
22394 2002-11-18 Markus Rost <rost@math.ohio-state.edu>
22395
22396 * s/sol2-8.h: Include sol2-6.h.
22397
22398 2002-11-18 Miles Bader <miles@gnu.org>
22399
22400 * dispextern.h (struct face): Add `overstrike' field.
22401 * xterm.c (x_draw_glyph_string_foreground)
22402 (x_draw_composite_glyph_string_foreground): Implement overstriking.
22403 * xfaces.c (load_face_font): Set `face->overstrike' based on
22404 result from choose_face_font.
22405 (best_matching_font, choose_face_font): Add `needs_overstrike'
22406 argument, and use it to return whether overstriking is desirable
22407 for this face/font combo.
22408 (set_font_frame_param): Pass new argument to choose_face_font.
22409
22410 2002-11-17 Ben Key <BKey1@tampabay.rr.com>
22411
22412 This change is my fix for the following entry in etc/PROBLEMS:
22413 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
22414 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
22415
22416 * w32.c: Added wrapper functions around the win32 API functions
22417 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
22418 GetSidIdentifierAuthority. These wrapper functions serve two
22419 purposes:
22420 1. They ensure that the wrapped function can never be called
22421 when Emacs is running on an operating system on which they are
22422 not supported (Microsoft Windows 95 / 98 / ME).
22423 2. They call the wrapped functions via function pointers rather
22424 than calling them directly. This avoids taking advantage of the
22425 undocumented fact that although these functions are not supported
22426 in the 9x branch of Microsoft Windows, the functions do exist in
22427 the version of advapi32.dll that is found in the 9x branch of
22428 Microsoft Windows.
22429
22430 * w32.c (init_user_info): Replace the calls to the win32 API
22431 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
22432 and GetSidIdentifierAuthority with calls to the newly added
22433 wrapper functions.
22434
22435 * w32.h: Added extern declarations for the following functions:
22436 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
22437 syms_of_w32menu, and void syms_of_fontset.
22438
22439 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
22440 function pointer track_mouse_event_fn in the handler for the
22441 WM_SETFOCUS message.
22442
22443 * w32menu.c (initialize_frame_menubar): Add code to
22444 reinitialize the function pointers set_menu_item_info and
22445 get_menu_item_info.
22446
22447 2002-11-17 Ben Key <BKey1@tampabay.rr.com>
22448
22449 * sound.c: Added a partial implementation of play-sound-internal
22450 for Microsoft Windows. Added various #ifdef / #else / #endif
22451 code blocks to separate the code that will compile under
22452 Microsoft Windows from the code that is specific to GNU/Linux.
22453 Moved several blocks of code around to make this separation of code
22454 into Windows compatible and GNU/Linux compatible code blocks easier.
22455
22456 * makefile.w32-in: Include sound.c and link with WinMM.lib.
22457
22458 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
22459 added support for play-sound-internal under Windows would be
22460 included in the build of Emacs.
22461
22462 2002-11-16 Jason Rumney <jasonr@gnu.org>
22463
22464 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
22465
22466 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
22467
22468 2002-11-15 Stefan Monnier <monnier@cs.yale.edu>
22469
22470 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
22471 (adjust_point_for_property): Move out of display and invisible even if
22472 we were already inside before (in case a property was added while
22473 we weren't looking). Be more careful when handling invisible props.
22474 Skip invisible text as if it really wasn't there at all.
22475
22476 2002-11-15 Jason Rumney <jasonr@gnu.org>
22477
22478 * w32term.c (x_draw_image_foreground)
22479 (w32_draw_image_foreground_1): Use standard copy and invert
22480 operations to draw images.
22481
22482 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
22483 depth of 1.
22484 (xbm_read_bitmap_data): Invert bits as xbm is read in.
22485 (XPutPixel): Don't invert bits here.
22486
22487 2002-11-15 Jason Rumney <jasonr@gnu.org>
22488
22489 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
22490 (w32_draw_image_foreground_1): Handle image masks.
22491 (x_draw_image_glyph_string): Don't BitBlt transparently.
22492
22493 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
22494 (x_from_xcolors): Adjust RGB values for W32.
22495 (image_background, image_background_transparent)
22496 (postprocess_image, x_to_xcolors, x_disable_image)
22497 (x_build_heuristic_mask): Adapt for W32 and enable.
22498 (x_create_x_image_and_pixmap): Mark images with palettes as such.
22499 (xbm_load): Remove unused variable.
22500
22501 2002-11-14 Richard M. Stallman <rms@gnu.org>
22502
22503 * buffer.c (syms_of_buffer): Doc fix.
22504
22505 2002-11-14 Dave Love <fx@gnu.org>
22506
22507 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
22508
22509 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
22510 * xmenu.c (unuse_menu_items, digest_single_submenu):
22511 * xfns.c (x_put_x_image):
22512 * xdisp.c (message2_nolog, set_message):
22513 * undo.c (record_point):
22514 * terminfo.c (tparam):
22515 * syntax.c (scan_sexps_forward):
22516 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
22517 * composite.c (update_compositions):
22518 * cm.c (calccost, cmgoto):
22519 * charset.c (c_string_width): Declare all args (per C99).
22520
22521 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
22522
22523 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
22524 Don't declare.
22525
22526 * emacs.c (main) [!VMS]: Avoid third arg.
22527
22528 * fns.c (Fcopy_sequence): Doc fix.
22529 (Fmap_char_table): Cast `call2'.
22530
22531 2002-11-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
22532
22533 * s/sol2-8.h: New file.
22534
22535 2002-11-14 Kim F. Storm <storm@cua.dk>
22536
22537 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
22538 dependency on `risky-local-variable' and the :propertize form.
22539
22540 2002-11-12 Stefan Monnier <monnier@cs.yale.edu>
22541
22542 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
22543
22544 * syntax.c (scan_sexps_forward): Undo last patch.
22545 Use a more obvious fix: check eob before updating the syntax table.
22546
22547 2002-11-09 Stefan Monnier <monnier@cs.yale.edu>
22548
22549 * syntax.c (scan_sexps_forward): Update syntax table before reading
22550 a char rather than after so we don't update the table past eob.
22551
22552 2002-11-09 Dave Love <fx@gnu.org>
22553
22554 * buffer.c (Fset_buffer_major_mode): Fix last change.
22555
22556 * regex.c (regexec): Fix pmatch declaration.
22557
22558 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
22559
22560 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
22561 to self-inserting characters.
22562 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
22563
22564 * coding.c (Vtranslation_table_for_input): New.
22565 (syms_of_coding): DEFVAR it.
22566
22567 2002-11-08 Juanma Barranquero <lektu@terra.es>
22568
22569 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
22570 window.
22571
22572 2002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22573
22574 * process.c (Fformat_network_address): Remove unused locals p,
22575 cp, and i.
22576
22577 2002-11-06 Dave Love <fx@gnu.org>
22578
22579 * buffer.c (Qset_buffer_major_mode_hook): New.
22580 (Fset_buffer_major_mode): Use it.
22581
22582 2002-11-06 Richard M. Stallman <rms@gnu.org>
22583
22584 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
22585 and stop_polling.
22586
22587 * process.c (wait_reading_process_input):
22588 Test POLLING_PROBLEM_IN_SELECT, not hpux.
22589 Avoid initialization for auto Lisp_Object var.
22590
22591 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
22592
22593 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
22594
22595 2002-11-05 Richard M. Stallman <rms@gnu.org>
22596
22597 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
22598
22599 * callint.c (Fcall_interactively): New local filter_specs.
22600 (Fcall_interactively): Check for progn as well as let.
22601 Add a gcpro.
22602 (Qprogn): New variable.
22603 (syms_of_callint): Staticpro and init Qprogn.
22604
22605 2002-11-04 John Paul Wallington <jpw@shootybangbang.com>
22606
22607 * lread.c (Feval_buffer): Doc fix.
22608
22609 2002-11-04 Dave Love <fx@gnu.org>
22610
22611 * keyboard.c (read_char): Always translate iff
22612 Vkeyboard_translate_table is a char table and c is valid.
22613
22614 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
22615 and fix C types.
22616
22617 2002-11-03 Stefan Monnier <monnier@cs.yale.edu>
22618
22619 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
22620
22621 * editfns.c (get_pos_property): Don't hardcode Qfield.
22622
22623 * keyboard.c (adjust_point_for_property): Handle `display' prop on
22624 overlays. Also handle `invisible' prop.
22625
22626 2002-11-02 Stefan Monnier <monnier@cs.yale.edu>
22627
22628 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
22629 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
22630
22631 2002-11-01 Andreas Schwab <schwab@suse.de>
22632
22633 * editfns.c (Fmessage): Revert last change to properly handle %%.
22634
22635 2002-11-01 Stefan Monnier <monnier@cs.yale.edu>
22636
22637 * xmenu.c (unuse_menu_items): New fun.
22638 (menu_items_inuse): New var.
22639 (syms_of_xmenu): Initialize it.
22640 (init_menu_items): Use it to detect re-entrance.
22641 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
22642 (Fx_popup_menu): Remove spurious XSETFRAME.
22643
22644 * editfns.c (find_field): Make an exception for nil fields.
22645
22646 2002-11-01 Dave Love <fx@gnu.org>
22647
22648 * m/gec63.h: Deleted.
22649
22650 2002-10-31 Dave Love <fx@gnu.org>
22651
22652 * xterm.c (XTread_socket): Fix last change.
22653 (xaw_scroll_callback): Cast call_data to long to avoid warning.
22654
22655 2002-10-31 Stefan Monnier <monnier@cs.yale.edu>
22656
22657 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
22658
22659 2002-10-30 Stefan Monnier <monnier@cs.yale.edu>
22660
22661 * editfns.c (overlays_around, get_pos_property): New funs.
22662 (find_field): Use them.
22663 Also be careful not to modify POS before its last use.
22664 (Fmessage): Don't Fformat if there's nothing to format.
22665
22666 2002-10-30 Dave Love <fx@gnu.org>
22667
22668 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
22669 [HAVE_PTY_H]; Include pty.h.
22670
22671 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
22672
22673 * xterm.c (Qeql): Declare.
22674 (Vx_keysym_table): New.
22675 (syms_of_xterm): Initialize it.
22676 (XTread_socket): Use it. Deal with ASCII keysyms.
22677 (XSetIMValues) [HAVE_X11R6]: Prototype.
22678
22679 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
22680 (lispy_kana_keys): Comment out.
22681 (make_lispy_event) [XK_kana_A]: Comment out.
22682 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
22683 Fix sprintf call.
22684
22685 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
22686 regexp.h change).
22687 (TERMINFO, LIBS_TERMCAP): Define.
22688
22689 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
22690 (bcmp): Define conditional on HAVE_BCMP.
22691 (NO_SIOCTL_H): Don't define.
22692 (TIOCSIGSEND): Don't make conditional on IRIX6.
22693
22694 * s/sol2-5.h: Don't include strings.h.
22695 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
22696
22697 * s/irix6-0.h (IRIX6): Don't define.
22698 (bcopy, bcmp, bzero): Don't undef.
22699
22700 * s/irix6-5.h: Don't include strings.h.
22701 (IRIX6): Don't define.
22702 (bcopy, bcmp, bzero): Don't undef.
22703
22704 * syntax.c (Fforward_comment): Doc fix.
22705
22706 2002-10-29 Kim F. Storm <storm@cua.dk>
22707
22708 * process.c (Fsignal_process): Allow PROCESS to be specified by
22709 name in addition to pid (as integer or string).
22710
22711 2002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
22712
22713 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
22714 environments.
22715
22716 2002-10-27 Kim F. Storm <storm@cua.dk>
22717
22718 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
22719
22720 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
22721
22722 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
22723
22724 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
22725
22726 2002-10-26 Richard M. Stallman <rms@gnu.org>
22727
22728 * editfns.c (Fformat): Detect invalid format letters for floats.
22729
22730 2002-10-25 Kenichi Handa <handa@m17n.org>
22731
22732 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
22733 (x_set_title): Likewise.
22734
22735 2002-10-25 Juanma Barranquero <lektu@terra.es>
22736
22737 * macgui.h:
22738 * w32gui.h: Remove definition of XColor.
22739
22740 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
22741
22742 2002-10-24 Kim F. Storm <storm@cua.dk>
22743
22744 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
22745 Callers changed (supply dummy arg).
22746
22747 * lisp.h (get_window_cursor_type): Update prototype.
22748
22749 * w32term.c (x_display_and_set_cursor): Get active_cursor from
22750 get_window_cursor_type to track system caret.
22751
22752 2002-10-24 Kim F. Storm <storm@cua.dk>
22753
22754 * process.c (Fformat_network_address): New function.
22755 (syms_of_process): Defsubr it.
22756 (list_processes_1): Use it to format :local/:remote address if
22757 service/host is not set; before Emacs would crash in that case.
22758 (Fmake_network_process): Don't use Ffind_operation_coding_system
22759 to setup coding system if host or service is not set.
22760
22761 2002-10-23 Juanma Barranquero <lektu@terra.es>
22762
22763 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
22764
22765 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
22766 COLORREF.
22767
22768 * macgui.h:
22769 * w32gui.h: Add definition of XColor.
22770
22771 * macfns.c:
22772 * w32fns.c:
22773 * xfaces.c: Remove definition of XColor.
22774
22775 2002-10-22 Stefan Monnier <monnier@cs.yale.edu>
22776
22777 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
22778
22779 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
22780 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
22781 window if it is dedicated.
22782 (Fshrink_window): Add preserve_before as was done for enlarge_window.
22783 (Vspecial_display_function): Update docstring.
22784
22785 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
22786 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
22787 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE.
22788
22789 2002-10-21 Stefan Monnier <monnier@cs.yale.edu>
22790
22791 * casefiddle.c (casify_region): Don't treat a prefix char as part
22792 of a word when at the beginning.
22793
22794 2002-10-17 Juanma Barranquero <lektu@terra.es>
22795
22796 * lread.c (syms_of_lread): Fix typos.
22797
22798 2002-10-17 Dave Love <fx@gnu.org>
22799
22800 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
22801
22802 2002-10-16 Richard M. Stallman <rms@gnu.org>
22803
22804 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
22805
22806 2002-10-14 Juanma Barranquero <lektu@terra.es>
22807
22808 * w16select.c (syms_of_win16select): Fix docstring for
22809 `selection-coding-system'.
22810
22811 * w32select.c (syms_of_w32select): Likewise.
22812
22813 2002-10-14 Stefan Monnier <monnier@cs.yale.edu>
22814
22815 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
22816 a backslash-quoted char.
22817 (scan_lists, scan_sexps_forward): Pacify the compiler.
22818
22819 2002-10-13 Richard M. Stallman <rms@gnu.org>
22820
22821 * window.c (window_scroll): Set immediate_quit.
22822
22823 * print.c (print): When backquote form is the car of a list,
22824 output in old style. Use old_backquote_output to output all
22825 comma forms inside it in old style too.
22826
22827 * buffer.h (struct buffer): Move `undo_list' down below `name'.
22828
22829 2002-10-11 Markus Rost <rost@math.ohio-state.edu>
22830
22831 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
22832 batch mode).
22833
22834 * lread.c (Fload): Doc fix (load-suffixes).
22835
22836 2002-10-10 Steven Tamm <steventamm@mac.com>
22837
22838 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
22839 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
22840 Also switch the default to Qnil from Qt.
22841
22842 2002-10-08 Kenichi Handa <handa@m17n.org>
22843
22844 * coding.c (code_convert_region): When we need more GAP for
22845 conversion, pay attention to the case that coding->produced is not
22846 greater than coding->consumed.
22847
22848 2002-10-07 Richard M. Stallman <rms@gnu.org>
22849
22850 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
22851
22852 2002-10-06 Andrew Choi <akochoi@shaw.ca>
22853
22854 * macmenu.c (mac_menu_show): Add j to count menu items; match
22855 menu_item_selection to it to find selected item.
22856
22857 2002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22858
22859 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
22860 cases. The correct fix is to pass ReparentNotify to Xt.
22861 The shell widget interprets ConfigureNotify differently depending
22862 on if it has been reparented or not.
22863
22864 2002-10-05 Markus Rost <rost@math.ohio-state.edu>
22865
22866 * editfns.c (Fformat_time_string): Doc fix.
22867
22868 2002-10-05 John Paul Wallington <jpw@shootybangbang.com>
22869
22870 * fns.c (Flength): Doc fix.
22871
22872 2002-10-04 Stefan Monnier <monnier@cs.yale.edu>
22873
22874 * keyboard.c (keyremap): New struct.
22875 (read_key_sequence): Use it: globally replace keytran_foo with
22876 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
22877 keytran_next and fkey_next to just `next'.
22878
22879 2002-10-04 Steven Tamm <steventamm@mac.com>
22880
22881 * macterm.c (keycode_to_xkeysym_table): Change return to be
22882 treated like an X keysym.
22883
22884 2002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22885
22886 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
22887 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
22888 This is to also handle x/y changes that occur because of a resize.
22889
22890 2002-10-02 John Paul Wallington <jpw@shootybangbang.com>
22891
22892 * frame.c (Vdelete_frame_functions): New variable.
22893 (syms_of_frame): Initialize and defvar it.
22894 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
22895 it when frame's `tooltip' parameter is non-nil.
22896
22897 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
22898
22899 * w32fns.c (x_create_tip_frame): Likewise.
22900
22901 * macfns.c (x_create_tip_frame): Likewise.
22902
22903 2002-09-30 Kenichi Handa <handa@m17n.org>
22904
22905 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
22906 -1 before calling ccl_driver.
22907
22908 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
22909 Only when it is non-nil, handle composition sequence.
22910 (setup_coding_system) <0>: Don't force composition handling.
22911
22912 * Makefile.in (lisp, shortlisp): Add utf-16.elc.
22913
22914 2002-09-29 Richard M. Stallman <rms@gnu.org>
22915
22916 * search.c (Freplace_match): Adjust match data for the substitution
22917 just made in the buffer.
22918
22919 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
22920 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
22921
22922 2002-09-27 Richard M. Stallman <rms@gnu.org>
22923
22924 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
22925 (read_char): Use them. Do all exits thru the end of the function.
22926
22927 2002-09-27 Kenichi Handa <handa@etl.go.jp>
22928
22929 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
22930 is nil.
22931
22932 2002-09-26 Richard M. Stallman <rms@gnu.org>
22933
22934 * regex.h (__restrict_arr): Don't define if already defined.
22935
22936 * coding.c (run_pre_post_conversion_on_str):
22937 Save and restore Vdeactivate_mark.
22938
22939 2002-09-26 John Paul Wallington <jpw@shootybangbang.com>
22940
22941 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
22942
22943 2002-09-26 Kenichi Handa <handa@etl.go.jp>
22944
22945 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
22946 nonzero, try face's family at first. Otherwise try FAMILY at first.
22947 (choose_face_font): If C is a single byte char or latin-1, call
22948 try_font_list with PREFER_FACE_FAMILY 1.
22949
22950 2002-09-21 Richard M. Stallman <rms@gnu.org>
22951
22952 * window.c (select_window_1): Don't select frame.
22953 Set frame's selected window only when frame itself is selected.
22954 (Fselect_window): Doc fix.
22955
22956 2002-09-18 Kim F. Storm <storm@cua.dk>
22957
22958 * process.c (make-network-process): Doc fix (there is no
22959 network-server-log-function hook).
22960
22961 2002-09-18 Richard M. Stallman <rms@gnu.org>
22962
22963 * print.c (print): Clear out the unused parts of Vprint_number_table.
22964 (syms_of_print): Doc fix for `print-number-table'.
22965
22966 * unexelf.c (unexec): Undo previous change.
22967
22968 2002-09-17 Andreas Schwab <schwab@suse.de>
22969
22970 * m/alpha.h [LINUX]: Don't define DATA_START.
22971
22972 2002-09-16 Dave Love <fx@gnu.org>
22973
22974 * unexelf.c (unexec): Deal with .got, reinstating change from
22975 25-08-1999.
22976
22977 2002-09-13 Richard M. Stallman <rms@gnu.org>
22978
22979 * s/sol2-6.h (UNEXEC): Comment out definition.
22980
22981 * unexsol.c (unexec): Don't downcase first letter of error msg.
22982
22983 * xfaces.c (Fcolor_supported_p): Just one arg is required.
22984
22985 2002-09-12 Markus Rost <rost@math.ohio-state.edu>
22986
22987 * unexsol.c: Include buffer.h, charset.h, coding.h.
22988
22989 2002-09-11 Richard M. Stallman <rms@gnu.org>
22990
22991 * unexsol.c: Don't use report_file_error; do it by hand
22992 using dlerror.
22993
22994 * process.c (wait_reading_process_input, both versions):
22995 Before calling turn_on_atimers, call stop_polling.
22996
22997 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
22998
22999 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
23000 we go to too_near_end, call clear_glyph_matrix.
23001 (redisplay_window): After make_cursor_line_fully_visible,
23002 call clear_glyph_matrix and bypass `goto done'.
23003
23004 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
23005 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
23006
23007 2002-09-10 Richard M. Stallman <rms@gnu.org>
23008
23009 * fileio.c (Fdo_auto_save): Catch error making directory.
23010 Only call push_message if we need to.
23011 At the same time, make an unwind-protect to pop it.
23012 Rename local message_p to old_message_p.
23013 (do_auto_save_make_dir, do_auto_save_eh): New functions.
23014 (do_auto_save_unwind): Don't call pop_message.
23015
23016 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
23017
23018 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
23019
23020 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
23021
23022 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
23023
23024 2002-09-10 Stefan Monnier <monnier@cs.yale.edu>
23025
23026 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
23027 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
23028 (re_match_2_internal): Be more careful with infinite loops.
23029
23030 2002-09-10 Kim F. Storm <storm@cua.dk>
23031
23032 * macros.c (end_kbd_macro): New function.
23033 (Fend_kbd_macro): Use it.
23034
23035 * macros.h (end_kbd_macro): Declare extern.
23036
23037 * keyboard.c (Fdiscard_input): If defining keyboard macro,
23038 end and save it instead of discarding it.
23039
23040 2002-09-09 Markus Rost <rost@math.ohio-state.edu>
23041
23042 * s/sol2-6.h: Fix typo. Add comment.
23043
23044 2002-09-09 Richard M. Stallman <rms@gnu.org>
23045
23046 * regex.c (regnum_t): Use signed int, not unsigned int.
23047
23048 * s/sol2-6.h: New file.
23049
23050 * s/sol2-5.h (UNEXEC): Definition deleted.
23051
23052 2002-09-08 Kim F. Storm <storm@cua.dk>
23053
23054 * macros.c (executing_macro_index): Change type to EMACS_INT.
23055 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
23056
23057 * macros.h (executing_macro_index): Change type to EMACS_INT.
23058
23059 2002-09-06 Richard M. Stallman <rms@gnu.org>
23060
23061 * casetab.c (set_case_table): Make canon table point to eqv table.
23062
23063 2002-09-06 Juanma Barranquero <lektu@terra.es>
23064
23065 * coding.c (syms_of_coding): Fix spacing.
23066
23067 * composite.c (Fcompose_region_internal)
23068 (Fcompose_string_internal): Likewise.
23069
23070 * data.c (Flsh): Likewise.
23071
23072 * fontset.c (Fset_fontset_font): Likewise.
23073
23074 * macfns.c (Fx_server_max_request_size): Likewise.
23075
23076 * w16select.c (syms_of_win16select): Likewise.
23077
23078 * w32select.c (syms_of_w32select): Likewise.
23079
23080 * xselect.c (syms_of_xselect): Likewise.
23081
23082 2002-09-05 Richard M. Stallman <rms@gnu.org>
23083
23084 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
23085 call EXTEND_RANGE_TABLE and return a proper value.
23086 (set_image_of_range): Don't call set_image_of_range_1
23087 if no TRANSLATE or if range includes all of Latin-1.
23088 Only call it for the Latin-1 part of the range.
23089 For other cases, make two separate ranges,
23090 one for the original specified characters and one for
23091 their case-conversions.
23092
23093 2002-09-04 Richard M. Stallman <rms@gnu.org>
23094
23095 * s/sol2-5.h (UNEXEC): Use unexsol.o.
23096
23097 * window.c (displayed_window_lines): Correct for one-off bug
23098 in HEIGHT on non-window displays.
23099
23100 * regex.c (set_image_of_range_1): New function.
23101 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
23102 Return a value to indicate running out of memory.
23103 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
23104 (extend_range_table_work_area): New subroutine.
23105 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
23106 Different calling conventions, and used from set_image_of_range{,_1}.
23107 (IMMEDIATE_QUIT_CHECK): Definitions moved.
23108
23109 2002-09-04 Juanma Barranquero <lektu@terra.es>
23110
23111 * makefile.w32-in: All dependencies updated.
23112
23113 2002-09-01 Richard M. Stallman <rms@gnu.org>
23114
23115 * unexsol.c: New file.
23116
23117 * xfns.c (Qbox): Declare external, don't define.
23118
23119 * xdisp.c (redisplay_window) <force-start case>:
23120 If point is on semi-visible last line, reposition
23121 it at previous line.
23122
23123 * alloc.c (display_malloc_warning): Use display-warning.
23124 (malloc_warning_1): Function deleted.
23125
23126 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
23127
23128 * lread.c (read1): Handle #! by skipping the line.
23129
23130 2002-08-31 Richard M. Stallman <rms@gnu.org>
23131
23132 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
23133 Don't include LDFLAGS.
23134 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
23135
23136 2002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
23137
23138 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
23139 member of x_display_info unless we compile for some window system.
23140
23141 2002-08-31 Kim F. Storm <storm@cua.dk>
23142
23143 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
23144 (get_window_cursor_type): Don't use them.
23145 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
23146
23147 2002-08-30 Kenichi Handa <handa@etl.go.jp>
23148
23149 * xdisp.c (get_next_display_element): Fix previous change.
23150
23151 2002-08-30 Andrew Choi <akochoi@shaw.ca>
23152
23153 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
23154 (expose_window): Use it to fix the display of overlapping
23155 rows (merge code from xterm.c).
23156
23157 * macfns.c (Qbox): Add extern declaration.
23158
23159 2002-08-30 Juanma Barranquero <lektu@terra.es>
23160
23161 * w32fns.c (Qbox): Make extern.
23162 (syms_of_w32fns): Remove initialization of Qbox.
23163
23164 2002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
23165
23166 * xfns.c (Fx_open_connection): Fix error message.
23167
23168 2002-08-30 Kim F. Storm <storm@cua.dk>
23169
23170 The following changes consolidates the handling of the cursor
23171 type in xdisp.c, moving duplicate code and functionality from
23172 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
23173
23174 * frame.h (enum text_cursor_kinds): Consolidated here.
23175 Added DEFAULT_CURSOR value.
23176 (struct frame) <desired_cursor, cursor_width>
23177 <blink_off_cursor, blink_off_cursor_width>: New fields.
23178 Consolidated from output_x, output_w32 and output_mac structs.
23179 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
23180 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
23181
23182 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
23183 Variables consolidated here.
23184 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
23185 (Vcursor_in_non_selected_windows): Renamed from
23186 cursor_in_non_selected_windows and changed to Lisp_Object.
23187 (syms_of_xdisp): Define and staticpro new and moved variables.
23188 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
23189 consolidated here. Recognize Qhollow setting.
23190 (set_frame_cursor_types): New function to set frame cursor types
23191 based on the frame parameters.
23192 (get_window_cursor_type): New function to calculate new cursor
23193 type and width for the specified window. Based on duplicated
23194 code consolidated here.
23195 Enhancements: cursor-in-non-selected-windows may be a cursor type,
23196 check buffer-local alternate-cursor-type and blink-cursor-alist
23197 before using built-in blink off methods.
23198
23199 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
23200
23201 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
23202 (get_specified_cursor_type, get_window_cursor_type)
23203 (set_frame_cursor_types): Added prototypes.
23204
23205 * macfns.c (x_specified_cursor_type): Removed.
23206 (x_set_cursor_type): Use set_frame_cursor_types.
23207 (Qbar, Qbox): Removed.
23208 (syms_of_macfns): Don't intern or staticpro them.
23209
23210 * macterm.c (x_specified_cursor_type): Remove prototype.
23211 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
23212 (x_display_and_set_cursor): Use get_window_cursor_type.
23213 Remove unused local variables cursor_non_selected, active_cursor.
23214 Redraw cursor if hbar cursor width changes.
23215 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
23216
23217 * macterm.h (enum text_cursor_kinds): Removed.
23218 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
23219 <blink_off_cursor, blink_off_cursor_width>: Members removed.
23220 (FRAME_DESIRED_CURSOR): Macro removed.
23221
23222 * w32fns.c (Vblink_cursor_alist): Removed.
23223 (Qbar, Qhbar, Qbox, Qhollow): Removed.
23224 (syms_of_w32fns): Don't intern, staticpro, or define them.
23225 (x_specified_cursor_type): Removed.
23226 (x_set_cursor_type): Use set_frame_cursor_types.
23227
23228 * w32term.c (x_specified_cursor_type): Remove prototype.
23229 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
23230 (x_display_and_set_cursor): Use get_window_cursor_type.
23231 Remove unused local variables cursor_off_state.
23232 Redraw cursor if hbar cursor width changes.
23233 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
23234
23235 * w32term.h (enum text_cursor_kinds): Removed.
23236 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
23237 <blink_off_cursor, blink_off_cursor_width>: Members removed.
23238 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
23239 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
23240 (struct w32_display_info) <x_highlight_frame>: Renamed member from
23241 w32_highlight_frame.
23242
23243 * xfns.c (Vblink_cursor_alist): Removed.
23244 (Qbar, Qhbar, Qbox, Qhollow): Removed.
23245 (syms_of_xfns): Don't intern, staticpro, or define them.
23246 (x_specified_cursor_type): Removed.
23247 (x_set_cursor_type): Use set_frame_cursor_types.
23248
23249 * xterm.c (x_specified_cursor_type): Remove prototype.
23250 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
23251 (x_display_and_set_cursor): Use get_window_cursor_type.
23252 Remove unused local variables cursor_off_state.
23253 Redraw cursor if hbar cursor width changes.
23254
23255 * xterm.h (enum text_cursor_kinds): Removed.
23256 (struct output_x) <current_cursor, desired_cursor, cursor_width>
23257 <blink_off_cursor, blink_off_cursor_width>: Members removed.
23258 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
23259 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
23260 (x_specified_cursor_type): Remove prototype.
23261
23262 2002-08-28 Richard M. Stallman <rms@gnu.org>
23263
23264 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
23265 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
23266 (Vblink_cursor_alist): New variable.
23267 (syms_of_w32fns): Initialize and defvar it.
23268 (x_specified_cursor_type): Recognize Qbox for filled box.
23269 Exceptions are hollow boxes.
23270 (Qbox, Qhollow): New variables.
23271 (syms_of_w32fns): Initialize and staticpro them.
23272
23273 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
23274 New macros.
23275 (struct w32_output): New fields blink_off_cursor,
23276 blink_off_cursor_width.
23277 (FRAME_CURSOR_WIDTH): New macro.
23278
23279 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
23280 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
23281
23282 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
23283 for bar cursor.
23284
23285 * w32term.c (expose_overlaps): New function.
23286 (expose_window): Use it to fix the display of overlapping rows.
23287
23288 2002-08-28 Simon Josefsson <jas@extundo.com>
23289
23290 * xfns.c (Fx_open_connection): Improve help when X connection
23291 fails, xhost is insecure and xauth is better.
23292
23293 2002-08-28 Juanma Barranquero <lektu@terra.es>
23294
23295 * makefile.w32-in: Add missing dependencies on w32term.h and
23296 composite.h.
23297
23298 * emacs.c (USAGE1): Add missing newline.
23299
23300 2002-08-27 Andrew Choi <akochoi@shaw.ca>
23301
23302 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
23303
23304 2002-08-27 Richard M. Stallman <rms@gnu.org>
23305
23306 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
23307 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
23308 (Vblink_cursor_alist): New variable.
23309 (syms_of_xfns): Initialize and defvar it.
23310 (x_specified_cursor_type): Recognize Qbox for filled box.
23311 Exceptions are hollow boxes.
23312 (Qbox, Qhollow): New variables.
23313 (syms_of_xfns): Initialize and staticpro them.
23314
23315 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
23316 New macros.
23317 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
23318
23319 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
23320 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
23321
23322 * emacs.c (main): Handle --script.
23323 (USAGE1): Mention --script.
23324 (standard_args): Define sort order for --script.
23325
23326 2002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
23327
23328 * xdisp.c (redisplay_updating_p): Variable removed.
23329 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
23330 New variables.
23331 (init_iterator): Don't free realized faces if
23332 inhibit_free_realized_faces is set.
23333 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
23334 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
23335 initialize Qinhibit_free_realized_faces.
23336
23337 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
23338 when iterator is adding glyphs to a glyph matrix.
23339
23340 2002-08-27 Kenichi Handa <handa@etl.go.jp>
23341
23342 * xdisp.c (get_next_display_element): In unibyte case, don't use
23343 octal form for such eight-bit characters that can be converted to
23344 multibyte char.
23345
23346 2002-08-26 Kim F. Storm <storm@cua.dk>
23347
23348 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
23349 foreground and background colors. From Joe Buehler.
23350
23351 2002-08-26 Miles Bader <miles@gnu.org>
23352
23353 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
23354
23355 2002-08-25 Andrew Choi <akochoi@shaw.ca>
23356
23357 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
23358 defined instead of MAC_OSX.
23359
23360 * s/darwin.h (select): Define select to sys_select only if
23361 HAVE_CARBON is defined.
23362 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
23363 (DONT_REOPEN_PTY): #def it.
23364
23365 * macterm.c (XTread_socket): Remove code to call
23366 SendEventToEventTarget for keys with command modifiers when
23367 mac_command_key_is_meta is nil.
23368
23369 2002-08-24 Andreas Schwab <schwab@suse.de>
23370
23371 * eval.c (Fdefvar): Fix last change.
23372
23373 2002-08-23 Richard M. Stallman <rms@gnu.org>
23374
23375 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
23376 Record variables in load history as (defvar . VAR).
23377 (Fdefvar): Don't record in load history if no initial value.
23378 (Qdefvar): New variable.
23379 (syms_of_eval): Init and staticpro it.
23380
23381 * lread.c (syms_of_lread): Doc fix.
23382 (build_load_history): Use Fmember to see if a definition
23383 is already in the Vload_history element.
23384
23385 * process.c (Fstart_process): Remove /: from program name.
23386
23387 * emacs.c (decode_env_path): Don't add /: if file name handler
23388 has a `safe-magic' property.
23389
23390 * callproc.c (Fcall_process): Remove /: from program name.
23391
23392 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
23393
23394 * regex.c (PATFETCH): Remove the translating fetch.
23395 (PATFETCH_RAW): Rename to PATFETCH.
23396 (set_image_of_range): New fun.
23397 (SET_RANGE_TABLE_WORK_AREA): Use it.
23398 (regex_compile): Don't translate the pattern chars so eagerly.
23399 Only do it when inserting an `exactn' bytecode or when handling
23400 a char-range.
23401 (mutually_exclusive_p): Avoid empty statement.
23402
23403 2002-08-22 Kim F. Storm <storm@cua.dk>
23404
23405 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
23406 end up on a partially visible line; this reverts a specific part
23407 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
23408 display error which has been reported several times now.
23409 However it introduces the problem that changes was supposed to fix.
23410 See my comments in the source if you want to debug this further.
23411
23412 2002-08-20 Kenichi Handa <handa@etl.go.jp>
23413
23414 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
23415
23416 2002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
23417
23418 * msdos.c (croak): Add `void' to definition.
23419
23420 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
23421 Don't define them, they are defined in msdos.c.
23422
23423 * mem-limits.h [MSDOS]: Declare etext.
23424
23425 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
23426 `const' since CORRECT_DIR_SEPS modifies its target.
23427
23428 2002-08-19 Kim F. Storm <storm@cua.dk>
23429
23430 * keyboard.c (Fclear_this_command_keys): Add optional arg
23431 KEEP-RECORD to avoid clearing lossage when we just want to clear
23432 the current key sequence (kmacro needs this).
23433
23434 2002-08-19 Kenichi Handa <handa@localhost>
23435
23436 * composite.c (run_composition_function): Call FUNC if it is fboundp.
23437
23438 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
23439 cons, return Qnil.
23440
23441 2002-08-17 Richard M. Stallman <rms@gnu.org>
23442
23443 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
23444
23445 * sysdep.c [!VMS]: Include sys/files.h.
23446
23447 * editfns.c (save_restriction_restore): Defend from unchained marker.
23448
23449 * buffer.c (overlays_at): Handle extending vec uniformly.
23450 (overlays_in): Handle extending vec from length 0 as in overlays_at.
23451
23452 2002-08-15 Andrew Choi <akochoi@shaw.ca>
23453
23454 * mac.c (init_mac_osx_environment): New function.
23455
23456 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
23457
23458 2002-08-14 Kim F. Storm <storm@cua.dk>
23459
23460 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
23461 executing macro before appending to it (when used from Lisp).
23462 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
23463 which is called prior to each iteration of macro (for kmacro.el).
23464 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
23465
23466 * lisp.h (Fexecute_kbd_macro): Update prototype.
23467
23468 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
23469
23470 2002-08-14 Kenichi Handa <handa@etl.go.jp>
23471
23472 * xselect.c (QUTF8_STRING): New variable.
23473 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
23474 (x_atom_to_symbol): Likewise.
23475 (x_get_local_selection): New argument local_request. If it is
23476 nonzero, call handler_fn with the second arg nil.
23477 (x_handle_selection_request): Call x_get_local_selection with
23478 local_request 0.
23479 (lisp_data_to_selection_data): Don't encode the string here.
23480 (Fx_get_selection_internal): Call x_get_local_selection with
23481 local_request 1.
23482 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
23483
23484 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
23485
23486 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
23487
23488 2002-08-13 Richard M. Stallman <rms@gnu.org>
23489
23490 * minibuf.c (Fminibufferp): New function.
23491 (syms_of_minibuf): Defsubr it.
23492 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
23493
23494 2002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
23495
23496 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
23497
23498 2002-08-12 Richard M. Stallman <rms@gnu.org>
23499
23500 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
23501 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
23502 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
23503 already.
23504
23505 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
23506
23507 2002-08-11 Andrew Choi <akochoi@shaw.ca>
23508
23509 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
23510 (Vmac_pass_command_to_system): New variable.
23511 (Vmac_pass_control_to_system): New variable.
23512 (do_mouse_moved): Check wp with is_emacs_window.
23513 (XTread_socket): Check window_ptr with is_emacs_window.
23514 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
23515 events back to Mac Toolbox for processing, depending on values of
23516 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
23517 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
23518 Vmac_pass_control_to_system.
23519
23520 2002-08-10 Kenichi Handa <handa@etl.go.jp>
23521
23522 * coding.c (unencodable_char_position): New function.
23523 (Funencodable_char_position): New function.
23524 (syms_of_coding): Defsubr Funencodable_char_position.
23525
23526 2002-08-10 Andrew Choi <akochoi@shaw.ca>
23527
23528 * mac.c (sys_select) [MAC_OSX]: New function.
23529
23530 * macterm.c (MakeMeTheFrontProcess): New function.
23531 (mac_initialize): Call MakeMeTheFrontProcess.
23532
23533 * s/darwin.h: Define select to sys_select.
23534
23535 2002-08-09 Richard M. Stallman <rms@gnu.org>
23536
23537 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
23538
23539 2002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
23540
23541 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
23542 end of the buffer.
23543
23544 2002-08-08 Ken Raeburn <raeburn@gnu.org>
23545
23546 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
23547
23548 * puresize.h (BASE_PURESIZE): Increase to 910000.
23549
23550 2002-08-08 Kenichi Handa <handa@etl.go.jp>
23551
23552 * coding.c (Ffind_operation_coding_system): For write-region, if
23553 VISIT is a filename, make it the target.
23554
23555 2002-08-07 Richard M. Stallman <rms@gnu.org>
23556
23557 * alloc.c (mark_object): Detect long lists for debugging.
23558 (mark_object_loop_halt): New variable.
23559
23560 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
23561
23562 * data.c (Fmake_variable_frame_local): Doc fix.
23563
23564 2002-08-01 David Ponce <david@dponce.com>
23565
23566 * w32menu.c (local_heap, local_alloc, local_free): New macros.
23567 (malloc_widget_value, free_widget_value)
23568 (w32_free_submenu_strings): Use them.
23569
23570 (push_submenu_start, push_submenu_end, push_left_right_boundary)
23571 (push_menu_pane, push_menu_item, single_keymap_panes)
23572 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
23573 (single_submenu, set_frame_menubar)
23574 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
23575
23576 (Fx_popup_menu): Don't show pop up menu until preceding one is
23577 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
23578
23579 * w32menu.c: Changes adapted from xmenu.c
23580 (set_frame_menubar): First parse all submenus,
23581 then make widget_value trees from them.
23582 Don't allocate any widget_value objects
23583 until we are done with the parsing.
23584 (parse_single_submenu): New function.
23585 (digest_single_submenu): New function.
23586 (single_submenu): Function deleted, replaced by those two.
23587
23588 2002-08-04 Andrew Choi <akochoi@shaw.ca>
23589
23590 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
23591 returns a valid window pointer before proceeding for keyDown and
23592 autoKey events.
23593
23594 2002-08-03 Andrew Choi <akochoi@shaw.ca>
23595
23596 * macterm.c (USE_CARBON_EVENTS): New macro.
23597 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
23598 (x_iconify_frame): Call CollapseWindow.
23599 (Vmac_reverse_ctrl_meta): New variable.
23600 (Vmac_wheel_button_is_mouse_2): New variable.
23601 (init_mac_drag_n_drop): New function.
23602 (mac_do_receive_drag): New function.
23603 (mac_handle_service_event): New function.
23604 (init_service_handler): New function.
23605 (mac_to_emacs_modifiers): New function.
23606 (mac_event_to_emacs_modifiers): New function.
23607 (mac_get_mouse_btn): New function.
23608 (mac_convert_event_ref): New function.
23609 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
23610 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
23611 mac_get_mouse_btn.
23612 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
23613
23614 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
23615 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
23616 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
23617 TOOL_BAR_EVENT for MAC_OS as well.
23618 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
23619 as for WINDOWS_NT.
23620 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
23621
23622 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
23623
23624 2002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
23625
23626 * xdisp.c (forward_to_next_line_start): Fix a condition that
23627 lead to a newline being skipped.
23628
23629 2002-08-02 Andrew Choi <akochoi@shaw.ca>
23630
23631 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
23632
23633 2002-08-01 Richard M. Stallman <rms@gnu.org>
23634
23635 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
23636
23637 2002-07-31 Andrew Choi <akochoi@shaw.ca>
23638
23639 * macfns.c: #undef init_process before #define-ing it.
23640
23641 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
23642 HAVE_CARBON is defined.
23643
23644 2002-07-31 Richard M. Stallman <rms@gnu.org>
23645
23646 * xmenu.c (set_frame_menubar): First parse all submenus,
23647 then make widget_value trees from them.
23648 Don't allocate any widget_value objects
23649 until we are done with the parsing.
23650 (parse_single_submenu): New function.
23651 (digest_single_submenu): New function.
23652 (single_submenu): Function deleted, replaced by those two.
23653
23654 2002-07-30 Juanma Barranquero <lektu@terra.es>
23655
23656 * w32proc.c (syms_of_ntproc): Fix docstring of
23657 `w32-get-true-file-attributes'.
23658
23659 2002-07-28 Richard M. Stallman <rms@gnu.org>
23660
23661 * s/hpux8.h (HPUX8): Define this before including hpux.h.
23662 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
23663
23664 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
23665
23666 * keyboard.c (make_lispy_event):
23667 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
23668 Explicitly clear up_modifier in event->modifiers.
23669
23670 2002-07-27 Richard M. Stallman <rms@gnu.org>
23671
23672 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
23673
23674 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
23675 for bar cursor.
23676
23677 2002-07-26 Kenichi Handa <handa@etl.go.jp>
23678
23679 * coding.c (detect_coding_iso2022): While checking a byte sequence
23680 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
23681 it in the normal loop.
23682
23683 2002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
23684
23685 * xterm.c (expose_overlaps): New function.
23686 (expose_window): Use it to fix the display of overlapping rows.
23687
23688 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
23689
23690 2002-07-23 Ken Raeburn <raeburn@gnu.org>
23691
23692 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
23693 since it only depends on XUINT.
23694
23695 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
23696 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
23697 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
23698 Macros deleted.
23699
23700 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
23701 its value over other approaches.
23702 * sysdep.c (start_of_data): Don't define the function if a macro
23703 form has been defined.
23704
23705 2002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
23706
23707 * xdisp.c (redisplay_updating_p): New variable.
23708 (init_iterator): Don't free realized faces when
23709 redisplay_updating_p is set.
23710 (redisplay_internal): Set redisplay_updating_p while updating
23711 the display.
23712
23713 2002-07-23 Richard M. Stallman <rms@gnu.org>
23714
23715 * editfns.c (Fmessage): Treat "" like nil.
23716
23717 2002-07-23 Kenichi Handa <handa@etl.go.jp>
23718
23719 * xdisp.c (face_before_or_after_it_pos):
23720 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
23721
23722 2002-07-22 Juanma Barranquero <lektu@terra.es>
23723
23724 * callproc.c (init_callproc) [DOS_NT]:
23725 Initialize Vshared_game_score_directory to nil.
23726 (syms_of_callproc) [DOS_NT]: Likewise.
23727
23728 2002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
23729
23730 * xdisp.c (display_line): Replace an abort with xassert.
23731
23732 2002-07-21 Richard M. Stallman <rms@gnu.org>
23733
23734 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
23735 and END_UNCHANGED when setting buffer_unchanged_p.
23736 Use current_matrix_up_to_date_p to decide whether to use
23737 try_cursor_movement.
23738
23739 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
23740
23741 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
23742
23743 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
23744 Set to nil if dir does not exist.
23745 (syms_of_callproc): Init unconditionally and simply.
23746
23747 * buffer.c (Fbuffer_list): Doc fix.
23748
23749 2002-07-21 Ken Raeburn <raeburn@gnu.org>
23750
23751 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
23752
23753 * buffer.c (mmap_realloc): When shrinking, make sure number of
23754 pages to unmap is rounded towards zero.
23755
23756 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
23757 (XSETINT): Deleted.
23758
23759 * m/att3b.h (XINT): Don't define.
23760 (VALBITS, VALMASK, XTYPE): Deleted.
23761 (DATA_SEG_BITS): Define.
23762 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
23763 ARRAY_MARK_FLAG): Deleted.
23764 (DATA_SEG_BITS): Define.
23765 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
23766 (DATA_SEG_BITS): Define.
23767
23768 2002-07-20 Richard M. Stallman <rms@gnu.org>
23769
23770 * print.c (print_error_message): New args CONTEXT and CALLER.
23771 Calls changed.
23772
23773 * lisp.h (print_error_message): Declare new args.
23774
23775 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
23776 and CONTEXT to print_error_message, don't print them here.
23777 For a Quit, don't use Vsignaling_function.
23778 Call message_log_maybe_newline.
23779
23780 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
23781
23782 2002-07-20 Kim F. Storm <storm@cua.dk>
23783
23784 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
23785
23786 2002-07-19 Ken Raeburn <raeburn@gnu.org>
23787
23788 * bytecode.c (struct byte_stack): Pointers into byte string now
23789 point to const.
23790 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
23791 const.
23792 * charset.h (BCOPY_SHORT): Source pointer now points to const.
23793 * coding.c (encode_eol, detect_coding, detect_eol):
23794 (decode_coding, encode_coding, detect_coding_system):
23795 Source strings now treated as const.
23796 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
23797 modify Lisp string contents.
23798 * coding.h (decode_coding, encode_coding, detect_coding,
23799 detect_eol): Declarations updated.
23800 * composite.c (compose_chars_in_text): Treat Lisp string contents
23801 as const.
23802 * dispnew.c (safe_bcopy): Source pointer now points to const.
23803 * lisp.h (STRING_COPYIN): New macro.
23804 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
23805 (internal_with_output_to_temp_buffer): Declarations updated.
23806 * print.c (temp_output_buffer_setup):
23807 (internal_with_output_to_temp_buffer): Buffer name argument is now
23808 pointer to const.
23809 * sound.c (struct sound_device): Function pointer field "write"
23810 buffer argument now points to const.
23811 (vox_write): Buffer argument points to const.
23812 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
23813 contents as const.
23814 * sysdep.c (emacs_write): Buffer pointer now const.
23815 * term.c (encode_terminal_code): Buffer pointer now const.
23816 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
23817 (x_face_list_fonts, x_update_menu_appearance):
23818 (hash_string_case_insensitive): Treat Lisp string contents as const.
23819
23820 2002-07-19 Juanma Barranquero <lektu@terra.es>
23821
23822 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
23823
23824 * fileio.c (syms_of_fileio): Likewise.
23825 (Ffile_name_as_directory): Fix argument name in docstring.
23826 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
23827
23828 2002-07-18 Richard M. Stallman <rms@gnu.org>
23829
23830 * data.c (Fdefalias): Doc fix.
23831
23832 2002-07-17 Dave Love <fx@gnu.org>
23833
23834 * intervals.h (text_property_stickiness): Use P_.
23835
23836 * ccl.c: Remove `emacs' conditionals.
23837 (ccl_backtrace_table): Fix size spec.
23838 (ccl_driver): Fix type errors.
23839
23840 2002-07-16 Ken Raeburn <raeburn@gnu.org>
23841
23842 * alloc.c (xstrdup, make_string, make_unibyte_string)
23843 (make_multibyte_string, build_string): String pointer args now
23844 point to const.
23845 * charset.c (find_charset_in_text, c_string_width):
23846 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
23847 * fileio.c (report_file_error):
23848 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
23849 (count_combining_before, count_combining_after, insert_1_both):
23850 (insert, insert_and_inherit, insert_string):
23851 (insert_before_markers, insert_before_markers_and_inherit):
23852 * lread.c (intern, oblookup, hash_string):
23853 * minibuf.c (temp_echo_area_glyphs):
23854 * search.c (fast_c_string_match_ignore_case):
23855 * sysdep.c (emacs_open, set_file_times):
23856 * xfaces.c (xstricmp):
23857 * xdisp.c (store_frame_title, string_char_and_length):
23858 (message_dolog, message2, message2_nolog, set_message): Likewise.
23859 (set_message_1): Cast message string argument to const pointer.
23860 * editfns.c (general_insert_function): Insertion function now
23861 takes pointer to const for input data.
23862 * charset.h (find_charset_in_text, c_string_width):
23863 (parse_str_as_multibyte): Declarations updated.
23864 * dispextern.h (xstricmp): Declaration updated.
23865 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
23866 (count_size_as_multibyte, count_combining_before):
23867 (count_combining_after, insert_1, insert_1_both, message_dolog):
23868 (insert, insert_and_inherit, insert_before_markers)
23869 (insert_before_markers_and_inherit, set_message, message2):
23870 (message2_dolog, build_string, make_string, make_unibyte_string):
23871 (make_multibyte_string, intern, oblookup, report_file_error):
23872 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
23873 (emacs_open, xstrdup): Declarations updated.
23874 * systime.h (set_file_times): Declaration updated.
23875
23876 * charset.c (find_charset_in_text, lisp_string_width): Use const
23877 for pointer to lisp string data.
23878 * charset.h (FETCH_STRING_CHAR_ADVANCE):
23879 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
23880 * coding.c (Ffind_coding_systems_region_interval):
23881 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
23882 (Fmake_directory_internal, Fdelete_directory):
23883 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
23884 * fontset.c (font_family_registry, fs_query_fontset):
23885 (list_fontsets):
23886 * frame.c (Fframe_parameter):
23887 * keyboard.c (cmd_error_internal):
23888 * keymap.c (Fdescribe_buffer_bindings):
23889 * lread.c (complete_filename_p, openp):
23890 * minibuf.c (Fminibuffer_complete_word):
23891 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
23892 (face_before_or_after_it_pos, next_element_from_string):
23893 (get_overlay_arrow_glyph_row, display_mode_element):
23894 (decode_mode_spec_coding):
23895 * xterm.c (same_x_server): Likewise.
23896
23897 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
23898 settings of non-existent fields.
23899
23900 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
23901 copy a lisp value.
23902
23903 * lread.c (Fintern_soft): Use string macros instead of
23904 Lisp_String fields.
23905 * keyboard.c (echo_char, parse_modifiers_uncached):
23906 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
23907 * textprop.c (validate_interval_range, interval_of): Likewise.
23908
23909 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
23910
23911 * charset.h (FETCH_STRING_CHAR_ADVANCE)
23912 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
23913 XSTRING()->size_byte.
23914
23915 * lisp.h (SDATA, SREF): Produce rvalue.
23916 (SSET): New macro.
23917 * alloc.c (make_event_array): Use SSET for storing into a string.
23918 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
23919 a string.
23920 * casefiddle.c (casify_object): Use SSET.
23921 * charset.h (FETCH_STRING_CHAR_ADVANCE)
23922 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
23923 address of string contents.
23924 * data.c (Faref): Use SDATA.
23925 (Faset): Use SDATA, SSET.
23926 * dired.c (directory_files_internal): Use SSET.
23927 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
23928 (Fread_file_name): Use SREF, SSET.
23929 * fns.c (concat): Use SSET.
23930 (concat, Fdelete): Use SDATA.
23931 * insdel.c (insert_from_string_1): Use SDATA.
23932 * keyboard.c (Fevent_convert_list): Use SREF.
23933 * lread.c (Fload): Use SDATA, SSET.
23934 * macfns.c (validate_x_resource_name): Use SSET.
23935 * process.c (status_message): Use SSET.
23936 * search.c (wordify): Use SDATA.
23937 (Freplace_match): Use SREF.
23938 * w32fns.c (validate_x_resource_name): Use SSET.
23939 * xfns.c (validate_x_resource_name): Use SSET.
23940 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
23941
23942 2002-07-16 Richard M. Stallman <rms@gnu.org>
23943
23944 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
23945
23946 * xdisp.c (reconsider_clip_changes):
23947 Don't test prevent_redisplay_optimizations_p.
23948 (redisplay_internal): Test prevent_redisplay_optimizations_p
23949 along with clip_changed in some cases.
23950 (try_window_id): Likewise.
23951 (redisplay_window): New local var buffer_unchanged_p.
23952
23953 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
23954
23955 * process.c (create_process): Test USG_SUBTTY_WORKS.
23956 (process_send_signal): Clean up handling of GID.
23957 Detect errors in ioctls meant to set GID.
23958
23959 * window.c (temp_output_buffer_show):
23960 Don't set prevent_redisplay_optimizations_p.
23961
23962 2002-07-15 Juanma Barranquero <lektu@terra.es>
23963
23964 * eval.c (Fdefvaralias): Add docstring argument.
23965
23966 2002-07-15 Ken Raeburn <raeburn@gnu.org>
23967
23968 * lisp.h (STRING_INTERVALS): Produce rvalue.
23969 (STRING_SET_INTERVALS): New macro.
23970 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
23971 * fns.c (Fstring_as_multibyte): Likewise.
23972 * intervals.c (balance_possible_root_interval, delete_interval)
23973 (create_root_interval, copy_intervals_to_string): Likewise.
23974 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
23975 instead of 0.
23976
23977 2002-07-14 Ken Raeburn <raeburn@gnu.org>
23978
23979 * lisp.h (STRING_SET_CHARS): New macro.
23980 (SCHARS, SBYTES): Produce rvalues.
23981 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
23982 * fns.c (concat): Likewise.
23983 * lread.c (read_vector): Likewise.
23984
23985 * lisp.h (SMBP): Delete. All uses changed to STRING_MULTIBYTE.
23986 (STRING_SET_UNIBYTE): New macro.
23987 (SET_STRING_BYTES): Delete. Callers (all of which supplied a
23988 length of -1) changed to use STRING_SET_UNIBYTE.
23989 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
23990 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
23991 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
23992 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
23993 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
23994 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
23995 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
23996 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
23997 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
23998 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
23999 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
24000 STRING_BYTES or indirection changed to SCHARS, SBYTES,
24001 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
24002 unchanged for now.
24003
24004 2002-07-13 Kim F. Storm <storm@cua.dk>
24005
24006 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
24007
24008 2002-07-12 Richard M. Stallman <rms@gnu.org>
24009
24010 * fileio.c (Fwrite_region): Doc fix.
24011
24012 * print.c (print_error_message): Don't handle Vsignaling_function here.
24013
24014 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
24015 (command_loop_1): Avoid certain actions after memory-full error.
24016
24017 * eval.c (Fsignal): Don't call cancel_hourglass.
24018 For a memory-full error, don't call Vsignal_hook_function
24019 and don't set Vsignaling_function.
24020
24021 * process.c (process_send_signal): Add abort call.
24022
24023 2002-07-11 Markus Rost <rost@math.ohio-state.edu>
24024
24025 * keymap.c (Fkey_binding): Fix typo.
24026
24027 2002-07-11 Richard M. Stallman <rms@gnu.org>
24028
24029 * alloc.c (Vmemory_full): New variable.
24030 (Vmemory_signal_data): Rename from memory_signal_data.
24031 Uses changed.
24032 (syms_of_alloc): Defvar them.
24033 (memory_full, buffer_memory_full): Set Vmemory_full.
24034
24035 * lisp.h (Vmemory_full): Add declaration.
24036 (current_column, indented_beyond_p): Change declaration.
24037
24038 * indent.c (last_known_column): Declare as double, not float.
24039 (current_column, current_column_1, string_display_width)
24040 (position_indentation): Return `double'.
24041 (indented_beyond_p): Arg `column' is `double'. Callers changed.
24042
24043 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
24044 (back_to_previous_visible_line_start)
24045 (reseat_at_next_visible_line_start, next_element_from_buffer):
24046 Use `double', not `float', when calling indented_beyond_p.
24047
24048 * s/hpux11.h (BROKEN_SA_RESTART): Define.
24049
24050 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
24051
24052 2002-07-11 Juanma Barranquero <lektu@terra.es>
24053
24054 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
24055 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
24056 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
24057 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
24058 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
24059 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
24060
24061 2002-07-10 Juanma Barranquero <lektu@terra.es>
24062
24063 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
24064 All callers changed.
24065
24066 2002-07-09 Stefan Monnier <monnier@cs.yale.edu>
24067
24068 * data.c (Fdefalias): Add an optional `docstring' argument.
24069 (set_internal, Fsetq_default): Use XCAR/XCDR.
24070
24071 * composite.c (HASH_VALUE, HASH_KEY):
24072 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
24073
24074 2002-07-09 Kenichi Handa <handa@etl.go.jp>
24075
24076 * callproc.c (Fcall_process): Fix previous change.
24077
24078 2002-07-07 Stefan Monnier <monnier@cs.yale.edu>
24079
24080 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
24081 Add support for hash-tables.
24082 (Ftry_completion): Return t even if the string appears multiple times.
24083
24084 * fns.c (Fnconc): Use XCDR.
24085 (Fprovide): Use CONSP and XCDR.
24086 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
24087 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
24088 (Fmake_hash_table): Accept `:size nil'.
24089 (Fmakehash): Delete: moved to subr.el.
24090 (syms_of_fns): Don't defsubr makehash.
24091
24092 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
24093 (HASH_TABLE_SIZE): Move from fns.c.
24094
24095 2002-07-07 Richard M. Stallman <rms@gnu.org>
24096
24097 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
24098 Instead just return 0 when there is something to be done.
24099 (try_scrolling): If make_cursor_line_fully_visible returns 0,
24100 retry scrolling as if cursor were off the bottom.
24101 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
24102 return CURSOR_MOVEMENT_MUST_SCROLL.
24103 (redisplay_window): If make_cursor_line_fully_visible returns 0,
24104 go to try_to_scroll.
24105
24106 * buffer.c (Fbuffer_local_value): Store current value into its binding
24107 so we get the up-to-date value for the binding that is loaded.
24108
24109 * eval.c (Fdefmacro): Doc fix.
24110
24111 2002-07-05 Dave Love <fx@gnu.org>
24112
24113 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
24114 correctly.
24115
24116 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
24117 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
24118 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
24119 CCL_LookupCharConstTbl.
24120 (syms_of_ccl): Defvar translation-hash-table-vector.
24121
24122 2002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24123
24124 * xdisp.c: Remove unused variable `face'.
24125
24126 2002-07-04 Juanma Barranquero <lektu@terra.es>
24127
24128 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
24129 obsolescence information.
24130
24131 2002-07-03 Andrew Choi <akochoi@shaw.ca>
24132
24133 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
24134 pattern. Search cache first.
24135 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
24136 for Japanese font.
24137 (XLoadQueryFont): Use it.
24138
24139 2002-07-02 Richard M. Stallman <rms@gnu.org>
24140
24141 * keymap.c (Fdefine_key): Doc fix.
24142
24143 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
24144
24145 2002-07-02 Juanma Barranquero <lektu@terra.es>
24146
24147 * keymap.c (syms_of_keymap): Fix typo.
24148
24149 2002-07-01 Andrew Choi <akochoi@shaw.ca>
24150
24151 * s/darwin.h: Define POSIX_SIGNALS.
24152
24153 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
24154 and FSRefMakePath to convert FSSpec returned with Apple Event to
24155 Posix pathname.
24156 (mac_initialize) [TARGET_API_MAC_CARBON]:
24157 Call init_required_apple_events and disable the `Quit' menu item
24158 provided automatically by the Carbon Toolbox.
24159
24160 2002-07-01 Dave Love <fx@gnu.org>
24161
24162 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
24163 for K&R.
24164
24165 * xterm.c: Fix prototype for K&R.
24166
24167 * term.c (costs_set): Declare static, non-initialized for pcc.
24168
24169 2002-07-01 Richard M. Stallman <rms@gnu.org>
24170
24171 * keyboard.c (timer_last_idleness_start_time): New variable.
24172 (timer_start_idle): Set that.
24173 (read_key_sequence): Use that to reset timer_idleness_start_time
24174 to previous value.
24175
24176 * window.c (Frecenter): With arg, set optional_new_start.
24177
24178 * xdisp.c (redisplay_internal): Make optional_new_start really work.
24179
24180 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
24181 buffer for completion.
24182
24183 2002-06-29 Ken Raeburn <raeburn@gnu.org>
24184
24185 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
24186
24187 2002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
24188
24189 * keyboard.c (readable_filtered_events): New function that filters
24190 FOCUS_IN_EVENT depending on parameter.
24191 (readable_events): Calls readable_filtered_events, not filtering
24192 FOCUS_IN_EVENT.
24193 (get_filtered_input_pending): New function, filtering parameter passed
24194 to readable_filtered_events.
24195 (get_input_pending): Calls get_filtered_input_pending, not filtering
24196 FOCUS_IN_EVENT.
24197 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
24198 FOCUS_IN_EVENT.
24199
24200 * xterm.h (struct x_output): Add focus_state.
24201
24202 * xterm.c (x_focus_changed): New function.
24203 (x_detect_focus_change): New function.
24204 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
24205 EnterNotify and LeaveNotify to track X focus changes.
24206
24207 2002-06-28 Andreas Schwab <schwab@suse.de>
24208
24209 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
24210
24211 2002-06-27 Kim F. Storm <storm@cua.dk>
24212
24213 * xdisp.c (mode_line_string_list, mode_line_string_face)
24214 (mode_line_string_face_prop): New variables.
24215 (store_mode_line_string): New function.
24216 (display_mode_element): Use store_mode_line_string to
24217 add mode-line string elements to mode_line_string_list
24218 when mode_line_string_list is non-nil.
24219 (Fformat_mode_line): Now returns propertized string by
24220 default. New arg NO-PROPS to ignore properties.
24221 (decode_mode_spec): Only add two dashes for %- in propertized
24222 mode-line string.
24223 (syms_of_xdisp): Init and staticpro mode_line_string_list.
24224
24225 2002-06-27 Stefan Monnier <monnier@cs.yale.edu>
24226
24227 * minibuf.c (minibuffer_completion_contents): Add return type.
24228
24229 2002-06-27 Juanma Barranquero <lektu@terra.es>
24230
24231 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
24232
24233 2002-06-26 Juanma Barranquero <lektu@terra.es>
24234
24235 * fileio.c (read_file_name_cleanup): Add missing return.
24236
24237 2002-06-26 Richard M. Stallman <rms@gnu.org>
24238
24239 * window.c (Frecenter): Don't set force_start flag.
24240
24241 * minibuf.c (do_completion, Fminibuffer_complete_word)
24242 (Fminibuffer_completion_help): Complete just the text before point.
24243 (minibuffer_completion_contents): New function.
24244
24245 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
24246
24247 * frame.c (frames_bury_buffer): Function deleted.
24248
24249 2002-06-25 Miles Bader <miles@gnu.org>
24250
24251 * callint.c (Fcall_interactively): When checking to see if doprnt hit
24252 the end of callint_message, allow for a terminating '\0'.
24253
24254 2002-06-24 Juanma Barranquero <lektu@terra.es>
24255
24256 * w32select.c: Include composite.h.
24257
24258 * w16select.c: Likewise.
24259
24260 2002-06-24 Kenichi Handa <handa@etl.go.jp>
24261
24262 * callproc.c (Fcall_process): If code detection is necessary,
24263 call detect_coding directly here.
24264
24265 * coding.c (detect_eol): Preserve coding->cmp_data.
24266
24267 * w16select.c (Fw16_get_clipboard_data):
24268 * w32fns.c (w32_to_x_font):
24269 * w32select.c (Fw32_get_clipboard_data):
24270 * xselect.c (selection_data_to_lisp_data):
24271 * xterm.c (XTread_socket): Disable composition handling.
24272
24273 2002-06-24 Stefan Monnier <monnier@cs.yale.edu>
24274
24275 * print.c (temp_output_buffer_setup): Kill all local variables.
24276
24277 2002-06-22 Stefan Monnier <monnier@cs.yale.edu>
24278
24279 * lread.c (Fread): Remove redundant and imprecise declaration.
24280
24281 * xfns.c (check_x_display_info): Use check_x_frame.
24282
24283 * .gdbinit (xprintsym): Use the new `xname' field.
24284 (xsymbol): Use it.
24285
24286 2002-06-22 Jason Rumney <jasonr@gnu.org>
24287
24288 * w32fns.c (file_dialog_callback): New function.
24289 (Fx_file_dialog): Allow selecting directories as well as files.
24290
24291 2002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24292
24293 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
24294 OpenBSD. Add support for mipseb-*-netbsd* machines.
24295
24296 2002-06-17 Andrew Choi <akochoi@shaw.ca>
24297
24298 * macterm.c (mac_scroll_area): Set foreground and backcolor to
24299 black and white before scrolling. Restore frame background and
24300 foreground color after scrolling.
24301 (do_window_update): Call XClearWindow before calling expose_frame.
24302 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
24303 FRAME_FOREGROUND_PIXEL of frame.
24304
24305 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
24306 test Mac command key as <ALT> key.
24307
24308 2002-06-17 Stefan Monnier <monnier@cs.yale.edu>
24309
24310 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
24311
24312 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
24313 Lookup keys in function-key-map immediately so that key-translation-map
24314 can be applied earlier.
24315 Remove function_key_possible and key_translation_possible, replaced
24316 by checking `keytran_start < t'.
24317
24318 * .gdbinit (xsymbol): Use the new `xname' field.
24319
24320 2002-06-17 Andrew Choi <akochoi@shaw.ca>
24321
24322 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
24323 test Mac command key as <ALT> key.
24324
24325 * mac.c (do_applescript): Call initialize_applescript if necessary
24326 when first called. Dispose of result_desc only when there is no error.
24327 (Fdo_applescript): Use %d format specifier instead of %ld.
24328
24329 2002-06-16 Andrew Choi <akochoi@shaw.ca>
24330
24331 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
24332 of FrontWindow for cases keyDown and autoKey.
24333
24334 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
24335 Vdefault_fontset to Monaco with mac-roman coding.
24336
24337 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
24338 init_process before and after inclusion of Carbon/Carbon.h, resp.
24339
24340 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
24341 cursor_gc.
24342 (add_font_name_table_entry): New function.
24343 (init_font_name_table): Use add_font_name_table_entry; add italic,
24344 bold, and bold-italic entries for truetype fonts.
24345
24346 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
24347 for Mac too.
24348 (try_font_list) [MAC_OS]: If no font matches given registry, try
24349 fonts with any registry matching face_family.
24350 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
24351
24352 * s/darwin.h: If autoconf detects the Ncurses library, define
24353 LIBS_TERMCAP to -lncurses to use it.
24354
24355 2002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
24356
24357 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
24358
24359 2002-06-15 Richard M. Stallman <rms@gnu.org>
24360
24361 * window.c (Fset_window_configuration): Explicitly preserve
24362 the point value that new_current_buffer had at the start.
24363
24364 2002-06-14 Juanma Barranquero <lektu@terra.es>
24365
24366 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
24367 Fix typos.
24368
24369 2002-06-14 Kim F. Storm <storm@cua.dk>
24370
24371 * insdel.c (insert_1_both, insert_from_string_1)
24372 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
24373 insert happened in the end_unchanged region. Otherwise, the
24374 redisplay may be confused and duplicate the last line in the
24375 buffer [seen after save-buffer when require-final-newline==t].
24376
24377 2002-06-13 Jason Rumney <jasonr@gnu.org>
24378
24379 * w32.c (init_environment): Remove EMACSLOCKDIR.
24380 (stat): Swap _S_IFDIR and _S_IFREG.
24381
24382 2002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24383
24384 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
24385 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
24386 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
24387 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
24388 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
24389 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
24390 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
24391 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
24392 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
24393 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
24394 SELECTION_REQUEST_EVENT, selection_clear_event to
24395 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
24396 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
24397 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
24398 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
24399 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
24400 no_event to NO_EVENT.
24401
24402 2002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24403
24404 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
24405
24406 2002-06-12 Stefan Monnier <monnier@cs.yale.edu>
24407
24408 * intervals.c (textget): Don't forget to `return'.
24409 (lookup_char_property): Use XCAR/XCDR.
24410
24411 2002-06-12 Juanma Barranquero <lektu@terra.es>
24412
24413 * xdisp.c (Fformat_mode_line): Fix typo.
24414
24415 2002-06-12 Kim F. Storm <storm@cua.dk>
24416
24417 * xdisp.c (Fformat_mode_line): New function.
24418 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
24419 (store_frame_title_char, store_frame_title): Use unconditionally.
24420 (init_xdisp): Defsubr Fformat_mode_line.
24421 Initialize frame_title_buf etc. unconditionally.
24422
24423 2002-06-11 Stefan Monnier <monnier@cs.yale.edu>
24424
24425 * keyboard.c (read_key_sequence):
24426 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
24427 things through those maps after downcasing events.
24428 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
24429 applies after function-key-map.
24430 Make sure that keytran can be done in the middle in the sequence.
24431 Be careful not to throw away events past the one we downcase.
24432
24433 * lread.c (read_integer): Remove unused var `tem'.
24434 (read1): Fix int/Lisp_Object mixup.
24435
24436 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
24437
24438 2002-06-11 Richard M. Stallman <rms@gnu.org>
24439
24440 * keyboard.c (readable_events): Ignore any number of
24441 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
24442
24443 2002-06-09 Miles Bader <miles@gnu.org>
24444
24445 * xfaces.c (Ftty_supports_face_attributes_p): New function.
24446 (parse_rgb_list, tty_lookup_color): New functions.
24447 (tty_defined_color): Use `tty_lookup_color' to do all the work.
24448 (color_distance, Fcolor_distance): New functions.
24449 (TTY_SAME_COLOR_THRESHOLD): New macro.
24450 (Qtty_color_standard_values): New variable.
24451 (syms_of_xfaces): Initialize new vars & functions.
24452
24453 2002-06-08 Colin Walters <walters@verbum.org>
24454
24455 * textprop.c (Vchar_property_alias_alist): New variable.
24456 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
24457
24458 * intervals.c (lookup_char_property): New function for looking up
24459 overlay and text properties, created from textget.
24460 (textget): Use it.
24461
24462 * intervals.h (lookup_char_property): Declare.
24463 (Vchar_property_alias_alist): Declare.
24464
24465 * buffer.c (Foverlay_get): Use lookup_char_property.
24466
24467 2002-06-07 Sam Steingold <sds@gnu.org>
24468
24469 * xselect.c (lisp_data_to_selection_data): Fix last change:
24470 *data_ret is not a Lisp string, while unibyte_string is.
24471
24472 2002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
24473
24474 * xselect.c (lisp_data_to_selection_data): Fix last change:
24475 set size_ret.
24476
24477 2002-06-07 Andreas Schwab <schwab@suse.de>
24478
24479 * m/amdx86-64.h: New file.
24480
24481 2002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
24482
24483 * fns.c (Fstring_make_unibyte): Doc fix.
24484
24485 * xselect.c (lisp_data_to_selection_data): If the requested type
24486 is STRING, call string_make_unibyte to encode the selected text
24487 as a string.
24488
24489 * window.c (Fset_window_hscroll): Doc fix.
24490
24491 2002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24492
24493 * fileio.c (choose_write_coding_system):
24494 Call select-safe-coding-system properly.
24495
24496 2002-06-03 Richard M. Stallman <rms@gnu.org>
24497
24498 * xdisp.c (message_with_string): Error if STRING is not a string.
24499
24500 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
24501
24502 * fileio.c (choose_write_coding_system): Pass FILE arg to
24503 Vselect_safe_coding_system_function.
24504
24505 2002-06-03 Ken Raeburn <raeburn@gnu.org>
24506
24507 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
24508
24509 2002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
24510
24511 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
24512 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
24513 * keymap.c (describe_command): Likewise.
24514 * minibuf.c (read_minibuf): Likewise.
24515
24516 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
24517 Cast `current_column' return value to int.
24518 (back_to_previous_visible_line_start)
24519 (reseat_at_next_visible_line_start, next_element_from_buffer):
24520 Cast `indented_beyond_p' 3rd arg to float.
24521
24522 * indent.c (last_known_column): Now a float.
24523 (current_column_1, position_indentation, current_column)
24524 (string_display_width): Return float.
24525 (Fcurrent_column): Cast `current_column' return value to int.
24526 (Fcurrent_indentation): Cast `position_indentation' retval to int.
24527 (indented_beyond_p): Third arg now a float.
24528 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
24529
24530 * lisp.h (current_column): Now returns float.
24531 (indented_beyond_p): 3rd arg now a float.
24532
24533 2002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
24534
24535 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
24536 is Qcompound_text_with_extensions.
24537
24538 * xselect.c (lisp_data_to_selection_data): Always set selection
24539 type as string if x_encode_text returns streingp non-NULL.
24540
24541 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
24542
24543 2002-05-30 Richard M. Stallman <rms@gnu.org>
24544
24545 * window.c (Fset_window_configuration): Correct the handling
24546 of point in current buffer, to work with multiple windows.
24547
24548 2002-05-29 Colin Walters <walters@verbum.org>
24549
24550 * lread.c (Fread_from_string): Don't depend on order of evaluation
24551 for C function parameters.
24552
24553 2002-05-28 Richard M. Stallman <rms@gnu.org>
24554
24555 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
24556 way for blinked-off state and for a nonselected window.
24557
24558 * window.c (window_scroll_pixel_based): Don't call Fbolp;
24559 instead, see if the new start pos is at beginning of line.
24560
24561 * fileio.c (Fwrite_region): If START is a string, don't
24562 make any annotations.
24563
24564 * eval.c (syms_of_eval): Doc fix.
24565
24566 2002-05-28 Colin Walters <walters@debian.org>
24567
24568 * emacs.c (USAGE1): Add --no-splash.
24569 (standard_args): Ditto.
24570
24571 2002-05-28 Colin Walters <walters@gnu.org>
24572
24573 * lread.c (readchar_count): New variable.
24574 (readchar): Increment it.
24575 (unreadchar): Decrement it.
24576 (read_multibyte): Decrement it.
24577 (Vread_with_symbol_positions): New variable.
24578 (Vread_symbol_positions_list): New variable.
24579 (read_internal_start): New function, created from Fread and
24580 Fread_from_string. Handle Vread_symbol_positions_list and
24581 Vread_with_symbol_positions.
24582 (readevalloop, Fread, Fread_from_string): Use it.
24583 (read1): Use readchar_count to add symbol positions to
24584 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
24585 (syms_of_lread): DEFVAR_LISP and initialize them.
24586
24587 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
24588 (substitute_object_recurse, substitute_object_in_subtree)
24589 (substitute_in_interval): Prototype.
24590 (read_multibyte): Return c if it's less than zero.
24591
24592 2002-05-28 Kim F. Storm <storm@cua.dk>
24593
24594 * fileio.c (Fread_file_name_internal): Added brute-force
24595 speed up for using predicate file-directory-p.
24596
24597 2002-05-28 Kim F. Storm <storm@cua.dk>
24598
24599 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
24600 New variables.
24601 (syms_of_fileio): DEFVAR_LISP them.
24602 (read_file_name_cleanup): New unwind function.
24603 (Fread_file_name_internal): Only return completions satifying
24604 Vread_file_name_predicate. Temporarily unwind protect and rebind
24605 default-directory while checking completions against the predicate.
24606 (Fread_file_name): Added PREDICATE argument. Specbind it to
24607 Vread_file_name_predicate during completion.
24608 Call Vread_file_name_function to read the file name if non-nil.
24609
24610 * lisp.h (Fread_file_name): Now has 6 args.
24611
24612 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
24613 predicate for Fread_file_name when reading directory name.
24614 Supply Qnil for predicate in other calls to Fread_file_name.
24615
24616 2002-05-26 Miles Bader <miles@gnu.org>
24617
24618 * term.c (tty_capable_p): New function.
24619 * dispextern.h (tty_capable_p): New function declaration.
24620 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
24621 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
24622
24623 2002-05-23 Stefan Monnier <monnier@cs.yale.edu>
24624
24625 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
24626 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
24627 (Vwrite_region_annotate_functions): Docstring fix.
24628
24629 2002-05-23 Kim F. Storm <storm@cua.dk>
24630
24631 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
24632 phys_cursor's hpos is overwritten. This is still not completely
24633 correct, as it doesn't really make sense to use hpos at all to
24634 get the cursor glyph (as that is relative to the width of the
24635 characters on the line, which may have changed during the update).
24636
24637 2002-05-22 Jason Rumney <jasonr@gnu.org>
24638
24639 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
24640 Lisp_Object.
24641 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
24642 Use modified enumfont_t struct.
24643
24644 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
24645
24646 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
24647 Handle the `hbar' cursor type.
24648 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
24649
24650 * w32fns.c (Qhbar): New variable.
24651 (x_specified_cursor_type): Use it.
24652
24653 2002-05-21 Ken Raeburn <raeburn@gnu.org>
24654
24655 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
24656 now, when the address is needed.
24657
24658 2002-05-21 Colin Walters <walters@gnu.org>
24659
24660 * Makefile.in (shortlisp): Add font-core.el.
24661
24662 2002-05-20 Richard M. Stallman <rms@gnu.org>
24663
24664 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
24665
24666 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
24667 equivalent key bindings here.
24668
24669 2002-05-20 Ken Raeburn <raeburn@gnu.org>
24670
24671 Change symbol structure to contain a lisp object for the symbol
24672 name:
24673 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
24674 object field named "xname".
24675 (SYMBOL_NAME): New macro.
24676 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
24677 name field.
24678 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
24679 (mark_object, gc_sweep): Use symbol xname field and XSTRING
24680 instead of name field.
24681 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
24682 SYMBOL_NAME instead of XSYMBOL and name field.
24683 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
24684 instead of XSYMBOL and name field.
24685 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
24686 and SYMBOL_NAME instead of XSYMBOL and name field.
24687 * coding.c (Fread_coding_system, code_convert_region1)
24688 (code_convert_string1, code_convert_string_norecord)
24689 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
24690 XSYMBOL and name field.
24691 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
24692 (Fmake_variable_buffer_local, Fmake_local_variable)
24693 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
24694 of XSYMBOL and name field.
24695 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
24696 XSYMBOL and name field.
24697 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
24698 instead of XSYMBOL and name field.
24699 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
24700 XSYMBOL and name field.
24701 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
24702 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
24703 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
24704 instead of XSYMBOL and name field.
24705 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
24706 (parse_modifiers, apply_modifiers, Fevent_convert_list)
24707 (parse_solitary_modifier, Fexecute_extended_command):
24708 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
24709 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
24710 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
24711 of XSYMBOL and name field.
24712 (describe_command, describe_translation): Use SYMBOL_NAME and
24713 assignment instead of XSYMBOL and name field and XSETSTRING.
24714 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
24715 instead of XSYMBOL and name field.
24716 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
24717 name field and XSETSTRING.
24718 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
24719 of XSYMBOL and name field.
24720 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
24721 assignment instead of XSYMBOL and name field and XSETSTRING.
24722 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
24723 XSTRING instead of XSYMBOL and name field.
24724 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
24725 and XSTRING instead of XSYMBOL and name field.
24726 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
24727 and XSTRING instead of XSYMBOL and name field.
24728 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
24729 XSTRING instead of XSYMBOL and name field.
24730 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
24731 of XSYMBOL and name field.
24732 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
24733 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
24734
24735 2002-05-19 Ken Raeburn <raeburn@gnu.org>
24736
24737 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
24738 and XCDR real rvalues in most configurations.
24739
24740 * buffer.c (fix_overlays_in_range, fix_overlays_before):
24741 Don't take the address of the cdr part of a cons cell; instead, track
24742 the parent cell and call XSETCDR, or set the variable for the head
24743 of the list if we haven't started down the list yet.
24744
24745 2002-05-19 Richard M. Stallman <rms@gnu.org>
24746
24747 * doc.c (reread_doc_file): Don't ask for confirmation.
24748
24749 2002-05-18 Jason Rumney <jasonr@gnu.org>
24750
24751 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
24752 (xbm_load_image): Use it.
24753 (xbm_load): Ditto.
24754 (xbm_read_bitmap_data): Reverted to xfns.c version.
24755 From David Ponce <david@dponce.com>.
24756
24757 2002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
24758
24759 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
24760 2.02 and later.
24761
24762 2002-05-16 Juanma Barranquero <lektu@terra.es>
24763
24764 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
24765
24766 2002-05-15 Stefan Monnier <monnier@cs.yale.edu>
24767
24768 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
24769 meaningful test.
24770 (read_char_minibuf_menu_prompt): Fix typo.
24771
24772 2002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
24773
24774 * eval.c (Fcommandp): Doc fix.
24775
24776 2002-05-13 Stefan Monnier <monnier@cs.yale.edu>
24777
24778 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
24779 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
24780 (Fset_keymap_parent): Gcpro a bit more.
24781 (access_keymap): Gcpro around meta_map call and around the main loop.
24782 (get_keyelt): Gcpro when following indirect references.
24783 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
24784 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
24785 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
24786 Remove useless ad-hoc remap code.
24787
24788 2002-05-13 Richard M. Stallman <rms@gnu.org>
24789
24790 * search.c (search_buffer): Give up boyer moore search if inverse
24791 translation change charset_base.
24792
24793 2002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
24794
24795 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
24796 characters is carried over from the previous block of text, adjust
24797 coding->produced to account for the extra character.
24798
24799 2002-05-11 Andreas Schwab <schwab@suse.de>
24800
24801 * coding.c (intersection): Keep the elements of the returned list
24802 in the same order as in the first list.
24803
24804 2002-05-11 Kim F. Storm <storm@cua.dk>
24805
24806 * keymap.c (current_minor_maps): Fix resizing of cmm_maps;
24807 only update cmm_size if realloc actually succeeds.
24808 Testing with initial size of 2 elements revealed that using
24809 realloc on GNU/Linux would cause a random trap in xmalloc
24810 later on, so I rewrote the code to use malloc/bcopy/free instead
24811 of realloc.
24812
24813 2002-05-10 Jason Rumney <jasonr@gnu.org>
24814
24815 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
24816
24817 2002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
24818
24819 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
24820 parens, to ensure correct evaluation order.
24821
24822 2002-05-10 Kim F. Storm <storm@cua.dk>
24823
24824 * keymap.c (Vemulation_mode_map_alists): New variable.
24825 (syms_of_keymap): DEFVAR_LISP it.
24826 (current_minor_maps): Process keymap alists in that list before
24827 minor-mode-overriding-map-alist and minor-mode-map-alist.
24828
24829 2002-05-09 Richard M. Stallman <rms@gnu.org>
24830
24831 * search.c (Freplace_match): Doc fix.
24832
24833 2002-05-09 Kim F. Storm <storm@cua.dk>
24834
24835 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
24836 Enlarge cursor rectangle drawn around image with non-zero relief.
24837
24838 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
24839 Enlarge cursor rectangle drawn around image with non-zero relief.
24840
24841 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
24842 Enlarge cursor rectangle drawn around image with non-zero relief.
24843
24844 2002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
24845
24846 * xselect.c (lisp_data_to_selection_data): Don't set selection
24847 type if comes from the Lisp object's car. If the selection
24848 contains a pure ASCII text, always return QSTRING as its type.
24849
24850 2002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24851
24852 * mac.c (mac-cut-function): Doc fix.
24853
24854 2002-05-05 Richard M. Stallman <rms@gnu.org>
24855
24856 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
24857
24858 2002-05-04 Jason Rumney <jasonr@gnu.org>
24859
24860 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
24861 for event-click-count.
24862
24863 * process.c (init_process): Only add server subfeature if we can
24864 use non-blocking I/O.
24865
24866 2002-05-04 Andrew Choi <akochoi@shaw.ca>
24867
24868 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
24869 repeatedly.
24870
24871 2002-05-03 Jason Rumney <jasonr@gnu.org>
24872
24873 * process.c (Fmake_network_process): Only support server sockets
24874 when we can make them non-blocking.
24875
24876 * s/ms-w32.h (HAVE_SELECT): Define.
24877
24878 * w32.h (FILE_NDELAY): New flag.
24879
24880 * w32.c (sys_getpeername, fcntl): New functions.
24881 (_sys_read_ahead): Temporarily block on non-blocking sockets.
24882
24883 * w32proc.c: Include sys/file.h.
24884
24885 2002-05-03 Colin Walters <walters@verbum.org>
24886
24887 * callproc.c (Vgame_score_directory): Renamed to
24888 Vshared_game_score_directory.
24889
24890 2002-04-30 Richard M. Stallman <rms@gnu.org>
24891
24892 * s/gnu.h [emacs]: Include stdio.h.
24893 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
24894
24895 * eval.c (do_autoload): Error if called while preparing to dump.
24896
24897 * fns.c (Frequire): Error if need to load while preparing to dump.
24898
24899 2002-04-28 Colin Walters <walters@verbum.org>
24900
24901 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
24902 Default to "~/.emacs.d/games".
24903
24904 2002-04-29 Stefan Monnier <monnier@cs.yale.edu>
24905
24906 * lread.c (openp): Change arg exec_only to predicate.
24907 (build_load_history): Use XCAR/XCDR.
24908 (Flocate_file_internal): New fun.
24909 (syms_of_lread): Defsubr it.
24910 (Fload): Update call to openp.
24911
24912 * lisp.h (openp): Update prototype.
24913
24914 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
24915 * w32proc.c (sys_spawnve):
24916 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
24917 * w32.c (check_windows_init_file):
24918 * sound.c (Fplay_sound_internal):
24919 * process.c (Fstart_process):
24920 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
24921 * mac.c (run_mac_command):
24922 * emacs.c (init_cmdargs):
24923 * callproc.c (Fcall_process): Update call to openp.
24924
24925 * textprop.c (remove_properties): Don't use XCAR without CONSP.
24926
24927 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
24928
24929 2002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24930
24931 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
24932 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
24933
24934 2002-04-28 Richard M. Stallman <rms@gnu.org>
24935
24936 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
24937
24938 * eval.c (Fcommandp): New arg for_call_interactively.
24939 * lisp.h (Fcommandp): Declare new arg.
24940
24941 2002-04-28 Jason Rumney <jasonr@gnu.org>
24942
24943 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
24944
24945 * w32.c (stat, fstat): Use file index information to generate
24946 inodes for directories where available.
24947
24948 2002-04-26 Andrew Choi <akochoi@shaw.ca>
24949
24950 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
24951 [HAVE_CARBON]: Include Mac object files.
24952
24953 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
24954 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
24955 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
24956 MAC_OSX, and MAC_OS instead of macintosh.
24957
24958 * editfns.c [MAC_OS8]: Include stdio.h.
24959
24960 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
24961
24962 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
24963 Apple Monaco.
24964
24965 * process.c (QCfamily, QCfilte): Declare extern.
24966 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
24967 calling select.
24968
24969 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
24970
24971 * tparam.c [MAC_OSX]: Don't define BC and UP.
24972
24973 * config.in [HAVE_CARBON]: Add.
24974
24975 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
24976 Move here from mac/src and mac/inc.
24977
24978 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
24979
24980 2002-04-26 Gerd Moellmann <gerd@gnu.org>
24981
24982 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
24983 Compute phys_cursor_width from the x position returned
24984 by x_draw_glyhs, which is cheaper.
24985 (x_display_and_set_cursor): Compute the buffer-local value
24986 of `cursor-in-non-selected-windows' only when needed.
24987
24988 2002-04-25 Gerd Moellmann <gerd@gnu.org>
24989
24990 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
24991 cursor on a stretch glyph has a width that depends on
24992 x_stretch_cursor_p.
24993
24994 2002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24995
24996 * abbrev.c (abbrev-start-location): Doc fix.
24997
24998 * indent.c (Fvertical_motion): Fix last change.
24999
25000 2002-04-25 Gerd Moellmann <gerd@gnu.org>
25001
25002 * indent.c (Fvertical_motion): Move to the start of the line
25003 containing PT before moving up or down.
25004
25005 2002-04-24 Gerd Moellmann <gerd@gnu.org>
25006
25007 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
25008 case of writing a whole row, more or less analogous to the case of
25009 writing only parts of a row.
25010
25011 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
25012 0 for NO_CURSOR.
25013
25014 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
25015
25016 2002-04-23 Colin Walters <walters@verbum.org>
25017
25018 * buffer.c (syms_of_buffer): Doc fix.
25019
25020 2002-04-23 Gerd Moellmann <gerd@gnu.org>
25021
25022 * xterm.c (notice_overwritten_cursor): Handle the special case
25023 of the cursor being in the first blank non-text line at the
25024 end of a window.
25025
25026 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
25027 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
25028 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
25029 bar cursors only, to make phys_cursor_width contain what its name
25030 suggests.
25031 (notice_overwritten_cursor): Consider the cursor image erased if
25032 the output area intersects the cursor image in y-direction.
25033
25034 2002-04-23 Simon Marshall <simon@gnu.org>
25035
25036 * xfns.c (x_set_mouse_color): Change default for cross_cursor
25037 to XC_hand2.
25038
25039 2002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25040
25041 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
25042
25043 2002-04-22 Kim F. Storm <storm@cua.dk>
25044
25045 * textprop.c (remove_properties): Fixed trap for malformed plist.
25046
25047 2002-04-22 Richard M. Stallman <rms@gnu.org>
25048
25049 * cmds.c (Fend_of_line): Handle intangible text in mid line.
25050
25051 * window.c (make_window): Initialize height_fixed_p,
25052 last_cursor_off_p, and p->cursor_off_p slots.
25053
25054 2002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25055
25056 * fns.c (use-dialog-box): Doc fix.
25057
25058 2002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25059
25060 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
25061 variables `row', `i' and `area'.
25062 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
25063 toolkit library.
25064
25065 2002-04-19 Stefan Monnier <monnier@cs.yale.edu>
25066
25067 * xfaces.c (clear_font_table): Don't free the default font of
25068 a frame even if it's on another display.
25069 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
25070 that could be Qt.
25071
25072 2002-04-19 Juanma Barranquero <lektu@terra.es>
25073
25074 * indent.c (Fmove_to_column): Remove unused local variable
25075 `next_boundary_byte'.
25076 (current_column_1): Likewise.
25077
25078 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
25079
25080 * msdos.c (Qhbar): New variable.
25081 (syms_of_msdos): Intern and staticpro it.
25082 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
25083 cursor type.
25084
25085 2002-04-19 Dave Lambert <dlambert@acm.org>
25086
25087 Theses change implement an underscore-like (`hbar') cursor.
25088
25089 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
25090
25091 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
25092 Handle the `hbar' cursor type.
25093 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
25094
25095 * xfns.c (Qhbar): New variable.
25096 (syms_of_xfns): Intern and staticpro it.
25097 (x_specified_cursor_type): Handle `hbar' cursor.
25098
25099 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
25100 not defined.
25101
25102 2002-04-18 Richard M. Stallman <rms@gnu.org>
25103
25104 * textprop.c (remove_properties): New arg LIST allows scanning
25105 either a list or a plist.
25106 (interval_has_some_properties_list): New function, like
25107 interval_has_some_properties using list instead of plist.
25108 All callers changed.
25109 (Fremove_list_of_text_properties): New function.
25110 (syms_of_textprop): Defsubr it.
25111
25112 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
25113
25114 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
25115
25116 2002-04-17 Juanma Barranquero <lektu@terra.es>
25117
25118 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
25119
25120 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
25121
25122 * window.c (coordinates_in_window): Don't report on margin area
25123 if its width is zero.
25124
25125 2002-04-16 Jason Rumney <jasonr@gnu.org>
25126
25127 * w32fns.c (Fx_file_dialog): Decode file name before using.
25128
25129 * w32term.c (construct_drag_n_drop): Likewise.
25130
25131 2002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
25132
25133 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
25134 store load-history in pure space.
25135
25136 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
25137
25138 2002-04-16 Stefan Monnier <monnier@cs.yale.edu>
25139
25140 * xterm.c (Qlatin_1, Qutf_8): New vars.
25141 (syms_of_xterm): Initialize them.
25142 (XTread_socket): Eliminate incorrect optimization that tried to avoid
25143 decoding the output of X*LookupString.
25144 Always use latin-1 to decode the output of XLookupString.
25145 Try Xutf8LookupString if XmbLookupString failed.
25146
25147 * region-cache.c (new_region_cache): Use BEG.
25148
25149 2002-04-16 Gerd Moellmann <gerd@gnu.org>
25150
25151 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
25152 configuration files.
25153 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
25154 returns 0.
25155
25156 2002-04-15 Andreas Schwab <schwab@suse.de>
25157
25158 * config.in: Regenerated using autoheader.
25159
25160 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
25161 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
25162 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
25163 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
25164 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
25165 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
25166 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
25167 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
25168 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
25169 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
25170 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
25171 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
25172 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
25173 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
25174 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
25175 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
25176 STACK_DIRECTION, now set by autoconf.
25177
25178 2002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25179
25180 * dispnew.c (marginal_area_string): Sort arguments.
25181
25182 * dispextern.h (marginal_area_string): Add prototype.
25183
25184 2002-04-13 Richard M. Stallman <rms@gnu.org>
25185
25186 * fileio.c (Finsert_file_contents):
25187 Don't call temp_output_buffer_setup--do just part, by hand.
25188
25189 * coding.c (run_pre_post_conversion_on_str):
25190 Don't call temp_output_buffer_setup--do just part, by hand.
25191
25192 * keyboard.c (command_loop_1): Don't call start_hourglass
25193 or cancel_hourglass when executing a macro.
25194
25195 * marker.c (count_markers): New function.
25196
25197 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
25198 grow without limit. Move recently used elements to the front.
25199
25200 2002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
25201
25202 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
25203
25204 2002-04-12 Gerd Moellmann <gerd@gnu.org>
25205
25206 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
25207 rows marginal areas.
25208 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
25209 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
25210
25211 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
25212
25213 2002-04-12 Dave Love <fx@gnu.org>
25214
25215 * dispnew.c (marginal_area_string): New.
25216
25217 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
25218 (Qleft_margin, Qright_margin): Declare.
25219 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
25220
25221 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
25222 note_mode_line_highlight and extended.
25223
25224 * keyboard.c (Qleft_margin, Qright_margin): Declare.
25225 (make_lispy_event): Deal with mouse events in margins.
25226
25227 2002-04-12 Stefan Monnier <monnier@cs.yale.edu>
25228
25229 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
25230
25231 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
25232 than deactivating the mark if tmm is set to `lambda'.
25233 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
25234 Use a single event for HELP_EVENT.
25235 (Fexecute_extended_command): Save last_point_position.
25236
25237 2002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25238
25239 * lisp.h (Fpropertize): Add prototype.
25240
25241 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
25242
25243 2002-04-10 Colin Walters <walters@verbum.org>
25244
25245 * config.in: Add HAVE_SHARED_GAME_DIR.
25246
25247 * callproc.c (Vgame_score_directory): New variable.
25248 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
25249
25250 2002-04-10 Richard M. Stallman <rms@gnu.org>
25251
25252 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
25253
25254 2002-04-09 Stefan Monnier <monnier@cs.yale.edu>
25255
25256 * minibuf.c (read_minibuf): Use empty_string.
25257 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
25258 Short-circuit the search as soon as it "failed".
25259 (Fall_completions): Allow lambda forms and lists of strings for alist.
25260 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
25261 when require_match is nil.
25262 (Ftest_completion): Rename from `test_completion' and export to elisp.
25263 Call the predicate also when alist is a list.
25264 Obey Vcompletion_regexp_list.
25265 (do_completion, Fminibuffer_complete_and_exit): Use it.
25266 (Fassoc_string): Rename from `assoc_for_completion'.
25267 Allow list of strings as well and export to elisp.
25268
25269 2002-04-08 Stefan Monnier <monnier@cs.yale.edu>
25270
25271 * puresize.h (BASE_PURESIZE): Increase to 900KB.
25272
25273 2002-04-08 Juanma Barranquero <lektu@terra.es>
25274
25275 * w32.c (sys_accept): Don't hide variable `s'.
25276
25277 2002-04-05 Gerd Moellmann <gerd@gnu.org>
25278
25279 * callint.c (Fcall_interactively): Use INTEGERP instead of
25280 NUMBERP for checking Vhistory_length.
25281
25282 2002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25283
25284 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
25285 Doc fix to reflect it.
25286
25287 2002-04-04 Richard M. Stallman <rms@gnu.org>
25288
25289 * xdisp.c (display_mode_element): New arg RISKY.
25290 Disregard text props found or specified within a variable
25291 that isn't marked risky-local-variable.
25292 (Qrisky_local_variable): New variable.
25293 (syms_of_xdisp): Init and staticpro it.
25294
25295 2002-04-04 Stefan Monnier <monnier@cs.yale.edu>
25296
25297 * undo.c (record_point): New fun.
25298 (record_delete, record_insert): Use it.
25299
25300 2002-04-03 Juanma Barranquero <lektu@terra.es>
25301
25302 * doc.c (Fdocumentation): Add missing parentheses.
25303 (Fdocumentation_property): Likewise.
25304
25305 2002-04-03 Stefan Monnier <monnier@cs.yale.edu>
25306
25307 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
25308 data is 0, just return nil.
25309
25310 2002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
25311
25312 * msdos.c (syms_of_msdos): Fix last change with
25313 mouse_autoselect_window.
25314
25315 2002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25316
25317 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
25318 mouse_autoselect_window.
25319
25320 2002-04-02 Stefan Monnier <monnier@cs.yale.edu>
25321
25322 * keyboard.c (make_lispy_event): Handle unknown keysyms together
25323 with system-specific keysyms. Use it also for unknown function keys.
25324
25325 * doc.c (reread_doc_file): Return whether reload was attempted.
25326 (Fdocumentation, Fdocumentation_property): Don't try to reload
25327 if the doc is 0 and only ask once.
25328
25329 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
25330
25331 2002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
25332
25333 * keyboard.c (read_char): If the event was Qselect_window,
25334 restore timer_idleness_start_time to its previous value.
25335
25336 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
25337
25338 2002-04-01 Stefan Monnier <monnier@cs.yale.edu>
25339
25340 * region-cache.c (new_region_cache): Use BEG.
25341
25342 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
25343 Use BEG and BEG_BYTE.
25344
25345 * doc.c (get_doc_string): Return nil if the location is wrong.
25346 (reread_doc_file): New fun.
25347 (Fdocumentation, Fdocumentation_property):
25348 Call it if get_doc_string fails.
25349 (Fsnarf_documentation): Make it work for a dumped Emacs.
25350
25351 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
25352 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
25353
25354 * charset.c (Fstring): Allow 0 arguments.
25355
25356 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
25357
25358 * process.c (DATAGRAM_CONN_P, list_processes_1)
25359 (Fprocess_datagram_address, Fset_process_datagram_address)
25360 (Fset_network_process_options, server_accept_connection):
25361 Fix some int/Lisp_Object confusions (thank you union types).
25362
25363 2002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25364
25365 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
25366
25367 * w32term.c: Likewise.
25368 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
25369
25370 * keyboard.c (Qselect_window): New symbol.
25371 (head_table): Use it.
25372 (keys_of_keyboard): Bound select-window event to handle-select-window.
25373 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
25374
25375 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
25376 (last_window): New variable.
25377 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
25378 (note_mouse_movement): Remove reimplemented code in #if 0.
25379 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
25380 Emacs windows.
25381
25382 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
25383
25384 2002-03-31 Gerd Moellmann <gerd@gnu.org>
25385
25386 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
25387 Callers changed.
25388
25389 2002-03-30 Richard M. Stallman <rms@gnu.org>
25390
25391 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
25392 loop whenever it stops making progress.
25393
25394 * widget.c (set_frame_size): Don't call change_frame_size.
25395
25396 2002-03-30 Gerd Moellmann <gerd@gnu.org>
25397
25398 * dispnew.c (direct_output_for_insert):
25399 Call mark_window_display_accurate.
25400
25401 2002-03-29 Jason Rumney <jasonr@gnu.org>
25402
25403 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
25404
25405 2002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
25406
25407 * Makefile.in (lread.o): Depend on coding.h.
25408
25409 * lread.c (openp, Fload): Encode the file name before passing it
25410 to `stat', `access', and `emacs_open'.
25411 (openp): GCPRO the encoded file name. Don't recompute Lisp
25412 strings unnecessarily.
25413
25414 2002-03-29 Kim F. Storm <storm@cua.dk>
25415
25416 * fns.c (Flax_plist_put): Doc fix.
25417
25418 2002-03-28 Miles Bader <miles@gnu.org>
25419
25420 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
25421
25422 2002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25423
25424 * process.c (set-network-process-options): Add usage.
25425 (make-network-process): Doc fix.
25426
25427 2002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
25428
25429 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
25430
25431 2002-03-26 Richard M. Stallman <rms@gnu.org>
25432
25433 * fns.c (Fsubstring_no_properties): New function.
25434 (Flax_plist_get, Flax_plist_put): New functions.
25435 (syms_of_fns): defsubr them.
25436
25437 * xdisp.c (update_menu_bar): Test only update_mode_lines;
25438 don't test or alter w->update_mode_line.
25439
25440 * window.c (Fdisplay_buffer): Doc fix.
25441
25442 2002-03-24 Richard M. Stallman <rms@gnu.org>
25443
25444 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
25445
25446 2002-03-24 Gerd Moellmann <gerd@gnu.org>
25447
25448 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
25449 (Fdefmacro): Handle `(declare ...)'.
25450 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
25451 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
25452
25453 2002-03-24 Jason Rumney <jasonr@gnu.org>
25454
25455 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
25456 (xbm_file_p): Add prototypes.
25457 (xbm_format, xbm_image_p): Sync with xfns.c.
25458 (reflect_byte): New function.
25459 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
25460 (xbm_load_image): Create bitmaps with a depth of 1.
25461 (init_xfns): Enable XBM images.
25462
25463 2002-03-23 Jason Rumney <jasonr@gnu.org>
25464
25465 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
25466 correctly. Do not pass up_modifier to keyboard buffer.
25467
25468 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
25469
25470 2002-03-22 Stefan Monnier <monnier@cs.yale.edu>
25471
25472 * Makefile.in (bootstrapclean): New target.
25473 (bootstrap-temacs, bootstrap-doc): Remove.
25474 (bootstrap-emacs): Use a bog-standard `temacs'.
25475 Don't bother to build a DOC file.
25476
25477 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
25478
25479 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
25480 in temacs even if !CANNOT_DUMP.
25481 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
25482
25483 * alloc.c (check_pure_size): Only output a warning.
25484
25485 2002-03-22 Jason Rumney <jasonr@gnu.org>
25486
25487 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
25488 supported.
25489
25490 * w32term.c (zv_bits): Declare as short, for word alignment.
25491 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
25492 (syms_of_w32term): Define x-use-underline-position-properties.
25493
25494 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
25495 (clear_image_cache): Block input, fix logic, clear matrices in
25496 all frames that share this cache.
25497
25498 2002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
25499
25500 * emacs.c (main): Update the Copyright year in the blurb printed
25501 by "emacs --version".
25502
25503 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
25504
25505 * xterm.c (XTread_socket): If XK_ISO_Lock and
25506 XK_ISO_Last_Group_Lock are defined, handle keysyms between
25507 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
25508
25509 2002-03-21 Kim F. Storm <storm@cua.dk>
25510
25511 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
25512 menu-bar bindings in keymap and local-map properties _are_ used.
25513 But try keymap property first in accordance with 2002-01-03 patch.
25514 Added comment describing why this is not always reliable.
25515 (tool_bar_items): Ditto for tool-bar.
25516
25517 2002-03-21 Jason Rumney <jasonr@gnu.org>
25518
25519 * w32fns.c (x_clear_image_1): Disable color table code.
25520
25521 2002-03-21 Kim F. Storm <storm@cua.dk>
25522
25523 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
25524 removed the wrong version of the DEFUN macro; fixed it.
25525
25526 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
25527 Fmember rather than Fmemq).
25528 (Fprovide): Check that subfeatures is a list.
25529
25530 * process.c (QCfeature, QCdatagram): Removed variables.
25531 (QCtype, Qdatagram): New variables.
25532 (network_process_featurep): Removed function.
25533 (Fmake_network_process): Removed :feature check.
25534 Use :type 'datagram instead of :datagram t to create a datagram
25535 socket. This allows us to add other connection types (e.g. raw
25536 sockets) later in a consistent manner.
25537 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
25538 supported subfeatures for feature make-network-process.
25539 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
25540 Intern and staticpro QCtype and Qdatagram.
25541 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
25542
25543 * xfns.c (QCtype): Remove duplicate declaration and
25544 initialization (is now declared in process.c).
25545
25546 * w32fns.c (QCtype): Remove duplicate declaration and
25547 initialization (is now declared in process.c).
25548
25549 2002-03-21 Richard M. Stallman <rms@gnu.org>
25550
25551 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
25552 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
25553 when jumping to `fail' to avoid undoing reg changes in the
25554 last iteration of the loop.
25555 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
25556
25557 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
25558 Depend on process.h.
25559
25560 2002-03-20 Jason Rumney <jasonr@gnu.org>
25561
25562 Most of the following changes are still conditional on HAVE_IMAGES
25563 which is not set by default on Windows.
25564
25565 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
25566
25567 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
25568 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
25569 (four_corners_best, x_clear_image_1, x_clear_image)
25570 (x_alloc_image_color, postprocess_image)
25571 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
25572 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
25573 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
25574
25575 * w32gui.h (struct XImage): Define.
25576
25577 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
25578 extract mouse co-ordinates.
25579
25580 2002-03-20 Jason Rumney <jasonr@gnu.org>
25581
25582 * w32.c (init_winsock): Dynamically load new server and UDP
25583 socket functions.
25584 (socket_to_fd): New function.
25585 (sys_socket): Use it.
25586 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
25587 (sys_recvfrom, sys_sendto): New wrapper functions.
25588
25589 * process.c (QCfamily, QCfilter): Remove duplicate declaration
25590 and initialization.
25591
25592 * makefile.w32-in (LIBS): Remove $(WSOCK32).
25593
25594 2002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
25595
25596 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
25597 Don't use "sun" as a variable, it's a predefined constant on Sun
25598 machines.
25599
25600 2002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25601
25602 * bytecode.c (Fbyte_code): Revert last change.
25603
25604 2002-03-19 Kim F. Storm <storm@cua.dk>
25605
25606 * makefile.w32-in (LIBS): Add $(WSOCK32).
25607 From David Ponce <dponce@voila.fr>.
25608
25609 2002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25610
25611 * process.c (wait_reading_process_input): Move variables `pname'
25612 and `pnamelen' down where they are used.
25613
25614 * bytecode.c (Fbyte_code): Discard unused computed value to
25615 prevent gcc warning.
25616
25617 * lisp.h (Fplist_member): Add prototype.
25618
25619 2002-03-18 Kim F. Storm <storm@cua.dk>
25620
25621 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
25622 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
25623
25624 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
25625 Remove explicit GNU_LINUX settings for datagram support.
25626
25627 2002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25628
25629 * process.c (Fmake_network_process): Remove unused variable `sa'.
25630 Doc fix. Add usage:.
25631 (set_socket_options): Remove unused variables `optnum' and `opttype'.
25632
25633 2002-03-17 Richard M. Stallman <rms@gnu.org>
25634
25635 * xdisp.c (cursor_type_changed): New variable.
25636 (redisplay_internal): Redisplay all windows if cursor_type_changed.
25637 Clear it when clearing windows_or_buffers_changed.
25638 (try_cursor_movement, redisplay_window, try_window_id)
25639 (try_window_reusing_current_matrix): Test cursor_type_changed
25640 along with windows_or_buffers_changed.
25641
25642 * window.h (cursor_type_changed): New variable.
25643
25644 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
25645 not update_mode_lines, and always set it to 1.
25646
25647 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
25648 if no frames needed redrawing.
25649
25650 2002-03-17 Kim F. Storm <storm@cua.dk>
25651
25652 The following changes add support for network server processes,
25653 datagram connections, and local (unix) sockets.
25654
25655 * process.h (struct Lisp_Process): New member log.
25656 Doc fix: Member command used to indicate stopped network process.
25657 Doc fix: Member childp contains plist for network process.
25658 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
25659
25660 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
25661 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery, QCstop)
25662 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature): New
25663 variables.
25664 (NETCONN1_P): New macro.
25665 (DATAGRAM_SOCKETS): New conditional symbol.
25666 (datagram_address): New array.
25667 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
25668 (status_message): Use concat3.
25669 (Fprocess_status): Add `listen' status to doc string. Return
25670 `stop' for a stopped network process.
25671 (Fset_process_buffer): Update contact plist for network process.
25672 (Fset_process_filter): Ditto. Don't enable input for stopped
25673 network processes. Server must listen, even if filter is t.
25674 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
25675 New functions.
25676 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
25677 (Fprocess_contact): Added KEY argument. Handle datagrams.
25678 (list_processes_1): Optionally show only processes with the query
25679 on exit flag set. Dynamically adjust column widths. Omit tty
25680 column if not needed. Report stopped network processes. Identify
25681 server and datagram network processes.
25682 (Flist_processes): New optional arg `query-only'.
25683 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
25684 (conv_lisp_to_sockaddr, set_socket_options)
25685 (network_process_featurep, unwind_request_sigio): New helper
25686 functions.
25687 (Fprocess_datagram_address, Fset_process_datagram_address):
25688 (Fset_network_process_options): New lisp functions.
25689 (Fopen_network_stream): Removed. Now defined in simple.el.
25690 (Fmake_network_process): New lisp function. Code is based on
25691 previous Fopen_network_stream, but heavily reworked with new
25692 property list based argument list, support for datagrams, server
25693 processes, and local sockets in addition to old client-only
25694 functionality.
25695 (server_accept_connection): New function.
25696 (wait_reading_process_input): Use it to handle incoming connects.
25697 Do not enable input on a new connection if process is stopped.
25698 (read_process_output): Handle datagram sockets. Use 2k buffer for
25699 them.
25700 (send_process): Handle datagram sockets.
25701 (Fstop_process, Fcontinue_process): Apply to network processes. A
25702 stopped network process is indicated by setting command field to t.
25703 (Fprocess_send_eof): No-op if datagram connection.
25704 (Fstatus_notify): Don't read input for a stream server socket or a
25705 stopped network process.
25706 (init_process): Initialize datagram_address array.
25707 (syms_of_process): Intern and staticpro new variables, defsubr new
25708 functions.
25709
25710 2002-03-16 Jason Rumney <jasonr@gnu.org>
25711
25712 * w32fns.c (w32_to_all_x_charsets): Return correct type in
25713 startup case.
25714
25715 2002-03-16 Richard M. Stallman <rms@gnu.org>
25716
25717 * xdisp.c (redisplay_internal, redisplay_windows):
25718 Use list_of_error to call internal_condition_case_1.
25719 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
25720 so as to catch all errors with no possibility of debugger redisplay.
25721 (list_of_error): New variable.
25722 (syms_of_xdisp): Init and staticpro it.
25723
25724 * print.c (print_object): Delete `\ ' from printed rep of frame.
25725
25726 2002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
25727
25728 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
25729 until its implementation is fixed.
25730
25731 2002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25732
25733 * xfns.c (png_load): Remove unused variable `gamma_str'.
25734
25735 2002-03-14 Richard M. Stallman <rms@gnu.org>
25736
25737 * xfns.c (x_real_positions): Handle failure in XQueryTree.
25738
25739 2002-03-14 Miles Bader <miles@gnu.org>
25740
25741 * intervals.c (adjust_for_invis_intang): New function.
25742 (set_point_both): Use `adjust_for_invis_intang' to do most of the
25743 work for dealing with invisible+intangible regions. Do so before
25744 and after both forward and backward movements, to handle both
25745 front-sticky and rear-sticky cases.
25746 * textprop.c (text_property_stickiness): Function moved here from
25747 `editfns.c'.
25748 * intervals.h (text_property_stickiness): New declaration.
25749 * editfns.c (char_property_eq): Function removed.
25750 (text_property_stickiness): Function moved to `textprop.c'.
25751
25752 2002-03-13 Jason Rumney <jasonr@gnu.org>
25753
25754 * config.in: Add STRFTIME_NO_POSIX2.
25755
25756 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
25757 and %OX when underlying strftime does not.
25758
25759 2002-03-13 Stefan Monnier <monnier@cs.yale.edu>
25760
25761 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
25762 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
25763 line) to avoid annoying flicker.
25764 (xm_scroll_callback): Get rid of the now unnecessary kludge.
25765 (XTread_socket): Mark it static.
25766
25767 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
25768
25769 2002-03-13 Kim F. Storm <storm@cua.dk>
25770
25771 * puresize.h (BASE_PURESIZE): Increase to 775000.
25772
25773 2002-03-12 Juanma Barranquero <lektu@terra.es>
25774
25775 * editfns.c (syms_of_editfns): Fix typo.
25776
25777 2002-03-12 Gerd Moellmann <gerd@gnu.org>
25778
25779 * xsmfns.c: Include stdio.h because termhooks.h needs it.
25780 Include termopt.h for interrupt_input.
25781
25782 2002-03-11 Andreas Schwab <schwab@suse.de>
25783
25784 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
25785
25786 2002-03-11 Gerd Moellmann <gerd@gnu.org>
25787
25788 * xterm.c (note_mouse_movement): Put code for
25789 x_autoselect_window_p in #if 0.
25790
25791 * lread.c (Fload): Don't assume that message_with_string uses the
25792 string it is given like a C string.
25793
25794 2002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
25795
25796 * xterm.h (x_session_check_input, x_session_initialize): Declare.
25797
25798 * xterm.c (XTread_socket): Add call to x_session_check_input and
25799 x_session_have_connection.
25800 (x_initialize): Add call to x_session_initialize.
25801
25802 * termhooks.h (enum event_kind): Add save_session_event.
25803
25804 * keyboard.c: Add Emacs event save_session_event.
25805
25806 * emacs.c (main): Add call to syms_of_xsmfns.
25807
25808 * lisp.h (syms_of_xsmfns): Declare extern.
25809
25810 * config.in: Add HAVE_X_SM.
25811
25812 * Makefile.in (LIBXT): Add -lSM -lICE
25813 if HAVE_X_SM and not USE_X_TOOLKIT.
25814 (XOBJ): New file xsmfns.c added.
25815
25816 * xsmfns.c: New file for X session management.
25817
25818 2002-03-09 Jason Rumney <jasonr@gnu.org>
25819
25820 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
25821 read-only when setting modified time.
25822
25823 2002-03-08 Gerd Moellmann <gerd@gnu.org>
25824
25825 * xdisp.c (move_it_vertically_backward): At the end of the function,
25826 when moving forward by lines, treat terminal frames specially.
25827
25828 * keyboard.c (echo_char): Make sure to add a separator between
25829 keys even if echo_dash hasn't been called.
25830
25831 * xdisp.c: Use new string macros.
25832 (update_echo_area): Pass number of bytes to message3 instead of
25833 number of chars.
25834 (set_message_1): Don't access a string's size_byte directly.
25835 (decode_mode_spec_coding): Use number of bytes of eoltype string
25836 instead number of chars.
25837
25838 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
25839
25840 2002-03-08 Juanma Barranquero <lektu@terra.es>
25841
25842 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
25843 24-bit.
25844
25845 2002-03-06 Jason Rumney <jasonr@gnu.org>
25846
25847 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
25848
25849 2002-03-06 Gerd Moellmann <gerd@gnu.org>
25850
25851 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
25852 (cancel_echoing, echo_length, echo_truncate): Changed to
25853 work with new kboard definition.
25854 (echo_now): Use message3_nolog instead of message2_nolog.
25855
25856 * alloc.c (mark_kboards): Mark echo_string.
25857
25858 * keyboard.h (ECHOBUFSIZE): Removed.
25859 (struct kboard): Member echoptr removed, member echobuf renamed
25860 to echo_string.
25861
25862 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
25863 message3 instead of message2 to display the message using STRING's
25864 text properties.
25865
25866 2002-03-05 Andreas Schwab <schwab@suse.de>
25867
25868 * xdisp.c (hscroll_margin): Change to EMACS_INT.
25869
25870 2002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
25871
25872 * frame.c (default-frame-alist): Explain that setting it doesn't
25873 affect existing frames.
25874
25875 2002-03-05 Stefan Monnier <monnier@cs.yale.edu>
25876
25877 * indent.c (skip_invisible): Fix my brain fart.
25878
25879 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
25880
25881 2002-03-04 Stefan Monnier <monnier@cs.yale.edu>
25882
25883 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
25884 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
25885 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
25886 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
25887 and variables to use EMACS_INT instead of just int.
25888
25889 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
25890
25891 2002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
25892
25893 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
25894 environment, pass it down with corrected value.
25895
25896 2002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25897
25898 * lread.c (read_filtered_event): Do not call start_hourglass
25899 before returning.
25900
25901 2002-03-04 Juanma Barranquero <lektu@terra.es>
25902
25903 * w32term.c (x_display_and_set_cursor): Fix typo.
25904
25905 2002-03-03 Richard M. Stallman <rms@gnu.org>
25906
25907 * fileio.c (Fmake_temp_name): Doc fix.
25908
25909 2002-03-03 Gary Wong <gtw@gnu.org>
25910
25911 * termcap.c [!emacs]: Replace ospeed for building standalone
25912 libtermcap, for binary compatibility.
25913
25914 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
25915
25916 2002-03-03 Richard M. Stallman <rms@gnu.org>
25917
25918 * xrdb.c (file_p): Rename arg `path' to `filename'.
25919
25920 * abbrev.c (Fexpand_abbrev): Increment plist as use count
25921 only if it is an integer.
25922
25923 * xfns.c (png_load): Set screen_gamma based on f->gamma.
25924 If png_get_sRGB gives an answer, call png_set_gamma
25925 using the default image gamma value.
25926
25927 * lread.c (read1): When reading from a file, default string to
25928 multibyte only if it has some multibyte characters.
25929
25930 * print.c (print_object): Output multibyte chars 128...255
25931 using \x even if ! print_escape_multibyte.
25932
25933 * xdisp.c (display_mode_element): Move the places where
25934 bytepos, charpos, this, and lisp_string are set.
25935 Use lisp_string to set bytepos.
25936
25937 * xdisp.c (redisplay_internal):
25938 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
25939
25940 * xdisp.c (display_mode_element): Merge properties specified with
25941 :propertize onto those that come with the string.
25942
25943 2002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
25944
25945 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
25946 automatic-hscrolling. Users changed.
25947 <hscroll-margin>: Renamed from automatic-hscroll-margin.
25948 Users changed.
25949 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
25950
25951 2002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
25952
25953 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
25954
25955 2002-03-02 Kim F. Storm <storm@cua.dk>
25956
25957 * window.c (Fminibuffer_selected_window): New function.
25958 (syms_of_window): Defsubr it.
25959
25960 2002-03-01 Kim F. Storm <storm@cua.dk>
25961
25962 * window.h (struct window): New member phys_cursor_width.
25963
25964 * window.c (make_window, replace_window): Init phys_cursor_width.
25965
25966 * xterm.c (x_display_and_set_cursor): Blink box cursor using
25967 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
25968
25969 * w32term.c (x_display_and_set_cursor): Blink box cursor using
25970 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
25971
25972 * lisp.h (GCPRO6): New macro.
25973
25974 * process.c (Fopen_network_stream): Use GCPRO6.
25975
25976 2002-03-01 Kim F. Storm <storm@cua.dk>
25977
25978 * process.c (Qconnect, Qfailed): New variables.
25979 (syms_of_process): Intern and staticpro them.
25980 (Fprocess_status): Document connect and failed return values.
25981 [NON_BLOCKING_CONNECT]: New conditional.
25982 (connect_wait_mask, num_pending_connects): New variables.
25983 (status_message): Convert Qfailed status.
25984 (Fopen_network_stream): Added support for non-blocking connect.
25985 New optional args: filter, sentinel, non_blocking. Doc updated.
25986 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
25987 (deactivate_process): Handle pending non-blocking connect.
25988 (wait_reading_process_input): Poll for status of non-blocking
25989 connects. Exec sentinel directly when connect succeeds.
25990 (status_notify): Don't read process output if not yet connected.
25991
25992 2002-02-28 Kim F. Storm <storm@cua.dk>
25993
25994 * window.c (minibuf_selected_window): Renamed from
25995 Vminibuf_selected_window. Users changed.
25996 (syms_of_window): Staticpro it.
25997
25998 2002-02-26 Kim F. Storm <storm@cua.dk>
25999
26000 The following changes add a new Vminibuf_selected_window variable
26001 which is similar to Vminibuf_scroll_window, but which is only set
26002 on entry to the minibuffer (from a non-minibuffer window):
26003
26004 * window.c (Vminibuf_selected_window): New variable.
26005 (struct save_window_data): New member minibuf_selected_window.
26006 (Fset_window_configuration): Restore Vminibuf_selected_window.
26007 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
26008 Set minibuf_scroll_window member to nil if minibuf_level is 0.
26009 (compare_window_configurations): Compare minibuf_selected_window.
26010
26011 * window.h (Vminibuf_selected_window): Declare extern.
26012
26013 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
26014 entry to minibuffer or on entry from a non-minibuffer window.
26015
26016 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
26017 Vminibuf_selected_window instead of Vminibuf_scroll_window.
26018
26019 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
26020 instead of Vminibuf_scroll_window when deciding in which window
26021 the region should be highlighted. Consequently, the region remains
26022 highlighteded even when a completion buffer is also displayed.
26023
26024 2002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
26025
26026 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
26027
26028 * xselect.c (Qcompound_text_with_extensions): Renamed from
26029 Qcompound_text_no_extensions.
26030 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
26031
26032 2002-02-26 Juanma Barranquero <lektu@terra.es>
26033
26034 * w32proc.c (syms_of_ntproc): Doc fix.
26035
26036 2002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
26037
26038 * intervals.h: Include "dispextern.h" unconditionally.
26039
26040 2002-02-24 Jason Rumney <jasonr@gnu.org>
26041
26042 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
26043 and disp-table.elc.
26044 (lisp): Add emacs-lisp/backquote.elc.
26045
26046 2002-02-24 Kim F. Storm <storm@cua.dk>
26047
26048 * keymap.c (Flookup_key): Fix problem in 2001-12-28 patch:
26049 The validation of the event type was too strict as it didn't
26050 allow string events; buffer names are used in bindings for
26051 menu-bar-select-buffer (see `menu-bar-update-buffers').
26052
26053 2002-02-23 Kim F. Storm <storm@cua.dk>
26054
26055 The following changes rework my patch of 2002-02-06 which
26056 added command remapping by entering the commands directly into
26057 the keymaps. Now, command remapping uses an explicit `remap'
26058 prefix in the keymaps, i.e. [remap COMMAND].
26059
26060 * keymap.c (Qremap, remap_command_vector): New variables.
26061 (is_command_symbol): Remove function.
26062 (Fdefine_key): No longer accept a symbol for KEY.
26063 Added validation of [remap COMMAND] argument for KEY.
26064 The DEF is no longer required to be a symbol when remapping a command.
26065 (Fremap_command): New function to remap command through keymaps.
26066 (Flookup_key): Perform command remapping initiated by
26067 Fremap_command directly for speed.
26068 (Fkey_binding): Use Fremap_command for command remapping.
26069 (where_is_internal): Handle new command remapping representation.
26070 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
26071 staticpro them. Defsubr Fremap_command.
26072
26073 * keymap.h (Fremap_command): Declare extern.
26074 (is_command_symbol): Remove extern.
26075
26076 * keyboard.c (command_loop_1): Use Fremap_command for command
26077 remapping; now try command remapping for all symbols.
26078
26079 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
26080
26081 * coding.h (run_pre_post_conversion_on_str): Add prototype.
26082
26083 2002-02-23 Jason Rumney <jasonr@gnu.org>
26084
26085 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
26086 on the string before encoding it.
26087 (Fw32_get_clipboard_data): Run post-read-conversion on the string
26088 after decoding it.
26089
26090 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
26091
26092 2002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
26093
26094 * w32term.c (enter_timestamp): Remove unused static variable to
26095 prevent warning.
26096
26097 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
26098
26099 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
26100
26101 * w16select.c (Fw16_get_clipboard_data): Fix last change.
26102
26103 * xselect.c (selection_data_to_lisp_data): Fix last change.
26104
26105 2002-02-22 Jason Rumney <jasonr@gnu.org>
26106
26107 * w32term.h (struct w32_output): New member menu_command_in_progress.
26108
26109 * w32menu.c (menubar_selection_callback): Free the menu and
26110 clear the menu_command_in_progress flag.
26111
26112 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
26113 (menu_free_timer): New variable.
26114 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
26115 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
26116 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
26117 menu command is in progress.
26118 <WM_COMMAND>: Set the menu_command_in_progress flag.
26119 Kill any menu_free_timer that is running.
26120
26121 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
26122 Call ExtTextOutA rather than ExtTextOut.
26123
26124 2002-02-22 Eli Zaretskii <eliz@gnu.org>
26125
26126 * puresize.h (BASE_PURESIZE): Increase to 755000.
26127
26128 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
26129
26130 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
26131 on the string before encoding it.
26132 (Fw16_get_clipboard_data): Run post-read-conversion on the string
26133 after decoding it.
26134
26135 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
26136
26137 Support for ICCCM Extended Segments in X selections:
26138
26139 * xselect.c <Qcompound_text_no_extensions>: New variable.
26140 (syms_of_xselect): Intern and staticpro it.
26141 (selection_data_to_lisp_data): Run post-read-conversion on decoded
26142 selection text.
26143 (lisp_data_to_selection_data): If next-selection-coding-system is
26144 compound-text-no-extensions, set the type of selection to be
26145 compound-text.
26146
26147 * xterm.h (x_encode_text): Update prototype.
26148
26149 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
26150 callers changed. If SELECTIONP is non-zero, run the
26151 pre-write-conversion function before encoding the selection text.
26152
26153 2002-02-21 Kim F. Storm <storm@cua.dk>
26154
26155 * frame.c (syms_of_frame): Change mouse-highlight default to t.
26156
26157 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
26158 Correct composing of language-change event.
26159
26160 2002-02-20 Kim F. Storm <storm@cua.dk>
26161
26162 * keyboard.c (menu_bar_items): Don't include keymap or local-map
26163 bindings at PT when building menu (the menu is not updated often
26164 enough for this to work reliable).
26165 (tool_bar_items): Likewise.
26166 (current_active_maps): Removed unused (and buggy) function.
26167
26168 2002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
26169
26170 * xfns.c (gif_load): Use correct width and height for GIF images.
26171
26172 2002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
26173
26174 * floatfns.c (Fatan): Accept an optional second arg and call
26175 atan2 if passed 2 args.
26176
26177 2002-02-18 Jason Rumney <jasonr@gnu.org>
26178
26179 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
26180
26181 2002-02-17 Jason Rumney <jasonr@gnu.org>
26182
26183 * w32term.c (x_autoselect_window_p): New variable.
26184 (syms_of_w32term): DEFVAR_BOOL and initialize it.
26185 (note_mouse_movement): Use it.
26186
26187 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
26188
26189 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
26190
26191 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
26192 New variables.
26193 (syms_of_w32fns): Intern and staticpro them.
26194 (x_frame_parms) <"fullscreen">: New parameter.
26195 (x_fullscreen_move, x_set_fullscreen): New functions.
26196 (x_set_frame_parameters): Support Qfullscreen.
26197 (x_real_positions): Save x/y_pixels_diff frame params.
26198 (x_figure_window_size): Support full-screen frames.
26199 (Fx_create_frame): Default the fullscreen parameter.
26200
26201 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
26202 (x_fullscreen_adjust): New functions.
26203 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
26204 fullscreen. Call x_check_fullscreen_move, and set the
26205 want_fullscreen member of output_data.w32
26206 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
26207
26208 * w32term.h: New enum for FULLSCREEN_* constants.
26209 (struct w32_output): New members want_fullscreen, x_pixels_diff,
26210 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
26211 (x-fullscreen-adjust): New prototype.
26212
26213 2002-02-17 Kim F. Storm <storm@cua.dk>
26214
26215 * frame.c (Vmouse_highlight): New variable.
26216 (syms_of_frame): DEFVAR_LISP it.
26217
26218 * frame.h (Vmouse_highlight): Declare extern.
26219
26220 * xterm.h (struct x_display_info): Add mouse_face_hidden.
26221
26222 * xterm.c (disable_mouse_highlight): Removed variable.
26223 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
26224 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
26225 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
26226 and on after keyboard input.
26227 (x_term_init): Initialize mouse_face_hidden.
26228
26229 * msdos.h (struct display_info): Add mouse_face_hidden.
26230
26231 * msdos.c (disable_mouse_highlight): Removed variable.
26232 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
26233 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
26234 (internal_terminal_init): Initialize mouse_face_hidden.
26235 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
26236 and on after keyboard input.
26237
26238 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
26239
26240 * w32term.c (disable_mouse_highlight): Removed variable.
26241 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
26242 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
26243 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
26244 and on after keyboard input.
26245 (w32_initialize_display_info): Initialize mouse_face_hidden.
26246
26247 2002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
26248
26249 * msdos.c (last_mouse_window): New variable.
26250 (dos_rawgetc): Fix last change--if the mouse is in the same window
26251 as recorded in last_mouse_window, don't select this window.
26252
26253 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
26254
26255 * msdos.c (x_autoselect_window_p): New variable.
26256 (syms_of_msdos): Defvar it.
26257 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
26258 which the last mouse movement occured, unless it is already selected.
26259
26260 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
26261 New variables.
26262 (syms_of_xdisp): DEVFAR them.
26263 (hscroll_window_tree): Use automatic_hscroll_margin and
26264 Vautomatic_hscroll_step to compute the amount of window scrolling.
26265
26266 2002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
26267
26268 * xterm.c (x-autoselect-window): New variable.
26269 (note_mouse_movement): Use it.
26270
26271 * keyboard.c: Do not include "systime.h" twice.
26272
26273 2002-02-15 Andreas Schwab <schwab@suse.de>
26274
26275 * puresize.h (PURESIZE_RATIO): Increase to 9/5.
26276
26277 * alloc.c (NSTATICS): Increase to 1280.
26278
26279 2002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
26280
26281 * alloc.c (NSTATICS): Bump to 1026.
26282
26283 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
26284 (Vx_super_keysym): New variables.
26285 (syms_of_xterm): DEFVAR_LISP them.
26286 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
26287 variables to determine which keys to use for the various modifiers.
26288
26289 2002-02-13 Kim F. Storm <storm@cua.dk>
26290
26291 * window.c (Vmode_line_in_non_selected_windows): Removed.
26292 (mode_line_in_non_selected_windows): New variable.
26293 (syms_of_window): DEFVAR_BOOL it.
26294
26295 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
26296 Use mode_line_in_non_selected_windows.
26297 (mode_line_in_non_selected_windows): Declare extern.
26298 (Vmode_line_in_non_selected_windows): Removed extern.
26299
26300 2002-02-13 Richard M. Stallman <rms@gnu.org>
26301
26302 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
26303 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
26304 (Fclear_this_command_keys): Doc fixes.
26305
26306 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
26307 (update_face_from_frame_parameter): Increment face_change_count
26308 and windows_or_buffers_changed to force redisplay using changed faces.
26309
26310 * xdisp.c (QCpropertize): New variable.
26311 (mode_line_proptrans_alist): New variable.
26312 (display_mode_element): New arg PROPS; all calls changed.
26313 Implement this, for strings.
26314 Handle literal output of strings by sharing the
26315 main-line code for strings, using local var `literal'.
26316 Handle :propertize feature.
26317 (syms_of_xdisp): Initialze and staticpro QCpropertize and
26318 mode_line_proptrans_alist.
26319
26320 2002-02-11 Kim F. Storm <storm@cua.dk>
26321
26322 * window.c (Vmode_line_in_non_selected_windows): New variable.
26323 (syms_of_window): DEFVAR_LISP it.
26324
26325 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
26326 (CURRENT_MODE_LINE_FACE_ID): Use it.
26327 (Vmode_line_in_non_selected_windows): Declare extern.
26328
26329 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
26330 to get mode line face.
26331
26332 2002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
26333
26334 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
26335 variables; cus-start.el doesn't need them anymore.
26336
26337 2002-02-09 Kim F. Storm <storm@cua.dk>
26338
26339 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
26340 reduction. This fixes a display problem where stray newlines were
26341 inserted in the window (corrected by C-l). Clarified code (IMHO).
26342
26343 2002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
26344
26345 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
26346
26347 * xdisp.c (display_mode_lines): Fix last change.
26348
26349 2002-02-09 Jason Rumney <jasonr@gnu.org>
26350
26351 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
26352 match each other.
26353 (w32_load_system_font): Prevent Cleartype fonts from loading.
26354 (Fx_show_tip): Ensure tip frames are above other topmost windows.
26355
26356 2002-02-09 Kim F. Storm <storm@cua.dk>
26357
26358 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
26359 (CURRENT_MODE_LINE_HEIGHT): Use it.
26360 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
26361
26362 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
26363 (pos_visible_p, handle_face_prop): Likewise.
26364 (display_mode_lines): Likewise, but for the real selected window.
26365 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
26366
26367 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
26368 in non-selected windows.
26369 (realize_basic_faces): Realize it.
26370 (syms_of_term): Intern and staticpro it.
26371
26372 2002-02-08 Kim F. Storm <storm@cua.dk>
26373
26374 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
26375 Changed mail addresses to emacs-devel@gnu.org.
26376
26377 2002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
26378
26379 * fileio.c (Fsubstitute_in_file_name): If the file name includes
26380 ~user, and there's no such user, don't discard everything before ~user.
26381
26382 * floatfns.c (Fround): Doc fix.
26383
26384 2002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
26385
26386 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
26387
26388 2002-02-07 Stefan Monnier <monnier@cs.yale.edu>
26389
26390 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
26391
26392 2002-02-07 Kim F. Storm <storm@cua.dk>
26393
26394 * keymap.c (where_is_internal): Only check whether definition is
26395 remapped if it fulfills is_command_symbol.
26396
26397 2002-02-07 Andreas Schwab <schwab@suse.de>
26398
26399 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
26400
26401 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
26402
26403 2002-02-06 Kim F. Storm <storm@cua.dk>
26404
26405 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
26406 defining command remapping. Doc updated.
26407 (Flookup_key): Remap command through keymap if KEY is a symbol.
26408 (is_command_symbol): New function.
26409 (Fkey_binding): Use it. New optional argument NO-REMAP.
26410 Doc updated. Callers changed. Perform command remapping via
26411 recursive call unless that arg is non-nil.
26412 (where_is_internal): New argument no_remap. Callers changed.
26413 Call recursively to find original key bindings for a remapped
26414 comand unless that arg is non-nil.
26415 (Fwhere_is_internal): New optional argument NO-REMAP.
26416 Doc updated. Callers changed. Pass arg to where_is_internal.
26417
26418 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
26419 (is_command_symbol): Add prototype.
26420
26421 * keyboard.c (Vthis_original_command): New variable.
26422 (syms_of_keyboard): DEFVAR_LISP it.
26423 (command_loop_1): Set it, and perform command remapping.
26424
26425 2002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
26426
26427 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
26428
26429 2002-02-06 Jason Rumney <jasonr@gnu.org>
26430
26431 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
26432
26433 2002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
26434
26435 * charset.c (get_charset_id): Use if-else instead of ?:.
26436
26437 2002-02-06 Richard M. Stallman <rms@gnu.org>
26438
26439 * filelock.c (S_ISLNK): Define if not defined.
26440
26441 2002-02-03 Richard M. Stallman <rms@gnu.org>
26442
26443 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
26444
26445 * lread.c (read1): Redesign strategy for force_multibyte and
26446 force_singlebyte. Now is_multibyte records whether read_buffer
26447 is multibyte. Encountering any multibyte character makes it so.
26448
26449 2002-02-02 Stefan Monnier <monnier@cs.yale.edu>
26450
26451 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
26452 with the same sequence, map that sequence to f10 rather than f0.
26453
26454 2002-02-03 Andreas Schwab <schwab@suse.de>
26455
26456 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
26457 latter never being defined on GNU/Linux.
26458
26459 2002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
26460
26461 * xfaces.c (realize_default_face): Don't set the weight and slant of
26462 the default face to Qnormal, unless these attributes are unspecified.
26463
26464 2002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
26465
26466 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
26467 Call cancel_hourglass unconditionally.
26468
26469 * eval.c (Fsignal): Remove duplicated declaration of
26470 the variable `display_hourglass_p'.
26471
26472 2002-01-31 Richard M. Stallman <rms@gnu.org>
26473
26474 * editfns.c (region_limit): Nicer error message.
26475
26476 * coding.c (decode_composition_emacs_mule):
26477 Give up if NCOMPONENT gets too large to index `component'.
26478
26479 * callint.c (check_mark): New arg to specify clearer error message.
26480 Callers changed.
26481
26482 2002-01-27 Richard M. Stallman <rms@gnu.org>
26483
26484 * minibuf.c (Fcompleting_read): Doc fix.
26485
26486 2002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
26487
26488 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
26489 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
26490 Fix doc-strings.
26491
26492 2002-01-26 Richard M. Stallman <rms@gnu.org>
26493
26494 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
26495
26496 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
26497 and scroll_up_aggressively.
26498
26499 2002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
26500
26501 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
26502
26503 2002-01-25 Stefan Monnier <monnier@cs.yale.edu>
26504
26505 * textprop.c (Fnext_property_change, Fnext_single_property_change)
26506 (Fprevious_property_change, Fprevious_single_property_change):
26507 Stay within the narrowed-buffer boundaries.
26508
26509 2002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
26510
26511 * term.c (Ftty_display_color_cells): New function.
26512 (syms_of_term): Defsubr it.
26513 (Ftty_display_color_cells, Ftty_display_color_p): Change the
26514 argument name to DISPLAY. Doc fix.
26515
26516 * dispextern.h: Add prototype for set_tty_color_mode and
26517 tty_setup_colors.
26518
26519 2002-01-24 Jason Rumney <jasonr@gnu.org>
26520
26521 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
26522 If region left to draw is not what was expected, mark the frame as
26523 garbaged.
26524
26525 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
26526 Combine the regions returned by BeginPaint and GetUpdateRect.
26527
26528 2002-01-23 Jason Rumney <jasonr@gnu.org>
26529
26530 * w32term.c (x_update_window_begin): Only hide caret if
26531 w32_use_visible_system_caret is set.
26532 (x_update_window_end): Only show caret if
26533 w32_use_visible_system_caret is set.
26534 (syms_of_w32term): Handle SystemParametersInfo call failing.
26535
26536 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
26537
26538 2002-01-22 Richard M. Stallman <rms@gnu.org>
26539
26540 * unexelf.c (unexec): Define n so as to cause compilation error
26541 for the code where people have often written n instead of nn.
26542
26543 * .gdbinit (hookpost-run): Defined.
26544
26545 2002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
26546
26547 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
26548
26549 2002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
26550
26551 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
26552 if fullscreen is being set.
26553
26554 2002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
26555
26556 * minibuf.c (Fminibuffer_contents)
26557 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
26558 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
26559
26560 2002-01-21 Richard M. Stallman <rms@gnu.org>
26561
26562 * window.c (check_frame_size): Fix minimum height calculation.
26563
26564 2002-01-20 Ken Raeburn <raeburn@gnu.org>
26565
26566 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
26567 height before comparison.
26568 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
26569
26570 2002-01-20 Jason Rumney <jasonr@gnu.org>
26571
26572 * w32term.c (w32_system_caret_width): Remove.
26573 (w32_use_visible_system_caret): New user flag.
26574 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
26575 Windows reports a screen reader running.
26576 (x_update_window_begin): Hide the system caret.
26577 (x_update_window_end): Show the system caret.
26578 (x_display_and_set_cursor): Don't draw a cursor when
26579 w32_use_visible_system_caret is set. Do not adjust width.
26580
26581 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
26582 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
26583 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
26584 the user requests it. Use system default width when creating.
26585 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
26586
26587 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
26588 New window messages.
26589
26590 2002-01-20 Richard M. Stallman <rms@gnu.org>
26591
26592 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
26593
26594 2002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
26595
26596 * doprnt.c (doprnt1): Fix typos in error call.
26597
26598 2002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
26599
26600 * unexelf.c (unexec) [__sgi]: Support the .got sections.
26601
26602 2002-01-20 Jason Rumney <jasonr@gnu.org>
26603
26604 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
26605 that Windows returns. If a double check fails, try to guess how
26606 ExtTextOut is going to act.
26607
26608 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
26609 in place of stricmp.
26610 (w32_list_synthesized_fonts): Removed.
26611 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
26612 (struct enumfont_t): New element; list.
26613 (enum_font_cb2): List all style and charset variations of a font.
26614 (Fw32_select_font): New optional argument; include_proportional.
26615 Exclude vertical fonts. Exclude proportional fonts unless
26616 include_proportional is non-nil.
26617 (w32_enable_synthesized_fonts): Change to a boolean.
26618 (Fw32_send_sys_command): Doc fix.
26619
26620 2002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
26621
26622 * dispnew.c (update_frame): Move the variable `tem' to the block
26623 where it is used.
26624
26625 2002-01-19 Jason Rumney <jasonr@gnu.org>
26626
26627 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
26628 call to face-set-after-frame-default.
26629
26630 2002-01-18 Richard M. Stallman <rms@gnu.org>
26631
26632 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
26633 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
26634
26635 2002-01-17 Richard M. Stallman <rms@gnu.org>
26636
26637 * window.c (enlarge_window): When exceeding size of parent,
26638 directly delete all the siblings instead of trying to resize it.
26639
26640 2002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
26641
26642 * term.c (set_tty_color_mode): Remove unused variable `tem'.
26643
26644 2002-01-16 Henrik Enberg <henrik@enberg.org>
26645
26646 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
26647
26648 2002-01-16 Kim F. Storm <storm@cua.dk>
26649
26650 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
26651 is invisible. This can happen if cursor is on top line of a
26652 window, and we switch to a buffer with a header line.
26653
26654 * w32term.c (x_erase_phys_cursor): Ditto.
26655
26656 2002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
26657
26658 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
26659 `dont_resize' only when used.
26660
26661 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
26662
26663 2002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
26664
26665 * xdisp.c (display_mode_element): When computing charpos, depend
26666 on multibyteness of elt, not the text in field.
26667
26668 2002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
26669
26670 * buffer.c (Fkill_all_local_variables):
26671 Increment `update_mode_lines' only once.
26672
26673 2002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
26674
26675 * lisp.h (adjust_after_replace_noundo)
26676 (Fupdate_coding_systems_internal): Add prototypes.
26677
26678 * sound.c (Fplay_sound): Initialize header_size also for :data case.
26679
26680 2002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
26681
26682 Support for the --color command-line argument and tty-color-mode
26683 frame parameter:
26684
26685 * term.c (tty_default_color_capabilities, tty_setup_colors)
26686 (set_tty_color_mode): New functions.
26687 (term_init): Call tty_default_color_capabilities.
26688 (Qtty_color_mode_alist): New variable.
26689 (syms_of_term): Intern and staticpro it.
26690
26691 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
26692 frames.
26693 (do_switch_frame): For termcap frames, switch the tty
26694 color mode as specified by the frame's parameters.
26695 (Qtty_color_mode): New variable.
26696 (syms_of_frame): Intern and staticpro it.
26697
26698 * emacs.c (USAGE2): Add the --color option.
26699 (standard_args): Ditto.
26700
26701 2002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
26702
26703 * xterm.h (struct x_output): New members want_fullscreen,
26704 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
26705 y_pixels_outer_diff.
26706 New enum for FULLSCREEN_* constants.
26707 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
26708 is NULL.
26709 (x_fullscreen_adjust): Add prototype.
26710
26711 * emacs.c (USAGE2): Add the new full-screen arguments.
26712 (standard_args): Ditto.
26713
26714 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
26715 New variables.
26716 (syms_of_xfns): Intern and staticpro them.
26717 (x_frame_parms) <"fullscreen">: New parameter.
26718 (x_fullscreen_move, x_set_fullscreen): New functions.
26719 (x_set_frame_parameters): Support for Qfullscreen.
26720 (x_real_positions): More accurate computation of the frame position.
26721 (x_figure_window_size): Support full-screen frames.
26722 (Fx_create_frame): Default the fullscreen parameter.
26723
26724 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
26725 (XTread_socket) <Expose>: Call x_check_fullscreen.
26726 <ConfigureNotify>: Don't resize to fullscreen.
26727 Call x_check_fullscreen_move, and set the want_fullscreen member of
26728 output_data.x.
26729
26730 2002-01-13 Jason Rumney <jasonr@gnu.org>
26731
26732 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
26733 for mice with more than 3 buttons.
26734
26735 * w32term.c (parse_button): New parameter xbutton. Callers changed.
26736 (w32_read_socket): Handle new "XBUTTON" messages.
26737
26738 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
26739 (syms_of_w32fns): DEFVAR_BOOL it.
26740 (w32_wnd_proc): Handle new "XBUTTON" messages.
26741
26742 2002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
26743
26744 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
26745
26746 2002-01-13 Andreas Schwab <schwab@suse.de>
26747
26748 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
26749
26750 2002-01-12 Andreas Schwab <schwab@suse.de>
26751
26752 * .gdbinit (xbuffer): Remove address operator since data is now a
26753 pointer.
26754
26755 2002-01-11 Richard M. Stallman <rms@gnu.org>
26756
26757 * insdel.c (adjust_after_replace_noundo): New function.
26758
26759 * coding.c (code_convert_region): Don't copy old text if undo disabled.
26760
26761 2002-01-09 Jason Rumney <jasonr@gnu.org>
26762
26763 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
26764 when checking for multiple frames.
26765
26766 2002-01-08 Richard M. Stallman <rms@gnu.org>
26767
26768 * window.c (delete_window): Rewrite the code for changing the
26769 selected window to handle the case where WINDOW is not a leaf.
26770
26771 2002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
26772
26773 * process.c (send_process): Set src_multibyte to 1 after the call
26774 top setup_coding_system, not before the call.
26775
26776 2002-01-07 Jason Rumney <jasonr@gnu.org>
26777
26778 * xmenu.c (set_frame_menubar, xmenu_show):
26779 (xdialog_show): Initialize wv->help to Qnil.
26780
26781 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
26782 (w32_dialog_show): Initialize wv->help to Qnil.
26783
26784 2002-01-06 Jason Rumney <jasonr@gnu.org>
26785
26786 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
26787
26788 * w32menu.c (w32_menu_display_help): Revert last change.
26789
26790 * xmenu.c (menu_highlight_callback): Revert last change.
26791
26792 2002-01-06 Andreas Schwab <schwab@suse.de>
26793
26794 * insdel.c (make_gap_larger): Make sure buffer size does not
26795 overflow range of int.
26796
26797 2002-01-05 Jason Rumney <jasonr@gnu.org>
26798
26799 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
26800 OVERLAPS_P.
26801
26802 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
26803
26804 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
26805 to the left or to the right of the pointer, put it against
26806 the left screen edge.
26807 (x_frame_parms): Add missing braces around initializer.
26808
26809 * w32term.c (x_setup_relief_colors): Don't compute an image's
26810 background color if it doesn't have a Pixmap.
26811 (notice_overwritten_cursor): Don't depend on
26812 output_cursor and updated_area. Compare pixel coordinates with
26813 window's cursor pixel coordinates.
26814 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
26815 Call notice_overwritten_cursor with new arg list.
26816 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
26817 unconditionally.
26818 (x_draw_image_relief): Use predefined macro instead of
26819 constant when the value of `tool_bar_button_relief' is negative.
26820
26821 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
26822
26823 2002-01-04 Richard M. Stallman <rms@gnu.org>
26824
26825 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
26826
26827 2002-01-03 Richard M. Stallman <rms@gnu.org>
26828
26829 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
26830 (Fkey_binding): Try the `keymap' property map first.
26831 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
26832 minor mode bindings.
26833
26834 2002-01-03 Kim F. Storm <storm@cua.dk>
26835
26836 * keyboard.c (read_key_sequence): Fix cast of submaps arg to bcopy.
26837
26838 2002-01-02 Richard M. Stallman <rms@gnu.org>
26839
26840 * keyboard.c (read_key_sequence): Handle the keymap property
26841 before minor mode maps.
26842
26843 * editfns.c (Fformat): Update thissize from field_width
26844 based on the actual width, in the string case.
26845
26846 2002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
26847
26848 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
26849 when used as truth value to prevent gcc warnings.
26850
26851 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
26852 * w32proc.c: Include <config.h>.
26853
26854 2002-01-01 Andreas Schwab <schwab@suse.de>
26855
26856 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
26857 not EMACS_INT, to make them compatible with DEFVAR_INT.
26858 * lisp.h (max_specpdl_size): Adjust declaration.
26859
26860 2002-01-01 Richard M. Stallman <rms@gnu.org>
26861
26862 * print.c (print_object): Test print_escape_nonascii only for
26863 unibyte strings.
26864 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
26865 when outputting to a multibyte buffer.
26866
26867 2001-12-29 Richard M. Stallman <rms@gnu.org>
26868
26869 * print.c (print_object): In multibyte string, use hex escapes.
26870 Use octal only for unibyte strings.
26871 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
26872
26873 * lread.c (read_escape): New arg BYTEREP for reporting whether
26874 escape forces unibyte or multibyte.
26875 (read1): When reading a string, take note of that info.
26876
26877 2001-12-29 Ken Raeburn <raeburn@gnu.org>
26878
26879 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
26880 comparison to test lisp value returned by Fget.
26881
26882 2001-12-29 Richard M. Stallman <rms@gnu.org>
26883
26884 * lisp.h (max_specpdl_size): Add declaration.
26885
26886 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
26887
26888 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
26889 Handle modifier bits. Correct typo in error message.
26890
26891 2001-12-28 Richard M. Stallman <rms@gnu.org>
26892
26893 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
26894 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
26895 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
26896 Update calls to Fdefine_abbrev.
26897 (write_abbrev): Update for changed data format.
26898 Don't list "system" abbrevs.
26899 (Fexpand_abbrev): Update use count with new data format.
26900 (describe_abbrev): Update for changed data format.
26901 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
26902
26903 * config.in (HAVE_MBSINIT): Add #undef.
26904
26905 * strftime.c (mbsinit): Define as no-op if not available.
26906
26907 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
26908 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
26909
26910 * keymap.c (Flookup_key): Error message if key has wrong data type.
26911 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
26912 (exclude_key): New variable.
26913
26914 2001-12-28 Gerd Moellmann <gerd@gnu.org>
26915
26916 * xterm.c (x_setup_relief_colors): Don't compute an image's
26917 background color if it doesn't have a Pixmap.
26918
26919 * xterm.c (notice_overwritten_cursor): Don't depend on
26920 output_cursor and updated_area. Compare pixel coordinates with
26921 window's cursor pixel coordinates.
26922 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
26923 Call notice_overwritten_cursor with new arg list.
26924 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
26925 unconditionally.
26926
26927 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
26928 height of the cursor line to the amount to scroll.
26929
26930 2001-12-27 Richard M. Stallman <rms@gnu.org>
26931
26932 * intervals.c (set_point_both): The position after an invisible,
26933 intangible character is not an acceptable stopping point.
26934
26935 2001-12-27 Ken Raeburn <raeburn@gnu.org>
26936
26937 * window.c (enlarge_window): In new preserve_before code, convert
26938 CURBEG from lisp object to integer before doing arithmetic.
26939
26940 2001-12-27 Richard M. Stallman <rms@gnu.org>
26941
26942 * bytecode.c (Fbyte_code): Undo previous change.
26943
26944 2001-12-26 Kim F. Storm <storm@cua.dk>
26945
26946 * keyboard.c (record_char): Ignore duplicate help-echo events only
26947 separated by mouse-movement. When tracking mouse, only record
26948 first and last mouse-movement event in same window.
26949 Don't record mouse-movement events in keyboard macros.
26950
26951 2001-12-25 Richard M. Stallman <rms@gnu.org>
26952
26953 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
26954 (Fenlarge_window): New arg PRESERVE_BEFORE.
26955
26956 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
26957 instead of Fstring_as_unibyte.
26958
26959 2001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
26960
26961 The following changes remove mocklisp support:
26962
26963 * mocklisp.h, mocklisp.c: Files removed.
26964
26965 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
26966 `Qmocklisp' and `Qmocklisp_arguments'.
26967 Remove prototype of syms_of_mocklisp.
26968
26969 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
26970
26971 * callint.c: Do not include mocklisp.h.
26972 (Fcall_interactively): Do not test for mocklisp case.
26973
26974 * eval.c: Remove variables `Qmocklisp_arguments',
26975 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
26976 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
26977 Do not test for mocklisp case.
26978 (Fwhile): Remove unused variable `tem'.
26979 (syms_of_eval): Remove variable `moclisp-arguments'.
26980
26981 * data.c (wrong_type_argument): Remove mocklisp case.
26982
26983 * doc.c (Fdocumentation): Remove mocklisp case.
26984
26985 * emacs.c (main): Do not call syms_of_mocklisp.
26986
26987 2001-12-21 Richard M. Stallman <rms@gnu.org>
26988
26989 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
26990 to the left or to the right of the pointer, put it against
26991 the left screen edge.
26992
26993 2001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
26994
26995 * Makefile.in (distclean): Remove .gdbinit if we are building
26996 outside the source tree.
26997
26998 2001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
26999
27000 * w32.c (emacs_root_dir): New function.
27001
27002 * msdos.c (emacs_root_dir): New function.
27003
27004 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
27005 of the current drive as the fallback for default_directory.
27006
27007 * dired.c (file_name_completion): Run the elements of
27008 completion-ignored-extensions through ENCODE_FILE.
27009
27010 * lisp.h (scmp): Remove prototype, since it's now a static
27011 function private to dired.c.
27012
27013 2001-12-18 Richard M. Stallman <rms@gnu.org>
27014
27015 * dired.c (scmp): Function moved from minibuf.c.
27016 Delete multibyte handling--used only on encoded strings.
27017
27018 * minibuf.c (scmp): Function moved to dired.c.
27019
27020 * fns.c (merge): Add QUIT call.
27021
27022 2001-12-18 Dave Love <fx@gnu.org>
27023
27024 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
27025 language/georgian.el.
27026
27027 2001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
27028
27029 * Makefile.in (lisp, shortlisp): Synchronize with changes to
27030 lisp/Makefile.in:DONTCOMPILE.
27031
27032 2001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
27033
27034 * xdisp.c (window_box_height): Do not return negative values.
27035 From Gerd Moellmann <gerd@gnu.org>.
27036
27037 * keyboard.c (head_table): Add missing braces around initializer.
27038
27039 * term.c (keys): Likewise.
27040
27041 * xfns.c (x_frame_parms, visual_classes): Likewise.
27042
27043 2001-12-17 Sam Steingold <sds@gnu.org>
27044
27045 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
27046 patch (COMPOSING_P, not COMPOSING).
27047
27048 2001-12-17 Richard M. Stallman <rms@gnu.org>
27049
27050 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
27051
27052 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
27053 before calling decode_coding.
27054
27055 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
27056
27057 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
27058 instead of only for COMPOSITION_DISABLED.
27059
27060 2001-12-16 Richard M. Stallman <rms@gnu.org>
27061
27062 * alloc.c (pure_alloc): After overflow, allocate just a small block.
27063
27064 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
27065
27066 * buffer.h (struct buffer): New field `display_error_modiff'.
27067 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
27068
27069 * window.c (Frecenter): Clear display_error_modiff field.
27070
27071 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
27072 Call redisplay_window, but not if display_error_modiff field says no.
27073 (redisplay_window_error): New function.
27074 (displayed_buffer): New variable.
27075 (redisplay_internal, redisplay_windows): Call the new functions
27076 instead of redisplay_window directly.
27077
27078 2001-12-15 Richard M. Stallman <rms@gnu.org>
27079
27080 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
27081
27082 2001-12-14 Andrew Innes <andrewi@gnu.org>
27083
27084 * makefile.w32-in (EMACSLOADPATH): Define.
27085 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
27086 (bootstrap-temacs): Remove dependency on bootstrap-clean.
27087
27088 2001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
27089
27090 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
27091 parameter have a numeric value all the time.
27092
27093 * w32fns.c (x_report_frame_params): Likewise.
27094
27095 2001-12-12 Richard M. Stallman <rms@gnu.org>
27096
27097 * fileio.c (Fwrite_region): Doc fix.
27098
27099 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
27100 (redisplay_internal): Call clear_image_cache only for window terminals.
27101
27102 2001-12-12 Gerd Moellmann <gerd@gnu.org>
27103
27104 * xdisp.c (move_it_vertically_backward): Change heuristic
27105 for the case that we didn't move far enough initially.
27106
27107 * window.c (Frecenter): Simplify computation in the case of window
27108 system frames and ARG < 0; use window_box_height.
27109
27110 2001-12-11 Richard M. Stallman <rms@gnu.org>
27111
27112 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
27113 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
27114
27115 2001-12-11 Andrew Innes <andrewi@gnu.org>
27116
27117 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
27118 arg is negative.
27119
27120 2001-12-11 Richard M. Stallman <rms@gnu.org>
27121
27122 * m/hp800.h: Split the __hpux conditional into the parts
27123 that are right for GNU/Linux too and the parts that are not.
27124 Use the former if GNU_LINUX.
27125 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
27126
27127 * s/gnu-linux.h (GNU_LINUX): Defined.
27128
27129 2001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
27130
27131 * macros.c, msdos.c, w16select.c: Change doc-string comments to
27132 `new style' [w/`doc:' keyword].
27133
27134 2001-12-10 Jason Rumney <jasonr@gnu.org>
27135
27136 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
27137 before using.
27138
27139 2001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
27140
27141 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
27142 keyword].
27143
27144 2001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
27145
27146 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
27147
27148 * s/hpux10.h (srand48): Don't undefine.
27149
27150 2001-12-09 Jason Rumney <jasonr@gnu.org>
27151
27152 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
27153 Add comment to explain where the struct came from.
27154 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
27155 (add_menu_item): Process pop-up menus first to avoid memory leak.
27156 (add_menu_item, w32_menu_display_help): Use `help' field as
27157 Lisp_Object.
27158 (w32_free_submenu_strings): Only free owner-drawn strings.
27159
27160 2001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
27161
27162 * COPYING: Moved back.
27163
27164 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
27165 Add parentheses around && within ||.
27166
27167 * indent.c (compute_motion): Likewise.
27168
27169 * intervals.c (merge_properties_sticky): Likewise.
27170
27171 * coding.c (setup_coding_system, shrink_encoding_region)
27172 (Fdecode_sjis_char): Likewise.
27173
27174 2001-12-07 Andreas Schwab <schwab@suse.de>
27175
27176 * xdisp.c (display_mode_element): Don't read past end of string if
27177 it ends with '%'.
27178
27179 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
27180 can hold.
27181
27182 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
27183 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
27184 type changed to Lisp_Object.
27185 (syms_of_data): DEFVAR_LISP them.
27186
27187 2001-12-07 Richard M. Stallman <rms@gnu.org>
27188
27189 * callproc.c (init_callproc): Set Vdata_directory based on the source
27190 location whenever Emacs was run uninstalled.
27191
27192 2001-12-06 Paul Eggert <eggert@twinsun.com>
27193
27194 * config.in (HAVE_WORKING_VFORK): New #undefs.
27195 * process.c (create_process):
27196 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
27197 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
27198 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
27199 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
27200 * m/intel386.h (HAVE_VFORK): Likewise.
27201 * m/mips-siemens.h (HAVE_VFORK): Likewise.
27202 * m/mips.h (HAVE_VFORK): Likewise.
27203 * s/freebsd.h (vfork): Remove #define.
27204 * s/lynxos.h (HAVE_VFORK): Remove #undef.
27205 * s/usg5-4-2.h: Fix comment about vfork.
27206
27207 2001-12-06 Richard M. Stallman <rms@gnu.org>
27208
27209 * s/hpux10.h (random): Add undef.
27210 (HAVE_RANDOM): Define it just once.
27211
27212 2001-12-06 Stefan Monnier <monnier@cs.yale.edu>
27213
27214 * eval.c: Undo last change: the standard syntax is not wanted.
27215
27216 2001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
27217
27218 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
27219 scroll bars of the frame before deleting the frame itself. If the
27220 frame has a widget, delete the frame with XtDestroyWidget, and do
27221 not call XDestroyWindow before that.
27222
27223 2001-12-06 Kim F. Storm <storm@cua.dk>
27224
27225 * xfns.c (x_report_frame_params): Return actual fringe widths.
27226
27227 * w32fns.c (x_report_frame_params): Return actual fringe widths.
27228
27229 2001-12-05 Andrew Innes <andrewi@gnu.org>
27230
27231 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
27232 excessively large.
27233
27234 * insdel.c (make_gap_larger): New function.
27235 (make_gap_smaller): New function.
27236 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
27237 Call make_gap_smaller if arg is negative.
27238
27239 2001-12-04 Stefan Monnier <monnier@cs.yale.edu>
27240
27241 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
27242 Pass a dummy argument when calling interrupt_signal.
27243 (parse_menu_item): Mark disabled items before checking for empty def.
27244 (read_char_minibuf_menu_prompt): Make safety more visible.
27245 (read_key_sequence): Add a `first_unbound' variable.
27246 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
27247 unbound prefix as soon as we can detect it.
27248
27249 * doc.c (Fsnarf_documentation): Add prototype.
27250 (get_doc_string): Handle negative arguments.
27251 (Fdocumentation): Use AREF and ASIZE.
27252 Move the calls to get_doc_string to a single place.
27253 Don't confuse an interactive-spec for a docstring reference.
27254 (Fdocumentation_property): Take advantage of the fact that
27255 get_doc_string now ignores the sign of the docstring position.
27256
27257 * eval.c: Use standard syntax for usage in docstrings.
27258
27259 2001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
27260
27261 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
27262
27263 2001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
27264
27265 * xterm.c (x_draw_image_relief): Use predefined macro instead of
27266 constant when the value of `tool_bar_button_relief' is negative.
27267
27268 2001-12-02 Richard M. Stallman <rms@gnu.org>
27269
27270 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
27271 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
27272
27273 * fileio.c (read_non_regular): Delete Fsignal call.
27274
27275 2001-12-01 Stefan Monnier <monnier@cs.yale.edu>
27276
27277 * lisp.h (run_hook_list_with_args): Undo last change.
27278
27279 2001-12-01 Gerd Moellmann <gerd@gnu.org>
27280
27281 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
27282
27283 2001-12-01 Jason Rumney <jasonr@gnu.org>
27284
27285 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
27286
27287 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
27288 [!WM_MOUSELEAVE]: Define.
27289
27290 * w32menu.c (current_popup_menu, get_menu_item_info):
27291 (set_menu_item_info): New vars.
27292 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
27293 (w32_menu_show): Set current_popup_menu.
27294 (add_menu_item): Allocate new strings for owner-drawn menu items
27295 and help strings.
27296 Use owner-draw for disabled menu items again.
27297 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
27298 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
27299
27300 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
27301 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
27302 <WM_EXITMENULOOP>: Free menu strings.
27303 <WM_MOUSELEAVE>: Stop tracking mouse.
27304 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
27305
27306 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
27307 and mouse face.
27308
27309 2001-12-01 Kim F. Storm <storm@cua.dk>
27310
27311 The following changes add left-fringe and right-fringe
27312 frame parameters to adjust fringe widths, or remove one or
27313 both fringes.
27314
27315 * frame.h (struct frame): Remove trunc_area_pixel_width and
27316 trunc_area_cols fields.
27317 (Qleft_fringe, Qright_fringe): Declare.
27318 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
27319
27320 * frame.c (Qleft_fringe, Qright_fringe): New vars.
27321 (syms_of_frame): Initialize them.
27322
27323 * window.c (coordinates_in_window): Handle separate left and right
27324 fringe widths.
27325
27326 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
27327 and fringe_cols fields.
27328 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
27329 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
27330 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
27331 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
27332 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
27333 (x_compute_fringe_widths): Add prototype.
27334
27335 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
27336 fill fringe evenly with small dashes.
27337 (x_draw_fringe_bitmap): Clear background if necessary. Align and
27338 clip the new ZV bitmap to avoid jitter between rows.
27339 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
27340 background. Don't draw fringe bitmaps if fringe width is zero.
27341 (x_compute_fringe_widths): New function.
27342 (x_new_font, x_set_window_size_1): Use it.
27343
27344 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
27345 (x_set_frame_parameters): Process `font' parameter before other
27346 parameters as fringe widths depend on it.
27347 (x_set_fringe_width): New function.
27348 (x_figure_window_size): Use x_compute_fringe_widths.
27349 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
27350 parameters.
27351
27352 * widget.c (set_frame_size): Use x_compute_fringe_widths.
27353 (EmacsFrameSetCharSize): Ditto.
27354
27355 * w32term.h: Merged changes from xterm.h.
27356 * w32term.c: Merged changes from xterm.c.
27357 * w32fns.c: Merged changes from xfns.c.
27358
27359 2001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
27360
27361 * COPYING: Removed.
27362
27363 2001-11-29 Dave Love <fx@gnu.org>
27364
27365 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
27366 extra extra slot.
27367 (detect_coding_mask): Fix call of detect_coding_iso2022.
27368
27369 2001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
27370
27371 * fileio.c (file-name-coding-system)
27372 (default-file-name-coding-system): Doc fix (links to referenced
27373 variables added).
27374
27375 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
27376
27377 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
27378 Add dummy uses of gcproN variables.
27379
27380 * category.c (describe_category, describe_category_1)
27381 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
27382 (syms_of_category): Don't defsubr Sdescribe_categories.
27383
27384 2001-11-28 Richard M. Stallman <rms@gnu.org>
27385
27386 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
27387
27388 * Makefile.in (lispdir): New variable, referring to build dir.
27389 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
27390
27391 2001-11-28 Andrew Innes <andrewi@gnu.org>
27392
27393 * w32menu.c (w32_menu_display_help): Actually add the new argument
27394 OWNER.
27395
27396 2001-11-28 Jason Rumney <jasonr@gnu.org>
27397
27398 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
27399 menu items. From David Ponce <dponce@wanadoo.fr>.
27400 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
27401 conditionally.
27402 (w32_menu_display_help): New argument OWNER. Rewritten to store a
27403 help event in the owner frame's keyboard buffer.
27404
27405 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
27406 (Fx_show_tip): Don't subtract last width from row width.
27407
27408 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
27409 (w32_read_socket): Use EQ to compare frames.
27410
27411 2001-11-28 Gerd Moellmann <gerd@gnu.org>
27412
27413 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
27414 OVERLAPS_P.
27415
27416 2001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
27417
27418 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
27419 `gcpro3' and `gcpro4'.
27420
27421 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
27422
27423 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
27424
27425 * ccl.c: Use AREF and ASIZE.
27426
27427 2001-11-27 Stefan Monnier <monnier@cs.yale.edu>
27428
27429 * lisp.h (run_hook_list_with_args): Remove.
27430 (LIST_END_P): Fix call to wrong_type_argument.
27431 (make_fixnum_or_float): Use EMACS_INT rather than int.
27432
27433 2001-11-26 Stefan Monnier <monnier@cs.yale.edu>
27434
27435 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
27436 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
27437
27438 * eval.c: Use AREF and ASIZE.
27439 (Ffetch_bytecode): Add the file name to the error message.
27440
27441 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
27442 which match the end of the file-name.
27443 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
27444 is not a valid env var, but leave it as is instead.
27445
27446 * keymap.c (access_keymap): Handle t bindings like nil bindings.
27447 Make nil bindings in char-tables transparent.
27448 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
27449
27450 2001-11-26 Richard M. Stallman <rms@gnu.org>
27451
27452 * textprop.c (set_text_properties_1): Allow START, END in either order.
27453 Do nothing if range is empty.
27454
27455 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
27456
27457 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
27458 (clean): Not here.
27459
27460 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
27461
27462 * textprop.c (set_text_properties_1): Clearly mark that the
27463 interval should not be empty.
27464
27465 * intervals.c (graft_intervals_into_buffer):
27466 Don't call set_text_properties_1 on an empty interval.
27467
27468 2001-11-25 Richard M. Stallman <rms@gnu.org>
27469
27470 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
27471
27472 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
27473 don't lose the data in it.
27474
27475 2001-11-25 Juanma Barranquero <lektu@terra.es>
27476
27477 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
27478
27479 * buffer.c (Fkill_buffer): Likewise.
27480
27481 * print.c (temp_output_buffer_setup): Likewise.
27482
27483 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
27484
27485 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
27486
27487 2001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
27488
27489 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
27490 Niemitalo <kon@iki.fi>.
27491
27492 2001-11-25 Jason Rumney <jasonr@gnu.org>
27493
27494 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
27495
27496 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
27497 (Fx_show_tip): Block input during frame creation.
27498 (Fx_show_tip, Fx_hide_tip): Enable.
27499
27500 2001-11-24 Richard M. Stallman <rms@gnu.org>
27501
27502 * lread.c (Fload): Detect recursive load error for more than 3
27503 nestings of the same file.
27504 (Vrecursive_load_depth_limit): Variable deleted.
27505 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
27506
27507 2001-11-24 Jason Rumney <jasonr@gnu.org>
27508
27509 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
27510 mouse position if either left or top is not specified.
27511
27512 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
27513 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
27514 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
27515 (my_create_tip_window): Assign tip_window.
27516 (x_create_tip_frame): Use same defaults as X.
27517 (compute_tip_xy): Remove unused variable. Use full screen width.
27518 (Fx_show_tip): Do not double height. Call ShowWindow directly.
27519
27520 * w32term.c (x_after_update_window_line): Doc fix.
27521 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
27522 frames.
27523 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
27524
27525 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
27526 for all Windowed systems.
27527
27528 2001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
27529
27530 * msdos.c (IT_clear_screen): If the frame's faces are not yet
27531 realized, use the initial screen colors to clear the screen.
27532
27533 2001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
27534
27535 * textprop.c (Fset_text_properties): Remove unused variables
27536 `unchanged', `prev_changed', `s' and `len'.
27537
27538 * search.c (Freplace_match): Remove unused variable `inslen'.
27539
27540 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
27541
27542 2001-11-22 Jason Rumney <jasonr@gnu.org>
27543
27544 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
27545 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
27546 (my_create_tip_window): New function.
27547 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
27548 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
27549
27550 2001-11-20 Jason Rumney <jasonr@gnu.org>
27551
27552 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
27553 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
27554
27555 * w32fns.c (Vw32_system_coding_system): Remove.
27556 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
27557
27558 2001-11-19 Stefan Monnier <monnier@cs.yale.edu>
27559
27560 * fileio.c (Fwrite_region): Move choose_write_coding_system to
27561 after build_annotations.
27562
27563 * syntax.c (describe_syntax): Add dummy arg.
27564 (describe_syntax_1): Update call to describe_vector.
27565
27566 * category.c (describe_category): Add dummy arg.
27567 (describe_category_1): Update call to describe_vector.
27568
27569 * keymap.c (Fdescribe_vector): Add `describer' parameter.
27570 (describe_command, describe_translation): Add dummy second param.
27571 (describe_map): Call elt_describer with two arguments.
27572 (describe_vector_princ): Add `fun' parameter.
27573 Call it instead of the hardcoded `princ'.
27574 (describe_vector): Add arg `args'.
27575 Pass it as a new second argument to elt_describer.
27576
27577 * keymap.h (describe_vector): Update prototype.
27578
27579 * frame.c: Don't include keymap.h any more.
27580 (keys_of_frame): Remove.
27581
27582 * lisp.h (keys_of_frame): Remove declaration.
27583
27584 * emacs.c (main): Don't call `keys_of_frame' any more.
27585
27586 2001-11-14 Andreas Schwab <schwab@suse.de>
27587
27588 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
27589 if defined, 0 otherwise.
27590 (MAP_FAILED): Define if not defined and use it to test mmap failure.
27591 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
27592
27593 2001-11-19 Richard M. Stallman <rms@gnu.org>
27594
27595 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
27596
27597 2001-11-18 Jason Rumney <jasonr@gnu.org>
27598
27599 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
27600 (x_draw_bar_cursor): If the background color of the glyph under
27601 the cursor equals the frame's cursor color, use the glyph's
27602 foreground color for drawing the bar cursor.
27603 (x_after_update_window_line): Clear internal border in different
27604 circumstances.
27605 (w32_set_vertical_scroll_bar): Check for width and height > 0.
27606 (w32_draw_relief_rect): Correct relief by 1 pixel.
27607 (x_set_glyph_string_background_width):
27608 Set extends_to_end_of_line_p if the row's fill_line_p is set and
27609 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
27610 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
27611 if cursor_in_non_selected_windows is false.
27612 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
27613 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
27614 Notice if cursor gets overwritten.
27615 (notice_overwritten_cursor): Renamed from
27616 note_overwritten_text_cursor. Rewritten to take glyph widths
27617 into account, and to take X positions as parameters.
27618 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
27619 around call to x_draw_glyphs.
27620 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
27621 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
27622 color to use for image glyph reliefs.
27623 (x_draw_image_relief): Accept zero tool_bar_button_relief.
27624 (glyph_rect): Remove unused variable `area'.
27625
27626 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
27627 some items.
27628 (x_set_internal_border_width): Set frame garbaged when window
27629 doesn't exist yet.
27630 (Fx_create_frame): Accept zero tool_bar_button_relief.
27631 (x_clear_image_1, four_corners_best, image_background)
27632 (image_background_transparent): New functions.
27633 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
27634 (gs_format): Add `:background' entry.
27635 (lookup_image): Set IMG's background color if specified.
27636 (pbm_load, xbm_load_image, png_load): Set IMG's background field
27637 when appropriate.
27638 (x_clear_image_1): Reset `background_valid' and
27639 `background_transparent_valid' fields.
27640 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
27641 calculating it here. Set IMG's background_transparent field.
27642 (enum xpm_keyword_index): Add XPM_BACKGROUND.
27643 (enum png_keyword_index): Add PNG_BACKGROUND.
27644 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
27645 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
27646 (enum gif_keyword_index): Add GIF_BACKGROUND.
27647 (enum gs_keyword_index): Add GS_BACKGROUND.
27648 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
27649 Pre-calculate image background color where necessary.
27650 (x_create_x_image_and_pixmap, xbm_load, gs_load):
27651 Use display info's n_cbits entry for screen depth.
27652 (Fx_show_tip): Remove unused variables `buffer', `top',
27653 `left', `max_width' and `max_height'.
27654
27655 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
27656
27657 2001-11-18 Gerd Moellmann <gerd@gnu.org>
27658
27659 * puresize.h (BASE_PURESIZE): Increase to 750000.
27660
27661 2001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
27662
27663 * frame.c (Fframe_live_p): Doc fix.
27664
27665 2001-11-18 Richard M. Stallman <rms@gnu.org>
27666
27667 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
27668 (message_dolog_marker3): New static variables hold three markers.
27669 (syms_of_xdisp): Initialize and staticpro them.
27670 (message_dolog): Use message_dolog_marker1..3 instead of
27671 allocating markers each time. Unchain them when done.
27672
27673 2001-11-17 Richard M. Stallman <rms@gnu.org>
27674
27675 * doc.c (Fsnarf_documentation): Doc fix.
27676
27677 2001-11-17 Andreas Schwab <schwab@suse.de>
27678
27679 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
27680
27681 2001-11-17 Richard M. Stallman <rms@gnu.org>
27682
27683 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
27684
27685 2001-11-17 Jason Rumney <jasonr@gnu.org>
27686
27687 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
27688
27689 2001-11-17 Gerd Moellmann <gerd@gnu.org>
27690
27691 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
27692 with invalid position.
27693
27694 2001-11-16 Richard M. Stallman <rms@gnu.org>
27695
27696 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
27697
27698 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
27699 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
27700 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
27701
27702 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
27703
27704 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
27705
27706 * fileio.c (build_annotations): Split off the tail.
27707 (build_annotations_2): New fun. Extracted from build_annotations.
27708 (Fwrite_region): Split the call to build_annotations into two
27709 calls to build_annotations and build_annotations_2.
27710
27711 2001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
27712
27713 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
27714 clear_waiting_for_input with argument.
27715
27716 * xterm.h (x_update_cursor): Remove duplicated prototype.
27717
27718 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
27719
27720 * xterm.c (waiting_for_input): Remove unnecessary declaration.
27721
27722 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
27723
27724 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
27725
27726 * fileio.c (choose_write_coding_system): New fun, extracted
27727 from Fwrite_region.
27728 (Fwrite_region): Use it.
27729
27730 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
27731 (funcall_lambda, run_hook_with_args): Make static and add prototype.
27732 (ml_apply, find_handler_clause): Add prototype.
27733
27734 2001-11-16 Eli Zaretskii <eliz@gnu.org>
27735
27736 * config.in: Add #undef HAVE_COFF_H.
27737
27738 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
27739 Required for ISC 4.1.
27740
27741 2001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
27742
27743 * syswait.h (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
27744 Andrew Wiseman <a.wiseman@btclick.com>.
27745
27746 2001-11-16 Kim F. Storm <storm@cua.dk>
27747
27748 The following changes are made to clean up the various internal
27749 references to the fringes to actually use the term `fringe' for
27750 them. Previously, they were called `flags areas', `bitmap areas',
27751 `left/right side of windows', or implicitly as `flags' or
27752 `bitmaps':
27753
27754 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
27755 Comments fixed. Use renamed symbols.
27756
27757 * dispnew.c: Comment fix. Use renamed symbols.
27758
27759 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
27760 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
27761 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
27762
27763 * msdos.c: Comment fix.
27764
27765 * w32fns.c: Use renamed symbols.
27766
27767 * w32term.c: Comment fixes. Use renamed symbols.
27768 (fringe_bitmap_type): Renamed from bitmap_type.
27769 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
27770 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
27771 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
27772
27773 * w32term.h: Comment fixes. Use renamed symbols.
27774 (fringes_extra): Renamed from flags_areas_extra.
27775 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
27776 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
27777 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
27778 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
27779 (FRAME_X_LEFT_FRINGE_WIDTH):
27780 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
27781 (FRAME_X_RIGHT_FRINGE_WIDTH):
27782 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
27783
27784 * widget.c: Use renamed symbols.
27785
27786 * window.c: Comment fixes. Use renamed symbols.
27787 (coordinates-in-window-p): Doc fix.
27788
27789 * xdisp.c: Comment fixes. Use renamed symbols.
27790
27791 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
27792
27793 * xfns.c: Use renamed symbols.
27794
27795 * xterm.c: Comment fixes. Use renamed symbols.
27796 (fringe_bitmap_type): Renamed from bitmap_type.
27797 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
27798 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
27799 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
27800
27801 * xterm.h: Comment fixes. Use renamed symbols.
27802 (fringes_extra): Renamed from flags_areas_extra.
27803 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
27804 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
27805 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
27806 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
27807 (FRAME_X_LEFT_FRINGE_WIDTH):
27808 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
27809 (FRAME_X_RIGHT_FRINGE_WIDTH):
27810 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
27811
27812 2001-11-15 Jason Rumney <jasonr@gnu.org>
27813
27814 * w32menu.c (add-menu-item): Make help_echo and radio buttons
27815 work for most menu items. From David Ponce
27816 <david.ponce@wanadoo.fr>.
27817
27818 2001-11-15 Gerd Moellmann <gerd@gnu.org>
27819
27820 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
27821 Some x_set_* function expect to be called even if old and new
27822 value are equal.
27823
27824 * xdisp.c (build_desired_tool_bar_string): Accept zero
27825 tool_bar_button_relief.
27826
27827 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
27828
27829 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
27830
27831 * xterm.c (x_draw_bar_cursor): If the background color of the
27832 glyph under the cursor equals the frame's cursor color, use
27833 the glyph's foreground color for drawing the bar cursor.
27834
27835 * dispnew.c (direct_output_forward_char): Fix character/byte
27836 position comparison.
27837
27838 2001-11-15 Miles Bader <miles@gnu.org>
27839
27840 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
27841 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
27842 Update arguments to find_field.
27843 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
27844 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
27845 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
27846 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
27847
27848 2001-11-14 Richard M. Stallman <rms@gnu.org>
27849
27850 * editfns.c (Fpropertize): Allow call with 1 arg.
27851
27852 * dispextern.h (image_background, image_background_transparent):
27853 Conditionalize on HAVE_X_WINDOWS.
27854
27855 2001-11-13 Richard M. Stallman <rms@gnu.org>
27856
27857 * print.c (Fprin1_to_string): Doc fix.
27858
27859 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
27860
27861 * floatfns.c (Fceiling, Ffloor): Doc fixes.
27862
27863 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
27864
27865 * fileio.c (Ffile_accessible_directory_p): Doc fix.
27866
27867 * eval.c (syms_of_eval): Doc fix.
27868
27869 * coding.c (syms_of_coding): Doc fix.
27870
27871 * doc.c (Fsnarf_documentation): Doc fix.
27872
27873 * dispnew.c (syms_of_display): Doc fix.
27874
27875 * category.c (Fget_unused_category): Doc fix.
27876
27877 * buffer.c (syms_of_buffer): Doc fixes.
27878
27879 2001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
27880
27881 * print.c (prin1, print): Doc fix.
27882
27883 2001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
27884
27885 * fontset.h: Remove declarations of variables
27886 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
27887
27888 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
27889 `Vclip_large_size_font'.
27890
27891 2001-11-13 Jason Rumney <jasonr@gnu.org>
27892
27893 * w32fns.c: Doc fix.
27894
27895 2001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
27896
27897 * xfaces.c (Fface_attributes_as_vector): Doc fix.
27898
27899 * fns.c: Doc fix.
27900
27901 * emacs.c: Doc fix.
27902
27903 * coding.c: Doc fix.
27904
27905 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
27906 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
27907 `new style' [w/`doc:' keyword].
27908
27909 2001-11-12 Richard M. Stallman <rms@gnu.org>
27910
27911 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
27912 LeaveNotify events. Only FocusIn and FocusOut do that now.
27913 (x_display_and_set_cursor): Do display hollow cursors in active
27914 minibuffer windows when they are not selected.
27915
27916 2001-11-12 Jason Rumney <jasonr@gnu.org>
27917
27918 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
27919 * w32term.c: Change doc-string comments to `new style'
27920 [w/`doc:' keyword]. Doc fixes.
27921
27922 * w32fns.c: Don't define max.
27923 (Fx_open_connection): Only execute once.
27924
27925 2001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
27926
27927 * ccl.c: Change macros to use do-while block instead of if-else.
27928 Use braces to follow GNU Coding Standards.
27929
27930 2001-11-11 Richard M. Stallman <rms@gnu.org>
27931
27932 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
27933
27934 * lread.c (read_escape): Use end_of_file_error for reporting eof.
27935
27936 * insdel.c (replace_range): Use adjust_markers_for_replace
27937 instead of adjust_markers_for_delete and adjust_markers_for_insert.
27938
27939 * intervals.h (set_text_properties, set_text_properties_1): Declare.
27940
27941 * textprop.c (set_text_properties_1): New subroutine
27942 broken out of set_text_properties.
27943 (set_text_properties): Use set_text_properties_1.
27944
27945 * intervals.c (graft_intervals_into_buffer):
27946 Use set_text_properties_1 to clear out properties.
27947
27948 * search.c (Freplace_match): Use replace_range to insert
27949 and delete. Don't request property inheritance from
27950 surrounding text.
27951
27952 2001-11-10 Jason Rumney <jasonr@gnu.org>
27953
27954 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
27955 vertical fonts. Allow them if face name is explicitly specified.
27956 Do not give up if we find a font that cannot be converted to an xlfd.
27957
27958 2001-11-10 Gerd Moellmann <gerd@gnu.org>
27959
27960 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
27961 instead of malloc/free.
27962
27963 2001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
27964
27965 * xfaces.c (merge_face_vectors): Use braces to follow GNU
27966 Coding Standards.
27967 (Finternal_set_lisp_face_attribute): Likewise.
27968
27969 * buffer.c (Fbury_buffer): Likewise.
27970
27971 * indent.c (current_column_1): Remove unused variable `prev_col'.
27972
27973 * coding.c (encode_coding): Use precomputed value of `src'.
27974 (encode_coding): Remove unused variable `src_end'.
27975 (code_convert_region): Remove unused variables `count'.
27976
27977 2001-11-07 Jason Rumney <jasonr@gnu.org>
27978
27979 * w32term.c (x_display_and_set_cursor): Do not move system caret
27980 if cursor_glyph is NULL.
27981
27982 2001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
27983
27984 * keymap.c (access_keymap): Fix compilation error.
27985
27986 2001-11-07 Miles Bader <miles@gnu.org>
27987
27988 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
27989
27990 2001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
27991
27992 * intervals.c (graft_intervals_into_buffer):
27993 Remove #ifdef'd-out code.
27994 (graft_intervals_into_buffer): Remove unused variable `middle'.
27995
27996 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
27997 code (eval-current-buffer).
27998 Change doc-string comments to `new style' [w/`doc:' keyword].
27999
28000 2001-11-06 Richard M. Stallman <rms@gnu.org>
28001
28002 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
28003
28004 2001-11-06 Stefan Monnier <monnier@cs.yale.edu>
28005
28006 * lread.c (read1): Fix behavior with nested backquoting.
28007
28008 * keyboard.c (make_lispy_event): Check integerness and fix
28009 Lisp_Object/int mixup.
28010
28011 2001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
28012
28013 * fns.c (copy_hash_table): Remove unused variable `v'.
28014
28015 * fontset.c (fontset_font_pattern): Remove unused variable
28016 `family_registry'.
28017
28018 * indent.c (current_column_1): Remove unused variable `prev_col'.
28019
28020 2001-11-05 Richard M. Stallman <rms@gnu.org>
28021
28022 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
28023
28024 * buffer.c (Fkill_buffer): Don't delete auto save file
28025 if buffer is modified.
28026
28027 2001-11-05 Andrew Innes <andrewi@gnu.org>
28028
28029 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
28030 CHECK_NUMBER_CDR.
28031
28032 2001-11-05 Richard M. Stallman <rms@gnu.org>
28033
28034 * unexelf.c (unexec): Minor changes; clean up comments.
28035
28036 2001-11-05 Sam Steingold <sds@gnu.org>
28037
28038 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
28039
28040 2001-11-05 Andreas Schwab <schwab@suse.de>
28041
28042 * sound.c (sound_perror): Save errno from being clobbered.
28043
28044 2001-11-05 Dale Hagglund <rdh@yottayotta.com>
28045
28046 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
28047 the program image directly.
28048
28049 2001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
28050
28051 * buffer.h (Fbuffer_local_value): Add prototype.
28052
28053 2001-11-04 Richard M. Stallman <rms@gnu.org>
28054
28055 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
28056 and CHECK_BUFFER.
28057
28058 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
28059 (record_char): Likewise.
28060
28061 * keyboard.c (make_lispy_event): Don't insist a drag event must
28062 move to a different buffer position. Instead, check for moving at
28063 least double_click_fuzz.
28064
28065 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
28066
28067 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
28068
28069 * indent.c (current_column_1, Fmove_to_column): Separate the code
28070 for display-table glyphs from the code for buffer text, to fix
28071 bugs in the former.
28072
28073 2001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
28074
28075 * buffer.c (Fbuffer_local_value): New function.
28076 (syms_of_buffer): Defsubr it.
28077
28078 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
28079 value of `cursor-in-non-selected-windows'.
28080
28081 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
28082 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
28083 (syms_of_xdisp): Initialize it.
28084
28085 2001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
28086
28087 * xfns.c (Fx_create_frame): Doc fix.
28088
28089 * coding.c: Change doc-string comments to `new style' [w/`doc:'
28090 keyword].
28091
28092 * eval.c (top_level_value, top_level_set): Remove commented and
28093 #ifdef'd-out code.
28094 (Fdefvar): Fix usage in doc-string.
28095
28096 2001-11-03 Richard M. Stallman <rms@gnu.org>
28097
28098 * xfns.c: Include unistd.h, if it exists.
28099
28100 * editfns.c: Move the include of ctype.h after unistd.h.
28101
28102 * gmalloc.c: Test BROKEN_PROTOTYPES.
28103
28104 2001-11-03 Ken Raeburn <raeburn@gnu.org>
28105
28106 * lisp.h (CHECK_STRING_CAR): New macro.
28107 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
28108 treating XCAR and XCDR as lvalues.
28109 (openp): Use CHECK_STRING_CAR.
28110 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
28111
28112 2001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
28113
28114 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
28115 (SIGMASKTYPE): Define.
28116
28117 * syssignal.h (sigunblock): Don't define if already defined.
28118
28119 2001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
28120
28121 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
28122 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
28123 Fix typos in comments.
28124
28125 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
28126 and #ifdef'd-out code.
28127 Fix and reindent comments.
28128
28129 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
28130
28131 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
28132 argument `i' in macros.
28133
28134 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
28135 `i' in macros.
28136
28137 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
28138 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
28139 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
28140 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
28141 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
28142 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
28143 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
28144 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
28145 in macros.
28146
28147 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
28148 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
28149 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
28150 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
28151 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
28152 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
28153 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
28154 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
28155 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
28156 (remove unused second argument).
28157
28158 2001-11-02 Stefan Monnier <monnier@cs.yale.edu>
28159
28160 * syntax.c (describe_syntax): New wrapper.
28161 (Finternal_describe_syntax_value): Rename from describe_syntax.
28162 Don't insert space at front and \n at the end.
28163 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
28164
28165 * regex.c (re_wctype): Try to fix some warnings.
28166 (regcomp, regexec): Don't forget the __restrict.
28167
28168 2001-11-02 Richard M. Stallman <rms@gnu.org>
28169
28170 * textprop.c (Fget_char_property): Doc fix.
28171
28172 2001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
28173
28174 * process.c (Fstart_process): Add usage to doc-string.
28175
28176 * data.c (Fsetq_default): Ditto.
28177
28178 * callint.c (Finteractive): Ditto.
28179
28180 2001-11-01 Stefan Monnier <monnier@cs.yale.edu>
28181
28182 * macros.c: Don't include keymap.h any more.
28183
28184 2001-11-01 Richard M. Stallman <rms@gnu.org>
28185
28186 * data.c (Fmake_local_variable): Doc fix.
28187
28188 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
28189 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
28190
28191 * keymap.c (Fdescribe_buffer_bindings): Print character property
28192 bindings along with or instead of the buffer local map.
28193 Make the overriding maps override what they should.
28194
28195 2001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
28196
28197 * window.c (grow_mini_window): Fix typo in comment.
28198
28199 2001-11-01 Gerd Moellmann <gerd@gnu.org>
28200
28201 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
28202 (XTset_vertical_scroll_bar): Likewise.
28203
28204 * xfns.c (x_build_heuristic_mask): Use four_corners_best
28205 instead of IMAGE_BACKGROUND.
28206
28207 * xfns.c (four_corners_best): Reindent.
28208
28209 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
28210 Handle :box so that it is possible to specify sexprs.
28211
28212 2001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
28213
28214 * s/hpux11.h: New file.
28215
28216 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
28217
28218 * emacs.c (USAGE1): Show command line option --no-window-system
28219 instead of --no-windows in usage.
28220 (standard_args): Rename --no-windows to --no-window-system.
28221 (bug_reporting_address): Follow Emacs coding conventions.
28222
28223 * eval.c (Fcommandp): Doc fix.
28224 Change doc-string comments to `new style' [w/`doc:' keyword].
28225
28226 * frame.c (Fframe_live_p): Doc fix.
28227
28228 * buffer.c (selective-display-ellipses): Doc fix.
28229
28230 2001-10-31 Gerd Moellmann <gerd@gnu.org>
28231
28232 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
28233
28234 * xfaces.c (realize_x_face): If C is not a single-byte character,
28235 set the face's colors_copied_bitwise_p instead of the defaulted_p
28236 members which have a different meaning.
28237 (free_face_colors): Do nothing for a face whose colors have been
28238 copied bitwise.
28239
28240 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
28241
28242 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
28243
28244 * marker.c, mocklisp.c: Change doc-string comments to `new style'
28245 [w/`doc:' keyword].
28246
28247 2001-10-31 Gerd Moellmann <gerd@gnu.org>
28248
28249 * fns.c (require_unwind): Return Lisp_Object.
28250
28251 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
28252
28253 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
28254 (last-input-char): Revert doc-string to be the same as the
28255 doc-string of `last-input-event'.
28256
28257 * xdisp.c: Fix typos in comments.
28258
28259 2001-10-31 Gerd Moellmann <gerd@gnu.org>
28260
28261 * window.c (grow_mini_window): Handle case that the root
28262 window is already smaller than the nominal mininum height.
28263
28264 2001-10-30 Stefan Monnier <monnier@cs.yale.edu>
28265
28266 * emacs.c (main): Don't call keys_of_macros any more.
28267
28268 * lisp.h (keys_of_macros): Remove.
28269
28270 * macros.c (keys_of_macros): Remove.
28271
28272 * xfaces.c (Fface_attribute_relative_p): Declare args.
28273
28274 2001-10-30 Jason Rumney <jasonr@gnu.org>
28275
28276 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
28277 (enum_font_cb2): Ignore fonts with vertical orientation.
28278
28279 2001-10-30 Richard M. Stallman <rms@gnu.org>
28280
28281 * keyboard.c (Finput_pending_p): Doc fix.
28282
28283 2001-10-30 Gerd Moellmann <gerd@gnu.org>
28284
28285 * xterm.c (x_after_update_window_line): Don't run the code
28286 clearing in borders for rows whose visible height is 0.
28287
28288 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
28289 resized_p flag is set. If not set, use the much less flickering
28290 method previously used.
28291
28292 * dispnew.c (change_frame_size_1): Set frame's resized_p.
28293
28294 * frame.h (struct frame) <resized_p>: New member.
28295
28296 * lread.c (to_multibyte): Ensure read_buffer is at least twice
28297 as large as the number of bytes to convert.
28298
28299 * lread.c (to_multibyte): New function.
28300 (read1): Use it.
28301
28302 2001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
28303
28304 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
28305
28306 2001-10-30 Gerd Moellmann <gerd@gnu.org>
28307
28308 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
28309 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
28310 if the row's fill_line_p is set and drawing the last glyph with
28311 DRAW_IMAGE_{RAISED,SUNKEN}.
28312
28313 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
28314
28315 2001-10-29 Stefan Monnier <monnier@cs.yale.edu>
28316
28317 * xmenu.c: Include coding.h and charset.h.
28318 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
28319 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
28320 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
28321 Explicitly set wv->help. Use `TRUE' rather than `True'.
28322 (menu_help_callback): Use empty_string.
28323
28324 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
28325 (Fx_popup_dialog): Explicitly init f.
28326 (w32_menu_display_help): Use empty_string.
28327
28328 2001-10-29 Richard M. Stallman <rms@gnu.org>
28329
28330 * fns.c (Frequire): Detect recursive try to require the same
28331 feature 3 or more levels deep, and get error.
28332 (require_unwind): New subroutine.
28333 (require_nesting_list): New variable.
28334 (syms_of_fns): Init and staticpro it.
28335
28336 * print.c (print_object): Clarify indication of insertion type.
28337
28338 2001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
28339
28340 * coding.c (syms_of_coding): Document that locale-coding-system is
28341 used for decoding input on X.
28342
28343 * window.c (Fscroll_left, Fscroll_right): Doc fix.
28344
28345 2001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
28346
28347 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
28348 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
28349
28350 2001-10-29 Gerd Moellmann <gerd@gnu.org>
28351
28352 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
28353 use NO_CURSOR if cursor_in_non_selected_windows is false.
28354
28355 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
28356 the slant attribute if FRAME is t.
28357
28358 * xfns.c (x_set_internal_border_width): Set frame garbaged
28359 when X window doesn't exist yet.
28360
28361 * xterm.c (x_after_update_window_line): Clear internal border
28362 in different circumstances.
28363
28364 * xterm.c (XTread_socket) <KeyPress>: Don't use
28365 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
28366 <handa@etl.go.jp>.
28367
28368 2001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
28369
28370 * m/ibms390.h: New file. From Adam Thornton
28371 <athornton@sinenomine.net>.
28372
28373 2001-10-28 Gerd Moellmann <gerd@gnu.org>
28374
28375 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
28376
28377 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
28378 a loop counter.
28379
28380 2001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
28381
28382 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
28383
28384 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
28385 keyword].
28386 Fix typos in comments.
28387
28388 * emacs.c (bug_reporting_address): New function.
28389 Use it when displaying usage message.
28390
28391 * minibuf.c (read_minibuf): Remove unused external declaration of
28392 variable `Qread_only'.
28393
28394 * keymap.c (access_keymap): Remove unused variable `charset'.
28395
28396 2001-10-28 Miles Bader <miles@gnu.org>
28397
28398 * xfaces.c (merge_face_heights): Handle TO being relative as well.
28399 Remove #ifdef'd-out code.
28400 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
28401 (syms_of_xfaces): Initialize them.
28402
28403 2001-10-27 Jason Rumney <jasonr@gnu.org>
28404
28405 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
28406 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
28407 position using the system caret.
28408
28409 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
28410 (w32_system_caret_height, w32_system_caret_x)
28411 (w32_system_caret_y): New variables for tracking system caret.
28412 (w32_initialize): Initialize them.
28413 (x_display_and_set_cursor): Make system caret follow the active cursor.
28414
28415 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
28416 New messages types.
28417
28418 * w32term.c (note_mouse_highlight): Clear old help_echo.
28419
28420 2001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
28421
28422 * xterm.c: Fix typo in a comment.
28423
28424 * emacs.c: Fix typos in comments.
28425 Remove unnecessary spaces.
28426 Change doc-string comments to `new style' [w/`doc:' keyword].
28427 (USAGE2): Fix typos in usage string.
28428
28429 * xterm.c: Fix typo in a comment.
28430
28431 * lisp.h (gdb_lisp_params): Remove code in #if 0 which is now in
28432 emacs.c.
28433
28434 2001-10-27 Gerd Moellmann <gerd@gnu.org>
28435
28436 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
28437 instead of 1/2 line_height in the heuristic for skipping
28438 farther backward when target_y was not reached.
28439
28440 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
28441 Display errno only if non-zero.
28442 (sound_warning): New function.
28443 (vox_configure): Don't treat failing to set sample rate as error.
28444 (various places): Improve error messages.
28445
28446 2001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
28447
28448 * fileio.c (Faccess_file): Run the argument filename through
28449 Fexpand_file_name, before using it.
28450
28451 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
28452 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
28453
28454 2001-10-26 Gerd Moellmann <gerd@gnu.org>
28455
28456 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
28457
28458 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
28459 Fix clearing in the case of scroll bars on the right.
28460
28461 2001-10-26 Juanma Barranquero <lektu@terra.es>
28462
28463 * w32gui.h (XImage): Add a dummy typedef.
28464
28465 2001-10-26 Gerd Moellmann <gerd@gnu.org>
28466
28467 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
28468
28469 2001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
28470
28471 * frame.c (Fframe_parameter): Fix last change.
28472
28473 * fileio.c: Revert last change (which removed old commented-out
28474 version of expand-file-name). Add a comment that explains why
28475 this old version should not be removed.
28476
28477 2001-10-25 Gerd Moellmann <gerd@gnu.org>
28478
28479 * frame.c (Fframe_parameter): Fix a bug whereby some
28480 ``artificial'' frame parameters, like `minibuffer' were not
28481 obtained by calling Fframe_parameters.
28482
28483 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
28484 cursor differently.
28485
28486 * xdisp.c (move_it_vertically_backward): Compute line height
28487 differently. Add heuristic to try to be more compatible to 20.x.
28488
28489 2001-10-25 Stefan Monnier <monnier@cs.yale.edu>
28490
28491 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
28492
28493 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
28494 boolean.
28495
28496 2001-10-25 Miles Bader <miles@gnu.org>
28497
28498 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
28499 BG is a pointer to a structure, not a structure.
28500 (gif_format, png_format): Add missing commas.
28501
28502 2001-10-24 Richard M. Stallman <rms@gnu.org>
28503
28504 * xfaces.c (Fface_attributes_as_vector): New function.
28505 (syms_of_xfaces): Defsubr it.
28506
28507 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
28508
28509 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
28510 variable `area'.
28511
28512 2001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
28513
28514 * search.c (scan_newline): Remove unused variable `selective_display'.
28515
28516 2001-10-25 Miles Bader <miles@gnu.org>
28517
28518 * dispextern.h (struct image): Add `background',
28519 `background_valid', and `background_transparent' fields.
28520 (image_background, image_background_transparent): New declarations.
28521 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
28522 * xfns.c (image_background, image_background_transparent)
28523 (four_corners_best): New functions.
28524 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
28525 (gs_format): Add `:background' entry.
28526 (lookup_image): Set IMG's background color if specified.
28527 (pbm_load, xbm_load_image, png_load): Set IMG's background field
28528 when appropriate.
28529 (x_clear_image_1): Reset `background_valid' and
28530 `background_transparent_valid' fields.
28531 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
28532 calculating it here. Set IMG's background_transparent field.
28533 (enum xpm_keyword_index): Add XPM_BACKGROUND.
28534 (enum png_keyword_index): Add PNG_BACKGROUND.
28535 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
28536 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
28537 (enum gif_keyword_index): Add GIF_BACKGROUND.
28538 (enum gs_keyword_index): Add GS_BACKGROUND.
28539 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
28540 Pre-calculate image background color where necessary.
28541 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
28542 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
28543 color to use for image glyph reliefs.
28544
28545 2001-10-24 Gerd Moellmann <gerd@gnu.org>
28546
28547 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
28548 in full-width rows.
28549
28550 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
28551 Fix clearing of area not covered by scroll bar.
28552
28553 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
28554
28555 * xterm.c (x_insert_glyphs): Remove unused variables `real_end'
28556 and `real_start'.
28557 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
28558 (glyph_rect): Remove unused variable `area'.
28559
28560 2001-10-24 Gerd Moellmann <gerd@gnu.org>
28561
28562 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
28563
28564 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
28565 (row_containing_pos): Take additional argument DY.
28566 Treat rows ending in middle of char differently.
28567 (display_line): Handle tabs on window systems differently.
28568
28569 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
28570 with additional argument.
28571
28572 * dispextern.h (row_containing_pos): Adjust prototype.
28573
28574 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
28575 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
28576 (try_window_id, try_window_reusing_current_matrix)
28577 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
28578 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
28579
28580 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
28581
28582 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
28583 gnuemacs).
28584 (HAVE_BOXES): Fix typo in comment.
28585 (push_menu_pane): Fix typo in comment.
28586
28587 * xdisp.c (display_prop_string_p): Remove unused local declaration
28588 of `Qwhen'.
28589 (single_display_prop_string_p): Remove unused local declarations
28590 of `Qwhen' and `Qmargin'.
28591 (string_buffer_position): Remove unused variable `around'.
28592 (store_frame_title): Remove unused variable `width'.
28593
28594 * window.c: Don't define max.
28595 (coordinates_in_window): Remove unused variable `uy'.
28596
28597 * widget.c: Don't define max.
28598
28599 * process.c: Don't define max.
28600 (create_process): Remove unused variable `buffer'.
28601
28602 2001-10-23 Gerd Moellmann <gerd@gnu.org>
28603
28604 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
28605
28606 2001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
28607
28608 * xfaces.c (Finternal_set_lisp_face_attribute)
28609 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
28610 frame is on a windowed display.
28611
28612 2001-10-23 Gerd Moellmann <gerd@gnu.org>
28613
28614 * dispnew.c (sync_window_with_frame_matrix_rows):
28615 Fix handling of windows which aren't full-width, fix handling
28616 of marginal areas.
28617
28618 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
28619
28620 2001-10-23 Andreas Schwab <schwab@suse.de>
28621
28622 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
28623 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
28624
28625 2001-10-23 Gerd Moellmann <gerd@gnu.org>
28626
28627 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
28628 REAL_END. Notice if cursor gets overwritten.
28629 (notice_overwritten_cursor): Take X positions as parameters.
28630 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
28631 around call to x_draw_glyphs.
28632
28633 2001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
28634
28635 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
28636 instead of C) and usage.
28637
28638 * editfns.c (char-to-string): Fix argument names (use CHAR instead
28639 of C) and usage.
28640
28641 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
28642 `left', `max_width' and `max_height'.
28643
28644 2001-10-23 Gerd Moellmann <gerd@gnu.org>
28645
28646 * xdisp.c (display_line): For a tab continued to the next line,
28647 set row's ends_in_middle_of_char_p.
28648
28649 2001-10-22 Gerd Moellmann <gerd@gnu.org>
28650
28651 * xdisp.c (display_line): Fix computation of continuation lines
28652 width for TABs.
28653
28654 2001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
28655
28656 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
28657 `Qlaplace'.
28658
28659 * fileio.c: Remove unused code.
28660
28661 2001-10-22 Miles Bader <miles@gnu.org>
28662
28663 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
28664 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
28665 Remove `DOC_STRINGS_IN_COMMENTS' cases.
28666
28667 2001-10-21 Jason Rumney <jasonr@gnu.org>
28668
28669 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
28670
28671 2001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
28672
28673 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
28674 (Finsert_string): Avoid the multi-line string literals warning.
28675
28676 2001-10-22 Miles Bader <miles@gnu.org>
28677
28678 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
28679 (Fdocumentation): Don't use it.
28680 (syms_of_doc): Don't initialize it.
28681
28682 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
28683 * print.c (Fwith_output_to_temp_buffer): Likewise.
28684 * window.c (Fsave_window_excursion): Likewise.
28685 * editfns.c (Fsave_excursion, Fsave_current_buffer)
28686 (Fsave_restriction): Likewise.
28687 * eval.c (Frun_hooks, Frun_hook_with_args)
28688 (Frun_hook_with_args_until_failure)
28689 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
28690 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
28691 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
28692 (Funwind_protect, Fcondition_case): Likewise.
28693 * coding.c (Ffind_operation_coding_system): Likewise.
28694 * keyboard.c (Ftrack_mouse): Likewise.
28695
28696 2001-10-21 Miles Bader <miles@gnu.org>
28697
28698 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
28699 (Fmake_hash_table): Add usage: string to doc string.
28700 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
28701 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
28702 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
28703 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
28704 (Fml_prefix_argument_loop): Likewise.
28705
28706 2001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
28707
28708 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
28709
28710 * sysdep.c (init_sys_modes): Change doc-string comments to `new
28711 style' [w/`doc:' keyword].
28712
28713 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
28714 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
28715 comments to `new style' [w/`doc:' keyword].
28716
28717 2001-10-21 Jason Rumney <jasonr@gnu.org>
28718
28719 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
28720
28721 * w32term.c (remember_mouse_glyph): New function.
28722 (w32_mouse_position): Use it.
28723 (note_mouse_movement): If the mouse moved off the glyph, remember
28724 its new position.
28725
28726 * w32term.h (struct w32_output): Correct spelling of x_compatible.
28727 (w32_display_info): Add mouse_face_overlay.
28728
28729 * w32term.c (notice_overwritten_cursor): Renamed from
28730 note_overwritten_text_cursor. Rewritten to take glyph widths into
28731 account.
28732 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
28733 (fast_find_string_pos): New function.
28734 (fast_find_position): Return the correct vpos. Add parameter
28735 STOP. In the final row, stop before glyphs having STOP as object.
28736 Don't consider glyphs that are not from a buffer.
28737 (fast_find_position) [0]: Add a presumably more correct version
28738 for after 21.1.
28739 (expose_window_tree, expose_frame): Don't compute intersections here.
28740 (expose_window): Do it here instead.
28741 (expose_window_tree, expose_window, expose_line): Return 1 when
28742 overwriting mouse-face.
28743 (expose_window): If W is the window currently being updated, mark
28744 the frame garbaged.
28745 (expose_frame): If mouse-face was overwritten, redo it.
28746 (x_use_underline_position_properties): New variable.
28747 (syms_of_xterm): DEFVAR_BOOL it.
28748 (x_draw_glyph_string): Add comment to use it in future.
28749 (x_draw_glyph_string): Restore clipping after drawing box.
28750 Fix a computation of the underline position.
28751 (w32_get_glyph_string_clip_rect): Minor cleanup.
28752 (x_fill_stretch_glyph_string): Remove an assertion.
28753 (x_produce_glyphs): Don't convert multibyte characters
28754 to unibyte characters in unibyte buffers.
28755 (cursor_in_mouse_face_p): New function.
28756 (x_draw_stretch_glyph_string): Use it to choose a different GC
28757 when drawing a cursor within highlighted text. Don't draw
28758 background again if it has already been drawn.
28759 (x_draw_glyph_string_box): Don't draw a full-width
28760 box just because the glyph row's full_width_p flag is set.
28761 (x_draw_glyphs): Fix computation of rightmost x for
28762 full-width rows.
28763 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
28764 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
28765 change bottom shadow accordingly. Some cleanup.
28766 (x_update_window_end): Handle overwritten mouse face
28767 also for tool bar windows.
28768 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
28769 DRAW is DRAW_IMAGE_RAISED.
28770 (clear_mouse_face): Return 1 if text with mouse face was
28771 actually redrawn. Make the function static.
28772 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
28773 optimize away highlighting if we pass over that same overlay again.
28774 (note_mouse_highlight): Call mouse_face_overlay_overlaps
28775 to detect a case where we have to highlight a different region
28776 despite not having left the currently highlighted region.
28777 Set mouse_face_overlay in the x_display_info. Avoid changing the
28778 mouse pointer shape when show_mouse_face has already done it, or
28779 there is no need. Handle mouse-face and help-echo in strings.
28780 (glyph_rect): New function.
28781 (w32_mouse_position): Use it to raise the threshold for mouse
28782 movement event generation.
28783 (w32_initialize_display_info): Initialize the x_display_info's
28784 mouse_face_overlay.
28785 (w32_set_vertical_scroll_bar): Don't clear a zero height
28786 or width area.
28787 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
28788 a widget to zero height.
28789
28790 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
28791 Protect unibyte strings created by replacing their multibyte
28792 equivalents in menu_items.
28793 (w32_menu_show): Don't overwrite an item's name with its key
28794 description in case the description is a multibyte string.
28795 (single_submenu): Some cleanup.
28796
28797 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
28798 (postprocess_image): New function.
28799 (lookup_image): Call it for all image types except PostScript.
28800 (x_kill_gs_process): Call postprocess_image.
28801 (tiff_error_handler, tiff_warning_handler): New functions.
28802 (tiff_load): Install them as handlers.
28803 (x_kill_gs_process): Recognize if someone has cleared the image
28804 cache under us.
28805 (valid_image_p): Protect better against invalid image
28806 specifications. Previous code could signal an error.
28807 (Fx_hide_tip, Fshow_tip): Doc fix.
28808 (Fv_max_tooltip_size): New variable.
28809 (syns_of_xfns): DEFVAR_LISP it.
28810 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
28811 window buffer to *tip* right after creating the frame. Set frame's
28812 window_width. Use a maximum tooltip size specified by
28813 Vx_max_tooltip_size, if that has valid contents.
28814 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
28815 Make sure the tooltip is completely visible.
28816 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
28817 (Fx_create_frame): Adjust the frame's height for presence
28818 of the tool bar before calling x_figure_window_size.
28819 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
28820 when the window gets smaller.
28821 (x_set_foreground_color): Set frame's cursor_pixel.
28822 (x_set_foreground_color, x_set_background_color): Cleaned up.
28823 (x_set_font): Handle case of x_new_fontset returning the same name
28824 as before, although there was a change in fontsets.
28825
28826 2001-10-21 Miles Bader <miles@gnu.org>
28827
28828 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
28829 (Flogxor): Add usage: string to doc string.
28830 * charset.c (Fstring): Likewise.
28831 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
28832 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
28833
28834 2001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
28835
28836 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
28837
28838 * alloc.c: Reindent DEFUNs with doc: keywords.
28839
28840 * abbrev.c (Finsert_abbrev_table_description): Reindent.
28841
28842 * frame.c: Change doc-string comments to `new style' [w/`doc:'
28843 keyword].
28844
28845 See ChangeLog.9 for earlier changes.
28846
28847 ;; Local Variables:
28848 ;; coding: iso-2022-7bit
28849 ;; add-log-time-zone-rule: t
28850 ;; End:
28851
28852 Copyright (C) 2001, 2002, 2003, 2004, 2005,
28853 2006, 2007 Free Software Foundation, Inc.
28854
28855 This file is part of GNU Emacs.
28856
28857 GNU Emacs is free software; you can redistribute it and/or modify
28858 it under the terms of the GNU General Public License as published by
28859 the Free Software Foundation; either version 3, or (at your option)
28860 any later version.
28861
28862 GNU Emacs is distributed in the hope that it will be useful,
28863 but WITHOUT ANY WARRANTY; without even the implied warranty of
28864 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28865 GNU General Public License for more details.
28866
28867 You should have received a copy of the GNU General Public License
28868 along with GNU Emacs; see the file COPYING. If not, write to the
28869 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
28870 Boston, MA 02110-1301, USA.
28871
28872 ;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4