]> code.delx.au - gnu-emacs/blob - src/ChangeLog
*** empty log message ***
[gnu-emacs] / src / ChangeLog
1 2006-09-22 Kenichi Handa <handa@m17n.org>
2
3 * fns.c (optimize_sub_char_table): Don't optimize a sub-char-table
4 whose default value is non-nil.
5
6 2006-09-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7
8 * gtkutil.c (xg_get_file_with_chooser): Only show C-l help for
9 Gtk+ versions < 2.10.
10
11 * xfns.c (syms_of_xfns): Fix typo in help text for
12 x-gtk-file-dialog-help-text.
13
14 2006-09-21 Kim F. Storm <storm@cua.dk>
15
16 * fns.c (Fmemq): Refill doc string.
17 (Fmemql): New defun, like memq but using eql.
18 (syms_of_fns): Defsubr it.
19
20 2006-09-20 Kim F. Storm <storm@cua.dk>
21
22 * xdisp.c (pos_visible_p): CHARPOS < 0 means return info for
23 last visible glyph in window.
24
25 * window.c (Fset_window_hscroll, Fwindow_line_height):
26 Doc fix. Use "off-window" instead of "off-screen".
27 (Fpos_visible_in_window_p): Likewise.
28 If POS is t, return info for last visible glyph in window.
29
30 2006-09-19 Chong Yidong <cyd@stupidchicken.com>
31
32 * search.c (struct regexp_cache): New entry syntax_table.
33 (compile_pattern_1): Set it.
34 (syms_of_search): Initialize it.
35 (compile_pattern): Require the syntax_table entry of the cache
36 element to match the current syntax table entry.
37
38 2006-09-19 Stefan Monnier <monnier@iro.umontreal.ca>
39
40 * window.c (Fwindow_end): Fix recent change.
41
42 2006-09-19 Kim F. Storm <storm@cua.dk>
43
44 * window.c (Fset_window_hscroll, Fpos_visible_in_window_p):
45 Doc fix. Use "off-screen" instead of "invisible".
46 (Fwindow_line_height): Make line numbers 0-based. Make line arg
47 optional; if nil, use current cursor row. Handle text terminals
48 properly. Return nil if non-interactive or pseudo-window.
49
50 2006-09-19 Stefan Monnier <monnier@iro.umontreal.ca>
51
52 * keymap.c: Include alloca.h if available.
53 (Fkey_binding): Only use AREF after checking it's a vector.
54 Remove unused var `window'.
55
56 2006-09-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
57
58 * emacs.c (shut_down_emacs) [!subprocesses]: Don't set
59 inhibit_sentinels.
60
61 * mac.c [!MAC_OSX] (select): Fix argument name.
62
63 * macmenu.c (enum mac_menu_kind, min_menu_id): New enumerator and
64 menu ID for Apple menu.
65 (menubar_selection_callback): Remove function.
66 (find_and_call_menu_selection): New function from xmenu.c.
67 (x_activate_menubar): Use it.
68 (set_frame_menubar): Don't use f->output_data.mac->menubar_active.
69
70 * macterm.c (menubar_selection_callback): Remove extern.
71 (M_APPLE): Change to 234.
72 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Make non-static.
73 (do_menu_choice): Remove function.
74
75 * macterm.h (struct mac_output): Remove member menubar_active.
76 (do_menu_choice): Remove extern.
77 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Add extern.
78
79 2006-09-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
80
81 * xfns.c (syms_of_xfns): Rename x_gtk_show_chooser_help_text to
82 x_gtk_file_dialog_help_text.
83
84 * gtkutil.c (xg_uses_old_file_dialog): Rename x-use-old-gtk-file-dialog
85 to x-gtk-use-old-file-dialog.
86 (xg_get_file_with_chooser): Rename x_gtk_show_chooser_help_text to
87 x_gtk_file_dialog_help_text.
88
89 * xfns.c (syms_of_xfns): Ditto.
90
91 2006-09-18 Kim F. Storm <storm@cua.dk>
92
93 * window.c (Fwindow_line_visibility): Remove.
94 (Fwindow_line_height): New defun replacing it.
95 (syms_of_window): Defsubr it.
96
97 2006-09-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
98
99 * mac.c (SELECT_USE_CFSOCKET) [MAC_OSX]: Set default to 1.
100 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Fix pointer type.
101
102 2006-09-17 Jay Belanger <belanger@truman.edu>
103
104 * gmalloc.c:
105 * md5.c:
106 * md5.h:
107 * strftime.c: Replace "GNU Library General Public License" by "GNU
108 General Public License" throughout.
109
110 2006-09-17 Kim F. Storm <storm@cua.dk>
111
112 * dispnew.c (update_text_area): Undo 2000-07-18 change.
113 Always redrawing whole row if line has mouse-face in it causes
114 excessive flickering of the mode line.
115
116 2006-09-17 Chong Yidong <cyd@stupidchicken.com>
117
118 * search.c (clear_regexp_cache): New function.
119
120 * syntax.c (Fmodify_syntax_entry): Clear regexp cache.
121
122 2006-09-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
123
124 * gtkutil.c (xg_get_file_with_chooser):
125 Check x-gtk-show-chooser-help-text before adding the help text.
126
127 * xfns.c (syms_of_xfns): New variable: x-gtk-show-chooser-help-text.
128
129 * gtkutil.c (get_utf8_string): Try harder to convert to UTF8. Gtk+
130 will simply crash if we fail.
131
132 2006-09-16 Richard Stallman <rms@gnu.org>
133
134 * regex.c (re_compile_pattern): Set gl_state.current_syntax_table.
135
136 2006-09-15 Kim F. Storm <storm@cua.dk>
137
138 * window.c (Fwindow_line_visibility): New defun for line-move-partial.
139 (syms_of_window): Defsubr it.
140 (Fwindow_end): Use window's buffer rather than current buffer.
141
142 2006-09-15 Jay Belanger <belanger@truman.edu>
143
144 * COPYING: Replace "Library Public License" by "Lesser Public
145 License" throughout.
146
147 2006-09-15 David Kastrup <dak@gnu.org>
148
149 * Makefile.in (keymap.o): Add "keymap.h" and "window.h"
150 dependencies.
151
152 * keymap.c: include "window.h".
153 (Fcommand_remapping): New optional POSITION argument.
154 (Fkey_binding): New optional POSITION argument. Completely rework
155 handling of mouse clicks to get the same order of keymaps as
156 `read-key-sequence' and heed POSITION. Also temporarily switch
157 buffers to location of mouse click and back.
158
159 * keyboard.c (command_loop_1): Adjust call of `Fcommand_remapping'
160 for additional argument.
161 (parse_menu_item): Adjust call of `Fkey_binding' for additional
162 argument.
163 (read_key_sequence): If there are both `local-map' and `keymap'
164 text properties at some buffer position, heed both.
165
166 * keymap.h: Declare additional optional arguments of
167 `Fcommand_remapping' and `Fkey_binding'.
168
169 2006-09-15 Juanma Barranquero <lekktu@gmail.com>
170
171 * indent.c (Fcurrent_column, Findent_to): Fix typos in docstring.
172
173 2006-09-14 Andreas Schwab <schwab@suse.de>
174
175 * print.c: Whitespace fixup.
176
177 2006-09-14 Kim F. Storm <storm@cua.dk>
178
179 * xdisp.c (produce_image_glyph): Automatically crop wide images at
180 right window edge so we can draw the cursor on the same row to
181 avoid confusing redisplay by placing the cursor outside the visible
182 window area.
183
184 2006-09-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
185
186 * xterm.c (x_initialize): Don't install Xt event timer here.
187 (x_timeout_atimer_activated_flag): New var.
188 (x_activate_timeout_atimer): New function to install Xt timer.
189 (x_send_scroll_bar_event, x_process_timeouts): Use it.
190
191 * xmenu.c (x_menu_set_in_use, popup_activate_callback)
192 (create_and_show_popup_menu, create_and_show_dialog): Use it.
193
194 * xterm.h (x_activate_timeout_atimer): Add prototype.
195
196 2006-09-13 Richard Stallman <rms@gnu.org>
197
198 * print.c (print_string): When printcharfun is t,
199 copy string contents and call strout on the copy.
200
201 * keyboard.c (read_char): If end_time specified, don't put the
202 event into this_command_keys.
203 (read_key_sequence): If Voverriding_terminal_local_map is specified,
204 don't check Voverriding_local_map at all.
205
206 2006-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
207
208 * textprop.c (Fnext_property_change, Fnext_single_property_change)
209 (Fprevious_property_change, Fprevious_single_property_change):
210 Avoid changing limit, so we can correctly catch the case where the
211 property is constant up to limit.
212
213 2006-09-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
214
215 * macfns.c (mac_window) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
216 * macterm.c (XTread_socket) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
217 Undo 2006-09-08 change.
218
219 2006-09-11 Chong Yidong <cyd@stupidchicken.com>
220
221 * keymap.c (Fkey_binding): Use string position for string objects.
222
223 2006-09-11 Kim F. Storm <storm@cua.dk>
224
225 * keymap.c (Fkey_binding): Fix last change.
226
227 * editfns.c (Fmessage): Recommend using (message "%s" ...).
228
229 2006-09-10 Chong Yidong <cyd@stupidchicken.com>
230
231 * keymap.c (Fkey_binding): Check for local keymap for mouse click
232 events.
233
234 2006-09-10 Kim F. Storm <storm@cua.dk>
235
236 * keyboard.c (Finput_pending_p): Check Vunread_input_method_events
237 and Vunread_post_input_method_events.
238
239 * dispnew.c (Fredisplay): Document return value.
240
241 2006-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
242
243 * xfns.c (Fx_close_connection): Call xg_display_close when USE_GTK.
244
245 * gtkutil.c (xg_display_close): Always change default display if needed,
246 check for < Gtk+ version 2.10 before calling gdk_display_close.
247
248 2006-09-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
249
250 * mac.c [MAC_OSX] (sys_select): Check argument `nfds' more rigidly.
251 Make variable `ofds' static. Remove variable `maxfd'.
252
253 * macfns.c (Fx_file_dialog): Remove unused variable `f'.
254 Call check_mac.
255
256 * macmenu.c (Vmenu_updating_frame, syms_of_macmenu):
257 * w32menu.c (Vmenu_updating_frame, syms_of_w32menu):
258 Apply 2006-09-08 change for xmenu.c.
259
260 * xfns.c (Fx_file_dialog): Call check_x.
261
262 2006-09-10 Kim F. Storm <storm@cua.dk>
263
264 * xdisp.c (get_window_cursor_type): Use hollow cursor on
265 non-transparent images.
266
267 2006-09-09 Eli Zaretskii <eliz@gnu.org>
268
269 * editfns.c (Fsystem_name): Mention "host" in the doc string.
270 (syms_of_editfns) <system-name>: Likewise.
271
272 2006-08-27 Martin Rudalics <rudalics@gmx.at>
273
274 * xdisp.c (mouse_autoselect_window): Removed.
275 (Vmouse_autoselect_window): New variable. DEFVAR_LISP it.
276
277 * dispextern.h (mouse_autoselect_window): Remove extern.
278 (Vmouse_autoselect_window): Add extern.
279
280 * macterm.c (XTread_socket): Test Vmouse_autoselect_window
281 instead of mouse_autoselect_window.
282
283 * msdos.c (dos_rawgetc): Likewise.
284
285 * w32term.c (w32_read_socket): Likewise.
286
287 * xterm.c (handle_one_xevent): Likewise.
288
289 2006-09-08 Richard Stallman <rms@gnu.org>
290
291 * xdisp.c (Vmenu_updating_frame): Define here.
292 (syms_of_xdisp): DEFVAR it here.
293 (update_menu_bar): Always return hooks_run.
294 Set Vmenu_updating_frame.
295
296 * xdisp.c (redisplay_internal): Test Vinhibit_redisplay
297 before calculating SELECTED_FRAME.
298
299 * xmenu.c (Vmenu_updating_frame): Don't define here.
300 (syms_of_xmenu): Don't DEFVAR it here.
301
302 * xterm.c (x_error_quitter): For BadName error, just return.
303
304 * eval.c (find_handler_clause): Give up on debugger if INPUT_BLOCKED_P.
305
306 * casetab.c (init_casetab_once): Call set_case_table.
307
308 * emacs.c (shut_down_emacs): Set inhibit_sentinels.
309
310 * process.c (inhibit_sentinels): New variable.
311 (exec_sentinel): Test inhibit_sentinels.
312 (init_process): Initialize it.
313
314 * process.h (inhibit_sentinels): Add decl.
315
316 * search.c (looking_at_1, string_match_1, search_command):
317 Make syntax table's canon table point to eqv table.
318
319 2006-09-08 Andreas Schwab <schwab@suse.de>
320
321 * print.c (strout): Fix whitespace.
322
323 2006-09-08 Kim F. Storm <storm@cua.dk>
324
325 * xterm.c (x_draw_glyph_string): Fix 2006-08-24 change.
326
327 2006-09-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
328
329 * mac.c [!MAC_OSX]: Don't include keyboard.h.
330 [!MAC_OSX] (select): Try detect_input_pending before ReceiveNextEvent
331 in the same BLOCK_INPUT block, in case that some input has already
332 been read asynchronously. Pretend to be interrupted by a signal
333 if some input is available.
334 [MAC_OSX] (select_and_poll_event, sys_select): Likewise.
335 (SELECT_POLLING_PERIOD_USEC) [SELECT_USE_CFSOCKET]: Change to 100000.
336 Now used for ReceiveNextEvent timeout instead of select timeout.
337 (EVENT_CLASS_SOCK) [SELECT_USE_CFSOCKET]: Remove macro.
338 [SELECT_USE_CFSOCKET] (socket_callback): Add non-blocking connect
339 support. Quit event loop.
340 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Add non-blocking
341 connect support. Reuse previously allocated CFRunLoopSource.
342 (Fmac_process_hi_command) [TARGET_API_MAC_CARBON]: New function.
343 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
344
345 * macfns.c (mac_window) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
346 Specify kWindowAsyncDragAttribute.
347
348 * macterm.c (mac_handle_origin_change, mac_handle_size_change)
349 (mac_get_ideal_size): New functions.
350 (x_set_offset, x_set_window_size, x_make_frame_visible)
351 (do_zoom_window, mac_handle_window_event, XTread_socket): Use them.
352 (install_window_handler, mac_handle_window_event)
353 [USE_CARBON_EVENTS]: Handle kEventWindowGetIdealSize and
354 kEventWindowBoundsChanged.
355 (XTread_socket) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Don't call
356 DragWindow.
357
358 2006-09-07 Andreas Schwab <schwab@suse.de>
359
360 * m/ibms390x.h (START_FILES, LIB_STANDARD): Override to
361 use lib64 instead of lib.
362
363 2006-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
364
365 * Makefile.in: Avoid double quotes when possible.
366
367 2006-09-06 Kenichi Handa <handa@m17n.org>
368
369 * editfns.c (Fformat_time_string): Use make_unibyte_string to make
370 a Lisp string from the result of emacs_memftimeu call.
371
372 2006-09-06 Kim F. Storm <storm@cua.dk>
373
374 * xdisp.c (pos_visible_p): Remove exact_mode_line_heights_p arg;
375 so calculate heights even when pos-visible-in-window-p is called
376 with partially = t. Don't overshoot last_visible_y in move_it_to.
377 Return row height and row number in new rowh and vpos args.
378 (cursor_row_fully_visible_p): First line is always "fully visible".
379 (try_window): Don't clear matrix if vscrolled.
380
381 * lisp.h (pos_visible_p): Update prototype.
382
383 * window.c (Fpos_visible_in_window_p): Adapt to new pos_visible_p.
384 Return row height and row number for partially visible rows.
385 Modify return value to a 2 element list for fully visible rows and
386 6 for partially visible row.
387 (window_scroll_pixel_based): Use pos_visible_p directly instead of
388 Fpos_visible_in_window_p. Fix auto vscrolling for partially
389 visible lines. Only vscroll backwards if already vscrolled
390 forwards. Unconditionally vscroll forwards if PT is first (and
391 only) line. Set new window start instead of scrolling at
392 start/end of tall line.
393
394 2006-09-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
395
396 * macterm.c (install_window_handler, mac_handle_window_event)
397 [USE_CARBON_EVENTS]: Handle kEventWindowClose.
398 [USE_MAC_TSM] (mac_handle_text_input_event): Set modifiers for
399 ASCII keystroke event.
400
401 2006-09-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
402
403 * gtkutil.c (xg_get_file_with_chooser): Don't mention specific keys in
404 the file chooser message. Only call gtk_file_chooser_set_current_name
405 when action is SAVE.
406
407 2006-09-04 Andreas Schwab <schwab@suse.de>
408
409 * Makefile.in: Double all single and back quotes in C-style
410 comments to help fontifier.
411
412 2006-09-03 Jason Rumney <jasonr@gnu.org>
413
414 * w32.c (shutdown_handler): New function to exit cleanly on shutdown.
415 (globals_of_w32): Register it as a signal handler.
416
417 2006-09-02 Juri Linkov <juri@jurta.org>
418
419 * marker.c (Fmarker_position): Doc fix.
420
421 2006-09-03 Eli Zaretskii <eliz@gnu.org>
422
423 * window.c (syms_of_window) <split-height-threshold>:
424 <window-min-height, window-min-width>: Doc fix.
425
426 2006-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
427
428 * gtkutil.c (xg_get_file_with_chooser): Change file chooser message
429 for writing files. Call gtk_file_chooser_set_current_name to keep
430 default filename.
431
432 * minibuf.c (Finternal_complete_buffer): Move after DEFUN:s it calls
433
434 2006-09-02 Jindrich Makovicka <makovick@gmail.com> (tiny change)
435
436 * fns.c (concat) [__GNUC__]: Declare with
437 `__attribute__((noinline))'.
438
439 * eval.c (apply1, call2) [__GNUC__]: Declare with
440 `__attribute__((noinline))'.
441
442 2006-09-02 Stuart D. Herring <herring@lanl.gov>
443
444 * minibuf.c (Finternal_complete_buffer): New function.
445 (syms_of_minibuf): Defsubr it.
446 (Fread_buffer): Use it, instead of Vbuffer_alist.
447
448 2006-09-01 Martin Rudalics <rudalics@gmx.at>
449
450 * buffer.h (struct buffer_text): New field chars_modiff.
451 (CHARS_MODIFF, BUF_CHARS_MODIFF): New macros.
452 * buffer.c (Fbuffer_chars_modified_tick): New function returning
453 value of BUF_CHARS_MODIFF.
454 (syms_of_buffer): Defsubr it.
455 (Fget_buffer_create): Initialize BUF_CHARS_MODIFF.
456 * insdel.c (modify_region): New argument preserve_chars_modiff.
457 Set CHARS_MODIFF to MODIFF provided preserve_chars_modiff is zero.
458 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
459 (adjust_after_replace, adjust_after_replace_noundo)
460 (replace_range, replace_range_2, del_range_2): Reset CHARS_MODIFF.
461 * lisp.h (modify_region): Add fourth argument in extern.
462 * casefiddle.c (casify_region): Call modify_region with fourth
463 argument zero to assert that CHARS_MODIFF is updated.
464 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
465 (Ftranspose_regions): Likewise.
466 * textprop.c (Fadd_text_properties, Fset_text_properties)
467 (Fremove_text_properties, Fremove_list_of_text_properties):
468 Call modify_region with fourth argument 1 to avoid that
469 CHARS_MODIFF is updated.
470
471 2006-08-31 Richard Stallman <rms@gnu.org>
472
473 * editfns.c (Fformat): Don't sign-extend for %o or %x.
474
475 2006-08-29 Chong Yidong <cyd@stupidchicken.com>
476
477 * indent.c (Fvertical_motion): Don't move back if we were
478 displaying a Lisp string, either.
479
480 2006-08-28 Kim F. Storm <storm@cua.dk>
481
482 * xdisp.c (get_window_cursor_type) [!HAVE_WINDOW_SYSTEM]:
483 Don't attempt to replace cursor on image glyphs.
484
485 2006-08-28 Kenichi Handa <handa@m17n.org>
486
487 * coding.c (Fdetect_coding_region, Fdetect_coding_string): Fix
488 docstring about ISO-2022 control characters.
489
490 2006-08-28 Kim F. Storm <storm@cua.dk>
491
492 * xdisp.c (get_window_cursor_type): Replace BOX cursor on images
493 with a hollow box cursor if image is larger than 32x32 (or the default
494 frame font if that is bigger). Replace any other cursor on images
495 with hollow box cursor, as redisplay doesn't support bar and hbar
496 cursors on images.
497
498 2006-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
499
500 * alloc.c (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Undo previous
501 change. Move mutex lock/unlock operations inside BLOCK_INPUT.
502
503 * dired.c (directory_files_internal_unwind, directory_files_internal)
504 (file_name_completion): Add BLOCK_INPUT around opendir/closedir.
505
506 * image.c [MAC_OS] (image_load_qt_1): Use ComponentResult instead
507 of OSErr.
508
509 * keyboard.c (in_sighandler): Remove variable.
510 (Fcurrent_idle_time): Add missing `doc:'.
511 (input_available_signal, init_keyboard): Undo previous change.
512
513 * keyboard.h (in_sighandler): Remove extern.
514
515 * mac.c (create_apple_event_from_event_ref, select)
516 (Fmac_get_file_creator, Fmac_get_file_type, Fmac_set_file_creator)
517 (Fmac_set_file_type, cfstring_create_normalized)
518 (mac_get_system_locale, select_and_poll_event, sys_select):
519 Use OSStatus instead of OSErr.
520
521 * macfns.c [TARGET_API_MAC_CARBON] (mac_update_proxy_icon):
522 Don't use FRAME_FILE_NAME. Use (FS)UpdateAlias.
523 (Fx_create_frame): Apply 2006-07-03 for xfns.c.
524
525 * macselect.c (get_scrap_from_symbol, clear_scrap, put_scrap_string)
526 (put_scrap_private_timestamp, scrap_has_target_type, get_scrap_string)
527 (get_scrap_private_timestamp, get_scrap_target_type_list)
528 (x_own_selection, x_get_foreign_selection)
529 (Fx_disown_selection_internal, Fx_selection_owner_p)
530 (Fx_selection_exists_p): Use OSStatus instead of OSErr.
531
532 * macterm.c (mac_draw_string_common, mac_query_char_extents)
533 (x_iconify_frame, XLoadQueryFont, install_window_handler)
534 (mac_handle_command_event, init_command_handler, init_menu_bar):
535 Use OSStatus instead of OSErr.
536 (x_free_frame_resources) [TARGET_API_MAC_CARBON]: Don't use
537 FRAME_FILE_NAME.
538 (x_query_font): Apply 2006-08-04 change for xterm.c.
539 (Qhi_command): Rename from Qhicommand. All uses changed.
540
541 * macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]: Remove member
542 file_name.
543 (FRAME_FILE_NAME): Remove macro.
544 (install_window_handler, create_apple_event_from_event_ref):
545 Return OSStatus instead of OSErr.
546
547 2006-08-26 Kim F. Storm <storm@cua.dk>
548
549 * buffer.c (Fset_buffer_multibyte):
550 * editfns.c (Fcurrent_time, Fget_internal_run_time):
551 * macfns.c (Fxw_color_values):
552 * w32fns.c (Fxw_color_values):
553 * xfns.c (Fxw_color_values): Simplify; use list3.
554
555 * fileio.c (Fmake_directory_internal, Fdelete_directory)
556 (Fdelete_file): Simplify; use list1.
557 (Frename_file, Fadd_name_to_file, Fmake_symbolic_link):
558 Simplify; remove NO_ARG_ARRAY stuff, use list2.
559
560 2006-08-25 Richard Stallman <rms@gnu.org>
561
562 * buffer.c (Fswitch_to_buffer): Fix previous change.
563
564 2006-08-25 Kim F. Storm <storm@cua.dk>
565
566 * keyboard.c (Fcurrent_idle_time): Simplify.
567
568 2006-08-25 Richard Stallman <rms@gnu.org>
569
570 * fns.c (sxhash_string): Rotate properly; don't lose bits.
571
572 2006-08-24 Francesc Rocher <francesc.rocher@gmail.com>
573
574 * xdisp.c (overline_margin): New variable.
575 (x_produce_glyphs): Use it.
576 (syms_of_xdisp): DEFVAR_INT it.
577
578 * xterm.c (x_underline_at_descent_line): New variable.
579 (syms_of_xterm): DEFVAR_BOOL it.
580 (x_draw_glyph_string): Use it.
581 Draw underline and overline up to the end of line if the face
582 extends to the end of line.
583
584 * macterm.c: Likewise.
585
586 * w32term.c: Likewise.
587
588 2006-08-24 Nick Roberts <nickrob@snap.net.nz>
589
590 * buffer.c (Fswitch_to_buffer): Move buffer to front of
591 buffer-alist if necessary.
592
593 2006-08-22 Kim F. Storm <storm@cua.dk>
594
595 * xdisp.c (update_tool_bar): Redisplay toolbar also when only
596 number of items changes.
597
598 2006-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
599
600 * buffer.c (Fset_buffer_multibyte): Record proper undo entry.
601
602 2006-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
603
604 * keyboard.c: Clarify difference between in_sighandler and
605 handling_signal.
606
607 2006-08-21 Kim F. Storm <storm@cua.dk>
608
609 * macterm.c (x_draw_stretch_glyph_string):
610 * w32term.c (x_draw_stretch_glyph_string):
611 * xterm.c (x_draw_stretch_glyph_string): It is ok to draw a
612 stretch glyph in left marginal areas on header and mode lines.
613
614 2006-08-21 Kenichi Handa <handa@m17n.org>
615
616 * keyboard.c (syms_of_keyboard): Docstring of
617 Vunread_post_input_method_events and Vunread_input_method_events
618 fixed.
619
620 2006-08-20 Chong Yidong <cyd@stupidchicken.com>
621
622 * keyboard.c (show_help_echo): Preserve mouse movement flag if
623 tracking mouse.
624
625 2006-08-20 Richard Stallman <rms@gnu.org>
626
627 * xfaces.c (load_pixmap): Add quotes in error message.
628
629 * keyboard.c (Fcurrent_idle_time): New function.
630 (syms_of_keyboard): defsubr it.
631
632 2006-08-18 Nick Roberts <nickrob@snap.net.nz>
633
634 * window.c (Fset_window_fringes): Do nothing on a tty.
635 (Fwindow_fringes): Put ? operator after the line break.
636
637 2006-08-16 Andreas Schwab <schwab@suse.de>
638
639 * print.c (debug_output_compilation_hack): Fix return type.
640
641 2006-08-16 Richard Stallman <rms@gnu.org>
642
643 * print.c (debug_output_compilation_hack): New function.
644
645 2006-08-16 Kenichi Handa <handa@m17n.org>
646
647 * fileio.c (choose_write_coding_system): Use LF for end-of-line
648 in auto-saving.
649
650 2006-08-15 Chong Yidong <cyd@stupidchicken.com>
651
652 * keyboard.c (read_char): Don't change idle timer state at all if
653 end_time is supplied.
654
655 2006-08-15 Kenichi Handa <handa@m17n.org>
656
657 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New arg RET. If SRC
658 is exhausted, return with RET.
659 (detect_coding_emacs_mule, detect_coding_iso2022)
660 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
661 (detect_coding_utf_16, detect_coding_ccl): Adjusted for the above
662 change.
663
664 2006-08-14 Chong Yidong <cyd@stupidchicken.com>
665
666 * keyboard.c (read_char): Don't reset idle timers if a time limit
667 is supplied.
668
669 2006-08-14 Kim F. Storm <storm@cua.dk>
670
671 * .gdbinit (pitx): Print iterator position.
672 Limit stack dump in case iterator is not initialized.
673
674 2006-08-12 Eli Zaretskii <eliz@gnu.org>
675
676 * frame.c (Fmouse_position, Fmouse_pixel_position)
677 (Fset_mouse_position, Fset_mouse_pixel_position): Doc fix.
678
679 2006-08-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
680
681 * xselect.c (Fx_register_dnd_atom): New function.
682 (syms_of_xselect): Defsubr it.
683 (x_handle_dnd_message): Check that message_type is in
684 dpyinfo->x_dnd_atoms before generating lisp event.
685
686 * xterm.h (struct x_display_info): Add x_dnd_atoms* to keep track
687 of drag and drop Atoms.
688
689 * xterm.c (x_term_init): Initialize dpyinfo->x_dnd_atoms*
690
691 2006-08-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
692
693 * keyboard.c: Define in_sighandler.
694 (input_available_signal): Set in_sighandler.
695 (init_keyboard): Initialize in_sighandler.
696
697 * keyboard.h: Declare in_sighandler.
698
699 * alloc.c (UNBLOCK_INPUT_ALLOC, BLOCK_INPUT_ALLOC): Use in_sighandler
700 to check if mutex should be locked or not.
701
702 2006-08-09 Richard Stallman <rms@gnu.org>
703
704 * keyboard.c (keyremap_step): No-op if fkey->parent = nil.
705 (read_key_sequence): Always start fkey.start and fkey.end at 0,
706 and likewise for keytran.
707
708 2006-08-09 Kenichi Handa <handa@m17n.org>
709
710 * coding.c (syms_of_coding): Improve the docstring
711 file-coding-system-alist.
712
713 2006-08-07 Andreas Schwab <schwab@suse.de>
714
715 * puresize.h (BASE_PURESIZE): Increase to 1120000.
716
717 2006-08-06 Chong Yidong <cyd@stupidchicken.com>
718
719 * buffer.c (Vchange_major_mode_hook, Qchange_major_mode_hook): New vars.
720 (Fkill_all_local_variables): Use it.
721 (syms_of_buffer): Defvar it.
722
723 2006-08-05 Eli Zaretskii <eliz@gnu.org>
724
725 * w32.c (w32_valid_pointer_p): New function.
726
727 * w32.h: Add prototype for w32_valid_pointer_p.
728
729 * alloc.c: Include w32.h.
730 (valid_lisp_object_p) [WINDOWSNT]: Call w32_valid_pointer_p to do
731 the job.
732
733 * keyboard.c (kbd_buffer_get_event): Return Qnil when current time
734 is exactly equal to end_time, not only when it is past that.
735
736 2006-08-04 Chong Yidong <cyd@stupidchicken.com>
737
738 * keyboard.c (read_char): Rebalance specpdl after receiving jump.
739
740 * process.c: Reapply 2006-08-01 change.
741
742 2006-08-04 Eli Zaretskii <eliz@gnu.org>
743
744 * w32fns.c (w32_query_font): Fix last change: use stricmp.
745
746 2006-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
747
748 * editfns.c (Fsubst_char_in_region): Redo the setup work after running
749 the before-change-functions since they may have altered the buffer.
750
751 2006-08-04 Ralf Angeli <angeli@caeruleus.net>
752
753 * w32fns.c (w32_createwindow): Handle -geometry command line option
754 and the geometry settings in the Registry.
755
756 2006-08-04 Kenichi Handa <handa@m17n.org>
757
758 * w32fns.c (w32_query_font): Compare names by ignoring case.
759
760 * xterm.c (x_query_font): Compare names by ignoring case.
761
762 2006-08-03 Jason Rumney <jasonr@gnu.org>
763
764 * w32menu.c (w32_menu_show, w32_dialog_show): Call Fsignal to quit
765 when no option selected.
766
767 2006-08-03 Chong Yidong <cyd@stupidchicken.com>
768
769 * process.c: Revert last change.
770
771 2006-08-01 Kim F. Storm <storm@cua.dk>
772
773 * process.c (wait_reading_process_output_unwind): New function.
774 Restores waiting_for_user_input_p to saved value.
775 (wait_reading_process_output): Unwind protect waiting_for_user_input_p
776 instead of save/restore old value on stack.
777
778 2006-07-30 Thien-Thi Nguyen <ttn@gnu.org>
779
780 * editfns.c: Undo 2006-06-27 change.
781
782 2006-07-29 Eli Zaretskii <eliz@gnu.org>
783
784 * coding.c (Ffind_operation_coding_system): Revert the change from
785 2006-05-29.
786
787 * alloc.c [WINDOWSNT]: Include fcntl.h, to fix last change.
788
789 2006-07-28 Richard Stallman <rms@gnu.org>
790
791 * xfaces.c (lookup_named_face, Fdisplay_supports_face_attributes_p):
792 Add conditional aborts for clarity.
793
794 * xdisp.c (update_menu_bar): New arg HOOKS_RUN. Callers changed.
795 Used to avoid running the hooks over and over for each frame.
796 (prepare_menu_bars): Pass value from update_menu_bar
797 as HOOKS_RUN of next call.
798
799 * keyboard.c (safe_run_hooks_1): Don't crash if Vrun_hooks is nil.
800
801 2006-07-28 Kim F. Storm <storm@cua.dk>
802
803 * alloc.c (valid_pointer_p): New function (from valid_lisp_object_p).
804 (valid_lisp_object_p): Use it to check for valid SUBRP obj.
805
806 2006-07-26 Chong Yidong <cyd@stupidchicken.com>
807
808 * keyboard.c (read_char): New arg END_TIME specifying timeout.
809 All callers changed. Turn off echoing if END_TIME is non-NULL.
810 (kbd_buffer_get_event): New arg END_TIME.
811
812 * lread.c (read_filtered_event): New arg SECONDS to wait until.
813 (Fread_char, Fread_event, Fread_char_exclusive): New arg SECONDS.
814
815 * lisp.h: Update read-char, read-event, and read_filtered_event
816 prototypes.
817
818 * keyboard.h: Include systime.h. Update read_char prototype.
819
820 2006-07-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
821
822 * alloc.c (find_string_data_in_pure): New function.
823 (make_pure_string): Use it to reuse existing string data if possible.
824
825 * puresize.h (BASE_PURESIZE): Decrease to 1102000.
826
827 2006-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
828
829 * keymap.c (Fdefine_key): If the key binding definition looks like an
830 XEmacs-style key sequence, convert it to Emacs's format.
831
832 2006-07-22 Ralf Angeli <angeli@caeruleus.net>
833
834 * w32fns.c (w32_createwindow): If `left' and/or `top' frame
835 parameters are bound to some values, use that instead of
836 CW_USEDEFAULT.
837
838 2006-07-21 Eli Zaretskii <eliz@gnu.org>
839
840 * w32.c (convert_time): Use explicit long double constants to
841 ensure long double arithmetics is used throughout.
842
843 2006-07-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
844
845 * alloc.c (pure_bytes_used_lisp, pure_bytes_used_non_lisp): New vars.
846 (init_alloc_once): Initialize them.
847 (pure_alloc): Allocate non-Lisp objects from the end of pure storage
848 without alignment.
849
850 * puresize.h (BASE_PURESIZE): Decrease to 1141000.
851
852 2006-07-18 Francis Litterio <franl@world.std.com>
853
854 * w32term.c (x_calc_absolute_position): Fix frame positioning
855 with negative X/Y coordinates.
856
857 2006-07-18 Dan Nicolaescu <dann@ics.uci.edu>
858
859 * xterm.c (x_connection_closed, x_error_quitter): Mark as NO_RETURN.
860
861 * textprop.c (text_read_only): Likewise.
862
863 * lread.c (end_of_file_error): Likewise.
864
865 * lisp.h (circular_list_error, memory_full, buffer_memory_full):
866 Likewise.
867
868 * eval.c (unwind_to_catch): Likewise.
869
870 * buffer.h (buffer_slot_type_mismatch): Likewise.
871
872 2006-07-18 Kim F. Storm <storm@cua.dk>
873
874 Cleanup Fsignal calls that never returns; now only use it for Qquit.
875
876 * eval.c (xsignal): New func. Like Fsignal, but marked no-return.
877 (xsignal0, xsignal1, xsignal2, xsignal3): New no-return functions.
878 (signal_error): New no-return function (from xfaces.c).
879 (Fthrow): Use xsignal2 instead of Fsignal + abort.
880 (error): Use xsignal1 instead of Fsignal + abort.
881 (FletX, Flet, grow_specpdl): Use signal_error.
882 (Feval, Ffuncall, funcall_lambda): Use xsignal1, xsignal2.
883
884 * alloc.c (buffer_memory_full, memory_full): Use xsignal. Remove loop.
885 (list1): New function.
886
887 * lisp.h (list1): Add EXFUN.
888 (xsignal, xsignal0, xsignal1, xsignal2, xsignal3, signal_error):
889 Add prototypes. Mark them as no-return.
890
891 * buffer.c (Fbuffer_local_value, Fbarf_if_buffer_read_only):
892 Use xsignal1.
893
894 * callint.c (check_mark): Use xsignal0.
895
896 * casefiddle.c (casify_object): wrong_type_argument is no-return.
897
898 * cmds.c (Fforward_char, Fdelete_char): Use xsignal0.
899
900 * coding.c (Fcheck_coding_system): Use xsignal1. Remove loop.
901 (Fdefine_coding_system_internal): Use xsignal1.
902
903 * data.c (circular_list_error): Use xsignal.
904 (wrong_type_argument): Use xsignal2. Don't care about return value.
905 (args_out_of_range, args_out_of_range_3): Use xsignal2, xsignal3.
906 Remove loop around Fsignal.
907 (indirect_variable, Fsymbol_value, set_internal, Fdefault_value)
908 (indirect_function, Findirect_function, Fstring_to_number)
909 (Fmakunbound, Ffmakunbound, Fsymbol_function, Ffset): Use xsignal1.
910 (arith_driver, float_arith_driver, Frem, Fmod, arith_error):
911 Use xsignal0.
912
913 * doc.c (Fdocumentation): Use xsignal1.
914
915 * editfns.c (region_limit, Fget_internal_run_time): Use xsignal0.
916
917 * fileio.c (report_file_error): Use xsignal.
918 (barf_or_query_if_file_exists, Fcopy_file, Fdelete_file)
919 (Finsert_file_contents): Use xsignal2.
920 (syms_of_fileio): Use list2, list3.
921
922 * floatfns.c (arith_error, range_error, domain_error): Use xsignal2.
923 (range_error2, domain_error2): Use xsignal3.
924 (rounding_driver, fmod_float): Use xsignal0.
925 (float_error): Use xsignal1.
926 (matherr): Use xsignal.
927
928 * fns.c (Flength): wrong_type_argument is no-return.
929 (hashfn_user_defined, Fmake_hash_table): Use signal_error.
930 (Fmd5): Use xsignal1.
931
932 * frame.c (x_set_line_spacing, x_set_screen_gamma): Use signal_error.
933
934 * keyboard.c (recursive_edit_1): Use xsignal1.
935
936 * keymap.c (Fmap_keymap): Use xsignal1.
937
938 * lread.c (Fload): Use xsignal2, signal_error.
939 (end_of_file_error): Use xsignal0, xsignal1.
940 (read0): Use xsignal1.
941 (invalid_syntax): New error function marked no-return.
942 (read_integer, read1, read_list): Use it.
943
944 * macselect.c (x_get_local_selection): Use signal_error.
945
946 * msdos.c (Fmsdos_set_mouse_buttons): Use xsignal2.
947
948 * search.c (compile_pattern_1): Use xsignal1.
949 (signal_failure): Remove (was only called once).
950 (search_command): Use xsignal1 instead of signal_failure.
951
952 * syntax.c (scan_lists): Use xsignal3.
953
954 * textprop.c (text_read_only): Use xsignal0, xsignal1.
955
956 * unexsol.c (unexec): Use xsignal.
957
958 * window.c (window_scroll_pixel_based, window_scroll_line_based):
959 Use xsignal0.
960
961 * xfaces.c (signal_error): Move to eval.c.
962 (resolve_face_name): Use xsignal1.
963
964 * xfns.c (x_decode_color): Use signal_error.
965
966 * xselect.c (x_get_local_selection, copy_multiple_data)
967 (x_get_window_property_as_lisp_data)
968 (lisp_data_to_selection_data, CHECK_CUT_BUFFER)
969 (Fx_get_cut_buffer_internal): Use signal_error.
970
971 2006-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
972
973 * macterm.c (XTread_socket): Undo previous change.
974
975 2006-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
976
977 * macterm.c (keycode_to_xkeysym): Remove function. All uses now
978 directly lookup keycode_to_xkeysym_table.
979 [USE_MAC_TSM] (mac_handle_text_input_event): Don't construct
980 ASCII_KEYSTROKE_EVENT for non-zero keycode_to_xkeysym_table entries.
981 (XTread_socket): Use character codes to construct keypad key events.
982 (mac_initialize_display_info) [MAC_OSX]: Use CGDisplaySamplesPerPixel.
983 (x_delete_display): Apply 2006-07-04 change for xterm.c.
984
985 2006-07-17 Richard Stallman <rms@gnu.org>
986
987 * keyboard.c (Vcommand_error_function): New variable.
988 (syms_of_keyboard): Defvar it.
989 (cmd_error_internal): Simplify, and handle Vcommand_error_function.
990
991 * dispnew.c (init_display): Mention DISPLAY as well as TERM in err msg.
992
993 2006-07-17 Kim F. Storm <storm@cua.dk>
994
995 * xdisp.c (handle_single_display_spec): Ensure the right value of
996 it->position is saved by push_it.
997 (pop_it): Restore it->object for GET_FROM_BUFFER and GET_FROM_STRING.
998 (reseat_1): Don't setup it->object twice.
999 (set_iterator_to_next): No need to set it->object after pop_it.
1000 (move_it_to): Explicitly check to see if last move reached to_charpos.
1001
1002 2006-07-17 Thien-Thi Nguyen <ttn@gnu.org>
1003
1004 * xdisp.c (display_mode_line): Preserve match data.
1005
1006 2006-07-14 Kim F. Storm <storm@cua.dk>
1007
1008 * w32.c (pfn_WSACreateEvent, pfn_WSACloseEvent): New func ptrs.
1009 (init_winsock): Load them. Use ws2_32.dll.
1010 (sys_listen): Undo last change. Just set FILE_LISTEN flag.
1011 (sys_accept): Undo last change. Instead, set child status to
1012 STATUS_READ_ACKNOWLEDGED and reset char_avail event so next
1013 sys_select will wakeup the reader thread.
1014 (_sys_wait_accept): New function used by reader thread to wait for
1015 an incoming connection on a server socket.
1016
1017 * w32.h (_sys_read_ahead, _sys_wait_accept): Add prototypes.
1018
1019 * w32proc.c (reader_thread): Use _sys_wait_accept to wait on a
1020 server socket (FILE_LISTEN flag).
1021
1022 2006-07-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1023
1024 * sound.c (alsa_init): Call snd_pcm_close after successful snd_pcm_open.
1025
1026 2006-07-14 Kim F. Storm <storm@cua.dk>
1027
1028 * w32.c: Fix high cpu load for server sockets.
1029 (pfn_WSAEventSelect): New function ptr.
1030 (init_winsock): Load it.
1031 (sys_listen): Set FILE_LISTEN flag. Set event mask for socket's
1032 char_avail event object to FD_ACCEPT.
1033 (sys_accept): Check FILE_LISTEN flag. Set event mask on new
1034 socket's char_avail event object to FD_READ|FD_CLOSE.
1035
1036 * w32.h (FILE_LISTEN): New filedesc flag value.
1037
1038 2006-07-13 Kim F. Storm <storm@cua.dk>
1039
1040 * bytecode.c (Fbyte_code): Use CAR, CDR for Bcar, Bcdr.
1041 Use CAR_SAFE, CDR_SAFE for Bcar_safe, Bcdr_safe.
1042 Simplify loops and use CAR for Bnth and Belt.
1043
1044 * data.c (Findirect_function): Optimize for no indirection.
1045
1046 * eval.c (Fthrow): Remove loop around Fsignal.
1047 (Feval, Fapply, Ffuncall): Optimize for no function indirection.
1048 Use original function name in all signaled errors.
1049 Simplify Fsignal calls (no return).
1050 (funcall_lambda): Simplify Fsignal calls (no return).
1051
1052 2006-07-13 Andreas Schwab <schwab@suse.de>
1053
1054 * syntax.c (scan_sexps_forward): Use EMACS_INT for out_bytepos and
1055 out_charpos.
1056
1057 2006-07-13 Kenichi Handa <handa@m17n.org>
1058
1059 * editfns.c (Fformat): Fix calculation of text property positions
1060 of format string.
1061
1062 2006-07-12 Kim F. Storm <storm@cua.dk>
1063
1064 * lisp.h (CHECK_TYPE): New macro for generic type checking.
1065 (CAR_SAFE, CDR_SAFE): New macros.
1066 (ARRAYP, CHECK_ARRAY): New macros.
1067 (CHECK_VECTOR_OR_STRING, CHECK_SUBR): New macros.
1068 (CHECK_WINDOW_CONFIGURATION): New macro.
1069 (CHECK_LIST_CONS, CHECK_LIST_END): New checks for list traversal.
1070 (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
1071 (CHECK_STRING, CHECK_STRING_CAR, CHECK_CONS, CHECK_SYMBOL)
1072 (CHECK_CHAR_TABLE, CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE)
1073 (CHECK_BUFFER, CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS)
1074 (CHECK_NUMBER, CHECK_NATNUM, CHECK_MARKER, CHECK_OVERLAY)
1075 (CHECK_NUMBER_COERCE_MARKER, CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
1076 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER): Use CHECK_TYPE.
1077
1078 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET):
1079 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Use CHECK_TYPE.
1080
1081 * callint.c (Fcall_interactively):
1082 * casefiddle.c (casify_object):
1083 * editfns.c (general_insert_function):
1084 * fns.c (Flength, Felt, Ffillarray):
1085 * data.c (Fcar, Fcdr): Remove loop around wrong_type_argument.
1086
1087 * data.c (wrong_type_argument): Remove loop around Fsignal.
1088 (Farrayp, Fsequencep): Use ARRAYP.
1089 (Fcar): Use CAR.
1090 (Fcar_safe): Use CAR_SAFE.
1091 (Fcdr): Use CDR.
1092 (Fcdr_safe): Use CDR_SAFE.
1093 (Fsetcar, Fsetcdr): Use CHECK_CONS.
1094 (Fsubr_arity, Fsubr_name): Use CHECK_SUBR.
1095 (Faset): Use CHECK_ARRAY.
1096
1097 * fns.c (Felt): Use CHECK_ARRAY.
1098 (concat): Use CHECK_NUMBER.
1099 (Fsubstring, substring_both): Use CHECK_VECTOR_OR_STRING.
1100 (Fmemq): Use CHECK_LIST.
1101 (Fassq, Fassoc, Frassq, Frassoc): Use CAR.
1102 (assq_no_quit): Use CAR_SAFE.
1103 (Fnthcdr, Fmember, Fdelq, Fdelete, Fnreverse, Fnconc):
1104 Use CHECK_LIST_CONS.
1105 (Freverse, Fplist_get, Flax_plist_get): Use CHECK_LIST_END.
1106
1107 * bytecode.c (Fbyte_code): Use CHECK_VECTOR.
1108
1109 * casetab.c (check_case_table):
1110 * category.c (check_category_table):
1111 * marker.c (Fcopy_marker):
1112 * syntax.c (check_syntax_table):
1113 * xfaces.c (load_pixmap): Use CHECK_TYPE.
1114
1115 * fns.c (Fcopy_sequence, concat):
1116 * fringe.c (Fdefine_fringe_bitmap):
1117 * lread.c (check_obarray): Cleanup wrong_type_argument use.
1118
1119 * keyboard.c (access_keymap_keyremap): Use ARRAYP.
1120
1121 * keymap.c (Fdefine_key, Flookup_key):
1122 * macros.c (Fstart_kbd_macro): Use CHECK_VECTOR_OR_STRING.
1123
1124 * mac.c (Fmac_get_preference): Use CHECK_LIST_END.
1125
1126 * search.c (Fset_match_data): Use CHECK_LIST.
1127
1128 * sunfns.c (sun_item_create): Use CHECK_LIST_CONS.
1129
1130 * window.c (Fwindow_configuration_frame, Fset_window_configuration):
1131 (compare_window_configurations): Use CHECK_WINDOW_CONFIGURATION.
1132
1133 2006-07-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1134
1135 * Makefile.in (dired.o, editfns.o, fileio.o): Depend on blockinput.h.
1136
1137 * dired.c: Include blockinput.h.
1138 (Ffile_attributes): Add BLOCK_INPUT around getpwuid/getgrgid.
1139
1140 * editfns.c: Include blockinput.h.
1141 (Fuser_login_name, Fuser_full_name): Add BLOCK_INPUT around
1142 getpwuid/getpwnam.
1143
1144 * fileio.c: Include blockinput.h.
1145 (Fexpand_file_name, search_embedded_absfilename): Add BLOCK_INPUT
1146 around getpwnam.
1147 (search_embedded_absfilename): Remove spurious xfree.
1148
1149 2006-07-11 Kim F. Storm <storm@cua.dk>
1150
1151 * dispnew.c (sit_for): Reduce number of args from 5 to 3.
1152 Now just one TIMEOUT arg that can be a Lisp float or Lisp int.
1153 Combine args DISPLAY and INITIAL_DISPLAY into one arg DO_DISPLAY.
1154 Signal error if TIMEOUT is not a number.
1155 Undo 2006-06-14 change for non-preemptive display if TIMEOUT < 0.
1156 The rework of sit_for args also fixes several incorrect Qt args
1157 which should have been 1.
1158 (Fredisplay): Pass 1 instead of Qt to swallow_events and
1159 detect_input_pending_run_timers.
1160
1161 * lisp.h (sit_for): Update prototype.
1162 (Fredisplay): Add EXFUN.
1163
1164 * dispextern.h (sit_for): Remove prototype.
1165
1166 * callint.c (Fcall_interactively):
1167 * minibuf.c (temp_echo_area_glyphs):
1168 * keyboard.c (command_loop_1, read_char, Fexecute_extended_command):
1169 * fileio.c (Fdo_auto_save): Update/simplify sit_for calls.
1170
1171 2006-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
1172
1173 * syntax.c (forw_comment): Also use EMACS_INT for buffer positions.
1174
1175 2006-07-11 Kim F. Storm <storm@cua.dk>
1176
1177 * dispnew.c (Fredisplay): Add FORCE argument to force redisplay when
1178 input is available. Fix test for redisplay_dont_pause non-nil.
1179 Specbind redisplay-dont-pause to t if FORCE non-nil.
1180
1181 2006-07-10 Chong Yidong <cyd@stupidchicken.com>
1182
1183 * puresize.h (BASE_PURESIZE): Increment to 1211000.
1184
1185 * dispnew.c (Fredisplay): New function, equivalent to (sit-for 0).
1186 (Fsit_for): Function deleted.
1187
1188 * keyboard.c (command_loop_1, Fexecute_extended_command):
1189 Call sit_for instead of Fsit_for.
1190
1191 * minibuf.c (temp_echo_area_glyphs): Likewise.
1192
1193 2006-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
1194
1195 * syntax.c (Fforward_comment): Revert the reversion.
1196 (back_comment, scan_lists): Also use EMACS_INT for buffer positions.
1197
1198 2006-07-09 John Paul Wallington <jpw@pobox.com>
1199
1200 * syntax.c (Fforward_comment): Revert previous change.
1201
1202 2006-07-09 Kim F. Storm <storm@cua.dk>
1203
1204 * window.c (Fforce_window_update): Doc fix.
1205
1206 2006-07-08 Stephen Gildea <gildea@stop.mail-abuse.org>
1207
1208 * fileio.c (do_auto_save_make_dir): Make the auto-save-list-file
1209 directory unreadable for better user privacy.
1210
1211 2006-07-07 Stefan Monnier <monnier@iro.umontreal.ca>
1212
1213 * syntax.c (Fforward_comment): Fix int-32 vs EMACS_INT-64 mixup.
1214
1215 * lread.c (read_filtered_event): Remove `register' qualifier because it
1216 causes compilation problem with gcc-4.0.2-20051125 on amd64.
1217 (readevalloop): Remove unused var `bpos'.
1218 Yet another int/Lisp_Object mixup (YAILOM).
1219
1220 2006-07-07 Eli Zaretskii <eliz@gnu.org>
1221
1222 * keyboard.c (Fexecute_extended_command): Mention the argument
1223 PREFIXARG in the doc string.
1224
1225 2006-07-07 Kim F. Storm <storm@cua.dk>
1226
1227 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
1228
1229 2006-07-05 Chong Yidong <cyd@stupidchicken.com>
1230
1231 * insdel.c (prepare_to_modify_buffer): For an indirect buffer, do
1232 clash detection using the base buffer.
1233
1234 * puresize.h (BASE_PURESIZE): Increment to 1210500.
1235
1236 2006-07-04 Kim F. Storm <storm@cua.dk>
1237
1238 * xterm.c (x_delete_display): Don't free or derefence NULL pointers.
1239
1240 2006-07-04 Kenichi Handa <handa@m17n.org>
1241
1242 * fontset.c (Fset_overriding_fontspec_internal): Check if we need
1243 to update Voverriding_fontspec_alist.
1244
1245 2006-07-03 Richard Stallman <rms@gnu.org>
1246
1247 * xfns.c (Fx_create_frame): Move unwind_create_frame setup down.
1248
1249 * xfaces.c (Fface_attribute_relative_p): Doc fix.
1250
1251 * textprop.c (Fget_char_property_and_overlay): Doc fix.
1252
1253 * eval.c (Fdefvaralias): Doc fix.
1254
1255 2006-07-03 Kim F. Storm <storm@cua.dk>
1256
1257 * dispnew.c (sit_for): Fix preempt condition.
1258
1259 2006-07-02 Stefan Monnier <monnier@iro.umontreal.ca>
1260
1261 * lread.c (read_filtered_event): Treat select-window just like
1262 switch-frame.
1263
1264 2006-07-02 Kim F. Storm <storm@cua.dk>
1265
1266 * xdisp.c (display_tool_bar_line): Skip glyphs which are too big
1267 to ever fit the tool-bar,
1268 (MAX_FRAME_TOOL_BAR_HEIGHT): New macro.
1269 (tool_bar_lines_needed): Use unused mode-line row as temp_row.
1270 (redisplay_tool_bar): Only clear desired matrix if we actually
1271 change the tool-bar window height. Only try to make the tool-bar
1272 window bigger if there is actually room for it.
1273
1274 2006-06-30 Ralf Angeli <angeli@caeruleus.net>
1275
1276 * w32term.c (x_make_frame_visible): Use SystemParametersInfo with
1277 SPI_GETWORKAREA to find the dimensions of the screen work area,
1278 and adjust vertical position of the frame in order to avoid being
1279 covered by the task bar.
1280
1281 * w32fns.c (w32_createwindow): Use CW_USEDEFAULT instead of
1282 f->left_pos and SH_SHOW instead of f->top_pos in the call to
1283 CreateWindow. Record the actual position in f->left_pos and
1284 f->top_pos.
1285
1286 2006-06-30 John Paul Wallington <jpw@pobox.com>
1287
1288 * w32console.c (syms_of_ntterm) <w32-use-full-screen-buffer>:
1289 Doc fix - default value has changed.
1290
1291 2006-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1292
1293 * mac.c [!TARGET_API_MAC_CARBON]: Don't include FixMath.h or Scrap.h.
1294
1295 * macfns.c (Fx_create_frame): Apply 2006-06-24 change for xfns.c.
1296
1297 * macgui.h (USE_MAC_TSM) [TARGET_API_MAC_CARBON]: Set default to 1.
1298
1299 * macterm.c (Qeql): Add extern.
1300 (x_set_mouse_pixel_position) [MAC_OSX]: Use CGWarpMouseCursorPosition.
1301 (fm_style_face_attributes_alist) [USE_ATSUI]: New variable.
1302 (syms_of_macterm) [USE_ATSUI]: Initialize and staticpro it.
1303 Change keys of Vmac_atsu_font_table from strings to numbers.
1304 (fm_style_to_face_attributes) [USE_ATSUI]: New function.
1305 (init_font_name_table) [USE_ATSUI]: Use it.
1306 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: New variable.
1307 (syms_of_macterm) [USE_MAC_TSM]: Initialize and staticpro it.
1308 [USE_MAC_TSM] (mac_tsm_resume): Restore script and language codes
1309 only when saved_ts_script_language_on_focus coincides with
1310 Vmac_ts_script_language_on_focus.
1311 [USE_MAC_TSM] (mac_tsm_suspend): Save value of
1312 Vmac_ts_script_language_on_focus to saved_ts_script_language_on_focus.
1313 (XTread_socket) [USE_MAC_TSM]: Add Mac OS Classic support.
1314 [USE_MAC_TSM] (mac_handle_text_input_event, init_tsm): Likewise.
1315
1316 2006-06-27 Chong Yidong <cyd@stupidchicken.com>
1317
1318 * editfns.c (Fdelete_field, Ffield_string, Ffield_beginning)
1319 (Ffield_string_no_properties, Ffield_end): Mention
1320 args-out-of-range error condition in docstring.
1321
1322 2006-06-27 Kim F. Storm <storm@cua.dk>
1323
1324 * xdisp.c (handle_composition_prop): Set stop_charpos before push_it.
1325
1326 2006-06-25 Kim F. Storm <storm@cua.dk>
1327
1328 * s/gnu-linux.h (SIGNALS_VIA_CHARACTERS): Define for Linux kernel
1329 version 2.4 and later.
1330
1331 2006-06-24 Chong Yidong <cyd@stupidchicken.com>
1332
1333 * xfns.c (Fx_create_frame): Set font parameter directly instead of
1334 using x_default_parameter, since x_get_args clears the parm alist.
1335
1336 2006-06-24 Eli Zaretskii <eliz@gnu.org>
1337
1338 * dired.c (directory_files_internal) [WINDOWSNT]: Find files
1339 case-insensitively.
1340
1341 2006-06-24 Aidan Kehoe <kehoea@parhasard.net>
1342
1343 * lread.c (read_escape): When an unknown Unicode code point is
1344 encountered as a string or character escape, signal an error.
1345
1346 2006-06-23 Kim F. Storm <storm@cua.dk>
1347
1348 * .gdbinit (pitx): Dump iterator stack.
1349
1350 * xdisp.c (handle_composition_prop): Push iterator on stack.
1351 (set_iterator_to_next): Pop iterator at end of composition.
1352
1353 2006-06-23 Martin Rudalics <rudalics@gmx.at>
1354
1355 * fileio.c (Frename_file) [DOS_NT]: Don't try to move directory to
1356 itself on DOS_NT platforms, if the old and new names are identical
1357 but for the letter-case.
1358
1359 2006-06-21 Kim F. Storm <storm@cua.dk>
1360
1361 * dispextern.h (struct it): Add `position' member to iterator stack.
1362 Rename `pos' member to `current'. Rearrange and add comments.
1363
1364 * xdisp.c (handle_stop): Set it->ignore_overlay_strings_at_pos_p
1365 if we get any overlays.
1366 (set_cursor_from_row): Don't clobber `end' if we rescan from
1367 start_string.
1368 (push_it, pop_it): Save it->position.
1369
1370 2006-06-19 Richard Stallman <rms@gnu.org>
1371
1372 * window.c (size_window): New arg FIRST_ONLY. All callers changed.
1373 (adjust_window_trailing_edge): Specially compute FIRST_PARALLEL
1374 for the case of a top-level window and the following minibuffer.
1375 Don't exit because of no `next' when there is a parent.
1376 Use the FIRST_ONLY feature when resizing following windows.
1377
1378 * syntax.c (init_syntax_once): Give most control chars' syntax Spunct.
1379
1380 2006-06-17 Kim F. Storm <storm@cua.dk>
1381
1382 * dispnew.c (update_frame): Check for input pending on entry.
1383 (update_window, update_frame_1): Break loop if input is detected.
1384
1385 2006-06-16 Francis Litterio <flitterio@gmail.com>
1386
1387 * xterm.c (x_check_expected_move, handle_one_xevent)
1388 (x_set_offset, x_check_fullscreen): Extensive changes to make
1389 frame positioning deterministic under X.
1390
1391 * xterm.h (x_output): Added members left_before_move and
1392 top_before_move. Removed members expected_left and expected_top.
1393
1394 2006-06-16 Kim F. Storm <storm@cua.dk>
1395
1396 * dispextern.h (struct it): Add union to iterator stack to save
1397 image, composition, and stretch specific paramters.
1398
1399 * xdisp.c (next_overlay_string): Fix assert.
1400 (push_it, pop_it): Handle composition and stretch specific values.
1401 Only handle it->slice in image (for now).
1402 (back_to_previous_visible_line_start): Continue search if newline is
1403 part of a compisition. Simplify.
1404 (reseat_1): Set it->object to buffer.
1405 (set_iterator_to_next): Set it->object to string or buffer, when
1406 setting it->method to GET_FROM_STRING or GET_FROM_BUFFER.
1407 (next_element_from_composition): Set it->object to buffer if not
1408 from string.
1409 (set_cursor_from_row): Only save start of string if not already
1410 done to handle multiple strings in a row.
1411
1412 * .gdbinit (pitx): Show composition parameters.
1413 (pgx, pg): New commands to print a glyph structure.
1414 (pgi, pgn): New commands to print specific/next glyph.
1415 (pgrowx, pgrow): New commands to print all glyphs in a row.
1416
1417 2006-06-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1418
1419 * macfns.c (Fx_display_mm_height, Fx_display_mm_width)
1420 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Use CGDisplayScreenSize.
1421
1422 * macterm.c (do_app_resume, do_app_suspend): Remove functions.
1423 (mac_tsm_resume, mac_tsm_suspend) [USE_MAC_TSM]: New functions.
1424 (mac_handle_window_event, XTread_socket) [USE_MAC_TSM]: Use them.
1425 (Vmac_ts_script_language_on_focus) [USE_MAC_TSM]: New variable.
1426 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
1427 (saved_ts_language, saved_ts_component) [USE_MAC_TSM]: New variables.
1428 (mac_initialize_display_info) [MAC_OSX]: Use Quartz Display
1429 Services functions to get size of main display in pixels.
1430
1431 2006-06-14 Chong Yidong <cyd@stupidchicken.com>
1432
1433 * xdisp.c (back_to_previous_visible_line_start):
1434 Reset it->continuation_lines_width.
1435
1436 2006-06-14 Richard Stallman <rms@gnu.org>
1437
1438 * eval.c (Fdefconst): Mark variable as risky.
1439
1440 * callproc.c (Fcall_process): Doc fix.
1441
1442 * window.c (adjust_window_trailing_edge): Don't break out of the loop
1443 because there's no next window, if there are parallel windows.
1444 Do break out when WINDOW is nil.
1445
1446 2006-06-14 Kim F. Storm <storm@cua.dk>
1447
1448 * dispextern.h (IT_STACK_SIZE): New macro specifying size of
1449 iterator stack (instead of hardcoded number). Increase from 2 to
1450 4 to make room for propertized overlay strings before and after a
1451 display string, image or composition.
1452 (struct it): Add image_id and method members to iterator stack.
1453
1454 * xdisp.c (init_from_display_pos): Don't set it->method and
1455 overlay_string_index after pop_it. Add asserts.
1456 (handle_stop): Look for overlay strings around a display string,
1457 image, or composition. Handle properties on those strings.
1458 (next_overlay_string): Don't set string, pos or method after pop_it.
1459 (get_overlay_strings_1): Split from get_overlay_strings; don't
1460 modify it if no overlay strings are found.
1461 (get_overlay_strings): Use get_overlay_strings_1. Always set
1462 it->string and it->method.
1463 (push_it): Push it->image_id and it->method. Push it->object
1464 instead of it->string if method is GET_FROM_IMAGE.
1465 (pop_it): Pop it->image_id and it->method. Ppo it->object
1466 instead of it->string if method is GET_FROM_IMAGE.
1467 Reset it->current.string_pos if popped it->string is nil.
1468 (reseat_1): Remove comment dated 19 May 2003. It expressed doubt
1469 whether a given change was correct; but the change is correct.
1470 Clear it->string_from_display_prop_p.
1471 (set_iterator_to_next): Rely on it->method and it->image_id from
1472 iterator stack, instead of setting them explicitly after pop_it.
1473
1474 * dispnew.c (sit_for): Undo 2006-06-01 change. Instead, a
1475 negative time forces redisplay even when input is available.
1476 (Fsit_for): Doc fix.
1477
1478 2006-06-13 Kim F. Storm <storm@cua.dk>
1479
1480 * dispnew.c: Modify preemptive redisplay to be based on periodic
1481 checks for input.
1482 (PERIODIC_PREEMPTION_CHECKING): Define to 1 iff EMACS_HAS_USECS.
1483 (Vredisplay_preemption_period): New variable.
1484 (syms_of_display): DEFVAR_LISP and initialize it.
1485 (preemption_period, preemption_next_check): New variables.
1486 (update_frame, update_single_window): Initialize them based on
1487 Vredisplay_preemption_period if !force_p.
1488 (update_window, update_frame_1): Use them to determine when to
1489 check for input.
1490
1491 2006-06-03 Aidan Kehoe <kehoea@parhasard.net>
1492
1493 * lread.c (read_escape): Provide a Unicode character escape
1494 syntax; \u followed by exactly four or \U followed by exactly
1495 eight hex digits in a comment or string is read as a Unicode
1496 character with that code point.
1497
1498 2006-06-09 Eli Zaretskii <eliz@gnu.org>
1499
1500 * window.c (window_scroll_pixel_based): Signal "Beginning of
1501 buffer" when scroll-down at the beginning of an empty buffer.
1502
1503 2006-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1504
1505 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
1506 Exclude 0x7f from ASCII range.
1507
1508 2006-06-05 Jason Rumney <jasonr@gnu.org>
1509
1510 * w32term.c (w32_set_scroll_bar_thumb, x_scroll_bar_create)
1511 (w32_set_vertical_scroll_bar, w32_scroll_bar_handle_click)
1512 (x_scroll_bar_report_motion): Remove workarounds for
1513 versions of Windows NT < 3.51.
1514 [!SIF_ALL]: Remove.
1515 (pfnSetScrollInfo, pfnGetScrollInfo): Remove.
1516 (w32_initialize): Don't dynamically load Get/SetScrollInfo.
1517
1518 2006-06-04 David Kastrup <dak@gnu.org>
1519
1520 * dispnew.c: Mention `redisplay-dont-pause' in doc string of
1521 `sit-for'.
1522
1523 2006-06-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1524
1525 * macfns.c (x_set_icon_name): Apply 2006-06-02 change for xfns.c.
1526
1527 * macgui.h (USE_MAC_TSM): Set default to 1 on Mac OS X.
1528
1529 * macterm.c (tsm_document_id) [USE_MAC_TSM]: New variable.
1530 (Qtext_input, Qupdate_active_input_area, Qunicode_for_key_event)
1531 [USE_MAC_TSM]: Likewise.
1532 (syms_of_macterm) [USE_MAC_TSM]: Intern and staticpro them.
1533 (Qbefore_string) [USE_MAC_TSM]: Add extern.
1534 (do_app_resume, do_app_suspend) [USE_MAC_TSM]: Call
1535 ActivateTSMDocument/DeactivateTSMDocument.
1536 (mac_store_event_ref_as_apple_event): Call mac_post_mouse_moved_event.
1537 (mac_handle_window_event) [USE_MAC_TSM]: Handle
1538 kEventWindowFocusAcquired/kEventWindowFocusRelinquish.
1539 (mac_handle_text_input_event) [USE_MAC_TSM]: New function.
1540 (install_window_handler) [USE_MAC_TSM]: Install it. Register
1541 kEventWindowFocusAcquired/kEventWindowFocusRelinquish.
1542 (keycode_to_xkeysym_table): Add entry for f16.
1543 (XTread_socket) [USE_MAC_TSM]: Set/reset read_socket_inev
1544 before/after passing keystroke event to toolbox dispatcher.
1545 (init_tsm) [USE_MAC_TSM]: New function.
1546 (mac_initialize) [USE_MAC_TSM]: Call it.
1547 (Vmac_ts_active_input_overlay) [USE_MAC_TSM]: New defvar.
1548
1549 * macterm.h (EVENT_PARAM_TEXT_INPUT_SEQUENCE_NUMBER): New enumerator.
1550
1551 2006-06-02 John Paul Wallington <jpw@gnu.org>
1552
1553 * xfns.c (x_set_name_internal): Set icon to `text', derived from
1554 name, when frame's icon_name isn't a string rather than only when
1555 it is nil.
1556
1557 2006-06-03 Eli Zaretskii <eliz@gnu.org>
1558
1559 * w32fns.c (x_set_icon_name): Don't use arg if it's not a string
1560 and not nil.
1561
1562 2006-06-02 Chong Yidong <cyd@stupidchicken.com>
1563
1564 * xfns.c (x_set_icon_name): No-op if arg is non-nil and not a
1565 string.
1566
1567 2006-06-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1568
1569 * xdisp.c (next_element_from_composition): Set it->object to
1570 it->string if composition is coming from string.
1571 (set_cursor_from_row): Don't return 0 unless row displays a
1572 continued line.
1573 (dump_glyph): Dump composite glyph.
1574
1575 2006-06-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1576
1577 * gtkutil.c (menu_nav_ended): Check that menubar_widget is not NULL.
1578
1579 2006-06-01 Richard Stallman <rms@gnu.org>
1580
1581 * window.c (Fsplit_window): Doc fix.
1582
1583 2006-06-01 Micha\e,Ak\e(Bl Cadilhac <michael.cadilhac@lrde.org>
1584
1585 * process.c (deleted_pid_list): New variable to store the pids
1586 of deleted processes. Declare it only if SIGCHLD is defined.
1587 (init_process): Initialize it.
1588 (syms_of_process): Staticpro it.
1589 (Fdelete_process): Add pid of the deleted process to it. Check after
1590 the addition and before the kill if the process is already stopped,
1591 in which case it is deleted from the list and not killed.
1592 (sigchld_handler): Define it only if SIGCHLD is. Search the process
1593 that signaled Emacs in `deleted_pid_list' before `Vprocess_alist'.
1594 Original idea by Stefan Monnier.
1595
1596 2006-06-01 Kim F. Storm <storm@cua.dk>
1597
1598 * dispnew.c (sit_for): Perform redisplay even if input is pending
1599 when redisplay-dont-pause is non-nil.
1600
1601 2006-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1602
1603 * macterm.c (mac_handle_visibility_change): Set buf.arg to Qnil.
1604 (XTread_socket): Remove obsolete comment.
1605
1606 2006-06-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1607
1608 * xmenu.c (syms_of_xmenu): Make accelerate-menu an alias for
1609 menu-bar-open.
1610
1611 2006-06-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1612
1613 * xmenu.c (Fmenu_bar_open, syms_of_xmenu): Change menu-bar-start to
1614 menu-bar-open.
1615
1616 * gtkutil.c (menu_nav_ended): Change x-menu-bar-start to menu-bar-open.
1617
1618 2006-05-31 Juri Linkov <juri@jurta.org>
1619
1620 * minibuf.c (Vhistory_add_new_input): New variable.
1621 (read_minibuf): Use it.
1622 (syms_of_minibuf) <history-add-new-input>: New Lisp variable.
1623 (syms_of_minibuf) <history-delete-duplicates>: Doc fix.
1624
1625 2006-05-31 Kim F. Storm <storm@cua.dk>
1626
1627 * process.c (select_wrapper): Add wrapper around select to work around
1628 "incomplete backtrace" bug in gdb 5.3, when emacs is stopped inside
1629 select called from wait_reading_process_output.
1630
1631 2006-05-30 Andreas Schwab <schwab@suse.de>
1632
1633 * xmenu.c (Fmenu_bar_start): Return a value.
1634
1635 2006-05-30 Richard Stallman <rms@gnu.org>
1636
1637 * coding.c (Ffind_operation_coding_system): Doc fix.
1638
1639 2006-05-30 Eli Zaretskii <eliz@gnu.org>
1640
1641 * w32term.c (x_draw_hollow_cursor): Fix last change.
1642
1643 2006-05-29 Kim F. Storm <storm@cua.dk>
1644
1645 * w32term.c (x_draw_stretch_glyph_string): Fix last change.
1646
1647 2006-05-29 Eli Zaretskii <eliz@gnu.org>
1648
1649 * coding.c (Ffind_operation_coding_system): Doc fix.
1650
1651 2006-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1652
1653 * macfns.c [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility):
1654 Call mac_set_font_info_for_selection if font panel is made visible.
1655
1656 * macterm.c (font_panel_shown_p) [USE_MAC_FONT_PANEL]: New variable.
1657 (mac_font_panel_visible_p, mac_show_hide_font_panel)
1658 [USE_MAC_FONT_PANEL]: New functions.
1659 [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection): Return
1660 immediately if font panel is not visible.
1661
1662 * macterm.h (mac_font_panel_visible_p, mac_show_hide_font_panel):
1663 Add externs.
1664
1665 2006-05-29 Dan Nicolaescu <dann@ics.uci.edu>
1666
1667 * search.c (matcher_overflow): Mark as NO_RETURN.
1668
1669 * xterm.c (x_connection_closed): Likewise.
1670
1671 * sysdep.c (croak): Likewise.
1672
1673 * sound.c (sound_perror, alsa_sound_perror): Likewise.
1674
1675 * lisp.h (die, nsberror): Likewise.
1676
1677 2006-05-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1678
1679 * sound.c (alsa_open, alsa_configure, alsa_write): Move
1680 assignment to err out of if-statement.
1681
1682 * gtkutil.c (menu_nav_ended): New function.
1683 (create_menus): Connect menu_nav_ended to "selection-done" to fix
1684 grabs.
1685
1686 * xmenu.c (Fmenu_bar_start): New function for USE_GTK and USE_X_TOOLKIT.
1687
1688 2006-05-28 Dan Nicolaescu <dann@ics.uci.edu>
1689
1690 * charset.h (invalid_character): Mark as NO_RETURN.
1691
1692 2006-05-29 Kenichi Handa <handa@m17n.org>
1693
1694 * coding.c (Ffind_operation_coding_system): Call a function by
1695 safe_call1 instead of call1.
1696
1697 2006-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
1698
1699 * window.c (struct saved_window): Add `dedicated'.
1700 (Fset_window_configuration, save_window_save): Save/restore the
1701 `dedicated' flag.
1702
1703 2006-05-28 Kim F. Storm <storm@cua.dk>
1704
1705 * xdisp.c (set_cursor_from_row): If cursor cannot be set in row,
1706 don't update w->cursor and return 0. Return 1 on success.
1707 (try_cursor_movement): Repeat set_cursor_from_row on successive rows
1708 until it succeeds.
1709
1710 * dispextern.h (set_cursor_from_row): Update prototype.
1711
1712 2006-05-28 Kim F. Storm <storm@cua.dk>
1713
1714 * xdisp.c (get_phys_cursor_geometry): Return computed x and y through
1715 parameters. Adjust x and width in case cursor in on a partially
1716 visible stretch glyph on the left edge.
1717 (erase_phys_cursor): Don't erase into left fringe/margin in case
1718 previous cursor glyph is a partially visible stretch glyph on left.
1719
1720 * dispextern.h (get_phys_cursor_geometry): Update prototype.
1721
1722 * xterm.c (x_draw_stretch_glyph_string): Fix problems with invisible
1723 cursor and erasing cursor on partially visible stretch glyph on left.
1724 (x_draw_hollow_cursor): Compute x via get_phys_cursor_geometry.
1725
1726 * macterm.c: Likewise.
1727
1728 * w32term.c: Likewise.
1729
1730 2006-05-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1731
1732 * macselect.c (mac_handle_apple_event):
1733 Return errAEEventNotHandled if key binding is not found.
1734
1735 2006-05-26 Eli Zaretskii <eliz@gnu.org>
1736
1737 * emacs.c (main) [PROFILING]: Enable also for __MINGW32__.
1738 [__MINGW32__]: MinGW-specific declaration of `etext'.
1739
1740 * w32heap.c (etext, edata): Remove unused definitions.
1741
1742 2006-05-26 Chong Yidong <cyd@stupidchicken.com>
1743
1744 * fileio.c (Fcopy_file): Delete argument MUSTBENEW.
1745 Incorporate the exclusive file-opening functionality into the behavior
1746 when OK-IF-ALREADY-EXISTS is nil.
1747 (Frename_file): Call Fcopy_file without MUSTBENEW argument.
1748
1749 2006-05-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1750
1751 * sound.c (alsa_configure): Move get period/buffer_size after
1752 setting hwparams.
1753
1754 2006-05-26 Kenichi Handa <handa@m17n.org>
1755
1756 * coding.c (Ffind_operation_coding_system): Allow (FILENAME
1757 . BUFFER) in TARGET.
1758
1759 2006-05-25 Chong Yidong <cyd@stupidchicken.com>
1760
1761 * image.c (png_load): Don't call fclose on NULL.
1762
1763 2006-05-25 Luc Teirlinck <teirllm@auburn.edu>
1764
1765 * fns.c (Fyes_or_no_p):
1766 * callint.c (Fcall_interactively): Fread_from_minibuffer now takes
1767 only seven args.
1768
1769 2006-05-25 Juri Linkov <juri@jurta.org>
1770
1771 * lisp.h (Fread_from_minibuffer): Decrement number of args.
1772
1773 * minibuf.c (read_minibuf): Remove arg KEEP_ALL. Callers changed.
1774 (Fread_from_minibuffer): Remove arg KEEP_ALL. Callers changed.
1775
1776 * buffer.c (mode-line-format): Fix docstring.
1777
1778 2006-05-25 Richard Stallman <rms@gnu.org>
1779
1780 * emacs.c (main, Fdump_emacs): Don't test __linux or __linux__.
1781
1782 2006-05-24 Luc Teirlinck <teirllm@auburn.edu>
1783
1784 * puresize.h (BASE_PURESIZE): Increase to 1210000.
1785
1786 2006-05-24 Alan Mackenzie <acm@muc.de>
1787
1788 * lread.c (Vload_history): Enhance doc-string to say that the file
1789 is the absolute truename of the loaded file.
1790
1791 * lread.c (Vafter_load_alist): doc-string: state that an element
1792 now has a regexp to match file names, not a file name as such.
1793
1794 * lread.c (readevalloop): Call file-truename on the name for
1795 load-history, except at preloading time.
1796
1797 * lread.c (Fload): At preloading time, preserve the extension of
1798 the filename which goes into load-history. New var hist_file_name.
1799
1800 * lread.c (Fload): Do eval-after-load stuff by calling the lisp
1801 function do-after-load-evaluation.
1802
1803 2006-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1804
1805 * mac.c (ae_attr_table): New variable.
1806 (syms_of_mac): Intern and staticpro its elements.
1807 (mac_aelist_to_lisp): Also convert Apple event attributes.
1808 (mac_ae_put_lisp): New function.
1809 (create_apple_event_from_event_ref) [MAC_OSX]: Use typeUTF8Text.
1810
1811 * macfns.c (Fx_server_version): Use gestaltSystemVersionMajor etc.
1812
1813 * macselect.c (Qemacs_suspension_id): New variable.
1814 (syms_of_macselect): Intern and staticpro it.
1815 (struct suspended_ae_info): New struct.
1816 (deferred_apple_events, defer_apple_events)
1817 (Fmac_process_deferred_apple_events): Use it.
1818 (suspended_apple_events): New variable.
1819 (mac_handle_apple_event_1): New function.
1820 (mac_handle_apple_event): Use it. Don't process previously
1821 suspended events.
1822 (cleanup_suspended_apple_events, get_suspension_id)
1823 (cleanup_all_suspended_apple_events): New functions.
1824 (init_apple_event_handler): Call cleanup_all_suspended_apple_events
1825 at exit.
1826 (Fmac_cleanup_expired_apple_events, Fmac_ae_set_reply_parameter)
1827 (Fmac_resume_apple_event): New defuns.
1828 (syms_of_macselect): Defsubr them.
1829
1830 * macterm.c (fn_keycode_to_keycode_table, XTread_socket) [MAC_OSX]:
1831 Fix last change. Don't map `fn' modifier if pressed with F1 ... F12.
1832
1833 * macterm.h (TYPE_FILE_NAME): Change from macro to enumerator.
1834 (KEY_EMACS_SUSPENSION_ID_ATTR): New enumerator.
1835 (keyReplyRequestedAttr) [MAC_OS_X_VERSION_MAX_ALLOWED < 1030]: Likewise.
1836 (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
1837 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
1838 Likewise.
1839 (typeUTF8Text, kEventParamWindowMouseLocation)
1840 [MAC_OSX && MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Likewise.
1841 (x_get_focus_frame, mac_ae_put_lisp): Add externs.
1842
1843 2006-05-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1844
1845 * macterm.c (fn_keycode_to_xkeysym_table, convert_fn_keycode): Remove.
1846 (fn_keycode_to_keycode_table) [MAC_OSX]: New variable.
1847 (mac_set_unicode_keystroke_event) [TARGET_API_MAC_CARBON]: New function.
1848 (XTread_socket) [TARGET_API_MAC_CARBON]: Use it.
1849 (XTread_socket) [MAC_OSX]: Try 'uchr' Unicode keyboard-layout
1850 resource to backtranslate key with modifiers.
1851 (XTread_socket): Don't set read_socket_inev around AEProcessAppleEvent.
1852
1853 2006-05-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1854
1855 * xterm.c: Remove declarations already in xterm.h
1856
1857 * xterm.h: Add extern declarations for x_clear_errors,
1858 x_fully_uncatch_errors, x_catching_errors and
1859 x_alloc_lighter_color_for_widget. Remove duplicated declarations.
1860
1861 2006-05-21 Richard Stallman <rms@gnu.org>
1862
1863 * xfaces.c (best_matching_font): Abort for best == NULL
1864 before we start to use it.
1865
1866 * buffer.c (syms_of_buffer, Fmake_overlay): Doc fixes.
1867
1868 2006-05-20 Kim F. Storm <storm@cua.dk>
1869
1870 * xfaces.c (best_matching_font): Fix crash in 2006-05-17 change.
1871
1872 2006-05-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1873
1874 * macterm.c (convert_fn_keycode): Fix last change.
1875
1876 2006-05-19 Eli Zaretskii <eliz@gnu.org>
1877
1878 * w32.c (init_environment): Perform the processing of environment
1879 variables on a copy of default variables and their values, not on
1880 the original. Simplify code that calls ExpandEnvironmentStrings
1881 and make buf1[] and buf2[] more visible for easier debugging.
1882
1883 2006-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1884
1885 * frame.c (x_set_border_width): Remove #ifndef MAC_OS.
1886
1887 * image.c [MAC_OS] (gif_load): Allocate Lisp string first.
1888
1889 * macfns.c (Fx_focus_frame): Don't check dpyinfo->x_focus_frame.
1890
1891 * macterm.c (XTread_socket) [TARGET_API_MAC_CARBON && MAC_OSX]:
1892 Forward keyUp events to toolbox_dispatcher.
1893
1894 * window.c (foreach_window): Check WINDOWP (FRAME_ROOT_WINDOW (f)).
1895
1896 2006-05-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1897
1898 * config.in: Regenerated (HAVE_ALSA).
1899
1900 * sound.c (alsa_sound_perror, alsa_open, alsa_period_size)
1901 (alsa_configure, alsa_close, alsa_choose_format, alsa_write)
1902 (snd_error_quiet, alsa_init): New functions.
1903 (vox_init): Return 0 if unable to open device.
1904 (Fplay_sound_internal): Test for alsa first and use vox (oss) as
1905 a fallback.
1906 (struct sound_device): Add period_size.
1907 (wav_play, au_play): Use period_size if set.
1908
1909 * Makefile.in (CFLAGS_SOUND): New flags for ALSA
1910 (ALL_CFLAGS): Add CFLAGS_SOUND
1911
1912 2006-05-18 Kenichi Handa <handa@m17n.org>
1913
1914 * callproc.c (Fcall_process): Reject encoding arguments by
1915 ascii-incompatible coding systems (e.g. utf-16).
1916
1917 * coding.c (Qascii_incompatible): New variable.
1918 (syms_of_coding): Setup Qascii_incompatible.
1919 (setup_coding_system): Be sure to initialize coding->common_flags.
1920 Check `ascii-incompatible' property of the coding system.
1921
1922 * coding.h (CODING_ASCII_INCOMPATIBLE_MASK): New macro.
1923
1924 2006-05-18 Kim F. Storm <storm@cua.dk>
1925
1926 * xdisp.c (display_tool_bar_line): Restore entire tool-bar
1927 geometry when backtracking in case last image doesn't fit on line.
1928
1929 2006-05-18 MIYOSHI Masanori <miyoshi@meadowy.org> (tiny change)
1930
1931 * xdisp.c (display_tool_bar_line): Don't adjust tool-bar height by
1932 more than height of one frame default line.
1933
1934 2006-05-17 Richard Stallman <rms@gnu.org>
1935
1936 * xfaces.c (better_font_p): Any font beats no font.
1937 (best_matching_font): Simplify based on above change.
1938
1939 * buffer.c (Fprevious_overlay_change, Fnext_overlay_change): Doc fixes.
1940
1941 2006-05-16 Kim F. Storm <storm@cua.dk>
1942
1943 * xterm.c (handle_one_xevent): Check that f is not NULL before
1944 calling x_kill_gs_process.
1945
1946 2006-05-14 Richard Stallman <rms@gnu.org>
1947
1948 * textprop.c (Fnext_single_char_property_change)
1949 (Fprevious_single_char_property_change): Don't allow returning
1950 value beyond LIMIT in any cases.
1951 (Fnext_char_property_change, Fprevious_char_property_change): Doc fix.
1952
1953 * intervals.c (get_local_map): Abort if POSITION outside BEGV, ZV.
1954
1955 2006-05-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1956
1957 * xterm.c (handle_one_xevent): Check that f is not NULL before
1958 calling _XEditResCheckMessages.
1959
1960 2006-05-14 Kim F. Storm <storm@cua.dk>
1961
1962 * xterm.c (handle_one_xevent): Fix crash in 2006-03-24 change.
1963
1964 2006-05-13 Eli Zaretskii <eliz@gnu.org>
1965
1966 * frame.c (x_set_border_width): Fix error message to say "frame",
1967 not "window".
1968
1969 * Makefile.in (SOME_MACHINE_LISP): Add fringe.elc.
1970
1971 2006-05-12 Chong Yidong <cyd@stupidchicken.com>
1972
1973 * intervals.c (set_point_both): Fix mixup before before and after
1974 in variable names.
1975
1976 * editfns.c (Fline_beginning_position): Inhibit point-motion hooks
1977 while setting point temporarily.
1978
1979 2006-05-11 Richard Stallman <rms@gnu.org>
1980
1981 * lread.c (readevalloop): Abort if START non-nil for non-buffer input.
1982
1983 2006-05-11 Kim F. Storm <storm@cua.dk>
1984
1985 * xdisp.c (redisplay_tool_bar): Handle large tool-bar-border values.
1986
1987 2006-05-11 Kenichi Handa <handa@m17n.org>
1988
1989 * fileio.c (Finsert_file_contents): Fix for the case of IO error
1990 while handling replace operation.
1991
1992 2006-05-10 Kenichi Handa <handa@m17n.org>
1993
1994 * xfaces.c (realize_default_face) [HAVE_X_WINDOWS]: If the font
1995 chosen for the default face was different from the frame font,
1996 adjust the frame font.
1997
1998 2006-05-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1999
2000 * image.c (Qduration) [MAC_OS]: Undo previous change.
2001 (syms_of_image) [MAC_OS]: Likewise.
2002 [MAC_OS] (gif_load): Emulate Graphic Control Extension block.
2003
2004 * macfns.c (x_to_mac_color): Fix shift amount change.
2005 (mac_set_font) [USE_MAC_FONT_PANEL]: Use x_get_focus_frame.
2006 [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility): Doc fix.
2007
2008 * macselect.c (Vmac_service_selection) [MAC_OSX]: Rename from
2009 Vmac_services_selection. All uses changed.
2010 (mac_store_service_event): Rename from mac_store_services_event in
2011 extern and calls.
2012
2013 * macterm.c (Qservice) [MAC_OSX]: Rename from Qservices. All uses
2014 changed.
2015 [MAC_OSX] (mac_store_service_event): Rename from
2016 mac_store_services_event. All callers changed.
2017 [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection): Add args
2018 FACE_ID and C. All callers changed.
2019 (x_free_frame_resources) [USE_MAC_FONT_PANEL]: Call
2020 mac_set_font_info_for_selection when focus frame is destroyed.
2021 (XTread_socket): Revert to FrontNonFloatingWindow/FrontWindow.
2022
2023 * macterm.h (mac_set_font_info_for_selection): Add 2nd and 3rd
2024 args in extern.
2025
2026 2006-05-09 Chong Yidong <cyd@stupidchicken.com>
2027
2028 * keymap.c (describe_map): Avoid generating duplicate entries if
2029 the shadowed binding has the same definition.
2030
2031 2006-05-09 Kenichi Handa <handa@m17n.org>
2032
2033 * keymap.c (push_key_description): Handle invalid character key.
2034
2035 2006-05-08 Kenichi Handa <handa@m17n.org>
2036
2037 * callproc.c (Fcall_process): Use system_eol_type for encoding
2038 arguments if eol_type is not yet decided.
2039
2040 * coding.h (system_eol_type): Extern it.
2041
2042 * coding.c (setup_coding_system): For invalid coding-system, set
2043 coding->eol_type to CODING_EOL_UNDECIDED.
2044 (encode_coding): Cancel previous change.
2045 (shrink_encoding_region): Likewise.
2046 (code_convert_region1): Likewise.
2047 (code_convert_string1): Likewise.
2048 (code_convert_string_norecord): Likewise.
2049
2050 * fileio.c (choose_write_coding_system): Use system_eol_type for
2051 encoding if eol_type is not yet decided.
2052
2053 * process.c (setup_process_coding_systems): Use system_eol_type
2054 for encoding if eol_type is not yet decided.
2055 (read_process_output): Likewise.
2056 (send_process): Likewise.
2057
2058 2006-05-07 Juanma Barranquero <lekktu@gmail.com>
2059
2060 * minibuf.c (syms_of_minibuf) <history-length>: Fix typo in doc.
2061
2062 2006-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2063
2064 * mac.c (Fmac_clear_font_name_table): Move defun to macfns.c.
2065 (syms_of_mac): Likewise for defsubr.
2066
2067 * macfns.c (mac_set_font): New function.
2068 (mac_frame_parm_handlers, syms_of_macfns): Replace x_set_font with it.
2069 (mac_window) [TARGET_API_MAC_CARBON && MAC_OSX]: Specify
2070 kWindowToolbarButtonAttribute when creating window.
2071 (Fmac_clear_font_name_table): Move from macfns.c.
2072 (syms_of_macfns): Likewise for defsubr.
2073 [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility): New defun.
2074 (syms_of_macfns) [USE_MAC_FONT_PANEL]: Defsubr it.
2075
2076 * macgui.h (USE_MAC_FONT_PANEL): Define to 1 if USE_ATSUI is set
2077 and build is done on Mac OS X 10.2 and later.
2078
2079 * macselect.c (mac_do_receive_drag): Remove unused variable `index'.
2080 (mac_store_services_event): Change return type in extern.
2081
2082 * macterm.c (XLoadQueryFont) [USE_ATSUI]: Set font->mac_fontnum to
2083 FMFontFamily value.
2084 [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection): New function.
2085 (x_new_focus_frame) [USE_MAC_FONT_PANEL]: Use it.
2086 (QCfamily, QCweight, QCslant, Qnormal, Qbold, Qitalic): Add extern.
2087 (QWindow) [MAC_OSX]: Likewise.
2088 (Qfont) [USE_MAC_FONT_PANEL]: Likewise.
2089 (Vmac_atsu_font_table) [USE_ATSUI]: New variable.
2090 (syms_of_macterm) [USE_ATSUI]: Defvar it.
2091 (Qtoolbar_switch_mode) [MAC_OSX]: New variable.
2092 (Qpanel_closed, Qselection) [USE_MAC_FONT_PANEL]: Likewise.
2093 (syms_of_macterm): Intern and staticpro them.
2094 (init_font_name_table) [USE_ATSUI]: Add data to Vmac_atsu_font_table.
2095 [TARGET_API_MAC_CARBON] (mac_store_event_ref_as_apple_event): New
2096 function.
2097 [USE_CARBON_EVENTS] (mac_handle_command_event): Use it.
2098 [MAC_OSX] (mac_store_services_event): Likewise.
2099 [USE_CARBON_EVENTS] (mac_handle_window_event) [MAC_OSX]: Handle
2100 kEventWindowToolbarSwitchMode event.
2101 (install_window_handler) [USE_CARBON_EVENTS && MAC_OSX]: Register it.
2102 [MAC_OSX] (mac_store_services_event): Change return type to OSStatus.
2103 [USE_MAC_FONT_PANEL] (mac_handle_font_event): New function.
2104 (install_window_handler) [USE_MAC_FONT_PANEL]: Install it.
2105 (XTread_socket): Select window on mouse click if x_focus_frame is NULL.
2106
2107 * macterm.h (mac_set_font_info_for_selection): Add extern.
2108
2109 2006-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2110
2111 * image.c (Qduration) [MAC_OS]: New variable.
2112 (syms_of_image) [MAC_OS]: Intern and staticpro it.
2113 [MAC_OS] (gif_load): Save image extension data in img->data.lisp_val.
2114 [MAC_OSX] (image_load_quartz2d): Use cfstring_create_with_utf8_cstring
2115 instead of cfstring_create_with_string.
2116
2117 2006-05-06 Kim F. Storm <storm@cua.dk>
2118
2119 * .gdbinit (xframe): Print frame name.
2120 (xlist): New command to print a list (max 10 elements).
2121 (xpr): Print lisp object of any type.
2122 (pitx): Print it->pixel_width.
2123
2124 2006-05-05 Kenichi Handa <handa@m17n.org>
2125
2126 * xdisp.c (handle_composition_prop): Fix for the case of empty
2127 composition component.
2128
2129 2006-05-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2130
2131 * keyboard.c (make_lispy_event) [MAC_OS]: Get Apple event info
2132 from event->arg.
2133
2134 * termhooks.h (enum event_kind) [MAC_OS]: Update comment for
2135 MAC_APPLE_EVENT.
2136
2137 * macterm.h (mac_make_lispy_event_code): Remove extern.
2138 (mac_post_mouse_moved_event): Add extern.
2139 (mac_aelist_to_lisp, mac_aedesc_to_lisp): Change arg 1 to
2140 `const AEDesc *' in externs.
2141 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]: New extern.
2142
2143 * mac.c (mac_aelist_to_lisp, mac_aedesc_to_lisp): Change arg 1 to
2144 `const AEDesc *'.
2145 [TARGET_API_MAC_CARBON] (create_apple_event): New function.
2146 [TARGET_API_MAC_CARBON] (create_apple_event_from_event_ref): Use it.
2147 Use xrealloc instead of repeated xmalloc/xfree.
2148 [TARGET_API_MAC_CARBON] (create_apple_event_from_drag_ref): New
2149 function.
2150
2151 * macmenu.c (restore_menu_items, cleanup_popup_menu): Return a value.
2152
2153 * macselect.c: Update copyright year.
2154 (mac_store_apple_event): Change return type to void in extern.
2155 (mac_handle_apple_event): Don't get return value from
2156 mac_store_apple_event.
2157 [TARGET_API_MAC_CARBON] (Vmac_dnd_known_types): New variable.
2158 (syms_of_macselect) [TARGET_API_MAC_CARBON]: Defvar it.
2159 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Move function from
2160 macterm.c. Use Vmac_dnd_known_types as acceptable flavors.
2161 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise. New
2162 implementation using create_apple_event_from_drag_ref.
2163 [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
2164 (mac_do_receive_dragUPP): Move variables from macterm.c.
2165 (install_drag_handler, remove_drag_handler): New functions.
2166
2167 * macterm.c (XTread_socket) [TARGET_API_MAC_CARBON]: Try window
2168 path select also for proxy icon click.
2169 [TARGET_API_MAC_CARBON] (mac_post_mouse_moved_event): New function.
2170 [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback): Use it.
2171 (xlfdpat_create): Remove unused label `error' and trailing sentences.
2172 (mac_do_track_drag, mac_do_receive_drag): Move functions to macselect.c.
2173 (mac_do_track_dragUPP, mac_do_receive_dragUPP): Move variables to
2174 macselect.c.
2175 (install_drag_handler, remove_drag_handler): Add extern.
2176 (mac_store_apple_event): Change return type to void. All uses changed.
2177 Create Lisp object from Apple event and store it into input event.
2178 (mac_make_lispy_event_code): Remove function.
2179 [TARGET_API_MAC_CARBON] (mac_store_drag_event): New function.
2180 (install_window_handler): Call install_drag_handler.
2181 (remove_window_handler): Call remove_drag_handler.
2182
2183 2006-05-03 Richard Stallman <rms@gnu.org>
2184
2185 * sound.c (Fplay_sound_internal): Dynamically allocate
2186 current_sound_device and current_sound.
2187 (sound_cleanup): Free them.
2188
2189 * minibuf.c (read_minibuf): Don't use read_minibuf_noninteractive
2190 when inside a keyboard macro.
2191
2192 2006-05-02 Andreas Schwab <schwab@suse.de>
2193
2194 * xmenu.c (restore_menu_items): Return a value.
2195
2196 2006-05-01 Martin Rudalics <rudalics@gmx.at>
2197
2198 * syntax.c (Fforward_comment): Detect generic comment at beginning of
2199 buffer when moving backwards.
2200
2201 2006-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2202
2203 * dispnew.c (update_window): Don't set changed_p when mode/header
2204 line is updated.
2205
2206 * xdisp.c (prepare_menu_bars) [MAC_OS]: Call mac_update_title_bar.
2207 (get_glyph_face_and_encoding, get_char_face_and_encoding):
2208 Don't distinguish known faces from others.
2209
2210 * mac.c (mac_coerce_file_name_ptr): Try typeFSRef if coercion
2211 through typeFileURL failed.
2212
2213 * macfns.c (mac_update_title_bar): New function.
2214 [TARGET_API_MAC_CARBON] (mac_update_proxy_icon): New function.
2215 (show_hourglass, hide_hourglass) [USE_CG_DRAWING]:
2216 Call mac_prepare_for_quickdraw.
2217
2218 * macgui.h (USE_ATSUI): Set default to 1 if MAC_OSX is defined.
2219 (USE_CG_DRAWING): Don't define if compiled on Mac OS X 10.1.
2220 (enum pcm_status): New enum.
2221 (XCHARSTRUCTROW_CHAR_VALID_P, XCHARSTRUCTROW_SET_CHAR_VALID)
2222 (XCharStructRow): Remove. Now validity is represented by
2223 non-negativeness of sum of ascent and descent.
2224 (struct MacFontStruct): Change type of member `rows'.
2225 (struct _XGC) [USE_CG_DRAWING]: Add member `clip_rects'.
2226
2227 * macterm.c (mac_draw_line, mac_draw_line_to_pixmap):
2228 Adjust endpoints of strictly horizontal/vertical lines.
2229 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Set clip_rects.
2230 (pcm_init, pcm_get_status): New functions.
2231 (x_per_char_metric, XLoadQueryFont): Use them instead of
2232 XCharStructRow and related macros.
2233 (x_draw_relief_rect): Don't adjust arguments of mac_draw_line.
2234 (x_free_frame_resources) [TARGET_API_MAC_CARBON]: Free FRAME_FILE_NAME.
2235 (XTread_socket) [TARGET_API_MAC_CARBON]: Handle proxy icon drag
2236 and window path pop-up menu on title bar.
2237 (mac_use_core_graphics) [USE_CG_DRAWING]: Set default to 1.
2238
2239 * macterm.h (mac_update_title_bar): Add extern.
2240 (struct mac_output) [TARGET_API_MAC_CARBON]: New member `file_name'.
2241 (FRAME_FILE_NAME): New macro.
2242
2243 * unexmacosx.c (unexec): Error if trying unexec from dumped executable.
2244
2245 2006-04-30 Richard Stallman <rms@gnu.org>
2246
2247 * keymap.c (Fdefine_key): Improve error message
2248 when KEY begins with a non-prefix key.
2249
2250 2006-04-30 Martin Rudalics <rudalics@gmx.at>
2251
2252 * syntax.c (Fforward_comment): Don't forget to break out of the loop
2253 when we skipped backward over a generic comment.
2254
2255 2006-04-27 Nick Roberts <nickrob@snap.net.nz>
2256
2257 * .gdbinit (pp1, pv1): Only print value as expression is now
2258 printed out by gud-print.
2259 (pv1): Correct doc string.
2260
2261 2006-04-26 Stefan Monnier <monnier@iro.umontreal.ca>
2262
2263 * keymap.c (store_in_keymap): Change `def' arg to not be `register'.
2264 Seems to trigger a bug in gcc-amd64 4.0.2 20051125 (Red Hat 4.0.2-8):
2265 keymap.c:895: error: address of register variable `def' requested.
2266
2267 2006-04-26 Jason Rumney <jasonr@gnu.org>
2268
2269 * w32term.c (construct_mouse_wheel): Handle negative coordinates.
2270
2271 * w32fns.c (w32_wnd_proc) <WM_LBUTTONDOWN, WM_RBUTTONDOWN>:
2272 <WM_LBUTTONUP, WM_RBUTTONUP>: Call signal_user_input in the cases
2273 where we preempt mouse_button_timer.
2274
2275 2006-04-25 Miles Bader <miles@gnu.org>
2276
2277 * editfns.c (Ffield_beginning, find_field): Undo change of 2006-04-23.
2278
2279 2006-04-24 Stefan Monnier <monnier@iro.umontreal.ca>
2280
2281 * process.h: Include headers for pid_t.
2282
2283 2006-04-24 Kim F. Storm <storm@cua.dk>
2284
2285 * xdisp.c (fill_stretch_glyph_string): Set s->nchars = 1 for code which
2286 does last_glyph=s->first_glyph+s->nchars-1, e.g. if stretch has relief.
2287 (produce_stretch_glyph): Assume that face box height and width is
2288 already included in stretch glyph size so caller doesn't have to
2289 consider the extra space otherwise added (fixes problem in ses.el).
2290
2291 * frame.c (x_set_font): Clear f->n_tool_bar_rows and current frame
2292 matrices to force recalculation of tool-bar height after font change.
2293
2294 * xdisp.c (tool_bar_lines_needed): New local `temp_row' for clarity.
2295 Clear it when done, so we don't accidentally draw a second copy of
2296 the tool-bar after resetting f->n_tool_bar_rows.
2297 (redisplay_tool_bar): Update tool-bar-lines frame parameter whenever
2298 we recalculate f->n_tool_bar_rows.
2299
2300 2006-04-23 Lars Hansen <larsh@soem.dk>
2301
2302 * editfns.c (find_field): Fix comment.
2303 (Ffield_beginning): Fix bug when POS is at field beginning.
2304
2305 2006-04-22 Eli Zaretskii <eliz@gnu.org>
2306
2307 * puresize.h (BASE_PURESIZE): Increase to 1205000.
2308
2309 2006-04-21 Kim F. Storm <storm@cua.dk>
2310
2311 * xdisp.c (redisplay_window): Fix last change. Don't recenter if
2312 window start is at BEGV.
2313
2314 * dispextern.h (struct image): New member `corners'.
2315 (TOP_CORNER, LEFT_CORNER, BOT_CORNER, RIGHT_CORNER): New macros.
2316
2317 * image.c (four_corners_best): New arg CORNERS specifies what pixels
2318 to look at in case image has margin.
2319 (x_create_bitmap_mask): Pass NULL for CORNERS to four_corners_best.
2320 (image_background, image_background_transparent)
2321 (x_build_heuristic_mask): Pass img->corners to four_corners_best.
2322 (gif_load): Set img->corners according to image's margin spec.
2323 Use img->corners values directly where applicable.
2324 Save image extension data in img->data.lisp_val.
2325 (gif_clear_image): New function to free img->data.lisp_val.
2326 (gif_type): Use it instead of generic x_clear_image.
2327 (Fimage_extension_data): New defun.
2328 (syms_of_image): Defsubr it.
2329
2330 2006-04-21 John Sullivan <john@wjsullivan.net> (tiny change)
2331
2332 * window.c (Fdisplay_buffer): Doc fix.
2333
2334 2006-04-21 Eli Zaretskii <eliz@gnu.org>
2335
2336 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Increase to 25000.
2337
2338 2006-04-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2339
2340 * image.c [MAC_OS] (xpm_load_image): Fill in background field
2341 while we have ximg handy.
2342
2343 * macmenu.c (restore_menu_items, save_menu_items): New functions
2344 from xmenu.c.
2345 (set_frame_menubar, digest_single_submenu): Apply 2006-04-18
2346 changes for xmenu.c.
2347
2348 * macterm.c (x_per_char_metric): Return NULL if glyph width is 0.
2349 (add_mac_font_name): New function.
2350 (init_font_name_table): Use it. Adopt the first found font from
2351 those having the same family name.
2352
2353 2006-04-21 Nick Roberts <nickrob@snap.net.nz>
2354
2355 * xdisp.c (note_mouse_highlight): Use build_string.
2356
2357 2006-04-20 Lars Hansen <larsh@soem.dk>
2358
2359 * textprop.c (Fremove_list_of_text_properties):
2360 Ensure modify_region is called only when buffer is modified and that
2361 signal_after_change is allways called in that case.
2362
2363 * print.c (PRINTFINISH): Call signal_after_change.
2364
2365 2006-04-20 Kim F. Storm <storm@cua.dk>
2366
2367 * xdisp.c (redisplay_window): Fix last change.
2368
2369 * xdisp.c (redisplay_window): If current window start is not at the
2370 beginning of a line, select a new window start if buffer is modified
2371 and window start is in the modified region, but the first change is
2372 before window start.
2373
2374 2006-04-18 Richard Stallman <rms@gnu.org>
2375
2376 * xmenu.c (restore_menu_items, save_menu_items): New fns.
2377 (set_frame_menubar): Use save_menu_items. Save updated vector in
2378 the frame before unwinding it. Don't use unuse_menu_items.
2379 Don't use discard_menu_items.
2380 (digest_single_submenu): Abort if an item is not in a pane.
2381 (init_menu_items): Put the error check at the top.
2382
2383 * keymap.c (describe_map): Make "shadowed" warning more verbose.
2384
2385 * window.c (adjust_window_trailing_edge): Correctly distinguish
2386 series vs parallel cases, even when window has no parent.
2387
2388 * abbrev.c (record_symbol): New function.
2389 (Finsert_abbrev_table_description): Sort the abbrevs alphabetically.
2390
2391 2006-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2392
2393 * image.c (x_create_bitmap_from_data) [MAC_OS]: Don't check return
2394 value of xmalloc.
2395
2396 * mac.c (mac_coerce_file_name_ptr, mac_coerce_file_name_desc)
2397 (create_apple_event_from_event_ref, xrm_get_preference_database)
2398 (cfstring_create_normalized): Don't check return value of xmalloc.
2399
2400 * macselect.c (get_scrap_target_type_list, defer_apple_events)
2401 (copy_scrap_flavor_data, mac_handle_service_event): Don't check
2402 return value of xmalloc/xrealloc.
2403
2404 * macterm.c (XCreateGC, x_per_char_metric, xlfdpat_create)
2405 (init_font_name_table, init_font_name_table, mac_do_list_fonts)
2406 (XLoadQueryFont, mac_store_apple_event): Don't check return value
2407 of xmalloc.
2408
2409 2006-04-17 Kim F. Storm <storm@cua.dk>
2410
2411 * window.c (coordinates_in_window): On the vertical border,
2412 calculate the row number measured from the top of the window, not
2413 the top of the frame.
2414 (window_loop): Test w->dedicated with !NILP instead of EQ Qt.
2415 (window_scroll_pixel_based): Fix off-by-one bug in 2002-12-23 change.
2416
2417 2006-04-16 Eli Zaretskii <eliz@gnu.org>
2418
2419 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Reduce to 24000.
2420
2421 2006-04-16 Romain Francoise <romain@orebokech.com>
2422
2423 * puresize.h (BASE_PURESIZE): Decrement back to 1200000.
2424
2425 2006-04-16 Andreas Schwab <schwab@suse.de>
2426
2427 * puresize.h (PURESIZE_RATIO): Reduce to 10/6.
2428
2429 2006-04-15 Romain Francoise <romain@orebokech.com>
2430
2431 * puresize.h (BASE_PURESIZE): Increment to 1210000.
2432
2433 2006-04-13 Micha\e,Ak\e(Bl Cadilhac <michael.cadilhac@lrde.org>
2434
2435 * print.c (Fprin1_to_string): Mention in the `doc' that the
2436 behavior is modified by `print-level' and `print-length'.
2437
2438 2006-04-13 Kenichi Handa <handa@m17n.org>
2439
2440 * coding.c (setup_coding_system): If eol-type is not yet decided
2441 and system_eol_type is not LF, set CODING_REQUIRE_ENCODING_MASK.
2442 If coding_system is nil, return 0.
2443 (code_convert_region1): Even if coding_system is nil, don't skip
2444 conversion if system_eol_type is not LF.
2445 (code_convert_string1): Likewise.
2446 (code_convert_string_norecord): Likewise.
2447
2448 2006-04-13 Kenichi Handa <handa@m17n.org>
2449
2450 * coding.c (setup_coding_system): Fix previous change.
2451 (encode_coding): If eol_type is not yet decided, use system_eol_type.
2452 (shrink_encoding_region): If eol_type is not yet decided and
2453 system_eol_type is not LF, don't shrink.
2454
2455 2006-04-13 Nick Roberts <nickrob@snap.net.nz>
2456
2457 * xdisp.c (note_mouse_highlight): Add help echo for dragging vertical
2458 line.
2459
2460 2006-04-12 Richard Stallman <rms@gnu.org>
2461
2462 * keyboard.c (read_key_sequence): Explicitly avoid keybuf[-1].
2463
2464 * process.c (conv_lisp_to_sockaddr): If FAMILY unknown, just return.
2465 (Fprocess_send_eof): Abort if fail to open null device.
2466
2467 2006-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2468
2469 * fns.c [HAVE_MENUS && MAC_OS]: Include macterm.h.
2470
2471 * image.c [MAC_OS] (xpm_load_image): Add parentheses around
2472 assignment used as truth value. Add explicit braces to avoid
2473 ambiguous `else'.
2474 [MAC_OS] (gif_load): Remove unused variable `gcpro1'.
2475
2476 * lisp.h (syms_of_fontset, Fset_fontset_font): Put extern and
2477 EXFUN in #ifdef HAVE_WINDOW_SYSTEM.
2478 (syms_of_xfns, syms_of_xsmfns, syms_of_xselect, syms_of_xterm):
2479 Put externs in #ifdef HAVE_X_WINDOWS.
2480 (syms_of_macfns, syms_of_macselect, syms_of_macterm)
2481 (syms_of_macmenu, syms_of_mac) [MAC_OS]: Add externs.
2482 (init_mac_osx_environment) [MAC_OSX]: Add extern.
2483
2484 * mac.c (init_process): Remove undef.
2485 (select) [MAC_OSX]: Undefine before including sysselect.h.
2486 (posix_pathname_to_fsspec, fsspec_to_posix_pathname) [MAC_OSX]:
2487 Remove functions and prototypes.
2488 (parse_value): Add parentheses around + inside shift.
2489 (path_from_vol_dir_name): Make static.
2490 (get_temp_dir_name): Remove unused variables `cpb' and `dir_name'.
2491 [!MAC_OSX] (get_path_to_system_folder): Likewise.
2492 (Fmac_get_file_creator, Fmac_get_file_type): Remove unused
2493 variable `cCode'.
2494 (Fmac_coerce_ae_data): Remove unused variables `fref' and `fs'.
2495 (Fmac_get_preference): Add explicit braces to avoid ambiguous `else'.
2496
2497 * macfns.c (x_to_mac_color): Remove unused variable `tail'.
2498 (x_set_mouse_color): Remove unused variable `dpy'.
2499 (Fx_create_frame): Remove unused variable `x_frame_count'.
2500 (Fx_server_version): Add explicit braces to avoid ambiguous `else'.
2501 (x_sync): Move from macterm.c.
2502 (Fx_file_dialog): Remove unused variable `default_filter_index'.
2503
2504 * macmenu.c (min_menu_id): Make element type explicit.
2505
2506 * macselect.c (get_flavor_type_from_symbol): Remove unused
2507 variable `val'.
2508 (get_scrap_private_timestamp, x_get_foreign_selection)
2509 (copy_scrap_flavor_data): Add explicit braces to avoid ambiguous `else'.
2510 (Fmac_process_deferred_apple_events): Remove unused variables
2511 `keyword', `reply', `apple_event', `count', and `err'.
2512
2513 * macterm.c: Don't include gnu.h.
2514 (x_io_error_quitter, x_draw_image_foreground_1): Remove prototypes.
2515 (x_sync): Move to macfns.c.
2516 [USE_CG_DRAWING] (mac_define_fringe_bitmap): Remove unused
2517 variable `mask_bits'.
2518 (mac_compute_glyph_string_overhangs): Avoid ambiguous `else'.
2519 (x_draw_image_glyph_string): Remove unused variable `pixmap'.
2520 (x_mac_to_emacs_modifiers): Remove function.
2521 (XTset_vertical_scroll_bar, mac_handle_visibility_change)
2522 (x_make_frame_visible, xlfdpat_create, mac_handle_command_event):
2523 Add explicit braces to avoid ambiguous `else'.
2524 (x_make_frame_visible): Remove unused variables `type',
2525 `original_top', and `original_left'.
2526 (mac_do_list_fonts, XTread_socket): Add parentheses around && within ||.
2527 (x_load_font): Remove unused variables `full_name', and `value'.
2528 (do_get_menus, do_init_managers, do_check_ram_size) [!MAC_OS8]:
2529 Remove functions.
2530 (do_zoom_window): Reorganize variables with respect to conditionals.
2531 (init_command_handler): Remove unused variable `err'.
2532 [MAC_OSX] (mac_check_bundle): Remove unused variable `child'.
2533
2534 * macterm.h (x_set_mouse_position, x_set_mouse_pixel_position)
2535 (x_make_frame_invisible, x_iconify_frame, x_free_frame_resources)
2536 (x_destroy_window, x_wm_set_size_hint, x_delete_display, XFreeGC)
2537 (do_menu_choice, have_menus_p, x_real_positions)
2538 (x_set_menu_bar_lines, x_pixel_width, x_pixel_height, x_char_width)
2539 (x_char_height, x_sync, x_set_tool_bar_lines, x_activate_menubar)
2540 (free_frame_menubar): Add externs.
2541
2542 * unexmacosx.c: Include config.h before using HAVE_MALLOC_MALLOC_H.
2543 (malloc, realloc, free): Add undefs.
2544 (read_load_commands): Remove unused variable `n' and `j'.
2545 (copy_data_segment): Remove unused variable `r'.
2546
2547 * xdisp.c (get_glyph_string_clip_rects): Add parentheses around &&
2548 within ||. Add explicit braces to avoid ambiguous `else'.
2549 (dump_glyph_row): Remove label for `inverse_p' from legend.
2550
2551 * xfaces.c (Finternal_merge_in_global_face, try_font_list):
2552 Add explicit braces to avoid ambiguous `else'.
2553
2554 2006-04-11 Micha\e,Ak\e(Bl Cadilhac <michael.cadilhac@lrde.org>
2555
2556 * dispnew.c (init_display): Don't init X display if the user asked
2557 for a non-X display.
2558
2559 2006-04-12 Kenichi Handa <handa@m17n.org>
2560
2561 * coding.c (setup_coding_system): Use system_eol_type for default
2562 coding->eol_type.
2563
2564 2006-04-11 Dan Nicolaescu <dann@ics.uci.edu>
2565
2566 * lisp.h (wrong_type_argument): Mark as NO_RETURN.
2567
2568 * data.c (wrong_type_argument): Try to avoid compiler warnings due
2569 to the fact the function is now marked as NO_RETURN.
2570
2571 2006-04-10 Eli Zaretskii <eliz@gnu.org>
2572
2573 * s/ms-w32.h (pid_t) [_MSC_VER]: New typedef.
2574
2575 2006-04-10 Romain Francoise <romain@orebokech.com>
2576
2577 * xrdb.c (gethomedir): Use xstrdup.
2578
2579 2006-04-10 Andreas Schwab <schwab@suse.de>
2580
2581 * xrdb.c (gethomedir): Make sure to always return a pointer that
2582 can be passed to free.
2583
2584 2006-04-09 Richard Stallman <rms@gnu.org>
2585
2586 * lisp.h (Fkill_emacs): Undo previous change.
2587
2588 2006-04-08 Richard Stallman <rms@gnu.org>
2589
2590 * search.c (boyer_moore): Test ch >= 0400, not >.
2591
2592 2006-04-09 Dan Nicolaescu <dann@ics.uci.edu>
2593
2594 * puresize.h (pure_write_error): Mark as NO_RETURN.
2595
2596 * lisp.h (args_out_of_range, args_out_of_range_3)
2597
2598 2006-04-08 Eli Zaretskii <eliz@gnu.org>
2599
2600 * w32fns.c (w32_wnd_proc) <WM_MOUSEMOVE>: Ignore mouse movements
2601 if a menu is active on this frame.
2602
2603 2006-04-08 Dan Nicolaescu <dann@ics.uci.edu>
2604
2605 * lisp.h (report_file_error): Mark as NO_RETURN.
2606
2607 2006-04-08 Eli Zaretskii <eliz@gnu.org>
2608
2609 * alloc.c [STDC_HEADERS]: Include stddef.h.
2610
2611 * lisp.h (PSEUDOVECSIZE): Fix last change.
2612
2613 2006-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
2614
2615 * process.h (struct Lisp_Process): Replace Lisp_Objects `pid',
2616 `raw_status_high', and `raw_status_low' with plain integers, and move
2617 them to the end of the structure.
2618
2619 * alloc.c (allocate_process): Use PSEUDOVECSIZE to initialize the
2620 pseudovector's size field so only the Lisp_Object fields get GC'd.
2621
2622 * process.c (update_status, make_process, Fdelete_process)
2623 (Fprocess_status, list_processes_1, start_process_unwind)
2624 (create_process, Fmake_network_process, server_accept_connection)
2625 (wait_reading_process_output, send_process, Fprocess_running_child_p)
2626 (process_send_signal, proc_encode_coding_system, Fprocess_send_eof)
2627 (sigchld_handler, status_notify): Adjust to new non-Lisp fields for
2628 `pid' and `raw_status'.
2629 (Fprocess_id, Fsignal_process): Same, and additionally use floats when
2630 representing PIDs that are larger than most-positive-fixnum.
2631
2632 * keymap.c (describe_map): Only use XINT if we checked INTEGERP.
2633
2634 * lisp.h (OFFSETOF, PSEUDOVECSIZE): New macros.
2635
2636 2006-04-08 Eli Zaretskii <eliz@gnu.org>
2637
2638 * w32fns.c (Fx_show_tip): Add 3 to the 5th arg of SetWindowPos.
2639
2640 2006-04-03 Paul Eggert <eggert@cs.ucla.edu>
2641
2642 * editfns.c (TM_YEAR_IN_ASCTIME_RANGE): New macro, identical to
2643 ../lib-src/b2m.c and ../lib-src/editfns.c.
2644 (Fcurrent_time_string): Use it.
2645 Document that the year might not consume 4 columns if it's outside
2646 the range 1000-9999.
2647 Check for asctime failure.
2648 Don't assume that the output string length is always exactly 24.
2649
2650 2006-04-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2651
2652 * macterm.c (XTread_socket): Initialize variable `f' before its use.
2653
2654 2006-04-03 Kenichi Handa <handa@m17n.org>
2655
2656 * image.c: Include "charset.h" and "coding.h".
2657 (x_find_image_file): Return an encoded file name.
2658
2659 2006-04-01 Eli Zaretskii <eliz@gnu.org>
2660
2661 * configure: Regenerated.
2662
2663 2006-03-31 Kenichi Handa <handa@m17n.org>
2664
2665 * xfns.c (xg_set_icon): Delete superfluous UNGCPRO.
2666
2667 2006-03-30 Dan Nicolaescu <dann@ics.uci.edu>
2668
2669 * xdisp.c (syms_of_xdisp): Fix variable name.
2670
2671 2006-03-30 Kenichi Handa <handa@m17n.org>
2672
2673 * xterm.c (x_term_init): Delete superfluous UNGCPRO.
2674
2675 2006-03-29 Juanma Barranquero <lekktu@gmail.com>
2676
2677 * keyboard.c (process_tool_bar_item): Reorder dummy args.
2678
2679 2006-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
2680
2681 * keyboard.c (tool_bar_items): Use map_keymap.
2682 (process_tool_bar_item): Add dummy args to fit the required interface.
2683
2684 2006-03-25 Eli Zaretskii <eliz@gnu.org>
2685
2686 * .gdbinit (pr, pp, pp1, pv, pv1): Force print_output_debug_flag
2687 to zero before calling debug_print or safe_debug_print.
2688
2689 * print.c (print_output_debug_flag): New global variable.
2690 (Fexternal_debugging_output) [WINDOWSNT]: Don't call
2691 OutputDebugString if print_output_debug_flag is zero.
2692
2693 2006-03-24 Paul Eggert <eggert@cs.ucla.edu>
2694
2695 * editfns.c (TM_YEAR_BASE): Move up, so the changes below can use it.
2696 (Fdecode_time, Fencode_time): Use TM_YEAR_BASE instead of 1900.
2697 (Fdecode_time): Cast tm_year to EMACS_INT.
2698 (Fcurrent_time_string): Report an invalid time specification if
2699 the argument is invalid. Also, check for out-of-range time stamps.
2700
2701 2006-03-24 Kim F. Storm <storm@cua.dk>
2702
2703 * xterm.c (handle_one_xevent):
2704 * w32term.c (w32_read_socket):
2705 * macterm.c (XTread_socket): Don't let key-press clear mouse face
2706 on in toolbar window if mouse-highlight is an integer.
2707
2708 * fns.c (sxhash_list): Include last non-nil CDR in hash.
2709
2710 2006-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2711
2712 * macmenu.c (enum mac_menu_kind): New enum.
2713 (min_menu_id): New variable.
2714 (POPUP_SUBMENU_ID, MIN_POPUP_SUBMENU_ID, MIN_MENU_ID)
2715 (MIN_SUBMENU_ID): Remove defines. All uses are replaced with
2716 min_menu_id and enumerators in enum mac_menu_kind.
2717 (fill_menu, dispose_menus, install_menu_quit_handler): New arg KIND.
2718 All uses changed. Add range check for menu ID.
2719 (fill_menubar): Add range check for menu ID.
2720 [HAVE_CANCELMENUTRACKING] (menu_quit_handler): Check error code of
2721 GetEventParameter.
2722 (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler
2723 for each menu kind.
2724
2725 2006-03-22 Kim F. Storm <storm@cua.dk>
2726
2727 * xdisp.c: Undo 2006-03-21 change.
2728
2729 * term.c: Define aliases for append_glyph and produce_stretch_glyph
2730 when `static' is defined to avoid name clash with those in xdisp.c.
2731
2732 * process.c (Faccept_process_output): Fix to comply with lisp
2733 reference. Change arg "timeout" to "seconds" and allow both
2734 integer and float value. Change arg "timeout-msec" to "millisec"
2735 and interpret" as milliseconds rather than microseconds. Fix doc
2736 string accordingly.
2737
2738 2006-03-21 Ken Raeburn <raeburn@raeburn.org>
2739
2740 * xdisp.c (store_next_glyph): Rename from append_glyph.
2741 (generate_stretch_glyph): Rename from produce_stretch_glyph.
2742 All callers changed accordingly.
2743
2744 2006-03-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2745
2746 * xterm.c: x_session_initialized new variable.
2747 (x_term_init): Use x_session_initialized to check if
2748 x_session_initialize should be called.
2749 (x_initialize): Initialize x_session_initialized.
2750
2751 2006-03-21 Kim F. Storm <storm@cua.dk>
2752
2753 * fringe.c (draw_fringe_bitmap): Don't calculate default overlay arrow
2754 bitmap here, but ...
2755 (update_window_fringes): ... here, so we can test if it has changed.
2756
2757 2006-03-20 Andreas Schwab <schwab@suse.de>
2758
2759 * dispnew.c (init_display): Check DISPLAY here.
2760
2761 * emacs.c (main): Don't check here.
2762
2763 * xterm.c (x_display_ok): Don't use DISPLAY env var.
2764
2765 2006-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
2766
2767 * window.c (window_scroll_pixel_based): Yet another int/Lisp_Object
2768 mixup (YAILOM).
2769
2770 2006-03-20 Eli Zaretskii <eliz@gnu.org>
2771
2772 * emacs.c (main): Fix last change.
2773
2774 2006-03-20 Kenichi Handa <handa@m17n.org>
2775
2776 * fileio.c (Fwrite_region): Set visit_file to Qnil before GCPRO it.
2777
2778 * keymap.c (map_keymap): Set tail to Qnil before GCPRO it.
2779
2780 * xfns.c (xg_set_icon): Remove unnecessary GCPRO.
2781
2782 * xterm.c (x_term_init): Remove unnecessary GCPRO.
2783
2784 2006-03-19 Kim F. Storm <storm@cua.dk>
2785
2786 * xdisp.c (set_cursor_from_row): Fix cursor property on overlay string,
2787 so it doesn't associate overlay string with following glyph by default.
2788 Allow integer property value to specify explicit number of buffer
2789 positions associate with overlay string.
2790
2791 2006-03-18 Chong Yidong <cyd@stupidchicken.com>
2792
2793 * xterm.c (x_display_ok): Fix minor bug and compilation warnings.
2794
2795 2006-03-18 Nozomu Ando <nand@mac.com>
2796
2797 * m/pmax.h (BROKEN_NOCOMBRELOC) [__NetBSD__]: Define.
2798 (LIB_STANDARD, START_FILES) [__NetBSD__]: Don't define.
2799 (START_FILES, RUN_TIME_REMAP, UNEXEC) [__NetBSD__, __OpenBSD__]:
2800 Don't redefine.
2801
2802 * m/mips.h: Don't use unexmips on NetBSD.
2803 (LIBS_MACHINE): Move definition lower, so it doesn't use
2804 LD_SWITCH_MACHINE, START_FILES, LIB_STANDARD, LIBS_TERMCAP,
2805 C_SWITCH_MACHINE, and C_DEBUG_SWITCH.
2806
2807 * unexelf.c [BROKEN_NOCOMBRELOC]: Include assert.h.
2808 (unexec) [BROKEN_NOCOMBRELOC]: Handle platforms whose nocombreloc
2809 option is broken (e.g., MIPS/NetBSD).
2810
2811 2006-03-18 Craig McDaniel <craigmcd@gmail.com> (tiny change)
2812
2813 * sheap.c (STATIC_HEAP_SIZE): Enlarge STATIC_HEAP_SIZE to 12MB.
2814 Remove the HAVE_X_WINDOWS conditional.
2815
2816 2006-03-18 Vivek Dasmohapatra <vivek@etla.org> (tiny change)
2817
2818 * emacs.c (main): If user asks for a display that is unavailable,
2819 simulate -nw.
2820
2821 * xterm.c (x_display_ok): New function.
2822
2823 * xterm.h: Add prototype for x_display_ok.
2824
2825 2006-03-18 Eli Zaretskii <eliz@gnu.org>
2826
2827 * w32fns.c (Fw32_select_font): Doc fix.
2828
2829 2006-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2830
2831 * image.c [MAC_OS] (XPutPixel, XGetPixel)
2832 [!WORDS_BIG_ENDIAN && USE_CG_DRAWING]: Don't use specialized
2833 version when depth is 32.
2834 (mac_create_cg_image_from_image) [MAC_OS && USE_CG_DRAWING]:
2835 New function.
2836 (prepare_image_for_display) [MAC_OS && USE_CG_DRAWING]: Use it.
2837 (x_clear_image_1) [MAC_OS && USE_CG_DRAWING]: Release CGImage.
2838
2839 * macterm.c (XCreatePixmap) [!WORDS_BIG_ENDIAN && USE_CG_DRAWING]:
2840 Create GWorld in ARGB pixel format.
2841 (mac_copy_area, mac_copy_area_with_mask) [USE_CG_DRAWING]:
2842 Remove functions.
2843 (x_draw_image_foreground) [USE_CG_DRAWING]: Use mac_draw_cg_image
2844 instead of mac_copy_area/mac_copy_area_with_mask.
2845
2846 2006-03-15 Kim F. Storm <storm@cua.dk>
2847
2848 * xdisp.c (extend_face_to_end_of_line): Always add space glyph to
2849 empty row. Fixes memory corruption revealed by 2006-03-02 change.
2850 (display_tool_bar_line): Skip empty tool-bar line if HEIGHT < 0.
2851 (tool_bar_lines_needed): Fix tool-bar display in case the tool-bar
2852 width is exactly the same as the window width. Don't count a final
2853 empty tool-bar line (pass HEIGHT = -1 to display_tool_bar_line).
2854
2855 2006-03-15 Juanma Barranquero <lekktu@gmail.com>
2856
2857 * fringe.c (w32_init_fringe, w32_reset_fringes): Revert to being
2858 conditional on HAVE_NTGUI, not WINDOWS_NT.
2859
2860 2006-03-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2861
2862 * dispextern.h (mac_init_fringe) [MAC_OS]: Add prototype.
2863
2864 * fringe.c (mac_init_fringe) [MAC_OS]: New function.
2865
2866 * macterm.c (mac_initialize) [USE_CG_DRAWING]: Call mac_init_fringe.
2867 (max_fringe_bmp, fringe_bmp) [USE_CG_DRAWING]: New variables.
2868 (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap)
2869 (mac_draw_cg_image) [USE_CG_DRAWING]: New functions.
2870 (mac_draw_bitmap) [USE_CG_DRAWING]: Remove function.
2871 (x_draw_fringe_bitmap) [USE_CG_DRAWING]: Use mac_draw_cg_image
2872 instead of mac_draw_bitmap.
2873 (x_redisplay_interface) [USE_CG_DRAWING]: Set handlers for
2874 define_fringe_bitmap and destroy_fringe_bitmap.
2875
2876 2006-03-14 Chong Yidong <cyd@stupidchicken.com>
2877
2878 * xterm.c (x_uncatch_errors): Block input for entire function.
2879
2880 2006-03-12 Jason Rumney <jasonr@gnu.org>
2881
2882 * w32fns.c (Fx_create_frame): Remove call to
2883 Qface_set_after_frame_default (from xfns.c 2003-05-26).
2884
2885 * w32menu.c (Fx_popup_menu): Call w32_free_menu_strings when
2886 finished with the menu.
2887
2888 * w32term.c: Sync 2005-10-24 xterm.c changes.
2889 (last_mouse_glyph_frame): New var.
2890 (note_mouse_movement): Say mouse moved if current frame differs
2891 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
2892 (w32_mouse_position): Set last_mouse_glyph_frame.
2893 Remove OLD_REDISPLAY_CODE block.
2894
2895 2006-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2896
2897 * macgui.h [USE_ATSUI && MAC_OSX]: Define USE_CG_TEXT_DRAWING to 1.
2898
2899 * macterm.h (struct mac_output) [USE_CG_DRAWING]: New member cg_context.
2900 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Add prototype.
2901
2902 * mac.c (sys_select) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
2903
2904 * macfns.c (x_create_tip_frame): Apply 2006-03-11 change for xfns.c.
2905
2906 * macterm.c (mac_draw_rectangle, x_draw_glyph_string_foreground)
2907 (x_draw_composite_glyph_string_foreground)
2908 (x_draw_image_foreground): Undo previous changes.
2909 (x_draw_hollow_cursor): Likewise. Subtract 1 from the last
2910 argument of mac_draw_rectangle.
2911 (CG_SET_FILL_COLOR, CG_SET_STROKE_COLOR): New macros.
2912 (mac_draw_string_common, mac_draw_image_string_cg): Use them.
2913 (FRAME_CG_CONTEXT) [USE_CG_DRAWING]: New macro.
2914 (mac_begin_cg_clip, mac_end_cg_clip, mac_prepare_for_quickdraw)
2915 [USE_CG_DRAWING]: New functions.
2916 (mac_draw_line, mac_erase_rectangle, mac_clear_window)
2917 (mac_fill_rectangle, mac_draw_rectangle, mac_draw_string_common)
2918 (mac_draw_image_string_cg) [USE_CG_DRAWING]: Add Quartz 2D drawing part.
2919 (mac_draw_bitmap, mac_invert_rectangle, mac_draw_string_common)
2920 (mac_copy_area, mac_scroll_area, x_scroll_bar_create)
2921 (x_scroll_bar_remove, XTset_vertical_scroll_bar, x_set_window_size)
2922 (XTread_socket) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
2923
2924 2006-03-12 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
2925
2926 * xfns.c (x_icon): Disable redundant call to `x_wm_set_window_state'.
2927
2928 2006-03-11 Jason Rumney <jasonr@gnu.org>
2929
2930 * w32fns.c (signal_user_input): New function.
2931 (post_character_message): Use it for keyboard input.
2932 (w32_msg_pump): Use it for mouse input.
2933
2934 2006-03-11 Luc Teirlinck <teirllm@auburn.edu>
2935
2936 * window.c: Rename preserve_y to window_scroll_pixel_based_preserve_y.
2937 (window_scroll_pixel_based, syms_of_window): Adapt to above change.
2938
2939 2006-03-11 Eli Zaretskii <eliz@gnu.org>
2940
2941 * w32fns.c (w32_wnd_proc): Ignore middle and extra button events
2942 if a menu is already active (the menubar_active flag is on).
2943
2944 2006-03-11 David Ponce <david@dponce.com>
2945
2946 * xfns.c (x_create_tip_frame): Preserve received parms by copying them.
2947
2948 2006-03-11 Eli Zaretskii <eliz@gnu.org>
2949
2950 * w32term.c: Add x_fully_uncatch_errors and x_catching_errors to
2951 the list of unused display error handling functions.
2952
2953 * eval.c (unwind_to_catch): Call x_fully_uncatch_errors only if
2954 HAVE_X_WINDOWS.
2955 (internal_condition_case, internal_condition_case_1)
2956 (internal_condition_case_2): Call x_catching_errors only if
2957 HAVE_X_WINDOWS.
2958
2959 * vm-limit.c [HAVE_GETRLIMIT]: Don't define unconditionally.
2960 Don't include sys/resource.h unless defined.
2961
2962 2006-03-11 Richard Stallman <rms@gnu.org>
2963
2964 * keymap.c (describe_map): Shorten string to indicate shadowed binding.
2965
2966 * vm-limit.c (get_lim_data, lim_data, data_space_start):
2967 Move from mem-limits.h.
2968 (enum warnlevel): New data type.
2969 (check_memory_limits): Rewrite the logic about warnings.
2970 Use standard `struct rlimit'. Check return values for nonsense.
2971 (memory_warnings): Always clear lim_data.
2972
2973 * mem-limits.h (get_lim_data, lim_data, data_space_start):
2974 Move to vm-limit.c.
2975
2976 * xterm.c (x_fully_uncatch_errors, x_catching_errors): New functions.
2977
2978 * eval.c (unwind_to_catch): Call x_fully_uncatch_errors.
2979 (internal_condition_case_1, internal_condition_case_2):
2980 Abort if within unclosed x_catch_errors.
2981
2982 2006-03-11 Romain Francoise <romain@orebokech.com>
2983
2984 * process.c (Vprocess_adaptive_read_buffering): Doc fix.
2985
2986 2006-03-11 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
2987
2988 * lisp.h: Remove duplicate prototypes. Make the prototype of
2989 getloadavg be conditioned on HAVE_GETLOADAVG being undefined.
2990
2991 2006-03-11 Eli Zaretskii <eliz@gnu.org>
2992
2993 * xterm.c (x_draw_hollow_cursor): Subtract 1 from the last
2994 argument of XDrawRectangle.
2995
2996 * xdisp.c (get_phys_cursor_geometry): Don't decrease height by 1.
2997
2998 * macterm.c (mac_draw_rectangle): Don't add 1 to width and height.
2999 (x_draw_glyph_string_foreground)
3000 (x_draw_composite_glyph_string_foreground)
3001 (x_draw_image_foreground): Don't subtract 1 from width and height
3002 arguments to mac_draw_rectangle.
3003 (x_draw_hollow_cursor): Add 1 to w->phys_cursor_width.
3004
3005 2006-03-10 Kim F. Storm <storm@cua.dk>
3006
3007 * alloc.c (USE_POSIX_MEMALIGN): Fix last change.
3008
3009 2006-03-09 Stefan Monnier <monnier@iro.umontreal.ca>
3010
3011 * alloc.c (USE_POSIX_MEMALIGN): New macro.
3012 (ABLOCKS_BASE, lisp_align_malloc, lisp_align_free): Use it.
3013
3014 2006-03-09 Kenichi Handa <handa@m17n.org>
3015
3016 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Fix decoding
3017 ASCII component of a composition.
3018
3019 2006-03-08 Luc Teirlinck <teirllm@auburn.edu>
3020
3021 * window.c: Declare preserve_y as a static global variable.
3022 (window_scroll_pixel_based): No longer declare preserve_y;
3023 it is global now.
3024 (syms_of_window): Set preserve_y to -1.
3025
3026 2006-03-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3027
3028 * image.c [MAC_OS] (XPutPixel): Set alpha channel bits if pixmap
3029 depth is 32.
3030 [MAC_OS] (XGetPixel): Strip off alpha channel bits if pixmap
3031 depth is 32.
3032
3033 2006-03-06 Chong Yidong <cyd@stupidchicken.com>
3034
3035 * xdisp.c (handle_invisible_prop): Don't update it->position with
3036 a buffer position if we're in a display string.
3037
3038 2006-03-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3039
3040 * macterm.h (MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH)
3041 (MAC_AQUA_SMALL_VERTICAL_SCROLL_BAR_WIDTH): New defines.
3042
3043 * macfns.c (x_default_scroll_bar_color_parameter)
3044 (x_set_scroll_bar_foreground, x_set_scroll_bar_background):
3045 Remove unnecessary prototypes.
3046 (x_set_scroll_bar_default_width):
3047 Use MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH.
3048 (mac_set_scroll_bar_width): New function.
3049 (mac_frame_parm_handlers): Set it as handler for scroll-bar-width.
3050
3051 * macterm.c (get_control_part_bounds): Fix type of return value.
3052 (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
3053 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]: Don't show
3054 scroll bar if it is not tall enough to display scroll bar thumb.
3055 [USE_CARBON_EVENTS] (mac_convert_event_ref)
3056 (mac_handle_command_event, mac_handle_window_event)
3057 (mac_handle_mouse_event): Check error code of GetEventParameter.
3058 (convert_fn_keycode) [MAC_OSX]: Likewise.
3059
3060 2006-03-05 Andreas Schwab <schwab@suse.de>
3061
3062 * xselect.c (x_catch_errors_unwind): Fix missing return value.
3063
3064 2006-03-02 Kim F. Storm <storm@cua.dk>
3065
3066 * frame.h (struct frame): New member n_tool_bar_rows.
3067
3068 * xdisp.c: Minimize the unpleasent visual impact of the requirement
3069 that non-toolkit tool-bars must occupy an integral number of screen
3070 lines, by distributing the rows evenly over the tool-bar screen area.
3071 (Vtool_bar_border): New variable.
3072 (syms_of_xdisp): DEFVAR_LISP it.
3073 (display_tool_bar_line): Add HEIGHT arg for desired row height.
3074 Make tool-bar row the desired height. Use default face for border
3075 below tool-bar.
3076 (tool_bar_lines_needed): Add N_ROWS arg. Use it to return number of
3077 actual tool-bar rows.
3078 (redisplay_tool_bar): Calculate f->n_tool_bar_rows initially.
3079 Adjust the height of the tool-bar rows to fill tool-bar screen area.
3080 (redisplay_tool_bar): Calculate f->n_tool_bar_rows when tool-bar area
3081 is resized.
3082
3083 2006-03-01 Luc Teirlinck <teirllm@auburn.edu>
3084
3085 * search.c (Fregexp_quote): Do not precede a literal `]' with two
3086 backslashes to try to make clear that it has a literal meaning; it
3087 does not do that. (It could close a character alternative
3088 containing a backslash.)
3089
3090 2006-02-28 Chong Yidong <cyd@stupidchicken.com>
3091
3092 * xselect.c (x_catch_errors_unwind): New function.
3093 (x_reply_selection_request): Put x_uncatch_errors in an unwind.
3094 (Fx_get_atom_name): Call x_uncatch_errors earlier.
3095
3096 * window.c (Qscroll_up, Qscroll_down): New syms.
3097 (window_scroll_pixel_based): Make preserve_y static to avoid
3098 getting point stuck when scrolling 1 line.
3099
3100 2006-02-26 Chong Yidong <cyd@stupidchicken.com>
3101
3102 * xterm.h, xterm.c (x_uncatch_errors): Delete unneccessary argument.
3103
3104 * xterm.c (x_load_font, x_term_init, XTmouse_position)
3105 (handle_one_xevent, x_connection_closed, x_list_fonts):
3106 No arg for x_uncatch_errors.
3107
3108 * xselect.c (x_own_selection, x_decline_selection_request)
3109 (x_reply_selection_request, x_get_foreign_selection)
3110 (Fx_get_atom_name, Fx_send_client_event): Likewise.
3111
3112 * xfns.c (x_real_positions, x_set_mouse_color, Fx_focus_frame):
3113 Likewise.
3114
3115 2006-02-26 Luc Teirlinck <teirllm@auburn.edu>
3116
3117 * lread.c: Declare Vload_file_rep_suffixes instead of
3118 deleted variable default_suffixes.
3119 (Fget_load_suffixes): New function.
3120 (Fload): Use Fget_load_suffixes and Vload_file_rep_suffixes.
3121 No longer use deleted variable default_suffixes. Update docstring.
3122 (syms_of_lread): defsubr Sget_load_suffixes.
3123 Expand `load-suffixes' docstring.
3124 Delete default_suffixes and DEFVAR_LISP the new variable
3125 `load-file-rep-suffixes'.
3126
3127 * w32.c (check_windows_init_file): Use Fget_load_suffixes instead
3128 of Vload_suffixes.
3129
3130 * lisp.h: EXFUN Fget_load_suffixes.
3131 Extern Vload_file_rep_suffixes.
3132
3133 * eval.c (specpdl_ptr): Remove volatile qualifier for consistency
3134 with lisp.h.
3135
3136 2006-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
3137
3138 * lisp.h (struct specbinding, specpdl_ptr): Remove the volatile
3139 qualifier which was trying to avoid the bug that was fixed by
3140 yesterday's changes to xterm.c.
3141
3142 2006-02-25 Chong Yidong <cyd@stupidchicken.com>
3143
3144 * xterm.h (x_catch_errors) Return value changed to void.
3145 (x_uncatch_errors): Delete unused count argument.
3146
3147 * xterm.c (x_catch_errors): Don't use record_unwind_protect, since
3148 it can be called in a signal handler.
3149 (x_catch_errors_unwind): Function deleted.
3150 (x_uncatch_errors): Deallocate last x_error_message_stack struct.
3151 (x_check_errors): Call x_uncatch_errors before signalling error.
3152
3153 (x_load_font, x_term_init, XTmouse_position, handle_one_xevent)
3154 (x_connection_closed, x_list_fonts): Use new versions of
3155 x_catch_errors and x_uncatch_errors.
3156
3157 * xselect.c (x_own_selection, x_decline_selection_request)
3158 (x_reply_selection_request, x_get_foreign_selection)
3159 (Fx_get_atom_name, Fx_send_client_event): Likewise.
3160
3161 * xfns.c (x_real_positions, x_set_mouse_color, Fx_focus_frame):
3162 Likewise.
3163
3164 * eval.c (record_unwind_protect): Add an assertion.
3165
3166 2006-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
3167
3168 * process.c (Fmake_network_process): Init the process's mark.
3169
3170 2006-02-25 Kim F. Storm <storm@cua.dk>
3171
3172 * buffer.c (modify_overlay): Force redisplay if we modify an
3173 overlay at the end of the buffer.
3174
3175 2006-02-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3176
3177 * gtkutil.c (xg_get_image_for_pixmap): If x_find_image_file returns
3178 nil the image file has been removed, in that case use the (cached)
3179 pixmap.
3180
3181 2006-02-24 Kenichi Handa <handa@m17n.org>
3182
3183 * fileio.c (Finsert_file_contents): When a text is replaced
3184 partially, be sure to set point before the inserted characters.
3185
3186 2006-02-23 Zhang Wei <id.brep@gmail.com> (tiny change)
3187
3188 * xfns.c (Fx_file_dialog): Return a decoded file name.
3189
3190 2006-02-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3191
3192 * dispnew.c (update_text_area): Avoid needless redraw of rightmost
3193 glyph whose face is extended to the text area end.
3194
3195 * macterm.c (x_set_toolkit_scroll_bar_thumb): Don't set control
3196 values if control is not visible or values are not changed.
3197
3198 2006-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
3199
3200 * window.c (Fwindow_list): Check `window' before doing XWINDOW.
3201 The default `window' should not be "on a different frame".
3202
3203 2006-02-22 Kim F. Storm <storm@cua.dk>
3204
3205 * indent.c (Fvertical_motion): Only try to move back if we can.
3206
3207 2006-02-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3208
3209 * macgui.h (struct _XGC) [!MAC_OSX || !USE_ATSUI]: New member
3210 n_clip_rects.
3211
3212 * macmenu.c (digest_single_submenu): Apply 2006-02-19 change for
3213 xmenu.c.
3214
3215 * macterm.c (GC_CLIP_REGION): Remove macro.
3216 (mac_begin_clip, mac_end_clip): Take arg GC instead of REGION.
3217 All uses changed. Don't do clipping if n_clip_rects is zero.
3218 (mac_set_clip_rectangles): Use xassert instead of abort.
3219 Set n_clip_rects. Don't make clip_region empty when number of
3220 clipping rectangles is zero.
3221 (mac_reset_clip_rectangles): Set n_clip_rects directly instead of
3222 calling mac_set_clip_rectangles.
3223 (x_set_toolkit_scroll_bar_thumb): Temporarily hide scroll bar to
3224 avoid multiple redraws.
3225
3226 2006-02-22 Kim F. Storm <storm@cua.dk>
3227
3228 * fringe.c (draw_fringe_bitmap): Fix overlay-arrow display.
3229
3230 2006-02-21 Kim F. Storm <storm@cua.dk>
3231
3232 * fringe.c (syms_of_fringe) <fringe-bitmaps>: Doc fix.
3233
3234 2006-02-21 Zhang Wei <brep@newsmth.org>
3235
3236 * xfns.c (Fx_file_dialog, Motif and GTK): DECODE_FILE before
3237 returning it.
3238
3239 2006-02-21 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
3240
3241 * fringe.c (horizontal_bar_bits): Rename from `horisontal_bar_bits'.
3242 (standard_bitmaps): Use it.
3243
3244 2006-02-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3245
3246 * macterm.c (mac_draw_string_common): Remove arg MODE. New arg
3247 BG_WIDTH. All uses changed. Draw background if BG_WIDTH is not zero.
3248 (mac_draw_image_string, mac_draw_image_string_16): New arg BG_WIDTH.
3249 [USE_CG_TEXT_DRAWING] (mac_draw_image_string_cg): Rename from
3250 mac_draw_string_cg. New arg BG_WIDTH. All uses changed.
3251 Draw background if BG_WIDTH is not zero. Use float constants as
3252 divisors instead of double. Use alloca instead of xmalloc/xfree.
3253 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
3254 [!MAC_OS8 || USE_ATSUI]: Background may be drawn using
3255 mac_draw_image_string* functions.
3256 (XLoadQueryFont) [MAC_OS8 && USE_ATSUI]: Don't adjust heights of
3257 some fonts when srcCopy text transfer mode might be used.
3258 (mac_begin_clip, mac_end_clip): Check if region is empty.
3259 (mac_set_clip_rectangles): When resetting clip region, make it
3260 empty instead of disposing of it.
3261
3262 2006-02-20 Kim F. Storm <storm@cua.dk>
3263
3264 * Makefile.in: Add fringe.elc to WINDOW_SUPPORT.
3265
3266 * buffer.h (struct buffer): New members fringe_indicator_alist and
3267 fringe_cursor_alist.
3268
3269 * buffer.c (init_buffer_once): Set dummy default values for
3270 fringe-indicator-alist and fringe-cursor-alist. The proper
3271 default values are set by pre-loading fringe.el.
3272 (syms_of_buffer): defvar_per_buffer new fringe-indicator-alist and
3273 fringe-cursor-alist buffer-local variables and defvar_lisp_nopro
3274 corresponding default- variables.
3275
3276 * fringe.c (enum fringe_bitmap_type): Remove. Change all uses
3277 to use `int'.
3278 (NO_FRINGE_BITMAP, UNDEF_FRINGE_BITMAP, MAX_STANDARD_FRINGE_BITMAPS):
3279 Define explicitly.
3280 (Qtruncation, Qcontinuation, Qempty_line, Qtop_bottom)
3281 (Qhollow_small): New variables.
3282 (syms_of_fringe): Intern and staticpro them.
3283 (question_mark_bits): Rename from unknown_bits.
3284 (left_curly_arrow_bits): Rename from continuation_bits.
3285 (right_curly_arrow_bits): Rename from continued_bits.
3286 (left_triangle_bits): Rename from ov_bits.
3287 (right_triangle_bits): Add.
3288 (filled_rectangle_bits): Rename from filled_box_cursor_bits.
3289 (hollow_rectangle_bits): Rename from hollow_box_cursor_bits.
3290 (filled_square_bits): Add.
3291 (vertical_bar_bits): Rename from bar_cursor_bits.
3292 (horizontal_bar_bits): Rename from hbar_cursor_bits.
3293 (empty_line_bits): Rename from zv_bits.
3294 (standard_bitmaps): Update to use new names.
3295 (draw_fringe_bitmap_1): Make static.
3296 (get_logical_cursor_bitmap, get_logical_fringe_bitmap): New functions
3297 to map from logical cursors and indicators to physical bitmaps.
3298 (draw_fringe_bitmap): Resolve fringe cursor and overlay-arrow
3299 bitmaps using symbol names instead of bitmap numbers.
3300 (update_window_fringes): Use logical indicator symbol names
3301 instead of bitmap numbers for logical. Add bitmap cache.
3302 (LEFT_FRINGE, RIGHT_FRINGE): New helper macros.
3303
3304 2006-02-20 Chong Yidong <cyd@stupidchicken.com>
3305
3306 * regex.c: Revert 2006-02-19 change.
3307 (xmalloc, xrealloc): Define these when not linked to Emacs.
3308 Redefine malloc -> xmalloc, realloc -> xrealloc as in Emacs case.
3309
3310 2006-02-19 Luc Teirlinck <teirllm@auburn.edu>
3311
3312 * regex.c (extend_range_table_work_area): Fix typo.
3313
3314 2006-02-19 Richard M. Stallman <rms@gnu.org>
3315
3316 * xterm.c (x_catch_errors): Use xmalloc.
3317
3318 * regex.c (extend_range_table_work_area): Call xmalloc and xrealloc.
3319 (regex_compile): Likewise.
3320 (regcomp): Use xmalloc.
3321
3322 * gtkutil.c (malloc_widget_value): Use xmalloc.
3323
3324 * vm-limit.c [HAVE_GETRLIMIT]: Include sys/resource.h.
3325 (check_memory_limits) [HAVE_GETRLIMIT]: Use getrlimit.
3326
3327 * xmenu.c (digest_single_submenu): When pane_string is empty,
3328 do initialize save_wv.
3329
3330 2006-02-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3331
3332 * xdisp.c (update_menu_bar) [MAC_OS]: Don't set
3333 w->update_mode_line if arg F is not the selected frame.
3334
3335 * macmenu.c (popup_activated_flag, submenu_id)
3336 (next_menubar_widget_id): Remove variables.
3337 (initialize_frame_menubar): Remove function.
3338 (pop_down_menu, mac_menu_show): Simplify save value.
3339 (dispose_menus): New function.
3340 (pop_down_menu, fill_menubar): Use it.
3341 (fill_submenu): Remove function. All uses changed to fill_menu.
3342 (add_menu_item): Remove args SUBMENU and FORCE_DISABLE. New arg
3343 POS. Don't call SetMenuItemHierarchicalID here.
3344 (fill_menu): Add arg SUBMENU_ID. Return submenu_id that is to be
3345 used next. Call SetMenuItemHierarchicalID here.
3346 (fill_menubar): Add arg DEEP_P. All uses changed. Clean up menu
3347 objects if needed. Reuse existing menu bar titles if possible.
3348 (set_frame_menubar): Don't clean up menu objects here.
3349
3350 2006-02-18 Chong Yidong <cyd@stupidchicken.com>
3351
3352 * window.c (window_min_size_1): Ensure room for the scroll bar and
3353 fringes.
3354
3355 2006-02-17 Romain Francoise <romain@orebokech.com>
3356
3357 * puresize.h (BASE_PURESIZE): Increment to 1200000.
3358
3359 2006-02-17 Stefan Monnier <monnier@iro.umontreal.ca>
3360
3361 * alloc.c (Fmake_symbol): Comment-out left-over assert from before the
3362 addition of the BLOCK_INPUTs.
3363
3364 2006-02-17 Juanma Barranquero <lekktu@gmail.com>
3365
3366 * window.c (Fset_window_scroll_bars): Doc fix.
3367
3368 2006-02-17 Kenichi Handa <handa@m17n.org>
3369
3370 * xdisp.c (display_mode_element): Call display_string with correct
3371 PREC arg (which must be a number of characters, not column width).
3372
3373 2006-02-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3374
3375 * frame.c (x_get_arg): Clear out PARAM in ALIST also on Mac.
3376
3377 * macfns.c (x_set_menu_bar_lines): Menu bar is always shown on Mac.
3378
3379 * macmenu.c (set_frame_menubar): Don't call DrawMenuBar.
3380
3381 2006-02-14 Richard M. Stallman <rms@gnu.org>
3382
3383 * frame.c (x_get_arg): Clear out all occurrences of PARAM in ALIST.
3384
3385 * m/ibms390x.h: New file.
3386
3387 2006-02-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3388
3389 * gtkutil.c (xg_tool_bar_detach_callback): Set show-arrow to the
3390 value of x-gtk-whole-detached-tool-bar.
3391 (xg_tool_bar_attach_callback): Set show-arrow to TRUE.
3392
3393 * xfns.c (syms_of_xfns): New variable: x-gtk-whole-detached-tool-bar.
3394
3395 2006-02-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3396
3397 * xterm.c (x_x_to_emacs_modifiers): Make non-static.
3398
3399 * xterm.h: Declare x_x_to_emacs_modifiers.
3400
3401 * gtkutil.c (xg_tool_bar_button_cb): New function.
3402 (xg_tool_bar_callback): Call x_x_to_emacs_modifiers to
3403 store modifiers in event.
3404 (update_frame_tool_bar): Connect button-release-event to
3405 xg_tool_bar_button_cb.
3406
3407 2006-02-13 Richard M. Stallman <rms@gnu.org>
3408
3409 * .gdbinit (xwindow): Update the code to show the window box.
3410
3411 2006-02-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3412
3413 * xterm.c (note_mouse_movement): Check for NULL FRAME_X_OUTPUT (frame).
3414
3415 2006-02-12 Richard M. Stallman <rms@gnu.org>
3416
3417 * cmds.c (internal_self_insert): Handle weird auto-fill-function.
3418
3419 2006-02-11 Eli Zaretskii <eliz@gnu.org>
3420
3421 * keyboard.c (Venable_disabled_menus_and_buttons): New variable.
3422 (syms_of_keyboard): DEVFAR_LISP and initialize it.
3423 (parse_tool_bar_item, parse_menu_item): If that variable is
3424 non-nil, don't disable menu items and tool-bar buttons.
3425
3426 2006-02-11 Juanma Barranquero <lekktu@gmail.com>
3427
3428 * doc.c (Fsubstitute_command_keys): Doc fix.
3429
3430 2006-02-10 Thien-Thi Nguyen <ttn@gnu.org>
3431
3432 * data.c (Findirect_function): Rewrite docstring.
3433 Fix omission bug: Declare new arg NOERROR.
3434
3435 2006-02-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3436
3437 * macfns.c (x_set_mouse_color): Don't call rif->define_frame_cursor
3438 if window_desc is not set yet.
3439 (Fx_create_frame): Remove variable x_frame_name. Apply 2005-12-07
3440 and 2006-01-26 changes for xfns.c. Call x_iconify_frame if frame
3441 parameter `visibility' is `icon'.
3442 (Fx_create_frame, x_create_tip_frame): Use "fontset-standard"
3443 instead of "fontset-mac".
3444 (Fx_focus_frame): New defun.
3445 (syms_of_macfns): Defsubr it.
3446
3447 * macterm.c (mac_define_frame_cursor): Don't change pointer shape
3448 for unfocused frame.
3449 (x_raise_frame): Call BringToFront instead of SelectWindow.
3450 (x_lower_frame): Use NULL instead of nil.
3451 (x_make_frame_visible): Don't call SelectWindow.
3452 (XTread_socket): Increment handling_signal at the start, decrement
3453 it at the end.
3454 [USE_CG_TEXT_DRAWING] (init_cg_text_anti_aliasing_threshold): Use
3455 CFPreferencesGetAppIntegerValue instead of Fmac_get_preference.
3456
3457 2006-02-10 Kim F. Storm <storm@cua.dk>
3458
3459 * data.c (Findirect_function): Add NOERROR arg. All callers changed
3460 to pass Qnil for NOERROR.
3461
3462 * keymap.c (current_minor_maps_error): Remove.
3463 (current_minor_maps): Pass Qt for NOERROR to Findirect_function
3464 instead of using internal_condition_case_1+current_minor_maps_error.
3465
3466 2006-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3467
3468 * xterm.c (handle_one_xevent): Must note mouse movement even for nil
3469 frames for GTK, in that case it is the tool bar. This is so that
3470 highlighted text get reset properly.
3471
3472 2006-02-09 Juanma Barranquero <lekktu@gmail.com>
3473
3474 * alloc.c (Fmake_bool_vector, Fpurecopy): Doc fixes.
3475
3476 2006-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3477
3478 * window.c (adjust_window_trailing_edge): Check that shrinking
3479 does not set a window to size zero or less.
3480
3481 2006-02-08 Miles Bader <miles@gnu.org>
3482
3483 * editfns.c (Fconstrain_to_field): Use Fget_char_property instead
3484 of Fget_text_property (other field functions work with overlays as
3485 well as text-properties).
3486
3487 2006-02-07 Kenichi Handa <handa@m17n.org>
3488
3489 * dispextern.h (unibyte_display_via_language_environment): Extern it.
3490
3491 * xterm.h (unibyte_display_via_language_environment):
3492 * w32term.h (unibyte_display_via_language_environment):
3493 * macterm.h (unibyte_display_via_language_environment): Delete extern.
3494
3495 2006-02-07 Kenichi Handa <handa@m17n.org>
3496
3497 * term.c (append_glyph): Refer to it->char_to_display instead of it->c.
3498 (produce_glyphs): Set the character to print in
3499 it->char_to_display. Handle unibyte-display-via-language-environment.
3500 (produce_stretch_glyph): Set character to print in it->char_to_display.
3501
3502 2006-02-06 Kenichi Handa <handa@m17n.org>
3503
3504 * lread.c (openp): Initialize encoded_fn before GCPRO it.
3505
3506 2006-02-05 Ken Raeburn <raeburn@raeburn.org>
3507
3508 * editfns.c (Fconstrain_to_field): Fix int/Lisp_Object mixup.
3509
3510 * lisp.h (XPNTR) [!NO_UNION_TYPE && !HAVE_SHM && !DATA_SEG_BITS]:
3511 Cast bitfield value to EMACS_INT, to suppress gcc warning.
3512
3513 * xrdb.c (malloc, realloc, free) [emacs]: Undefine macros before
3514 defining.
3515
3516 2006-02-03 Kim F. Storm <storm@cua.dk>
3517
3518 * xdisp.c: Cache last merged escape glyph face.
3519 (last_escape_glyph_frame, last_escape_glyph_face_id)
3520 (last_escape_glyph_merged_face_id): New variables.
3521 (get_next_display_element): Use/update them.
3522 (redisplay_internal): Reset them before redisplay.
3523
3524 * xdisp.c (set_iterator_to_next): Optimize 2004-12-13 fix.
3525 Only recheck faces after displaying ellipsis.
3526
3527 2006-02-02 Kenichi Handa <handa@m17n.org>
3528
3529 * coding.c (decode_composition_emacs_mule): Fix handling of
3530 incorrect format data.
3531
3532 2006-01-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3533
3534 * gtkutil.c (update_frame_tool_bar): Use new tool bar functions
3535 (gtk_toolbar_insert) so we can have tool bars of different sizes.
3536
3537 2006-01-30 Luc Teirlinck <teirllm@auburn.edu>
3538
3539 * data.c (Flistp): Doc fix.
3540
3541 2006-01-30 Juanma Barranquero <lekktu@gmail.com>
3542
3543 * window.c (Fother_window, Fwindow_vscroll, Fset_window_vscroll):
3544 Fix typos in docstrings.
3545
3546 2006-01-28 Luc Teirlinck <teirllm@auburn.edu>
3547
3548 * data.c (Fcar, Fcdr): Add links to Elisp manual to the docstrings.
3549
3550 2006-01-27 Chong Yidong <cyd@stupidchicken.com>
3551
3552 * alloc.c (make_interval, allocate_string)
3553 (allocate_string_data, make_float, Fcons, allocate_vectorlike)
3554 (Fmake_symbol, allocate_misc): Use BLOCK_INPUT when accessing
3555 global variables.
3556
3557 2006-01-27 Eli Zaretskii <eliz@gnu.org>
3558
3559 * dired.c (DIRENTRY_NONEMPTY) [__CYGWIN__]: Don't use d_ino; use
3560 the MSDOS definition.
3561
3562 2006-01-26 Richard M. Stallman <rms@gnu.org>
3563
3564 * alloc.c (check_pure_size): Make overflow message an "error message".
3565
3566 * keymap.c (Fmap_keymap): Doc fix.
3567
3568 * xfns.c (Fx_create_frame): Put all specified parms into f->param_alist
3569 unless they were cleared out.
3570
3571 * frame.c (x_get_arg): "Clear out" the parm in ALIST if found there.
3572
3573 2006-01-26 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
3574
3575 * editfns.c (Fconstrain_to_field): Fix behaviour on field boundaries.
3576 (find_field): Set before_field to after_field when pos is at BEGV.
3577 (Fline_beginning_position, Fline_end_position):
3578 Clarify confusing doc string.
3579
3580 * cmds.c (Fbeginning_of_line, Fend_of_line): Clarify confusing doc
3581 string.
3582
3583 2006-01-26 Kenichi Handa <handa@m17n.org>
3584
3585 * callproc.c (Fcall_process): GCPRO error_file. Encode infile,
3586 current_dir, and error_file. On reporting an error, decode them
3587 back.
3588
3589 2006-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
3590
3591 * regex.c (IMMEDIATE_QUIT_CHECK): Use it with SYNC_INPUT as well.
3592 (re_match_2_internal) <on_failure_jump, on_failure_jump_smart>:
3593 Don't check for quit, since any loop will go through fail or jump.
3594
3595 2006-01-24 Chong Yidong <cyd@stupidchicken.com>
3596
3597 * alloc.c (allocate_string_data): Update next_free immediately, to
3598 reduce risk of memory clobberage.
3599
3600 2006-01-24 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
3601
3602 * xdisp.c (handle_invisible_prop): Set it->position to fix cursor
3603 display when point moves across an ellipsis. If there are
3604 adjacent invisible texts, don't lose the second one's ellipsis.
3605 (x_produce_glyphs): Doc fix.
3606
3607 2006-01-23 Stefan Monnier <monnier@iro.umontreal.ca>
3608
3609 * xterm.c (x_catch_errors_unwind): Yet another int/Lisp_Object mixup.
3610
3611 2006-01-23 Kim F. Storm <storm@cua.dk>
3612
3613 * xdisp.c (handle_single_display_spec): Fix handling of space
3614 property on char from string: set *position rather than
3615 it->current.pos.
3616 (produce_stretch_glyph): Reduce width of stretch glyphs so they
3617 don't get wider than the window (unless truncate-lines is on).
3618
3619 2006-01-22 Stefan Monnier <monnier@iro.umontreal.ca>
3620
3621 * xterm.c: Avoid allocating Lisp data from a signal handler.
3622 (x_error_message): New var to replace x_error_message_string.
3623 (x_error_catcher, x_catch_errors, x_catch_errors_unwind)
3624 (x_check_errors, x_had_errors_p, x_clear_errors, x_error_handler)
3625 (syms_of_xterm): Use it instead of x_error_message_string.
3626
3627 * alloc.c (lisp_align_free): Add an assertion.
3628 (make_interval, allocate_string, make_float, Fcons, Fmake_symbol)
3629 (allocate_misc): If ENABLE_CHECKING is on, check we're not called from
3630 a signal handler.
3631
3632 2006-01-21 Luc Teirlinck <teirllm@auburn.edu>
3633
3634 * dired.c (syms_of_dired) <completion-ignored-extensions>: Doc fix.
3635
3636 2006-01-21 Romain Francoise <romain@orebokech.com>
3637
3638 * xdisp.c (get_window_cursor_type): Fix last change.
3639 Update copyright year.
3640
3641 2006-01-20 Eli Zaretskii <eliz@gnu.org>
3642
3643 * lread.c (Fload): Don't leak the file descriptor returned by
3644 openp if we are going to signal an error.
3645
3646 * w32.c (sys_close): If FD is outside [0..MAXDESC) limits, pass it
3647 directly to _close.
3648 (sys_dup): Protect against new_fd larger than fd_info[] can handle.
3649 (sys_read): If FD is outside [0..MAXDESC) limits, pass it directly
3650 to _read.
3651 (sys_write): If FD is outside [0..MAXDESC) limits, pass it
3652 directly to _write.
3653
3654 * .gdbinit: Don't dereference Vsystem_type's Lisp_Symbol pointer
3655 if it is NULL.
3656
3657 2006-01-20 Kenichi Handa <handa@m17n.org>
3658
3659 * puresize.h (BASE_PURESIZE): Increment to 1190000.
3660
3661 2006-01-19 Chong Yidong <cyd@stupidchicken.com>
3662
3663 * xdisp.c (get_window_cursor_type): Use cursor type specified by
3664 the selected buffer for the echo area too.
3665
3666 2006-01-19 Richard M. Stallman <rms@gnu.org>
3667
3668 * keymap.c (Fmap_keymap): Doc fix.
3669
3670 * s/irix6-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): New definitions.
3671
3672 * keyboard.c (echo_char): Don't omit the space between first two
3673 echoed chars.
3674
3675 * minibuf.c (read_minibuf): Fix previous change.
3676
3677 2006-01-19 Kenichi Handa <handa@m17n.org>
3678
3679 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
3680
3681 2006-01-17 Richard M. Stallman <rms@gnu.org>
3682
3683 * frame.c (x_frame_get_and_record_arg): Don't record Qunbound
3684 value in f->param_alist.
3685
3686 2006-01-15 Andreas Schwab <schwab@suse.de>
3687
3688 * search.c (Freplace_match): Use UPPERCASEP instead of !NOCASEP.
3689
3690 2006-01-13 Richard M. Stallman <rms@gnu.org>
3691
3692 * Makefile.in: Define new macro WINDOW_SUPPORT.
3693 (lisp): Use it.
3694 (SOME_MACHINE_LISP): Add conditionally loaded files.
3695
3696 2006-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3697
3698 * macterm.c [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
3699 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1020]: Specify kATSLineUseQDRendering.
3700 (XLoadQueryFont) [USE_ATSUI]: Display diacritical marks in
3701 decomposed form.
3702
3703 * process.c [HAVE_INTTYPES_H]: Include inttypes.h.
3704 (ifflag_table): Fix typo (IFF_OACTIV -> IFF_OACTIVE).
3705 (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ_IFR_NETMASK
3706 macro. Also try member ifr_addr when getting netmask.
3707
3708 2006-01-10 Stefan Monnier <monnier@iro.umontreal.ca>
3709
3710 * fileio.c (Fexpand_file_name): Remove redundant tests.
3711 Fix elimination of // so that it doesn't prevent elimination of an
3712 immediately following /. or /..
3713
3714 2006-01-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3715
3716 * gtkutil.c (xg_toggle_notify_cb): New function.
3717 (xg_toggle_visibility_cb): Move setting of x_gtk_show_hidden_files to
3718 xg_toggle_notify_cb.
3719 (xg_get_file_with_chooser): Add callback to xg_toggle_notify_cb when
3720 parameter value changes so the toggle button gets updated.
3721
3722 2006-01-06 Nick Roberts <nickrob@snap.net.nz>
3723
3724 * .gdbinit: Fix typo.
3725
3726 2006-01-05 Eli Zaretskii <eliz@gnu.org>
3727
3728 * .gdbinit: Fix last change.
3729
3730 2006-01-05 Kim F. Storm <storm@cua.dk>
3731
3732 * process.c (Fmake_network_process): Use AF_INET instead of
3733 AF_UNSPEC when AF_INET6 is not defined.
3734
3735 2006-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3736
3737 * mac.c (mac_coerce_file_name_ptr, mac_coerce_file_name_desc):
3738 Don't check that the other type is known file-related one.
3739
3740 * macfns.c (Fx_server_version): Use gestaltSystemVersionMajor,
3741 gestaltSystemVersionMinor, and gestaltSystemVersionBugFix on Mac
3742 OS X 10.4 and later.
3743
3744 2006-01-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3745
3746 * gtkutil.c (xg_get_image_for_pixmap): If the image is from a file,
3747 let GTK do all image processing. Importing Emacs own pixmaps to GTK
3748 looks bad for inactive tool bar items with some Gnome themes.
3749
3750 2006-01-04 Eli Zaretskii <eliz@gnu.org>
3751
3752 * .gdbinit: Avoid a warning message when x_error_quitter is not
3753 compiled in.
3754
3755 * process.c [WINDOWSNT]: Undef AF_INET6 to disable IPv6 support
3756 for w32.
3757
3758 2006-01-04 Kim F. Storm <storm@cua.dk>
3759
3760 * process.c: Add IPv6 support.
3761 (Qipv4, Qipv6): New vars.
3762 (syms_of_process): Intern and staticpro them.
3763 (Fformat_network_address): Handle 9 or 8 element vector as IPv6 address
3764 with or without port number. Handle 4 element vector as IPv4 address
3765 without port number.
3766 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
3767 (conv_lisp_to_sockaddr): Handle IPv6 addresses.
3768 (Fmake_network_process): Use :family 'ipv4 and 'ipv6 to explicitly
3769 request that address family only. :family nil or omitted means to
3770 determine address family from the specified :host and :service.
3771 (ifflag_table): Add missing OpenBSD IFF_ flags.
3772 (server_accept_connection): Handle IPv6 addresses.
3773 (init_process): Add (:family ipv4) and (:family ipv6) sub-features.
3774
3775 * .gdbinit: Undo last change. Instead, look at Vsystem_type to
3776 determine which breakpoints to set.
3777
3778 2006-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
3779
3780 * keymap.c (describe_map_compare): Yet another int/Lisp_Object mixup.
3781
3782 * window.h (Fwindow_minibuffer_p): Declare (for use in minibuf.c).
3783
3784 2006-01-03 Romain Francoise <romain@orebokech.com>
3785
3786 * emacs.c (main): Update copyright year.
3787
3788 2006-01-03 Ken Raeburn <raeburn@gnu.org>
3789
3790 * callproc.c (delete_temp_file): Bind file-name-handler-alist to
3791 nil for the call to internal_delete_file.
3792
3793 2006-01-01 Ken Raeburn <raeburn@gnu.org>
3794
3795 * callproc.c (Fcall_process_region): Bind file-name-handler-alist
3796 to nil for the call to Fwrite_region.
3797
3798 2005-12-31 Richard M. Stallman <rms@gnu.org>
3799
3800 * minibuf.c (read_minibuf): Clear out all other minibuffer windows.
3801
3802 2005-12-31 Eli Zaretskii <eliz@gnu.org>
3803
3804 * emacs.c (gdb_pvec_type): A dummy variable for GDB's sake.
3805
3806 2005-12-30 Luc Teirlinck <teirllm@auburn.edu>
3807
3808 * textprop.c (set_text_properties): Reword description of return value.
3809 Return Qnil if caller wants to remove all text properties from a
3810 string and the string already has no intervals.
3811
3812 2005-12-30 Stefan Monnier <monnier@iro.umontreal.ca>
3813
3814 * term.c (visible_cursor): New boolean var.
3815 (set_terminal_modes, tty_show_cursor): Use "vs" or "ve" depending on
3816 visible_cursor.
3817 (syms_of_term): Export the new var as "visible-cursor".
3818
3819 2005-12-30 Eli Zaretskii <eliz@gnu.org>
3820
3821 * .gdbinit: Tell users not to worry about GDB warnings that some
3822 functions do not exist in the binary.
3823
3824 2005-12-30 Andreas Schwab <schwab@suse.de>
3825
3826 * process.c (Fnetwork_interface_info): Correctly terminate the
3827 loop over ifflag_table.
3828
3829 2005-12-29 Richard M. Stallman <rms@gnu.org>
3830
3831 * lread.c (readevalloop): Test for reading a whole buffer
3832 before actually reading anything. Handle all cases, including
3833 START = END = nil and an already-narrowed buffer.
3834 Convert END to a marker if it is a number.
3835
3836 * keymap.c (describe_map): Put sparse map elements into an array,
3837 sort them, then output a sequence of identical bindings on one line.
3838 (struct describe_map_elt): New data type.
3839 (describe_map_compare): New function.
3840
3841 2005-12-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3842
3843 * gtkutil.c (xg_get_file_with_chooser): Change message shown
3844 in file chooser.
3845
3846 2005-12-27 Richard M. Stallman <rms@gnu.org>
3847
3848 * lread.c (readevalloop): Set PT and ZV in the proper buffer,
3849 not the current one.
3850
3851 * minibuf.c (Fminibuffer_message): Doc fix.
3852 (read_minibuf): Set current_buffer->enable_multibyte_characters sooner.
3853
3854 * eval.c (do_autoload): Ignore elements of Vautoload_queue
3855 where car is not symbol.
3856
3857 2005-12-27 Kenichi Handa <handa@m17n.org>
3858
3859 * charset.c (lisp_string_width): Check multibyteness of STRING.
3860
3861 2005-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3862
3863 * xfns.c: x_show_hidden_files, new variable.
3864 (syms_of_xfns): Defvar it.
3865
3866 * gtkutil.c (xg_toggle_visibility_cb): New function.
3867 (xg_get_file_with_chooser): Add toggle hidden files and a message
3868 to the new file chooser dialog. Show hidden files if
3869 x_show_hidden_files is non-zero.
3870
3871 2005-12-26 Richard M. Stallman <rms@gnu.org>
3872
3873 * keyboard.h: Undo previous change.
3874
3875 * Makefile.in (undo.o): Undo previous change.
3876
3877 * undo.c: Undo previous change.
3878
3879 2005-12-26 Luc Teirlinck <teirllm@auburn.edu>
3880
3881 * keyboard.h: extern last_point_position_window.
3882
3883 * undo.c: include keyboard.h.
3884
3885 * Makefile.in (undo.o): Depend on keyboard.h.
3886
3887 2005-12-26 Richard M. Stallman <rms@gnu.org>
3888
3889 * commands.h (last_point_position_window): Declare.
3890
3891 * undo.c: Depend on window.h.
3892 (record_point): Save old point from the correct window.
3893
3894 * keyboard.c (last_point_position_window): New variable.
3895 (command_loop_1): Set last_point_position_window.
3896 (syms_of_keyboard): Init it.
3897
3898 * Makefile.in (undo.o): Depend on window.h.
3899
3900 2005-12-25 Richard M. Stallman <rms@gnu.org>
3901
3902 * eval.c (un_autoload): Expect (0 . OFEATURES) in Vautoload_queue
3903 to undo a `provide'.
3904
3905 * fns.c (Fprovide): Store (0 . OFEATURES) in Vautoload_queue.
3906
3907 2005-12-25 Giorgos Keramidas <keramida@ceid.upatras.gr>
3908
3909 * m/amdx86-64.h [__FreeBSD__] (START_FILES, LIB_STANDARD):
3910 define for FreeBSD on this platform.
3911
3912 2005-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3913
3914 * macterm.h (TYPE_FILE_NAME): New define.
3915 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): Remove externs.
3916
3917 * mac.c (posix_pathname_to_fsspec, fsspec_to_posix_pathname):
3918 Add prototypes. Make static.
3919 (mac_aedesc_to_lisp): Initialize err to noErr.
3920 (mac_coerce_file_name_ptr, mac_coerce_file_name_desc)
3921 (init_coercion_handler): New functions.
3922 (Fmac_coerce_ae_data): Use coercion of Apple event data for
3923 translation from/to file names.
3924
3925 * macterm.c: Don't include sys/param.h.
3926 (init_coercion_handler): Add extern.
3927 [MAC_OS8] (main): Call init_coercion_handler.
3928 (mac_initialize) [MAC_OSX]: Likewise.
3929 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Use coercion of
3930 Apple event data for translation from/to file names.
3931
3932 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
3933
3934 * image.c [MAC_OS] (find_image_fsspec): Likewise.
3935
3936 2005-12-23 Martin Rudalics <rudalics@gmx.at>
3937
3938 * insdel.c (insert, insert_and_inherit, insert_before_markers)
3939 (insert_before_markers_and_inherit): Make sure FROM is correct
3940 when `after-change-functions' are called.
3941
3942 2005-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3943
3944 * xfns.c (Fx_uses_old_gtk_dialog): New function.
3945
3946 * gtkutil.c (xg_uses_old_file_dialog): New function.
3947 (xg_get_file_name): Use xg_uses_old_file_dialog.
3948
3949 * gtkutil.h: Declare xg_uses_old_file_dialog.
3950
3951 2005-12-22 Richard M. Stallman <rms@gnu.org>
3952
3953 * xmenu.c (xmenu_show): Call inhibit_garbage_collection.
3954
3955 2005-12-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3956
3957 * mac.c (Fmac_coerce_ae_data) [MAC_OSX]: Fix memory leak.
3958
3959 * macgui.h (XCharStruct): Remove member `valid_p'.
3960 (STORE_XCHARSTRUCT): Don't set member `valid_p'.
3961 (XCharStructRow): New typedef.
3962 (XCHARSTRUCTROW_CHAR_VALID_P, XCHARSTRUCTROW_SET_CHAR_VALID):
3963 New macros.
3964 (struct MacFontStruct): Add member `bounds'. Remove member
3965 `per_char'. All uses for QuichDraw Text fonts are changed to
3966 `bounds.per_char'. ATSUI font bounds are represented as an array
3967 `bounds.rows' of XCharStructRow's, each of which consists of a
3968 bitmap of valid entries and an array of char bounds.
3969
3970 * macterm.c (mac_per_char_metric): Add prototype.
3971 (x_per_char_metric) [USE_CG_TEXT_DRAWING]: Remove prototype.
3972 (mac_query_char_extents): New function.
3973 (x_per_char_metric): Use it.
3974 (XLoadQueryFont): Likewise. Consolidate min/max_bounds calculations.
3975 [USE_CG_TEXT_DRAWING] (mac_draw_string_cg):
3976 Use mac_per_char_metric instead of x_per_char_metric.
3977 (mac_text_extents_16): New function.
3978 (mac_compute_glyph_string_overhangs): Use it.
3979 (mac_unload_font): Free member `bounds' in struct MacFontStruct.
3980
3981 2005-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
3982
3983 * minibuf.c (Fdisplay_completion_list): Use XCAR/XCDR.
3984 (Fminibuffer_completion_help): Remove duplicates before display.
3985
3986 2005-12-21 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
3987
3988 * print.c (print_preprocess): Don't lose print_depth levels while
3989 iterating.
3990
3991 2005-12-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3992
3993 * macmenu.c (Qmac_apple_event): Add extern.
3994 (set_frame_menubar, mac_menu_show keymp_panes)
3995 (single_keymap_panes, list_of_panes, list_of_item)
3996 (single_menu_item): Add argument types to prototypes.
3997 (mac_dialog_show) [HAVE_DIALOGS]: Likewise.
3998 (struct skp): New struct (from xmenu.c).
3999 (single_keymap_panes, single_menu_item, list_of_panes)
4000 (list_of_item): Sync with xmenu.c.
4001 (Fx_popup_menu, Fx_popup_dialog): Likewise. Don't get window from
4002 POSITION if it is mac-apple-event event.
4003 (menubar_selection_callback): Don't use menu_command_in_progress.
4004 (set_frame_menubar): First parse all submenus, then make
4005 widget_value trees from them. Don't allocate any widget_value
4006 objects until we are done with the parsing.
4007 (parse_single_submenu, digest_single_submenu): New functions.
4008 (single_submenu): Function deleted, replaced by those two.
4009 (install_menu_quit_handler) [HAVE_CANCELMENUTRACKING]: Don't
4010 create or dispose of EventHandlerUPP. Install hander to all submenus.
4011 (mac_menu_show) [!HAVE_MULTILINGUAL_MENU]: Use ENCODE_MENU_STRING
4012 instead of ENCODE_SYSTEM.
4013 (free_frame_menubar, fill_submenu, fill_menu): Don't use NULL for
4014 integer values.
4015 [HAVE_DIALOGS] (mac_dialog_show): Sync with xdialog_show (in xmenu.c).
4016 (add_menu_item) [TARGET_API_MAC_CARBON]: Use CFString functions to
4017 format menu item string. Don't use NULL for integer value.
4018
4019 * macterm.h (struct mac_output): Remove unused member
4020 menu_command_in_progress.
4021
4022 2005-12-20 Juri Linkov <juri@jurta.org>
4023
4024 * xmenu.c (Fx_popup_menu): Set Vmenu_updating_frame to f if
4025 position is non-nil, else set it to nil.
4026
4027 * macmenu.c (Fx_popup_menu): Add `else' to set
4028 Vmenu_updating_frame to nil only if position is nil.
4029
4030 * w32menu.c (Fx_popup_menu): Add `else' to set
4031 Vmenu_updating_frame to nil only if position is nil.
4032
4033 2005-12-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4034
4035 * keyboard.c (make_lispy_event): Drag-and-drop items are now
4036 stored in member `args' of struct input_event.
4037
4038 * termhooks.h (struct input_event): Fix comment for DRAG_N_DROP_EVENT.
4039
4040 * xselect.c (x_handle_dnd_message): Drag-and-drop items are now
4041 stored in member `args' of struct input_event.
4042
4043 * w32term.c (construct_drag_n_drop): Likewise.
4044
4045 * macterm.c (mac_do_receive_drag): Likewise.
4046 (x_use_underline_position_properties): Undo 2005-07-13 change.
4047 (syms_of_macterm) <x-use-underline-position-properties>: Likewise.
4048 (mac_use_core_graphics, mac_wheel_button_is_mouse_2)
4049 (mac_pass_command_to_system, mac_pass_control_to_system):
4050 New boolean variables renamed from Lisp_Object ones
4051 Vmac_use_core_graphics, Vmac_wheel_button_is_mouse_2,
4052 Vmac_pass_command_to_system, and Vmac_pass_control_to_system.
4053 All uses changed.
4054 (syms_of_macterm): DEFVAR_BOOL them. Remove previous DEFVAR_LISPs.
4055 Make them user options.
4056 (mac_handle_command_event, mac_store_services_event):
4057 Call create_apple_event_from_event_ref without 5th argument.
4058 (backtranslate_modified_keycode): Mask off modifier keys that are
4059 mapped to some Emacs modifiers before passing it to KeyTranslate.
4060 (syms_of_macterm): Make variables `mac-emulate-three-button-mouse',
4061 `mac-wheel-button-is-mouse-2', and `mac-*-modifier' user options.
4062 Fix docstrings of `mac-*-modifier'.
4063
4064 * mac.c (create_apple_event_from_event_ref): Remove arg `types'.
4065 (do_applescript): Change argument types to Lisp_Object.
4066 All uses changed.
4067
4068 * macterm.h (create_apple_event_from_event_ref): Remove 5th
4069 argument from extern.
4070
4071 2005-12-18 Dan Nicolaescu <dann@ics.uci.edu>
4072
4073 * xfns.c (Fx_backspace_delete_keys_p): In case we cannot determine
4074 the answer, return `lambda', not nil.
4075
4076 2005-12-17 Eli Zaretskii <eliz@gnu.org>
4077
4078 * makefile.w32-in (bootstrap-temacs): Warn that parts of commands
4079 enclosed in $(ARGQUOTE)s should not be split between two lines, as
4080 that will break with GNU Make >3.80, when sh.exe is used and
4081 arg quoting is with '..'.
4082
4083 2005-12-17 Chong Yidong <cyd@stupidchicken.com>
4084
4085 * print.c (print_preprocess): Just signal an error if print_depth
4086 is exceeded.
4087
4088 2005-12-17 Eli Zaretskii <eliz@gnu.org>
4089
4090 * .gdbinit: Set a breakpoint on w32_abort.
4091
4092 2005-12-16 Juri Linkov <juri@jurta.org>
4093
4094 * minibuf.c (Fminibuffer_completion_contents): New Lisp function
4095 created from minibuffer_completion_contents.
4096 (minibuffer_completion_contents): Remove.
4097 (do_completion, Fminibuffer_complete_word)
4098 (Fminibuffer_completion_help): Replace minibuffer_completion_contents
4099 with Fminibuffer_completion_contents.
4100 (syms_of_minibuf): Add Sminibuffer_completion_contents.
4101 (Fdisplay_completion_list): Doc fix.
4102 (display_completion_list_1): Use `nil' for second arg of
4103 `Fdisplay_completion_list'.
4104
4105 2005-12-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4106
4107 * xfns.c (compute_tip_xy): Handle negative dx and dy.
4108
4109 * w32fns.c (compute_tip_xy): Ditto.
4110
4111 * macfns.c (compute_tip_xy): Ditto.
4112
4113 2005-12-14 Chong Yidong <cyd@stupidchicken.com>
4114
4115 * print.c (print_preprocess): Go to a deeper print_depth to avoid
4116 print_object loop.
4117
4118 2005-12-14 Kyotaro HORIGUCHI <horiguti@meadowy.org> (tiny change)
4119
4120 * coding.c (code_convert_region_unwind): GCPRO arg.
4121
4122 2005-12-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4123
4124 * xfns.c (compute_tip_xy): Calculate root_y the same way as root_x,
4125 i.e. dy is offset from top of frame instead of bottom.
4126
4127 * macfns.c (compute_tip_xy): Ditto.
4128
4129 * w32fns.c (compute_tip_xy): Ditto.
4130
4131 * gtkutil.c (SSDATA): New macro to remove compiler warnings.
4132 (xg_get_image_for_pixmap, xg_create_frame_widgets)
4133 (xg_get_file_with_chooser): Use SSDATA instead of SDATA.
4134
4135 * xmenu.c (menubar_selection_callback): Do nothing if the callback
4136 is for an unselected radio menu item.
4137
4138 2005-12-11 Richard M. Stallman <rms@gnu.org>
4139
4140 * xdisp.c (syms_of_xdisp) <blink-cursor-alist>: Doc fix.
4141
4142 * lisp.h [! NO_UNION_TYPE] (EQ): Use == so args are computed just once.
4143
4144 * keymap.c (Fset_keymap_parent, store_in_keymap): Use CHECK_IMPURE.
4145 (Flookup_key): Doc fix.
4146 (syms_of_keymap) <function-key-map>: Doc fix.
4147
4148 * fns.c (Frequire): Treat evaluating from a source file
4149 like loading the file.
4150
4151 * floatfns.c (Flog): Doc fix.
4152
4153 * fileio.c (Finsert_file_contents): Set Vdeactivate_mark
4154 when we change the buffer.
4155
4156 2005-12-11 Juri Linkov <juri@jurta.org>
4157
4158 * minibuf.c (display_completion_list_1):
4159 Call `minibuffer_completion_contents' instead of using `nil' as
4160 second arg of `Fdisplay_completion_list'.
4161 (keys_of_minibuf): Unbind SPC in
4162 Vminibuffer_local_filename_completion_map (see also related
4163 change on 2005-12-06).
4164
4165 2005-12-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4166
4167 * emacs.c (main) [MAC_OS8]: Undo previous change.
4168
4169 * macselect.c (syms_of_macselect) <mac-apple-event-map>:
4170 Initialize to nil. Keymap is now created in lisp/term/mac-win.el.
4171
4172 2005-12-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4173
4174 * Makefile.in (macselect.o): Depend on keymap.h.
4175
4176 * emacs.c (main) [MAC_OS8]: Call syms_of_keymap before
4177 syms_of_macselect.
4178
4179 * image.c (init_image) [MAC_OS]: Don't call EnterMovies.
4180 [!HAVE_GIF && MAC_OS] (gif_load): Call EnterMovies.
4181
4182 * keyboard.c (Qmac_apple_event) [MAC_OS]: New variable.
4183 (syms_of_keyboard) [MAC_OS]: Initialize it.
4184 (make_lispy_event) [MAC_OS]: Build lisp event for MAC_APPLE_EVENT.
4185
4186 * mac.c (Qundecoded_file_name): New variable.
4187 (syms_of_mac): Initialize it.
4188 (mac_aelist_to_lisp, mac_aedesc_to_lisp): New functions.
4189 [TARGET_API_MAC_CARBON] (create_apple_event_from_event_ref): New fun.
4190 (Fmac_coerce_ae_data): New defun.
4191 (syms_of_mac): Defsubr it.
4192
4193 * macselect.c: Include keymap.h.
4194 (mac_ready_for_apple_events): New variable.
4195 (Vmac_apple_event_map, Qmac_apple_event_class)
4196 (Qmac_apple_event_id): New variables.
4197 (syms_of_macselect): Initialize them.
4198 (Qundefined, mac_store_apple_event): Add externs.
4199 (struct apple_event_binding): New struct.
4200 (find_event_binding_fun, find_event_binding)
4201 (mac_find_apple_event_spec, defer_apple_events)
4202 (mac_handle_apple_event, init_apple_event_handler)
4203 (copy_scrap_flavor_data): New functions.
4204 (Fmac_process_deferred_apple_events): New defun.
4205 (syms_of_macselect): Defsubr it.
4206 (mac_store_services_event): Fix extern.
4207 (mac_handle_service_event): Don't allocate Lisp objects during
4208 asynchronous input processing. Use mac_store_services_event
4209 instead of mac_store_application_menu_event.
4210
4211 * macterm.c (Qmac_ready_for_drag_n_drop, Qapplication, Qabout)
4212 (Qpreferences): Remove variables.
4213 (syms_of_macterm) : Don't initialize them.
4214 (Qhicommand) [USE_CARBON_EVENTS]: New variable.
4215 (syms_of_macterm) [USE_CARBON_EVENTS]: Initialize it.
4216 (init_required_apple_events, do_ae_open_application)
4217 (do_ae_print_documents, do_ae_open_documents)
4218 (do_ae_quit_application): Remove functions and prototypes.
4219 (mac_ready_for_apple_events, Qundefined, init_apple_event_handler)
4220 (mac_find_apple_event_spec): Add externs.
4221 (mac_store_application_menu_event): Remove function.
4222 (mac_store_apple_event, mac_make_lispy_event_code): New functions.
4223 (mac_handle_command_event): Create Apple event from Carbon event.
4224 Use mac_store_apple_event instead of mac_store_application_menu_event.
4225 [MAC_OSX] (mac_store_services_event): Likewise.
4226 (struct SelectionRange, SelectionRange): Remove struct and typedef.
4227 [MAC_OS8] (main): Call init_apple_event_handler instead of
4228 init_required_apple_events.
4229 (mac_initialize) [MAC_OSX]: Likewise.
4230 [!USE_CARBON_EVENTS] (mac_wait_next_event):
4231 Use mac_ready_for_apple_events instead of Qmac_ready_for_drag_n_drop.
4232
4233 * macterm.h (mac_make_lispy_event_code, mac_aedesc_to_lisp):
4234 Add externs.
4235 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]: Likewise.
4236 (Fmac_get_preference): Add EXFUN.
4237
4238 * termhooks.h (enum event_kind) [MAC_OS]: Add new MAC_APPLE_EVENT
4239 event.
4240
4241 2005-12-09 Richard M. Stallman <rms@gnu.org>
4242
4243 * xfns.c (Fx_create_frame): Reinstate previous change.
4244
4245 2005-12-09 Eli Zaretskii <eliz@gnu.org>
4246
4247 * w32fns.c (w32_abort) [__GNUC__]: Add instructions for attaching
4248 GDB to the abort dialog.
4249
4250 2005-12-09 Kyotaro HORIGUCHI <horiguti@meadowy.org> (tiny change)
4251
4252 * indent.c (Fvertical_motion): Force move if starting on
4253 stretch glyph.
4254
4255 2005-12-08 Richard M. Stallman <rms@gnu.org>
4256
4257 * lread.c (read_escape) <\s>: Don't treat strings specially.
4258
4259 * xfns.c (Fx_create_frame): Comment out previous change.
4260
4261 2005-12-07 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
4262
4263 * xfns.c (Fx_create_frame): Initialize Vdefault_minibuffer_frame,
4264 when needed.
4265
4266 2005-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
4267
4268 * minibuf.c (keys_of_minibuf): Just unbind SPC in
4269 Vminibuffer_local_filename_completion_map rather than forcing it
4270 explicitly to the same binding as the global map.
4271
4272 2005-12-06 Ken Raeburn <raeburn@gnu.org>
4273
4274 * buffer.c (Fkill_buffer): Avoid dangerous side effects in NILP args.
4275 * bytecode.c (Fbyte_code): Likewise.
4276 * fileio.c (internal_delete_file, Fread_file_name_internal): Likewise.
4277 * minibuf.c (Fminibuffer_complete_and_exit): Likewise.
4278 * undo.c (truncate_undo_list): Likewise.
4279
4280 2005-12-05 Richard M. Stallman <rms@gnu.org>
4281
4282 * window.c (enlarge_window): Eliminate arg preserve_before.
4283 Assume it is 0. All callers changed.
4284 (Fenlarge_window, Fshrink_window): Likewise.
4285
4286 2005-12-02 Eli Zaretskii <eliz@gnu.org>
4287
4288 * w32fns.c (compute_tip_xy): Put tip above pointer if it doesn't
4289 fit below.
4290
4291 2005-12-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4292
4293 * xterm.h: Add prototype for xg_set_icon_from_xpm_data.
4294
4295 * xfns.c (x_real_positions): int ign => unsigned int.
4296 (xg_set_icon_from_xpm_data): Remove unused variable err.
4297 (x_set_name_internal, Fx_create_frame, xg_set_icon): Add cast
4298 to remove compiler warning.
4299 (compute_tip_xy): Put tip above pointer if it doesn't fit below.
4300
4301 2005-12-02 David Reitter <david.reitter@gmail.com>
4302
4303 * minibuf.c (Fcompleting_read): If Vminibuffer_completing_file_name is
4304 non-nil, use the new keymaps Vminibuffer_local_filename_completion_map
4305 and Vminibuffer_local_must_match_filename_map keymaps.
4306 (keys_of_minibuf): Bind SPC in the new file-name completion keymaps.
4307
4308 * keymap.c (Vminibuffer_local_filename_completion_map)
4309 (Vminibuffer_local_must_match_filename_map): New variables.
4310 (syms_of_keymap): DEFVAR_LISP them, initialize them, and set their
4311 parent to be Vminibuffer_local_completion_map and
4312 Vminibuffer_local_must_match_map, respectively.
4313
4314 * commands.h (Vminibuffer_local_filename_completion_map)
4315 (Vminibuffer_local_must_match_filename_map): Declare the new keymaps.
4316
4317 2005-12-01 Stefan Monnier <monnier@iro.umontreal.ca>
4318
4319 * window.c (Fset_window_configuration): Don't accidentally copy the
4320 window-point of one window to another.
4321
4322 2005-11-30 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
4323
4324 * buffer.c (Fpop_to_buffer): Remove superfluous call to record_buffer.
4325
4326 2005-11-30 Kim F. Storm <storm@cua.dk>
4327
4328 * alloc.c: Include fcntl.h. Define O_WRONLY if not defined.
4329 (valid_lisp_object_p) [!GC_MARK_STACK]: Validate pointer by
4330 passing it to `emacs_write'.
4331
4332 2005-11-29 Ari Roponen <arjuropo@cc.jyu.fi> (tiny change)
4333
4334 * atimer.c (stop_other_atimers): Fix loop to correctly compute `prev'.
4335
4336 2005-11-27 Richard M. Stallman <rms@gnu.org>
4337
4338 * window.c (adjust_window_trailing_edge): New function.
4339 (Fadjust_window_trailing_edge): New function.
4340 (syms_of_window): Defsubr it.
4341 (window_deletion_count): New variable.
4342 (delete_window): Update window_deletion_count.
4343
4344 2005-11-26 Eli Zaretskii <eliz@gnu.org>
4345
4346 * minibuf.c (syms_of_minibuf): Mention the extension of
4347 `completion-auto-help's meaning by complete.el.
4348
4349 2005-11-26 Henrik Enberg <henrik.enberg@telia.com>
4350
4351 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
4352 Handle :inherit property as a lisp expression.
4353
4354 2005-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4355
4356 * macterm.c (Qcontrol): Rename from Qctrl. All uses changed.
4357 (syms_of_macterm): Staticpro Qcontrol, Qmeta, Qalt, Qhyper,
4358 Qsuper, and Qmodifier_value.
4359 (Vmac_control_modifier, Vmac_option_modifier)
4360 (Vmac_command_modifier, Vmac_function_modifier)
4361 (Vmac_emulate_three_button_mouse, Vmac_wheel_button_is_mouse_2)
4362 (Vmac_pass_command_to_system, Vmac_pass_control_to_system)
4363 (Vmac_charset_info_alist): Doc fixes.
4364
4365 2005-11-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4366
4367 * emacs.c (main) [MAC_OSX]: Change working directory to home
4368 directory if `-psn_*' option is specified.
4369
4370 * mac.c (DECODE_UTF_8): Remove macro.
4371 [TARGET_API_MAC_CARBON] (cfstring_to_lisp_nodecode): New function
4372 created from cfstring_to_lisp.
4373 [TARGET_API_MAC_CARBON] (cfstring_to_lisp): Use it.
4374 (xrm_get_preference_database) [TARGET_API_MAC_CARBON]: Likewise.
4375
4376 * macterm.h (cfstring_to_lisp_nodecode) [TARGET_API_MAC_CARBON]:
4377 Add prototype.
4378
4379 2005-11-21 Ken Raeburn <raeburn@gnu.org>
4380
4381 * keymap.c (shadow_lookup): Use make_number to pass a number to
4382 Fsubstring.
4383
4384 2005-11-21 Juri Linkov <juri@jurta.org>
4385
4386 * puresize.h (BASE_PURESIZE): Increment to 1180000.
4387
4388 2005-11-20 Chong Yidong <cyd@stupidchicken.com>
4389
4390 * xfaces.c (Finternal_set_lisp_face_attribute):
4391 Use :ignore-defface for new frame defaults when `unspecified' is
4392 supplied.
4393 (Finternal_get_lisp_face_attribute): Hide :ignore-defface.
4394 (merge_face_vectors): Don't do :ignore-defface overwriting here.
4395 (Finternal_merge_in_global_face): Do it here.
4396
4397 2005-11-20 Juri Linkov <juri@jurta.org>
4398
4399 * charset.c (invalid_character): Use Lisp-readable syntax
4400 for octal and hex. Reorder decimal, octal and hex values.
4401
4402 2005-11-20 Nick Roberts <nickrob@snap.net.nz>
4403
4404 * lisp.h: Use typedef when Lisp_Object is EMACS_INT so that
4405 this type is recognised when debugging.
4406
4407 2005-11-19 Andreas Schwab <schwab@suse.de>
4408
4409 * .gdbinit (nextcons, xcdr, xfloat): Update for changes in
4410 Lisp_Cons and Lisp_Float.
4411
4412 2005-11-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4413
4414 * macterm.c [USE_CG_TEXT_DRAWING] (cg_text_anti_aliasing_threshold):
4415 New variable.
4416 [USE_CG_TEXT_DRAWING] (init_cg_text_anti_aliasing_threshold): New fun.
4417 (init_font_name_table) [USE_ATSUI && USE_CG_TEXT_DRAWING]: Use it.
4418 [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): Don't do antialiasing if
4419 font size is smaller than or equal to cg_text_anti_aliasing_threshold.
4420
4421 2005-11-17 Chong Yidong <cyd@stupidchicken.com>
4422
4423 * image.c (x_create_bitmap_from_xpm_data): Free attributes on fail.
4424
4425 * xfaces.c (Qignore_defface): New variable.
4426 (syms_of_xfaces): Provide `:ignore-defface'.
4427 (IGNORE_DEFFACE_P): New macro.
4428 (check_lface_attrs, lface_fully_specified_p)
4429 (Finternal_set_lisp_face_attribute)
4430 (Fface_attribute_relative_p, Fmerge_face_attribute):
4431 Handle Qignore_defface as a possible value.
4432 (merge_face_vectors): The merged face is `unspecified' if the
4433 mergee specifies `:ignore-defface'.
4434
4435 2005-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
4436
4437 * lread.c (readevalloop): Add missing GCPROs.
4438
4439 2005-11-16 Chong Yidong <cyd@stupidchicken.com>
4440
4441 * xfns.c (xg_set_icon_from_xpm_data): New function.
4442
4443 * gnu.h (gnu_xpm_bits): Rename from gnu_bits.
4444 (gnu_xbm_bits): Rename from gnu_bits (xbm version).
4445
4446 * xterm.c (x_bitmap_icon): Use the xpm if available.
4447
4448 * image.c (x_create_bitmap_from_xpm_data): New function.
4449 (x_create_bitmap_from_xpm_data): Initialize XpmAttributes.
4450
4451 2005-11-15 Luc Teirlinck <teirllm@auburn.edu>
4452
4453 * Makefile.in (lisp, shortlisp): Add rfn-eshadow.
4454
4455 2005-11-16 Nick Roberts <nickrob@snap.net.nz>
4456
4457 * .gdbinit: Make SIGTSTP work like SIGINT normally does.
4458
4459 2005-11-15 Andreas Schwab <schwab@suse.de>
4460
4461 * lisp.h (struct Lisp_Cons): Make cdr a union.
4462 (XCDR_AS_LVALUE): Adjust.
4463 (struct Lisp_Float): Make data a union.
4464 (XFLOAT_DATA): Adjust.
4465
4466 * alloc.c (free_float): Make free list chaining aliasing-safe.
4467 (make_float): Likewise.
4468 (free_cons): Likewise.
4469 (Fcons): Likewise.
4470 (check_cons_list): Likewise.
4471 (Fmake_symbol): Likewise.
4472 (allocate_misc): Likewise.
4473 (free_misc): Likewise.
4474 (gc_sweep): Likewise.
4475
4476 2005-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4477
4478 * mac.c (HASHKEY_QUERY_CACHE): New define.
4479 (xrm_create_database, xrm_q_put_resource): Empty query cache.
4480 (xrm_get_resource): Use query cache.
4481
4482 * image.c (init_image) [MAC_OS]: Don't call EnterMovies if
4483 inhibit_window_system is set.
4484
4485 2005-11-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4486
4487 * macgui.h (USE_CG_TEXT_DRAWING): New define.
4488 (struct MacFontStruct) [USE_CG_TEXT_DRAWING]: New members cg_font
4489 and cg_glyphs.
4490
4491 * macterm.c [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): New function.
4492 (x_draw_glyph_string_foreground) [USE_CG_TEXT_DRAWING]: Use it.
4493 (XLoadQueryFont) [USE_CG_TEXT_DRAWING]: Set members cg_font and
4494 cg_glyphs in struct MacFontStruct if synthesized bold or italic is
4495 not used and font substitution never occurs for ASCII and Latin-1
4496 characters.
4497 (XLoadQueryFont): Maximum and minimum metrics are now those among
4498 ASCII characters.
4499 (XLoadQueryFont) [!MAC_OS8 || USE_ATSUI]: Apply WebKit-style
4500 height adjustments for Courier, Helvetica, and Times.
4501
4502 * s/darwin.h (LIBS_CARBON) [!HAVE_CARBON]: Remove `-framework Carbon'.
4503
4504 2005-11-11 David Reitter <david.reitter@gmail.com>
4505
4506 * macterm.c (syms_of_macterm): Remove macCtrlKey, macShiftKey,
4507 macMetaKey, macAltKey. Introduce Qctrl, Qmeta,
4508 Vmac_control_modifier / mac-control-modifier,
4509 Vmac_option_modifier / mac-option-modifier,
4510 Vmac_command_modifier / mac-command-modifier.
4511 (mac_to_emacs_modifiers): Use the new style modifier
4512 variables. Return UInt32 (modifiers are longs now.)
4513 (backtranslate_modified_keycode): New function (refactoring).
4514 (XTread_socket): Use new modifier variables and refactored function.
4515 (mac_determine_quit_char_modifiers): Remove macMetaKey (there is
4516 no dedicated meta key. Not in use anyway.)
4517 (convert_fn_keycode): Map Fn-keys to their original keycode
4518 using a table (english keyboard only).
4519
4520 2005-11-11 Kim F. Storm <storm@cua.dk>
4521
4522 * .gdbinit (pitx): Fix output format if n_overlay_strings > 0.
4523 Add post hook to "backtrace" to always dump lisp call stack to
4524 increase chance of people sending it to us when reporting bugs.
4525
4526 * doc.c (Fsubstitute_command_keys): Doc fix.
4527
4528 * dispextern.h (struct it): New member ignore_overlay_strings_at_pos_p.
4529
4530 * xdisp.c (handle_stop): Skip overlay string handling if
4531 ignore_overlay_strings_at_pos_p is set.
4532 (set_iterator_to_next): At end of display vector, set
4533 ignore_overlay_strings_at_pos_p if dpvec came from an overlay
4534 string, so we skip those overlay strings at current pos.
4535
4536 2005-11-10 Lars Hansen <larsh@soem.dk>
4537
4538 * fileio.c (file-regular-p): Doc fix.
4539
4540 2005-11-10 Kim F. Storm <storm@cua.dk>
4541
4542 * alloc.c (valid_lisp_object_p): New function to validate that
4543 an object is really a valid Lisp_Object.
4544
4545 * lisp.h (valid_lisp_object_p): Add prototype.
4546
4547 * print.c (safe_debug_print): New function to be called from gdb
4548 to print Lisp objects; use valid_lisp_object_p to avoid crashing
4549 if user tries to print something which is not a Lisp object.
4550
4551 * .gdbinit (pp, pp1): Use safe_debug_print.
4552 (pv, pv1): New commands to print value of a lisp variable.
4553
4554 2005-11-10 Nick Roberts <nickrob@snap.net.nz>
4555
4556 * .gdbinit (pp1): New user-defined function.
4557
4558 2005-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4559
4560 * image.c [MAC_OSX] (image_load_quartz2d): Fix memory leak.
4561
4562 * mac.c [MAC_OSX] (init_mac_osx_environment): Reinitialize locale
4563 related variables for dumped executable.
4564
4565 * unexmacosx.c (unexec_write_zero): New function.
4566 (copy_data_segment): Clear uninitialized local variables in
4567 statically linked libraries.
4568
4569 * s/darwin.h (C_SWITCH_SYSTEM): Remove -fno-common.
4570
4571 2005-11-09 Juri Linkov <juri@jurta.org>
4572
4573 * keymap.c (shadow_lookup): If Flookup_key returns a number,
4574 call it again with a sub-key-sequence, and if its return value
4575 is non-nil (sub-key is bound), return nil.
4576
4577 2005-11-08 Kim F. Storm <storm@cua.dk>
4578
4579 * process.c (Fsignal_process): Recognize signal names with and
4580 without SIG prefix, e.g. SIGHUP and HUP.
4581
4582 * search.c (search_buffer): No need to initialize base_pat.
4583
4584 2005-11-04 Stefan Monnier <monnier@iro.umontreal.ca>
4585
4586 * window.c (Fget_lru_window, Fget_largest_window, window_loop):
4587 Don't abuse the `mini' arg. Use the `obj' arg instead.
4588
4589 2005-11-04 Kim F. Storm <storm@cua.dk>
4590
4591 * xdisp.c (show_mouse_face): Clear mouse face to eol.
4592
4593 2005-11-03 Dan Nicolaescu <dann@ics.uci.edu>
4594
4595 * Makefile.in (lisp, shortlisp): Add emacs-lisp/syntax.elc,
4596 font-lock.elc and jit-lock.elc.
4597
4598 2005-11-03 Richard M. Stallman <rms@gnu.org>
4599
4600 * window.c (Fenlarge_window): Rename SIDE to HORIZONTAL.
4601 (enlarge_window): Rename WIDTHFLAG to HORIZ_FLAG.
4602 (CURBEG, CURSIZE): Use HORIZ_FLAG instead of WIDTHFLAG.
4603
4604 * sheap.c (STATIC_HEAP_SIZE): Increment both definitions.
4605
4606 * alloc.c (refill_memory_reserve): Move decl out of conditionals.
4607
4608 2005-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
4609
4610 * window.c (Fdisplay_buffer): Fix last change to not use
4611 a dedicated window.
4612
4613 2005-11-01 Kim F. Storm <storm@cua.dk>
4614
4615 * fringe.c (update_window_fringes): Undo 2005-10-27 change.
4616 Instead, rotate the bottom angle bitmap 180 degrees to indicate
4617 that the bottom row does not end in a newline.
4618
4619 2005-11-01 Andreas Schwab <schwab@suse.de>
4620
4621 * unexelf.c (unexec): Handle .plt section in BSS segment.
4622
4623 2005-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
4624
4625 * lread.c (readevalloop): Yet another int/Lisp_Object mixup (YAILOM).
4626
4627 * window.c (window_loop): For LRU and LARGEST, let the `mini' argument
4628 determine whether to consider dedicated windows as well.
4629 (Fget_lru_window, Fget_largest_window): Add `dedicated' argument.
4630 (Fdisplay_buffer): Do consider dedicated windows in those cases where
4631 we will split the window rather than reuse it.
4632 Don't try to use windows on other displays.
4633
4634 2005-10-31 Dan Nicolaescu <dann@ics.uci.edu>
4635
4636 * puresize.h (BASE_PURESIZE): Increment to 1170000.
4637
4638 2005-10-31 Romain Francoise <romain@orebokech.com>
4639
4640 * macfns.c: Update copyright year.
4641 * m/gould.h: Likewise.
4642
4643 2005-10-30 Kim F. Storm <storm@cua.dk>
4644
4645 * xdisp.c (display_line): Restore it->current_x and call
4646 extend_face_to_end_of_line when last glyph doesn't fit on line.
4647 (set_glyph_string_background_width): Remove specific tests here
4648 to see if face background should extend to end of line. Simplify.
4649
4650 2005-10-30 Richard M. Stallman <rms@gnu.org>
4651
4652 * alloc.c (BYTES_USED): Use uordblks, not arena.
4653 (bytes_used_when_reconsidered): New variable.
4654 (emacs_blocked_free): Set that.
4655
4656 2005-10-29 Chong Yidong <cyd@stupidchicken.com>
4657
4658 * alloc.c (emacs_blocked_free): Fix typo.
4659
4660 2005-10-29 Richard M. Stallman <rms@gnu.org>
4661
4662 * data.c (Fmake_variable_frame_local): Doc fix.
4663
4664 * xdisp.c (handle_fontified_prop): Do nothing if memory full.
4665 (format_mode_line_unwind_data): New arg SAVE_PROPTRANS
4666 controls whether to save and restore mode_line_proptrans_alist.
4667 Callers changed.
4668 (unwind_format_mode_line): Work with that feature.
4669 (redisplay_internal): Don't call prepare_menu_bars if memory full.
4670 (move_elt_to_front): New function.
4671 (display_mode_element): Use move_elt_to_front.
4672 Don't bother munging text props on a null string.
4673 Delete obsolete elts from mode_line_proptrans_alist.
4674 (decode_mode_spec): Test Vmemory_full, not spare_memory.
4675 (Fformat_mode_line): Clear mode_line_proptrans_alist after saving.
4676
4677 * lisp.h (memory_full_cons_threshold): Declare.
4678 (internal_lisp_condition_case): Declare.
4679
4680 * alloc.c (syms_of_alloc) <memory-full>: Doc fix.
4681 (Fmemory_full_p): Function deleted.
4682 (syms_of_alloc): Don't defsubr it.
4683 (memory_full_cons_threshold): New variable.
4684 (spare_memory): Now a vector of 7 elts.
4685 (buffer_memory_full): Don't set Vmemory_full here.
4686 (xfree): Don't try to refill here.
4687 (emacs_blocked_free): Record BYTES_USED in local var.
4688 (memory_full): Now free all the slots in spare_memory.
4689 (refill_memory_reserve): Allocate each slot in spare_memory.
4690 (init_alloc_once): Call refill_memory_reserve.
4691
4692 * keyboard.c (command_loop_1): Don't set Vmemory_full here.
4693
4694 * eval.c (internal_lisp_condition_case): New function.
4695 (Fcondition_case): Use internal_lisp_condition_case.
4696 (Feval): Test Vmemory_full and memory_full_cons_threshold.
4697 (Ffuncall): Likewise.
4698
4699 * bytecode.c (Fbyte_code): Use internal_lisp_condition_case.
4700
4701 2005-10-29 Stefan Monnier <monnier@iro.umontreal.ca>
4702
4703 * syntax.c (Fparse_partial_sexp): Fix docstring.
4704
4705 2005-10-28 Romain Francoise <romain@orebokech.com>
4706
4707 * puresize.h (BASE_PURESIZE): Increment to 1130000.
4708
4709 2005-10-28 Richard M. Stallman <rms@gnu.org>
4710
4711 * xfns.c (syms_of_xfns): Provide `x' as feature.
4712
4713 * xdisp.c (decode_mode_spec): Define %e to indicate memory full.
4714
4715 * editfns.c (Fformat): Don't include string padding
4716 between info[n].start and info[n].end.
4717
4718 * alloc.c (spare_memory): No longer static.
4719 (xfree) [!SYSTEM_MALLOC]: Call refill_memory_reserve.
4720
4721 * puresize.h (BASE_PURESIZE): Increment to 1120000.
4722
4723 2005-10-27 Chong Yidong <cyd@stupidchicken.com>
4724
4725 * data.c (Fmake_variable_frame_local): Add clarification to docstring.
4726
4727 * fringe.c (update_window_fringes): Handle case where buffer ends
4728 with a newline.
4729
4730 2005-10-27 Kenichi Handa <handa@m17n.org>
4731
4732 * coding.h (DECODE_SYSTEM): Fix argument name; name->str.
4733
4734 2005-10-24 Kenichi Handa <handa@m17n.org>
4735
4736 * charset.h (charset_mule_unicode_0100_24ff)
4737 (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
4738 Extern them.
4739
4740 * charset.c (charset_mule_unicode_0100_24ff)
4741 (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
4742 New variables.
4743 (Fsetup_special_charsets): Initialize them.
4744
4745 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
4746 supported Unicode characters.
4747
4748 2005-10-25 Jason Rumney <jasonr@gnu.org>
4749
4750 * w32fns.c (w32_to_x_font): Avoid forcing font widths.
4751
4752 2005-10-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4753
4754 * image.c [MAC_OS] (image_load_qt_1): Check image size.
4755 Use GraphicsImportGetImageDescription instead of
4756 GraphicsImportGetNaturalBounds.
4757 [MAC_OSX] (image_load_quartz2d): Check image size.
4758 [MAC_OS] (xpm_load_image): Likewise.
4759
4760 * macterm.c (last_mouse_glyph_frame): New var.
4761 (note_mouse_movement): Say mouse moved if current frame differs
4762 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
4763 (XTmouse_position): Set last_mouse_glyph_frame.
4764 (XTread_socket): Clear last_mouse_glyph_frame on mouse up/down event.
4765 (mac_draw_string_common) [USE_ATSUI && WORDS_BIG_ENDIAN]: Fix typo.
4766 Use EndianU16_BtoN.
4767 (mac_draw_string_common) [MAC_OSX]: Don't use ATSUClearLayoutControls.
4768 (x_per_char_metric, XLoadQueryFont)
4769 [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Use device origins to get
4770 glyph bounds.
4771 (mac_to_x_fontname, mac_do_list_fonts)
4772 (mac_initialize_display_info): Change screen resolutions to 72dpi.
4773
4774 2005-10-25 Masatake YAMATO <jet@gyve.org>
4775
4776 * minibuf.c (Fdisplay_completion_list): Small doc fix.
4777
4778 2005-10-24 Kim F. Storm <storm@cua.dk>
4779
4780 * xterm.c: Undo 2005-10-23 change.
4781 (last_mouse_glyph_frame): New var.
4782 (note_mouse_movement): Say mouse moved if current frame differs
4783 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
4784 (XTmouse_position): Set last_mouse_glyph_frame.
4785 (handle_one_xevent): Clear last_mouse_glyph_frame [instead of
4786 last_mouse_glyph] on mouse up/down event.
4787
4788 * editfns.c (Fcompare_buffer_substrings): Fix last change.
4789
4790 2005-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
4791
4792 * editfns.c (Fcompare_buffer_substrings): Handle multibyte chars.
4793
4794 2005-10-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4795
4796 * xterm.c (note_mouse_movement): Always call note_mouse_highlight
4797 so tool tips don't interfere with press on tool bar button.
4798
4799 2005-10-23 Richard M. Stallman <rms@gnu.org>
4800
4801 * casetab.c (Fset_case_table): Doc fix.
4802
4803 * lread.c (build_load_history): Replace STREAM arg with ENTIRE.
4804 (readevalloop): Compute ENTIRE properly.
4805 (syms_of_lread) <load-history>: Doc fix.
4806
4807 2005-10-21 Richard M. Stallman <rms@gnu.org>
4808
4809 * lread.c (Fload): Simplify gcpro structure.
4810 Gcpro FOUND as well as FILE, but not EFOUND.
4811 Unless preloading, record FOUND instead of FILE in Vload_history.
4812 Rename repeat local FILE to MSG_FILE.
4813 (syms_of_lread) <load-history>: Doc fix.
4814
4815 2005-10-21 Kenichi Handa <handa@m17n.org>
4816
4817 * search.c (boyer_moore): Add parens to fix and/or precedence bug.
4818
4819 2005-10-20 Kim F. Storm <storm@cua.dk>
4820
4821 * buffer.c (clone_per_buffer_values): Remove unused var tem.
4822 (init_buffer): Remove unused vars dotstat, pwdstat.
4823
4824 * ccl.c (check_ccl_update): Remove unused var vp.
4825
4826 * fileio.c (auto_save_error): Call SAFE_FREE.
4827
4828 * fns.c (Fchar_table_range): Remove unused var i.
4829
4830 * minibuf.c (display_completion_list_1): New wrapper function
4831 for Fdisplay_completion_list.
4832 (Fminibuffer_completion_help): Use it.
4833
4834 * term.c (encode_terminal_code): Remove unused var src_start.
4835
4836 * window.c (Fwindow_tree): Remove unused var alist.
4837
4838 * xterm.c (x_calc_absolute_position): Remove unused vars win_x, win_y.
4839
4840 2005-10-20 Aubrey Jaffer <agj@alum.mit.edu> (tiny change)
4841
4842 * unexelf.c (unexec): Fix calls to `fatal' with less than 3 arguments.
4843
4844 2005-10-20 Olli Savia <ops@iki.fi> (tiny change)
4845
4846 * syssignal.h [__Lynx__]: Undef SIGPOLL along with SIGIO.
4847
4848 2005-10-20 Andreas Schwab <schwab@suse.de>
4849
4850 * minibuf.c (Fdisplay_completion_list): Doc fix.
4851
4852 2005-10-19 Kim F. Storm <storm@cua.dk>
4853
4854 * image.c (check_image_size): Handle integer Vmax_image_size value
4855 directly as max pixel value. Use default frame size for null frame.
4856 (syms_of_image) <max-image-size>: Describe integer value.
4857
4858 2005-10-19 Romain Francoise <romain@orebokech.com>
4859
4860 * emacs.c (main): Update copyright year.
4861
4862 2005-10-18 Chong Yidong <cyd@stupidchicken.com>
4863
4864 * image.c (Vmax_image_size): New variable.
4865 (check_image_size): New function.
4866 (xbm_read_bitmap_data, pbm_load, png_load, jpeg_load, tiff_load)
4867 (gif_load, gs_load): Use it.
4868 (lookup_image): Try loading again if previous load failed.
4869 (xbm_read_bitmap_data): Add a new argument, a pointer to the frame
4870 to display in, NULL if none.
4871 (xbm_load_image, xbm_file_p): Pass xbm_read_bitmap_data the new
4872 argument.
4873
4874 2005-10-18 Richard M. Stallman <rms@gnu.org>
4875
4876 * search.c (Fstring_match): Doc fix.
4877
4878 2005-10-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4879
4880 * macterm.c (note_mouse_movement): Use PtInRect.
4881 (XTread_socket): Also ignore mouse motion just before a button
4882 release event. Don't process button release event when mouse is
4883 not grabbed.
4884
4885 2005-10-16 Masatake YAMATO <jet@gyve.org>
4886
4887 * minibuf.c (Fdisplay_completion_list): Add new optional
4888 argument COMMON_SUBSTRING. Bind `completion-common-substring'
4889 to the optional argument during running `completion-setup-hook'.
4890
4891 2005-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4892
4893 * mac.c [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp):
4894 Allow nil as argument.
4895 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Regard nil
4896 for encoding arguments as UTF-16 in native byte order, no BOM.
4897
4898 * macfns.c (Fx_create_frame): Add debugging code.
4899 (Fx_show_tip): Set frame pixel width and height.
4900
4901 * macterm.c (MAC_WINDOW_NORMAL_GC): Remove macro.
4902 (FRAME_NORMAL_GC): New macro.
4903 (mac_draw_line, mac_clear_area, mac_clear_window)
4904 (mac_fill_rectangle, mac_draw_string, mac_draw_string_16)
4905 (mac_draw_image_string, mac_draw_image_string_16): Rename from
4906 XDrawLine, XClearArea, XClearWindow, XFillRectangle, XDrawString,
4907 XDrawString16, XDrawImageString, and XDrawImageString16, respectively.
4908 All uses changed.
4909 (mac_draw_line, mac_erase_rectangle, mac_clear_area)
4910 (mac_clear_window, mac_draw_bitmap, mac_draw_rectangle)
4911 (mac_invert_rectangle, mac_draw_string_common, mac_draw_string)
4912 (mac_draw_string_16, mac_draw_image_string)
4913 (mac_draw_image_string_16, mac_copy_area, mac_copy_area_with_mask)
4914 (mac_scroll_area): Drawing functions now take frame as destination.
4915 All uses changed.
4916 (mac_draw_string_common): Get port height with FRAME_PIXEL_HEIGHT.
4917 (x_draw_fringe_bitmap): Set clipping area in face->gc.
4918
4919 * macterm.h (mac_clear_area): Add extern.
4920
4921 2005-10-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4922
4923 * macterm.c (note_mouse_movement, XTread_socket): Apply 2005-10-14
4924 changes for xterm.c.
4925
4926 * w32term.c (note_mouse_movement, w32_read_socket): Likewise.
4927
4928 2005-10-14 Kenichi Handa <handa@m17n.org>
4929
4930 * search.c (search_buffer): Give up BM search on case-fold-search
4931 if one of a target character has a case-equivalence of different
4932 charset even if that target charcter is an ASCII.
4933
4934 * casefiddle.c (casify_object): Fix for the case that case
4935 conversion change the byte length.
4936
4937 2005-10-14 Kim F. Storm <storm@cua.dk>
4938
4939 * xterm.c (note_mouse_movement): Return 1 if mouse moved; 0 otherwise.
4940 (handle_one_xevent): Only clear help_echo_string; restore it if
4941 note_mouse_movement didn't record any mouse movement.
4942
4943 * xdisp.c (pos_visible_p): Convert w->hscroll to pixels before use.
4944 (remember_mouse_glyph): Clear RECT if mouse is over an image glyph.
4945
4946 * keyboard.c (make_lispy_position): Adjust wx for left margin if
4947 ON_TEXT.
4948 (Fposn_at_x_y): Fix calculation of x coordinate.
4949 (Fposn_at_point): Return nil if point is hscrolled out of view.
4950
4951 2005-10-13 Andreas Schwab <schwab@suse.de>
4952
4953 * sysdep.c (request_sigio, unrequest_sigio): Do nothing in
4954 non-interactive mode.
4955
4956 2005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4957
4958 * xterm.c, w32term.c, macterm.c (note_mouse_movement): Undo last change.
4959
4960 2005-10-12 Kim F. Storm <storm@cua.dk>
4961
4962 * xterm.c (handle_one_xevent): Clear last_mouse_glyph on mouse up/down.
4963
4964 2005-10-12 Romain Francoise <romain@orebokech.com>
4965
4966 * buffer.c (init_buffer): Rename `rc' to `len' for clarity.
4967
4968 2005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4969
4970 * xdisp.c (remember_mouse_glyph): Use MATRIX_BOTTOM_TEXT_ROW to
4971 get end of text rows. Obtain header-line/mode-line rows directly.
4972
4973 * xterm.c, w32term.c, macterm.c (note_mouse_movement):
4974 Restore help_echo_string if mouse is moved inside last_mouse_glyph.
4975
4976 2005-10-12 Kim F. Storm <storm@cua.dk>
4977
4978 * xdisp.c (remember_mouse_glyph): New generic version based on
4979 glyph_rect and remember_mouse_glyph from xterm.c enhanced to
4980 properly handle all different window areas.
4981
4982 * dispextern.h (remember_mouse_glyph): Add prototype.
4983
4984 * xterm.c (glyph_rect, remember_mouse_glyph): Remove X versions.
4985 (note_mouse_movement, XTmouse_position): Use generic
4986 remember_mouse_glyph, add last_mouse_glyph arg.
4987
4988 * w32term.c (note_mouse_movement): Fix last_mouse_glyph check.
4989 (glyph_rect, remember_mouse_glyph): Remove w32 specific versions.
4990 (note_mouse_movement, w32_mouse_position): Use generic
4991 remember_mouse_glyph, add last_mouse_glyph arg.
4992
4993 * macterm.c (note_mouse_movement): Add call to remember_mouse_glyph.
4994 (glyph_rect, remember_mouse_glyph): Remove mac specific versions.
4995 (XTmouse_position): Adapt to use generic remember_mouse_glyph
4996 instead of pixel_to_glyph_coords.
4997
4998 * window.c (coordinates_in_window): Fix x position for ON_RIGHT_MARGIN.
4999 Fix x position for ON_TEXT when left margin width > 0.
5000
5001 2005-10-11 Kim F. Storm <storm@cua.dk>
5002
5003 * window.c (coordinates_in_window): Fix y position for ON_SCROLL_BAR.
5004
5005 * keyboard.c (make_lispy_position): Fix buffer calculations for
5006 mouse click or movement in right fringe and the margins.
5007
5008 2005-10-11 Juanma Barranquero <lekktu@gmail.com>
5009
5010 * image.c (fn_jpeg_stdio_src): Don't define it.
5011 (init_jpeg_functions): Don't initialize `fn_jpeg_stdio_src'.
5012 (our_common_init_source): Rename from `our_init_source'.
5013 (our_common_term_source): Rename from `our_term_source'.
5014 (our_memory_fill_input_buffer): Rename from
5015 `our_fill_input_buffer'.
5016 (our_memory_skip_input_data): Rename from `our_skip_input_data'.
5017 (jpeg_memory_src): Use the new names.
5018 (struct jpeg_stdio_mgr): New struct.
5019 (JPEG_STDIO_BUFFER_SIZE): New constant.
5020 (our_stdio_fill_input_buffer, our_stdio_skip_input_data)
5021 (jpeg_file_src): New functions.
5022 (jpeg_load): Use `jpeg_file_src' instead of `fn_jpeg_stdio_src'.
5023
5024 2005-10-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5025
5026 * macterm.c (PER_CHAR_METRIC): Remove unused macro.
5027 (fm_font_family_alist): New variable.
5028 (syms_of_macterm): Initialize and staticpro it.
5029 (decode_mac_font_name): Replace '-' in family name with '_' if it
5030 occurs just once. Lower family name.
5031 (parse_x_font_name): Rename from x_font_name_to_mac_font_name.
5032 All uses changed. Remove argument MF and code conversion for it.
5033 Add argument SIZE. Rename argument MF_DECODED to FAMILY, and CS
5034 to CHARSET. Parse font size. Lower family name. Return integer
5035 value for status of parsing.
5036 (init_font_name_table) [USE_ATSUI]: Use decode_mac_font_name.
5037 Don't use Fdowncase because family name is already lowered by
5038 decode_mac_font_name.
5039 (init_font_name_table): Always call decode_mac_font_name.
5040 Add pair of family name and its reference to fm_font_family_alist.
5041 (mac_clear_font_name_table): Clear fm_font_family_alist.
5042 (XLoadQueryFont): Move font size parsing part to parse_x_font_name.
5043 Lookup fm_font_family_alist to get font family reference.
5044 (XLoadQueryFont) [USE_ATSUI]: Don't use Fdowncase because family
5045 name is already lowered by parse_x_font_name.
5046
5047 2005-10-11 Kim F. Storm <storm@cua.dk>
5048
5049 * xterm.c (glyph_rect): Return 0 if position is outside text area.
5050
5051 * keyboard.c (make_lispy_position): Fix buffer position calculation for
5052 mouse click or movement in fringe.
5053
5054 2005-10-10 Jason Rumney <jasonr@gnu.org>
5055
5056 * xterm.c (remember_mouse_glyph): New function.
5057 (note_mouse_movement): Use it to remember the current glyph if changed.
5058 (XTmouse_position): Fix calculation of fake glyph under mouse.
5059 Move code to calculate glyph under mouse into remember_mouse_glyph.
5060
5061 2005-10-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5062
5063 * emacs.c (USAGE3, standard_args): -nb => -nbi.
5064
5065 2005-10-10 Juanma Barranquero <lekktu@gmail.com>
5066
5067 * frame.c (Fredirect_frame_focus): Fix typos in docstring.
5068 (next_frame, prev_frame, set_term_frame_name): Make static.
5069
5070 * window.c (Fwindow_tree): Fix spelling.
5071
5072 2005-10-09 Romain Francoise <romain@orebokech.com>
5073
5074 * window.c (Fwindow_end): Don't try to redisplay if non-interactive.
5075
5076 2005-10-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5077
5078 * emacs.c (standard_args): Remove options -i, -itype, --icon-type.
5079 Add options -nb, --no-bitmap-icon.
5080
5081 * xfns.c (Fx_create_frame): Make bitmapIcon have default on.
5082
5083 2005-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5084
5085 * macgui.h (MAX_CLIP_RECTS): New define.
5086 (struct _XGC): New member clip_region.
5087 (struct _XGC) [MAC_OSX && USE_ATSUI]: New members n_clip_rects and
5088 clip_rects.
5089
5090 * macterm.c (GC_CLIP_REGION): New macro.
5091 (saved_port_clip_region): New variable.
5092 (mac_begin_clip, mac_end_clip): New functions.
5093 (XDrawLine, mac_erase_rectangle, mac_draw_bitmap, XFillRectangle)
5094 (mac_draw_rectangle, mac_draw_string_common, mac_copy_area)
5095 (mac_copy_area_with_mask, mac_scroll_area): Use them.
5096 (mac_set_clip_rectangle, mac_reset_clipping): Remove functions.
5097 [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
5098 [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Specify kATSLineFractDisable.
5099 (mac_draw_string_common) [MAC_OSX && USE_ATSUI]: Clip to clipping
5100 rectangles stored in gc.
5101 (XFreeGC): Dispose of clipping region.
5102 (mac_set_clip_rectangles, mac_reset_clip_rectangles): New functions.
5103 (x_draw_fringe_bitmap, x_set_glyph_string_clipping)
5104 (x_draw_relief_rect, x_draw_box_rect, x_draw_stretch_glyph_string)
5105 (x_draw_glyph_string, x_clip_to_row, x_draw_hollow_cursor)
5106 (x_draw_bar_cursor): Use them.
5107 (x_set_glyph_string_clipping): Use get_glyph_string_clip_rects to
5108 get multiple clipping rectangles.
5109
5110 * macterm.h (mac_term_init): Add types to extern.
5111 (struct mac_output): Remove members mWP and pending_menu_activation.
5112 Put members scroll_bar_foreground_pixel and
5113 scroll_bar_background_pixel in #if 0.
5114 (FRAME_MAC_WINDOW, FRAME_X_WINDOW): Use window_desc.
5115
5116 * xfaces.c (x_create_gc, x_free_gc) [MAC_OS]: Add BLOCK_INPUT.
5117 Add debugging code.
5118
5119 2005-10-08 Kim F. Storm <storm@cua.dk>
5120
5121 * window.c (window_tree, Fwindow_tree): Rename fns added 2005-10-04.
5122
5123 2005-10-07 Kim F. Storm <storm@cua.dk>
5124
5125 * dispnew.c (redraw_overlapped_rows, redraw_overlapping_rows)
5126 [!HAVE_WINDOW_SYSTEM]: Don't declare them...
5127 (update_window) [!HAVE_WINDOW_SYSTEM]: ...and don't call them.
5128
5129 2005-10-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5130
5131 * dispextern.h (struct glyph_string): Rename member for_overlaps_p
5132 to for_overlaps. Now occupy 3 bits.
5133 (OVERLAPS_PRED, OVERLAPS_SUCC, OVERLAPS_BOTH)
5134 (OVERLAPS_ERASED_CURSOR): New defines.
5135 (struct redisplay_interface): Add new OVERLAPS arg to member
5136 fix_overlapping_area.
5137 (x_fix_overlapping_area): Add new OVERLAPS arg.
5138 (get_glyph_string_clip_rects): Add extern.
5139
5140 * dispnew.c (redraw_overlapping_rows):
5141 Call rif->fix_overlapping_area with new OVERLAPS arg as redrawn part.
5142
5143 * xdisp.c: Rename member for_overlaps_p in struct glyph_string to
5144 for_overlaps.
5145 (get_glyph_string_clip_rects): New function created from
5146 get_glyph_string_clip_rect. Set clipping rectangles according to the
5147 value of for_overlaps. Enable to store multiple clipping rectangles.
5148 (get_glyph_string_clip_rect): Use get_glyph_string_clip_rects.
5149 (fill_composite_glyph_string, fill_glyph_string, draw_glyphs):
5150 Rename argument OVERLAPS_P to OVERLAPS. All uses in macros changed.
5151 (x_fix_overlapping_area): Add OVERLAPS arg. Pass it to draw_glyphs.
5152 (draw_phys_cursor_glyph): Set width of erased cursor to use it for
5153 calculating clipping rectangles later. Call x_fix_overlapping_area
5154 with new OVERLAPS arg to draw only erased cursor area.
5155 (expose_overlaps): Call x_fix_overlapping_area with new OVERLAPS arg
5156 to draw overlaps in both preceding and succeeding rows.
5157
5158 * xterm.c, w32term.c, macterm.c: Rename member for_overlaps_p in
5159 struct glyph_string to for_overlaps.
5160
5161 2005-10-04 Richard M. Stallman <rms@gnu.org>
5162
5163 * alloc.c (refill_memory_reserve): Conditionalize the body,
5164 not the function's existence.
5165
5166 2005-10-04 Kim F. Storm <storm@cua.dk>
5167
5168 * window.c (window_split_tree): New function.
5169 (Fwindow_split_tree): New defun.
5170 (syms_of_window): Defsubr it.
5171
5172 2005-10-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5173
5174 * macterm.c (mac_invert_rectangle): New function.
5175 (XTflash): Use it.
5176
5177 2005-10-04 Stefan Monnier <monnier@iro.umontreal.ca>
5178
5179 * regex.h (re_char): Don't expose it in the interface.
5180 (re_set_whitespace_regexp): Adjust the arg's type to not use it.
5181
5182 * regex.c (re_char): Move it back here.
5183 (re_set_whitespace_regexp): Change the arg's type to not use it.
5184
5185 * keyboard.c (make_lispy_event): If point has moved between down and up
5186 event, make it a drag, not a click, to mirror what
5187 mouse-drag-region expects.
5188
5189 2005-10-02 Dan Nicolaescu <dann@ics.uci.edu>
5190
5191 * lisp.h (fatal): Undo previous change.
5192 * term.c (fatal): Undo previous change.
5193
5194 2005-10-01 Richard M. Stallman <rms@gnu.org>
5195
5196 * xfaces.c (face_color_gray_p): Colors close to black count as gray.
5197
5198 2005-10-01 Kim F. Storm <storm@cua.dk>
5199
5200 * xdisp.c (try_window): Skip scroll-margin check if ZV is visible.
5201
5202 2005-10-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5203
5204 * keyboard.c (init_keyboard) [MAC_OSX]: Don't install SIGINT handler.
5205
5206 * macfns.c (start_hourglass): Apply 2005-05-07 change for xfns.c.
5207 (x_create_tip_frame) [GLYPH_DEBUG]: Uncomment debugging code.
5208 (Fx_create_frame, x_create_tip_frame) [USE_ATSUI]:
5209 Try ATSUI-compatible 12pt Monaco font first.
5210
5211 * macgui.h (struct _XCharStruct): New member valid_p.
5212 (STORE_XCHARSTRUCT): Set valid_p.
5213 (struct MacFontStruct) [USE_ATSUI]: New member mac_style.
5214
5215 * macterm.c (mac_draw_string_common, x_per_char_metric)
5216 (mac_compute_glyph_string_overhangs, init_font_name_table)
5217 (XLoadQueryFont, mac_unload_font) [USE_ATSUI]: Add ATSUI support.
5218 (atsu_get_text_layout_with_text_ptr) [USE_ATSUI]: New function.
5219 (x_draw_glyph_string_background)
5220 (x_draw_glyph_string_foreground) [MAC_OS8 && USE_ATSUI]: Don't use
5221 XDrawImageString. Always draw background and foreground separately.
5222 (x_draw_glyph_string_foreground) [USE_ATSUI]: Don't use 8-bit
5223 functions for one-byte chars when using ATSUI-compatible fonts.
5224 (atsu_font_id_hash) [USE_ATSUI]: New variable.
5225 (syms_of_macterm) [USE_ATSUI]: Initialize and staticpro it.
5226 (XLoadQueryFont): Set min_byte1, max_byte1, min_char_or_byte2, and
5227 max_char_or_byte2 more in detail.
5228 (quit_char_comp, mac_check_for_quit_char) [MAC_OSX]: Remove functions.
5229
5230 2005-09-30 Dan Nicolaescu <dann@ics.uci.edu>
5231
5232 * image.c (slurp_file, xbm_read_bitmap_data): Cast to the correct type.
5233 * xterm.c (handle_one_xevent, handle_one_xevent): Likewise.
5234
5235 * unexelf.c (fatal): Fix prototype.
5236
5237 * term.c (fatal): Implement using varargs.
5238
5239 * regex.c (re_char): Move typedef ...
5240 * regex.h (re_char): ... here.
5241 (re_iswctype, re_wctype, re_set_whitespace_regexp): New prototypes.
5242
5243 * emacs.c (malloc_set_state): Fix return type.
5244 (endif): Fix type.
5245
5246 * lisp.h (fatal): Add argument types.
5247
5248 * dispextern.h (fatal): Delete prototype.
5249
5250 * systime.h (make_time): Prototype moved from ...
5251 * editfns.c (make_time): ... here.
5252
5253 * editfns.c: Move systime.h include after lisp.h.
5254 * dired.c:
5255 * xsmfns.c:
5256 * process.c: Likewise.
5257
5258 * alloc.c (old_malloc_hook, old_realloc_hook, old_realloc_hook):
5259 Add parameter types.
5260 (__malloc_hook, __realloc_hook, __free_hook): Fix prototypes.
5261 (emacs_blocked_free): Change definition to match __free_hook.
5262 (emacs_blocked_malloc): Change definition to match __malloc_hook.
5263 (emacs_blocked_realloc): Change definition to match __realloc_hook.
5264
5265 2005-09-30 Romain Francoise <romain@orebokech.com>
5266
5267 * minibuf.c (Fread_buffer): Follow convention for reading from the
5268 minibuffer with a default value. Doc fix.
5269
5270 2005-09-29 Juri Linkov <juri@jurta.org>
5271
5272 * editfns.c (Fmessage, Fmessage_box, Fmessage_or_box):
5273 Rename argument name `string' to `format-string'.
5274 (Fformat): Doc fix.
5275
5276 2005-09-28 Kim F. Storm <storm@cua.dk>
5277
5278 * image.c (gif_load): Fix size of allocated image buffer
5279 for images where a sub-image may be larger than the image's
5280 total height/width specifications.
5281
5282 2005-09-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5283
5284 * macgui.h (struct _XCharStruct): Each member now takes short value.
5285
5286 2005-09-27 Dan Nicolaescu <dann@ics.uci.edu>
5287
5288 * xfaces.c (lookup_derived_face): Add parameter type.
5289
5290 * xdisp.c (cursor_row_fully_visible_p): Add parameter type.
5291
5292 * marker.c (verify_bytepos): Add parameter type.
5293
5294 * process.c (get_operating_system_release): Move prototype ...
5295
5296 * systime.h (get_operating_system_release): ... here.
5297
5298 * xterm.c (handle_one_xevent): Refer to union field to match the
5299 type required by the function definition.
5300 (set_vertical_scroll_bar): Move prototype ...
5301
5302 * xterm.h: ... here.
5303
5304 * fns.c (internal_equal, seed_random): Fix prototypes.
5305 (internal_equal): Add missing parameter.
5306
5307 2005-09-25 Richard M. Stallman <rms@gnu.org>
5308
5309 * keyboard.c (update_menu_bindings): Variable deleted.
5310 (syms_of_keyboard): Don't defvar it.
5311 (parse_menu_item): Don't test it.
5312
5313 2005-09-23 Richard M. Stallman <rms@gnu.org>
5314
5315 * editfns.c (Fformat): Explicitly test for end of format string
5316 and don't use `index'.
5317
5318 2005-09-23 Dan Nicolaescu <dann@ics.uci.edu>
5319
5320 * s/aix4-2.h (BROKEN_GET_CURRENT_DIR_NAME):
5321 Define BROKEN_GET_CURRENT_DIR_NAME.
5322
5323 * sysdep.c (get_current_dir_name): Also define if
5324 BROKEN_GET_CURRENT_DIR_NAME.
5325
5326 * m/ibmrs6000.h: Test for USG5, not USG5_4.
5327
5328 2005-09-22 Kim F. Storm <storm@cua.dk>
5329
5330 * xdisp.c (message_dolog): Add warning about GC and Lisp strings.
5331 (message2): Fix commentary. Ok to use alloca'ed memory.
5332 Still not ok to use Lisp string data (because of GC).
5333 (set_message): Add comment why GC cannot happen.
5334
5335 2005-09-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5336
5337 * macterm.c (xlfdpat_block_match_1): Fix assertion.
5338 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't add style
5339 variants for a scalable font multiple times.
5340
5341 2005-09-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5342
5343 * process.c (create_process) [RTU || UNIPLUS || DONT_REOPEN_PTY]:
5344 Setup slave tty options before forking.
5345
5346 2005-09-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5347
5348 * gtkutil.c (xg_set_geometry): Do a gtk_window_move if program
5349 positions have been set for the frame (as is done for frames in
5350 special-display-buffer-names).
5351
5352 2005-09-19 Kim F. Storm <storm@cua.dk>
5353
5354 * editfns.c (Fformat): Don't scan past end of format string that
5355 ends in %. Reported by: Johan Bockg\e,Ae\e(Brd.
5356
5357 2005-09-18 Andreas Schwab <schwab@suse.de>
5358
5359 * window.h (struct window): Remove height_fixed_p, no longer set.
5360
5361 * window.c (make_window): Don't initialize height_fixed_p.
5362 (window_fixed_size_p): Don't use it.
5363
5364 2005-09-18 John Paul Wallington <jpw@pobox.com>
5365
5366 * data.c (Fdefalias): Signal an error if SYMBOL is not a symbol.
5367
5368 2005-09-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5369
5370 * Makefile.in (SOME_MACHINE_OBJECTS): Undo previous change.
5371
5372 * macfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
5373 New variables.
5374 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Don't allow multiple
5375 file selection.
5376
5377 * sysdep.c [MAC_OS8]: Don't include stdlib.h. Include sys/param.h.
5378
5379 2005-09-17 Eli Zaretskii <eliz@gnu.org>
5380
5381 * Makefile.in (XMENU_OBJ) [!HAVE_CARBON]: Reinstate variable.
5382 (obj): Use XMENU_OBJ, not a literal xmenu.o.
5383
5384 2005-09-16 Romain Francoise <romain@orebokech.com>
5385
5386 * fileio.c (syms_of_fileio) <write-region-inhibit-fsync>: Doc fix.
5387
5388 2005-09-15 Richard M. Stallman <rms@gnu.org>
5389
5390 * xdisp.c (overlay_arrow_at_row): Add HAVE_WINDOW_SYSTEM conditional.
5391 (display_mode_element): Instead of `lisp_string' and `this',
5392 record `offset' and increment that.
5393 `last_offset' replaces `last'.
5394
5395 * Makefile.in (XMENU_OBJ): Variable deleted.
5396 (obj): Use xmenu.o unconditionally.
5397 (SOME_MACHINE_OBJECTS): Delete xmenu.o.
5398
5399 * emacs.c (main): Don't conditionalize syms_of_xmenu on HAVE_XMENU.
5400
5401 2005-09-15 Kim F. Storm <storm@cua.dk>
5402
5403 * xdisp.c (move_it_vertically): Don't try to fetch byte BEGV-1.
5404 (reseat_at_next_visible_line_start): Likewise (in xassert).
5405
5406 2005-09-14 Romain Francoise <romain@orebokech.com>
5407
5408 * fileio.c (write_region_inhibit_fsync): New variable.
5409 (Fwrite_region): Use it to skip call to fsync.
5410 (syms_of_fileio): Initialize it.
5411
5412 2005-09-14 Kenichi Handa <handa@m17n.org>
5413
5414 * coding.c (code_convert_region_unwind): Argument format changed.
5415 (run_pre_post_conversion_on_str): If pre-write-conversion function
5416 changed the current buffer, delete the new buffer.
5417 (run_pre_write_conversin_on_c_str): Likewise.
5418
5419 * fileio.c (Fexpand_file_name): Check multibyteness of
5420 default_directory.
5421
5422 2005-09-13 Kenichi Handa <handa@m17n.org>
5423
5424 * composite.c (compose_chars_in_text): Delete it.
5425
5426 * composite.h (compose_chars_in_text): Delete extern.
5427
5428 2005-09-13 Kim F. Storm <storm@cua.dk>
5429
5430 * print.c (print_error_message): Fix last change.
5431
5432 2005-09-12 Kim F. Storm <storm@cua.dk>
5433
5434 * composite.c (compose_chars_in_text): Fix setup of `pend'.
5435 Unconditionally reload `ptr' and `pend' after eval.
5436
5437 * xdisp.c (message3): Pass copy of lisp string to message_dolog.
5438
5439 * print.c (print_error_message): Pass copy of caller name to
5440 message_dolog.
5441
5442 * fileio.c (auto_save_error): Pass copy of lisp string to message2.
5443
5444 2005-09-12 Kenichi Handa <handa@m17n.org>
5445
5446 * xdisp.c (display_mode_element): Be sure to make variables THIS
5447 and LISP_STRING point into a string data of ELT.
5448
5449 2005-09-12 Kim F. Storm <storm@cua.dk>
5450
5451 * editfns.c (Ftranslate_region_internal): Reload `tt' after
5452 signal_after_change that may have GC'ed.
5453 (Fmessage, Fmessage_box, Fmessage_or_box): Doc fix.
5454
5455 * keymap.c (Fdescribe_buffer_bindings): Reload `translate'
5456 after insert while runs signal_after_change.
5457
5458 * minibuf.c (Fminibuffer_complete_word): Move `completion_string'
5459 declaration to where it is used.
5460
5461 * w32.c (check_windows_init_file): Fix allocation of error buffer.
5462
5463 * xfns.c (x_encode_text): Declare static. Add FREEP arg.
5464 (x_set_name_internal): Call x_encode_text with new FREEP arg to
5465 know if xfree is needed instead of guessing.
5466
5467 * xterm.h (x_encode_text): Remove prototype.
5468
5469 2005-09-11 Chris Prince <cprince@gmail.com> (tiny change)
5470
5471 * w32term.c (x_bitmap_icon): Load small icons too.
5472
5473 2005-09-10 Romain Francoise <romain@orebokech.com>
5474
5475 * buffer.c (init_buffer): Grow buffer to add directory separator
5476 and terminal zero. Fix typos.
5477
5478 2005-09-10 Eli Zaretskii <eliz@gnu.org>
5479
5480 * buffer.c (init_buffer): Fix error message for failed call to
5481 get_current_dir_name.
5482 (get_current_dir_name): Remove prototype.
5483
5484 * xsmfns.c (get_current_dir_name): Remove prototype.
5485
5486 * lisp.h (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
5487 Add prototype.
5488
5489 * sysdep.c [WINDOWSNT]: Add prototype for getwd.
5490 Don't #undef NULL after including blockinput.h.
5491
5492 * config.in: Regenerated.
5493
5494 2005-09-10 Giuseppe Scrivano <gscrivano@gmail.com>
5495
5496 Remove the MAXPATHLEN limitations:
5497
5498 * sysdep.c (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
5499 New function.
5500
5501 * buffer.c (init_buffer): Use it.
5502
5503 * xsmfns.c (smc_save_yourself_CB): Ditto.
5504
5505 2005-09-09 Kim F. Storm <storm@cua.dk>
5506
5507 * doc.c (Fsubstitute_command_keys): Lookup key binding for
5508 commands that are remapped from some other command.
5509
5510 * xdisp.c (try_window_reusing_current_matrix): Clear mode_line_p
5511 flag in disabled rows below the window.
5512
5513 * frame.h (struct frame): New member updated_p.
5514
5515 * xdisp.c (redisplay_internal): Mark updated frames in new updated_p
5516 member. Remove local `updated' array and associated variables.
5517
5518 2005-09-07 Kim F. Storm <storm@cua.dk>
5519
5520 * xdisp.c (handle_display_prop): Respect overlay window property.
5521
5522 * xdisp.c (try_window): Remove superfluous cursor_height calculation.
5523 Fixes crash reported by YAMAMOTO Mitsuharu.
5524
5525 2005-09-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5526
5527 * macterm.c (struct xlfdpat_block, struct xlfdpat): New structs.
5528 (xlfdpat_destroy, xlfdpat_create, xlfdpat_exact_p)
5529 (xlfdpat_block_match_1, xlfdpat_match): New functions.
5530 (xlfdpat_block_match): New macro.
5531 (mac_to_x_fontname): Don't use tolower for non-ASCII characters.
5532 (x_font_name_to_mac_font_name): Set coding.dst_multibyte to 0.
5533 (add_font_name_table_entry): Increase font_name_table_size more
5534 rapidly.
5535 (mac_c_string_match): Remove function.
5536 (mac_do_list_fonts): Use XLFD pattern match instead of regular
5537 expression match.
5538
5539 * xfaces.c (xstrlwr): Don't use tolower for non-ASCII characters.
5540
5541 2005-09-03 Richard M. Stallman <rms@gnu.org>
5542
5543 * xdisp.c (redisplay_internal): Make UPDATED as long as needed.
5544 (move_it_in_display_line_to): Stop after last char on line even
5545 on a windowing terminal, if that's the specified stop position.
5546
5547 * fns.c (Fsort): Doc fix.
5548
5549 * editfns.c (Fpropertize): Don't insist that properties be symbols.
5550
5551 2005-09-02 Stefan Monnier <monnier@iro.umontreal.ca>
5552
5553 * dired.c (directory_files_internal_unwind, directory_files_internal)
5554 (file_name_completion): Use a Save_Value object rather than a cons of
5555 two 16bit ints to store the DIR*.
5556 (directory_files_internal, file_name_completion): Handle both EINTR and
5557 EAGAIN consistently after `readdir'.
5558
5559 2005-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
5560
5561 * intervals.c (update_interval): Add position info in error.
5562
5563 * dispnew.c (window_to_frame_hpos, update_window):
5564 Avoid gcc warning about unused variable `f'.
5565
5566 2005-08-31 Jason Rumney <jasonr@gnu.org>
5567
5568 * w32menu.c (add_menu_item): If unicode_append_menu returns an
5569 error, revert to using AppendMenu.
5570
5571 2005-08-31 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5572
5573 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN): Remove argument.
5574 All uses changed.
5575 [MAC_OS] (XPutPixel, XGetPixel): Add efficient versions for common
5576 cases.
5577 (x_create_x_image_and_pixmap) [MAC_OS]: Don't call x_destroy_x_image.
5578 [MAC_OS] (find_image_fsspec) [!MAC_OSX]: Don't use FSRef.
5579 Use posix_pathname_to_fsspec.
5580 [MAC_OS] (xpm_load_image): Fill in background_transparent field
5581 while we have mask.
5582
5583 * macgui.h [!TARGET_API_MAC_CARBON] (GetPixDepth): New define.
5584
5585 * macterm.h (PIX_MASK_DRAW, PIX_MASK_RETAIN): Move defines to image.c.
5586
5587 2005-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
5588
5589 * syntax.c (update_syntax_table): Properly reproduce the special +1
5590 setting of e_property at the end of the buffer when bumping into the
5591 INTERVALS_AT_ONCE limit.
5592
5593 2005-08-27 Eli Zaretskii <eliz@gnu.org>
5594
5595 * emacs.c (USAGE1): Fix the description of the -Q option.
5596
5597 2005-08-26 Stefan Monnier <monnier@iro.umontreal.ca>
5598
5599 * xdisp.c (pos_visible_p): Yet another int/Lisp_Object mixup (YAILOM).
5600
5601 2005-08-26 Kim F. Storm <storm@cua.dk>
5602
5603 * xdisp.c (resize_mini_window): Fix 2005-08-20 change.
5604 Don't move PT to new window start.
5605
5606 2005-08-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5607
5608 * keyboard.c (kbd_buffer_get_event) [MAC_OS]: Make events for
5609 ICONIFY/DEICONIFY_EVENT.
5610
5611 * macterm.c (mac_copy_area, mac_copy_area_with_mask):
5612 Restore background color.
5613 (mac_handle_visibility_change): New function.
5614 (x_make_frame_invisible, x_iconify_frame)
5615 (XTread_socket) [!USE_CARBON_EVENTS]: Use it.
5616 [USE_CARBON_EVENTS] (mac_handle_window_event)
5617 (install_window_handler): Handle visibility change events.
5618 (x_make_frame_visible): Don't reposition window if it is iconified
5619 or asked for visible before. Select and uncollapse window when it
5620 is made visible.
5621 (x_make_frame_invisible): Don't reset x_highlight_frame.
5622 (x_iconify_frame): Likewise. Make invisible frame visible before
5623 it is iconified.
5624 (read_socket_inev): Move variable outside #if USE_CARBON_EVENTS.
5625 (do_window_update): Don't change visibility of invisible frame.
5626
5627 2005-08-22 Juri Linkov <juri@jurta.org>
5628
5629 * term.c (turn_on_face): Check for TS_set_foreground and
5630 TS_set_background depending on standout_mode. Simplify.
5631
5632 2005-08-21 Kim F. Storm <storm@cua.dk>
5633
5634 * fringe.c (update_window_fringes): Only put TOP and BOTTOM
5635 bitmaps on fully visible rows.
5636
5637 * fringe.c (update_window_fringes): Replace FORCE_P arg with
5638 KEEP_CURRENT_P arg; if non-zero, don't update current row fringes,
5639 and return 0.
5640
5641 * xdisp.c (redisplay_window): Call update_window_fringes with
5642 KEEP_CURRENT_P non-0 if we are going to refresh fringes later.
5643
5644 2005-08-20 Richard M. Stallman <rms@gnu.org>
5645
5646 * xdisp.c (display_echo_area_1): Get display start pos from w->start.
5647 (resize_mini_window): Set w->start, and PT, so as to display the tail
5648 end of the buffer, if it doesn't all fit.
5649
5650 2005-08-18 Kim F. Storm <storm@cua.dk>
5651
5652 * xdisp.c (calc_pixel_width_or_height): Use actual display
5653 resolution when available instead of Vdisplay_pixels_per_inch.
5654
5655 2005-08-17 Kim F. Storm <storm@cua.dk>
5656
5657 * xdisp.c (pos_visible_p): Adjust X value if window is hscrolled.
5658
5659 * dispnew.c (buffer_posn_from_coords): Check that target row is
5660 within matrix.
5661
5662 2005-08-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5663
5664 * xterm.c (x_wm_set_icon_pixmap): Move GTK specific code to
5665 xg_set_frame_icon and call it.
5666
5667 * gtkutil.c (xg_set_frame_icon): New function.
5668
5669 * gtkutil.h (xg_set_frame_icon): Declare it.
5670
5671 2005-08-16 Kim F. Storm <storm@cua.dk>
5672
5673 * dispnew.c (increment_row_positions): Skip non-enabled rows.
5674
5675 * window.c (SAVED_WINDOW_VECTOR_SIZE): Remove dangerous define.
5676 (Fcurrent_window_configuration): Use VECSIZE macro instead.
5677
5678 2005-08-15 Richard M. Stallman <rms@gnu.org>
5679
5680 * xdisp.c (message3_nolog): Clear echo_message_buffer.
5681
5682 2005-08-15 Kim F. Storm <storm@cua.dk>
5683
5684 * lisp.h (QUIT) [!SYNC_INPUT]: Throw t to Vthrow_on_input.
5685
5686 * process.c (deactivate_process, status_notify, read_process_output)
5687 (update_status, status_convert, decode_status, allocate_pty)
5688 (make_process, remove_process, list_processes_1)
5689 (create_process_1, unwind_request_sigio, read_process_output)
5690 (send_process, keyboard_bit_set): Declare static.
5691 (Fdelete_process): Simplify. Pass process to status_notify, so we
5692 don't try to read output from it.
5693 (status_notify): New arg deleting_process--don't try to read
5694 output from that process.
5695
5696 * lisp.h (deactivate_process, status_notify, read_process_output):
5697 Remove prototypes.
5698
5699 2005-08-14 Richard M. Stallman <rms@gnu.org>
5700
5701 * image.c (syms_of_image): Init Qxbm, Qpbm before calling
5702 define_image_type.
5703
5704 2005-08-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5705
5706 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask): New function.
5707 (xg_get_image_for_pixmap): Move some code to
5708 xg_get_pixbuf_from_pix_and_mask, and call it.
5709
5710 * gtkutil.h (xg_get_pixbuf_from_pix_and_mask): Declare.
5711
5712 * xterm.c (x_wm_set_icon_pixmap): Call xg_get_pixbuf_from_pix_and_mask
5713 to get an GTK icon and set it with GTK functions to avoid having GTK
5714 override an icon set with just X functions.
5715
5716 2005-08-11 Richard M. Stallman <rms@gnu.org>
5717
5718 * image.c (syms_of_image): Init image_types here, and call
5719 define_image_type.
5720 (init_image): Not here.
5721
5722 2005-08-09 Richard M. Stallman <rms@gnu.org>
5723
5724 * bytecode.c (BYTE_CODE_QUIT): Throw t to Vthrow_on_input.
5725
5726 * lisp.h (QUIT): Throw t to Vthrow_on_input.
5727
5728 2005-08-09 Thien-Thi Nguyen <ttn@gnu.org>
5729
5730 * floatfns.c (Fexpt): Use floats for negative exponent.
5731
5732 2005-08-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5733
5734 * gtkutil.c (xg_modify_menubar_widgets): Remove semicolon that
5735 should not be there, causing menu display errors with GTK 2.6.9.
5736
5737 2005-08-07 Richard M. Stallman <rms@gnu.org>
5738
5739 * floatfns.c (Fexpt): Undo previous change.
5740
5741 * dispnew.c (Fframe_or_buffer_changed_p): Take an arg
5742 so it can be used with various state vectors.
5743
5744 * emacs.c (endif): Convert -script into -scriptload.
5745 (standard_args): Add -scriptload. Allow -basic-display with one dash.
5746
5747 * fns.c (syms_of_fns): Add `emacs' to features.
5748
5749 * term.c (set_terminal_modes): If no TS_termcap_modes string,
5750 output newlines to scroll the old screen contents off the screen.
5751
5752 2005-08-06 Thien-Thi Nguyen <ttn@gnu.org>
5753
5754 * floatfns.c (Fexpt): Use floats for negative exponent.
5755 Reported by D Goel.
5756
5757 2005-08-02 Richard M. Stallman <rms@gnu.org>
5758
5759 * frame.c (Fframe_char_width): Doc fix.
5760
5761 2005-07-30 Juanma Barranquero <lekktu@gmail.com>
5762
5763 * xdisp.c (syms_of_xdisp) <redisplay-end-trigger-functions>:
5764 Defvar it.
5765
5766 2005-07-28 Juanma Barranquero <lekktu@gmail.com>
5767
5768 * w32fns.c (my_set_window_pos, my_show_window): Don't declare.
5769 (my_create_window, my_create_tip_window): Make static.
5770
5771 * w32term.c (my_show_window, my_set_window_pos, my_set_focus)
5772 (my_set_foreground_window, my_destroy_window): Make static.
5773
5774 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
5775
5776 Merge gnulib getopt implementation into Emacs.
5777
5778 * s/cygwin.h (C_SWITCH_SYSTEM): Remove, since gettext.h is
5779 now part of lib-src.
5780
5781 2005-07-26 Stefan Monnier <monnier@iro.umontreal.ca>
5782
5783 * eval.c (Fdefvar): Allow (defvar enable-multibyte-characters).
5784
5785 2005-07-25 Jason Rumney <jasonr@gnu.org>
5786
5787 * w32menu.c (w32_menu_display_help): Suppress tooltip when
5788 navigating menus with the keyboard.
5789
5790 2005-07-23 Richard M. Stallman <rms@gnu.org>
5791
5792 * insdel.c (syms_of_insdel): staticpro combine_after_change_buffer.
5793
5794 * bytecode.c (MAYBE_GC): Test gc_cons_threshold and
5795 gc_relative_threshold, one by one.
5796
5797 * keyboard.c (read_char): Test gc_cons_threshold.
5798 (syms_of_keyboard): staticpro Qecho_area_clear_hook.
5799
5800 * eval.c (Feval, Ffuncall): Test gc_cons_threshold and
5801 gc_relative_threshold, one by one.
5802
5803 * alloc.c (gc_cons_threshold): Not static.
5804 (gc_cons_combined_threshold): Var deleted.
5805 (gc_relative_threshold): New variable.
5806 (Fgarbage_collect, init_alloc_once): Compute gc_relative_threshold
5807 instead of gc_cons_combined_threshold.
5808
5809 * lisp.h (gc_cons_threshold, gc_relative_threshold): Declare.
5810 (gc_cons_combined_threshold): Declaration deleted.
5811
5812 2005-07-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5813
5814 * mac.c: Don't include stdlib.h or string.h.
5815 (Fdo_applescript, Fmac_file_name_to_posix)
5816 (Fmac_file_name_to_posix): Doc fixes.
5817 [TARGET_API_MAC_CARBON] (Fmac_get_preference)
5818 (Fmac_code_convert_string): Likewise.
5819 [MAC_OSX] (init_mac_osx_environment): Fall back on terminal mode
5820 if the executable is not contained in a bundle.
5821
5822 * macfns.c: Don't include stdlib.h or string.h. Include atimer.h.
5823 (gray_width, gray_height): Remove defines.
5824 (gray_bits, gray_bitmap_width, gray_bitmap_height)
5825 (gray_bitmap_bits): Remove variables.
5826 (lispy_function_keys): Remove extern.
5827 (free_frame_menubar): Add extern.
5828 (x_window_to_frame): Remove function.
5829 (unwind_create_tip_frame): Add declaration.
5830 (x_set_name_internal): New function.
5831 (x_set_name, x_set_title): Use it.
5832 (Fx_create_frame, Fx_display_grayscale_p, Fx_display_pixel_width)
5833 (Fx_display_pixel_height, Fx_display_planes)
5834 (Fx_display_color_cells, Fx_server_max_request_size)
5835 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
5836 (Fx_display_mm_height, Fx_display_mm_width)
5837 (Fx_display_backing_store, Fx_display_visual_class)
5838 (Fx_display_save_under, Fx_synchronize, Fx_show_tip): Doc fixes.
5839
5840 * macmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
5841
5842 * macselect.c (Fx_own_selection_internal): Follow error conventions.
5843 (Fx_get_selection_internal, Fx_selection_owner_p)
5844 (Fx_selection_exists_p): Doc fixes.
5845 (syms_of_macselect) <selection-converter-alist>: Likewise.
5846
5847 2005-07-21 Juanma Barranquero <lekktu@gmail.com>
5848
5849 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
5850
5851 * ccl.c (Fregister_ccl_program): Fix typos in docstring.
5852 (Fccl_execute_on_string): Likewise; add usage info.
5853
5854 * composite.c (Fcompose_region_internal)
5855 (Fcompose_string_internal):
5856 Improve argument/docstring consistency.
5857
5858 * minibuf.c (Fminibuffer_prompt_end, Feval_minibuffer):
5859 Fix typos in docstrings.
5860
5861 * textprop.c (Fnext_char_property_change)
5862 (Fprevious_char_property_change): Doc fixes.
5863
5864 * window.c (Fset_window_margins, Fset_window_fringes):
5865 Improve argument/docstring consistency.
5866
5867 * xfaces.c (Finternal_lisp_face_p): Doc fix.
5868
5869 2005-07-21 Andreas Schwab <schwab@suse.de>
5870
5871 * eval.c (restore_stack_limits): Return a value.
5872
5873 2005-07-20 Juanma Barranquero <lekktu@gmail.com>
5874
5875 * eval.c (Fdefvar): Doc fix.
5876
5877 2005-07-20 Kim F. Storm <storm@cua.dk>
5878
5879 * fileio.c (Fdo_auto_save, do_auto_save_unwind):
5880 Use make_save_value to unwind protect stream.
5881
5882 * lread.c (Fload, load_unwind):
5883 Use make_save_value to unwind protect stream.
5884
5885 2005-07-19 Juanma Barranquero <lekktu@gmail.com>
5886
5887 * eval.c (Fprog2, Fcalled_interactively_p),
5888 (syms_of_eval) <debug-on-quit>: Doc fixes.
5889 (syms_of_eval) <max-specpdl-size>:
5890 (Finteractive_p): Fix typos in docstrings.
5891
5892 2005-07-19 Kim F. Storm <storm@cua.dk>
5893
5894 * w32fns.c (Vx_hand_shape): Variable removed.
5895 (syms_of_w32fns): Intern and staticpro Qw32_charset_default.
5896
5897 2005-07-19 Kenichi Handa <handa@m17n.org>
5898
5899 * fns.c (Fstring_as_multibyte): Escape backslashes in the docstring.
5900
5901 2005-07-18 Stefan Monnier <monnier@iro.umontreal.ca>
5902
5903 * buffer.h (Fgenerate_new_buffer_name): Declare (for use in coding.c).
5904
5905 2005-07-18 Kim F. Storm <storm@cua.dk>
5906
5907 * frame.h (struct frame): New member already_hscrolled_p.
5908
5909 * xdisp.c (redisplay_internal): Only try to hscroll each frame once
5910 to avoid redisplay looping hscrolling back and forth ad infinitum.
5911
5912 2005-07-18 Juri Linkov <juri@jurta.org>
5913
5914 * buffer.c (scroll-up-aggressively, scroll-down-aggressively):
5915 * keymap.c (Fminor_mode_key_binding):
5916 * macterm.c (mac-emulate-three-button-mouse):
5917 Delete duplicate duplicate words.
5918
5919 2005-07-18 Ken Raeburn <raeburn@gnu.org>
5920
5921 * minibuf.c (Ftest_completion): Fix odd syntax in test.
5922
5923 2005-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5924
5925 * macfns.c (x_set_cursor_color): Use XSetBackground and XSetForeground.
5926
5927 * macgui.h (struct _XGC): New struct.
5928 (GC): Use it.
5929 (GCForeground, GCBackground, GCFont): Use X11 mask values.
5930 (XCreateGC, XParseGeometry): Move externs to macterm.h.
5931
5932 * macterm.c (x_bitmap_icon, x_make_frame_visible): Remove declarations.
5933 (XSetFont): Add declaration.
5934 (mac_set_forecolor, mac_set_backcolor, mac_set_colors):
5935 Remove functions.
5936 (GC_FORE_COLOR, GC_BACK_COLOR, GC_FONT, MAC_WINDOW_NORMAL_GC):
5937 New defines.
5938 (XDrawLine, mac_draw_line_to_pixmap, XClearWindow)
5939 (mac_draw_bitmap, XCreatePixmapFromBitmapData, XFillRectangle)
5940 (mac_draw_rectangle, mac_draw_string_common, mac_scroll_area):
5941 Use them.
5942 (mac_erase_rectangle): New function.
5943 (XClearArea, x_draw_fringe_bitmap, x_clear_glyph_string_rect)
5944 (x_draw_stretch_glyph_string): Use it.
5945 (XChangeGC, XCreateGC, XGetGCValues, XSetForeground)
5946 (XSetBackground, XSetFont): Adjust for new GC implementation.
5947 (x_draw_fringe_bitmap, x_draw_box_rect): Use GC to set colors.
5948 (XTset_vertical_scroll_bar): Clear area under scroll bar.
5949
5950 * macterm.h (struct mac_display_info): Change types of
5951 scratch_cursor_gc black_relief.gc, and white_relief.gc to GC.
5952 (XCreateGC, XParseGeometry): Move externs from macgui.h.
5953
5954 * xfaces.c [MAC_OS] (XCreateGC): Remove extern.
5955
5956 2005-07-16 Richard M. Stallman <rms@gnu.org>
5957
5958 * buffer.c (Fmake_overlay): Doc fix.
5959
5960 2005-07-16 Eli Zaretskii <eliz@gnu.org>
5961
5962 * w32proc.c (syms_of_ntproc): staticpro Qhigh, Qlow,
5963 Vw32_valid_locale_ids, and Vw32_valid_codepages.
5964
5965 2005-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5966
5967 * mac.c [TARGET_API_MAC_CARBON] (Fmac_code_convert_string):
5968 Use Fstring_as_unibyte instead of string_make_unibyte.
5969
5970 2005-07-15 Richard M. Stallman <rms@gnu.org>
5971
5972 * xdisp.c (select_frame_for_redisplay): Use find_symbol_value.
5973
5974 2005-07-15 Kim F. Storm <storm@cua.dk>
5975
5976 * xdisp.c: Fix redisplay loop in last change.
5977 (IT_POS_VALID_AFTER_MOVE_P): New macro.
5978 (move_it_vertically_backward, move_it_by_lines): Use it.
5979
5980 2005-07-14 Jason Rumney <jasonr@gnu.org>
5981
5982 * w32.c (init_environment): Default HOME directory to user's
5983 appdata directory if possible.
5984
5985 2005-07-14 Kim F. Storm <storm@cua.dk>
5986
5987 * .gdbinit (pitx): Fix output format. Print string charpos.
5988
5989 * lread.c (syms_of_lread): Initialize seen_list.
5990
5991 * search.c (syms_of_search): Staticpro searchbuf.whitespace_regexp.
5992
5993 * syntax.c (syms_of_syntax): Staticpro lisp objects in gl_state.
5994 Staticpro re_match_object.
5995
5996 2005-07-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5997
5998 * macselect.c (get_scrap_target_type_list): Avoid NULL pointer
5999 dereference.
6000
6001 * macterm.c (mac_window_to_frame): Remove duplicate define.
6002
6003 2005-07-14 Kenichi Handa <handa@m17n.org>
6004
6005 * coding.c (code_convert_region_unwind): ARG is changed to a cons.
6006 (code_convert_region): Adjust for the above change.
6007 (set_conversion_work_buffer): If the work buffer is already in
6008 use, generate a new buffer and return it. Otherwise return Qnil.
6009 (run_pre_post_conversion_on_str): Adjust for the above change.
6010 (run_pre_write_conversin_on_c_str): Likewise.
6011
6012 2005-07-13 Kim F. Storm <storm@cua.dk>
6013
6014 * xdisp.c (start_display): Don't reseat to next visible line start
6015 if current start position is in a string or image.
6016 (move_it_vertically_backward): Be sure to move out of strings and
6017 images when moving it2 forward.
6018 (move_it_by_lines): When moving forward, move to next buffer
6019 position if we end up in a string or image. When moving backward,
6020 count rows moved over when moving to start of current row in case
6021 row starts in middle of a string or image. Also move further
6022 backward if we end up in a string or image.
6023 (try_cursor_movement): If overlay string spans multiple lines,
6024 move backward to set cursor on start of an overlay string.
6025 (cursor_row_p): Row is ok if cursor is at newline from string, but
6026 string starts on this line (so we always position cursor at start
6027 of string).
6028
6029 * indent.c (Fvertical_motion): If start position is on an image,
6030 don't move back if we move too far (that's almost certain to happen).
6031
6032 * xdisp.c (cursor_row_fully_visible_p): Allow partially visible
6033 row in minibuffer windows.
6034 (try_window): Don't check margins in minibuffer windows.
6035
6036 2005-07-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6037
6038 * macterm.c: Don't include stdlib.h or composite.h.
6039 (x_use_underline_position_properties, last_mouse_press_frame)
6040 (x_noop_count, Qvendor_specific_keysyms): Remove unused variables.
6041 (syms_of_macterm, mac_initialize): Don't initialize them.
6042 (waiting_for_input, initial_argv, initial_argc)
6043 (Vcommand_line_args, Vx_no_window_manager, errno, window_scroll)
6044 (set_frame_menubar, path_from_vol_dir_name): Remove externs.
6045 (extra_keyboard_modifiers): Fix type in extern.
6046 (x_window_to_frame, x_window_to_scroll_bar): Remove declarations.
6047 (x_scroll_bar_report_motion): Add argument types to declaration.
6048 (mac_compute_glyph_string_overhangs): Add declaration.
6049 (disable_mouse_highlight): Remove unused variable.
6050 [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click)
6051 (x_scroll_bar_handle_press, x_scroll_bar_handle_release)
6052 (x_scroll_bar_handle_drag): Remove argument `timestamp'.
6053 All callers changed.
6054 [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click): Don't set
6055 timestamp.
6056 [USE_CARBON_EVENTS] (mac_handle_mouse_event): Likewise.
6057 (x_scroll_bar_create, XTset_vertical_scroll_bar): Show scroll bar
6058 only when its width is less than the height.
6059 (XTredeem_scroll_bar): Sync with xterm.c.
6060 (font_name_table, font_name_table_size, font_name_count):
6061 Make static.
6062 (drag_and_drop_file_list): Remove variable. Previous use is now
6063 local to function.
6064 (do_ae_open_documents): Move DRAG_N_DROP event construction part
6065 from XTread_socket.
6066 (XTread_socket): Consolidate setting of event timestamp.
6067 Move DRAG_N_DROP event construction part to do_ae_open_documents.
6068 Support extra_keyboard_modifiers.
6069
6070 * xfaces.c (try_font_list) [MAC_OS]: Try font family name
6071 beginning with that for ASCII.
6072
6073 2005-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
6074
6075 * alloc.c (gc_cons_combined_threshold, Vgc_cons_percentage): New vars.
6076 (Fgarbage_collect, init_alloc_once): Set gc_cons_combined_threshold.
6077 (syms_of_alloc): Declare gc-cons-percentage.
6078
6079 * eval.c (Feval, Ffuncall):
6080 * keyboard.c (read_char):
6081 * bytecode.c (MAYBE_GC): Use gc_cons_combined_threshold.
6082
6083 * lisp.h (gc_cons_combined_threshold): Declare.
6084
6085 2005-07-12 Kim F. Storm <storm@cua.dk>
6086
6087 * coding.c (Qprocess_argument):
6088 * coding.h (Qprocess_argument): Remove unused var.
6089
6090 * xselect.c (intern): Remove dup. intern and staticpro for QTIMESTAMP.
6091
6092 2005-07-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6093
6094 * mac.c [!TARGET_API_MAC_CARBON]: Include charset.h, coding.h, and
6095 Endian.h.
6096 [!MAC_OSX] (fchmod, fchown): New functions.
6097 (mac_get_code_from_arg): Don't accept Lisp integer as argument.
6098 Use SBYTES and EndianU32_BtoN.
6099 (mac_get_object_from_code): Return 4 byte string even if argument
6100 is 0. Use make_unibyte_string and EndianU32_NtoB.
6101 (Fmac_get_file_creator, Fmac_get_file_type, Fmac_set_file_creator)
6102 (Fmac_set_file_type): Fix documents and argument declarations.
6103 Don't specify kFSCatInfoNodeFlags. Support Mac OS Classic.
6104
6105 2005-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
6106
6107 * window.c (Frecenter): Yet another int/Lisp_Object mixup (YAILOM).
6108
6109 2005-07-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6110
6111 * xfaces.c (x_update_menu_appearance): Use fontSet resource for
6112 Lucid if X_I18N, font otherwise.
6113
6114 2005-07-10 Steven Tamm <steventamm@mac.com>
6115
6116 * mac.c (Fmac_get_file_type, Fmac_get_file_creator): Add.
6117 (Fmac_set_file_type, Fmac_set_file_creator): Add.
6118 (mac_get_object_from_code, mac_get_code_from_arg): Add.
6119
6120 2005-07-10 Richard M. Stallman <rms@gnu.org>
6121
6122 * lread.c (Qeval_buffer_list, Veval_buffer_list): New vars.
6123 (syms_of_lread): Set up eval-buffer-list.
6124 (Feval_buffer, Feval_region): Bind eval-buffer-list.
6125
6126 2005-07-08 Richard M. Stallman <rms@gnu.org>
6127
6128 * eval.c (Fdefvar): Allow defvaring a constant to itself quoted.
6129
6130 2005-07-08 Kim F. Storm <storm@cua.dk>
6131
6132 * keyboard.c (menu_bar_items): Don't GCPRO menu_bar_items_vector here.
6133 (syms_of_keyboard): Initialize and staticpro menu_bar_items_vector.
6134
6135 2005-07-07 Kim F. Storm <storm@cua.dk>
6136
6137 * window.c (Frecenter): Fix last change (set iarg before use).
6138
6139 2005-07-06 Richard M. Stallman <rms@gnu.org>
6140
6141 * window.c (Frecenter): When arg is inside the scroll margin,
6142 move it out of the margin.
6143
6144 2005-07-06 Jason Rumney <jasonr@gnu.org>
6145
6146 * w32console.c (initialize_w32_display): Detect when the console
6147 dimensions are insane, and default to 80x25 instead.
6148 (w32_use_full_screen_buffer): Default to NIL.
6149
6150 2005-07-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6151
6152 * macterm.c (mac_draw_vertical_window_border): Use foreground of
6153 VERTICAL_BORDER_FACE_ID for vertical border line.
6154 (mac_encode_char): Call check_ccl_update in advance.
6155 (mac_to_x_fontname, x_font_name_to_mac_font_name)
6156 (init_font_name_table, mac_do_list_fonts, XLoadQueryFont):
6157 Don't assume that font family length is less than 32.
6158 (x_compute_min_glyph_bounds): Make static.
6159 (x_load_font): Never set fonts_changed_p to zero.
6160
6161 2005-07-04 Lute Kamstra <lute@gnu.org>
6162
6163 * Update FSF's address in GPL notices.
6164
6165 2005-07-03 Richard M. Stallman <rms@gnu.org>
6166
6167 * xdisp.c (try_window): Fix previous change in how it handles
6168 a partially-visible line or one only partly past the margin.
6169
6170 * window.c (window_scroll_pixel_based): Take account
6171 of this_scroll_margin when finding point when scrolling up.
6172
6173 2005-06-29 Ralf Angeli <angeli@iwi.uni-sb.de>
6174
6175 * window.c (window_scroll_pixel_based, window_scroll_line_based):
6176 Handle `scroll-preserve-screen-position' non-nil, non-t specially.
6177 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
6178
6179 2005-07-02 Juri Linkov <juri@jurta.org>
6180
6181 * w32term.c (w32_draw_vertical_window_border): Use foreground of
6182 VERTICAL_BORDER_FACE_ID for vertical border line.
6183
6184 2005-07-02 Eli Zaretskii <eliz@gnu.org>
6185
6186 * fileio.c (Fcopy_file): Rearrange the code that calls fchown and
6187 fchmod so that chmod doesn't get called on MSDOS before the file
6188 is closed.
6189
6190 2005-07-01 Jason Rumney <jasonr@gnu.org>
6191
6192 * w32term.c (cleartype_active): New flag for enabling sub-pixel
6193 workaround.
6194 (w32_initialize): Initialize it.
6195 (w32_native_per_char_metric): Allow a couple of extra pixels when
6196 Cleartype is active.
6197
6198 * w32term.c (w32_initialize): Move check for screen reader here
6199 from syms_of_w32term.
6200
6201 2005-06-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6202
6203 * xterm.c (handle_one_xevent): bzero compose_status when nbytes
6204 is not zero.
6205
6206 2005-07-01 Masatake YAMATO <jet@gyve.org>
6207
6208 * emacs.c (main): Passing ADD_NO_RANDOMIZE to `personality'.
6209
6210 2005-06-30 Juri Linkov <juri@jurta.org>
6211
6212 * xdisp.c (x_draw_vertical_border): If left fringe is not present
6213 decrease x coord of vertical border by 1 pixel to not occupy text
6214 area of the right window.
6215
6216 * xterm.c (x_draw_vertical_window_border): Use foreground of
6217 VERTICAL_BORDER_FACE_ID for vertical border line.
6218
6219 * term.c (turn_on_face): In standout mode apply specified
6220 fg to bg, and specified bg to fg (this makes the logic of
6221 inversion on terminal consistent with X).
6222
6223 2005-06-29 Juanma Barranquero <lekktu@gmail.com>
6224
6225 * eval.c (user_variable_p_eh): New function.
6226 (Fuser_variable_p): Use it. Clarify docstring.
6227 Return t for aliases of user options, nil for alias loops.
6228
6229 2005-06-27 Richard M. Stallman <rms@gnu.org>
6230
6231 * eval.c (Fdefvar): Improve error message.
6232
6233 2005-06-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6234
6235 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Fix last
6236 change.
6237
6238 2005-06-27 Juanma Barranquero <lekktu@gmail.com>
6239
6240 * eval.c (Fdefvar): Don't try to set constant symbols.
6241
6242 2005-06-25 Richard M. Stallman <rms@gnu.org>
6243
6244 * macfns.c (Fx_show_tip): Pass new arg to try_window.
6245
6246 * w32fns.c (Fx_show_tip): Pass new arg to try_window.
6247
6248 * xfns.c (Fx_show_tip): Pass new arg to try_window.
6249
6250 * xdisp.c (try_window): New arg CHECK_MARGINS. Calls changed.
6251 (redisplay_window): Handle try_window reporting point in scroll margin.
6252
6253 * dispextern.h (try_window): Declare new arg.
6254
6255 * fileio.c (Fcopy_file): New arg PRESERVE_UID_GID.
6256 Use fchmod to copy the file modes.
6257 (Frename_file): Don't copy UID and GID here;
6258 instead, specify t for PRESERVE_UID_GID when calling Fcopy_file.
6259
6260 * eval.c (call_debugger): Take full care of extending stack limits
6261 to make space for the debugger, and restore the change afterward.
6262 Bind debug-on-error to nil.
6263 (restore_stack_limits): New subroutine.
6264 (Fsignal): Extend specpdl bound along with eval depth bound,
6265 for calling edebug. Don't do either one, for calling debugger.
6266 (find_handler_clause): Don't bind debug-on-error here.
6267 Don't unbind anything either.
6268 Temporarily advance max_specpdl_size for calling
6269 internal_with_output_to_temp_buffer.
6270 (grow_specpdl): Don't alter max_specpdl_size before signaling
6271 an error.
6272 (syms_of_eval) <max-specpdl-size>: Doc fix.
6273
6274 * lread.c (read1): 0.0e+NaN should make a "positive" NaN.
6275
6276 2005-06-24 Eli Zaretskii <eliz@gnu.org>
6277
6278 * fileio.c (Frename_file): Undo last change: no need to ifdef away
6279 chown on DOS_NT platforms.
6280
6281 * w32.c (sys_chown): New function.
6282
6283 * s/ms-w32.h (chown): New; define to sys_chown.
6284
6285 2005-06-24 Juanma Barranquero <lekktu@gmail.com>
6286
6287 * xdisp.c (syms_of_xdisp) <nobreak-char-display>: Doc fix.
6288 (syms_of_xdisp) <void-text-area-pointer>: Doc fix.
6289
6290 * fileio.c (Frename_file)[!DOS_NT]: Don't call chown on MSDOS/Windows.
6291
6292 2005-06-23 Richard M. Stallman <rms@gnu.org>
6293
6294 * xdisp.c (get_next_display_element): Finish reversing the tests of
6295 Vnobreak_char_display.
6296
6297 * xdisp.c (Vnobreak_char_display): Rename from Vshow_nonbreak_escape.
6298 All uses changed.
6299 (Qnobreak_space): Rename from Qno_break_space. All uses changed.
6300 (syms_of_xdisp): Define nobreak-char-display and nobreak-space.
6301
6302 * fileio.c (Frename_file): Preserve owner and group, if possible,
6303 when copying.
6304
6305 2005-06-23 Juanma Barranquero <lekktu@gmail.com>
6306
6307 * abbrev.c (Funexpand_abbrev):
6308 * category.c (Fmake_category_set):
6309 * dispnew.c (Fsleep_for, Fsit_for):
6310 * editfns.c (Fsubst_char_in_region):
6311 * eval.c (Fdefvar, Fdefconst, Feval, Ffuncall):
6312 * frame.c (make_frame_without_minibuffer):
6313 * lread.c (read_vector):
6314 * macfns.c (check_x_frame):
6315 * process.c (Fstop_process, Fcontinue_process):
6316 * search.c (Freplace_match):
6317 * syntax.c (Fstring_to_syntax):
6318 * w32fns.c (check_x_frame, check_x_display_info):
6319 * xfaces.c (x_supports_face_attributes_p):
6320 * xselect.c (Fx_own_selection_internal): Follow error conventions.
6321
6322 * image.c (fn_png_init_io): Don't define it.
6323 (init_png_functions) [HAVE_NTGUI]: Don't initialize fn_png_init_io.
6324 (png_read_from_file): New function, based on png_read_from_memory.
6325 (png_load): Use it, instead of fn_png_init_io.
6326
6327 2005-06-23 Kim F. Storm <storm@cua.dk>
6328
6329 * search.c (Fmatch_data): Remove evaporate option.
6330 (Fset_match_data): Do not mention evaporate option in doc string.
6331 Add commentary explaining evaporate arg (for internal use only).
6332 (unwind_set_match_data): Add comment on evaporate use.
6333
6334 2005-06-22 Miles Bader <miles@gnu.org>
6335
6336 * xfaces.c (Qvertical_border): Rename from `Qvertical_divider'.
6337 (realize_basic_faces, syms_of_xfaces): Update references to it.
6338 * dispextern.h (enum face_id): Rename `VERTICAL_DIVIDER_FACE_ID'
6339 to `VERTICAL_BORDER_FACE_ID'.
6340 * dispnew.c (build_frame_matrix_from_leaf_window): Update references.
6341
6342 2005-06-21 Juri Linkov <juri@jurta.org>
6343
6344 * dispextern.h: Add extern Qframe_set_background_mode.
6345
6346 * xfaces.c: Rename obsolete function Qframe_update_face_colors to
6347 Qframe_set_background_mode.
6348
6349 * frame.c (Fmodify_frame_parameters):
6350 Call frame-set-background-mode after changing the background color
6351 on non-window non-dos branch.
6352
6353 2005-06-21 Juanma Barranquero <lekktu@gmail.com>
6354
6355 * fns.c (Fchar_table_range):
6356 * process.c (Fmake_network_process): Fix spellings.
6357
6358 2005-06-20 Kim F. Storm <storm@cua.dk>
6359
6360 * fns.c (Fsort): Doc fix.
6361
6362 2005-06-20 Miles Bader <miles@gnu.org>
6363
6364 * xfaces.c (Qvertical_divider): New variable.
6365 (realize_basic_faces): Realize its face.
6366 (syms_of_xfaces): Initialize it.
6367
6368 * dispextern.h (enum face_id): Add `VERTICAL_DIVIDER_FACE_ID'.
6369
6370 * dispnew.c (build_frame_matrix_from_leaf_window): Display vertical
6371 window-separator on ttys using `vertical-divider' face by default.
6372
6373 2005-06-17 Richard M. Stallman <rms@gnu.org>
6374
6375 * xdisp.c (get_next_display_element):
6376 Reverse test of Vshow_nonbreak_escape.
6377
6378 * term.c (produce_special_glyphs): Use spec_glyph_lookup_face.
6379 (Ftty_no_underline): New function.
6380 (syms_of_term): defsubr it.
6381
6382 * keyboard.c (read_char): Call restore_getcjmp after jump occurs.
6383
6384 * dispnew.c (spec_glyph_lookup_face): New function.
6385 (build_frame_matrix_from_leaf_window): Use it.
6386
6387 * dispextern.h (spec_glyph_lookup_face): Add declaration.
6388
6389 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
6390
6391 2005-06-12 Richard M. Stallman <rms@gnu.org>
6392
6393 * keyboard.c (read_char): After catching a longjmp,
6394 call restore_getcjmp.
6395
6396 2005-06-17 Juanma Barranquero <lekktu@gmail.com>
6397
6398 * xselect.c (lisp_data_to_selection_data): Fix spelling.
6399
6400 2005-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6401
6402 * macterm.c (mac_compute_glyph_string_overhangs): Don't set
6403 overhangs unless the given glyph type is noncomposite CHAR_GLYPH.
6404 [USE_CARBON_EVENTS] (mac_convert_event_ref): Convert dead key down
6405 events.
6406 (XTread_socket): Don't pass keyboard events with the option
6407 modifier to the system when Vmac_command_key_is_meta is nil or
6408 Vmac_option_modifier is non-nil.
6409 [USE_CARBON_EVENTS] (read_socket_inev): New variable.
6410 [USE_CARBON_EVENTS] (init_command_handler): Fix argument.
6411 [USE_CARBON_EVENTS] (mac_handle_mouse_event): New Carbon event
6412 handler function.
6413 (install_window_handler) [USE_CARBON_EVENTS]: Install it.
6414 (XTread_socket) [USE_CARBON_EVENTS]: Move mouse wheel event
6415 handler part to mac_handle_mouse_event.
6416
6417 2005-06-14 Juanma Barranquero <lekktu@gmail.com>
6418
6419 * eval.c (Fdefvaralias): Rename arguments SYMBOL and ALIASED to
6420 NEW-ALIAS and BASE-VARIABLE, respectively.
6421
6422 2005-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
6423
6424 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
6425 (get_phys_cursor_geometry, format_mode_line_unwind_data)
6426 (get_line_height_property, x_produce_glyphs): Remove unused vars.
6427
6428 * coding.c (run_pre_post_conversion_on_str): Remove unused var `buf'.
6429
6430 2005-06-13 Eli Zaretskii <eliz@gnu.org>
6431
6432 * w32term.c (x_use_underline_position_properties): New variable.
6433 (x_draw_glyph_string): Remind in a comment to change doc string of
6434 x-use-underline-position-properties if/when underline positioning
6435 is implemented.
6436 (syms_of_w32term): DEFVAR_BOOL x-use-underline-position-properties,
6437 and initialize it to nil.
6438
6439 2005-06-12 Jason Rumney <jasonr@gnu.org>
6440
6441 * w32fns.c (NEWOPENFILENAME): New struct.
6442 (Fx_file_dialog): Use it to trick the system into giving us up to
6443 date dialogs on systems that are documented to support it.
6444 Do not set OFN_FILEMUSTEXIST flag if looking for a directory.
6445
6446 2005-06-12 Eli Zaretskii <eliz@gnu.org>
6447
6448 * w32fns.c (w32_abort): Use the MB_YESNO dialog instead of
6449 MB_ABORTRETRYIGNORE. Never return, even if DebugBreak does.
6450
6451 2005-06-11 Eli Zaretskii <eliz@gnu.org>
6452
6453 * image.c (x_create_x_image_and_pixmap) [HAVE_NTGUI]: Cast 4th arg
6454 to CreateDIBSection to avoid a compiler warning.
6455 (pbm_load): Cast 3rd arg to IMAGE_BACKGROUND to avoid a compiler
6456 warning.
6457 (png_load): Cast return values of fn_png_create_read_struct and
6458 fn_png_create_info_struct, to avoid compiler warnings on W32.
6459 Cast 3rd arg to IMAGE_BACKGROUND and image_background_transparent
6460 to avoid compiler warnings.
6461 (jpeg_load): Cast return value of fn_jpeg_std_error to avoid a
6462 compiler warning on W32. Cast 3rd arg to IMAGE_BACKGROUND to
6463 avoid a compiler warning.
6464 (tiff_load): Cast return values of fn_TIFFOpen and
6465 fn_TIFFClientOpen to avoid compiler warning on W32. Cast 3rd arg
6466 to IMAGE_BACKGROUND to avoid a compiler warning.
6467 (gif_load): Cast return values of fn_DGifOpenFileName and
6468 fn_DGifOpen to avoid compiler warnings on W32. Cast 3rd arg to
6469 IMAGE_BACKGROUND to avoid a compiler warning.
6470 (DrawText) [HAVE_NTGUI || MAC_OS]: If already defined, undef
6471 before redefining.
6472
6473 * w32bdf.c (create_offscreen_bitmap): Cast `bitsp' to `void **' in
6474 the call to CreateDIBSection, to avoid a compiler warning.
6475
6476 2005-06-11 Jason Rumney <jasonr@gnu.org>
6477
6478 * w32fns.c (Fx_file_dialog): Unblock input before falling back to
6479 minibuffer.
6480 * macfns.c (Fx_file_dialog): Likewise.
6481
6482 2005-06-10 Eli Zaretskii <eliz@gnu.org>
6483
6484 * makefile.w32-in ($(TEMACS)): Depend on addsection.exe.
6485
6486 2005-06-10 Juanma Barranquero <lekktu@gmail.com>
6487
6488 * process.c (syms_of_process) [ADAPTIVE_READ_BUFFERING]:
6489 * w32fns.c (syms_of_w32fns): Fix spellings.
6490
6491 2005-06-10 Eli Zaretskii <eliz@gnu.org>
6492
6493 * unexw32.c (COPY_CHUNK, COPY_PROC_CHUNK): Add a new argument
6494 `verbose'; print diagnostic messages only if it is non-zero.
6495 All callers changed to pass a zero value unless DEBUG_DUMP is defined
6496 in the environment.
6497 (copy_executable_and_dump_data): Print section names with %.8s.
6498
6499 2005-06-10 Masatake YAMATO <jet@gyve.org>
6500
6501 * xdisp.c (note_mode_line_or_margin_highlight): Call clear_mouse_face
6502 when mouse_face is not given.
6503
6504 2005-06-09 Luc Teirlinck <teirllm@auburn.edu>
6505
6506 * window.c (Fselect_window): Adapt call to Fselect_frame.
6507
6508 * lisp.h: Update EXFUN of Fselect_frame.
6509
6510 * keyboard.c (command_loop_1): Adapt call to Fselect_frame.
6511
6512 * frame.c (Fhandle_switch_frame, Fselect_frame): Delete unused arg
6513 no_enter.
6514 (Fset_mouse_position, Fset_mouse_pixel_position, Ficonify_frame):
6515 Adapt to above change.
6516
6517 2005-06-10 Juanma Barranquero <lekktu@gmail.com>
6518
6519 * fns.c (Fmemq, Fmaphash): Doc fixes.
6520
6521 2005-06-09 Juanma Barranquero <lekktu@gmail.com>
6522
6523 * xfaces.c (Fdisplay_supports_face_attributes_p):
6524 Fix typo in docstring.
6525
6526 2005-06-08 Steven Tamm <steventamm@mac.com>
6527
6528 * unexmacosx.c (copy_data_segment): Copy __la_sym_ptr2 section
6529 used by gcc4 on intel mac.
6530
6531 2005-06-09 Kim F. Storm <storm@cua.dk>
6532
6533 * search.c (Fmatch_data): Add optional RESEAT arg. Unchain markers
6534 in REUSE list if non-nil; free them if equal to evaporate.
6535 (Fset_match_data): Add optional RESEAT arg. Unchain markers in LIST
6536 if non-nil; free them if equal to evaporate. Use XCAR/XCDR.
6537 (restore_search_regs): Rename from restore_match_data. Uses changed.
6538 (unwind_set_match_data): New function.
6539 (record_unwind_save_match_data): New function like save-match-data.
6540
6541 * lisp.h (Fmatch_data, Fset_match_data): Fix EXFUN.
6542 (record_unwind_save_match_data): Add prototype.
6543 (restore_search_regs): Rename from restore_match_data.
6544
6545 * composite.c (compose_chars_in_text):
6546 * eval.c (do_autoload):
6547 * macmenu.c (set_frame_menubar):
6548 * process.c (read_process_output, exec_sentinel):
6549 * xmenu.c (set_frame_menubar):
6550 * xdisp.c (prepare_menu_bars, update_menu_bar, update_tool_bar):
6551 * w32menu.c (set_frame_menubar):
6552 Use record_unwind_save_match_data.
6553
6554 2005-06-08 Richard M. Stallman <rms@gnu.org>
6555
6556 * xdisp.c (get_next_display_element): Alter previous change:
6557 Distinguish Vshow_nonbreak_escape = t or not t.
6558 For t, use escape_glyph once again, as before previous change.
6559 Use space or hyphen for display, instead of the non-ASCII char.
6560 (syms_of_xdisp) <show-nonbreak-escape>: Doc fix.
6561
6562 * process.c (Fstart_process): Don't touch command_channel_p slot.
6563
6564 * process.h (struct process): Delete command_channel_p.
6565
6566 2005-06-07 Masatake YAMATO <jet@gyve.org>
6567
6568 * xdisp.c (note_mode_line_or_margin_highlight):
6569 Check the overlapping of re-rendering area to avoid flickering.
6570 (note_mouse_highlight): Call clear_mouse_face if PART
6571 is not ON_MODE_LINE nor ON_HEADER_LINE.
6572
6573 2005-06-07 Kim F. Storm <storm@cua.dk>
6574
6575 * process.c: Improve commentary for adaptive read buffering.
6576
6577 2005-06-06 Stefan Monnier <monnier@iro.umontreal.ca>
6578
6579 * xterm.c (x_create_toolkit_scroll_bar): Use XtNarrowScrollbars
6580 if available.
6581
6582 2005-06-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6583
6584 * macmenu.c (menu_quit_handler, install_menu_quit_handler):
6585 New functions for popping down menus on C-g.
6586 (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler.
6587
6588 * macterm.c: Make mac_quit_char_modifiers and mac_quit_char_keycode
6589 non-static.
6590
6591 * config.in: Add HAVE_CANCELMENUTRACKING.
6592
6593 2005-06-06 Eli Zaretskii <eliz@gnu.org>
6594
6595 * w32heap.h (OFFSET_TO_RVA, RVA_TO_OFFSET, RVA_TO_PTR): Remove macros.
6596
6597 * unexw32.c (RVA_TO_PTR): Move here from w32heap.h.
6598
6599 * w32proc.c (RVA_TO_PTR): New macro.
6600
6601 * w32heap.c (RVA_TO_PTR): No need to #undef now.
6602
6603 * makefile.w32-in ($(BLD)/emacs.$(O), $(BLD)/w32select.$(O)):
6604 Depend on w32heap.h.
6605
6606 2005-06-06 Luc Teirlinck <teirllm@auburn.edu>
6607
6608 * keyboard.c (command_loop_1): Update Vthis_original_command.
6609
6610 2005-06-06 Richard M. Stallman <rms@gnu.org>
6611
6612 * xmenu.c (popup_get_selection): Undo previous change.
6613
6614 2005-06-06 Juri Linkov <juri@jurta.org>
6615
6616 * xdisp.c (Qno_break_space): New variable.
6617 (syms_of_xdisp): Initialize it.
6618 (get_next_display_element): Add no-break space and soft hypen
6619 codes for iso8859-2 and iso8859-5. Don't add `\' for them.
6620 Use `no-break-space' face for no-break spaces.
6621
6622 2005-06-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6623
6624 * window.c (delete_window): Handle the case where a h/vchild has
6625 a h/vchild.
6626
6627 2005-06-05 Eli Zaretskii <eliz@gnu.org>
6628
6629 * w32.c (sys_setsockopt): Change arg 4 to `const void *'. In the
6630 call to pfn_setsockopt, cast optval to `const char *'.
6631
6632 2005-06-04 Eli Zaretskii <eliz@gnu.org>
6633
6634 * w32.c (gettimeofday): Use struct _timeb, not struct timeb.
6635 (open_unc_volume): Cast return value of map_w32_filename, to avoid
6636 compiler warnings.
6637
6638 * s/ms-w32.h (fileno): Don't define if already defined.
6639
6640 * emacs.c: Include w32heap.h, to avoid compiler warning about sbrk.
6641
6642 * makefile.w32-in (DOC): Define to point to the generated DOC-X.
6643
6644 2005-06-04 Richard M. Stallman <rms@gnu.org>
6645
6646 * xmenu.c (popup_get_selection): Click not in menu deactivates menu.
6647
6648 2005-06-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6649
6650 * macmenu.c (cleanup_popup_menu): New function.
6651 (Fx_popup_menu): Unwind protect cleanup_popup_menu in case
6652 mac_menu_show Quit:s.
6653 (mac_menu_show): Quit on cancel if not popped up on click (i.e.
6654 a dialog).
6655
6656 2005-06-04 Kim F. Storm <storm@cua.dk>
6657
6658 * coding.c (decode_coding_string): Handle CODING_FINISH_INTERRUPT.
6659
6660 * callproc.c (Fcall_process): Don't use alloca to gradually
6661 increase size of buf, as it effectively uses twice the necessary
6662 space on the stack. Instead, pre-allocate buf of full size, and
6663 gradually increase the read size.
6664
6665 * bytecode.c (BYTE_CODE_QUIT): Check Vthrow_on_input.
6666
6667 * eval.c (unbind_to): Preserve value of Vquit_flag.
6668
6669 * xterm.c (handle_one_xevent): Also ignore mouse motion just
6670 before a button release event.
6671
6672 2005-06-03 Juanma Barranquero <lekktu@gmail.com>
6673
6674 * xfaces.c (Finternal_lisp_face_equal_p): Really report
6675 on faces in a frame, if the argument FRAME is non-nil.
6676 Improve argument/docstring consistency.
6677
6678 2005-06-02 Kim F. Storm <storm@cua.dk>
6679
6680 * xdisp.c (MODE_LINE_NOPROP_LEN): New macro.
6681 (x_consider_frame_title, Fformat_mode_line): Save offset into
6682 mode_line_noprop_buf rather than pointer, in case buffer is relocated.
6683
6684 2005-06-01 Kim F. Storm <storm@cua.dk>
6685
6686 * fns.c (mapcar1): Maybe exit loop if original sequence was modified.
6687
6688 2005-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6689
6690 * macterm.c (mac_to_x_fontname, mac_do_list_fonts): Set XLFD
6691 resolution fields for scalable fonts to 0.
6692
6693 * xfaces.c (build_scalable_font_name): Round pixel size to the
6694 nearest integer.
6695
6696 2005-06-01 Kim F. Storm <storm@cua.dk>
6697
6698 * xdisp.c (display_mode_line): Support nested calls to redisplay
6699 and format-mode-line. Set mode_line_target to MODE_LINE_DISPLAY.
6700
6701 2005-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
6702
6703 * fileio.c (Finsert_file_contents):
6704 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
6705
6706 2005-05-31 Kim F. Storm <storm@cua.dk>
6707
6708 * xdisp.c (mode_line_noprop_buf, mode_line_noprop_buf_end)
6709 (mode_line_noprop_ptr): Rename from frame_title_*.
6710 (store_mode_line_noprop_char): Rename from store_frame_title_char.
6711 (store_mode_line_noprop): Rename from store_frame_title.
6712 (mode_line_target): New enum to specify current output target
6713 for mode line formatting.
6714 (display_mode_element): Test it rather than frame_title_ptr and
6715 mode_line_string_list to determine where output should go.
6716 (mode_line_proptrans_alist, mode_line_string_alist): Make static.
6717 (Vmode_line_unwind_vector): New variable.
6718 (format_mode_line_unwind_data, unwind_format_mode_line):
6719 New functions for unwind protection in mode line formatting.
6720 (x_consider_frame_title): Use them and new local var 'title_start'
6721 to support nested calls to format-mode-line and redisplay.
6722 Set mode_line_target to MODE_LINE_TITLE.
6723 (Fformat_mode_line): Use them and new local var 'string_start' to
6724 support nested calls to format-mode-line and redisplay.
6725 Set mode_line_target to MODE_LINE_NOPROP or MODE_LINE_STRING.
6726 Don't trim trailing dashes.
6727 (decode_mode_spec): Don't make infinite number of trailing dashes
6728 for MODE_LINE_NOPROP and MODE_LINE_STRING targets.
6729 (syms_of_xdisp): Initialize and staticpro mode_line_string_face,
6730 mode_line_string_face_prop, and Vmode_line_unwind_vector.
6731 (init_xdisp): Initialize mode_line_noprop_ptr to start of _buf.
6732 Initialize mode_line_target to MODE_LINE_DISPLAY.
6733
6734 2005-05-29 Richard M. Stallman <rms@gnu.org>
6735
6736 * buffer.c (Fbuffer_local_value): Call indirect_variable.
6737
6738 2005-05-28 Masatake YAMATO <jet@gyve.org>
6739
6740 * xdisp.c (note_mode_line_or_margin_highlight): Change the
6741 pointer to a hand cursor when hoovering over a mouse-face.
6742
6743 2005-05-27 Kenichi Handa <handa@m17n.org>
6744
6745 * xterm.c (x_encode_char): Call check_ccl_update in advance.
6746
6747 * ccl.c: Now an element of Vccl_program_table is a vector of
6748 length 4, not 3.
6749 (ccl_get_compiled_code): New arg idx. Caller changed.
6750 Adjust for the change of Vccl_program_table.
6751 (setup_ccl_program): Adjust for the change of Vccl_program_table.
6752 (check_ccl_update): New function.
6753 (Fregister_ccl_program): Use ASET to set an element of a vector.
6754 Adjusted for the change of Vccl_program_table.
6755
6756 * ccl.h (struct ccl_program): New member idx.
6757 (check_ccl_update): Extern it.
6758
6759 2005-05-27 Juanma Barranquero <lekktu@gmail.com>
6760
6761 * image.c (Vimage_library_alist): Move from image.el.
6762 (syms_of_image): Defvar it.
6763 (lookup_image_type): Use it.
6764
6765 * buffer.c (Fbuffer_local_value): Make argument name match its use
6766 in docstring.
6767
6768 2005-05-26 Juanma Barranquero <lekktu@gmail.com>
6769
6770 * keyboard.c (Frecursive_edit): Fix typo in docstring.
6771 (Fposn_at_x_y): Make argument name match its use in docstring.
6772
6773 2005-05-26 Lute Kamstra <lute@gnu.org>
6774
6775 * eval.c (Frun_hooks): Mention run-mode-hooks in docstring.
6776
6777 2005-05-24 Masatake YAMATO <jet@gyve.org>
6778
6779 * xdisp.c (note_mode_line_or_margin_highlight): Use b and e
6780 as loop sentinels.
6781
6782 2005-05-24 Nick Roberts <nickrob@snap.net.nz>
6783
6784 * xmenu.c (Fx_popup_dialog): Add a third boolean argument to
6785 select frame title ("Question"/"Information").
6786 (xdialog_show): Use it.
6787
6788 * macmenu.c (Fx_popup_dialog, mac_dialog_show): As for xmenu.c.
6789
6790 * w32menu.c (Fx_popup_dialog, w32_dialog_show): As for xmenu.c.
6791
6792 * fns.c (Fyes_or_no_p, Fy_or_n_p): Call Fx_popup_dialog with
6793 a third argument (Qnil).
6794
6795 * lisp.h: x-popup-dialog can have three arguments.
6796
6797 * editfns.c (Fmessage_box): Use "Information" for frame title.
6798
6799 2005-05-23 Thien-Thi Nguyen <ttn@gnu.org>
6800
6801 * termcap.c [VMS]: Include <starlet.h>.
6802
6803 2005-05-23 Masatake YAMATO <jet@gyve.org>
6804
6805 * xdisp.c (note_mode_line_or_margin_highlight): Add code
6806 for mouse-face. Change the type of the first argument from `window'
6807 to `Lisp_Object'.
6808 (note_mouse_highlight): Call note_mode_line_or_margin_highlight with
6809 window instead of w.
6810
6811 2005-05-22 Andreas Schwab <schwab@suse.de>
6812
6813 * process.c (send_process): Move misplaced volatile.
6814
6815 2005-05-21 Richard M. Stallman <rms@gnu.org>
6816
6817 * xdisp.c (display_mode_element): If we're processing a list and
6818 padding is specified, put it after the last element.
6819
6820 2005-05-21 Eli Zaretskii <eliz@gnu.org>
6821
6822 * fileio.c (Fexpand_file_name) [DOS_NT]: Don't try to support
6823 "superroot" on DOS_NT systems.
6824
6825 2005-05-21 David Hunter <hunterd42@comcast.net> (tiny change)
6826
6827 * process.c (send_process): Restore the SIGPIPE handler if we
6828 catch a SIGPIPE.
6829
6830 2005-05-20 Juanma Barranquero <lekktu@gmail.com>
6831
6832 * image.c (lookup_image, png_read_from_memory): Remove hacks (and
6833 misleading comments).
6834 (DEF_IMGLIB_FN): Use C calling convention for image libraries.
6835
6836 2005-05-20 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
6837
6838 * window.c (Fwindow_inside_edges, Fwindow_inside_pixel_edges):
6839 Correct the right value.
6840
6841 2005-05-19 Nick Roberts <nickrob@snap.net.nz>
6842
6843 * keyboard.c (syms_of_keyboard): Remove Lisp variables
6844 post-command-idle-hook and post-command-idle-delay.
6845 (command_loop_1): Don't try to execute post-command-idle-hook.
6846
6847 2005-05-16 Kim F. Storm <storm@cua.dk>
6848
6849 * xdisp.c (handle_display_prop): Handle empty replacement.
6850 (handle_single_display_spec): Return -1 for empty replacement.
6851
6852 * keyboard.c (adjust_point_for_property): Skip empty overlay string.
6853
6854 * .gdbinit (pitx): Print more info about iterator.
6855
6856 2005-05-16 Andreas Schwab <schwab@suse.de>
6857
6858 * unexmacosx.c (unexec_realloc): Move declarations before statements.
6859
6860 2005-05-14 Richard M. Stallman <rms@gnu.org>
6861
6862 * xdisp.c (message3): Call cancel_echoing.
6863
6864 * alloc.c (Fmemory_full_p): New function.
6865 (syms_of_alloc): defsubr it.
6866
6867 * process.c (send_process_trap): Unblock SIGPIPE.
6868 (send_process): Reset SIGPIPE handler before reporting error.
6869
6870 2005-05-14 Nick Roberts <nickrob@snap.net.nz>
6871
6872 * emacs.c (syms_of_emacs): Fix doc string for system-type.
6873
6874 2005-05-13 Richard M. Stallman <rms@gnu.org>
6875
6876 * fileio.c (Ffind_file_name_handler): Handle lambda-exp as handler.
6877 (Finsert_file_contents): If we read 0 bytes from a special file,
6878 unlock the visited file if we locked it.
6879 (Fmake_symbolic_link, Frecent_auto_save_p): Doc fixes.
6880 (Ffile_exists_p, Ffile_symlink_p): Doc fixes.
6881
6882 2005-05-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6883
6884 * emacs.c (main) [MAC_OS8]: Call init_atimer before mac_term_init.
6885
6886 * keyboard.c (readable_events) [USE_TOOLKIT_SCROLL_BARS]:
6887 Regard toolkit scroll bar thumb drag events as squeezable and prevent
6888 redisplay from being paused by them.
6889
6890 * mac.c [!MAC_OSX]: Include keyboard.h and syssignal.h.
6891 [!MAC_OSX] (target_ticks): Remove variable.
6892 [!MAC_OSX] (check_alarm, pause, index): Remove functions.
6893 [!MAC_OSX && __MRC__] (sys_strftime): Likewise.
6894 [!MAC_OSX] (select): If fd 0 is not set in rfds and some input
6895 event occurs before timeout, behave as if the function were interrupted.
6896 [!MAC_OSX] (sigblock, sigsetmask, alarm): Simulate SIGALRM
6897 handling using Time Manager routines.
6898 [!MAC_OSX] (mac_atimer_task, mac_atimer_qlink, signal_mask):
6899 New variables.
6900 [!MAC_OSX] (mac_atimer_handler, set_mac_atimer, remove_mac_atimer)
6901 (setitimer): New functions.
6902
6903 * macfns.c, macmenu.c: Don't include signal.h.
6904
6905 * macterm.c [USE_TOOLKIT_SCROLL_BARS] (get_control_part_bounds):
6906 Rename from get_control_part_bound. All callers changed.
6907 (x_scroll_bar_clear): New function.
6908 (x_clear_frame): Use it.
6909 (XTset_vertical_scroll_bar): Don't call Draw1Control.
6910 (x_scroll_bar_handle_click): Change type of second argument from
6911 int to ControlPartCode.
6912 (check_alarm): Remove declaration.
6913 (XTread_socket) [!TARGET_API_MAC_CARBON]: Don't call it.
6914 (XTread_socket): Use ControlPartCode instead of SInt16.
6915
6916 2005-05-13 Nozomu Ando <nand@mac.com>
6917
6918 * unexmacosx.c: Include assert.h.
6919 (MACOSX_MALLOC_MULT16): New define.
6920 [MACOSX_MALLOC_MULT16] (ptr_in_unexec_regions): Determine whether
6921 ptr is in unexec regions by checking it is multiple of 16.
6922 (unexec_malloc_header_t): New typedef.
6923 (unexec_malloc, unexec_realloc, unexec_free): Store and use
6924 allocated size information in unexec_malloc_header.
6925
6926 2005-05-10 Richard M. Stallman <rms@gnu.org>
6927
6928 * xterm.c (noinclude): Add #undef.
6929
6930 * image.c, xfns.c, xmenu.c: Don't include signal.h.
6931
6932 2005-05-09 Juanma Barranquero <lekktu@gmail.com>
6933
6934 * fileio.c (Fexpand_file_name, Frename_file, Fadd_name_to_file)
6935 (Fmake_symbolic_link, Faccess_file, Frecent_auto_save_p):
6936 Doc fixes.
6937
6938 * dired.c (Ffile_name_completion): Make argument name
6939 match its use in docstring.
6940
6941 2005-05-08 Luc Teirlinck <teirllm@auburn.edu>
6942
6943 * eval.c (Fdefvaralias): Remove any pre-existing
6944 variable-documentation property of the alias.
6945
6946 2005-05-07 Thien-Thi Nguyen <ttn@gnu.org>
6947
6948 * xfns.c (start_hourglass): Do nothing when running on a tty.
6949
6950 2005-05-07 Juanma Barranquero <lekktu@gmail.com>
6951
6952 * fns.c (Fchar_table_range): Fix typos in docstring.
6953
6954 2005-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
6955
6956 * fns.c (Fchar_table_range): Yet Another Int/Lisp_Object Mixup.
6957
6958 2005-05-06 Eli Zaretskii <eliz@gnu.org>
6959
6960 * lread.c (Flocate_file_internal): Doc fix.
6961
6962 * Makefile.in (lisp, shortlisp): Add jka-cmpr-hook.elc.
6963
6964 2005-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6965
6966 * macselect.c (x_own_selection): Accept Lisp string as result of
6967 selection converter function.
6968 (x_clear_frame_selections): Don't call x-lost-selection-functions
6969 if Emacs is not owner of the selection.
6970 (Vmac_services_selection): Put variable and initialization in
6971 #ifdef MAC_OSX.
6972 (syms_of_macselect) [MAC_OSX]: Set default value of
6973 Vmac_services_selection to PRIMARY.
6974
6975 * macterm.c (toolkit_scroll_bar_interaction): Remove unused variable.
6976 (mac_handle_tool_bar_click): Remove unused function and declaration.
6977 [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback)
6978 (install_scroll_bar_timer, set_scroll_bar_timer)
6979 (control_part_code_to_scroll_bar_part, construct_scroll_bar_click)
6980 (get_control_part_bound, x_scroll_bar_handle_press)
6981 (x_scroll_bar_handle_release, x_scroll_bar_handle_drag)
6982 (x_set_toolkit_scroll_bar_thumb): New functions and declarations.
6983 [USE_TOOLKIT_SCROLL_BARS] (last_scroll_bar_part, scroll_bar_timer)
6984 (scroll_bar_timer_event_posted_p): New variables.
6985 [USE_TOOLKIT_SCROLL_BARS] (SCROLL_BAR_FIRST_DELAY)
6986 (SCROLL_BAR_CONTINUOUS_DELAY): New macros.
6987 (x_scroll_bar_create): Set control reference with NewControl.
6988 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
6989 Initialize track_top and track_height to nil.
6990 (x_scroll_bar_set_handle, x_scroll_bar_note_movement):
6991 Put functions in #ifndef USE_TOOLKIT_SCROLL_BARS.
6992 (XTset_vertical_scroll_bar): Don't make space between scroll bar
6993 and associated window.
6994 (XTset_vertical_scroll_bar) [MAC_OSX]: Get scroll bar area width
6995 from window config.
6996 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
6997 Set track_top and track_height to nil when scroll bar size is changed.
6998 Recalculate them if they are nil.
6999 (XTread_socket) [MAC_OSX]: Use control kind to determine if the
7000 clicked control is a scroll bar.
7001 (XTread_socket) [USE_TOOLKIT_SCROLL_BARS]: Use toolkit scroll bar
7002 event handler functions. Don't add modifiers to scroll bar click
7003 events. Call scroll bar release handler when window is deactivated.
7004 (mac_initialize): Remove unused code for X toolkit.
7005 (syms_of_macterm) [!USE_TOOLKIT_SCROLL_BARS]:
7006 Initialize Vx_toolkit_scroll_bars to nil.
7007
7008 * macterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
7009 New members track_top and track_height.
7010
7011 * sysselect.h [DARWIN || MAC_OSX]: Temporarily undefine
7012 init_process when including sys/select.h.
7013
7014 2005-05-05 Luc Teirlinck <teirllm@auburn.edu>
7015
7016 * eval.c (Fdefvaralias): Doc fix.
7017
7018 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
7019
7020 2005-05-05 Kim F. Storm <storm@cua.dk>
7021
7022 * buffer.c (init_buffer_once): Set cursor_in_non_selected_windows
7023 default value.
7024 (syms_of_buffer): Add default-cursor-in-non-selected-windows.
7025 Fix type of cursor-in-non-selected-windows.
7026
7027 2005-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7028
7029 * mac.c: #undef init_process so not to conflict with system headers.
7030
7031 2005-05-02 Richard M. Stallman <rms@gnu.org>
7032
7033 * buffer.c (syms_of_buffer): Define cursor-in-non-selected-windows.
7034
7035 * buffer.h (struct buffer): Add cursor_in_non_selected_windows slot.
7036
7037 * xdisp.c (Vcursor_in_non_selected_windows)
7038 (Qcursor_in_non_selected_windows): Vars deleted.
7039 (syms_of_xdisp): Don't initialize them.
7040 (get_window_cursor_type): Use cursor_in_non_selected_windows
7041 buffer slot.
7042
7043 2005-05-02 Kim F. Storm <storm@cua.dk>
7044
7045 * macros.c (executing_kbd_macro_index): Rename from
7046 executing_macro_index. All uses changed.
7047 (executing_kbd_macro_iterations): Rename from
7048 executing_macro_iterations. All uses changed.
7049 (executing_kbd_macro): Rename from executing_macro.
7050 All uses changed.
7051 (syms_of_macros): Rename Lisp var executing-macro-index to
7052 executing-kbd-macro-index.
7053
7054 * xdisp.c (move_it_in_display_line_to): Fix last change.
7055
7056 2005-05-01 Luc Teirlinck <teirllm@auburn.edu>
7057
7058 * xmenu.c (Fx_popup_menu): Doc fix.
7059
7060 * charset.c (syms_of_charset): Delete defsubr for Schars_in_region.
7061
7062 2005-05-02 Jason Rumney <jasonr@gnu.org>
7063
7064 * emacs.c (USAGE3, USAGE4): Keep strings below 2048 bytes.
7065
7066 2005-05-02 Nozomu Ando <nand@mac.com>
7067
7068 * sysselect.h: Fix typo.
7069
7070 2005-05-02 Nick Roberts <nickrob@snap.net.nz>
7071
7072 * charset.c (Fchars_in_region): Remove as obsolete.
7073
7074 2005-05-01 Kim F. Storm <storm@cua.dk>
7075
7076 * xdisp.c (move_it_in_display_line_to): Stop if we move beyond
7077 TO_CHARPOS. This may happen if last glyphs was an image or stretch
7078 glyph.
7079
7080 2005-05-01 Luc Teirlinck <teirllm@auburn.edu>
7081
7082 * dispnew.c (sit_for): Vexecuting_macro -> Vexecuting_kbd_macro.
7083
7084 2005-05-01 Richard M. Stallman <rms@gnu.org>
7085
7086 * xmenu.c [not HAVE_X_TOOLKIT] (xmenu_show):
7087 If user cancels the menu, quit unless FOR_CLICK.
7088
7089 * macros.c (Vexecuting_kbd_macro): Rename from Vexecuting_macro.
7090 All uses changed.
7091 (syms_of_macros): Define only executing-kbd-macro, not executing-macro.
7092 * keyboard.c: Change Vexecuting_macro to Vexecuting_kbd_macro.
7093 * macros.h (Vexecuting_kbd_macro): Declare instead of Vexecuting_macro.
7094 * commands.h (Vexecuting_kbd_macro): Likewise.
7095
7096 2005-05-01 Thien-Thi Nguyen <ttn@gnu.org>
7097
7098 * sysdep.c (get_frame_size) [VMS]: Use a fresh i/o channel.
7099
7100 2005-04-30 Richard M. Stallman <rms@gnu.org>
7101
7102 * fileio.c (Ffind_file_name_handler): Handle the `operations'
7103 property of the file name handler.
7104 (Qoperations): New variable.
7105 (syms_of_fileio): Initialize and staticpro it.
7106
7107 * xdisp.c (set_message_1): Delete xassert.
7108
7109 2005-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7110
7111 * mac.c: Don't include time.h. Include sysselect.h after systime.h.
7112
7113 * macfns.c (Fx_server_version): Add BLOCK_INPUT around Gestalt.
7114
7115 * macgui.h [HAVE_CARBON && MAC_OSX]: Don't undefine/define mktime
7116 before/after including Carbon.h if there is a working mktime.
7117
7118 2005-04-28 Kim F. Storm <storm@cua.dk>
7119
7120 * xfaces.c (resolve_face_name): Add arg SIGNAL_P. Calls changed.
7121 Fix cyclic alias check. If alias loop is detected, signal
7122 circular-list error if SIGNAL_P, and return Qdefault if !SIGNAL_P.
7123
7124 2005-04-28 Lute Kamstra <lute@gnu.org>
7125
7126 * eval.c (do_autoload): Record only autoloads in the autoload
7127 property of symbols.
7128
7129 2005-04-28 Nick Roberts <nickrob@snap.net.nz>
7130
7131 * emacs.c (USAGE1): Add --basic-display and --quick options.
7132
7133 2005-04-27 Kim F. Storm <storm@cua.dk>
7134
7135 * data.c (syms_of_data) Staticpro Qcyclic_variable_indirection.
7136
7137 2005-04-26 Richard M. Stallman <rms@gnu.org>
7138
7139 * window.c (Fsame_window_p, Fspecial_display_p): Doc fixes.
7140 (syms_of_window): Doc fixes.
7141
7142 * indent.c (Fvertical_motion): Undo previous change.
7143
7144 2005-04-26 Kenichi Handa <handa@m17n.org>
7145
7146 * fns.c (char_table_range): New function.
7147 (Fchar_table_range): Signal an error if characters in the range
7148 have inconsistent values. Don't check the parent.
7149
7150 2005-04-25 Kenichi Handa <handa@m17n.org>
7151
7152 * fontset.c (fontset_set): Fix previous change.
7153
7154 2005-04-24 Richard M. Stallman <rms@gnu.org>
7155
7156 * indent.c (Fvertical_motion): Bind fontification-functions to nil.
7157
7158 2005-04-24 Eli Zaretskii <eliz@gnu.org>
7159
7160 * regex.c (re_search_2, re_match_2_internal): Convert second arg
7161 of RE_TRANSLATE to int, to shut up GCC warnings.
7162
7163 * fileio.c (Fcopy_file): Doc fix.
7164 [MSDOS]: Fix call to emacs_open: buffer_file_type not defined and
7165 not needed.
7166
7167 2005-04-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7168
7169 * Makefile.in [HAVE_CARBON] (MAC_OBJ): Add macselect.o.
7170 (SOME_MACHINE_OBJECTS): Likewise.
7171 (mac.o): Depend on ccl.h.
7172 (macselect.o): New target.
7173
7174 * emacs.c (main) [MAC_OS8 || MAC_OSX && HAVE_CARBON]:
7175 Call syms_of_macselect.
7176
7177 * frame.c (Fdelete_frame) [MAC_OS]: Call x_clear_frame_selections.
7178
7179 * mac.c [!TARGET_API_MAC_CARBON]: Don't include charset.h or coding.h.
7180 (QCLIPBOARD): Remove variable.
7181 (syms_of_mac): Don't initialize it.
7182 (Fmac_paste_function, Fmac_cut_function, Fx_selection_exists_p):
7183 Remove functions.
7184 (syms_of_mac): Don't defsubr them.
7185 [TARGET_API_MAC_CARBON] (Qmime_charset, QNFD, QNFKD, QNFC, QNFKC)
7186 (QHFS_plus_D, QHFS_plus_C): New variables.
7187 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
7188 [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp)
7189 (cfstring_create_normalized): New functions.
7190 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Likewise.
7191 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
7192
7193 * macterm.c (handling_window_update, terminate_flag):
7194 Remove variables.
7195 (do_window_update, do_ae_quit_application, XTread_socket):
7196 Don't use them.
7197 (WNE_SLEEP_AT_SUSPEND, WNE_SLEEP_AT_RESUME): Don't define.
7198 [USE_CARBON_EVENTS && MAC_OSX] (mac_handle_service_event)
7199 (init_service_handler): Move to macselect.c. Remove declarations.
7200 [USE_CARBON_EVENTS && MAC_OSX] (init_service_handler): Add extern.
7201 (Qapplication, Qabout): New variables.
7202 (syms_of_mac): Initialize them.
7203 [USE_CARBON_EVENTS && MAC_OSX] (Qpreferences, Qservices, Qpaste)
7204 (Qperform): New variables.
7205 (syms_of_mac) [USE_CARBON_EVENTS && MAC_OSX]: Initialize them.
7206 (do_get_menus) [TARGET_API_MAC_CARBON]: Don't call AppendResMenu.
7207 (do_menu_choice): Unhighlight menu bar also when menu_id is 0.
7208 (mac_store_application_menu_event, init_menu_bar): New functions.
7209 [USE_CARBON_EVENTS] (mac_handle_command_event)
7210 (init_command_handler): New functions.
7211 (mac_handle_window_event): Return noErr on window update event.
7212 (do_ae_quit_application): Call mac_store_application_menu_event.
7213 (mac_initialize) [USE_CARBON_EVENTS]: Call init_command_handler
7214 and init_menu_bar.
7215
7216 * macterm.h (x_clear_frame_selections): Add extern.
7217
7218 * macselect.c: New file for selection processing on Mac OS.
7219
7220 2005-04-23 Richard M. Stallman <rms@gnu.org>
7221
7222 * fileio.c (Fcopy_file): New arg MUSTBENEW.
7223 (Frename_file): Pass new arg to Fcopy_file.
7224
7225 * window.c (window_size_fixed): Variable deleted.
7226 (syms_of_window): Initialize window-size-fixed to nil.
7227 But don't DEFVAR window_size_fixed.
7228
7229 2005-04-23 Andreas Schwab <schwab@suse.de>
7230
7231 * m/macppc.h (LD_SWITCH_MACHINE) [LINUX]: Don't define.
7232 (START_FILES, LIB_STANDARD) [LINUX && _ARCH_PPC64]: Override to
7233 use lib64 instead of lib.
7234 (_LP64) [_ARCH_PPC64]: Define if not defined.
7235
7236 2005-04-23 David Hunter <hunterd42@comcast.net> (tiny change)
7237
7238 * s/ms-w32.h (HAVE_PWD_H): Define.
7239
7240 2005-04-22 Kenichi Handa <handa@m17n.org>
7241
7242 * fns.c (copy_sub_char_table): Explicitly copy the default value
7243 of the sub-chartable.
7244
7245 * fontset.c (fontset_set): When a sub-chartable is created,
7246 explicitly sets the defalt value.
7247
7248 2005-04-22 Kim F. Storm <storm@cua.dk>
7249
7250 * fns.c (Fplist_get): Replace by Fsafe_plist_get.
7251 (Fsafe_plist_get): Rename to Fplist_get.
7252 (Fsafe_get): Remove, as Fget now uses safe Fplist_get.
7253 (defsubr): Remove defsubr for Fsafe_plist_get and Fsafe_get.
7254
7255 * lisp.h (Fsafe_plist_get, Fsafe_get): Remove EXFUN.
7256
7257 * xdisp.c (store_mode_line_string, produce_stretch_glyph)
7258 (note_mode_line_or_margin_highlight, note_mouse_highlight):
7259 Use Fplist_get instead of Fsafe_plist_get.
7260
7261 * xfaces.c (resolve_face_name): Use Fget instead of Fsafe_get.
7262
7263 2005-04-21 Miles Bader <miles@gnu.org>
7264
7265 * xdisp.c (dump_glyph_row): Don't display overlay_arrow_p field.
7266
7267 2005-04-20 Thien-Thi Nguyen <ttn@gnu.org>
7268
7269 * sysdep.c: Remove reference to defunct vms-pwd.h.
7270 * dired.c: Likewise. Also, for pwd.h, use HAVE_PWD_H, not !VMS.
7271 * editfns.c, fileio.c, filelock.c, sysdep.c, xrdb.c: Likewise.
7272
7273 * config.in: Regenerate.
7274
7275 2005-04-20 Kenichi Handa <handa@m17n.org>
7276
7277 * lisp.h (CHAR_TABLE_DEFAULT_SLOT_ASCII): New macro.
7278 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_CONTROL): New macro.
7279 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_GRAPHIC): New macro.
7280
7281 * alloc.c (make_sub_char_table): Argument changed to initial
7282 value of the slots.
7283
7284 * data.c (Faref): Handle special slots used as default values of
7285 ascii, eight-bit-control, eight-bit-control. Don't ignore a
7286 default value set for a group of characters.
7287 (Faset): Signal an error if IDXVAL is not a valid character code.
7288 Make a sub-chartable with correct initial value.
7289
7290 * fns.c (Fset_char_table_range): Don't set slots used as default
7291 values for ascii, eight-bit-control, eight-bit-graphic.
7292 Don't call Faref with charset-id.
7293 (Fset_char_table_default): Document how to treat normal character
7294 argument. Handle special slots used as default values of ascii,
7295 eight-bit-control, eight-bit-control. Make a sub chartable if
7296 necessary.
7297
7298 2005-04-20 Kenichi Handa <handa@m17n.org>
7299
7300 * search.c (boyer_moore): Fix previous change.
7301
7302 2005-04-19 Kim F. Storm <storm@cua.dk>
7303
7304 * xdisp.c (setup_for_ellipsis): Reset saved_face_id to use default
7305 face unless last visible char and first invisible char have the
7306 same face. Also use default face if saved_face_id is undefined.
7307
7308 2005-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7309
7310 * macgui.h (MacFontStruct): Remove member `fontname'. Add member
7311 `full_name'.
7312 [TARGET_API_MAC_CARBON] (MacFontStruct): Use type int for
7313 mac_scriptcode member.
7314
7315 * macterm.c (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): Remove variables.
7316 (syms_of_mac): Don't initialize them.
7317 (Vmac_charset_info_alist): New variable.
7318 (syms_of_mac): Defvar it.
7319 (create_text_encoding_info_alist): New function.
7320 (decode_mac_font_name, mac_to_x_fontname)
7321 (x_font_name_to_mac_font_name, init_font_name_table): Don't hard
7322 code the correspondence among XLFD charsets, Mac script codes, and
7323 Emacs coding systems. Use Vmac_charset_info_alist and result of
7324 create_text_encoding_info_alist instead.
7325 (init_font_name_table) [TARGET_API_MAC_CARBON]: Use Font Manager
7326 routines also on Mac OS Classic.
7327 (init_font_name_table) [!TARGET_API_MAC_CARBON]:
7328 Use add_font_name_table_entry.
7329 (mac_do_list_fonts): Regard 0 in XLFD scaleble fields as
7330 specified. Derive unspecified scalable fields from specified one.
7331 (x_list_fonts): Consider Valternate_fontname_alist.
7332 (kDefaultFontSize): Change value from 9 to 12.
7333 (XLoadQueryFont): Get decoded font family, font face, and charset
7334 from x_font_name_to_mac_font_name. Set full name of loaded font.
7335 (mac_unload_font): Free `full_name' member.
7336 (x_load_font): Don't try XLoadQueryFont if x_list_fonts returns
7337 NULL. Copy full_name member of struct MacFontStruct to that of
7338 struct font_info.
7339
7340 2005-04-19 Kim F. Storm <storm@cua.dk>
7341
7342 * xdisp.c (handle_stop): Set saved_face_id to current face if
7343 selective_display_ellipsis_p so ellipsis will be shown in same
7344 face as preceding text.
7345 (setup_for_ellipsis): Don't set saved_face_id here.
7346 (next_element_from_display_vector): Default to saved_face_id.
7347
7348 * fns.c (Fsafe_get): New function.
7349 (syms_of_fns): Defsubr it.
7350
7351 * lisp.h (Fsafe_get): EXFUN it.
7352
7353 * xfaces.c (resolve_face_name): Use Fsafe_get to avoid redisplay
7354 loops in case of bad face property lists. Limit number of face
7355 alias lookups to 10 (in case of face alias loops).
7356
7357 2005-04-18 Kim F. Storm <storm@cua.dk>
7358
7359 * dispextern.h (struct glyph_row): New member overlay_arrow_bitmap.
7360 It replaces the corresponding member from struct window, as a
7361 window may now show multiple overlay arrows.
7362 Remove member overlay_arrow_p, superseeded by overlay_arrow_bitmap.
7363
7364 * dispnew.c (row_equal_p, update_window_line, scrolling_window):
7365 Compare overlay_arrow_bitmap than overlay_arrow_p members.
7366
7367 * fringe.c (draw_fringe_bitmap): Use overlay_arrow_bitmap from row
7368 rather than from window.
7369 (update_window_fringes): Compare overlay_arrow_bitmap rather than
7370 overlay_arrow_p members.
7371 (Ffringe_bitmaps_at_pos): Return fringe overlay_arrow_bitmap name
7372 if not default.
7373
7374 * window.h (struct window): Remove member overlay_arrow_bitmap.
7375
7376 * window.c (make_window): Don't initialize overlay_arrow_bitmap.
7377
7378 * xdisp.c (overlay_arrow_string_or_property): Remove PBITMAP arg.
7379 Calls changed. Don't check for overlay-arrow-bitmap property here.
7380 (overlay_arrow_at_row): Remove PBITMAP arg. Instead, if left
7381 fringe is present, return Lisp integer for bitmap (or -1 for default).
7382 Fix value of overlay-arrow-bitmap property to be a symbol, use
7383 lookup_fringe_bitmap to parse it.
7384 (display_line): Change call to overlay_arrow_at_row. Store integer
7385 return value as overlay bitmap in row rather than window.
7386 Only show overlay arrow if row displays text, or if no other overlay
7387 arrow is seen in window (if overlay marker is at point-max).
7388
7389 2005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
7390
7391 * xfaces.c (realize_x_face) [!HAVE_WINDOW_SYSTEM]: Return NULL.
7392
7393 2005-04-18 Lute Kamstra <lute@gnu.org>
7394
7395 * lread.c (Vloads_in_progress): Static.
7396 * fns.c (Vloads_in_progress): Remove extern.
7397 (load_in_progress): Add extern.
7398 (Frequire): Use load_in_progress instead of Vloads_in_progress.
7399
7400 2005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
7401
7402 * xmenu.c (Fx_popup_menu): Initialize error_name to NULL.
7403
7404 2005-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7405
7406 * macterm.c (XTread_socket): Don't beep on keyboard input even if
7407 no frame is visible.
7408
7409 2005-04-16 Dan Nicolaescu <dann@ics.uci.edu>
7410
7411 * term.c (struct keys): Add support for shifted keys.
7412
7413 2005-04-16 Richard M. Stallman <rms@gnu.org>
7414
7415 * xdisp.c (with_echo_area_buffer): Delete WHICH < 0 case.
7416 (set_message): Call with_echo_area_buffer with WHICH = 0.
7417 (set_message_1): Erase the echo area buffer first thing.
7418 (echo_area_display): Don't clear echo_message_buffer.
7419
7420 2005-04-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7421
7422 * Makefile.in (mac.o): Depend on charset.h and coding.h.
7423
7424 * mac.c: Include charset.h and coding.h.
7425 [TARGET_API_MAC_CARBON] (Qutf_8): Remove extern.
7426 [TARGET_API_MAC_CARBON] (cfstring_create_with_string): New function.
7427 [TARGET_API_MAC_CARBON] (Fmac_get_preference): Use it.
7428
7429 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
7430
7431 * image.c [MAC_OSX] (image_load_quartz2d): Likewise.
7432
7433 * macterm.c (x_autoselect_window_p): Remove variable.
7434 (last_window): New variable.
7435 (XTreassert_line_highlight, x_change_line_highlight):
7436 Remove declarations.
7437 (mac_focus_changed, x_detect_focus_change): New functions and
7438 declarations.
7439 (XTextExtents16, front_emacs_window): Remove function.
7440 (mac_focus_frame): New function.
7441 (XTmouse_position, do_menu_choice, do_zoom_window, XTread_socket)
7442 (mac_check_for_quit_char): Use it instead of front_emacs_window.
7443 (x_scroll_bar_report_motion): Obtain window from control owner.
7444 (x_make_frame_invisible): Set window manager size hint.
7445 (do_mouse_moved): Remove function.
7446 (XTread_socket): Move its contents here. Generate select-window
7447 event on mouse movement if needed. Use x_detect_focus_change on
7448 activate/deactivate events. Don't deiconify frame or invalidate
7449 window rectangle when dnd items are dropped.
7450 Don't activate/deactivate root control.
7451 (frame_highlight, frame_unhighlight): Activate/deactivate root
7452 control here.
7453 (syms_of_macterm): Delete DEFVAR_BOOL for x_autoselect_window_p.
7454
7455 * macterm.h (cfstring_create_with_string) [TARGET_API_MAC_CARBON]:
7456 New extern.
7457
7458 2005-04-15 Luc Teirlinck <teirllm@auburn.edu>
7459
7460 * Makefile.in: Define new macro TOOLTIP_SUPPORT.
7461 (lisp): Use it.
7462 (SOME_MACHINE_LISP): Add tooltip.
7463
7464 2005-04-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7465
7466 * mac.c [!TARGET_API_MAC_CARBON]: Include MacLocales.h.
7467 Don't include TextEncodingConverter.h.
7468 (mac_system_script_code, Vmac_system_locale): New variables.
7469 (syms_of_mac): Defvar them.
7470 (mac_get_system_locale): New function.
7471
7472 * macfns.c (x_set_name, x_set_title) [!TARGET_API_MAC_CARBON]:
7473 Use ENCODE_SYSTEM to encode title bar string.
7474 (x_create_tip_frame): Apply 2005-03-18 change for xfns.c.
7475 (Fx_file_dialog) [TARGET_API_MAC_CARBON && !MAC_OSX]:
7476 Use CFStringGetSystemEncoding to get system default string encoding.
7477
7478 * macterm.c [!TARGET_API_MAC_CARBON]: Don't include
7479 TextEncodingConverter.h.
7480
7481 2005-04-13 Steven Tamm <steventamm@mac.com>
7482
7483 * macterm.c (syms_of_macterm): Remove redundant definition of
7484 mac-pass-control-to-system.
7485
7486 2005-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
7487
7488 * window.c (Fset_window_configuration): Be careful when you choose
7489 among several possible points for the new_current_buffer.
7490
7491 2005-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7492
7493 * keyboard.c (poll_for_input) [SYNC_INPUT]: Don't call
7494 poll_for_input_1. Set interrupt_input_pending to 1 instead.
7495 (Qlanguage_change) [MAC_OS]: New variable.
7496 (syms_of_keyboard) [MAC_OS]: Intern and staticpro it.
7497 (kbd_buffer_get_event) [MAC_OS]: Make event for LANGUAGE_CHANGE_EVENT.
7498
7499 * macterm.c (mac_keyboard_text_encoding)
7500 (current_mac_keyboard_text_encoding): Remove variables.
7501 (XTread_socket): Store language-change event if keyboard script change
7502 is detected. Don't convert input to `mac_keyboard_text_encoding'.
7503 (syms_of_macterm): Delete DEFVAR_INT for mac-keyboard-text-encoding.
7504
7505 * termhooks.h (enum event_kind) [MAC_OS]: Add LANGUAGE_CHANGE_EVENT.
7506
7507 2005-04-10 Richard M. Stallman <rms@gnu.org>
7508
7509 * emacs.c (standard_args): Rename --bare-bones to --quick.
7510 Add -D aka --basic-display.
7511
7512 * buffer.c (Fmake_indirect_buffer): Clear out some local variables.
7513
7514 2005-04-09 Richard M. Stallman <rms@gnu.org>
7515
7516 * keymap.c (where_is_internal): Convert a string used as event type
7517 into "(any string)".
7518
7519 * lread.c (Vloads_in_progress): Not static.
7520 * fns.c (Vloads_in_progress): Add extern.
7521 (Frequire): Don't do LOADHIST_ATTACH if Vloads_in_progress is nil.
7522
7523 2005-04-09 Thien-Thi Nguyen <ttn@surf.glug.org>
7524
7525 * dispnew.c (mirror_line_dance): Avoid crash if W2 is null.
7526
7527 2005-04-09 Lute Kamstra <lute@gnu.org>
7528
7529 * print.c (PRINTPREPARE): Check if the marker PRINTCHARFUN is
7530 within the accessible part of the buffer.
7531
7532 2005-04-09 Kim F. Storm <storm@cua.dk>
7533
7534 * lread.c (readevalloop): Add args START and END as region in
7535 current buffer to read. Callers changed.
7536 When specified, narrow to this region only when reading,
7537 not during eval. Track next point to read from during eval.
7538 Also restore point to "real" buffer position before eval.
7539 (Feval_region): Don't save excursion and restriction here, and
7540 don't narrow to region. Just pass region to readevalloop.
7541 Note: Point is now preserved even when PRINTFLAG is nil.
7542
7543 2005-04-08 Kim F. Storm <storm@cua.dk>
7544
7545 * xdisp.c (syms_of_xdisp): Init overlay-arrow-string to "=>".
7546
7547 2005-04-06 Kim F. Storm <storm@cua.dk>
7548
7549 * emacs.c (standard_args): Add -Q, --bare-bones, -bare-bones.
7550
7551 2005-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7552
7553 * mac.c (cfdate_to_lisp): Add `const' for variable `epoch_gdate'.
7554 (Fmac_get_preference): Doc fix.
7555
7556 * macfns.c (Fx_create_frame, x_create_tip_frame):
7557 Add "fontset-mac" to fallback font/fontsets.
7558
7559 2005-04-04 Kim F. Storm <storm@cua.dk>
7560
7561 * alloc.c (Fgarbage_collect): Call CHECK_CONS_LIST before and after gc.
7562
7563 * eval.c (Ffuncall): Always call CHECK_CONS_LIST on entry.
7564 Call it again after autoload.
7565
7566 2005-04-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7567
7568 * alloc.c (allocate_string_data): Call BLOCK_INPUT before calling
7569 mallopt.
7570
7571 * ralloc.c (r_alloc_init): Ditto.
7572
7573 2005-04-01 Kenichi Handa <handa@m17n.org>
7574
7575 * lisp.h (Vascii_upcase_table, Vascii_canon_table)
7576 (Vascii_eqv_table): Extern them.
7577
7578 * casetab.c (set_case_table): If standard is nonzero, setup
7579 Vascii_upcase_table, Vascii_canon_table, and Vascii_eqv_table.
7580
7581 * search.c (looking_at_1): Use current_buffer->case_canon_table,
7582 not DOWNCASE_TABLE.
7583 (string_match_1): Likewise.
7584 (fast_c_string_match_ignore_case): Use Vascii_canon_table, not
7585 Vascii_downcase_table.
7586 (fast_string_match_ignore_case): Likewise.
7587 (search_buffer): Fix checking of boyer-moore usability.
7588 (boyer_moore): Calculate translate_prev_byte1/2/3 in advance.
7589 No need of tranlating characters in PAT. Fix calculation of
7590 simple_translate.
7591
7592 2005-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
7593
7594 * xterm.c [HAVE_XAW3D]: Include ThreeD.h for XtNbeNiceToColormap.
7595 (x_create_toolkit_scroll_bar): Test XtNbeNiceToColormap before using it.
7596 Use XtNtopShadowPixel and XtNbottomShadowPixel.
7597 (x_set_toolkit_scroll_bar_thumb): Remove ugly old hack that didn't
7598 really work and that breaks with some versions of Xaw3d.
7599
7600 2005-03-31 Kenichi Handa <handa@m17n.org>
7601
7602 * coding.c (syms_of_coding): Fix previous change.
7603
7604 2005-03-30 Stefan Monnier <monnier@iro.umontreal.ca>
7605
7606 * fileio.c (search_embedded_absfilename): Fix last change.
7607
7608 2005-03-25 Kenichi Handa <handa@m17n.org>
7609
7610 * coding.c (syms_of_coding): Suggest to use set-coding-category in
7611 the docstring of coding-category-list.
7612
7613 2005-03-31 Kim F. Storm <storm@cua.dk>
7614
7615 * keyboard.c (Qmouse_fixup_help_message): New var.
7616 (syms_of_keyboard): Intern and staticpro it.
7617 (show_help_echo): Apply mouse-fixup-help-message to help string.
7618
7619 2005-03-30 Kim F. Storm <storm@cua.dk>
7620
7621 * xdisp.c (display_line): Allow multiple overlay arrows in window.
7622
7623 2005-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
7624
7625 * fileio.c (Fexpand_file_name): Use IS_DEVICE_SEP.
7626 (file_name_absolute_p): New fun, extracted from Ffile_name_absolute_p.
7627 (Ffile_name_absolute_p): Use it.
7628 (search_embedded_absfilename): New fun, extracted from
7629 Fsubstitute_in_file_name. Use file_name_absolute_p.
7630 Free the pw data after use.
7631 (Fsubstitute_in_file_name): Use it.
7632 After cutting a prefix, re-check file-name-handler.
7633
7634 2005-03-26 Lennart Borgman <lennart.borgman.073@student.lu.se>
7635
7636 * w32term.h (x_output): Add focus_state.
7637
7638 * w32term.c (x_focus_changed, w32_detect_focus_change): New functions.
7639 (w32_read_socket) [WM_SETFOCUS]: Call w32_detect_focus_change.
7640
7641 2005-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
7642
7643 * minibuf.c (Fminibuffer_complete_and_exit, Fself_insert_and_exit):
7644 Use Fexit_minibuffer.
7645 (Fexit_minibuffer): Mark it as no-return, deactivate the mark.
7646
7647 2005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
7648
7649 * dired.c (Ffile_attributes): Add a missing gcpro.
7650
7651 * alloc.c (make_number): The arg can be bigger than `int'.
7652 * lisp.h (make_number): Make prototype more precise.
7653
7654 * process.c, dired.c (Vfile_name_coding_system)
7655 (Vdefault_file_name_coding_system):
7656 * callproc.c (Vdoc_file_name, Vfile_name_coding_system)
7657 (Vdefault_file_name_coding_system): Remove unused declarations.
7658
7659 2005-03-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7660
7661 * xmenu.c (create_and_show_popup_menu): Just remove menu and return
7662 if it failed to pop up (Gnome "show pointer on ctrl" option makes
7663 menus fail to pop up).
7664
7665 2005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
7666
7667 * xdisp.c (get_next_display_element): Also use `\ ' & `\-' for latin-9.
7668 Just prepend a backslash without replacing the NBSP by an SPC.
7669
7670 2005-03-22 Kim F. Storm <storm@cua.dk>
7671
7672 * xfaces.c (lookup_derived_face): Add arg SIGNAL_P.
7673 * dispextern.h (lookup_derived_face): Fix prototype.
7674 * msdos.c (XMenuActivate): Fix call to lookup_derived_face.
7675
7676 * xdisp.c (handle_single_display_spec): Derive left-fringe and
7677 right-fringe face from fringe face.
7678
7679 * fringe.c (draw_fringe_bitmap_1, Fset_fringe_bitmap_face):
7680 Derive face from fringe face.
7681
7682 2005-03-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7683
7684 * xrdb.c (x_load_resources): Undo previous change (2005-03-18).
7685
7686 2005-03-22 David Kastrup <dak@gnu.org>
7687
7688 * textprop.c (Fnext_char_property_change)
7689 (Fprevious_char_property_change): Allow marker as limit.
7690 (Fnext_single_char_property_change)
7691 (Fprevious_single_char_property_change): Check that limit is a
7692 number in strings.
7693 (Fnext_single_char_property_change): Coerce position to integer.
7694 (Fprevious_single_char_property_change): Same here.
7695
7696 2005-03-21 Thien-Thi Nguyen <ttn@gnu.org>
7697
7698 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Define if undefined.
7699
7700 2005-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
7701
7702 * frame.c (Fignore_event): Remove.
7703 (syms_of_frame): Don't defsubr it.
7704
7705 * keyboard.c (keys_of_keyboard): Just use `ignore' instead of the
7706 redundant `ignore-event'.
7707
7708 2005-03-19 Eli Zaretskii <eliz@gnu.org>
7709
7710 * unexec.c (write_segment, unexec): Move these functions to avoid
7711 forward references (which cause errors with "gcc -gcoff").
7712
7713 2005-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7714
7715 * xfns.c (x_create_tip_frame): Remove setting of Vx_resource_name so
7716 that it doesn't become "tooltip". The specbind is enough.
7717
7718 * xrdb.c (x_load_resources): Use different char *helv when I18N
7719 is present.
7720
7721 2005-03-17 Kenichi Handa <handa@m17n.org>
7722
7723 * coding.c (syms_of_coding): Docstring of coding-category-list fixed.
7724
7725 2005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
7726
7727 * xfaces.c (x_update_menu_appearance) [HAVE_X_I18N]:
7728 Use xic_create_fontsetname even for non-Motif menus.
7729 Don't forget to free the fontsetname.
7730
7731 * xfns.c (xic_create_fontsetname): Add a final catch-all font pattern.
7732
7733 2005-03-17 Richard M. Stallman <rms@gnu.org>
7734
7735 * dispnew.c (mirror_line_dance): Set W2 according to FRAME_FROM.
7736
7737 * fileio.c (Fcopy_file, Frename_file, Fadd_name_to_file)
7738 (Fmake_symbolic_link): Use G to read the new file name.
7739
7740 * callint.c (Finteractive): Document G option.
7741 (Fcall_interactively): Implement G option.
7742
7743 * buffer.c (buffer_lisp_local_variables): New function,
7744 broken out from Fbuffer_local_variables.
7745 (clone_per_buffer_values): Use buffer_lisp_local_variables.
7746
7747 2005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
7748
7749 * xfns.c (xic_create_fontsetname): Add `motif' argument.
7750 Always return a freshly allocated string.
7751 (xic_create_xfontset): Adjust call.
7752
7753 * xfaces.c (x_update_menu_appearance) [USE_MOTIF]:
7754 Use xic_create_fontsetname to create a fontset so utf-8 locales work.
7755 (dump_realized_face): Fix warning.
7756
7757 * emacs.c (Fkill_emacs): YAILOM.
7758
7759 * frame.c (Fignore_event): Fix ancient obscure C-u handling bug.
7760
7761 2005-03-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7762
7763 * mac.c (HASHKEY_TERMINAL): Remove.
7764 (HASHKEY_MAX_NID): New macro.
7765 (xrm_q_get_resource_1): Rename from xrm_q_get_resource. Add extra
7766 argument.
7767 (xrm_q_get_resource): Call xrm_q_get_resource_1 with extra argument.
7768 (xrm_create_database, xrm_q_put_resource)
7769 (xrm_merge_string_database, xrm_q_get_resource_1)
7770 (xrm_q_get_resource): Change resource database representation so
7771 that it may not use multiple hash tables for a single database.
7772 [TARGET_API_MAC_CARBON] (xrm_cfproperty_list_to_value): YAILOM.
7773
7774 2005-03-16 Stefan Monnier <monnier@iro.umontreal.ca>
7775
7776 * xmenu.c (ENCODE_MENU_STRING) [HAVE_X_I18N]: Use ENCODE_SYSTEM.
7777
7778 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [!WINDOWSNT]: Use the
7779 locale-coding-system, as was already done for WINDOWSNT.
7780
7781 * keyboard.c (read_char): Only do the 7-bit-meta -> 27-bit-meta
7782 translation for chars in the 0-255 range.
7783
7784 2005-03-16 Lute Kamstra <lute@gnu.org>
7785
7786 * floatfns.c (Ffloor): Doc fix.
7787
7788 2005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7789
7790 * mac.c: Include macterm.h instead of directly including Carbon.h.
7791 [TARGET_API_MAC_CARBON] (Qstring, Qnumber, Qboolean, Qdate, Qdata)
7792 (Qarray, Qdictionary): New variables.
7793 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
7794 [TARGET_API_MAC_CARBON] (Qutf_8): Add extern.
7795 [TARGET_API_MAC_CARBON] (DECODE_UTF_8): New macro.
7796 [TARGET_API_MAC_CARBON] (struct cfdict_context): New struct used
7797 in callback for CFDictionaryApplyFunction.
7798 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
7799 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
7800 (cfobject_desc_to_lisp, cfdictionary_add_to_list)
7801 (cfdictionary_puthash, cfproperty_list_to_lisp): New functions.
7802 [TARGET_API_MAC_CARBON] (Fmac_get_preference): New function.
7803 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
7804 (P, LOOSE_BINDING, SINGLE_COMPONENT, HASHKEY_TERMINAL): New macro.
7805 (skip_white_space, parse_comment, parse_include_file)
7806 (parse_binding, parse_component, parse_resource_name, parse_value)
7807 (parse_resource_line, xrm_create_database, xrm_q_put_resource)
7808 (xrm_merge_string_database, xrm_q_get_resource, xrm_get_resource)
7809 (xrm_cfproperty_list_to_value, xrm_get_preference_database):
7810 New functions.
7811
7812 * macfns.c (mac_get_rdb_resource): Remove function.
7813 (x_get_string_resource): Use xrm_get_resource.
7814
7815 * macgui.h (XrmDatabase): Typedef to Lisp_Object.
7816
7817 * macterm.c (x_list_fonts): FONT-LIST-CACHE is now cadr part of
7818 name_list_element.
7819 (mac_make_rdb): Create resource database from preferences and
7820 argument string.
7821 (mac_term_init): Save resource database to cddr part of
7822 name_list_element.
7823
7824 * macterm.h (xrm_merge_string_database, xrm_get_resource)
7825 (xrm_get_preference_database): Add externs.
7826 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
7827 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
7828 (cfobject_desc_to_lisp, cfproperty_list_to_lisp): Likewise.
7829
7830 * process.c (init_process): Change `#ifdef DARWIN' to `#if
7831 defined (DARWIN) || defined (MAC_OSX)'
7832
7833 * s/darwin.h (DARWIN): Don't define.
7834
7835 2005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7836
7837 * macfns.c (Qhyper, Qsuper, Qmeta, Qalt, Qctrl, Qcontrol, Qshift):
7838 Remove unused variables.
7839 (syms_of_macfns): Don't initialize them. Likewise for
7840 Qface_set_after_frame_default. Defvar and initialize
7841 Vx_window_horizontal_drag_shape.
7842 (x_set_mouse_color): Change mouse pointer shape.
7843 (mac_window) [!MAC_OSX]: Create root control.
7844 (Fx_create_frame): Remove initializations of mouse pointer shapes.
7845 (hourglass_started): New function (from xfns.c).
7846 (start_hourglass, cancel_hourglass): Put function body in #ifdef
7847 MAC_OSX.
7848 (show_hourglass) [TARGET_API_MAC_CARBON]: Create progress
7849 indicator for each non-tooltip frame if needed, and show it.
7850 (hide_hourglass) [TARGET_API_MAC_CARBON]: Hide progress indicators.
7851
7852 * macgui.h [!TARGET_API_MAC_CARBON]: Include Appearance.h and
7853 Controls.h. Use ThemeCursor instead of CursHandle.
7854
7855 * macterm.c (activate_scroll_bars, deactivate_scroll_bars):
7856 Remove functions and declarations.
7857 (mac_set_colors): Take argument for saving background color.
7858 All callers changed.
7859 (XDrawLine, XClearArea, mac_draw_bitmap, XFillRectangle)
7860 (mac_draw_rectangle, mac_draw_string_common): Save and Restore
7861 background color.
7862 (x_update_end, mac_do_track_drag): Don't reset background color.
7863 (mac_define_frame_cursor) [!TARGET_API_MAC_CARBON]:
7864 Use SetThemeCursor.
7865 (x_set_window_size) [TARGET_API_MAC_CARBON]: Move progress
7866 indicator control to the upper-right corner of the window.
7867 (arrow_cursor) [!TARGET_API_MAC_CARBON]: Remove variable.
7868 (do_init_managers) [!TARGET_API_MAC_CARBON]: Don't initialize it.
7869 (do_window_update): Update controls after updating content area.
7870 (mac_handle_window_event): Remove unused extern.
7871 (XTread_socket): Check both control handle and control part code
7872 to determine whether a scroll bar is clicked. Activate/deactivate
7873 root control instead of contained scroll bar controls.
7874 (make_mac_terminal_frame): Use ThemeCursor constants.
7875
7876 * macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]:
7877 New member hourglass_control.
7878 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): New defines.
7879 (activate_scroll_bars, deactivate_scroll_bars): Remove declarations.
7880
7881 2005-03-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7882
7883 * macterm.c (keycode_to_xkeysym_table): Change mapping so that it
7884 coincides with that in Apple X11 except `clear', `enter' on
7885 laptops, and fn + `enter' on laptops.
7886
7887 2005-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
7888
7889 * xmenu.c (ENCODE_MENU_STRING): Explicitly use string_make_unibyte.
7890 (list_of_panes, list_of_items, Fx_popup_menu): Use XCAR/XCDR.
7891 (digest_single_submenu, xmenu_show): Use ENCODE_MENU_STRING.
7892
7893 * xfns.c (xic_defaut_fontset): New constant.
7894 (xic_create_fontsetname): New function.
7895 Extracted from create_frame_xic. Try to generate a slightly
7896 better fontset.
7897 (xic_create_xfontset): Use it.
7898 (create_frame_xic): Simplify.
7899
7900 2005-03-11 Stefan Monnier <monnier@iro.umontreal.ca>
7901
7902 * fileio.c (Fmake_symbolic_link): Fix last change.
7903
7904 2005-03-11 Richard M. Stallman <rms@gnu.org>
7905
7906 * fileio.c (Frename_file, Fadd_name_to_file)
7907 (Fmake_symbolic_link): If NEWNAME or LINKNAME is a directory,
7908 expand the basename of FILE relative to it.
7909
7910 2005-03-11 Kenichi Handa <handa@m17n.org>
7911
7912 * fileio.c (Finsert_file_contents): Call Fcheck_coding_system
7913 before calling setup_coding_system so that autoloading of a coding
7914 system work.
7915
7916 2005-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7917
7918 * xfns.c (hourglass_started): New function.
7919
7920 * dispextern.h: Declare hourglass_started.
7921
7922 * keyboard.c (Fexecute_extended_command): Restart hourglass
7923 after call to Fcompleting_read if already started.
7924
7925 * gtkutil.c (xg_update_scrollbar_pos): Call x_sync so that the
7926 GTK main loop is entered in xterm.c, thus doing the redraw.
7927
7928 2005-03-10 Kim F. Storm <storm@cua.dk>
7929
7930 * xdisp.c (pos_visible_p): Fix X value in last line of buffer.
7931
7932 2005-03-08 Kenichi Handa <handa@m17n.org>
7933
7934 * frame.c (x_set_font): Call set_default_ascii_font if an
7935 available font is found.
7936
7937 * fontset.c (set_default_ascii_font): New function.
7938 (syms_of_fontset): Don't set FONTSET_ASCII (Vdefault_fontset) here.
7939
7940 * fontset.h (set_default_ascii_font): Extern it.
7941
7942 2005-03-07 Kim F. Storm <storm@cua.dk>
7943
7944 * xdisp.c (CLEAR_IMAGE_CACHE_COUNT): New const.
7945 (clear_image_cache_count): New var.
7946 (redisplay_internal): Don't clear face and image caches in the
7947 middle of redisplay; do it afterwards.
7948
7949 * blockinput.h (TOTALLY_UNBLOCK_INPUT): Avoid dangling else.
7950
7951 * xdisp.c (notice_overwritten_cursor): Check that phys_cursor.vpos
7952 is valid. If not, clear phys_cursor_on_p and return.
7953
7954 2005-03-07 Andreas Schwab <schwab@suse.de>
7955
7956 * blockinput.h (UNBLOCK_INPUT_TO): Always call UNBLOCK_INPUT.
7957
7958 2005-03-06 Richard M. Stallman <rms@gnu.org>
7959
7960 * keyboard.c (Ftop_level): Let Fthrow deal with UNBLOCK_INPUT.
7961
7962 * eval.c (unwind_to_catch): Use UNBLOCK_INPUT_TO.
7963 (Feval, Ffuncall): Use CHECK_CONS_LIST.
7964
7965 * lisp.h (CHECK_CONS_LIST): New macro (two definitions).
7966
7967 * blockinput.h (UNBLOCK_INPUT_TO): New macro.
7968 (TOTALLY_UNBLOCK_INPUT): Handle a pending signal if any.
7969
7970 2005-03-05 Juri Linkov <juri@jurta.org>
7971
7972 * emacs.c (USAGE1): Replace Info node name "command arguments"
7973 with "emacs invocation".
7974 (USAGE3): Fix usage of `--color=MODE' which actually doesn't
7975 allow arguments `--color' and `MODE' to be separated by space.
7976 Add --no-blinking-cursor, -nbc.
7977 (standard_args): Add -nbc, --no-blinking-cursor.
7978
7979 2005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
7980
7981 * s/vms.h: Define NO_HYPHENS_IN_FILENAMES.
7982 * s/vms4-4.h, s/vms5-5.h: Undefine NO_HYPHENS_IN_FILENAMES.
7983 * fileio.c (Fexpand_file_name) [VMS]:
7984 Use NO_HYPHENS_IN_FILENAMES, not VMS4_4.
7985 * doc.c (munge_doc_file_name) [VMS]: Likewise.
7986 (Fsnarf_documentation): Call munge_doc_file_name.
7987
7988 2005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
7989
7990 * s/vms.h (FILE_SYSTEM_CASE): New macro.
7991 * fileio.c (Fexpand_file_name) [VMS]: Don't upcase the name
7992 "manually"; this is now handled generally via FILE_SYSTEM_CASE.
7993
7994 2005-03-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7995
7996 * emacs.c (main): Change `#ifdef HAVE_CARBON' to `#if
7997 defined (MAC_OSX) && defined (HAVE_CARBON)'.
7998
7999 * image.c [!MAC_OSX && TARGET_API_MAC_CARBON]: Include QuickTime.h.
8000
8001 * mac.c [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
8002 [!MAC_OSX] (select) [TARGET_API_MAC_CARBON]: Use ReceiveNextEvent.
8003 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): New functions.
8004 (mac_clear_font_name_table): Move extern to macterm.h.
8005
8006 * macfns.c (install_window_handler): Move extern to macterm.h.
8007 (Fx_file_dialog): Check STRINGP (default_filename) to see it is
8008 valid. Don't check !NILP (dir) because it is already checked with
8009 CHECK_STRING.
8010 (Fx_file_dialog) [!MAC_OSX]: Use FSSpec instead of FSRef for
8011 specifying the default location and obtaining the selected filename.
8012
8013 * macgui.h [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
8014
8015 * macmenu.c [TARGET_API_MAC_CARBON]: Don't include headers that
8016 are included via Carbon.h.
8017
8018 * macterm.c [TARGET_API_MAC_CARBON && !MAC_OSX]:
8019 Define USE_CARBON_EVENTS to 1.
8020 (qd) [__MRC__ && TARGET_API_MAC_CARBON]: Don't declare.
8021 (x_free_frame_resources): Call remove_window_handler for
8022 non-tooltip windows.
8023 [TARGET_API_MAC_CARBON]: Don't include headers that are included
8024 via Carbon.h.
8025 [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
8026 (mac_do_receive_dragUPP): New variables.
8027 (mac_handle_service_event, init_service_handler): Put declarations
8028 and definitions in #ifdef MAC_OSX.
8029 (install_window_handler) [TARGET_API_MAC_CARBON]: Create UPPs for
8030 drag-and-drop handler functions and register them.
8031 (remove_window_handler): New function.
8032 (do_ae_open_documents, mac_do_receive_drag) [!MAC_OSX]:
8033 Use fsspec_to_posix_pathname.
8034 (main): Change #if !TARGET_API_MAC_CARBON to #ifdef MAC_OS8.
8035 (XTread_socket) [!MAC_OSX]: Don't pass keyboard events to TSM.
8036 [MAC_OS8] (make_mac_terminal_frame) [TARGET_API_MAC_CARBON]:
8037 Set default cursors.
8038 (mac_initialize) [USE_CARBON_EVENTS && !MAC_OSX] : Don't call
8039 init_service_handler or init_quit_char_handler.
8040 (mac_initialize) [!MAC_OSX]: Don't call MakeMeTheFrontProcess.
8041
8042 * macterm.h (install_window_handler, remove_window_handler)
8043 (posix_pathname_to_fsspec, fsspec_to_posix_pathname)
8044 (mac_clear_font_name_table): New externs.
8045
8046 2005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
8047
8048 * fileio.c (FILE_SYSTEM_CASE): Define macro if not already defined.
8049 (Ffile_name_directory): Use FILE_SYSTEM_CASE unconditionally.
8050 (Fexpand_file_name): Likewise.
8051
8052 2005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
8053
8054 * emacs.c (Fkill_emacs): Use EXIT_SUCCESS;
8055 no longer special-case VMS. Add bogus return value.
8056
8057 2005-03-02 Kim F. Storm <storm@cua.dk>
8058
8059 * dispextern.h (XASSERTS): Define to 0 if not already defined.
8060 (xassert) [!XASSERTS]: Define dummy version.
8061
8062 2005-03-02 Kim F. Storm <storm@cua.dk>
8063
8064 * xdisp.c (redisplay_window): YABX (yet another bogus xassert).
8065 Reported by David Kastrup.
8066
8067 2005-03-01 Ehud Karni <ehud@unix.mvs.co.il>
8068
8069 * xdisp.c (get_next_display_element): Fix control and escape
8070 glyph from display vector.
8071
8072 2005-03-01 Stefan Monnier <monnier@iro.umontreal.ca>
8073
8074 * keyboard.c (Fposn_at_x_y): Check integerness of X and Y.
8075
8076 2005-02-27 Richard M. Stallman <rms@gnu.org>
8077
8078 * xdisp.c (fast_find_position): Rename END to BEG.
8079 (syms_of_xdisp) <menu-bar-update-hook>: Doc fix.
8080
8081 2005-02-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8082
8083 * gtkutil.c (xg_resize_outer_widget): Remove unneeded call to
8084 gtk_window_resize and x_wm_set_size_hint.
8085
8086 2005-02-25 Kim F. Storm <storm@cua.dk>
8087
8088 * dispextern.h (OVERLAY_STRING_CHUNK_SIZE): Increase from 3 to 16.
8089
8090 * xdisp.c (init_from_display_pos): Don't read past end of
8091 it->overlay_strings array.
8092
8093 2005-02-25 Stephan Stahl <stahl@eos.franken.de> (tiny change)
8094
8095 * buffer.c (syms_of_buffer): Fix typo.
8096
8097 2005-02-23 Lute Kamstra <lute@gnu.org>
8098
8099 * buffer.c (Foverlay_buffer): Doc fix.
8100
8101 2005-02-22 Kim F. Storm <storm@cua.dk>
8102
8103 * minibuf.c (Ftry_completion, Fall_completions): Allow both string
8104 and symbol keys in alists and hash tables.
8105
8106 * xdisp.c (fast_find_position): Fix search for start of overlay.
8107
8108 2005-02-21 Kim F. Storm <storm@cua.dk>
8109
8110 * window.c (window_scroll_pixel_based): When scrolling backwards,
8111 handle partial visible line at end of window even when we hit PT.
8112
8113 2005-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
8114
8115 * keymap.h: Declare Fcurrent_active_maps, used in doc.c.
8116
8117 2005-02-21 Kim F. Storm <storm@cua.dk>
8118
8119 * xdisp.c (move_it_vertically_backward): Eliminate two xasserts.
8120 I think those asserts are bogus if buffer contains invisible text
8121 or images.
8122
8123 2005-02-21 David Kastrup <dak@gnu.org>
8124
8125 * gtkutil.c (xg_create_frame_widgets): UNBLOCK_INPUT on error.
8126
8127 2005-02-20 Kim F. Storm <storm@cua.dk>
8128
8129 * xdisp.c (pos_visible_p): Be sure to move to the specified
8130 position. Always get the full ascent / descent of the
8131 corresponding row, to return reliable rtop and rbot values.
8132 (back_to_previous_visible_line_start): Fix 2005-01-18 change.
8133 Must look one character back, as back_to_previous_line_start
8134 returns position after the newline.
8135 (move_it_vertically_backward): Fix heuristic for when to move further
8136 back in case line_height * 2/3 is larger than window height.
8137 (cursor_row_fully_visible_p): Rename make_cursor_line_fully_visible_p
8138 as it does not do anything anymore. Add arg current_matrix_p to
8139 use current matrix rather than desired matrix when set.
8140 (try_cursor_movement): Don't scroll to make cursor row fully
8141 visible if cursor didn't move. This avoids unexpected recentering
8142 in case of blinking cursor or accepting process output.
8143 Use current matrix to check cursor row visibility.
8144 (redisplay_window): Fix whether to recenter or move to top in case
8145 cursor line is taller than window height.
8146 (find_first_unchanged_at_end_row): Stop search if we reach a row
8147 which not enabled (instead of abort).
8148
8149 2005-02-18 Kim F. Storm <storm@cua.dk>
8150
8151 * xfaces.c (Finternal_set_lisp_face_attribute): Allow :color property
8152 to be nil in a :box attribute value list; customize prints that
8153 as lisp value when no box color is specified.
8154
8155 * .gdbinit (pitx, pit): Pretty print display iterator.
8156 (prowx, prow): Pretty print glyph row.
8157 (pcursorx, pcursor): Pretty print a window cursor.
8158 (pwinx, pwin): Pretty print struct window.
8159
8160 2005-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
8161
8162 * alloc.c (BLOCK_BYTES): Harmless typo.
8163
8164 2005-02-17 Andreas Schwab <schwab@suse.de>
8165
8166 * xfns.c (hack_wm_protocols): Use correct type for last parameter
8167 of XGetWindowProperty to avoid aliasing issues.
8168 (Fx_window_property): Likewise.
8169
8170 * xselect.c (Fx_disown_selection_internal): Use union of struct
8171 input_event and struct selection_input_event to avoid aliasing issues.
8172
8173 * xterm.c (handle_one_xevent): Use union of struct input_event and
8174 struct selection_input_event to avoid aliasing issues.
8175 (SET_SAVED_MENU_EVENT): Adapt reference to inev.
8176
8177 2005-02-17 Kim F. Storm <storm@cua.dk>
8178
8179 * dispextern.h (enum it_method): New enum.
8180 (GET_FROM_*): Its members.
8181 (struct it): Change member method from function pointer to enum.
8182
8183 * xdisp.c (check_it, init_from_display_pos, handle_stop)
8184 (setup_for_ellipsis, handle_single_display_spec)
8185 (handle_composition_prop, next_overlay_string)
8186 (get_overlay_strings, reseat_1, reseat_to_string)
8187 (next_element_from_ellipsis, BUFFER_POS_REACHED_P)
8188 (in_display_vector_p, display_line, get_next_display_element):
8189 Change it->method from function pointer to enum.
8190 (get_next_element): New array to map it->method to function.
8191 (get_next_display_element): Use it.
8192 (set_iterator_to_next): Use switch instead of if/else chain.
8193
8194 2005-02-15 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
8195
8196 * w32select.c: Summary: Thorough rework to implement Unicode
8197 clipboard operations and delayed rendering.
8198
8199 Drop last_clipboard_text and related code, keep track of
8200 ownership via clipboard_owner instead. Drop old #if0 sections.
8201
8202 (DEFAULT_LCID, ANSICP, OEMCP, QUNICODE, QANSICP, QOEMCP)
8203 (clipboard_owner, modifying_clipboard, cfg_coding_system)
8204 (cfg_codepage, cfg_lcid, cfg_clipboard_type, current_text)
8205 (current_coding_system, current_requires_encoding)
8206 (current_num_nls, current_clipboard_type, current_lcid):
8207 New static variables.
8208
8209 (convert_to_handle_as_ascii, convert_to_handle_as_coded)
8210 (render, render_all, run_protected, lisp_error_handler)
8211 (owner_callback, create_owner, setup_config)
8212 (enum_locale_callback, cp_from_locale, coding_from_cp):
8213 New local functions.
8214
8215 (term_w32select, globals_of_w32select): New global functions.
8216
8217 (Fw32_set_clipboard_data): Ignore parameter FRAME, use
8218 clipboard_owner instead. Use delayed rendering and provide
8219 all text formats. Provide CF_LOCALE if necessary.
8220
8221 (Fw32_get_clipboard_data): Handle CF_UNICODETEXT and
8222 CF_LOCALE. Fall back to CF_TEXT, if CF_UNICODETEXT is not
8223 available. Force DOS line-ends for decoding.
8224
8225 (Fx_selection_exists_p): Handle CF_UNICODETEXT.
8226
8227 (syms_of_w32select): Init and register new variables.
8228
8229 * w32.h: Add prototypes for globals_of_w32select and
8230 term_w32select. Make the neighboring K&R declarations into
8231 prototypes, too.
8232
8233 * emacs.c: Include w32.h to get function prototypes.
8234 (main): Call globals_of_w32select.
8235
8236 * w32.c (term_ntproc): Call term_w32select.
8237
8238 * s/ms-w32.h: Guard MSC-specific #pragmas with an #ifdef.
8239
8240 2005-02-16 Kim F. Storm <storm@cua.dk>
8241
8242 * xdisp.c (BUFFER_POS_REACHED_P): Return true if pos reached and
8243 at end of display vector.
8244
8245 2005-02-15 Richard M. Stallman <rms@gnu.org>
8246
8247 * xdisp.c (get_next_display_element): Fix escape-glyph criterion
8248 for mode and header lines.
8249
8250 * lread.c (syms_of_lread) <user-init-file>: Doc fix.
8251
8252 * keymap.h (describe_map_tree): Change decl.
8253
8254 * keyboard.c (command_loop_1): Always use safe_run_hooks
8255 to run Qdeferred_action_function.
8256
8257 * keymap.c (describe_map_tree): New arg MENTION_SHADOW. Calls changed.
8258 (describe_map, describe_vector): Likewise. When it's 1,
8259 don't omit shadowed bindings, instead mark them as shadowed.
8260
8261 * doc.c (Fsubstitute_command_keys): Compute list of shadowing maps
8262 for describe_map_tree. Pass 1 for MENTION_SHADOW.
8263
8264 * data.c (Fsetq_default): Allow no arg case.
8265
8266 2005-02-14 Kenichi Handa <handa@m17n.org>
8267
8268 * coding.c (encode_coding_string): Always return a unibyte string.
8269 If NOCOPY is nonzero and there's no need of encoding, make STR
8270 unibyte directly.
8271
8272 * xselect.c (lisp_data_to_selection_data): If OBJ is a non-ASCII
8273 multibyte string, signal an error instead of aborting.
8274
8275 2005-02-12 Dan Nicolaescu <dann@ics.uci.edu>
8276
8277 * keyboard.c: If HAVE_FCNTL_H include fcntl.h.
8278
8279 2005-02-12 Kim F. Storm <storm@cua.dk>
8280
8281 * xdisp.c (expose_window): Don't fix overlaps for mode lines.
8282
8283 2005-02-10 Kim F. Storm <storm@cua.dk>
8284
8285 * xdisp.c (try_window_id): Set first_unchanged_at_end_row to NULL
8286 if it moves outside window or it doesn't display text.
8287
8288 2005-02-09 Kim F. Storm <storm@cua.dk>
8289
8290 * undo.c (Fprimitive_undo): Check that undo function does not
8291 switch buffer.
8292
8293 2005-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8294
8295 * xselect.c (selection_data_to_lisp_data): For the special case
8296 type == XA_ATOM, data contains array of int, not array of Atom.
8297 (x_property_data_to_lisp, selection_data_to_lisp_data):
8298 Comment update: data must be array of int for format == 32.
8299
8300 2005-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
8301
8302 * undo.c (Fprimitive_undo): Check veracity of delta,start,end.
8303
8304 2005-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8305
8306 * xfns.c (Fx_change_window_property): Use long array when format is 32.
8307 (Fx_window_property): If format is 32 and long is bigger than 32 bits,
8308 convert long array returned from XGetWindowProperty to an int array.
8309 (x_set_tool_bar_lines): Check that width and height is greater than
8310 zero before clearing area.
8311
8312 * xselect.c (x_reply_selection_request): Pass long array to
8313 XChangeProperty so that 64 bit longs are handeled correctly.
8314 (x_get_window_property): If format is 32 and long is bigger than 32
8315 bits convert data from XGetWindowProperty from long array to int array.
8316 (lisp_data_to_selection_data): When the input is a vector and the
8317 format is 32, allocate a long array even if long is bigger than 32 bits.
8318 (x_fill_property_data): Use char, short and long as the man page
8319 for XChangeProperty specifies. This way the data returned is OK for
8320 both 32 and 64 bit machines.
8321 (x_handle_dnd_message): Calculate size correctly even for 64 bit
8322 machines.
8323 (Fx_send_client_event): Undo change from 2005-02-05,
8324 x_fill_property_data now handles that case.
8325
8326 * xfns.c (Fx_backspace_delete_keys_p): Add comment about the
8327 reason for the approach in the code.
8328
8329 2005-02-07 Kim F. Storm <storm@cua.dk>
8330
8331 * undo.c (Fprimitive_undo): Record max one dummmy apply element.
8332
8333 2005-02-06 Richard M. Stallman <rms@gnu.org>
8334
8335 * eval.c (Frun_hook_with_args)
8336 (Frun_hook_with_args_until_success)
8337 (Frun_hook_with_args_until_failure): Doc fixes.
8338
8339 2005-02-05 Andreas Schwab <schwab@suse.de>
8340
8341 * sysdep.c (sys_subshell): Properly terminate execlp argument list.
8342
8343 2005-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8344
8345 * xselect.c (Fx_send_client_event, x_handle_dnd_message): Handle
8346 the longs in a XClientMessageEvent correctly when long is 64 bits.
8347
8348 2005-02-05 Eli Zaretskii <eliz@gnu.org>
8349
8350 * xfaces.c (face_color_supported_p): Use HAVE_WINDOW_SYSTEM
8351 instead of HAVE_X_WINDOWS, for non-X windowed sessions.
8352
8353 2005-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8354
8355 * xmenu.c (menubar_selection_callback): Force out GTK buffered
8356 events so the menu event comes after them. This is to prevent sit-for
8357 from exiting on buffered events directly after a menu selection,
8358 lisp code for Help => About Emacs uses sit-for.
8359
8360 * gtkutil.c (create_menus): Connect selection-done event instead of
8361 the deactivate event to deactivate_cb. This will make the last
8362 leave event come before the call to deactivate_cb, so the leave
8363 event does not make sit-for exit after a menu selection.
8364
8365 2005-02-03 Kim F. Storm <storm@cua.dk>
8366
8367 * dispnew.c (build_frame_matrix_from_leaf_window)
8368 [!GLYPH_DEBUG]: Fix xassert.
8369
8370 * xfaces.c (x_free_gc) [!GLYPH_DEBUG]: Fix xassert.
8371
8372 * xfns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
8373
8374 2005-02-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8375
8376 * mac.c: Use MAC_OS_X_VERSION_MAX_ALLOWED to conditionalize by
8377 the compiling OS version.
8378
8379 * macfns.c (x_create_tip_frame): Likewise.
8380
8381 * macterm.c (mac_draw_string_common, x_make_frame_visible): Likewise.
8382
8383 2005-02-03 Richard M. Stallman <rms@gnu.org>
8384
8385 * xterm.c (x_error_quitter): On GCC 3 and up, specify noinline.
8386
8387 * xdisp.c (echo_area_display): Clear echo_message_buffer.
8388
8389 * buffer.c (Fbury_buffer): Doc fix.
8390
8391 2005-02-02 Steven Tamm <steventamm@mac.com>
8392
8393 * macfns.c (unwind_create_frame): Fix compile error due to
8394 xassert being uncondition, but predicate is.
8395 * dispnew.c (update_window): Fix compile error due to
8396 xassert being uncondition, but predicate is.
8397
8398 2005-02-02 Miles Bader <miles@gnu.org>
8399
8400 * dispextern.h (xassert): Enable unconditionally.
8401
8402 2005-02-02 Kim F. Storm <storm@cua.dk>
8403
8404 * undo.c (Fprimitive_undo): Fix dummy apply undo entry.
8405
8406 2005-02-02 Kenichi Handa <handa@m17n.org>
8407
8408 * casefiddle.c (casify_object): Enable changing characters of
8409 different byte length.
8410 (casify_region): Fix loop condition, args to replace_range_2, and
8411 update opoint_byte.
8412
8413 * insdel.c (replace_range_2): Fix bugs in adjusting markers and point.
8414
8415 2005-02-01 Kim F. Storm <storm@cua.dk>
8416
8417 * xdisp.c (back_to_previous_visible_line_start): Reset iterator
8418 stack before calling handle_display_prop.
8419
8420 2005-01-31 Kim F. Storm <storm@cua.dk>
8421
8422 * undo.c (Qapply): New lisp var.
8423 (syms_of_undo): Intern and staticpro it.
8424 (Fprimitive_undo): Support formats (apply FUNNAME . ARGS) and
8425 (apply DELTA BEG END FUNNAME . ARGS) instead of (FUNNAME . ARGS).
8426
8427 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
8428
8429 2005-01-30 Jesper Harder <harder@phys.au.dk>
8430
8431 * macterm.c (syms_of_macterm) <mac-reverse-ctrl-meta>
8432 <mac-emulate-three-button-mouse>: Fix docstring indentation.
8433
8434 2005-01-29 Luc Teirlinck <teirllm@auburn.edu>
8435
8436 * undo.c (syms_of_undo) <undo-outer-limit>: Doc update.
8437 Increase value to 3 Meg.
8438
8439 2005-01-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8440
8441 * xfns.c (show_hourglass): Use FRAME_X_WINDOW as parent for GTK,
8442 button events are not received otherwise.
8443
8444 2005-01-29 Richard M. Stallman <rms@gnu.org>
8445
8446 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
8447
8448 * undo.c (Fprimitive_undo): Handle (FUNNAME . ARGS) by calling FUNNAME.
8449
8450 2005-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
8451
8452 * keymap.c (access_keymap): YAILOM.
8453
8454 2005-01-27 Kim F. Storm <storm@cua.dk>
8455
8456 * xdisp.c (get_phys_cursor_geometry): New function to calculate
8457 phys cursor position and size for hollow cursor. Position is
8458 aligned with get_glyph_string_clip_rect and ensures that a hollow
8459 cursor is shown, even when the actual glyph is not visible.
8460
8461 * dispextern.h (get_phys_cursor_geometry): Add prototype.
8462
8463 * xterm.c (x_clip_to_row): Ensure y >= 0.
8464 (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
8465
8466 * w32term.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
8467
8468 * macterm.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
8469
8470 2005-01-27 Stefan Monnier <monnier@iro.umontreal.ca>
8471
8472 * xterm.c (x_error_quitter): Add a prototype. Make it static again.
8473
8474 2005-01-27 Kim F. Storm <storm@cua.dk>
8475
8476 * xdisp.c (get_glyph_string_clip_rect): Always show a cursor
8477 glyph, even when row is only partially visible and actual cursor
8478 position is not visible.
8479
8480 2005-01-24 Richard M. Stallman <rms@gnu.org>
8481
8482 * xterm.c (x_error_quitter): No longer static, and moved after
8483 x_error_handler.
8484
8485 2005-01-24 Kim F. Storm <storm@cua.dk>
8486
8487 * xdisp.c (move_it_by_lines): If we move forward after going too
8488 far back, cancel move if end position is same as start position.
8489
8490 2005-01-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8491
8492 * dispextern.h (struct glyph_string): New members clip_head and
8493 clip_tail.
8494
8495 * xdisp.c (get_glyph_string_clip_rect): Restrict horizontal clip
8496 region to the area between clip_head and clip_tail.
8497 (draw_glyphs): Record the area that need to be actually redrawn to
8498 the new variables clip_head and clip_tail when there are
8499 overhangs. Set values of these variables to the corresponding
8500 members in struct glyph_string. Refine x coordinates for
8501 notice_overwritten_cursor using clip_head and clip_tail.
8502
8503 * macgui.h (STORE_XCHARSETSTRUCT): New macro.
8504
8505 * macterm.c (mac_compute_glyph_string_overhangs): Implement with
8506 QDTextBounds.
8507 (x_draw_glyph_string): Don't fill the background of the successor
8508 of a glyph with a right overhang if the successor will draw a cursor.
8509 (XLoadQueryFont): Obtain font metrics using QDTextBounds.
8510 (x_redisplay_interface): Add entry for compute_glyph_string_overhangs.
8511
8512 2005-01-24 Kim F. Storm <storm@cua.dk>
8513
8514 * window.c (window_scroll_pixel_based): Fix scrolling in the wrong
8515 direction if window height was smaller than next-screen-context-lines.
8516 Now always scroll at least one line in the requested direction.
8517 Ensure that we actually do scroll backwards when requested to do so.
8518
8519 * xdisp.c (redisplay_window): Only try to make cursor line fully
8520 visible once (to avoid redisplay loop).
8521
8522 2005-01-23 Kim F. Storm <storm@cua.dk>
8523
8524 * window.c (Fpos_visible_in_window_p): Simplify return value for
8525 partially visible rows.
8526 (window_scroll_pixel_based): Adapt to that change.
8527
8528 * window.c (window_scroll_pixel_based): Force moving to next line
8529 if scrolling doesn't move start point, e.g. if looking at tall image.
8530
8531 * xdisp.c (pos_visible_p): Return 0 if non-interactive.
8532 Clear last_height before calling line_bottom_y to get real height.
8533 Fix calculation of y.
8534
8535 2005-01-22 Steven Tamm <steventamm@mac.com>
8536
8537 * s/darwin.h: Removed PTY_ITERATION from here.
8538 (DARWIN): Define.
8539
8540 * process.c (init_process): Default process-connection-type to
8541 nil on darwin 6 or less, t if it is 7 or higher. This way the
8542 broken pty behavior is still allowed on darwin 6 for interactive
8543 processes for people that know what they are doing.
8544
8545 2005-01-22 Kim F. Storm <storm@cua.dk>
8546
8547 * window.c (auto_window_vscroll_p): New boolean.
8548 (syms_of_window): DEFVAR_BOOL it.
8549 (Fpos_visible_in_window_p): Extend return value to include RTOP
8550 and RBOT values if FULLY is nil.
8551 (window_scroll_pixel_based): Adjust vscroll for partially visible
8552 rows if auto_window_vscroll_p is set.
8553 (Fset_window_vscroll): Do nothing if vscroll is not modified.
8554
8555 * xdisp.c (pos_visible_p): Replace FULLY arg by RTOP and RBOT args
8556 to return number of partially invisible pixels at top and bottom
8557 of the dislay row at POS.
8558
8559 * lisp.h (pos_visible_p): Fix prototype.
8560
8561 2005-01-21 Richard M. Stallman <rms@gnu.org>
8562
8563 * fileio.c (Fcopy_file): Doc fix.
8564
8565 2005-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8566
8567 * gtkutil.c (xg_tool_bar_detach_callback): Remove unused variable bw.
8568 (xg_get_file_name): Move declaration ofx_use_old_gtk_file_dialog to
8569 start of function for older compilers.
8570
8571 2005-01-20 Richard M. Stallman <rms@gnu.org>
8572
8573 * editfns.c (Fmessage): If arg is "", return "" (as before).
8574
8575 * keymap.c (access_keymap): Protect from bad value of meta_prefix_char.
8576
8577 * .gdbinit (xgetptr, xgetint, xgettype): Copy $arg0 into a temp
8578 variable.
8579
8580 2005-01-20 Steven Tamm <steventamm@mac.com>
8581
8582 * editfns.c (Voperating_system_release): Add.
8583 (init_editfns): Assign new variable operating-system-release
8584 based on call to uname if available.
8585 (get_operating_system_release): Add function to
8586 allow c-level access to operating system release.
8587
8588 * config.h: Regenerated.
8589
8590 * s/darwin.h (PTY_ITERATION): Don't allow PTYs on darwin 6 or less.
8591 (MIN_PTY_KERNEL_VERSION): Define minimum kernel version for
8592 using ptys as '7'.
8593
8594 2005-01-20 Kim F. Storm <storm@cua.dk>
8595
8596 * alloc.c (STRING_MARKED_P, VECTOR_MARKED_P): Return boolean.
8597
8598 * xterm.c (x_draw_glyph_string_box): Fix last_x for full width rows.
8599 Thanks to Chong Yidong <cyd@stupidchicken.com> for debugging this.
8600
8601 * macterm.c (x_draw_glyph_string_box): Likewise.
8602
8603 * w32term.c (x_draw_glyph_string_box): Likewise.
8604
8605 * indent.c (Fvertical_motion): Temporarily disable selective display.
8606
8607 2005-01-19 Kim F. Storm <storm@cua.dk>
8608
8609 * xdisp.c (note_mode_line_or_margin_highlight): Fix :pointer
8610 image property.
8611
8612 * fns.c (sweep_weak_table): Advance prev pointer when we keep a pair.
8613
8614 2005-01-18 Kim F. Storm <storm@cua.dk>
8615
8616 * xdisp.c (fast_find_position): Backtrack to find first row if
8617 charpos is inside a display overlay that spans multiple lines.
8618
8619 2005-01-18 Kenichi Handa <handa@m17n.org>
8620
8621 * coding.c (decode_coding_iso2022): Translate invalid codes if
8622 translation-table is specified.
8623
8624 2005-01-18 Kim F. Storm <storm@cua.dk>
8625
8626 * xdisp.c (back_to_previous_visible_line_start): Undo 2004-12-28
8627 change. If handle_display_prop indicates newline is replaced by
8628 image or text, move back to start of relevant overlay or interval
8629 and continue scan from there. Simplify.
8630
8631 2005-01-17 Kim F. Storm <storm@cua.dk>
8632
8633 * dispnew.c (mode_line_string, marginal_area_string):
8634 Fix off-by-one error in search for glyph.
8635
8636 2005-01-16 Kim F. Storm <storm@cua.dk>
8637
8638 * macterm.c (syms_of_macterm) <mac-allow-anti-aliasing>: Doc fix.
8639
8640 2005-01-16 Steven Tamm <steventamm@mac.com>
8641
8642 * macterm.c (mac_to_x_fontname): Remove spurious argument.
8643
8644 2005-01-16 Andreas Schwab <schwab@suse.de>
8645
8646 * macterm.c (mac_draw_string_common): Fix compilation on OSX 10.1.
8647
8648 2005-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8649
8650 * fringe.c (Fdefine_fringe_bitmap, init_fringe): When assigning
8651 fringe_faces, cast result from xmalloc/xrealloc to Lisp_Object *.
8652
8653 2005-01-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8654
8655 * keyboard.c (READABLE_EVENTS_DO_TIMERS_NOW)
8656 (READABLE_EVENTS_FILTER_EVENTS, READABLE_EVENTS_IGNORE_SQUEEZABLES):
8657 New flags for readable_events.
8658 (get_filtered_input_pending, readable_filtered_events): Remove.
8659 (tracking_off): Call readable_events and get_input_pending with
8660 flag READABLE_EVENTS_DO_TIMERS_NOW.
8661 (readable_events): Move code from old readable_filtered_events here,
8662 but check new READABLE_EVENTS_* in argument flags instead of previous
8663 two boolean arguments do_timers_now and filter_events.
8664 If we are doing mouse tracking and the mouse moved, return only if
8665 READABLE_EVENTS_IGNORE_SQUEEZABLES is not set in flags.
8666 (swallow_events): Call get_input_pending with flag
8667 READABLE_EVENTS_DO_TIMERS_NOW.
8668 (get_input_pending): Move code from old get_filtered_input_pending
8669 here. Replace boolean arguments do_timers_now, filter_events with
8670 flags, and pass flags to readable_events. Document new
8671 READABLE_EVENTS_* flags.
8672 (detect_input_pending_ignore_squeezables): New function.
8673 (detect_input_pending_run_timers): Call get_input_pending with flag
8674 READABLE_EVENTS_DO_TIMERS_NOW.
8675 (Finput_pending_p): Call get_input_pending with flags
8676 READABLE_EVENTS_DO_TIMERS_NOW and READABLE_EVENTS_FILTER_EVENTS.
8677
8678 * dispnew.c (update_window, update_frame_1): Replace calls to
8679 detect_input_pending with detect_input_pending_ignore_squeezables
8680 so that redisplay is not paused if the event queue contains only
8681 mouse movements.
8682
8683 * lisp.h: Declare detect_input_pending_ignore_squeezables.
8684
8685 2005-01-15 Steven Tamm <steventamm@mac.com>
8686
8687 * macterm.c (Vmac_use_core_graphics): Declare variable for
8688 mac-allow-anti-aliasing.
8689 (syms_of_macterm): DEFVAR_LISP and initialize it.
8690 (mac_draw_string_common): Use core graphics text rendering if
8691 mac-allow-anti-aliasing is enabled.
8692
8693 * macfns.c (Fx_file_dialog): Save As dialog includes only the
8694 file name in the text box.
8695
8696 2005-01-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8697
8698 * macfns.c (x_set_foreground_color, x_set_background_color):
8699 Sync with xfns.c.
8700 (mac_window, x_create_tip_frame): Use XSetWindowBackground.
8701 * macterm.c (XSetBackground, XSetWindowBackground): New functions.
8702 * macterm.h (XSetBackground, XSetWindowBackground): Add externs.
8703
8704 2005-01-14 Kim F. Storm <storm@cua.dk>
8705
8706 * keyboard.c (Fposn_at_x_y): Add optional arg WHOLE.
8707
8708 2005-01-13 Richard M. Stallman <rms@gnu.org>
8709
8710 * keymap.c (Fcurrent_active_maps): Ignore Voverriding_local_map
8711 if Voverriding_terminal_local_map is non-nil.
8712
8713 * keyboard.c (syms_of_keyboard): Doc fix.
8714
8715 2005-01-13 Kim F. Storm <storm@cua.dk>
8716
8717 * xdisp.c (Fformat_mode_line): Fix last change. Remove NO_PROPS arg
8718 (specify 0 for FACE instead). Reorder arg list. Doc fix.
8719
8720 2005-01-12 Richard M. Stallman <rms@gnu.org>
8721
8722 * xdisp.c (Fformat_mode_line): New arg FACE specifies a default
8723 face property for characters that don't specify one.
8724
8725 * fns.c (Frequire): Record in load-history unconditionally.
8726
8727 2005-01-10 Kim F. Storm <storm@cua.dk>
8728
8729 * dispextern.h (merge_faces): Rename from merge_into_realized_face.
8730
8731 * xfaces.c (merge_faces): Rename from merge_into_realized_face.
8732 Callers changed.
8733 Add support to merge with lisp face id too (if face_name is t).
8734
8735 * xdisp.c (get_next_display_element, next_element_from_display_vector):
8736 Don't lookup lface_id from display table glyphs here; instead use
8737 merge_faces to merge the lisp face id into current face.
8738
8739 2005-01-09 Kim F. Storm <storm@cua.dk>
8740
8741 * dispextern.h (struct it): New member dpvec_face_id.
8742 (merge_into_realized_face): Add prototype.
8743
8744 * xfaces.c (merge_into_realized_face): New function. Used to
8745 merge escape-glyph face or face from display table into current face.
8746
8747 * xdisp.c (Vshow_nonbreak_escape): New lisp var.
8748 (syms_of_xdisp): DEFVAR_LISP it.
8749 (escape_glyph_face): Remove var.
8750 (redisplay_window): Don't initialize it.
8751 (setup_for_ellipsis, get_next_display_element):
8752 Set it->dpvec_face_id to -1.
8753 (get_next_display_element): Test Vshow_nonbreak_escape.
8754 Do not setup escape_glyph_face.
8755 Properly merge escape-glyph face or face from display table with
8756 current face for escape and control characters.
8757 Set it->dpvec_face_id to relevant face id instead of adding it to each
8758 element of display vector.
8759 (next_element_from_display_vector): If it->dpvec_face_id is set,
8760 use that instead of lface_id from glyph itself.
8761
8762 2005-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8763
8764 * xterm.h (struct x_output): New member, toolbar_detached.
8765
8766 * gtkutil.c (xg_create_frame_widgets): Set initial tool bar height to
8767 38.
8768 (xg_tool_bar_detach_callback): Set toolbar_detached to 1.
8769 (xg_tool_bar_attach_callback): Set toolbar_detached to 0.
8770 (xg_create_tool_bar): Initialize toolbar_detached.
8771 (update_frame_tool_bar): Only set FRAME_TOOLBAR_HEIGHT (f) if
8772 toolbar_detached is zero.
8773
8774 2005-01-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8775
8776 * xmenu.c (create_and_show_popup_menu): Pass zero as button to
8777 gtk_menu_popup if not for_click, so callbacks for the menu are called.
8778
8779 * gtkutil.c (xg_gtk_scroll_destroy, xg_create_scroll_bar)
8780 (xg_tool_bar_callback, xg_tool_bar_help_callback)
8781 (update_frame_tool_bar): Cast to EMACS_INT to avoid compiler warning.
8782
8783 * xselect.c (x_get_foreign_selection, x_fill_property_data)
8784 (Fx_get_atom_name, Fx_send_client_event): Replace XFLOAT with
8785 XFLOAT_DATA to get extract number from Lisp object.
8786
8787 2005-01-07 Kim F. Storm <storm@cua.dk>
8788
8789 * xdisp.c (set_iterator_to_next): Fix 2004-12-13 change.
8790 Set stop_charpos to current charpos instead of 0.
8791
8792 2005-01-06 Nick Roberts <nickrob@snap.net.nz>
8793
8794 * xdisp.c (Fformat_mode_line): First arg now required.
8795
8796 2005-01-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8797
8798 * macterm.c (XLoadQueryFont): Correctly handle 0 size
8799 font widths that are returned from some Japanese fonts.
8800
8801 2005-01-06 Kim F. Storm <storm@cua.dk>
8802
8803 * fringe.c (fringe_faces): Change to Lisp_Object pointer.
8804 (draw_fringe_bitmap_1): Lookup user defined fringe faces here.
8805 (destroy_fringe_bitmap): Set fringe_faces element to nil.
8806 (Fdefine_fringe_bitmap, init_fringe): Change allocation of
8807 fringe_faces array and init elements to nil.
8808 (Fset_fringe_bitmap_face): Set fringe_faces to face name instead of
8809 non-persistent face id.
8810 (mark_fringe_data): New function for GC.
8811
8812 * alloc.c (mark_fringe_data): Declare extern.
8813 (Fgarbage_collect): Call mark_fringe_data.
8814
8815 * alloc.c (overrun_check_free): Invalidate freed memory if
8816 XMALLOC_CLEAR_FREE_MEMORY is defined.
8817
8818 2005-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8819
8820 * macfns.c: Include sys/param.h.
8821 [TARGET_API_MAC_CARBON] (mac_nav_event_callback): New declaration
8822 and function.
8823 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Use MAXPATHLEN for size
8824 of filename string. Set event callback function when creating
8825 dialog boxes. Add code conversions for filenames. Don't dispose
8826 of apple event descriptor record if failed to create it.
8827
8828 * macterm.c: Include sys/param.h.
8829 [USE_CARBON_EVENTS] (mac_handle_window_event): Add handler for
8830 kEventWindowUpdate.
8831 (install_window_handler) [USE_CARBON_EVENTS]: Register it.
8832 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Get FSRef instead
8833 of FSSpec from apple event descriptor record.
8834 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Use MAXPATHLEN for
8835 size of filename string.
8836 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.
8837 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Return error when a
8838 file dialog is in action.
8839 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Likewise.
8840 Reject only when there are no filename items. Set background color
8841 before (un)highlighting the window below the dragged items.
8842 (XTread_socket) [USE_CARBON_EVENTS]: Don't call do_window_update.
8843
8844 2005-01-05 Romain Francoise <romain@orebokech.com>
8845
8846 * term.c (encode_terminal_code): Fix buffer size computation.
8847
8848 2005-01-04 Richard M. Stallman <rms@gnu.org>
8849
8850 * xdisp.c (Fformat_mode_line): Doc fix.
8851
8852 2005-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
8853
8854 * alloc.c (refill_memory_reserve): Move.
8855 (emacs_blocked_free, emacs_blocked_malloc, emacs_blocked_realloc)
8856 (reset_malloc_hooks, uninterrupt_malloc) [SYNC_INPUT]: Don't define.
8857
8858 2005-01-03 Richard M. Stallman <rms@gnu.org>
8859
8860 * window.c (window_scroll_pixel_based): Don't correct preserve_y
8861 for CURRENT_HEADER_LINE_HEIGHT when moving backwards.
8862
8863 2005-01-03 Jason Rumney <jasonr@gnu.org>
8864
8865 * w32bdf.c (w32_load_bdf_font): Set fontp->average_width and
8866 fontp->space_width to FONT_WIDTH so they are valid.
8867
8868 * w32fns.c (w32_load_system_font): Set FONT_WIDTH to maximum, not
8869 average width. Set fontp->average_width and fontp->space_width to
8870 their appropriate values.
8871
8872 * w32term.c (x_new_font): Set FRAME_COLUMN_WIDTH to
8873 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
8874 fontp->space_width.
8875
8876 2005-01-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8877
8878 * macterm.c (x_new_font): Set FRAME_SPACE_WIDTH.
8879 (x_font_min_bounds, XLoadQueryFont): Use the correct font width
8880 metrics for max and min bounds.
8881 (x_load_font): Correctly calculate average font width metrics.
8882
8883 2005-01-02 Richard M. Stallman <rms@gnu.org>
8884
8885 * alloc.c (Fgarbage_collect): Don't truncate_undo_list on dead buffers.
8886
8887 2004-12-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8888
8889 * xterm.c (handle_one_xevent): Clear area in expose event for GTK.
8890
8891 2004-12-31 Richard M. Stallman <rms@gnu.org>
8892
8893 * xdisp.c (setup_for_ellipsis, get_next_display_element):
8894 Set it->ellipsis_p to 1 or 0.
8895 (display_line): Record whether row ends in mid-ellipsis.
8896 (set_cursor_from_row): If ends in ellipsis, find start of it.
8897 (cursor_row_p): If PT's at the end of the ellipsis the row
8898 ends within, don't display cursor on this row.
8899
8900 * dispextern.h (struct it): New element ellipsis_p.
8901 (struct glyph_row): New element ends_in_ellipsis_p.
8902
8903 * xdisp.c (BUFFER_POS_REACHED_P): We haven't reached the specified
8904 position if we're reading from something other than the buffer.
8905
8906 * window.c (window_scroll_pixel_based): Only look at
8907 Vscroll_preserve_screen_position if the old PT can't be kept.
8908 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
8909
8910 2004-12-30 Kim F. Storm <storm@cua.dk>
8911
8912 * xdisp.c (get_line_height_property): New function extracted from
8913 original calc_line_height_property.
8914 (calc_line_height_property): Rework. Handle t and (nil . ratio).
8915 (x_produce_glyphs): Use them to handle line-height and
8916 line-spacing according to new height spec.
8917 (Qtotal): Remove.
8918 (syms_of_xdisp): Remove intern and staticpro for Qtotal.
8919
8920 2004-12-30 Kenichi Handa <handa@m17n.org>
8921
8922 * fileio.c (Finsert_file_contents): Don't use
8923 current_buffer->buffer_file_coding_system even if REPLACE is
8924 non-nil. Call Qafter_insert_file_set_coding with the second arg VISIT.
8925
8926 * fontset.h (struct font_info): New members space_width and
8927 average_width.
8928
8929 * frame.h (struct frame): New member space_width.
8930 (FRAME_SPACE_WIDTH): New macro.
8931
8932 * xterm.h (struct x_display_info): New member Xatom_AVERAGE_WIDTH.
8933
8934 * xterm.c (x_new_font): Set FRAME_COLUMN_WIDTH to
8935 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
8936 fontp->space_width.
8937 (x_load_font): Calculate fontp->space_width and fontp->average_width.
8938 (x_term_init): Initialize dpyinfo->Xatom_AVERAGE_WIDTH.
8939
8940 * xdisp.c (x_produce_glyphs): Calculate tab width by
8941 FRAME_SPACE_WIDTH, not FRAME_COLUMN_WIDTH.
8942
8943 2004-12-29 Sanghyuk Suh <han9kin@mac.com>
8944
8945 * macterm.c (SelectionRange): Add Xcode position apple event struct.
8946 (do_ae_open_documents): Handle Xcode-style file position open events.
8947
8948 2004-12-29 Luc Teirlinck <teirllm@auburn.edu>
8949
8950 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Correct typo.
8951
8952 2004-12-29 Richard M. Stallman <rms@gnu.org>
8953
8954 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Doc fix.
8955
8956 2004-12-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8957
8958 * macfns.c (install_window_handler): Modify extern to return OSErr
8959 value.
8960 (mac_window): Handle return value of install_window_handler.
8961
8962 * macterm.c (reflect_byte): Remove function.
8963 (mac_create_bitmap_from_bitmap_data): Don't call reflect_byte.
8964 Lookup table instead.
8965 (mac_do_font_lists): Simplify calculation of the longest
8966 nonspecial string.
8967 (init_mac_drag_n_drop): Remove function and declaration.
8968 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
8969 init_mac_drag_n_drop.
8970 (mac_do_track_drag): New function and declaration.
8971 (install_window_handler): Return OSErr value.
8972 (install_window_handler) [TARGET_API_MAC_CARBON]:
8973 Register handlers for tracking/receiving drag-and-drop items.
8974 (do_ae_open_documents): Generate unibyte strings for filenames.
8975 (mac_do_receive_drag) [TARGET_API_MAC_CARBON] : Likewise.
8976 Reject only non-filename items. Set event modifiers, and return value.
8977
8978 2004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
8979
8980 * coding.c (decode_coding): Fix previous change.
8981
8982 2004-12-28 Richard M. Stallman <rms@gnu.org>
8983
8984 * xdisp.c (back_to_previous_visible_line_start):
8985 Don't call handle_display_prop.
8986
8987 2004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
8988
8989 * coding.c (decode_coding_XXX, decode_composition_emacs_mule)
8990 (decode_coding_emacs_mule, encode_coding_emacs_mule)
8991 (decode_coding_iso2022, encode_designation_at_bol)
8992 (encode_coding_iso2022, decode_coding_sjis_big5, decode_eol)
8993 (decode_coding): Constify arguments and local vars.
8994
8995 2004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8996
8997 * xmenu.c (popup_get_selection): Only pop down dialogs
8998 on C-g and Escape.
8999 (popup_get_selection): Remove parameter down_on_keypress.
9000 (create_and_show_popup_menu, create_and_show_dialog):
9001 Remove parameter down_on_keypress to popup_get_selection.
9002
9003 2004-12-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9004
9005 * dispextern.h: Change HAVE_CARBON to MAC_OS.
9006 (struct glyph_string): Likewise.
9007
9008 * emacs.c (main) [MAC_OS8]: Call mac_term_init instead of
9009 mac_initialize.
9010
9011 * fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name):
9012 Change TARGET_API_MAC_CARBON to HAVE_CARBON.
9013
9014 * fns.c (vector): Change MAC_OSX to MAC_OS.
9015
9016 * frame.c (x_set_frame_parameters, x_report_frame_params)
9017 (x_set_fullscreen): Remove #ifndef HAVE_CARBON.
9018 (x_set_border_width, Vdefault_frame_scroll_bars):
9019 Change HAVE_CARBON to MAC_OS.
9020
9021 * image.c [MAC_OS]: Include sys/stat.h.
9022 [MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and
9023 QuickTimeComponents.h.
9024
9025 * mac.c [!MAC_OSX] (mac_wait_next_event): Add extern.
9026 [!MAC_OSX] (select): Use mac_wait_next_event.
9027 [!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to Vexec_suffixes.
9028 [!MAC_OSX] (select, run_mac_command): Change `#ifdef
9029 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
9030 (mac_clear_font_name_table): Add extern.
9031 (Fmac_clear_font_name_table): New defun.
9032 (syms_of_mac): Defsubr it.
9033 [MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define.
9034 [MAC_OSX] (select_and_poll_event): New function.
9035 [MAC_OSX] (sys_select): Use it.
9036 [MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function.
9037 [MAC_OSX && SELECT_USE_CFSOCKET]
9038 (SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines.
9039 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and
9040 RunLoop for simultaneously monitoring two kinds of inputs, window
9041 events and process outputs, without periodically polling.
9042
9043 * macfns.c (mac_initialized): Remove extern.
9044 (stricmp): Put in #if 0. All callers changed to use xstricmp in
9045 xfaces.c.
9046 (strnicmp): Decrement `n' at the end of each loop, not the beginning.
9047 (check_mac): Use the term "Mac native windows" instead of "Mac OS".
9048 (check_x_display_info, x_display_info_for_name): Sync with xfns.c.
9049 (mac_get_rdb_resource): New function (from w32reg.c).
9050 (x_get_string_resource): Use it.
9051 (install_window_handler): Add extern.
9052 (mac_window): New function.
9053 (Fx_create_frame): Use it instead of make_mac_frame.
9054 Set parameter for Qfullscreen. Call x_wm_set_size_hint.
9055 (Fx_open_connection, Fx_close_connection): New defuns.
9056 (syms_of_macfns): Defsubr them.
9057 (x_create_tip_frame) [TARGET_API_MAC_CARBON]:
9058 Add kWindowNoUpdatesAttribute to the window attribute.
9059 (x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow.
9060 (x_create_tip_frame): Don't call ShowWindow.
9061 (Fx_show_tip): Call ShowWindow.
9062 (Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if
9063 TARGET_API_MAC_CARBON'.
9064 (mac_frame_parm_handlers): Set handlers for Qfullscreen.
9065 (syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0.
9066
9067 * macgui.h [!MAC_OSX]: Don't include Controls.h. Include Windows.h.
9068 (Window): Typedef to WindowPtr and move outside `#if
9069 TARGET_API_MAC_CARBON'.
9070 (XSizeHints): New struct.
9071
9072 * macterm.c (x_update_begin, x_update_end)
9073 [TARGET_API_MAC_CARBON]: Disable screen updates during update of a
9074 frame.
9075 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
9076 [MAC_OS8]: Use XDrawImageString/XDrawImageString16.
9077 (construct_mouse_click): Put in #if 0.
9078 (x_check_fullscreen, x_check_fullscreen_move): Remove decls.
9079 (x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef
9080 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
9081 (activate_scroll_bars, deactivate_scroll_bars)
9082 [!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl.
9083 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window
9084 if the position is neither user-specified nor program-specified.
9085 (x_free_frame_resources): Free size_hints.
9086 (x_wm_set_size_hint): Allocate size_hints if needed. Set size_hints.
9087 (mac_clear_font_name_table): New function.
9088 (mac_do_list_fonts): Initialize font_name_table if needed.
9089 (x_list_fonts): Don't initialize font_name_table. Add BLOCK_INPUT
9090 around mac_do_list_fonts.
9091 (mac_unload_font): New function.
9092 (x_load_font): Add BLOCK_INPUT around XLoadQueryFont.
9093 (init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations
9094 and definitions with #if TARGET_API_MAC_CARBON.
9095 [USE_CARBON_EVENTS] (mac_handle_window_event): Add decl.
9096 (install_window_handler): Add decl.
9097 (do_window_update): Add BeginUpdate/EndUpdate for the tooltip
9098 window. Use UpdateControls. Get the rectangle that should be
9099 updated and restrict the target of expose_frame to it.
9100 (do_grow_window): Set minimum height/width according to size_hints.
9101 (do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow.
9102 (do_zoom_window): Don't use x_set_window_size.
9103 [USE_CARBON_EVENTS] (mac_handle_window_event): New function.
9104 (install_window_handler): New function.
9105 [!USE_CARBON_EVENTS] (mouse_region): New variable.
9106 [!USE_CARBON_EVENTS] (mac_wait_next_event): New function.
9107 (XTread_socket) [USE_CARBON_EVENTS]: Move call to
9108 GetEventDispatcherTarget inside BLOCK_INPUT.
9109 (XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event.
9110 Update mouse_region when mouse is moved.
9111 (make_mac_frame): Remove.
9112 (make_mac_terminal_frame): Put in #ifdef MAC_OS8.
9113 Initialize mouse pointer shapes. Change values of f->left_pos and
9114 f->top_pos. Don't use make_mac_frame. Use NewCWindow.
9115 Don't call ShowWindow.
9116 (mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from
9117 Vinvocation_name and Vsystem_name.
9118 (mac_make_rdb): New function (from w32term.c).
9119 (mac_term_init): Use it. Add BLOCK_INPUT. Error if display has
9120 already been opened. Don't pass argument to
9121 mac_initialize_display_info. Don't set dpyinfo->height/width.
9122 Add entries to x_display_list and x_display_name_list.
9123 (x_delete_display): New function.
9124 (mac_initialize): Don't call mac_initialize_display_info.
9125 (syms_of_macterm) [!MAC_OSX]: Don't call Fprovide.
9126
9127 * macterm.h (check_mac): Add extern.
9128 (struct mac_output): New member size_hints.
9129 (FRAME_SIZE_HINTS): New macro.
9130 (mac_unload_font): Add extern.
9131
9132 * xdisp.c (expose_window, expose_frame): Remove kludges for Mac.
9133
9134 * xfaces.c (clear_font_table) [MAC_OS]: Call mac_unload_font.
9135
9136 2004-12-27 Richard M. Stallman <rms@gnu.org>
9137
9138 * buffer.c (Fbuffer_disable_undo): Delete (move to simple.el).
9139 (syms_of_buffer): Don't defsubr it.
9140
9141 * process.c (list_processes_1): Set undo_list instead
9142 of calling Fbuffer_disable_undo.
9143
9144 * xdisp.c (single_display_spec_string_p): Rename from
9145 single_display_prop_string_p.
9146 (single_display_spec_intangible_p): Rename from
9147 single_display_prop_intangible_p.
9148 (handle_single_display_spec): Rename from handle_single_display_prop.
9149 Rewritten to be easier to understand.
9150
9151 Change in load-history format. Functions now get (defun . NAME),
9152 and variables get just NAME.
9153
9154 * data.c (Fdefalias): Use (defun . FN_NAME) in LOADHIST_ATTACH.
9155
9156 * eval.c (Fdefun, Fdefmacro): Use (defun . FN_NAME) in LOADHIST_ATTACH.
9157 (Fdefvaralias, Fdefvar, Fdefconst): Use just SYM in LOADHIST_ATTACH.
9158 (Qdefvar): Var deleted.
9159 (syms_of_eval): Don't initialze it.
9160
9161 * lread.c (syms_of_lread) <load-history>: Doc fix.
9162
9163 2004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9164
9165 * xmenu.c (popup_get_selection): Pop down on C-g.
9166 (set_frame_menubar): Install translations for Lucid/Motif/Lesstif that
9167 pops down menu on C-g.
9168 (xdialog_show): If dialog popped down and no button in the dialog was
9169 pushed, call Fsignal to quit.
9170 (xmenu_show): In no toolkit version, if menu returns NO_SELECT call
9171 Fsignal to quit.
9172
9173 * xfns.c (Fx_file_dialog): Motif/Lesstif version: Pop down on C-g.
9174
9175 * gtkutil.c (xg_initialize): Install bindings for C-g so that
9176 dialogs and menus pop down.
9177
9178 2004-12-27 Kenichi Handa <handa@m17n.org>
9179
9180 * coding.c (code_convert_region): Fix calculation of `ratio'.
9181
9182 2004-12-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9183
9184 * gtkutil.c (update_frame_tool_bar): Make the value of
9185 tool-bar-button-margin control margins of images in tool bar.
9186
9187 * alloc.c (check_depth): New variable.
9188 (overrun_check_malloc, overrun_check_realloc): Only add
9189 overhead and write check pattern if check_depth is 1 (to handle
9190 recursive calls). Increase/decrease check_depth in entry/exit.
9191 (overrun_check_free): Only check for overhead if check_depth is 1.
9192 Increase/decrease check_depth in entry/exit.
9193
9194 2004-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9195
9196 * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK
9197 before touching input_available_clear_time, to avoid accessing it
9198 from multiple threads.
9199
9200 2004-12-23 Jason Rumney <jasonr@gnu.org>
9201
9202 * image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behaviour
9203 of JPEG library.
9204
9205 2004-12-22 Richard M. Stallman <rms@gnu.org>
9206
9207 * emacs.c (main): If batch mode, set Vundo_outer_limit to nil.
9208
9209 * lisp.h (Vundo_outer_limit): Fix decl.
9210
9211 * undo.c (Vundo_outer_limit): Replaces undo_outer_limit.
9212 Uses changed.
9213 (syms_of_undo): Initialize appropriately.
9214 (truncate_undo_list): If it's nil, there's no limit.
9215
9216 2004-12-22 Kenichi Handa <handa@m17n.org>
9217
9218 * xselect.c (Fx_get_cut_buffer_internal): Return a unibyte string.
9219
9220 2004-12-21 Richard M. Stallman <rms@gnu.org>
9221
9222 * eval.c (unwind_to_catch): Clear immediate_quit.
9223
9224 * xdisp.c (get_next_display_element): Display codes 8a0 and 8ad
9225 specially as `\ ' and `\-'.
9226
9227 * keyboard.c (kbd_buffer_store_event_hold):
9228 In the code for while-no-input, handle immediate_quit.
9229
9230 * alloc.c (Fgarbage_collect): Update call to truncate_undo_list.
9231 Call that at the very start.
9232 (undo_limit, undo_strong_limit, undo_outer_limit): Move to undo.c.
9233 (syms_of_alloc): Don't define undo-limit,
9234 undo-strong-limit and undo-outer-limit here.
9235
9236 * undo.c (truncate_undo_list): Return void.
9237 Take just one argument, the buffer.
9238 Make it current, and inhibit recursive GC.
9239 Access and update the undo list directly; return void.
9240 Refer to the undo...limit variables directly.
9241 Test undo_outer_limit only after counting the whole current command.
9242 When it's exceeded, call the function in undo-outer-limit-function.
9243 (undo_limit, undo_strong_limit, undo_outer_limit): From alloc.c.
9244 (Vundo_outer_limit_function): New variable.
9245 (syms_of_undo): Define undo-limit, undo-strong-limit
9246 and undo-outer-limit here, and undo-outer-limit-function.
9247 Doc fixes.
9248
9249 * lisp.h (truncate_undo_list): Update decl.
9250
9251 2004-12-21 Piet van Oostrum <piet@cs.uu.nl>
9252
9253 * fileio.c (Fread_file_name): Delete duplicates in
9254 file-name-history when history_delete_duplicates is true.
9255
9256 2004-12-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9257
9258 * macterm.c (mac_do_list_fonts): Fix memory leak
9259
9260 2004-12-20 Richard M. Stallman <rms@gnu.org>
9261
9262 * regex.c (re_match_2_internal) <symend, wordend>:
9263 Fix calls to UPDATE_SYNTAX_TABLE_FORWARD.
9264
9265 2004-12-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9266
9267 * macterm.c (endif, x_font_name_to_mac_font_name):
9268 Use maccentraleurroman instead of maccentraleuropean
9269 (mac_c_string_match, mac_do_list_fonts): Speed up font search by
9270 quickly finding a specific font without needing regexps.
9271
9272 2004-12-15 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9273
9274 * syssignal.h: Declare main_thread.
9275 (SIGNAL_THREAD_CHECK): New macro.
9276
9277 * keyboard.c (input_available_signal): Move thread checking code
9278 to macro SIGNAL_THREAD_CHECK and call that macro.
9279 (interrupt_signal): Call SIGNAL_THREAD_CHECK.
9280
9281 * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.
9282
9283 * emacs.c: Define main_thread.
9284 (main): Initialize main_thread.
9285 (handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
9286 (memory_warning_signal): Call SIGNAL_THREAD_CHECK.
9287
9288 * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.
9289
9290 * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.
9291
9292 * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.
9293
9294 * process.c (send_process_trap, sigchld_handler):
9295 Call SIGNAL_THREAD_CHECK.
9296
9297 * data.c (arith_error): Call SIGNAL_THREAD_CHECK.
9298
9299 * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
9300
9301 * xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
9302 returning when xg_ignore_gtk_scrollbar is true.
9303
9304 2004-12-14 Kim F. Storm <storm@cua.dk>
9305
9306 * keyboard.c (read_char): Save and restore echo_string when
9307 handling input method.
9308
9309 2004-12-13 Richard M. Stallman <rms@gnu.org>
9310
9311 * eval.c (syms_of_eval) <quit-flag>: Doc fix.
9312
9313 * keyboard.c (Vthrow_on_input): New variable.
9314 (syms_of_keyboard): Defvar and initialize it.
9315 (kbd_buffer_store_event_hold): Handle Vthrow_on_input.
9316
9317 * lisp.h (QUIT): Check for Vthrow_on_input.
9318 (Vthrow_on_input): Declare it.
9319
9320 2004-12-13 Kim F. Storm <storm@cua.dk>
9321
9322 * xdisp.c (set_iterator_to_next): Reset stop_charpos after display
9323 vector.
9324
9325 2004-12-12 Richard M. Stallman <rms@gnu.org>
9326
9327 * indent.c (Fvertical_motion): Call move_it_by_lines even if LINES = 0.
9328
9329 * minibuf.c (Fall_completions): Add var `zero' and use it in loop.
9330 (Ftry_completion): Really use outer `zero'; eliminate inner one.
9331
9332 2004-12-12 Kenichi Handa <handa@m17n.org>
9333
9334 * term.c (encode_terminal_code): Fix previous change.
9335
9336 2004-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
9337
9338 * keyboard.c (handle_async_input): Remove pthread mutex handling.
9339 (input_available_signal): Move pthread thingy to !SYNC_INPUT branch.
9340
9341 * syntax.c (Fforward_word): Avoid non-idempotent side-effects
9342 in macro arguments.
9343
9344 * minibuf.c (Ftry_completion, Fall_completions): Don't use
9345 XFASTINT blindly.
9346
9347 * emacs.c (main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT.
9348
9349 2004-12-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9350
9351 * w32term.c (x_calc_absolute_position): Remove calculation of
9352 difference between inner and outer window. Don't subtract difference
9353 for left and top calculations.
9354
9355 * xterm.c (x_calc_absolute_position): Don't subtract outer_pixel_diff
9356 for left and top calculations. Remove call to x_real_positions.
9357 [Bug report by Drew Adams in November]
9358 (x_check_expected_move): Do not set change_gravity to 1 when calling
9359 x_set_offset.
9360
9361 2004-12-08 Richard M. Stallman <rms@gnu.org>
9362
9363 * xdisp.c (get_next_display_element): Use `escape-glyph' for
9364 control chars and escaped octal codes.
9365 (Qescape_glyph): New variable.
9366 (syms_of_xdisp): Initialize it.
9367 (escape_glyph_face): New variable.
9368 (redisplay_window): Initialize it.
9369
9370 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
9371
9372 * image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE)
9373 (init_image): Use 1 rather than TRUE. TRUE's not always defined.
9374
9375 2004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9376
9377 * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
9378 reset_malloc_hooks.
9379
9380 * keyboard.c (handle_async_input, input_available_signal):
9381 Add ! defined (SYSTEM_MALLOC) around thread code.
9382
9383 * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
9384
9385 2004-12-07 Stefan Monnier <monnier@iro.umontreal.ca>
9386
9387 * eval.c (init_eval_once): Increase max_specpdl_size to 1000.
9388
9389 * config.in: Regenerate.
9390
9391 2004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9392
9393 * xmenu.c (Fx_popup_menu): Correct documentation about position.
9394 (xmenu_show): Do not call XTranslateCoordinates. Adjust position
9395 if not given by a mouse click to correspond with x-popup-menu
9396 documentation.
9397
9398 * config.in: Regenerate.
9399
9400 * gtkutil.c: Include signal.h and syssignal.h.
9401 (xg_get_file_name): Block and unblock __SIGRTMIN if defined.
9402
9403 * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
9404 new variables main_thread and alloc_mutex,
9405 define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
9406 emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
9407 If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same as
9408 (UN)BLOCK_INPUT.
9409 (emacs_blocked_free, emacs_blocked_malloc)
9410 (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
9411 (uninterrupt_malloc): Initialize main_thread and alloc_mutex.
9412 (reset_malloc_hooks): New function.
9413
9414 * lisp.h: Declare reset_malloc_hooks.
9415
9416 * emacs.c (Fdump_emacs): Call reset_malloc_hooks.
9417
9418 * keyboard.c: Conditionally include pthread.h
9419 (handle_async_input, input_available_signalt): If not in the main
9420 thread, block signal, send signal to main thread and return.
9421
9422 * gtkutil.c (xg_get_file_with_chooser): Handle local files only.
9423 Set current folder in file chooser if default_filename is a directory.
9424
9425 2004-12-05 Stefan Monnier <monnier@iro.umontreal.ca>
9426
9427 * regex.c (GET_UNSIGNED_NUMBER): Signal an error when reaching the end.
9428 Remove redundant correctness checks.
9429 (regex_compile): Fix up error codes for \{..\} expressions.
9430
9431 2004-12-05 Richard M. Stallman <rms@gnu.org>
9432
9433 * regex.c (regex_compile): Fix end-of-pattern case for space.
9434
9435 2004-12-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9436
9437 * macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
9438 * mac.c (cfstring_create_with_utf8_cstring): Add to prevent
9439 crashes with invalid characters.
9440 * macmenu.c (add_menu_item): Use it.
9441 * image.c (image_load_quartz2d): Likewise.
9442 * macfns.c (x_set_name, x_set_title): Likewise.
9443 (Fx_file_dialog): Likewise. Use constant CFRefs instead of
9444 creating them each time for labels.
9445
9446 2004-12-02 Richard M. Stallman <rms@gnu.org>
9447
9448 * config.in (RE_TRANSLATE_P): If make_number is not a macro,
9449 don't use it here.
9450
9451 * eval.c (Fcalled_interactively_p): Don't check INTERACTIVE.
9452 (interactive_p): Skip Scalled_interactively_p frames
9453 like Sinteractive_p frames.
9454 (unwind_to_catch): Clear handling_signal.
9455
9456 * data.c (Fmake_variable_buffer_local): Doc fix.
9457 (Fmake_local_variable): Doc fix.
9458
9459 * insdel.c (insert_from_string_before_markers)
9460 (insert_from_string): Don't modify buffer on empty insertion.
9461
9462 * window.c (Fget_lru_window, Fget_largest_window): Doc fixes.
9463
9464 2004-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9465
9466 * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
9467 menu text as UTF8 fails.
9468
9469 2004-12-01 Kim F. Storm <storm@cua.dk>
9470
9471 * alloc.c: Add commentary for last change.
9472 (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
9473 sizeof(size_t) != 4.
9474 (overrun_check_malloc, overrun_check_realloc, overrun_check_free):
9475 Use them. Also clear header and trailer of freed memory.
9476 (GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
9477 (string_overrun_cookie): Rename from string_overrun_pattern.
9478 (GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
9479
9480 2004-12-01 Andreas Schwab <schwab@suse.de>
9481
9482 * lisp.h: Declare string_to_multibyte.
9483
9484 2004-12-01 Kenichi Handa <handa@m17n.org>
9485
9486 * w32console.c (w32con_write_glyphs): Decide coding here.
9487 Adjusted for the change of encode_terminal_code.
9488
9489 * term.c (encode_terminal_code): Don't make it "static".
9490
9491 2004-11-30 Kenichi Handa <handa@m17n.org>
9492
9493 * term.c (encode_terminal_buf, encode_terminal_bufsize): New variables.
9494 (encode_terminal_code): Argument changed. Encode all
9495 characters at once, and return a pointer to the result of encoding.
9496 (write_glyphs): Decide coding here. Adjusted for the above change.
9497 (insert_glyphs): Likewise.
9498 (term_init): Initialize encode_terminal_bufsize to 0.
9499
9500 * coding.c (Vcode_conversion_workbuf_name): New variable.
9501 (syms_of_coding): Initialize and staticpro it.
9502 (set_conversion_work_buffer): New function.
9503 (run_pre_post_conversion_on_str): Use it.
9504 (run_pre_write_conversin_on_c_str): New function.
9505
9506 * coding.h (run_pre_write_conversin_on_c_str): Extern it.
9507
9508 2004-11-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9509
9510 * keyboard.c: Don't undef SIGIO
9511 * s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
9512 * Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
9513 (macfns.o): Don't depend on ccl.h.
9514 * macfns.c (mac_frame_parm_handlers): Set handlers for
9515 Qleft_fringe and Qright_fringe.
9516 * macterm.c (mac_fill_rectangle_to_pixmap)
9517 (mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
9518 (mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
9519 Put in #if 0.
9520 (mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
9521 (x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
9522 (XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
9523 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
9524 [!MAC_OS8]: Added ifdef'd out code for os8. Don't use
9525 XDrawImageString. Always draw background and foreground separately.
9526 (x_draw_image_foreground): Use clipping instead of computing the
9527 intersection rectangle.
9528 (x_draw_image_glyph_string): Don't draw an image with mask to a
9529 pixmap.
9530 (x_redisplay_interface): Set flush_display_optional member to 0.
9531 (XTread_socket): Correctly reset the TEConverter
9532 object.
9533
9534 2004-11-30 Kim F. Storm <storm@cua.dk>
9535
9536 * lisp.h: New defines to enable buffer overrun checking.
9537 (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
9538 (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
9539
9540 * alloc.c: Add more checks for buffer overruns.
9541 (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
9542 xmalloc_overrun_check_trailer, overrun_check_malloc)
9543 overrun_check_realloc, overrun_check_free): Add.
9544 (GC_STRING_EXTRA, string_overrun_pattern): Add.
9545 (check_sblock, allocate_string_data, compact_small_strings):
9546 Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
9547 (check_cons_list): Condition on GC_CHECK_CONS_LIST.
9548 (check_string_free_list): Add.
9549 (allocate_string, sweep_strings): Call check_string_free_list.
9550
9551 * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if
9552 XMALLOC_OVERRUN_CHECK to avoid crash during load.
9553
9554 2004-11-29 Kim F. Storm <storm@cua.dk>
9555
9556 * fns.c (concat): Use SAFE_ALLOCA.
9557
9558 2004-11-29 Stefan Monnier <monnier@iro.umontreal.ca>
9559
9560 * sysdep.c (emacs_write): Don't use QUIT.
9561
9562 2004-11-29 Kenichi Handa <handa@m17n.org>
9563
9564 * buffer.c (init_buffer): Set current_buffer->directory to a
9565 multibyte string made by string_to_multibyte.
9566
9567 * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
9568
9569 2004-11-27 Andreas Schwab <schwab@suse.de>
9570
9571 * alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined.
9572
9573 * s/gnu-linux.h: Enable no-op gcpros on ia64.
9574 (GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
9575
9576 * filelock.c (lock_file_1): Call get_boot_time early.
9577 Increase buffer size.
9578
9579 2004-11-27 Eli Zaretskii <eliz@gnu.org>
9580
9581 * lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN
9582 is not defined.
9583
9584 2004-11-27 Kim F. Storm <storm@cua.dk>
9585
9586 * search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:'
9587 marker out of doc string.
9588
9589 2004-11-26 Stefan Monnier <monnier@iro.umontreal.ca>
9590
9591 * s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25,
9592 which was not mentioned in the log.
9593
9594 2004-11-26 Kim F. Storm <storm@cua.dk>
9595
9596 * fringe.c (update_window_fringes): Prefer truncation bitmaps over
9597 angle bitmaps at top/bottom line.
9598
9599 * xdisp.c: Undo recent changes for restoring saved_face_id. Instead,
9600 set it when it->method is set to next_element_from_display_vector.
9601 (setup_for_ellipsis): Add LEN argument. Callers changed.
9602 Set it->saved_face_id.
9603 (get_next_display_element): Use loop instead of recursion.
9604 Set it->saved_face_id. Combine duplicate code for ctr chars.
9605 (next_element_from_display_vector): Do not set it->saved_face_id.
9606 (next_element_from_ellipsis): Use setup_for_ellipsis.
9607
9608 2004-11-26 Eli Zaretskii <eliz@gnu.org>
9609
9610 * eval.c (Fdefvar): Declare pdl from last change as `volatile' to
9611 prevent compiler warnings.
9612
9613 2004-11-25 Stefan Monnier <monnier@iro.umontreal.ca>
9614
9615 * keyboard.c (command_loop_1): Print a message describing the key
9616 the user just pressed when this key has no binding.
9617
9618 * sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
9619 (emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
9620
9621 * lread.c (readchar): Check QUIT when `getc' is interrupted.
9622
9623 2004-11-24 Richard M. Stallman <rms@gnu.org>
9624
9625 * coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
9626
9627 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
9628
9629 2004-11-24 Kim F. Storm <storm@cua.dk>
9630
9631 * xdisp.c (move_it_in_display_line_to, display_line):
9632 Restore saved_face_id also when truncate-lines or hscrolled.
9633
9634 2004-11-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9635
9636 * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
9637 x-use-old-gtk-file-dialog.
9638
9639 * xfns.c: Define x_use_old_gtk_file_dialog.
9640 (syms_of_xfns): Rename use-old-gtk-file-dialog to x-... Move it
9641 outside ifdef USE_GTK.
9642
9643 2004-11-23 Stefan Monnier <monnier@iro.umontreal.ca>
9644
9645 * coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
9646 Don't use XFASTINT blindly.
9647
9648 * config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly.
9649
9650 * indent.c (skip_invisible): Avoid non-idempotent side-effects
9651 in macro arguments.
9652
9653 * keymap.c (Flookup_key): Check INTEGERP before XINT.
9654
9655 * lread.c (oblookup): Don't use XFASTINT blindly.
9656
9657 * window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int.
9658 (decode_next_window_args, window_loop): Don't use XFASTINT blindly.
9659
9660 2004-11-23 Kim F. Storm <storm@cua.dk>
9661
9662 * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
9663 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
9664
9665 * xfaces.c (lookup_named_face): Add signal_p arg. Return -1 if
9666 signal_p is zero and face name is unknown.
9667 (Fx_list_fonts): Don't signal error in lookup_named_face.
9668 (Fface_font): Signal error in lookup_named_face.
9669 (ascii_face_of_lisp_face): Likewise.
9670
9671 * dispextern.h (lookup_named_face): Fix prototype.
9672
9673 * xdisp.c (handle_single_display_prop): Don't signal error in
9674 lookup_named_face for unknown fringe face name.
9675 (highlight_trailing_whitespace): Don't signal error in
9676 lookup_named_face if trailing-whitespace face unknown.
9677 (calc_line_height_property): Don't signal error in
9678 lookup_named_face if specified face name is unknown.
9679
9680 * fringe.c (update_window_fringes): Show top row indicator if
9681 window has header-line. Don't show arrow at bob and eob
9682 if the boundary indicators are not used.
9683 (Fset_fringe_bitmap_face): Signal error in lookup_named_face.
9684
9685 * window.c (set_window_buffer): Clear display_error_modiff.
9686
9687 2004-11-22 Kim F. Storm <storm@cua.dk>
9688
9689 * fringe.c (update_window_fringes): Provide sensible fall-back
9690 value for non-nil indicate-buffer-boundaries setting.
9691
9692 2004-11-22 Markus Rost <rost@ias.edu>
9693
9694 * minibuf.c (Fminibuffer_complete_and_exit): Fix previous change.
9695
9696 2004-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
9697
9698 * eval.c (Fdefvar): Warn when var is let-bound but globally void.
9699
9700 2004-11-21 Kim F. Storm <storm@cua.dk>
9701
9702 * xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA.
9703
9704 * xterm.c (x_clip_to_row): Add area arg. Callers changed.
9705 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
9706
9707 * w32term.c (w32_clip_to_row): Add area arg. Callers changed.
9708 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
9709
9710 * macterm.c (x_clip_to_row): Add area arg. Callers changed.
9711 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
9712
9713 * xdisp.c (move_it_in_display_line_to, display_line):
9714 Restore saved_face_id if overflow-newline-into-fringe is enabled and
9715 line is continued before or in middle of element from display vector.
9716
9717 * indent.c (Fvertical_motion): Fix last change. Use another
9718 method to detect if iterator moved too far ahead after reseat.
9719
9720 * xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro. Do not
9721 expand matrix width for overflow in zero-width area.
9722 (append_glyph, append_composite_glyph, produce_image_glyph)
9723 (append_stretch_glyph): Use it to avoid loop in redisplay.
9724 (note_mode_line_or_margin_highlight): Don't let help-echo from
9725 string override help-echo from image map.
9726
9727 2004-11-20 Luc Teirlinck <teirllm@auburn.edu>
9728
9729 * fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument.
9730 * callint.c (Fcall_interactively): Ditto.
9731
9732 2004-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
9733
9734 * minibuf.c (Fminibuffer_complete_and_exit):
9735 Fixup the case of the completed value, for case-indep completion.
9736
9737 2004-11-20 Richard M. Stallman <rms@gnu.org>
9738
9739 * lisp.h (Fread_from_minibuffer): Add arg in decl.
9740
9741 * minibuf.c (read_minibuf): New arg KEEP_ALL. Callers changed.
9742 (Fread_from_minibuffer): New arg KEEP_ALL. Callers changed.
9743
9744 * search.c (Vsearch_spaces_regexp):
9745 Rename from Vsearch_whitespace_regexp. All uses changed.
9746
9747 2004-11-20 Thien-Thi Nguyen <ttn@gnu.org>
9748
9749 * eval.c (init_eval_once): Increase `max_specpdl_size' to 650.
9750
9751 2004-11-19 Richard M. Stallman <rms@gnu.org>
9752
9753 * search.c (Vsearch_whitespace_regexp): New variable.
9754 (syms_of_search): Defvar it.
9755 (compile_pattern_1): Call re_set_whitespace_regexp with it.
9756 (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
9757 is non-nil.
9758 (struct regexp_cache): New element whitespace_regexp.
9759 (syms_of_search): Initialize whitespace_regexp elements.
9760 (compile_pattern): Compare whitespace_regexp elements.
9761 (compile_pattern_1): Set whitespace_regexp elements.
9762
9763 * regex.c (regex_compile): Substitute whitespace_regexp
9764 for spaces, if it is nonzero.
9765 (whitespace_regexp): New variable.
9766 (re_set_whitespace_regexp): New function.
9767
9768 2004-11-19 Kim F. Storm <storm@cua.dk>
9769
9770 * indent.c (Fvertical_motion): Fix last change.
9771
9772 2004-11-18 Kim F. Storm <storm@cua.dk>
9773
9774 * indent.c (Fvertical_motion): Undo 2004-11-16 change.
9775 Instead, move back again if reseating moves too far ahead.
9776
9777 2004-11-17 Luc Teirlinck <teirllm@auburn.edu>
9778
9779 * xdisp.c (message3): Call clear_message.
9780
9781 2004-11-17 Kim F. Storm <storm@cua.dk>
9782
9783 * xdisp.c (erase_phys_cursor): Adjust cursor row visible height.
9784
9785 2004-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9786
9787 * gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW.
9788
9789 * xmenu.c (x_menu_in_use): Remove.
9790 (x_menu_set_in_use): Also set popup_activated_flag.
9791
9792 * xfns.c (Fx_file_dialog): Call popup_activated instead of
9793 x_menu_in_use. Call x_menu_set_in_use in Motif version also.
9794
9795 * xterm.h (x_menu_in_use): Remove.
9796
9797 2004-11-16 Richard M. Stallman <rms@gnu.org>
9798
9799 * keymap.c (Fmap_keymap): New arg SORT-FIRST.
9800 Use map-keymap-internal to implement that.
9801
9802 * indent.c (Fvertical_motion): In batch mode, use vmotion directly.
9803
9804 2004-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
9805
9806 * xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's
9807 a window before using XWINDOW.
9808
9809 * window.c (make_window, Fselect_window, make_dummy_parent)
9810 (save_window_save):
9811 * frame.c (make_frame):
9812 * fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments.
9813
9814 * lisp.h (NILP): Use EQ rather than XFASTINT.
9815
9816 2004-11-16 Kim F. Storm <storm@cua.dk>
9817
9818 * fringe.c (Fdefine_fringe_bitmap): Always set 'h'. Simplify.
9819
9820 * indent.c (Fvertical_motion): Fix last change. Only reseat when
9821 moving backwards.
9822
9823 2004-11-16 Luc Teirlinck <teirllm@auburn.edu>
9824
9825 * dispextern.h: Extern reseat_at_previous_visible_line_start.
9826
9827 2004-11-16 Kenichi Handa <handa@m17n.org>
9828
9829 * xdisp.c (display_mode_element): Fix previous change (calculate
9830 end position of substring to display correctly).
9831
9832 2004-11-16 Kim F. Storm <storm@cua.dk>
9833
9834 * keyboard.c (Fposn_at_point): Remove extra */ after doc string.
9835 Reported by Andrew M. Scott.
9836
9837 2004-11-15 Kim F. Storm <storm@cua.dk>
9838
9839 * fns.c (Fsafe_plist_get): New defun.
9840 (syms_of_fns): Defsubr it.
9841
9842 * lisp.h (Fsafe_plist_get): Add EXFUN.
9843
9844 * xdisp.c (store_mode_line_string, produce_stretch_glyph):
9845 Use Fsafe_plist_get.
9846 (note_mode_line_or_margin_highlight, note_mouse_highlight):
9847 Fix image map element parsing. Use Fsafe_plist_get.
9848
9849 2004-11-15 Richard M. Stallman <rms@gnu.org>
9850
9851 * xdisp.c (get_next_display_element): Fix previous change.
9852
9853 2004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9854
9855 * window.c (shrink_windows): Handle special case of one window left
9856 when trying to shrink the final reminder. Grow windows if
9857 total_removed is less than total_shrink.
9858
9859 * xmenu.c (pop_down_menu): Remove global variable current_menu,
9860 extract pointer from arg with XSAVE_VALUE.
9861 (create_and_show_popup_menu, create_and_show_dialog, xmenu_show):
9862 Construct arg to record_unwind_protect with make_save_value.
9863
9864 2004-11-13 Richard M. Stallman <rms@gnu.org>
9865
9866 * xdisp.c (reseat_at_previous_visible_line_start): No longer static.
9867 (get_next_display_element): Fix previous change to apply only to \n.
9868
9869 * indent.c (Fvertical_motion): Scan to PT from start of line to
9870 make iterator consistent.
9871
9872 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
9873
9874 2004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9875
9876 * gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT.
9877
9878 * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
9879 Record unwind with clean_up_file_dialog.
9880
9881 * xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event):
9882 Declare.
9883
9884 * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
9885
9886 2004-11-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9887
9888 * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
9889 (xg_file_sel_destroy): Remove.
9890 (xg_file_response_cb, pop_down_file_dialog)
9891 (xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
9892 New functions.
9893 (xg_get_file_with_chooser, xg_get_file_with_selection):
9894 Take new arg func, set it to xg_get_file_name_from_chooser/selector.
9895 Move common code to xg_get_file_name. Return widget created.
9896 (xg_get_file_name): Set name, transient for, modal and destroy
9897 with parent here. Connect response signal to xg_file_response_cb,
9898 connect delete-event to gtk_true. Record pop_down_file_dialog
9899 for unwind. Do event loop and call x_menu_wait_for_event in loop.
9900 (xg_create_widget): Make dialogs modal.
9901
9902 * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
9903 Lisp_Object.
9904 (popup_get_selection): Move unwind protect ...
9905 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
9906 Move destroy of widget to pop_down_menu.
9907 (popup_widget_loop): Move unwind protect ...
9908 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
9909 Move destroy of widget to pop_down_menu.
9910 (pop_down_menu): BLOCK_INPUT and destroy widget/window.
9911 (xmenu_show): Record unwind pop_down_menu. Move XMenuDestroy,
9912 x_mouse_leave and grabbed = 0 to pop_down_menu.
9913
9914 2004-11-13 Kim F. Storm <storm@cua.dk>
9915
9916 * xdisp.c (make_cursor_line_fully_visible_p): New variable.
9917 (syms_of_xdisp): DEFVAR_BOOL it.
9918 (make_cursor_line_fully_visible, try_cursor_movement)
9919 (try_window_id): Use it.
9920
9921 2004-11-12 Kim F. Storm <storm@cua.dk>
9922
9923 * dispextern.h (struct glyph_row): New member extra_line_spacing.
9924 (struct it): New member max_extra_line_spacing.
9925 (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
9926 (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
9927 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
9928 part of last line is only extra line spacing (so the text on the
9929 line is fully visible). Use helper macros.
9930 Add W arg (to use them). All callers changed.
9931 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
9932 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
9933
9934 * window.c (window_scroll_pixel_based, Frecenter):
9935 Use move_it_vertically_backward directly.
9936 (Frecenter): Fix calculation of new start pos for negative arg.
9937 Before, the new start pos was sometimes chosen too far back, so
9938 the last line became only partially visible, and thus would be
9939 either only semi-visible or automatically scrolled to the middle
9940 of the window by redisplay.
9941
9942 * xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
9943 (move_it_vertically_backward): Don't recure to move further back.
9944 (move_it_vertically): Remove superfluous condition.
9945 (move_it_by_lines): Clear last_height when moved 0 lines.
9946 (resize_mini_window): Use it.max_extra_line_spacing.
9947 (display_tool_bar_line): Clear row->extra_line_spacing.
9948 (try_scrolling): Use move_it_vertically_backward directly.
9949 (redisplay_window): Likewise.
9950 (compute_line_metrics): Set row->extra_line_spacing.
9951 (display_line, display_string): Likewise.
9952 (x_produce_glyphs): Update it->max_extra_line_spacing.
9953
9954 * xmenu.c (pop_down_menu): Return nil.
9955
9956 2004-11-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9957
9958 * xmenu.c (x_menu_wait_for_event): New function.
9959 (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
9960 to handle timers.
9961 (popup_widget_loop): Add argument do_timers.
9962 (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
9963 do_timers to popup_widget_loop.
9964 (xmenu_show): Call XMenuActivateSetWaitFunction so that
9965 x_menu_wait_for_event is called by XMenuActivate.
9966 (create_and_show_popup_menu): Pass 1 for do_timers to
9967 popup_get_selection.
9968 (pop_down_menu): New function.
9969 (popup_get_selection, popup_widget_loop): Unwind protect to
9970 pop_down_menu.
9971 (popup_widget_loop): Add argument widget.
9972 (create_and_show_popup_menu, create_and_show_dialog): Pass new
9973 argument widget to popup_widget_loop.
9974
9975 2004-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
9976
9977 * keymap.c (Fkeymap_prompt): Accept symbol keymaps.
9978
9979 2004-11-09 Kim F. Storm <storm@cua.dk>
9980
9981 * xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
9982 Fix various comments referring to XEvents instead of input events.
9983 (x_queue_event): Fix format strings.
9984 (x_stop_queuing_selection_requests): Likewise.
9985
9986 * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
9987 (pint2hrstr): Add extra braces to silence compiler.
9988
9989 * print.c (print_object): Fix format string.
9990
9991 * lread.c (read1): Fix next_char matching.
9992
9993 * lisp.h (Fdelete): Add EXFUN.
9994 (replace_range_2): Add prototype.
9995
9996 * keyboard.c (read_avail_input): Remove unused variable 'discard'.
9997
9998 * intervals.h (NULL_INTERVAL_P): Add separate version when
9999 ENABLE_CHECKING is not defined to silence compiler.
10000 (compare_string_intervals): Add prototype.
10001
10002 * fringe.c (destroy_fringe_bitmap): Fix return type.
10003 (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
10004
10005 * emacs.c (Fdump_emacs): Fix format string.
10006
10007 * doc.c: Include <ctype.h>.
10008 (Fsubstitute_command_keys): Remove unused variable 'firstkey'.
10009
10010 * data.c (store_symval_forwarding): Remove unused variables.
10011
10012 * callint.c (Fcall_interactively): Remove unused variable 'funcar'.
10013
10014 2004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10015
10016 * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
10017 to ${OLDXMENU}.
10018
10019 2004-11-09 Kim F. Storm <storm@cua.dk>
10020
10021 * process.c (Fmake_network_process): Remove kludge for interrupted
10022 connects on BSD. If connect is interrupted, just close socket and
10023 start over rather than sleeping and retry with same socket.
10024
10025 2004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10026
10027 * .cvsignore: Add buildobj.lst.
10028
10029 * doc.c: New variable Vbuild_files.
10030 (Fsnarf_documentation): If Vbuild_files is nil, populate it with
10031 file names from buildobj.lst. Only attach docstrings from files
10032 that are in Vbuild_files.
10033 (syms_of_doc): Defvar Vbuild_files.
10034
10035 * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
10036 and w32*.o.
10037 (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
10038 (mostlyclean): Rm buildobj.lst
10039
10040 * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
10041 is linked.
10042
10043 2004-11-09 Kim F. Storm <storm@cua.dk>
10044
10045 * fringe.c (update_window_fringes): Update fringe bitmaps if
10046 cur and row ends_at_zv_p differs. If bitmaps of a row is updated,
10047 also update previous row to get rid of misc. artifacts.
10048
10049 2004-11-08 Kim F. Storm <storm@cua.dk>
10050
10051 * xdisp.c (fast_find_position): Fix start pos if header line present.
10052 (note_mouse_highlight): Clear mouse face if we move out of text area.
10053
10054 2004-11-08 Eli Zaretskii <eliz@gnu.org>
10055
10056 * editfns.c: Move #include "systime.h" before <sys/resource.h>.
10057 Don't include <sys/time.h> explicitly.
10058 Include <stdio.h> unconditionally, not just on MacOS.
10059
10060 2004-11-08 Kenichi Handa <handa@m17n.org>
10061
10062 * fontset.c (fontset_pattern_regexp): Cancel my previous change;
10063 don't pay attention to '\' before '*'.
10064 (fontset_pattern_regexp): Change the meaning of the second arg.
10065 (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
10066 (check_fontset_name): Try NAME as literal at first, and if it
10067 failes, try NAME as pattern.
10068
10069 2004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10070
10071 * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
10072
10073 2004-11-07 Andreas Schwab <schwab@suse.de>
10074
10075 * lisp.h (Fmsdos_downcase_filename): Declare.
10076 * dired.c (Fmsdos_downcase_filename): Don't declare here.
10077 * fileio.c: Likewise.
10078
10079 2004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10080
10081 * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
10082 comparisons with integers instead of Lisp_Object address.
10083 (Fmsdos_set_keyboard): Declare argument allkeys.
10084
10085 * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
10086
10087 * dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid
10088 int/Lisp_Object mixup.
10089
10090 * fileio.c: Ditto.
10091
10092 2004-11-06 Steven Tamm <steventamm@mac.com>
10093
10094 * editfns.c: Need to include sys/time.h before resource.h on darwin.
10095
10096 2004-11-06 Richard M. Stallman <rms@gnu.org>
10097
10098 * callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
10099
10100 * xfaces.c (merge_named_face): GCPRO the face_name in the
10101 named_merge_point struct that we make.
10102 (merge_face_heights): Eliminate GCPRO arg. All callers changed.
10103
10104 * keyboard.c (command_loop_1): Change Vtransient_mark_mode
10105 before deciding whether to inactivate mark.
10106
10107 2004-11-06 Lars Brinkhoff <lars@nocrew.org>
10108
10109 * config.in: Regenerate (add HAVE_GETRUSAGE).
10110 * editfns.c (Fget_internal_run_time): New function.
10111 (syms_of_data): Defsubr it.
10112 * fns.c (sxhash): As far as possible, merge calculation of
10113 hash code for symbols and strings.
10114
10115 2004-11-06 Eli Zaretskii <eliz@gnu.org>
10116
10117 * frame.c (syms_of_frame): Fix the example in the doc string.
10118
10119 2004-11-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10120
10121 * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
10122
10123 * xmenu.c (popup_get_selection, create_and_show_popup_menu)
10124 (create_and_show_dialog): Revert change from 2004-10-31.
10125
10126 2004-11-05 Luc Teirlinck <teirllm@auburn.edu>
10127
10128 * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
10129
10130 2004-11-05 Kim F. Storm <storm@cua.dk>
10131
10132 * print.c (print_object): Print Lisp_Misc_Save_Value objects.
10133
10134 * fileio.c (Ffile_modes): Doc fix.
10135 (auto_save_1): Check for Ffile_modes nil value.
10136
10137 2004-11-05 Kim F. Storm <storm@cua.dk>
10138
10139 * xselect.c (struct selection_event_queue, selection_queue)
10140 (x_queue_selection_requests, x_queue_event)
10141 (x_start_queuing_selection_requests)
10142 (x_stop_queuing_selection_requests): Add new queue for selection
10143 input events to replace previous XEvent queue in xterm.c.
10144 (queue_selection_requests_unwind): Adapt to new queue.
10145 (x_reply_selection_request): Adapt to new queue.
10146 Unexpect wait_object in case of x errors (memory leak).
10147 (x_handle_selection_request, x_handle_selection_clear): Make static.
10148 (x_handle_selection_event): New function. May queue selection events.
10149 (wait_for_property_change_unwind): Use save_value instead of cons.
10150 Clear property_change_reply_object.
10151 (wait_for_property_change): Abort if already waiting.
10152 Use save_value instead of cons for unwind data.
10153 (x_handle_property_notify): Skip events already arrived, but don't
10154 free them, as "arrived" field is checked by wait_for_property_change,
10155 and it will be freed by unwind or explicit unexpect_property_change.
10156 (x_get_foreign_selection): Add to new queue.
10157 (receive_incremental_selection): Don't unexpect wait_object when done
10158 as it has already been freed by previous wait_for_property_change.
10159
10160 * xterm.h (x_start_queuing_selection_requests)
10161 (x_stop_queuing_selection_requests, x_handle_selection_request)
10162 (x_handle_selection_clear): Remove prototypes.
10163 (x_handle_selection_event): Add prototype.
10164
10165 * xterm.c (handle_one_xevent): Don't queue X selection events
10166 here, it may be too late if we start queuing after we have already
10167 stored some selection events into the kbd buffer.
10168 (struct selection_event_queue, queue, x_queue_selection_requests)
10169 (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
10170 (x_stop_queuing_selection_requests): Remove/move to xselect.c.
10171 (x_catch_errors_unwind): Block input around final XSync.
10172
10173 * keyboard.h (kbd_buffer_unget_event): Add prototype.
10174
10175 * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
10176 (kbd_buffer_unget_event): New function.
10177 (kbd_buffer_get_event, swallow_events): Combine SELECTION events
10178 and use x_handle_selection_event.
10179 (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
10180
10181 2004-11-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10182
10183 * xselect.c (TRACE3): New debug macro.
10184 (x_reply_selection_request): Use it.
10185 (receive_incremental_selection): In call to TRACE0, the name of
10186 a symbol is in xname.
10187
10188 2004-11-05 Kim F. Storm <storm@cua.dk>
10189
10190 * fontset.c (fontset_pattern_regexp): Use unsigned char.
10191
10192 2004-11-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10193
10194 * fileio.c (Fnext_read_file_uses_dialog_p): New function.
10195
10196 * gtkutil.h (use_old_gtk_file_dialog): Declare.
10197
10198 * gtkutil.c: Make use_old_gtk_file_dialog non-static.
10199 (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
10200 * xfns.c (syms_of_xfns): ... to here.
10201
10202 * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
10203 it doesn't start with /.
10204
10205 2004-11-04 Kenichi Handa <handa@m17n.org>
10206
10207 * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
10208 treat it as a literal character.
10209
10210 2004-11-03 Kim F. Storm <storm@cua.dk>
10211
10212 * .gdbinit (ppt): New function.
10213
10214 2004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10215
10216 * xterm.c (x_window_to_scroll_bar): Only call
10217 xg_get_scroll_id_for_window if toolkit scroll bars are used.
10218
10219 * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
10220 of save.
10221
10222 2004-11-02 Andreas Schwab <schwab@suse.de>
10223
10224 * window.c (Fscroll_right): Fix last change.
10225
10226 2004-11-02 Kim F. Storm <storm@cua.dk>
10227
10228 * Makefile.in (callproc.o): Depend on blockinput.h atimer.h systime.h.
10229
10230 2004-11-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10231
10232 * callproc.c (Fcall_process): Block input around vfork.
10233
10234 2004-11-02 Kim F. Storm <storm@cua.dk>
10235
10236 * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
10237 (syms_of_eval): Defsubr it.
10238
10239 2004-11-02 Richard M. Stallman <rms@gnu.org>
10240
10241 * insdel.c (replace_range_2): New function.
10242
10243 * casefiddle.c (casify_region): Handle changes in byte-length
10244 using replace_range_2.
10245
10246 * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
10247
10248 * xdisp.c (back_to_previous_visible_line_start):
10249 Subtract 1 from pos when checking previous newline for invisibility.
10250
10251 * window.c (window_scroll_pixel_based): Update preserve_y
10252 for header line if any.
10253 (Fscroll_left, Fscroll_right): Don't call interactive_p;
10254 use a new second argument instead.
10255
10256 * eval.c (Fcall_interactive_p): New function.
10257 (interactive_p): Don't test INTERACTIVE here.
10258 (Finteractive_p): Doc fix.
10259
10260 * eval.c (Feval): Abort if INPUT_BLOCKED_P.
10261
10262 2004-11-02 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
10263
10264 * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
10265 comparing font names.
10266
10267 2004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10268
10269 * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
10270 Fx_file_dialog if only directories should be read.
10271
10272 * lisp.h: Fx_file_dialog takes 5 parameters.
10273
10274 * xfns.c (Fx_file_dialog): Both Motif and GTK version:
10275 Add parameter only_dir_p.
10276 In Motif version, don't put DEFAULT_FILENAME in filter part of the
10277 dialog, just text field part. Do not add DEFAULT_FILENAME
10278 to list of files if it isn't there.
10279 In GTK version, pass only_dir_p parameter to xg_get_file_name.
10280
10281 * macfns.c (Fx_file_dialog): Add parameter only_dir_p.
10282 Check only_dir_p instead of comparing prompt to "Dired". When using
10283 a save dialog, add option kNavDontConfirmReplacement, change title
10284 to "Enter name", change text for save button to "Ok".
10285
10286 * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
10287 Check only_dir_p instead of comparing prompt to "Dired".
10288
10289 * gtkutil.c (xg_get_file_with_chooser)
10290 (xg_get_file_with_selection): New functions, only defined ifdef
10291 HAVE_GTK_FILE_CHOOSER_DIALOG_NEW and HAVE_GTK_FILE_SELECTION_NEW
10292 respectively.
10293 (xg_get_file_name): Add parameter only_dir_p.
10294 Call xg_get_file_with_chooser or xg_get_file_with_selection
10295 depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
10296 (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
10297
10298 * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
10299
10300 * config.in: Rebuild (added HAVE_GTK_FILE_*).
10301
10302 2004-11-01 Kim F. Storm <storm@cua.dk>
10303
10304 * process.c (connect_wait_mask, num_pending_connects):
10305 Only declare and use them if NON_BLOCKING_CONNECT is defined.
10306 (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
10307 (IF_NON_BLOCKING_CONNECT): New helper macro.
10308 (wait_reading_process_output): Only declare and use local vars
10309 Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
10310
10311 2004-11-01 Andy Petrusenco <Igrek@star-sw.com> (tiny change)
10312
10313 * w32term.c (x_scroll_run): Delete region objects after use.
10314
10315 2004-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10316
10317 * xmenu.c: Add prototypes for forward function declarations.
10318 (popup_get_selection): Remove parameter do_timers, remove call to
10319 timer_check.
10320 (create_and_show_popup_menu, create_and_show_dialog):
10321 Remove parameter do_timers from call to popup_get_selection.
10322
10323 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
10324 tool_bar_items and assign the result to f->tool_bar_items if
10325 not equal. Move BLOCK/UNBLOCK_INPUT from around call to
10326 tool_bar_items to assignment of result.
10327
10328 * atimer.c (alarm_signal_handler): Do not call set_alarm if
10329 pending_atmers is non-zero.
10330
10331 2004-10-31 Kim F. Storm <storm@cua.dk>
10332
10333 * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
10334
10335 2004-10-28 Will <will@glozer.net>
10336
10337 * macterm.c: Allow user to assign key modifiers to the Mac Option
10338 key via a 'mac-option-modifier' variable.
10339
10340 2004-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
10341
10342 * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
10343 Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
10344 (x_handle_selection_request, x_handle_selection_clear)
10345 (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
10346
10347 2004-10-28 Richard M. Stallman <rms@gnu.org>
10348
10349 * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
10350
10351 * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
10352
10353 2004-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
10354
10355 * syntax.c (scan_sexps_forward): Give precedence to a 2-char
10356 comment-starter over a 1-char one.
10357
10358 2004-10-27 Richard M. Stallman <rms@gnu.org>
10359
10360 * xdisp.c (get_next_display_element): In mode lines,
10361 treat newline and tab like other control characters.
10362
10363 * editfns.c (Fmessage): Doc fix.
10364
10365 * indent.c (vmotion): When moving up, check the newline before.
10366 Make prevline an int, not a Lisp_Object.
10367
10368 2004-10-27 Kim F. Storm <storm@cua.dk>
10369
10370 * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
10371 Only allocate info and discarded tables once.
10372
10373 * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
10374 (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
10375 (SAFE_FREE): Test it to determine if we need to unwind to free.
10376 Remove size arg. All users changed.
10377 (SAFE_FREE_LISP) Remove. All users changed to use SAFE_FREE.
10378
10379 2004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10380
10381 * gtkutil.c: Put empty line between comment and function body.
10382 (xg_destroy_widgets): Rename from remove_from_container.
10383 Just destroy all widgets in list. Argument wcont removed.
10384 (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
10385 instead of remove_from_container.
10386 (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
10387 (free_frame_tool_bar): Add comment.
10388
10389 * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
10390 is not NULL before strcmp.
10391
10392 2004-10-26 Kim F. Storm <storm@cua.dk>
10393
10394 * callint.c (Fcall_interactively): Add 'U' code to get the
10395 up-event discarded by a previous 'k' or 'K' argument.
10396
10397 2004-10-26 David Kastrup <dak@gnu.org>
10398
10399 * buffer.c (syms_of_buffer): Fix a few typos.
10400
10401 2004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10402
10403 * xsmfns.c: Put empty line between comment and function body.
10404 Use two spaces before comment end.
10405
10406 2004-10-25 Kenichi Handa <handa@m17n.org>
10407
10408 * fontset.c (fontset_pattern_regexp): Optimize for the case that
10409 PATTERN is full XLFD.
10410
10411 2004-10-24 Kenichi Handa <handa@m17n.org>
10412
10413 * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
10414
10415 * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
10416 (regex_compile): Return REG_ERANGEX if appropriate.
10417
10418 2004-10-22 Kenichi Handa <handa@m17n.org>
10419
10420 * editfns.c (Ftranslate_region_internal): New function.
10421 (syms_of_editfns): Defsubr it.
10422
10423 2004-10-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10424
10425 * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
10426
10427 2004-10-21 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
10428
10429 * xterm.h (x_output): New member `xic_base_fontname'.
10430 (FRAME_XIC_BASE_FONTNAME): New macro.
10431 (xic_free_xfontset): Declare.
10432
10433 * xfns.c (xic_create_xfontset): Share fontsets between frames
10434 based on base_fontname.
10435 (xic_free_xfontset): New function.
10436 (free_frame_xic): Use it.
10437 (xic_set_xfontset): Ditto.
10438
10439 * xterm.c (xim_destroy_callback): Ditto.
10440
10441 2004-10-20 B. Anyos <banyos@freemail.hu> (tiny change)
10442
10443 * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
10444
10445 2004-10-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10446
10447 * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
10448 XSync.
10449
10450 * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
10451 New variables and constant.
10452 (main): Calculate heap_bss_diff. If we are dumping and the
10453 heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
10454 and exec ourself again.
10455 (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
10456 print a warning.
10457
10458 * lastfile.c: Make my_endbss and my_endbss_static available on all
10459 platforms.
10460
10461 * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
10462 * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
10463
10464 2004-10-19 Luc Teirlinck <teirllm@auburn.edu>
10465
10466 * data.c (Flocal_variable_if_set_p): Doc fix.
10467
10468 2004-10-19 Jason Rumney <jasonr@gnu.org>
10469
10470 * w32.c (init_environment): Set emacs_dir correctly when running
10471 emacs from the build directory.
10472
10473 2004-10-19 Richard M. Stallman <rms@gnu.org>
10474
10475 * editfns.c (Fdelete_and_extract_region):
10476 If region is empty, return null string.
10477
10478 2004-10-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10479
10480 * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
10481 and canon_width.
10482 (xg_frame_cleared): Remove.
10483
10484 * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
10485 (xg_find_top_left_in_fixed): Remove.
10486 (xg_create_scroll_bar): Put an event box widget between
10487 the scroll bar widget and the edit widget.
10488 (xg_show_scroll_bar): Show the parent widget (the event box).
10489 (xg_remove_scroll_bar): Destroy parent (the event box) also.
10490 (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
10491 Move the parent (the event box) widget inside the fixed widget.
10492 Move window clear to xterm.c.
10493
10494 * gtkutil.h (xg_frame_cleared): Remove.
10495
10496 * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
10497 (x_scroll_bar_create, XTset_vertical_scroll_bar):
10498 Remove arguments left and width to xg_update_scrollbar_pos.
10499 (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
10500
10501 2004-10-19 Kenichi Handa <handa@m17n.org>
10502
10503 * xdisp.c (display_mode_element): Fix display of wide chars.
10504
10505 2004-10-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10506
10507 * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
10508 gdk_window_clear and move gdk_window_process_all_updates after
10509 clear so events are sent to the X server in correct order.
10510
10511 2004-10-18 Kenichi Handa <handa@m17n.org>
10512
10513 * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
10514 comparing font names.
10515 (fs_query_fontset): Use fast_string_match for comparing fontset names.
10516 (list_fontsets): Likewise.
10517
10518 * search.c (fast_string_match_ignore_case): New function.
10519
10520 * lisp.h (fast_string_match_ignore_case): Extern it.
10521
10522 2004-10-17 Kim F. Storm <storm@cua.dk>
10523
10524 * xdisp.c (overlay_arrow_at_row): Return overlay string rather
10525 than bitmap if there is not left fringe.
10526 (get_overlay_arrow_glyph_row): Also used on windows system.
10527 (display_line): Display overlay string if no left fringe.
10528
10529 2004-10-16 Jason Rumney <jasonr@gnu.org>
10530
10531 * w32fns.c (w32_font_match): Encode font name being matched.
10532
10533 2004-10-16 Richard M. Stallman <rms@gnu.org>
10534
10535 * window.c (Fspecial_display_p): Doc fix.
10536
10537 2004-10-15 Stefan Monnier <monnier@iro.umontreal.ca>
10538
10539 * doc.c (Fsubstitute_command_keys): Fix remap-handling.
10540 Don't ignore menus, because where-is-internal already does it for us.
10541
10542 2004-10-15 Kim F. Storm <storm@cua.dk>
10543
10544 * xdisp.c (redisplay_window): Only update fringes and vertical
10545 border on window frames.
10546
10547 2004-10-14 Andreas Schwab <schwab@suse.de>
10548
10549 * m/ia64.h (DATA_SEG_BITS): Don't define.
10550
10551 2004-10-14 Kim F. Storm <storm@cua.dk>
10552
10553 * xterm.h: Include Xutil.h after keysym.h to work around bug
10554 in some X versions.
10555
10556 2004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
10557
10558 * fns.c (map_char_table): Add missing gcpros.
10559
10560 2004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
10561
10562 * keymap.c (get_keymap): An autoload form is not a keymap.
10563
10564 * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
10565
10566 2004-10-13 Kim F. Storm <storm@cua.dk>
10567
10568 * callproc.c (Fcall_process): Simplify handling of display arg.
10569 Resume `display_on_the_fly' once a coding system is determined.
10570
10571 * xdisp.c (redisplay_preserve_echo_area): Fix last change.
10572
10573 2004-10-12 Kim F. Storm <storm@cua.dk>
10574
10575 * xdisp.c (redisplay_preserve_echo_area): Flush display in case
10576 caller, such as call-process, is not going to poll for input.
10577 (calc_line_height_property): Handle case where it->object is nil.
10578
10579 * xterm.c (x_redisplay_interface): Fix flush_display_optional.
10580
10581 2004-10-12 Kenichi Handa <handa@m17n.org>
10582
10583 * xdisp.c (get_next_display_element):
10584 If unibyte_display_via_language_environment is zero, display 8-bit
10585 chars in octal in unibyte buffer.
10586
10587 2004-10-12 Kim F. Storm <storm@cua.dk>
10588
10589 * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
10590 are no ordinary bindings.
10591
10592 2004-10-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10593
10594 * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
10595
10596 2004-10-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10597
10598 * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
10599 (x_lower_frame): Add BLOCK_INPUT around SendBehind.
10600 (make_mac_frame): Add BLOCK_INPUT around the making of a
10601 terminal frame.
10602 (mac_initialize): Add BLOCK_INPUT around carbon initialization.
10603 * macgui.h (mktime): Use emacs_mktime.
10604 * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
10605 Make a cancel file-open dialog be like C-g.
10606 * mac.c (mktime): Use emacs_mktime.
10607 (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
10608 (Fmac_paste_function): Add better error handling for carbon cut/paste.
10609
10610 2004-10-10 Kim F. Storm <storm@cua.dk>
10611
10612 * keyboard.c (timer_resume_idle): New function to resume idle
10613 timer without resetting timers on the idle list.
10614 (read_char): Use timer_resume_idle. Remove local var last_idle_start.
10615 (timer_start_idle, timer_stop_idle): Declare static.
10616 (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
10617
10618 * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
10619
10620 2004-10-08 Steven Tamm <steventamm@mac.com>
10621
10622 * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
10623 * macterm.c (mac_check_for_quit_char): Remove warning for using
10624 NULL where 0 should be used.
10625 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
10626 objc/malloc.h
10627 * mac.c: Include time.h for Tiger compatibility.
10628
10629 2004-10-07 Kim F. Storm <storm@cua.dk>
10630
10631 * xdisp.c (redisplay_window): Fix flicker on vertical line between
10632 windows. Update vertical line after drawing window fringes, but
10633 only if actually drawing any bitmaps--or there is no fringe.
10634
10635 * xterm.c (x_update_window_end): Likewise.
10636 * macterm.c (x_update_window_end): Likewise.
10637 * w32term.c (x_update_window_end): Likewise.
10638
10639 * fringe.c (draw_window_fringes): Return value now indicates if
10640 any fringe bitmaps were redrawn (or there are no fringes).
10641
10642 * dispextern.h (draw_window_fringes): Update prototype.
10643
10644 2004-10-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10645
10646 * macfns.c (mac_get_window_bounds): Add extern.
10647 (x_real_positions): Use mac_get_window_bounds.
10648
10649 * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
10650 xmenu.c (YAILOM).
10651
10652 * macterm.c [!MAC_OSX]: Include Windows.h.
10653 (front_emacs_window): Rename from mac_front_window. All uses
10654 changed. Return the frontmost non-tooltip emacs window.
10655 (mac_get_window_bounds): New function.
10656 (x_calc_absolute_position): Use the difference of width and height
10657 between the inner and outer window.
10658 (x_set_offset): Specify window position by the coordinae of the
10659 outer window. Adjust the position if the title bar is completely
10660 outside the screen.
10661 (app_is_suspended, app_sleep_time): Remove unused variables.
10662 (do_app_resume, do_app_suspend): Remove their contents because
10663 window-activate/deactivate events will do the job.
10664 (do_zoom_window): Remove unused variables. Make compliant to the
10665 standard way of zooming. Set f->left_pos and f->top_pos.
10666 (XTread_socket): Don't use argument `expected'. Don't use
10667 FrontWindow to determine the clicked window. Exclude unprocessed
10668 mouseUp cases in the early stage. Add parentheses to fix operator
10669 precedence.
10670 (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
10671
10672 2004-10-05 Jan Dj\e,Ad\e(Brv. <jan.h.d@swipnet.se>
10673
10674 * config.in: Regenerate.
10675
10676 * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
10677 HAVE_EXECSHIELD.
10678
10679 2004-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10680
10681 * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
10682 a row if Alt or Meta has been found for that row. Also stop scanning
10683 for Keysyms for that row.
10684
10685 2004-10-04 Kim F. Storm <storm@cua.dk>
10686
10687 * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
10688 to list. Include overlay arrow bitmap in return value.
10689
10690 * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
10691 bars with fractional column width. If scroll bar separates two
10692 windows, move it towards the window it belongs to. Only update
10693 the padding area below the scroll bar widget when necessary,
10694 i.e. when scroll bar widget is created, moved, or resized.
10695
10696 * xdisp.c (define_frame_cursor1): Do not change frame cursor
10697 while tracking/dragging mouse.
10698 (x_draw_vertical_border): Do not draw line if frame has scroll bars.
10699
10700 * window.c (coordinates_in_window): Relax check for cursor
10701 on vertial border between mode lines.
10702 (Fset_window_fringes): Do not allow negative widths.
10703 (Fset_window_scroll_bars): Likewise.
10704
10705 * .gdbinit (pp): Shorthand for p ARG + pr.
10706 (ff): New command: flush frame updates (X only).
10707
10708 2004-10-03 Michael Albinus <michael.albinus@gmx.de>
10709
10710 * fileio.c (auto_save_1) Call Ffile_modes for remote files.
10711
10712 2004-09-30 Kenichi Handa <handa@m17n.org>
10713
10714 * process.c (send_process): Free composition data.
10715
10716 * fileio.c (Finsert_file_contents): Free composition data.
10717
10718 * coding.c (code_convert_region): Don't skip ASCIIs if there are
10719 compositions to encode.
10720 (encode_coding_string): Likewise. Free composition data.
10721
10722 2004-09-30 Florian Weimer <fw@deneb.enyo.de>
10723
10724 * coding.c (code_convert_region): Free composition data.
10725
10726 2004-09-29 Kim F. Storm <storm@cua.dk>
10727
10728 * fringe.c: Remove limit on number of bitmaps.
10729 (fringe_bitmaps, fringe_faces): Change to pointers.
10730 (max_fringe_bitmaps): New var.
10731 (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
10732 (init_fringe): Allocate fringe_bitmaps and fringe_faces.
10733
10734 * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
10735 (struct glyph_row): Reorder fringe_bitmap related fields.
10736 (struct it): Likewise.
10737
10738 * w32term.c (fringe_bmp): Change to pointer.
10739 (max_fringe_bmp): New var.
10740 (w32_define_fringe_bitmap): Expand fringe_bmp.
10741 (w32_draw_fringe_bitmap): Check max_fringe_bmp.
10742 (w32_destroy_fringe_bitmap): Likewise.
10743
10744 2004-09-29 Kim F. Storm <storm@cua.dk>
10745
10746 * fringe.c: Simplify last change.
10747 (lookup_fringe_bitmap): New function.
10748 (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
10749 (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
10750 Keep standard bitmaps in Vfringe_bitmaps.
10751 (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
10752 (Fset_fringe_bitmap_face): Likewise.
10753
10754 * dispextern.h (lookup_fringe_bitmap): Add prototype.
10755 (valid_fringe_bitmap_p): Remove prototype.
10756
10757 * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
10758
10759 2004-09-29 Kim F. Storm <storm@cua.dk>
10760
10761 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
10762 (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
10763
10764 * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
10765
10766 * fringe.c (Vfringe_bitmaps): New variable.
10767 (syms_of_fringe): DEFVAR_LISP it.
10768 (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
10769 Change arg to Lisp_Object and fail if not an integer.
10770 (get_fringe_bitmap_name, resolve_fringe_bitmap)
10771 (destroy_fringe_bitmap): New functions.
10772 (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
10773 Use destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and
10774 clear its fringe property.
10775 (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
10776 Fdestroy_fringe_bitmap.
10777 (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
10778 bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps
10779 and set fringe property. Signal error if no free slots.
10780 (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
10781 (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
10782
10783 * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
10784 symbols with a fringe property.
10785
10786 2004-09-27 Kim F. Storm <storm@cua.dk>
10787
10788 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
10789 Doc fix. Format may now be a symbol or alist, not a cons.
10790
10791 * fringe.c (update_window_fringes): Handle new formats of
10792 indicate-buffer-boundaries (symbol or alist). No longer
10793 allow a simple cons.
10794 (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
10795
10796 2004-09-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10797
10798 * config.in: Rebuild.
10799
10800 2004-09-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10801
10802 * config.in: Rebuild.
10803
10804 * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
10805
10806 2004-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
10807
10808 * xterm.c (x_term_init): Work around a bug in some X servers.
10809
10810 2004-09-18 Richard M. Stallman <rms@gnu.org>
10811
10812 * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
10813
10814 * xdisp.c (try_window_reusing_current_matrix):
10815 Handle the case where we reach the old displayed text,
10816 out of sync with the old line boundary.
10817
10818 2004-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
10819
10820 * fileio.c (Finsert_file_contents): Fix case of replacement in a
10821 narrowed buffer.
10822
10823 2004-09-14 Kim F. Storm <storm@cua.dk>
10824
10825 * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
10826
10827 * xfaces.c (Qface_no_inherit): New var.
10828 (syms_of_xfaces): Intern and staticpro it.
10829 (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
10830 (Finternal_copy_lisp_face, update_face_from_frame_parameter):
10831 Don't increment face_change_count when face has non-nil
10832 face-no-inherit property.
10833
10834 2004-09-13 Stefan Monnier <monnier@iro.umontreal.ca>
10835
10836 * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
10837 (Fbyte_code): Remove dead code after `wrong_type_argument'.
10838
10839 * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
10840 before doing the mark_stack_check_gcpros since they're not on the stack.
10841
10842 2004-09-12 Kim F. Storm <storm@cua.dk>
10843
10844 * editfns.c (Fformat): Handle format strings with multiple text
10845 properties. Reverse text property list from the format string,
10846 so the positions are in increasing order.
10847
10848 2004-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10849
10850 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
10851 x_uncatch_errors so that possible protocol errors are delivered.
10852
10853 2004-09-10 Eli Zaretskii <eliz@gnu.org>
10854
10855 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
10856 blockinput.h.
10857 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
10858 charset.h, and coding.h
10859 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
10860 (term.o): Depend on window.h and keymap.h.
10861 (abbrev.o): Depend on syntax.h.
10862 (callint.o): Depend on keymap.h.
10863 (casefiddle.o): Depend on charset.h and keymap.h.
10864 (category.o): Depend on keymap.h.
10865 (coding.o): Depend on dispextern.h.
10866 (cmds.o): Depend on keyboard.h and keymap.h.
10867 (dispnew.o): Depend on indent.h and intervals.h.
10868 (doc.o): Depend on keymap.h.
10869 (editfns.o): Depend on frame.h.
10870 (emacs.o): Depend on dispextern.h.
10871 (fileio.o): Don't depend on ccl.h.
10872 (filelock.o): Depend on charset.h and coding.h.
10873 (frame.o): Depend on w32term.h and macterm.h.
10874 (insdel.o): Depend on region-cache.h.
10875 (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
10876 (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
10877 (search.o): Depend on $(INTERVALS_SRC).
10878 (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
10879 (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
10880 xterm.h, w32term.h, and macterm.h.
10881 (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
10882 w32term.h, and macterm.h.
10883 (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
10884 region-cache.h, xterm.h, w32term.h, and macterm.h.
10885 (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
10886 (data.o): Depend on frame.h.
10887 (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
10888 (print.o): Depend on termchar.h and $(INTERVALS_SRC).
10889 (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
10890 (intervals.o): Depend on keymap.h.
10891
10892 * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
10893 Add debugging print-out to termscript.
10894
10895 2004-09-09 Richard M. Stallman <rms@gnu.org>
10896
10897 * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
10898
10899 2004-09-08 Richard M. Stallman <rms@gnu.org>
10900
10901 * window.c (Fset_window_buffer): Doc fix.
10902
10903 * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
10904
10905 2004-09-08 Dan Nicolaescu <dann@ics.uci.edu>
10906
10907 * minibuf.c (history_delete_duplicates): New variable.
10908 (read_minibuf): Use it.
10909 (syms_of_minibuf): Create the corresponding lisp variable.
10910
10911 2004-09-08 Kim F. Storm <storm@cua.dk>
10912
10913 * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
10914 overlay just before point.
10915
10916 2004-09-07 Luc Teirlinck <teirllm@auburn.edu>
10917
10918 * buffer.h (struct buffer): Add auto_save_file_format field.
10919 * buffer.c (reset_buffer, init_buffer_once):
10920 Handle auto_save_file_format field.
10921 (syms_of_buffer): Add DEFVAR_PER_BUFFER for
10922 `buffer-auto-save-file-format'.
10923 * fileio.c: Delete declaration for removed Vauto_save_file_format.
10924 (build_annotations): Adapt to replacement of
10925 `auto-save-file-format' with the new buffer-local variable
10926 `buffer-auto-save-file-format'.
10927 (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
10928
10929 2004-09-07 Jason Rumney <jasonr@gnu.org>
10930
10931 * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
10932
10933 * w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]:
10934 Handle Unicode menu titles.
10935
10936 2004-09-07 Kim F. Storm <storm@cua.dk>
10937
10938 * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor'
10939 property from text property or overlay strings at point.
10940
10941 2004-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
10942
10943 * xmenu.c (update_submenu_strings): YAILOM.
10944 (set_frame_menubar): Make sure last_i is initialized.
10945
10946 2004-09-03 Jason Rumney <jasonr@gnu.org>
10947
10948 * w32menu.c (_widget_value): Add lname and lkey.
10949 (digest_single_submenu): Set lname and lkey in widget_value
10950 instead of name and key.
10951 (update_submenu_strings): New function.
10952 (set_frame_menubar): Remove call to inhibit_garbage_collection,
10953 call update_submenu_strings.
10954
10955 * w32menu.c (globals_of_w32menu): Check for Unicode API.
10956 (digest_single_submenu, w32_menu_show): Encode menu strings as
10957 UTF-8 if Unicode API is available.
10958 (utf8to16): New function.
10959 (add_menu_item): Use it when calling Unicode API.
10960
10961 2004-09-03 Kim F. Storm <storm@cua.dk>
10962
10963 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
10964 in overlay or text-property strings; set cursor on corresponding
10965 glyph rather than at end of the string.
10966
10967 2004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10968
10969 * macfns.c (x_real_positions): Save the current window port and
10970 set a new one before obtaining the global coordinate.
10971 Use FRAME_MAC_WINDOW.
10972 (x_set_name, x_set_title): Encode title to UTF8.
10973 Use SetWindowTitleWithCFString.
10974 (Fx_server_version): Get correct OS version.
10975
10976 * macmenu.c (add_menu_item): Remove unused variable `i'.
10977 Don't let separator items destroy refence constants of other menu items.
10978
10979 * macterm.c (x_update_end): Move SetPortWindowPort to inside
10980 BLOCK_INPUT.
10981 (x_set_offset): Use FRAME_MAC_WINDOW.
10982
10983 * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
10984 nontext_cursor if it is on a scroll bar.
10985
10986 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
10987 Carbon support.
10988 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
10989 Use LIBS_CARBON.
10990
10991 2004-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10992
10993 * xfns.c (x_set_name_internal): New function. Check if we shall call
10994 xfree before ENCODE_UTF_8.
10995 (x_set_name, x_set_title): Call x_set_name_internal.
10996
10997 2004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
10998
10999 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
11000 reload it.
11001
11002 2004-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11003
11004 * macmenu.c (_widget_value): Add lname and lkey.
11005 (single_submenu): Set lname and lkey in widget_value
11006 instead of name and key.
11007 (update_submenu_strings): New function.
11008 (set_frame_menubar): Remove call to inhibit_garbage_collection,
11009 call update_submenu_strings.
11010
11011 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
11012 instead of name and key.
11013 (update_submenu_strings): New function.
11014 (set_frame_menubar): Remove call to inhibit_garbage_collection,
11015 call update_submenu_strings.
11016
11017 * gtkutil.h (_widget_value): Added lname and lkey.
11018
11019 2004-08-30 Steven Tamm <steventamm@mac.com>
11020
11021 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
11022 by using different names for inner loop variables.
11023
11024 2004-08-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11025
11026 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
11027 from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
11028
11029 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
11030 tool bar items is 0.
11031
11032 2004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11033
11034 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
11035 strings in menu items.
11036 (single_submenu): Use ENCODE_MENU_STRING
11037 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
11038 button release isn't passed to event loop
11039 (add_menu_item): Use SetMenuItemWithCFString
11040
11041 2004-08-26 Steven Tamm <steventamm@mac.com>
11042
11043 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
11044 tool-bar/menu click.
11045 * macfns.c (Fx_file_dialog): Implement using NavServices.
11046
11047 2004-08-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11048
11049 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
11050
11051 * xfns.c (x_window_to_frame, x_any_window_to_frame)
11052 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
11053 (x_top_window_to_frame): Return 0 if wdesc is None.
11054
11055 2004-08-22 Richard M. Stallman <rms@gnu.org>
11056
11057 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
11058 HAVE_TERMIOS]: If there's no char for this signal, drop through
11059 and use system calls.
11060
11061 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
11062
11063 2004-08-20 Kim F. Storm <storm@cua.dk>
11064
11065 * process.c (wait_reading_process_output): Rename from
11066 wait_reading_process_input. All uses changed.
11067 (wait_reading_process_output_1): Rename from
11068 wait_reading_process_input_1. All uses changed.
11069
11070 * dispnew.c (Fsleep_for): Remove obsolete code.
11071
11072 2004-08-20 Kenichi Handa <handa@m17n.org>
11073
11074 * syntax.c (skip_chars): Fix for unibyte case.
11075
11076 2004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
11077
11078 * syntax.c (char_quoted): Mixup byte/char pos.
11079 (back_comment): Fixup globals in all cases.
11080
11081 2004-08-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11082
11083 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
11084 passing it to gtk_window_set_title.
11085
11086 2004-08-19 Kim F. Storm <storm@cua.dk>
11087
11088 * process.c (wait_reading_process_input): Clean up.
11089 Add wait_for_cell, wait_proc, and just_wait_proc args
11090 to avoid overloading `read_kbd' and `do_display' args.
11091 Change read_kbd arg to int. All callers changed.
11092
11093 * process.c (process_send_signal): Use CDISABLE.
11094
11095 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
11096
11097 2004-08-18 Kim F. Storm <storm@cua.dk>
11098
11099 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
11100 forward to wait_reading_process_input via DO_DISPLAY arg.
11101 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
11102 object, only process output from that process; also inhibit
11103 running timers if DO_DISPLAY==-2.
11104
11105 2004-08-17 Kim F. Storm <storm@cua.dk>
11106
11107 * process.c (process_send_signal): Fix last change--use
11108 _POSIX_VDISABLE instead of CVDISABLE when available.
11109
11110 2004-08-16 Richard M. Stallman <rms@gnu.org>
11111
11112 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
11113 Set VQUIT and VINTR chars to the standard ones if they are unset.
11114 [AIX]: Don't do that here. And don't force VINTR to standard
11115 when SIGNALS_VIA_CHARACTERS.
11116
11117 * process.c (process_send_signal)
11118 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
11119 Do nothing if the character is CVDISABLE.
11120
11121 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
11122
11123 * intervals.c (move_if_not_intangible):
11124 Force POSITION to be between BEGV and ZV.
11125
11126 2004-08-14 John Paul Wallington <jpw@gnu.org>
11127
11128 * buffer.c (Frestore_buffer_modified_p): Doc fix.
11129
11130 * fileio.c (Fread_file_name): Doc fix.
11131
11132 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
11133
11134 2004-08-09 Luc Teirlinck <teirllm@auburn.edu>
11135
11136 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
11137
11138 2004-08-08 Luc Teirlinck <teirllm@auburn.edu>
11139
11140 * keyboard.c: Declare Qdisabled_command_function instead of
11141 Qdisabled_command_hook.
11142 (Fcommand_execute): Use Qdisabled_command_function instead of
11143 Qdisabled_command_hook.
11144 (syms_of_keyboard): Ditto.
11145
11146 2004-08-07 Luc Teirlinck <teirllm@auburn.edu>
11147
11148 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
11149 (syms_of_keymap) <key-translation-map>: Doc fixes.
11150
11151 2004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
11152
11153 * window.c (window_list_1): YAILOM.
11154
11155 * fileio.c (make_temp_name): Handle multibyte prefixes.
11156
11157 2004-08-06 Luc Teirlinck <teirllm@auburn.edu>
11158
11159 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
11160 Doc fix.
11161
11162 2004-08-03 Kenichi Handa <handa@m17n.org>
11163
11164 * coding.c (decode_coding_string): Adjust coding->consumed, and
11165 etc. with shrinked_bytes.
11166
11167 2004-08-03 Kim F. Storm <storm@cua.dk>
11168
11169 * indent.c (compute_motion): Fix check for full width window
11170 in non-window case. Do not count left truncation glyph on
11171 window systems.
11172
11173 2004-08-02 Luc Teirlinck <teirllm@auburn.edu>
11174
11175 * data.c (Finteractive_form): Doc fix.
11176
11177 2004-08-02 Kim F. Storm <storm@cua.dk>
11178
11179 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
11180 properly accounting for continuation glyph on non-window systems.
11181 (Fcompute_motion): Use actual window width if WIDTH is nil, and
11182 actual window width/height if TOPOS is nil, properly accounting for
11183 continuation glyphs on non-window systems, and optional header lines.
11184 (vmotion): Let compute_motion calculate actual window width.
11185
11186 * window.c (window_scroll_line_based): Let compute_motion
11187 calculate actual window width.
11188
11189 2004-08-02 Kim F. Storm <storm@cua.dk>
11190
11191 * process.c (read_process_output): Use whole read buffer.
11192 Don't trigger adaptive read buffering on errors.
11193
11194 2004-07-31 Luc Teirlinck <teirllm@auburn.edu>
11195
11196 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
11197
11198 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
11199
11200 * callint.c (Fcall_interactively): Doc fix.
11201
11202 2004-07-30 Richard M. Stallman <rms@gnu.org>
11203
11204 * abbrev.c (Fexpand_abbrev): Undo previous change.
11205
11206 2004-07-30 Kim F. Storm <storm@cua.dk>
11207
11208 * editfns.c (Fformat): Allocate extra (dummy) element in info.
11209
11210 2004-07-28 Luc Teirlinck <teirllm@auburn.edu>
11211
11212 * eval.c (Fdefvar, Fdefconst): Doc fixes.
11213
11214 2004-07-27 Kim F. Storm <storm@cua.dk>
11215
11216 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
11217 we have ensured that the glyph fits on the current line (or returned
11218 MOVE_LINE_CONTINUED otherwise).
11219
11220 2004-07-26 Kim F. Storm <storm@cua.dk>
11221
11222 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
11223 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
11224 if target position is at end of display line but char is not a newline.
11225
11226 2004-07-25 Richard M. Stallman <rms@gnu.org>
11227
11228 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
11229 instead of ON_VERTICAL_BORDER, when on scroll bar.
11230 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
11231
11232 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
11233
11234 * window.c (Fcoordinates_in_window_p):
11235 Take account of FRAME_INTERNAL_BORDER_WIDTH.
11236
11237 * alloc.c (check_cons_list): New function (contents commented out).
11238
11239 2004-07-24 Luc Teirlinck <teirllm@auburn.edu>
11240
11241 * xfaces.c (Fcolor_supported_p): Doc fix.
11242
11243 * frame.c (Fselect_frame, Fset_frame_selected_window)
11244 (Fframe_visible_p, Fraise_frame): Doc fixes.
11245
11246 2004-07-24 Richard M. Stallman <rms@gnu.org>
11247
11248 * keyboard.h (not_single_kboard_state): Declare.
11249
11250 * fileio.c (Fwrite_region): Doc fix.
11251
11252 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
11253
11254 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
11255 only when a real abbrev is present.
11256
11257 * xfns.c (x_icon_verify): New function.
11258 (Fx_create_frame): Use it.
11259
11260 2004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
11261
11262 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
11263
11264 2004-07-21 Kim F. Storm <storm@cua.dk>
11265
11266 * window.h (struct glyph_matrix): New members nrows_scale_factor
11267 and ncols_scale_factor.
11268
11269 * window.c (make_window): Initialize nrows_scale_factor and
11270 ncols_scale_factor members.
11271
11272 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
11273 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
11274 (required_matrix_height): Apply nrows_scale_factor.
11275 (required_matrix_width): Apply ncols_scale_factor.
11276
11277 * xdisp.c (display_line): Increment nrows_scale_factor and set
11278 fonts_changed_p if past last allocated row.
11279 (append_glyph, append_composite_glyph, produce_image_glyph)
11280 (append_stretch_glyph): Increment ncols_scale_factor and set
11281 fonts_changed_p if current area is full.
11282
11283 2004-07-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11284
11285 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
11286
11287 2004-07-19 Luc Teirlinck <teirllm@auburn.edu>
11288
11289 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
11290 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
11291 (Fset_window_start, Fscroll_up, Fscroll_down)
11292 (Fother_window_for_scrolling, Fscroll_other_window)
11293 (Fsave_window_excursion, Fset_window_vscroll)
11294 (syms_of_window) <window-size-fixed>: Doc fixes.
11295
11296 2004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
11297
11298 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
11299 ENCODE_SYSTEM for filenames.
11300
11301 2004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11302
11303 * mac.c (sys_select): Block input around call to
11304 ReceiveNextEvent to prevent breakage. Correctly handle
11305 blocking on event queue only by calling ReceiveNextEvent
11306 instead of select (since GUI events aren't on an fd).
11307 (sys_read): Remove function
11308 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
11309
11310 2004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11311
11312 * mac.c (sys_select): Redo sys_select to use alarm-based
11313 polling instead of 1 sec timeouts (like solaris).
11314
11315 * macterm.c (x_make_frame_visible): Comment in polling on
11316 frame creation.
11317
11318 * keyboard.c: Undef SIGIO on Carbon
11319
11320 * atimer.c (alarm_signal_handler): Call alarm handlers after
11321 scheduling.
11322
11323 * eval.c (Feval): Remove quit_char test
11324
11325 * process.c (wait_reading_process_input): Remove clearing
11326 stdin for select call on process input.
11327
11328 2004-07-18 Luc Teirlinck <teirllm@auburn.edu>
11329
11330 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
11331 capitalization error in docstring.
11332
11333 2004-07-17 Juanma Barranquero <lektu@terra.es>
11334
11335 * keyboard.c (not_single_kboard_state): Do nothing unless
11336 MULTI_KBOARD is defined.
11337
11338 2004-07-17 Richard M. Stallman <rms@gnu.org>
11339
11340 * window.c (coordinates_in_window): Inside the window but outside
11341 its box to the L or R, return ON_VERTICAL_BORDER.
11342 (window_list_1): Rotate the list to start with WINDOW.
11343
11344 * print.c (print_preprocess): Test for print_depth at limit
11345 before entering in being_printed.
11346
11347 * keyboard.c (not_single_kboard_state): New function.
11348 (stuff_buffered_input): Now no-op only if no SIGTSTP.
11349
11350 * frame.c (Fdelete_frame): If we're in single_bboard_state on
11351 this kboard, and we delete its last frame, go to any_kboard_state.
11352
11353 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
11354
11355 2004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
11356
11357 * w32fns.c (Fx_file_dialog): Encode strings in system coding
11358 system before passing them to OS functions for display.
11359
11360 2004-07-15 David Kastrup <dak@gnu.org>
11361
11362 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
11363 Apparently fixes an abort condition.
11364
11365 2004-07-14 Luc Teirlinck <teirllm@auburn.edu>
11366
11367 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
11368 instead of a cons.
11369
11370 2004-07-14 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
11371
11372 * keyboard.c (echo_dash): Do nothing if there already is a dash
11373 at the end of the echo string.
11374
11375 2004-07-12 Kim F. Storm <storm@cua.dk>
11376
11377 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
11378 if GC_MARK_STACK.
11379
11380 2004-07-10 Luc Teirlinck <teirllm@auburn.edu>
11381
11382 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
11383
11384 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
11385 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
11386 (Freplace_buffer_in_windows, Fset_window_buffer)
11387 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
11388 (syms_of_window): Expand docstring of `display-buffer-function'.
11389
11390 2004-07-09 Luc Teirlinck <teirllm@auburn.edu>
11391
11392 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
11393 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
11394 that time values of the type (HIGH . LOW) are considered obsolete.
11395
11396 2004-07-06 Luc Teirlinck <teirllm@auburn.edu>
11397
11398 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
11399 docstring.
11400
11401 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
11402
11403 2004-07-06 John Paul Wallington <jpw@gnu.org>
11404
11405 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
11406
11407 * fns.c (Fclear_string): Signal an error if STRING is not a string.
11408
11409 2004-07-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11410
11411 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
11412 instead of CGMainDisplayID (only in OSX 10.2 and later).
11413
11414 2004-07-04 John Paul Wallington <jpw@gnu.org>
11415
11416 * fileio.c (read_file_name_completion_ignore_case): New variable.
11417 (syms_of_fileio): Declare and initialise it.
11418 (Fread_file_name): Bind `completion-ignore-case' to respect it.
11419
11420 2004-07-03 Eli Zaretskii <eliz@gnu.org>
11421
11422 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
11423 for event.x and event.y.
11424
11425 2004-07-01 Kenichi Handa <handa@m17n.org>
11426
11427 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
11428 after getting a new string by pre-write-conversion.
11429
11430 2004-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
11431
11432 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
11433 (x_calc_absolute_position): Remove unused var `child'.
11434
11435 * xfaces.c (x_supports_face_attributes_p)
11436 (Fdisplay_supports_face_attributes_p): YAILOM.
11437 (tty_supports_face_attributes_p): Remove unused var `i'.
11438
11439 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
11440 back_unibyte_ok.
11441
11442 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
11443
11444 * fontset.c (Fset_fontset_font): Remove unused vars `family' and
11445 `registry'.
11446
11447 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
11448
11449 2004-06-30 Andreas Schwab <schwab@suse.de>
11450
11451 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
11452 (Finit_image_library): Pass LIBRARIES through to
11453 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
11454 (lookup_image_type): Pass Qnil as second argument to
11455 Finit_image_library.
11456
11457 * lisp.h (Finit_image_library): Declare.
11458
11459 2004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11460
11461 * macterm.c (do_window_activate, do_window_deactivate): Remove.
11462 (XTread_socket): Send mouse button events to the toolbox
11463 dispatcher even when the mouse is grabbed. Don't process window
11464 activate events for non-Emacs windows. Replace function calls to
11465 do_window_activate and do_window_deactivate with their contents.
11466 Reset mouse grabbing status when a window is deactivated.
11467
11468 2004-06-29 Steven Tamm <steventamm@mac.com>
11469
11470 * macterm.c (mac_get_emulated_btn)
11471 (mac_event_to_emacs_modifiers): Fix emulated mouse button
11472 support to correctly mask out modifiers.
11473
11474 2004-06-29 David Kastrup <dak@gnu.org>
11475
11476 * search.c (Fset_match_data): Allow buffer before end of list
11477 which can happen if set-match-data is using a pre-consed list.
11478
11479 2004-06-28 Steven Tamm <steventamm@mac.com>
11480
11481 * macterm.c (XTread_socket): Correctly set the frame position
11482 after the window is moved.
11483
11484 2004-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11485
11486 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
11487 gpix and gmask just before return to avoid memory leak.
11488 (xg_get_image_for_pixmap): Add workaround for monochrome displays
11489 so insensitive and activated icons look ok.
11490
11491 2004-06-27 Jason Rumney <jasonr@gnu.org>
11492
11493 * w32fns.c (file_dialog_callback): Disable edit control if set
11494 to directories only on CDN_INITDONE message.
11495 (Fx_file_dialog): Default to directories only when prompt starts
11496 with "Dired".
11497
11498 2004-06-25 Kim F. Storm <storm@cua.dk>
11499
11500 * alloc.c (allocate_misc): Update total_free_markers.
11501 (free_misc): New function.
11502 (safe_alloca_unwind, free_marker): Use it.
11503
11504 * lisp.h (free_misc): Add prototype.
11505
11506 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
11507
11508 2004-06-24 Richard M. Stallman <rms@gnu.org>
11509
11510 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
11511 (syms_of_emacs): Lisp variables deleted.
11512
11513 2004-06-23 David Kastrup <dak@gnu.org>
11514
11515 * search.c (Freplace_match): Adjust the match-data more thoroughly
11516 when replacing strings in the buffer.
11517 (Fmatch_data): When INTEGERS is non-nil and the last match was in
11518 a buffer, add the buffer as last element to the match data.
11519 (Fset_match_data): If an additional element of the match-data is a
11520 buffer, restore it to last_thing_searched.
11521 (save_search_regs): Save last_thing_searched as part of the match data.
11522 (restore_match_data): Restore it again.
11523
11524 2004-06-23 Luc Teirlinck <teirllm@auburn.edu>
11525
11526 * keymap.c (Ftext_char_description): Doc fix.
11527 * doc.c (Fsnarf_documentation): Doc fix.
11528
11529 2004-06-22 Kim F. Storm <storm@cua.dk>
11530
11531 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
11532
11533 * lisp.h (struct Lisp_Save_Value): New member dogc.
11534 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
11535 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
11536 (SAFE_FREE_LISP): New macro.
11537
11538 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
11539 (make_save_value): Init new dogc member.
11540 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
11541
11542 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
11543 SAFE_FREE_LISP macros.
11544
11545 2004-06-22 Kim F. Storm <storm@cua.dk>
11546
11547 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
11548 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
11549 in that memory area are unknown to GC. Add comments.
11550
11551 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
11552
11553 2004-06-21 Kim F. Storm <storm@cua.dk>
11554
11555 * lisp.h (MAX_ALLOCA): Define here.
11556 (safe_alloca_unwind): Add prototype.
11557 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
11558
11559 * alloc.c (safe_alloca_unwind): New function.
11560
11561 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
11562
11563 * charset.c (Fstring): Use SAFE_ALLOCA.
11564
11565 * coding.c (MAX_ALLOCA): Remove define.
11566
11567 * data.c (MAX_ALLOCA): Remove define.
11568 (Faset): Use SAFE_ALLOCA.
11569
11570 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
11571
11572 * fns.c (string_make_multibyte, string_to_multibyte)
11573 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
11574 (MAX_ALLOCA): Remove define.
11575 (Fbase64_encode_region, Fbase64_encode_string)
11576 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
11577 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
11578 memory leak if encoding fails.
11579
11580 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
11581
11582 2004-06-21 Eli Zaretskii <eliz@gnu.org>
11583
11584 * print.c (Fwith_output_to_temp_buffer): Doc fix.
11585
11586 2004-06-20 Richard M. Stallman <rms@gnu.org>
11587
11588 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
11589
11590 * search.c (match_limit): Cleaner err msg when no match data available.
11591
11592 * window.c (syms_of_window): Doc fix.
11593
11594 * keyboard.c (command_loop_1): Handle values `only' and `identity'
11595 for Vtransient_mark_mode.
11596
11597 * buffer.c (syms_of_buffer): Doc fix.
11598
11599 2004-06-21 David Kastrup <dak@gnu.org>
11600
11601 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
11602 and unbinding of `case-fold-search' according to
11603 `completion-ignore-case' around calls of string-match and
11604 predicates, respectively. Should give satisfactory performance
11605 in all relevant cases.
11606
11607 2004-06-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11608
11609 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
11610 clip_x/y_origin.
11611
11612 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
11613
11614 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
11615
11616 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
11617 on Mac OSX.
11618
11619 2004-06-16 Luc Teirlinck <teirllm@auburn.edu>
11620
11621 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
11622
11623 2004-06-16 Kim F. Storm <storm@cua.dk>
11624
11625 * dispextern.h (Vimage_types): Remove extern.
11626
11627 2004-06-16 Miles Bader <miles@gnu.org>
11628
11629 * image.c (lookup_image_type): Initialize image type if necessary.
11630
11631 2004-06-15 Kim F. Storm <storm@cua.dk>
11632
11633 * xdisp.c (try_cursor_movement): Exclude header line from scroll
11634 margin at top of window.
11635 (try_window_reusing_current_matrix): Calculate proper cursor position
11636 after scrolling up with non-zero scroll margin, as the old cursor
11637 position corresponds to value of PT before executing this command.
11638 (try_window_id): Consider scroll margin at bottom of window too;
11639 otherwise we fail to scroll when hl-line-mode is enabled.
11640
11641 * syntax.c (skip_chars): Only recognize [:class:] when it has the
11642 proper format and class is a lower-case word.
11643
11644 2004-06-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11645
11646 * gtkutil.c (xg_get_image_for_pixmap): New function.
11647 (xg_get_gdk_pixmap_and_mask): Remove.
11648 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
11649 xg_get_gdk_pixmap_and_mask.
11650
11651 * xterm.h (struct x_display_info): Typo in comment fixed.
11652
11653 2004-06-14 Juanma Barranquero <lektu@terra.es>
11654
11655 * dispextern.h (Vimage_types): Make it conditional on
11656 HAVE_WINDOW_SYSTEM.
11657
11658 * image.c (Vimage_types): Move from xdisp.c.
11659 (Vimage_type_cache): New variable.
11660 (define_image_type): New argument indicating whether an image
11661 library was loaded; cache loaded status and return t on success,
11662 nil otherwise.
11663 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
11664 (w32_delayed_load): New function to load an image library from a
11665 list of possible filenames.
11666 (init_xpm_functions, init_png_functions, init_jpeg_functions)
11667 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
11668 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
11669 (Finit_image_library): New function, extracted from `init_image'.
11670 Try to initialize an image library on demand and cache whether we
11671 were successful or not.
11672 (syms_of_image): Initialize `Vimage_types' and
11673 `Vimage_type_cache'. Add recognized image types to Vimage_types.
11674 Export `init-image-library'.
11675 (init_image): Remove initialization of all image types, except xbm
11676 and pbm.
11677
11678 * xdisp.c (Vimage_types): Delete (moved to image.c).
11679
11680 2004-06-14 Andreas Schwab <schwab@suse.de>
11681
11682 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
11683 Avoid calling specbind when completion-regexp-list is empty.
11684
11685 2004-06-13 Richard M. Stallman <rms@gnu.org>
11686
11687 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
11688 (re_wctype, re_iswctype, re_wctype_to_bit):
11689 Non-function definitions moved here from regex.c.
11690
11691 * regex.c (re_wctype, re_iswctype): Function defs longer static.
11692 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
11693 (re_wctype, re_iswctype, re_wctype_to_bit):
11694 Non-function definitions moved to regex.h.
11695
11696 * window.c (Fselect_window): Doc fix.
11697
11698 * syntax.c: Include regex.h.
11699 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
11700 If requested, make a list of classes, then check the scanned
11701 chars for membership in them.
11702 (in_classes): New function.
11703 Doc fix.
11704
11705 * keyboard.c (cmd_error): Don't call any_kboard_state
11706 if inside a recursive edit level.
11707
11708 2004-06-13 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
11709
11710 * keyboard.c (command_loop): Call any_kboard_state before
11711 command_loop_2 when at top level.
11712
11713 2004-06-13 Andreas Schwab <schwab@suse.de>
11714
11715 * print.c (print_object): Always use %ld for printing EMACS_INT.
11716
11717 * keyboard.c (cancel_hourglass_unwind): Return a value.
11718 (modify_event_symbol): Always use %ld for printing EMACS_INT.
11719 (Fexecute_extended_command): Likewise.
11720
11721 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
11722 avoid clashes.
11723 (SYNTAX): Likewise.
11724 (SYNTAX_WITH_FLAGS): Likewise.
11725 (SYNTAX_MATCH): Likewise.
11726
11727 * syntax.c (char_quoted): Avoid warning about undefined operation.
11728 (find_defun_start): Likewise.
11729 (scan_lists): Likewise.
11730 (INC_FROM): Likewise.
11731 (scan_sexps_forward): Likewise.
11732
11733 * image.c: Include <ctype.h>.
11734
11735 * xfaces.c (face_attr_equal_p): Declare parameters.
11736
11737 2004-06-13 Kenichi Handa <handa@m17n.org>
11738
11739 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
11740
11741 2004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
11742
11743 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
11744
11745 2004-06-12 Kenichi Handa <handa@m17n.org>
11746
11747 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
11748 ccl_prog_stack_struct and update it.
11749 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
11750 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
11751 ccl->eof_ic on EOF.
11752 (ccl_debug_hook): New function.
11753 (struct ccl_prog_stack): New member eof_ic.
11754 (ccl_driver): Handle EOF in subrountine call correctly.
11755
11756 2004-06-11 Kenichi Handa <handa@m17n.org>
11757
11758 * coding.c (encode_coding_string): Check CODING_FINISH_INTERRUPT.
11759
11760 2004-06-11 Kim F. Storm <storm@cua.dk>
11761
11762 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
11763
11764 2004-06-11 Juanma Barranquero <lektu@terra.es>
11765
11766 * keyboard.c (Fposn_at_point): Doc fix.
11767
11768 2004-06-11 David Kastrup <dak@gnu.org>
11769
11770 * search.c (match_limit): Don't flag an error if match-data
11771 exceeding the allocated search_regs.num_regs gets requested, just
11772 return Qnil.
11773
11774 2004-06-08 Miles Bader <miles@gnu.org>
11775
11776 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
11777
11778 2004-06-07 Juanma Barranquero <lektu@terra.es>
11779
11780 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
11781 (Fcurrent_time_string, Fcurrent_time_zone)
11782 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
11783
11784 2004-06-07 Miles Bader <miles@gnu.org>
11785
11786 * xfaces.c (struct named_merge_point): New type.
11787 (push_named_merge_point): New function.
11788 (merge_named_face): New function.
11789 (merge_face_ref, face_at_buffer_position, face_at_string_position):
11790 Use `merge_named_face'.
11791 (merge_face_inheritance): Function removed.
11792 (merge_face_ref): Rename from `merge_face_vector_with_property'.
11793 Add new `err_msgs' and `named_merge_points' args. Return error
11794 status. Only print error messages if ERR_MSGS is true. Don't try to
11795 do :inherit attribute validation.
11796 (merge_face_heights): Handle `unspecified' in both directions.
11797 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
11798 Call `merge_face_ref' instead of `merge_face_inheritance'.
11799 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
11800 (compute_char_face, face_at_buffer_position)
11801 (face_at_string_position): Call `merge_face_ref' instead of
11802 `merge_face_vector_with_property'.
11803
11804 2004-06-07 Kenichi Handa <handa@m17n.org>
11805
11806 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
11807 the necessary places.
11808
11809 2004-06-07 Kim F. Storm <storm@cua.dk>
11810
11811 * process.c (Fdelete_process): Undo 2004-05-28 change.
11812 Instead, call status_notify also for network process.
11813 (status_message): Use process instead of status as arg.
11814 Give messages "deleted" or "connection broken by remote peer" for
11815 an exited network process.
11816 (status_notify): Change call to status_message.
11817 (read_process_output): Increase readmax to 4096. Do not increase
11818 buffer size for datagram channels (default is now large enough).
11819
11820 2004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
11821
11822 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
11823 problem due to newly defined variable.
11824
11825 2004-06-06 Miles Bader <miles@gnu.org>
11826
11827 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
11828 immediately if non-interactive or not initialized.
11829
11830 2004-06-05 Richard M. Stallman <rms@gnu.org>
11831
11832 * minibuf.c (Fcompleting_read): Doc fix.
11833
11834 2004-06-05 Andreas Schwab <schwab@suse.de>
11835
11836 * macfns.c (x_create_tip_frame): Fix declaration after statement.
11837
11838 2004-06-05 Juanma Barranquero <lektu@terra.es>
11839
11840 * keymap.c (Fdescribe_vector): Fix docstring.
11841 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
11842
11843 2004-06-05 Miles Bader <miles@gnu.org>
11844
11845 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
11846 attributes have different values than the default face.
11847
11848 2004-06-04 Eli Zaretskii <eliz@gnu.org>
11849
11850 * xfaces.c (x_supports_face_attributes_p): Make this function
11851 conditional on HAVE_WINDOW_SYSTEM.
11852 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
11853 Don't call x_supports_face_attributes_p if it was not compiled in.
11854
11855 2004-06-04 Miles Bader <miles@gnu.org>
11856
11857 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
11858 from Ftty_supports_face_attributes_p.
11859 (x_supports_face_attributes_p): New function.
11860 (Ftty_supports_face_attributes_p): Function deleted.
11861 (Fdisplay_supports_face_attributes_p): New function.
11862 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
11863 (face_attr_equal_p): New function.
11864 (lface_equal_p): Use it.
11865
11866 2004-06-03 Juanma Barranquero <lektu@terra.es>
11867
11868 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
11869 (Vw32_color_map): Fix typo in docstring.
11870 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
11871 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
11872 Make argument names match their use in docstring.
11873
11874 2004-06-02 Juanma Barranquero <lektu@terra.es>
11875
11876 Work around bugs/problems with MinGW builds of graphics libraries
11877 called from MSVC builds of Emacs.
11878
11879 * image.c (lookup_image): Make pointer to img static.
11880 (png_read_from_memory): Disable "global" optimization.
11881
11882 2004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
11883
11884 * eval.c (Fcondition_case): Fix usage. Simplify.
11885
11886 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
11887
11888 2004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11889
11890 * macfns.c: Don't include ccl.h.
11891 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
11892 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
11893 TextUtils.h.
11894 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
11895 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
11896 display height/width.
11897 (compute_tip_xy, Vx_max_tooltip_size): Declare.
11898 (unwind_create_tip_frame, compute_tip_xy): New functions.
11899 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
11900 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
11901 and last_show_tip_args.
11902
11903 * macgui.h [!MAC_OSX]: Include Gestalt.h.
11904 (Cursor, No_Cursor): New defines.
11905 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
11906 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
11907
11908 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
11909
11910 * macterm.c: Don't include Gestalt.h.
11911 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
11912 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
11913 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
11914 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
11915 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
11916 (construct_mouse_click, XTmouse_position)
11917 (x_scroll_bar_report_motion, x_calc_absolute_position)
11918 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
11919 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
11920 (note_mouse_movement): Clear the mouse face and reset the pointer
11921 shape when the pointer goes outside the frame without grabbing.
11922 (mac_front_window): New function.
11923 (mac_window_to_frame): New macro.
11924 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
11925 (do_window_activate, do_window_deactivate, do_app_resume)
11926 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
11927 (do_zoom_window, mac_do_receive_drag, XTread_socket)
11928 (mac_check_for_quit_char): Use mac_front_window and/or
11929 mac_window_to_frame.
11930 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
11931 scroll-bar click event.
11932 (mac_define_frame_cursor): Change the pointer shape.
11933 (x_free_frame_resources): Reset tip_window to NULL when it is
11934 disposed of.
11935 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
11936 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
11937 (do_window_update): Don't do anything if the updated window is the
11938 tooltip window.
11939 (do_mouse_moved): Handle mouse movement events here (previously in
11940 XTread_socket). Clear the mouse face if
11941 dpyinfo->mouse_face_hidden is set.
11942 (do_os_event, do_events): Remove (now in XTread_socket).
11943 (XTread_socket): Immediately return if interrupt_input_blocked.
11944 Loop until all the events in the queue are processed.
11945 Rearrange codes for mouse grabbing. Add tooltip support. Include the
11946 contents of do_os_event and do_events. Remove mouse movement
11947 handling (now in do_mouse_moved). Add the case where
11948 Vmouse_highlight has an integer value.
11949 (NewMacWindow): Remove.
11950 (make_mac_frame): Do what NewMacWindow previously did. Don't do
11951 excess initializations.
11952 (make_mac_terminal_frame): Previous initializations in
11953 make_mac_frame are moved here.
11954 (mac_initialize_display_info):
11955 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
11956
11957 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
11958 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
11959
11960 2004-05-29 Richard M. Stallman <rms@gnu.org>
11961
11962 * lisp.h (truncate_undo_list): Update decl.
11963
11964 * alloc.c (undo_outer_limit): New variable.
11965 (syms_of_alloc): Defvar it.
11966 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
11967
11968 * undo.c (truncate_undo_list): New arg LIMITSIZE.
11969
11970 * alloc.c (lisp_align_malloc): Check for base == 0
11971 regardless of HAVE_POSIX_MEMALIGN.
11972 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
11973
11974 2004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
11975
11976 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
11977 (marker_blocks_pending_free): Remove.
11978 (Fgarbage_collect): Sweep after cleaning up undo-lists.
11979 Mark the undo lists after claning them up.
11980 Don't free block in marker_blocks_pending_free.
11981 (mark_buffer): Don't mark undo_list.
11982 (gc_sweep): Sweep hash-tables and strings first.
11983 Do free marker blocks that are empty.
11984
11985 2004-05-28 Jim Blandy <jimb@redhat.com>
11986
11987 * regex.c (print_partial_compiled_pattern): Add missing 'break'
11988 after 'case wordend'. For symbeg and symend, print to stderr,
11989 like the other cases.
11990
11991 2004-05-28 Noah Friedman <friedman@splode.com>
11992
11993 * process.c (Fdelete_process): Do not call remove_process.
11994
11995 2004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
11996
11997 * alloc.c (struct backtrace): Remove.
11998 (Fgarbage_collect): Use the new mark_backtrace.
11999
12000 * eval.c (mark_backtrace): New function.
12001
12002 * minibuf.c (run_exit_minibuf_hook): New function.
12003 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
12004 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
12005
12006 2004-05-27 Kim F. Storm <storm@cua.dk>
12007
12008 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
12009 over display properties, e.g. images, that replace buffer text.
12010
12011 2004-05-25 Kim F. Storm <storm@cua.dk>
12012
12013 * alloc.c (marker_blocks_pending_free): New var.
12014 (gc_sweep): Store free marker blocks on that list.
12015 (Fgarbage_collect): Free them after undo-list cleanup.
12016
12017 * process.c (wait_reading_process_input): Check connect_wait_mask
12018 before actually accepting connection in case it has already been
12019 accepted due to recursion.
12020
12021 2004-05-23 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
12022
12023 * coding.c (Fset_safe_terminal_coding_system_internal):
12024 Set suppress_error in safe_terminal_coding, not terminal_coding.
12025
12026 2004-05-22 Richard M. Stallman <rms@gnu.org>
12027
12028 * alloc.c (Fmake_string): Doc fix.
12029
12030 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
12031 and the alist pairs too.
12032
12033 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
12034
12035 * emacs.c (main): Update copyright year.
12036
12037 * fileio.c (Fread_file_name): Expand DIR if not absolute.
12038
12039 * insdel.c (del_range_2, replace_range): Don't write an anchor
12040 if the gap is empty.
12041
12042 * xdisp.c (try_scrolling): If scroll-up-aggressively or
12043 scroll-down-aggressively is small but positive, put point
12044 near the screen edge.
12045
12046 2004-05-22 Juanma Barranquero <lektu@terra.es>
12047
12048 * keymap.c (Fdefine_key): Doc fix.
12049
12050 2004-05-22 Kim F. Storm <storm@cua.dk>
12051
12052 * alloc.c (struct backtrace): Add debug_on_exit member.
12053 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
12054 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
12055 the removed cons cells.
12056 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
12057 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
12058 any cons cells pointing to unallocated stings.
12059 Do not lisp_free any marker blocks, as there may still be pointers
12060 to them from buffer undo lists at this stage of GC.
12061
12062 * keyboard.c (struct backtrace): Add debug_on_exit member.
12063 (Fcommand_execute): Clear it.
12064
12065 2004-05-20 Luc Teirlinck <teirllm@auburn.edu>
12066
12067 * intervals.c (lookup_char_property): Do not prematurely return nil.
12068
12069 2004-05-19 Jim Blandy <jimb@redhat.com>
12070
12071 Add support for new '\_<' and '\_>' regexp operators, matching the
12072 beginning and end of symbols.
12073
12074 * regex.c (enum syntaxcode): Add Ssymbol.
12075 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
12076 (re_opcode_t): New opcodes `symbeg' and `symend'.
12077 (print_partial_compiled_pattern): Print the new opcodes properly.
12078 (regex_compile): Parse the new operators.
12079 (analyse_first): Skip sym(beg|end) (they match only the empty string).
12080 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
12081 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
12082 (re_match_2_internal): Match symbeg and symend.
12083
12084 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
12085
12086 2004-05-19 Kim F. Storm <storm@cua.dk>
12087
12088 * .gdbinit (xsymbol): Fix last change.
12089
12090 2004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
12091
12092 * .gdbinit (xprintstr): New fun.
12093 (xstring, xprintsym): Use it.
12094
12095 * w32proc.c (create_child): Use INTMASK.
12096
12097 * alloc.c (Fgarbage_collect): Do all the marking before flushing
12098 unmarked elements of the undo list.
12099
12100 2004-05-18 David Ponce <david@dponce.com>
12101
12102 * print.c (print): Reset print_depth before to call print_object.
12103
12104 2004-05-18 Jason Rumney <jasonr@gnu.org>
12105
12106 * w32console.c: Prefix RIF functions with w32con_ to avoid
12107 namespace clash with functions in term.c and w32term.c.
12108
12109 * w32menu.c (add_menu_item, w32_menu_display_help)
12110 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
12111
12112 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
12113
12114 2004-05-18 Eli Zaretskii <eliz@gnu.org>
12115
12116 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
12117
12118 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
12119 with make_number.
12120 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
12121 with XINT.
12122
12123 2004-05-18 Kim F. Storm <storm@cua.dk>
12124
12125 * blockinput.h (INPUT_BLOCKED_P): New macros.
12126
12127 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
12128 (Ftop_level): Unblock input if blocked.
12129
12130 * buffer.h (GET_OVERLAYS_AT): New macro.
12131 * msdos.c (IT_note_mouse_highlight): Use it.
12132 * textprop.c (get_char_property_and_overlay): Use it.
12133 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
12134 * xfaces.c (face_at_buffer_position): Use it.
12135
12136 * print.c (print_object): Increase buf size.
12137
12138 2004-05-17 Jason Rumney <jasonr@gnu.org>
12139
12140 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
12141 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
12142 Lisp_Object using i member.
12143 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
12144 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
12145 consistently.
12146
12147 * w32proc.c (create_child): Use make_number instead of masking pid.
12148
12149 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
12150 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
12151 Use EQ to compare Lisp_Objects.
12152 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
12153
12154 * w32term.c (w32_num_mouse_buttons): Rename from
12155 Vw32_num_mouse_buttons and make it an int.
12156
12157 * w32.c (init_environment): Use it.
12158
12159 * w32fns.c (w32_wnd_proc): Likewise.
12160
12161 * w32proc.c (w32_pipe_read_delay): Rename from
12162 Vw32_pipe_read_delay and make it an int.
12163
12164 * w32.c (_sys_read_ahead): Use it.
12165
12166 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
12167
12168 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
12169
12170 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
12171 (key_event): Don't mix Lisp_Object and int.
12172
12173 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
12174
12175 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
12176 modifiers in language change event.
12177
12178 2004-05-17 Kim F. Storm <storm@cua.dk>
12179
12180 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
12181 Such objects may be freed markers which still exist on an undo list.
12182
12183 2004-05-16 Juanma Barranquero <lektu@terra.es>
12184
12185 * data.c (Fset_default): Make argument names match their use in
12186 docstring.
12187
12188 2004-05-15 Andreas Schwab <schwab@suse.de>
12189
12190 * emacs.c (gdb_array_mark_flag): Define.
12191 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
12192
12193 2004-05-15 Eli Zaretskii <eliz@gnu.org>
12194
12195 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
12196 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
12197 defined for the MS-DOS build.
12198
12199 2004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
12200
12201 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
12202
12203 2004-05-14 Kenichi Handa <handa@m17n.org>
12204
12205 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
12206
12207 2004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12208
12209 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
12210 section to frame.c section.
12211 (Fxw_display_color_p, Fx_file_dialog): Declare if
12212 HAVE_WINDOW_SYSTEM defined.
12213
12214 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
12215
12216 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
12217
12218 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
12219 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
12220 (XTread_socket): Fix int/Lisp_Object mixup.
12221 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
12222
12223 * macterm.h (struct frame, struct face, struct image)
12224 (display_x_get_resource, Fx_display_color_p)
12225 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
12226 Add prototypes.
12227
12228 2004-05-14 Kim F. Storm <storm@cua.dk>
12229
12230 * process.c (wait_reading_process_input): Make reentrant.
12231 Make Available and Connecting non-static. Save and restore value
12232 of waiting_for_user_input_p.
12233
12234 2004-05-13 Kim F. Storm <storm@cua.dk>
12235
12236 * keyboard.c (mark_kboards): Don't mark x and y members
12237 that are overloaded in selection request events.
12238
12239 2004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
12240
12241 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
12242
12243 2004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
12244
12245 * window.c (Fdisplay_buffer, Fsplit_window)
12246 (split-height-threshold): Doc fix.
12247
12248 2004-05-13 Juanma Barranquero <lektu@terra.es>
12249
12250 * xfaces.c (Ftty_supports_face_attributes_p)
12251 (Finternal_copy_lisp_face): Fix typo in docstring.
12252 (Finternal_get_lisp_face_attribute): Fix docstring.
12253
12254 2004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12255
12256 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
12257
12258 2004-05-11 Steven Tamm <steventamm@mac.com>
12259
12260 * macfns.c (Fx_create_frame): Default to using tool-bar by
12261 setting tool-bar-lines to 1 in default-frame-alist.
12262
12263 2004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12264
12265 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
12266 (xpm_get_color_table_v, xpm_make_color_table_h)
12267 (xpm_put_color_table_h, xpm_get_color_table_h)
12268 (xpm_str_to_color_key, xpm_load_image, xpm_load)
12269 (syms_of_image): Support XPM on Carbon Emacs. Does not
12270 depend on libXpm, but only supports XPM version 3 without extensions.
12271
12272 2004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12273
12274 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
12275 instead of FRAME_X_P
12276
12277 2004-05-11 Kim F. Storm <storm@cua.dk>
12278
12279 * process.c (read_process_output): Grow decoding_buf when needed;
12280 this could cause a crash in allocate_string and compact_small_strings.
12281
12282 2004-04-29 Jim Blandy <jimb@redhat.com>
12283
12284 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
12285 against proper opcode.
12286
12287 2004-05-10 Juanma Barranquero <lektu@terra.es>
12288
12289 * process.c (Fstart_process): Fix docstring.
12290
12291 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
12292 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
12293 (Fsplit_char, Fchar_charset): Make argument names match their use
12294 in docstring.
12295
12296 2004-05-10 Richard M. Stallman <rms@gnu.org>
12297
12298 * print.c (print_preprocess): Use being_printed, loop_count and
12299 halftail to detect overdeep nesting and cyclic cdr chains.
12300
12301 2004-05-10 Andreas Schwab <schwab@suse.de>
12302
12303 * lisp.h (Fmake_symbolic_link): Declare.
12304
12305 * fileio.c (Frename_file): Remove extra argument in call to
12306 Fmake_symbolic_link.
12307
12308 2004-05-10 Kim F. Storm <storm@cua.dk>
12309
12310 * xdisp.c (calc_line_height_property): Use string position when
12311 object is a string.
12312
12313 2004-05-10 Kenichi Handa <handa@m17n.org>
12314
12315 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
12316 inhibit-modification-hooks to t temporarily before calling
12317 Ferase_buffer.
12318
12319 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
12320 inhibit-modification-hooks to t temporarily before calling
12321 Ferase_buffer.
12322
12323 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
12324 inhibit-modification-hooks to t temporarily before calling
12325 Ferase_buffer.
12326
12327 * fns.c (count_combining): Delete it.
12328 (concat): Don't check combining bytes.
12329
12330 2004-05-09 Jason Rumney <jasonr@gnu.org>
12331
12332 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
12333 (globals_of_w32fns): Set it.
12334
12335 2004-05-09 Piet van Oostrum <piet@cs.uu.nl>
12336
12337 * data.c (Fquo): Simplify.
12338
12339 2004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
12340
12341 * data.c (Fquo): If any argument is float, do the computation in
12342 floating point.
12343
12344 2004-05-08 Juanma Barranquero <lektu@terra.es>
12345
12346 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
12347 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
12348 Fix spelling of Emacs on docstring.
12349 (Fset_process_coding_system, Fprocess_coding_system)
12350 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
12351 Make argument names match their use in docstring.
12352 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
12353 Fix docstring.
12354
12355 * editfns.c (Finsert_buffer_substring): Make argument names match their
12356 use in docstring.
12357
12358 * syntax.c (Fmodify_syntax_entry): Fix docstring.
12359
12360 2004-05-07 Steven Tamm <steventamm@mac.com>
12361
12362 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
12363 around call to ReceiveEvent to avoid certain crashes.
12364
12365 2004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12366
12367 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
12368 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
12369 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
12370 Save/restore the current graphics port and device handle when
12371 drawing into an offscreen graphics world.
12372
12373 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
12374 (gif_load): Likewise.
12375
12376 2004-05-07 Juanma Barranquero <lektu@terra.es>
12377
12378 * window.c (Fset_window_buffer): Fix docstring.
12379
12380 2004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
12381
12382 * emacs.c (main) [VMS]: Fix var ref.
12383
12384 2004-05-06 Romain Francoise <romain@orebokech.com>
12385
12386 * data.c (Fsetq_default): Fix docstring.
12387
12388 2004-05-06 Jason Rumney <jasonr@gnu.org>
12389
12390 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
12391 to avoid name clash.
12392
12393 2004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12394
12395 * fileio.c (barf_or_query_if_file_exists): Use lstat.
12396 (Frename_file): Handle renaming of symlinks across file systems.
12397 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
12398
12399 2004-05-04 Kim F. Storm <storm@cua.dk>
12400
12401 * xdisp.c (Qtotal): New var.
12402 (syms_of_xdisp): Intern and staticpro it.
12403 (calc_line_height_property): New arg total. Set it if
12404 line-spacing property has format (total . VALUE).
12405 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
12406 Handle total line-spacing property.
12407
12408 2004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12409
12410 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
12411 "under" scroll bar when size/position changes.
12412
12413 2004-05-03 Jason Rumney <jasonr@gnu.org>
12414
12415 * makefile.nt: Remove.
12416
12417 2004-05-02 Eli Zaretskii <eliz@gnu.org>
12418
12419 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
12420 Avoid compiler warnings.
12421
12422 * Makefile.in (region-cache.o): Depend on config.h.
12423
12424 2004-05-02 Romain Francoise <romain@orebokech.com>
12425
12426 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
12427 with continuation lines, too.
12428
12429 2004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
12430
12431 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
12432
12433 2004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
12434
12435 * xdisp.c (calc_line_height_property): YAILOM (yet another
12436 int/Lisp_Object mixup).
12437
12438 2004-05-01 Eli Zaretskii <eliz@gnu.org>
12439
12440 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
12441 undo bad effect of pack(4) in some versions of system headers.
12442
12443 2004-05-01 Jason Rumney <jasonr@gnu.org>
12444
12445 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
12446
12447 2004-04-30 Kim F. Storm <storm@cua.dk>
12448
12449 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
12450 (syms_of_buffer) <cursor-type>: Doc fix.
12451
12452 * dispextern.h (struct it): Remove member use_default_face.
12453 Add members override_ascent, override_descent, override_boff.
12454
12455 * xdisp.c (init_iterator): Handle line-spacing float value.
12456 Initialize override_ascent member.
12457 (append_space_for_newline): Reset override_ascent.
12458 Remove use_default_face.
12459 (calc_line_height_property): New function to calculate value of
12460 line-height and line-spacing properties. Look at overlays, too.
12461 Set override_ascent, override_descent, override_boff members when
12462 using another face than the current face. Float values are now
12463 relative to the frame default font, by default; accept a cons
12464 of ratio and face name to specify value relative to a specific face.
12465 (x_produce_glyphs): Use calc_line_height_property.
12466 Use override_ascent etc. when set to handle different face heights.
12467 A negative line-spacing property value is interpreted as a total
12468 line height, rather than inter-line spacing.
12469 (note_mouse_highlight): Allocate room for 40 overlays initially.
12470
12471 2004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
12472
12473 * data.c (Fsubr_name): New fun.
12474 (syms_of_data): Defsubr it.
12475
12476 2004-04-29 Kim F. Storm <storm@cua.dk>
12477
12478 * xdisp.c (null_glyph_slice): New var.
12479 (append_glyph, append_composite_glyph, append_stretch_glyph):
12480 Use it to initialize glyph slice.
12481
12482 2004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
12483
12484 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
12485 (on_hot_spot_p): Make sure we always return a value.
12486 (Flookup_image_map): Remove unused var ix and iy.
12487 (note_mode_line_or_margin_highlight): Remove unused var `image'.
12488
12489 2004-04-27 Eli Zaretskii <eliz@gnu.org>
12490
12491 * msdos.c (init_environment): If one of the TMP... environment
12492 variables is set to a drive letter without a trailing slash,
12493 append a slash.
12494
12495 2004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
12496
12497 * editfns.c (lisp_time_argument): Provide externally.
12498
12499 * fileio.c (Fset_file_times): New function.
12500 (syms_of_fileio): Intern and staticpro it.
12501
12502 2004-04-27 Kim F. Storm <storm@cua.dk>
12503
12504 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
12505 header line strings.
12506
12507 * dispextern.h (struct it): New member use_default_face.
12508
12509 * xdisp.c (Qline_height): New variable.
12510 (syms_of_xdisp): Intern and staticpro it.
12511 (append_space_for_newline): Partially undo 2004-04-25 change;
12512 add default_face_p arg, and restore callers.
12513 Clear it->use_default_face after use.
12514 (x_produce_glyphs): Set default font for ascii char if
12515 it->use_default_font is set. Change line-spacing property to set
12516 just extra line spacing. Handle new line-height property.
12517
12518 2004-04-26 Andreas Schwab <schwab@suse.de>
12519
12520 * print.c (print_object): Print non-ascii characters in bool
12521 vector representation as octal escapes.
12522
12523 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
12524 * print.c (print_object): Use it instead of BITS_PER_CHAR for
12525 bool vectors.
12526 * lread.c (read1): Likewise.
12527 * alloc.c (Fmake_bool_vector): Likewise.
12528 * data.c (Faref, Faset): Likewise.
12529 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
12530 (mapcar1): Likewise.
12531
12532 2004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
12533
12534 * lread.c (init_lread): Fix typo in HAVE_CARBON test logic.
12535
12536 2004-04-26 Miles Bader <miles@gnu.org>
12537
12538 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
12539
12540 2004-04-26 Juanma Barranquero <lektu@terra.es>
12541
12542 * buffer.c (Fpop_to_buffer): Fix docstring.
12543
12544 2004-04-26 Steven Tamm <steventamm@mac.com>
12545
12546 * lread.c (init_lread): Don't display missing lisp directory
12547 warnings with Carbon Emacs because self-contained bundled Emacs
12548 may be built without correct installation path.
12549
12550 2004-04-25 Kim F. Storm <storm@cua.dk>
12551
12552 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
12553
12554 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
12555
12556 * xdisp.c (append_space_for_newline): Rename from append_space.
12557 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
12558 (x_produce_glyphs): Handle line-spacing property on newline char.
12559 If value is t, adjust ascent and descent to fit current row height.
12560 If value is an integer or float, set extra_line_spacing to integer
12561 value, or to float value x current line height.
12562
12563 2004-04-23 Kenichi Handa <handa@m17n.org>
12564
12565 * fontset.c (Finternal_char_font): If POSITION is nil, return
12566 font for displaying CH with the default face.
12567
12568 2004-04-23 Juanma Barranquero <lektu@terra.es>
12569
12570 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
12571
12572 2004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
12573
12574 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
12575 Don't make assumptions about the relative place of i and val.
12576 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
12577
12578 2004-04-21 Kim F. Storm <storm@cua.dk>
12579
12580 * dispextern.h (struct glyph_slice): New struct.
12581 (struct glyph): New member slice.
12582 (GLYPH_SLICE_EQUAL_P): New macro.
12583 (GLYPH_EQUAL_P): Use it.
12584 (struct glyph_string): New member slice.
12585 (struct it_slice): New struct.
12586 (struct it): New member slice, add member to stack too.
12587 New member constrain_row_ascent_descent_p.
12588 (image_ascent): Add prototype.
12589
12590 * dispnew.c (buffer_posn_from_coords): Return full image width
12591 and height even for image slices (posn is relative to full image).
12592 (marginal_area_string): Adjust x0,y0 for image slice.
12593
12594 * image.c (image_ascent): Add slice arg; calculate ascent for
12595 image slice (or full image).
12596
12597 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
12598 (syms_of_keyboard): Defsubr them.
12599
12600 * lisp.h (pos_visible_p): Fix prototype.
12601
12602 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
12603 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
12604 (x_draw_image_foreground, x_draw_image_relief)
12605 (x_draw_image_foreground_1, x_draw_image_glyph_string):
12606 Draw sliced images.
12607
12608 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
12609 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
12610 (x_draw_image_foreground, x_draw_image_relief)
12611 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
12612 Draw sliced images.
12613
12614 * w32term.h (image_ascent): Remove prototype.
12615
12616 * window.c (Fpos_visible_in_window_p): Return pixel position if
12617 PARTIALLY arg is non-nil. Simplify. Doc fix.
12618 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
12619 to return/set vscroll in pixels.
12620
12621 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
12622
12623 * xdisp.c (Qslice): New variable.
12624 (syms_of_xdisp): Intern and staticpro it.
12625 (pos_visible_p): Return pixel position in new x and y args.
12626 (init_iterator): Reset it->slice info.
12627 (handle_display_prop): Parse (slice ...) property.
12628 (push_it, pop_it): Save/restore slice info.
12629 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
12630 force repositioning of tall row if window is vscrolled, as that
12631 would reset vscroll.
12632 (append_space): Set it->constrain_row_ascent_descent_p to avoid
12633 increasing row height if row is non-empty.
12634 (fill_image_glyph_string): Copy slice info.
12635 (take_vertical_position_into_account): Simplify.
12636 (produce_image_glyph): Handle iterator slice info, setup glyph
12637 slice info. Do not force minimum line height.
12638 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
12639 do not increase height (ascent/descent) of non-empty row when
12640 adding normal character glyph; instead reduce glyph ascent/descent
12641 appropriately; if row is higher than current glyph, adjust glyph
12642 descent/ascent to reposition glyph within the existing row.
12643 Likewise, when char is newline, only set ascent/descent if row is
12644 currently empty.
12645 (note_mouse_highlight): Handle hotspots with sliced image.
12646
12647 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
12648 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
12649 (x_draw_image_foreground, x_draw_image_relief)
12650 (x_draw_image_foreground_1, x_draw_image_glyph_string):
12651 Draw sliced images.
12652
12653 * xterm.h (image_ascent): Remove prototype.
12654
12655 2004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
12656
12657 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
12658
12659 2004-04-20 John Paul Wallington <jpw@gnu.org>
12660
12661 * fns.c (Fassoc, Feql): Fix indentation.
12662
12663 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
12664
12665 2004-04-19 John Paul Wallington <jpw@gnu.org>
12666
12667 * fns.c (Feql): New function.
12668 (syms_of_fns): Defsubr it.
12669
12670 2004-04-18 Jason Rumney <jasonr@gnu.org>
12671
12672 * w32select.c (Fw32_set_clipboard_data): Get sequence number
12673 after closing the clipboard.
12674
12675 2004-04-16 Luc Teirlinck <teirllm@auburn.edu>
12676
12677 * buffer.c (Fbuffer_base_buffer): Doc fix.
12678
12679 2004-04-17 Kim F. Storm <storm@cua.dk>
12680
12681 * keymap.c (Fkey_description): Add optional PREFIX arg.
12682 Combine prefix with KEYS to make up the full key sequence to describe.
12683 Correlate meta_prefix_char and following (simple) key to describe
12684 as meta modifier. All callers changed.
12685 (describe_map): Rename arg `keys' to `prefix'. Remove local
12686 `elt_prefix' var. Use Fkey_description with prefix instead of
12687 elt_prefix combined with Fsingle_key_description.
12688 (describe_vector): Declare static. Replace arg `elt_prefix' with
12689 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
12690 if !KEYMAP_P. Use Fkey_description with prefix instead of
12691 Fsingle_key_description.
12692
12693 * keymap.h (Fkey_description): Fix prototype.
12694 (describe_vector): Remove prototype.
12695
12696 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
12697
12698 * image.c (PNG_BG_COLOR_SHIFT): Remove.
12699 (png_load): Fix calculation of transparent background color on X
12700 and W32 platforms.
12701
12702 2004-04-16 Juanma Barranquero <lektu@terra.es>
12703
12704 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
12705 not too large before computing how much to scroll.
12706
12707 2004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
12708
12709 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
12710
12711 2004-04-14 Luc Teirlinck <teirllm@auburn.edu>
12712
12713 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
12714 Add hyperlink to Elisp manual to the docstring.
12715
12716 2004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
12717
12718 * callint.c (fix_command): Use XDCR.
12719
12720 2004-04-14 Nick Roberts <nick@nick.uklinux.net>
12721
12722 * window.c (Fget_lru_window): Doc fix.
12723
12724 2004-04-14 Kim F. Storm <storm@cua.dk>
12725
12726 * editfns.c (Fformat): Fix allocation size of precision array.
12727
12728 * dispnew.c (update_window): Only set changed_p if
12729 scrolling_window actually did scroll.
12730 (scrolling_window): Only return 1 if we actually did scroll.
12731
12732 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
12733 height to glyph height when cursor row is not fully visible.
12734 (make_cursor_line_fully_visible): Add FORCE_P arg to return
12735 failure in case row is higher than window. Callers changed.
12736 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
12737 Try to scroll partially visible, higher-than-window cursor row.
12738 (redisplay_window): Always try to scroll partially visible,
12739 higher-than-window cursor row - both initially and again with
12740 centering_position = 0.
12741 Clear desired matrix before retrying with centering_position = 0.
12742
12743 2004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
12744
12745 * syntax.c (scan_lists): Simplify backward string scan.
12746 Fix off-by-one boundary check for string and comment fences.
12747
12748 2004-04-13 Joe Buehler <jbuehler@hekimian.com>
12749
12750 * sheap.c, unexcw.c: New files.
12751
12752 2004-04-12 Luc Teirlinck <teirllm@auburn.edu>
12753
12754 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
12755 base buffer has been killed. Correct the error message if the
12756 base buffer does not exist.
12757
12758 2004-04-12 Joe Buehler <jbuehler@hekimian.com>
12759
12760 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
12761 Cygwin itself. Add support for Xaw3d scrollbars.
12762
12763 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
12764
12765 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
12766
12767 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
12768 before Cygwin unexec.
12769
12770 * Makefile.in: Link changes for Cygwin unexec() support.
12771
12772 2004-04-12 Andreas Schwab <schwab@suse.de>
12773
12774 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
12775
12776 2004-04-11 Luc Teirlinck <teirllm@auburn.edu>
12777
12778 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
12779 IGNORE argument equals NAME. Doc fix.
12780
12781 2004-04-11 Masatake YAMATO <jet@gyve.org>
12782
12783 * buffer.c (fix_start_end_in_overlays): Make overlays
12784 empty if they are backwards.
12785
12786 2004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12787
12788 * xfaces.c (face_color_supported_p): Fix compilation without X11.
12789
12790 2004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
12791
12792 * doc.c (Fsnarf_documentation): Ignore new file name entries.
12793
12794 2004-04-06 Kim F. Storm <storm@cua.dk>
12795
12796 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
12797 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
12798
12799 * w32term.c (w32_read_socket): Set mouse_face_hidden after
12800 clearing highlight.
12801
12802 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
12803
12804 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
12805 clearing highlight.
12806
12807 * indent.c (vmotion): Do not reserve one column for continuation
12808 marks on window frames.
12809
12810 2004-04-04 Eli Zaretskii <eliz@gnu.org>
12811
12812 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
12813 from GCC.
12814
12815 2004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
12816
12817 * .gdbinit-union: Remove.
12818
12819 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
12820 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
12821 ($nonvalbits): Remove.
12822 ($valmask): Set it by calling xreload to avoid redundancy.
12823
12824 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
12825 (gdb_emacs_intbits): Remove.
12826
12827 2004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12828
12829 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
12830
12831 2004-03-30 Kenichi Handa <handa@m17n.org>
12832
12833 * editfns.c (Fformat): Fix initialization of the array info.
12834
12835 2004-03-30 Kim F. Storm <storm@cua.dk>
12836
12837 * xterm.c (x_mouse_click_focus_ignore_position): New var.
12838 (syms_of_xterm): DEFVAR_BOOL it.
12839 (ignore_next_mouse_click_timeout): New var.
12840 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
12841 Use it to filter mouse clicks following focus event.
12842
12843 2004-03-29 David Ponce <david@dponce.com>
12844
12845 * callint.c (Fcall_interactively): Fix last change.
12846
12847 2004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
12848
12849 * eval.c (Fcommandp): Simplify.
12850
12851 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
12852 Extend to handle all kinds of functions.
12853
12854 * lisp.h (Finteractive_form): Declare.
12855
12856 * callint.c (Fcall_interactively): Use it.
12857
12858 2004-03-26 Kim F. Storm <storm@cua.dk>
12859
12860 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
12861 to catch errors in calc_pixel_width_or_height during redisplay.
12862
12863 2004-03-26 Masatake YAMATO <jet@gyve.org>
12864
12865 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
12866
12867 * lisp.h (fix_start_end_in_overlays): Likewise.
12868
12869 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
12870
12871 * editfns.c (Ftranspose_regions): Likewise.
12872
12873 2004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12874
12875 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
12876
12877 2004-03-19 Richard M. Stallman <rms@gnu.org>
12878
12879 * s/sol2-6.h: Delete previous change.
12880
12881 2004-03-19 Kim F. Storm <storm@cua.dk>
12882
12883 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
12884 to_charpos corresponds to newline in right fringe. Use local
12885 BUFFER_POS_REACHED_P macro.
12886
12887 2004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12888
12889 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
12890 to compile on non-window system.
12891
12892 2004-03-19 Kim F. Storm <storm@cua.dk>
12893
12894 * dispextern.h (calc_pixel_width_or_height): Add prototype.
12895
12896 * image.c (Qcenter): Move to xdisp.c.
12897
12898 * xdisp.c (Qcenter): Declare here.
12899 (syms_of_xdisp): Intern and staticpro it.
12900 (handle_single_display_prop): Allow space display property on all
12901 platforms.
12902 (display_mode_line): Set mode_line_p before displaying line.
12903 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
12904 handling. Remove complex cases for fringes and scroll-bars.
12905 Add left, right, and center alignment positions. Add text (area)
12906 width/height. Return width or height for image specs.
12907 (produce_stretch_glyph): Improve handling of :align-to. Is now
12908 relative to left of text area by default, but other base offsets
12909 can be specified -- also for text lines.
12910
12911 * term.c (produce_glyphs): Handle IT_STRETCH.
12912 (produce_stretch_glyph): New function to handle space width and
12913 align-to display properties on non-window systems.
12914
12915 2004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
12916
12917 * fileio.c (Fread_file_name): Set completion-ignore-case for
12918 case-insensitive systems.
12919
12920 2004-03-14 Masatake YAMATO <jet@gyve.org>
12921
12922 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
12923 when keymap and cursor are setup.
12924
12925 2004-03-14 Steven Tamm <steventamm@mac.com>
12926
12927 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
12928
12929 2004-03-14 Kim F. Storm <storm@cua.dk>
12930
12931 * dispextern.h (x_find_image_file): Add prototype.
12932
12933 * image.c (x_find_image_file): Make extern.
12934
12935 * xfns.c (x_find_image_file): Remove prototype.
12936
12937 2004-03-13 Eli Zaretskii <eliz@gnu.org>
12938
12939 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
12940
12941 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
12942
12943 2004-03-12 Richard M. Stallman <rms@gnu.org>
12944
12945 * fns.c (internal_equal): New arg PROPS controls comparing
12946 text properties. All callers changed.
12947 (Fequal_including_properties): New function.
12948 (syms_of_fns): defsubr it.
12949
12950 2004-03-12 Kim F. Storm <storm@cua.dk>
12951
12952 Fix image support on MAC. From YAMAMOTO Mitsuharu.
12953
12954 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
12955 (image_background, image_background_transparent): Fix prototypes.
12956
12957 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
12958
12959 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
12960 (x_query_font, x_find_ccl_program, x_set_window_size)
12961 (x_make_frame_visible, mac_initialize, XCreatePixmap)
12962 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
12963 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
12964
12965 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
12966 (x_query_font, x_find_ccl_program, x_set_window_size)
12967 (x_make_frame_visible, mac_initialize, XCreatePixmap)
12968 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
12969 (mac_draw_line_to_pixmap): Add prototypes.
12970
12971 2004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12972
12973 * macterm.c (XTread_socket): Fix mouse click on tool bar.
12974
12975 2004-03-11 Kim F. Storm <storm@cua.dk>
12976
12977 * dispextern.h: Move image related prototypes from xfns.c section
12978 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
12979 HAVE_X_WINDOWS.
12980
12981 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
12982 Move gtkutil.o to new GTK_OBJ list.
12983 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
12984 (GTK_OBJ) [USE_GTK]: New declaration.
12985 (obj): Add $(GTK_OBJ) to list.
12986
12987 2004-03-11 Steven Tamm <steventamm@mac.com>
12988
12989 * image.c [MAC_OSX]: Include sys/stat.h.
12990
12991 * macfns.c (syms_of_macfns): Remove definitions of things now
12992 defined in image.c.
12993
12994 2004-03-11 Kim F. Storm <storm@cua.dk>
12995
12996 The following changes consolidates the identical/similar image
12997 support code previously found in xfns.c, w32fns.c, and macfns.c
12998 into a new file image.c.
12999
13000 * makefile.w32-in (OBJ1): Add image.o.
13001 ($(BLD)/image.$(O)): Add dependencies.
13002
13003 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
13004 (image.o): Add dependencies.
13005
13006 * image.c: New file with consolidated image support code.
13007 (COLOR_TABLE_SUPPORT): New define to control whether
13008 color table support is available (X only).
13009 (Bitmap_Record): Common name for x_bitmap_record,
13010 w32_bitmap_record, and mac_bitmap_record.
13011 (XImagePtr): Common name for pointer to XImage or equivalent.
13012 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
13013 to XImagePtr on X+MAC, and to HDC on W32.
13014 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
13015 (NO_PIXMAP): Common name for "None" or equivalent.
13016 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
13017 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
13018 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
13019 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
13020 Define with suitable equivalents on W32 and MAC for code sharing.
13021 (XDrawLine): Define on MAC for code sharing.
13022 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
13023 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
13024 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
13025 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
13026 (x_reference_bitmap, x_create_bitmap_from_data)
13027 (x_create_bitmap_from_file, x_destroy_bitmap)
13028 (x_destroy_all_bitmaps, x_create_bitmap_mask)
13029 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
13030 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
13031 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
13032 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
13033 (define_image_type, lookup_image_type, valid_image_p)
13034 (image_error, enum image_value_type, struct image_keyword)
13035 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
13036 (make_image, free_image, prepare_image_for_display, image_ascent)
13037 (four_corners_best, image_background, image_background_transparent)
13038 (x_clear_image_1, x_clear_image, x_alloc_image_color)
13039 (make_image_cache, free_image_cache, clear_image_cache)
13040 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
13041 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
13042 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
13043 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
13044 (init_image_func_pointer, image_load_quartz2d)
13045 (struct ct_color, init_color_table, free_color_table)
13046 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
13047 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
13048 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
13049 (x_disable_image, x_build_heuristic_mask)
13050 (XBM support, XPM support, PBM support, PNG support, JPEG support)
13051 (TIFF support, GIF support, Ghostscript support): Consolidate image
13052 code from xfns.c, w32fns.c, and macfns.c.
13053 (syms_of_image): Consolidate image related symbol setup here.
13054 (init_image): Consolidate image related initializations here.
13055
13056 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
13057 and init_image. Remove call to init_xfns.
13058
13059 * macterm.h (struct mac_bitmap_record): Add file member.
13060 Not currently used, but simplifies code sharing.
13061
13062 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
13063 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
13064 (x_reference_bitmap, x_create_bitmap_from_data)
13065 (x_create_bitmap_from_file, x_destroy_bitmap)
13066 (x_destroy_all_bitmaps, x_create_bitmap_mask)
13067 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
13068 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
13069 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
13070 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
13071 (define_image_type, lookup_image_type, valid_image_p)
13072 (image_error, enum image_value_type, struct image_keyword)
13073 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
13074 (make_image, free_image, prepare_image_for_display, image_ascent)
13075 (four_corners_best, image_background, image_background_transparent)
13076 (x_clear_image_1, x_clear_image, x_alloc_image_color)
13077 (make_image_cache, free_image_cache, clear_image_cache)
13078 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
13079 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
13080 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
13081 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
13082 (init_image_func_pointer, image_load_quartz2d)
13083 (struct ct_color, init_color_table, free_color_table)
13084 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
13085 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
13086 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
13087 (x_disable_image, x_build_heuristic_mask)
13088 (XBM support, XPM support, PBM support, PNG support, JPEG support)
13089 (TIFF support, GIF support, Ghostscript support): Merge with image
13090 code from xfns.c and macfns.c into image.c.
13091 (syms_of_xfns): Move image related symbols to image.c.
13092 (init_external_image_libraries, init_xfns): Remove; initialization
13093 moved to init_image in image.c.
13094
13095 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
13096 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
13097 (x_reference_bitmap, x_create_bitmap_from_data)
13098 (x_create_bitmap_from_file, x_destroy_bitmap)
13099 (x_destroy_all_bitmaps, x_create_bitmap_mask)
13100 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
13101 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
13102 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
13103 (define_image_type, lookup_image_type, valid_image_p)
13104 (image_error, enum image_value_type, struct image_keyword)
13105 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
13106 (make_image, free_image, prepare_image_for_display, image_ascent)
13107 (four_corners_best, image_background, image_background_transparent)
13108 (x_clear_image_1, x_clear_image, x_alloc_image_color)
13109 (make_image_cache, free_image_cache, clear_image_cache)
13110 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
13111 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
13112 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
13113 (struct ct_color, init_color_table, free_color_table)
13114 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
13115 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
13116 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
13117 (x_disable_image, x_build_heuristic_mask)
13118 (XBM support, XPM support, PBM support, PNG support, JPEG support)
13119 (TIFF support, GIF support, Ghostscript support): Merge with image
13120 code from xfns.c and macfns.c into image.c.
13121 (syms_of_xfns): Move image related symbols to image.c.
13122 (init_external_image_libraries, init_xfns): Remove; initialization
13123 moved to init_image in image.c.
13124
13125 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
13126 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
13127 (x_reference_bitmap, x_create_bitmap_from_data)
13128 (x_create_bitmap_from_file, x_destroy_bitmap)
13129 (x_destroy_all_bitmaps, x_create_bitmap_mask)
13130 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
13131 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
13132 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
13133 (define_image_type, lookup_image_type, valid_image_p)
13134 (image_error, enum image_value_type, struct image_keyword)
13135 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
13136 (make_image, free_image, prepare_image_for_display, image_ascent)
13137 (four_corners_best, image_background, image_background_transparent)
13138 (x_clear_image_1, x_clear_image, x_alloc_image_color)
13139 (make_image_cache, free_image_cache, clear_image_cache)
13140 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
13141 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
13142 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
13143 (struct ct_color, init_color_table, free_color_table)
13144 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
13145 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
13146 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
13147 (x_disable_image, x_build_heuristic_mask)
13148 (XBM support, XPM support, PBM support, PNG support, JPEG support)
13149 (TIFF support, GIF support, Ghostscript support): Merge with
13150 w32fns.c and macfns.c image code into image.c.
13151 (syms_of_xfns): Move image related symbols to image.c.
13152 (init_xfns): Remove; initialization moved to init_image in image.c.
13153
13154 * lisp.h (syms_of_image, init_image): Add protoypes.
13155 (init_xfns): Remove prototype.
13156
13157 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
13158 (x_reference_bitmap, x_create_bitmap_from_data)
13159 (x_create_bitmap_from_file, x_destroy_bitmap)
13160 (x_create_bitmap_mask): Move prototypes from dispextern.h.
13161 (gamma_correct) [MAC_OS]: Add prototype.
13162
13163 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
13164 (x_reference_bitmap, x_create_bitmap_from_data)
13165 (x_create_bitmap_from_file, x_destroy_bitmap)
13166 (x_create_bitmap_mask): Move prototypes to dispextern.h.
13167
13168 2004-03-09 Kenichi Handa <handa@etlken2>
13169
13170 * coding.c (decode_coding_emacs_mule): Handle insufficent source
13171 correctly.
13172
13173 2004-03-04 Richard M. Stallman <rms@gnu.org>
13174
13175 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
13176
13177 * window.c (Fdisplay_buffer): Doc fix.
13178
13179 * buffer.c (Fpop_to_buffer): Doc fix.
13180
13181 2004-03-03 Kim F. Storm <storm@cua.dk>
13182
13183 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
13184
13185 2004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
13186
13187 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
13188
13189 2004-03-02 Richard M. Stallman <rms@gnu.org>
13190
13191 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
13192
13193 2004-03-02 Kenichi Handa <handa@m17n.org>
13194
13195 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
13196
13197 2004-03-02 Kim F. Storm <storm@cua.dk>
13198
13199 * window.h (struct window): New member overlay_arrow_bitmap.
13200
13201 * window.c (make_window): Initialize overlay_arrow_bitmap.
13202
13203 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
13204 implement and integrate multiple overlay arrows with redisplay.
13205 (syms_of_xdisp): DEFVAR_LISP and initialize it.
13206 (last_arrow_position, last_arrow_string): Replace by properties.
13207 (Qlast_arrow_position, Qlast_arrow_string)
13208 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
13209 (syms_of_xdisp): Intern and staticpro them.
13210 (overlay_arrow_string_or_property, update_overlay_arrows)
13211 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
13212 (overlay_arrow_at_row): New functions for multiple overlay arrows.
13213 (redisplay_internal): Use them instead of directly accessing
13214 Voverlay_arrow_position etc. for multiple overlay arrows.
13215 (mark_window_display_accurate): Use update_overlay_arrows.
13216 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
13217 (try_window_id): Use overlay_arrows_changed_p.
13218 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
13219 (display_line): Use overlay_arrow_at_row to check multiple
13220 overlay arrows, and get relevant overlay-arrow-string and
13221 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
13222 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
13223 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
13224
13225 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
13226 (update_window_fringes): Remove unused code.
13227
13228 2004-03-01 Jason Rumney <jasonr@gnu.org>
13229
13230 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
13231
13232 2004-03-01 Juanma Barranquero <lektu@terra.es>
13233
13234 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
13235
13236 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
13237
13238 2004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13239
13240 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
13241 how many colors can be displayed.
13242
13243 2004-03-01 Kenichi Handa <handa@m17n.org>
13244
13245 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
13246 correctly.
13247
13248 2004-02-28 Kim F. Storm <storm@cua.dk>
13249
13250 * dispnew.c (update_window): Update header line also if there are
13251 no other changes in window (move code after set_cursor label).
13252
13253 * lisp.h (mark_window_display_accurate): Remove prototype.
13254
13255 * window.c (window_loop, Fforce_window_update): Force mode line
13256 updates by setting prevent_redisplay_optimizations_p and
13257 update_mode_lines.
13258
13259 2004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13260
13261 * xfns.c (x_window): Fix indentation.
13262
13263 * xterm.c (x_calc_absolute_position): Call x_real_positions
13264 to get WM window sizes and use those to calculate position.
13265 (x_set_offset): Remove code commented out.
13266
13267 2004-02-28 Miles Bader <miles@gnu.org>
13268
13269 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
13270
13271 2004-02-28 Kim F. Storm <storm@cua.dk>
13272
13273 * keyboard.c (kbd_buffer_store_event_hold): New function to store
13274 an event into kbd fifo, but with special handling of quit event;
13275 a quit event is saved for later, and further events are discarded
13276 until the saved quit event has been processed.
13277 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
13278 (gen_help_event): Store help event in kbd fifo.
13279 (NREAD_INPUT_EVENTS): Remove.
13280 (read_avail_input): Adapt to new read_socket_hook interface.
13281 Remove allocation and initialization of local input_event buffer,
13282 as read_socket_hook stores events directly in fifo. Allocate and
13283 initialize local hold_quit event to handle postponed quit event
13284 (and store it if set by kbd_buffer_store_event_hold).
13285
13286 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
13287 (gen_help_event): Fix prototype.
13288
13289 * macterm.c (XTread_socket): Remove bufp_r and
13290 numcharsp args. Add hold_quit arg.
13291 Rework to use just one, local, inev input_event. Store inev
13292 directly in fifo using kbd_buffer_store_event_hold.
13293
13294 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
13295 (read_input_waiting): Adapt to new read_socket_hook interface.
13296 Remove allocation and initialization of local input_event buffer,
13297 as read_socket_hook stores events directly in fifo. Allocate and
13298 initialize local hold_quit event to handle postponed quit event
13299 (and store it if set by kbd_buffer_store_event_hold).
13300
13301 * term.c (read_socket_hook): Fix arg list.
13302
13303 * termhooks.h (read_socket_hook): Fix prototype.
13304
13305 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
13306 numcharsp args. Add hold_quit arg.
13307 Rework to use just one, local, inev input_event. Store inev
13308 directly in fifo using kbd_buffer_store_event_hold.
13309
13310 * w32inevt.h (w32_console_mouse_position): Fix prototype.
13311
13312 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
13313 Add hold_quit arg. Rework to use just one, local, inev
13314 input_event. Store inev directly in fifo using
13315 kbd_buffer_store_event_hold. Update count in one place.
13316 Postpone call to gen_help_event until inev is stored; use new
13317 local do_help for this.
13318 Remove local emacs_event in handing of ButtonPress event; just use
13319 inev instead (so no reason to copy it later).
13320
13321 * xsmfns.c (x_session_check_input): Remove numchars arg.
13322
13323 * xterm.c (x_focus_changed, x_detect_focus_change):
13324 Remove numchars arg. Always store event into bufp arg.
13325 Return nothing. Callers changed accordingly.
13326 (glyph_rect): Simplify.
13327 (STORE_KEYSYM_FOR_DEBUG): New macro.
13328 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
13329 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
13330 (current_hold_quit) [USE_GTK]: Add.
13331 (event_handler_gdk): Adapt to new handle_one_xevent.
13332 (handle_one_xevent): Remove bufp_r and numcharsp args.
13333 Add hold_quit arg. Rework to use just one, local, inev
13334 input_event. Store inev directly in fifo using
13335 kbd_buffer_store_event_hold. Update count in one place.
13336 Postpone call to gen_help_event until inev is stored; use new
13337 local do_help for this.
13338 Simplify handling of keysyms (consolidate common code). Fix bug
13339 where count was updated with nchars instead of nbytes.
13340 Remove local emacs_event in handing of ButtonPress event; just use
13341 inev instead (so no reason to copy it later).
13342 Remove `out' label. Rename label `ret' to `done'; add various
13343 `goto done' to clarify code flow in deeply nested blocks.
13344 (x_dispatch_event): Simplify as handle_one_xevent now calls
13345 kbd_buffer_store_event itself.
13346 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
13347 arg. Call handle_one_xevent with new arglist. Store event from
13348 x_session_check_input in fifo.
13349 [USE_GTK]: Setup current_hold_quit.
13350 Decrement handling_signal before unblocking input.
13351 (x_initialize) [USE_GTK]: Initialize current_count.
13352
13353 * xterm.h (x_session_check_input): Fix prototype.
13354
13355 2004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13356
13357 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
13358
13359 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
13360 macgui.h).
13361
13362 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
13363
13364 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
13365 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
13366 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
13367 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
13368 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
13369 (Bitmap): Remove typedef.
13370 (Pixmap): Change int to GWorldPtr.
13371
13372 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
13373
13374 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
13375 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
13376 New #define to extract 16-bit depth color components from unsigned
13377 long representation.
13378 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
13379 colors used for masks.
13380 (struct mac_display_info): Add color_p. Remove n_cbits.
13381
13382 * macfns.c: Include sys/types.h and sys/stat.h.
13383 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
13384 Include QuickTime/QuickTime.h.
13385 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
13386 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
13387 functions defined in macterm.c.
13388 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
13389 (ZPixmap): New #define for compatibility with xfns.c.
13390 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
13391 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
13392 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
13393 New functions.
13394 (four_corners_best, x_create_x_image_and_pixmap)
13395 (x_destroy_x_image, unwind_create_frame, x_disable_image)
13396 (x_edge_detection, init_color_table, colors_in_color_table)
13397 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
13398 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
13399 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
13400 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
13401 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
13402 long mixup.
13403 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
13404 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
13405 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
13406 (x_set_cursor_type, Fxw_color_values, valid_image_p)
13407 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
13408 (x_alloc_image_color, clear_image_cache, lookup_image)
13409 (x_find_image_file, xbm_read_bitmap_file_data)
13410 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
13411 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
13412 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
13413 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
13414 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
13415 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
13416 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
13417 #if 0.
13418 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
13419 #if 0. Free white_relief.gc and black_relief.gc.
13420 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
13421 New functions (from xfns.c).
13422 (Fx_create_frame): Record unwind_create_frame.
13423 (Fxw_display_color_p): Use dpyinfo->color_p.
13424 (Fx_display_grayscale_p, Fx_display_planes): Don't use
13425 dpyinfo->n_cbits.
13426 (Fx_display_color_cells): Use dpyinfo->n_planes;
13427 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
13428 (Qheuristic, cross_disabled_images, emboss_matrix)
13429 (laplace_matrix): New variables (from xfns.c).
13430 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
13431 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
13432 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
13433 (image_background_transparent): New function (from xfns.c).
13434 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
13435 (image_load_quicktime): Add declaration.
13436 [MAC_OSX] (image_load_quartz2d): Likewise.
13437 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
13438 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
13439 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
13440 (xbm_load_image_from_file, x_laplace_read_row)
13441 (x_laplace_write_row, pbm_read_file): Remove functions.
13442 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
13443 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
13444 (colors_in_color_table): Sync with xfns.c (although not used).
13445 (lookup_rgb_color): Don't lookup color table. Just do gamma
13446 correction.
13447 (COLOR_INTENSITY): New #define (from xfns.c).
13448 (x_disable_image): New function (from xfns.c).
13449 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
13450 (x_build_heuristic_mask): Sync with xfns.c.
13451 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
13452 (HAVE_PBM): Remove #ifdef.
13453 (pbm_load): Sync with xfns.c. Set img->width and img->height
13454 before IMAGE_BACKGROUND.
13455 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
13456 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
13457 Don't enclose with #if HAVE_PNG.
13458 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
13459 symbol _CGImageCreateWithPNGDataProvider is defined.
13460 Otherwise use image_load_quicktime.
13461 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
13462 [HAVE_PNG] (png_load): Sync with xfns.c.
13463 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
13464 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
13465 HAVE_JPEG.
13466 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
13467 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
13468 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
13469 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
13470 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
13471 (tiff_image_p, tiff_load): Don't enclose declarations with #if
13472 HAVE_TIFF.
13473 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
13474 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
13475 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
13476 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
13477 New functions (from xfns.c).
13478 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
13479 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
13480 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
13481 Don't enclose with #if HAVE_GIF.
13482 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
13483 animated gif. Otherwise use image_load_quicktime.
13484 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
13485 gif_DrawText to avoid conflict with QuickdrawText.h.
13486 [HAVE_GIF] (gif_load): Sync with xfns.c.
13487 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
13488 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
13489 Ghostscript is not supported yet).
13490 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
13491 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
13492 cross_disabled_images (from xfns.c). Remove #if 0 for supported
13493 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
13494 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
13495 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
13496 HAVE_PNG. Call EnterMovies to support animated gifs.
13497 Call init_image_func_pointer to bind a symbol
13498 _CGImageCreateWithPNGDataProvider if it is defined.
13499
13500 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
13501 (x_draw_bar_cursor): Sync declaration with xterm.c.
13502 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
13503 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
13504 graphics).
13505 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
13506 (mac_draw_line_to_pixmap, XCreatePixmap)
13507 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
13508 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
13509 New functions.
13510 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
13511 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
13512 Cast bits to char *.
13513 (reflect_byte): New function (from w32fns.c).
13514 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
13515 due to byte alignment.
13516 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
13517 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
13518 (XSetForeground): Remove static (now used in macfns.c).
13519 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
13520 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
13521 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
13522 (x_draw_glyph_string_box, x_draw_image_foreground)
13523 (x_draw_image_foreground_1, x_draw_image_glyph_string)
13524 (x_draw_stretch_glyph_string, x_draw_glyph_string)
13525 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
13526 Sync with xterm.c.
13527 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
13528 than the xterm.c version when a strictly horizontal or vertical
13529 line is drawn.
13530 (XTset_terminal_window): Add static.
13531 (x_make_frame_visible): Add UNBLOCK_INPUT.
13532 (x_free_frame_resources): New funcion (from xterm.c).
13533 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
13534 occurs in tool bar area.
13535 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
13536 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
13537 Initialize image cache.
13538 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
13539 Enclose unused functions with #if 0.
13540 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
13541 (decode_mac_font_name): New function to apply code conversions
13542 from a mac font name to an XLFD font name according to its script code.
13543 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
13544 font name to a mac font name according to REGISTRY and ENCODING fields.
13545 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
13546 whose name starts with `.'.
13547 (init_font_name_table): Use decode_mac_font_name. Add both
13548 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
13549 of a font is smJapanese.
13550 (mac_do_list_fonts): New function to list fonts that match a given
13551 pattern.
13552 (x_list_fonts, XLoadQueryFont): Use it.
13553 (XLoadQueryFont): Set rbearing field for each variable width
13554 character to avoid needless redraw.
13555 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
13556
13557 2004-02-26 Kim F. Storm <storm@cua.dk>
13558
13559 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
13560 as read_socket_hook handler on X aborts if buffer is too small
13561 and W32 handler doesn't always check buffer limit.
13562
13563 * xdisp.c (handle_single_display_prop): Handle left-fringe and
13564 right-fringe similar to a display margin image. Specifically,
13565 the characters having the fringe prop are no longer shown, and
13566 we use IT_IMAGE/next_element_from_image with image_id = -1 to
13567 do this. Set fringe bitmap face_id in it->face_id.
13568 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
13569 still realize it->face (i.e. the fringe bitmap face).
13570
13571 2004-02-25 Miles Bader <miles@gnu.org>
13572
13573 * xdisp.c (check_it): Check string/string_pos consistency.
13574 (init_iterator): Initialize string-related fields properly.
13575
13576 2004-02-11 Miles Bader <miles@gnu.org>
13577
13578 * xdisp.c (produce_image_glyph): Force negative descents to zero.
13579
13580 2004-02-10 Miles Bader <miles@gnu.org>
13581
13582 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
13583 BLOCK_INPUT can be nested, so it doesn't make much sense.
13584
13585 2004-02-24 Michael Mauger <mmaug@yahoo.com>
13586
13587 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
13588 (xbm_read_bitmap_data): Use unsigned char for image data.
13589
13590 2004-02-23 Luc Teirlinck <teirllm@auburn.edu>
13591
13592 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
13593
13594 2004-02-22 Jason Rumney <jasonr@gnu.org>
13595
13596 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
13597 correctly over other bitmaps.
13598
13599 2004-02-21 Eli Zaretskii <eliz@gnu.org>
13600
13601 * emacs.c (USAGE1): Split into two halves.
13602 (USAGE2): Second half of the old USAGE1.
13603 (USAGE3): Rename from USAGE2.
13604 (USAGE4): Rename from USAGE3.
13605
13606 2004-02-21 Juri Linkov <juri@jurta.org>
13607
13608 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
13609 Fix --multibyte. Move --help, --version to USAGE2. Add alias
13610 --file. Fix -f, -l. Sort options. Untabify.
13611 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
13612
13613 2004-02-19 Luc Teirlinck <teirllm@auburn.edu>
13614
13615 * category.c (Fdefine_category, Fcategory_docstring)
13616 (Fget_unused_category, Fset_category_table)
13617 (Fcategory_set_mnemonics): Doc fixes.
13618
13619 2004-02-20 Kim F. Storm <storm@cua.dk>
13620
13621 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
13622 The following changes are relative to the 2004-01-21 revision.
13623 (NREAD_INPUT_EVENTS): Define as max number of input events to read
13624 in one call to read_socket_hook. Value is 8.
13625 (read_avail_input): Separate and rework handling of read_socket_hook
13626 and non-read_socket_hook cases. Use smaller input_event buffer
13627 in read_socket_hook case, and repeat if full buffer is read.
13628 Use new local variable 'discard' to skip input after C-g.
13629 In non-read_socket_hook case, just use a single input_event, and
13630 call kbd_buffer_store_event on the fly for each character.
13631
13632 2004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13633
13634 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
13635 Remove unused `gu' alternative.
13636
13637 2004-02-19 Andreas Schwab <schwab@suse.de>
13638
13639 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
13640 warning.
13641
13642 2004-02-18 Kim F. Storm <storm@cua.dk>
13643
13644 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
13645 Fix last change.
13646
13647 2004-02-17 Kim F. Storm <storm@cua.dk>
13648
13649 * xdisp.c (fast_find_position): Fix return value of new version;
13650 it was inverted compared to the 21.1 version.
13651 (get_window_cursor_type): Don't look at glyph if NULL.
13652 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
13653
13654 * keyboard.c: Rework previous change; it didn't consider that the
13655 buf array was allocated on the stack.
13656 (prev_read): Remove variable.
13657 (read_avail_input_buf): New static event buffer array.
13658 (in_read_avail_input): New static variable to handle re-entrancy.
13659 (read_avail_input): Change buf to pinter to read_avail_input_buf.
13660 Use in_read_avail_input to handle re-entrance; when re-entered,
13661 fully initialize and use tmp_buf array instead of read_avail_input_buf.
13662 Do not initialize read_avail_input_buf in full here; instead assume it
13663 is always cleared on entry. To ensure that, we clear (just) the
13664 entries that were used before we return.
13665 (init_keyboard): Initialize read_avail_input_buf here.
13666
13667 2004-02-16 Jesper Harder <harder@ifa.au.dk>
13668
13669 * cmds.c (Fend_of_line): Doc fix.
13670
13671 2004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
13672
13673 * keyboard.c (prev_read): New static variable.
13674 (read_avail_input): Use it to zero out only those slots in buf[]
13675 that were used last time we were called.
13676
13677 2004-02-16 Eli Zaretskii <eliz@gnu.org>
13678
13679 * Makefile.in (obj): Move fringe.o from here...
13680 (XOBJ, MAC_OBJ): ...to here.
13681
13682 2004-02-16 Stephen Eglen <stephen@gnu.org>
13683
13684 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
13685
13686 2004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
13687
13688 * data.c (Fbyteorder):
13689 * fringe.c (Fdefine_fringe_bitmap):
13690 * xdisp.c (handle_single_display_prop):
13691 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
13692
13693 2004-02-16 Jason Rumney <jasonr@gnu.org>
13694
13695 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
13696
13697 2004-02-15 Steven Tamm <steventamm@mac.com>
13698
13699 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
13700 controlling emulation of a three button mouse with option and
13701 command keys.
13702 (Qreverse, mac_get_enumlated_btn): Handle the emulation.
13703 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
13704
13705 2004-02-15 Kim F. Storm <storm@cua.dk>
13706
13707 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
13708
13709 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
13710 Perform byte-swapping.
13711
13712 2004-02-14 Kim F. Storm <storm@cua.dk>
13713
13714 * dispextern.h (struct draw_fringe_bitmap_params): Change member
13715 bits from char to short to facilitate wider bitmaps.
13716 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
13717 member.
13718
13719 * fringe.c (struct fringe_bitmap): Change member bits from char to
13720 short to facilitate 16 bits wide bitmaps. Modify all standard
13721 bitmaps accordingly.
13722 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
13723 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
13724 (draw_fringe_bitmap): Ditto.
13725 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
13726 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
13727 handle up to 16 bits wide bitmaps.
13728 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
13729 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
13730
13731 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
13732 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
13733 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
13734
13735 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
13736 so it is no longer necessary to expand them here.
13737
13738 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
13739
13740 2004-02-12 Kim F. Storm <storm@cua.dk>
13741
13742 * window.c (Fwindow_fringes): Doc fix.
13743
13744 2004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13745
13746 * xselect.c (x_get_foreign_selection): Add new optional parameter
13747 time_stamp.
13748 (Fx_get_selection_internal): Ditto, pass time_stamp to
13749 x_get_foreign_selection.
13750
13751 * data.c (Fbyteorder): New function.
13752
13753 2004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13754
13755 * atimer.c: Move include stdio.h to same place as in other files.
13756
13757 * region-cache.c: Ditto.
13758
13759 * sysdep.c: Ditto.
13760
13761 * xfaces.c: Ditto.
13762
13763 2004-02-09 Sam Steingold <sds@gnu.org>
13764
13765 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
13766
13767 2004-02-09 Kim F. Storm <storm@cua.dk>
13768
13769 * fringe.c: New file. Move original fringe related declarations
13770 and code from dispextern.h and xdisp.c here.
13771 Rework code to support user defined fringe bitmaps, redefining
13772 standard bitmaps, ability to overlay user defined bitmap with
13773 overlay arrow bitmap, and add faces to bitmaps.
13774 (Voverflow_newline_into_fringe): Declare here.
13775 (enum fringe_bitmap_align): New enum.
13776 (..._bits): All bitmaps are now defined without bitswapping; that
13777 is now done in init_fringe_once (if necessary).
13778 (standard_bitmaps): New array with specifications for the
13779 standard fringe bitmaps.
13780 (fringe_faces): New array.
13781 (valid_fringe_bitmap_id_p): New function.
13782 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
13783 (draw_fringe_bitmap): New function which draws fringe bitmap,
13784 possibly overlaying bitmap with cursor in right fringe or the
13785 overlay arrow in the left fringe.
13786 (update_window_fringes): Do not handle overlay arrow here.
13787 Compare and copy fringe bitmap faces.
13788 (init_fringe_bitmap): New function.
13789 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
13790 define and destroy user defined fringe bitmaps.
13791 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
13792 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
13793 (syms_of_fringe): New function. Defsubr new DEFUNs.
13794 DEFVAR_LISP Voverflow_newline_into_fringe.
13795 (init_fringe_once, init_fringe): New functions.
13796 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
13797
13798 * Makefile.in (obj): Add fringe.o.
13799 (fringe.o): New dependencies.
13800
13801 * dispextern.h (FRINGE_ID_BITS): New definition for number of
13802 bits allocated to hold a fringe number. Increase number of bits
13803 from 4 to 8 to allow user defined fringe bitmaps.
13804 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
13805 left_user_fringe_face_id, right_user_fringe_bitmap,
13806 right_user_fringe_face_id.
13807 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
13808 Move to new file fringe.c.
13809 (MAX_FRINGE_BITMAPS): Define here.
13810 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
13811 and overlay_p. Change member which to int.
13812 (struct redisplay_interface): New members define_fringe_bitmap
13813 and destroy_fringe_bitmap.
13814 (valid_fringe_bitmap_id_p): Add prototype.
13815 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
13816
13817 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
13818 arrows.
13819 (update_frame): Do flush_display if force_flush_display_p to
13820 ensure display (specifically fringes) are updated in a timely
13821 manner when resizing the frame by dragging the mouse.
13822 (update_window_line): Update row if overlay arrow changed.
13823 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
13824 or overlay arrow changed.
13825
13826 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
13827 syms_of_fringe, and init_fringe.
13828
13829 * frame.h (struct frame): New member force_flush_display_p.
13830
13831 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
13832 Add prototypes.
13833
13834 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
13835 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
13836 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
13837 Use cursor color for displaying cursor in fringe.
13838 (x_redisplay_interface): Add null handlers for
13839 define_fringe_bitmap and destroy_fringe_bitmap functions.
13840
13841 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
13842 xterm.c to handle overlayed fringe bitmaps and to use cursor color
13843 for displaying cursor in fringe.
13844 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
13845 specific functions to define and destroy fringe bitmaps in fringe_bmp.
13846 (w32_redisplay_interface): Add them to redisplay_interface.
13847 (w32_term_init): Call w32_init_fringe instead of explicitly
13848 defining fringe bitmaps in fringe_bmp array.
13849 (x_delete_display): Call w32_reset_fringes instead of explicitly
13850 destroying fringe bitmaps in fringe_bmp array.
13851
13852 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
13853 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
13854 (continued_bits, continuation_bits, ov_bits, first_line_bits)
13855 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
13856 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
13857 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
13858 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
13859 Move fringe handling vars and code to new file fringe.c.
13860 (handle_display_prop): Handle left-fringe and right-fringe
13861 display properties; store user fringe bitmaps in iterator.
13862 (move_it_in_display_line_to): Handle cursor in fringe at eob.
13863 (clear_garbaged_frames): Set force_flush_display_p if resized.
13864 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
13865 (display_line): Handle cursor in fringe at eob.
13866 (display_line): Set row user fringe bitmaps from iterator.
13867
13868 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
13869 Use cursor color for displaying cursor in fringe.
13870 (x_redisplay_interface): Add null handlers for
13871 define_fringe_bitmap and destroy_fringe_bitmap functions.
13872
13873 2004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13874
13875 * macfns.c (Fx_change_window_property): Make doc string and
13876 parameters same as for X version.
13877
13878 * w32fns.c (Fx_change_window_property): Ditto.
13879
13880 2004-02-07 Kim F. Storm <storm@cua.dk>
13881
13882 * xdisp.c (hscroll_window_tree): Position cursor near to right
13883 margin in hscrolled window when jumping to end of line (rather
13884 than centering cursor).
13885
13886 * process.c (wait_reading_process_input): Don't do adaptive read
13887 buffering if waiting for a specific process.
13888
13889 2004-02-05 Luc Teirlinck <teirllm@auburn.edu>
13890
13891 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
13892 (Fread_minibuffer, Feval_minibuffer)
13893 (Fread_string, Fread_no_blanks_input)
13894 (Fcompleting_read): Doc fixes.
13895 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
13896 completion-regexp-list. Define Qcase_fold_search and staticpro it.
13897 (read_minibuf): Fix initial comment.
13898 (Ftry_completion, Fall_completions, Ftest_completion): Bind
13899 case-fold-search to the value of completion-ignore-case when
13900 checking completion-regexp-list.
13901 (Fdisplay_completion_list): Make it handle arguments that are
13902 symbols. Doc fix.
13903
13904 2004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13905
13906 * xterm.h: Add declaration of free_frame_menubar.
13907
13908 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
13909 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
13910 (Fx_change_window_property): Add declaration of parameters type and
13911 format. Remove unused variable cons.
13912
13913 * xselect.c: Include stdio.h.
13914
13915 2004-02-05 Kenichi Handa <handa@m17n.org>
13916
13917 * fns.c (Fset_char_table_range): Fix previous change.
13918
13919 * buffer.c (Fset_buffer_multibyte): Fix docstring.
13920
13921 2004-02-04 Luc Teirlinck <teirllm@auburn.edu>
13922
13923 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
13924
13925 2004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
13926
13927 * keymap.c (Vmouse_events): Rename from Vmenu_events.
13928 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
13929
13930 2004-02-04 Kenichi Handa <handa@m17n.org>
13931
13932 * fns.c (Fset_char_table_range): Handle charsets ascii,
13933 eight-bit-control, and eight-bit-graphic correctly.
13934
13935 2004-02-03 Jason Rumney <jasonr@gnu.org>
13936
13937 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
13938
13939 * w32fns.c (x_to_w32_font): Likewise.
13940
13941 2004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13942
13943 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
13944 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
13945
13946 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
13947 ClientMessages.
13948
13949 * xselect.c: Include termhooks.h and X11/Xproto.h
13950 (x_check_property_data, x_fill_property_data)
13951 (x_property_data_to_lisp, mouse_position_for_drop)
13952 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
13953 (Fx_send_client_event): Move here from xfns.c.
13954 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
13955
13956 * xfns.c (x-send-client-message): Move to xselect.c
13957 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
13958 OUTER_P.
13959 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
13960 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
13961 if vector_ret_p is true.
13962 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
13963
13964 2004-02-02 Eli Zaretskii <eliz@gnu.org>
13965
13966 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
13967 basename of FILE relative to it, not FILE itself.
13968
13969 2004-02-02 Kenichi Handa <handa@m17n.org>
13970
13971 * coding.c (coding_restore_composition): Check invalid
13972 composition data more rigidly.
13973
13974 2004-01-30 Luc Teirlinck <teirllm@auburn.edu>
13975
13976 * fileio.c (Fread_file_name_internal): Correctly handle the case
13977 where insert-default-directory is nil.
13978 (Fread_file_name): Always return an empty string if the user exits
13979 with an empty minibuffer. Adapt the docstring accordingly.
13980 (syms_of_fileio): Adapt the docstring of insert-default-directory
13981 to the change in Fread_file_name.
13982
13983 2004-01-29 Eli Zaretskii <eliz@gnu.org>
13984
13985 * alloca.c [!alloca]: Fix the prototype for xfree.
13986
13987 2004-01-29 Kenichi Handa <handa@m17n.org>
13988
13989 * fns.c (string_char_to_byte): Optimize for ASCII only string.
13990 (string_byte_to_char): Likewise.
13991
13992 2004-01-28 Peter Runestig <peter@runestig.com>
13993
13994 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
13995
13996 2004-01-27 Steven Tamm <steventamm@mac.com>
13997
13998 * unexmacosx.c (unexec_copy): Do not copy more than was
13999 requested to prevent overwriting during unexec.
14000
14001 2004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14002
14003 * process.c (sigchld_handler): Add comment about not calling malloc.
14004
14005 * process.h: Add extern to synch_process_termsig.
14006
14007 2004-01-27 Steven Tamm <steventamm@mac.com>
14008
14009 * macterm.c (make_mac_frame, make_mac_terminal_frame):
14010 Move setting of scroll bars from make_mac_frame to
14011 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
14012
14013 2004-01-26 Richard M. Stallman <rms@gnu.org>
14014
14015 * search.c (Freplace_match): Handle nonexistent
14016 back-references properly.
14017
14018 2004-01-03 Richard M. Stallman <rms@gnu.org>
14019
14020 * window.c (decode_any_window): New function.
14021 (Fwindow_height, Fwindow_width, Fwindow_edges)
14022 (Fwindow_pixel_edges, Fwindow_inside_edges)
14023 (Fwindow_inside_pixel_edges): Use decode_any_window.
14024
14025 2004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14026
14027 * process.h: synch_process_termsig new variable.
14028
14029 * callproc.c: Define synch_process_termsig.
14030 (Fcall_process): Initiate synch_process_termsig to zero and
14031 check if non-zero and get signal name after subprocess has ended.
14032
14033 * process.c (sigchld_handler): Set synch_process_termsig
14034 if terminated by a signal. synch_process_death setting removed.
14035
14036 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
14037
14038 2004-01-26 Andreas Schwab <schwab@suse.de>
14039
14040 * print.c (print_preprocess): Declare size as EMACS_INT to not
14041 lose bits.
14042 (print_object): Likewise.
14043 * alloc.c (Fpurecopy): Likewise.
14044
14045 2004-01-25 Luc Teirlinck <teirllm@auburn.edu>
14046
14047 * window.c (Fwindow_minibuffer_p): Doc fix.
14048
14049 2004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
14050
14051 * editfns.c (Fformat): Make both passes accept the same set of flags.
14052
14053 2004-01-23 Kenichi Handa <handa@m17n.org>
14054
14055 * fns.c (Fmd5): If OBJECT is a buffer different from the current
14056 one, set buffer to OBJECT temporarily.
14057
14058 2004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
14059
14060 * keyboard.c (kbd_buffer_gcpro): Remove.
14061 (kbd_buffer_store_event, clear_event, Fdiscard_input)
14062 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
14063 Don't initialize and/or maintain the variable any more. It was made
14064 redundant by my commit of 2003-06-15.
14065
14066 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
14067
14068 2004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14069
14070 * lisp.h: Add undef DECL_ALIGN.
14071
14072 2004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
14073
14074 * process.c (wait_reading_process_input) [SYNC_INPUT]:
14075 Check interrupt_input_pending explicitly.
14076
14077 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
14078
14079 * keyboard.c (handle_async_input): New fun,
14080 extracted from input_available_signal.
14081 (input_available_signal, reinvoke_input_signal): Use it.
14082
14083 2004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
14084
14085 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
14086
14087 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
14088 manipulation macros for when tags are in the lower bits.
14089 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
14090 (DECL_ALIGN): New macro.
14091 (DEFUN): Use it.
14092
14093 * lisp.h [ENABLE_CHECKING]: Don't force union type.
14094
14095 * s/darwin.h (__attribute__): Remove outdated workaround.
14096
14097 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
14098
14099 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
14100 Don't check range of malloc address.
14101 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
14102
14103 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
14104
14105 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
14106
14107 2004-01-19 Kenichi Handa <handa@m17n.org>
14108
14109 * fontset.c (fontset_font_pattern): Fix previous change.
14110
14111 2004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
14112
14113 * xdisp.c (Voverflow_newline_into_fringe)
14114 (move_it_in_display_line_to, redisplay_internal)
14115 (update_window_fringes, redisplay_window, display_line, window):
14116 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
14117 that it compiles without a window-system.
14118 * dispnew.c (direct_output_for_insert, update_window): Likewise.
14119
14120 2004-01-16 Kim F. Storm <storm@cua.dk>
14121
14122 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
14123
14124 * buffer.c (init_buffer_once): Set buffer_defaults and
14125 buffer_local_flags for indicate_buffer_boundaries.
14126 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
14127 default- variable for it.
14128
14129 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
14130 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
14131 New members exact_window_width_line_p and cursor_in_fringe_p for
14132 overflowing newlines into right fringe.
14133 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
14134 and indicate_bottom_line_p for buffer boundaries and scrolling.
14135 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
14136 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
14137 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
14138 and HOLLOW_SQUARE_BITMAP.
14139 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
14140 Add prototypes.
14141
14142 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
14143 instead of related indicator fields.
14144 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
14145 (direct_output_for_insert): Handle exact width lines like
14146 contined lines. Call update_window_fringes.
14147 (update_window): Call update_window_fringes.
14148 (scrolling_window): Don't skip desired rows with changed bitmaps.
14149 Check if fringe bitmaps changes when assigning scrolled rows.
14150
14151 * xdisp.c (Voverflow_newline_into_fringe): New variable.
14152 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
14153 (move_it_in_display_line_to): Overflow newline into fringe for
14154 rows that are exactly as wide as the window.
14155 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
14156 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
14157 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
14158 (fringe_bitmaps): Add new bitmaps.
14159 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
14160 Select proper bitmap for cursor in fringe when appropriate.
14161 Handle alignment of bitmap to top or bottom of row.
14162 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
14163 done by update_window_fringes.
14164 (update_window_fringes, draw_window_fringes): New functions.
14165 (redisplay_internal): Call update_window_fringes in case only
14166 cursor row is updated.
14167 (redisplay_window): Call update_window_fringes.
14168 Explicitly call draw_window_fringes if redisplay was done using
14169 the current matrix or the overlay arrow is in the window.
14170 (try_window_reusing_current_matrix): Mark scrolled rows for
14171 fringe update (to update buffer-boundaries / scrolling icons).
14172 (find_last_unchanged_at_beg_row): Handle exact width lines line
14173 continued lines.
14174 (display_line): Overflow newline into fringe for rows that are
14175 exactly as wide as the window. Don't append space for newline
14176 in this case.
14177 (notice_overwritten_cursor): Explicitly clear cursor bitmap
14178 in fringe as if it had been overwritten.
14179 (erase_phys_cursor): Erase cursor bitmap in fringe.
14180 (syms_of_xdisp): Mark show-trailing-whitespace and
14181 void-text-area-pointer as user options.
14182 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
14183
14184 * xterm.c (x_update_window_end): Call draw_window_fringes.
14185 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
14186 in row instead of actually drawing fringe bitmaps.
14187 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
14188 (x_draw_window_cursor): Draw cursor in fringe.
14189
14190 * w32term.c (x_update_window_end): Call draw_window_fringes.
14191 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
14192 in row instead of actually drawing fringe bitmaps.
14193 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
14194 (w32_draw_window_cursor): Draw cursor in fringe.
14195
14196 * macterm.c (x_update_window_end): Call draw_window_fringes.
14197 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
14198 in row instead of actually drawing fringe bitmaps.
14199 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
14200 (mac_draw_window_cursor): Draw cursor in fringe.
14201
14202 2004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14203
14204 * xterm.c (handle_one_xevent): Don't handle characters that are part
14205 of an old style (XLookupString) compose sequence.
14206
14207 2004-01-15 Kenichi Handa <handa@m17n.org>
14208
14209 * search.c (Freplace_match): Use make_multibyte_string or
14210 make_unibyte_string according to the buffer multibyteness.
14211
14212 2004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
14213
14214 * alloc.c (struct interval_block, struct string_block)
14215 (struct symbol_block, struct marker_block, live_string_p)
14216 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
14217 Better preserve alignment for objects in blocks.
14218 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
14219
14220 * lread.c (defvar_per_buffer): Remove dead declaration.
14221
14222 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
14223 space size.
14224
14225 2004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14226
14227 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
14228 if a key press should pop down. Only pop down if a key is pressed
14229 outside the menu/dialog.
14230 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
14231 popup_get_selection.
14232 (create_and_show_dialog): Pass 1 for down_on_keypress to
14233 popup_get_selection.
14234
14235 2004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14236
14237 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
14238 BLOCK/UNBLOCK_INPUT.
14239
14240 2004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14241
14242 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
14243 specified.
14244
14245 2004-01-08 Kenichi Handa <handa@m17n.org>
14246
14247 * editfns.c (Fformat): Fix '&' to '&&'.
14248
14249 2004-01-08 Andreas Schwab <schwab@suse.de>
14250
14251 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
14252 size if PSEUDOVECTOR_FLAG is set.
14253
14254 2004-01-07 Kenichi Handa <handa@m17n.org>
14255
14256 * charset.c (Fdeclare_equiv_charset): Fix docstring.
14257
14258 * fontset.c (fontset_ref_via_base): Fix previous change.
14259
14260 2004-01-07 Kim F. Storm <storm@cua.dk>
14261
14262 * process.c (read_process_output): Only activate adaptive
14263 buffering if we read less than 256 bytes at a time.
14264
14265 2004-01-06 Kim F. Storm <storm@cua.dk>
14266
14267 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
14268 object and image object. Return glyph width and height.
14269 (mode_line_string, marginal_area_string): Ditto.
14270
14271 * dispextern.h (buffer_posn_from_coords, mode_line_string)
14272 (marginal_area_string): Fix prototypes.
14273
14274 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
14275 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
14276 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
14277
14278 * keyboard.c (make_lispy_position): Use modified mode_line_string,
14279 buffer_posn_from_coords, and marginal_area_string functions to
14280 include both string object and image object in the lispy position.
14281 Also add actual glyph width and height to position.
14282 (read_key_sequence): Use real buffer position from mouse
14283 event to find keymap property even when click is in marginal area.
14284
14285 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
14286 mode_line_string and marginal_area_string functions to handle
14287 both string object and image object properties.
14288
14289 2004-01-06 Andreas Schwab <schwab@suse.de>
14290
14291 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
14292 character.
14293
14294 2004-01-02 Andreas Schwab <schwab@suse.de>
14295
14296 * macterm.c (emacs_options, x_initialized, same_x_server):
14297 Remove unused (and duplicated) definitions.
14298
14299 2004-01-02 Kim F. Storm <storm@cua.dk>
14300
14301 * process.h (struct Lisp_Process): New members for adaptive read
14302 buffering: adaptive_read_buffering, read_output_delay, and
14303 read_output_skip.
14304
14305 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
14306 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
14307 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
14308 (process_output_delay_count, process_output_skip): New vars.
14309 (Vprocess_adaptive_read_buffering): New variable.
14310 (make_process): Initialize adaptive read buffering members.
14311 (Fstart_process): Set adaptive_read_buffering member.
14312 (deactivate_process): Cleanup adaptive read buffering.
14313 (wait_reading_process_input): Temporarily omit delayed
14314 subprocesses from the set of file descriptors to read from;
14315 adjust the select timeout if we skipped any subprocesses.
14316 (read_process_output): Increase adaptive read buffering delay if
14317 we read less than a full buffer; reduce delay when we read a
14318 full buffer.
14319 (send_process): Simplify using local Lisp_Process var.
14320 Reset adaptive read buffering delay after write.
14321 (init_process): Initialize process_output_delay_count and
14322 process_output_skip.
14323 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
14324
14325 2004-01-01 Jason Rumney <jasonr@gnu.org>
14326
14327 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
14328
14329 2003-12-30 Luc Teirlinck <teirllm@auburn.edu>
14330
14331 * print.c (Ferror_message_string): Add hyperlink in the docstring
14332 to the definition of `signal' in the Elisp manual.
14333 * eval.c (Fsignal): Ditto.
14334
14335 2003-12-29 James Clark <jjc@jclark.com>
14336
14337 * fns.c (internal_equal): Return t for two NaN arguments.
14338
14339 2003-12-29 Richard M. Stallman <rms@gnu.org>
14340
14341 * data.c (store_symval_forwarding): Handle setting
14342 default-fill-column, etc., by changing the value in
14343 buffers that use the default.
14344
14345 * minibuf.c (Fset_minibuffer_window): Doc fix.
14346
14347 * fileio.c (choose_write_coding_system): Ignore auto_saving
14348 if using the visited file for auto saves.
14349 (Fwrite_region): Don't update SAVE_MODIFF
14350 if auto-saving in visited file.
14351
14352 2003-12-29 Kenichi Handa <handa@m17n.org>
14353
14354 * dispextern.h (face_font_available_p): Extern it.
14355
14356 * fontset.c (Voverriding_fontspec_alist): New variable.
14357 (lookup_overriding_fontspec): New function.
14358 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
14359 (fontset_font_pattern): Likewise.
14360 (regulalize_fontname): New function.
14361 (Fset_fontset_font): Call regulalize_fontname.
14362 (Fset_overriding_fontspec_internal): New function.
14363 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
14364 Defsubr Sset_overriding_fontspec_internal.
14365
14366 * xfaces.c (face_font_available_p): New function.
14367
14368 2003-12-28 Richard M. Stallman <rms@gnu.org>
14369
14370 * buffer.c (Fother_buffer): Don't crash if BUF is nil
14371 or if its name is nil.
14372
14373 * buffer.c (Fkill_buffer): Don't delete auto-save file
14374 if it's the same as the visited file.
14375
14376 2003-12-28 Luc Teirlinck <teirllm@auburn.edu>
14377
14378 * coding.c (Fcheck_coding_system): Doc fix.
14379
14380 2003-12-28 Kim F. Storm <storm@cua.dk>
14381
14382 * Makefile.in (eval.o): Depend on dispextern.h.
14383
14384 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
14385 image glyph using image's ascent.
14386 (mode_line_string): Return image glyph as object clicked on.
14387 Adjust y0 for image glyph using image's ascent.
14388
14389 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
14390 (struct glyph): New members, ascent and descent. Used to save
14391 this glyph's ascent and descent, instead of having.
14392 (struct glyph): Declare member face_id using FACE_ID_BITS.
14393 (find_hot_spot): Add prototype.
14394
14395 * keyboard.c (Qimage): Remove extern (now in lisp.h).
14396 (QCmap): Declare extern.
14397 (make_lispy_position): When position is inside image hot-spot,
14398 use hot-spot element's id as posn element.
14399
14400 * lisp.h (IMAGEP): New macro to test for image object type.
14401 (Qimage): Declare extern.
14402
14403 * macfns.c (Qimage): Remove extern (now in lisp.h).
14404 (valid_image_p, parse_image_spec): Use IMAGEP macro.
14405
14406 * macterm.c (Qface, Qmouse_face): Remove unused externs.
14407
14408 * w32fns.c (Qimage): Remove extern (now in lisp.h).
14409 (valid_image_p, parse_image_spec): Use IMAGEP macro.
14410
14411 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
14412
14413 * w32term.c (Qface, Qmouse_face): Remove unused externs.
14414
14415 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
14416 pointer types.
14417 (Qrelative_width, Qalign_to): Remove unused variables.
14418 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
14419 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for image
14420 maps.
14421 (x_y_to_hpos_vpos): Return glyph relative coordinates through new
14422 dx and dy args. Remove buffer_only_p arg (always 0). Simplify
14423 code accordingly.
14424 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
14425 than row's ascent and height, to get sensible height on tall rows.
14426 (build_desired_tool_bar_string): Remove Qimage extern.
14427 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
14428 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
14429 image glyph is alone on the last line.
14430 (append_glyph, append_composite_glyph, produce_image_glyph)
14431 (append_stretch_glyph): Set glyph's ascent and descent.
14432 (on_hot_spot_p): New function to check if position is inside an
14433 rectangular, circular, or polygon-shaped image hot-spot,
14434 (find_hot_spot): New function to search for image hot-spot.
14435 (Flookup_image_map): New defun to search for image hot-spot.
14436 (define_frame_cursor1): New aux function to determine frame
14437 pointer.
14438 (note_mode_line_or_margin_highlight, note_mouse_highlight): Handle
14439 `pointer' text property and :pointer image property to control
14440 frame pointer shape. Detect image hot-spots for pointer and
14441 help_echo properties. Use define_frame_cursor1.
14442 (note_mouse_highlight): Use Vvoid_text_area_pointer.
14443 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new
14444 variables. DEFVAR_LISP Vvoid_text_area_pointer instead of
14445 Vshow_text_cursor_in_void.
14446
14447 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
14448
14449 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
14450 (Qimage): Remove extern (now in lisp.h).
14451 (valid_image_p, parse_image_spec): Use IMAGEP macro.
14452
14453 * xmenu.c (show_help_event): Remove unused code.
14454
14455 * xterm.c (Qface, Qmouse_face): Remove unused externs.
14456 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
14457 row's ascent and descent, to get a sensible height on tall rows.
14458
14459 2003-12-25 Luc Teirlinck <teirllm@auburn.edu>
14460
14461 * minibuf.c (Fcompleting_read): Undo previous change.
14462
14463 2003-12-25 Lars Hansen <larsh@math.ku.dk>
14464
14465 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
14466 Arguments GCPRO'ed in call to file name handler.
14467
14468 2003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
14469
14470 * termcap.c (tgetst1): Scan for "%pN"; if all
14471 N are continuous in [1,9], remove all "%pN".
14472
14473 2003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14474
14475 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
14476
14477 * xfaces.c (lface_fully_specified_p): Take into account that
14478 MAC OS always have unspecified stipple.
14479
14480 2003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
14481
14482 * tparam.c (tparam1): Add handling for `%pN', which
14483 means use param N for the next substitution.
14484
14485 2003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
14486
14487 * xfaces.c (Fcolor_gray_p): Fix omission bug:
14488 In case `frame' is nil, consult the selected frame.
14489 (Fcolor_supported_p): Likewise.
14490
14491 2003-12-23 Luc Teirlinck <teirllm@auburn.edu>
14492
14493 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
14494 Doc fixes.
14495
14496 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
14497 and an integer. Adapt the introductory comment accordingly.
14498 (Fread_from_minibuffer): Delete code moved into read_minibuf.
14499 Doc fix.
14500 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
14501 read_minibuf.
14502 (Fcompleting_read): Delete code moved into read_minibuf.
14503 (Ftest_completion): Make it handle obarrays and hash tables correctly.
14504
14505 2003-12-03 Kenichi Handa <handa@m17n.org>
14506
14507 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
14508 encoding sequence.
14509
14510 2003-12-01 Kenichi Handa <handa@m17n.org>
14511
14512 * composite.c (syms_of_composite): Don't make the compostion hash
14513 table week.
14514
14515 2003-11-30 Luc Teirlinck <teirllm@auburn.edu>
14516
14517 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
14518 * textprop.c (Fget_char_property_and_overlay): New function.
14519 (syms_of_textprop): Defsubr it.
14520
14521 2003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14522
14523 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
14524 to compile on terminal configuration.
14525
14526 * fileio.c (Fread_file_name): Check use_file_dialog also before
14527 calling Fx_file_dialog.
14528
14529 * fns.c (use_file_dialog): New variable.
14530 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
14531
14532 2003-11-29 Kim F. Storm <storm@cua.dk>
14533
14534 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
14535 (syms_of_msdos): Don't intern and staticpro them.
14536
14537 2003-11-27 Kim F. Storm <storm@cua.dk>
14538
14539 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
14540 coordinates relative to glyph at posn. If glyph is an image,
14541 return that as object at posn. Callers changed.
14542 (mode_line_string, marginal_area_string): Calculate and return
14543 pixel coordinates relative to glyph. Callers changed.
14544
14545 * dispextern.h (buffer_posn_from_coords, mode_line_string)
14546 (marginal_area_string): Fix prototypes.
14547 (window_box_left_offset, window_box_right_offset): Add prototypes.
14548
14549 * frame.h (get_specified_cursor_type, get_window_cursor_type):
14550 Remove prototypes.
14551
14552 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
14553
14554 * keyboard.c (make_lispy_position): Add x and y coordinates
14555 relative to the current glyph as 7th element of position.
14556 If glyph is an image, return it in the object element.
14557 (read_key_sequence): Skip checks for keymap property in cases
14558 where POSN_STRING is not a string (e.g. an image).
14559
14560 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
14561 (Vshow_text_cursor_in_void): New variable.
14562 (glyph_to_pixel_coords): Don't use negative hpos.
14563 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
14564 (append_stretch_glyph): Change ascent arg to be actual value
14565 in pixels rather than ratio to height. Callers changed.
14566 (calc_pixel_width_or_height): New aux function, implementing
14567 pixel based artihmetic for glyph widths and heights.
14568 (produce_stretch_glyph): Use calc_pixel_width_or_height for
14569 :width, :height, :align-to, and :ascent, thus allowing these to
14570 be specified in pixels as well as multiples of characters.
14571 Don't produce stretch glyphs with zero width or height.
14572 (get_specified_cursor_type): Declare static.
14573 (get_window_cursor_type): Declare static. Add glyph arg to be
14574 able to know when cursor is on an image; always substitute
14575 hollow-box cursor for filled-box cursor on images, to avoid
14576 negative images and flicker when blinking the cursor.
14577 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
14578 (note_mode_line_or_margin_highlight): Use non-text cursor rather
14579 than vertical scroll-bar cursor in display margins.
14580 (note_mouse_highlight): Use non-text cursor rather than text
14581 cursor in fringes and over images in the text area.
14582 Use non-text cursor when mouse pointer is outside editable text,
14583 i.e. in the void after end-of-line or end-of-buffer; this was
14584 already done for W32, but is now standard for all systems --
14585 user can toggle show-text-cursor-in-void to get old behaviour.
14586 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
14587 Vdisplay_pixels_per_inch.
14588
14589 2003-11-25 Andreas Schwab <schwab@suse.de>
14590
14591 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
14592 EMACS_INT to not lose bits.
14593 (Ffillarray): Don't set bits beyond the size of a bool vector.
14594
14595 2003-11-25 Kim F. Storm <storm@cua.dk>
14596
14597 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
14598 define this defun on systems that cannot use stderr as lvalue.
14599
14600 2003-11-24 Gerd Moellmann <gerd@gnu.org>
14601
14602 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
14603 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
14604 ld's default is incompatible with unexec.
14605
14606 2003-11-23 Kim F. Storm <storm@cua.dk>
14607
14608 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
14609 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
14610 (Fforce_window_update): New defun.
14611 (syms_of_window): Defsubr it.
14612 (Fset_window_margins, Fset_window_fringes): Doc fix.
14613
14614 * print.c (Fredirect_debugging_output): New defun.
14615 (syms_of_print): Defsubr it.
14616
14617 2003-11-22 Luc Teirlinck <teirllm@auburn.edu>
14618
14619 * fns.c (Fset_char_table_parent): Doc fix.
14620
14621 2003-11-22 Kim F. Storm <storm@cua.dk>
14622
14623 * dispnew.c (buffer_posn_from_coords): Return actual row/column
14624 for glyph clicked on, rather than (unused) pixel positions.
14625 (mode_line_string, marginal_area_string): Change X and Y args to
14626 pointers for returning actual row/column for glyph clicked on.
14627 Simplify and optimize loops.
14628
14629 * dispextern.h (mode_line_string, marginal_area_string):
14630 Update prototypes.
14631
14632 * keyboard.c (make_lispy_position): New function for generating
14633 mouse click positions from frame and pixel coordinates.
14634 Enhanced to return buffer position and actual row/column for
14635 events outside the text area using updated mode_line_string and
14636 marginal_area_string functions.
14637 Return left-fringe and right-fringe clicks as such, rather than
14638 clicks in text area.
14639 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
14640 pixel_to_glyph_coords, as we never use the results.
14641 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
14642 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
14643 Eliminate unused code in WHEEL_EVENT handling.
14644 (make_lispy_movement): Use make_lispy_position.
14645
14646 * window.c (coordinates_in_window): Remove redundant tests.
14647 Fix returned X pixel value for left-margin.
14648
14649 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
14650 mode_line_string and marginal_area_string parameters.
14651
14652 2003-11-22 Lars Hansen <larsh@math.ku.dk>
14653
14654 * w32.c (struct the_group, getgrgid): Add.
14655 * mac.c (struct my_group, getgrgid): Add.
14656
14657 2003-11-21 Luc Teirlinck <teirllm@auburn.edu>
14658
14659 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
14660
14661 2003-11-21 Lars Hansen <larsh@math.ku.dk>
14662
14663 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
14664 include in call to file name handler. Optionally translate numeric
14665 UID and GID to strings. Update docstring.
14666 (directory_files_internal): Add parameter ID-FORMAT.
14667 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
14668 include in call to file name handler and call to
14669 directory_files_internal. Update Docstring.
14670 (Fdirectory_files): Add dummy parameter in call to
14671 directory_files_internal.
14672 * lisp.h (Qinteger): Add.
14673 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
14674 (Ffile_attributes): Add parameter.
14675 * data.c (Qinteger): Export.
14676
14677 2003-11-21 Luc Teirlinck <teirllm@auburn.edu>
14678
14679 * fns.c (Freverse, Fnreverse): Doc fixes.
14680
14681 2003-11-19 Kim F. Storm <storm@cua.dk>
14682
14683 * xdisp.c (init_iterator): Initialize it->start to position
14684 before reseating (in case start position is invisible).
14685 (init_to_row_start): Set it->start to row-start.
14686 (redisplay_window): Accept optional_new_start if start position
14687 is invisible (in which case IT_CHARPOS overshoots PT).
14688 (display_line): Setup row->start from it->start (rather than
14689 it->current which is wrong if first char on line is invisible).
14690 When done, reseat it->start to it->current (= start of next row).
14691 (expose_area): Fix exposure of text area when first char (e.g. TAB)
14692 is only partially visible.
14693
14694 * dispextern.h (struct it): New member start.
14695
14696 2003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
14697
14698 * alloc.c (make_float, Fcons): Clear the markbit at init time.
14699 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
14700 of block_index outside of the macro call.
14701 (Fgarbage_collect): Remove null code.
14702
14703 * m/amdx86-64.h: Don't redefine XPNTR.
14704
14705 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
14706 of VALMASK.
14707
14708 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
14709 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
14710 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
14711
14712 * lisp.h (VALMASK): Only define for non-union type.
14713 (MARKBIT): Remove.
14714 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
14715 (XTYPE): Define unconditionally.
14716 (XSETTYPE): Remove one more remnant.
14717 (EQ): Define differently for the union and non-union cases.
14718 (INTMASK): New bit mask.
14719 (struct Lisp_Marker): Move down to prepare for upcoming patch.
14720 (GC_EQ): Delegate to EQ.
14721
14722 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
14723
14724 2003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14725
14726 * xterm.c (x_window_to_scroll_bar): Move check of display to
14727 where window_id is compared.
14728
14729 2003-11-17 Kim F. Storm <storm@cua.dk>
14730
14731 * dispextern.h (struct it): New member first_vpos.
14732
14733 * xdisp.c (start_display): Set it->first_vpos.
14734 (try_window_id): Use first_vpos to start display in first _text_
14735 line if no reusable lines at start of window with header line.
14736
14737 2003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14738
14739 * w32fns.c (XPutPixel):
14740 * w32bdf.c (w32_init_bdf_font):
14741 * sunfns.c (sel_read):
14742 * process.c (Fmake_network_process):
14743 * frame.c (store_frame_param):
14744 * fontset.c (Fset_fontset_font):
14745 * emacs.c (shut_down_emacs):
14746 * ccl.c (ccl_driver): Remove period at end of error message.
14747
14748 * config.in: Regenerate.
14749
14750 * xfns.c (x_window_to_frame, x_any_window_to_frame)
14751 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
14752 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
14753 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
14754 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
14755
14756 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
14757
14758 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
14759 (XTmouse_position, handle_one_xevent): Pass Display* to
14760 x_window_to_scroll_bar.
14761 (x_window_to_scroll_bar): Take a Display* argument.
14762 Check that display for frame is equal to Display* argument.
14763 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
14764 x_display_info_for_display instead. Use Display in xev instead
14765 of GDK_DISPLAY.
14766 (x_dispatch_event): Call x_display_info_for_display.
14767 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
14768 (x_connection_closed): Call xg_display_close for GTK.
14769 (x_term_init): Call xg_display_open for additional displays.
14770 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
14771 for GTK.
14772
14773 * xmenu.c (single_menu_item, mouse_position_for_popup)
14774 (x_activate_menubar): Formatting adjustments.
14775
14776 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
14777 adjustments.
14778
14779 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
14780 (xg_display_close, xg_create_default_cursor)
14781 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
14782 handling.
14783 (xg_left_ptr_cursor): Remove.
14784 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
14785 cursor here.
14786 (xg_win_to_widget): Take Display* argument, call
14787 gdk_xid_table_lookup_for_display.
14788 (xg_create_frame_widgets, xg_get_file_name, create_menus)
14789 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
14790 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
14791 in FRAME_X_DISPLAY_INFO.
14792 (xg_get_scroll_id_for_window): Take Display* argument.
14793 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
14794 (xg_initialize): Remove xg_left_ptr_cursor.
14795
14796 * gtkutil.h (xg_get_scroll_id_for_window, xg_win_to_widget): Add
14797 Display* argument.
14798 (xg_display_open, xg_display_close, xg_create_default_cursor): Declare.
14799
14800 2003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14801
14802 * xterm.c (x_detect_focus_change): Do not change focus frame for
14803 Enter/LeaveNotify if the current focus frame has explicit focus.
14804
14805 2003-11-14 Kim F. Storm <storm@cua.dk>
14806
14807 * dispnew.c (update_text_area): Fix redisplay error when hscroll
14808 is active and first glyph is only partially visible.
14809
14810 2003-11-13 Kenichi Handa <handa@m17n.org>
14811
14812 * xdisp.c (select_frame_for_redisplay): New function.
14813 (redisplay_internal): Record also selected_frame for
14814 unwind_redisplay. Call select_frame_for_redisplay before
14815 redrawing each frame.
14816 (unwind_redisplay): Argument changed to a cons.
14817
14818 2003-11-12 Luc Teirlinck <teirllm@auburn.edu>
14819
14820 * fns.c (Fstring_to_multibyte): Doc fix.
14821
14822 2003-11-11 Kenichi Handa <handa@m17n.org>
14823
14824 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
14825
14826 2003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14827
14828 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
14829 program specified positions.
14830
14831 2003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14832
14833 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
14834
14835 2003-11-08 Kenichi Handa <handa@m17n.org>
14836
14837 * Makefile.in (lisp): Add kannada.el.
14838 (shortlisp): Likewise.
14839
14840 2003-11-07 Kenichi Handa <handa@m17n.org>
14841
14842 * coding.c (coding_allocate_composition_data):
14843 Reset coding->composing to COMPOSITION_NO.
14844 (coding_restore_composition): Detect invalid composition data.
14845 Give Fstring and Fvector a Lispy integer, not C int.
14846
14847 2003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
14848
14849 * floatfns.c (Flogb): Don't use VALMASK.
14850
14851 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
14852 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
14853
14854 * lisp.h (XINT): Move the cast to clarify what is going on.
14855 (GCTYPEMASK, XSETTYPE): Remove.
14856 (XGCTYPE): Make it an alias of XTYPE.
14857
14858 2003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14859
14860 * xterm.c (x_term_init): Fix formatting.
14861
14862 2003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14863
14864 * gtkutil.h (xg_have_tear_offs): Declare.
14865 (xg_keep_popup, xg_did_tearoff): Remove.
14866
14867 * gtkutil.c: Remove variable xg_did_tearoff.
14868 (xg_have_tear_offs): New function.
14869 (tearoff_remove): Just decrease xg_detached_menus.
14870 (tearoff_activate): Increase xg_detached_menus and call
14871 tearoff_remove when tearoff is removed.
14872 (xg_keep_popup): Remove function.
14873 (create_menus): Give add_tearoff_p as argument to recursive
14874 call to create_menus.
14875 (xg_create_widget): Use variables instead of multiple
14876 strcmp. Tell create_menus to create tear off only for
14877 menu bar menus.
14878 (xg_update_menubar): Change title for a detached menu also.
14879 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
14880 of deep_p.
14881 (xg_initialize): Initialize xg_detached_menus, remove
14882 initialization of xg_did_tearoff.
14883
14884 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
14885 xg_have_tear_offs returns non-zero.
14886 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
14887 call to xg_keep_popup.
14888
14889 2003-11-01 Andrew Choi <akochoi@shaw.ca>
14890
14891 * macterm.c (XTread_socket): Handle menubar selection and grow
14892 window only for mouseDown events.
14893
14894 2003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14895
14896 * xterm.c (x_term_init): For GTK part, increase x_initialized
14897 to check for more than one display. Use error instead of return 0.
14898
14899 2003-10-31 Andrew Choi <akochoi@shaw.ca>
14900
14901 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
14902 (copy_dysymtab): Call it.
14903
14904 2003-10-31 Luc Teirlinck <teirllm@auburn.edu>
14905
14906 * eval.c (Fdefvaralias): Doc fix.
14907
14908 2003-10-26 Luc Teirlinck <teirllm@auburn.edu>
14909
14910 * data.c (Fsetplist): Doc fix.
14911
14912 2003-10-14 Lute Kamstra <lute@gnu.org>
14913
14914 * window.c (Fset_window_fringes): Clarify docstring.
14915
14916 2003-10-14 Kim F. Storm <storm@cua.dk>
14917
14918 * window.c (Fset_window_margins): Simplify arg checking.
14919
14920 2003-10-13 Richard M. Stallman <rms@gnu.org>
14921
14922 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
14923 (print_partial_compiled_pattern): Replace assert with a printout.
14924 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
14925
14926 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
14927
14928 * window.c (Fset_window_margins): Allow only integers as args.
14929 (syms_of_window) <special-display-buffer-names,
14930 special-display-regexps>: Doc fixes.
14931
14932 2003-10-13 Lute Kamstra <lute@gnu.org>
14933
14934 * window.c (Fset_window_fringes): Elaborate docstring.
14935
14936 2003-10-12 Andrew Choi <akochoi@shaw.ca>
14937
14938 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
14939
14940 * s/darwin.h (GC_MARK_STACK): Define.
14941
14942 2003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14943
14944 * window.c (shrink_windows): New function.
14945 (size_window): Call shrink_windows to calculate window sizes when
14946 shrinking frame with more than one window.
14947
14948 2003-10-12 Kim F. Storm <storm@cua.dk>
14949
14950 * xdisp.c (compute_fringe_widths): Doc fix.
14951
14952 2003-10-08 Kenichi Handa <handa@m17n.org>
14953
14954 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
14955
14956 2003-10-07 Kenichi Handa <handa@m17n.org>
14957
14958 * coding.c (Qcoding_system_define_form): New variable.
14959 (syms_of_coding): Intern and staticpro it.
14960 (Fcheck_coding_system): Try to autoload the definition of
14961 CODING-SYSTEM.
14962
14963 2003-10-05 Luc Teirlinck <teirllm@auburn.edu>
14964
14965 * fns.c (Frequire): Doc fix.
14966
14967 2003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14968
14969 * xfns.c (Fx_send_client_event): New function as a base for
14970 manipulating extended window manager hints.
14971 (Fx_send_client_event): Remove unused variable s.
14972
14973 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
14974 that function is removed.
14975
14976 * xterm.c (x_set_offset): Use move_offset_left/top instead of
14977 x/y_pixels_outer_diff.
14978 (x_check_expected_move): Calculate move_offset_left/top.
14979
14980 * xterm.h (struct x_output): New members: move_offset_top/left.
14981
14982 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
14983 call x_set_offset directly.
14984
14985 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
14986
14987 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
14988
14989 * xterm.c (x_delete_display): Free font names and font_encoder
14990 in dpyinfo->font_table.
14991
14992 * xfns.c (Fx_close_connection): Only call XFreeFont here.
14993 Move xfree of font names to x_delete_display.
14994
14995 * xterm.h (struct x_display_info): New member, wm_type.
14996 (struct x_output): New members, expected_top/left and
14997 check_expected_move.
14998
14999 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
15000 is received.
15001 (handle_one_xevent): Rename x_check_expected_move from
15002 x_check_fullscreen_move.
15003 (x_set_offset): Only add WM decoration sizes to modified_top/left
15004 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
15005 (x_check_expected_move): Rename from x_check_fullscreen_move.
15006 Removed fullscreen specific code. Use check_expected_move,
15007 expected_left/top instead. Also, set wm_type.
15008 (x_term_init): Initialize wm_type to unknown.
15009
15010 * frame.c (x_fullscreen_move): Remove addition of WM decoration
15011 sizes to move_x/y.
15012
15013 2003-10-03 Kenichi Handa <handa@m17n.org>
15014
15015 * macterm.c (x_load_font): Clear all members of FONTP before start
15016 filling them.
15017
15018 2003-10-02 Kenichi Handa <handa@m17n.org>
15019
15020 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
15021 before calling find_ccl_program_func. Call find_ccl_program_func
15022 only when fontp->font_encoder is not NULL.
15023
15024 * xterm.c (x_load_font): Clear all members of FONTP before start
15025 filling them.
15026
15027 2003-10-03 John Paul Wallington <jpw@gnu.org>
15028
15029 * keymap.c (map_keymap): Don't abort when binding is a vector.
15030
15031 2003-10-02 Jason Rumney <jasonr@gnu.org>
15032
15033 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
15034 Sync dependencies with Makefile.in.
15035 (alloca.o): Remove.
15036
15037 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
15038 filling them.
15039
15040 * w32bdf.c (w32_load_bdf_font): Likewise.
15041
15042 2003-09-30 Richard M. Stallman <rms@gnu.org>
15043
15044 * term.c (set_tty_color_mode): Calculate current_mode_spec
15045 regardless of value of VAL.
15046
15047 * intervals.c (graft_intervals_into_buffer):
15048 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
15049 Handle over_used when splitting UNDER.
15050
15051 2003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15052
15053 * regex.c (regex_compile): Free the stack when returning from function.
15054
15055 2003-09-28 Kenichi Handa <handa@m17n.org>
15056
15057 * fontset.c (Finternal_char_font): Change return value to
15058 cons (FONT-NAME . GLYPH-CODE).
15059
15060 2003-09-28 Eli Zaretskii <eliz@gnu.org>
15061
15062 * term.c (tty_setup_colors): Treat any negative argument as -1.
15063
15064 2003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
15065
15066 * process.c (send_process): Delete unused temp_buf.
15067
15068 2003-09-26 Dave Love <fx@gnu.org>
15069
15070 * xterm.c (x_bitmap_mask): Declare.
15071
15072 2003-09-25 Dave Love <fx@gnu.org>
15073
15074 * Makefile.in (fns.o): Depend on md5.h.
15075
15076 2003-09-25 Kim F. Storm <storm@cua.dk>
15077
15078 * window.c (set_window_buffer): Fix redisplay problems when
15079 switching between buffers with different display margin widths.
15080
15081 2003-09-23 Kim F. Storm <storm@cua.dk>
15082
15083 * process.c (set_socket_option): Fix :bindtodevice option.
15084 (Fset_network_process_option): Update process contact list when
15085 setting option succeeds.
15086 (Fmake_network_process): Doc fix.
15087
15088 2003-09-23 Dave Love <fx@gnu.org>
15089
15090 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
15091
15092 2003-09-22 Eli Zaretskii <eliz@gnu.org>
15093
15094 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
15095 color mode is an integer number (it could be -1).
15096
15097 2003-09-22 Richard M. Stallman <rms@gnu.org>
15098
15099 * intervals.c (graft_intervals_into_buffer): Correct the main loop
15100 in the case where OVER is longer than UNDER.
15101
15102 2003-09-22 Masatake YAMATO <jet@gyve.org>
15103
15104 * window.c (Fset_window_scroll_bars): Validate the value of
15105 `vertical_type'.
15106
15107 2003-09-21 Kim F. Storm <storm@cua.dk>
15108
15109 * frame.c (Vdefault_frame_scroll_bars): New variable.
15110 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
15111 (syms_of_frame): DEFVAR_LISP it, and initialize according to
15112 window-system default scroll bar position.
15113
15114 * window.c (Fwindow_scroll_bars): Doc fix.
15115
15116 2003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15117
15118 * xterm.c (x_set_offset): Take window manager decorations into account.
15119
15120 2003-09-19 Richard M. Stallman <rms@gnu.org>
15121
15122 * atimer.h: Don't include lisp.h.
15123 (P_): Define it here (as well as elsewhere).
15124
15125 * print.c (Fprin1_to_string): Move the PRINTPREPARE
15126 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
15127
15128 * data.c (Fvariable_binding_locus): New function.
15129 (syms_of_data): defsubr it.
15130 (Flocal_variable_p): Delete duplicate call to indirect_variable.
15131
15132 2003-09-18 Dave Love <fx@gnu.org>
15133
15134 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
15135
15136 * process.c (Fnetwork_interface_info): Fix type error.
15137 (Fnetwork_interface_list): Doc fix.
15138 (read_process_output, read_process_output): Delete unused var.
15139
15140 2003-09-17 Kim F. Storm <storm@cua.dk>
15141
15142 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
15143 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
15144 (Fnetwork_interface_info): Check that ifreq struct has required
15145 fields before accessing them; this requires that those fields are
15146 defined as macros, which may be too restrictive on some platforms,
15147 but it is better than failing on other platforms.
15148 (syms_of_process): Only defsubr above fns when included.
15149
15150 2003-09-17 Dave Love <fx@gnu.org>
15151
15152 * unexalpha.c: Don't include varargs.h.
15153
15154 2003-09-17 Kim F. Storm <storm@cua.dk>
15155
15156 * process.c (Fset_process_sentinel): Add sentinel to childp plist
15157 for network process.
15158 (socket_options): Add `:' prefix to option names. Add optbit field.
15159 (set_socket_option): Remove no_error arg and special handling of s < 0.
15160 Return 1<<optbit for known option, 0 for unknown.
15161 Do not interpret 0 as false for boolean option (only nil).
15162 Pass failed option and value to report_file_error.
15163 (Fset_network_process_options): Replace by Fset_network_process_option.
15164 (Fset_network_process_option): New function to set just one option.
15165 (Fmake_network_process): Allow :coding arg to be a cons.
15166 Allow :server arg to be an integer specifying backlog size.
15167 Remove :options arg, and allow options to be specified directly
15168 as :KEY, VALUE pairs. Parse these options before binding socket.
15169 As before, :reuseaddr t is default for a server process, but this
15170 can now be disabled by specifying :reuseaddr nil.
15171 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
15172 (init_process): Availability of network options is now checked with
15173 simpler syntax (featurep 'make-network-process :OPTION); use loop to
15174 setup features.
15175 (syms_of_process): Fix defsubr's for the replaced functions.
15176
15177 2003-09-16 Dave Love <fx@gnu.org>
15178
15179 * Makefile.in: Depend on coding.h.
15180
15181 2003-09-14 Kim F. Storm <storm@cua.dk>
15182
15183 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
15184 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
15185 (syms_of_process): Defsubr them.
15186
15187 * config.in: Regenerate.
15188
15189 2003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
15190
15191 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
15192 * m/news-r6.h (XUNMARK): Remove.
15193 * m/mips.h (XUNMARK): Remove.
15194 * m/mips-siemens.h (XUNMARK): Remove.
15195 * m/iris4d.h (XUNMARK): Remove.
15196 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
15197
15198 2003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
15199
15200 * lisp.h (VALBITS): Don't remove 1 for the markbit.
15201 (union Lisp_Object): Use unsigned int for types. Remove markbit.
15202 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
15203 (XTYPE): Use unsigned right-shift.
15204 (XMARKBIT, XMARK, XUNMARK): Remove.
15205
15206 * alloc.c (init_intervals, init_symbol, init_marker):
15207 Don't preallocate anything.
15208 (Fgarbage_collect, mark_object): Ignore the markbit.
15209
15210 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
15211
15212 2003-09-08 Lute Kamstra <lute@gnu.org>
15213
15214 * xdisp.c (pint2hrstr): New function.
15215 (decode_mode_spec): Add `%i' and `%I' specs.
15216 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
15217 for `mode-line-format'.
15218
15219 2003-09-07 Andreas Schwab <schwab@suse.de>
15220
15221 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
15222 avoid warning.
15223
15224 2003-09-07 Eli Zaretskii <eliz@gnu.org>
15225
15226 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
15227
15228 2003-09-03 Kim F. Storm <storm@cua.dk>
15229
15230 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
15231 change (superseded by 2002-08-30 change); the default blink-off
15232 cursor is now again "no cursor".
15233
15234 2003-09-01 Jason Rumney <jasonr@gnu.org>
15235
15236 * makefile.w32-in (alloca.o): Remove.
15237 (coding.o): Depend on intervals.h
15238 (emacs.o, bytecode.o): Depend on window.h
15239
15240 2003-09-01 Dave Love <fx@gnu.org>
15241
15242 * Makefile.in (alloca.o): Remove commands.
15243 (coding.o): Depend on intervals.h composite.h window.h.
15244 (emacs.o): Depend on window.h keyboard.h keymap.h.
15245 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
15246 (bytecode.o): Depend on window.h.
15247
15248 2003-08-31 Jason Rumney <jasonr@gnu.org>
15249
15250 * w32term.c (w32_per_char_metric): Allow cached metrics to be
15251 returned even when font_type is unknown.
15252
15253 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
15254
15255 2003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15256
15257 * xterm.c (x_term_init): Initialize new fields in x_display_info.
15258
15259 * xterm.h (struct x_display_info): Add red/green/blue_bits and
15260 *_offset.
15261
15262 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
15263 calculate pixel value.
15264
15265 2003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
15266
15267 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
15268 Don't tell redisplay display is accurate when it's actually been
15269 paused for pending input.
15270
15271 2003-08-29 Richard M. Stallman <rms@gnu.org>
15272
15273 * dispnew.c (adjust_glyph_matrix): Call window_box
15274 whenever W is nonzero.
15275
15276 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
15277 (Fkill_local_variable, Fmake_variable_frame_local)
15278 (Flocal_variable_p, Flocal_variable_if_set_p):
15279 Use indirect_variable to trace thru variable aliases.
15280
15281 * config.in: Updated.
15282
15283 * callint.c (Fcall_interactively): Save and restore
15284 Vthis_command, Vthis_original_command, real_this_command,
15285 and current_kboard->Vlast_command.
15286
15287 * abbrev.c (Fexpand_abbrev): Insert before deleting.
15288
15289 2003-08-29 Gerd Moellmann <gerd@gnu.org>
15290
15291 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
15292
15293 2003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
15294
15295 * coding.c (decode_coding_iso2022): Initialize local variable c2.
15296 (decode_coding_sjis_big5): Likewise.
15297
15298 2003-08-27 Jason Rumney <jasonr@gnu.org>
15299
15300 * w32.c (sys_pipe): Protect against file descriptor overflow.
15301
15302 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
15303
15304 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
15305
15306 2003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
15307
15308 * xfns.c (Vgtk_version_string): New variable.
15309 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
15310
15311 2003-08-24 Eli Zaretskii <eliz@gnu.org>
15312
15313 * term.c (term_init): Remove `const' from buffer_size's declaration.
15314
15315 * Makefile.in (msdos.o): Depend on intervals.h.
15316
15317 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
15318
15319 2003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15320
15321 * xterm.h (struct x_display_info): New fields: client_leader_window
15322 and Xatom_wm_client_leader.
15323
15324 * xterm.c (x_initialize): Move call to x_session_initialize to ...
15325 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
15326
15327 * xsmfns.c (create_client_leader_window): New function.
15328 (x_session_initialize): Call create_client_leader_window, take
15329 dpyinfo as argument.
15330
15331 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
15332
15333 * Makefile.in (xsmfns.o): Add more depenedencies.
15334
15335 2003-08-21 Dave Love <fx@gnu.org>
15336
15337 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
15338
15339 2003-08-21 Kenichi Handa <handa@m17n.org>
15340
15341 * term.c (term_init): Fix previous change; don't rely on the
15342 length of `buffer' if TERMINFO is defined.
15343
15344 2003-08-20 Dave Love <fx@gnu.org>
15345
15346 * atimer.h: Include lisp.h.
15347
15348 * lisp.h (EMACS_LISP_H): New.
15349 (popup_activated_flag): Don't declare.
15350
15351 * alloca.c: Some merging with gnulib. Change logic and doc
15352 concerning (x)malloc/(x)free -- no longer Emacs-specific.
15353 [DO_BLOCK_INPUT]: Don't include lisp.h.
15354 (xmalloc, xfree): Declare.
15355 (malloc): Don't declare.
15356
15357 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
15358 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
15359 atimer.h, blockinput.h.
15360
15361 * alloc.c (lisp_align_malloc): Change type of `aligned'.
15362
15363 * alloca.s: Remove.
15364
15365 2003-08-19 Gerd Moellmann <gerd@gnu.org>
15366
15367 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
15368 use -lncurses.
15369
15370 * term.c (term_init): Use a buffer of size 4096 for tgetent since
15371 FreeBSD returns something longer than 2044. Abort if the end of
15372 the buffer is overwritten.
15373
15374 2003-08-19 Miles Bader <miles@gnu.org>
15375
15376 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
15377
15378 2003-08-19 Gerd Moellmann <gerd@gnu.org>
15379
15380 * alloc.c (lisp_align_malloc): Check for memory full when
15381 allocating ablocks, which also avoids freeing a pointer into an
15382 ablocks structure.
15383
15384 * puresize.h (BASE_PURESIZE): Increase to 1100000.
15385
15386 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
15387
15388 2003-08-16 Richard M. Stallman <rms@gnu.org>
15389
15390 * editfns.c (Fencode_time): Doc fix.
15391
15392 2003-08-16 David Ponce <david@dponce.com>
15393
15394 * fileio.c (Fwrite_region): Fix conditional expression to issue
15395 the right message.
15396
15397 2003-08-16 Juri Linkov <juri@jurta.org>
15398
15399 * syntax.c (Fforward_word): Argument changed to optional.
15400 Set default value to 1.
15401
15402 2003-08-15 Kenichi Handa <handa@m17n.org>
15403
15404 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
15405 what autoscaled.
15406 (best_matching_font): Once we find a better scalable font, set
15407 non_scalable_has_exact_height_p to 1.
15408 (try_font_list): Call try_alternative_families to try any family
15409 with the given registry.
15410
15411 2003-08-09 Andreas Schwab <schwab@suse.de>
15412
15413 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
15414
15415 * print.c (print_string): Fix printing of multibyte string with
15416 nontrivial printcharfun.
15417
15418 2003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15419
15420 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
15421
15422 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
15423
15424 2003-07-31 Kenichi Handa <handa@m17n.org>
15425
15426 * process.c (read_process_output): Return the actually read bytes
15427 instead of the result of decoding.
15428
15429 2003-07-31 Kenichi Handa <handa@m17n.org>
15430
15431 * xterm.h (struct x_bitmap_record): New member have_mask.
15432
15433 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
15434 to 0.
15435 (x_create_bitmap_from_file): Likewise.
15436 (x_destroy_bitmap): Check have_mask member before freeing a mask.
15437 (x_destroy_all_bitmaps): Likewise.
15438 (x_create_bitmap_mask): Set have_mask member to 1.
15439
15440 2003-07-30 Richard M. Stallman <rms@gnu.org>
15441
15442 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
15443
15444 2003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15445
15446 * gtkutil.c (xg_mark_data): Update calls to mark_object.
15447
15448 2003-07-29 Richard M. Stallman <rms@gnu.org>
15449
15450 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
15451 Conditionalize XIM code on HAVE_XIM.
15452
15453 * fns.c (Fclear_string): New function.
15454 (syms_of_fns): defsubr it.
15455
15456 2003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
15457
15458 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
15459
15460 2003-07-22 Stefan Monnier <monnier@cs.yale.edu>
15461
15462 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
15463
15464 * buffer.c (delete_all_overlays): New function.
15465 * buffer.h (delete_all_overlays): Declare.
15466 * coding.c (run_pre_post_conversion_on_str):
15467 * print.c (temp_output_buffer_setup):
15468 * fileio.c (Finsert_file_contents):
15469 * minibuf.c (get_minibuffer): Use it.
15470
15471 2003-07-22 Andrew Choi <akochoi@shaw.ca>
15472
15473 * unexmacosx.c (unexec_regions_sort_compare):
15474 (unexec_regions_merge): New functions. Sort and merge unexec
15475 regions before dumping them.
15476
15477 2003-07-22 Dave Love <fx@gnu.org>
15478
15479 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
15480
15481 2003-07-21 Stefan Monnier <monnier@cs.yale.edu>
15482
15483 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
15484 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
15485 MARKBIT as the gcmarkbit for strings.
15486
15487 2003-07-21 Richard M. Stallman <rms@gnu.org>
15488
15489 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
15490
15491 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
15492 (syms_of_fns): Corresponding change.
15493
15494 * alloc.c (syms_of_alloc): Doc fixes.
15495
15496 2003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
15497
15498 * s/netbsd.h: Use -Wl syntax.
15499
15500 2003-07-17 Richard M. Stallman <rms@gnu.org>
15501
15502 * xterm.c (xim_initialize): Redo 6/24 change.
15503
15504 2003-07-15 Stefan Monnier <monnier@cs.yale.edu>
15505
15506 * buffer.c (copy_overlays): Use EMACS_INT for positions.
15507 (Fswitch_to_buffer): Don't signal an error when switching to the same
15508 buffer in a dedicated window.
15509
15510 * alloc.c: Use bitmaps for cons, as was done for floats.
15511 (init_float, init_cons): Let the normal code allocate the first block.
15512 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
15513 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
15514 New macros.
15515 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
15516 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
15517 (live_cons_p): Check the pointer is not past the `conses' array.
15518 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
15519 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
15520 (survives_gc_p): Use CONS_MARKED_P and simplify.
15521 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
15522
15523 2003-07-13 Paul Eggert <eggert@twinsun.com>
15524
15525 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
15526 puts it into BSS instead, at least on Solaris 8 and 9.
15527 This is a valid optimization, and it may occur on other platforms,
15528 so Emacs should not assume that initializing a static variable to
15529 zero puts it into data.
15530 * alloc.c (pure, staticvec):
15531 Initialize these arrays to nonzero, so that they're not
15532 put into BSS by that optimization.
15533
15534 2003-07-13 Stefan Monnier <monnier@cs.yale.edu>
15535
15536 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
15537 (lisp_align_malloc): Use posix_memalign is available.
15538 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
15539 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
15540 for consistency. Update users.
15541
15542 2003-07-13 Richard M. Stallman <rms@gnu.org>
15543
15544 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
15545
15546 2003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
15547
15548 * xterm.c (x_bitmap_icon, x_wm_set_icon_pixmap): Modify to add mask,
15549 and use the Gtk+ function gtk_window_icon_from_file if available.
15550
15551 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
15552 handle mask of bitmaps.
15553 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
15554 mask property.
15555 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
15556
15557 * xterm.h (xg_set_icon): New function.
15558
15559 2003-07-12 Paul Eggert <eggert@twinsun.com>
15560
15561 * unexelf.c (unexec): Consider a section to precede the .bss
15562 section if its addresses overlap that of .bss.
15563
15564 2003-07-12 Richard M. Stallman <rms@gnu.org>
15565
15566 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
15567
15568 * config.in (HAVE_CRTIN): Add #undef.
15569 (INLINE): Really inline only if OPTIMIZE is defined.
15570
15571 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
15572 END_FILES_1.
15573 (START_FILES_1, END_FILES_1): New macros (conditional).
15574 (LD_SWITCH_SYSTEM_TEMACS): Define.
15575
15576 * s/openbsd.h: Don't include bsd4-3.h.
15577 (TERMINFO): Define.
15578 (LIBS_TERMCAP): Define.
15579 (LD_SWITCH_SYSTEM): Define (two definitions).
15580
15581 * xfns.c: Include libpng/png.h instead of png.h.
15582
15583 2003-07-11 Andreas Schwab <schwab@suse.de>
15584
15585 * buffer.c (modify_overlay): Update prototype.
15586 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
15587 Likewise.
15588
15589 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
15590
15591 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
15592 (struct interval): Move to intervals.h.
15593 (struct Lisp_Marker): Use EMACS_INT for position info.
15594 (forward_point): Remove prototype of defunct function.
15595 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
15596 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
15597 (syms_of_textprop, set_text_properties): Remove prototypes that are
15598 already in intervals.h.
15599
15600 * intervals.h (struct interval): Move from lisp.h.
15601 Use EMACS_INT for position and size info.
15602
15603 * coding.c: Include intervals.h for Fset_text_properties.
15604
15605 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
15606 position and length information.
15607
15608 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
15609
15610 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
15611 position and length information.
15612
15613 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
15614
15615 Change overlays_after and overlays_before so the overlays themselves
15616 are linked into lists, rather than using cons cells. After all each
15617 Lisp_Misc already occupies 5 words, so we can add a `next' field to
15618 Lisp_Overlay for free and save up one cons cell per overlay (not
15619 to mention one indirection when traversing the list of overlay).
15620
15621 * lisp.h (struct Lisp_Overlay): New field `next'.
15622
15623 * buffer.h (struct buffer): Change overlays_before and overlays_after
15624 from Lisp lists of overlays to pointers to overlays.
15625
15626 * buffer.c (overlay_strings, recenter_overlay_lists):
15627 Fix typo in eassert in last commit.
15628 (unchain_overlay): New function.
15629 (add_overlay_mod_hooklist): Use AREF.
15630 (copy_overlays, reset_buffer, overlays_at, overlays_in)
15631 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
15632 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
15633 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
15634 (report_overlay_modification, evaporate_overlays, init_buffer_once):
15635 Adjust to new type of overlays_(before|after).
15636
15637 * alloc.c (mark_object): Mark the new `next' field of overlays.
15638 (mark_buffer): Manually mark the overlays_(after|before) fields.
15639
15640 * coding.c (run_pre_post_conversion_on_str):
15641 * editfns.c (overlays_around):
15642 * xdisp.c (load_overlay_strings):
15643 * fileio.c (Finsert_file_contents):
15644 * indent.c (current_column):
15645 * insdel.c (signal_before_change, signal_after_change):
15646 * intervals.c (set_point_both):
15647 * print.c (temp_output_buffer_setup): Use new type for
15648 overlays_(before|after).
15649
15650 2003-07-08 Stefan Monnier <monnier@cs.yale.edu>
15651
15652 * buffer.c (report_overlay_modification): Don't run hooks while
15653 traversing the list of overlays.
15654
15655 * buffer.h (struct buffer): Use an int for overlay_center.
15656 (overlays_at, evaporate_overlays, recenter_overlay_lists)
15657 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
15658
15659 * buffer.c (reset_buffer, recenter_overlay_lists)
15660 (adjust_overlays_for_insert, adjust_overlays_for_delete)
15661 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
15662 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
15663 (overlays_at, evaporate_overlays, recenter_overlay_lists)
15664 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
15665
15666 * xdisp.c (fast_find_position): Remove unused var.
15667
15668 * cmds.c (Qexpand_abbrev): New sym.
15669 (syms_of_cmds): Initialize it.
15670 (internal_self_insert): Use it to call expand-abbrev.
15671
15672 2003-07-09 Kim F. Storm <storm@cua.dk>
15673
15674 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
15675 was configured with --without-xim.
15676 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
15677
15678 2003-07-07 Richard M. Stallman <rms@gnu.org>
15679
15680 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
15681
15682 * alloc.c (Fgarbage_collect): Doc fix.
15683
15684 2003-07-07 Nozomu Ando <nand@mac.com>
15685
15686 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
15687
15688 2003-07-06 Stefan Monnier <monnier@cs.yale.edu>
15689
15690 * minibuf.c (read_minibuf): UNGCPRO before returning.
15691 (Ftry_completion, Fall_completions): Doc fix.
15692
15693 * alloc.c (live_float_p): Check that p is not past the `floats' array,
15694 now that `floats' is not the last element of the struct any more.
15695
15696 2003-07-06 Jason Rumney <jasonr@gnu.org>
15697
15698 * w32term.h (ClipboardSequence_Proc): New type.
15699
15700 * w32fns.c (clipboard_sequence_fn): New variable.
15701 (globals_of_w32fns): Initialize it.
15702
15703 * w32select.c (last_clipboard_sequence_number): New variable.
15704 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
15705 number if possible.
15706
15707 2003-07-06 Stefan Monnier <monnier@cs.yale.edu>
15708
15709 * m/amdx86-64.h (MARKBIT):
15710 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
15711 MARKBIT and ARRAY_MARK_FLAG any more.
15712
15713 * m/hp800.h (XSETMARKBIT):
15714 * m/sr2k.h (XSETMARKBIT):
15715 * lisp.h (XSETMARKBIT): Remove unused macro.
15716
15717 * lisp.h (mark_object): Change prototype.
15718
15719 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
15720 (last_marked): Change accordingly.
15721 (mark_interval, mark_maybe_object, mark_maybe_pointer)
15722 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
15723 (mark_buffer): Update calls to mark_object.
15724
15725 * bytecode.c (mark_byte_stack):
15726 * fns.c (sweep_weak_table):
15727 * keyboard.c (mark_kboards): Update calls to mark_object.
15728
15729 2003-07-06 Jason Rumney <jasonr@gnu.org>
15730
15731 * alloc.c (struct ablock): Only include padding when there is some.
15732
15733 2003-07-04 Stefan Monnier <monnier@cs.yale.edu>
15734
15735 * alloc.c (ALIGN): Add casts to simplify usage.
15736 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
15737 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
15738 (struct ablock, struct ablocks): New types.
15739 (free_ablock): New global var.
15740 (lisp_align_malloc, lisp_align_free): New functions.
15741 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
15742 (struct float_block): Reorder and add gcmarkbits.
15743 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
15744 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
15745 (init_float, make_float): Use lisp_align_malloc.
15746 (free_float, live_float_p): Don't use `type' any more.
15747 (make_float): Use FLOAT_UNMARK to access to mark bit.
15748 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
15749 Use FLOAT_MARKED_P to access the mark bit.
15750 (pure_alloc): Simplify use of ALIGN.
15751 (mark_object): Use FLOAT_MARK to access the mark bit.
15752 (gc_sweep): Use new macros to access the float's mark bit.
15753 (init_alloc_once): Init free_ablock.
15754
15755 * lisp.h (struct Lisp_Float): Remove unused field `type'.
15756
15757 2003-06-27 Stefan Monnier <monnier@cs.yale.edu>
15758
15759 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
15760 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
15761 (allocate_buffer): Move.
15762 (string_bytes): Don't mask markbit of `size_byte'.
15763 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
15764 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
15765 Use the `size' field of buffers (rather than the `name' field) for
15766 the mark bit, as is done for all other vectorlike objects.
15767 Use the new macros to access the mark bit of vectorlike objects.
15768
15769 2003-06-26 Richard M. Stallman <rms@gnu.org>
15770
15771 * puresize.h (BASE_PURESIZE): Increment base size.
15772
15773 * xdisp.c (fast_find_position): Enable Gerd's new definition.
15774
15775 * xterm.c (xim_initialize): Undo previous change.
15776
15777 2003-06-26 Stefan Monnier <monnier@cs.yale.edu>
15778
15779 * alloc.c (survives_gc_p): Simplify.
15780
15781 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
15782
15783 * window.c (Fset_window_dedicated_p): Simplify.
15784 (display_buffer_1): Don't raise the win from which minibuf was entered.
15785 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
15786 (Fminibuffer_selected_window): Simplify.
15787
15788 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
15789
15790 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
15791 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
15792
15793 * insdel.c (check_markers, adjust_markers_for_delete)
15794 (adjust_markers_for_insert, adjust_markers_for_replace)
15795 (prepare_to_modify_buffer, RESTORE_VALUE):
15796 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
15797 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
15798 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
15799 * alloc.c (Fmake_marker, free_marker, gc_sweep):
15800 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
15801 * editfns.c (save_excursion_restore, transpose_markers):
15802 * window.c (delete_window):
15803 * xdisp.c (message_dolog): Update for new types.
15804
15805 2003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15806
15807 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
15808 (realize_default_face): Use default_face_done_p for the force_p
15809 argument to set_lface_from_font_name. Set default_face_done_p to one.
15810
15811 * frame.c (make_frame): Initialize default_face_done_p.
15812
15813 * frame.h (struct frame): Add default_face_done_p.
15814
15815 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
15816 will be defined.
15817
15818 2003-06-25 Stefan Monnier <monnier@cs.yale.edu>
15819
15820 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
15821 Initialize the new field `gcmarkbit'.
15822 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
15823 (mark_interval_tree): Don't mark the tree separately from the nodes.
15824 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
15825 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
15826 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
15827
15828 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
15829 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
15830 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
15831 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
15832 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
15833
15834 2003-06-24 Dave Love <fx@gnu.org>
15835
15836 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
15837
15838 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
15839 from gnulib.
15840
15841 2003-06-21 Richard M. Stallman <rms@gnu.org>
15842
15843 * fileio.c (Fwrite_region): Alternate messages
15844 for append and partial write.
15845
15846 * keyboard.c (read_key_sequence): When converting upcase fn key to
15847 downcase, update fkey and keytran so `backspace' gets translated.
15848
15849 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
15850
15851 * process.c (wait_reading_process_input): Don't signal SIGIO
15852 in batch mode.
15853
15854 2003-06-17 Kenichi Handa <handa@m17n.org>
15855
15856 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
15857 composite.h.
15858
15859 * xselect.c: Don't include charset.h, coding.h, composite.h.
15860 (Qforeign_selection): New variable.
15861 (syms_of_xselect): Intern and static it.
15862 (selection_data_to_lisp_data): Return a unibyte string made from
15863 data with `foreign-selection' text property.
15864
15865 2003-06-15 Stefan Monnier <monnier@cs.yale.edu>
15866
15867 * termhooks.h (EVENT_INIT): New macro.
15868
15869 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
15870
15871 * alloc.c (mark_kboards): Move to keyboard.c.
15872
15873 * keyboard.c (record_asynch_buffer_change, read_avail_input):
15874 * xterm.c (x_dispatch_event):
15875 * xmenu.c (find_and_call_menu_selection):
15876 * xdisp.c (handle_tool_bar_click):
15877 * w32menu.c (menubar_selection_callback):
15878 * sysdep.c (kbd_input_ast, read_input_waiting):
15879 * msdos.c (dos_rawgetc):
15880 * macterm.c (mac_check_for_quit_char):
15881 * macmenu.c (menubar_selection_callback):
15882 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
15883 data to kbd_buffer_store_event.
15884
15885 2003-06-15 Kim F. Storm <storm@cua.dk>
15886
15887 * xdisp.c (x_fix_overlapping_area): Always use area relative X
15888 to fix redisplay problem with tall characters (such as \e,AC\e(B).
15889
15890 2003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
15891
15892 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
15893
15894 2003-06-12 Kenichi Handa <handa@m17n.org>
15895
15896 * fileio.c (Fwrite_region): Save and restore restriction.
15897
15898 2003-06-12 Dave Love <fx@gnu.org>
15899
15900 * alloca.c (alloca): Declare arg as size_t.
15901
15902 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
15903 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
15904
15905 2003-06-11 Dave Love <fx@gnu.org>
15906
15907 * search.c (shrink_regexp_cache): Use xrealloc.
15908 (syms_of_search): Use xmalloc.
15909
15910 2003-06-10 Kim F. Storm <storm@cua.dk>
15911
15912 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
15913 Adjust phys_cursor.x to be relative to window box, rather than
15914 text area before checking -- to ensure cursor is redrawn when
15915 exposing window.
15916 Note: This also fixes a similar (older) bug if display margins
15917 are present.
15918
15919 2003-06-06 Kenichi Handa <handa@m17n.org>
15920
15921 * coding.c (encoding_buffer_size): If coding->type is
15922 coding_type_ccl, double magnification on CRLF encoding.
15923
15924 2003-06-06 Jason Rumney <jasonr@gnu.org>
15925
15926 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
15927 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
15928
15929 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
15930 Mac too.
15931
15932 2003-06-05 Dave Love <fx@gnu.org>
15933
15934 * strftime.c: Merge changes from gnulib.
15935
15936 * mktime.c (__mktime_internal): Merge changes from gnulib
15937 involving year 69 and dst2.
15938
15939 Changes to merge with gnulib version and be consistent with the
15940 autoconf test:
15941
15942 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
15943 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
15944 [HAVE_LOCALE_H]: Include locale.h.
15945 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
15946
15947 2003-06-05 Kim F. Storm <storm@cua.dk>
15948
15949 * window.c (coordinates_in_window): Convert X and Y to window
15950 relative coordinates inside mode-line and header-line parts.
15951 Convert X and Y to margin area relative coordinates inside left
15952 and right display margin parts.
15953
15954 2003-06-05 Jason Rumney <jasonr@gnu.org>
15955
15956 * w32fns.c (add_system_logical_colors_to_map): New function.
15957 (Fx_open_connection): Use it.
15958
15959 2003-06-04 Stefan Monnier <monnier@cs.yale.edu>
15960
15961 * process.c (allocate_pty): Revert part of the previous patch.
15962 (Faccept_process_output): Simplify.
15963
15964 2003-06-04 Jason Rumney <jasonr@gnu.org>
15965
15966 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
15967
15968 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
15969 (lispy_mouse_wheel_names): Remove.
15970 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
15971 Always define drag_and_drop_syms.
15972
15973 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
15974 WHEEL_EVENT events.
15975
15976 2003-06-03 Stefan Monnier <monnier@cs.yale.edu>
15977
15978 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
15979
15980 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
15981
15982 2003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15983
15984 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
15985 menu item label.
15986
15987 2003-06-03 Richard M. Stallman <rms@gnu.org>
15988
15989 * window.c (Fwindow_edges): Doc fix.
15990 (Fwindow_pixel_edges, Fwindow_inside_edges)
15991 (Fwindow_inside_pixel_edges): New functions.
15992 (syms_of_window): defsubr them.
15993
15994 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
15995 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
15996
15997 2003-06-02 Stefan Monnier <monnier@cs.yale.edu>
15998
15999 * dispnew.c (Fsit_for): Don't lie about the number of args.
16000
16001 2003-06-02 Dave Love <fx@gnu.org>
16002
16003 * callproc.c: Use HAVE_FCNTL_H, not USG5.
16004 (syms_of_callproc) <process-environment>: Doc fix.
16005
16006 * doc.c: Use HAVE_FCNTL_H, not USG5.
16007
16008 * xfaces.c (font_rescale_ratio): Fix for K&R.
16009
16010 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
16011
16012 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
16013
16014 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
16015
16016 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
16017 (xg_create_frame_widgets): Use ENCODE_UTF_8.
16018
16019 * xterm.c (Qutf_8): Move to coding.c
16020
16021 * xmenu.c (ENCODE_MENU_STRING): New.
16022 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
16023 Use it.
16024
16025 * coding.h (ENCODE_UTF_8): New.
16026 (Qutf_8): Declare.
16027
16028 * coding.c (Qutf_8): New.
16029 (syms_of_coding): Intern it.
16030
16031 * fns.c: Doc fixes.
16032
16033 2003-06-02 Kenichi Handa <handa@m17n.org>
16034
16035 * buffer.c (Fset_buffer_multibyte): Fix previous change.
16036
16037 2003-06-01 Stefan Monnier <monnier@cs.yale.edu>
16038
16039 * lread.c (openp): Make sure STR is a string.
16040
16041 2003-06-01 David Ponce <david@dponce.com>
16042
16043 * termhooks.h (enum event_kind): Add new WHEEL_EVENT event.
16044 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
16045
16046 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
16047 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
16048 (discard_mouse_events): Discard WHEEL_EVENT events too.
16049 (lispy_wheel_names, wheel_syms): New.
16050 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
16051 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX defined.
16052 (make_lispy_event): Add WHEEL_EVENT handler.
16053
16054 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
16055 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
16056 WHEEL_EVENT events.
16057
16058 2003-05-31 John Paul Wallington <jpw@gnu.org>
16059
16060 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
16061 timer are in lisp/emacs-lisp.
16062
16063 2003-05-31 Kenichi Handa <handa@m17n.org>
16064
16065 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
16066 region when a buffer is changed to unibyte.
16067
16068 * charset.h (VALID_LEADING_CODE_P): New macro.
16069 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
16070
16071 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
16072 is nonzero, accept multibyte form of eight-bit-control chars.
16073 (decode_composition_emacs_mule): Likewise.
16074 (decode_coding_emacs_mule): Likewise.
16075 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
16076 multibyte form of eight-bit-control chars.
16077
16078 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
16079 (Finsert_file_contents): If coding-system-for-read is bound to
16080 Qauto_save_coding, use the coding system emacs-mule with special
16081 setting for recovering a file.
16082 (choose_write_coding_system): On auto saving, use the coding
16083 system emacs-mule with special setting for auto saving.
16084 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
16085
16086 2003-05-30 Kenichi Handa <handa@m17n.org>
16087
16088 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
16089 properly before calling ccl_driver.
16090
16091 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
16092
16093 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is nonzero.
16094 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
16095 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
16096
16097 2003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
16098
16099 * xfaces.c (realize_default_face): Do not abort if lface is
16100 non-existent - reverts change from 2003-05-19.
16101
16102 2003-05-29 Kenichi Handa <handa@m17n.org>
16103
16104 * coding.c (decode_coding_iso2022): Pay attention to the byte
16105 sequence of CTEXT extended segment, and retain those bytes as is.
16106
16107 2003-05-28 Kenichi Handa <handa@m17n.org>
16108
16109 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjust for the name change
16110 of CODING_REPLACEMENT_CHARACTER.
16111 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
16112 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
16113 check this flag on encoding.
16114 (encode_coding_sjis_big5):
16115 Check CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
16116 (Fset_terminal_coding_system_internal):
16117 Set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
16118 instead of setting CODING_FLAG_ISO_SAFE flag in terminal_coding.flags.
16119
16120 * coding.h (CODING_REPLACEMENT_CHARACTER): Rename from
16121 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
16122 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
16123
16124 2003-05-28 Richard M. Stallman <rms@gnu.org>
16125
16126 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
16127
16128 * eval.c (unbind_to): Move init of this_binding to separate statement.
16129
16130 2003-05-28 Kim F. Storm <storm@cua.dk>
16131
16132 * xdisp.c (expose_window): Fix error in calculation of
16133 window relative coordinates of area to redisplay.
16134
16135 2003-05-27 Jason Rumney <jasonr@gnu.org>
16136
16137 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
16138
16139 2003-05-27 David Ponce <david@dponce.com>
16140
16141 Handle W32 mouse wheel events as mouse click events, like in X.
16142
16143 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
16144 MOUSE_WHEEL_EVENT anymore.
16145
16146 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
16147 Scrolling down/up the mouse wheel is respectively mapped to mouse
16148 button 4 and 5.
16149 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
16150 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
16151 WM_MOUSEWHEEL events.
16152
16153 2003-05-27 Andreas Schwab <schwab@suse.de>
16154
16155 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
16156
16157 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
16158 partially visible line.
16159
16160 * alloc.c (Fgarbage_collect): Fix last change.
16161
16162 2003-05-26 John Paul Wallington <jpw@gnu.org>
16163
16164 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
16165
16166 2003-05-25 Stefan Monnier <monnier@cs.yale.edu>
16167
16168 * window.c (Fset_window_buffer): Add type of `keep_margins'.
16169 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
16170
16171 * window.h (window_box_text_cols): Declare.
16172
16173 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
16174 (x_draw_vertical_border): Remove unused var `f'.
16175
16176 * xfaces.c (build_scalable_font_name): Remove `unused var
16177 pixel_size' warning.
16178
16179 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
16180
16181 * unexelf.c (unexec): Remove `unused var n' warning.
16182
16183 * strftime.c (my_strftime_localtime_r): Remove `defined but
16184 unused' warning.
16185
16186 * process.c (allocate_pty): Remove `unused var stb' and
16187 `cp might be used uninitialized' warnings.
16188
16189 * dispnew.c (mode_line_string): Remove unused var `f'.
16190
16191 * coding.c (find_safe_codings): Remove unused var `i'.
16192
16193 * bytecode.c (Fbyte_code): Remove `unused val' warning.
16194
16195 * buffer.c (Fkill_buffer): Remove unused var `list'.
16196
16197 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
16198
16199 2003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16200
16201 * frame.c (make_frame): Condition want_fullscreen with
16202 HAVE_WINDOW_SYSTEM.
16203
16204 2003-05-25 Juanma Barranquero <lektu@terra.es>
16205
16206 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
16207 (Fwindow_scroll_bars): Fix typo in docstring.
16208
16209 2003-05-24 Kim F. Storm <storm@cua.dk>
16210
16211 The following changes serve several purposes:
16212
16213 1) Swap the position of fringes and display margins in windows, i.e.
16214 the fringes are now displayed between the margins and the text area
16215 (by default).
16216
16217 2) Allow fringe and scroll bar parameters to be set per-buffer and
16218 per-window (like display margins). Such settings are now stored
16219 in window configurations, preserved when frames are resized, and
16220 copied when windows are split vertically or horizontally.
16221 Several bugs related to display margins have been fixed.
16222
16223 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
16224
16225 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
16226 rather than FRAME_WIDTH (FRAME_FONT (f)).
16227
16228 5) Introduce a consistent naming of variables, members and macros
16229 depending on whether their value is measured in pixels or in
16230 canonical columns/lines. Pixel dimensions are named *_width and
16231 *_height, while canonical columns/lines are named *_cols and
16232 *_lines. Pixel positions are named *_x and *_y, while column/line
16233 positions are named *_col and *_line.
16234
16235 6) Consolidate more of the X, W32, and MAC gui code by moving
16236 common data into struct frame, and generalize it for the non-gui
16237 case by using suitable defaults.
16238
16239 7) Cleanup and consolidate the macros controlling frame and window
16240 layout into frame.h and window.h, and generalize the use of the
16241 various window_box_* functions (enhanced to handle the new fringe
16242 position and the per-window fringe and scroll bar settings).
16243
16244 * frame.h (struct frame): Rename members height to text_lines,
16245 width to text_cols, window_height to total_lines, window_width to
16246 total_cols, new_height to new_text_lines, new_width to
16247 new_text_cols. All uses changed.
16248 (struct frame): New members which consolidate common members of
16249 x_output, w32_output, and mac_output structures: left_pos,
16250 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
16251 win_gravity, size_hint_flags, border_width, internal_border_width,
16252 line_height, fringe_cols, left_fringe_width, right_fringe_width,
16253 want_fullscreen. All uses changed.
16254 (struct frame): New member column_width contaning the canonical
16255 column width, analogue to line_height. All uses changed.
16256 (struct frame): Rename members scroll_bar_pixel_width to
16257 config_scroll_bar_width, and scroll_bar_cols to
16258 config_scroll_bar_cols. All uses changed.
16259 (struct frame): New member scroll_bar_actual_width which
16260 consolidates and renames the vertical_scroll_bar_extra member of
16261 x_output, w32_output, and mac_output structures. All uses changed.
16262 (FRAME_PIXEL_HEIGHT): Rename from PIXEL_HEIGHT and moved
16263 from x/w32/macterm.h files. All uses changed. Also change code
16264 which referred to f->output_data...->pixel_height.
16265 (FRAME_PIXEL_WIDTH): Rename from PIXEL_WIDTH and moved
16266 from x/w32/macterm.h files. All uses changed. Also change code
16267 which referred to f->output_data...->pixel_width.
16268 (FRAME_LINES): Rename from FRAME_HEIGHT. All uses changed.
16269 Also change code which referred to f->height.
16270 (FRAME_COLS): Rename from FRAME_WIDTH. All uses changed.
16271 Also change code which referred to f->width.
16272 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
16273 to update new_text_lines and new_text_cols members directly.
16274 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Rename from
16275 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
16276 (FRAME_CONFIG_SCROLL_BAR_COLS): Rename from
16277 FRAME_SCROLL_BAR_COLS. All uses changed.
16278 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
16279 Rename from FRAME_LEFT_SCROLL_BAR_WIDTH and
16280 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
16281 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
16282 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
16283 (FRAME_TOTAL_COLS): Rename from FRAME_WINDOW_WIDTH.
16284 (SET_FRAME_COLS): Rename from SET_FRAME_WIDTH.
16285 (FRAME_TOTAL_COLS_ARG): Rename from FRAME_WINDOW_WIDTH_ARG.
16286 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
16287 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
16288 (FRAME_LINE_HEIGHT): Rename from CANON_Y_UNIT.
16289 Unconditionally return line_height member (it now has proper value
16290 also for non-window frames).
16291 (FRAME_COLUMN_WIDTH): Rename from CANON_X_UNIT. Unconditionally
16292 return new column_width member (rather than the default font width).
16293 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
16294 (FRAME_RIGHT_FRINGE_WIDTH): Rename from FRAME_X_... and moved
16295 from x/w32/macterm.h files. Unconditionally return corresponding
16296 member of frame structure (they now have proper values also for
16297 non-window frames).
16298 (FRAME_TOTAL_FRINGE_WIDTH): Rename from FRAME_FRINGE_WIDTH.
16299 Calculate return value from left and right widths.
16300 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
16301 internal_border_width member (has proper value for non-window frame).
16302 (FRAME_PIXEL_X_FROM_CANON_X): Rename from PIXEL_X_FROM_CANON_X.
16303 (FRAME_PIXEL_Y_FROM_CANON_Y): Rename from PIXEL_Y_FROM_CANON_Y.
16304 (FRAME_CANON_X_FROM_PIXEL_X): Rename from CANON_X_FROM_PIXEL_X.
16305 (FRAME_CANON_Y_FROM_PIXEL_Y): Rename from CANON_Y_FROM_PIXEL_Y.
16306 (FRAME_LINE_TO_PIXEL_Y): Rename from CHAR_TO_PIXEL_ROW,
16307 consolidated from xterm.h, macterm.h, and w32term.h.
16308 (FRAME_COL_TO_PIXEL_X): Rename from CHAR_TO_PIXEL_COL,
16309 consolidated from xterm.h, macterm.h, and w32term.h.
16310 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Rename from
16311 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
16312 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Rename from
16313 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
16314 (FRAME_PIXEL_Y_TO_LINE): Rename from PIXEL_TO_CHAR_ROW
16315 consolidated from x/mac/w32term.h.
16316 (FRAME_PIXEL_X_TO_COL): Rename from PIXEL_TO_CHAR_COL
16317 consolidated from x/mac/w32term.h.
16318 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Rename from
16319 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
16320 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Rename from
16321 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
16322
16323 * window.h (struct window): Rename members left to left_col,
16324 top to top_line, height to total_lines, width to total_cols,
16325 left_margin_width to left_margin_cols, right_margin_width to
16326 right_margin_cols, orig_height to orig_total_lines, orig_top to
16327 orig_top_line. All uses changed.
16328 (struct window): New members left_fringe_width, right_fringe_width,
16329 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
16330 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
16331 New macros primarily used to simplify other macros.
16332 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
16333 referred to XINT (w->width).
16334 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
16335 referred to XINT (w->height).
16336 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
16337 referred to XINT (w->width) * canon_x_unit.
16338 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
16339 referred to XINT (w->height) * canon_y_unit.
16340 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
16341 referred to XINT (w->left).
16342 (WINDOW_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_EDGE. Change
16343 all uses and code that referred to XINT (w->left) + XINT (w->width).
16344 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
16345 referred to XINT (w->top).
16346 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
16347 referred to XINT (w->top) + XINT (w->height).
16348 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
16349 referred to XINT (w->left) * canon_x_unit.
16350 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
16351 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
16352 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
16353 referred to XINT (w->top) * canon_y_unit.
16354 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
16355 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
16356 (WINDOW_LEFTMOST_P): New macro.
16357 (WINDOW_BOX_LEFT_EDGE_COL): Rename from WINDOW_LEFT_MARGIN.
16358 All uses changed.
16359 (WINDOW_BOX_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_MARGIN.
16360 All uses changed.
16361 (WINDOW_BOX_LEFT_EDGE_X): Rename from
16362 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
16363 Do not exclude left fringe width.
16364 (WINDOW_BOX_RIGHT_EDGE_X): Rename from
16365 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
16366 Do not exclude fringe widths.
16367 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
16368 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
16369 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
16370 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
16371 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
16372 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
16373 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
16374 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
16375 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
16376 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
16377 New macros. Change code which referenced corresponding
16378 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
16379 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
16380 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
16381 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
16382 allow per-window scroll-bar settings.
16383 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
16384 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
16385 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
16386 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
16387 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
16388 FRAME_SCROLL_BAR_WIDTH.
16389 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
16390 (WINDOW_SCROLL_BAR_AREA_X): New macros.
16391 (WINDOW_HEADER_LINE_HEIGHT): Rename from
16392 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
16393 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Rename from
16394 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
16395 (WINDOW_BOX_TEXT_HEIGHT): Rename from
16396 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
16397 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
16398 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
16399 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Move here from dispextern.h.
16400 (WINDOW_LEFT_MARGIN_WIDTH): Rename from
16401 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
16402 (WINDOW_RIGHT_MARGIN_WIDTH): Rename from
16403 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
16404 (window_from_coordinates): Update prototype.
16405 (Fset_window_buffer): Update EXFUN.
16406 (set_window_buffer): Update prototype.
16407
16408 * dispextern.h (struct glyph_matrix): Rename members window_left_x
16409 to window_left_col, window_top_y to window_top_line. All uses
16410 changed.
16411 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
16412 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
16413 internal_border_width is now set to 0 for non-window frames.
16414 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
16415 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
16416 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
16417 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
16418 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
16419 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
16420 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
16421 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
16422 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
16423 Move to window.h and renamed [see window.h changes].
16424 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
16425 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
16426 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
16427 Use WINDOW_TOTAL_LINES.
16428 (frame_update_line_height): Remove prototype.
16429
16430 * buffer.h (struct buffer): Rename members measured in columns:
16431 left_margin_width to left_margin_cols, right_margin_width to
16432 right_margin_cols. All uses changed.
16433 New members left_fringe_width, right_fringe_width,
16434 fringes_outside_margins for per-buffer fringe settings.
16435 New members scroll_bar_width and vertical_scroll_bar_type for
16436 per-buffer scroll bar settings.
16437
16438 * buffer.c (init_buffer_once): Set buffer_defaults and
16439 buffer_local_flags for new buffer-local variables
16440 left_fringe_width, right_fringe_width, fringes_outside_margins,
16441 scroll_bar_width, and vertical_scroll_bar_type.
16442 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
16443 default-* variables for them.
16444
16445 * dispnew.c: Make (many) trivial substitutions for renamed and
16446 new macros in dispextern.h, frame.h and window.h.
16447 (mode_line_string): No need to adjust width for mode lines, as it
16448 is already adjusted by the caller.
16449 (marginal_area_string): Handle fringes inside/outside margins.
16450
16451 * frame.c: Make (many) trivial substitutions for renamed and
16452 new macros in dispextern.h, frame.h and window.h.
16453 (make_frame): Initialize left_fringe_width, right_fringe_width,
16454 fringe_cols, scroll_bar_actual_width, border_width,
16455 internal_border_width, column_width, line_height, x_pixels_diff,
16456 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
16457 members with values suitable for a non-window frames.
16458
16459 * gtkutil.c: Make (many) trivial substitutions for renamed and
16460 new macros in dispextern.h, frame.h and window.h.
16461
16462 * indent.c: Make (few) trivial substitutions for renamed and
16463 new macros in dispextern.h, frame.h and window.h.
16464
16465 * keyboard.c: Make (many) trivial substitutions for renamed and
16466 new macros in dispextern.h, frame.h and window.h.
16467 (make_lispy_event): Use window positions returned from
16468 window_from_coordinates when constructing the lisp event for
16469 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
16470 (incorrect) values locally.
16471 (make_lispy_movement): Use window positions returned from
16472 window_from_coordinates when constructing the lisp event, rather
16473 than calculating (incorrect) values locally.
16474
16475 * scroll.c: Make (some) trivial substitutions for renamed and
16476 new macros in dispextern.h, frame.h and window.h.
16477
16478 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
16479 scroll-bars.
16480
16481 * sysdep.c: Make (few) trivial substitutions for renamed and
16482 new macros in dispextern.h, frame.h and window.h.
16483
16484 * term.c: Make (some) trivial substitutions for renamed and
16485 new macros in dispextern.h, frame.h and window.h.
16486
16487 * widget.c: Make (few) trivial substitutions for renamed and
16488 new macros in dispextern.h, frame.h and window.h.
16489
16490 * window.c: Make (many) trivial substitutions for renamed and
16491 new macros in dispextern.h, frame.h and window.h.
16492 (make_window): Initialize new members
16493 left_margin_cols, right_margin_cols, left_fringe_width,
16494 right_fringe_width, fringes_outside_margins, scroll_bar_width,
16495 and vertical_scroll_bar_type.
16496 (coordinates_in_window): Adapt to new fringe/margin positions
16497 and per-window fringes and scroll-bars.
16498 Fix bug related to incorrectly adjusting coordinates by
16499 frame's internal_border_width (the effect normally negible since
16500 the internal_border_width is typically 0 or 1 pixel, but very
16501 noticeable for an internal_border_width of e.g. 25 pixels).
16502 Upon successful return (other than ON_NOTHING), the coordinates
16503 are now always properly converted to window relative for the
16504 given display element.
16505 (window_from_coordinates): Add new parameters wx and wy to
16506 return the window relative x and y position in the returned
16507 window and part. A null arg means, don't return the position.
16508 All callers changed.
16509 (adjust_window_margins): New function which may reduce the width
16510 of the display margins if a window's text area is too small after
16511 resizing or splitting windows.
16512 (size_window): Fix bug that did not account for display margin
16513 widths when checking the minimum width of a window; use
16514 adjust_window_margins.
16515 (set_window_buffer): Call Fset_window_fringes and
16516 Fset_window_scroll_bars to setup per-window elements.
16517 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
16518 existing display margin, fringe widths, and scroll bar settings
16519 (e.g. after splitting a window or resizing the frame).
16520 All callers changed.
16521 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
16522 (Fsplit_window): Duplicate original window's display margin,
16523 fringe, and scroll-bar settings; then call Fset_window_buffer with
16524 KEEP_MARGINS non-nil. This fixes a bug which caused a split
16525 window to only preserve the display margins in one of the windows.
16526 When splitting horizontally, call adjust_window_margins on both
16527 windows to ensure that the text area of the new windows is non too
16528 narrow. This fixes a bug which could cause Emacs to trap if the
16529 width of the split window was less than the width of the display
16530 margins.
16531 (window_box_text_cols): Rename from window_internal_width.
16532 All uses changed. Adapt to per-window fringes and scroll bars.
16533 Fix bug that caused vertical separator to be subtracted also on
16534 window frames. Fix another bug that did not reduce the returned
16535 value by the columns used for display margins.
16536 (window_scroll_line_based): Fix bug related to scrolling too much
16537 when display margins are present (implicitly fixed by the fix to
16538 window_box_text_cols).
16539 (scroll_left, scroll_right): Fix bug related to scrolling too far
16540 by default when display margins are present (implicitly fixed by
16541 the fix to window_box_text_cols).
16542 (struct saved_window): Rename members left to left_col, top to
16543 top_line, width to total_cols, height to total_lines, orig_top to
16544 orig_top_line, orig_height to orig_total_lines. All uses changed.
16545 New members left_margin_cols, right_margin_cols,
16546 left_fringe_width, right_fringe_width, fringes_outside_margins,
16547 scroll_bar_width, and vertical_scroll_bar_type for saving
16548 per-window display elements.
16549 (Fset_window_configuration): Restore display margins, fringes,
16550 and scroll bar settings. This fixes a bug which caused display
16551 margins to be discarded when saving and restoring a window
16552 configuration.
16553 (save_window_save): Save display margins, fringes, and scroll bar
16554 settings. This fixes a bug which caused display margins to be
16555 discarded when saving and restoring a window configuration.
16556 (Fset_window_margins): Do nothing if display margins are not
16557 really changed. Otherwise, call adjust_window_margins to ensure
16558 the text area doesn't get too narrow. This fixes a bug which
16559 could cause Emacs to trap if setting display margins wider than
16560 the width of the window.
16561 (Fset_window_fringes): New defun to allow user to specifically set
16562 this window's fringe widths and position vs. display margins.
16563 (Fwindow_fringes): New defun to return window's actual fringe settings.
16564 (Fset_window_scroll_bars): New defun to allow user to specifically
16565 set this window's scroll bar width and position.
16566 (Fwindow_scroll_bars): New defun to return window's actual scroll
16567 bar settings.
16568 (compare_window_configurations): Also compare display margins,
16569 fringes, and scroll bar settings.
16570 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
16571
16572 * xdisp.c: Make (many) trivial substitutions for renamed and
16573 new macros in dispextern.h, frame.h and window.h.
16574 (window_box_width): Adapt to per-window fringes and scroll bars,
16575 and new fringe vs. display margin position. Note that returned
16576 value is no longer guaranteed to be a whole multiple of the frame
16577 column width, since per-window fringes may now be any width.
16578 (window_box_left_offset): New function like window_box_left, but
16579 value is relative to left border of window (rather than frame).
16580 (window_box_right_offset): New function like window_box_right,
16581 but value is relative to left border of window.
16582 (window_box_left): Adapt to per-window fringes and scroll bars,
16583 and new fringe vs. display margin position. Simplify by using
16584 WINDOW_LEFT_EDGE_X and window_box_left_offset.
16585 (window_box): Allow null args for unnecessary return values;
16586 change/simplify relevant callers.
16587 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
16588 and new fringe vs. display margin position.
16589 Use window_box_left_offset and window_box_right_offset
16590 (get_glyph_string_clip_rect): Adapt to per-window fringes and
16591 scroll bars, and new fringe vs. display margin position.
16592 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
16593 (draw_fringe_bitmap): Rework to handle per-window fringes and new
16594 fringe vs. display margin position.
16595 (hscroll_window_tree): Use window_box_width instead of window_box.
16596 (redisplay_window): Adapt to per-window scroll bars.
16597 (draw_glyphs): Rework to handle per-window fringes and scroll
16598 bars, and new fringe vs. display margin position.
16599 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
16600 (x_clear_end_of_line): Adapt to per-window fringes and scroll
16601 bars, and new fringe vs. display margin position. Fix bug which
16602 increased total width of full_width rows by width of scroll bars
16603 although window's total width already includes that.
16604 (x_fix_overlapping_area): Simplify using window_box_left_offset.
16605 (expose_area): Simplify using window_box_left_offset.
16606 (x_draw_vertical_border): Handle per-window scroll bar settings,
16607 mixing windows with left, right and no scroll bars.
16608
16609 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
16610 where it's used in x_list_fonts (for clarity).
16611 (frame_update_line_height): Remove unused function; functionality
16612 is now done directly when setting the default font in x_set_font.
16613
16614 * xfns.c: Make (many) trivial substitutions for renamed and
16615 new macros in dispextern.h, frame.h and window.h.
16616
16617 * xmenu.c: Make (some) trivial substitutions for renamed and
16618 new macros in dispextern.h, frame.h and window.h.
16619
16620 * xterm.h (struct x_output): Move members left_pos, top_pos,
16621 border_width, pixel_height, pixel_width, line_height,
16622 internal_border_width, vertical_scroll_bar_extra,
16623 left_fringe_width, right_fringe_width, fringe_cols,
16624 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
16625 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
16626 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
16627 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
16628 (PIXEL_WIDTH, PIXEL_HEIGHT)
16629 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
16630 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
16631 frame.h and renamed [see frame.h changes].
16632 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
16633 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
16634 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
16635 and renamed [see frame.h changes].
16636
16637 * xterm.c: Make (several) trivial substitutions for renamed and
16638 new macros in dispextern.h, frame.h and window.h.
16639 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
16640 (scroll_run): Adapt to new fringe position.
16641 (glyph_rect): Use window coordinates returned from
16642 window_from_coordinates rather than frame_to_window_pixel_xy.
16643 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
16644 scroll-bars.
16645 (handle_one_xevent): Simplify a USE_GTK conditional.
16646 (x_clip_to_row): Remove superfluous whole_line_p arg and code
16647 (fringes are now inside margins, i.e. always in the clipping area).
16648 All callers changed.
16649 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
16650 directly, then call compute_fringe_widths. Don't call
16651 frame_update_line_height.
16652
16653 * w32term.h (struct w32_output): Move members left_pos, top_pos,
16654 border_width, pixel_height, pixel_width, line_height,
16655 internal_border_width, vertical_scroll_bar_extra,
16656 left_fringe_width, right_fringe_width, fringe_cols,
16657 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
16658 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
16659 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
16660 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
16661 (PIXEL_WIDTH, PIXEL_HEIGHT)
16662 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
16663 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
16664 frame.h and renamed [see frame.h changes].
16665 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
16666 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
16667 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
16668 and renamed [see frame.h changes].
16669
16670 * w32term.c: Make (several) trivial substitutions for renamed and
16671 new macros in dispextern.h, frame.h and window.h.
16672 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
16673 (glyph_rect): Use window coordinates returned from
16674 window_from_coordinates rather than frame_to_window_pixel_xy.
16675 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
16676 scroll-bars.
16677 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
16678 (fringes are now inside margins, i.e. always in the clipping area).
16679 All callers changed.
16680 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
16681 directly, then call compute_fringe_widths. Don't call
16682 frame_update_line_height.
16683
16684 * w32console.c: Make (few) trivial substitutions for renamed and
16685 new macros in dispextern.h, frame.h and window.h.
16686
16687 * w32fns.c: Make (many) trivial substitutions for renamed and
16688 new macros in dispextern.h, frame.h and window.h.
16689
16690 * w32menu.c: Make (few) trivial substitutions for renamed and
16691 new macros in dispextern.h, frame.h and window.h.
16692
16693 * macterm.h (struct mac_output): Move members left_pos, top_pos,
16694 border_width, pixel_height, pixel_width, line_height,
16695 internal_border_width, vertical_scroll_bar_extra,
16696 left_fringe_width, right_fringe_width, fringe_cols,
16697 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
16698 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
16699 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
16700 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
16701 (PIXEL_WIDTH, PIXEL_HEIGHT)
16702 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
16703 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
16704 frame.h and renamed [see frame.h changes].
16705 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
16706 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
16707 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
16708 and renamed [see frame.h changes].
16709
16710 * macterm.c: Make (several) trivial substitutions for renamed and
16711 new macros in dispextern.h, frame.h and window.h.
16712 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
16713 (glyph_rect): Use window coordinates returned from
16714 window_from_coordinates rather than frame_to_window_pixel_xy.
16715 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
16716 scroll-bars.
16717 (x_clip_to_row): Remove superfluous whole_line_p arg and code
16718 (fringes are now inside margins, i.e. always in the clipping area).
16719 All callers changed.
16720 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
16721 directly, then call compute_fringe_widths. Don't call
16722 frame_update_line_height.
16723
16724 * macfns.c: Make (several) trivial substitutions for renamed and
16725 new macros in dispextern.h, frame.h and window.h.
16726 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
16727
16728 * macmenu.c: Make (few) trivial substitutions for renamed and
16729 new macros in dispextern.h, frame.h and window.h.
16730
16731 * msdos.h (struct x_output): Remove members left_pos, top_pos,
16732 and line_height, and use corresponding new members in struct
16733 frame. All uses changed.
16734 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
16735 superseeded by corresponding macros in frame.h.
16736
16737 * msdos.c: Make (several) trivial substitutions for renamed and
16738 new macros in dispextern.h, frame.h and window.h.
16739 (IT_note_mouse_highlight): Use updated window coordinates returned
16740 by window_from_coordinates, rather than adjusting them locally.
16741 (internal_terminal_init): No need to initialize line_height here;
16742 it now defaults to 1.
16743
16744 2003-05-24 Stefan Monnier <monnier@cs.yale.edu>
16745
16746 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
16747 dropping `down' events.
16748
16749 2003-05-24 Andreas Schwab <schwab@suse.de>
16750
16751 * coding.c (find_safe_codings): Fix last change.
16752
16753 2003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
16754
16755 * xfns.c (x_window): Fix typo from 2003-05-21 change.
16756
16757 2003-05-23 Stefan Monnier <monnier@cs.yale.edu>
16758
16759 * xdisp.c (display_mode_element): Increase max depth.
16760 Simplify the error handling code. Use a different error string
16761 for the case where we hit the depth limit.
16762
16763 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
16764
16765 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
16766
16767 2003-05-21 Stefan Monnier <monnier@cs.yale.edu>
16768
16769 * intervals.c (get_local_map): Don't get char-property of previous
16770 point any more: get_pos_property already does it and better.
16771
16772 2003-05-21 Dave Love <fx@gnu.org>
16773
16774 [Merged from unicode branch.]
16775
16776 * xfns.c (x_window, x_window): Use use_xim.
16777
16778 * xterm.c (use_xim): Initialize.
16779 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
16780 (x_term_init): Maybe set use_xim.
16781
16782 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
16783
16784 2003-05-21 Jason Rumney <jasonr@gnu.org>
16785
16786 * unexw32.c (_start): Remove _fmode initialization.
16787
16788 * emacs.c (main) [WINDOWSNT]: Move it here.
16789
16790 2003-05-20 Dave Love <fx@gnu.org>
16791
16792 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
16793
16794 2003-05-19 Richard M. Stallman <rms@gnu.org>
16795
16796 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
16797 as value for QCfont attribute.
16798 (realize_default_face): lface should already exist; crash if not.
16799 Specify 0 for FORCE_P when calling set_lface_from_font_name.
16800
16801 * frame.c (Fignore_event): Doc fix.
16802
16803 2003-05-19 Kenichi Handa <handa@m17n.org>
16804
16805 * coding.c (decode_coding_string): Handle post-read-conversion
16806 even if the coding doesn't require decoding.
16807
16808 2003-05-18 Richard M. Stallman <rms@gnu.org>
16809
16810 * callproc.c (Fcall_process_region): Doc fix.
16811
16812 2003-05-17 Stefan Monnier <monnier@cs.yale.edu>
16813
16814 * lread.c (Fload): Print a message if package is obsolete.
16815
16816 * window.c (Fselect_window): Add optional `norecord' arg.
16817 (select_window_1): Fold into Fselect_window.
16818 (select_window_norecord): New function.
16819 (temp_output_buffer_show): Use it. Preserve current buffer.
16820
16821 * window.h (Fselect_window): Update declaration.
16822
16823 * window.c (delete_window, Fother_window, Fset_window_configuration):
16824 * minibuf.c (read_minibuf):
16825 * macterm.c (x_new_focus_frame):
16826 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
16827 * callint.c (Fcall_interactively):
16828 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
16829
16830 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
16831
16832 2003-05-17 David Kastrup <dak@gnu.org>
16833
16834 * process.c (read_process_output): Back out change from 2003-03-09.
16835
16836 2003-05-17 Stefan Monnier <monnier@cs.yale.edu>
16837
16838 * editfns.c (get_pos_property): Don't assume that `object' = nil.
16839
16840 * textprop.c (text_property_stickiness): New arg `buffer'.
16841
16842 * intervals.h (text_property_stickiness): New arg `buffer'.
16843 (get_pos_property): Declare.
16844
16845 * intervals.c (get_local_map): Use get_pos_property, to obey
16846 stickiness and empty overlays.
16847 (create_root_interval, graft_intervals_into_buffer): Use BEG.
16848 (merge_properties, intervals_equal, merge_properties_sticky):
16849 Use XCAR, XCDR.
16850 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
16851
16852 2003-05-17 Richard M. Stallman <rms@gnu.org>
16853
16854 * minibuf.c (read_minibuf): If buffer is empty, record the default
16855 in the history.
16856 (Fminibuffer_complete_word): When deleting the overlap, take account
16857 of its real position.
16858
16859 * fns.c (map_char_table): Fix previous change.
16860
16861 * syntax.c (find_defun_start):
16862 When open_paren_in_column_0_is_defun_start,
16863 return beginning of buffer.
16864
16865 * lisp.h (map_char_table): Declare added arg.
16866
16867 * fns.c (map_char_table): New arg TABLE gets the master table.
16868 All calls changed.
16869 Process default and inheritance, resorting to Faref if necessary.
16870
16871 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
16872 (Faccessible_keymaps): Pass new arg to map_char_table.
16873
16874 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
16875
16876 * casetab.c (set_case_table): Pass new arg to map_char_table.
16877
16878 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
16879
16880 * lisp.h (specbinding_func): New typedef.
16881 (struct specbinding): Use specbinding_func, to put the `volatile'
16882 in the right place.
16883
16884 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
16885 to avoid GCC warning.
16886
16887 2003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org>
16888
16889 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
16890
16891 2003-05-15 Stefan Monnier <monnier@cs.yale.edu>
16892
16893 * keyboard.c (apply_modifiers): Don't fill the other cache.
16894
16895 2003-05-14 Stefan Monnier <monnier@cs.yale.edu>
16896
16897 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
16898
16899 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
16900 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
16901 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
16902 (Fset_window_configuration, Fcurrent_window_configuration)
16903 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
16904 (Fpos_visible_in_window_p, mark_window_cursors_off)
16905 (window_internal_height, window_internal_width, Frecenter)
16906 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
16907 (replace_buffer_in_all_windows, init_window_once, init_window)
16908 (syms_of_window, keys_of_window): Move from lisp.h.
16909 * lisp.h: Move window.c declarations to window.h.
16910
16911 * bytecode.c: Include window.h.
16912 * emacs.c: Include window.h.
16913
16914 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
16915 (keyremap): Add `parent' field.
16916 (keyremap_step): Use it. Remove `parent' argument.
16917 (read_key_sequence): Setup and use the new `parent' field.
16918
16919 2003-05-11 Stefan Monnier <monnier@cs.yale.edu>
16920
16921 * keyboard.c (adjust_point_for_property): Ensure termination.
16922
16923 2003-05-10 Stefan Monnier <monnier@cs.yale.edu>
16924
16925 * keyboard.c (follow_key): Remove dead variable `did_meta'.
16926 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
16927 duplicated handling of function-key-map and key-translation-map
16928 in read_key_sequence.
16929 (read_key_sequence): Use them.
16930
16931 * keyboard.c (adjust_point_for_property): Try harder to move point
16932 to the non-sticky end of an invisible property.
16933
16934 * xdisp.c (single_display_prop_intangible_p): Make `space' display
16935 property intangible as well.
16936
16937 2003-05-10 Andreas Schwab <schwab@suse.de>
16938
16939 * xmenu.c (single_menu_item): Change last parameter to void* to
16940 avoid warning.
16941
16942 2003-05-09 Richard M. Stallman <rms@gnu.org>
16943
16944 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
16945 Bind Qinhibit_modification_hooks to t so there will be no GC.
16946 Rename local `tem' to `save_deactivate_mark'.
16947
16948 * eval.c (specpdl_ptr): Declare volatile.
16949 (unbind_to): Copy the whole binding and decrement specpdl_ptr
16950 before doing the work of unbinding it.
16951
16952 * lisp.h (struct specbinding): Declare elements volatile.
16953 (specpdl_ptr): Declare volatile.
16954
16955 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
16956
16957 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
16958 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
16959
16960 2003-05-08 Dave Love <fx@gnu.org>
16961
16962 * coding.c (Vlast_coding_system_used): Doc fix.
16963
16964 2003-05-07 Jason Rumney <jasonr@gnu.org>
16965
16966 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
16967 when system does not support them.
16968
16969 2003-05-05 Stefan Monnier <monnier@cs.yale.edu>
16970
16971 * fileio.c (Qwrite_region_annotate_functions): New var.
16972 (build_annotations): Use it to process the global part of the hook.
16973 (syms_of_fileio): Init and staticpro it.
16974
16975 * keyboard.c (safe_run_hooks_error): Display a message instead of
16976 silently ignoring the error.
16977
16978 2003-05-03 Stefan Monnier <monnier@cs.yale.edu>
16979
16980 * keyboard.c (input_available_signal): Mark static.
16981 (menu_bar_items): Use map_keymap.
16982 (menu_bar_one_keymap): Remove.
16983 (menu_bar_item): Adjust arglist (for use in map_keymap).
16984 Properly hide a second binding when not both are keymaps.
16985
16986 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
16987 (single_keymap_panes): Use it and map_keymap.
16988 (single_menu_item): Use skp as well.
16989
16990 * keymap.h (map_keymap_function_t): New type.
16991 (map_keymap): Declare.
16992
16993 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
16994 (map_keymap_call, Fmap_keymap): New functions.
16995 (syms_of_keymap): Defsubr map-keymap.
16996
16997 2003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16998
16999 * gtkutil.c (create_dialog, make_widget_for_menu_item)
17000 (make_menu_item, create_menus, xg_update_menu_item): Don't call
17001 ..._with_mnemonic functions for menu items.
17002
17003 2003-05-01 Kenichi Handa <handa@m17n.org>
17004
17005 * coding.c (coding_system_accept_latin_extra_p): Delete this
17006 function.
17007 (find_safe_codings): Pay attention to
17008 the property tranlsation-table-for-encode of each codings.
17009 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
17010
17011 2003-05-01 Stefan Monnier <monnier@cs.yale.edu>
17012
17013 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
17014
17015 2003-04-30 Stefan Monnier <monnier@cs.yale.edu>
17016
17017 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
17018
17019 * lisp.h (CHECK): Wrap args in parenthesis.
17020 (specbind): Fix doc: symbol = Qnil is not supported any more.
17021
17022 * bytecode.c (Fbyte_code) <unwind-protect>:
17023 Use Fprogn rather than 0 and Qnil.
17024
17025 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
17026 `double', and `triple' modifiers as well.
17027
17028 2003-04-30 Richard M. Stallman <rms@gnu.org>
17029
17030 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
17031
17032 * alloc.c (abort_on_gc): New variable.
17033 (Fgarbage_collect): Abort if abort_on_gc is set.
17034
17035 * lisp.h (abort_on_gc): Add decl.
17036
17037 * eval.c (Fsignal): Clear abort_on_gc.
17038
17039 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
17040 Reinit FORMAT_START and END before second scan.
17041
17042 * xdisp.c (move_it_vertically_backward): Do the final big else
17043 even if nlines is 0.
17044
17045 * xdisp.c (redisplay_internal): Finish the per-frame loop
17046 even if redisplay is suspended by input.
17047
17048 2003-04-24 Andrew Choi <akochoi@shaw.ca>
17049
17050 * macterm.c (x_list_fonts): Return all fonts that match if
17051 maxnames = -1.
17052
17053 2003-04-25 Kenichi Handa <handa@m17n.org>
17054
17055 * syntax.c (skip_chars): Fix previous change.
17056
17057 2003-04-24 Kenichi Handa <handa@m17n.org>
17058
17059 * syntax.c (skip_chars): Make the code faster by using the common
17060 technique of *p, *stop, and *endp.
17061
17062 2003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17063
17064 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
17065 tool_bar_items so GTK tool bar expose callback does not access items
17066 being updated.
17067
17068 2003-04-19 Stefan Monnier <monnier@cs.yale.edu>
17069
17070 * eval.c (Fapply): Undo last change and add a comment about why.
17071
17072 2003-04-18 Miles Bader <miles@gnu.org>
17073
17074 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
17075 pickier PARSE_MULTIBYTE_SEQ.
17076
17077 2003-04-17 Stefan Monnier <monnier@cs.yale.edu>
17078
17079 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
17080 Use XCDR, XCAR, CONSP.
17081 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
17082 (Fapply): Remove unnecessary GCPRO.
17083
17084 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
17085
17086 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
17087
17088 * buffer.h: Don't hardcode BEG==1.
17089
17090 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
17091
17092 2003-04-16 Richard M. Stallman <rms@gnu.org>
17093
17094 * xdisp.c (try_window, try_window_reusing_current_matrix):
17095 When at end of window, set window_end_pos to Z-ZV.
17096
17097 * buffer.c (Foverlay_recenter): Doc fix.
17098
17099 2003-04-14 Stefan Monnier <monnier@cs.yale.edu>
17100
17101 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
17102
17103 2003-04-14 Andrew Choi <akochoi@shaw.ca>
17104
17105 * macterm.c (mac_check_for_quit_char): Don't check more often than
17106 once a second.
17107
17108 2003-04-11 Stefan Monnier <monnier@cs.yale.edu>
17109
17110 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
17111 specially, so that they can't hide an implicit switch-frame event.
17112 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
17113 (head_table): Use switch-frame as event_kind for select-window.
17114 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
17115
17116 * editfns.c (Fformat): Lisp_Object/int mixup.
17117 (format2): Remove unused var numargs.
17118
17119 2003-04-11 Kenichi Handa <handa@m17n.org>
17120
17121 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
17122 (Qafter_insert_file_set_coding): New variable.
17123 (syms_of_fileio): Initialize and staticpro it. Delete declaration
17124 for after-insert-file-adjust-coding-function.
17125 (Finsert_file_contents): Call Qafter_insert_file_set_coding
17126 instead of Vafter_insert_file_adjust_coding_function.
17127
17128 2003-04-11 Kenichi Handa <handa@m17n.org>
17129
17130 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
17131
17132 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
17133 string. Callers changed.
17134
17135 2003-04-10 Kenichi Handa <handa@m17n.org>
17136
17137 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
17138 (syms_of_fileio): Declare it as a lisp variable.
17139 (Finsert_file_contents):
17140 Call Vafter_insert_file_adjust_coding_function before calling
17141 decode-format.
17142
17143 2003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17144
17145 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
17146 get GtkAdjustment as widget now is a GtkRange.
17147
17148 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
17149 GtkRange to avoid memory leak.
17150
17151 2003-04-09 Kenichi Handa <handa@m17n.org>
17152
17153 * xfaces.c (Vface_font_rescale_alist): New variable.
17154 (struct font_name): New member rescale_ratio.
17155 (font_rescale_ratio): New function.
17156 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
17157 (better_font_p): On comparing point sized, pay attention to
17158 recale_ratio member of fonts.
17159 (build_scalable_font_name): Reflect font->rescale_ratio in the
17160 font name.
17161 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
17162
17163 * lread.c (read1): Before calling index, check if the 2nd
17164 arguemnt is in ASCII range.
17165
17166 2003-04-08 Richard M. Stallman <rms@gnu.org>
17167
17168 * fileio.c (Ffile_symlink_p): Doc fix.
17169
17170 * editfns.c (Fformat): Translate positions of text properties
17171 in the format string to apply them to the result.
17172
17173 * fileio.c (Finsert_file_contents): Doc fix.
17174 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
17175
17176 2003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
17177
17178 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
17179
17180 2003-04-08 Steven Tamm <steventamm@mac.com>
17181
17182 * mac.c (init_mac_osx_environment): Switch libexec and bin so
17183 that self-contained application finds libexec files.
17184
17185 2003-04-08 Kenichi Handa <handa@m17n.org>
17186
17187 * coding.c (code_convert_region_unwind):
17188 Set Vlast_coding_system_used to the argument.
17189 (code_convert_region): If post-read-conversion function changed
17190 the value of last-coding-sytem, keep the new value in
17191 coding->symbol so that it won't be overridden.
17192 (run_pre_post_conversion_on_str): Likewise.
17193 (coding_system_accept_latin_extra_p): New function.
17194 (find_safe_codings): Pay attention to characters registered in
17195 latin-extra-code-table.
17196
17197 2003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
17198
17199 * Makefile.in (md5.o): Add missing dependency info.
17200
17201 2003-04-06 Richard M. Stallman <rms@gnu.org>
17202
17203 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
17204
17205 * marker.c (verify_bytepos): New function.
17206
17207 * intervals.c (set_intervals_multibyte_1): When becoming
17208 multibyte, adjust right and left child sizes to a whole set of
17209 characters. If an interval gets zero total-length, delete it.
17210 If an interval consists of just its children, delete one of them.
17211
17212 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
17213 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
17214
17215 * alloc.c (VALIDATE_LISP_STORAGE): Macro deleted.
17216 All calls deleted.
17217 (lisp_malloc): Do the work here directly.
17218
17219 2003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
17220
17221 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
17222 char tables.
17223
17224 2003-04-04 Kenichi Handa <handa@m17n.org>
17225
17226 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
17227 destructively change "%S" to "%s".
17228
17229 2003-04-03 Miles Bader <miles@gnu.org>
17230
17231 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
17232 always set.
17233
17234 2003-04-01 Dave Love <fx@gnu.org>
17235
17236 * xfns.c (xpm_lookup_color): Grok "opaque".
17237
17238 2003-03-31 Andrew Choi <akochoi@shaw.ca>
17239
17240 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
17241 parent window ID.
17242
17243 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
17244
17245 * macterm.h (struct mac_output): Define x_pixels_diff and
17246 y_pixels_diff.
17247
17248 2003-03-31 Juanma Barranquero <lektu@terra.es>
17249
17250 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
17251 blockinput.h and files included from it.
17252
17253 2003-03-31 Kim F. Storm <storm@cua.dk>
17254
17255 The following changes consolidates the common code related to
17256 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
17257 files into frame.c.
17258
17259 * frame.c: Include blockinput.h.
17260 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
17261 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
17262 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
17263 related vars here.
17264 (struct frame_parm_table, frame_parms): New table for describing
17265 frame parameters and their associated Q-variable.
17266 The order of the parameters corresponds to the sequence of the
17267 frame_parm_handlers table in redisplay_interface.
17268 (x_fullscreen_move, x_set_frame_parameters)
17269 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
17270 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
17271 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
17272 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
17273 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
17274 Generic functions for processing of frame parameters.
17275 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
17276 (display_x_get_resource, x_get_resource_string): Functions for
17277 generic access to X resources.
17278 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
17279 (x_default_parameter, Fx_parse_geometry): Functions for generic
17280 access to frame parameters.
17281 (x_figure_window_size): Generic calculation of frame size.
17282 Fixed to add space needed for tool bar. Also setup size_hint_flags.
17283 (syms_of_frame): Intern and staticpro frame parameter variables.
17284 Defvar_lisp Vx_resource_class and Vx_resource_name here.
17285 Defsubr Sx_get_resource and Sx_parse_geometry.
17286
17287 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
17288 parameter related vars defined in frame.c.
17289 (EMACS_CLASS): Define here.
17290 (enum FULLSCREEN_*): Define here.
17291 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
17292 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
17293 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
17294 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
17295 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
17296 (x_set_visibility, x_set_autoraise, x_set_autolower)
17297 (x_set_unsplittable, x_set_vertical_scroll_bars)
17298 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
17299 (x_figure_window_size): Add prototypes.
17300
17301 * dispextern.h (frame_parm_handler): New typedef.
17302 (struct redisplay_interface): New member frame_parm_handlers.
17303 (enum resource_types): Move declaration here.
17304 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
17305 (x_default_parameter): Add prototypes.
17306
17307 * window.c: Remove extern decl for frame parameter vars.
17308 (change_window_heights): New generic function;
17309 replaces x_change_window_heights. All users changed.
17310
17311 * window.h (change_window_heights): Add prototype.
17312
17313 * xfaces.c: Remove extern decl for frame parameter vars.
17314
17315 * xterm.h (EMACS_CLASS): Remove. Use generic define.
17316 (struct w32_display_info): Fix type of xrdb member.
17317 (enum FULLSCREEN_*): Remove.
17318 Remove prototypes for generic functions (in frame.h).
17319
17320 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
17321 parameters now defined in frame.h and frame.c.
17322 (Vx_resource_name): Remove. Use generic var.
17323 (enum x_frame_parms): Remove (bogus, unused enum).
17324 (check_x_display_info): Make non-static (for frame.c).
17325 (struct x_frame_parm_table, x_frame_parms): Remove.
17326 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
17327 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
17328 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
17329 (x_change_window_heights, x_set_autoraise, x_set_autolower)
17330 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
17331 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
17332 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
17333 Remove. Use generic functions instead.
17334 (enum resource_types): Remove.
17335 (x_set_scroll_bar_default_width): New global function (for frame.c).
17336 (Fx_create_frame): Depend on x_figure_window_size to add space for
17337 toolbar and setup size_hint_flags.
17338 (x_frame_parm_handlers): New table for redisplay_interface.
17339 (syms_of_xfns): Don't intern/staticpro removed vars.
17340
17341 * xterm.c: Remove unnecessary extern declarations.
17342 (x_fullscreen_adjust): Remove. Use generic instead.
17343 (x_redisplay_interface): Add x_frame_parm_handlers member.
17344
17345 * w32gui.h (XrmDatabase): New (dummy) typedef.
17346
17347 * w32term.h (EMACS_CLASS): Remove. Use generic define.
17348 (struct w32_display_info): Fix type of xrdb member.
17349 (enum FULLSCREEN_*): Remove.
17350 (x_fullscreen_adjust): Remove prototype.
17351
17352 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
17353 parameters now defined in frame.h and frame.c.
17354 (Vx_resource_name): Remove. Use generic var.
17355 (enum x_frame_parms): Remove (bogus, unused enum).
17356 (check_x_display_info): Make non-static (for frame.c).
17357 (struct x_frame_parm_table, x_frame_parms): Remove.
17358 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
17359 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
17360 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
17361 (x_change_window_heights, x_set_autoraise, x_set_autolower)
17362 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
17363 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
17364 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
17365 Remove. Use generic functions instead.
17366 (enum resource_types): Remove.
17367 (x_set_scroll_bar_default_width): New global function (for frame.c).
17368 (Fx_create_frame): Depend on x_figure_window_size to add space for
17369 toolbar and setup size_hint_flags.
17370 (w32_frame_parm_handlers): New table for redisplay_interface.
17371 (syms_of_w32fns): Don't intern/staticpro removed vars.
17372
17373 * w32term.c: Remove unnecessary extern declarations.
17374 (x_fullscreen_adjust): Remove. Use generic instead.
17375 (x_redisplay_interface): Add w32_frame_parm_handlers member.
17376
17377 * w32reg.c (x_get_string_resource): Use XrmDatabase.
17378
17379 * macgui.h (XrmDatabase): New (dummy) typedef.
17380
17381 * macterm.h (EMACS_CLASS): Remove.
17382 (struct mac_display_info): Add xrdb member.
17383 (struct mac_output): Add want_fullscreen member.
17384
17385 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
17386 parameters now defined in frame.h and frame.c.
17387 (Vx_resource_name): Remove. Use generic var.
17388 (check_x_display_info): Make non-static (for frame.c).
17389 (struct x_frame_parm_table, x_frame_parms): Remove.
17390 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
17391 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
17392 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
17393 (x_change_window_heights, x_set_autoraise, x_set_autolower)
17394 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
17395 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
17396 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
17397 Remove. Use generic functions instead.
17398 (enum resource_types): Remove.
17399 (x_set_scroll_bar_default_width): New global function (for frame.c).
17400 (mac_frame_parm_handlers): New table for redisplay_interface.
17401 (syms_of_macfns): Don't intern/staticpro removed vars.
17402
17403 * macterm.c: Remove unnecessary extern declarations.
17404 (x_redisplay_interface): Add mac_frame_parm_handlers member.
17405
17406 * Makefile.in (frame.o): Add dependency on blockinput.h and files
17407 included from it (atimer.h and systime.h).
17408
17409 2003-03-30 Andreas Schwab <schwab@suse.de>
17410
17411 * xdisp.c (x_insert_glyphs): Fix swapped width and height
17412 parameters for shift_glyphs_for_insert.
17413
17414 * macterm.c (x_redisplay_interface): Add missing entry for
17415 draw_vertical_window_border.
17416
17417 2003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
17418
17419 * fileio.c (Fexpand_file_name): In the no-handler case, after
17420 expanding, look again for a handler and invoke it. This is needed
17421 for filenames like "/foo/../user@host:/bar/../baz" -- the first
17422 expansion produces "/user@host:/bar/../baz" which needs to be
17423 expanded again for the finame result "/user@host:/baz".
17424
17425 2003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17426
17427 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
17428 of area to be redrawn for better performance.
17429
17430 2003-03-28 Stefan Monnier <monnier@cs.yale.edu>
17431
17432 * xterm.c (take_vertical_position_into_account): Remove.
17433 (xt_action_hook): Call set_vertical_scroll_bar if needed.
17434 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
17435 (xm_scroll_callback, x_create_toolkit_scroll_bar)
17436 (x_set_toolkit_scroll_bar_thumb): Simplify.
17437 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
17438 (XTread_socket): Remove unused var.
17439 (x_make_frame_invisible): Replace goto with else.
17440
17441 * xdisp.c (set_vertical_scroll_bar): New fun.
17442 (redisplay_window): Use it.
17443
17444 2003-03-26 Richard M. Stallman <rms@gnu.org>
17445
17446 * xdisp.c (update_tool_bar): Recompute tool bar if
17447 update_mode_lines is set. Set w->update_mode_line
17448 only if the tool bar contents actually change.
17449 (update_menu_bar): Undo previous change.
17450
17451 2003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17452
17453 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
17454 (xg_frame_set_char_size): Calculate scroll bar width before frame
17455 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
17456 (xg_separator_p): Check for all documented separator types.
17457 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
17458 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
17459
17460 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
17461 so tool bar gets updated.
17462
17463 2003-03-26 Stefan Monnier <monnier@cs.yale.edu>
17464
17465 * data.c (store_symval_forwarding): Re-instate part of the code
17466 that was deleted with too much enthusiasm.
17467
17468 2003-03-25 Stefan Monnier <monnier@cs.yale.edu>
17469
17470 * data.c (store_symval_forwarding): Delete special read-only
17471 hack for type == -1, since we now use ->constant instead.
17472 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
17473
17474 * buffer.c (overlays_in): Declare static.
17475 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
17476 `constant' field rather than the variable's `type' field.
17477
17478 2003-03-24 Andrew Choi <akochoi@shaw.ca>
17479
17480 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
17481
17482 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
17483
17484 * fns.c [MAC_OSX]: Do not redefine vector.
17485
17486 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
17487
17488 * macgui.h: Remove definition of No_Cursor.
17489
17490 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
17491
17492 * xdisp.c: Define No_Cursor.
17493 (x_write_glyphs, notice_overwritten_cursor)
17494 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
17495 (note_mouse_highlight): Remove Mac-specific code.
17496 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
17497
17498 2003-03-24 John Paul Wallington <jpw@gnu.org>
17499
17500 * xdisp.c (redisplay_window): If mini window's buffer is not
17501 empty, then redisplay it like other windows.
17502
17503 2003-03-23 Kim F. Storm <storm@cua.dk>
17504
17505 * w32term.c (w32_draw_window_cursor): Fix last change.
17506
17507 2003-03-23 Kenichi Handa <handa@m17n.org>
17508
17509 * alloc.c (make_string_from_bytes, make_specified_string):
17510 Add `const' for the arg CONTENTS.
17511
17512 * lisp.h (make_string_from_bytes, make_specified_string):
17513 Prototypes adjusted.
17514
17515 2003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17516
17517 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
17518
17519 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
17520 (XG_SB_RANGE): New define.
17521
17522 * gtkutil.c (xg_fixed_handle_expose): New function.
17523 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
17524 expose events.
17525 (xg_update_scrollbar_pos): Take two more arguments, left and width
17526 of scroll bar including borders.
17527 Clear left and right part outside scroll bar separately as some
17528 themes have bars that are not an even number of pixels.
17529 Don't set reallocate_redraws, don't call
17530 gdk_window_process_all_updates.
17531 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
17532 so no need to change it. Calculate size and value with XG_SB_RANGE.
17533
17534 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
17535 Pass left and width of scroll bar including borders to
17536 xg_update_scrollbar_pos.
17537
17538 2003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
17539
17540 * Makefile.in: Make sure space precedes end-of-line backslashes.
17541
17542 2003-03-22 Kim F. Storm <storm@cua.dk>
17543
17544 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
17545 Add generic versions here. Remove system specific versions
17546 defined elsewhere.
17547
17548 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
17549 Add prototypes.
17550
17551 * xterm.h (STORE_NATIVE_RECT): New macro.
17552
17553 2003-03-21 Kim F. Storm <storm@cua.dk>
17554
17555 * xdisp.c (get_glyph_string_clip_rect):
17556 Use FRAME_INTERNAL_BORDER_WIDTH.
17557
17558 * dispextern.h (struct redisplay_interface): Add active_p
17559 argument to draw_window_cursor member. All uses changed.
17560
17561 2003-03-21 Kim F. Storm <storm@cua.dk>
17562
17563 The following changes consolidate code related to writing and
17564 inserting glyphs, exposing frame, the tool bar, the mouse face,
17565 the output cursor, and help echo from xterm.c, w32term.c and
17566 macterm.c into xdisp.c. It also generalizes the use of the
17567 window_part enum instead of using numeric values throughout.
17568
17569 * xdisp.c: Consolidate gui-independent code here.
17570 Include keymap.h.
17571 (Qhelp_echo): Import.
17572 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
17573 (help_echo_string, help_echo_window, help_echo_object)
17574 (previous_help_echo_string, help_echo_pos): Declare here.
17575 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
17576 (estimate_mode_line_height): Define here. Handle windowing
17577 systems directly (without using estimate_mode_line_height_hook).
17578 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
17579 (update_window_cursor, update_cursor_in_window_tree)
17580 (fast_find_position, fast_find_string_pos)
17581 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
17582 (expose_area, expose_line, expose_overlaps, expose_window)
17583 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
17584 declared static as they are only used locally in xdisp.c.
17585 (draw_glyphs): Rename from x_draw_glyphs and make static.
17586 (tool_bar_item_info, notice_overwritten_cursor): Make static.
17587 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
17588 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
17589 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
17590 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
17591 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
17592 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
17593 (note_mouse_highlight, x_clear_window_mouse_face)
17594 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
17595 (x_intersect_rectangles): New generic functions for use by xdisp.c
17596 and GUI front-ends.
17597 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
17598 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
17599
17600 * dispextern.h (Display_Info): Generic typedef for *_display_info.
17601 (NativeRectangle): Generic typedef for rectangle type.
17602 (enum window_part): Move here from window.c.
17603 (struct redisplay_interface): New members flush_display_optional,
17604 define_frame_cursor, clear_frame_area, draw_window_cursor,
17605 draw_vertical_window_border, shift_glyphs_for_insert.
17606 Rename member clear_mouse_face to clear_window_mouse_face.
17607 (estimate_mode_line_height_hook): Remove hook.
17608 (auto_raise_tool_bar_buttons_p): Don't declare extern.
17609 (tool_bar_item_info): Remove prototype.
17610 (help_echo_string, help_echo_window, help_echo_object)
17611 (previous_help_echo_string, help_echo_pos)
17612 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
17613 (x_stretch_cursor_p, output_cursor): Declare extern.
17614 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
17615 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
17616 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
17617 (display_and_set_cursor, set_output_cursor, x_cursor_to)
17618 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
17619 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
17620 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
17621 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
17622 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
17623 Add prototypes.
17624 (mode_line_string, marginal_area_string): Fix prototypes.
17625
17626 * window.c (enum window_part): Move to dispextern.h.
17627 (coordinates_in_window): Use enum window_part member names
17628 instead of numbers to describe return value.
17629 (struct check_window_data): Change part member to window_part.
17630 (check_window_containing): Return window_part unaltered.
17631 (window_from_coordinates): Change part arg from int to enum
17632 window_part. Allow part arg to be null. All users changed.
17633
17634 * window.h (window_from_coordinates): Fix prototype.
17635
17636 * term.c (estimate_mode_line_height): Move to xdisp.c.
17637
17638 * keyboard.c (make_lispy_event): Use enum window_part.
17639
17640 * dispnew.c (mode_line_string, marginal_area_string): Use enum
17641 window_part instead of int in arg list. Users changed.
17642
17643 * xterm.h (No_Cursor): Declare as None for X.
17644 (struct mac_output): Replace member cross_cursor by hand_cursor.
17645
17646 * xterm.c: Remove consolidated defines and code.
17647 (BETWEEN): Remove unused macro.
17648 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
17649 (x_define_frame_cursor, x_clear_frame_area)
17650 (x_draw_window_cursor): New X-specific functions for RIF.
17651 (x_redisplay_interface): Add new members.
17652
17653 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
17654
17655 * w32term.h (struct w32_output): Remove cross_cursor member.
17656
17657 * w32term.c: Remove consolidated defines and code.
17658 (BETWEEN): Remove unused macro.
17659 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
17660 (w32_define_frame_cursor, w32_clear_frame_area)
17661 (w32_draw_window_cursor): New W32-specific functions for RIF.
17662 (w32_redisplay_interface): Add new members.
17663
17664 * w32gui.h (No_Cursor): Define as 0 for W32.
17665 (XRectangle): Add X compatible rectangle type.
17666 (NativeRectangle): Declare as RECT for W32.
17667 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
17668
17669 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
17670
17671 * w32console.c: Remove consolidated defines and code.
17672
17673 * msdos.h (Display_Info): Add generic typedef.
17674
17675 * msdos.c: Remove consolidated defines and code.
17676 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
17677
17678 * macterm.h (struct mac_output): Replace member cross_cursor by
17679 hand_cursor.
17680 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
17681
17682 * macterm.c: Remove consolidated defines and code.
17683 (BETWEEN): Remove unused macro.
17684 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
17685 (mac_define_frame_cursor, mac_clear_frame_area)
17686 (mac_draw_window_cursor): New Mac-specific functions for RIF.
17687 (x_redisplay_interface): Add new members.
17688
17689 * macgui.h (No_Cursor): Define as 0 for Mac.
17690 (XRectangle): Add X compatible rectangle type.
17691 (NativeRectangle): Declare as Rect for Mac.
17692 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
17693
17694 * macfns.c (x_set_mouse_color): Setup hand_cursor.
17695 (x_set_cursor_color): Use x_display_and_set_cursor.
17696
17697 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
17698 included from it. Add dependency on keymap.h.
17699
17700 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
17701
17702 2003-03-21 Kenichi Handa <handa@m17n.org>
17703
17704 * fileio.c (Fexpand_file_name): Fix previous change.
17705
17706 2003-03-19 Kenichi Handa <handa@m17n.org>
17707
17708 * fileio.c (Ffile_name_directory): Reconstruct file name by
17709 make_specified_string.
17710 (Ffile_name_nondirectory, Ffile_name_as_directory)
17711 (Fdirectory_file_name, Fexpand_file_name)
17712 (Fsubstitute_in_file_name): Likewise.
17713 (Fread_file_name): Compare decoded homedir with DIR and
17714 DEFAULT_FILENAME.
17715
17716 * alloc.c (make_specified_string): If NCHARS is negative, count
17717 the number of characters.
17718
17719 2003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17720
17721 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
17722 all widgets.
17723
17724 * gtkutil.h: Removed xg_ignore_next_thumb.
17725
17726 2003-03-18 Kenichi Handa <handa@m17n.org>
17727
17728 * coding.c (Vchar_coding_system_table): Remove this variable.
17729 (Vcoding_system_safe_chars): New variable.
17730 (intersection): Remove this function.
17731 (find_safe_codings): Don't use Vchar_coding_system_table, but try
17732 all codings in SAFE_CODINGS.
17733 (Ffind_coding_systems_region_internal): Adjust for the change of
17734 find_safe_codings. Get generic coding systems from
17735 Vcoding_system_safe_chars.
17736 (Fdefine_coding_system_internal): New function.
17737 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
17738 Initialize and staticpro Vcoding_system_safe_chars.
17739
17740 2003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17741
17742 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
17743 equal old values before updating.
17744
17745 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
17746
17747 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
17748
17749 2003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17750
17751 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
17752 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
17753 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
17754 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
17755 (xg_create_scroll_bar): Pass bar to button event callback.
17756 (xg_find_top_left_in_fixed): New function.
17757 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
17758 whole scroll bar area. Get old position with
17759 xg_find_top_left_in_fixed, calculate and only clear needed areas.
17760 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
17761 dragging is in progress. Calculate whole as for Motif.
17762 Remove code that saved last values. Call gtk_range functions to
17763 set scroll bar sizes.
17764
17765 * gtkutil.h: Removed xg_ignore_next_thumb.
17766
17767 2003-03-17 Juanma Barranquero <lektu@terra.es>
17768
17769 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
17770 and files included from it.
17771
17772 2003-03-18 Stefan Monnier <monnier@cs.yale.edu>
17773
17774 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
17775 multiple occurrences of the same keymap under different prefixes.
17776 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
17777
17778 2003-03-16 Jason Rumney <jasonr@gnu.org>
17779
17780 * w32gui.h: Use HDC for Display.
17781
17782 * w32term.c (w32_encode_char): Prevent double-byte chars from
17783 crashing Emacs.
17784
17785 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
17786 as binary.
17787
17788 2003-03-16 Juanma Barranquero <lektu@terra.es>
17789
17790 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
17791
17792 2003-03-16 Kim F. Storm <storm@cua.dk>
17793
17794 The following changes consolidate some of the gui-independent
17795 parts of the processing and drawing of "glyph strings" from
17796 xterm.c, w32term.c, and macterm.c into xdisp.c.
17797
17798 * dispextern.h (struct glyph): Reduce face_id member from 22 to
17799 21 bits (this reduces number of faces from 4M to 2M).
17800 Replace W32 specific w32_font_type member (2 bits) by generic
17801 font_type member (3 bits) for portability.
17802 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
17803 (enum draw_glyphs_face): Define here.
17804 (struct glyph_string): Define here. Merge W32 and X versions.
17805 (struct redisplay_interface): New members per_char_metric,
17806 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
17807 (VCENTER_BASELINE_OFFSET): Define here.
17808 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
17809 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
17810
17811 * xdisp.c: Consolidate gui-independent "glyph string" code here.
17812 (dump_glyph_string): Moved here.
17813 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
17814 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
17815 (fill_composite_glyph_string, fill_glyph_string)
17816 (fill_image_glyph_string, fill_stretch_glyph_string)
17817 (left_overwritten, left_overwriting, right_overwritten)
17818 (right_overwriting, get_char_face_and_encoding)
17819 (set_glyph_string_background_width, compute_overhangs_and_x)
17820 (append_glyph, append_composite_glyph, produce_image_glyph)
17821 (take_vertical_position_into_account, append_stretch_glyph)
17822 (produce_stretch_glyph): New generic functions (based on X version).
17823 Call platform specific functions through rif.
17824 (INIT_GLYPH_STRING): New macro, hides W32 details.
17825 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
17826 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
17827 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
17828 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
17829 (notice_overwritten_cursor):
17830 Generic functions exported to platform modules. Users changed.
17831
17832 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
17833 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
17834 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
17835 New macros for consolidated code.
17836
17837 * xterm.c: Remove consolidated defines and code.
17838 (x_per_char_metric, x_encode_char)
17839 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
17840 (x_redisplay_interface): Add new members.
17841
17842 * w32gui.h (Display): Add dummy typedef for consolidation.
17843 (XChar2b): Define alias for wchar_t for consolidation.
17844 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
17845
17846 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
17847 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
17848 New macros for consolidation.
17849
17850 * w32term.c: Remove consolidated defines and code.
17851 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
17852 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
17853 (w32_per_char_metric): Change font_type arg to int for RIF.
17854 (w32_encode_char): Return int according to RIF requirements.
17855 (w32_compute_glyph_string_overhangs): Adapt to RIF.
17856 (w32_get_glyph_overhangs): New function for RIF. Uses generic
17857 x_get_glyph_overhangs.
17858 (w32_redisplay_interface): Add new members.
17859
17860 * macgui.h (XChar2b): Move typedef here for consolidation.
17861 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
17862
17863 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
17864 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
17865 consolidation.
17866
17867 * macterm.c: Remove consolidated defines and code.
17868 (mac_per_char_metric): New function for RIF.
17869 (mac_encode_char): Adapt to new RIF requirements.
17870 (mac_compute_glyph_string_overhangs): Adapt for RIF.
17871 (x_redisplay_interface): Add new members.
17872
17873 2003-03-15 Stefan Monnier <monnier@cs.yale.edu>
17874
17875 * keymap.c (Vmenu_events): New var.
17876 (syms_of_keymap): Initialize it.
17877 (where_is_internal): Check more carefully what is a menu event.
17878
17879 2003-03-14 Richard M. Stallman <rms@gnu.org>
17880
17881 * lread.c (read1): After #!, exit loop on eof.
17882
17883 2003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17884
17885 * gtkutil.h: Add declaration for xg_frame_cleared.
17886
17887 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
17888
17889 * gtkutil.c (struct xg_last_sb_pos): New structure.
17890 (handle_fixed_child): New function.
17891 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
17892 and force a redraw on them.
17893 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
17894 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
17895 so we can avoid unneeded redraws.
17896 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
17897 and force a redraw on the scroll bar.
17898 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
17899 if xg_last_sb_pos shows the positions are up to date.
17900 (xg_frame_cleared): New function.
17901
17902 2003-03-13 Kenichi Handa <handa@m17n.org>
17903
17904 * coding.c (Fdetect_coding_region): Fix docstring.
17905 (Fdetect_coding_string): Fix docstring.
17906
17907 2003-03-13 Andreas Schwab <schwab@suse.de>
17908
17909 * gtkutil.c: Add prototype for create_menus.
17910
17911 * data.c (long_to_cons): Fix type of top.
17912
17913 * xselect.c (selection_data_to_lisp_data): Use int instead of
17914 long for an integer of size 4.
17915
17916 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
17917 (xg_tool_bar_help_callback): Likewise.
17918
17919 2003-03-12 Andreas Schwab <schwab@suse.de>
17920
17921 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
17922
17923 2003-03-12 Kim F. Storm <storm@cua.dk>
17924
17925 The following changes consolidate the fringe handling from
17926 xterm.c, w32term.c, and macterm.c into xdisp.c.
17927
17928 * xdisp.c: Consolidate fringe handling code here.
17929 (left_bits, right_bits, continued_bits, continuation_bits)
17930 (ov_bits, zv_bits): Define fringe bitmaps.
17931 (fringe_bitmaps): New array holding fringe bitmaps.
17932 (draw_fringe_bitmap): Draw a specific bitmap; call display
17933 specific drawing routine via rif->draw_fringe_bitmap.
17934 (draw_row_fringe_bitmaps): Generic replacement for
17935 x_draw_row_fringe_bitmaps; all callers changed.
17936 (compute_fringe_widths): Generic replacement for
17937 x_compute_fringe_widths; all callers changed.
17938
17939 * dispextern.h (enum fringe_bitmap_type): Define here.
17940 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
17941 (fringe_bitmaps): Declare extern.
17942 (struct redisplay_interface): New member draw_fringe_bitmap.
17943 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
17944
17945 * xterm.c: Remove generic fringe code.
17946 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
17947 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
17948
17949 * w32term.c: Remove generic fringe code.
17950 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
17951 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
17952
17953 * macterm.c: Remove generic fringe code.
17954 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
17955 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
17956
17957 2003-03-11 Stefan Monnier <monnier@cs.yale.edu>
17958
17959 * print.c (Fprin1_to_string): Return unibyte string if possible.
17960
17961 2003-03-09 David Kastrup <dak@gnu.org>
17962
17963 * process.c (read_process_output): We have allocated enough space
17964 for readmax and carryover, so actually use the alloted space.
17965
17966 2003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17967
17968 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
17969 toolkit scrollbar click.
17970
17971 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
17972 for USE_GTK.
17973 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
17974 also.
17975 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
17976 scrollbar and control is pressed, call x_scroll_bar_handle_click.
17977
17978 * gtkutil.h (xg_get_scroll_id_for_window): Declare.
17979
17980 * gtkutil.c (xg_get_scroll_id_for_window): New function.
17981 (xg_tool_bar_item_expose_callback): New function.
17982 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
17983 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
17984 on the tool bar widget.
17985 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
17986 to expose on the tool bar item widgets.
17987
17988 2003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17989
17990 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
17991 struct image* when deciding to update (struct image* may have been
17992 deleted from the image cache).
17993
17994 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
17995 the event isn't for a frame (i.e. for dialogs).
17996
17997 2003-03-07 Kenichi Handa <handa@m17n.org>
17998
17999 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
18000 composition components reaches the limit, terminate composing.
18001 (COMPOSITION_OK): New macro.
18002 (detect_coding_iso2022): Use it if an escape sequence for
18003 composition is found.
18004 (coding_restore_composition): Adjust the number of composition
18005 components if it is not sane.
18006
18007 2003-03-06 Juanma Barranquero <lektu@terra.es>
18008
18009 * w32term.h (struct w32_display_info): Add xrdb member to support
18010 passing resources via -xrm on Windows.
18011
18012 * w32term.c (w32_make_rdb): New function.
18013 (w32_term_init): Use it to initialize xrdb member of w32_display_info
18014 struct. Delete leftover code.
18015
18016 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
18017 for resources passed on the command line.
18018
18019 * w32reg.c (w32_get_rdb_resource): New function.
18020 (x_get_string_resource): Use it, so resources passed with -xrm
18021 supercede the ones in the registry.
18022
18023 2003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18024
18025 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
18026 instead of x_top_window_to_frame.
18027
18028 2003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18029
18030 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
18031 when restarting Emacs.
18032
18033 2003-03-03 Richard M. Stallman <rms@gnu.org>
18034
18035 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
18036 to run kill-buffer-query-functions.
18037 (Qkill_buffer_query_functions): New var.
18038 (syms_of_buffer): Init and staticpro it.
18039
18040 2003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18041
18042 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
18043
18044 2003-02-25 Kim F. Storm <storm@cua.dk>
18045
18046 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
18047 If centering point failed to make whole line visible and vscroll
18048 is non-zero, disable vscroll and try centering point again.
18049
18050 * lread.c (read1): Accept `single space' syntax like (? x).
18051
18052 2003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18053
18054 * keyboard.c (cancel_hourglass_unwind): Surround with
18055 #ifdef HAVE_X_WINDOWS
18056
18057 2003-02-25 Kenichi Handa <handa@m17n.org>
18058
18059 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
18060 process only when "subprocesses" is defined.
18061
18062 2003-02-24 Stefan Monnier <monnier@cs.yale.edu>
18063
18064 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
18065
18066 2003-02-24 Juanma Barranquero <lektu@terra.es>
18067
18068 * callint.c (fix_command): Declare as static void and move before
18069 Fcall_interactively.
18070
18071 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
18072 (syms_of_xdisp): Don't initialize Qwhen.
18073
18074 2003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18075
18076 * keyboard.c (cancel_hourglass_unwind): New function.
18077 (command_loop_1): Cancel hourglass with unwind-protect.
18078
18079 2003-02-23 Richard M. Stallman <rms@gnu.org>
18080
18081 * callint.c (fix_command): New subroutine, from Fcall_interactively.
18082 Detect (when ... (region-beginning)) etc.
18083 (Fcall_interactively): Call fix_command.
18084 (Qif, Qwhen): New variables.
18085 (syms_of_callint): Init and staticpro them.
18086
18087 * regex.c (print_partial_compiled_pattern): Output to stderr.
18088
18089 2003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
18090
18091 * dired.c (directory_files_internal): Don't expand directory.
18092 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
18093 instead. From Lars Hansen <larsh@math.ku.dk>.
18094
18095 2003-02-22 Stefan Monnier <monnier@cs.yale.edu>
18096
18097 * fns.c (string_to_multibyte): Remove unused var i.
18098 (Flanginfo): Fix int/Lisp_Object mixup.
18099 (void_call2): New fun.
18100 (Fmap_char_table): Use it in place of call2.
18101
18102 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
18103
18104 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
18105
18106 * keymap.c (copy_keymap_1): Make it static.
18107
18108 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
18109
18110 2003-02-22 David Ponce <david@dponce.com>
18111
18112 * lread.c (Fload): Don't check STRING_MULTIBYTE.
18113
18114 2003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18115
18116 * process.h: Removed subtty field from struct Lisp_Process.
18117
18118 * process.c (create_process): Remove setting of subtty.
18119 (emacs_get_tty_pgrp): New function.
18120 (Fprocess_running_child_p, process_send_signal):
18121 Call emacs_get_tty_pgrp instead of ioctl.
18122 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
18123
18124 2003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
18125
18126 * keymap.c (Fdefine_key): Doc fix.
18127
18128 2003-02-21 Juanma Barranquero <lektu@terra.es>
18129
18130 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
18131
18132 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
18133 POLLING_PROBLEM_IN_SELECT.
18134
18135 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
18136 Delete #undef of POLLING_PROBLEM_IN_SELECT.
18137
18138 * s/hpux10-20.h: New file.
18139
18140 * process.c (wait_reading_process_input):
18141 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
18142
18143 2003-02-20 Kenichi Handa <handa@m17n.org>
18144
18145 * fontset.c (check_fontset_name): If NAME is nil, return the
18146 default fontset.
18147 (override_font_info): New function.
18148 (Fset_fontset_font): Document that NAME nil means the default fontset.
18149 (Ffontset_info): If FONTSET is not the default fontset, merge
18150 FONTSET onto the copy of the default fontset, and work on that
18151 copy. Document that NAME nil means the default fontset.
18152 (Ffontset_font): Document that NAME nil means the default fontset.
18153
18154 * process.c (setup_process_coding_systems): If the process's
18155 in/out descriptor is -1, do nothing.
18156
18157 2003-02-19 Andreas Schwab <schwab@suse.de>
18158
18159 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
18160 Add prototypes.
18161
18162 2003-02-19 Kenichi Handa <handa@m17n.org>
18163
18164 * xfaces.c (try_alternative_families): Try all scalable fonts if
18165 Vscalable_fonts_allowed is not Qt.
18166
18167 2003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18168
18169 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
18170
18171 2003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18172
18173 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
18174 names.
18175
18176 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
18177 (sorted_font_list): Move allocation of struct font_name to
18178 x_face_list_fonts.
18179 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
18180 (Fx_list_fonts): Set maxnames to -1 to get all font names.
18181
18182 2003-02-18 Kim F. Storm <storm@cua.dk>
18183
18184 * lread.c (read1): Fix last change.
18185 "`" is not always special. Allow "?" after a character constant.
18186
18187 2003-02-18 Andrew Choi <akochoi@shaw.ca>
18188
18189 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
18190
18191 2003-02-18 Andreas Schwab <schwab@suse.de>
18192
18193 * window.c (window_scroll_pixel_based): Move outside a
18194 multi-glyph character before setting new window start.
18195
18196 * xdisp.c (in_display_vector_p): New function.
18197 * dispextern.h (in_display_vector_p): Declare.
18198
18199 2003-02-18 Kim F. Storm <storm@cua.dk>
18200
18201 * lread.c (read1): Fix and relax read syntax.
18202 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
18203 Only recognize "," after dotted-pair dot if inside backquote.
18204 Never include "`" or "," (inside backquote) in a symbol.
18205 Allow dotted-pair dot after a character constant.
18206 Allow "`" and "," (inside backquote) after a character constant.
18207
18208 2003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18209
18210 * gtkutil.c (xg_tool_bar_expose_callback): New function.
18211 (xg_create_tool_bar): Force style of tool bar to be horizontal with
18212 icons. Set name of tool bar to emacs-toolbar.
18213 (update_frame_tool_bar): Connect expose event to
18214 xg_tool_bar_expose_callback.
18215
18216 2003-02-17 Richard M. Stallman <rms@gnu.org>
18217
18218 * keyboard.c (this_command_key_count_reset): New variable.
18219 Initiatize to 0 where this_command_key_count is set.
18220 (read_char): Save and restore this_command_key_count_reset
18221 around input method code.
18222 (read_char): If this_command_key_count_reset, echo reread commands.
18223 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
18224
18225 2003-02-17 Kenichi Handa <handa@m17n.org>
18226
18227 * fns.c (string_to_multibyte): Always return a multibyte string.
18228
18229 2003-02-16 Jason Rumney <jasonr@gnu.org>
18230
18231 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
18232 Negative max_fonts parameter means list all.
18233
18234 2003-02-14 Dave Love <fx@gnu.org>
18235
18236 * fns.c (Flanginfo): Doc fix.
18237
18238 2003-02-13 Kim F. Storm <storm@cua.dk>
18239
18240 * lread.c (read_escape): Interpret \s as a SPACE character, except
18241 for \s-X in a character constant which still is the super modifier.
18242 (read1): Signal an `invalid read syntax' error if a character
18243 constant is immediately followed by a digit or symbol character.
18244
18245 * search.c (Fmatch_data): Doc fix. Explicitly state that
18246 match-data is undefined if last search failed.
18247
18248 * keymap.c (Fcommand_remapping): Rename from Fremap_command.
18249 All uses changed.
18250
18251 2003-02-12 Juanma Barranquero <lektu@terra.es>
18252
18253 * eval.c (Fdefmacro): Fix typo.
18254
18255 2003-02-12 Kim F. Storm <storm@cua.dk>
18256
18257 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
18258 macro is a string, convert meta modifiers in string when copying
18259 the string into a vector.
18260
18261 2003-02-11 Kim F. Storm <storm@cua.dk>
18262
18263 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
18264
18265 2003-02-11 Kenichi Handa <handa@m17n.org>
18266
18267 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
18268
18269 2003-02-10 Kim F. Storm <storm@cua.dk>
18270
18271 * process.c: Doc fixes.
18272 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
18273
18274 2003-02-10 Kenichi Handa <handa@m17n.org>
18275
18276 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
18277
18278 * process.c (QCfilter_multibyte): New variable.
18279 (setup_process_coding_systems): New function.
18280 (Fset_process_buffer, Fset_process_filter):
18281 Call setup_process_coding_systems.
18282 (Fstart_process): Initialize the member `filter_multibyte' of
18283 struct Lisp_Process.
18284 (create_process): Call setup_process_coding_systems.
18285 (Fmake_network_process): New keyward `:filter-multibyte'.
18286 Initialize the member `filter_multibyte' of struct Lisp_Process.
18287 Call setup_process_coding_systems.
18288 (server_accept_connection): Call setup_process_coding_systems.
18289 (read_process_output): If the process has a filter, decide the
18290 multibyteness of a string to given to the filter by
18291 `filter_multibyte' member of the process. If the process doesn't
18292 have a filter and the result of conversion is unibyte, use
18293 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
18294 multibyte form.
18295 (Fset_process_coding_system): Call setup_process_coding_systems.
18296 (Fset_process_filter_multibyte): New function.
18297 (Fprocess_filter_multibyte_p): New function.
18298 (syms_of_process): Intern and staticpro QCfilter_multibyte.
18299 Defsubr Sset_process_filter_multibyte and
18300 Sprocess_filter_multibyte_p.
18301
18302 * process.h (struct Lisp_Process): New member filter_multibyte.
18303
18304 * lisp.h (setup_process_coding_systems): Add prototype.
18305
18306 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
18307 process, update coding systems for the process.
18308
18309 2003-02-09 Kenichi Handa <handa@m17n.org>
18310
18311 * fns.c (string_to_multibyte): New function.
18312 (Fstring_to_multibyte): New function.
18313 (syms_of_fns): Defsubr it.
18314
18315 2003-02-08 Andreas Schwab <schwab@suse.de>
18316
18317 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
18318 instead of the substitution.
18319
18320 2003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18321
18322 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
18323
18324 * xmenu.c (menu_position_func): Adjust menu popup position so that
18325 the menu is fully visible.
18326
18327 2003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18328
18329 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
18330 (x_make_frame_invisible, x_wm_set_icon_position):
18331 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
18332
18333 * xfns.c (x_set_name, x_set_title): Ditto.
18334
18335 2003-02-04 Richard M. Stallman <rms@gnu.org>
18336
18337 * keyboard.c (echo_now): Update before_command_echo_length.
18338 (Freset_this_command_lengths): Reset this_command_key_count etc.
18339 immediately rather than arranging to do it later.
18340 (before_command_key_count_1, before_command_echo_length_1)
18341 (before_command_restore_flag): Vars deleted.
18342 (add_command_key): Don't handle before_command_restore_flag.
18343 (read_char, record_menu_key): Don't update before_command_key_count or
18344 before_command_echo_length.
18345 (read_char): Don't handle before_command_restore_flag.
18346
18347 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
18348 in direct-output clauses if it wouldn't be called in the ordinary case.
18349
18350 2003-02-04 Kim F. Storm <storm@cua.dk>
18351
18352 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
18353
18354 2003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18355
18356 * gtkutil.c (remove_from_container): Copying list is not needed.
18357 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
18358 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
18359 on list returned from gtk_container_get_children to avoid memory leak.
18360
18361 2003-02-01 Jason Rumney <jasonr@gnu.org>
18362
18363 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
18364 local malloc.
18365 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
18366 definitions in xpm.h.
18367 (init_xpm_functions): New function.
18368 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
18369 (init_external_image_libraries): Try to load libXpm.dll.
18370
18371 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
18372 timestamp.
18373
18374 2003-01-31 Dave Love <fx@gnu.org>
18375
18376 * syntax.c (Fskip_chars_forward)
18377 (open-paren-in-column-0-is-defun-start): Doc fix.
18378
18379 2003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
18380
18381 * fileio.c: Support // at start of name for Cygwin (just added proper
18382 preprocessor tests).
18383
18384 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
18385
18386 * Makefile.in: Use @EXEEXT@ for Cygwin.
18387
18388 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
18389
18390 * s/cygwin.h: Added for Cygwin port.
18391
18392 2003-01-31 Juanma Barranquero <lektu@terra.es>
18393
18394 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
18395 when including gif_lib.h.
18396 (init_gif_functions, init_tiff_functions): New functions.
18397 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
18398 Windows. Disable color table lookups. Call library functions
18399 through pointers determined at runtime.
18400 (init_external_image_libraries): Try to load libungif.dll and
18401 libtiff.dll.
18402
18403 2003-01-31 Kenichi Handa <handa@m17n.org>
18404
18405 * xdisp.c (SKIP_GLYPHS): New macro.
18406 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
18407
18408 2003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18409
18410 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
18411
18412 2003-01-30 Dave Love <fx@gnu.org>
18413
18414 * alloc.c (Vgc_elapsed, gcs_done): New variables.
18415 (Fgarbage_collect): Use them.
18416 (init_alloc, syms_of_alloc): Set them up.
18417
18418 2003-01-30 Juanma Barranquero <lektu@terra.es>
18419
18420 * w32fns.c (init_external_image_libraries): Add missing operator.
18421
18422 2003-01-29 Jason Rumney <jasonr@gnu.org>
18423
18424 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
18425 an alternative name for jpeg.dll.
18426
18427 2003-01-29 Kenichi Handa <handa@m17n.org>
18428
18429 * xdisp.c (set_cursor_from_row): Pay attention to string display
18430 properties.
18431
18432 2003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
18433
18434 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
18435 <escape>.
18436 (keycode_to_xkeysym_table): Reformat and add more comments.
18437 (XTread_socket): Drop special case for backspace.
18438
18439 2003-01-28 Andrew Choi <akochoi@shaw.ca>
18440
18441 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
18442 values in old-style RGB specs.
18443
18444 2003-01-27 Juanma Barranquero <lektu@terra.es>
18445
18446 * w32fns.c (init_external_image_libraries): Try alternate names for the
18447 jpeg dll.
18448
18449 2003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18450
18451 * gtkutil.c (create_dialog, xg_separator_p)
18452 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
18453 before calling strcmp or strlen.
18454
18455 2003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18456
18457 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
18458 and handle image load failure.
18459
18460 2003-01-26 Jason Rumney <jasonr@gnu.org>
18461
18462 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
18463 New functions.
18464 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
18465 Disable color table lookups. Call jpeg library functions
18466 through pointers determined at runtime.
18467 (init_external_image_libraries): Try to load jpeg.dll.
18468
18469 2003-01-25 Richard M. Stallman <rms@gnu.org>
18470
18471 * lisp.h: Declare format2 instead of format1.
18472
18473 * fileio.c (barf_or_query_if_file_exists):
18474 Call format2 instead of format1.
18475
18476 * editfns.c (format2): New function, replaces format1
18477 but takes exactly two Lisp Objects as format args.
18478
18479 * buffer.c (Fkill_buffer): Call format2 instead of format1.
18480
18481 2003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18482
18483 * xterm.h: Change to return value of x_dispatch_event to int.
18484
18485 * xterm.c (x_filter_event): New function.
18486 (event_handler_gdk, XTread_socket): Call x_filter_event.
18487 (x_dispatch_event): Change to return value of finish.
18488 (event_handler_gdk): Use return value from x_dispatch_event.
18489
18490 * xfns.c (x_window): Call create_frame_xic for GTK version to
18491 initialize input methods.
18492
18493 * gtkutil.h: Add (void) prototypes.
18494
18495 * gtkutil.c (create_menus): Remove code that puts the help menu to
18496 the right.
18497
18498 2003-01-25 Jason Rumney <jasonr@gnu.org>
18499
18500 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
18501 [HAVE_PNG]: Sync with xfns.c version.
18502 (png_load): Adjust colors for Windows. Use Windows
18503 bitmaps. Disable color table lookups.
18504 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
18505 (init_png_functions): New function.
18506 (png_read_from_memory, png_load): Call png library functions
18507 through pointers determined at runtime.
18508 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
18509 (init_external_image_libraries): New function.
18510 (init_xfns): Call it.
18511
18512 2003-01-24 Andreas Schwab <schwab@suse.de>
18513
18514 * minibuf.c (Fminibuffer_message): Verify type of parameter.
18515
18516 2003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18517
18518 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
18519 of static initializer.
18520
18521 2003-01-24 Dave Love <fx@gnu.org>
18522
18523 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
18524 architectures.
18525
18526 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
18527 Use __alignof__.
18528
18529 2003-01-24 Kenichi Handa <handa@m17n.org>
18530
18531 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
18532 It it is nonzero, don't pretend that an invisible area doesn't exist.
18533 (command_loop_1): Call adjust_point_for_property with proper
18534 second arg.
18535
18536 2003-01-22 Jason Rumney <jasonr@gnu.org>
18537
18538 Sync changes with xterm.c and xfns.c.
18539
18540 * w32term.c (x_draw_glyph_string_foreground)
18541 (x_draw_composite_glyph_string_foreground): Implement overstriking.
18542
18543 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
18544 phys_cursor's hpos is overwritten. This is still not completely
18545 correct, as it doesn't really make sense to use hpos at all to
18546 get the cursor glyph (as that is relative to the width of the
18547 characters on the line, which may have changed during the update).
18548
18549 * w32term.c (notice_overwritten_cursor): Handle the special case
18550 of the cursor being in the first blank non-text line at the
18551 end of a window.
18552
18553 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
18554 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
18555 Compute from the x position returned by x_draw_glyphs.
18556
18557 (x_display_and_set_cursor): Don't set phys_cursor_width here,
18558 except for NO_CURSOR and system caret, to make phys_cursor_width
18559 contain what its name suggests.
18560 (notice_overwritten_cursor): Consider the cursor image erased if
18561 the output area intersects the cursor image in y-direction.
18562
18563 * w32term.c (note_mode_line_or_margin_highlight): Rename from
18564 note_mode_line_highlight and extend.
18565
18566 * w32term.c (last_window): New variable.
18567 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
18568 (note_mouse_movement): Remove reimplemented code in #if 0.
18569
18570 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
18571 not update_mode_lines, and always set it to 1.
18572
18573 2003-01-21 Jason Rumney <jasonr@gnu.org>
18574
18575 * w32fns.c (IDC_HAND): Define it if system headers don't.
18576
18577 2003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
18578
18579 * w32term.h (struct w32_output): New member hand_cursor.
18580 (WM_EMACS_SETCURSOR): New message definition.
18581
18582 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
18583 function w32_define_cursor.
18584 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
18585 position, change member name output_data.x to output_data.w32 and
18586 add function w32_define_cursor.
18587 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
18588 and change member name output_data.x to output_data.w32.
18589 (w32_initialize_display_info):
18590 Setup dpyinfo->vertical_scroll_bar_cursor.
18591
18592 * w32fns.c (Vx_hand_shape): New variable.
18593 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
18594 WM_EMACS_SETCURSOR.
18595 (x-create-frame): Setup Cursor types.
18596
18597 2003-01-21 David Ponce <david@dponce.com>
18598
18599 * w32term.c (w32_encode_char): For DIM=1 charset, set
18600 ccl->reg[2] to -1 before calling ccl_driver.
18601 (Sync. with xterm.c x_encode_char change by Kenichi Handa
18602 <handa@m17n.org> on 2002-09-30.)
18603 (w32_draw_relief_rect): Declare all args.
18604 (w32_define_cursor): New.
18605
18606 * w32fns.c (w32_load_cursor): New function.
18607 (w32_init_class): Use it.
18608 (x_put_x_image): Declare all args.
18609
18610 2003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk>
18611
18612 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
18613
18614 2003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18615
18616 * gtkutil.c: Must include stdio.h before termhooks.h
18617
18618 2003-01-21 Dave Love <fx@gnu.org>
18619
18620 * alloc.c (Fgc_status): Print zombie list.
18621 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
18622 Fix assignment of zombies.
18623 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
18624 Don't take car of non-cons.
18625
18626 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
18627
18628 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
18629
18630 2003-01-20 David Ponce <david@dponce.com>
18631
18632 * w32menu.c (digest_single_submenu): Declare all args.
18633
18634 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
18635 changes in xmenu.c:
18636
18637 (parse_single_submenu): Use individual keymap's prompt
18638 string as pane name, if there is one.
18639 (set_frame_menubar): Save menu_items_n_panes from each call to
18640 parse_single_submenu and use it when calling digest_single_submenu.
18641
18642 2003-01-20 Steven Tamm <steventamm@mac.com>
18643
18644 * macterm.c (XTread_socket): Check for valid, visible window
18645 before sending a scroll-wheel event.
18646
18647 2003-01-20 Richard M. Stallman <rms@gnu.org>
18648
18649 * xdisp.c (redisplay_window): If mini window's buffer is not
18650 a minibuffer, then redisplay it like other windows.
18651
18652 2003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18653
18654 * gtkutil.c (xg_create_frame_widgets): Check if there is an
18655 external tool bar before setting tool bar height.
18656
18657 2003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18658
18659 * xterm.c (handle_one_xevent): Surround popup_activated
18660 with #ifdef:s for non-toolkit version.
18661
18662 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
18663 (gtkutil.o): New file.
18664 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
18665 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
18666
18667 * gtkutil.c: New file for GTK version.
18668
18669 * gtkutil.h: New file for GTK version.
18670
18671 * xterm.h: Add xt_or_gtk_widget.
18672 Include gtk files for USE_GTK.
18673 (struct x_output): Add toolbar_height.
18674 (struct x_output): Add GTK widgets and Gdk size_hints.
18675 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
18676 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
18677 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
18678
18679 * xterm.c: Include gtkutil.h for USE_GTK.
18680 (free_frame_menubar): Declare extern void for USE_GTK.
18681 (note_mouse_highlight): Check popup_activated for USE_GTK.
18682 (xt_action_hook): Don't compile if USE_GTK.
18683 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
18684 (xg_scroll_callback): New function.
18685 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
18686 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
18687 for USE_GTK.
18688 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
18689 xg_show_scroll_bar for USE_GTK.
18690 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
18691 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
18692 (event_handler_gdk): New function for USE_GTK.
18693 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
18694 (handle_one_xevent): Make sure widget is mapped before
18695 calling x_real_positions for USE_GTK.
18696 (XTread_socket): Add GTK event loop for USE_GTK.
18697 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
18698 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
18699 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
18700 (x_iconify_frame): Add code for USE_GTK.
18701 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
18702 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
18703 is in gtkutil.c.
18704 (x_term_init): Add initialization for GTK.
18705 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
18706
18707 * xmenu.c: Include gtkutil.h for USE_GTK.
18708 (Fx_popup_menu): Use current position if x and y is NIL.
18709 (single_menu_item, single_menu_item, Fx_popup_dialog):
18710 Check for USE_GTK.
18711 (popup_widget_loop): New function for USE_GTK.
18712 (x_activate_menubar): Add code for USE_GTK.
18713 (popup_activate_callback, popup_deactivate_callback)
18714 (menu_highlight_callback, menubar_selection_callback):
18715 Add USE_GTK versions.
18716 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
18717 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
18718 (free_frame_menubar): Only compile if not USE_GTK. GTK version
18719 is in gtkutil.c.
18720 (popup_selection_callback): New version for USE_GTK.
18721 (create_and_show_popup_menu): New fuction, one USE_GTK version and
18722 one USE_X_TOOLKIT version.
18723 (xmenu_show): Call create_and_show_popup_menu.
18724 (dialog_selection_callback): New version for USE_GTK.
18725 (create_and_show_dialog): New fuction, one USE_GTK version and
18726 one USE_X_TOOLKIT version.
18727 (xdialog_show): Call create_and_show_dialog.
18728
18729 * xfns.c: Include gtkutil for USE_GTK.
18730 (x_window_to_frame, x_any_window_to_frame)
18731 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
18732 (x_top_window_to_frame): Add code for USE_GTK.
18733 (x_set_background_color): Call xg_set_background_color for GTK.
18734 (x_set_menu_bar_lines): Check for USE_GTK.
18735 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
18736 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
18737 (x_window): Call xg_create_frame_widgets for USE_GTK.
18738 (Fx_create_frame): Check for USE_GTK
18739 (Fx_file_dialog): New implementation for USE_GTK.
18740
18741 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
18742 (update_menu_bar): Add check for USE_GTK.
18743 (update_tool_bar): Add check for USE_GTK and external tool bar.
18744 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
18745 (redisplay_internal): Add check for USE_GTK and popup_activated.
18746 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
18747 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
18748 (display_menu_bar): Add check for USE_GTK
18749
18750 * lisp.h (Vx_resource_name): Declare extern.
18751
18752 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
18753 for USE_GTK.
18754 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
18755
18756 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
18757 (FRAME_EXTERNAL_TOOL_BAR): New macro.
18758 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
18759
18760 * fileio.c (Fread_file_name): Add check for USE_GTK.
18761
18762 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
18763 Add check for USE_GTK.
18764
18765 * config.in: Added HAVE_GTK
18766
18767 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
18768
18769 2003-01-18 Stefan Monnier <monnier@cs.yale.edu>
18770
18771 * charset.h (Funibyte_char_to_multibyte): Export.
18772
18773 2003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18774
18775 * xmenu.c (mouse_position_for_popup): New function.
18776 (Fx_popup_menu): Call mouse_position_for_popup for X and
18777 mouse_position_hook for others.
18778
18779 2003-01-17 Kim F. Storm <storm@cua.dk>
18780
18781 * editfns.c (Finsert): Mention `string-make-multibyte' and
18782 `string-as-multibyte' in doc string.
18783
18784 2003-01-17 Kenichi Handa <handa@m17n.org>
18785
18786 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
18787
18788 * editfns.c (Fformat): Convert an unibyte char argument that is
18789 formatted by "%c" to multibyte if the total result must be a
18790 multibyte string.
18791
18792 2003-01-16 Kim F. Storm <storm@cua.dk>
18793
18794 * process.c (set-process-filter): Document unibyte/multibyte-ness
18795 of string argument.
18796
18797 2003-01-16 Kenichi Handa <handa@m17n.org>
18798
18799 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
18800
18801 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
18802 (re_search_2): Likewise.
18803
18804 2003-01-15 Kenichi Handa <handa@m17n.org>
18805
18806 * xdisp.c (message_dolog): Fix bug of the case that *Message*
18807 buffer is unibyte.
18808
18809 2003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
18810
18811 * fns.c (Fsubstring): Clarify doc string.
18812
18813 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
18814 (Fprevious_char_property_change)
18815 (Fnext_single_char_property_change)
18816 (Fprevious_single_char_property_change, Fnext_property_change)
18817 (Fnext_single_property_change, Fprevious_property_change)
18818 (Fprevious_single_property_change, Fadd_text_properties)
18819 (Fput_text_property, Fset_text_properties)
18820 (Fremove_text_properties, Fremove_list_of_text_properties)
18821 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
18822
18823 2003-01-14 Kim F. Storm <storm@cua.dk>
18824
18825 * process.h (struct Lisp_Process): New member plist replaces old
18826 member private_vars. All uses changed.
18827
18828 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
18829 (QCplist): Rename from QCvars. Change all uses.
18830 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
18831 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
18832 (syms_of_process): Intern, staticpro, defsubr these.
18833 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
18834
18835 2003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
18836
18837 * m/delta.h: Remove (obsolete).
18838
18839 2003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
18840
18841 * fileio.c (Fdelete_directory, Fdelete_file): Document the
18842 behaviour in front of symlinks.
18843 (Fdelete_file): Raise an error on directories.
18844
18845 2003-01-13 Dave Love <fx@gnu.org>
18846
18847 * fns.c (Freverse): Use QUIT.
18848
18849 2003-01-13 Richard M. Stallman <rms@gnu.org>
18850
18851 * minibuf.c (minibuffer_completion_contents):
18852 Error if point is inside prompt.
18853
18854 * keyboard.c (command_loop_1): Don't redisplay directly
18855 if there's a post-command-hook.
18856
18857 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
18858 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
18859
18860 2003-01-12 Kim F. Storm <storm@cua.dk>
18861
18862 * process.h (struct Lisp_Process): New member private_vars.
18863
18864 * process.c (QCvars): New variable.
18865 (syms_of_process): Intern and staticpro it.
18866 (Fset_process_contact): Removed function.
18867 (Fprocess_variable, Fset_process_variable): New functions.
18868 (syms_of_process): Defsubr them.
18869 (Fstart_process): Initialize private_vars plist to nil.
18870 (Fmake_network_process): New arg :vars to setup the private
18871 variables for new network process.
18872 (server_accept_connection): Copy server's private variables to
18873 client process.
18874
18875 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
18876 crashes). Code rewritten and simplified. Now directly aligns the
18877 pointer and recalculates pure_bytes_used, rather than aligning the
18878 size and adjusting the pointer.
18879
18880 2003-01-11 Kim F. Storm <storm@cua.dk>
18881
18882 * process.c (Fset_process_contact): New function.
18883 (syms_of_process): defsubr it.
18884 (make-network-process): Update doc.
18885
18886 2003-01-10 Andreas Schwab <schwab@suse.de>
18887
18888 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
18889 Reported by Berthold Gunreben <b.gunreben@web.de>.
18890
18891 2003-01-10 Dave Love <fx@gnu.org>
18892
18893 * composite.c (syms_of_composite): Make composition_hash_table weak.
18894
18895 2003-01-09 Kim F. Storm <storm@cua.dk>
18896
18897 * process.c (Fmake_network_process): Convert new port number
18898 to host byte order for `:service t' case. From Mario Lang.
18899
18900 2003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
18901
18902 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
18903 instead of XtAppProcessEvent.
18904
18905 * xterm.c (handle_one_xevent): New function.
18906 (x_dispatch_event): New function.
18907 (XTread_socket): Call handle_one_xevent.
18908
18909 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
18910
18911 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
18912 call XQueryPointer to get coordinates.
18913 (popup_get_selection): Do not set popup_activated_flag to zero,
18914 let popup_deactivate_callback do that. Needed for Motif.
18915 Call x_dispatch_event instead of XtDispatchEvent.
18916 (xmenu_show): Calculate root coordinate from frame top/left position.
18917
18918 2003-01-08 Kim F. Storm <storm@cua.dk>
18919
18920 * process.c (server_accept_connection): Fix recording of new
18921 connection's local address in :local property of contact info.
18922 (Fmake_network_process): Record local network address for new
18923 client processes in :local property of contact info.
18924 (format-network-address): Add arg OMIT-PORT. Change callers.
18925
18926 2003-01-07 Dave Love <fx@gnu.org>
18927
18928 * Makefile.in (fns.o): Depend on coding.h.
18929
18930 2003-01-06 Dave Love <fx@gnu.org>
18931
18932 * fns.c: Include coding.h. Use POINTER_TYPE*, not void*.
18933 (Vlocale_coding_system): Declare.
18934 (Qcodeset, Qdays, Qmonths, Qpaper): New.
18935 (Flanginfo): New.
18936 (syms_of_fns): Initialize new stuff.
18937
18938 2003-01-07 Markus Rost <rost@math.ohio-state.edu>
18939
18940 * minibuf.c (Fread_variable): Doc fix.
18941
18942 * eval.c (Fuser_variable_p): Doc change. For custom variables,
18943 use the same test as for custom-variable-p.
18944
18945 2003-01-05 Richard M. Stallman <rms@gnu.org>
18946
18947 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
18948 Count LAST_LINE_MISFIT in scroll margin for end of window.
18949 Move label too_near_end before setting SCROLL_MARGIN_POS.
18950 Set LAST_LINE_MISFIT before jumping there.
18951
18952 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
18953 scroll_conservatively case. If scrolling that much doesn't change
18954 STARTP, move it down one line.
18955
18956 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
18957 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
18958
18959 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
18960 selected frame.
18961
18962 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
18963 (syms_of_keymap): Staticpro them.
18964 (Fapropos_internal): Initialize them and clear them out.
18965 Don't GCPRO them.
18966
18967 * buffer.c (syms_of_buffer) <scroll-up|down-aggressively>: Doc fixes.
18968
18969 * lisp.h: New misc type Lisp_Save_Value.
18970 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
18971 (XSAVE_VALUE): New macro.
18972 (struct Lisp_Save_Value): New data type.
18973 (union Lisp_Misc): Add u_save_value alternative.
18974 (make_save_value): Declare.
18975
18976 * alloc.c (make_save_value): New function.
18977
18978 * xterm.c (x_catch_errors): Save dpy using make_save_value.
18979 (x_catch_errors_unwind): Call XSync.
18980
18981 2003-01-01 Richard M. Stallman <rms@gnu.org>
18982
18983 * window.c (window_scroll_pixel_based): Partially undo last change.
18984
18985 * keyboard.c (command_loop_1): Call adjust_point_for_property
18986 in direct action cases for Qforward_char and Qbackward_char.
18987 Set already_adjusted so it won't be done twice.
18988
18989 2002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk>
18990
18991 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
18992 type definition of size_t.
18993
18994 2003-01-02 Steven Tamm <steventamm@mac.com>
18995
18996 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
18997 distinguish Carbon GUI builds from X11 builds on darwin.
18998
18999 2002-12-30 Steven Tamm <steventamm@mac.com>
19000
19001 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
19002 to default to t.
19003
19004 2002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
19005
19006 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
19007
19008 2002-12-28 Steven Tamm <steventamm@mac.com>
19009
19010 * Makefile.in (macosx-bundle): Fix Mac OS X/Carbon port to
19011 allow building in a different directory than source. Uses some
19012 GNU Make extensions, but there is no other make on Mac OS X.
19013
19014 2002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
19015
19016 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
19017 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
19018 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
19019 (Fstring_to_number): Mention the returned value in the doc strings.
19020
19021 2002-12-23 Richard M. Stallman <rms@gnu.org>
19022
19023 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
19024 <scroll-down-aggressively>: Doc fix.
19025
19026 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
19027 string as pane name, if there is one.
19028 (set_frame_menubar): Save menu_items_n_panes from each call to
19029 parse_single_submenu and use it when calling digest_single_submenu.
19030
19031 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
19032 Don't try to make last line fully visible if it is past end of window.
19033
19034 2002-12-22 Steven Tamm <steventamm@mac.com>
19035
19036 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
19037 (mac_menu_show): Add support for hierarchical popup menus.
19038 (add_menu_item): Remove indentation support.
19039 (fill_submenu, fill_menu): Create hierarchical menus
19040 instead of using indentation.
19041
19042 2002-12-22 Richard M. Stallman <rms@gnu.org>
19043
19044 * xdisp.c (try_cursor_movement): Don't call try_window here.
19045 (redisplay_window): Never redisplay minibuffer when inactive.
19046
19047 * window.c (select_window_1): Undo 9/21 change.
19048
19049 2002-12-22 Steven Tamm <steventamm@mac.com>
19050
19051 * macterm.c (XTread_socket): Call KeyTranslate for control and
19052 meta to deal correctly shifted non-alpha characters, like C-S-5
19053 being treated like C-%. Do not look for shift key to deal
19054 with masking off control-key with mac-reverse-ctrl-meta.
19055
19056 2002-12-21 Richard M. Stallman <rms@gnu.org>
19057
19058 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
19059 If it is non-nil, run timers. Use an unwind-protect to requeue
19060 the events that were read ahead.
19061 (popup_get_selection_unwind): New subroutine.
19062 (popup_get_selection_queue): File-scope variable now holds that queue.
19063 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
19064 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
19065 Use an unwind-protect to pop down the dialog box.
19066 (xdialog_show_unwind): New subroutine implements that.
19067
19068 * xdisp.c (row_containing_pos): Change exit test using last_y.
19069 (try_window_id): Abort if row_containing_pos returns null.
19070
19071 * lread.c (load_error_handler): New function.
19072 (Fload): Handle errors in Fsubstitute_in_file_name.
19073 Don't expect Fsignal to return.
19074
19075 * eval.c: Errors and throws work right with interrupt blocking.
19076 (struct catchtag): New elt interrupt_input_blocked.
19077 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
19078 (internal_catch, Fcondition_case, internal_condition_case)
19079 (internal_condition_case_1, internal_condition_case_2): Save it.
19080 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
19081
19082 * editfns.c (Fformat): Add parens.
19083
19084 * dired.c (file_name_completion): Fix that change.
19085 Delete special quit-handling code; just use QUIT.
19086
19087 2002-12-21 Tak Ota <Takaaki.Ota@am.sony.com>
19088
19089 * dired.c (file_name_completion): Close directory on error
19090 just as in directory_files_internal.
19091
19092 2002-12-19 David Kastrup <David.Kastrup@t-online.de>
19093
19094 * window.c (Fset_window_configuration): Set old_point to correct
19095 value when new_current_buffer == current_buffer.
19096
19097 2002-12-17 Ben Key <bkey1@tampabay.rr.com>
19098
19099 Revisited my earlier fix for the following entry in etc/PROBLEMS:
19100 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
19101 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
19102
19103 These changes were in part based upon suggestions made by Peter
19104 'Luna' Runestig [peter@runestig.com].
19105
19106 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token)
19107 (g_b_init_get_token_information, g_b_init_lookup_account_sid)
19108 (g_b_init_get_sid_identifier_authority ): Add several static
19109 global variables.
19110
19111 * w32.c (globals_of_w32): New function. Used to initialize those
19112 global variables that must always be initialized on startup even
19113 when the global variable initialized is non zero. Its primary
19114 purpose at this time is to set the global variables
19115 g_b_init_is_windows_9x, g_b_init_open_process_token,
19116 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
19117 g_b_init_get_sid_identifier_authority to 0 on startup.
19118 Called from main.
19119
19120 * w32.c (is_windows_9x): Perform initialization only if
19121 g_b_init_is_windows_9x is equal to 0. On initialization set
19122 g_b_init_is_windows_9x equal to 1.
19123
19124 * w32.c (open_process_token): Perform initialization only if
19125 g_b_init_open_process_token is equal to 0. On initialization set
19126 g_b_init_open_process_token equal to 1.
19127
19128 * w32.c (get_token_information): Perform initialization only if
19129 g_b_init_get_token_information is equal to 0. On initialization
19130 set g_b_init_get_token_information equal to 1.
19131
19132 * w32.c (lookup_account_sid): Perform initialization only if
19133 g_b_init_lookup_account_sid is equal to 0. On initialization
19134 set g_b_init_lookup_account_sid equal to 1.
19135
19136 * w32.c (get_sid_identifier_authority): Perform initialization
19137 only if g_b_init_get_sid_identifier_authority is equal to 0.
19138 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
19139
19140 * w32fns.c (globals_of_w32fns): New function. Used to initialize
19141 those global variables that must always be initialized on startup
19142 even when the global variable initialized is non zero.
19143 Its primary purpose at this time is to initialize the global variable
19144 track_mouse_event_fn.
19145
19146 * w32fns.c (w32_wnd_proc): Remove initialization of
19147 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
19148
19149 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
19150
19151 * w32menu.c (globals_of_w32menu): New function. Used to
19152 initialize those global variables that must always be initialized
19153 on startup even when the global variable initialized is non zero.
19154 Its primary purpose at this time is to initialize the global
19155 variables get_menu_item_info and set_menu_item_info.
19156
19157 * w32menu.c (initialize_frame_menubar): Remove initialization of
19158 get_menu_item_info and set_menu_item_info.
19159
19160 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
19161
19162 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
19163 Declare them.
19164
19165 * emacs.c (main): Call globals_of_w32 prior to calling
19166 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
19167 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
19168 is defined.
19169
19170 * w32term.c (x_update_window_begin): Fix Windows API error
19171 detected by BoundsChecker. Test to determine if
19172 w32_system_caret_hwnd is NULL prior to attempting to use
19173 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
19174
19175 * w32term.c (x_update_window_end): Fix Windows API error
19176 detected by BoundsChecker. Test to determine if
19177 w32_system_caret_hwnd is NULL prior to attempting to use
19178 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
19179
19180 2002-12-17 Kenichi Handa <handa@m17n.org>
19181
19182 * coding.c (coding_system_require_warning): New variable.
19183 (syms_of_coding): DEFVAR it.
19184
19185 * coding.h (coding_system_require_warning): Extern it.
19186
19187 * fileio.c (choose_write_coding_system): Even if
19188 Vcoding_system_for_write is non-nil, if
19189 coding_system_require_warning is nonzero, call
19190 Vselect_safe_coding_system_function.
19191
19192 2002-12-17 Markus Rost <rost@math.ohio-state.edu>
19193
19194 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
19195 (lisp): Add font-core.
19196
19197 2002-12-13 Stefan Monnier <monnier@cs.yale.edu>
19198
19199 * textprop.c (text_read_only): New arg `propval'.
19200 (get_char_property_and_overlay): Remove unused var `next_overlay'.
19201 (verify_interval_modification): Use text_read_only's new arg.
19202
19203 2002-12-13 Kenichi Handa <handa@m17n.org>
19204
19205 * coding.c (Funencodable_char_position): Set pend correctly.
19206
19207 2002-12-12 Jason Rumney <jasonr@gnu.org>
19208
19209 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
19210 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
19211 Be more careful about when help_events are generated.
19212
19213 2002-12-12 Steven Tamm <steventamm@mac.com>
19214
19215 * macterm.c (mac_check_for_quit_char): Correctly set the
19216 modifiers of the event to 0.
19217 * mac.c (sys_select): Duplicate rfds before calling select to
19218 ensure that rfds survive the while loop.
19219
19220 2002-12-11 Kim F. Storm <storm@cua.dk>
19221
19222 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
19223 row_containing_pos returned NULL.
19224
19225 2002-12-10 Steven Tamm <steventamm@mac.com>
19226
19227 * mac.c (sys_read): Fix sys_read to not call select if IO is
19228 non-blocking.
19229 (sys_select): Fix sys_select to not use a timeout larger than
19230 the one given.
19231
19232 2002-12-10 Juanma Barranquero <lektu@terra.es>
19233
19234 * editfns.c (Fformat): Use alloca, not _alloca.
19235
19236 2002-12-09 Richard M. Stallman <rms@gnu.org>
19237
19238 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
19239 as the last thing.
19240
19241 2002-12-09 Dave Love <fx@gnu.org>
19242
19243 * s/sol2-8.h: Removed. (Not necessary.)
19244
19245 2002-12-09 Matthew Swift <swift@alum.mit.edu>
19246
19247 * editfns.c (Fformat): Handle precision in string conversion
19248 specifiers like libc functions do (ie, print at most that many
19249 characters).
19250
19251 2002-12-08 Richard M. Stallman <rms@gnu.org>
19252
19253 * xdisp.c (row_containing_pos): Check more carefully
19254 whether charpos is really in the row before returning it.
19255
19256 2002-12-07 Steven Tamm <steventamm@mac.com>
19257
19258 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
19259
19260 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
19261 each stack frame. This may change as it could be time consuming.
19262
19263 * macterm.c (mac_check_for_quit_char, quit_char_comp)
19264 (init_quit_char_handler, mac_determine_quit_char_modifiers)
19265 (mac_initialize): Add code to check for pressing of quit_char
19266 in the OS event queue.
19267
19268 * mac.c (sys_select): Call mac_check_for_quit_char every second
19269 while blocking on select.
19270
19271 * mac.c (sys_read): Use sys_select to test for input first
19272 before calling read, to allow C-g to break.
19273
19274 2002-12-07 Richard M. Stallman <rms@gnu.org>
19275
19276 * minibuf.c (Fcompleting_read): Doc fix.
19277
19278 * lread.c (syms_of_lread) <load-history>: Doc fix.
19279
19280 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
19281
19282 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
19283 autoload.
19284
19285 * data.c (Fdefalias): Record in load-history redefining an autoload.
19286
19287 * alloca.c: Undo ifdef change accidentally made on 12-04.
19288
19289 2002-12-06 Francesco Potorti` <pot@gnu.org>
19290
19291 * xfns.c (png_load): Avoid double gamma correction for PNG images.
19292
19293 2002-12-04 Richard M. Stallman <rms@gnu.org>
19294
19295 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
19296
19297 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
19298
19299 * alloca.c: Don't use #error.
19300
19301 2002-12-03 Dave Love <fx@gnu.org>
19302
19303 * buffer.c (Qucs_set_table_for_input): New.
19304 (Fget_buffer_create): Use it.
19305 (Qset_buffer_major_mode_hook): Deleted.
19306 (Fset_buffer_major_mode): Revert previous change.
19307 (init_buffer_once): Intern ucs-set-table-for-input.
19308 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
19309 Add &Qucs_set_table_for_input.
19310
19311 2002-12-03 Andreas Schwab <schwab@suse.de>
19312
19313 * callint.c (Fcall_interactively): Use next_event only if less
19314 than key_count.
19315
19316 2002-12-02 Andrew Choi <akochoi@shaw.ca>
19317
19318 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
19319 names to 255 characters.
19320
19321 * macterm.c (XTread_socket): If all frames have been collapsed,
19322 expand the first one before handling drag-and-drop events.
19323
19324 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
19325 which is detected by autoconf.
19326
19327 2002-12-01 Steven Tamm <steventamm@mac.com>
19328
19329 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
19330 offset in two hints table to allow prebinding to be redone and
19331 allow the executable to be stripped.
19332
19333 2002-11-29 Dave Love <fx@gnu.org>
19334
19335 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
19336 already provided.
19337
19338 2002-11-29 Richard M. Stallman <rms@gnu.org>
19339
19340 * xdisp.c (start_display): Check more intelligently for
19341 whether the line is continued.
19342 (move_it_vertically_backward): Clear it->continuation_lines_width.
19343
19344 2002-11-28 Dave Love <fx@gnu.org>
19345
19346 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
19347 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
19348
19349 2002-11-27 Steven Tamm <steventamm@mac.com>
19350
19351 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
19352 more descriptive error output from lread.c:Fload upon most require
19353 cycles during boostrapping.
19354
19355 2002-11-27 Jason Rumney <jasonr@gnu.org>
19356
19357 * fileio.c (Finsert_file_contents): Give a more appropriate error
19358 for files bigger than 2Gb when off_t is 32 bit.
19359
19360 * dired.c (Ffile_attributes): Don't return negative file sizes for
19361 files bigger than 2Gb when off_t is 32 bit.
19362
19363 2002-11-27 Dave Love <fx@gnu.org>
19364
19365 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
19366
19367 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
19368 Test GETPGRP_VOID instead.
19369 [BSD_TERMIOS]: Remove definitions (never used).
19370
19371 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
19372 Don't define.
19373 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
19374
19375 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
19376
19377 2002-11-25 Jason Rumney <jasonr@gnu.org>
19378
19379 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
19380 supported.
19381
19382 2002-11-25 Dave Love <fx@gnu.org>
19383
19384 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
19385
19386 * Makefile.in (TEMACS_LDFLAGS): Update last change.
19387
19388 2002-11-25 Andreas Schwab <schwab@suse.de>
19389
19390 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
19391
19392 2002-11-24 Steven Tamm <steventamm@mac.com>
19393
19394 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
19395 determine the size of pointers alloced in unexed space instead
19396 of using possibly invalid emacs_zone pointers. This fixes the
19397 binary incompatibility problems caused by updates to libSystem.B.
19398
19399 2002-11-24 Richard M. Stallman <rms@gnu.org>
19400
19401 * search.c (Fstring_match): Doc fix.
19402
19403 * callint.c (Fcall_interactively): If a command fails because
19404 `*' detects a read-only buffer, but RECORD_FLAG is set,
19405 record it anyway if the args don't actually do tty input.
19406
19407 2002-11-22 Dave Love <fx@gnu.org>
19408
19409 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
19410
19411 * keyboard.c (interrupt_signal): Provide forward declaration.
19412 (kbd_buffer_store_event): Don't declare interrupt_signal.
19413
19414 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
19415
19416 2002-11-21 Richard M. Stallman <rms@gnu.org>
19417
19418 * eval.c (interactive_p): Skip any number of bytecode
19419 and special form frames, in any order.
19420
19421 2002-11-20 Jason Rumney <jasonr@gnu.org>
19422
19423 * w32fns.c (convert_mono_to_color_image): New function.
19424 (xbm_load, xbm_load_image): Use it when foreground or background
19425 is explicitly set.
19426
19427 2002-11-19 Dave Love <fx@gnu.org>
19428
19429 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
19430
19431 2002-11-18 Jason Rumney <jasonr@gnu.org>
19432
19433 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
19434 (XPutPixel): Swap blue and red.
19435 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
19436 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
19437 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
19438 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
19439
19440 2002-11-18 Dave Love <fx@gnu.org>
19441
19442 * m/orion105.h (HAVE_ALLOCA): Don't define.
19443
19444 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
19445
19446 * m/intel386.h: Don't include alloca.h or define alloca.
19447
19448 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
19449 malloc, realloc, calloc.
19450
19451 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
19452 (bcmp): Don't define.
19453
19454 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
19455
19456 * m/amdahl.h: Don't define LIB_STANDARD.
19457
19458 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
19459
19460 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
19461
19462 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
19463 Don't include alloca.h.
19464
19465 * s/aix3-2.h (HAVE_FSYNC): Don't define.
19466
19467 * regex.c (_GNU_SOURCE): Don't define.
19468
19469 * process.c (_GNU_SOURCE): Don't define.
19470
19471 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
19472
19473 2002-11-18 Markus Rost <rost@math.ohio-state.edu>
19474
19475 * s/sol2-8.h: Include sol2-6.h.
19476
19477 2002-11-18 Miles Bader <miles@gnu.org>
19478
19479 * dispextern.h (struct face): Add `overstrike' field.
19480 * xterm.c (x_draw_glyph_string_foreground)
19481 (x_draw_composite_glyph_string_foreground): Implement overstriking.
19482 * xfaces.c (load_face_font): Set `face->overstrike' based on
19483 result from choose_face_font.
19484 (best_matching_font, choose_face_font): Add `needs_overstrike'
19485 argument, and use it to return whether overstriking is desirable
19486 for this face/font combo.
19487 (set_font_frame_param: Pass new argument to choose_face_font.
19488
19489 2002-11-17 Ben Key <BKey1@tampabay.rr.com>
19490
19491 This change is my fix for the following entry in etc/PROBLEMS:
19492 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
19493 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
19494
19495 * w32.c: Added wrapper functions around the win32 API functions
19496 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
19497 GetSidIdentifierAuthority. These wrapper functions serve two
19498 purposes:
19499 1. They ensure that the wrapped function can never be called
19500 when Emacs is running on an operating system on which they are
19501 not supported (Microsoft Windows 95 / 98 / ME).
19502 2. They call the wrapped functions via function pointers rather
19503 than calling them directly. This avoids taking advantage of the
19504 undocumented fact that although these functions are not supported
19505 in the 9x branch of Microsoft Windows, the functions do exist in
19506 the version of advapi32.dll that is found in the 9x branch of
19507 Microsoft Windows.
19508
19509 * w32.c (init_user_info): Replace the calls to the win32 API
19510 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
19511 and GetSidIdentifierAuthority with calls to the newly added
19512 wrapper functions.
19513
19514 * w32.h: Added extern declarations for the following functions:
19515 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
19516 syms_of_w32menu, and void syms_of_fontset.
19517
19518 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
19519 function pointer track_mouse_event_fn in the handler for the
19520 WM_SETFOCUS message.
19521
19522 * w32menu.c (initialize_frame_menubar): Add code to
19523 reinitialize the function pointers set_menu_item_info and
19524 get_menu_item_info.
19525
19526 2002-11-17 Ben Key <BKey1@tampabay.rr.com>
19527
19528 * sound.c: Added a partial implementation of play-sound-internal
19529 for Microsoft Windows. Added various #ifdef / #else / #endif
19530 code blocks to separate the code that will compile under
19531 Microsoft Windows from the code that is specific to GNU/Linux.
19532 Moved several blocks of code around to make this separation of code
19533 into Windows compatible and GNU/Linux compatible code blocks easier.
19534
19535 * makefile.w32-in: Include sound.c and link with WinMM.lib.
19536
19537 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
19538 added support for play-sound-internal under Windows would be
19539 included in the build of Emacs.
19540
19541 2002-11-16 Jason Rumney <jasonr@gnu.org>
19542
19543 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
19544
19545 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
19546
19547 2002-11-15 Stefan Monnier <monnier@cs.yale.edu>
19548
19549 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
19550 (adjust_point_for_property): Move out of display and invisible even if
19551 we were already inside before (in case a property was added while
19552 we weren't looking). Be more careful when handling invisible props.
19553 Skip invisible text as if it really wasn't there at all.
19554
19555 2002-11-15 Jason Rumney <jasonr@gnu.org>
19556
19557 * w32term.c (x_draw_image_foreground)
19558 (w32_draw_image_foreground_1): Use standard copy and invert
19559 operations to draw images.
19560
19561 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
19562 depth of 1.
19563 (xbm_read_bitmap_data): Invert bits as xbm is read in.
19564 (XPutPixel): Don't invert bits here.
19565
19566 2002-11-15 Jason Rumney <jasonr@gnu.org>
19567
19568 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
19569 (w32_draw_image_foreground_1): Handle image masks.
19570 (x_draw_image_glyph_string): Don't BitBlt transparently.
19571
19572 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
19573 (x_from_xcolors): Adjust RGB values for W32.
19574 (image_background, image_background_transparent)
19575 (postprocess_image, x_to_xcolors, x_disable_image)
19576 (x_build_heuristic_mask): Adapt for W32 and enable.
19577 (x_create_x_image_and_pixmap): Mark images with palettes as such.
19578 (xbm_load): Remove unused variable.
19579
19580 2002-11-14 Richard M. Stallman <rms@gnu.org>
19581
19582 * buffer.c (syms_of_buffer): Doc fix.
19583
19584 2002-11-14 Dave Love <fx@gnu.org>
19585
19586 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
19587
19588 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
19589 * xmenu.c (unuse_menu_items, digest_single_submenu):
19590 * xfns.c (x_put_x_image):
19591 * xdisp.c (message2_nolog, set_message):
19592 * undo.c (record_point):
19593 * terminfo.c (tparam):
19594 * syntax.c (scan_sexps_forward):
19595 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
19596 * composite.c (update_compositions):
19597 * cm.c (calccost, cmgoto):
19598 * charset.c (c_string_width): Declare all args (per C99).
19599
19600 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
19601
19602 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
19603 Don't declare.
19604
19605 * emacs.c (main) [!VMS]: Avoid third arg.
19606
19607 * fns.c (Fcopy_sequence): Doc fix.
19608 (Fmap_char_table): Cast `call2'.
19609
19610 2002-11-14 Francesco Potorti` <pot@gnu.org>
19611
19612 * s/sol2-8.h: New file.
19613
19614 2002-11-14 Kim F. Storm <storm@cua.dk>
19615
19616 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
19617 dependency on `risky-local-variable' and the :propertize form.
19618
19619 2002-11-12 Stefan Monnier <monnier@cs.yale.edu>
19620
19621 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
19622
19623 * syntax.c (scan_sexps_forward): Undo last patch.
19624 Use a more obvious fix: check eob before updating the syntax table.
19625
19626 2002-11-09 Stefan Monnier <monnier@cs.yale.edu>
19627
19628 * syntax.c (scan_sexps_forward): Update syntax table before reading
19629 a char rather than after so we don't update the table past eob.
19630
19631 2002-11-09 Dave Love <fx@gnu.org>
19632
19633 * buffer.c (Fset_buffer_major_mode): Fix last change.
19634
19635 * regex.c (regexec): Fix pmatch declaration.
19636
19637 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
19638
19639 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
19640 to self-inserting characters.
19641 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
19642
19643 * coding.c (Vtranslation_table_for_input): New.
19644 (syms_of_coding): DEFVAR it.
19645
19646 2002-11-08 Juanma Barranquero <lektu@terra.es>
19647
19648 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
19649 window.
19650
19651 2002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19652
19653 * process.c (Fformat_network_address): Remove unused locals p,
19654 cp, and i.
19655
19656 2002-11-06 Dave Love <fx@gnu.org>
19657
19658 * buffer.c (Qset_buffer_major_mode_hook): New.
19659 (Fset_buffer_major_mode): Use it.
19660
19661 2002-11-06 Richard M. Stallman <rms@gnu.org>
19662
19663 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
19664 and stop_polling.
19665
19666 * process.c (wait_reading_process_input):
19667 Test POLLING_PROBLEM_IN_SELECT, not hpux.
19668 Avoid initialization for auto Lisp_Object var.
19669
19670 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
19671
19672 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
19673
19674 2002-11-05 Richard M. Stallman <rms@gnu.org>
19675
19676 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
19677
19678 * callint.c (Fcall_interactively): New local filter_specs.
19679 (Fcall_interactively): Check for progn as well as let.
19680 Add a gcpro.
19681 (Qprogn): New variable.
19682 (syms_of_callint): Staticpro and init Qprogn.
19683
19684 2002-11-04 John Paul Wallington <jpw@shootybangbang.com>
19685
19686 * lread.c (Feval_buffer): Doc fix.
19687
19688 2002-11-04 Dave Love <fx@gnu.org>
19689
19690 * keyboard.c (read_char): Always translate iff
19691 Vkeyboard_translate_table is a char table and c is valid.
19692
19693 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
19694 and fix C types.
19695
19696 2002-11-03 Stefan Monnier <monnier@cs.yale.edu>
19697
19698 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
19699
19700 * editfns.c (get_pos_property): Don't hardcode Qfield.
19701
19702 * keyboard.c (adjust_point_for_property): Handle `display' prop on
19703 overlays. Also handle `invisible' prop.
19704
19705 2002-11-02 Stefan Monnier <monnier@cs.yale.edu>
19706
19707 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
19708 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
19709
19710 2002-11-01 Andreas Schwab <schwab@suse.de>
19711
19712 * editfns.c (Fmessage): Revert last change to properly handle %%.
19713
19714 2002-11-01 Stefan Monnier <monnier@cs.yale.edu>
19715
19716 * xmenu.c (unuse_menu_items): New fun.
19717 (menu_items_inuse): New var.
19718 (syms_of_xmenu): Initialize it.
19719 (init_menu_items): Use it to detect re-entrance.
19720 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
19721 (Fx_popup_menu): Remove spurious XSETFRAME.
19722
19723 * editfns.c (find_field): Make an exception for nil fields.
19724
19725 2002-11-01 Dave Love <fx@gnu.org>
19726
19727 * m/gec63.h: Deleted.
19728
19729 2002-10-31 Dave Love <fx@gnu.org>
19730
19731 * xterm.c (XTread_socket): Fix last change.
19732 (xaw_scroll_callback): Cast call_data to long to avoid warning.
19733
19734 2002-10-31 Stefan Monnier <monnier@cs.yale.edu>
19735
19736 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
19737
19738 2002-10-30 Stefan Monnier <monnier@cs.yale.edu>
19739
19740 * editfns.c (overlays_around, get_pos_property): New funs.
19741 (find_field): Use them.
19742 Also be careful not to modify POS before its last use.
19743 (Fmessage): Don't Fformat if there's nothing to format.
19744
19745 2002-10-30 Dave Love <fx@gnu.org>
19746
19747 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
19748 [HAVE_PTY_H]; Include pty.h.
19749
19750 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
19751
19752 * xterm.c (Qeql): Declare.
19753 (Vx_keysym_table): New.
19754 (syms_of_xterm): Initialize it.
19755 (XTread_socket): Use it. Deal with ASCII keysyms.
19756 (XSetIMValues) [HAVE_X11R6]: Prototype.
19757
19758 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
19759 (lispy_kana_keys): Comment out.
19760 (make_lispy_event) [XK_kana_A]: Comment out.
19761 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
19762 Fix sprintf call.
19763
19764 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
19765 regexp.h change).
19766 (TERMINFO, LIBS_TERMCAP): Define.
19767
19768 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
19769 (bcmp): Define conditional on HAVE_BCMP.
19770 (NO_SIOCTL_H): Don't define.
19771 (TIOCSIGSEND): Don't make conditional on IRIX6.
19772
19773 * s/sol2-5.h: Don't include strings.h.
19774 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
19775
19776 * s/irix6-0.h (IRIX6): Don't define.
19777 (bcopy, bcmp, bzero): Don't undef.
19778
19779 * s/irix6-5.h: Don't include strings.h.
19780 (IRIX6): Don't define.
19781 (bcopy, bcmp, bzero): Don't undef.
19782
19783 * syntax.c (Fforward_comment): Doc fix.
19784
19785 2002-10-29 Kim F. Storm <storm@cua.dk>
19786
19787 * process.c (Fsignal_process): Allow PROCESS to be specified by
19788 name in addition to pid (as integer or string).
19789
19790 2002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
19791
19792 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
19793 environments.
19794
19795 2002-10-27 Kim F. Storm <storm@cua.dk>
19796
19797 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
19798
19799 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
19800
19801 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
19802
19803 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
19804
19805 2002-10-26 Richard M. Stallman <rms@gnu.org>
19806
19807 * editfns.c (Fformat): Detect invalid format letters for floats.
19808
19809 2002-10-25 Kenichi Handa <handa@m17n.org>
19810
19811 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
19812 (x_set_title): Likewise.
19813
19814 2002-10-25 Juanma Barranquero <lektu@terra.es>
19815
19816 * macgui.h:
19817 * w32gui.h: Remove definition of XColor.
19818
19819 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
19820
19821 2002-10-24 Kim F. Storm <storm@cua.dk>
19822
19823 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
19824 Callers changed (supply dummy arg).
19825
19826 * lisp.h (get_window_cursor_type): Update prototype.
19827
19828 * w32term.c (x_display_and_set_cursor): Get active_cursor from
19829 get_window_cursor_type to track system caret.
19830
19831 2002-10-24 Kim F. Storm <storm@cua.dk>
19832
19833 * process.c (Fformat_network_address): New function.
19834 (syms_of_process): Defsubr it.
19835 (list_processes_1): Use it to format :local/:remote address if
19836 service/host is not set; before Emacs would crash in that case.
19837 (Fmake_network_process): Don't use Ffind_operation_coding_system
19838 to setup coding system if host or service is not set.
19839
19840 2002-10-23 Juanma Barranquero <lektu@terra.es>
19841
19842 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
19843
19844 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
19845 COLORREF.
19846
19847 * macgui.h:
19848 * w32gui.h: Add definition of XColor.
19849
19850 * macfns.c:
19851 * w32fns.c:
19852 * xfaces.c: Remove definition of XColor.
19853
19854 2002-10-22 Stefan Monnier <monnier@cs.yale.edu>
19855
19856 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
19857
19858 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
19859 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
19860 window if it is dedicated.
19861 (Fshrink_window): Add preserve_before as was done for enlarge_window.
19862 (Vspecial_display_function): Update docstring.
19863
19864 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
19865 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
19866 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
19867
19868 2002-10-21 Stefan Monnier <monnier@cs.yale.edu>
19869
19870 * casefiddle.c (casify_region): Don't treat a prefix char as part
19871 of a word when at the beginning.
19872
19873 2002-10-17 Juanma Barranquero <lektu@terra.es>
19874
19875 * lread.c (syms_of_lread): Fix typos.
19876
19877 2002-10-17 Dave Love <fx@gnu.org>
19878
19879 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
19880
19881 2002-10-16 Richard M. Stallman <rms@gnu.org>
19882
19883 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
19884
19885 2002-10-14 Juanma Barranquero <lektu@terra.es>
19886
19887 * w16select.c (syms_of_win16select): Fix docstring for
19888 `selection-coding-system'.
19889
19890 * w32select.c (syms_of_w32select): Likewise.
19891
19892 2002-10-14 Stefan Monnier <monnier@cs.yale.edu>
19893
19894 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
19895 a backslash-quoted char.
19896 (scan_lists, scan_sexps_forward): Pacify the compiler.
19897
19898 2002-10-13 Richard M. Stallman <rms@gnu.org>
19899
19900 * window.c (window_scroll): Set immediate_quit.
19901
19902 * print.c (print): When backquote form is the car of a list,
19903 output in old style. Use old_backquote_output to output all
19904 comma forms inside it in old style too.
19905
19906 * buffer.h (struct buffer): Move `undo_list' down below `name'.
19907
19908 2002-10-11 Markus Rost <rost@math.ohio-state.edu>
19909
19910 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
19911 batch mode).
19912
19913 * lread.c (Fload): Doc fix (load-suffixes).
19914
19915 2002-10-10 Steven Tamm <steventamm@mac.com>
19916
19917 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
19918 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
19919 Also switch the default to Qnil from Qt.
19920
19921 2002-10-08 Kenichi Handa <handa@m17n.org>
19922
19923 * coding.c (code_convert_region): When we need more GAP for
19924 conversion, pay attention to the case that coding->produced is not
19925 greater than coding->consumed.
19926
19927 2002-10-07 Richard M. Stallman <rms@gnu.org>
19928
19929 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
19930
19931 2002-10-06 Andrew Choi <akochoi@shaw.ca>
19932
19933 * macmenu.c (mac_menu_show): Add j to count menu items; match
19934 menu_item_selection to it to find selected item.
19935
19936 2002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19937
19938 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
19939 cases. The correct fix is to pass ReparentNotify to Xt.
19940 The shell widget interprets ConfigureNotify differently depending
19941 on if it has been reparented or not.
19942
19943 2002-10-05 Markus Rost <rost@math.ohio-state.edu>
19944
19945 * editfns.c (Fformat_time_string): Doc fix.
19946
19947 2002-10-05 John Paul Wallington <jpw@shootybangbang.com>
19948
19949 * fns.c (Flength): Doc fix.
19950
19951 2002-10-04 Stefan Monnier <monnier@cs.yale.edu>
19952
19953 * keyboard.c (keyremap): New struct.
19954 (read_key_sequence): Use it: globally replace keytran_foo with
19955 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
19956 keytran_next and fkey_next to just `next'.
19957
19958 2002-10-04 Steven Tamm <steventamm@mac.com>
19959
19960 * macterm.c (keycode_to_xkeysym_table): Change return to be
19961 treated like an X keysym.
19962
19963 2002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19964
19965 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
19966 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
19967 This is to also handle x/y changes that occur because of a resize.
19968
19969 2002-10-02 John Paul Wallington <jpw@shootybangbang.com>
19970
19971 * frame.c (Vdelete_frame_functions): New variable.
19972 (syms_of_frame): Initialize and defvar it.
19973 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
19974 it when frame's `tooltip' parameter is non-nil.
19975
19976 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
19977
19978 * w32fns.c (x_create_tip_frame): Likewise.
19979
19980 * macfns.c (x_create_tip_frame): Likewise.
19981
19982 2002-09-30 Kenichi Handa <handa@m17n.org>
19983
19984 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
19985 -1 before calling ccl_driver.
19986
19987 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
19988 Only when it is non-nil, handle composition sequence.
19989 (setup_coding_system) <0>: Don't force composition handling.
19990
19991 * Makefile.in (lisp, shortlisp): Add utf-16.elc
19992
19993 2002-09-29 Richard M. Stallman <rms@gnu.org>
19994
19995 * search.c (Freplace_match): Adjust match data for the substitution
19996 just made in the buffer.
19997
19998 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
19999 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
20000
20001 2002-09-27 Richard M. Stallman <rms@gnu.org>
20002
20003 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
20004 (read_char): Use them. Do all exits thru the end of the function.
20005
20006 2002-09-27 Kenichi Handa <handa@etl.go.jp>
20007
20008 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
20009 is nil.
20010
20011 2002-09-26 Richard M. Stallman <rms@gnu.org>
20012
20013 * regex.h (__restrict_arr): Don't define if already defined.
20014
20015 * coding.c (run_pre_post_conversion_on_str):
20016 Save and restore Vdeactivate_mark.
20017
20018 2002-09-26 John Paul Wallington <jpw@shootybangbang.com>
20019
20020 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
20021
20022 2002-09-26 Kenichi Handa <handa@etl.go.jp>
20023
20024 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
20025 nonzero, try face's family at first. Otherwise try FAMILY at first.
20026 (choose_face_font): If C is a single byte char or latin-1, call
20027 try_font_list with PREFER_FACE_FAMILY 1.
20028
20029 2002-09-21 Richard M. Stallman <rms@gnu.org>
20030
20031 * window.c (select_window_1): Don't select frame.
20032 Set frame's selected window only when frame itself is selected.
20033 (Fselect_window): Doc fix.
20034
20035 2002-09-18 Kim F. Storm <storm@cua.dk>
20036
20037 * process.c (make-network-process): Doc fix (there is no
20038 network-server-log-function hook).
20039
20040 2002-09-18 Richard M. Stallman <rms@gnu.org>
20041
20042 * print.c (print): Clear out the unused parts of Vprint_number_table.
20043 (syms_of_print): Doc fix for `print-number-table'.
20044
20045 * unexelf.c (unexec): Undo previous change.
20046
20047 2002-09-17 Andreas Schwab <schwab@suse.de>
20048
20049 * m/alpha.h [LINUX]: Don't define DATA_START.
20050
20051 2002-09-16 Dave Love <fx@gnu.org>
20052
20053 * unexelf.c (unexec): Deal with .got, reinstating change from
20054 25-08-1999.
20055
20056 2002-09-13 Richard M. Stallman <rms@gnu.org>
20057
20058 * s/sol2-6.h (UNEXEC): Comment out definition.
20059
20060 * unexsol.c (unexec): Don't downcase first letter of error msg.
20061
20062 * xfaces.c (Fcolor_supported_p): Just one arg is required.
20063
20064 2002-09-12 Markus Rost <rost@math.ohio-state.edu>
20065
20066 * unexsol.c: Include buffer.h, charset.h, coding.h.
20067
20068 2002-09-11 Richard M. Stallman <rms@gnu.org>
20069
20070 * unexsol.c: Don't use report_file_error; do it by hand
20071 using dlerror.
20072
20073 * process.c (wait_reading_process_input, both versions):
20074 Before calling turn_on_atimers, call stop_polling.
20075
20076 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
20077
20078 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
20079 we go to too_near_end, call clear_glyph_matrix.
20080 (redisplay_window): After make_cursor_line_fully_visible,
20081 call clear_glyph_matrix and bypass `goto done'.
20082
20083 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
20084 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
20085
20086 2002-09-10 Richard M. Stallman <rms@gnu.org>
20087
20088 * fileio.c (Fdo_auto_save): Catch error making directory.
20089 Only call push_message if we need to.
20090 At the same time, make an unwind-protect to pop it.
20091 Rename local message_p to old_message_p.
20092 (do_auto_save_make_dir, do_auto_save_eh): New functions.
20093 (do_auto_save_unwind): Don't call pop_message.
20094
20095 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
20096
20097 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
20098
20099 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
20100
20101 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
20102
20103 2002-09-10 Stefan Monnier <monnier@cs.yale.edu>
20104
20105 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
20106 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
20107 (re_match_2_internal): Be more careful with infinite loops.
20108
20109 2002-09-10 Kim F. Storm <storm@cua.dk>
20110
20111 * macros.c (end_kbd_macro): New function.
20112 (Fend_kbd_macro): Use it.
20113
20114 * macros.h (end_kbd_macro): Declare extern.
20115
20116 * keyboard.c (Fdiscard_input): If defining keyboard macro,
20117 end and save it instead of discarding it.
20118
20119 2002-09-09 Markus Rost <rost@math.ohio-state.edu>
20120
20121 * s/sol2-6.h: Fix typo. Add comment.
20122
20123 2002-09-09 Richard M. Stallman <rms@gnu.org>
20124
20125 * regex.c (regnum_t): Use signed int, not unsigned int.
20126
20127 * s/sol2-6.h: New file.
20128
20129 * s/sol2-5.h (UNEXEC): Definition deleted.
20130
20131 2002-09-08 Kim F. Storm <storm@cua.dk>
20132
20133 * macros.c (executing_macro_index): Change type to EMACS_INT.
20134 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
20135
20136 * macros.h (executing_macro_index): Change type to EMACS_INT.
20137
20138 2002-09-06 Richard M. Stallman <rms@gnu.org>
20139
20140 * casetab.c (set_case_table): Make canon table point to eqv table.
20141
20142 2002-09-06 Juanma Barranquero <lektu@terra.es>
20143
20144 * coding.c (syms_of_coding): Fix spacing.
20145
20146 * composite.c (Fcompose_region_internal)
20147 (Fcompose_string_internal): Likewise.
20148
20149 * data.c (Flsh): Likewise.
20150
20151 * fontset.c (Fset_fontset_font): Likewise.
20152
20153 * macfns.c (Fx_server_max_request_size): Likewise.
20154
20155 * w16select.c (syms_of_win16select): Likewise.
20156
20157 * w32select.c (syms_of_w32select): Likewise.
20158
20159 * xselect.c (syms_of_xselect): Likewise.
20160
20161 2002-09-05 Richard M. Stallman <rms@gnu.org>
20162
20163 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
20164 call EXTEND_RANGE_TABLE and return a proper value.
20165 (set_image_of_range): Don't call set_image_of_range_1
20166 if no TRANSLATE or if range includes all of Latin-1.
20167 Only call it for the Latin-1 part of the range.
20168 For other cases, make two separate ranges,
20169 one for the original specified characters and one for
20170 their case-conversions.
20171
20172 2002-09-04 Richard M. Stallman <rms@gnu.org>
20173
20174 * s/sol2-5.h (UNEXEC): Use unexsol.o.
20175
20176 * window.c (displayed_window_lines): Correct for one-off bug
20177 in HEIGHT on non-window displays.
20178
20179 * regex.c (set_image_of_range_1): New function.
20180 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
20181 Return a value to indicate running out of memory.
20182 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
20183 (extend_range_table_work_area): New subroutine.
20184 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
20185 Different calling conventions, and used from set_image_of_range{,_1}.
20186 (IMMEDIATE_QUIT_CHECK): Definitions moved.
20187
20188 2002-09-04 Juanma Barranquero <lektu@terra.es>
20189
20190 * makefile.w32-in: All dependencies updated.
20191
20192 2002-09-01 Richard M. Stallman <rms@gnu.org>
20193
20194 * unexsol.c: New file.
20195
20196 * xfns.c (Qbox): Declare external, don't define.
20197
20198 * xdisp.c (redisplay_window) <force-start case>:
20199 If point is on semi-visible last line, reposition
20200 it at previous line.
20201
20202 * alloc.c (display_malloc_warning): Use display-warning.
20203 (malloc_warning_1): Function deleted.
20204
20205 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
20206
20207 * lread.c (read1): Handle #! by skipping the line.
20208
20209 2002-08-31 Richard M. Stallman <rms@gnu.org>
20210
20211 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
20212 Don't include LDFLAGS.
20213 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
20214
20215 2002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
20216
20217 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
20218 member of x_display_info unless we compile for some window system.
20219
20220 2002-08-31 Kim F. Storm <storm@cua.dk>
20221
20222 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
20223 (get_window_cursor_type): Don't use them.
20224 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
20225
20226 2002-08-30 Kenichi Handa <handa@etl.go.jp>
20227
20228 * xdisp.c (get_next_display_element): Fix previous change.
20229
20230 2002-08-30 Andrew Choi <akochoi@shaw.ca>
20231
20232 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
20233 (expose_window): Use it to fix the display of overlapping
20234 rows (merge code from xterm.c).
20235
20236 * macfns.c (Qbox): Add extern declaration.
20237
20238 2002-08-30 Juanma Barranquero <lektu@terra.es>
20239
20240 * w32fns.c (Qbox): Make extern.
20241 (syms_of_w32fns): Remove initialization of Qbox.
20242
20243 2002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
20244
20245 * xfns.c (Fx_open_connection): Fix error message.
20246
20247 2002-08-30 Kim F. Storm <storm@cua.dk>
20248
20249 The following changes consolidates the handling of the cursor
20250 type in xdisp.c, moving duplicate code and functionality from
20251 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
20252
20253 * frame.h (enum text_cursor_kinds): Consolidated here.
20254 Added DEFAULT_CURSOR value.
20255 (struct frame) <desired_cursor, cursor_width>
20256 <blink_off_cursor, blink_off_cursor_width>: New fields.
20257 Consolidated from output_x, output_w32 and output_mac structs.
20258 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
20259 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
20260
20261 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
20262 Variables consolidated here.
20263 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
20264 (Vcursor_in_non_selected_windows): Renamed from
20265 cursor_in_non_selected_windows and changed to Lisp_Object.
20266 (syms_of_xdisp): Define and staticpro new and moved variables.
20267 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
20268 consolidated here. Recognize Qhollow setting.
20269 (set_frame_cursor_types): New function to set frame cursor types
20270 based on the frame parameters.
20271 (get_window_cursor_type): New function to calculate new cursor
20272 type and width for the specified window. Based on duplicated
20273 code consolidated here.
20274 Enhancements: cursor-in-non-selected-windows may be a cursor type,
20275 check buffer-local alternate-cursor-type and blink-cursor-alist
20276 before using built-in blink off methods.
20277
20278 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
20279
20280 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
20281 (get_specified_cursor_type, get_window_cursor_type)
20282 (set_frame_cursor_types): Added prototypes.
20283
20284 * macfns.c (x_specified_cursor_type): Removed.
20285 (x_set_cursor_type): Use set_frame_cursor_types.
20286 (Qbar, Qbox): Removed.
20287 (syms_of_macfns): Don't intern or staticpro them.
20288
20289 * macterm.c (x_specified_cursor_type): Remove prototype.
20290 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
20291 (x_display_and_set_cursor): Use get_window_cursor_type.
20292 Remove unused local variables cursor_non_selected, active_cursor.
20293 Redraw cursor if hbar cursor width changes.
20294 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
20295
20296 * macterm.h (enum text_cursor_kinds): Removed.
20297 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
20298 <blink_off_cursor, blink_off_cursor_width>: Members removed.
20299 (FRAME_DESIRED_CURSOR): Macro removed.
20300
20301 * w32fns.c (Vblink_cursor_alist): Removed.
20302 (Qbar, Qhbar, Qbox, Qhollow): Removed.
20303 (syms_of_w32fns): Don't intern, staticpro, or define them.
20304 (x_specified_cursor_type): Removed.
20305 (x_set_cursor_type): Use set_frame_cursor_types.
20306
20307 * w32term.c (x_specified_cursor_type): Remove prototype.
20308 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
20309 (x_display_and_set_cursor): Use get_window_cursor_type.
20310 Remove unused local variables cursor_off_state.
20311 Redraw cursor if hbar cursor width changes.
20312 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
20313
20314 * w32term.h (enum text_cursor_kinds): Removed.
20315 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
20316 <blink_off_cursor, blink_off_cursor_width>: Members removed.
20317 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
20318 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
20319 (struct w32_display_info) <x_highlight_frame>: Renamed member from
20320 w32_highlight_frame.
20321
20322 * xfns.c (Vblink_cursor_alist): Removed.
20323 (Qbar, Qhbar, Qbox, Qhollow): Removed.
20324 (syms_of_xfns): Don't intern, staticpro, or define them.
20325 (x_specified_cursor_type): Removed.
20326 (x_set_cursor_type): Use set_frame_cursor_types.
20327
20328 * xterm.c (x_specified_cursor_type): Remove prototype.
20329 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
20330 (x_display_and_set_cursor): Use get_window_cursor_type.
20331 Remove unused local variables cursor_off_state.
20332 Redraw cursor if hbar cursor width changes.
20333
20334 * xterm.h (enum text_cursor_kinds): Removed.
20335 (struct output_x) <current_cursor, desired_cursor, cursor_width>
20336 <blink_off_cursor, blink_off_cursor_width>: Members removed.
20337 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
20338 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
20339 (x_specified_cursor_type): Remove prototype.
20340
20341 2002-08-28 Richard M. Stallman <rms@gnu.org>
20342
20343 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
20344 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
20345 (Vblink_cursor_alist): New variable.
20346 (syms_of_w32fns): Initialize and defvar it.
20347 (x_specified_cursor_type): Recognize Qbox for filled box.
20348 Exceptions are hollow boxes.
20349 (Qbox, Qhollow): New variables.
20350 (syms_of_w32fns): Initialize and staticpro them.
20351
20352 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
20353 New macros.
20354 (struct w32_output): New fields blink_off_cursor,
20355 blink_off_cursor_width.
20356 (FRAME_CURSOR_WIDTH): New macro.
20357
20358 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
20359 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
20360
20361 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
20362 for bar cursor.
20363
20364 * w32term.c (expose_overlaps): New function.
20365 (expose_window): Use it to fix the display of overlapping rows.
20366
20367 2002-08-28 Simon Josefsson <jas@extundo.com>
20368
20369 * xfns.c (Fx_open_connection): Improve help when X connection
20370 fails, xhost is insecure and xauth is better.
20371
20372 2002-08-28 Juanma Barranquero <lektu@terra.es>
20373
20374 * makefile.w32-in: Add missing dependencies on w32term.h and
20375 composite.h.
20376
20377 * emacs.c (USAGE1): Add missing newline.
20378
20379 2002-08-27 Andrew Choi <akochoi@shaw.ca>
20380
20381 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
20382
20383 2002-08-27 Richard M. Stallman <rms@gnu.org>
20384
20385 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
20386 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
20387 (Vblink_cursor_alist): New variable.
20388 (syms_of_xfns): Initialize and defvar it.
20389 (x_specified_cursor_type): Recognize Qbox for filled box.
20390 Exceptions are hollow boxes.
20391 (Qbox, Qhollow): New variables.
20392 (syms_of_xfns): Initialize and staticpro them.
20393
20394 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
20395 New macros.
20396 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
20397
20398 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
20399 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
20400
20401 * emacs.c (main): Handle --script.
20402 (USAGE1): Mention --script.
20403 (standard_args): Define sort order for --script.
20404
20405 2002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
20406
20407 * xdisp.c (redisplay_updating_p): Variable removed.
20408 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
20409 New variables.
20410 (init_iterator): Don't free realized faces if
20411 inhibit_free_realized_faces is set.
20412 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
20413 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
20414 initialize Qinhibit_free_realized_faces.
20415
20416 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
20417 when iterator is adding glyphs to a glyph matrix.
20418
20419 2002-08-27 Kenichi Handa <handa@etl.go.jp>
20420
20421 * xdisp.c (get_next_display_element): In unibyte case, don't use
20422 octal form for such eight-bit characters that can be converted to
20423 multibyte char.
20424
20425 2002-08-26 Kim F. Storm <storm@cua.dk>
20426
20427 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
20428 foreground and background colors. From Joe Buehler.
20429
20430 2002-08-26 Miles Bader <miles@gnu.org>
20431
20432 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
20433
20434 2002-08-25 Andrew Choi <akochoi@shaw.ca>
20435
20436 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
20437 defined instead of MAC_OSX.
20438
20439 * s/darwin.h (select): Define select to sys_select only if
20440 HAVE_CARBON is defined.
20441 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
20442 (DONT_REOPEN_PTY): #def it.
20443
20444 * macterm.c (XTread_socket): Remove code to call
20445 SendEventToEventTarget for keys with command modifiers when
20446 mac_command_key_is_meta is nil.
20447
20448 2002-08-24 Andreas Schwab <schwab@suse.de>
20449
20450 * eval.c (Fdefvar): Fix last change.
20451
20452 2002-08-23 Richard M. Stallman <rms@gnu.org>
20453
20454 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
20455 Record variables in load history as (defvar . VAR).
20456 (Fdefvar): Don't record in load history if no initial value.
20457 (Qdefvar): New variable.
20458 (syms_of_eval): Init and staticpro it.
20459
20460 * lread.c (syms_of_lread): Doc fix.
20461 (build_load_history): Use Fmember to see if a definition
20462 is already in the Vload_history element.
20463
20464 * process.c (Fstart_process): Remove /: from program name.
20465
20466 * emacs.c (decode_env_path): Don't add /: if file name handler
20467 has a `safe-magic' property.
20468
20469 * callproc.c (Fcall_process): Remove /: from program name.
20470
20471 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
20472
20473 * regex.c (PATFETCH): Remove the translating fetch.
20474 (PATFETCH_RAW): Rename to PATFETCH.
20475 (set_image_of_range): New fun.
20476 (SET_RANGE_TABLE_WORK_AREA): Use it.
20477 (regex_compile): Don't translate the pattern chars so eagerly.
20478 Only do it when inserting an `exactn' bytecode or when handling
20479 a char-range.
20480 (mutually_exclusive_p): Avoid empty statement.
20481
20482 2002-08-22 Kim F. Storm <storm@cua.dk>
20483
20484 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
20485 end up on a partially visible line; this reverts a specific part
20486 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
20487 display error which has been reported several times now.
20488 However it introduces the problem that changes was supposed to fix.
20489 See my comments in the source if you want to debug this further.
20490
20491 2002-08-20 Kenichi Handa <handa@etl.go.jp>
20492
20493 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
20494
20495 2002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
20496
20497 * msdos.c (croak): Add `void' to definition.
20498
20499 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
20500 Don't define them, they are defined in msdos.c.
20501
20502 * mem-limits.h [MSDOS]: Declare etext.
20503
20504 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
20505 `const' since CORRECT_DIR_SEPS modifies its target.
20506
20507 2002-08-19 Kim F. Storm <storm@cua.dk>
20508
20509 * keyboard.c (Fclear_this_command_keys): Add optional arg
20510 KEEP-RECORD to avoid clearing lossage when we just want to clear
20511 the current key sequence (kmacro needs this).
20512
20513 2002-08-19 Kenichi Handa <handa@localhost>
20514
20515 * composite.c (run_composition_function): Call FUNC if it is fboundp.
20516
20517 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
20518 cons, return Qnil.
20519
20520 2002-08-17 Richard M. Stallman <rms@gnu.org>
20521
20522 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
20523
20524 * sysdep.c [!VMS]: Include sys/files.h.
20525
20526 * editfns.c (save_restriction_restore): Defend from unchained marker.
20527
20528 * buffer.c (overlays_at): Handle extending vec uniformly.
20529 (overlays_in): Handle extending vec from length 0 as in overlays_at.
20530
20531 2002-08-15 Andrew Choi <akochoi@shaw.ca>
20532
20533 * mac.c (init_mac_osx_environment): New function.
20534
20535 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
20536
20537 2002-08-14 Kim F. Storm <storm@cua.dk>
20538
20539 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
20540 executing macro before appending to it (when used from Lisp).
20541 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
20542 which is called prior to each iteration of macro (for kmacro.el).
20543 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
20544
20545 * lisp.h (Fexecute_kbd_macro): Update prototype.
20546
20547 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
20548
20549 2002-08-14 Kenichi Handa <handa@etl.go.jp>
20550
20551 * xselect.c (QUTF8_STRING): New variable.
20552 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
20553 (x_atom_to_symbol): Likewise.
20554 (x_get_local_selection): New argument local_request. If it is
20555 nonzero, call handler_fn with the second arg nil.
20556 (x_handle_selection_request): Call x_get_local_selection with
20557 local_request 0.
20558 (lisp_data_to_selection_data): Don't encode the string here.
20559 (Fx_get_selection_internal): Call x_get_local_selection with
20560 local_request 1.
20561 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
20562
20563 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
20564
20565 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
20566
20567 2002-08-13 Richard M. Stallman <rms@gnu.org>
20568
20569 * minibuf.c (Fminibufferp): New function.
20570 (syms_of_minibuf): Defsubr it.
20571 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
20572
20573 2002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
20574
20575 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
20576
20577 2002-08-12 Richard M. Stallman <rms@gnu.org>
20578
20579 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
20580 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
20581 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
20582 already.
20583
20584 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
20585
20586 2002-08-11 Andrew Choi <akochoi@shaw.ca>
20587
20588 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
20589 (Vmac_pass_command_to_system): New variable.
20590 (Vmac_pass_control_to_system): New variable.
20591 (do_mouse_moved): Check wp with is_emacs_window.
20592 (XTread_socket): Check window_ptr with is_emacs_window.
20593 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
20594 events back to Mac Toolbox for processing, depending on values of
20595 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
20596 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
20597 Vmac_pass_control_to_system.
20598
20599 2002-08-10 Kenichi Handa <handa@etl.go.jp>
20600
20601 * coding.c (unencodable_char_position): New function.
20602 (Funencodable_char_position): New function.
20603 (syms_of_coding): Defsubr Funencodable_char_position.
20604
20605 2002-08-10 Andrew Choi <akochoi@shaw.ca>
20606
20607 * mac.c (sys_select) [MAC_OSX]: New function.
20608
20609 * macterm.c (MakeMeTheFrontProcess): New function.
20610 (mac_initialize): Call MakeMeTheFrontProcess.
20611
20612 * s/darwin.h: Define select to sys_select.
20613
20614 2002-08-09 Richard M. Stallman <rms@gnu.org>
20615
20616 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
20617
20618 2002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
20619
20620 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
20621 end of the buffer.
20622
20623 2002-08-08 Ken Raeburn <raeburn@gnu.org>
20624
20625 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
20626
20627 * puresize.h (BASE_PURESIZE): Increase to 910000.
20628
20629 2002-08-08 Kenichi Handa <handa@etl.go.jp>
20630
20631 * coding.c (Ffind_operation_coding_system): For write-region, if
20632 VISIT is a filename, make it the target.
20633
20634 2002-08-07 Richard M. Stallman <rms@gnu.org>
20635
20636 * alloc.c (mark_object): Detect long lists for debugging.
20637 (mark_object_loop_halt): New variable.
20638
20639 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
20640
20641 * data.c (Fmake_variable_frame_local): Doc fix.
20642
20643 2002-08-01 David Ponce <david@dponce.com>
20644
20645 * w32menu.c (local_heap, local_alloc, local_free): New macros.
20646 (malloc_widget_value, free_widget_value)
20647 (w32_free_submenu_strings): Use them.
20648
20649 (push_submenu_start, push_submenu_end, push_left_right_boundary)
20650 (push_menu_pane, push_menu_item, single_keymap_panes)
20651 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
20652 (single_submenu, set_frame_menubar)
20653 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
20654
20655 (Fx_popup_menu): Don't show pop up menu until preceding one is
20656 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
20657
20658 * w32menu.c: Changes adapted from xmenu.c
20659 (set_frame_menubar): First parse all submenus,
20660 then make widget_value trees from them.
20661 Don't allocate any widget_value objects
20662 until we are done with the parsing.
20663 (parse_single_submenu): New function.
20664 (digest_single_submenu): New function.
20665 (single_submenu): Function deleted, replaced by those two.
20666
20667 2002-08-04 Andrew Choi <akochoi@shaw.ca>
20668
20669 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
20670 returns a valid window pointer before proceeding for keyDown and
20671 autoKey events.
20672
20673 2002-08-03 Andrew Choi <akochoi@shaw.ca>
20674
20675 * macterm.c (USE_CARBON_EVENTS): New macro.
20676 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
20677 (x_iconify_frame): Call CollapseWindow.
20678 (Vmac_reverse_ctrl_meta): New variable.
20679 (Vmac_wheel_button_is_mouse_2): New variable.
20680 (init_mac_drag_n_drop): New function.
20681 (mac_do_receive_drag): New function.
20682 (mac_handle_service_event): New function.
20683 (init_service_handler): New function.
20684 (mac_to_emacs_modifiers): New function.
20685 (mac_event_to_emacs_modifiers): New function.
20686 (mac_get_mouse_btn): New function.
20687 (mac_convert_event_ref): New function.
20688 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
20689 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
20690 mac_get_mouse_btn.
20691 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
20692
20693 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
20694 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
20695 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
20696 TOOL_BAR_EVENT for MAC_OS as well.
20697 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
20698 as for WINDOWS_NT.
20699 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
20700
20701 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
20702
20703 2002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
20704
20705 * xdisp.c (forward_to_next_line_start): Fix a condition that
20706 lead to a newline being skipped.
20707
20708 2002-08-02 Andrew Choi <akochoi@shaw.ca>
20709
20710 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
20711
20712 2002-08-01 Richard M. Stallman <rms@gnu.org>
20713
20714 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
20715
20716 2002-07-31 Andrew Choi <akochoi@shaw.ca>
20717
20718 * macfns.c: #undef init_process before #define-ing it.
20719
20720 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
20721 HAVE_CARBON is defined.
20722
20723 2002-07-31 Richard M. Stallman <rms@gnu.org>
20724
20725 * xmenu.c (set_frame_menubar): First parse all submenus,
20726 then make widget_value trees from them.
20727 Don't allocate any widget_value objects
20728 until we are done with the parsing.
20729 (parse_single_submenu): New function.
20730 (digest_single_submenu): New function.
20731 (single_submenu): Function deleted, replaced by those two.
20732
20733 2002-07-30 Juanma Barranquero <lektu@terra.es>
20734
20735 * w32proc.c (syms_of_ntproc): Fix docstring of
20736 `w32-get-true-file-attributes'.
20737
20738 2002-07-28 Richard M. Stallman <rms@gnu.org>
20739
20740 * s/hpux8.h (HPUX8): Define this before including hpux.h.
20741 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
20742
20743 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
20744
20745 * keyboard.c (make_lispy_event):
20746 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
20747 Explicitly clear up_modifier in event->modifiers.
20748
20749 2002-07-27 Richard M. Stallman <rms@gnu.org>
20750
20751 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
20752
20753 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
20754 for bar cursor.
20755
20756 2002-07-26 Kenichi Handa <handa@etl.go.jp>
20757
20758 * coding.c (detect_coding_iso2022): While checking a byte sequence
20759 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
20760 it in the normal loop.
20761
20762 2002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
20763
20764 * xterm.c (expose_overlaps): New function.
20765 (expose_window): Use it to fix the display of overlapping rows.
20766
20767 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
20768
20769 2002-07-23 Ken Raeburn <raeburn@gnu.org>
20770
20771 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
20772 since it only depends on XUINT.
20773
20774 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
20775 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
20776 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
20777 Macros deleted.
20778
20779 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
20780 its value over other approaches.
20781 * sysdep.c (start_of_data): Don't define the function if a macro
20782 form has been defined.
20783
20784 2002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
20785
20786 * xdisp.c (redisplay_updating_p): New variable.
20787 (init_iterator): Don't free realized faces when
20788 redisplay_updating_p is set.
20789 (redisplay_internal): Set redisplay_updating_p while updating
20790 the display.
20791
20792 2002-07-23 Richard M. Stallman <rms@gnu.org>
20793
20794 * editfns.c (Fmessage): Treat "" like nil.
20795
20796 2002-07-23 Kenichi Handa <handa@etl.go.jp>
20797
20798 * xdisp.c (face_before_or_after_it_pos):
20799 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
20800
20801 2002-07-22 Juanma Barranquero <lektu@terra.es>
20802
20803 * callproc.c (init_callproc) [DOS_NT]:
20804 Initialize Vshared_game_score_directory to nil.
20805 (syms_of_callproc) [DOS_NT]: Likewise.
20806
20807 2002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
20808
20809 * xdisp.c (display_line): Replace an abort with xassert.
20810
20811 2002-07-21 Richard M. Stallman <rms@gnu.org>
20812
20813 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
20814 and END_UNCHANGED when setting buffer_unchanged_p.
20815 Use current_matrix_up_to_date_p to decide whether to use
20816 try_cursor_movement.
20817
20818 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
20819
20820 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
20821
20822 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
20823 Set to nil if dir does not exist.
20824 (syms_of_callproc): Init unconditionally and simply.
20825
20826 * buffer.c (Fbuffer_list): Doc fix.
20827
20828 2002-07-21 Ken Raeburn <raeburn@gnu.org>
20829
20830 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
20831
20832 * buffer.c (mmap_realloc): When shrinking, make sure number of
20833 pages to unmap is rounded towards zero.
20834
20835 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
20836 (XSETINT): Deleted.
20837
20838 * m/att3b.h (XINT): Don't define.
20839 (VALBITS, VALMASK, XTYPE): Deleted.
20840 (DATA_SEG_BITS): Define.
20841 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
20842 ARRAY_MARK_FLAG): Deleted.
20843 (DATA_SEG_BITS): Define.
20844 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
20845 (DATA_SEG_BITS): Define.
20846
20847 2002-07-20 Richard M. Stallman <rms@gnu.org>
20848
20849 * print.c (print_error_message): New args CONTEXT and CALLER.
20850 Calls changed.
20851
20852 * lisp.h (print_error_message): Declare new args.
20853
20854 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
20855 and CONTEXT to print_error_message, don't print them here.
20856 For a Quit, don't use Vsignaling_function.
20857 Call message_log_maybe_newline.
20858
20859 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
20860
20861 2002-07-20 Kim F. Storm <storm@cua.dk>
20862
20863 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
20864
20865 2002-07-19 Ken Raeburn <raeburn@gnu.org>
20866
20867 * bytecode.c (struct byte_stack): Pointers into byte string now
20868 point to const.
20869 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
20870 const.
20871 * charset.h (BCOPY_SHORT): Source pointer now points to const.
20872 * coding.c (encode_eol, detect_coding, detect_eol):
20873 (decode_coding, encode_coding, detect_coding_system):
20874 Source strings now treated as const.
20875 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
20876 modify Lisp string contents.
20877 * coding.h (decode_coding, encode_coding, detect_coding,
20878 detect_eol): Declarations updated.
20879 * composite.c (compose_chars_in_text): Treat Lisp string contents
20880 as const.
20881 * dispnew.c (safe_bcopy): Source pointer now points to const.
20882 * lisp.h (STRING_COPYIN): New macro.
20883 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
20884 (internal_with_output_to_temp_buffer): Declarations updated.
20885 * print.c (temp_output_buffer_setup):
20886 (internal_with_output_to_temp_buffer): Buffer name argument is now
20887 pointer to const.
20888 * sound.c (struct sound_device): Function pointer field "write"
20889 buffer argument now points to const.
20890 (vox_write): Buffer argument points to const.
20891 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
20892 contents as const.
20893 * sysdep.c (emacs_write): Buffer pointer now const.
20894 * term.c (encode_terminal_code): Buffer pointer now const.
20895 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
20896 (x_face_list_fonts, x_update_menu_appearance):
20897 (hash_string_case_insensitive): Treat Lisp string contents as const.
20898
20899 2002-07-19 Juanma Barranquero <lektu@terra.es>
20900
20901 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
20902
20903 * fileio.c (syms_of_fileio): Likewise.
20904 (Ffile_name_as_directory): Fix argument name in docstring.
20905 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
20906
20907 2002-07-18 Richard M. Stallman <rms@gnu.org>
20908
20909 * data.c (Fdefalias): Doc fix.
20910
20911 2002-07-17 Dave Love <fx@gnu.org>
20912
20913 * intervals.h (text_property_stickiness): Use P_.
20914
20915 * ccl.c: Remove `emacs' conditionals.
20916 (ccl_backtrace_table): Fix size spec.
20917 (ccl_driver): Fix type errors.
20918
20919 2002-07-16 Ken Raeburn <raeburn@gnu.org>
20920
20921 * alloc.c (xstrdup, make_string, make_unibyte_string)
20922 (make_multibyte_string, build_string): String pointer args now
20923 point to const.
20924 * charset.c (find_charset_in_text, c_string_width):
20925 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
20926 * fileio.c (report_file_error):
20927 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
20928 (count_combining_before, count_combining_after, insert_1_both):
20929 (insert, insert_and_inherit, insert_string):
20930 (insert_before_markers, insert_before_markers_and_inherit):
20931 * lread.c (intern, oblookup, hash_string):
20932 * minibuf.c (temp_echo_area_glyphs):
20933 * search.c (fast_c_string_match_ignore_case):
20934 * sysdep.c (emacs_open, set_file_times):
20935 * xfaces.c (xstricmp):
20936 * xdisp.c (store_frame_title, string_char_and_length):
20937 (message_dolog, message2, message2_nolog, set_message): Likewise.
20938 (set_message_1): Cast message string argument to const pointer.
20939 * editfns.c (general_insert_function): Insertion function now
20940 takes pointer to const for input data.
20941 * charset.h (find_charset_in_text, c_string_width):
20942 (parse_str_as_multibyte): Declarations updated.
20943 * dispextern.h (xstricmp): Declaration updated.
20944 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
20945 (count_size_as_multibyte, count_combining_before):
20946 (count_combining_after, insert_1, insert_1_both, message_dolog):
20947 (insert, insert_and_inherit, insert_before_markers)
20948 (insert_before_markers_and_inherit, set_message, message2):
20949 (message2_dolog, build_string, make_string, make_unibyte_string):
20950 (make_multibyte_string, intern, oblookup, report_file_error):
20951 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
20952 (emacs_open, xstrdup): Declarations updated.
20953 * systime.h (set_file_times): Declaration updated.
20954
20955 * charset.c (find_charset_in_text, lisp_string_width): Use const
20956 for pointer to lisp string data.
20957 * charset.h (FETCH_STRING_CHAR_ADVANCE):
20958 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
20959 * coding.c (Ffind_coding_systems_region_interval):
20960 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
20961 (Fmake_directory_internal, Fdelete_directory):
20962 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
20963 * fontset.c (font_family_registry, fs_query_fontset):
20964 (list_fontsets):
20965 * frame.c (Fframe_parameter):
20966 * keyboard.c (cmd_error_internal):
20967 * keymap.c (Fdescribe_buffer_bindings):
20968 * lread.c (complete_filename_p, openp):
20969 * minibuf.c (Fminibuffer_complete_word):
20970 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
20971 (face_before_or_after_it_pos, next_element_from_string):
20972 (get_overlay_arrow_glyph_row, display_mode_element):
20973 (decode_mode_spec_coding):
20974 * xterm.c (same_x_server): Likewise.
20975
20976 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
20977 settings of non-existent fields.
20978
20979 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
20980 copy a lisp value.
20981
20982 * lread.c (Fintern_soft): Use string macros instead of
20983 Lisp_String fields.
20984 * keyboard.c (echo_char, parse_modifiers_uncached):
20985 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
20986 * textprop.c (validate_interval_range, interval_of): Likewise.
20987
20988 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
20989
20990 * charset.h (FETCH_STRING_CHAR_ADVANCE)
20991 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
20992 XSTRING()->size_byte.
20993
20994 * lisp.h (SDATA, SREF): Produce rvalue.
20995 (SSET): New macro.
20996 * alloc.c (make_event_array): Use SSET for storing into a string.
20997 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
20998 a string.
20999 * casefiddle.c (casify_object): Use SSET.
21000 * charset.h (FETCH_STRING_CHAR_ADVANCE)
21001 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
21002 address of string contents.
21003 * data.c (Faref): Use SDATA.
21004 (Faset): Use SDATA, SSET.
21005 * dired.c (directory_files_internal): Use SSET.
21006 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
21007 (Fread_file_name): Use SREF, SSET.
21008 * fns.c (concat): Use SSET.
21009 (concat, Fdelete): Use SDATA.
21010 * insdel.c (insert_from_string_1): Use SDATA.
21011 * keyboard.c (Fevent_convert_list): Use SREF.
21012 * lread.c (Fload): Use SDATA, SSET.
21013 * macfns.c (validate_x_resource_name): Use SSET.
21014 * process.c (status_message): Use SSET.
21015 * search.c (wordify): Use SDATA.
21016 (Freplace_match): Use SREF.
21017 * w32fns.c (validate_x_resource_name): Use SSET.
21018 * xfns.c (validate_x_resource_name): Use SSET.
21019 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
21020
21021 2002-07-16 Richard M. Stallman <rms@gnu.org>
21022
21023 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
21024
21025 * xdisp.c (reconsider_clip_changes):
21026 Don't test prevent_redisplay_optimizations_p.
21027 (redisplay_internal): Test prevent_redisplay_optimizations_p
21028 along with clip_changed in some cases.
21029 (try_window_id): Likewise.
21030 (redisplay_window): New local var buffer_unchanged_p.
21031
21032 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
21033
21034 * process.c (create_process): Test USG_SUBTTY_WORKS.
21035 (process_send_signal): Clean up handling of GID.
21036 Detect errors in ioctls meant to set GID.
21037
21038 * window.c (temp_output_buffer_show):
21039 Don't set prevent_redisplay_optimizations_p.
21040
21041 2002-07-15 Juanma Barranquero <lektu@terra.es>
21042
21043 * eval.c (Fdefvaralias): Add docstring argument.
21044
21045 2002-07-15 Ken Raeburn <raeburn@gnu.org>
21046
21047 * lisp.h (STRING_INTERVALS): Produce rvalue.
21048 (STRING_SET_INTERVALS): New macro.
21049 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
21050 * fns.c (Fstring_as_multibyte): Likewise.
21051 * intervals.c (balance_possible_root_interval, delete_interval)
21052 (create_root_interval, copy_intervals_to_string): Likewise.
21053 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
21054 instead of 0.
21055
21056 2002-07-14 Ken Raeburn <raeburn@gnu.org>
21057
21058 * lisp.h (STRING_SET_CHARS): New macro.
21059 (SCHARS, SBYTES): Produce rvalues.
21060 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
21061 * fns.c (concat): Likewise.
21062 * lread.c (read_vector): Likewise.
21063
21064 * lisp.h (SMBP): Delete. All uses changed to STRING_MULTIBYTE.
21065 (STRING_SET_UNIBYTE): New macro.
21066 (SET_STRING_BYTES): Delete. Callers (all of which supplied a
21067 length of -1) changed to use STRING_SET_UNIBYTE.
21068 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
21069 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
21070 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
21071 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
21072 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
21073 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
21074 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
21075 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
21076 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
21077 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
21078 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
21079 STRING_BYTES or indirection changed to SCHARS, SBYTES,
21080 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
21081 unchanged for now.
21082
21083 2002-07-13 Kim F. Storm <storm@cua.dk>
21084
21085 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
21086
21087 2002-07-12 Richard M. Stallman <rms@gnu.org>
21088
21089 * fileio.c (Fwrite_region): Doc fix.
21090
21091 * print.c (print_error_message): Don't handle Vsignaling_function here.
21092
21093 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
21094 (command_loop_1): Avoid certain actions after memory-full error.
21095
21096 * eval.c (Fsignal): Don't call cancel_hourglass.
21097 For a memory-full error, don't call Vsignal_hook_function
21098 and don't set Vsignaling_function.
21099
21100 * process.c (process_send_signal): Add abort call.
21101
21102 2002-07-11 Markus Rost <rost@math.ohio-state.edu>
21103
21104 * keymap.c (Fkey_binding): Fix typo.
21105
21106 2002-07-11 Richard M. Stallman <rms@gnu.org>
21107
21108 * alloc.c (Vmemory_full): New variable.
21109 (Vmemory_signal_data): Rename from memory_signal_data.
21110 Uses changed.
21111 (syms_of_alloc): Defvar them.
21112 (memory_full, buffer_memory_full): Set Vmemory_full.
21113
21114 * lisp.h (Vmemory_full): Add declaration.
21115 (current_column, indented_beyond_p): Change declaration.
21116
21117 * indent.c (last_known_column): Declare as double, not float.
21118 (current_column, current_column_1, string_display_width)
21119 (position_indentation): Return `double'.
21120 (indented_beyond_p): Arg `column' is `double'. Callers changed.
21121
21122 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
21123 (back_to_previous_visible_line_start)
21124 (reseat_at_next_visible_line_start, next_element_from_buffer):
21125 Use `double', not `float', when calling indented_beyond_p.
21126
21127 * s/hpux11.h (BROKEN_SA_RESTART): Define.
21128
21129 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
21130
21131 2002-07-11 Juanma Barranquero <lektu@terra.es>
21132
21133 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
21134 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
21135 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
21136 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
21137 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
21138 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
21139
21140 2002-07-10 Juanma Barranquero <lektu@terra.es>
21141
21142 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
21143 All callers changed.
21144
21145 2002-07-09 Stefan Monnier <monnier@cs.yale.edu>
21146
21147 * data.c (Fdefalias): Add an optional `docstring' argument.
21148 (set_internal, Fsetq_default): Use XCAR/XCDR.
21149
21150 * composite.c (HASH_VALUE, HASH_KEY):
21151 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
21152
21153 2002-07-09 Kenichi Handa <handa@etl.go.jp>
21154
21155 * callproc.c (Fcall_process): Fix previous change.
21156
21157 2002-07-07 Stefan Monnier <monnier@cs.yale.edu>
21158
21159 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
21160 Add support for hash-tables.
21161 (Ftry_completion): Return t even if the string appears multiple times.
21162
21163 * fns.c (Fnconc): Use XCDR.
21164 (Fprovide): Use CONSP and XCDR.
21165 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
21166 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
21167 (Fmake_hash_table): Accept `:size nil'.
21168 (Fmakehash): Delete: moved to subr.el.
21169 (syms_of_fns): Don't defsubr makehash.
21170
21171 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
21172 (HASH_TABLE_SIZE): Move from fns.c.
21173
21174 2002-07-07 Richard M. Stallman <rms@gnu.org>
21175
21176 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
21177 Instead just return 0 when there is something to be done.
21178 (try_scrolling): If make_cursor_line_fully_visible returns 0,
21179 retry scrolling as if cursor were off the bottom.
21180 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
21181 return CURSOR_MOVEMENT_MUST_SCROLL.
21182 (redisplay_window): If make_cursor_line_fully_visible returns 0,
21183 go to try_to_scroll.
21184
21185 * buffer.c (Fbuffer_local_value): Store current value into its binding
21186 so we get the up-to-date value for the binding that is loaded.
21187
21188 * eval.c (Fdefmacro): Doc fix.
21189
21190 2002-07-05 Dave Love <fx@gnu.org>
21191
21192 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
21193 correctly.
21194
21195 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
21196 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
21197 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
21198 CCL_LookupCharConstTbl.
21199 (syms_of_ccl): Defvar translation-hash-table-vector.
21200
21201 2002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21202
21203 * xdisp.c: Remove unused variable `face'.
21204
21205 2002-07-04 Juanma Barranquero <lektu@terra.es>
21206
21207 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
21208 obsolescence information.
21209
21210 2002-07-03 Andrew Choi <akochoi@shaw.ca>
21211
21212 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
21213 pattern. Search cache first.
21214 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
21215 for Japanese font.
21216 (XLoadQueryFont): Use it.
21217
21218 2002-07-02 Richard M. Stallman <rms@gnu.org>
21219
21220 * keymap.c (Fdefine_key): Doc fix.
21221
21222 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
21223
21224 2002-07-02 Juanma Barranquero <lektu@terra.es>
21225
21226 * keymap.c (syms_of_keymap): Fix typo.
21227
21228 2002-07-01 Andrew Choi <akochoi@shaw.ca>
21229
21230 * s/darwin.h: Define POSIX_SIGNALS.
21231
21232 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
21233 and FSRefMakePath to convert FSSpec returned with Apple Event to
21234 Posix pathname.
21235 (mac_initialize) [TARGET_API_MAC_CARBON]:
21236 Call init_required_apple_events and disable the `Quit' menu item
21237 provided automatically by the Carbon Toolbox.
21238
21239 2002-07-01 Dave Love <fx@gnu.org>
21240
21241 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
21242 for K&R.
21243
21244 * xterm.c: Fix prototype for K&R.
21245
21246 * term.c (costs_set): Declare static, non-initialized for pcc.
21247
21248 2002-07-01 Richard M. Stallman <rms@gnu.org>
21249
21250 * keyboard.c (timer_last_idleness_start_time): New variable.
21251 (timer_start_idle): Set that.
21252 (read_key_sequence): Use that to reset timer_idleness_start_time
21253 to previous value.
21254
21255 * window.c (Frecenter): With arg, set optional_new_start.
21256
21257 * xdisp.c (redisplay_internal): Make optional_new_start really work.
21258
21259 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
21260 buffer for completion.
21261
21262 2002-06-29 Ken Raeburn <raeburn@gnu.org>
21263
21264 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
21265
21266 2002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
21267
21268 * keyboard.c (readable_filtered_events): New function that filters
21269 FOCUS_IN_EVENT depending on parameter.
21270 (readable_events): Calls readable_filtered_events, not filtering
21271 FOCUS_IN_EVENT.
21272 (get_filtered_input_pending): New function, filtering parameter passed
21273 to readable_filtered_events.
21274 (get_input_pending): Calls get_filtered_input_pending, not filtering
21275 FOCUS_IN_EVENT.
21276 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
21277 FOCUS_IN_EVENT.
21278
21279 * xterm.h (struct x_output): Add focus_state.
21280
21281 * xterm.c (x_focus_changed): New function.
21282 (x_detect_focus_change): New function.
21283 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
21284 EnterNotify and LeaveNotify to track X focus changes.
21285
21286 2002-06-28 Andreas Schwab <schwab@suse.de>
21287
21288 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
21289
21290 2002-06-27 Kim F. Storm <storm@cua.dk>
21291
21292 * xdisp.c (mode_line_string_list, mode_line_string_face)
21293 (mode_line_string_face_prop): New variables.
21294 (store_mode_line_string): New function.
21295 (display_mode_element): Use store_mode_line_string to
21296 add mode-line string elements to mode_line_string_list
21297 when mode_line_string_list is non-nil.
21298 (Fformat_mode_line): Now returns propertized string by
21299 default. New arg NO-PROPS to ignore properties.
21300 (decode_mode_spec): Only add two dashes for %- in propertized
21301 mode-line string.
21302 (syms_of_xdisp): Init and staticpro mode_line_string_list.
21303
21304 2002-06-27 Stefan Monnier <monnier@cs.yale.edu>
21305
21306 * minibuf.c (minibuffer_completion_contents): Add return type.
21307
21308 2002-06-27 Juanma Barranquero <lektu@terra.es>
21309
21310 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
21311
21312 2002-06-26 Juanma Barranquero <lektu@terra.es>
21313
21314 * fileio.c (read_file_name_cleanup): Add missing return.
21315
21316 2002-06-26 Richard M. Stallman <rms@gnu.org>
21317
21318 * window.c (Frecenter): Don't set force_start flag.
21319
21320 * minibuf.c (do_completion, Fminibuffer_complete_word)
21321 (Fminibuffer_completion_help): Complete just the text before point.
21322 (minibuffer_completion_contents): New function.
21323
21324 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
21325
21326 * frame.c (frames_bury_buffer): Function deleted.
21327
21328 2002-06-25 Miles Bader <miles@gnu.org>
21329
21330 * callint.c (Fcall_interactively): When checking to see if doprnt hit
21331 the end of callint_message, allow for a terminating '\0'.
21332
21333 2002-06-24 Juanma Barranquero <lektu@terra.es>
21334
21335 * w32select.c: Include composite.h.
21336
21337 * w16select.c: Likewise.
21338
21339 2002-06-24 Kenichi Handa <handa@etl.go.jp>
21340
21341 * callproc.c (Fcall_process): If code detection is necessary,
21342 call detect_coding directly here.
21343
21344 * coding.c (detect_eol): Preserve coding->cmp_data.
21345
21346 * w16select.c (Fw16_get_clipboard_data):
21347 * w32fns.c (w32_to_x_font):
21348 * w32select.c (Fw32_get_clipboard_data):
21349 * xselect.c (selection_data_to_lisp_data):
21350 * xterm.c (XTread_socket): Disable composition handling.
21351
21352 2002-06-24 Stefan Monnier <monnier@cs.yale.edu>
21353
21354 * print.c (temp_output_buffer_setup): Kill all local variables.
21355
21356 2002-06-22 Stefan Monnier <monnier@cs.yale.edu>
21357
21358 * lread.c (Fread): Remove redundant and imprecise declaration.
21359
21360 * xfns.c (check_x_display_info): Use check_x_frame.
21361
21362 * .gdbinit (xprintsym): Use the new `xname' field.
21363 (xsymbol): Use it.
21364
21365 2002-06-22 Jason Rumney <jasonr@gnu.org>
21366
21367 * w32fns.c (file_dialog_callback): New function.
21368 (Fx_file_dialog): Allow selecting directories as well as files.
21369
21370 2002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21371
21372 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
21373 OpenBSD. Add support for mipseb-*-netbsd* machines.
21374
21375 2002-06-17 Andrew Choi <akochoi@shaw.ca>
21376
21377 * macterm.c (mac_scroll_area): Set foreground and backcolor to
21378 black and white before scrolling. Restore frame background and
21379 foreground color after scrolling.
21380 (do_window_update): Call XClearWindow before calling expose_frame.
21381 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
21382 FRAME_FOREGROUND_PIXEL of frame.
21383
21384 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
21385 test Mac command key as <ALT> key.
21386
21387 2002-06-17 Stefan Monnier <monnier@cs.yale.edu>
21388
21389 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
21390
21391 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
21392 Lookup keys in function-key-map immediately so that key-translation-map
21393 can be applied earlier.
21394 Remove function_key_possible and key_translation_possible, replaced
21395 by checking `keytran_start < t'.
21396
21397 * .gdbinit (xsymbol): Use the new `xname' field.
21398
21399 2002-06-17 Andrew Choi <akochoi@shaw.ca>
21400
21401 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
21402 test Mac command key as <ALT> key.
21403
21404 * mac.c (do_applescript): Call initialize_applescript if necessary
21405 when first called. Dispose of result_desc only when there is no error.
21406 (Fdo_applescript): Use %d format specifier instead of %ld.
21407
21408 2002-06-16 Andrew Choi <akochoi@shaw.ca>
21409
21410 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
21411 of FrontWindow for cases keyDown and autoKey.
21412
21413 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
21414 Vdefault_fontset to Monaco with mac-roman coding.
21415
21416 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
21417 init_process before and after inclusion of Carbon/Carbon.h, resp.
21418
21419 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
21420 cursor_gc.
21421 (add_font_name_table_entry): New function.
21422 (init_font_name_table): Use add_font_name_table_entry; add italic,
21423 bold, and bold-italic entries for truetype fonts.
21424
21425 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
21426 for Mac too.
21427 (try_font_list) [MAC_OS]: If no font matches given registry, try
21428 fonts with any registry matching face_family.
21429 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
21430
21431 * s/darwin.h: If autoconf detects the Ncurses library, define
21432 LIBS_TERMCAP to -lncurses to use it.
21433
21434 2002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
21435
21436 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
21437
21438 2002-06-15 Richard M. Stallman <rms@gnu.org>
21439
21440 * window.c (Fset_window_configuration): Explicitly preserve
21441 the point value that new_current_buffer had at the start.
21442
21443 2002-06-14 Juanma Barranquero <lektu@terra.es>
21444
21445 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
21446 Fix typos.
21447
21448 2002-06-14 Kim F. Storm <storm@cua.dk>
21449
21450 * insdel.c (insert_1_both, insert_from_string_1)
21451 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
21452 insert happened in the end_unchanged region. Otherwise, the
21453 redisplay may be confused and duplicate the last line in the
21454 buffer [seen after save-buffer when require-final-newline==t].
21455
21456 2002-06-13 Jason Rumney <jasonr@gnu.org>
21457
21458 * w32.c (init_environment): Remove EMACSLOCKDIR.
21459 (stat): Swap _S_IFDIR and _S_IFREG.
21460
21461 2002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21462
21463 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
21464 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
21465 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
21466 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
21467 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
21468 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
21469 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
21470 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
21471 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
21472 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
21473 SELECTION_REQUEST_EVENT, selection_clear_event to
21474 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
21475 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
21476 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
21477 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
21478 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
21479 no_event to NO_EVENT.
21480
21481 2002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21482
21483 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
21484
21485 2002-06-12 Stefan Monnier <monnier@cs.yale.edu>
21486
21487 * intervals.c (textget): Don't forget to `return'.
21488 (lookup_char_property): Use XCAR/XCDR.
21489
21490 2002-06-12 Juanma Barranquero <lektu@terra.es>
21491
21492 * xdisp.c (Fformat_mode_line): Fix typo.
21493
21494 2002-06-12 Kim F. Storm <storm@cua.dk>
21495
21496 * xdisp.c (Fformat_mode_line): New function.
21497 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
21498 (store_frame_title_char, store_frame_title): Use unconditionally.
21499 (init_xdisp): Defsubr Fformat_mode_line.
21500 Initialize frame_title_buf etc. unconditionally.
21501
21502 2002-06-11 Stefan Monnier <monnier@cs.yale.edu>
21503
21504 * keyboard.c (read_key_sequence):
21505 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
21506 things through those maps after downcasing events.
21507 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
21508 applies after function-key-map.
21509 Make sure that keytran can be done in the middle in the sequence.
21510 Be careful not to throw away events past the one we downcase.
21511
21512 * lread.c (read_integer): Remove unused var `tem'.
21513 (read1): Fix int/Lisp_Object mixup.
21514
21515 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
21516
21517 2002-06-11 Richard M. Stallman <rms@gnu.org>
21518
21519 * keyboard.c (readable_events): Ignore any number of
21520 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
21521
21522 2002-06-09 Miles Bader <miles@gnu.org>
21523
21524 * xfaces.c (Ftty_supports_face_attributes_p): New function.
21525 (parse_rgb_list, tty_lookup_color): New functions.
21526 (tty_defined_color): Use `tty_lookup_color' to do all the work.
21527 (color_distance, Fcolor_distance): New functions.
21528 (TTY_SAME_COLOR_THRESHOLD): New macro.
21529 (Qtty_color_standard_values): New variable.
21530 (syms_of_xfaces): Initialize new vars & functions.
21531
21532 2002-06-08 Colin Walters <walters@verbum.org>
21533
21534 * textprop.c (Vchar_property_alias_alist): New variable.
21535 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
21536
21537 * intervals.c (lookup_char_property): New function for looking up
21538 overlay and text properties, created from textget.
21539 (textget): Use it.
21540
21541 * intervals.h (lookup_char_property): Declare.
21542 (Vchar_property_alias_alist): Declare.
21543
21544 * buffer.c (Foverlay_get): Use lookup_char_property.
21545
21546 2002-06-07 Sam Steingold <sds@gnu.org>
21547
21548 * xselect.c (lisp_data_to_selection_data): Fix last change:
21549 *data_ret is not a Lisp string, while unibyte_string is.
21550
21551 2002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
21552
21553 * xselect.c (lisp_data_to_selection_data): Fix last change:
21554 set size_ret.
21555
21556 2002-06-07 Andreas Schwab <schwab@suse.de>
21557
21558 * m/amdx86-64.h: New file.
21559
21560 2002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
21561
21562 * fns.c (Fstring_make_unibyte): Doc fix.
21563
21564 * xselect.c (lisp_data_to_selection_data): If the requested type
21565 is STRING, call string_make_unibyte to encode the selected text
21566 as a string.
21567
21568 * window.c (Fset_window_hscroll): Doc fix.
21569
21570 2002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21571
21572 * fileio.c (choose_write_coding_system):
21573 Call select-safe-coding-system properly.
21574
21575 2002-06-03 Richard M. Stallman <rms@gnu.org>
21576
21577 * xdisp.c (message_with_string): Error if STRING is not a string.
21578
21579 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
21580
21581 * fileio.c (choose_write_coding_system): Pass FILE arg to
21582 Vselect_safe_coding_system_function.
21583
21584 2002-06-03 Ken Raeburn <raeburn@gnu.org>
21585
21586 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
21587
21588 2002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
21589
21590 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
21591 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
21592 * keymap.c (describe_command): Likewise.
21593 * minibuf.c (read_minibuf): Likewise.
21594
21595 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
21596 Cast `current_column' return value to int.
21597 (back_to_previous_visible_line_start)
21598 (reseat_at_next_visible_line_start, next_element_from_buffer):
21599 Cast `indented_beyond_p' 3rd arg to float.
21600
21601 * indent.c (last_known_column): Now a float.
21602 (current_column_1, position_indentation, current_column)
21603 (string_display_width): Return float.
21604 (Fcurrent_column): Cast `current_column' return value to int.
21605 (Fcurrent_indentation): Cast `position_indentation' retval to int.
21606 (indented_beyond_p): Third arg now a float.
21607 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
21608
21609 * lisp.h (current_column): Now returns float.
21610 (indented_beyond_p): 3rd arg now a float.
21611
21612 2002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
21613
21614 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
21615 is Qcompound_text_with_extensions.
21616
21617 * xselect.c (lisp_data_to_selection_data): Always set selection
21618 type as string if x_encode_text returns streingp non-NULL.
21619
21620 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
21621
21622 2002-05-30 Richard M. Stallman <rms@gnu.org>
21623
21624 * window.c (Fset_window_configuration): Correct the handling
21625 of point in current buffer, to work with multiple windows.
21626
21627 2002-05-29 Colin Walters <walters@verbum.org>
21628
21629 * lread.c (Fread_from_string): Don't depend on order of evaluation
21630 for C function parameters.
21631
21632 2002-05-28 Richard M. Stallman <rms@gnu.org>
21633
21634 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
21635 way for blinked-off state and for a nonselected window.
21636
21637 * window.c (window_scroll_pixel_based): Don't call Fbolp;
21638 instead, see if the new start pos is at beginning of line.
21639
21640 * fileio.c (Fwrite_region): If START is a string, don't
21641 make any annotations.
21642
21643 * eval.c (syms_of_eval): Doc fix.
21644
21645 2002-05-28 Colin Walters <walters@debian.org>
21646
21647 * emacs.c (USAGE1): Add --no-splash.
21648 (standard_args): Ditto.
21649
21650 2002-05-28 Colin Walters <walters@gnu.org>
21651
21652 * lread.c (readchar_count): New variable.
21653 (readchar): Increment it.
21654 (unreadchar): Decrement it.
21655 (read_multibyte): Decrement it.
21656 (Vread_with_symbol_positions): New variable.
21657 (Vread_symbol_positions_list): New variable.
21658 (read_internal_start): New function, created from Fread and
21659 Fread_from_string. Handle Vread_symbol_positions_list and
21660 Vread_with_symbol_positions.
21661 (readevalloop, Fread, Fread_from_string): Use it.
21662 (read1): Use readchar_count to add symbol positions to
21663 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
21664 (syms_of_lread): DEFVAR_LISP and initialize them.
21665
21666 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
21667 (substitute_object_recurse, substitute_object_in_subtree)
21668 (substitute_in_interval): Prototype.
21669 (read_multibyte): Return c if it's less than zero.
21670
21671 2002-05-28 Kim F. Storm <storm@cua.dk>
21672
21673 * fileio.c (Fread_file_name_internal): Added brute-force
21674 speed up for using predicate file-directory-p.
21675
21676 2002-05-28 Kim F. Storm <storm@cua.dk>
21677
21678 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
21679 New variables.
21680 (syms_of_fileio): DEFVAR_LISP them.
21681 (read_file_name_cleanup): New unwind function.
21682 (Fread_file_name_internal): Only return completions satifying
21683 Vread_file_name_predicate. Temporarily unwind protect and rebind
21684 default-directory while checking completions against the predicate.
21685 (Fread_file_name): Added PREDICATE argument. Specbind it to
21686 Vread_file_name_predicate during completion.
21687 Call Vread_file_name_function to read the file name if non-nil.
21688
21689 * lisp.h (Fread_file_name): Now has 6 args.
21690
21691 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
21692 predicate for Fread_file_name when reading directory name.
21693 Supply Qnil for predicate in other calls to Fread_file_name.
21694
21695 2002-05-26 Miles Bader <miles@gnu.org>
21696
21697 * term.c (tty_capable_p): New function.
21698 * dispextern.h (tty_capable_p): New function declaration.
21699 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
21700 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
21701
21702 2002-05-23 Stefan Monnier <monnier@cs.yale.edu>
21703
21704 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
21705 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
21706 (Vwrite_region_annotate_functions): Docstring fix.
21707
21708 2002-05-23 Kim F. Storm <storm@cua.dk>
21709
21710 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
21711 phys_cursor's hpos is overwritten. This is still not completely
21712 correct, as it doesn't really make sense to use hpos at all to
21713 get the cursor glyph (as that is relative to the width of the
21714 characters on the line, which may have changed during the update).
21715
21716 2002-05-22 Jason Rumney <jasonr@gnu.org>
21717
21718 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
21719 Lisp_Object.
21720 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
21721 Use modified enumfont_t struct.
21722
21723 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
21724
21725 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
21726 Handle the `hbar' cursor type.
21727 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
21728
21729 * w32fns.c (Qhbar): New variable.
21730 (x_specified_cursor_type): Use it.
21731
21732 2002-05-21 Ken Raeburn <raeburn@gnu.org>
21733
21734 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
21735 now, when the address is needed.
21736
21737 2002-05-21 Colin Walters <walters@gnu.org>
21738
21739 * Makefile.in (shortlisp): Add font-core.el.
21740
21741 2002-05-20 Richard M. Stallman <rms@gnu.org>
21742
21743 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
21744
21745 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
21746 equivalent key bindings here.
21747
21748 2002-05-20 Ken Raeburn <raeburn@gnu.org>
21749
21750 Change symbol structure to contain a lisp object for the symbol
21751 name:
21752 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
21753 object field named "xname".
21754 (SYMBOL_NAME): New macro.
21755 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
21756 name field.
21757 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
21758 (mark_object, gc_sweep): Use symbol xname field and XSTRING
21759 instead of name field.
21760 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
21761 SYMBOL_NAME instead of XSYMBOL and name field.
21762 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
21763 instead of XSYMBOL and name field.
21764 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
21765 and SYMBOL_NAME instead of XSYMBOL and name field.
21766 * coding.c (Fread_coding_system, code_convert_region1)
21767 (code_convert_string1, code_convert_string_norecord)
21768 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
21769 XSYMBOL and name field.
21770 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
21771 (Fmake_variable_buffer_local, Fmake_local_variable)
21772 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
21773 of XSYMBOL and name field.
21774 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
21775 XSYMBOL and name field.
21776 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
21777 instead of XSYMBOL and name field.
21778 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
21779 XSYMBOL and name field.
21780 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
21781 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
21782 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
21783 instead of XSYMBOL and name field.
21784 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
21785 (parse_modifiers, apply_modifiers, Fevent_convert_list)
21786 (parse_solitary_modifier, Fexecute_extended_command):
21787 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
21788 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
21789 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
21790 of XSYMBOL and name field.
21791 (describe_command, describe_translation): Use SYMBOL_NAME and
21792 assignment instead of XSYMBOL and name field and XSETSTRING.
21793 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
21794 instead of XSYMBOL and name field.
21795 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
21796 name field and XSETSTRING.
21797 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
21798 of XSYMBOL and name field.
21799 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
21800 assignment instead of XSYMBOL and name field and XSETSTRING.
21801 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
21802 XSTRING instead of XSYMBOL and name field.
21803 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
21804 and XSTRING instead of XSYMBOL and name field.
21805 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
21806 and XSTRING instead of XSYMBOL and name field.
21807 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
21808 XSTRING instead of XSYMBOL and name field.
21809 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
21810 of XSYMBOL and name field.
21811 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
21812 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
21813
21814 2002-05-19 Ken Raeburn <raeburn@gnu.org>
21815
21816 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
21817 and XCDR real rvalues in most configurations.
21818
21819 * buffer.c (fix_overlays_in_range, fix_overlays_before):
21820 Don't take the address of the cdr part of a cons cell; instead, track
21821 the parent cell and call XSETCDR, or set the variable for the head
21822 of the list if we haven't started down the list yet.
21823
21824 2002-05-19 Richard M. Stallman <rms@gnu.org>
21825
21826 * doc.c (reread_doc_file): Don't ask for confirmation.
21827
21828 2002-05-18 Jason Rumney <jasonr@gnu.org>
21829
21830 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
21831 (xbm_load_image): Use it.
21832 (xbm_load): Ditto.
21833 (xbm_read_bitmap_data): Reverted to xfns.c version.
21834 From David Ponce <david@dponce.com>.
21835
21836 2002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
21837
21838 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
21839 2.02 and later.
21840
21841 2002-05-16 Juanma Barranquero <lektu@terra.es>
21842
21843 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
21844
21845 2002-05-15 Stefan Monnier <monnier@cs.yale.edu>
21846
21847 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
21848 meaningful test.
21849 (read_char_minibuf_menu_prompt): Fix typo.
21850
21851 2002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
21852
21853 * eval.c (Fcommandp): Doc fix.
21854
21855 2002-05-13 Stefan Monnier <monnier@cs.yale.edu>
21856
21857 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
21858 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
21859 (Fset_keymap_parent): Gcpro a bit more.
21860 (access_keymap): Gcpro around meta_map call and around the main loop.
21861 (get_keyelt): Gcpro when following indirect references.
21862 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
21863 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
21864 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
21865 Remove useless ad-hoc remap code.
21866
21867 2002-05-13 Richard M. Stallman <rms@gnu.org>
21868
21869 * search.c (search_buffer): Give up boyer moore search if inverse
21870 translation change charset_base.
21871
21872 2002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
21873
21874 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
21875 characters is carried over from the previous block of text, adjust
21876 coding->produced to account for the extra character.
21877
21878 2002-05-11 Andreas Schwab <schwab@suse.de>
21879
21880 * coding.c (intersection): Keep the elements of the returned list
21881 in the same order as in the first list.
21882
21883 2002-05-11 Kim F. Storm <storm@cua.dk>
21884
21885 * keymap.c (current_minor_maps): Fix resizing of cmm_maps;
21886 only update cmm_size if realloc actually succeeds.
21887 Testing with initial size of 2 elements revealed that using
21888 realloc on GNU/Linux would cause a random trap in xmalloc
21889 later on, so I rewrote the code to use malloc/bcopy/free instead
21890 of realloc.
21891
21892 2002-05-10 Jason Rumney <jasonr@gnu.org>
21893
21894 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
21895
21896 2002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
21897
21898 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
21899 parens, to ensure correct evaluation order.
21900
21901 2002-05-10 Kim F. Storm <storm@cua.dk>
21902
21903 * keymap.c (Vemulation_mode_map_alists): New variable.
21904 (syms_of_keymap): DEFVAR_LISP it.
21905 (current_minor_maps): Process keymap alists in that list before
21906 minor-mode-overriding-map-alist and minor-mode-map-alist.
21907
21908 2002-05-09 Richard M. Stallman <rms@gnu.org>
21909
21910 * search.c (Freplace_match): Doc fix.
21911
21912 2002-05-09 Kim F. Storm <storm@cua.dk>
21913
21914 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
21915 Enlarge cursor rectangle drawn around image with non-zero relief.
21916
21917 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
21918 Enlarge cursor rectangle drawn around image with non-zero relief.
21919
21920 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
21921 Enlarge cursor rectangle drawn around image with non-zero relief.
21922
21923 2002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
21924
21925 * xselect.c (lisp_data_to_selection_data): Don't set selection
21926 type if comes from the Lisp object's car. If the selection
21927 contains a pure ASCII text, always return QSTRING as its type.
21928
21929 2002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21930
21931 * mac.c (mac-cut-function): Doc fix.
21932
21933 2002-05-05 Richard M. Stallman <rms@gnu.org>
21934
21935 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
21936
21937 2002-05-04 Jason Rumney <jasonr@gnu.org>
21938
21939 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
21940 for event-click-count.
21941
21942 * process.c (init_process): Only add server subfeature if we can
21943 use non-blocking I/O.
21944
21945 2002-05-04 Andrew Choi <akochoi@shaw.ca>
21946
21947 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
21948 repeatedly.
21949
21950 2002-05-03 Jason Rumney <jasonr@gnu.org>
21951
21952 * process.c (Fmake_network_process): Only support server sockets
21953 when we can make them non-blocking.
21954
21955 * s/ms-w32.h (HAVE_SELECT): Define.
21956
21957 * w32.h (FILE_NDELAY): New flag.
21958
21959 * w32.c (sys_getpeername, fcntl): New functions.
21960 (_sys_read_ahead): Temporarily block on non-blocking sockets.
21961
21962 * w32proc.c: Include sys/file.h.
21963
21964 2002-05-03 Colin Walters <walters@verbum.org>
21965
21966 * callproc.c (Vgame_score_directory): Renamed to
21967 Vshared_game_score_directory.
21968
21969 2002-04-30 Richard M. Stallman <rms@gnu.org>
21970
21971 * s/gnu.h [emacs]: Include stdio.h.
21972 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
21973
21974 * eval.c (do_autoload): Error if called while preparing to dump.
21975
21976 * fns.c (Frequire): Error if need to load while preparing to dump.
21977
21978 2002-04-28 Colin Walters <walters@verbum.org>
21979
21980 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
21981 Default to "~/.emacs.d/games".
21982
21983 2002-04-29 Stefan Monnier <monnier@cs.yale.edu>
21984
21985 * lread.c (openp): Change arg exec_only to predicate.
21986 (build_load_history): Use XCAR/XCDR.
21987 (Flocate_file_internal): New fun.
21988 (syms_of_lread): Defsubr it.
21989 (Fload): Update call to openp.
21990
21991 * lisp.h (openp): Update prototype.
21992
21993 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
21994 * w32proc.c (sys_spawnve):
21995 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
21996 * w32.c (check_windows_init_file):
21997 * sound.c (Fplay_sound_internal):
21998 * process.c (Fstart_process):
21999 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
22000 * mac.c (run_mac_command):
22001 * emacs.c (init_cmdargs):
22002 * callproc.c (Fcall_process): Update call to openp.
22003
22004 * textprop.c (remove_properties): Don't use XCAR without CONSP.
22005
22006 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
22007
22008 2002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22009
22010 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
22011 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
22012
22013 2002-04-28 Richard M. Stallman <rms@gnu.org>
22014
22015 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
22016
22017 * eval.c (Fcommandp): New arg for_call_interactively.
22018 * lisp.h (Fcommandp): Declare new arg.
22019
22020 2002-04-28 Jason Rumney <jasonr@gnu.org>
22021
22022 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
22023
22024 * w32.c (stat, fstat): Use file index information to generate
22025 inodes for directories where available.
22026
22027 2002-04-26 Andrew Choi <akochoi@shaw.ca>
22028
22029 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
22030 [HAVE_CARBON]: Include Mac object files.
22031
22032 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
22033 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
22034 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
22035 MAC_OSX, and MAC_OS instead of macintosh.
22036
22037 * editfns.c [MAC_OS8]: Include stdio.h.
22038
22039 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
22040
22041 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
22042 Apple Monaco.
22043
22044 * process.c (QCfamily, QCfilte): Declare extern.
22045 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
22046 calling select.
22047
22048 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
22049
22050 * tparam.c [MAC_OSX]: Don't define BC and UP.
22051
22052 * config.in [HAVE_CARBON]: Add.
22053
22054 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
22055 Move here from mac/src and mac/inc.
22056
22057 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
22058
22059 2002-04-26 Gerd Moellmann <gerd@gnu.org>
22060
22061 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
22062 Compute phys_cursor_width from the x position returned
22063 by x_draw_glyhs, which is cheaper.
22064 (x_display_and_set_cursor): Compute the buffer-local value
22065 of `cursor-in-non-selected-windows' only when needed.
22066
22067 2002-04-25 Gerd Moellmann <gerd@gnu.org>
22068
22069 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
22070 cursor on a stretch glyph has a width that depends on
22071 x_stretch_cursor_p.
22072
22073 2002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22074
22075 * abbrev.c (abbrev-start-location): Doc fix.
22076
22077 * indent.c (Fvertical_motion): Fix last change.
22078
22079 2002-04-25 Gerd Moellmann <gerd@gnu.org>
22080
22081 * indent.c (Fvertical_motion): Move to the start of the line
22082 containing PT before moving up or down.
22083
22084 2002-04-24 Gerd Moellmann <gerd@gnu.org>
22085
22086 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
22087 case of writing a whole row, more or less analogous to the case of
22088 writing only parts of a row.
22089
22090 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
22091 0 for NO_CURSOR.
22092
22093 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
22094
22095 2002-04-23 Colin Walters <walters@verbum.org>
22096
22097 * buffer.c (syms_of_buffer): Doc fix.
22098
22099 2002-04-23 Gerd Moellmann <gerd@gnu.org>
22100
22101 * xterm.c (notice_overwritten_cursor): Handle the special case
22102 of the cursor being in the first blank non-text line at the
22103 end of a window.
22104
22105 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
22106 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
22107 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
22108 bar cursors only, to make phys_cursor_width contain what its name
22109 suggests.
22110 (notice_overwritten_cursor): Consider the cursor image erased if
22111 the output area intersects the cursor image in y-direction.
22112
22113 2002-04-23 Simon Marshall <simon@gnu.org>
22114
22115 * xfns.c (x_set_mouse_color): Change default for cross_cursor
22116 to XC_hand2.
22117
22118 2002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22119
22120 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
22121
22122 2002-04-22 Kim F. Storm <storm@cua.dk>
22123
22124 * textprop.c (remove_properties): Fixed trap for malformed plist.
22125
22126 2002-04-22 Richard M. Stallman <rms@gnu.org>
22127
22128 * cmds.c (Fend_of_line): Handle intangible text in mid line.
22129
22130 * window.c (make_window): Initialize height_fixed_p,
22131 last_cursor_off_p, and p->cursor_off_p slots.
22132
22133 2002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22134
22135 * fns.c (use-dialog-box): Doc fix.
22136
22137 2002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22138
22139 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
22140 variables `row', `i' and `area'.
22141 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
22142 toolkit library.
22143
22144 2002-04-19 Stefan Monnier <monnier@cs.yale.edu>
22145
22146 * xfaces.c (clear_font_table): Don't free the default font of
22147 a frame even if it's on another display.
22148 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
22149 that could be Qt.
22150
22151 2002-04-19 Juanma Barranquero <lektu@terra.es>
22152
22153 * indent.c (Fmove_to_column): Remove unused local variable
22154 `next_boundary_byte'.
22155 (current_column_1): Likewise.
22156
22157 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
22158
22159 * msdos.c (Qhbar): New variable.
22160 (syms_of_msdos): Intern and staticpro it.
22161 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
22162 cursor type.
22163
22164 2002-04-19 Dave Lambert <dlambert@acm.org>
22165
22166 Theses change implement an underscore-like (`hbar') cursor.
22167
22168 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
22169
22170 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
22171 Handle the `hbar' cursor type.
22172 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
22173
22174 * xfns.c (Qhbar): New variable.
22175 (syms_of_xfns): Intern and staticpro it.
22176 (x_specified_cursor_type): Handle `hbar' cursor.
22177
22178 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
22179 not defined.
22180
22181 2002-04-18 Richard M. Stallman <rms@gnu.org>
22182
22183 * textprop.c (remove_properties): New arg LIST allows scanning
22184 either a list or a plist.
22185 (interval_has_some_properties_list): New function, like
22186 interval_has_some_properties using list instead of plist.
22187 All callers changed.
22188 (Fremove_list_of_text_properties): New function.
22189 (syms_of_textprop): Defsubr it.
22190
22191 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
22192
22193 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
22194
22195 2002-04-17 Juanma Barranquero <lektu@terra.es>
22196
22197 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
22198
22199 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
22200
22201 * window.c (coordinates_in_window): Don't report on margin area
22202 if its width is zero.
22203
22204 2002-04-16 Jason Rumney <jasonr@gnu.org>
22205
22206 * w32fns.c (Fx_file_dialog): Decode file name before using.
22207
22208 * w32term.c (construct_drag_n_drop): Likewise.
22209
22210 2002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
22211
22212 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
22213 store load-history in pure space.
22214
22215 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
22216
22217 2002-04-16 Stefan Monnier <monnier@cs.yale.edu>
22218
22219 * xterm.c (Qlatin_1, Qutf_8): New vars.
22220 (syms_of_xterm): Initialize them.
22221 (XTread_socket): Eliminate incorrect optimization that tried to avoid
22222 decoding the output of X*LookupString.
22223 Always use latin-1 to decode the output of XLookupString.
22224 Try Xutf8LookupString if XmbLookupString failed.
22225
22226 * region-cache.c (new_region_cache): Use BEG.
22227
22228 2002-04-16 Gerd Moellmann <gerd@gnu.org>
22229
22230 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
22231 configuration files.
22232 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
22233 returns 0.
22234
22235 2002-04-15 Andreas Schwab <schwab@suse.de>
22236
22237 * config.in: Regenerated using autoheader.
22238
22239 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
22240 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
22241 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
22242 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
22243 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
22244 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
22245 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
22246 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
22247 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
22248 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
22249 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
22250 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
22251 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
22252 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
22253 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
22254 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
22255 STACK_DIRECTION, now set by autoconf.
22256
22257 2002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22258
22259 * dispnew.c (marginal_area_string): Sort arguments.
22260
22261 * dispextern.h (marginal_area_string): Add prototype.
22262
22263 2002-04-13 Richard M. Stallman <rms@gnu.org>
22264
22265 * fileio.c (Finsert_file_contents):
22266 Don't call temp_output_buffer_setup--do just part, by hand.
22267
22268 * coding.c (run_pre_post_conversion_on_str):
22269 Don't call temp_output_buffer_setup--do just part, by hand.
22270
22271 * keyboard.c (command_loop_1): Don't call start_hourglass
22272 or cancel_hourglass when executing a macro.
22273
22274 * marker.c (count_markers): New function.
22275
22276 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
22277 grow without limit. Move recently used elements to the front.
22278
22279 2002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
22280
22281 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
22282
22283 2002-04-12 Gerd Moellmann <gerd@gnu.org>
22284
22285 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
22286 rows marginal areas.
22287 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
22288 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
22289
22290 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
22291
22292 2002-04-12 Dave Love <fx@gnu.org>
22293
22294 * dispnew.c (marginal_area_string): New.
22295
22296 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
22297 (Qleft_margin, Qright_margin): Declare.
22298 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
22299
22300 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
22301 note_mode_line_highlight and extended.
22302
22303 * keyboard.c (Qleft_margin, Qright_margin): Declare.
22304 (make_lispy_event): Deal with mouse events in margins.
22305
22306 2002-04-12 Stefan Monnier <monnier@cs.yale.edu>
22307
22308 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
22309
22310 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
22311 than deactivating the mark if tmm is set to `lambda'.
22312 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
22313 Use a single event for HELP_EVENT.
22314 (Fexecute_extended_command): Save last_point_position.
22315
22316 2002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22317
22318 * lisp.h (Fpropertize): Add prototype.
22319
22320 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
22321
22322 2002-04-10 Colin Walters <walters@verbum.org>
22323
22324 * config.in: Add HAVE_SHARED_GAME_DIR.
22325
22326 * callproc.c (Vgame_score_directory): New variable.
22327 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
22328
22329 2002-04-10 Richard M. Stallman <rms@gnu.org>
22330
22331 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
22332
22333 2002-04-09 Stefan Monnier <monnier@cs.yale.edu>
22334
22335 * minibuf.c (read_minibuf): Use empty_string.
22336 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
22337 Short-circuit the search as soon as it "failed".
22338 (Fall_completions): Allow lambda forms and lists of strings for alist.
22339 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
22340 when require_match is nil.
22341 (Ftest_completion): Rename from `test_completion' and export to elisp.
22342 Call the predicate also when alist is a list.
22343 Obey Vcompletion_regexp_list.
22344 (do_completion, Fminibuffer_complete_and_exit): Use it.
22345 (Fassoc_string): Rename from `assoc_for_completion'.
22346 Allow list of strings as well and export to elisp.
22347
22348 2002-04-08 Stefan Monnier <monnier@cs.yale.edu>
22349
22350 * puresize.h (BASE_PURESIZE): Increase to 900KB.
22351
22352 2002-04-08 Juanma Barranquero <lektu@terra.es>
22353
22354 * w32.c (sys_accept): Don't hide variable `s'.
22355
22356 2002-04-05 Gerd Moellmann <gerd@gnu.org>
22357
22358 * callint.c (Fcall_interactively): Use INTEGERP instead of
22359 NUMBERP for checking Vhistory_length.
22360
22361 2002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22362
22363 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
22364 Doc fix to reflect it.
22365
22366 2002-04-04 Richard M. Stallman <rms@gnu.org>
22367
22368 * xdisp.c (display_mode_element): New arg RISKY.
22369 Disregard text props found or specified within a variable
22370 that isn't marked risky-local-variable.
22371 (Qrisky_local_variable): New variable.
22372 (syms_of_xdisp): Init and staticpro it.
22373
22374 2002-04-04 Stefan Monnier <monnier@cs.yale.edu>
22375
22376 * undo.c (record_point): New fun.
22377 (record_delete, record_insert): Use it.
22378
22379 2002-04-03 Juanma Barranquero <lektu@terra.es>
22380
22381 * doc.c (Fdocumentation): Add missing parentheses.
22382 (Fdocumentation_property): Likewise.
22383
22384 2002-04-03 Stefan Monnier <monnier@cs.yale.edu>
22385
22386 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
22387 data is 0, just return nil.
22388
22389 2002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
22390
22391 * msdos.c (syms_of_msdos): Fix last change with
22392 mouse_autoselect_window.
22393
22394 2002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22395
22396 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
22397 mouse_autoselect_window.
22398
22399 2002-04-02 Stefan Monnier <monnier@cs.yale.edu>
22400
22401 * keyboard.c (make_lispy_event): Handle unknown keysyms together
22402 with system-specific keysyms. Use it also for unknown function keys.
22403
22404 * doc.c (reread_doc_file): Return whether reload was attempted.
22405 (Fdocumentation, Fdocumentation_property): Don't try to reload
22406 if the doc is 0 and only ask once.
22407
22408 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
22409
22410 2002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
22411
22412 * keyboard.c (read_char): If the event was Qselect_window,
22413 restore timer_idleness_start_time to its previous value.
22414
22415 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
22416
22417 2002-04-01 Stefan Monnier <monnier@cs.yale.edu>
22418
22419 * region-cache.c (new_region_cache): Use BEG.
22420
22421 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
22422 Use BEG and BEG_BYTE.
22423
22424 * doc.c (get_doc_string): Return nil if the location is wrong.
22425 (reread_doc_file): New fun.
22426 (Fdocumentation, Fdocumentation_property):
22427 Call it if get_doc_string fails.
22428 (Fsnarf_documentation): Make it work for a dumped Emacs.
22429
22430 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
22431 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
22432
22433 * charset.c (Fstring): Allow 0 arguments.
22434
22435 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
22436
22437 * process.c (DATAGRAM_CONN_P, list_processes_1)
22438 (Fprocess_datagram_address, Fset_process_datagram_address)
22439 (Fset_network_process_options, server_accept_connection):
22440 Fix some int/Lisp_Object confusions (thank you union types).
22441
22442 2002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22443
22444 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
22445
22446 * w32term.c: Likewise.
22447 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
22448
22449 * keyboard.c (Qselect_window): New symbol.
22450 (head_table): Use it.
22451 (keys_of_keyboard): Bound select-window event to handle-select-window.
22452 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
22453
22454 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
22455 (last_window): New variable.
22456 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
22457 (note_mouse_movement): Remove reimplemented code in #if 0.
22458 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
22459 Emacs windows.
22460
22461 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
22462
22463 2002-03-31 Gerd Moellmann <gerd@gnu.org>
22464
22465 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
22466 Callers changed.
22467
22468 2002-03-30 Richard M. Stallman <rms@gnu.org>
22469
22470 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
22471 loop whenever it stops making progress.
22472
22473 * widget.c (set_frame_size): Don't call change_frame_size.
22474
22475 2002-03-30 Gerd Moellmann <gerd@gnu.org>
22476
22477 * dispnew.c (direct_output_for_insert):
22478 Call mark_window_display_accurate.
22479
22480 2002-03-29 Jason Rumney <jasonr@gnu.org>
22481
22482 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
22483
22484 2002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
22485
22486 * Makefile.in (lread.o): Depend on coding.h.
22487
22488 * lread.c (openp, Fload): Encode the file name before passing it
22489 to `stat', `access', and `emacs_open'.
22490 (openp): GCPRO the encoded file name. Don't recompute Lisp
22491 strings unnecessarily.
22492
22493 2002-03-29 Kim F. Storm <storm@cua.dk>
22494
22495 * fns.c (Flax_plist_put): Doc fix.
22496
22497 2002-03-28 Miles Bader <miles@gnu.org>
22498
22499 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
22500
22501 2002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22502
22503 * process.c (set-network-process-options): Add usage.
22504 (make-network-process): Doc fix.
22505
22506 2002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
22507
22508 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
22509
22510 2002-03-26 Richard M. Stallman <rms@gnu.org>
22511
22512 * fns.c (Fsubstring_no_properties): New function.
22513 (Flax_plist_get, Flax_plist_put): New functions.
22514 (syms_of_fns): defsubr them.
22515
22516 * xdisp.c (update_menu_bar): Test only update_mode_lines;
22517 don't test or alter w->update_mode_line.
22518
22519 * window.c (Fdisplay_buffer): Doc fix.
22520
22521 2002-03-24 Richard M. Stallman <rms@gnu.org>
22522
22523 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
22524
22525 2002-03-24 Gerd Moellmann <gerd@gnu.org>
22526
22527 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
22528 (Fdefmacro): Handle `(declare ...)'.
22529 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
22530 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
22531
22532 2002-03-24 Jason Rumney <jasonr@gnu.org>
22533
22534 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
22535 (xbm_file_p): Add prototypes.
22536 (xbm_format, xbm_image_p): Sync with xfns.c.
22537 (reflect_byte): New function.
22538 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
22539 (xbm_load_image): Create bitmaps with a depth of 1.
22540 (init_xfns): Enable XBM images.
22541
22542 2002-03-23 Jason Rumney <jasonr@gnu.org>
22543
22544 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
22545 correctly. Do not pass up_modifier to keyboard buffer.
22546
22547 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
22548
22549 2002-03-22 Stefan Monnier <monnier@cs.yale.edu>
22550
22551 * Makefile.in (bootstrapclean): New target.
22552 (bootstrap-temacs, bootstrap-doc): Remove.
22553 (bootstrap-emacs): Use a bog-standard `temacs'.
22554 Don't bother to build a DOC file.
22555
22556 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
22557
22558 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
22559 in temacs even if !CANNOT_DUMP.
22560 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
22561
22562 * alloc.c (check_pure_size): Only output a warning.
22563
22564 2002-03-22 Jason Rumney <jasonr@gnu.org>
22565
22566 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
22567 supported.
22568
22569 * w32term.c (zv_bits): Declare as short, for word alignment.
22570 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
22571 (syms_of_w32term): Define x-use-underline-position-properties.
22572
22573 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
22574 (clear_image_cache): Block input, fix logic, clear matrices in
22575 all frames that share this cache.
22576
22577 2002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
22578
22579 * emacs.c (main): Update the Copyright year in the blurb printed
22580 by "emacs --version".
22581
22582 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
22583
22584 * xterm.c (XTread_socket): If XK_ISO_Lock and
22585 XK_ISO_Last_Group_Lock are defined, handle keysyms between
22586 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
22587
22588 2002-03-21 Kim F. Storm <storm@cua.dk>
22589
22590 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
22591 menu-bar bindings in keymap and local-map properties _are_ used.
22592 But try keymap property first in accordance with 2002-01-03 patch.
22593 Added comment describing why this is not always reliable.
22594 (tool_bar_items): Ditto for tool-bar.
22595
22596 2002-03-21 Jason Rumney <jasonr@gnu.org>
22597
22598 * w32fns.c (x_clear_image_1): Disable color table code.
22599
22600 2002-03-21 Kim F. Storm <storm@cua.dk>
22601
22602 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
22603 removed the wrong version of the DEFUN macro; fixed it.
22604
22605 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
22606 Fmember rather than Fmemq).
22607 (Fprovide): Check that subfeatures is a list.
22608
22609 * process.c (QCfeature, QCdatagram): Removed variables.
22610 (QCtype, Qdatagram): New variables.
22611 (network_process_featurep): Removed function.
22612 (Fmake_network_process): Removed :feature check.
22613 Use :type 'datagram instead of :datagram t to create a datagram
22614 socket. This allows us to add other connection types (e.g. raw
22615 sockets) later in a consistent manner.
22616 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
22617 supported subfeatures for feature make-network-process.
22618 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
22619 Intern and staticpro QCtype and Qdatagram.
22620 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
22621
22622 * xfns.c (QCtype): Remove duplicate declaration and
22623 initialization (is now declared in process.c).
22624
22625 * w32fns.c (QCtype): Remove duplicate declaration and
22626 initialization (is now declared in process.c).
22627
22628 2002-03-21 Richard M. Stallman <rms@gnu.org>
22629
22630 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
22631 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
22632 when jumping to `fail' to avoid undoing reg changes in the
22633 last iteration of the loop.
22634 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
22635
22636 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
22637 Depend on process.h.
22638
22639 2002-03-20 Jason Rumney <jasonr@gnu.org>
22640
22641 Most of the following changes are still conditional on HAVE_IMAGES
22642 which is not set by default on Windows.
22643
22644 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
22645
22646 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
22647 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
22648 (four_corners_best, x_clear_image_1, x_clear_image)
22649 (x_alloc_image_color, postprocess_image)
22650 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
22651 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
22652 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
22653
22654 * w32gui.h (struct XImage): Define.
22655
22656 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
22657 extract mouse co-ordinates.
22658
22659 2002-03-20 Jason Rumney <jasonr@gnu.org>
22660
22661 * w32.c (init_winsock): Dynamically load new server and UDP
22662 socket functions.
22663 (socket_to_fd): New function.
22664 (sys_socket): Use it.
22665 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
22666 (sys_recvfrom, sys_sendto): New wrapper functions.
22667
22668 * process.c (QCfamily, QCfilter): Remove duplicate declaration
22669 and initialization.
22670
22671 * makefile.w32-in (LIBS): Remove $(WSOCK32).
22672
22673 2002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
22674
22675 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
22676 Don't use "sun" as a variable, it's a predefined constant on Sun
22677 machines.
22678
22679 2002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22680
22681 * bytecode.c (Fbyte_code): Revert last change.
22682
22683 2002-03-19 Kim F. Storm <storm@cua.dk>
22684
22685 * makefile.w32-in (LIBS): Add $(WSOCK32).
22686 From David Ponce <dponce@voila.fr>.
22687
22688 2002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22689
22690 * process.c (wait_reading_process_input): Move variables `pname'
22691 and `pnamelen' down where they are used.
22692
22693 * bytecode.c (Fbyte_code): Discard unused computed value to
22694 prevent gcc warning.
22695
22696 * lisp.h (Fplist_member): Add prototype.
22697
22698 2002-03-18 Kim F. Storm <storm@cua.dk>
22699
22700 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
22701 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
22702
22703 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
22704 Remove explicit GNU_LINUX settings for datagram support.
22705
22706 2002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22707
22708 * process.c (Fmake_network_process): Remove unused variable `sa'.
22709 Doc fix. Add usage:.
22710 (set_socket_options): Remove unused variables `optnum' and `opttype'.
22711
22712 2002-03-17 Richard M. Stallman <rms@gnu.org>
22713
22714 * xdisp.c (cursor_type_changed): New variable.
22715 (redisplay_internal): Redisplay all windows if cursor_type_changed.
22716 Clear it when clearing windows_or_buffers_changed.
22717 (try_cursor_movement, redisplay_window, try_window_id)
22718 (try_window_reusing_current_matrix): Test cursor_type_changed
22719 along with windows_or_buffers_changed.
22720
22721 * window.h (cursor_type_changed): New variable.
22722
22723 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
22724 not update_mode_lines, and always set it to 1.
22725
22726 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
22727 if no frames needed redrawing.
22728
22729 2002-03-17 Kim F. Storm <storm@cua.dk>
22730
22731 The following changes add support for network server processes,
22732 datagram connections, and local (unix) sockets.
22733
22734 * process.h (struct Lisp_Process): New member log.
22735 Doc fix: Member command used to indicate stopped network process.
22736 Doc fix: Member childp contains plist for network process.
22737 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
22738
22739 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
22740 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery, QCstop)
22741 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature): New
22742 variables.
22743 (NETCONN1_P): New macro.
22744 (DATAGRAM_SOCKETS): New conditional symbol.
22745 (datagram_address): New array.
22746 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
22747 (status_message): Use concat3.
22748 (Fprocess_status): Add `listen' status to doc string. Return
22749 `stop' for a stopped network process.
22750 (Fset_process_buffer): Update contact plist for network process.
22751 (Fset_process_filter): Ditto. Don't enable input for stopped
22752 network processes. Server must listen, even if filter is t.
22753 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
22754 New functions.
22755 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
22756 (Fprocess_contact): Added KEY argument. Handle datagrams.
22757 (list_processes_1): Optionally show only processes with the query
22758 on exit flag set. Dynamically adjust column widths. Omit tty
22759 column if not needed. Report stopped network processes. Identify
22760 server and datagram network processes.
22761 (Flist_processes): New optional arg `query-only'.
22762 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
22763 (conv_lisp_to_sockaddr, set_socket_options)
22764 (network_process_featurep, unwind_request_sigio): New helper
22765 functions.
22766 (Fprocess_datagram_address, Fset_process_datagram_address):
22767 (Fset_network_process_options): New lisp functions.
22768 (Fopen_network_stream): Removed. Now defined in simple.el.
22769 (Fmake_network_process): New lisp function. Code is based on
22770 previous Fopen_network_stream, but heavily reworked with new
22771 property list based argument list, support for datagrams, server
22772 processes, and local sockets in addition to old client-only
22773 functionality.
22774 (server_accept_connection): New function.
22775 (wait_reading_process_input): Use it to handle incoming connects.
22776 Do not enable input on a new connection if process is stopped.
22777 (read_process_output): Handle datagram sockets. Use 2k buffer for
22778 them.
22779 (send_process): Handle datagram sockets.
22780 (Fstop_process, Fcontinue_process): Apply to network processes. A
22781 stopped network process is indicated by setting command field to t.
22782 (Fprocess_send_eof): No-op if datagram connection.
22783 (Fstatus_notify): Don't read input for a stream server socket or a
22784 stopped network process.
22785 (init_process): Initialize datagram_address array.
22786 (syms_of_process): Intern and staticpro new variables, defsubr new
22787 functions.
22788
22789 2002-03-16 Jason Rumney <jasonr@gnu.org>
22790
22791 * w32fns.c (w32_to_all_x_charsets): Return correct type in
22792 startup case.
22793
22794 2002-03-16 Richard M. Stallman <rms@gnu.org>
22795
22796 * xdisp.c (redisplay_internal, redisplay_windows):
22797 Use list_of_error to call internal_condition_case_1.
22798 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
22799 so as to catch all errors with no possibility of debugger redisplay.
22800 (list_of_error): New variable.
22801 (syms_of_xdisp): Init and staticpro it.
22802
22803 * print.c (print_object): Delete `\ ' from printed rep of frame.
22804
22805 2002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
22806
22807 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
22808 until its implementation is fixed.
22809
22810 2002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22811
22812 * xfns.c (png_load): Remove unused variable `gamma_str'.
22813
22814 2002-03-14 Richard M. Stallman <rms@gnu.org>
22815
22816 * xfns.c (x_real_positions): Handle failure in XQueryTree.
22817
22818 2002-03-14 Miles Bader <miles@gnu.org>
22819
22820 * intervals.c (adjust_for_invis_intang): New function.
22821 (set_point_both): Use `adjust_for_invis_intang' to do most of the
22822 work for dealing with invisible+intangible regions. Do so before
22823 and after both forward and backward movements, to handle both
22824 front-sticky and rear-sticky cases.
22825 * textprop.c (text_property_stickiness): Function moved here from
22826 `editfns.c'.
22827 * intervals.h (text_property_stickiness): New declaration.
22828 * editfns.c (char_property_eq): Function removed.
22829 (text_property_stickiness): Function moved to `textprop.c'.
22830
22831 2002-03-13 Jason Rumney <jasonr@gnu.org>
22832
22833 * config.in: Add STRFTIME_NO_POSIX2.
22834
22835 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
22836 and %OX when underlying strftime does not.
22837
22838 2002-03-13 Stefan Monnier <monnier@cs.yale.edu>
22839
22840 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
22841 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
22842 line) to avoid annoying flicker.
22843 (xm_scroll_callback): Get rid of the now unnecessary kludge.
22844 (XTread_socket): Mark it static.
22845
22846 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
22847
22848 2002-03-13 Kim F. Storm <storm@cua.dk>
22849
22850 * puresize.h (BASE_PURESIZE): Increase to 775000.
22851
22852 2002-03-12 Juanma Barranquero <lektu@terra.es>
22853
22854 * editfns.c (syms_of_editfns): Fix typo.
22855
22856 2002-03-12 Gerd Moellmann <gerd@gnu.org>
22857
22858 * xsmfns.c: Include stdio.h because termhooks.h needs it.
22859 Include termopt.h for interrupt_input.
22860
22861 2002-03-11 Andreas Schwab <schwab@suse.de>
22862
22863 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
22864
22865 2002-03-11 Gerd Moellmann <gerd@gnu.org>
22866
22867 * xterm.c (note_mouse_movement): Put code for
22868 x_autoselect_window_p in #if 0.
22869
22870 * lread.c (Fload): Don't assume that message_with_string uses the
22871 string it is given like a C string.
22872
22873 2002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22874
22875 * xterm.h (x_session_check_input, x_session_initialize): Declare.
22876
22877 * xterm.c (XTread_socket): Add call to x_session_check_input and
22878 x_session_have_connection.
22879 (x_initialize): Add call to x_session_initialize.
22880
22881 * termhooks.h (enum event_kind): Add save_session_event.
22882
22883 * keyboard.c: Add Emacs event save_session_event.
22884
22885 * emacs.c (main): Add call to syms_of_xsmfns.
22886
22887 * lisp.h (syms_of_xsmfns): Declare extern.
22888
22889 * config.in: Add HAVE_X_SM.
22890
22891 * Makefile.in (LIBXT): Add -lSM -lICE
22892 if HAVE_X_SM and not USE_X_TOOLKIT.
22893 (XOBJ): New file xsmfns.c added.
22894
22895 * xsmfns.c: New file for X session management.
22896
22897 2002-03-09 Jason Rumney <jasonr@gnu.org>
22898
22899 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
22900 read-only when setting modified time.
22901
22902 2002-03-08 Gerd Moellmann <gerd@gnu.org>
22903
22904 * xdisp.c (move_it_vertically_backward): At the end of the function,
22905 when moving forward by lines, treat terminal frames specially.
22906
22907 * keyboard.c (echo_char): Make sure to add a separator between
22908 keys even if echo_dash hasn't been called.
22909
22910 * xdisp.c: Use new string macros.
22911 (update_echo_area): Pass number of bytes to message3 instead of
22912 number of chars.
22913 (set_message_1): Don't access a string's size_byte directly.
22914 (decode_mode_spec_coding): Use number of bytes of eoltype string
22915 instead number of chars.
22916
22917 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
22918
22919 2002-03-08 Juanma Barranquero <lektu@terra.es>
22920
22921 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
22922 24-bit.
22923
22924 2002-03-06 Jason Rumney <jasonr@gnu.org>
22925
22926 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
22927
22928 2002-03-06 Gerd Moellmann <gerd@gnu.org>
22929
22930 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
22931 (cancel_echoing, echo_length, echo_truncate): Changed to
22932 work with new kboard definition.
22933 (echo_now): Use message3_nolog instead of message2_nolog.
22934
22935 * alloc.c (mark_kboards): Mark echo_string.
22936
22937 * keyboard.h (ECHOBUFSIZE): Removed.
22938 (struct kboard): Member echoptr removed, member echobuf renamed
22939 to echo_string.
22940
22941 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
22942 message3 instead of message2 to display the message using STRING's
22943 text properties.
22944
22945 2002-03-05 Andreas Schwab <schwab@suse.de>
22946
22947 * xdisp.c (hscroll_margin): Change to EMACS_INT.
22948
22949 2002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
22950
22951 * frame.c (default-frame-alist): Explain that setting it doesn't
22952 affect existing frames.
22953
22954 2002-03-05 Stefan Monnier <monnier@cs.yale.edu>
22955
22956 * indent.c (skip_invisible): Fix my brain fart.
22957
22958 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
22959
22960 2002-03-04 Stefan Monnier <monnier@cs.yale.edu>
22961
22962 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
22963 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
22964 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
22965 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
22966 and variables to use EMACS_INT instead of just int.
22967
22968 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
22969
22970 2002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
22971
22972 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
22973 environment, pass it down with corrected value.
22974
22975 2002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22976
22977 * lread.c (read_filtered_event): Do not call start_hourglass
22978 before returning.
22979
22980 2002-03-04 Juanma Barranquero <lektu@terra.es>
22981
22982 * w32term.c (x_display_and_set_cursor): Fix typo.
22983
22984 2002-03-03 Richard M. Stallman <rms@gnu.org>
22985
22986 * fileio.c (Fmake_temp_name): Doc fix.
22987
22988 2002-03-03 Gary Wong <gtw@gnu.org>
22989
22990 * termcap.c [!emacs]: Replace ospeed for building standalone
22991 libtermcap, for binary compatibility.
22992
22993 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
22994
22995 2002-03-03 Richard M. Stallman <rms@gnu.org>
22996
22997 * xrdb.c (file_p): Rename arg `path' to `filename'.
22998
22999 * abbrev.c (Fexpand_abbrev): Increment plist as use count
23000 only if it is an integer.
23001
23002 * xfns.c (png_load): Set screen_gamma based on f->gamma.
23003 If png_get_sRGB gives an answer, call png_set_gamma
23004 using the default image gamma value.
23005
23006 * lread.c (read1): When reading from a file, default string to
23007 multibyte only if it has some multibyte characters.
23008
23009 * print.c (print_object): Output multibyte chars 128...255
23010 using \x even if ! print_escape_multibyte.
23011
23012 * xdisp.c (display_mode_element): Move the places where
23013 bytepos, charpos, this, and lisp_string are set.
23014 Use lisp_string to set bytepos.
23015
23016 * xdisp.c (redisplay_internal):
23017 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
23018
23019 * xdisp.c (display_mode_element): Merge properties specified with
23020 :propertize onto those that come with the string.
23021
23022 2002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
23023
23024 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
23025 automatic-hscrolling. Users changed.
23026 <hscroll-margin>: Renamed from automatic-hscroll-margin.
23027 Users changed.
23028 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
23029
23030 2002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
23031
23032 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
23033
23034 2002-03-02 Kim F. Storm <storm@cua.dk>
23035
23036 * window.c (Fminibuffer_selected_window): New function.
23037 (syms_of_window): Defsubr it.
23038
23039 2002-03-01 Kim F. Storm <storm@cua.dk>
23040
23041 * window.h (struct window): New member phys_cursor_width.
23042
23043 * window.c (make_window, replace_window): Init phys_cursor_width.
23044
23045 * xterm.c (x_display_and_set_cursor): Blink box cursor using
23046 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
23047
23048 * w32term.c (x_display_and_set_cursor): Blink box cursor using
23049 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
23050
23051 * lisp.h (GCPRO6): New macro.
23052
23053 * process.c (Fopen_network_stream): Use GCPRO6.
23054
23055 2002-03-01 Kim F. Storm <storm@cua.dk>
23056
23057 * process.c (Qconnect, Qfailed): New variables.
23058 (syms_of_process): Intern and staticpro them.
23059 (Fprocess_status): Document connect and failed return values.
23060 [NON_BLOCKING_CONNECT]: New conditional.
23061 (connect_wait_mask, num_pending_connects): New variables.
23062 (status_message): Convert Qfailed status.
23063 (Fopen_network_stream): Added support for non-blocking connect.
23064 New optional args: filter, sentinel, non_blocking. Doc updated.
23065 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
23066 (deactivate_process): Handle pending non-blocking connect.
23067 (wait_reading_process_input): Poll for status of non-blocking
23068 connects. Exec sentinel directly when connect succeeds.
23069 (status_notify): Don't read process output if not yet connected.
23070
23071 2002-02-28 Kim F. Storm <storm@cua.dk>
23072
23073 * window.c (minibuf_selected_window): Renamed from
23074 Vminibuf_selected_window. Users changed.
23075 (syms_of_window): Staticpro it.
23076
23077 2002-02-26 Kim F. Storm <storm@cua.dk>
23078
23079 The following changes add a new Vminibuf_selected_window variable
23080 which is similar to Vminibuf_scroll_window, but which is only set
23081 on entry to the minibuffer (from a non-minibuffer window):
23082
23083 * window.c (Vminibuf_selected_window): New variable.
23084 (struct save_window_data): New member minibuf_selected_window.
23085 (Fset_window_configuration): Restore Vminibuf_selected_window.
23086 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
23087 Set minibuf_scroll_window member to nil if minibuf_level is 0.
23088 (compare_window_configurations): Compare minibuf_selected_window.
23089
23090 * window.h (Vminibuf_selected_window): Declare extern.
23091
23092 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
23093 entry to minibuffer or on entry from a non-minibuffer window.
23094
23095 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
23096 Vminibuf_selected_window instead of Vminibuf_scroll_window.
23097
23098 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
23099 instead of Vminibuf_scroll_window when deciding in which window
23100 the region should be highlighted. Consequently, the region remains
23101 highlighteded even when a completion buffer is also displayed.
23102
23103 2002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
23104
23105 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
23106
23107 * xselect.c (Qcompound_text_with_extensions): Renamed from
23108 Qcompound_text_no_extensions.
23109 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
23110
23111 2002-02-26 Juanma Barranquero <lektu@terra.es>
23112
23113 * w32proc.c (syms_of_ntproc): Doc fix.
23114
23115 2002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23116
23117 * intervals.h: Include "dispextern.h" unconditionally.
23118
23119 2002-02-24 Jason Rumney <jasonr@gnu.org>
23120
23121 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
23122 and disp-table.elc.
23123 (lisp): Add emacs-lisp/backquote.elc.
23124
23125 2002-02-24 Kim F. Storm <storm@cua.dk>
23126
23127 * keymap.c (Flookup_key): Fix problem in 2001-12-28 patch:
23128 The validation of the event type was too strict as it didn't
23129 allow string events; buffer names are used in bindings for
23130 menu-bar-select-buffer (see `menu-bar-update-buffers').
23131
23132 2002-02-23 Kim F. Storm <storm@cua.dk>
23133
23134 The following changes rework my patch of 2002-02-06 which
23135 added command remapping by entering the commands directly into
23136 the keymaps. Now, command remapping uses an explicit `remap'
23137 prefix in the keymaps, i.e. [remap COMMAND].
23138
23139 * keymap.c (Qremap, remap_command_vector): New variables.
23140 (is_command_symbol): Remove function.
23141 (Fdefine_key): No longer accept a symbol for KEY.
23142 Added validation of [remap COMMAND] argument for KEY.
23143 The DEF is no longer required to be a symbol when remapping a command.
23144 (Fremap_command): New function to remap command through keymaps.
23145 (Flookup_key): Perform command remapping initiated by
23146 Fremap_command directly for speed.
23147 (Fkey_binding): Use Fremap_command for command remapping.
23148 (where_is_internal): Handle new command remapping representation.
23149 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
23150 staticpro them. Defsubr Fremap_command.
23151
23152 * keymap.h (Fremap_command): Declare extern.
23153 (is_command_symbol): Remove extern.
23154
23155 * keyboard.c (command_loop_1): Use Fremap_command for command
23156 remapping; now try command remapping for all symbols.
23157
23158 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
23159
23160 * coding.h (run_pre_post_conversion_on_str): Add prototype.
23161
23162 2002-02-23 Jason Rumney <jasonr@gnu.org>
23163
23164 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
23165 on the string before encoding it.
23166 (Fw32_get_clipboard_data): Run post-read-conversion on the string
23167 after decoding it.
23168
23169 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
23170
23171 2002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23172
23173 * w32term.c (enter_timestamp): Remove unused static variable to
23174 prevent warning.
23175
23176 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
23177
23178 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
23179
23180 * w16select.c (Fw16_get_clipboard_data): Fix last change.
23181
23182 * xselect.c (selection_data_to_lisp_data): Fix last change.
23183
23184 2002-02-22 Jason Rumney <jasonr@gnu.org>
23185
23186 * w32term.h (struct w32_output): New member menu_command_in_progress.
23187
23188 * w32menu.c (menubar_selection_callback): Free the menu and
23189 clear the menu_command_in_progress flag.
23190
23191 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
23192 (menu_free_timer): New variable.
23193 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
23194 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
23195 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
23196 menu command is in progress.
23197 <WM_COMMAND>: Set the menu_command_in_progress flag.
23198 Kill any menu_free_timer that is running.
23199
23200 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
23201 Call ExtTextOutA rather than ExtTextOut.
23202
23203 2002-02-22 Eli Zaretskii <eliz@gnu.org>
23204
23205 * puresize.h (BASE_PURESIZE): Increase to 755000.
23206
23207 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
23208
23209 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
23210 on the string before encoding it.
23211 (Fw16_get_clipboard_data): Run post-read-conversion on the string
23212 after decoding it.
23213
23214 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
23215
23216 Support for ICCCM Extended Segments in X selections:
23217
23218 * xselect.c <Qcompound_text_no_extensions>: New variable.
23219 (syms_of_xselect): Intern and staticpro it.
23220 (selection_data_to_lisp_data): Run post-read-conversion on decoded
23221 selection text.
23222 (lisp_data_to_selection_data): If next-selection-coding-system is
23223 compound-text-no-extensions, set the type of selection to be
23224 compound-text.
23225
23226 * xterm.h (x_encode_text): Update prototype.
23227
23228 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
23229 callers changed. If SELECTIONP is non-zero, run the
23230 pre-write-conversion function before encoding the selection text.
23231
23232 2002-02-21 Kim F. Storm <storm@cua.dk>
23233
23234 * frame.c (syms_of_frame): Change mouse-highlight default to t.
23235
23236 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
23237 Correct composing of language-change event.
23238
23239 2002-02-20 Kim F. Storm <storm@cua.dk>
23240
23241 * keyboard.c (menu_bar_items): Don't include keymap or local-map
23242 bindings at PT when building menu (the menu is not updated often
23243 enough for this to work reliable).
23244 (tool_bar_items): Likewise.
23245 (current_active_maps): Removed unused (and buggy) function.
23246
23247 2002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23248
23249 * xfns.c (gif_load): Use correct width and height for GIF images.
23250
23251 2002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
23252
23253 * floatfns.c (Fatan): Accept an optional second arg and call
23254 atan2 if passed 2 args.
23255
23256 2002-02-18 Jason Rumney <jasonr@gnu.org>
23257
23258 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
23259
23260 2002-02-17 Jason Rumney <jasonr@gnu.org>
23261
23262 * w32term.c (x_autoselect_window_p): New variable.
23263 (syms_of_w32term): DEFVAR_BOOL and initialize it.
23264 (note_mouse_movement): Use it.
23265
23266 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
23267
23268 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
23269
23270 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
23271 New variables.
23272 (syms_of_w32fns): Intern and staticpro them.
23273 (x_frame_parms) <"fullscreen">: New parameter.
23274 (x_fullscreen_move, x_set_fullscreen): New functions.
23275 (x_set_frame_parameters): Support Qfullscreen.
23276 (x_real_positions): Save x/y_pixels_diff frame params.
23277 (x_figure_window_size): Support full-screen frames.
23278 (Fx_create_frame): Default the fullscreen parameter.
23279
23280 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
23281 (x_fullscreen_adjust): New functions.
23282 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
23283 fullscreen. Call x_check_fullscreen_move, and set the
23284 want_fullscreen member of output_data.w32
23285 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
23286
23287 * w32term.h: New enum for FULLSCREEN_* constants.
23288 (struct w32_output): New members want_fullscreen, x_pixels_diff,
23289 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
23290 (x-fullscreen-adjust): New prototype.
23291
23292 2002-02-17 Kim F. Storm <storm@cua.dk>
23293
23294 * frame.c (Vmouse_highlight): New variable.
23295 (syms_of_frame): DEFVAR_LISP it.
23296
23297 * frame.h (Vmouse_highlight): Declare extern.
23298
23299 * xterm.h (struct x_display_info): Add mouse_face_hidden.
23300
23301 * xterm.c (disable_mouse_highlight): Removed variable.
23302 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
23303 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
23304 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
23305 and on after keyboard input.
23306 (x_term_init): Initialize mouse_face_hidden.
23307
23308 * msdos.h (struct display_info): Add mouse_face_hidden.
23309
23310 * msdos.c (disable_mouse_highlight): Removed variable.
23311 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
23312 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
23313 (internal_terminal_init): Initialize mouse_face_hidden.
23314 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
23315 and on after keyboard input.
23316
23317 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
23318
23319 * w32term.c (disable_mouse_highlight): Removed variable.
23320 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
23321 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
23322 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
23323 and on after keyboard input.
23324 (w32_initialize_display_info): Initialize mouse_face_hidden.
23325
23326 2002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
23327
23328 * msdos.c (last_mouse_window): New variable.
23329 (dos_rawgetc): Fix last change--if the mouse is in the same window
23330 as recorded in last_mouse_window, don't select this window.
23331
23332 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
23333
23334 * msdos.c (x_autoselect_window_p): New variable.
23335 (syms_of_msdos): Defvar it.
23336 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
23337 which the last mouse movement occured, unless it is already selected.
23338
23339 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
23340 New variables.
23341 (syms_of_xdisp): DEVFAR them.
23342 (hscroll_window_tree): Use automatic_hscroll_margin and
23343 Vautomatic_hscroll_step to compute the amount of window scrolling.
23344
23345 2002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23346
23347 * xterm.c (x-autoselect-window): New variable.
23348 (note_mouse_movement): Use it.
23349
23350 * keyboard.c: Do not include "systime.h" twice.
23351
23352 2002-02-15 Andreas Schwab <schwab@suse.de>
23353
23354 * puresize.h (PURESIZE_RATIO): Increase to 9/5.
23355
23356 * alloc.c (NSTATICS): Increase to 1280.
23357
23358 2002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
23359
23360 * alloc.c (NSTATICS): Bump to 1026.
23361
23362 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
23363 (Vx_super_keysym): New variables.
23364 (syms_of_xterm): DEFVAR_LISP them.
23365 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
23366 variables to determine which keys to use for the various modifiers.
23367
23368 2002-02-13 Kim F. Storm <storm@cua.dk>
23369
23370 * window.c (Vmode_line_in_non_selected_windows): Removed.
23371 (mode_line_in_non_selected_windows): New variable.
23372 (syms_of_window): DEFVAR_BOOL it.
23373
23374 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
23375 Use mode_line_in_non_selected_windows.
23376 (mode_line_in_non_selected_windows): Declare extern.
23377 (Vmode_line_in_non_selected_windows): Removed extern.
23378
23379 2002-02-13 Richard M. Stallman <rms@gnu.org>
23380
23381 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
23382 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
23383 (Fclear_this_command_keys): Doc fixes.
23384
23385 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
23386 (update_face_from_frame_parameter): Increment face_change_count
23387 and windows_or_buffers_changed to force redisplay using changed faces.
23388
23389 * xdisp.c (QCpropertize): New variable.
23390 (mode_line_proptrans_alist): New variable.
23391 (display_mode_element): New arg PROPS; all calls changed.
23392 Implement this, for strings.
23393 Handle literal output of strings by sharing the
23394 main-line code for strings, using local var `literal'.
23395 Handle :propertize feature.
23396 (syms_of_xdisp): Initialze and staticpro QCpropertize and
23397 mode_line_proptrans_alist.
23398
23399 2002-02-11 Kim F. Storm <storm@cua.dk>
23400
23401 * window.c (Vmode_line_in_non_selected_windows): New variable.
23402 (syms_of_window): DEFVAR_LISP it.
23403
23404 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
23405 (CURRENT_MODE_LINE_FACE_ID): Use it.
23406 (Vmode_line_in_non_selected_windows): Declare extern.
23407
23408 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
23409 to get mode line face.
23410
23411 2002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
23412
23413 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
23414 variables; cus-start.el doesn't need them anymore.
23415
23416 2002-02-09 Kim F. Storm <storm@cua.dk>
23417
23418 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
23419 reduction. This fixes a display problem where stray newlines were
23420 inserted in the window (corrected by C-l). Clarified code (IMHO).
23421
23422 2002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
23423
23424 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
23425
23426 * xdisp.c (display_mode_lines): Fix last change.
23427
23428 2002-02-09 Jason Rumney <jasonr@gnu.org>
23429
23430 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
23431 match each other.
23432 (w32_load_system_font): Prevent Cleartype fonts from loading.
23433 (Fx_show_tip): Ensure tip frames are above other topmost windows.
23434
23435 2002-02-09 Kim F. Storm <storm@cua.dk>
23436
23437 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
23438 (CURRENT_MODE_LINE_HEIGHT): Use it.
23439 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
23440
23441 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
23442 (pos_visible_p, handle_face_prop): Likewise.
23443 (display_mode_lines): Likewise, but for the real selected window.
23444 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
23445
23446 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
23447 in non-selected windows.
23448 (realize_basic_faces): Realize it.
23449 (syms_of_term): Intern and staticpro it.
23450
23451 2002-02-08 Kim F. Storm <storm@cua.dk>
23452
23453 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
23454 Changed mail addresses to emacs-devel@gnu.org.
23455
23456 2002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
23457
23458 * fileio.c (Fsubstitute_in_file_name): If the file name includes
23459 ~user, and there's no such user, don't discard everything before ~user.
23460
23461 * floatfns.c (Fround): Doc fix.
23462
23463 2002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23464
23465 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
23466
23467 2002-02-07 Stefan Monnier <monnier@cs.yale.edu>
23468
23469 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
23470
23471 2002-02-07 Kim F. Storm <storm@cua.dk>
23472
23473 * keymap.c (where_is_internal): Only check whether definition is
23474 remapped if it fulfills is_command_symbol.
23475
23476 2002-02-07 Andreas Schwab <schwab@suse.de>
23477
23478 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
23479
23480 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
23481
23482 2002-02-06 Kim F. Storm <storm@cua.dk>
23483
23484 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
23485 defining command remapping. Doc updated.
23486 (Flookup_key): Remap command through keymap if KEY is a symbol.
23487 (is_command_symbol): New function.
23488 (Fkey_binding): Use it. New optional argument NO-REMAP.
23489 Doc updated. Callers changed. Perform command remapping via
23490 recursive call unless that arg is non-nil.
23491 (where_is_internal): New argument no_remap. Callers changed.
23492 Call recursively to find original key bindings for a remapped
23493 comand unless that arg is non-nil.
23494 (Fwhere_is_internal): New optional argument NO-REMAP.
23495 Doc updated. Callers changed. Pass arg to where_is_internal.
23496
23497 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
23498 (is_command_symbol): Add prototype.
23499
23500 * keyboard.c (Vthis_original_command): New variable.
23501 (syms_of_keyboard): DEFVAR_LISP it.
23502 (command_loop_1): Set it, and perform command remapping.
23503
23504 2002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23505
23506 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
23507
23508 2002-02-06 Jason Rumney <jasonr@gnu.org>
23509
23510 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
23511
23512 2002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
23513
23514 * charset.c (get_charset_id): Use if-else instead of ?:.
23515
23516 2002-02-06 Richard M. Stallman <rms@gnu.org>
23517
23518 * filelock.c (S_ISLNK): Define if not defined.
23519
23520 2002-02-03 Richard M. Stallman <rms@gnu.org>
23521
23522 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
23523
23524 * lread.c (read1): Redesign strategy for force_multibyte and
23525 force_singlebyte. Now is_multibyte records whether read_buffer
23526 is multibyte. Encountering any multibyte character makes it so.
23527
23528 2002-02-02 Stefan Monnier <monnier@cs.yale.edu>
23529
23530 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
23531 with the same sequence, map that sequence to f10 rather than f0.
23532
23533 2002-02-03 Andreas Schwab <schwab@suse.de>
23534
23535 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
23536 latter never being defined on GNU/Linux.
23537
23538 2002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
23539
23540 * xfaces.c (realize_default_face): Don't set the weight and slant of
23541 the default face to Qnormal, unless these attributes are unspecified.
23542
23543 2002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23544
23545 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
23546 Call cancel_hourglass unconditionally.
23547
23548 * eval.c (Fsignal): Remove duplicated declaration of
23549 the variable `display_hourglass_p'.
23550
23551 2002-01-31 Richard M. Stallman <rms@gnu.org>
23552
23553 * editfns.c (region_limit): Nicer error message.
23554
23555 * coding.c (decode_composition_emacs_mule):
23556 Give up if NCOMPONENT gets too large to index `component'.
23557
23558 * callint.c (check_mark): New arg to specify clearer error message.
23559 Callers changed.
23560
23561 2002-01-27 Richard M. Stallman <rms@gnu.org>
23562
23563 * minibuf.c (Fcompleting_read): Doc fix.
23564
23565 2002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23566
23567 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
23568 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
23569 Fix doc-strings.
23570
23571 2002-01-26 Richard M. Stallman <rms@gnu.org>
23572
23573 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
23574
23575 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
23576 and scroll_up_aggressively.
23577
23578 2002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23579
23580 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
23581
23582 2002-01-25 Stefan Monnier <monnier@cs.yale.edu>
23583
23584 * textprop.c (Fnext_property_change, Fnext_single_property_change)
23585 (Fprevious_property_change, Fprevious_single_property_change):
23586 Stay within the narrowed-buffer boundaries.
23587
23588 2002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
23589
23590 * term.c (Ftty_display_color_cells): New function.
23591 (syms_of_term): Defsubr it.
23592 (Ftty_display_color_cells, Ftty_display_color_p): Change the
23593 argument name to DISPLAY. Doc fix.
23594
23595 * dispextern.h: Add prototype for set_tty_color_mode and
23596 tty_setup_colors.
23597
23598 2002-01-24 Jason Rumney <jasonr@gnu.org>
23599
23600 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
23601 If region left to draw is not what was expected, mark the frame as
23602 garbaged.
23603
23604 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
23605 Combine the regions returned by BeginPaint and GetUpdateRect.
23606
23607 2002-01-23 Jason Rumney <jasonr@gnu.org>
23608
23609 * w32term.c (x_update_window_begin): Only hide caret if
23610 w32_use_visible_system_caret is set.
23611 (x_update_window_end): Only show caret if
23612 w32_use_visible_system_caret is set.
23613 (syms_of_w32term): Handle SystemParametersInfo call failing.
23614
23615 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
23616
23617 2002-01-22 Richard M. Stallman <rms@gnu.org>
23618
23619 * unexelf.c (unexec): Define n so as to cause compilation error
23620 for the code where people have often written n instead of nn.
23621
23622 * .gdbinit (hookpost-run): Defined.
23623
23624 2002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
23625
23626 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
23627
23628 2002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
23629
23630 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
23631 if fullscreen is being set.
23632
23633 2002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23634
23635 * minibuf.c (Fminibuffer_contents)
23636 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
23637 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
23638
23639 2002-01-21 Richard M. Stallman <rms@gnu.org>
23640
23641 * window.c (check_frame_size): Fix minimum height calculation.
23642
23643 2002-01-20 Ken Raeburn <raeburn@gnu.org>
23644
23645 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
23646 height before comparison.
23647 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
23648
23649 2002-01-20 Jason Rumney <jasonr@gnu.org>
23650
23651 * w32term.c (w32_system_caret_width): Remove.
23652 (w32_use_visible_system_caret): New user flag.
23653 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
23654 Windows reports a screen reader running.
23655 (x_update_window_begin): Hide the system caret.
23656 (x_update_window_end): Show the system caret.
23657 (x_display_and_set_cursor): Don't draw a cursor when
23658 w32_use_visible_system_caret is set. Do not adjust width.
23659
23660 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
23661 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
23662 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
23663 the user requests it. Use system default width when creating.
23664 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
23665
23666 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
23667 New window messages.
23668
23669 2002-01-20 Richard M. Stallman <rms@gnu.org>
23670
23671 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
23672
23673 2002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23674
23675 * doprnt.c (doprnt1): Fix typos in error call.
23676
23677 2002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
23678
23679 * unexelf.c (unexec) [__sgi]: Support the .got sections.
23680
23681 2002-01-20 Jason Rumney <jasonr@gnu.org>
23682
23683 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
23684 that Windows returns. If a double check fails, try to guess how
23685 ExtTextOut is going to act.
23686
23687 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
23688 in place of stricmp.
23689 (w32_list_synthesized_fonts): Removed.
23690 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
23691 (struct enumfont_t): New element; list.
23692 (enum_font_cb2): List all style and charset variations of a font.
23693 (Fw32_select_font): New optional argument; include_proportional.
23694 Exclude vertical fonts. Exclude proportional fonts unless
23695 include_proportional is non-nil.
23696 (w32_enable_synthesized_fonts): Change to a boolean.
23697 (Fw32_send_sys_command): Doc fix.
23698
23699 2002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23700
23701 * dispnew.c (update_frame): Move the variable `tem' to the block
23702 where it is used.
23703
23704 2002-01-19 Jason Rumney <jasonr@gnu.org>
23705
23706 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
23707 call to face-set-after-frame-default.
23708
23709 2002-01-18 Richard M. Stallman <rms@gnu.org>
23710
23711 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
23712 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
23713
23714 2002-01-17 Richard M. Stallman <rms@gnu.org>
23715
23716 * window.c (enlarge_window): When exceeding size of parent,
23717 directly delete all the siblings instead of trying to resize it.
23718
23719 2002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23720
23721 * term.c (set_tty_color_mode): Remove unused variable `tem'.
23722
23723 2002-01-16 Henrik Enberg <henrik@enberg.org>
23724
23725 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
23726
23727 2002-01-16 Kim F. Storm <storm@cua.dk>
23728
23729 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
23730 is invisible. This can happen if cursor is on top line of a
23731 window, and we switch to a buffer with a header line.
23732
23733 * w32term.c (x_erase_phys_cursor): Ditto.
23734
23735 2002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23736
23737 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
23738 `dont_resize' only when used.
23739
23740 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
23741
23742 2002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
23743
23744 * xdisp.c (display_mode_element): When computing charpos, depend
23745 on multibyteness of elt, not the text in field.
23746
23747 2002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23748
23749 * buffer.c (Fkill_all_local_variables):
23750 Increment `update_mode_lines' only once.
23751
23752 2002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23753
23754 * lisp.h (adjust_after_replace_noundo)
23755 (Fupdate_coding_systems_internal): Add prototypes.
23756
23757 * sound.c (Fplay_sound): Initialize header_size also for :data case.
23758
23759 2002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
23760
23761 Support for the --color command-line argument and tty-color-mode
23762 frame parameter:
23763
23764 * term.c (tty_default_color_capabilities, tty_setup_colors)
23765 (set_tty_color_mode): New functions.
23766 (term_init): Call tty_default_color_capabilities.
23767 (Qtty_color_mode_alist): New variable.
23768 (syms_of_term): Intern and staticpro it.
23769
23770 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
23771 frames.
23772 (do_switch_frame): For termcap frames, switch the tty
23773 color mode as specified by the frame's parameters.
23774 (Qtty_color_mode): New variable.
23775 (syms_of_frame): Intern and staticpro it.
23776
23777 * emacs.c (USAGE2): Add the --color option.
23778 (standard_args): Ditto.
23779
23780 2002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
23781
23782 * xterm.h (struct x_output): New members want_fullscreen,
23783 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
23784 y_pixels_outer_diff.
23785 New enum for FULLSCREEN_* constants.
23786 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
23787 is NULL.
23788 (x_fullscreen_adjust): Add prototype.
23789
23790 * emacs.c (USAGE2): Add the new full-screen arguments.
23791 (standard_args): Ditto.
23792
23793 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
23794 New variables.
23795 (syms_of_xfns): Intern and staticpro them.
23796 (x_frame_parms) <"fullscreen">: New parameter.
23797 (x_fullscreen_move, x_set_fullscreen): New functions.
23798 (x_set_frame_parameters): Support for Qfullscreen.
23799 (x_real_positions): More accurate computation of the frame position.
23800 (x_figure_window_size): Support full-screen frames.
23801 (Fx_create_frame): Default the fullscreen parameter.
23802
23803 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
23804 (XTread_socket) <Expose>: Call x_check_fullscreen.
23805 <ConfigureNotify>: Don't resize to fullscreen.
23806 Call x_check_fullscreen_move, and set the want_fullscreen member of
23807 output_data.x.
23808
23809 2002-01-13 Jason Rumney <jasonr@gnu.org>
23810
23811 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
23812 for mice with more than 3 buttons.
23813
23814 * w32term.c (parse_button): New parameter xbutton. Callers changed.
23815 (w32_read_socket): Handle new "XBUTTON" messages.
23816
23817 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
23818 (syms_of_w32fns): DEFVAR_BOOL it.
23819 (w32_wnd_proc): Handle new "XBUTTON" messages.
23820
23821 2002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23822
23823 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
23824
23825 2002-01-13 Andreas Schwab <schwab@suse.de>
23826
23827 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
23828
23829 2002-01-12 Andreas Schwab <schwab@suse.de>
23830
23831 * .gdbinit (xbuffer): Remove address operator since data is now a
23832 pointer.
23833
23834 2002-01-11 Richard M. Stallman <rms@gnu.org>
23835
23836 * insdel.c (adjust_after_replace_noundo): New function.
23837
23838 * coding.c (code_convert_region): Don't copy old text if undo disabled.
23839
23840 2002-01-09 Jason Rumney <jasonr@gnu.org>
23841
23842 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
23843 when checking for multiple frames.
23844
23845 2002-01-08 Richard M. Stallman <rms@gnu.org>
23846
23847 * window.c (delete_window): Rewrite the code for changing the
23848 selected window to handle the case where WINDOW is not a leaf.
23849
23850 2002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
23851
23852 * process.c (send_process): Set src_multibyte to 1 after the call
23853 top setup_coding_system, not before the call.
23854
23855 2002-01-07 Jason Rumney <jasonr@gnu.org>
23856
23857 * xmenu.c (set_frame_menubar, xmenu_show):
23858 (xdialog_show): Initialize wv->help to Qnil.
23859
23860 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
23861 (w32_dialog_show): Initialize wv->help to Qnil.
23862
23863 2002-01-06 Jason Rumney <jasonr@gnu.org>
23864
23865 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
23866
23867 * w32menu.c (w32_menu_display_help): Revert last change.
23868
23869 * xmenu.c (menu_highlight_callback): Revert last change.
23870
23871 2002-01-06 Andreas Schwab <schwab@suse.de>
23872
23873 * insdel.c (make_gap_larger): Make sure buffer size does not
23874 overflow range of int.
23875
23876 2002-01-05 Jason Rumney <jasonr@gnu.org>
23877
23878 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
23879 OVERLAPS_P.
23880
23881 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
23882
23883 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
23884 to the left or to the right of the pointer, put it against
23885 the left screen edge.
23886 (x_frame_parms): Add missing braces around initializer.
23887
23888 * w32term.c (x_setup_relief_colors): Don't compute an image's
23889 background color if it doesn't have a Pixmap.
23890 (notice_overwritten_cursor): Don't depend on
23891 output_cursor and updated_area. Compare pixel coordinates with
23892 window's cursor pixel coordinates.
23893 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
23894 Call notice_overwritten_cursor with new arg list.
23895 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
23896 unconditionally.
23897 (x_draw_image_relief): Use predefined macro instead of
23898 constant when the value of `tool_bar_button_relief' is negative.
23899
23900 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
23901
23902 2002-01-04 Richard M. Stallman <rms@gnu.org>
23903
23904 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
23905
23906 2002-01-03 Richard M. Stallman <rms@gnu.org>
23907
23908 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
23909 (Fkey_binding): Try the `keymap' property map first.
23910 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
23911 minor mode bindings.
23912
23913 2002-01-03 Kim F. Storm <storm@cua.dk>
23914
23915 * keyboard.c (read_key_sequence): Fix cast of submaps arg to bcopy.
23916
23917 2002-01-02 Richard M. Stallman <rms@gnu.org>
23918
23919 * keyboard.c (read_key_sequence): Handle the keymap property
23920 before minor mode maps.
23921
23922 * editfns.c (Fformat): Update thissize from field_width
23923 based on the actual width, in the string case.
23924
23925 2002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
23926
23927 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
23928 when used as truth value to prevent gcc warnings.
23929
23930 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
23931 * w32proc.c: Include <config.h>.
23932
23933 2002-01-01 Andreas Schwab <schwab@suse.de>
23934
23935 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
23936 not EMACS_INT, to make them compatible with DEFVAR_INT.
23937 * lisp.h (max_specpdl_size): Adjust declaration.
23938
23939 2002-01-01 Richard M. Stallman <rms@gnu.org>
23940
23941 * print.c (print_object): Test print_escape_nonascii only for
23942 unibyte strings.
23943 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
23944 when outputting to a multibyte buffer.
23945
23946 2001-12-29 Richard M. Stallman <rms@gnu.org>
23947
23948 * print.c (print_object): In multibyte string, use hex escapes.
23949 Use octal only for unibyte strings.
23950 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
23951
23952 * lread.c (read_escape): New arg BYTEREP for reporting whether
23953 escape forces unibyte or multibyte.
23954 (read1): When reading a string, take note of that info.
23955
23956 2001-12-29 Ken Raeburn <raeburn@gnu.org>
23957
23958 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
23959 comparison to test lisp value returned by Fget.
23960
23961 2001-12-29 Richard M. Stallman <rms@gnu.org>
23962
23963 * lisp.h (max_specpdl_size): Add declaration.
23964
23965 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
23966
23967 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
23968 Handle modifier bits. Correct typo in error message.
23969
23970 2001-12-28 Richard M. Stallman <rms@gnu.org>
23971
23972 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
23973 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
23974 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
23975 Update calls to Fdefine_abbrev.
23976 (write_abbrev): Update for changed data format.
23977 Don't list "system" abbrevs.
23978 (Fexpand_abbrev): Update use count with new data format.
23979 (describe_abbrev): Update for changed data format.
23980 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
23981
23982 * config.in (HAVE_MBSINIT): Add #undef.
23983
23984 * strftime.c (mbsinit): Define as no-op if not available.
23985
23986 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
23987 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
23988
23989 * keymap.c (Flookup_key): Error message if key has wrong data type.
23990 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
23991 (exclude_key): New variable.
23992
23993 2001-12-28 Gerd Moellmann <gerd@gnu.org>
23994
23995 * xterm.c (x_setup_relief_colors): Don't compute an image's
23996 background color if it doesn't have a Pixmap.
23997
23998 * xterm.c (notice_overwritten_cursor): Don't depend on
23999 output_cursor and updated_area. Compare pixel coordinates with
24000 window's cursor pixel coordinates.
24001 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
24002 Call notice_overwritten_cursor with new arg list.
24003 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
24004 unconditionally.
24005
24006 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
24007 height of the cursor line to the amount to scroll.
24008
24009 2001-12-27 Richard M. Stallman <rms@gnu.org>
24010
24011 * intervals.c (set_point_both): The position after an invisible,
24012 intangible character is not an acceptable stopping point.
24013
24014 2001-12-27 Ken Raeburn <raeburn@gnu.org>
24015
24016 * window.c (enlarge_window): In new preserve_before code, convert
24017 CURBEG from lisp object to integer before doing arithmetic.
24018
24019 2001-12-27 Richard M. Stallman <rms@gnu.org>
24020
24021 * bytecode.c (Fbyte_code): Undo previous change.
24022
24023 2001-12-26 Kim F. Storm <storm@cua.dk>
24024
24025 * keyboard.c (record_char): Ignore duplicate help-echo events only
24026 separated by mouse-movement. When tracking mouse, only record
24027 first and last mouse-movement event in same window.
24028 Don't record mouse-movement events in keyboard macros.
24029
24030 2001-12-25 Richard M. Stallman <rms@gnu.org>
24031
24032 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
24033 (Fenlarge_window): New arg PRESERVE_BEFORE.
24034
24035 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
24036 instead of Fstring_as_unibyte.
24037
24038 2001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24039
24040 The following changes remove mocklisp support:
24041
24042 * mocklisp.h, mocklisp.c: Files removed.
24043
24044 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
24045 `Qmocklisp' and `Qmocklisp_arguments'.
24046 Remove prototype of syms_of_mocklisp.
24047
24048 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
24049
24050 * callint.c: Do not include mocklisp.h.
24051 (Fcall_interactively): Do not test for mocklisp case.
24052
24053 * eval.c: Remove variables `Qmocklisp_arguments',
24054 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
24055 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
24056 Do not test for mocklisp case.
24057 (Fwhile): Remove unused variable `tem'.
24058 (syms_of_eval): Remove variable `moclisp-arguments'.
24059
24060 * data.c (wrong_type_argument): Remove mocklisp case.
24061
24062 * doc.c (Fdocumentation): Remove mocklisp case.
24063
24064 * emacs.c (main): Do not call syms_of_mocklisp.
24065
24066 2001-12-21 Richard M. Stallman <rms@gnu.org>
24067
24068 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
24069 to the left or to the right of the pointer, put it against
24070 the left screen edge.
24071
24072 2001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
24073
24074 * Makefile.in (distclean): Remove .gdbinit if we are building
24075 outside the source tree.
24076
24077 2001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
24078
24079 * w32.c (emacs_root_dir): New function.
24080
24081 * msdos.c (emacs_root_dir): New function.
24082
24083 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
24084 of the current drive as the fallback for default_directory.
24085
24086 * dired.c (file_name_completion): Run the elements of
24087 completion-ignored-extensions through ENCODE_FILE.
24088
24089 * lisp.h (scmp): Remove prototype, since it's now a static
24090 function private to dired.c.
24091
24092 2001-12-18 Richard M. Stallman <rms@gnu.org>
24093
24094 * dired.c (scmp): Function moved from minibuf.c.
24095 Delete multibyte handling--used only on encoded strings.
24096
24097 * minibuf.c (scmp): Function moved to dired.c.
24098
24099 * fns.c (merge): Add QUIT call.
24100
24101 2001-12-18 Dave Love <fx@gnu.org>
24102
24103 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
24104 language/georgian.el.
24105
24106 2001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
24107
24108 * Makefile.in (lisp, shortlisp): Synchronize with changes to
24109 lisp/Makefile.in:DONTCOMPILE.
24110
24111 2001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24112
24113 * xdisp.c (window_box_height): Do not return negative values.
24114 From Gerd Moellmann <gerd@gnu.org>.
24115
24116 * keyboard.c (head_table): Add missing braces around initializer.
24117
24118 * term.c (keys): Likewise.
24119
24120 * xfns.c (x_frame_parms, visual_classes): Likewise.
24121
24122 2001-12-17 Sam Steingold <sds@gnu.org>
24123
24124 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
24125 patch (COMPOSING_P, not COMPOSING).
24126
24127 2001-12-17 Richard M. Stallman <rms@gnu.org>
24128
24129 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
24130
24131 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
24132 before calling decode_coding.
24133
24134 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
24135
24136 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
24137 instead of only for COMPOSITION_DISABLED.
24138
24139 2001-12-16 Richard M. Stallman <rms@gnu.org>
24140
24141 * alloc.c (pure_alloc): After overflow, allocate just a small block.
24142
24143 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
24144
24145 * buffer.h (struct buffer): New field `display_error_modiff'.
24146 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
24147
24148 * window.c (Frecenter): Clear display_error_modiff field.
24149
24150 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
24151 Call redisplay_window, but not if display_error_modiff field says no.
24152 (redisplay_window_error): New function.
24153 (displayed_buffer): New variable.
24154 (redisplay_internal, redisplay_windows): Call the new functions
24155 instead of redisplay_window directly.
24156
24157 2001-12-15 Richard M. Stallman <rms@gnu.org>
24158
24159 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
24160
24161 2001-12-14 Andrew Innes <andrewi@gnu.org>
24162
24163 * makefile.w32-in (EMACSLOADPATH): Define.
24164 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
24165 (bootstrap-temacs): Remove dependency on bootstrap-clean.
24166
24167 2001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
24168
24169 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
24170 parameter have a numeric value all the time.
24171
24172 * w32fns.c (x_report_frame_params): Likewise.
24173
24174 2001-12-12 Richard M. Stallman <rms@gnu.org>
24175
24176 * fileio.c (Fwrite_region): Doc fix.
24177
24178 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
24179 (redisplay_internal): Call clear_image_cache only for window terminals.
24180
24181 2001-12-12 Gerd Moellmann <gerd@gnu.org>
24182
24183 * xdisp.c (move_it_vertically_backward): Change heuristic
24184 for the case that we didn't move far enough initially.
24185
24186 * window.c (Frecenter): Simplify computation in the case of window
24187 system frames and ARG < 0; use window_box_height.
24188
24189 2001-12-11 Richard M. Stallman <rms@gnu.org>
24190
24191 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
24192 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
24193
24194 2001-12-11 Andrew Innes <andrewi@gnu.org>
24195
24196 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
24197 arg is negative.
24198
24199 2001-12-11 Richard M. Stallman <rms@gnu.org>
24200
24201 * m/hp800.h: Split the __hpux conditional into the parts
24202 that are right for GNU/Linux too and the parts that are not.
24203 Use the former if GNU_LINUX.
24204 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
24205
24206 * s/gnu-linux.h (GNU_LINUX): Defined.
24207
24208 2001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24209
24210 * macros.c, msdos.c, w16select.c: Change doc-string comments to
24211 `new style' [w/`doc:' keyword].
24212
24213 2001-12-10 Jason Rumney <jasonr@gnu.org>
24214
24215 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
24216 before using.
24217
24218 2001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24219
24220 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
24221 keyword].
24222
24223 2001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
24224
24225 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
24226
24227 * s/hpux10.h (srand48): Don't undefine.
24228
24229 2001-12-09 Jason Rumney <jasonr@gnu.org>
24230
24231 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
24232 Add comment to explain where the struct came from.
24233 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
24234 (add_menu_item): Process pop-up menus first to avoid memory leak.
24235 (add_menu_item, w32_menu_display_help): Use `help' field as
24236 Lisp_Object.
24237 (w32_free_submenu_strings): Only free owner-drawn strings.
24238
24239 2001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24240
24241 * COPYING: Moved back.
24242
24243 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
24244 Add parentheses around && within ||.
24245
24246 * indent.c (compute_motion): Likewise.
24247
24248 * intervals.c (merge_properties_sticky): Likewise.
24249
24250 * coding.c (setup_coding_system, shrink_encoding_region)
24251 (Fdecode_sjis_char): Likewise.
24252
24253 2001-12-07 Andreas Schwab <schwab@suse.de>
24254
24255 * xdisp.c (display_mode_element): Don't read past end of string if
24256 it ends with '%'.
24257
24258 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
24259 can hold.
24260
24261 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
24262 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
24263 type changed to Lisp_Object.
24264 (syms_of_data): DEFVAR_LISP them.
24265
24266 2001-12-07 Richard M. Stallman <rms@gnu.org>
24267
24268 * callproc.c (init_callproc): Set Vdata_directory based on the source
24269 location whenever Emacs was run uninstalled.
24270
24271 2001-12-06 Paul Eggert <eggert@twinsun.com>
24272
24273 * config.in (HAVE_WORKING_VFORK): New #undefs.
24274 * process.c (create_process):
24275 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
24276 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
24277 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
24278 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
24279 * m/intel386.h (HAVE_VFORK): Likewise.
24280 * m/mips-siemens.h (HAVE_VFORK): Likewise.
24281 * m/mips.h (HAVE_VFORK): Likewise.
24282 * s/freebsd.h (vfork): Remove #define.
24283 * s/lynxos.h (HAVE_VFORK): Remove #undef.
24284 * s/usg5-4-2.h: Fix comment about vfork.
24285
24286 2001-12-06 Richard M. Stallman <rms@gnu.org>
24287
24288 * s/hpux10.h (random): Add undef.
24289 (HAVE_RANDOM): Define it just once.
24290
24291 2001-12-06 Stefan Monnier <monnier@cs.yale.edu>
24292
24293 * eval.c: Undo last change: the standard syntax is not wanted.
24294
24295 2001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
24296
24297 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
24298 scroll bars of the frame before deleting the frame itself. If the
24299 frame has a widget, delete the frame with XtDestroyWidget, and do
24300 not call XDestroyWindow before that.
24301
24302 2001-12-06 Kim F. Storm <storm@cua.dk>
24303
24304 * xfns.c (x_report_frame_params): Return actual fringe widths.
24305
24306 * w32fns.c (x_report_frame_params): Return actual fringe widths.
24307
24308 2001-12-05 Andrew Innes <andrewi@gnu.org>
24309
24310 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
24311 excessively large.
24312
24313 * insdel.c (make_gap_larger): New function.
24314 (make_gap_smaller): New function.
24315 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
24316 Call make_gap_smaller if arg is negative.
24317
24318 2001-12-04 Stefan Monnier <monnier@cs.yale.edu>
24319
24320 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
24321 Pass a dummy argument when calling interrupt_signal.
24322 (parse_menu_item): Mark disabled items before checking for empty def.
24323 (read_char_minibuf_menu_prompt): Make safety more visible.
24324 (read_key_sequence): Add a `first_unbound' variable.
24325 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
24326 unbound prefix as soon as we can detect it.
24327
24328 * doc.c (Fsnarf_documentation): Add prototype.
24329 (get_doc_string): Handle negative arguments.
24330 (Fdocumentation): Use AREF and ASIZE.
24331 Move the calls to get_doc_string to a single place.
24332 Don't confuse an interactive-spec for a docstring reference.
24333 (Fdocumentation_property): Take advantage of the fact that
24334 get_doc_string now ignores the sign of the docstring position.
24335
24336 * eval.c: Use standard syntax for usage in docstrings.
24337
24338 2001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24339
24340 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
24341
24342 2001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24343
24344 * xterm.c (x_draw_image_relief): Use predefined macro instead of
24345 constant when the value of `tool_bar_button_relief' is negative.
24346
24347 2001-12-02 Richard M. Stallman <rms@gnu.org>
24348
24349 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
24350 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
24351
24352 * fileio.c (read_non_regular): Delete Fsignal call.
24353
24354 2001-12-01 Stefan Monnier <monnier@cs.yale.edu>
24355
24356 * lisp.h (run_hook_list_with_args): Undo last change.
24357
24358 2001-12-01 Gerd Moellmann <gerd@gnu.org>
24359
24360 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
24361
24362 2001-12-01 Jason Rumney <jasonr@gnu.org>
24363
24364 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
24365
24366 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
24367 [!WM_MOUSELEAVE]: Define.
24368
24369 * w32menu.c (current_popup_menu, get_menu_item_info):
24370 (set_menu_item_info): New vars.
24371 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
24372 (w32_menu_show): Set current_popup_menu.
24373 (add_menu_item): Allocate new strings for owner-drawn menu items
24374 and help strings.
24375 Use owner-draw for disabled menu items again.
24376 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
24377 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
24378
24379 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
24380 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
24381 <WM_EXITMENULOOP>: Free menu strings.
24382 <WM_MOUSELEAVE>: Stop tracking mouse.
24383 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
24384
24385 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
24386 and mouse face.
24387
24388 2001-12-01 Kim F. Storm <storm@cua.dk>
24389
24390 The following changes add left-fringe and right-fringe
24391 frame parameters to adjust fringe widths, or remove one or
24392 both fringes.
24393
24394 * frame.h (struct frame): Remove trunc_area_pixel_width and
24395 trunc_area_cols fields.
24396 (Qleft_fringe, Qright_fringe): Declare.
24397 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
24398
24399 * frame.c (Qleft_fringe, Qright_fringe): New vars.
24400 (syms_of_frame): Initialize them.
24401
24402 * window.c (coordinates_in_window): Handle separate left and right
24403 fringe widths.
24404
24405 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
24406 and fringe_cols fields.
24407 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
24408 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
24409 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
24410 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
24411 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
24412 (x_compute_fringe_widths): Add prototype.
24413
24414 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
24415 fill fringe evenly with small dashes.
24416 (x_draw_fringe_bitmap): Clear background if necessary. Align and
24417 clip the new ZV bitmap to avoid jitter between rows.
24418 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
24419 background. Don't draw fringe bitmaps if fringe width is zero.
24420 (x_compute_fringe_widths): New function.
24421 (x_new_font, x_set_window_size_1): Use it.
24422
24423 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
24424 (x_set_frame_parameters): Process `font' parameter before other
24425 parameters as fringe widths depend on it.
24426 (x_set_fringe_width): New function.
24427 (x_figure_window_size): Use x_compute_fringe_widths.
24428 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
24429 parameters.
24430
24431 * widget.c (set_frame_size): Use x_compute_fringe_widths.
24432 (EmacsFrameSetCharSize): Ditto.
24433
24434 * w32term.h: Merged changes from xterm.h.
24435 * w32term.c: Merged changes from xterm.c.
24436 * w32fns.c: Merged changes from xfns.c.
24437
24438 2001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24439
24440 * COPYING: Removed.
24441
24442 2001-11-29 Dave Love <fx@gnu.org>
24443
24444 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
24445 extra extra slot.
24446 (detect_coding_mask): Fix call of detect_coding_iso2022.
24447
24448 2001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24449
24450 * fileio.c (file-name-coding-system)
24451 (default-file-name-coding-system): Doc fix (links to referenced
24452 variables added).
24453
24454 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
24455
24456 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
24457 Add dummy uses of gcproN variables.
24458
24459 * category.c (describe_category, describe_category_1)
24460 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
24461 (syms_of_category): Don't defsubr Sdescribe_categories.
24462
24463 2001-11-28 Richard M. Stallman <rms@gnu.org>
24464
24465 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
24466
24467 * Makefile.in (lispdir): New variable, referring to build dir.
24468 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
24469
24470 2001-11-28 Andrew Innes <andrewi@gnu.org>
24471
24472 * w32menu.c (w32_menu_display_help): Actually add the new argument
24473 OWNER.
24474
24475 2001-11-28 Jason Rumney <jasonr@gnu.org>
24476
24477 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
24478 menu items. From David Ponce <dponce@wanadoo.fr>.
24479 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
24480 conditionally.
24481 (w32_menu_display_help): New argument OWNER. Rewritten to store a
24482 help event in the owner frame's keyboard buffer.
24483
24484 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
24485 (Fx_show_tip): Don't subtract last width from row width.
24486
24487 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
24488 (w32_read_socket): Use EQ to compare frames.
24489
24490 2001-11-28 Gerd Moellmann <gerd@gnu.org>
24491
24492 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
24493 OVERLAPS_P.
24494
24495 2001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24496
24497 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
24498 `gcpro3' and `gcpro4'.
24499
24500 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
24501
24502 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
24503
24504 * ccl.c: Use AREF and ASIZE.
24505
24506 2001-11-27 Stefan Monnier <monnier@cs.yale.edu>
24507
24508 * lisp.h (run_hook_list_with_args): Remove.
24509 (LIST_END_P): Fix call to wrong_type_argument.
24510 (make_fixnum_or_float): Use EMACS_INT rather than int.
24511
24512 2001-11-26 Stefan Monnier <monnier@cs.yale.edu>
24513
24514 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
24515 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
24516
24517 * eval.c: Use AREF and ASIZE.
24518 (Ffetch_bytecode): Add the file name to the error message.
24519
24520 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
24521 which match the end of the file-name.
24522 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
24523 is not a valid env var, but leave it as is instead.
24524
24525 * keymap.c (access_keymap): Handle t bindings like nil bindings.
24526 Make nil bindings in char-tables transparent.
24527 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
24528
24529 2001-11-26 Richard M. Stallman <rms@gnu.org>
24530
24531 * textprop.c (set_text_properties_1): Allow START, END in either order.
24532 Do nothing if range is empty.
24533
24534 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
24535
24536 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
24537 (clean): Not here.
24538
24539 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
24540
24541 * textprop.c (set_text_properties_1): Clearly mark that the
24542 interval should not be empty.
24543
24544 * intervals.c (graft_intervals_into_buffer):
24545 Don't call set_text_properties_1 on an empty interval.
24546
24547 2001-11-25 Richard M. Stallman <rms@gnu.org>
24548
24549 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
24550
24551 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
24552 don't lose the data in it.
24553
24554 2001-11-25 Juanma Barranquero <lektu@terra.es>
24555
24556 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
24557
24558 * buffer.c (Fkill_buffer): Likewise.
24559
24560 * print.c (temp_output_buffer_setup): Likewise.
24561
24562 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
24563
24564 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
24565
24566 2001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
24567
24568 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
24569 Niemitalo <kon@iki.fi>.
24570
24571 2001-11-25 Jason Rumney <jasonr@gnu.org>
24572
24573 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
24574
24575 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
24576 (Fx_show_tip): Block input during frame creation.
24577 (Fx_show_tip, Fx_hide_tip): Enable.
24578
24579 2001-11-24 Richard M. Stallman <rms@gnu.org>
24580
24581 * lread.c (Fload): Detect recursive load error for more than 3
24582 nestings of the same file.
24583 (Vrecursive_load_depth_limit): Variable deleted.
24584 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
24585
24586 2001-11-24 Jason Rumney <jasonr@gnu.org>
24587
24588 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
24589 mouse position if either left or top is not specified.
24590
24591 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
24592 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
24593 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
24594 (my_create_tip_window): Assign tip_window.
24595 (x_create_tip_frame): Use same defaults as X.
24596 (compute_tip_xy): Remove unused variable. Use full screen width.
24597 (Fx_show_tip): Do not double height. Call ShowWindow directly.
24598
24599 * w32term.c (x_after_update_window_line): Doc fix.
24600 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
24601 frames.
24602 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
24603
24604 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
24605 for all Windowed systems.
24606
24607 2001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
24608
24609 * msdos.c (IT_clear_screen): If the frame's faces are not yet
24610 realized, use the initial screen colors to clear the screen.
24611
24612 2001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24613
24614 * textprop.c (Fset_text_properties): Remove unused variables
24615 `unchanged', `prev_changed', `s' and `len'.
24616
24617 * search.c (Freplace_match): Remove unused variable `inslen'.
24618
24619 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
24620
24621 2001-11-22 Jason Rumney <jasonr@gnu.org>
24622
24623 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
24624 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
24625 (my_create_tip_window): New function.
24626 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
24627 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
24628
24629 2001-11-20 Jason Rumney <jasonr@gnu.org>
24630
24631 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
24632 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
24633
24634 * w32fns.c (Vw32_system_coding_system): Remove.
24635 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
24636
24637 2001-11-19 Stefan Monnier <monnier@cs.yale.edu>
24638
24639 * fileio.c (Fwrite_region): Move choose_write_coding_system to
24640 after build_annotations.
24641
24642 * syntax.c (describe_syntax): Add dummy arg.
24643 (describe_syntax_1): Update call to describe_vector.
24644
24645 * category.c (describe_category): Add dummy arg.
24646 (describe_category_1): Update call to describe_vector.
24647
24648 * keymap.c (Fdescribe_vector): Add `describer' parameter.
24649 (describe_command, describe_translation): Add dummy second param.
24650 (describe_map): Call elt_describer with two arguments.
24651 (describe_vector_princ): Add `fun' parameter.
24652 Call it instead of the hardcoded `princ'.
24653 (describe_vector): Add arg `args'.
24654 Pass it as a new second argument to elt_describer.
24655
24656 * keymap.h (describe_vector): Update prototype.
24657
24658 * frame.c: Don't include keymap.h any more.
24659 (keys_of_frame): Remove.
24660
24661 * lisp.h (keys_of_frame): Remove declaration.
24662
24663 * emacs.c (main): Don't call `keys_of_frame' any more.
24664
24665 2001-11-14 Andreas Schwab <schwab@suse.de>
24666
24667 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
24668 if defined, 0 otherwise.
24669 (MAP_FAILED): Define if not defined and use it to test mmap failure.
24670 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
24671
24672 2001-11-19 Richard M. Stallman <rms@gnu.org>
24673
24674 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
24675
24676 2001-11-18 Jason Rumney <jasonr@gnu.org>
24677
24678 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
24679 (x_draw_bar_cursor): If the background color of the glyph under
24680 the cursor equals the frame's cursor color, use the glyph's
24681 foreground color for drawing the bar cursor.
24682 (x_after_update_window_line): Clear internal border in different
24683 circumstances.
24684 (w32_set_vertical_scroll_bar): Check for width and height > 0.
24685 (w32_draw_relief_rect): Correct relief by 1 pixel.
24686 (x_set_glyph_string_background_width):
24687 Set extends_to_end_of_line_p if the row's fill_line_p is set and
24688 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
24689 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
24690 if cursor_in_non_selected_windows is false.
24691 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
24692 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
24693 Notice if cursor gets overwritten.
24694 (notice_overwritten_cursor): Renamed from
24695 note_overwritten_text_cursor. Rewritten to take glyph widths
24696 into account, and to take X positions as parameters.
24697 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
24698 around call to x_draw_glyphs.
24699 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
24700 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
24701 color to use for image glyph reliefs.
24702 (x_draw_image_relief): Accept zero tool_bar_button_relief.
24703 (glyph_rect): Remove unused variable `area'.
24704
24705 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
24706 some items.
24707 (x_set_internal_border_width): Set frame garbaged when window
24708 doesn't exist yet.
24709 (Fx_create_frame): Accept zero tool_bar_button_relief.
24710 (x_clear_image_1, four_corners_best, image_background)
24711 (image_background_transparent): New functions.
24712 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
24713 (gs_format): Add `:background' entry.
24714 (lookup_image): Set IMG's background color if specified.
24715 (pbm_load, xbm_load_image, png_load): Set IMG's background field
24716 when appropriate.
24717 (x_clear_image_1): Reset `background_valid' and
24718 `background_transparent_valid' fields.
24719 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
24720 calculating it here. Set IMG's background_transparent field.
24721 (enum xpm_keyword_index): Add XPM_BACKGROUND.
24722 (enum png_keyword_index): Add PNG_BACKGROUND.
24723 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
24724 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
24725 (enum gif_keyword_index): Add GIF_BACKGROUND.
24726 (enum gs_keyword_index): Add GS_BACKGROUND.
24727 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
24728 Pre-calculate image background color where necessary.
24729 (x_create_x_image_and_pixmap, xbm_load, gs_load):
24730 Use display info's n_cbits entry for screen depth.
24731 (Fx_show_tip): Remove unused variables `buffer', `top',
24732 `left', `max_width' and `max_height'.
24733
24734 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
24735
24736 2001-11-18 Gerd Moellmann <gerd@gnu.org>
24737
24738 * puresize.h (BASE_PURESIZE): Increase to 750000.
24739
24740 2001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24741
24742 * frame.c (Fframe_live_p): Doc fix.
24743
24744 2001-11-18 Richard M. Stallman <rms@gnu.org>
24745
24746 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
24747 (message_dolog_marker3): New static variables hold three markers.
24748 (syms_of_xdisp): Initialize and staticpro them.
24749 (message_dolog): Use message_dolog_marker1..3 instead of
24750 allocating markers each time. Unchain them when done.
24751
24752 2001-11-17 Richard M. Stallman <rms@gnu.org>
24753
24754 * doc.c (Fsnarf_documentation): Doc fix.
24755
24756 2001-11-17 Andreas Schwab <schwab@suse.de>
24757
24758 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
24759
24760 2001-11-17 Richard M. Stallman <rms@gnu.org>
24761
24762 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
24763
24764 2001-11-17 Jason Rumney <jasonr@gnu.org>
24765
24766 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
24767
24768 2001-11-17 Gerd Moellmann <gerd@gnu.org>
24769
24770 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
24771 with invalid position.
24772
24773 2001-11-16 Richard M. Stallman <rms@gnu.org>
24774
24775 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
24776
24777 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
24778 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
24779 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
24780
24781 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
24782
24783 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
24784
24785 * fileio.c (build_annotations): Split off the tail.
24786 (build_annotations_2): New fun. Extracted from build_annotations.
24787 (Fwrite_region): Split the call to build_annotations into two
24788 calls to build_annotations and build_annotations_2.
24789
24790 2001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24791
24792 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
24793 clear_waiting_for_input with argument.
24794
24795 * xterm.h (x_update_cursor): Remove duplicated prototype.
24796
24797 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
24798
24799 * xterm.c (waiting_for_input): Remove unnecessary declaration.
24800
24801 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
24802
24803 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
24804
24805 * fileio.c (choose_write_coding_system): New fun, extracted
24806 from Fwrite_region.
24807 (Fwrite_region): Use it.
24808
24809 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
24810 (funcall_lambda, run_hook_with_args): Make static and add prototype.
24811 (ml_apply, find_handler_clause): Add prototype.
24812
24813 2001-11-16 Eli Zaretskii <eliz@gnu.org>
24814
24815 * config.in: Add #undef HAVE_COFF_H.
24816
24817 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
24818 Required for ISC 4.1.
24819
24820 2001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
24821
24822 * syswait.h (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
24823 Andrew Wiseman <a.wiseman@btclick.com>.
24824
24825 2001-11-16 Kim F. Storm <storm@cua.dk>
24826
24827 The following changes are made to clean up the various internal
24828 references to the fringes to actually use the term `fringe' for
24829 them. Previously, they were called `flags areas', `bitmap areas',
24830 `left/right side of windows', or implicitly as `flags' or
24831 `bitmaps':
24832
24833 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
24834 Comments fixed. Use renamed symbols.
24835
24836 * dispnew.c: Comment fix. Use renamed symbols.
24837
24838 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
24839 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
24840 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
24841
24842 * msdos.c: Comment fix.
24843
24844 * w32fns.c: Use renamed symbols.
24845
24846 * w32term.c: Comment fixes. Use renamed symbols.
24847 (fringe_bitmap_type): Renamed from bitmap_type.
24848 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
24849 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
24850 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
24851
24852 * w32term.h: Comment fixes. Use renamed symbols.
24853 (fringes_extra): Renamed from flags_areas_extra.
24854 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
24855 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
24856 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
24857 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
24858 (FRAME_X_LEFT_FRINGE_WIDTH):
24859 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
24860 (FRAME_X_RIGHT_FRINGE_WIDTH):
24861 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
24862
24863 * widget.c: Use renamed symbols.
24864
24865 * window.c: Comment fixes. Use renamed symbols.
24866 (coordinates-in-window-p): Doc fix.
24867
24868 * xdisp.c: Comment fixes. Use renamed symbols.
24869
24870 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
24871
24872 * xfns.c: Use renamed symbols.
24873
24874 * xterm.c: Comment fixes. Use renamed symbols.
24875 (fringe_bitmap_type): Renamed from bitmap_type.
24876 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
24877 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
24878 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
24879
24880 * xterm.h: Comment fixes. Use renamed symbols.
24881 (fringes_extra): Renamed from flags_areas_extra.
24882 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
24883 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
24884 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
24885 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
24886 (FRAME_X_LEFT_FRINGE_WIDTH):
24887 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
24888 (FRAME_X_RIGHT_FRINGE_WIDTH):
24889 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
24890
24891 2001-11-15 Jason Rumney <jasonr@gnu.org>
24892
24893 * w32menu.c (add-menu-item): Make help_echo and radio buttons
24894 work for most menu items. From David Ponce
24895 <david.ponce@wanadoo.fr>.
24896
24897 2001-11-15 Gerd Moellmann <gerd@gnu.org>
24898
24899 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
24900 Some x_set_* function expect to be called even if old and new
24901 value are equal.
24902
24903 * xdisp.c (build_desired_tool_bar_string): Accept zero
24904 tool_bar_button_relief.
24905
24906 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
24907
24908 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
24909
24910 * xterm.c (x_draw_bar_cursor): If the background color of the
24911 glyph under the cursor equals the frame's cursor color, use
24912 the glyph's foreground color for drawing the bar cursor.
24913
24914 * dispnew.c (direct_output_forward_char): Fix character/byte
24915 position comparison.
24916
24917 2001-11-15 Miles Bader <miles@gnu.org>
24918
24919 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
24920 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
24921 Update arguments to find_field.
24922 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
24923 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
24924 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
24925 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
24926
24927 2001-11-14 Richard M. Stallman <rms@gnu.org>
24928
24929 * editfns.c (Fpropertize): Allow call with 1 arg.
24930
24931 * dispextern.h (image_background, image_background_transparent):
24932 Conditionalize on HAVE_X_WINDOWS.
24933
24934 2001-11-13 Richard M. Stallman <rms@gnu.org>
24935
24936 * print.c (Fprin1_to_string): Doc fix.
24937
24938 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
24939
24940 * floatfns.c (Fceiling, Ffloor): Doc fixes.
24941
24942 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
24943
24944 * fileio.c (Ffile_accessible_directory_p): Doc fix.
24945
24946 * eval.c (syms_of_eval): Doc fix.
24947
24948 * coding.c (syms_of_coding): Doc fix.
24949
24950 * doc.c (Fsnarf_documentation): Doc fix.
24951
24952 * dispnew.c (syms_of_display): Doc fix.
24953
24954 * category.c (Fget_unused_category): Doc fix.
24955
24956 * buffer.c (syms_of_buffer): Doc fixes.
24957
24958 2001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
24959
24960 * print.c (prin1, print): Doc fix.
24961
24962 2001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24963
24964 * fontset.h: Remove declarations of variables
24965 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
24966
24967 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
24968 `Vclip_large_size_font'.
24969
24970 2001-11-13 Jason Rumney <jasonr@gnu.org>
24971
24972 * w32fns.c: Doc fix.
24973
24974 2001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
24975
24976 * xfaces.c (Fface_attributes_as_vector): Doc fix.
24977
24978 * fns.c: Doc fix.
24979
24980 * emacs.c: Doc fix.
24981
24982 * coding.c: Doc fix.
24983
24984 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
24985 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
24986 `new style' [w/`doc:' keyword].
24987
24988 2001-11-12 Richard M. Stallman <rms@gnu.org>
24989
24990 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
24991 LeaveNotify events. Only FocusIn and FocusOut do that now.
24992 (x_display_and_set_cursor): Do display hollow cursors in active
24993 minibuffer windows when they are not selected.
24994
24995 2001-11-12 Jason Rumney <jasonr@gnu.org>
24996
24997 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
24998 * w32term.c: Change doc-string comments to `new style'
24999 [w/`doc:' keyword]. Doc fixes.
25000
25001 * w32fns.c: Don't define max.
25002 (Fx_open_connection): Only execute once.
25003
25004 2001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25005
25006 * ccl.c: Change macros to use do-while block instead of if-else.
25007 Use braces to follow GNU Coding Standards.
25008
25009 2001-11-11 Richard M. Stallman <rms@gnu.org>
25010
25011 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
25012
25013 * lread.c (read_escape): Use end_of_file_error for reporting eof.
25014
25015 * insdel.c (replace_range): Use adjust_markers_for_replace
25016 instead of adjust_markers_for_delete and adjust_markers_for_insert.
25017
25018 * intervals.h (set_text_properties, set_text_properties_1): Declare.
25019
25020 * textprop.c (set_text_properties_1): New subroutine
25021 broken out of set_text_properties.
25022 (set_text_properties): Use set_text_properties_1.
25023
25024 * intervals.c (graft_intervals_into_buffer):
25025 Use set_text_properties_1 to clear out properties.
25026
25027 * search.c (Freplace_match): Use replace_range to insert
25028 and delete. Don't request property inheritance from
25029 surrounding text.
25030
25031 2001-11-10 Jason Rumney <jasonr@gnu.org>
25032
25033 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
25034 vertical fonts. Allow them if face name is explicitly specified.
25035 Do not give up if we find a font that cannot be converted to an xlfd.
25036
25037 2001-11-10 Gerd Moellmann <gerd@gnu.org>
25038
25039 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
25040 instead of malloc/free.
25041
25042 2001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25043
25044 * xfaces.c (merge_face_vectors): Use braces to follow GNU
25045 Coding Standards.
25046 (Finternal_set_lisp_face_attribute): Likewise.
25047
25048 * buffer.c (Fbury_buffer): Likewise.
25049
25050 * indent.c (current_column_1): Remove unused variable `prev_col'.
25051
25052 * coding.c (encode_coding): Use precomputed value of `src'.
25053 (encode_coding): Remove unused variable `src_end'.
25054 (code_convert_region): Remove unused variables `count'.
25055
25056 2001-11-07 Jason Rumney <jasonr@gnu.org>
25057
25058 * w32term.c (x_display_and_set_cursor): Do not move system caret
25059 if cursor_glyph is NULL.
25060
25061 2001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25062
25063 * keymap.c (access_keymap): Fix compilation error.
25064
25065 2001-11-07 Miles Bader <miles@gnu.org>
25066
25067 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
25068
25069 2001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25070
25071 * intervals.c (graft_intervals_into_buffer):
25072 Remove #ifdef'd-out code.
25073 (graft_intervals_into_buffer): Remove unused variable `middle'.
25074
25075 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
25076 code (eval-current-buffer).
25077 Change doc-string comments to `new style' [w/`doc:' keyword].
25078
25079 2001-11-06 Richard M. Stallman <rms@gnu.org>
25080
25081 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
25082
25083 2001-11-06 Stefan Monnier <monnier@cs.yale.edu>
25084
25085 * lread.c (read1): Fix behavior with nested backquoting.
25086
25087 * keyboard.c (make_lispy_event): Check integerness and fix
25088 Lisp_Object/int mixup.
25089
25090 2001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25091
25092 * fns.c (copy_hash_table): Remove unused variable `v'.
25093
25094 * fontset.c (fontset_font_pattern): Remove unused variable
25095 `family_registry'.
25096
25097 * indent.c (current_column_1): Remove unused variable `prev_col'.
25098
25099 2001-11-05 Richard M. Stallman <rms@gnu.org>
25100
25101 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
25102
25103 * buffer.c (Fkill_buffer): Don't delete auto save file
25104 if buffer is modified.
25105
25106 2001-11-05 Andrew Innes <andrewi@gnu.org>
25107
25108 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
25109 CHECK_NUMBER_CDR.
25110
25111 2001-11-05 Richard M. Stallman <rms@gnu.org>
25112
25113 * unexelf.c (unexec): Minor changes; clean up comments.
25114
25115 2001-11-05 Sam Steingold <sds@gnu.org>
25116
25117 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
25118
25119 2001-11-05 Andreas Schwab <schwab@suse.de>
25120
25121 * sound.c (sound_perror): Save errno from being clobbered.
25122
25123 2001-11-05 Dale Hagglund <rdh@yottayotta.com>
25124
25125 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
25126 the program image directly.
25127
25128 2001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25129
25130 * buffer.h (Fbuffer_local_value): Add prototype.
25131
25132 2001-11-04 Richard M. Stallman <rms@gnu.org>
25133
25134 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
25135 and CHECK_BUFFER.
25136
25137 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
25138 (record_char): Likewise.
25139
25140 * keyboard.c (make_lispy_event): Don't insist a drag event must
25141 move to a different buffer position. Instead, check for moving at
25142 least double_click_fuzz.
25143
25144 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
25145
25146 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
25147
25148 * indent.c (current_column_1, Fmove_to_column): Separate the code
25149 for display-table glyphs from the code for buffer text, to fix
25150 bugs in the former.
25151
25152 2001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
25153
25154 * buffer.c (Fbuffer_local_value): New function.
25155 (syms_of_buffer): Defsubr it.
25156
25157 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
25158 value of `cursor-in-non-selected-windows'.
25159
25160 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
25161 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
25162 (syms_of_xdisp): Initialize it.
25163
25164 2001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25165
25166 * xfns.c (Fx_create_frame): Doc fix.
25167
25168 * coding.c: Change doc-string comments to `new style' [w/`doc:'
25169 keyword].
25170
25171 * eval.c (top_level_value, top_level_set): Remove commented and
25172 #ifdef'd-out code.
25173 (Fdefvar): Fix usage in doc-string.
25174
25175 2001-11-03 Richard M. Stallman <rms@gnu.org>
25176
25177 * xfns.c: Include unistd.h, if it exists.
25178
25179 * editfns.c: Move the include of ctype.h after unistd.h.
25180
25181 * gmalloc.c: Test BROKEN_PROTOTYPES.
25182
25183 2001-11-03 Ken Raeburn <raeburn@gnu.org>
25184
25185 * lisp.h (CHECK_STRING_CAR): New macro.
25186 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
25187 treating XCAR and XCDR as lvalues.
25188 (openp): Use CHECK_STRING_CAR.
25189 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
25190
25191 2001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
25192
25193 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
25194 (SIGMASKTYPE): Define.
25195
25196 * syssignal.h (sigunblock): Don't define if already defined.
25197
25198 2001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25199
25200 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
25201 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
25202 Fix typos in comments.
25203
25204 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
25205 and #ifdef'd-out code.
25206 Fix and reindent comments.
25207
25208 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
25209
25210 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
25211 argument `i' in macros.
25212
25213 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
25214 `i' in macros.
25215
25216 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
25217 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
25218 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
25219 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
25220 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
25221 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
25222 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
25223 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
25224 in macros.
25225
25226 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
25227 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
25228 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
25229 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
25230 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
25231 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
25232 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
25233 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
25234 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
25235 (remove unused second argument).
25236
25237 2001-11-02 Stefan Monnier <monnier@cs.yale.edu>
25238
25239 * syntax.c (describe_syntax): New wrapper.
25240 (Finternal_describe_syntax_value): Rename from describe_syntax.
25241 Don't insert space at front and \n at the end.
25242 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
25243
25244 * regex.c (re_wctype): Try to fix some warnings.
25245 (regcomp, regexec): Don't forget the __restrict.
25246
25247 2001-11-02 Richard M. Stallman <rms@gnu.org>
25248
25249 * textprop.c (Fget_char_property): Doc fix.
25250
25251 2001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25252
25253 * process.c (Fstart_process): Add usage to doc-string.
25254
25255 * data.c (Fsetq_default): Ditto.
25256
25257 * callint.c (Finteractive): Ditto.
25258
25259 2001-11-01 Stefan Monnier <monnier@cs.yale.edu>
25260
25261 * macros.c: Don't include keymap.h any more.
25262
25263 2001-11-01 Richard M. Stallman <rms@gnu.org>
25264
25265 * data.c (Fmake_local_variable): Doc fix.
25266
25267 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
25268 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
25269
25270 * keymap.c (Fdescribe_buffer_bindings): Print character property
25271 bindings along with or instead of the buffer local map.
25272 Make the overriding maps override what they should.
25273
25274 2001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25275
25276 * window.c (grow_mini_window): Fix typo in comment.
25277
25278 2001-11-01 Gerd Moellmann <gerd@gnu.org>
25279
25280 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
25281 (XTset_vertical_scroll_bar): Likewise.
25282
25283 * xfns.c (x_build_heuristic_mask): Use four_corners_best
25284 instead of IMAGE_BACKGROUND.
25285
25286 * xfns.c (four_corners_best): Reindent.
25287
25288 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
25289 Handle :box so that it is possible to specify sexprs.
25290
25291 2001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
25292
25293 * s/hpux11.h: New file.
25294
25295 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25296
25297 * emacs.c (USAGE1): Show command line option --no-window-system
25298 instead of --no-windows in usage.
25299 (standard_args): Rename --no-windows to --no-window-system.
25300 (bug_reporting_address): Follow Emacs coding conventions.
25301
25302 * eval.c (Fcommandp): Doc fix.
25303 Change doc-string comments to `new style' [w/`doc:' keyword].
25304
25305 * frame.c (Fframe_live_p): Doc fix.
25306
25307 * buffer.c (selective-display-ellipses): Doc fix.
25308
25309 2001-10-31 Gerd Moellmann <gerd@gnu.org>
25310
25311 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
25312
25313 * xfaces.c (realize_x_face): If C is not a single-byte character,
25314 set the face's colors_copied_bitwise_p instead of the defaulted_p
25315 members which have a different meaning.
25316 (free_face_colors): Do nothing for a face whose colors have been
25317 copied bitwise.
25318
25319 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
25320
25321 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25322
25323 * marker.c, mocklisp.c: Change doc-string comments to `new style'
25324 [w/`doc:' keyword].
25325
25326 2001-10-31 Gerd Moellmann <gerd@gnu.org>
25327
25328 * fns.c (require_unwind): Return Lisp_Object.
25329
25330 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25331
25332 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
25333 (last-input-char): Revert doc-string to be the same as the
25334 doc-string of `last-input-event'.
25335
25336 * xdisp.c: Fix typos in comments.
25337
25338 2001-10-31 Gerd Moellmann <gerd@gnu.org>
25339
25340 * window.c (grow_mini_window): Handle case that the root
25341 window is already smaller than the nominal mininum height.
25342
25343 2001-10-30 Stefan Monnier <monnier@cs.yale.edu>
25344
25345 * emacs.c (main): Don't call keys_of_macros any more.
25346
25347 * lisp.h (keys_of_macros): Remove.
25348
25349 * macros.c (keys_of_macros): Remove.
25350
25351 * xfaces.c (Fface_attribute_relative_p): Declare args.
25352
25353 2001-10-30 Jason Rumney <jasonr@gnu.org>
25354
25355 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
25356 (enum_font_cb2): Ignore fonts with vertical orientation.
25357
25358 2001-10-30 Richard M. Stallman <rms@gnu.org>
25359
25360 * keyboard.c (Finput_pending_p): Doc fix.
25361
25362 2001-10-30 Gerd Moellmann <gerd@gnu.org>
25363
25364 * xterm.c (x_after_update_window_line): Don't run the code
25365 clearing in borders for rows whose visible height is 0.
25366
25367 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
25368 resized_p flag is set. If not set, use the much less flickering
25369 method previously used.
25370
25371 * dispnew.c (change_frame_size_1): Set frame's resized_p.
25372
25373 * frame.h (struct frame) <resized_p>: New member.
25374
25375 * lread.c (to_multibyte): Ensure read_buffer is at least twice
25376 as large as the number of bytes to convert.
25377
25378 * lread.c (to_multibyte): New function.
25379 (read1): Use it.
25380
25381 2001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
25382
25383 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
25384
25385 2001-10-30 Gerd Moellmann <gerd@gnu.org>
25386
25387 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
25388 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
25389 if the row's fill_line_p is set and drawing the last glyph with
25390 DRAW_IMAGE_{RAISED,SUNKEN}.
25391
25392 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
25393
25394 2001-10-29 Stefan Monnier <monnier@cs.yale.edu>
25395
25396 * xmenu.c: Include coding.h and charset.h.
25397 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
25398 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
25399 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
25400 Explicitly set wv->help. Use `TRUE' rather than `True'.
25401 (menu_help_callback): Use empty_string.
25402
25403 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
25404 (Fx_popup_dialog): Explicitly init f.
25405 (w32_menu_display_help): Use empty_string.
25406
25407 2001-10-29 Richard M. Stallman <rms@gnu.org>
25408
25409 * fns.c (Frequire): Detect recursive try to require the same
25410 feature 3 or more levels deep, and get error.
25411 (require_unwind): New subroutine.
25412 (require_nesting_list): New variable.
25413 (syms_of_fns): Init and staticpro it.
25414
25415 * print.c (print_object): Clarify indication of insertion type.
25416
25417 2001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
25418
25419 * coding.c (syms_of_coding): Document that locale-coding-system is
25420 used for decoding input on X.
25421
25422 * window.c (Fscroll_left, Fscroll_right): Doc fix.
25423
25424 2001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25425
25426 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
25427 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
25428
25429 2001-10-29 Gerd Moellmann <gerd@gnu.org>
25430
25431 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
25432 use NO_CURSOR if cursor_in_non_selected_windows is false.
25433
25434 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
25435 the slant attribute if FRAME is t.
25436
25437 * xfns.c (x_set_internal_border_width): Set frame garbaged
25438 when X window doesn't exist yet.
25439
25440 * xterm.c (x_after_update_window_line): Clear internal border
25441 in different circumstances.
25442
25443 * xterm.c (XTread_socket) <KeyPress>: Don't use
25444 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
25445 <handa@etl.go.jp>.
25446
25447 2001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
25448
25449 * m/ibms390.h: New file. From Adam Thornton
25450 <athornton@sinenomine.net>.
25451
25452 2001-10-28 Gerd Moellmann <gerd@gnu.org>
25453
25454 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
25455
25456 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
25457 a loop counter.
25458
25459 2001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25460
25461 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
25462
25463 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
25464 keyword].
25465 Fix typos in comments.
25466
25467 * emacs.c (bug_reporting_address): New function.
25468 Use it when displaying usage message.
25469
25470 * minibuf.c (read_minibuf): Remove unused external declaration of
25471 variable `Qread_only'.
25472
25473 * keymap.c (access_keymap): Remove unused variable `charset'.
25474
25475 2001-10-28 Miles Bader <miles@gnu.org>
25476
25477 * xfaces.c (merge_face_heights): Handle TO being relative as well.
25478 Remove #ifdef'd-out code.
25479 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
25480 (syms_of_xfaces): Initialize them.
25481
25482 2001-10-27 Jason Rumney <jasonr@gnu.org>
25483
25484 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
25485 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
25486 position using the system caret.
25487
25488 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
25489 (w32_system_caret_height, w32_system_caret_x)
25490 (w32_system_caret_y): New variables for tracking system caret.
25491 (w32_initialize): Initialize them.
25492 (x_display_and_set_cursor): Make system caret follow the active cursor.
25493
25494 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
25495 New messages types.
25496
25497 * w32term.c (note_mouse_highlight): Clear old help_echo.
25498
25499 2001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25500
25501 * xterm.c: Fix typo in a comment.
25502
25503 * emacs.c: Fix typos in comments.
25504 Remove unnecessary spaces.
25505 Change doc-string comments to `new style' [w/`doc:' keyword].
25506 (USAGE2): Fix typos in usage string.
25507
25508 * xterm.c: Fix typo in a comment.
25509
25510 * lisp.h (gdb_lisp_params): Remove code in #if 0 which is now in
25511 emacs.c.
25512
25513 2001-10-27 Gerd Moellmann <gerd@gnu.org>
25514
25515 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
25516 instead of 1/2 line_height in the heuristic for skipping
25517 farther backward when target_y was not reached.
25518
25519 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
25520 Display errno only if non-zero.
25521 (sound_warning): New function.
25522 (vox_configure): Don't treat failing to set sample rate as error.
25523 (various places): Improve error messages.
25524
25525 2001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
25526
25527 * fileio.c (Faccess_file): Run the argument filename through
25528 Fexpand_file_name, before using it.
25529
25530 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
25531 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
25532
25533 2001-10-26 Gerd Moellmann <gerd@gnu.org>
25534
25535 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
25536
25537 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
25538 Fix clearing in the case of scroll bars on the right.
25539
25540 2001-10-26 Juanma Barranquero <lektu@terra.es>
25541
25542 * w32gui.h (XImage): Add a dummy typedef.
25543
25544 2001-10-26 Gerd Moellmann <gerd@gnu.org>
25545
25546 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
25547
25548 2001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
25549
25550 * frame.c (Fframe_parameter): Fix last change.
25551
25552 * fileio.c: Revert last change (which removed old commented-out
25553 version of expand-file-name). Add a comment that explains why
25554 this old version should not be removed.
25555
25556 2001-10-25 Gerd Moellmann <gerd@gnu.org>
25557
25558 * frame.c (Fframe_parameter): Fix a bug whereby some
25559 ``artificial'' frame parameters, like `minibuffer' were not
25560 obtained by calling Fframe_parameters.
25561
25562 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
25563 cursor differently.
25564
25565 * xdisp.c (move_it_vertically_backward): Compute line height
25566 differently. Add heuristic to try to be more compatible to 20.x.
25567
25568 2001-10-25 Stefan Monnier <monnier@cs.yale.edu>
25569
25570 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
25571
25572 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
25573 boolean.
25574
25575 2001-10-25 Miles Bader <miles@gnu.org>
25576
25577 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
25578 BG is a pointer to a structure, not a structure.
25579 (gif_format, png_format): Add missing commas.
25580
25581 2001-10-24 Richard M. Stallman <rms@gnu.org>
25582
25583 * xfaces.c (Fface_attributes_as_vector): New function.
25584 (syms_of_xfaces): Defsubr it.
25585
25586 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25587
25588 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
25589 variable `area'.
25590
25591 2001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25592
25593 * search.c (scan_newline): Remove unused variable `selective_display'.
25594
25595 2001-10-25 Miles Bader <miles@gnu.org>
25596
25597 * dispextern.h (struct image): Add `background',
25598 `background_valid', and `background_transparent' fields.
25599 (image_background, image_background_transparent): New declarations.
25600 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
25601 * xfns.c (image_background, image_background_transparent)
25602 (four_corners_best): New functions.
25603 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
25604 (gs_format): Add `:background' entry.
25605 (lookup_image): Set IMG's background color if specified.
25606 (pbm_load, xbm_load_image, png_load): Set IMG's background field
25607 when appropriate.
25608 (x_clear_image_1): Reset `background_valid' and
25609 `background_transparent_valid' fields.
25610 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
25611 calculating it here. Set IMG's background_transparent field.
25612 (enum xpm_keyword_index): Add XPM_BACKGROUND.
25613 (enum png_keyword_index): Add PNG_BACKGROUND.
25614 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
25615 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
25616 (enum gif_keyword_index): Add GIF_BACKGROUND.
25617 (enum gs_keyword_index): Add GS_BACKGROUND.
25618 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
25619 Pre-calculate image background color where necessary.
25620 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
25621 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
25622 color to use for image glyph reliefs.
25623
25624 2001-10-24 Gerd Moellmann <gerd@gnu.org>
25625
25626 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
25627 in full-width rows.
25628
25629 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
25630 Fix clearing of area not covered by scroll bar.
25631
25632 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25633
25634 * xterm.c (x_insert_glyphs): Remove unused variables `real_end'
25635 and `real_start'.
25636 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
25637 (glyph_rect): Remove unused variable `area'.
25638
25639 2001-10-24 Gerd Moellmann <gerd@gnu.org>
25640
25641 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
25642
25643 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
25644 (row_containing_pos): Take additional argument DY.
25645 Treat rows ending in middle of char differently.
25646 (display_line): Handle tabs on window systems differently.
25647
25648 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
25649 with additional argument.
25650
25651 * dispextern.h (row_containing_pos): Adjust prototype.
25652
25653 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
25654 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
25655 (try_window_id, try_window_reusing_current_matrix)
25656 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
25657 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
25658
25659 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25660
25661 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
25662 gnuemacs).
25663 (HAVE_BOXES): Fix typo in comment.
25664 (push_menu_pane): Fix typo in comment.
25665
25666 * xdisp.c (display_prop_string_p): Remove unused local declaration
25667 of `Qwhen'.
25668 (single_display_prop_string_p): Remove unused local declarations
25669 of `Qwhen' and `Qmargin'.
25670 (string_buffer_position): Remove unused variable `around'.
25671 (store_frame_title): Remove unused variable `width'.
25672
25673 * window.c: Don't define max.
25674 (coordinates_in_window): Remove unused variable `uy'.
25675
25676 * widget.c: Don't define max.
25677
25678 * process.c: Don't define max.
25679 (create_process): Remove unused variable `buffer'.
25680
25681 2001-10-23 Gerd Moellmann <gerd@gnu.org>
25682
25683 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
25684
25685 2001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
25686
25687 * xfaces.c (Finternal_set_lisp_face_attribute)
25688 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
25689 frame is on a windowed display.
25690
25691 2001-10-23 Gerd Moellmann <gerd@gnu.org>
25692
25693 * dispnew.c (sync_window_with_frame_matrix_rows):
25694 Fix handling of windows which aren't full-width, fix handling
25695 of marginal areas.
25696
25697 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
25698
25699 2001-10-23 Andreas Schwab <schwab@suse.de>
25700
25701 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
25702 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
25703
25704 2001-10-23 Gerd Moellmann <gerd@gnu.org>
25705
25706 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
25707 REAL_END. Notice if cursor gets overwritten.
25708 (notice_overwritten_cursor): Take X positions as parameters.
25709 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
25710 around call to x_draw_glyphs.
25711
25712 2001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25713
25714 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
25715 instead of C) and usage.
25716
25717 * editfns.c (char-to-string): Fix argument names (use CHAR instead
25718 of C) and usage.
25719
25720 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
25721 `left', `max_width' and `max_height'.
25722
25723 2001-10-23 Gerd Moellmann <gerd@gnu.org>
25724
25725 * xdisp.c (display_line): For a tab continued to the next line,
25726 set row's ends_in_middle_of_char_p.
25727
25728 2001-10-22 Gerd Moellmann <gerd@gnu.org>
25729
25730 * xdisp.c (display_line): Fix computation of continuation lines
25731 width for TABs.
25732
25733 2001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25734
25735 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
25736 `Qlaplace'.
25737
25738 * fileio.c: Remove unused code.
25739
25740 2001-10-22 Miles Bader <miles@gnu.org>
25741
25742 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
25743 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
25744 Remove `DOC_STRINGS_IN_COMMENTS' cases.
25745
25746 2001-10-21 Jason Rumney <jasonr@gnu.org>
25747
25748 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
25749
25750 2001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
25751
25752 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
25753 (Finsert_string): Avoid the multi-line string literals warning.
25754
25755 2001-10-22 Miles Bader <miles@gnu.org>
25756
25757 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
25758 (Fdocumentation): Don't use it.
25759 (syms_of_doc): Don't initialize it.
25760
25761 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
25762 * print.c (Fwith_output_to_temp_buffer): Likewise.
25763 * window.c (Fsave_window_excursion): Likewise.
25764 * editfns.c (Fsave_excursion, Fsave_current_buffer)
25765 (Fsave_restriction): Likewise.
25766 * eval.c (Frun_hooks, Frun_hook_with_args)
25767 (Frun_hook_with_args_until_failure)
25768 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
25769 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
25770 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
25771 (Funwind_protect, Fcondition_case): Likewise.
25772 * coding.c (Ffind_operation_coding_system): Likewise.
25773 * keyboard.c (Ftrack_mouse): Likewise.
25774
25775 2001-10-21 Miles Bader <miles@gnu.org>
25776
25777 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
25778 (Fmake_hash_table): Add usage: string to doc string.
25779 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
25780 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
25781 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
25782 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
25783 (Fml_prefix_argument_loop): Likewise.
25784
25785 2001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25786
25787 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
25788
25789 * sysdep.c (init_sys_modes): Change doc-string comments to `new
25790 style' [w/`doc:' keyword].
25791
25792 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
25793 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
25794 comments to `new style' [w/`doc:' keyword].
25795
25796 2001-10-21 Jason Rumney <jasonr@gnu.org>
25797
25798 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
25799
25800 * w32term.c (remember_mouse_glyph): New function.
25801 (w32_mouse_position): Use it.
25802 (note_mouse_movement): If the mouse moved off the glyph, remember
25803 its new position.
25804
25805 * w32term.h (struct w32_output): Correct spelling of x_compatible.
25806 (w32_display_info): Add mouse_face_overlay.
25807
25808 * w32term.c (notice_overwritten_cursor): Renamed from
25809 note_overwritten_text_cursor. Rewritten to take glyph widths into
25810 account.
25811 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
25812 (fast_find_string_pos): New function.
25813 (fast_find_position): Return the correct vpos. Add parameter
25814 STOP. In the final row, stop before glyphs having STOP as object.
25815 Don't consider glyphs that are not from a buffer.
25816 (fast_find_position) [0]: Add a presumably more correct version
25817 for after 21.1.
25818 (expose_window_tree, expose_frame): Don't compute intersections here.
25819 (expose_window): Do it here instead.
25820 (expose_window_tree, expose_window, expose_line): Return 1 when
25821 overwriting mouse-face.
25822 (expose_window): If W is the window currently being updated, mark
25823 the frame garbaged.
25824 (expose_frame): If mouse-face was overwritten, redo it.
25825 (x_use_underline_position_properties): New variable.
25826 (syms_of_xterm): DEFVAR_BOOL it.
25827 (x_draw_glyph_string): Add comment to use it in future.
25828 (x_draw_glyph_string): Restore clipping after drawing box.
25829 Fix a computation of the underline position.
25830 (w32_get_glyph_string_clip_rect): Minor cleanup.
25831 (x_fill_stretch_glyph_string): Remove an assertion.
25832 (x_produce_glyphs): Don't convert multibyte characters
25833 to unibyte characters in unibyte buffers.
25834 (cursor_in_mouse_face_p): New function.
25835 (x_draw_stretch_glyph_string): Use it to choose a different GC
25836 when drawing a cursor within highlighted text. Don't draw
25837 background again if it has already been drawn.
25838 (x_draw_glyph_string_box): Don't draw a full-width
25839 box just because the glyph row's full_width_p flag is set.
25840 (x_draw_glyphs): Fix computation of rightmost x for
25841 full-width rows.
25842 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
25843 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
25844 change bottom shadow accordingly. Some cleanup.
25845 (x_update_window_end): Handle overwritten mouse face
25846 also for tool bar windows.
25847 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
25848 DRAW is DRAW_IMAGE_RAISED.
25849 (clear_mouse_face): Return 1 if text with mouse face was
25850 actually redrawn. Make the function static.
25851 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
25852 optimize away highlighting if we pass over that same overlay again.
25853 (note_mouse_highlight): Call mouse_face_overlay_overlaps
25854 to detect a case where we have to highlight a different region
25855 despite not having left the currently highlighted region.
25856 Set mouse_face_overlay in the x_display_info. Avoid changing the
25857 mouse pointer shape when show_mouse_face has already done it, or
25858 there is no need. Handle mouse-face and help-echo in strings.
25859 (glyph_rect): New function.
25860 (w32_mouse_position): Use it to raise the threshold for mouse
25861 movement event generation.
25862 (w32_initialize_display_info): Initialize the x_display_info's
25863 mouse_face_overlay.
25864 (w32_set_vertical_scroll_bar): Don't clear a zero height
25865 or width area.
25866 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
25867 a widget to zero height.
25868
25869 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
25870 Protect unibyte strings created by replacing their multibyte
25871 equivalents in menu_items.
25872 (w32_menu_show): Don't overwrite an item's name with its key
25873 description in case the description is a multibyte string.
25874 (single_submenu): Some cleanup.
25875
25876 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
25877 (postprocess_image): New function.
25878 (lookup_image): Call it for all image types except PostScript.
25879 (x_kill_gs_process): Call postprocess_image.
25880 (tiff_error_handler, tiff_warning_handler): New functions.
25881 (tiff_load): Install them as handlers.
25882 (x_kill_gs_process): Recognize if someone has cleared the image
25883 cache under us.
25884 (valid_image_p): Protect better against invalid image
25885 specifications. Previous code could signal an error.
25886 (Fx_hide_tip, Fshow_tip): Doc fix.
25887 (Fv_max_tooltip_size): New variable.
25888 (syns_of_xfns): DEFVAR_LISP it.
25889 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
25890 window buffer to *tip* right after creating the frame. Set frame's
25891 window_width. Use a maximum tooltip size specified by
25892 Vx_max_tooltip_size, if that has valid contents.
25893 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
25894 Make sure the tooltip is completely visible.
25895 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
25896 (Fx_create_frame): Adjust the frame's height for presence
25897 of the tool bar before calling x_figure_window_size.
25898 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
25899 when the window gets smaller.
25900 (x_set_foreground_color): Set frame's cursor_pixel.
25901 (x_set_foreground_color, x_set_background_color): Cleaned up.
25902 (x_set_font): Handle case of x_new_fontset returning the same name
25903 as before, although there was a change in fontsets.
25904
25905 2001-10-21 Miles Bader <miles@gnu.org>
25906
25907 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
25908 (Flogxor): Add usage: string to doc string.
25909 * charset.c (Fstring): Likewise.
25910 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
25911 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
25912
25913 2001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
25914
25915 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
25916
25917 * alloc.c: Reindent DEFUNs with doc: keywords.
25918
25919 * abbrev.c (Finsert_abbrev_table_description): Reindent.
25920
25921 * frame.c: Change doc-string comments to `new style' [w/`doc:'
25922 keyword].
25923
25924 See ChangeLog.9 for earlier changes.
25925
25926 ;; Local Variables:
25927 ;; coding: iso-2022-7bit
25928 ;; End:
25929
25930 Copyright (C) 2001, 2002, 2003, 2004, 2005,
25931 2006 Free Software Foundation, Inc.
25932 Copying and distribution of this file, with or without modification,
25933 are permitted provided the copyright notice and this notice are preserved.
25934
25935 ;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4