]> code.delx.au - gnu-emacs/blob - src/ChangeLog
(fontset_set): Fix previous change.
[gnu-emacs] / src / ChangeLog
1 2005-04-25 Kenichi Handa <handa@m17n.org>
2
3 * fontset.c (fontset_set): Fix previous change.
4
5 2005-04-24 Richard M. Stallman <rms@gnu.org>
6
7 * indent.c (Fvertical_motion): Bind fontification-functions to nil.
8
9 2005-04-24 Eli Zaretskii <eliz@gnu.org>
10
11 * regex.c (re_search_2, re_match_2_internal): Convert second arg
12 of RE_TRANSLATE to int, to shut up GCC warnings.
13
14 * fileio.c (Fcopy_file): Doc fix.
15 [MSDOS]: Fix call to emacs_open: buffer_file_type not defined and
16 not needed.
17
18 2005-04-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19
20 * Makefile.in [HAVE_CARBON] (MAC_OBJ): Add macselect.o.
21 (SOME_MACHINE_OBJECTS): Likewise.
22 (mac.o): Depend on ccl.h.
23 (macselect.o): New target.
24
25 * emacs.c (main) [MAC_OS8 || MAC_OSX && HAVE_CARBON]: Call
26 syms_of_macselect.
27
28 * frame.c (Fdelete_frame) [MAC_OS]: Call x_clear_frame_selections.
29
30 * mac.c [!TARGET_API_MAC_CARBON]: Don't include charset.h or
31 coding.h.
32 (QCLIPBOARD): Remove variable.
33 (syms_of_mac): Don't initialize it.
34 (Fmac_paste_function, Fmac_cut_function, Fx_selection_exists_p):
35 Remove functions.
36 (syms_of_mac): Don't defsubr them.
37 [TARGET_API_MAC_CARBON] (Qmime_charset, QNFD, QNFKD, QNFC, QNFKC)
38 (QHFS_plus_D, QHFS_plus_C): New variables.
39 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
40 [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp)
41 (cfstring_create_normalized): New functions.
42 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Likewise.
43 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
44
45 * macterm.c (handling_window_update, terminate_flag): Remove
46 variables.
47 (do_window_update, do_ae_quit_application, XTread_socket): Don't
48 use them.
49 (WNE_SLEEP_AT_SUSPEND, WNE_SLEEP_AT_RESUME): Don't define.
50 [USE_CARBON_EVENTS && MAC_OSX] (mac_handle_service_event)
51 (init_service_handler): Move to macselect.c. Remove declarations.
52 [USE_CARBON_EVENTS && MAC_OSX] (init_service_handler): Add extern.
53 (Qapplication, Qabout): New variables.
54 (syms_of_mac): Initialize them.
55 [USE_CARBON_EVENTS && MAC_OSX] (Qpreferences, Qservices, Qpaste)
56 (Qperform): New variables.
57 (syms_of_mac) [USE_CARBON_EVENTS && MAC_OSX]: Initialize them.
58 (do_get_menus) [!TARGET_API_MAC_CARBON]: Don't call AppendResMenu.
59 (do_menu_choice): Unhighlight menu bar also when menu_id is 0.
60 (mac_store_application_menu_event, init_menu_bar): New functions.
61 [USE_CARBON_EVENTS] (mac_handle_command_event)
62 (init_command_handler): New functions.
63 (mac_handle_window_event): Return noErr on window update event.
64 (do_ae_quit_application): Call mac_store_application_menu_event.
65 (mac_initialize) [USE_CARBON_EVENTS]: Call init_command_handler
66 and init_menu_bar.
67
68 * macterm.h (x_clear_frame_selections): Add extern.
69
70 * macselect.c: New file for selection processing on Mac OS.
71
72 2005-04-23 Richard M. Stallman <rms@gnu.org>
73
74 * fileio.c (Fcopy_file): New arg MUSTBENEW.
75 (Frename_file): Pass new arg to Fcopy_file.
76
77 * window.c (window_size_fixed): Variable deleted.
78 (syms_of_window): Initialize window-size-fixed to nil.
79 But don't DEFVAR window_size_fixed.
80
81 2005-04-23 Andreas Schwab <schwab@suse.de>
82
83 * m/macppc.h (LD_SWITCH_MACHINE) [LINUX]: Don't define.
84 (START_FILES, LIB_STANDARD) [LINUX && _ARCH_PPC64]: Override to
85 use lib64 instead of lib.
86 (_LP64) [_ARCH_PPC64]: Define if not defined.
87
88 2005-04-23 David Hunter <hunterd42@comcast.net> (tiny change)
89
90 * s/ms-w32.h (HAVE_PWD_H): Define.
91
92 2005-04-22 Kenichi Handa <handa@m17n.org>
93
94 * fns.c (copy_sub_char_table): Explicitly copy the default value
95 of the sub-chartable.
96
97 * fontset.c (fontset_set): When a sub-chartable is created,
98 explicitly sets the defalt value.
99
100 2005-04-22 Kim F. Storm <storm@cua.dk>
101
102 * fns.c (Fplist_get): Replace by Fsafe_plist_get.
103 (Fsafe_plist_get): Rename to Fplist_get.
104 (Fsafe_get): Remove, as Fget now uses safe Fplist_get.
105 (defsubr): Remove defsubr for Fsafe_plist_get and Fsafe_get.
106
107 * lisp.h (Fsafe_plist_get, Fsafe_get): Remove EXFUN.
108
109 * xdisp.c (store_mode_line_string, produce_stretch_glyph)
110 (note_mode_line_or_margin_highlight, note_mouse_highlight):
111 Use Fplist_get instead of Fsafe_plist_get.
112
113 * xfaces.c (resolve_face_name): Use Fget instead of Fsafe_get.
114
115 2005-04-21 Miles Bader <miles@gnu.org>
116
117 * xdisp.c (dump_glyph_row): Don't display overlay_arrow_p field.
118
119 2005-04-20 Thien-Thi Nguyen <ttn@gnu.org>
120
121 * sysdep.c: Remove reference to defunct vms-pwd.h.
122 * dired.c: Likewise. Also, for pwd.h, use HAVE_PWD_H, not !VMS.
123 * editfns.c, fileio.c, filelock.c, sysdep.c, xrdb.c: Likewise.
124
125 * config.in: Regenerate.
126
127 2005-04-20 Kenichi Handa <handa@m17n.org>
128
129 * lisp.h (CHAR_TABLE_DEFAULT_SLOT_ASCII): New macro.
130 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_CONTROL): New macro.
131 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_GRAPHIC): New macro.
132
133 * alloc.c (make_sub_char_table): Argument changed to initial
134 value of the slots.
135
136 * data.c (Faref): Handle special slots used as default values of
137 ascii, eight-bit-control, eight-bit-control. Don't ignore a
138 default value set for a group of characters.
139 (Faset): Signal an error if IDXVAL is not a valid character code.
140 Make a sub-chartable with correct initial value.
141
142 * fns.c (Fset_char_table_range): Don't set slots used as default
143 values for ascii, eight-bit-control, eight-bit-graphic. Don't
144 call Faref with charset-id.
145 (Fset_char_table_default): Document how to treat normal character
146 argument. Handle special slots used as default values of ascii,
147 eight-bit-control, eight-bit-control. Make a sub chartable if
148 necessary.
149
150 2005-04-20 Kenichi Handa <handa@m17n.org>
151
152 * search.c (boyer_moore): Fix previous change.
153
154 2005-04-19 Kim F. Storm <storm@cua.dk>
155
156 * xdisp.c (setup_for_ellipsis): Reset saved_face_id to use default
157 face unless last visible char and first invisible char have the
158 same face. Also use default face if saved_face_id is undefined.
159
160 2005-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
161
162 * macgui.h (MacFontStruct): Remove member `fontname'. Add member
163 `full_name'.
164 [TARGET_API_MAC_CARBON] (MacFontStruct): Use type int for
165 mac_scriptcode member.
166
167 * macterm.c (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): Remove variables.
168 (syms_of_mac): Don't initialize them.
169 (Vmac_charset_info_alist): New variable.
170 (syms_of_mac): Defvar it.
171 (create_text_encoding_info_alist): New function.
172 (decode_mac_font_name, mac_to_x_fontname)
173 (x_font_name_to_mac_font_name, init_font_name_table): Don't hard
174 code the correspondence among XLFD charsets, Mac script codes, and
175 Emacs coding systems. Use Vmac_charset_info_alist and result of
176 create_text_encoding_info_alist instead.
177 (init_font_name_table) [TARGET_API_MAC_CARBON]: Use Font Manager
178 routines also on Mac OS Classic.
179 (init_font_name_table) [!TARGET_API_MAC_CARBON]: Use
180 add_font_name_table_entry.
181 (mac_do_list_fonts): Regard 0 in XLFD scaleble fields as
182 specified. Derive unspecified scalable fields from specified one.
183 (x_list_fonts): Consider Valternate_fontname_alist.
184 (kDefaultFontSize): Change value from 9 to 12.
185 (XLoadQueryFont): Get decoded font family, font face, and charset
186 from x_font_name_to_mac_font_name. Set full name of loaded font.
187 (mac_unload_font): Free `full_name' member.
188 (x_load_font): Don't try XLoadQueryFont if x_list_fonts returns
189 NULL. Copy full_name member of struct MacFontStruct to that of
190 struct font_info.
191
192 2005-04-19 Kim F. Storm <storm@cua.dk>
193
194 * xdisp.c (handle_stop): Set saved_face_id to current face if
195 selective_display_ellipsis_p so ellipsis will be shown in same
196 face as preceding text.
197 (setup_for_ellipsis): Don't set saved_face_id here.
198 (next_element_from_display_vector): Default to saved_face_id.
199
200 * fns.c (Fsafe_get): New function.
201 (syms_of_fns): Defsubr it.
202
203 * lisp.h (Fsafe_get): EXFUN it.
204
205 * xfaces.c (resolve_face_name): Use Fsafe_get to avoid redisplay
206 loops in case of bad face property lists. Limit number of face
207 alias lookups to 10 (in case of face alias loops).
208
209 2005-04-18 Kim F. Storm <storm@cua.dk>
210
211 * dispextern.h (struct glyph_row): New member overlay_arrow_bitmap.
212 It replaces the corresponding member from struct window, as a
213 window may now show multiple overlay arrows.
214 Remove member overlay_arrow_p, superseeded by overlay_arrow_bitmap.
215
216 * dispnew.c (row_equal_p, update_window_line, scrolling_window):
217 Compare overlay_arrow_bitmap than overlay_arrow_p members.
218
219 * fringe.c (draw_fringe_bitmap): Use overlay_arrow_bitmap from row
220 rather than from window.
221 (update_window_fringes): Compare overlay_arrow_bitmap rather than
222 overlay_arrow_p members.
223 (Ffringe_bitmaps_at_pos): Return fringe overlay_arrow_bitmap name
224 if not default.
225
226 * window.h (struct window): Remove member overlay_arrow_bitmap.
227
228 * window.c (make_window): Don't initialize overlay_arrow_bitmap.
229
230 * xdisp.c (overlay_arrow_string_or_property): Remove PBITMAP arg.
231 Calls changed. Don't check for overlay-arrow-bitmap property here.
232 (overlay_arrow_at_row): Remove PBITMAP arg. Instead, if left
233 fringe is present, return Lisp integer for bitmap (or -1 for default).
234 Fix value of overlay-arrow-bitmap property to be a symbol, use
235 lookup_fringe_bitmap to parse it.
236 (display_line): Change call to overlay_arrow_at_row. Store integer
237 return value as overlay bitmap in row rather than window.
238 Only show overlay arrow if row displays text, or if no other overlay
239 arrow is seen in window (if overlay marker is at point-max).
240
241 2005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
242
243 * xfaces.c (realize_x_face) [!HAVE_WINDOW_SYSTEM]: Return NULL.
244
245 2005-04-18 Lute Kamstra <lute@gnu.org>
246
247 * lread.c (Vloads_in_progress): Static.
248 * fns.c (Vloads_in_progress): Remove extern.
249 (load_in_progress): Add extern.
250 (Frequire): Use load_in_progress instead of Vloads_in_progress.
251
252 2005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
253
254 * xmenu.c (Fx_popup_menu): Initialize error_name to NULL.
255
256 2005-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
257
258 * macterm.c (XTread_socket): Don't beep on keyboard input even if
259 no frame is visible.
260
261 2005-04-16 Dan Nicolaescu <dann@ics.uci.edu>
262
263 * term.c (struct keys): Add support for shifted keys.
264
265 2005-04-16 Richard M. Stallman <rms@gnu.org>
266
267 * xdisp.c (with_echo_area_buffer): Delete WHICH < 0 case.
268 (set_message): Call with_echo_area_buffer with WHICH = 0.
269 (set_message_1): Erase the echo area buffer first thing.
270 (echo_area_display): Don't clear echo_message_buffer.
271
272 2005-04-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
273
274 * Makefile.in (mac.o): Depend on charset.h and coding.h.
275
276 * mac.c: Include charset.h and coding.h.
277 [TARGET_API_MAC_CARBON] (Qutf_8): Remove extern.
278 [TARGET_API_MAC_CARBON] (cfstring_create_with_string): New
279 function.
280 [TARGET_API_MAC_CARBON] (Fmac_get_preference): Use it.
281
282 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
283
284 * image.c [MAC_OSX] (image_load_quartz2d): Likewise.
285
286 * macterm.c (x_autoselect_window_p): Remove variable.
287 (last_window): New variable.
288 (XTreassert_line_highlight, x_change_line_highlight): Remove
289 declarations.
290 (mac_focus_changed, x_detect_focus_change): New functions and
291 declarations.
292 (XTextExtents16, front_emacs_window): Remove function.
293 (mac_focus_frame): New function.
294 (XTmouse_position, do_menu_choice, do_zoom_window, XTread_socket)
295 (mac_check_for_quit_char): Use it instead of front_emacs_window.
296 (x_scroll_bar_report_motion): Obtain window from control owner.
297 (x_make_frame_invisible): Set window manager size hint.
298 (do_mouse_moved): Remove function.
299 (XTread_socket): Move its contents here. Generate select-window
300 event on mouse movement if needed. Use x_detect_focus_change on
301 activate/deactivate events. Don't deiconify frame or invalidate
302 window rectangle when dnd items are dropped. Don't
303 activate/deactivate root control.
304 (frame_highlight, frame_unhighlight): Activate/deactivate root
305 control here.
306 (syms_of_macterm): Delete DEFVAR_BOOL for x_autoselect_window_p.
307
308 * macterm.h (cfstring_create_with_string) [TARGET_API_MAC_CARBON]:
309 New extern.
310
311 2005-04-15 Luc Teirlinck <teirllm@auburn.edu>
312
313 * Makefile.in: Define new macro TOOLTIP_SUPPORT.
314 (lisp): Use it.
315 (SOME_MACHINE_LISP): Add tooltip.
316
317 2005-04-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
318
319 * mac.c [!TARGET_API_MAC_CARBON]: Include MacLocales.h. Don't
320 include TextEncodingConverter.h.
321 (mac_system_script_code, Vmac_system_locale): New variables.
322 (syms_of_mac): Defvar them.
323 (mac_get_system_locale): New function.
324
325 * macfns.c (x_set_name, x_set_title) [!TARGET_API_MAC_CARBON]: Use
326 ENCODE_SYSTEM to encode title bar string.
327 (x_create_tip_frame): Apply 2005-03-18 change for xfns.c.
328 (Fx_file_dialog) [TARGET_API_MAC_CARBON && !MAC_OSX]: Use
329 CFStringGetSystemEncoding to get system default string encoding.
330
331 * macterm.c [!TARGET_API_MAC_CARBON]: Don't include
332 TextEncodingConverter.h.
333
334 2005-04-13 Steven Tamm <steventamm@mac.com>
335
336 * macterm.c (syms_of_macterm): Remove redundant definition of
337 mac-pass-control-to-system.
338
339 2005-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
340
341 * window.c (Fset_window_configuration): Be careful when you choose
342 among several possible points for the new_current_buffer.
343
344 2005-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
345
346 * keyboard.c (poll_for_input) [SYNC_INPUT]: Don't call
347 poll_for_input_1. Set interrupt_input_pending to 1 instead.
348 (Qlanguage_change) [MAC_OS]: New variable.
349 (syms_of_keyboard) [MAC_OS]: Intern and staticpro it.
350 (kbd_buffer_get_event) [MAC_OS]: Make event for LANGUAGE_CHANGE_EVENT.
351
352 * macterm.c (mac_keyboard_text_encoding)
353 (current_mac_keyboard_text_encoding): Remove variables.
354 (XTread_socket): Store language-change event if keyboard script change
355 is detected. Don't convert input to `mac_keyboard_text_encoding'.
356 (syms_of_macterm): Delete DEFVAR_INT for mac-keyboard-text-encoding.
357
358 * termhooks.h (enum event_kind) [MAC_OS]: Add LANGUAGE_CHANGE_EVENT.
359
360 2005-04-10 Richard M. Stallman <rms@gnu.org>
361
362 * emacs.c (standard_args): Rename --bare-bones to --quick.
363 Add -D aka --basic-display.
364
365 * buffer.c (Fmake_indirect_buffer): Clear out some local variables.
366
367 2005-04-09 Richard M. Stallman <rms@gnu.org>
368
369 * keymap.c (where_is_internal): Convert a string used as event type
370 into "(any string)".
371
372 * lread.c (Vloads_in_progress): Not static.
373 * fns.c (Vloads_in_progress): Add extern.
374 (Frequire): Don't do LOADHIST_ATTACH if Vloads_in_progress is nil.
375
376 2005-04-09 Thien-Thi Nguyen <ttn@surf.glug.org>
377
378 * dispnew.c (mirror_line_dance): Avoid crash if W2 is null.
379
380 2005-04-09 Lute Kamstra <lute@gnu.org>
381
382 * print.c (PRINTPREPARE): Check if the marker PRINTCHARFUN is
383 within the accessible part of the buffer.
384
385 2005-04-09 Kim F. Storm <storm@cua.dk>
386
387 * lread.c (readevalloop): Add args START and END as region in
388 current buffer to read. Callers changed.
389 When specified, narrow to this region only when reading,
390 not during eval. Track next point to read from during eval.
391 Also restore point to "real" buffer position before eval.
392 (Feval_region): Don't save excursion and restriction here, and
393 don't narrow to region. Just pass region to readevalloop.
394 Note: Point is now preserved even when PRINTFLAG is nil.
395
396 2005-04-08 Kim F. Storm <storm@cua.dk>
397
398 * xdisp.c (syms_of_xdisp): Init overlay-arrow-string to "=>".
399
400 2005-04-06 Kim F. Storm <storm@cua.dk>
401
402 * emacs.c (standard_args): Add -Q, --bare-bones, -bare-bones.
403
404 2005-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
405
406 * mac.c (cfdate_to_lisp): Add `const' for variable `epoch_gdate'.
407 (Fmac_get_preference): Doc fix.
408
409 * macfns.c (Fx_create_frame, x_create_tip_frame):
410 Add "fontset-mac" to fallback font/fontsets.
411
412 2005-04-04 Kim F. Storm <storm@cua.dk>
413
414 * alloc.c (Fgarbage_collect): Call CHECK_CONS_LIST before and after gc.
415
416 * eval.c (Ffuncall): Always call CHECK_CONS_LIST on entry.
417 Call it again after autoload.
418
419 2005-04-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
420
421 * alloc.c (allocate_string_data): Call BLOCK_INPUT before calling
422 mallopt.
423
424 * ralloc.c (r_alloc_init): Ditto.
425
426 2005-04-01 Kenichi Handa <handa@m17n.org>
427
428 * lisp.h (Vascii_upcase_table, Vascii_canon_table)
429 (Vascii_eqv_table): Extern them.
430
431 * casetab.c (set_case_table): If standard is nonzero, setup
432 Vascii_upcase_table, Vascii_canon_table, and Vascii_eqv_table.
433
434 * search.c (looking_at_1): Use current_buffer->case_canon_table,
435 not DOWNCASE_TABLE.
436 (string_match_1): Likewise.
437 (fast_c_string_match_ignore_case): Use Vascii_canon_table, not
438 Vascii_downcase_table.
439 (fast_string_match_ignore_case): Likewise.
440 (search_buffer): Fix checking of boyer-moore usability.
441 (boyer_moore): Calculate translate_prev_byte1/2/3 in advance.
442 No need of tranlating characters in PAT. Fix calculation of
443 simple_translate.
444
445 2005-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
446
447 * xterm.c [HAVE_XAW3D]: Include ThreeD.h for XtNbeNiceToColormap.
448 (x_create_toolkit_scroll_bar): Test XtNbeNiceToColormap before using it.
449 Use XtNtopShadowPixel and XtNbottomShadowPixel.
450 (x_set_toolkit_scroll_bar_thumb): Remove ugly old hack that didn't
451 really work and that breaks with some versions of Xaw3d.
452
453 2005-03-31 Kenichi Handa <handa@m17n.org>
454
455 * coding.c (syms_of_coding): Fix previous change.
456
457 2005-03-30 Stefan Monnier <monnier@iro.umontreal.ca>
458
459 * fileio.c (search_embedded_absfilename): Fix last change.
460
461 2005-03-25 Kenichi Handa <handa@m17n.org>
462
463 * coding.c (syms_of_coding): Suggest to use set-coding-category in
464 the docstring of coding-category-list.
465
466 2005-03-31 Kim F. Storm <storm@cua.dk>
467
468 * keyboard.c (Qmouse_fixup_help_message): New var.
469 (syms_of_keyboard): Intern and staticpro it.
470 (show_help_echo): Apply mouse-fixup-help-message to help string.
471
472 2005-03-30 Kim F. Storm <storm@cua.dk>
473
474 * xdisp.c (display_line): Allow multiple overlay arrows in window.
475
476 2005-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
477
478 * fileio.c (Fexpand_file_name): Use IS_DEVICE_SEP.
479 (file_name_absolute_p): New fun, extracted from Ffile_name_absolute_p.
480 (Ffile_name_absolute_p): Use it.
481 (search_embedded_absfilename): New fun, extracted from
482 Fsubstitute_in_file_name. Use file_name_absolute_p.
483 Free the pw data after use.
484 (Fsubstitute_in_file_name): Use it.
485 After cutting a prefix, re-check file-name-handler.
486
487 2005-03-26 Lennart Borgman <lennart.borgman.073@student.lu.se>
488
489 * w32term.h (x_output): Add focus_state.
490
491 * w32term.c (x_focus_changed, w32_detect_focus_change): New functions.
492 (w32_read_socket) [WM_SETFOCUS]: Call w32_detect_focus_change.
493
494 2005-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
495
496 * minibuf.c (Fminibuffer_complete_and_exit, Fself_insert_and_exit):
497 Use Fexit_minibuffer.
498 (Fexit_minibuffer): Mark it as no-return, deactivate the mark.
499
500 2005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
501
502 * dired.c (Ffile_attributes): Add a missing gcpro.
503
504 * alloc.c (make_number): The arg can be bigger than `int'.
505 * lisp.h (make_number): Make prototype more precise.
506
507 * process.c, dired.c (Vfile_name_coding_system)
508 (Vdefault_file_name_coding_system):
509 * callproc.c (Vdoc_file_name, Vfile_name_coding_system)
510 (Vdefault_file_name_coding_system): Remove unused declarations.
511
512 2005-03-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
513
514 * xmenu.c (create_and_show_popup_menu): Just remove menu and return
515 if it failed to pop up (Gnome "show pointer on ctrl" option makes
516 menus fail to pop up).
517
518 2005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
519
520 * xdisp.c (get_next_display_element): Also use `\ ' & `\-' for latin-9.
521 Just prepend a backslash without replacing the NBSP by an SPC.
522
523 2005-03-22 Kim F. Storm <storm@cua.dk>
524
525 * xfaces.c (lookup_derived_face): Add arg SIGNAL_P.
526 * dispextern.h (lookup_derived_face): Fix prototype.
527 * msdos.c (XMenuActivate): Fix call to lookup_derived_face.
528
529 * xdisp.c (handle_single_display_spec): Derive left-fringe and
530 right-fringe face from fringe face.
531
532 * fringe.c (draw_fringe_bitmap_1, Fset_fringe_bitmap_face):
533 Derive face from fringe face.
534
535 2005-03-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
536
537 * xrdb.c (x_load_resources): Undo previous change (2005-03-18).
538
539 2005-03-22 David Kastrup <dak@gnu.org>
540
541 * textprop.c (Fnext_char_property_change)
542 (Fprevious_char_property_change): Allow marker as limit.
543 (Fnext_single_char_property_change)
544 (Fprevious_single_char_property_change): Check that limit is a
545 number in strings.
546 (Fnext_single_char_property_change): Coerce position to integer.
547 (Fprevious_single_char_property_change): Same here.
548
549 2005-03-21 Thien-Thi Nguyen <ttn@gnu.org>
550
551 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Define if undefined.
552
553 2005-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
554
555 * frame.c (Fignore_event): Remove.
556 (syms_of_frame): Don't defsubr it.
557
558 * keyboard.c (keys_of_keyboard): Just use `ignore' instead of the
559 redundant `ignore-event'.
560
561 2005-03-19 Eli Zaretskii <eliz@gnu.org>
562
563 * unexec.c (write_segment, unexec): Move these functions to avoid
564 forward references (which cause errors with "gcc -gcoff").
565
566 2005-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
567
568 * xfns.c (x_create_tip_frame): Remove setting of Vx_resource_name so
569 that it doesn't become "tooltip". The specbind is enough.
570
571 * xrdb.c (x_load_resources): Use different char *helv when I18N
572 is present.
573
574 2005-03-17 Kenichi Handa <handa@m17n.org>
575
576 * coding.c (syms_of_coding): Docstring of coding-category-list fixed.
577
578 2005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
579
580 * xfaces.c (x_update_menu_appearance) [HAVE_X_I18N]:
581 Use xic_create_fontsetname even for non-Motif menus.
582 Don't forget to free the fontsetname.
583
584 * xfns.c (xic_create_fontsetname): Add a final catch-all font pattern.
585
586 2005-03-17 Richard M. Stallman <rms@gnu.org>
587
588 * dispnew.c (mirror_line_dance): Set W2 according to FRAME_FROM.
589
590 * fileio.c (Fcopy_file, Frename_file, Fadd_name_to_file)
591 (Fmake_symbolic_link): Use G to read the new file name.
592
593 * callint.c (Finteractive): Document G option.
594 (Fcall_interactively): Implement G option.
595
596 * buffer.c (buffer_lisp_local_variables): New function,
597 broken out from Fbuffer_local_variables.
598 (clone_per_buffer_values): Use buffer_lisp_local_variables.
599
600 2005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
601
602 * xfns.c (xic_create_fontsetname): Add `motif' argument.
603 Always return a freshly allocated string.
604 (xic_create_xfontset): Adjust call.
605
606 * xfaces.c (x_update_menu_appearance) [USE_MOTIF]:
607 Use xic_create_fontsetname to create a fontset so utf-8 locales work.
608 (dump_realized_face): Fix warning.
609
610 * emacs.c (Fkill_emacs): YAILOM.
611
612 * frame.c (Fignore_event): Fix ancient obscure C-u handling bug.
613
614 2005-03-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
615
616 * mac.c (HASHKEY_TERMINAL): Remove.
617 (HASHKEY_MAX_NID): New macro.
618 (xrm_q_get_resource_1): Rename from xrm_q_get_resource. Add extra
619 argument.
620 (xrm_q_get_resource): Call xrm_q_get_resource_1 with extra argument.
621 (xrm_create_database, xrm_q_put_resource)
622 (xrm_merge_string_database, xrm_q_get_resource_1)
623 (xrm_q_get_resource): Change resource database representation so
624 that it may not use multiple hash tables for a single database.
625 [TARGET_API_MAC_CARBON] (xrm_cfproperty_list_to_value): YAILOM.
626
627 2005-03-16 Stefan Monnier <monnier@iro.umontreal.ca>
628
629 * xmenu.c (ENCODE_MENU_STRING) [HAVE_X_I18N]: Use ENCODE_SYSTEM.
630
631 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [!WINDOWSNT]: Use the
632 locale-coding-system, as was already done for WINDOWSNT.
633
634 * keyboard.c (read_char): Only do the 7-bit-meta -> 27-bit-meta
635 translation for chars in the 0-255 range.
636
637 2005-03-16 Lute Kamstra <lute@gnu.org>
638
639 * floatfns.c (Ffloor): Doc fix.
640
641 2005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
642
643 * mac.c: Include macterm.h instead of directly including Carbon.h.
644 [TARGET_API_MAC_CARBON] (Qstring, Qnumber, Qboolean, Qdate, Qdata)
645 (Qarray, Qdictionary): New variables.
646 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
647 [TARGET_API_MAC_CARBON] (Qutf_8): Add extern.
648 [TARGET_API_MAC_CARBON] (DECODE_UTF_8): New macro.
649 [TARGET_API_MAC_CARBON] (struct cfdict_context): New struct used
650 in callback for CFDictionaryApplyFunction.
651 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
652 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
653 (cfobject_desc_to_lisp, cfdictionary_add_to_list)
654 (cfdictionary_puthash, cfproperty_list_to_lisp): New functions.
655 [TARGET_API_MAC_CARBON] (Fmac_get_preference): New function.
656 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
657 (P, LOOSE_BINDING, SINGLE_COMPONENT, HASHKEY_TERMINAL): New macro.
658 (skip_white_space, parse_comment, parse_include_file)
659 (parse_binding, parse_component, parse_resource_name, parse_value)
660 (parse_resource_line, xrm_create_database, xrm_q_put_resource)
661 (xrm_merge_string_database, xrm_q_get_resource, xrm_get_resource)
662 (xrm_cfproperty_list_to_value, xrm_get_preference_database):
663 New functions.
664
665 * macfns.c (mac_get_rdb_resource): Remove function.
666 (x_get_string_resource): Use xrm_get_resource.
667
668 * macgui.h (XrmDatabase): Typedef to Lisp_Object.
669
670 * macterm.c (x_list_fonts): FONT-LIST-CACHE is now cadr part of
671 name_list_element.
672 (mac_make_rdb): Create resource database from preferences and
673 argument string.
674 (mac_term_init): Save resource database to cddr part of
675 name_list_element.
676
677 * macterm.h (xrm_merge_string_database, xrm_get_resource)
678 (xrm_get_preference_database): Add externs.
679 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
680 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
681 (cfobject_desc_to_lisp, cfproperty_list_to_lisp): Likewise.
682
683 * process.c (init_process): Change `#ifdef DARWIN' to `#if
684 defined (DARWIN) || defined (MAC_OSX)'
685
686 * s/darwin.h (DARWIN): Don't define.
687
688 2005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
689
690 * macfns.c (Qhyper, Qsuper, Qmeta, Qalt, Qctrl, Qcontrol, Qshift):
691 Remove unused variables.
692 (syms_of_macfns): Don't initialize them. Likewise for
693 Qface_set_after_frame_default. Defvar and initialize
694 Vx_window_horizontal_drag_shape.
695 (x_set_mouse_color): Change mouse pointer shape.
696 (mac_window) [!MAC_OSX]: Create root control.
697 (Fx_create_frame): Remove initializations of mouse pointer shapes.
698 (hourglass_started): New function (from xfns.c).
699 (start_hourglass, cancel_hourglass): Put function body in #ifdef
700 MAC_OSX.
701 (show_hourglass) [TARGET_API_MAC_CARBON]: Create progress
702 indicator for each non-tooltip frame if needed, and show it.
703 (hide_hourglass) [TARGET_API_MAC_CARBON]: Hide progress indicators.
704
705 * macgui.h [!TARGET_API_MAC_CARBON]: Include Appearance.h and
706 Controls.h. Use ThemeCursor instead of CursHandle.
707
708 * macterm.c (activate_scroll_bars, deactivate_scroll_bars):
709 Remove functions and declarations.
710 (mac_set_colors): Take argument for saving background color.
711 All callers changed.
712 (XDrawLine, XClearArea, mac_draw_bitmap, XFillRectangle)
713 (mac_draw_rectangle, mac_draw_string_common): Save and Restore
714 background color.
715 (x_update_end, mac_do_track_drag): Don't reset background color.
716 (mac_define_frame_cursor) [!TARGET_API_MAC_CARBON]:
717 Use SetThemeCursor.
718 (x_set_window_size) [TARGET_API_MAC_CARBON]: Move progress
719 indicator control to the upper-right corner of the window.
720 (arrow_cursor) [!TARGET_API_MAC_CARBON]: Remove variable.
721 (do_init_managers) [!TARGET_API_MAC_CARBON]: Don't initialize it.
722 (do_window_update): Update controls after updating content area.
723 (mac_handle_window_event): Remove unused extern.
724 (XTread_socket): Check both control handle and control part code
725 to determine whether a scroll bar is clicked. Activate/deactivate
726 root control instead of contained scroll bar controls.
727 (make_mac_terminal_frame): Use ThemeCursor constants.
728
729 * macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]:
730 New member hourglass_control.
731 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): New defines.
732 (activate_scroll_bars, deactivate_scroll_bars): Remove declarations.
733
734 2005-03-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
735
736 * macterm.c (keycode_to_xkeysym_table): Change mapping so that it
737 coincides with that in Apple X11 except `clear', `enter' on
738 laptops, and fn + `enter' on laptops.
739
740 2005-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
741
742 * xmenu.c (ENCODE_MENU_STRING): Explicitly use string_make_unibyte.
743 (list_of_panes, list_of_items, Fx_popup_menu): Use XCAR/XCDR.
744 (digest_single_submenu, xmenu_show): Use ENCODE_MENU_STRING.
745
746 * xfns.c (xic_defaut_fontset): New constant.
747 (xic_create_fontsetname): New function.
748 Extracted from create_frame_xic. Try to generate a slightly
749 better fontset.
750 (xic_create_xfontset): Use it.
751 (create_frame_xic): Simplify.
752
753 2005-03-11 Stefan Monnier <monnier@iro.umontreal.ca>
754
755 * fileio.c (Fmake_symbolic_link): Fix last change.
756
757 2005-03-11 Richard M. Stallman <rms@gnu.org>
758
759 * fileio.c (Frename_file, Fadd_name_to_file)
760 (Fmake_symbolic_link): If NEWNAME or LINKNAME is a directory,
761 expand the basename of FILE relative to it.
762
763 2005-03-11 Kenichi Handa <handa@m17n.org>
764
765 * fileio.c (Finsert_file_contents): Call Fcheck_coding_system
766 before calling setup_coding_system so that autoloading of a coding
767 system work.
768
769 2005-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
770
771 * xfns.c (hourglass_started): New function.
772
773 * dispextern.h: Declare hourglass_started.
774
775 * keyboard.c (Fexecute_extended_command): Restart hourglass
776 after call to Fcompleting_read if already started.
777
778 * gtkutil.c (xg_update_scrollbar_pos): Call x_sync so that the
779 GTK main loop is entered in xterm.c, thus doing the redraw.
780
781 2005-03-10 Kim F. Storm <storm@cua.dk>
782
783 * xdisp.c (pos_visible_p): Fix X value in last line of buffer.
784
785 2005-03-08 Kenichi Handa <handa@m17n.org>
786
787 * frame.c (x_set_font): Call set_default_ascii_font if an
788 available font is found.
789
790 * fontset.c (set_default_ascii_font): New function.
791 (syms_of_fontset): Don't set FONTSET_ASCII (Vdefault_fontset) here.
792
793 * fontset.h (set_default_ascii_font): Extern it.
794
795 2005-03-07 Kim F. Storm <storm@cua.dk>
796
797 * xdisp.c (CLEAR_IMAGE_CACHE_COUNT): New const.
798 (clear_image_cache_count): New var.
799 (redisplay_internal): Don't clear face and image caches in the
800 middle of redisplay; do it afterwards.
801
802 * blockinput.h (TOTALLY_UNBLOCK_INPUT): Avoid dangling else.
803
804 * xdisp.c (notice_overwritten_cursor): Check that phys_cursor.vpos
805 is valid. If not, clear phys_cursor_on_p and return.
806
807 2005-03-07 Andreas Schwab <schwab@suse.de>
808
809 * blockinput.h (UNBLOCK_INPUT_TO): Always call UNBLOCK_INPUT.
810
811 2005-03-06 Richard M. Stallman <rms@gnu.org>
812
813 * keyboard.c (Ftop_level): Let Fthrow deal with UNBLOCK_INPUT.
814
815 * eval.c (unwind_to_catch): Use UNBLOCK_INPUT_TO.
816 (Feval, Ffuncall): Use CHECK_CONS_LIST.
817
818 * lisp.h (CHECK_CONS_LIST): New macro (two definitions).
819
820 * blockinput.h (UNBLOCK_INPUT_TO): New macro.
821 (TOTALLY_UNBLOCK_INPUT): Handle a pending signal if any.
822
823 2005-03-05 Juri Linkov <juri@jurta.org>
824
825 * emacs.c (USAGE1): Replace Info node name "command arguments"
826 with "emacs invocation".
827 (USAGE3): Fix usage of `--color=MODE' which actually doesn't
828 allow arguments `--color' and `MODE' to be separated by space.
829 Add --no-blinking-cursor, -nbc.
830 (standard_args): Add -nbc, --no-blinking-cursor.
831
832 2005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
833
834 * s/vms.h: Define NO_HYPHENS_IN_FILENAMES.
835 * s/vms4-4.h, s/vms5-5.h: Undefine NO_HYPHENS_IN_FILENAMES.
836 * fileio.c (Fexpand_file_name) [VMS]:
837 Use NO_HYPHENS_IN_FILENAMES, not VMS4_4.
838 * doc.c (munge_doc_file_name) [VMS]: Likewise.
839 (Fsnarf_documentation): Call munge_doc_file_name.
840
841 2005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
842
843 * s/vms.h (FILE_SYSTEM_CASE): New macro.
844 * fileio.c (Fexpand_file_name) [VMS]: Don't upcase the name
845 "manually"; this is now handled generally via FILE_SYSTEM_CASE.
846
847 2005-03-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
848
849 * emacs.c (main): Change `#ifdef HAVE_CARBON' to `#if
850 defined (MAC_OSX) && defined (HAVE_CARBON)'.
851
852 * image.c [!MAC_OSX && TARGET_API_MAC_CARBON]: Include QuickTime.h.
853
854 * mac.c [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
855 [!MAC_OSX] (select) [TARGET_API_MAC_CARBON]: Use ReceiveNextEvent.
856 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): New functions.
857 (mac_clear_font_name_table): Move extern to macterm.h.
858
859 * macfns.c (install_window_handler): Move extern to macterm.h.
860 (Fx_file_dialog): Check STRINGP (default_filename) to see it is
861 valid. Don't check !NILP (dir) because it is already checked with
862 CHECK_STRING.
863 (Fx_file_dialog) [!MAC_OSX]: Use FSSpec instead of FSRef for
864 specifying the default location and obtaining the selected filename.
865
866 * macgui.h [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
867
868 * macmenu.c [TARGET_API_MAC_CARBON]: Don't include headers that
869 are included via Carbon.h.
870
871 * macterm.c [TARGET_API_MAC_CARBON && !MAC_OSX]:
872 Define USE_CARBON_EVENTS to 1.
873 (qd) [__MRC__ && TARGET_API_MAC_CARBON]: Don't declare.
874 (x_free_frame_resources): Call remove_window_handler for
875 non-tooltip windows.
876 [TARGET_API_MAC_CARBON]: Don't include headers that are included
877 via Carbon.h.
878 [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
879 (mac_do_receive_dragUPP): New variables.
880 (mac_handle_service_event, init_service_handler): Put declarations
881 and definitions in #ifdef MAC_OSX.
882 (install_window_handler) [TARGET_API_MAC_CARBON]: Create UPPs for
883 drag-and-drop handler functions and register them.
884 (remove_window_handler): New function.
885 (do_ae_open_documents, mac_do_receive_drag) [!MAC_OSX]:
886 Use fsspec_to_posix_pathname.
887 (main): Change #if !TARGET_API_MAC_CARBON to #ifdef MAC_OS8.
888 (XTread_socket) [!MAC_OSX]: Don't pass keyboard events to TSM.
889 [MAC_OS8] (make_mac_terminal_frame) [TARGET_API_MAC_CARBON]:
890 Set default cursors.
891 (mac_initialize) [USE_CARBON_EVENTS && !MAC_OSX] : Don't call
892 init_service_handler or init_quit_char_handler.
893 (mac_initialize) [!MAC_OSX]: Don't call MakeMeTheFrontProcess.
894
895 * macterm.h (install_window_handler, remove_window_handler)
896 (posix_pathname_to_fsspec, fsspec_to_posix_pathname)
897 (mac_clear_font_name_table): New externs.
898
899 2005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
900
901 * fileio.c (FILE_SYSTEM_CASE): Define macro if not already defined.
902 (Ffile_name_directory): Use FILE_SYSTEM_CASE unconditionally.
903 (Fexpand_file_name): Likewise.
904
905 2005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
906
907 * emacs.c (Fkill_emacs): Use EXIT_SUCCESS;
908 no longer special-case VMS. Add bogus return value.
909
910 2005-03-02 Kim F. Storm <storm@cua.dk>
911
912 * dispextern.h (XASSERTS): Define to 0 if not already defined.
913 (xassert) [!XASSERTS]: Define dummy version.
914
915 2005-03-02 Kim F. Storm <storm@cua.dk>
916
917 * xdisp.c (redisplay_window): YABX (yet another bogus xassert).
918 Reported by David Kastrup.
919
920 2005-03-01 Ehud Karni <ehud@unix.mvs.co.il>
921
922 * xdisp.c (get_next_display_element): Fix control and escape
923 glyph from display vector.
924
925 2005-03-01 Stefan Monnier <monnier@iro.umontreal.ca>
926
927 * keyboard.c (Fposn_at_x_y): Check integerness of X and Y.
928
929 2005-02-27 Richard M. Stallman <rms@gnu.org>
930
931 * xdisp.c (fast_find_position): Rename END to BEG.
932 (syms_of_xdisp) <menu-bar-update-hook>: Doc fix.
933
934 2005-02-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
935
936 * gtkutil.c (xg_resize_outer_widget): Remove unneeded call to
937 gtk_window_resize and x_wm_set_size_hint.
938
939 2005-02-25 Kim F. Storm <storm@cua.dk>
940
941 * dispextern.h (OVERLAY_STRING_CHUNK_SIZE): Increase from 3 to 16.
942
943 * xdisp.c (init_from_display_pos): Don't read past end of
944 it->overlay_strings array.
945
946 2005-02-25 Stephan Stahl <stahl@eos.franken.de> (tiny change)
947
948 * buffer.c (syms_of_buffer): Fix typo.
949
950 2005-02-23 Lute Kamstra <lute@gnu.org>
951
952 * buffer.c (Foverlay_buffer): Doc fix.
953
954 2005-02-22 Kim F. Storm <storm@cua.dk>
955
956 * minibuf.c (Ftry_completion, Fall_completions): Allow both string
957 and symbol keys in alists and hash tables.
958
959 * xdisp.c (fast_find_position): Fix search for start of overlay.
960
961 2005-02-21 Kim F. Storm <storm@cua.dk>
962
963 * window.c (window_scroll_pixel_based): When scrolling backwards,
964 handle partial visible line at end of window even when we hit PT.
965
966 2005-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
967
968 * keymap.h: Declare Fcurrent_active_maps, used in doc.c.
969
970 2005-02-21 Kim F. Storm <storm@cua.dk>
971
972 * xdisp.c (move_it_vertically_backward): Eliminate two xasserts.
973 I think those asserts are bogus if buffer contains invisible text
974 or images.
975
976 2005-02-21 David Kastrup <dak@gnu.org>
977
978 * gtkutil.c (xg_create_frame_widgets): UNBLOCK_INPUT on error.
979
980 2005-02-20 Kim F. Storm <storm@cua.dk>
981
982 * xdisp.c (pos_visible_p): Be sure to move to the specified
983 position. Always get the full ascent / descent of the
984 corresponding row, to return reliable rtop and rbot values.
985 (back_to_previous_visible_line_start): Fix 2005-01-18 change.
986 Must look one character back, as back_to_previous_line_start
987 returns position after the newline.
988 (move_it_vertically_backward): Fix heuristic for when to move further
989 back in case line_height * 2/3 is larger than window height.
990 (cursor_row_fully_visible_p): Rename make_cursor_line_fully_visible_p
991 as it does not do anything anymore. Add arg current_matrix_p to
992 use current matrix rather than desired matrix when set.
993 (try_cursor_movement): Don't scroll to make cursor row fully
994 visible if cursor didn't move. This avoids unexpected recentering
995 in case of blinking cursor or accepting process output.
996 Use current matrix to check cursor row visibility.
997 (redisplay_window): Fix whether to recenter or move to top in case
998 cursor line is taller than window height.
999 (find_first_unchanged_at_end_row): Stop search if we reach a row
1000 which not enabled (instead of abort).
1001
1002 2005-02-18 Kim F. Storm <storm@cua.dk>
1003
1004 * xfaces.c (Finternal_set_lisp_face_attribute): Allow :color property
1005 to be nil in a :box attribute value list; customize prints that
1006 as lisp value when no box color is specified.
1007
1008 * .gdbinit (pitx, pit): Pretty print display iterator.
1009 (prowx, prow): Pretty print glyph row.
1010 (pcursorx, pcursor): Pretty print a window cursor.
1011 (pwinx, pwin): Pretty print struct window.
1012
1013 2005-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
1014
1015 * alloc.c (BLOCK_BYTES): Harmless typo.
1016
1017 2005-02-17 Andreas Schwab <schwab@suse.de>
1018
1019 * xfns.c (hack_wm_protocols): Use correct type for last parameter
1020 of XGetWindowProperty to avoid aliasing issues.
1021 (Fx_window_property): Likewise.
1022
1023 * xselect.c (Fx_disown_selection_internal): Use union of struct
1024 input_event and struct selection_input_event to avoid aliasing issues.
1025
1026 * xterm.c (handle_one_xevent): Use union of struct input_event and
1027 struct selection_input_event to avoid aliasing issues.
1028 (SET_SAVED_MENU_EVENT): Adapt reference to inev.
1029
1030 2005-02-17 Kim F. Storm <storm@cua.dk>
1031
1032 * dispextern.h (enum it_method): New enum.
1033 (GET_FROM_*): Its members.
1034 (struct it): Change member method from function pointer to enum.
1035
1036 * xdisp.c (check_it, init_from_display_pos, handle_stop)
1037 (setup_for_ellipsis, handle_single_display_spec)
1038 (handle_composition_prop, next_overlay_string)
1039 (get_overlay_strings, reseat_1, reseat_to_string)
1040 (next_element_from_ellipsis, BUFFER_POS_REACHED_P)
1041 (in_display_vector_p, display_line, get_next_display_element):
1042 Change it->method from function pointer to enum.
1043 (get_next_element): New array to map it->method to function.
1044 (get_next_display_element): Use it.
1045 (set_iterator_to_next): Use switch instead of if/else chain.
1046
1047 2005-02-15 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
1048
1049 * w32select.c: Summary: Thorough rework to implement Unicode
1050 clipboard operations and delayed rendering.
1051
1052 Drop last_clipboard_text and related code, keep track of
1053 ownership via clipboard_owner instead. Drop old #if0 sections.
1054
1055 (DEFAULT_LCID, ANSICP, OEMCP, QUNICODE, QANSICP, QOEMCP)
1056 (clipboard_owner, modifying_clipboard, cfg_coding_system)
1057 (cfg_codepage, cfg_lcid, cfg_clipboard_type, current_text)
1058 (current_coding_system, current_requires_encoding)
1059 (current_num_nls, current_clipboard_type, current_lcid):
1060 New static variables.
1061
1062 (convert_to_handle_as_ascii, convert_to_handle_as_coded)
1063 (render, render_all, run_protected, lisp_error_handler)
1064 (owner_callback, create_owner, setup_config)
1065 (enum_locale_callback, cp_from_locale, coding_from_cp):
1066 New local functions.
1067
1068 (term_w32select, globals_of_w32select): New global functions.
1069
1070 (Fw32_set_clipboard_data): Ignore parameter FRAME, use
1071 clipboard_owner instead. Use delayed rendering and provide
1072 all text formats. Provide CF_LOCALE if necessary.
1073
1074 (Fw32_get_clipboard_data): Handle CF_UNICODETEXT and
1075 CF_LOCALE. Fall back to CF_TEXT, if CF_UNICODETEXT is not
1076 available. Force DOS line-ends for decoding.
1077
1078 (Fx_selection_exists_p): Handle CF_UNICODETEXT.
1079
1080 (syms_of_w32select): Init and register new variables.
1081
1082 * w32.h: Add prototypes for globals_of_w32select and
1083 term_w32select. Make the neighboring K&R declarations into
1084 prototypes, too.
1085
1086 * emacs.c: Include w32.h to get function prototypes.
1087 (main): Call globals_of_w32select.
1088
1089 * w32.c (term_ntproc): Call term_w32select.
1090
1091 * s/ms-w32.h: Guard MSC-specific #pragmas with an #ifdef.
1092
1093 2005-02-16 Kim F. Storm <storm@cua.dk>
1094
1095 * xdisp.c (BUFFER_POS_REACHED_P): Return true if pos reached and
1096 at end of display vector.
1097
1098 2005-02-15 Richard M. Stallman <rms@gnu.org>
1099
1100 * xdisp.c (get_next_display_element): Fix escape-glyph criterion
1101 for mode and header lines.
1102
1103 * lread.c (syms_of_lread) <user-init-file>: Doc fix.
1104
1105 * keymap.h (describe_map_tree): Change decl.
1106
1107 * keyboard.c (command_loop_1): Always use safe_run_hooks
1108 to run Qdeferred_action_function.
1109
1110 * keymap.c (describe_map_tree): New arg MENTION_SHADOW. Calls changed.
1111 (describe_map, describe_vector): Likewise. When it's 1,
1112 don't omit shadowed bindings, instead mark them as shadowed.
1113
1114 * doc.c (Fsubstitute_command_keys): Compute list of shadowing maps
1115 for describe_map_tree. Pass 1 for MENTION_SHADOW.
1116
1117 * data.c (Fsetq_default): Allow no arg case.
1118
1119 2005-02-14 Kenichi Handa <handa@m17n.org>
1120
1121 * coding.c (encode_coding_string): Always return a unibyte string.
1122 If NOCOPY is nonzero and there's no need of encoding, make STR
1123 unibyte directly.
1124
1125 * xselect.c (lisp_data_to_selection_data): If OBJ is a non-ASCII
1126 multibyte string, signal an error instead of aborting.
1127
1128 2005-02-12 Dan Nicolaescu <dann@ics.uci.edu>
1129
1130 * keyboard.c: If HAVE_FCNTL_H include fcntl.h.
1131
1132 2005-02-12 Kim F. Storm <storm@cua.dk>
1133
1134 * xdisp.c (expose_window): Don't fix overlaps for mode lines.
1135
1136 2005-02-10 Kim F. Storm <storm@cua.dk>
1137
1138 * xdisp.c (try_window_id): Set first_unchanged_at_end_row to NULL
1139 if it moves outside window or it doesn't display text.
1140
1141 2005-02-09 Kim F. Storm <storm@cua.dk>
1142
1143 * undo.c (Fprimitive_undo): Check that undo function does not
1144 switch buffer.
1145
1146 2005-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1147
1148 * xselect.c (selection_data_to_lisp_data): For the special case
1149 type == XA_ATOM, data contains array of int, not array of Atom.
1150 (x_property_data_to_lisp, selection_data_to_lisp_data):
1151 Comment update: data must be array of int for format == 32.
1152
1153 2005-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
1154
1155 * undo.c (Fprimitive_undo): Check veracity of delta,start,end.
1156
1157 2005-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1158
1159 * xfns.c (Fx_change_window_property): Use long array when format is 32.
1160 (Fx_window_property): If format is 32 and long is bigger than 32 bits,
1161 convert long array returned from XGetWindowProperty to an int array.
1162 (x_set_tool_bar_lines): Check that width and height is greater than
1163 zero before clearing area.
1164
1165 * xselect.c (x_reply_selection_request): Pass long array to
1166 XChangeProperty so that 64 bit longs are handeled correctly.
1167 (x_get_window_property): If format is 32 and long is bigger than 32
1168 bits convert data from XGetWindowProperty from long array to int array.
1169 (lisp_data_to_selection_data): When the input is a vector and the
1170 format is 32, allocate a long array even if long is bigger than 32 bits.
1171 (x_fill_property_data): Use char, short and long as the man page
1172 for XChangeProperty specifies. This way the data returned is OK for
1173 both 32 and 64 bit machines.
1174 (x_handle_dnd_message): Calculate size correctly even for 64 bit
1175 machines.
1176 (Fx_send_client_event): Undo change from 2005-02-05,
1177 x_fill_property_data now handles that case.
1178
1179 * xfns.c (Fx_backspace_delete_keys_p): Add comment about the
1180 reason for the approach in the code.
1181
1182 2005-02-07 Kim F. Storm <storm@cua.dk>
1183
1184 * undo.c (Fprimitive_undo): Record max one dummmy apply element.
1185
1186 2005-02-06 Richard M. Stallman <rms@gnu.org>
1187
1188 * eval.c (Frun_hook_with_args)
1189 (Frun_hook_with_args_until_success)
1190 (Frun_hook_with_args_until_failure): Doc fixes.
1191
1192 2005-02-05 Andreas Schwab <schwab@suse.de>
1193
1194 * sysdep.c (sys_subshell): Properly terminate execlp argument list.
1195
1196 2005-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1197
1198 * xselect.c (Fx_send_client_event, x_handle_dnd_message): Handle
1199 the longs in a XClientMessageEvent correctly when long is 64 bits.
1200
1201 2005-02-05 Eli Zaretskii <eliz@gnu.org>
1202
1203 * xfaces.c (face_color_supported_p): Use HAVE_WINDOW_SYSTEM
1204 instead of HAVE_X_WINDOWS, for non-X windowed sessions.
1205
1206 2005-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1207
1208 * xmenu.c (menubar_selection_callback): Force out GTK buffered
1209 events so the menu event comes after them. This is to prevent sit-for
1210 from exiting on buffered events directly after a menu selection,
1211 lisp code for Help => About Emacs uses sit-for.
1212
1213 * gtkutil.c (create_menus): Connect selection-done event instead of
1214 the deactivate event to deactivate_cb. This will make the last
1215 leave event come before the call to deactivate_cb, so the leave
1216 event does not make sit-for exit after a menu selection.
1217
1218 2005-02-03 Kim F. Storm <storm@cua.dk>
1219
1220 * dispnew.c (build_frame_matrix_from_leaf_window)
1221 [!GLYPH_DEBUG]: Fix xassert.
1222
1223 * xfaces.c (x_free_gc) [!GLYPH_DEBUG]: Fix xassert.
1224
1225 * xfns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
1226
1227 2005-02-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1228
1229 * mac.c: Use MAC_OS_X_VERSION_MAX_ALLOWED to conditionalize by
1230 the compiling OS version.
1231
1232 * macfns.c (x_create_tip_frame): Likewise.
1233
1234 * macterm.c (mac_draw_string_common, x_make_frame_visible): Likewise.
1235
1236 2005-02-03 Richard M. Stallman <rms@gnu.org>
1237
1238 * xterm.c (x_error_quitter): On GCC 3 and up, specify noinline.
1239
1240 * xdisp.c (echo_area_display): Clear echo_message_buffer.
1241
1242 * buffer.c (Fbury_buffer): Doc fix.
1243
1244 2005-02-02 Steven Tamm <steventamm@mac.com>
1245
1246 * macfns.c (unwind_create_frame): Fix compile error due to
1247 xassert being uncondition, but predicate is.
1248 * dispnew.c (update_window): Fix compile error due to
1249 xassert being uncondition, but predicate is.
1250
1251 2005-02-02 Miles Bader <miles@gnu.org>
1252
1253 * dispextern.h (xassert): Enable unconditionally.
1254
1255 2005-02-02 Kim F. Storm <storm@cua.dk>
1256
1257 * undo.c (Fprimitive_undo): Fix dummy apply undo entry.
1258
1259 2005-02-02 Kenichi Handa <handa@m17n.org>
1260
1261 * casefiddle.c (casify_object): Enable changing characters of
1262 different byte length.
1263 (casify_region): Fix loop condition, args to replace_range_2, and
1264 update opoint_byte.
1265
1266 * insdel.c (replace_range_2): Fix bugs in adjusting markers and point.
1267
1268 2005-02-01 Kim F. Storm <storm@cua.dk>
1269
1270 * xdisp.c (back_to_previous_visible_line_start): Reset iterator
1271 stack before calling handle_display_prop.
1272
1273 2005-01-31 Kim F. Storm <storm@cua.dk>
1274
1275 * undo.c (Qapply): New lisp var.
1276 (syms_of_undo): Intern and staticpro it.
1277 (Fprimitive_undo): Support formats (apply FUNNAME . ARGS) and
1278 (apply DELTA BEG END FUNNAME . ARGS) instead of (FUNNAME . ARGS).
1279
1280 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
1281
1282 2005-01-30 Jesper Harder <harder@phys.au.dk>
1283
1284 * macterm.c (syms_of_macterm) <mac-reverse-ctrl-meta>
1285 <mac-emulate-three-button-mouse>: Fix docstring indentation.
1286
1287 2005-01-29 Luc Teirlinck <teirllm@auburn.edu>
1288
1289 * undo.c (syms_of_undo) <undo-outer-limit>: Doc update.
1290 Increase value to 3 Meg.
1291
1292 2005-01-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1293
1294 * xfns.c (show_hourglass): Use FRAME_X_WINDOW as parent for GTK,
1295 button events are not received otherwise.
1296
1297 2005-01-29 Richard M. Stallman <rms@gnu.org>
1298
1299 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
1300
1301 * undo.c (Fprimitive_undo): Handle (FUNNAME . ARGS) by calling FUNNAME.
1302
1303 2005-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
1304
1305 * keymap.c (access_keymap): YAILOM.
1306
1307 2005-01-27 Kim F. Storm <storm@cua.dk>
1308
1309 * xdisp.c (get_phys_cursor_geometry): New function to calculate
1310 phys cursor position and size for hollow cursor. Position is
1311 aligned with get_glyph_string_clip_rect and ensures that a hollow
1312 cursor is shown, even when the actual glyph is not visible.
1313
1314 * dispextern.h (get_phys_cursor_geometry): Add prototype.
1315
1316 * xterm.c (x_clip_to_row): Ensure y >= 0.
1317 (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
1318
1319 * w32term.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
1320
1321 * macterm.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
1322
1323 2005-01-27 Stefan Monnier <monnier@iro.umontreal.ca>
1324
1325 * xterm.c (x_error_quitter): Add a prototype. Make it static again.
1326
1327 2005-01-27 Kim F. Storm <storm@cua.dk>
1328
1329 * xdisp.c (get_glyph_string_clip_rect): Always show a cursor
1330 glyph, even when row is only partially visible and actual cursor
1331 position is not visible.
1332
1333 2005-01-24 Richard M. Stallman <rms@gnu.org>
1334
1335 * xterm.c (x_error_quitter): No longer static, and moved after
1336 x_error_handler.
1337
1338 2005-01-24 Kim F. Storm <storm@cua.dk>
1339
1340 * xdisp.c (move_it_by_lines): If we move forward after going too
1341 far back, cancel move if end position is same as start position.
1342
1343 2005-01-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1344
1345 * dispextern.h (struct glyph_string): New members clip_head and
1346 clip_tail.
1347
1348 * xdisp.c (get_glyph_string_clip_rect): Restrict horizontal clip
1349 region to the area between clip_head and clip_tail.
1350 (draw_glyphs): Record the area that need to be actually redrawn to
1351 the new variables clip_head and clip_tail when there are
1352 overhangs. Set values of these variables to the corresponding
1353 members in struct glyph_string. Refine x coordinates for
1354 notice_overwritten_cursor using clip_head and clip_tail.
1355
1356 * macgui.h (STORE_XCHARSETSTRUCT): New macro.
1357
1358 * macterm.c (mac_compute_glyph_string_overhangs): Implement with
1359 QDTextBounds.
1360 (x_draw_glyph_string): Don't fill the background of the successor
1361 of a glyph with a right overhang if the successor will draw a cursor.
1362 (XLoadQueryFont): Obtain font metrics using QDTextBounds.
1363 (x_redisplay_interface): Add entry for compute_glyph_string_overhangs.
1364
1365 2005-01-24 Kim F. Storm <storm@cua.dk>
1366
1367 * window.c (window_scroll_pixel_based): Fix scrolling in the wrong
1368 direction if window height was smaller than next-screen-context-lines.
1369 Now always scroll at least one line in the requested direction.
1370 Ensure that we actually do scroll backwards when requested to do so.
1371
1372 * xdisp.c (redisplay_window): Only try to make cursor line fully
1373 visible once (to avoid redisplay loop).
1374
1375 2005-01-23 Kim F. Storm <storm@cua.dk>
1376
1377 * window.c (Fpos_visible_in_window_p): Simplify return value for
1378 partially visible rows.
1379 (window_scroll_pixel_based): Adapt to that change.
1380
1381 * window.c (window_scroll_pixel_based): Force moving to next line
1382 if scrolling doesn't move start point, e.g. if looking at tall image.
1383
1384 * xdisp.c (pos_visible_p): Return 0 if non-interactive.
1385 Clear last_height before calling line_bottom_y to get real height.
1386 Fix calculation of y.
1387
1388 2005-01-22 Steven Tamm <steventamm@mac.com>
1389
1390 * s/darwin.h: Removed PTY_ITERATION from here.
1391 (DARWIN): Define.
1392
1393 * process.c (init_process): Default process-connection-type to
1394 nil on darwin 6 or less, t if it is 7 or higher. This way the
1395 broken pty behavior is still allowed on darwin 6 for interactive
1396 processes for people that know what they are doing.
1397
1398 2005-01-22 Kim F. Storm <storm@cua.dk>
1399
1400 * window.c (auto_window_vscroll_p): New boolean.
1401 (syms_of_window): DEFVAR_BOOL it.
1402 (Fpos_visible_in_window_p): Extend return value to include RTOP
1403 and RBOT values if FULLY is nil.
1404 (window_scroll_pixel_based): Adjust vscroll for partially visible
1405 rows if auto_window_vscroll_p is set.
1406 (Fset_window_vscroll): Do nothing if vscroll is not modified.
1407
1408 * xdisp.c (pos_visible_p): Replace FULLY arg by RTOP and RBOT args
1409 to return number of partially invisible pixels at top and bottom
1410 of the dislay row at POS.
1411
1412 * lisp.h (pos_visible_p): Fix prototype.
1413
1414 2005-01-21 Richard M. Stallman <rms@gnu.org>
1415
1416 * fileio.c (Fcopy_file): Doc fix.
1417
1418 2005-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1419
1420 * gtkutil.c (xg_tool_bar_detach_callback): Remove unused variable bw.
1421 (xg_get_file_name): Move declaration ofx_use_old_gtk_file_dialog to
1422 start of function for older compilers.
1423
1424 2005-01-20 Richard M. Stallman <rms@gnu.org>
1425
1426 * editfns.c (Fmessage): If arg is "", return "" (as before).
1427
1428 * keymap.c (access_keymap): Protect from bad value of meta_prefix_char.
1429
1430 * .gdbinit (xgetptr, xgetint, xgettype): Copy $arg0 into a temp
1431 variable.
1432
1433 2005-01-20 Steven Tamm <steventamm@mac.com>
1434
1435 * editfns.c (Voperating_system_release): Add.
1436 (init_editfns): Assign new variable operating-system-release
1437 based on call to uname if available.
1438 (get_operating_system_release): Add function to
1439 allow c-level access to operating system release.
1440
1441 * config.h: Regenerated.
1442
1443 * s/darwin.h (PTY_ITERATION): Don't allow PTYs on darwin 6 or less.
1444 (MIN_PTY_KERNEL_VERSION): Define minimum kernel version for
1445 using ptys as '7'.
1446
1447 2005-01-20 Kim F. Storm <storm@cua.dk>
1448
1449 * alloc.c (STRING_MARKED_P, VECTOR_MARKED_P): Return boolean.
1450
1451 * xterm.c (x_draw_glyph_string_box): Fix last_x for full width rows.
1452 Thanks to Chong Yidong <cyd@stupidchicken.com> for debugging this.
1453
1454 * macterm.c (x_draw_glyph_string_box): Likewise.
1455
1456 * w32term.c (x_draw_glyph_string_box): Likewise.
1457
1458 * indent.c (Fvertical_motion): Temporarily disable selective display.
1459
1460 2005-01-19 Kim F. Storm <storm@cua.dk>
1461
1462 * xdisp.c (note_mode_line_or_margin_highlight): Fix :pointer
1463 image property.
1464
1465 * fns.c (sweep_weak_table): Advance prev pointer when we keep a pair.
1466
1467 2005-01-18 Kim F. Storm <storm@cua.dk>
1468
1469 * xdisp.c (fast_find_position): Backtrack to find first row if
1470 charpos is inside a display overlay that spans multiple lines.
1471
1472 2005-01-18 Kenichi Handa <handa@m17n.org>
1473
1474 * coding.c (decode_coding_iso2022): Translate invalid codes if
1475 translation-table is specified.
1476
1477 2005-01-18 Kim F. Storm <storm@cua.dk>
1478
1479 * xdisp.c (back_to_previous_visible_line_start): Undo 2004-12-28
1480 change. If handle_display_prop indicates newline is replaced by
1481 image or text, move back to start of relevant overlay or interval
1482 and continue scan from there. Simplify.
1483
1484 2005-01-17 Kim F. Storm <storm@cua.dk>
1485
1486 * dispnew.c (mode_line_string, marginal_area_string):
1487 Fix off-by-one error in search for glyph.
1488
1489 2005-01-16 Kim F. Storm <storm@cua.dk>
1490
1491 * macterm.c (syms_of_macterm) <mac-allow-anti-aliasing>: Doc fix.
1492
1493 2005-01-16 Steven Tamm <steventamm@mac.com>
1494
1495 * macterm.c (mac_to_x_fontname): Remove spurious argument.
1496
1497 2005-01-16 Andreas Schwab <schwab@suse.de>
1498
1499 * macterm.c (mac_draw_string_common): Fix compilation on OSX 10.1.
1500
1501 2005-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1502
1503 * fringe.c (Fdefine_fringe_bitmap, init_fringe): When assigning
1504 fringe_faces, cast result from xmalloc/xrealloc to Lisp_Object *.
1505
1506 2005-01-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1507
1508 * keyboard.c (READABLE_EVENTS_DO_TIMERS_NOW)
1509 (READABLE_EVENTS_FILTER_EVENTS, READABLE_EVENTS_IGNORE_SQUEEZABLES):
1510 New flags for readable_events.
1511 (get_filtered_input_pending, readable_filtered_events): Remove.
1512 (tracking_off): Call readable_events and get_input_pending with
1513 flag READABLE_EVENTS_DO_TIMERS_NOW.
1514 (readable_events): Move code from old readable_filtered_events here,
1515 but check new READABLE_EVENTS_* in argument flags instead of previous
1516 two boolean arguments do_timers_now and filter_events.
1517 If we are doing mouse tracking and the mouse moved, return only if
1518 READABLE_EVENTS_IGNORE_SQUEEZABLES is not set in flags.
1519 (swallow_events): Call get_input_pending with flag
1520 READABLE_EVENTS_DO_TIMERS_NOW.
1521 (get_input_pending): Move code from old get_filtered_input_pending
1522 here. Replace boolean arguments do_timers_now, filter_events with
1523 flags, and pass flags to readable_events. Document new
1524 READABLE_EVENTS_* flags.
1525 (detect_input_pending_ignore_squeezables): New function.
1526 (detect_input_pending_run_timers): Call get_input_pending with flag
1527 READABLE_EVENTS_DO_TIMERS_NOW.
1528 (Finput_pending_p): Call get_input_pending with flags
1529 READABLE_EVENTS_DO_TIMERS_NOW and READABLE_EVENTS_FILTER_EVENTS.
1530
1531 * dispnew.c (update_window, update_frame_1): Replace calls to
1532 detect_input_pending with detect_input_pending_ignore_squeezables
1533 so that redisplay is not paused if the event queue contains only
1534 mouse movements.
1535
1536 * lisp.h: Declare detect_input_pending_ignore_squeezables.
1537
1538 2005-01-15 Steven Tamm <steventamm@mac.com>
1539
1540 * macterm.c (Vmac_use_core_graphics): Declare variable for
1541 mac-allow-anti-aliasing.
1542 (syms_of_macterm): DEFVAR_LISP and initialize it.
1543 (mac_draw_string_common): Use core graphics text rendering if
1544 mac-allow-anti-aliasing is enabled.
1545
1546 * macfns.c (Fx_file_dialog): Save As dialog includes only the
1547 file name in the text box.
1548
1549 2005-01-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1550
1551 * macfns.c (x_set_foreground_color, x_set_background_color):
1552 Sync with xfns.c.
1553 (mac_window, x_create_tip_frame): Use XSetWindowBackground.
1554 * macterm.c (XSetBackground, XSetWindowBackground): New functions.
1555 * macterm.h (XSetBackground, XSetWindowBackground): Add externs.
1556
1557 2005-01-14 Kim F. Storm <storm@cua.dk>
1558
1559 * keyboard.c (Fposn_at_x_y): Add optional arg WHOLE.
1560
1561 2005-01-13 Richard M. Stallman <rms@gnu.org>
1562
1563 * keymap.c (Fcurrent_active_maps): Ignore Voverriding_local_map
1564 if Voverriding_terminal_local_map is non-nil.
1565
1566 * keyboard.c (syms_of_keyboard): Doc fix.
1567
1568 2005-01-13 Kim F. Storm <storm@cua.dk>
1569
1570 * xdisp.c (Fformat_mode_line): Fix last change. Remove NO_PROPS arg
1571 (specify 0 for FACE instead). Reorder arg list. Doc fix.
1572
1573 2005-01-12 Richard M. Stallman <rms@gnu.org>
1574
1575 * xdisp.c (Fformat_mode_line): New arg FACE specifies a default
1576 face property for characters that don't specify one.
1577
1578 * fns.c (Frequire): Record in load-history unconditionally.
1579
1580 2005-01-10 Kim F. Storm <storm@cua.dk>
1581
1582 * dispextern.h (merge_faces): Rename from merge_into_realized_face.
1583
1584 * xfaces.c (merge_faces): Rename from merge_into_realized_face.
1585 Callers changed.
1586 Add support to merge with lisp face id too (if face_name is t).
1587
1588 * xdisp.c (get_next_display_element, next_element_from_display_vector):
1589 Don't lookup lface_id from display table glyphs here; instead use
1590 merge_faces to merge the lisp face id into current face.
1591
1592 2005-01-09 Kim F. Storm <storm@cua.dk>
1593
1594 * dispextern.h (struct it): New member dpvec_face_id.
1595 (merge_into_realized_face): Add prototype.
1596
1597 * xfaces.c (merge_into_realized_face): New function. Used to
1598 merge escape-glyph face or face from display table into current face.
1599
1600 * xdisp.c (Vshow_nonbreak_escape): New lisp var.
1601 (syms_of_xdisp): DEFVAR_LISP it.
1602 (escape_glyph_face): Remove var.
1603 (redisplay_window): Don't initialize it.
1604 (setup_for_ellipsis, get_next_display_element):
1605 Set it->dpvec_face_id to -1.
1606 (get_next_display_element): Test Vshow_nonbreak_escape.
1607 Do not setup escape_glyph_face.
1608 Properly merge escape-glyph face or face from display table with
1609 current face for escape and control characters.
1610 Set it->dpvec_face_id to relevant face id instead of adding it to each
1611 element of display vector.
1612 (next_element_from_display_vector): If it->dpvec_face_id is set,
1613 use that instead of lface_id from glyph itself.
1614
1615 2005-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1616
1617 * xterm.h (struct x_output): New member, toolbar_detached.
1618
1619 * gtkutil.c (xg_create_frame_widgets): Set initial tool bar height to
1620 38.
1621 (xg_tool_bar_detach_callback): Set toolbar_detached to 1.
1622 (xg_tool_bar_attach_callback): Set toolbar_detached to 0.
1623 (xg_create_tool_bar): Initialize toolbar_detached.
1624 (update_frame_tool_bar): Only set FRAME_TOOLBAR_HEIGHT (f) if
1625 toolbar_detached is zero.
1626
1627 2005-01-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1628
1629 * xmenu.c (create_and_show_popup_menu): Pass zero as button to
1630 gtk_menu_popup if not for_click, so callbacks for the menu are called.
1631
1632 * gtkutil.c (xg_gtk_scroll_destroy, xg_create_scroll_bar)
1633 (xg_tool_bar_callback, xg_tool_bar_help_callback)
1634 (update_frame_tool_bar): Cast to EMACS_INT to avoid compiler warning.
1635
1636 * xselect.c (x_get_foreign_selection, x_fill_property_data)
1637 (Fx_get_atom_name, Fx_send_client_event): Replace XFLOAT with
1638 XFLOAT_DATA to get extract number from Lisp object.
1639
1640 2005-01-07 Kim F. Storm <storm@cua.dk>
1641
1642 * xdisp.c (set_iterator_to_next): Fix 2004-12-13 change.
1643 Set stop_charpos to current charpos instead of 0.
1644
1645 2005-01-06 Nick Roberts <nickrob@snap.net.nz>
1646
1647 * xdisp.c (Fformat_mode_line): First arg now required.
1648
1649 2005-01-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1650
1651 * macterm.c (XLoadQueryFont): Correctly handle 0 size
1652 font widths that are returned from some Japanese fonts.
1653
1654 2005-01-06 Kim F. Storm <storm@cua.dk>
1655
1656 * fringe.c (fringe_faces): Change to Lisp_Object pointer.
1657 (draw_fringe_bitmap_1): Lookup user defined fringe faces here.
1658 (destroy_fringe_bitmap): Set fringe_faces element to nil.
1659 (Fdefine_fringe_bitmap, init_fringe): Change allocation of
1660 fringe_faces array and init elements to nil.
1661 (Fset_fringe_bitmap_face): Set fringe_faces to face name instead of
1662 non-persistent face id.
1663 (mark_fringe_data): New function for GC.
1664
1665 * alloc.c (mark_fringe_data): Declare extern.
1666 (Fgarbage_collect): Call mark_fringe_data.
1667
1668 * alloc.c (overrun_check_free): Invalidate freed memory if
1669 XMALLOC_CLEAR_FREE_MEMORY is defined.
1670
1671 2005-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1672
1673 * macfns.c: Include sys/param.h.
1674 [TARGET_API_MAC_CARBON] (mac_nav_event_callback): New declaration
1675 and function.
1676 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Use MAXPATHLEN for size
1677 of filename string. Set event callback function when creating
1678 dialog boxes. Add code conversions for filenames. Don't dispose
1679 apple event descriptor record if failed to create it.
1680
1681 * macterm.c: Include sys/param.h.
1682 [USE_CARBON_EVENTS] (mac_handle_window_event): Add handler for
1683 kEventWindowUpdate.
1684 (install_window_handler) [USE_CARBON_EVENTS]: Register it.
1685 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Get FSRef instead
1686 of FSSpec from apple event descriptor record.
1687 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Use MAXPATHLEN for
1688 size of filename string.
1689 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.
1690 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Return error when a
1691 file dialog is in action.
1692 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Likewise.
1693 Reject only when there are no filename items. Set background color
1694 before (un)highlighting the window below the dragged items.
1695 (XTread_socket) [USE_CARBON_EVENTS]: Don't call do_window_update.
1696
1697 2005-01-05 Romain Francoise <romain@orebokech.com>
1698
1699 * term.c (encode_terminal_code): Fix buffer size computation.
1700
1701 2005-01-04 Richard M. Stallman <rms@gnu.org>
1702
1703 * xdisp.c (Fformat_mode_line): Doc fix.
1704
1705 2005-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
1706
1707 * alloc.c (refill_memory_reserve): Move.
1708 (emacs_blocked_free, emacs_blocked_malloc, emacs_blocked_realloc)
1709 (reset_malloc_hooks, uninterrupt_malloc) [SYNC_INPUT]: Don't define.
1710
1711 2005-01-03 Richard M. Stallman <rms@gnu.org>
1712
1713 * window.c (window_scroll_pixel_based): Don't correct preserve_y
1714 for CURRENT_HEADER_LINE_HEIGHT when moving backwards.
1715
1716 2005-01-03 Jason Rumney <jasonr@gnu.org>
1717
1718 * w32bdf.c (w32_load_bdf_font): Set fontp->average_width and
1719 fontp->space_width to FONT_WIDTH so they are valid.
1720
1721 * w32fns.c (w32_load_system_font): Set FONT_WIDTH to maximum, not
1722 average width. Set fontp->average_width and fontp->space_width to
1723 their appropriate values.
1724
1725 * w32term.c (x_new_font): Set FRAME_COLUMN_WIDTH to
1726 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
1727 fontp->space_width.
1728
1729 2005-01-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1730
1731 * macterm.c (x_new_font): Set FRAME_SPACE_WIDTH.
1732 (x_font_min_bounds, XLoadQueryFont): Use the correct font width
1733 metrics for max and min bounds.
1734 (x_load_font): Correctly calculate average font width metrics.
1735
1736 2005-01-02 Richard M. Stallman <rms@gnu.org>
1737
1738 * alloc.c (Fgarbage_collect): Don't truncate_undo_list on dead buffers.
1739
1740 2004-12-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1741
1742 * xterm.c (handle_one_xevent): Clear area in expose event for GTK.
1743
1744 2004-12-31 Richard M. Stallman <rms@gnu.org>
1745
1746 * xdisp.c (setup_for_ellipsis, get_next_display_element):
1747 Set it->ellipsis_p to 1 or 0.
1748 (display_line): Record whether row ends in mid-ellipsis.
1749 (set_cursor_from_row): If ends in ellipsis. find start of it.
1750 (cursor_row_p): If PT's at the end of the ellipsis the row
1751 ends within, don't display cursor on this row.
1752
1753 * dispextern.h (struct it): New element ellipsis_p.
1754 (struct glyph_row): New element ends_in_ellipsis_p.
1755
1756 * xdisp.c (BUFFER_POS_REACHED_P): We haven't reached the specified
1757 position if we're reading from something other than the buffer.
1758
1759 * window.c (window_scroll_pixel_based): Only look at
1760 Vscroll_preserve_screen_position if the old PT can't be kept.
1761 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
1762
1763 2004-12-30 Kim F. Storm <storm@cua.dk>
1764
1765 * xdisp.c (get_line_height_property): New function extracted from
1766 original calc_line_height_property.
1767 (calc_line_height_property): Rework. Handle t and (nil . ratio).
1768 (x_produce_glyphs): Use them to handle line-height and
1769 line-spacing according to new height spec.
1770 (Qtotal): Remove.
1771 (syms_of_xdisp): Remove intern and staticpro for Qtotal.
1772
1773 2004-12-30 Kenichi Handa <handa@m17n.org>
1774
1775 * fileio.c (Finsert_file_contents): Don't use
1776 current_buffer->buffer_file_coding_system even if REPLACE is
1777 non-nil. Call Qafter_insert_file_set_coding with the second arg VISIT.
1778
1779 * fontset.h (struct font_info): New members space_width and
1780 average_width.
1781
1782 * frame.h (struct frame): New member space_width.
1783 (FRAME_SPACE_WIDTH): New macro.
1784
1785 * xterm.h (struct x_display_info): New member Xatom_AVERAGE_WIDTH.
1786
1787 * xterm.c (x_new_font): Set FRAME_COLUMN_WIDTH to
1788 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
1789 fontp->space_width.
1790 (x_load_font): Calculate fontp->space_width and fontp->average_width.
1791 (x_term_init): Initialize dpyinfo->Xatom_AVERAGE_WIDTH.
1792
1793 * xdisp.c (x_produce_glyphs): Calculate tab width by
1794 FRAME_SPACE_WIDTH, not FRAME_COLUMN_WIDTH.
1795
1796 2004-12-29 Sanghyuk Suh <han9kin@mac.com>
1797
1798 * macterm.c (SelectionRange): Add Xcode position apple event struct.
1799 (do_ae_open_documents): Handle Xcode-style file position open events.
1800
1801 2004-12-29 Luc Teirlinck <teirllm@auburn.edu>
1802
1803 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Correct typo.
1804
1805 2004-12-29 Richard M. Stallman <rms@gnu.org>
1806
1807 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Doc fix.
1808
1809 2004-12-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1810
1811 * macfns.c (install_window_handler): Modify extern to return OSErr
1812 value.
1813 (mac_window): Handle return value of install_window_handler.
1814
1815 * macterm.c (reflect_byte): Remove function.
1816 (mac_create_bitmap_from_bitmap_data): Don't call reflect_byte.
1817 Lookup table instead.
1818 (mac_do_font_lists): Simplify calculation of the longest
1819 nonspecial string.
1820 (init_mac_drag_n_drop): Remove function and declaration.
1821 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
1822 init_mac_drag_n_drop.
1823 (mac_do_track_drag): New function and declaration.
1824 (install_window_handler): Return OSErr value.
1825 (install_window_handler) [TARGET_API_MAC_CARBON]:
1826 Register handlers for tracking/receiving drag-and-drop items.
1827 (do_ae_open_documents): Generate unibyte strings for filenames.
1828 (mac_do_receive_drag) [TARGET_API_MAC_CARBON] : Likewise.
1829 Reject only non-filename items. Set event modifiers, and return value.
1830
1831 2004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
1832
1833 * coding.c (decode_coding): Fix previous change.
1834
1835 2004-12-28 Richard M. Stallman <rms@gnu.org>
1836
1837 * xdisp.c (back_to_previous_visible_line_start):
1838 Don't call handle_display_prop.
1839
1840 2004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
1841
1842 * coding.c (decode_coding_XXX, decode_composition_emacs_mule)
1843 (decode_coding_emacs_mule, encode_coding_emacs_mule)
1844 (decode_coding_iso2022, encode_designation_at_bol)
1845 (encode_coding_iso2022, decode_coding_sjis_big5, decode_eol)
1846 (decode_coding): Constify arguments and local vars.
1847
1848 2004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1849
1850 * xmenu.c (popup_get_selection): Only pop down dialogs
1851 on C-g and Escape.
1852 (popup_get_selection): Remove parameter down_on_keypress.
1853 (create_and_show_popup_menu, create_and_show_dialog):
1854 Remove parameter down_on_keypress to popup_get_selection.
1855
1856 2004-12-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1857
1858 * dispextern.h: Change HAVE_CARBON to MAC_OS.
1859 (struct glyph_string): Likewise.
1860
1861 * emacs.c (main) [MAC_OS8]: Call mac_term_init instead of
1862 mac_initialize.
1863
1864 * fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name):
1865 Change TARGET_API_MAC_CARBON to HAVE_CARBON.
1866
1867 * fns.c (vector): Change MAC_OSX to MAC_OS.
1868
1869 * frame.c (x_set_frame_parameters, x_report_frame_params)
1870 (x_set_fullscreen): Remove #ifndef HAVE_CARBON.
1871 (x_set_border_width, Vdefault_frame_scroll_bars):
1872 Change HAVE_CARBON to MAC_OS.
1873
1874 * image.c [MAC_OS]: Include sys/stat.h.
1875 [MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and
1876 QuickTimeComponents.h.
1877
1878 * mac.c [!MAC_OSX] (mac_wait_next_event): Add extern.
1879 [!MAC_OSX] (select): Use mac_wait_next_event.
1880 [!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to Vexec_suffixes.
1881 [!MAC_OSX] (select, run_mac_command): Change `#ifdef
1882 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
1883 (mac_clear_font_name_table): Add extern.
1884 (Fmac_clear_font_name_table): New defun.
1885 (syms_of_mac): Defsubr it.
1886 [MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define.
1887 [MAC_OSX] (select_and_poll_event): New function.
1888 [MAC_OSX] (sys_select): Use it.
1889 [MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function.
1890 [MAC_OSX && SELECT_USE_CFSOCKET]
1891 (SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines.
1892 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and
1893 RunLoop for simultaneously monitoring two kinds of inputs, window
1894 events and process outputs, without periodically polling.
1895
1896 * macfns.c (mac_initialized): Remove extern.
1897 (stricmp): Put in #if 0. All callers changed to use xstricmp in
1898 xfaces.c.
1899 (strnicmp): Decrement `n' at the end of each loop, not the beginning.
1900 (check_mac): Use the term "Mac native windows" instead of "Mac OS".
1901 (check_x_display_info, x_display_info_for_name): Sync with xfns.c.
1902 (mac_get_rdb_resource): New function (from w32reg.c).
1903 (x_get_string_resource): Use it.
1904 (install_window_handler): Add extern.
1905 (mac_window): New function.
1906 (Fx_create_frame): Use it instead of make_mac_frame.
1907 Set parameter for Qfullscreen. Call x_wm_set_size_hint.
1908 (Fx_open_connection, Fx_close_connection): New defuns.
1909 (syms_of_macfns): Defsubr them.
1910 (x_create_tip_frame) [TARGET_API_MAC_CARBON]:
1911 Add kWindowNoUpdatesAttribute to the window attribute.
1912 (x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow.
1913 (x_create_tip_frame): Don't call ShowWindow.
1914 (Fx_show_tip): Call ShowWindow.
1915 (Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if
1916 TARGET_API_MAC_CARBON'.
1917 (mac_frame_parm_handlers): Set handlers for Qfullscreen.
1918 (syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0.
1919
1920 * macgui.h [!MAC_OSX]: Don't include Controls.h. Include Windows.h.
1921 (Window): Typedef to WindowPtr and move outside `#if
1922 TARGET_API_MAC_CARBON'.
1923 (XSizeHints): New struct.
1924
1925 * macterm.c (x_update_begin, x_update_end)
1926 [TARGET_API_MAC_CARBON]: Disable screen updates during update of a
1927 frame.
1928 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
1929 [MAC_OS8]: Use XDrawImageString/XDrawImageString16.
1930 (construct_mouse_click): Put in #if 0.
1931 (x_check_fullscreen, x_check_fullscreen_move): Remove decls.
1932 (x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef
1933 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
1934 (activate_scroll_bars, deactivate_scroll_bars)
1935 [!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl.
1936 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window
1937 if the position is neither user-specified nor program-specified.
1938 (x_free_frame_resources): Free size_hints.
1939 (x_wm_set_size_hint): Allocate size_hints if needed. Set size_hints.
1940 (mac_clear_font_name_table): New function.
1941 (mac_do_list_fonts): Initialize font_name_table if needed.
1942 (x_list_fonts): Don't initialize font_name_table. Add BLOCK_INPUT
1943 around mac_do_list_fonts.
1944 (mac_unload_font): New function.
1945 (x_load_font): Add BLOCK_INPUT around XLoadQueryFont.
1946 (init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations
1947 and definitions with #if TARGET_API_MAC_CARBON.
1948 [USE_CARBON_EVENTS] (mac_handle_window_event): Add decl.
1949 (install_window_handler): Add decl.
1950 (do_window_update): Add BeginUpdate/EndUpdate for the tooltip
1951 window. Use UpdateControls. Get the rectangle that should be
1952 updated and restrict the target of expose_frame to it.
1953 (do_grow_window): Set minimum height/width according to size_hints.
1954 (do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow.
1955 (do_zoom_window): Don't use x_set_window_size.
1956 [USE_CARBON_EVENTS] (mac_handle_window_event): New function.
1957 (install_window_handler): New function.
1958 [!USE_CARBON_EVENTS] (mouse_region): New variable.
1959 [!USE_CARBON_EVENTS] (mac_wait_next_event): New function.
1960 (XTread_socket) [USE_CARBON_EVENTS]: Move call to
1961 GetEventDispatcherTarget inside BLOCK_INPUT.
1962 (XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event.
1963 Update mouse_region when mouse is moved.
1964 (make_mac_frame): Remove.
1965 (make_mac_terminal_frame): Put in #ifdef MAC_OS8.
1966 Initialize mouse pointer shapes. Change values of f->left_pos and
1967 f->top_pos. Don't use make_mac_frame. Use NewCWindow.
1968 Don't call ShowWindow.
1969 (mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from
1970 Vinvocation_name and Vsystem_name.
1971 (mac_make_rdb): New function (from w32term.c).
1972 (mac_term_init): Use it. Add BLOCK_INPUT. Error if display has
1973 already been opened. Don't pass argument to
1974 mac_initialize_display_info. Don't set dpyinfo->height/width.
1975 Add entries to x_display_list and x_display_name_list.
1976 (x_delete_display): New function.
1977 (mac_initialize): Don't call mac_initialize_display_info.
1978 (syms_of_macterm) [!MAC_OSX]: Don't call Fprovide.
1979
1980 * macterm.h (check_mac): Add extern.
1981 (struct mac_output): New member size_hints.
1982 (FRAME_SIZE_HINTS): New macro.
1983 (mac_unload_font): Add extern.
1984
1985 * xdisp.c (expose_window, expose_frame): Remove kludges for Mac.
1986
1987 * xfaces.c (clear_font_table) [MAC_OS]: call mac_unload_font.
1988
1989 2004-12-27 Richard M. Stallman <rms@gnu.org>
1990
1991 * buffer.c (Fbuffer_disable_undo): Delete (move to simple.el).
1992 (syms_of_buffer): Don't defsubr it.
1993
1994 * process.c (list_processes_1): Set undo_list instead
1995 of calling Fbuffer_disable_undo.
1996
1997 * xdisp.c (single_display_spec_string_p): Rename from
1998 single_display_prop_string_p.
1999 (single_display_spec_intangible_p): Rename from
2000 single_display_prop_intangible_p.
2001 (handle_single_display_spec): Rename from handle_single_display_prop.
2002 Rewritten to be easier to understand.
2003
2004 Change in load-history format. Functions now get (defun . NAME),
2005 and variables get just NAME.
2006
2007 * data.c (Fdefalias): Use (defun . FN_NAME) in LOADHIST_ATTACH.
2008
2009 * eval.c (Fdefun, Fdefmacro): Use (defun . FN_NAME) in LOADHIST_ATTACH.
2010 (Fdefvaralias, Fdefvar, Fdefconst): Use just SYM in LOADHIST_ATTACH.
2011 (Qdefvar): Var deleted.
2012 (syms_of_eval): Don't initialze it.
2013
2014 * lread.c (syms_of_lread) <load-history>: Doc fix.
2015
2016 2004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2017
2018 * xmenu.c (popup_get_selection): Pop down on C-g.
2019 (set_frame_menubar): Install translations for Lucid/Motif/Lesstif that
2020 pops down menu on C-g.
2021 (xdialog_show): If dialog popped down and no button in the dialog was
2022 pushed, call Fsignal to quit.
2023 (xmenu_show): In no toolkit version, if menu returns NO_SELECT call
2024 Fsignal to quit.
2025
2026 * xfns.c (Fx_file_dialog): Motif/Lesstif version: Pop down on C-g.
2027
2028 * gtkutil.c (xg_initialize): Install bindings for C-g so that
2029 dialogs and menus pop down.
2030
2031 2004-12-27 Kenichi Handa <handa@m17n.org>
2032
2033 * coding.c (code_convert_region): Fix calculation of `ratio'.
2034
2035 2004-12-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2036
2037 * gtkutil.c (update_frame_tool_bar): Make the value of
2038 tool-bar-button-margin control margins of images in tool bar.
2039
2040 * alloc.c (check_depth): New variable.
2041 (overrun_check_malloc, overrun_check_realloc): Only add
2042 overhead and write check pattern if check_depth is 1 (to handle
2043 recursive calls). Increase/decrease check_depth in entry/exit.
2044 (overrun_check_free): Only check for overhead if check_depth is 1.
2045 Increase/decrease check_depth in entry/exit.
2046
2047 2004-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2048
2049 * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK
2050 before touching input_available_clear_time, to avoid accessing it
2051 from multiple threads.
2052
2053 2004-12-23 Jason Rumney <jasonr@gnu.org>
2054
2055 * image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behaviour
2056 of JPEG library.
2057
2058 2004-12-22 Richard M. Stallman <rms@gnu.org>
2059
2060 * emacs.c (main): If batch mode, set Vundo_outer_limit to nil.
2061
2062 * lisp.h (Vundo_outer_limit): Fix decl.
2063
2064 * undo.c (Vundo_outer_limit): Replaces undo_outer_limit.
2065 Uses changed.
2066 (syms_of_undo): Initialize appropriately.
2067 (truncate_undo_list): If it's nil, there's no limit.
2068
2069 2004-12-22 Kenichi Handa <handa@m17n.org>
2070
2071 * xselect.c (Fx_get_cut_buffer_internal): Return a unibyte string.
2072
2073 2004-12-21 Richard M. Stallman <rms@gnu.org>
2074
2075 * eval.c (unwind_to_catch): Clear immediate_quit.
2076
2077 * xdisp.c (get_next_display_element): Display codes 8a0 and 8ad
2078 specially as `\ ' and `\-'.
2079
2080 * keyboard.c (kbd_buffer_store_event_hold):
2081 In the code for while-no-input, handle immediate_quit.
2082
2083 * alloc.c (Fgarbage_collect): Update call to truncate_undo_list.
2084 Call that at the very start.
2085 (undo_limit, undo_strong_limit, undo_outer_limit): Move to undo.c.
2086 (syms_of_alloc): Don't define undo-limit,
2087 undo-strong-limit and undo-outer-limit here.
2088
2089 * undo.c (truncate_undo_list): Return void.
2090 Take just one argument, the buffer.
2091 Make it current, and inhibit recursive GC.
2092 Access and update the undo list directly; return void.
2093 Refer to the undo...limit variables directly.
2094 Test undo_outer_limit only after counting the whole current command.
2095 When it's exceeded, call the function in undo-outer-limit-function.
2096 (undo_limit, undo_strong_limit, undo_outer_limit): From alloc.c.
2097 (Vundo_outer_limit_function): New variable.
2098 (syms_of_undo): Define undo-limit, undo-strong-limit
2099 and undo-outer-limit here, and undo-outer-limit-function.
2100 Doc fixes.
2101
2102 * lisp.h (truncate_undo_list): Update decl.
2103
2104 2004-12-21 Piet van Oostrum <piet@cs.uu.nl>
2105
2106 * fileio.c (Fread_file_name): Delete duplicates in
2107 file-name-history when history_delete_duplicates is true.
2108
2109 2004-12-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2110
2111 * macterm.c (mac_do_list_fonts): Fix memory leak
2112
2113 2004-12-20 Richard M. Stallman <rms@gnu.org>
2114
2115 * regex.c (re_match_2_internal) <symend, wordend>:
2116 Fix calls to UPDATE_SYNTAX_TABLE_FORWARD.
2117
2118 2004-12-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2119
2120 * macterm.c (endif, x_font_name_to_mac_font_name):
2121 Use maccentraleurroman instead of maccentraleuropean
2122 (mac_c_string_match, mac_do_list_fonts): Speed up font search by
2123 quickly finding a specific font without needing regexps.
2124
2125 2004-12-15 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2126
2127 * syssignal.h: Declare main_thread.
2128 (SIGNAL_THREAD_CHECK): New macro.
2129
2130 * keyboard.c (input_available_signal): Move thread checking code
2131 to macro SIGNAL_THREAD_CHECK and call that macro.
2132 (interrupt_signal): Call SIGNAL_THREAD_CHECK.
2133
2134 * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.
2135
2136 * emacs.c: Define main_thread.
2137 (main): Initialize main_thread.
2138 (handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
2139 (memory_warning_signal): Call SIGNAL_THREAD_CHECK.
2140
2141 * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.
2142
2143 * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.
2144
2145 * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.
2146
2147 * process.c (send_process_trap, sigchld_handler):
2148 Call SIGNAL_THREAD_CHECK.
2149
2150 * data.c (arith_error): Call SIGNAL_THREAD_CHECK.
2151
2152 * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
2153
2154 * xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
2155 returning when xg_ignore_gtk_scrollbar is true.
2156
2157 2004-12-14 Kim F. Storm <storm@cua.dk>
2158
2159 * keyboard.c (read_char): Save and restore echo_string when
2160 handling input method.
2161
2162 2004-12-13 Richard M. Stallman <rms@gnu.org>
2163
2164 * eval.c (syms_of_eval) <quit-flag>: Doc fix.
2165
2166 * keyboard.c (Vthrow_on_input): New variable.
2167 (syms_of_keyboard): Defvar and initialize it.
2168 (kbd_buffer_store_event_hold): Handle Vthrow_on_input.
2169
2170 * lisp.h (QUIT): Check for Vthrow_on_input.
2171 (Vthrow_on_input): Declare it.
2172
2173 2004-12-13 Kim F. Storm <storm@cua.dk>
2174
2175 * xdisp.c (set_iterator_to_next): Reset stop_charpos after display
2176 vector.
2177
2178 2004-12-12 Richard M. Stallman <rms@gnu.org>
2179
2180 * indent.c (Fvertical_motion): Call move_it_by_lines even if LINES = 0.
2181
2182 * minibuf.c (Fall_completions): Add var `zero' and use it in loop.
2183 (Ftry_completion): Really use outer `zero'; eliminate inner one.
2184
2185 2004-12-12 Kenichi Handa <handa@m17n.org>
2186
2187 * term.c (encode_terminal_code): Fix previous change.
2188
2189 2004-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
2190
2191 * keyboard.c (handle_async_input): Remove pthread mutex handling.
2192 (input_available_signal): Move pthread thingy to !SYNC_INPUT branch.
2193
2194 * syntax.c (Fforward_word): Avoid non-idempotent side-effects
2195 in macro arguments.
2196
2197 * minibuf.c (Ftry_completion, Fall_completions): Don't use
2198 XFASTINT blindly.
2199
2200 * emacs.c (main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT.
2201
2202 2004-12-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2203
2204 * w32term.c (x_calc_absolute_position): Remove calculation of
2205 difference between inner and outer window. Don't subtract difference
2206 for left and top calculations.
2207
2208 * xterm.c (x_calc_absolute_position): Don't subtract outer_pixel_diff
2209 for left and top calculations. Remove call to x_real_positions.
2210 [Bug report by Drew Adams in November]
2211 (x_check_expected_move): Do not set change_gravity to 1 when calling
2212 x_set_offset.
2213
2214 2004-12-08 Richard M. Stallman <rms@gnu.org>
2215
2216 * xdisp.c (get_next_display_element): Use `escape-glyph' for
2217 control chars and escaped octal codes.
2218 (Qescape_glyph): New variable.
2219 (syms_of_xdisp): Initialize it.
2220 (escape_glyph_face): New variable.
2221 (redisplay_window): Initialize it.
2222
2223 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
2224
2225 * image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE)
2226 (init_image): Use 1 rather than TRUE. TRUE's not always defined.
2227
2228 2004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2229
2230 * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
2231 reset_malloc_hooks.
2232
2233 * keyboard.c (handle_async_input, input_available_signal):
2234 Add ! defined (SYSTEM_MALLOC) around thread code.
2235
2236 * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
2237
2238 2004-12-07 Stefan Monnier <monnier@iro.umontreal.ca>
2239
2240 * eval.c (init_eval_once): Increase max_specpdl_size to 1000.
2241
2242 * config.in: Regenerate.
2243
2244 2004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2245
2246 * xmenu.c (Fx_popup_menu): Correct documentation about position.
2247 (xmenu_show): Do not call XTranslateCoordinates. Adjust position
2248 if not given by a mouse click to correspond with x-popup-menu
2249 documentation.
2250
2251 * config.in: Regenerate.
2252
2253 * gtkutil.c: Include signal.h and syssignal.h.
2254 (xg_get_file_name): Block and unblock __SIGRTMIN if defined.
2255
2256 * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
2257 new variables main_thread and alloc_mutex,
2258 define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
2259 emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
2260 If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same as
2261 (UN)BLOCK_INPUT.
2262 (emacs_blocked_free, emacs_blocked_malloc)
2263 (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
2264 (uninterrupt_malloc): Initialize main_thread and alloc_mutex.
2265 (reset_malloc_hooks): New function.
2266
2267 * lisp.h: Declare reset_malloc_hooks.
2268
2269 * emacs.c (Fdump_emacs): Call reset_malloc_hooks.
2270
2271 * keyboard.c: Conditionally include pthread.h
2272 (handle_async_input, input_available_signalt): If not in the main
2273 thread, block signal, send signal to main thread and return.
2274
2275 * gtkutil.c (xg_get_file_with_chooser): Handle local files only.
2276 Set current folder in file chooser if default_filename is a directory.
2277
2278 2004-12-05 Stefan Monnier <monnier@iro.umontreal.ca>
2279
2280 * regex.c (GET_UNSIGNED_NUMBER): Signal an error when reaching the end.
2281 Remove redundant correctness checks.
2282 (regex_compile): Fix up error codes for \{..\} expressions.
2283
2284 2004-12-05 Richard M. Stallman <rms@gnu.org>
2285
2286 * regex.c (regex_compile): Fix end-of-pattern case for space.
2287
2288 2004-12-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2289
2290 * macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
2291 * mac.c (cfstring_create_with_utf8_cstring): Add to prevent
2292 crashes with invalid characters.
2293 * macmenu.c (add_menu_item): Use it.
2294 * image.c (image_load_quartz2d): Likewise.
2295 * macfns.c (x_set_name, x_set_title): Likewise.
2296 (Fx_file_dialog): Likewise. Use constant CFRefs instead of
2297 creating them each time for labels.
2298
2299 2004-12-02 Richard M. Stallman <rms@gnu.org>
2300
2301 * config.in (RE_TRANSLATE_P): If make_number is not a macro,
2302 don't use it here.
2303
2304 * eval.c (Fcalled_interactively_p): Don't check INTERACTIVE.
2305 (interactive_p): Skip Scalled_interactively_p frames
2306 like Sinteractive_p frames.
2307 (unwind_to_catch): Clear handling_signal.
2308
2309 * data.c (Fmake_variable_buffer_local): Doc fix.
2310 (Fmake_local_variable): Doc fix.
2311
2312 * insdel.c (insert_from_string_before_markers)
2313 (insert_from_string): Don't modify buffer on empty insertion.
2314
2315 * window.c (Fget_lru_window, Fget_largest_window): Doc fixes.
2316
2317 2004-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2318
2319 * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
2320 menu text as UTF8 fails.
2321
2322 2004-12-01 Kim F. Storm <storm@cua.dk>
2323
2324 * alloc.c: Add commentary for last change.
2325 (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
2326 sizeof(size_t) != 4.
2327 (overrun_check_malloc, overrun_check_realloc, overrun_check_free):
2328 Use them. Also clear header and trailer of freed memory.
2329 (GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
2330 (string_overrun_cookie): Rename from string_overrun_pattern.
2331 (GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
2332
2333 2004-12-01 Andreas Schwab <schwab@suse.de>
2334
2335 * lisp.h: Declare string_to_multibyte.
2336
2337 2004-12-01 Kenichi Handa <handa@m17n.org>
2338
2339 * w32console.c (w32con_write_glyphs): Decide coding here.
2340 Adjusted for the change of encode_terminal_code.
2341
2342 * term.c (encode_terminal_code): Don't make it "static".
2343
2344 2004-11-30 Kenichi Handa <handa@m17n.org>
2345
2346 * term.c (encode_terminal_buf, encode_terminal_bufsize): New variables.
2347 (encode_terminal_code): Argument changed. Encode all
2348 characters at once, and return a pointer to the result of encoding.
2349 (write_glyphs): Decide coding here. Adjusted for the above change.
2350 (insert_glyphs): Likewise.
2351 (term_init): Initialize encode_terminal_bufsize to 0.
2352
2353 * coding.c (Vcode_conversion_workbuf_name): New variable.
2354 (syms_of_coding): Initialize and staticpro it.
2355 (set_conversion_work_buffer): New function.
2356 (run_pre_post_conversion_on_str): Use it.
2357 (run_pre_write_conversin_on_c_str): New function.
2358
2359 * coding.h (run_pre_write_conversin_on_c_str): Extern it.
2360
2361 2004-11-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2362
2363 * keyboard.c: Don't undef SIGIO
2364 * s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
2365 * Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
2366 (macfns.o): Don't depend on ccl.h.
2367 * macfns.c (mac_frame_parm_handlers): Set handlers for
2368 Qleft_fringe and Qright_fringe.
2369 * macterm.c (mac_fill_rectangle_to_pixmap)
2370 (mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
2371 (mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
2372 Put in #if 0.
2373 (mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
2374 (x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
2375 (XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
2376 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
2377 [!MAC_OS8]: Added ifdef'd out code for os8. Don't use
2378 XDrawImageString. Always draw background and foreground separately.
2379 (x_draw_image_foreground): Use clipping instead of computing the
2380 intersection rectangle.
2381 (x_draw_image_glyph_string): Don't draw an image with mask to a
2382 pixmap.
2383 (x_redisplay_interface): Set flush_display_optional member to 0.
2384 (XTread_socket): Correctly reset the TEConverter
2385 object.
2386
2387 2004-11-30 Kim F. Storm <storm@cua.dk>
2388
2389 * lisp.h: New defines to enable buffer overrun checking.
2390 (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
2391 (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
2392
2393 * alloc.c: Add more checks for buffer overruns.
2394 (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
2395 xmalloc_overrun_check_trailer, overrun_check_malloc)
2396 overrun_check_realloc, overrun_check_free): Add.
2397 (GC_STRING_EXTRA, string_overrun_pattern): Add.
2398 (check_sblock, allocate_string_data, compact_small_strings):
2399 Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
2400 (check_cons_list): Condition on GC_CHECK_CONS_LIST.
2401 (check_string_free_list): Add.
2402 (allocate_string, sweep_strings): Call check_string_free_list.
2403
2404 * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if
2405 XMALLOC_OVERRUN_CHECK to avoid crash during load.
2406
2407 2004-11-29 Kim F. Storm <storm@cua.dk>
2408
2409 * fns.c (concat): Use SAFE_ALLOCA.
2410
2411 2004-11-29 Stefan Monnier <monnier@iro.umontreal.ca>
2412
2413 * sysdep.c (emacs_write): Don't use QUIT.
2414
2415 2004-11-29 Kenichi Handa <handa@m17n.org>
2416
2417 * buffer.c (init_buffer): Set current_buffer->directory to a
2418 multibyte string made by string_to_multibyte.
2419
2420 * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
2421
2422 2004-11-27 Andreas Schwab <schwab@suse.de>
2423
2424 * alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined.
2425
2426 * s/gnu-linux.h: Enable no-op gcpros on ia64.
2427 (GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
2428
2429 * filelock.c (lock_file_1): Call get_boot_time early.
2430 Increase buffer size.
2431
2432 2004-11-27 Eli Zaretskii <eliz@gnu.org>
2433
2434 * lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN
2435 is not defined.
2436
2437 2004-11-27 Kim F. Storm <storm@cua.dk>
2438
2439 * search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:'
2440 marker out of doc string.
2441
2442 2004-11-26 Stefan Monnier <monnier@iro.umontreal.ca>
2443
2444 * s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25,
2445 which was not mentioned in the log.
2446
2447 2004-11-26 Kim F. Storm <storm@cua.dk>
2448
2449 * fringe.c (update_window_fringes): Prefer truncation bitmaps over
2450 angle bitmaps at top/bottom line.
2451
2452 * xdisp.c: Undo recent changes for restoring saved_face_id. Instead,
2453 set it when it->method is set to next_element_from_display_vector.
2454 (setup_for_ellipsis): Add LEN argument. Callers changed.
2455 Set it->saved_face_id.
2456 (get_next_display_element): Use loop instead of recursion.
2457 Set it->saved_face_id. Combine duplicate code for ctr chars.
2458 (next_element_from_display_vector): Do not set it->saved_face_id.
2459 (next_element_from_ellipsis): Use setup_for_ellipsis.
2460
2461 2004-11-26 Eli Zaretskii <eliz@gnu.org>
2462
2463 * eval.c (Fdefvar): Declare pdl from last change as `volatile' to
2464 prevent compiler warnings.
2465
2466 2004-11-25 Stefan Monnier <monnier@iro.umontreal.ca>
2467
2468 * keyboard.c (command_loop_1): Print a message describing the key
2469 the user just pressed when this key has no binding.
2470
2471 * sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
2472 (emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
2473
2474 * lread.c (readchar): Check QUIT when `getc' is interrupted.
2475
2476 2004-11-24 Richard M. Stallman <rms@gnu.org>
2477
2478 * coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
2479
2480 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
2481
2482 2004-11-24 Kim F. Storm <storm@cua.dk>
2483
2484 * xdisp.c (move_it_in_display_line_to, display_line):
2485 Restore saved_face_id also when truncate-lines or hscrolled.
2486
2487 2004-11-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2488
2489 * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
2490 x-use-old-gtk-file-dialog.
2491
2492 * xfns.c: Define x_use_old_gtk_file_dialog.
2493 (syms_of_xfns): Rename use-old-gtk-file-dialog to x-... Move it
2494 outside ifdef USE_GTK.
2495
2496 2004-11-23 Stefan Monnier <monnier@iro.umontreal.ca>
2497
2498 * coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
2499 Don't use XFASTINT blindly.
2500
2501 * config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly.
2502
2503 * indent.c (skip_invisible): Avoid non-idempotent side-effects
2504 in macro arguments.
2505
2506 * keymap.c (Flookup_key): Check INTEGERP before XINT.
2507
2508 * lread.c (oblookup): Don't use XFASTINT blindly.
2509
2510 * window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int.
2511 (decode_next_window_args, window_loop): Don't use XFASTINT blindly.
2512
2513 2004-11-23 Kim F. Storm <storm@cua.dk>
2514
2515 * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
2516 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
2517
2518 * xfaces.c (lookup_named_face): Add signal_p arg. Return -1 if
2519 signal_p is zero and face name is unknown.
2520 (Fx_list_fonts): Don't signal error in lookup_named_face.
2521 (Fface_font): Signal error in lookup_named_face.
2522 (ascii_face_of_lisp_face): Likewise.
2523
2524 * dispextern.h (lookup_named_face): Fix prototype.
2525
2526 * xdisp.c (handle_single_display_prop): Don't signal error in
2527 lookup_named_face for unknown fringe face name.
2528 (highlight_trailing_whitespace): Don't signal error in
2529 lookup_named_face if trailing-whitespace face unknown.
2530 (calc_line_height_property): Don't signal error in
2531 lookup_named_face if specified face name is unknown.
2532
2533 * fringe.c (update_window_fringes): Show top row indicator if
2534 window has header-line. Don't show arrow at bob and eob
2535 if the boundary indicators are not used.
2536 (Fset_fringe_bitmap_face): Signal error in lookup_named_face.
2537
2538 * window.c (set_window_buffer): Clear display_error_modiff.
2539
2540 2004-11-22 Kim F. Storm <storm@cua.dk>
2541
2542 * fringe.c (update_window_fringes): Provide sensible fall-back
2543 value for non-nil indicate-buffer-boundaries setting.
2544
2545 2004-11-22 Markus Rost <rost@ias.edu>
2546
2547 * minibuf.c (Fminibuffer_complete_and_exit): Fix previous change.
2548
2549 2004-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
2550
2551 * eval.c (Fdefvar): Warn when var is let-bound but globally void.
2552
2553 2004-11-21 Kim F. Storm <storm@cua.dk>
2554
2555 * xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA.
2556
2557 * xterm.c (x_clip_to_row): Add area arg. Callers changed.
2558 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
2559
2560 * w32term.c (w32_clip_to_row): Add area arg. Callers changed.
2561 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
2562
2563 * macterm.c (x_clip_to_row): Add area arg. Callers changed.
2564 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
2565
2566 * xdisp.c (move_it_in_display_line_to, display_line):
2567 Restore saved_face_id if overflow-newline-into-fringe is enabled and
2568 line is continued before or in middle of element from display vector.
2569
2570 * indent.c (Fvertical_motion): Fix last change. Use another
2571 method to detect if iterator moved too far ahead after reseat.
2572
2573 * xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro. Do not
2574 expand matrix width for overflow in zero-width area.
2575 (append_glyph, append_composite_glyph, produce_image_glyph)
2576 (append_stretch_glyph): Use it to avoid loop in redisplay.
2577 (note_mode_line_or_margin_highlight): Don't let help-echo from
2578 string override help-echo from image map.
2579
2580 2004-11-20 Luc Teirlinck <teirllm@auburn.edu>
2581
2582 * fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument.
2583 * callint.c (Fcall_interactively): Ditto.
2584
2585 2004-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
2586
2587 * minibuf.c (Fminibuffer_complete_and_exit):
2588 Fixup the case of the completed value, for case-indep completion.
2589
2590 2004-11-20 Richard M. Stallman <rms@gnu.org>
2591
2592 * lisp.h (Fread_from_minibuffer): Add arg in decl.
2593
2594 * minibuf.c (read_minibuf): New arg KEEP_ALL. Callers changed.
2595 (Fread_from_minibuffer): New arg KEEP_ALL. Callers changed.
2596
2597 * search.c (Vsearch_spaces_regexp):
2598 Rename from Vsearch_whitespace_regexp. All uses changed.
2599
2600 2004-11-20 Thien-Thi Nguyen <ttn@gnu.org>
2601
2602 * eval.c (init_eval_once): Increase `max_specpdl_size' to 650.
2603
2604 2004-11-19 Richard M. Stallman <rms@gnu.org>
2605
2606 * search.c (Vsearch_whitespace_regexp): New variable.
2607 (syms_of_search): Defvar it.
2608 (compile_pattern_1): Call re_set_whitespace_regexp with it.
2609 (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
2610 is non-nil.
2611 (struct regexp_cache): New element whitespace_regexp.
2612 (syms_of_search): Initialize whitespace_regexp elements.
2613 (compile_pattern): Compare whitespace_regexp elements.
2614 (compile_pattern_1): Set whitespace_regexp elements.
2615
2616 * regex.c (regex_compile): Substitute whitespace_regexp
2617 for spaces, if it is nonzero.
2618 (whitespace_regexp): New variable.
2619 (re_set_whitespace_regexp): New function.
2620
2621 2004-11-19 Kim F. Storm <storm@cua.dk>
2622
2623 * indent.c (Fvertical_motion): Fix last change.
2624
2625 2004-11-18 Kim F. Storm <storm@cua.dk>
2626
2627 * indent.c (Fvertical_motion): Undo 2004-11-16 change.
2628 Instead, move back again if reseating moves too far ahead.
2629
2630 2004-11-17 Luc Teirlinck <teirllm@auburn.edu>
2631
2632 * xdisp.c (message3): Call clear_message.
2633
2634 2004-11-17 Kim F. Storm <storm@cua.dk>
2635
2636 * xdisp.c (erase_phys_cursor): Adjust cursor row visible height.
2637
2638 2004-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2639
2640 * gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW.
2641
2642 * xmenu.c (x_menu_in_use): Remove.
2643 (x_menu_set_in_use): Also set popup_activated_flag.
2644
2645 * xfns.c (Fx_file_dialog): Call popup_activated instead of
2646 x_menu_in_use. Call x_menu_set_in_use in Motif version also.
2647
2648 * xterm.h: (x_menu_in_use): Remove.
2649
2650 2004-11-16 Richard M. Stallman <rms@gnu.org>
2651
2652 * keymap.c (Fmap_keymap): New arg SORT-FIRST.
2653 Use map-keymap-internal to implement that.
2654
2655 * indent.c (Fvertical_motion): In batch mode, use vmotion directly.
2656
2657 2004-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
2658
2659 * xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's
2660 a window before using XWINDOW.
2661
2662 * window.c (make_window, Fselect_window, make_dummy_parent)
2663 (save_window_save):
2664 * frame.c (make_frame):
2665 * fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments.
2666
2667 * lisp.h (NILP): Use EQ rather than XFASTINT.
2668
2669 2004-11-16 Kim F. Storm <storm@cua.dk>
2670
2671 * fringe.c (Fdefine_fringe_bitmap): Always set 'h'. Simplify.
2672
2673 * indent.c (Fvertical_motion): Fix last change. Only reseat when
2674 moving backwards.
2675
2676 2004-11-16 Luc Teirlinck <teirllm@auburn.edu>
2677
2678 * dispextern.h: Extern reseat_at_previous_visible_line_start.
2679
2680 2004-11-16 Kenichi Handa <handa@m17n.org>
2681
2682 * xdisp.c (display_mode_element): Fix previous change (calculate
2683 end position of substring to display correctly).
2684
2685 2004-11-16 Kim F. Storm <storm@cua.dk>
2686
2687 * keyboard.c (Fposn_at_point): Remove extra */ after doc string.
2688 Reported by Andrew M. Scott.
2689
2690 2004-11-15 Kim F. Storm <storm@cua.dk>
2691
2692 * fns.c (Fsafe_plist_get): New defun.
2693 (syms_of_fns): Defsubr it.
2694
2695 * lisp.h (Fsafe_plist_get): Add EXFUN.
2696
2697 * xdisp.c (store_mode_line_string, produce_stretch_glyph):
2698 Use Fsafe_plist_get.
2699 (note_mode_line_or_margin_highlight, note_mouse_highlight):
2700 Fix image map element parsing. Use Fsafe_plist_get.
2701
2702 2004-11-15 Richard M. Stallman <rms@gnu.org>
2703
2704 * xdisp.c (get_next_display_element): Fix previous change.
2705
2706 2004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2707
2708 * window.c (shrink_windows): Handle special case of one window left
2709 when trying to shrink the final reminder. Grow windows if
2710 total_removed is less than total_shrink.
2711
2712 * xmenu.c (pop_down_menu): Remove global variable current_menu,
2713 extract pointer from arg with XSAVE_VALUE.
2714 (create_and_show_popup_menu, create_and_show_dialog, xmenu_show):
2715 Construct arg to record_unwind_protect with make_save_value.
2716
2717 2004-11-13 Richard M. Stallman <rms@gnu.org>
2718
2719 * xdisp.c (reseat_at_previous_visible_line_start): No longer static.
2720 (get_next_display_element): Fix previous change to apply only to \n.
2721
2722 * indent.c (Fvertical_motion): Scan to PT from start of line to
2723 make iterator consistent.
2724
2725 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
2726
2727 2004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2728
2729 * gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT.
2730
2731 * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
2732 Record unwind with clean_up_file_dialog.
2733
2734 * xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event):
2735 Declare.
2736
2737 * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
2738
2739 2004-11-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2740
2741 * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
2742 (xg_file_sel_destroy): Remove.
2743 (xg_file_response_cb, pop_down_file_dialog)
2744 (xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
2745 New functions.
2746 (xg_get_file_with_chooser, xg_get_file_with_selection):
2747 Take new arg func, set it to xg_get_file_name_from_chooser/selector.
2748 Move common code to xg_get_file_name. Return widget created.
2749 (xg_get_file_name): Set name, transient for, modal and destroy
2750 with parent here. Connect response signal to xg_file_response_cb,
2751 connect delete-event to gtk_true. Record pop_down_file_dialog
2752 for unwind. Do event loop and call x_menu_wait_for_event in loop.
2753 (xg_create_widget): Make dialogs modal.
2754
2755 * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
2756 Lisp_Object.
2757 (popup_get_selection): Move unwind protect ...
2758 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
2759 Move destroy of widget to pop_down_menu.
2760 (popup_widget_loop): Move unwind protect ...
2761 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
2762 Move destroy of widget to pop_down_menu.
2763 (pop_down_menu): BLOCK_INPUT and destroy widget/window.
2764 (xmenu_show): Record unwind pop_down_menu. Move XMenuDestroy,
2765 x_mouse_leave and grabbed = 0 to pop_down_menu.
2766
2767 2004-11-13 Kim F. Storm <storm@cua.dk>
2768
2769 * xdisp.c (make_cursor_line_fully_visible_p): New variable.
2770 (syms_of_xdisp): DEFVAR_BOOL it.
2771 (make_cursor_line_fully_visible, try_cursor_movement)
2772 (try_window_id): Use it.
2773
2774 2004-11-12 Kim F. Storm <storm@cua.dk>
2775
2776 * dispextern.h (struct glyph_row): New member extra_line_spacing.
2777 (struct it): New member max_extra_line_spacing.
2778 (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
2779 (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
2780 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
2781 part of last line is only extra line spacing (so the text on the
2782 line is fully visible). Use helper macros.
2783 Add W arg (to use them). All callers changed.
2784 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
2785 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
2786
2787 * window.c (window_scroll_pixel_based, Frecenter):
2788 Use move_it_vertically_backward directly.
2789 (Frecenter): Fix calculation of new start pos for negative arg.
2790 Before, the new start pos was sometimes chosen too far back, so
2791 the last line became only partially visible, and thus would be
2792 either only semi-visible or automatically scrolled to the middle
2793 of the window by redisplay.
2794
2795 * xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
2796 (move_it_vertically_backward): Don't recure to move further back.
2797 (move_it_vertically): Remove superfluous condition.
2798 (move_it_by_lines): Clear last_height when moved 0 lines.
2799 (resize_mini_window): Use it.max_extra_line_spacing.
2800 (display_tool_bar_line): Clear row->extra_line_spacing.
2801 (try_scrolling): Use move_it_vertically_backward directly.
2802 (redisplay_window): Likewise.
2803 (compute_line_metrics): Set row->extra_line_spacing.
2804 (display_line, display_string): Likewise.
2805 (x_produce_glyphs): Update it->max_extra_line_spacing.
2806
2807 * xmenu.c (pop_down_menu): Return nil.
2808
2809 2004-11-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2810
2811 * xmenu.c (x_menu_wait_for_event): New function.
2812 (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
2813 to handle timers.
2814 (popup_widget_loop): Add argument do_timers.
2815 (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
2816 do_timers to popup_widget_loop.
2817 (xmenu_show): Call XMenuActivateSetWaitFunction so that
2818 x_menu_wait_for_event is called by XMenuActivate.
2819 (create_and_show_popup_menu): Pass 1 for do_timers to
2820 popup_get_selection.
2821 (pop_down_menu): New function.
2822 (popup_get_selection, popup_widget_loop): Unwind protect to
2823 pop_down_menu.
2824 (popup_widget_loop): Add argument widget.
2825 (create_and_show_popup_menu, create_and_show_dialog): Pass new
2826 argument widget to popup_widget_loop.
2827
2828 2004-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
2829
2830 * keymap.c (Fkeymap_prompt): Accept symbol keymaps.
2831
2832 2004-11-09 Kim F. Storm <storm@cua.dk>
2833
2834 * xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
2835 Fix various comments referring to XEvents instead of input events.
2836 (x_queue_event): Fix format strings.
2837 (x_stop_queuing_selection_requests): Likewise.
2838
2839 * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
2840 (pint2hrstr): Add extra braces to silence compiler.
2841
2842 * print.c (print_object): Fix format string.
2843
2844 * lread.c (read1): Fix next_char matching.
2845
2846 * lisp.h (Fdelete): Add EXFUN.
2847 (replace_range_2): Add prototype.
2848
2849 * keyboard.c (read_avail_input): Remove unused variable 'discard'.
2850
2851 * intervals.h (NULL_INTERVAL_P): Add separate version when
2852 ENABLE_CHECKING is not defined to silence compiler.
2853 (compare_string_intervals): Add prototype.
2854
2855 * fringe.c (destroy_fringe_bitmap): Fix return type.
2856 (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
2857
2858 * emacs.c (Fdump_emacs): Fix format string.
2859
2860 * doc.c: Include <ctype.h>.
2861 (Fsubstitute_command_keys): Remove unused variable 'firstkey'.
2862
2863 * data.c (store_symval_forwarding): Remove unused variables.
2864
2865 * callint.c (Fcall_interactively): Remove unused variable 'funcar'.
2866
2867 2004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2868
2869 * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
2870 to ${OLDXMENU}.
2871
2872 2004-11-09 Kim F. Storm <storm@cua.dk>
2873
2874 * process.c (Fmake_network_process): Remove kludge for interrupted
2875 connects on BSD. If connect is interrupted, just close socket and
2876 start over rather than sleeping and retry with same socket.
2877
2878 2004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2879
2880 * .cvsignore: Add buildobj.lst.
2881
2882 * doc.c: New variable Vbuild_files.
2883 (Fsnarf_documentation): If Vbuild_files is nil, populate it with
2884 file names from buildobj.lst. Only attach docstrings from files
2885 that are in Vbuild_files.
2886 (syms_of_doc): Defvar Vbuild_files.
2887
2888 * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
2889 and w32*.o.
2890 (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
2891 (mostlyclean): Rm buildobj.lst
2892
2893 * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
2894 is linked.
2895
2896 2004-11-09 Kim F. Storm <storm@cua.dk>
2897
2898 * fringe.c (update_window_fringes): Update fringe bitmaps if
2899 cur and row ends_at_zv_p differs. If bitmaps of a row is updated,
2900 also update previous row to get rid of misc. artifacts.
2901
2902 2004-11-08 Kim F. Storm <storm@cua.dk>
2903
2904 * xdisp.c (fast_find_position): Fix start pos if header line present.
2905 (note_mouse_highlight): Clear mouse face if we move out of text area.
2906
2907 2004-11-08 Eli Zaretskii <eliz@gnu.org>
2908
2909 * editfns.c: Move #include "systime.h" before <sys/resource.h>.
2910 Don't include <sys/time.h> explicitly.
2911 Include <stdio.h> unconditionally, not just on MacOS.
2912
2913 2004-11-08 Kenichi Handa <handa@m17n.org>
2914
2915 * fontset.c (fontset_pattern_regexp): Cancel my previous change;
2916 don't pay attention to '\' before '*'.
2917 (fontset_pattern_regexp): Change the meaning of the second arg.
2918 (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
2919 (check_fontset_name): Try NAME as literal at first, and if it
2920 failes, try NAME as pattern.
2921
2922 2004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2923
2924 * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
2925
2926 2004-11-07 Andreas Schwab <schwab@suse.de>
2927
2928 * lisp.h (Fmsdos_downcase_filename): Declare.
2929 * dired.c (Fmsdos_downcase_filename): Don't declare here.
2930 * fileio.c: Likewise.
2931
2932 2004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2933
2934 * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
2935 comparisons with integers instead of Lisp_Object address.
2936 (Fmsdos_set_keyboard): Declare argument allkeys.
2937
2938 * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
2939
2940 * dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid
2941 int/Lisp_Object mixup.
2942
2943 * fileio.c: Ditto.
2944
2945 2004-11-06 Steven Tamm <steventamm@mac.com>
2946
2947 * editfns.c: Need to include sys/time.h before resource.h on darwin.
2948
2949 2004-11-06 Richard M. Stallman <rms@gnu.org>
2950
2951 * callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
2952
2953 * xfaces.c (merge_named_face): GCPRO the face_name in the
2954 named_merge_point struct that we make.
2955 (merge_face_heights): Eliminate GCPRO arg. All callers changed.
2956
2957 * keyboard.c (command_loop_1): Change Vtransient_mark_mode
2958 before deciding whether to inactivate mark.
2959
2960 2004-11-06 Lars Brinkhoff <lars@nocrew.org>
2961
2962 * config.in: Regenerate (add HAVE_GETRUSAGE).
2963 * editfns.c (Fget_internal_run_time): New function.
2964 (syms_of_data): Defsubr it.
2965 * fns.c (sxhash): As far as possible, merge calculation of
2966 hash code for symbols and strings.
2967
2968 2004-11-06 Eli Zaretskii <eliz@gnu.org>
2969
2970 * frame.c (syms_of_frame): Fix the example in the doc string.
2971
2972 2004-11-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2973
2974 * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
2975
2976 * xmenu.c (popup_get_selection, create_and_show_popup_menu)
2977 (create_and_show_dialog): Revert change from 2004-10-31.
2978
2979 2004-11-05 Luc Teirlinck <teirllm@auburn.edu>
2980
2981 * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
2982
2983 2004-11-05 Kim F. Storm <storm@cua.dk>
2984
2985 * print.c (print_object): Print Lisp_Misc_Save_Value objects.
2986
2987 * fileio.c (Ffile_modes): Doc fix.
2988 (auto_save_1): Check for Ffile_modes nil value.
2989
2990 2004-11-05 Kim F. Storm <storm@cua.dk>
2991
2992 * xselect.c (struct selection_event_queue, selection_queue)
2993 (x_queue_selection_requests, x_queue_event)
2994 (x_start_queuing_selection_requests)
2995 (x_stop_queuing_selection_requests): Add new queue for selection
2996 input events to replace previous XEvent queue in xterm.c.
2997 (queue_selection_requests_unwind): Adapt to new queue.
2998 (x_reply_selection_request): Adapt to new queue.
2999 Unexpect wait_object in case of x errors (memory leak).
3000 (x_handle_selection_request, x_handle_selection_clear): Make static.
3001 (x_handle_selection_event): New function. May queue selection events.
3002 (wait_for_property_change_unwind): Use save_value instead of cons.
3003 Clear property_change_reply_object.
3004 (wait_for_property_change): Abort if already waiting.
3005 Use save_value instead of cons for unwind data.
3006 (x_handle_property_notify): Skip events already arrived, but don't
3007 free them, as "arrived" field is checked by wait_for_property_change,
3008 and it will be freed by unwind or explicit unexpect_property_change.
3009 (x_get_foreign_selection): Add to new queue.
3010 (receive_incremental_selection): Don't unexpect wait_object when done
3011 as it has already been freed by previous wait_for_property_change.
3012
3013 * xterm.h (x_start_queuing_selection_requests)
3014 (x_stop_queuing_selection_requests, x_handle_selection_request)
3015 (x_handle_selection_clear): Remove prototypes.
3016 (x_handle_selection_event): Add prototype.
3017
3018 * xterm.c (handle_one_xevent): Don't queue X selection events
3019 here, it may be too late if we start queuing after we have already
3020 stored some selection events into the kbd buffer.
3021 (struct selection_event_queue, queue, x_queue_selection_requests)
3022 (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
3023 (x_stop_queuing_selection_requests): Remove/move to xselect.c.
3024 (x_catch_errors_unwind): Block input around final XSync.
3025
3026 * keyboard.h (kbd_buffer_unget_event): Add prototype.
3027
3028 * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
3029 (kbd_buffer_unget_event): New function.
3030 (kbd_buffer_get_event, swallow_events): Combine SELECTION events
3031 and use x_handle_selection_event.
3032 (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
3033
3034 2004-11-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3035
3036 * xselect.c (TRACE3): New debug macro.
3037 (x_reply_selection_request): Use it.
3038 (receive_incremental_selection): In call to TRACE0, the name of
3039 a symbol is in xname.
3040
3041 2004-11-05 Kim F. Storm <storm@cua.dk>
3042
3043 * fontset.c (fontset_pattern_regexp): Use unsigned char.
3044
3045 2004-11-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3046
3047 * fileio.c (Fnext_read_file_uses_dialog_p): New function.
3048
3049 * gtkutil.h (use_old_gtk_file_dialog): Declare.
3050
3051 * gtkutil.c: Make use_old_gtk_file_dialog non-static.
3052 (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
3053 * xfns.c (syms_of_xfns): ... to here.
3054
3055 * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
3056 it doesn't start with /.
3057
3058 2004-11-04 Kenichi Handa <handa@m17n.org>
3059
3060 * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
3061 treat it as a literal character.
3062
3063 2004-11-03 Kim F. Storm <storm@cua.dk>
3064
3065 * .gdbinit (ppt): New function.
3066
3067 2004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3068
3069 * xterm.c (x_window_to_scroll_bar): Only call
3070 xg_get_scroll_id_for_window if toolkit scroll bars are used.
3071
3072 * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
3073 of save.
3074
3075 2004-11-02 Andreas Schwab <schwab@suse.de>
3076
3077 * window.c (Fscroll_right): Fix last change.
3078
3079 2004-11-02 Kim F. Storm <storm@cua.dk>
3080
3081 * Makefile.in (callproc.o): Depend on blockinput.h atimer.h systime.h.
3082
3083 2004-11-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3084
3085 * callproc.c (Fcall_process): Block input around vfork.
3086
3087 2004-11-02 Kim F. Storm <storm@cua.dk>
3088
3089 * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
3090 (syms_of_eval): Defsubr it.
3091
3092 2004-11-02 Richard M. Stallman <rms@gnu.org>
3093
3094 * insdel.c (replace_range_2): New function.
3095
3096 * casefiddle.c (casify_region): Handle changes in byte-length
3097 using replace_range_2.
3098
3099 * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
3100
3101 * xdisp.c (back_to_previous_visible_line_start):
3102 Subtract 1 from pos when checking previous newline for invisibility.
3103
3104 * window.c (window_scroll_pixel_based): Update preserve_y
3105 for header line if any.
3106 (Fscroll_left, Fscroll_right): Don't call interactive_p;
3107 use a new second argument instead.
3108
3109 * eval.c (Fcall_interactive_p): New function.
3110 (interactive_p): Don't test INTERACTIVE here.
3111 (Finteractive_p): Doc fix.
3112
3113 * eval.c (Feval): Abort if INPUT_BLOCKED_P.
3114
3115 2004-11-02 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
3116
3117 * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
3118 comparing font names.
3119
3120 2004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3121
3122 * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
3123 Fx_file_dialog if only directories should be read.
3124
3125 * lisp.h: Fx_file_dialog takes 5 parameters.
3126
3127 * xfns.c (Fx_file_dialog): Both Motif and GTK version:
3128 Add parameter only_dir_p.
3129 In Motif version, don't put DEFAULT_FILENAME in filter part of the
3130 dialog, just text field part. Do not add DEFAULT_FILENAME
3131 to list of files if it isn't there.
3132 In GTK version, pass only_dir_p parameter to xg_get_file_name.
3133
3134 * macfns.c (Fx_file_dialog): Add parameter only_dir_p.
3135 Check only_dir_p instead of comparing prompt to "Dired". When using
3136 a save dialog, add option kNavDontConfirmReplacement, change title
3137 to "Enter name", change text for save button to "Ok".
3138
3139 * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
3140 Check only_dir_p instead of comparing prompt to "Dired".
3141
3142 * gtkutil.c (xg_get_file_with_chooser)
3143 (xg_get_file_with_selection): New functions, only defined ifdef
3144 HAVE_GTK_FILE_CHOOSER_DIALOG_NEW and HAVE_GTK_FILE_SELECTION_NEW
3145 respectively.
3146 (xg_get_file_name): Add parameter only_dir_p.
3147 Call xg_get_file_with_chooser or xg_get_file_with_selection
3148 depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
3149 (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
3150
3151 * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
3152
3153 * config.in: Rebuild (added HAVE_GTK_FILE_*).
3154
3155 2004-11-01 Kim F. Storm <storm@cua.dk>
3156
3157 * process.c (connect_wait_mask, num_pending_connects):
3158 Only declare and use them if NON_BLOCKING_CONNECT is defined.
3159 (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
3160 (IF_NON_BLOCKING_CONNECT): New helper macro.
3161 (wait_reading_process_output): Only declare and use local vars
3162 Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
3163
3164 2004-11-01 Andy Petrusenco <Igrek@star-sw.com> (tiny change)
3165
3166 * w32term.c (x_scroll_run): Delete region objects after use.
3167
3168 2004-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3169
3170 * xmenu.c: Add prototypes for forward function declarations.
3171 (popup_get_selection): Remove parameter do_timers, remove call to
3172 timer_check.
3173 (create_and_show_popup_menu, create_and_show_dialog):
3174 Remove parameter do_timers from call to popup_get_selection.
3175
3176 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
3177 tool_bar_items and assign the result to f->tool_bar_items if
3178 not equal. Move BLOCK/UNBLOCK_INPUT from around call to
3179 tool_bar_items to assignment of result.
3180
3181 * atimer.c (alarm_signal_handler): Do not call set_alarm if
3182 pending_atmers is non-zero.
3183
3184 2004-10-31 Kim F. Storm <storm@cua.dk>
3185
3186 * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
3187
3188 2004-10-28 Will <will@glozer.net>
3189
3190 * macterm.c: allow user to assign key modifiers to the Mac Option
3191 key via a 'mac-option-modifier' variable.
3192
3193 2004-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
3194
3195 * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
3196 Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
3197 (x_handle_selection_request, x_handle_selection_clear)
3198 (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
3199
3200 2004-10-28 Richard M. Stallman <rms@gnu.org>
3201
3202 * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
3203
3204 * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
3205
3206 2004-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
3207
3208 * syntax.c (scan_sexps_forward): Give precedence to a 2-char
3209 comment-starter over a 1-char one.
3210
3211 2004-10-27 Richard M. Stallman <rms@gnu.org>
3212
3213 * xdisp.c (get_next_display_element): In mode lines,
3214 treat newline and tab like other control characters.
3215
3216 * editfns.c (Fmessage): Doc fix.
3217
3218 * indent.c (vmotion): When moving up, check the newline before.
3219 Make prevline an int, not a Lisp_Object.
3220
3221 2004-10-27 Kim F. Storm <storm@cua.dk>
3222
3223 * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
3224 Only allocate info and discarded tables once.
3225
3226 * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
3227 (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
3228 (SAFE_FREE): Test it to determine if we need to unwind to free.
3229 Remove size arg. All users changed.
3230 (SAFE_FREE_LISP) Remove. All users changed to use SAFE_FREE.
3231
3232 2004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3233
3234 * gtkutil.c: Put empty line between comment and function body.
3235 (xg_destroy_widgets): Rename from remove_from_container.
3236 Just destroy all widgets in list. Argument wcont removed.
3237 (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
3238 instead of remove_from_container.
3239 (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
3240 (free_frame_tool_bar): Add comment.
3241
3242 * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
3243 is not NULL before strcmp.
3244
3245 2004-10-26 Kim F. Storm <storm@cua.dk>
3246
3247 * callint.c (Fcall_interactively): Add 'U' code to get the
3248 up-event discarded by a previous 'k' or 'K' argument.
3249
3250 2004-10-26 David Kastrup <dak@gnu.org>
3251
3252 * buffer.c (syms_of_buffer): Fix a few typos.
3253
3254 2004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3255
3256 * xsmfns.c: Put empty line between comment and function body.
3257 Use two spaces before comment end.
3258
3259 2004-10-25 Kenichi Handa <handa@m17n.org>
3260
3261 * fontset.c (fontset_pattern_regexp): Optimize for the case that
3262 PATTERN is full XLFD.
3263
3264 2004-10-24 Kenichi Handa <handa@m17n.org>
3265
3266 * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
3267
3268 * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
3269 (regex_compile): Return REG_ERANGEX if appropriate.
3270
3271 2004-10-22 Kenichi Handa <handa@m17n.org>
3272
3273 * editfns.c (Ftranslate_region_internal): New function.
3274 (syms_of_editfns): Defsubr it.
3275
3276 2004-10-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3277
3278 * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
3279
3280 2004-10-21 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
3281
3282 * xterm.h (x_output): New member `xic_base_fontname'.
3283 (FRAME_XIC_BASE_FONTNAME): New macro.
3284 (xic_free_xfontset): Declare.
3285
3286 * xfns.c (xic_create_xfontset): Share fontsets between frames
3287 based on base_fontname.
3288 (xic_free_xfontset): New function.
3289 (free_frame_xic): Use it.
3290 (xic_set_xfontset): Ditto.
3291
3292 * xterm.c (xim_destroy_callback): Ditto.
3293
3294
3295 2004-10-20 B. Anyos <banyos@freemail.hu> (tiny change)
3296
3297 * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
3298
3299 2004-10-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3300
3301 * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
3302 XSync.
3303
3304 * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
3305 New variables and constant.
3306 (main): Calculate heap_bss_diff. If we are dumping and the
3307 heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
3308 and exec ourself again.
3309 (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
3310 print a warning.
3311
3312 * lastfile.c: Make my_endbss and my_endbss_static available on all
3313 platforms.
3314
3315 * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
3316 * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
3317
3318 2004-10-19 Luc Teirlinck <teirllm@auburn.edu>
3319
3320 * data.c (Flocal_variable_if_set_p): Doc fix.
3321
3322 2004-10-19 Jason Rumney <jasonr@gnu.org>
3323
3324 * w32.c (init_environment): Set emacs_dir correctly when running
3325 emacs from the build directory.
3326
3327 2004-10-19 Richard M. Stallman <rms@gnu.org>
3328
3329 * editfns.c (Fdelete_and_extract_region):
3330 If region is empty, return null string.
3331
3332 2004-10-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3333
3334 * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
3335 and canon_width.
3336 (xg_frame_cleared): Remove.
3337
3338 * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
3339 (xg_find_top_left_in_fixed): Remove.
3340 (xg_create_scroll_bar): Put an event box widget between
3341 the scroll bar widget and the edit widget.
3342 (xg_show_scroll_bar): Show the parent widget (the event box).
3343 (xg_remove_scroll_bar): Destroy parent (the event box) also.
3344 (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
3345 Move the parent (the event box) widget inside the fixed widget.
3346 Move window clear to xterm.c.
3347
3348 * gtkutil.h (xg_frame_cleared): Remove.
3349
3350 * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
3351 (x_scroll_bar_create, XTset_vertical_scroll_bar):
3352 Remove arguments left and width to xg_update_scrollbar_pos.
3353 (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
3354
3355 2004-10-19 Kenichi Handa <handa@m17n.org>
3356
3357 * xdisp.c (display_mode_element): Fix display of wide chars.
3358
3359 2004-10-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3360
3361 * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
3362 gdk_window_clear and move gdk_window_process_all_updates after
3363 clear so events are sent to the X server in correct order.
3364
3365 2004-10-18 Kenichi Handa <handa@m17n.org>
3366
3367 * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
3368 comparing font names.
3369 (fs_query_fontset): Use fast_string_match for comparing fontset names.
3370 (list_fontsets): Likewise.
3371
3372 * search.c (fast_string_match_ignore_case): New function.
3373
3374 * lisp.h (fast_string_match_ignore_case): Extern it.
3375
3376 2004-10-17 Kim F. Storm <storm@cua.dk>
3377
3378 * xdisp.c (overlay_arrow_at_row): Return overlay string rather
3379 than bitmap if there is not left fringe.
3380 (get_overlay_arrow_glyph_row): Also used on windows system.
3381 (display_line): Display overlay string if no left fringe.
3382
3383 2004-10-16 Jason Rumney <jasonr@gnu.org>
3384
3385 * w32fns.c (w32_font_match): Encode font name being matched.
3386
3387 2004-10-16 Richard M. Stallman <rms@gnu.org>
3388
3389 * window.c (Fspecial_display_p): Doc fix.
3390
3391 2004-10-15 Stefan Monnier <monnier@iro.umontreal.ca>
3392
3393 * doc.c (Fsubstitute_command_keys): Fix remap-handling.
3394 Don't ignore menus, because where-is-internal already does it for us.
3395
3396 2004-10-15 Kim F. Storm <storm@cua.dk>
3397
3398 * xdisp.c (redisplay_window): Only update fringes and vertical
3399 border on window frames.
3400
3401 2004-10-14 Andreas Schwab <schwab@suse.de>
3402
3403 * m/ia64.h (DATA_SEG_BITS): Don't define.
3404
3405 2004-10-14 Kim F. Storm <storm@cua.dk>
3406
3407 * xterm.h: Include Xutil.h after keysym.h to work around bug
3408 in some X versions.
3409
3410 2004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
3411
3412 * fns.c (map_char_table): Add missing gcpros.
3413
3414 2004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
3415
3416 * keymap.c (get_keymap): An autoload form is not a keymap.
3417
3418 * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
3419
3420 2004-10-13 Kim F. Storm <storm@cua.dk>
3421
3422 * callproc.c (Fcall_process): Simplify handling of display arg.
3423 Resume `display_on_the_fly' once a coding system is determined.
3424
3425 * xdisp.c (redisplay_preserve_echo_area): Fix last change.
3426
3427 2004-10-12 Kim F. Storm <storm@cua.dk>
3428
3429 * xdisp.c (redisplay_preserve_echo_area): Flush display in case
3430 caller, such as call-process, is not going to poll for input.
3431 (calc_line_height_property): Handle case where it->object is nil.
3432
3433 * xterm.c (x_redisplay_interface): Fix flush_display_optional.
3434
3435 2004-10-12 Kenichi Handa <handa@m17n.org>
3436
3437 * xdisp.c (get_next_display_element):
3438 If unibyte_display_via_language_environment is zero, display 8-bit
3439 chars in octal in unibyte buffer.
3440
3441 2004-10-12 Kim F. Storm <storm@cua.dk>
3442
3443 * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
3444 are no ordinary bindings.
3445
3446 2004-10-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3447
3448 * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
3449
3450 2004-10-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3451
3452 * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
3453 (x_lower_frame): Add BLOCK_INPUT around SendBehind.
3454 (make_mac_frame): Add BLOCK_INPUT around the making of a
3455 terminal frame.
3456 (mac_initialize): Add BLOCK_INPUT around carbon initialization.
3457 * macgui.h (mktime): Use emacs_mktime.
3458 * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
3459 Make a cancel file-open dialog be like C-g.
3460 * mac.c (mktime): Use emacs_mktime.
3461 (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
3462 (Fmac_paste_function): Add better error handling for carbon cut/paste.
3463
3464 2004-10-10 Kim F. Storm <storm@cua.dk>
3465
3466 * keyboard.c (timer_resume_idle): New function to resume idle
3467 timer without resetting timers on the idle list.
3468 (read_char): Use timer_resume_idle. Remove local var last_idle_start.
3469 (timer_start_idle, timer_stop_idle): Declare static.
3470 (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
3471
3472 * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
3473
3474 2004-10-08 Steven Tamm <steventamm@mac.com>
3475
3476 * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
3477 * macterm.c (mac_check_for_quit_char): Remove warning for using
3478 NULL where 0 should be used.
3479 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
3480 objc/malloc.h
3481 * mac.c: Include time.h for Tiger compatibility.
3482
3483 2004-10-07 Kim F. Storm <storm@cua.dk>
3484
3485 * xdisp.c (redisplay_window): Fix flicker on vertical line between
3486 windows. Update vertical line after drawing window fringes, but
3487 only if actually drawing any bitmaps--or there is no fringe.
3488
3489 * xterm.c (x_update_window_end): Likewise.
3490 * macterm.c (x_update_window_end): Likewise.
3491 * w32term.c (x_update_window_end): Likewise.
3492
3493 * fringe.c (draw_window_fringes): Return value now indicates if
3494 any fringe bitmaps were redrawn (or there are no fringes).
3495
3496 * dispextern.h (draw_window_fringes): Update prototype.
3497
3498 2004-10-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3499
3500 * macfns.c (mac_get_window_bounds): Add extern.
3501 (x_real_positions): Use mac_get_window_bounds.
3502
3503 * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
3504 xmenu.c (YAILOM).
3505
3506 * macterm.c [!MAC_OSX]: Include Windows.h.
3507 (front_emacs_window): Rename from mac_front_window. All uses
3508 changed. Return the frontmost non-tooltip emacs window.
3509 (mac_get_window_bounds): New function.
3510 (x_calc_absolute_position): Use the difference of width and height
3511 between the inner and outer window.
3512 (x_set_offset): Specify window position by the coordinae of the
3513 outer window. Adjust the position if the title bar is completely
3514 outside the screen.
3515 (app_is_suspended, app_sleep_time): Remove unused variables.
3516 (do_app_resume, do_app_suspend): Remove their contents because
3517 window-activate/deactivate events will do the job.
3518 (do_zoom_window): Remove unused variables. Make compliant to the
3519 standard way of zooming. Set f->left_pos and f->top_pos.
3520 (XTread_socket): Don't use argument `expected'. Don't use
3521 FrontWindow to determine the clicked window. Exclude unprocessed
3522 mouseUp cases in the early stage. Add parentheses to fix operator
3523 precedence.
3524 (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
3525
3526 2004-10-05 Jan Dj\e,Ad\e(Brv. <jan.h.d@swipnet.se>
3527
3528 * config.in: Regenerate.
3529
3530 * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
3531 HAVE_EXECSHIELD.
3532
3533 2004-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3534
3535 * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
3536 a row if Alt or Meta has been found for that row. Also stop scanning
3537 for Keysyms for that row.
3538
3539 2004-10-04 Kim F. Storm <storm@cua.dk>
3540
3541 * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
3542 to list. Include overlay arrow bitmap in return value.
3543
3544 * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
3545 bars with fractional column width. If scroll bar separates two
3546 windows, move it towards the window it belongs to. Only update
3547 the padding area below the scroll bar widget when necessary,
3548 i.e. when scroll bar widget is created, moved, or resized.
3549
3550 * xdisp.c (define_frame_cursor1): Do not change frame cursor
3551 while tracking/dragging mouse.
3552 (x_draw_vertical_border): Do not draw line if frame has scroll bars.
3553
3554 * window.c (coordinates_in_window): Relax check for cursor
3555 on vertial border between mode lines.
3556 (Fset_window_fringes): Do not allow negative widths.
3557 (Fset_window_scroll_bars): Likewise.
3558
3559 * .gdbinit (pp): Shorthand for p ARG + pr.
3560 (ff): New command: flush frame updates (X only).
3561
3562 2004-10-03 Michael Albinus <michael.albinus@gmx.de>
3563
3564 * fileio.c (auto_save_1) Call Ffile_modes for remote files.
3565
3566 2004-09-30 Kenichi Handa <handa@m17n.org>
3567
3568 * process.c (send_process): Free composition data.
3569
3570 * fileio.c (Finsert_file_contents): Free composition data.
3571
3572 * coding.c (code_convert_region): Don't skip ASCIIs if there are
3573 compositions to encode.
3574 (encode_coding_string): Likewise. Free composition data.
3575
3576 2004-09-30 Florian Weimer <fw@deneb.enyo.de>
3577
3578 * coding.c (code_convert_region): Free composition data.
3579
3580 2004-09-29 Kim F. Storm <storm@cua.dk>
3581
3582 * fringe.c: Remove limit on number of bitmaps.
3583 (fringe_bitmaps, fringe_faces): Change to pointers.
3584 (max_fringe_bitmaps): New var.
3585 (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
3586 (init_fringe): Allocate fringe_bitmaps and fringe_faces.
3587
3588 * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
3589 (struct glyph_row): Reorder fringe_bitmap related fields.
3590 (struct it): Likewise.
3591
3592 * w32term.c (fringe_bmp): Change to pointer.
3593 (max_fringe_bmp): New var.
3594 (w32_define_fringe_bitmap): Expand fringe_bmp.
3595 (w32_draw_fringe_bitmap): Check max_fringe_bmp.
3596 (w32_destroy_fringe_bitmap): Likewise.
3597
3598 2004-09-29 Kim F. Storm <storm@cua.dk>
3599
3600 * fringe.c: Simplify last change.
3601 (lookup_fringe_bitmap): New function.
3602 (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
3603 (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
3604 Keep standard bitmaps in Vfringe_bitmaps.
3605 (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
3606 (Fset_fringe_bitmap_face): Likewise.
3607
3608 * dispextern.h (lookup_fringe_bitmap): Add prototype.
3609 (valid_fringe_bitmap_p): Remove prototype.
3610
3611 * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
3612
3613 2004-09-29 Kim F. Storm <storm@cua.dk>
3614
3615 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
3616 (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
3617
3618 * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
3619
3620 * fringe.c (Vfringe_bitmaps): New variable.
3621 (syms_of_fringe): DEFVAR_LISP it.
3622 (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
3623 Change arg to Lisp_Object and fail if not an integer.
3624 (get_fringe_bitmap_name, resolve_fringe_bitmap)
3625 (destroy_fringe_bitmap): New functions.
3626 (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
3627 Use destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and
3628 clear its fringe property.
3629 (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
3630 Fdestroy_fringe_bitmap.
3631 (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
3632 bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps
3633 and set fringe property. Signal error if no free slots.
3634 (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
3635 (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
3636
3637 * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
3638 symbols with a fringe property.
3639
3640 2004-09-27 Kim F. Storm <storm@cua.dk>
3641
3642 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
3643 Doc fix. Format may now be a symbol or alist, not a cons.
3644
3645 * fringe.c (update_window_fringes): Handle new formats of
3646 indicate-buffer-boundaries (symbol or alist). No longer
3647 allow a simple cons.
3648 (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
3649
3650 2004-09-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3651
3652 * config.in: Rebuild.
3653
3654 2004-09-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3655
3656 * config.in: Rebuild.
3657
3658 * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
3659
3660 2004-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
3661
3662 * xterm.c (x_term_init): Work around a bug in some X servers.
3663
3664 2004-09-18 Richard M. Stallman <rms@gnu.org>
3665
3666 * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
3667
3668 * xdisp.c (try_window_reusing_current_matrix):
3669 Handle the case where we reach the old displayed text,
3670 out of sync with the old line boundary.
3671
3672 2004-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
3673
3674 * fileio.c (Finsert_file_contents): Fix case of replacement in a
3675 narrowed buffer.
3676
3677 2004-09-14 Kim F. Storm <storm@cua.dk>
3678
3679 * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
3680
3681 * xfaces.c (Qface_no_inherit): New var.
3682 (syms_of_xfaces): Intern and staticpro it.
3683 (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
3684 (Finternal_copy_lisp_face, update_face_from_frame_parameter):
3685 Don't increment face_change_count when face has non-nil
3686 face-no-inherit property.
3687
3688 2004-09-13 Stefan Monnier <monnier@iro.umontreal.ca>
3689
3690 * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
3691 (Fbyte_code): Remove dead code after `wrong_type_argument'.
3692
3693 * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
3694 before doing the mark_stack_check_gcpros since they're not on the stack.
3695
3696 2004-09-12 Kim F. Storm <storm@cua.dk>
3697
3698 * editfns.c (Fformat): Handle format strings with multiple text
3699 properties. Reverse text property list from the format string,
3700 so the positions are in increasing order.
3701
3702 2004-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3703
3704 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
3705 x_uncatch_errors so that possible protocol errors are delivered.
3706
3707 2004-09-10 Eli Zaretskii <eliz@gnu.org>
3708
3709 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
3710 blockinput.h.
3711 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
3712 charset.h, and coding.h
3713 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
3714 (term.o): Depend on window.h and keymap.h.
3715 (abbrev.o): Depend on syntax.h.
3716 (callint.o): Depend on keymap.h.
3717 (casefiddle.o): Depend on charset.h and keymap.h.
3718 (category.o): Depend on keymap.h.
3719 (coding.o): Depend on dispextern.h.
3720 (cmds.o): Depend on keyboard.h and keymap.h.
3721 (dispnew.o): Depend on indent.h and intervals.h.
3722 (doc.o): Depend on keymap.h.
3723 (editfns.o): Depend on frame.h.
3724 (emacs.o): Depend on dispextern.h.
3725 (fileio.o): Don't depend on ccl.h.
3726 (filelock.o): Depend on charset.h and coding.h.
3727 (frame.o): Depend on w32term.h and macterm.h.
3728 (insdel.o): Depend on region-cache.h.
3729 (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
3730 (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
3731 (search.o): Depend on $(INTERVALS_SRC).
3732 (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
3733 (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
3734 xterm.h, w32term.h, and macterm.h.
3735 (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
3736 w32term.h, and macterm.h.
3737 (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
3738 region-cache.h, xterm.h, w32term.h, and macterm.h.
3739 (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
3740 (data.o): Depend on frame.h.
3741 (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
3742 (print.o): Depend on termchar.h and $(INTERVALS_SRC).
3743 (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
3744 (intervals.o): Depend on keymap.h.
3745
3746 * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
3747 Add debugging print-out to termscript.
3748
3749 2004-09-09 Richard M. Stallman <rms@gnu.org>
3750
3751 * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
3752
3753 2004-09-08 Richard M. Stallman <rms@gnu.org>
3754
3755 * window.c (Fset_window_buffer): Doc fix.
3756
3757 * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
3758
3759 2004-09-08 Dan Nicolaescu <dann@ics.uci.edu>
3760
3761 * minibuf.c (history_delete_duplicates): New variable.
3762 (read_minibuf): Use it.
3763 (syms_of_minibuf): Create the corresponding lisp variable.
3764
3765 2004-09-08 Kim F. Storm <storm@cua.dk>
3766
3767 * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
3768 overlay just before point.
3769
3770 2004-09-07 Luc Teirlinck <teirllm@auburn.edu>
3771
3772 * buffer.h (struct buffer): Add auto_save_file_format field.
3773 * buffer.c (reset_buffer, init_buffer_once):
3774 Handle auto_save_file_format field.
3775 (syms_of_buffer): Add DEFVAR_PER_BUFFER for
3776 `buffer-auto-save-file-format'.
3777 * fileio.c: Delete declaration for removed Vauto_save_file_format.
3778 (build_annotations): Adapt to replacement of
3779 `auto-save-file-format' with the new buffer-local variable
3780 `buffer-auto-save-file-format'.
3781 (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
3782
3783 2004-09-07 Jason Rumney <jasonr@gnu.org>
3784
3785 * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
3786
3787 * w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]:
3788 Handle Unicode menu titles.
3789
3790 2004-09-07 Kim F. Storm <storm@cua.dk>
3791
3792 * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor'
3793 property from text property or overlay strings at point.
3794
3795 2004-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
3796
3797 * xmenu.c (update_submenu_strings): YAILOM.
3798 (set_frame_menubar): Make sure last_i is initialized.
3799
3800 2004-09-03 Jason Rumney <jasonr@gnu.org>
3801
3802 * w32menu.c (_widget_value): Add lname and lkey.
3803 (digest_single_submenu): Set lname and lkey in widget_value
3804 instead of name and key.
3805 (update_submenu_strings): New function.
3806 (set_frame_menubar): Remove call to inhibit_garbage_collection,
3807 call update_submenu_strings.
3808
3809 * w32menu.c (globals_of_w32menu): Check for Unicode API.
3810 (digest_single_submenu, w32_menu_show): Encode menu strings as
3811 UTF-8 if Unicode API is available.
3812 (utf8to16): New function.
3813 (add_menu_item): Use it when calling Unicode API.
3814
3815 2004-09-03 Kim F. Storm <storm@cua.dk>
3816
3817 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
3818 in overlay or text-property strings; set cursor on corresponding
3819 glyph rather than at end of the string.
3820
3821 2004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3822
3823 * macfns.c (x_real_positions): Save the current window port and
3824 set a new one before obtaining the global coordinate.
3825 Use FRAME_MAC_WINDOW.
3826 (x_set_name, x_set_title): Encode title to UTF8.
3827 Use SetWindowTitleWithCFString.
3828 (Fx_server_version): Get correct OS version.
3829
3830 * macmenu.c (add_menu_item): Remove unused variable `i'.
3831 Don't let separator items destroy refence constants of other menu items.
3832
3833 * macterm.c (x_update_end): Move SetPortWindowPort to inside
3834 BLOCK_INPUT.
3835 (x_set_offset): Use FRAME_MAC_WINDOW.
3836
3837 * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
3838 nontext_cursor if it is on a scroll bar.
3839
3840 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
3841 Carbon support.
3842 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
3843 Use LIBS_CARBON.
3844
3845 2004-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3846
3847 * xfns.c (x_set_name_internal): New function. Check if we shall call
3848 xfree before ENCODE_UTF_8.
3849 (x_set_name, x_set_title): Call x_set_name_internal.
3850
3851 2004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
3852
3853 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
3854 reload it.
3855
3856 2004-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3857
3858 * macmenu.c (_widget_value): Add lname and lkey.
3859 (single_submenu): Set lname and lkey in widget_value
3860 instead of name and key.
3861 (update_submenu_strings): New function.
3862 (set_frame_menubar): Remove call to inhibit_garbage_collection,
3863 call update_submenu_strings.
3864
3865 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
3866 instead of name and key.
3867 (update_submenu_strings): New function.
3868 (set_frame_menubar): Remove call to inhibit_garbage_collection,
3869 call update_submenu_strings.
3870
3871 * gtkutil.h (_widget_value): Added lname and lkey.
3872
3873 2004-08-30 Steven Tamm <steventamm@mac.com>
3874
3875 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
3876 by using different names for inner loop variables.
3877
3878 2004-08-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3879
3880 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
3881 from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
3882
3883 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
3884 tool bar items is 0.
3885
3886 2004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3887
3888 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
3889 strings in menu items.
3890 (single_submenu): Use ENCODE_MENU_STRING
3891 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
3892 button release isn't passed to event loop
3893 (add_menu_item): Use SetMenuItemWithCFString
3894
3895 2004-08-26 Steven Tamm <steventamm@mac.com>
3896
3897 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
3898 tool-bar/menu click.
3899 * macfns.c (Fx_file_dialog): Implement using NavServices.
3900
3901 2004-08-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3902
3903 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
3904
3905 * xfns.c (x_window_to_frame, x_any_window_to_frame)
3906 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
3907 (x_top_window_to_frame): Return 0 if wdesc is None.
3908
3909 2004-08-22 Richard M. Stallman <rms@gnu.org>
3910
3911 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
3912 HAVE_TERMIOS]: If there's no char for this signal, drop through
3913 and use system calls.
3914
3915 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
3916
3917 2004-08-20 Kim F. Storm <storm@cua.dk>
3918
3919 * process.c (wait_reading_process_output): Rename from
3920 wait_reading_process_input. All uses changed.
3921 (wait_reading_process_output_1): Rename from
3922 wait_reading_process_input_1. All uses changed.
3923
3924 * dispnew.c (Fsleep_for): Remove obsolete code.
3925
3926 2004-08-20 Kenichi Handa <handa@m17n.org>
3927
3928 * syntax.c (skip_chars): Fix for unibyte case.
3929
3930 2004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
3931
3932 * syntax.c (char_quoted): Mixup byte/char pos.
3933 (back_comment): Fixup globals in all cases.
3934
3935 2004-08-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3936
3937 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
3938 passing it to gtk_window_set_title.
3939
3940 2004-08-19 Kim F. Storm <storm@cua.dk>
3941
3942 * process.c (wait_reading_process_input): Clean up.
3943 Add wait_for_cell, wait_proc, and just_wait_proc args
3944 to avoid overloading `read_kbd' and `do_display' args.
3945 Change read_kbd arg to int. All callers changed.
3946
3947 * process.c (process_send_signal): Use CDISABLE.
3948
3949 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
3950
3951 2004-08-18 Kim F. Storm <storm@cua.dk>
3952
3953 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
3954 forward to wait_reading_process_input via DO_DISPLAY arg.
3955 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
3956 object, only process output from that process; also inhibit
3957 running timers if DO_DISPLAY==-2.
3958
3959 2004-08-17 Kim F. Storm <storm@cua.dk>
3960
3961 * process.c (process_send_signal): Fix last change--use
3962 _POSIX_VDISABLE instead of CVDISABLE when available.
3963
3964 2004-08-16 Richard M. Stallman <rms@gnu.org>
3965
3966 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
3967 Set VQUIT and VINTR chars to the standard ones if they are unset.
3968 [AIX]: Don't do that here. And don't force VINTR to standard
3969 when SIGNALS_VIA_CHARACTERS.
3970
3971 * process.c (process_send_signal)
3972 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
3973 Do nothing if the character is CVDISABLE.
3974
3975 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
3976
3977 * intervals.c (move_if_not_intangible):
3978 Force POSITION to be between BEGV and ZV.
3979
3980 2004-08-14 John Paul Wallington <jpw@gnu.org>
3981
3982 * buffer.c (Frestore_buffer_modified_p): Doc fix.
3983
3984 * fileio.c (Fread_file_name): Doc fix.
3985
3986 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
3987
3988 2004-08-09 Luc Teirlinck <teirllm@auburn.edu>
3989
3990 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
3991
3992 2004-08-08 Luc Teirlinck <teirllm@auburn.edu>
3993
3994 * keyboard.c: Declare Qdisabled_command_function instead of
3995 Qdisabled_command_hook.
3996 (Fcommand_execute): Use Qdisabled_command_function instead of
3997 Qdisabled_command_hook.
3998 (syms_of_keyboard): Ditto.
3999
4000 2004-08-07 Luc Teirlinck <teirllm@auburn.edu>
4001
4002 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
4003 (syms_of_keymap) <key-translation-map>: Doc fixes.
4004
4005 2004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
4006
4007 * window.c (window_list_1): YAILOM.
4008
4009 * fileio.c (make_temp_name): Handle multibyte prefixes.
4010
4011 2004-08-06 Luc Teirlinck <teirllm@auburn.edu>
4012
4013 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
4014 Doc fix.
4015
4016 2004-08-03 Kenichi Handa <handa@m17n.org>
4017
4018 * coding.c (decode_coding_string): Adjust coding->consumed, and
4019 etc. with shrinked_bytes.
4020
4021 2004-08-03 Kim F. Storm <storm@cua.dk>
4022
4023 * indent.c (compute_motion): Fix check for full width window
4024 in non-window case. Do not count left truncation glyph on
4025 window systems.
4026
4027 2004-08-02 Luc Teirlinck <teirllm@auburn.edu>
4028
4029 * data.c (Finteractive_form): Doc fix.
4030
4031 2004-08-02 Kim F. Storm <storm@cua.dk>
4032
4033 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
4034 properly accounting for continuation glyph on non-window systems.
4035 (Fcompute_motion): Use actual window width if WIDTH is nil, and
4036 actual window width/height if TOPOS is nil, properly accounting for
4037 continuation glyphs on non-window systems, and optional header lines.
4038 (vmotion): Let compute_motion calculate actual window width.
4039
4040 * window.c (window_scroll_line_based): Let compute_motion
4041 calculate actual window width.
4042
4043 2004-08-02 Kim F. Storm <storm@cua.dk>
4044
4045 * process.c (read_process_output): Use whole read buffer.
4046 Don't trigger adaptive read buffering on errors.
4047
4048 2004-07-31 Luc Teirlinck <teirllm@auburn.edu>
4049
4050 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
4051
4052 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
4053
4054 * callint.c (Fcall_interactively): Doc fix.
4055
4056 2004-07-30 Richard M. Stallman <rms@gnu.org>
4057
4058 * abbrev.c (Fexpand_abbrev): Undo previous change.
4059
4060 2004-07-30 Kim F. Storm <storm@cua.dk>
4061
4062 * editfns.c (Fformat): Allocate extra (dummy) element in info.
4063
4064 2004-07-28 Luc Teirlinck <teirllm@auburn.edu>
4065
4066 * eval.c (Fdefvar, Fdefconst): Doc fixes.
4067
4068 2004-07-27 Kim F. Storm <storm@cua.dk>
4069
4070 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
4071 we have ensured that the glyph fits on the current line (or returned
4072 MOVE_LINE_CONTINUED otherwise).
4073
4074 2004-07-26 Kim F. Storm <storm@cua.dk>
4075
4076 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
4077 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
4078 if target position is at end of display line but char is not a newline.
4079
4080 2004-07-25 Richard M. Stallman <rms@gnu.org>
4081
4082 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
4083 instead of ON_VERTICAL_BORDER, when on scroll bar.
4084 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
4085
4086 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
4087
4088 * window.c (Fcoordinates_in_window_p):
4089 Take account of FRAME_INTERNAL_BORDER_WIDTH.
4090
4091 * alloc.c (check_cons_list): New function (contents commented out).
4092
4093 2004-07-24 Luc Teirlinck <teirllm@auburn.edu>
4094
4095 * xfaces.c (Fcolor_supported_p): Doc fix.
4096
4097 * frame.c (Fselect_frame, Fset_frame_selected_window)
4098 (Fframe_visible_p, Fraise_frame): Doc fixes.
4099
4100 2004-07-24 Richard M. Stallman <rms@gnu.org>
4101
4102 * keyboard.h (not_single_kboard_state): Declare.
4103
4104 * fileio.c (Fwrite_region): Doc fix.
4105
4106 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
4107
4108 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
4109 only when a real abbrev is present.
4110
4111 * xfns.c (x_icon_verify): New function.
4112 (Fx_create_frame): Use it.
4113
4114 2004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
4115
4116 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
4117
4118 2004-07-21 Kim F. Storm <storm@cua.dk>
4119
4120 * window.h (struct glyph_matrix): New members nrows_scale_factor
4121 and ncols_scale_factor.
4122
4123 * window.c (make_window): Initialize nrows_scale_factor and
4124 ncols_scale_factor members.
4125
4126 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
4127 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
4128 (required_matrix_height): Apply nrows_scale_factor.
4129 (required_matrix_width): Apply ncols_scale_factor.
4130
4131 * xdisp.c (display_line): Increment nrows_scale_factor and set
4132 fonts_changed_p if past last allocated row.
4133 (append_glyph, append_composite_glyph, produce_image_glyph)
4134 (append_stretch_glyph): Increment ncols_scale_factor and set
4135 fonts_changed_p if current area is full.
4136
4137 2004-07-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4138
4139 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
4140
4141 2004-07-19 Luc Teirlinck <teirllm@auburn.edu>
4142
4143 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
4144 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
4145 (Fset_window_start, Fscroll_up, Fscroll_down)
4146 (Fother_window_for_scrolling, Fscroll_other_window)
4147 (Fsave_window_excursion, Fset_window_vscroll)
4148 (syms_of_window) <window-size-fixed>: Doc fixes.
4149
4150 2004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
4151
4152 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
4153 ENCODE_SYSTEM for filenames.
4154
4155 2004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4156
4157 * mac.c (sys_select): Block input around call to
4158 ReceiveNextEvent to prevent breakage. Correctly handle
4159 blocking on event queue only by calling ReceiveNextEvent
4160 instead of select (since GUI events aren't on an fd).
4161 (sys_read): Remove function
4162 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
4163
4164 2004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4165
4166 * mac.c (sys_select): Redo sys_select to use alarm-based
4167 polling instead of 1 sec timeouts (like solaris).
4168
4169 * macterm.c (x_make_frame_visible): Comment in polling on
4170 frame creation.
4171
4172 * keyboard.c: Undef SIGIO on Carbon
4173
4174 * atimer.c (alarm_signal_handler): Call alarm handlers after
4175 scheduling.
4176
4177 * eval.c (Feval): Remove quit_char test
4178
4179 * process.c (wait_reading_process_input): Remove clearing
4180 stdin for select call on process input.
4181
4182 2004-07-18 Luc Teirlinck <teirllm@auburn.edu>
4183
4184 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
4185 capitalization error in docstring.
4186
4187 2004-07-17 Juanma Barranquero <lektu@terra.es>
4188
4189 * keyboard.c (not_single_kboard_state): Do nothing unless
4190 MULTI_KBOARD is defined.
4191
4192 2004-07-17 Richard M. Stallman <rms@gnu.org>
4193
4194 * window.c (coordinates_in_window): Inside the window but outside
4195 its box to the L or R, return ON_VERTICAL_BORDER.
4196 (window_list_1): Rotate the list to start with WINDOW.
4197
4198 * print.c (print_preprocess): Test for print_depth at limit
4199 before entering in being_printed.
4200
4201 * keyboard.c (not_single_kboard_state): New function.
4202 (stuff_buffered_input): Now no-op only if no SIGTSTP.
4203
4204 * frame.c (Fdelete_frame): If we're in single_bboard_state on
4205 this kboard, and we delete its last frame, go to any_kboard_state.
4206
4207 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
4208
4209 2004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
4210
4211 * w32fns.c (Fx_file_dialog): Encode strings in system coding
4212 system before passing them to OS functions for display.
4213
4214 2004-07-15 David Kastrup <dak@gnu.org>
4215
4216 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
4217 Apparently fixes an abort condition.
4218
4219 2004-07-14 Luc Teirlinck <teirllm@auburn.edu>
4220
4221 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
4222 instead of a cons.
4223
4224 2004-07-14 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
4225
4226 * keyboard.c (echo_dash): Do nothing if there already is a dash
4227 at the end of the echo string.
4228
4229 2004-07-12 Kim F. Storm <storm@cua.dk>
4230
4231 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
4232 if GC_MARK_STACK.
4233
4234 2004-07-10 Luc Teirlinck <teirllm@auburn.edu>
4235
4236 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
4237
4238 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
4239 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
4240 (Freplace_buffer_in_windows, Fset_window_buffer)
4241 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
4242 (syms_of_window): Expand docstring of `display-buffer-function'.
4243
4244 2004-07-09 Luc Teirlinck <teirllm@auburn.edu>
4245
4246 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
4247 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
4248 that time values of the type (HIGH . LOW) are considered obsolete.
4249
4250 2004-07-06 Luc Teirlinck <teirllm@auburn.edu>
4251
4252 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
4253 docstring.
4254
4255 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
4256
4257 2004-07-06 John Paul Wallington <jpw@gnu.org>
4258
4259 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
4260
4261 * fns.c (Fclear_string): Signal an error if STRING is not a string.
4262
4263 2004-07-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4264
4265 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
4266 instead of CGMainDisplayID (only in OSX 10.2 and later).
4267
4268 2004-07-04 John Paul Wallington <jpw@gnu.org>
4269
4270 * fileio.c (read_file_name_completion_ignore_case): New variable.
4271 (syms_of_fileio): Declare and initialise it.
4272 (Fread_file_name): Bind `completion-ignore-case' to respect it.
4273
4274 2004-07-03 Eli Zaretskii <eliz@gnu.org>
4275
4276 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
4277 for event.x and event.y.
4278
4279 2004-07-01 Kenichi Handa <handa@m17n.org>
4280
4281 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
4282 after getting a new string by pre-write-conversion.
4283
4284 2004-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
4285
4286 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
4287 (x_calc_absolute_position): Remove unused var `child'.
4288
4289 * xfaces.c (x_supports_face_attributes_p)
4290 (Fdisplay_supports_face_attributes_p): YAILOM.
4291 (tty_supports_face_attributes_p): Remove unused var `i'.
4292
4293 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
4294 back_unibyte_ok.
4295
4296 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
4297
4298 * fontset.c (Fset_fontset_font): Remove unused vars `family' and `registry'.
4299
4300 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
4301
4302 2004-06-30 Andreas Schwab <schwab@suse.de>
4303
4304 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
4305 (Finit_image_library): Pass LIBRARIES through to
4306 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
4307 (lookup_image_type): Pass Qnil as second argument to
4308 Finit_image_library.
4309
4310 * lisp.h (Finit_image_library): Declare.
4311
4312 2004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4313
4314 * macterm.c (do_window_activate, do_window_deactivate): Remove.
4315 (XTread_socket): Send mouse button events to the toolbox
4316 dispatcher even when the mouse is grabbed. Don't process window
4317 activate events for non-Emacs windows. Replace function calls to
4318 do_window_activate and do_window_deactivate with their contents.
4319 Reset mouse grabbing status when a window is deactivated.
4320
4321 2004-06-29 Steven Tamm <steventamm@mac.com>
4322
4323 * macterm.c (mac_get_emulated_btn)
4324 (mac_event_to_emacs_modifiers): Fix emulated mouse button
4325 support to correctly mask out modifiers.
4326
4327 2004-06-29 David Kastrup <dak@gnu.org>
4328
4329 * search.c (Fset_match_data): Allow buffer before end of list
4330 which can happen if set-match-data is using a pre-consed list.
4331
4332 2004-06-28 Steven Tamm <steventamm@mac.com>
4333
4334 * macterm.c (XTread_socket): Correctly set the frame position
4335 after the window is moved.
4336
4337 2004-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4338
4339 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
4340 gpix and gmask just before return to avoid memory leak.
4341 (xg_get_image_for_pixmap): Add workaround for monochrome displays
4342 so insensitive and activated icons look ok.
4343
4344 2004-06-27 Jason Rumney <jasonr@gnu.org>
4345
4346 * w32fns.c (file_dialog_callback): Disable edit control if set
4347 to directories only on CDN_INITDONE message.
4348 (Fx_file_dialog): Default to directories only when prompt starts
4349 with "Dired".
4350
4351 2004-06-25 Kim F. Storm <storm@cua.dk>
4352
4353 * alloc.c (allocate_misc): Update total_free_markers.
4354 (free_misc): New function.
4355 (safe_alloca_unwind, free_marker): Use it.
4356
4357 * lisp.h (free_misc): Add prototype.
4358
4359 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
4360
4361 2004-06-24 Richard M. Stallman <rms@gnu.org>
4362
4363 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
4364 (syms_of_emacs): Lisp variables deleted.
4365
4366 2004-06-23 David Kastrup <dak@gnu.org>
4367
4368 * search.c (Freplace_match): Adjust the match-data more thoroughly
4369 when replacing strings in the buffer.
4370 (Fmatch_data): When INTEGERS is non-nil and the last match was in
4371 a buffer, add the buffer as last element to the match data.
4372 (Fset_match_data): If an additional element of the match-data is a
4373 buffer, restore it to last_thing_searched.
4374 (save_search_regs): Save last_thing_searched as part of the match data.
4375 (restore_match_data): Restore it again.
4376
4377 2004-06-23 Luc Teirlinck <teirllm@auburn.edu>
4378
4379 * keymap.c (Ftext_char_description): Doc fix.
4380 * doc.c (Fsnarf_documentation): Doc fix.
4381
4382 2004-06-22 Kim F. Storm <storm@cua.dk>
4383
4384 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
4385
4386 * lisp.h (struct Lisp_Save_Value): New member dogc.
4387 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
4388 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
4389 (SAFE_FREE_LISP): New macro.
4390
4391 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
4392 (make_save_value): Init new dogc member.
4393 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
4394
4395 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
4396 SAFE_FREE_LISP macros.
4397
4398 2004-06-22 Kim F. Storm <storm@cua.dk>
4399
4400 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
4401 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
4402 in that memory area are unknown to GC. Add comments.
4403
4404 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
4405
4406 2004-06-21 Kim F. Storm <storm@cua.dk>
4407
4408 * lisp.h (MAX_ALLOCA): Define here.
4409 (safe_alloca_unwind): Add prototype.
4410 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
4411
4412 * alloc.c (safe_alloca_unwind): New function.
4413
4414 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
4415
4416 * charset.c (Fstring): Use SAFE_ALLOCA.
4417
4418 * coding.c (MAX_ALLOCA): Remove define.
4419
4420 * data.c (MAX_ALLOCA): Remove define.
4421 (Faset): Use SAFE_ALLOCA.
4422
4423 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
4424
4425 * fns.c (string_make_multibyte, string_to_multibyte)
4426 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
4427 (MAX_ALLOCA): Remove define.
4428 (Fbase64_encode_region, Fbase64_encode_string)
4429 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
4430 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
4431 memory leak if encoding fails.
4432
4433 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
4434
4435 2004-06-21 Eli Zaretskii <eliz@gnu.org>
4436
4437 * print.c (Fwith_output_to_temp_buffer): Doc fix.
4438
4439 2004-06-20 Richard M. Stallman <rms@gnu.org>
4440
4441 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
4442
4443 * search.c (match_limit): Cleaner err msg when no match data available.
4444
4445 * window.c (syms_of_window): Doc fix.
4446
4447 * keyboard.c (command_loop_1): Handle values `only' and `identity'
4448 for Vtransient_mark_mode.
4449
4450 * buffer.c (syms_of_buffer): Doc fix.
4451
4452 2004-06-21 David Kastrup <dak@gnu.org>
4453
4454 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
4455 and unbinding of `case-fold-search' according to
4456 `completion-ignore-case' around calls of string-match and
4457 predicates, respectively. Should give satisfactory performance
4458 in all relevant cases.
4459
4460 2004-06-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4461
4462 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
4463 clip_x/y_origin.
4464
4465 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
4466
4467 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
4468
4469 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
4470 on Mac OSX.
4471
4472 2004-06-16 Luc Teirlinck <teirllm@auburn.edu>
4473
4474 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
4475
4476 2004-06-16 Kim F. Storm <storm@cua.dk>
4477
4478 * dispextern.h (Vimage_types): Remove extern.
4479
4480 2004-06-16 Miles Bader <miles@gnu.org>
4481
4482 * image.c (lookup_image_type): Initialize image type if necessary.
4483
4484 2004-06-15 Kim F. Storm <storm@cua.dk>
4485
4486 * xdisp.c (try_cursor_movement): Exclude header line from scroll
4487 margin at top of window.
4488 (try_window_reusing_current_matrix): Calculate proper cursor position
4489 after scrolling up with non-zero scroll margin, as the old cursor
4490 position corresponds to value of PT before executing this command.
4491 (try_window_id): Consider scroll margin at bottom of window too;
4492 otherwise we fail to scroll when hl-line-mode is enabled.
4493
4494 * syntax.c (skip_chars): Only recognize [:class:] when it has the
4495 proper format and class is a lower-case word.
4496
4497 2004-06-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4498
4499 * gtkutil.c (xg_get_image_for_pixmap): New function.
4500 (xg_get_gdk_pixmap_and_mask): Remove.
4501 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
4502 xg_get_gdk_pixmap_and_mask.
4503
4504 * xterm.h (struct x_display_info): Typo in comment fixed.
4505
4506 2004-06-14 Juanma Barranquero <lektu@terra.es>
4507
4508 * dispextern.h (Vimage_types): Make it conditional on
4509 HAVE_WINDOW_SYSTEM.
4510
4511 * image.c (Vimage_types): Move from xdisp.c.
4512 (Vimage_type_cache): New variable.
4513 (define_image_type): New argument indicating whether an image
4514 library was loaded; cache loaded status and return t on success,
4515 nil otherwise.
4516 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
4517 (w32_delayed_load): New function to load an image library from a
4518 list of possible filenames.
4519 (init_xpm_functions, init_png_functions, init_jpeg_functions)
4520 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
4521 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
4522 (Finit_image_library): New function, extracted from `init_image'.
4523 Try to initialize an image library on demand and cache whether we
4524 were successful or not.
4525 (syms_of_image): Initialize `Vimage_types' and
4526 `Vimage_type_cache'. Add recognized image types to Vimage_types.
4527 Export `init-image-library'.
4528 (init_image): Remove initialization of all image types, except xbm
4529 and pbm.
4530
4531 * xdisp.c (Vimage_types): Delete (moved to image.c).
4532
4533 2004-06-14 Andreas Schwab <schwab@suse.de>
4534
4535 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
4536 Avoid calling specbind when completion-regexp-list is empty.
4537
4538 2004-06-13 Richard M. Stallman <rms@gnu.org>
4539
4540 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
4541 (re_wctype, re_iswctype, re_wctype_to_bit):
4542 Non-function definitions moved here from regex.c.
4543
4544 * regex.c (re_wctype, re_iswctype): Function defs longer static.
4545 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
4546 (re_wctype, re_iswctype, re_wctype_to_bit):
4547 Non-function definitions moved to regex.h.
4548
4549 * window.c (Fselect_window): Doc fix.
4550
4551 * syntax.c: Include regex.h.
4552 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
4553 If requested, make a list of classes, then check the scanned
4554 chars for membership in them.
4555 (in_classes): New function.
4556 Doc fix.
4557
4558 * keyboard.c (cmd_error): Don't call any_kboard_state
4559 if inside a recursive edit level.
4560
4561 2004-06-13 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
4562
4563 * keyboard.c (command_loop): Call any_kboard_state before
4564 command_loop_2 when at top level.
4565
4566 2004-06-13 Andreas Schwab <schwab@suse.de>
4567
4568 * print.c (print_object): Always use %ld for printing EMACS_INT.
4569
4570 * keyboard.c (cancel_hourglass_unwind): Return a value.
4571 (modify_event_symbol): Always use %ld for printing EMACS_INT.
4572 (Fexecute_extended_command): Likewise.
4573
4574 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
4575 avoid clashes.
4576 (SYNTAX): Likewise.
4577 (SYNTAX_WITH_FLAGS): Likewise.
4578 (SYNTAX_MATCH): Likewise.
4579
4580 * syntax.c (char_quoted): Avoid warning about undefined operation.
4581 (find_defun_start): Likewise.
4582 (scan_lists): Likewise.
4583 (INC_FROM): Likewise.
4584 (scan_sexps_forward): Likewise.
4585
4586 * image.c: Include <ctype.h>.
4587
4588 * xfaces.c (face_attr_equal_p): Declare parameters.
4589
4590 2004-06-13 Kenichi Handa <handa@m17n.org>
4591
4592 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
4593
4594 2004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
4595
4596 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
4597
4598 2004-06-12 Kenichi Handa <handa@m17n.org>
4599
4600 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
4601 ccl_prog_stack_struct and update it.
4602 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
4603 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
4604 ccl->eof_ic on EOF.
4605 (ccl_debug_hook): New function.
4606 (struct ccl_prog_stack): New member eof_ic.
4607 (ccl_driver): Handle EOF in subrountine call correctly.
4608
4609 2004-06-11 Kenichi Handa <handa@m17n.org>
4610
4611 * coding.c (decode_coding_string): Check CODING_FINISH_INTERRUPT.
4612
4613 2004-06-11 Kim F. Storm <storm@cua.dk>
4614
4615 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
4616
4617 2004-06-11 Juanma Barranquero <lektu@terra.es>
4618
4619 * keyboard.c (Fposn_at_point): Doc fix.
4620
4621 2004-06-11 David Kastrup <dak@gnu.org>
4622
4623 * search.c (match_limit): Don't flag an error if match-data
4624 exceeding the allocated search_regs.num_regs gets requested, just
4625 return Qnil.
4626
4627 2004-06-08 Miles Bader <miles@gnu.org>
4628
4629 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
4630
4631 2004-06-07 Juanma Barranquero <lektu@terra.es>
4632
4633 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
4634 (Fcurrent_time_string, Fcurrent_time_zone)
4635 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
4636
4637 2004-06-07 Miles Bader <miles@gnu.org>
4638
4639 * xfaces.c (struct named_merge_point): New type.
4640 (push_named_merge_point): New function.
4641 (merge_named_face): New function.
4642 (merge_face_ref, face_at_buffer_position, face_at_string_position):
4643 Use `merge_named_face'.
4644 (merge_face_inheritance): Function removed.
4645 (merge_face_ref): Rename from `merge_face_vector_with_property'.
4646 Add new `err_msgs' and `named_merge_points' args. Return error
4647 status. Only print error messages if ERR_MSGS is true. Don't try to
4648 do :inherit attribute validation.
4649 (merge_face_heights): Handle `unspecified' in both directions.
4650 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
4651 Call `merge_face_ref' instead of `merge_face_inheritance'.
4652 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
4653 (compute_char_face, face_at_buffer_position)
4654 (face_at_string_position): Call `merge_face_ref' instead of
4655 `merge_face_vector_with_property'.
4656
4657 2004-06-07 Kenichi Handa <handa@m17n.org>
4658
4659 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
4660 the necessary places.
4661
4662 2004-06-07 Kim F. Storm <storm@cua.dk>
4663
4664 * process.c (Fdelete_process): Undo 2004-05-28 change.
4665 Instead, call status_notify also for network process.
4666 (status_message): Use process instead of status as arg.
4667 Give messages "deleted" or "connection broken by remote peer" for
4668 an exited network process.
4669 (status_notify): Change call to status_message.
4670 (read_process_output): Increase readmax to 4096. Do not increase
4671 buffer size for datagram channels (default is now large enough).
4672
4673 2004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
4674
4675 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
4676 problem due to newly defined variable.
4677
4678 2004-06-06 Miles Bader <miles@gnu.org>
4679
4680 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
4681 immediately if non-interactive or not initialized.
4682
4683 2004-06-05 Richard M. Stallman <rms@gnu.org>
4684
4685 * minibuf.c (Fcompleting_read): Doc fix.
4686
4687 2004-06-05 Andreas Schwab <schwab@suse.de>
4688
4689 * macfns.c (x_create_tip_frame): Fix declaration after statement.
4690
4691 2004-06-05 Juanma Barranquero <lektu@terra.es>
4692
4693 * keymap.c (Fdescribe_vector): Fix docstring.
4694 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
4695
4696 2004-06-05 Miles Bader <miles@gnu.org>
4697
4698 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
4699 attributes have different values than the default face.
4700
4701 2004-06-04 Eli Zaretskii <eliz@gnu.org>
4702
4703 * xfaces.c (x_supports_face_attributes_p): Make this function
4704 conditional on HAVE_WINDOW_SYSTEM.
4705 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
4706 Don't call x_supports_face_attributes_p if it was not compiled in.
4707
4708 2004-06-04 Miles Bader <miles@gnu.org>
4709
4710 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
4711 from Ftty_supports_face_attributes_p.
4712 (x_supports_face_attributes_p): New function.
4713 (Ftty_supports_face_attributes_p): Function deleted.
4714 (Fdisplay_supports_face_attributes_p): New function.
4715 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
4716 (face_attr_equal_p): New function.
4717 (lface_equal_p): Use it.
4718
4719 2004-06-03 Juanma Barranquero <lektu@terra.es>
4720
4721 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
4722 (Vw32_color_map): Fix typo in docstring.
4723 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
4724 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
4725 Make argument names match their use in docstring.
4726
4727 2004-06-02 Juanma Barranquero <lektu@terra.es>
4728
4729 Work around bugs/problems with MinGW builds of graphics libraries
4730 called from MSVC builds of Emacs.
4731
4732 * image.c (lookup_image): Make pointer to img static.
4733 (png_read_from_memory): Disable "global" optimization.
4734
4735 2004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
4736
4737 * eval.c (Fcondition_case): Fix usage. Simplify.
4738
4739 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
4740
4741 2004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4742
4743 * macfns.c: Don't include ccl.h.
4744 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
4745 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
4746 TextUtils.h.
4747 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
4748 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
4749 display height/width.
4750 (compute_tip_xy, Vx_max_tooltip_size): Declare.
4751 (unwind_create_tip_frame, compute_tip_xy): New functions.
4752 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
4753 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
4754 and last_show_tip_args.
4755
4756 * macgui.h [!MAC_OSX]: Include Gestalt.h.
4757 (Cursor, No_Cursor): New defines.
4758 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
4759 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
4760
4761 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
4762
4763 * macterm.c: Don't include Gestalt.h.
4764 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
4765 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
4766 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
4767 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
4768 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
4769 (construct_mouse_click, XTmouse_position)
4770 (x_scroll_bar_report_motion, x_calc_absolute_position)
4771 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
4772 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
4773 (note_mouse_movement): Clear the mouse face and reset the pointer
4774 shape when the pointer goes outside the frame without grabbing.
4775 (mac_front_window): New function.
4776 (mac_window_to_frame): New macro.
4777 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
4778 (do_window_activate, do_window_deactivate, do_app_resume)
4779 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
4780 (do_zoom_window, mac_do_receive_drag, XTread_socket)
4781 (mac_check_for_quit_char): Use mac_front_window and/or
4782 mac_window_to_frame.
4783 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
4784 scroll-bar click event.
4785 (mac_define_frame_cursor): Change the pointer shape.
4786 (x_free_frame_resources): Reset tip_window to NULL when it is disposed.
4787 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
4788 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
4789 (do_window_update): Don't do anything if the updated window is the
4790 tooltip window.
4791 (do_mouse_moved): Handle mouse movement events here (previously in
4792 XTread_socket). Clear the mouse face if
4793 dpyinfo->mouse_face_hidden is set.
4794 (do_os_event, do_events): Remove (now in XTread_socket).
4795 (XTread_socket): Immediately return if interrupt_input_blocked.
4796 Loop until all the events in the queue are processed.
4797 Rearrange codes for mouse grabbing. Add tooltip support. Include the
4798 contents of do_os_event and do_events. Remove mouse movement
4799 handling (now in do_mouse_moved). Add the case where
4800 Vmouse_highlight has an integer value.
4801 (NewMacWindow): Remove.
4802 (make_mac_frame): Do what NewMacWindow previously did. Don't do
4803 excess initializations.
4804 (make_mac_terminal_frame): Previous initializations in
4805 make_mac_frame are moved here.
4806 (mac_initialize_display_info):
4807 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
4808
4809 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
4810 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
4811
4812 2004-05-29 Richard M. Stallman <rms@gnu.org>
4813
4814 * lisp.h (truncate_undo_list): Update decl.
4815
4816 * alloc.c (undo_outer_limit): New variable.
4817 (syms_of_alloc): Defvar it.
4818 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
4819
4820 * undo.c (truncate_undo_list): New arg LIMITSIZE.
4821
4822 * alloc.c (lisp_align_malloc): Check for base == 0
4823 regardless of HAVE_POSIX_MEMALIGN.
4824 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
4825
4826 2004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
4827
4828 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
4829 (marker_blocks_pending_free): Remove.
4830 (Fgarbage_collect): Sweep after cleaning up undo-lists.
4831 Mark the undo lists after claning them up.
4832 Don't free block in marker_blocks_pending_free.
4833 (mark_buffer): Don't mark undo_list.
4834 (gc_sweep): Sweep hash-tables and strings first.
4835 Do free marker blocks that are empty.
4836
4837 2004-05-28 Jim Blandy <jimb@redhat.com>
4838
4839 * regex.c (print_partial_compiled_pattern): Add missing 'break'
4840 after 'case wordend'. For symbeg and symend, print to stderr,
4841 like the other cases.
4842
4843 2004-05-28 Noah Friedman <friedman@splode.com>
4844
4845 * process.c (Fdelete_process): Do not call remove_process.
4846
4847 2004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
4848
4849 * alloc.c (struct backtrace): Remove.
4850 (Fgarbage_collect): Use the new mark_backtrace.
4851
4852 * eval.c (mark_backtrace): New function.
4853
4854 * minibuf.c (run_exit_minibuf_hook): New function.
4855 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
4856 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
4857
4858 2004-05-27 Kim F. Storm <storm@cua.dk>
4859
4860 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
4861 over display properties, e.g. images, that replace buffer text.
4862
4863 2004-05-25 Kim F. Storm <storm@cua.dk>
4864
4865 * alloc.c (marker_blocks_pending_free): New var.
4866 (gc_sweep): Store free marker blocks on that list.
4867 (Fgarbage_collect): Free them after undo-list cleanup.
4868
4869 * process.c (wait_reading_process_input): Check connect_wait_mask
4870 before actually accepting connection in case it has already been
4871 accepted due to recursion.
4872
4873 2004-05-23 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
4874
4875 * coding.c (Fset_safe_terminal_coding_system_internal):
4876 Set suppress_error in safe_terminal_coding, not terminal_coding.
4877
4878 2004-05-22 Richard M. Stallman <rms@gnu.org>
4879
4880 * alloc.c (Fmake_string): Doc fix.
4881
4882 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
4883 and the alist pairs too.
4884
4885 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
4886
4887 * emacs.c (main): Update copyright year.
4888
4889 * fileio.c (Fread_file_name): Expand DIR if not absolute.
4890
4891 * insdel.c (del_range_2, replace_range): Don't write an anchor
4892 if the gap is empty.
4893
4894 * xdisp.c (try_scrolling): If scroll-up-aggressively or
4895 scroll-down-aggressively is small but positive, put point
4896 near the screen edge.
4897
4898 2004-05-22 Juanma Barranquero <lektu@terra.es>
4899
4900 * keymap.c (Fdefine_key): Doc fix.
4901
4902 2004-05-22 Kim F. Storm <storm@cua.dk>
4903
4904 * alloc.c (struct backtrace): Add debug_on_exit member.
4905 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
4906 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
4907 the removed cons cells.
4908 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
4909 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
4910 any cons cells pointing to unallocated stings.
4911 Do not lisp_free any marker blocks, as there may still be pointers
4912 to them from buffer undo lists at this stage of GC.
4913
4914 * keyboard.c (struct backtrace): Add debug_on_exit member.
4915 (Fcommand_execute): Clear it.
4916
4917 2004-05-20 Luc Teirlinck <teirllm@auburn.edu>
4918
4919 * intervals.c (lookup_char_property): Do not prematurely return nil.
4920
4921 2004-05-19 Jim Blandy <jimb@redhat.com>
4922
4923 Add support for new '\_<' and '\_>' regexp operators, matching the
4924 beginning and end of symbols.
4925
4926 * regex.c (enum syntaxcode): Add Ssymbol.
4927 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
4928 (re_opcode_t): New opcodes `symbeg' and `symend'.
4929 (print_partial_compiled_pattern): Print the new opcodes properly.
4930 (regex_compile): Parse the new operators.
4931 (analyse_first): Skip sym(beg|end) (they match only the empty string).
4932 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
4933 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
4934 (re_match_2_internal): Match symbeg and symend.
4935
4936 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
4937
4938 2004-05-19 Kim F. Storm <storm@cua.dk>
4939
4940 * .gdbinit (xsymbol): Fix last change.
4941
4942 2004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
4943
4944 * .gdbinit (xprintstr): New fun.
4945 (xstring, xprintsym): Use it.
4946
4947 * w32proc.c (create_child): Use INTMASK.
4948
4949 * alloc.c (Fgarbage_collect): Do all the marking before flushing
4950 unmarked elements of the undo list.
4951
4952 2004-05-18 David Ponce <david@dponce.com>
4953
4954 * print.c (print): Reset print_depth before to call print_object.
4955
4956 2004-05-18 Jason Rumney <jasonr@gnu.org>
4957
4958 * w32console.c: Prefix RIF functions with w32con_ to avoid
4959 namespace clash with functions in term.c and w32term.c.
4960
4961 * w32menu.c (add_menu_item, w32_menu_display_help)
4962 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
4963
4964 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
4965
4966 2004-05-18 Eli Zaretskii <eliz@gnu.org>
4967
4968 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
4969
4970 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
4971 with make_number.
4972 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
4973 with XINT.
4974
4975 2004-05-18 Kim F. Storm <storm@cua.dk>
4976
4977 * blockinput.h (INPUT_BLOCKED_P): New macros.
4978
4979 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
4980 (Ftop_level): Unblock input if blocked.
4981
4982 * buffer.h (GET_OVERLAYS_AT): New macro.
4983 * msdos.c (IT_note_mouse_highlight): Use it.
4984 * textprop.c (get_char_property_and_overlay): Use it.
4985 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
4986 * xfaces.c (face_at_buffer_position): Use it.
4987
4988 * print.c (print_object): Increase buf size.
4989
4990 2004-05-17 Jason Rumney <jasonr@gnu.org>
4991
4992 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
4993 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
4994 Lisp_Object using i member.
4995 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
4996 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
4997 consistently.
4998
4999 * w32proc.c (create_child): Use make_number instead of masking pid.
5000
5001 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
5002 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
5003 Use EQ to compare Lisp_Objects.
5004 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
5005
5006 * w32term.c (w32_num_mouse_buttons): Rename from
5007 Vw32_num_mouse_buttons and make it an int.
5008
5009 * w32.c (init_environment): Use it.
5010
5011 * w32fns.c (w32_wnd_proc): Likewise.
5012
5013 * w32proc.c (w32_pipe_read_delay): Rename from
5014 Vw32_pipe_read_delay and make it an int.
5015
5016 * w32.c (_sys_read_ahead): Use it.
5017
5018 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
5019
5020 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
5021
5022 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
5023 (key_event): Don't mix Lisp_Object and int.
5024
5025 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
5026
5027 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
5028 modifiers in language change event.
5029
5030 2004-05-17 Kim F. Storm <storm@cua.dk>
5031
5032 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
5033 Such objects may be freed markers which still exist on an undo list.
5034
5035 2004-05-16 Juanma Barranquero <lektu@terra.es>
5036
5037 * data.c (Fset_default): Make argument names match their use in
5038 docstring.
5039
5040 2004-05-15 Andreas Schwab <schwab@suse.de>
5041
5042 * emacs.c (gdb_array_mark_flag): Define.
5043 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
5044
5045 2004-05-15 Eli Zaretskii <eliz@gnu.org>
5046
5047 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
5048 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
5049 defined for the MS-DOS build.
5050
5051 2004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
5052
5053 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
5054
5055 2004-05-14 Kenichi Handa <handa@m17n.org>
5056
5057 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
5058
5059 2004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5060
5061 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
5062 section to frame.c section.
5063 (Fxw_display_color_p, Fx_file_dialog): Declare if
5064 HAVE_WINDOW_SYSTEM defined.
5065
5066 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
5067
5068 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
5069
5070 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
5071 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
5072 (XTread_socket): Fix int/Lisp_Object mixup.
5073 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
5074
5075 * macterm.h (struct frame, struct face, struct image)
5076 (display_x_get_resource, Fx_display_color_p)
5077 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
5078 Add prototypes.
5079
5080 2004-05-14 Kim F. Storm <storm@cua.dk>
5081
5082 * process.c (wait_reading_process_input): Make reentrant.
5083 Make Available and Connecting non-static. Save and restore value
5084 of waiting_for_user_input_p.
5085
5086 2004-05-13 Kim F. Storm <storm@cua.dk>
5087
5088 * keyboard.c (mark_kboards): Don't mark x and y members
5089 that are overloaded in selection request events.
5090
5091 2004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
5092
5093 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
5094
5095 2004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
5096
5097 * window.c (Fdisplay_buffer, Fsplit_window)
5098 (split-height-threshold): Doc fix.
5099
5100 2004-05-13 Juanma Barranquero <lektu@terra.es>
5101
5102 * xfaces.c (Ftty_supports_face_attributes_p)
5103 (Finternal_copy_lisp_face): Fix typo in docstring.
5104 (Finternal_get_lisp_face_attribute): Fix docstring.
5105
5106 2004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5107
5108 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
5109
5110 2004-05-11 Steven Tamm <steventamm@mac.com>
5111
5112 * macfns.c (Fx_create_frame): Default to using tool-bar by
5113 setting tool-bar-lines to 1 in default-frame-alist.
5114
5115 2004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5116
5117 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
5118 (xpm_get_color_table_v, xpm_make_color_table_h)
5119 (xpm_put_color_table_h, xpm_get_color_table_h)
5120 (xpm_str_to_color_key, xpm_load_image, xpm_load)
5121 (syms_of_image): Support XPM on Carbon Emacs. Does not
5122 depend on libXpm, but only supports XPM version 3 without extensions.
5123
5124 2004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5125
5126 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
5127 instead of FRAME_X_P
5128
5129 2004-05-11 Kim F. Storm <storm@cua.dk>
5130
5131 * process.c (read_process_output): Grow decoding_buf when needed;
5132 this could cause a crash in allocate_string and compact_small_strings.
5133
5134 2004-04-29 Jim Blandy <jimb@redhat.com>
5135
5136 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
5137 against proper opcode.
5138
5139 2004-05-10 Juanma Barranquero <lektu@terra.es>
5140
5141 * process.c (Fstart_process): Fix docstring.
5142
5143 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
5144 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
5145 (Fsplit_char, Fchar_charset): Make argument names match their use
5146 in docstring.
5147
5148 2004-05-10 Richard M. Stallman <rms@gnu.org>
5149
5150 * print.c (print_preprocess): Use being_printed, loop_count and
5151 halftail to detect overdeep nesting and cyclic cdr chains.
5152
5153 2004-05-10 Andreas Schwab <schwab@suse.de>
5154
5155 * lisp.h (Fmake_symbolic_link): Declare.
5156
5157 * fileio.c (Frename_file): Remove extra argument in call to
5158 Fmake_symbolic_link.
5159
5160 2004-05-10 Kim F. Storm <storm@cua.dk>
5161
5162 * xdisp.c (calc_line_height_property): Use string position when
5163 object is a string.
5164
5165 2004-05-10 Kenichi Handa <handa@m17n.org>
5166
5167 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
5168 inhibit-modification-hooks to t temporarily before calling
5169 Ferase_buffer.
5170
5171 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
5172 inhibit-modification-hooks to t temporarily before calling
5173 Ferase_buffer.
5174
5175 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
5176 inhibit-modification-hooks to t temporarily before calling
5177 Ferase_buffer.
5178
5179 * fns.c (count_combining): Delete it.
5180 (concat): Don't check combining bytes.
5181
5182 2004-05-09 Jason Rumney <jasonr@gnu.org>
5183
5184 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
5185 (globals_of_w32fns): Set it.
5186
5187 2004-05-09 Piet van Oostrum <piet@cs.uu.nl>
5188
5189 * data.c (Fquo): Simplify.
5190
5191 2004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
5192
5193 * data.c (Fquo): If any argument is float, do the computation in
5194 floating point.
5195
5196 2004-05-08 Juanma Barranquero <lektu@terra.es>
5197
5198 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
5199 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
5200 Fix spelling of Emacs on docstring.
5201 (Fset_process_coding_system, Fprocess_coding_system)
5202 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
5203 Make argument names match their use in docstring.
5204 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
5205 Fix docstring.
5206
5207 * editfns.c (Finsert_buffer_substring): Make argument names match their
5208 use in docstring.
5209
5210 * syntax.c (Fmodify_syntax_entry): Fix docstring.
5211
5212 2004-05-07 Steven Tamm <steventamm@mac.com>
5213
5214 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
5215 around call to ReceiveEvent to avoid certain crashes.
5216
5217 2004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5218
5219 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
5220 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
5221 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
5222 Save/restore the current graphics port and device handle when
5223 drawing into an offscreen graphics world.
5224
5225 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
5226 (gif_load): Likewise.
5227
5228 2004-05-07 Juanma Barranquero <lektu@terra.es>
5229
5230 * window.c (Fset_window_buffer): Fix docstring.
5231
5232 2004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
5233
5234 * emacs.c (main) [VMS]: Fix var ref.
5235
5236 2004-05-06 Romain Francoise <romain@orebokech.com>
5237
5238 * data.c (Fsetq_default): Fix docstring.
5239
5240 2004-05-06 Jason Rumney <jasonr@gnu.org>
5241
5242 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
5243 to avoid name clash.
5244
5245 2004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5246
5247 * fileio.c (barf_or_query_if_file_exists): Use lstat.
5248 (Frename_file): Handle renaming of symlinks across file systems.
5249 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
5250
5251 2004-05-04 Kim F. Storm <storm@cua.dk>
5252
5253 * xdisp.c (Qtotal): New var.
5254 (syms_of_xdisp): Intern and staticpro it.
5255 (calc_line_height_property): New arg total. Set it if
5256 line-spacing property has format (total . VALUE).
5257 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
5258 Handle total line-spacing property.
5259
5260 2004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5261
5262 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
5263 "under" scroll bar when size/position changes.
5264
5265 2004-05-03 Jason Rumney <jasonr@gnu.org>
5266
5267 * makefile.nt: Remove.
5268
5269 2004-05-02 Eli Zaretskii <eliz@gnu.org>
5270
5271 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
5272 Avoid compiler warnings.
5273
5274 * Makefile.in (region-cache.o): Depend on config.h.
5275
5276 2004-05-02 Romain Francoise <romain@orebokech.com>
5277
5278 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
5279 with continuation lines, too.
5280
5281 2004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
5282
5283 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
5284
5285 2004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
5286
5287 * xdisp.c (calc_line_height_property): YAILOM (yet another
5288 int/Lisp_Object mixup).
5289
5290 2004-05-01 Eli Zaretskii <eliz@gnu.org>
5291
5292 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
5293 undo bad effect of pack(4) in some versions of system headers.
5294
5295 2004-05-01 Jason Rumney <jasonr@gnu.org>
5296
5297 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
5298
5299 2004-04-30 Kim F. Storm <storm@cua.dk>
5300
5301 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
5302 (syms_of_buffer) <cursor-type>: Doc fix.
5303
5304 * dispextern.h (struct it): Remove member use_default_face.
5305 Add members override_ascent, override_descent, override_boff.
5306
5307 * xdisp.c (init_iterator): Handle line-spacing float value.
5308 Initialize override_ascent member.
5309 (append_space_for_newline): Reset override_ascent.
5310 Remove use_default_face.
5311 (calc_line_height_property): New function to calculate value of
5312 line-height and line-spacing properties. Look at overlays, too.
5313 Set override_ascent, override_descent, override_boff members when
5314 using another face than the current face. Float values are now
5315 relative to the frame default font, by default; accept a cons
5316 of ratio and face name to specify value relative to a specific face.
5317 (x_produce_glyphs): Use calc_line_height_property.
5318 Use override_ascent etc. when set to handle different face heights.
5319 A negative line-spacing property value is interpreted as a total
5320 line height, rather than inter-line spacing.
5321 (note_mouse_highlight): Allocate room for 40 overlays initially.
5322
5323 2004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
5324
5325 * data.c (Fsubr_name): New fun.
5326 (syms_of_data): Defsubr it.
5327
5328 2004-04-29 Kim F. Storm <storm@cua.dk>
5329
5330 * xdisp.c (null_glyph_slice): New var.
5331 (append_glyph, append_composite_glyph, append_stretch_glyph):
5332 Use it to initialize glyph slice.
5333
5334 2004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
5335
5336 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
5337 (on_hot_spot_p): Make sure we always return a value.
5338 (Flookup_image_map): Remove unused var ix and iy.
5339 (note_mode_line_or_margin_highlight): Remove unused var `image'.
5340
5341 2004-04-27 Eli Zaretskii <eliz@gnu.org>
5342
5343 * msdos.c (init_environment): If one of the TMP... environment
5344 variables is set to a drive letter without a trailing slash,
5345 append a slash.
5346
5347 2004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
5348
5349 * editfns.c (lisp_time_argument): Provide externally.
5350
5351 * fileio.c (Fset_file_times): New function.
5352 (syms_of_fileio): Intern and staticpro it.
5353
5354 2004-04-27 Kim F. Storm <storm@cua.dk>
5355
5356 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
5357 header line strings.
5358
5359 * dispextern.h (struct it): New member use_default_face.
5360
5361 * xdisp.c (Qline_height): New variable.
5362 (syms_of_xdisp): Intern and staticpro it.
5363 (append_space_for_newline): Partially undo 2004-04-25 change;
5364 add default_face_p arg, and restore callers.
5365 Clear it->use_default_face after use.
5366 (x_produce_glyphs): Set default font for ascii char if
5367 it->use_default_font is set. Change line-spacing property to set
5368 just extra line spacing. Handle new line-height property.
5369
5370 2004-04-26 Andreas Schwab <schwab@suse.de>
5371
5372 * print.c (print_object): Print non-ascii characters in bool
5373 vector representation as octal escapes.
5374
5375 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
5376 * print.c (print_object): Use it instead of BITS_PER_CHAR for
5377 bool vectors.
5378 * lread.c (read1): Likewise.
5379 * alloc.c (Fmake_bool_vector): Likewise.
5380 * data.c (Faref, Faset): Likewise.
5381 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
5382 (mapcar1): Likewise.
5383
5384 2004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
5385
5386 * lread.c (init_lread): Fix typo in HAVE_CARBON test logic.
5387
5388 2004-04-26 Miles Bader <miles@gnu.org>
5389
5390 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
5391
5392 2004-04-26 Juanma Barranquero <lektu@terra.es>
5393
5394 * buffer.c (Fpop_to_buffer): Fix docstring.
5395
5396 2004-04-26 Steven Tamm <steventamm@mac.com>
5397
5398 * lread.c (init_lread): Don't display missing lisp directory
5399 warnings with Carbon Emacs because self-contained bundled Emacs
5400 may be built without correct installation path.
5401
5402 2004-04-25 Kim F. Storm <storm@cua.dk>
5403
5404 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
5405
5406 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
5407
5408 * xdisp.c (append_space_for_newline): Rename from append_space.
5409 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
5410 (x_produce_glyphs): Handle line-spacing property on newline char.
5411 If value is t, adjust ascent and descent to fit current row height.
5412 If value is an integer or float, set extra_line_spacing to integer
5413 value, or to float value x current line height.
5414
5415 2004-04-23 Kenichi Handa <handa@m17n.org>
5416
5417 * fontset.c (Finternal_char_font): If POSITION is nil, return
5418 font for displaying CH with the default face.
5419
5420 2004-04-23 Juanma Barranquero <lektu@terra.es>
5421
5422 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
5423
5424 2004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
5425
5426 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
5427 Don't make assumptions about the relative place of i and val.
5428 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
5429
5430 2004-04-21 Kim F. Storm <storm@cua.dk>
5431
5432 * dispextern.h (struct glyph_slice): New struct.
5433 (struct glyph): New member slice.
5434 (GLYPH_SLICE_EQUAL_P): New macro.
5435 (GLYPH_EQUAL_P): Use it.
5436 (struct glyph_string): New member slice.
5437 (struct it_slice): New struct.
5438 (struct it): New member slice, add member to stack too.
5439 New member constrain_row_ascent_descent_p.
5440 (image_ascent): Add prototype.
5441
5442 * dispnew.c (buffer_posn_from_coords): Return full image width
5443 and height even for image slices (posn is relative to full image).
5444 (marginal_area_string): Adjust x0,y0 for image slice.
5445
5446 * image.c (image_ascent): Add slice arg; calculate ascent for
5447 image slice (or full image).
5448
5449 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
5450 (syms_of_keyboard): Defsubr them.
5451
5452 * lisp.h (pos_visible_p): Fix prototype.
5453
5454 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
5455 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
5456 (x_draw_image_foreground, x_draw_image_relief)
5457 (x_draw_image_foreground_1, x_draw_image_glyph_string):
5458 Draw sliced images.
5459
5460 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
5461 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
5462 (x_draw_image_foreground, x_draw_image_relief)
5463 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
5464 Draw sliced images.
5465
5466 * w32term.h (image_ascent): Remove prototype.
5467
5468 * window.c (Fpos_visible_in_window_p): Return pixel position if
5469 PARTIALLY arg is non-nil. Simplify. Doc fix.
5470 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
5471 to return/set vscroll in pixels.
5472
5473 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
5474
5475 * xdisp.c (Qslice): New variable.
5476 (syms_of_xdisp): Intern and staticpro it.
5477 (pos_visible_p): Return pixel position in new x and y args.
5478 (init_iterator): Reset it->slice info.
5479 (handle_display_prop): Parse (slice ...) property.
5480 (push_it, pop_it): Save/restore slice info.
5481 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
5482 force repositioning of tall row if window is vscrolled, as that
5483 would reset vscroll.
5484 (append_space): Set it->constrain_row_ascent_descent_p to avoid
5485 increasing row height if row is non-empty.
5486 (fill_image_glyph_string): Copy slice info.
5487 (take_vertical_position_into_account): Simplify.
5488 (produce_image_glyph): Handle iterator slice info, setup glyph
5489 slice info. Do not force minimum line height.
5490 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
5491 do not increase height (ascent/descent) of non-empty row when
5492 adding normal character glyph; instead reduce glyph ascent/descent
5493 appropriately; if row is higher than current glyph, adjust glyph
5494 descent/ascent to reposition glyph within the existing row.
5495 Likewise, when char is newline, only set ascent/descent if row is
5496 currently empty.
5497 (note_mouse_highlight): Handle hotspots with sliced image.
5498
5499 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
5500 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
5501 (x_draw_image_foreground, x_draw_image_relief)
5502 (x_draw_image_foreground_1, x_draw_image_glyph_string):
5503 Draw sliced images.
5504
5505 * xterm.h (image_ascent): Remove prototype.
5506
5507 2004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
5508
5509 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
5510
5511 2004-04-20 John Paul Wallington <jpw@gnu.org>
5512
5513 * fns.c (Fassoc, Feql): Fix indentation.
5514
5515 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
5516
5517 2004-04-19 John Paul Wallington <jpw@gnu.org>
5518
5519 * fns.c (Feql): New function.
5520 (syms_of_fns): Defsubr it.
5521
5522 2004-04-18 Jason Rumney <jasonr@gnu.org>
5523
5524 * w32select.c (Fw32_set_clipboard_data): Get sequence number
5525 after closing the clipboard.
5526
5527 2004-04-16 Luc Teirlinck <teirllm@auburn.edu>
5528
5529 * buffer.c (Fbuffer_base_buffer): Doc fix.
5530
5531 2004-04-17 Kim F. Storm <storm@cua.dk>
5532
5533 * keymap.c (Fkey_description): Add optional PREFIX arg.
5534 Combine prefix with KEYS to make up the full key sequence to describe.
5535 Correlate meta_prefix_char and following (simple) key to describe
5536 as meta modifier. All callers changed.
5537 (describe_map): Rename arg `keys' to `prefix'. Remove local
5538 `elt_prefix' var. Use Fkey_description with prefix instead of
5539 elt_prefix combined with Fsingle_key_description.
5540 (describe_vector): Declare static. Replace arg `elt_prefix' with
5541 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
5542 if !KEYMAP_P. Use Fkey_description with prefix instead of
5543 Fsingle_key_description.
5544
5545 * keymap.h (Fkey_description): Fix prototype.
5546 (describe_vector): Remove prototype.
5547
5548 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
5549
5550 * image.c (PNG_BG_COLOR_SHIFT): Remove.
5551 (png_load): Fix calculation of transparent background color on X
5552 and W32 platforms.
5553
5554 2004-04-16 Juanma Barranquero <lektu@terra.es>
5555
5556 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
5557 not too large before computing how much to scroll.
5558
5559 2004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
5560
5561 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
5562
5563 2004-04-14 Luc Teirlinck <teirllm@auburn.edu>
5564
5565 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
5566 Add hyperlink to Elisp manual to the docstring.
5567
5568 2004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
5569
5570 * callint.c (fix_command): Use XDCR.
5571
5572 2004-04-14 Nick Roberts <nick@nick.uklinux.net>
5573
5574 * window.c (Fget_lru_window): Doc fix.
5575
5576 2004-04-14 Kim F. Storm <storm@cua.dk>
5577
5578 * editfns.c (Fformat): Fix allocation size of precision array.
5579
5580 * dispnew.c (update_window): Only set changed_p if
5581 scrolling_window actually did scroll.
5582 (scrolling_window): Only return 1 if we actually did scroll.
5583
5584 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
5585 height to glyph height when cursor row is not fully visible.
5586 (make_cursor_line_fully_visible): Add FORCE_P arg to return
5587 failure in case row is higher than window. Callers changed.
5588 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
5589 Try to scroll partially visible, higher-than-window cursor row.
5590 (redisplay_window): Always try to scroll partially visible,
5591 higher-than-window cursor row - both initially and again with
5592 centering_position = 0.
5593 Clear desired matrix before retrying with centering_position = 0.
5594
5595 2004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
5596
5597 * syntax.c (scan_lists): Simplify backward string scan.
5598 Fix off-by-one boundary check for string and comment fences.
5599
5600 2004-04-13 Joe Buehler <jbuehler@hekimian.com>
5601
5602 * sheap.c, unexcw.c: New files.
5603
5604 2004-04-12 Luc Teirlinck <teirllm@auburn.edu>
5605
5606 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
5607 base buffer has been killed. Correct the error message if the
5608 base buffer does not exist.
5609
5610 2004-04-12 Joe Buehler <jbuehler@hekimian.com>
5611
5612 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
5613 Cygwin itself. Add support for Xaw3d scrollbars.
5614
5615 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
5616
5617 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
5618
5619 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
5620 before Cygwin unexec.
5621
5622 * Makefile.in: Link changes for Cygwin unexec() support.
5623
5624 2004-04-12 Andreas Schwab <schwab@suse.de>
5625
5626 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
5627
5628 2004-04-11 Luc Teirlinck <teirllm@auburn.edu>
5629
5630 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
5631 IGNORE argument equals NAME. Doc fix.
5632
5633 2004-04-11 Masatake YAMATO <jet@gyve.org>
5634
5635 * buffer.c (fix_start_end_in_overlays): Make overlays
5636 empty if they are backwards.
5637
5638 2004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
5639
5640 * xfaces.c (face_color_supported_p): Fix compilation without X11.
5641
5642 2004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
5643
5644 * doc.c (Fsnarf_documentation): Ignore new file name entries.
5645
5646 2004-04-06 Kim F. Storm <storm@cua.dk>
5647
5648 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
5649 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
5650
5651 * w32term.c (w32_read_socket): Set mouse_face_hidden after
5652 clearing highlight.
5653
5654 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
5655
5656 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
5657 clearing highlight.
5658
5659 * indent.c (vmotion): Do not reserve one column for continuation
5660 marks on window frames.
5661
5662 2004-04-04 Eli Zaretskii <eliz@gnu.org>
5663
5664 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
5665 from GCC.
5666
5667 2004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
5668
5669 * .gdbinit-union: Remove.
5670
5671 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
5672 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
5673 ($nonvalbits): Remove.
5674 ($valmask): Set it by calling xreload to avoid redundancy.
5675
5676 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
5677 (gdb_emacs_intbits): Remove.
5678
5679 2004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5680
5681 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
5682
5683 2004-03-30 Kenichi Handa <handa@m17n.org>
5684
5685 * editfns.c (Fformat): Fix initialization of the array info.
5686
5687 2004-03-30 Kim F. Storm <storm@cua.dk>
5688
5689 * xterm.c (x_mouse_click_focus_ignore_position): New var.
5690 (syms_of_xterm): DEFVAR_BOOL it.
5691 (ignore_next_mouse_click_timeout): New var.
5692 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
5693 Use it to filter mouse clicks following focus event.
5694
5695 2004-03-29 David Ponce <david@dponce.com>
5696
5697 * callint.c (Fcall_interactively): Fix last change.
5698
5699 2004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
5700
5701 * eval.c (Fcommandp): Simplify.
5702
5703 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
5704 Extend to handle all kinds of functions.
5705
5706 * lisp.h (Finteractive_form): Declare.
5707
5708 * callint.c (Fcall_interactively): Use it.
5709
5710 2004-03-26 Kim F. Storm <storm@cua.dk>
5711
5712 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
5713 to catch errors in calc_pixel_width_or_height during redisplay.
5714
5715 2004-03-26 Masatake YAMATO <jet@gyve.org>
5716
5717 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
5718
5719 * lisp.h (fix_start_end_in_overlays): Likewise.
5720
5721 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
5722
5723 * editfns.c (Ftranspose_regions): Likewise.
5724
5725 2004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5726
5727 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
5728
5729 2004-03-19 Richard M. Stallman <rms@gnu.org>
5730
5731 * s/sol2-6.h: Delete previous change.
5732
5733 2004-03-19 Kim F. Storm <storm@cua.dk>
5734
5735 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
5736 to_charpos corresponds to newline in right fringe. Use local
5737 BUFFER_POS_REACHED_P macro.
5738
5739 2004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5740
5741 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
5742 to compile on non-window system.
5743
5744 2004-03-19 Kim F. Storm <storm@cua.dk>
5745
5746 * dispextern.h (calc_pixel_width_or_height): Add prototype.
5747
5748 * image.c (Qcenter): Move to xdisp.c.
5749
5750 * xdisp.c (Qcenter): Declare here.
5751 (syms_of_xdisp): Intern and staticpro it.
5752 (handle_single_display_prop): Allow space display property on all
5753 platforms.
5754 (display_mode_line): Set mode_line_p before displaying line.
5755 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
5756 handling. Remove complex cases for fringes and scroll-bars.
5757 Add left, right, and center alignment positions. Add text (area)
5758 width/height. Return width or height for image specs.
5759 (produce_stretch_glyph): Improve handling of :align-to. Is now
5760 relative to left of text area by default, but other base offsets
5761 can be specified -- also for text lines.
5762
5763 * term.c (produce_glyphs): Handle IT_STRETCH.
5764 (produce_stretch_glyph): New function to handle space width and
5765 align-to display properties on non-window systems.
5766
5767 2004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
5768
5769 * fileio.c (Fread_file_name): Set completion-ignore-case for
5770 case-insensitive systems.
5771
5772 2004-03-14 Masatake YAMATO <jet@gyve.org>
5773
5774 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
5775 when keymap and cursor are setup.
5776
5777 2004-03-14 Steven Tamm <steventamm@mac.com>
5778
5779 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
5780
5781 2004-03-14 Kim F. Storm <storm@cua.dk>
5782
5783 * dispextern.h (x_find_image_file): Add prototype.
5784
5785 * image.c (x_find_image_file): Make extern.
5786
5787 * xfns.c (x_find_image_file): Remove prototype.
5788
5789 2004-03-13 Eli Zaretskii <eliz@gnu.org>
5790
5791 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
5792
5793 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
5794
5795 2004-03-12 Richard M. Stallman <rms@gnu.org>
5796
5797 * fns.c (internal_equal): New arg PROPS controls comparing
5798 text properties. All callers changed.
5799 (Fequal_including_properties): New function.
5800 (syms_of_fns): defsubr it.
5801
5802 2004-03-12 Kim F. Storm <storm@cua.dk>
5803
5804 Fix image support on MAC. From YAMAMOTO Mitsuharu.
5805
5806 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
5807 (image_background, image_background_transparent): Fix prototypes.
5808
5809 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
5810
5811 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
5812 (x_query_font, x_find_ccl_program, x_set_window_size)
5813 (x_make_frame_visible, mac_initialize, XCreatePixmap)
5814 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
5815 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
5816
5817 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
5818 (x_query_font, x_find_ccl_program, x_set_window_size)
5819 (x_make_frame_visible, mac_initialize, XCreatePixmap)
5820 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
5821 (mac_draw_line_to_pixmap): Add prototypes.
5822
5823 2004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5824
5825 * macterm.c (XTread_socket): Fix mouse click on tool bar.
5826
5827 2004-03-11 Kim F. Storm <storm@cua.dk>
5828
5829 * dispextern.h: Move image related prototypes from xfns.c section
5830 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
5831 HAVE_X_WINDOWS.
5832
5833 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
5834 Move gtkutil.o to new GTK_OBJ list.
5835 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
5836 (GTK_OBJ) [USE_GTK]: New declaration.
5837 (obj): Add $(GTK_OBJ) to list.
5838
5839 2004-03-11 Steven Tamm <steventamm@mac.com>
5840
5841 * image.c [MAC_OSX]: Include sys/stat.h.
5842
5843 * macfns.c (syms_of_macfns): Remove definitions of things now
5844 defined in image.c.
5845
5846 2004-03-11 Kim F. Storm <storm@cua.dk>
5847
5848 The following changes consolidates the identical/similar image
5849 support code previously found in xfns.c, w32fns.c, and macfns.c
5850 into a new file image.c.
5851
5852 * makefile.w32-in (OBJ1): Add image.o.
5853 ($(BLD)/image.$(O)): Add dependencies.
5854
5855 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
5856 (image.o): Add dependencies.
5857
5858 * image.c: New file with consolidated image support code.
5859 (COLOR_TABLE_SUPPORT): New define to control whether
5860 color table support is available (X only).
5861 (Bitmap_Record): Common name for x_bitmap_record,
5862 w32_bitmap_record, and mac_bitmap_record.
5863 (XImagePtr): Common name for pointer to XImage or equivalent.
5864 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
5865 to XImagePtr on X+MAC, and to HDC on W32.
5866 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
5867 (NO_PIXMAP): Common name for "None" or equivalent.
5868 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
5869 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
5870 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
5871 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
5872 Define with suitable equivalents on W32 and MAC for code sharing.
5873 (XDrawLine): Define on MAC for code sharing.
5874 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
5875 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
5876 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
5877 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
5878 (x_reference_bitmap, x_create_bitmap_from_data)
5879 (x_create_bitmap_from_file, x_destroy_bitmap)
5880 (x_destroy_all_bitmaps, x_create_bitmap_mask)
5881 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
5882 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
5883 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
5884 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
5885 (define_image_type, lookup_image_type, valid_image_p)
5886 (image_error, enum image_value_type, struct image_keyword)
5887 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
5888 (make_image, free_image, prepare_image_for_display, image_ascent)
5889 (four_corners_best, image_background, image_background_transparent)
5890 (x_clear_image_1, x_clear_image, x_alloc_image_color)
5891 (make_image_cache, free_image_cache, clear_image_cache)
5892 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
5893 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
5894 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
5895 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
5896 (init_image_func_pointer, image_load_quartz2d)
5897 (struct ct_color, init_color_table, free_color_table)
5898 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
5899 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
5900 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
5901 (x_disable_image, x_build_heuristic_mask)
5902 (XBM support, XPM support, PBM support, PNG support, JPEG support)
5903 (TIFF support, GIF support, Ghostscript support): Consolidate image
5904 code from xfns.c, w32fns.c, and macfns.c.
5905 (syms_of_image): Consolidate image related symbol setup here.
5906 (init_image): Consolidate image related initializations here.
5907
5908 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
5909 and init_image. Remove call to init_xfns.
5910
5911 * macterm.h (struct mac_bitmap_record): Add file member.
5912 Not currently used, but simplifies code sharing.
5913
5914 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
5915 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
5916 (x_reference_bitmap, x_create_bitmap_from_data)
5917 (x_create_bitmap_from_file, x_destroy_bitmap)
5918 (x_destroy_all_bitmaps, x_create_bitmap_mask)
5919 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
5920 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
5921 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
5922 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
5923 (define_image_type, lookup_image_type, valid_image_p)
5924 (image_error, enum image_value_type, struct image_keyword)
5925 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
5926 (make_image, free_image, prepare_image_for_display, image_ascent)
5927 (four_corners_best, image_background, image_background_transparent)
5928 (x_clear_image_1, x_clear_image, x_alloc_image_color)
5929 (make_image_cache, free_image_cache, clear_image_cache)
5930 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
5931 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
5932 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
5933 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
5934 (init_image_func_pointer, image_load_quartz2d)
5935 (struct ct_color, init_color_table, free_color_table)
5936 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
5937 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
5938 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
5939 (x_disable_image, x_build_heuristic_mask)
5940 (XBM support, XPM support, PBM support, PNG support, JPEG support)
5941 (TIFF support, GIF support, Ghostscript support): Merge with image
5942 code from xfns.c and macfns.c into image.c.
5943 (syms_of_xfns): Move image related symbols to image.c.
5944 (init_external_image_libraries, init_xfns): Remove; initialization
5945 moved to init_image in image.c.
5946
5947 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
5948 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
5949 (x_reference_bitmap, x_create_bitmap_from_data)
5950 (x_create_bitmap_from_file, x_destroy_bitmap)
5951 (x_destroy_all_bitmaps, x_create_bitmap_mask)
5952 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
5953 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
5954 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
5955 (define_image_type, lookup_image_type, valid_image_p)
5956 (image_error, enum image_value_type, struct image_keyword)
5957 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
5958 (make_image, free_image, prepare_image_for_display, image_ascent)
5959 (four_corners_best, image_background, image_background_transparent)
5960 (x_clear_image_1, x_clear_image, x_alloc_image_color)
5961 (make_image_cache, free_image_cache, clear_image_cache)
5962 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
5963 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
5964 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
5965 (struct ct_color, init_color_table, free_color_table)
5966 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
5967 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
5968 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
5969 (x_disable_image, x_build_heuristic_mask)
5970 (XBM support, XPM support, PBM support, PNG support, JPEG support)
5971 (TIFF support, GIF support, Ghostscript support): Merge with image
5972 code from xfns.c and macfns.c into image.c.
5973 (syms_of_xfns): Move image related symbols to image.c.
5974 (init_external_image_libraries, init_xfns): Remove; initialization
5975 moved to init_image in image.c.
5976
5977 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
5978 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
5979 (x_reference_bitmap, x_create_bitmap_from_data)
5980 (x_create_bitmap_from_file, x_destroy_bitmap)
5981 (x_destroy_all_bitmaps, x_create_bitmap_mask)
5982 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
5983 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
5984 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
5985 (define_image_type, lookup_image_type, valid_image_p)
5986 (image_error, enum image_value_type, struct image_keyword)
5987 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
5988 (make_image, free_image, prepare_image_for_display, image_ascent)
5989 (four_corners_best, image_background, image_background_transparent)
5990 (x_clear_image_1, x_clear_image, x_alloc_image_color)
5991 (make_image_cache, free_image_cache, clear_image_cache)
5992 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
5993 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
5994 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
5995 (struct ct_color, init_color_table, free_color_table)
5996 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
5997 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
5998 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
5999 (x_disable_image, x_build_heuristic_mask)
6000 (XBM support, XPM support, PBM support, PNG support, JPEG support)
6001 (TIFF support, GIF support, Ghostscript support): Merge with
6002 w32fns.c and macfns.c image code into image.c.
6003 (syms_of_xfns): Move image related symbols to image.c.
6004 (init_xfns): Remove; initialization moved to init_image in image.c.
6005
6006 * lisp.h (syms_of_image, init_image): Add protoypes.
6007 (init_xfns): Remove prototype.
6008
6009 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
6010 (x_reference_bitmap, x_create_bitmap_from_data)
6011 (x_create_bitmap_from_file, x_destroy_bitmap)
6012 (x_create_bitmap_mask): Move prototypes from dispextern.h.
6013 (gamma_correct) [MAC_OS]: Add prototype.
6014
6015 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
6016 (x_reference_bitmap, x_create_bitmap_from_data)
6017 (x_create_bitmap_from_file, x_destroy_bitmap)
6018 (x_create_bitmap_mask): Move prototypes to dispextern.h.
6019
6020 2004-03-09 Kenichi Handa <handa@etlken2>
6021
6022 * coding.c (decode_coding_emacs_mule): Handle insufficent source
6023 correctly.
6024
6025 2004-03-04 Richard M. Stallman <rms@gnu.org>
6026
6027 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
6028
6029 * window.c (Fdisplay_buffer): Doc fix.
6030
6031 * buffer.c (Fpop_to_buffer): Doc fix.
6032
6033 2004-03-03 Kim F. Storm <storm@cua.dk>
6034
6035 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
6036
6037 2004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
6038
6039 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
6040
6041 2004-03-02 Richard M. Stallman <rms@gnu.org>
6042
6043 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
6044
6045 2004-03-02 Kenichi Handa <handa@m17n.org>
6046
6047 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
6048
6049 2004-03-02 Kim F. Storm <storm@cua.dk>
6050
6051 * window.h (struct window): New member overlay_arrow_bitmap.
6052
6053 * window.c (make_window): Initialize overlay_arrow_bitmap.
6054
6055 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
6056 implement and integrate multiple overlay arrows with redisplay.
6057 (syms_of_xdisp): DEFVAR_LISP and initialize it.
6058 (last_arrow_position, last_arrow_string): Replace by properties.
6059 (Qlast_arrow_position, Qlast_arrow_string)
6060 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
6061 (syms_of_xdisp): Intern and staticpro them.
6062 (overlay_arrow_string_or_property, update_overlay_arrows)
6063 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
6064 (overlay_arrow_at_row): New functions for multiple overlay arrows.
6065 (redisplay_internal): Use them instead of directly accessing
6066 Voverlay_arrow_position etc. for multiple overlay arrows.
6067 (mark_window_display_accurate): Use update_overlay_arrows.
6068 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
6069 (try_window_id): Use overlay_arrows_changed_p.
6070 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
6071 (display_line): Use overlay_arrow_at_row to check multiple
6072 overlay arrows, and get relevant overlay-arrow-string and
6073 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
6074 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
6075 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
6076
6077 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
6078 (update_window_fringes): Remove unused code.
6079
6080 2004-03-01 Jason Rumney <jasonr@gnu.org>
6081
6082 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
6083
6084 2004-03-01 Juanma Barranquero <lektu@terra.es>
6085
6086 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
6087
6088 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
6089
6090 2004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6091
6092 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
6093 how many colors can be displayed.
6094
6095 2004-03-01 Kenichi Handa <handa@m17n.org>
6096
6097 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
6098 correctly.
6099
6100 2004-02-28 Kim F. Storm <storm@cua.dk>
6101
6102 * dispnew.c (update_window): Update header line also if there are
6103 no other changes in window (move code after set_cursor label).
6104
6105 * lisp.h (mark_window_display_accurate): Remove prototype.
6106
6107 * window.c (window_loop, Fforce_window_update): Force mode line
6108 updates by setting prevent_redisplay_optimizations_p and
6109 update_mode_lines.
6110
6111 2004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6112
6113 * xfns.c (x_window): Fix indentation.
6114
6115 * xterm.c (x_calc_absolute_position): Call x_real_positions
6116 to get WM window sizes and use those to calculate position.
6117 (x_set_offset): Remove code commented out.
6118
6119 2004-02-28 Miles Bader <miles@gnu.org>
6120
6121 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
6122
6123 2004-02-28 Kim F. Storm <storm@cua.dk>
6124
6125 * keyboard.c (kbd_buffer_store_event_hold): New function to store
6126 an event into kbd fifo, but with special handling of quit event;
6127 a quit event is saved for later, and further events are discarded
6128 until the saved quit event has been processed.
6129 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
6130 (gen_help_event): Store help event in kbd fifo.
6131 (NREAD_INPUT_EVENTS): Remove.
6132 (read_avail_input): Adapt to new read_socket_hook interface.
6133 Remove allocation and initialization of local input_event buffer,
6134 as read_socket_hook stores events directly in fifo. Allocate and
6135 initialize local hold_quit event to handle postponed quit event
6136 (and store it if set by kbd_buffer_store_event_hold).
6137
6138 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
6139 (gen_help_event): Fix prototype.
6140
6141 * macterm.c (XTread_socket): Remove bufp_r and
6142 numcharsp args. Add hold_quit arg.
6143 Rework to use just one, local, inev input_event. Store inev
6144 directly in fifo using kbd_buffer_store_event_hold.
6145
6146 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
6147 (read_input_waiting): Adapt to new read_socket_hook interface.
6148 Remove allocation and initialization of local input_event buffer,
6149 as read_socket_hook stores events directly in fifo. Allocate and
6150 initialize local hold_quit event to handle postponed quit event
6151 (and store it if set by kbd_buffer_store_event_hold).
6152
6153 * term.c (read_socket_hook): Fix arg list.
6154
6155 * termhooks.h (read_socket_hook): Fix prototype.
6156
6157 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
6158 numcharsp args. Add hold_quit arg.
6159 Rework to use just one, local, inev input_event. Store inev
6160 directly in fifo using kbd_buffer_store_event_hold.
6161
6162 * w32inevt.h (w32_console_mouse_position): Fix prototype.
6163
6164 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
6165 Add hold_quit arg. Rework to use just one, local, inev
6166 input_event. Store inev directly in fifo using
6167 kbd_buffer_store_event_hold. Update count in one place.
6168 Postpone call to gen_help_event until inev is stored; use new
6169 local do_help for this.
6170 Remove local emacs_event in handing of ButtonPress event; just use
6171 inev instead (so no reason to copy it later).
6172
6173 * xsmfns.c (x_session_check_input): Remove numchars arg.
6174
6175 * xterm.c (x_focus_changed, x_detect_focus_change):
6176 Remove numchars arg. Always store event into bufp arg.
6177 Return nothing. Callers changed accordingly.
6178 (glyph_rect): Simplify.
6179 (STORE_KEYSYM_FOR_DEBUG): New macro.
6180 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
6181 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
6182 (current_hold_quit) [USE_GTK]: Add.
6183 (event_handler_gdk): Adapt to new handle_one_xevent.
6184 (handle_one_xevent): Remove bufp_r and numcharsp args.
6185 Add hold_quit arg. Rework to use just one, local, inev
6186 input_event. Store inev directly in fifo using
6187 kbd_buffer_store_event_hold. Update count in one place.
6188 Postpone call to gen_help_event until inev is stored; use new
6189 local do_help for this.
6190 Simplify handling of keysyms (consolidate common code). Fix bug
6191 where count was updated with nchars instead of nbytes.
6192 Remove local emacs_event in handing of ButtonPress event; just use
6193 inev instead (so no reason to copy it later).
6194 Remove `out' label. Rename label `ret' to `done'; add various
6195 `goto done' to clarify code flow in deeply nested blocks.
6196 (x_dispatch_event): Simplify as handle_one_xevent now calls
6197 kbd_buffer_store_event itself.
6198 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
6199 arg. Call handle_one_xevent with new arglist. Store event from
6200 x_session_check_input in fifo.
6201 [USE_GTK]: Setup current_hold_quit.
6202 Decrement handling_signal before unblocking input.
6203 (x_initialize) [USE_GTK]: Initialize current_count.
6204
6205 * xterm.h (x_session_check_input): Fix prototype.
6206
6207 2004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6208
6209 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
6210
6211 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
6212 macgui.h).
6213
6214 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
6215
6216 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
6217 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
6218 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
6219 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
6220 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
6221 (Bitmap): Remove typedef.
6222 (Pixmap): Change int to GWorldPtr.
6223
6224 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
6225
6226 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
6227 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
6228 New #define to extract 16-bit depth color components from unsigned
6229 long representation.
6230 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
6231 colors used for masks.
6232 (struct mac_display_info): Add color_p. Remove n_cbits.
6233
6234 * macfns.c: Include sys/types.h and sys/stat.h.
6235 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
6236 Include QuickTime/QuickTime.h.
6237 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
6238 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
6239 functions defined in macterm.c.
6240 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
6241 (ZPixmap): New #define for compatibility with xfns.c.
6242 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
6243 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
6244 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
6245 New functions.
6246 (four_corners_best, x_create_x_image_and_pixmap)
6247 (x_destroy_x_image, unwind_create_frame, x_disable_image)
6248 (x_edge_detection, init_color_table, colors_in_color_table)
6249 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
6250 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
6251 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
6252 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
6253 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
6254 long mixup.
6255 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
6256 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
6257 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
6258 (x_set_cursor_type, Fxw_color_values, valid_image_p)
6259 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
6260 (x_alloc_image_color, clear_image_cache, lookup_image)
6261 (x_find_image_file, xbm_read_bitmap_file_data)
6262 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
6263 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
6264 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
6265 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
6266 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
6267 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
6268 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
6269 #if 0.
6270 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
6271 #if 0. Free white_relief.gc and black_relief.gc.
6272 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
6273 New functions (from xfns.c).
6274 (Fx_create_frame): Record unwind_create_frame.
6275 (Fxw_display_color_p): Use dpyinfo->color_p.
6276 (Fx_display_grayscale_p, Fx_display_planes): Don't use
6277 dpyinfo->n_cbits.
6278 (Fx_display_color_cells): Use dpyinfo->n_planes;
6279 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
6280 (Qheuristic, cross_disabled_images, emboss_matrix)
6281 (laplace_matrix): New variables (from xfns.c).
6282 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
6283 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
6284 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
6285 (image_background_transparent): New function (from xfns.c).
6286 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
6287 (image_load_quicktime): Add declaration.
6288 [MAC_OSX] (image_load_quartz2d): Likewise.
6289 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
6290 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
6291 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
6292 (xbm_load_image_from_file, x_laplace_read_row)
6293 (x_laplace_write_row, pbm_read_file): Remove functions.
6294 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
6295 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
6296 (colors_in_color_table): Sync with xfns.c (although not used).
6297 (lookup_rgb_color): Don't lookup color table. Just do gamma
6298 correction.
6299 (COLOR_INTENSITY): New #define (from xfns.c).
6300 (x_disable_image): New function (from xfns.c).
6301 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
6302 (x_build_heuristic_mask): Sync with xfns.c.
6303 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
6304 (HAVE_PBM): Remove #ifdef.
6305 (pbm_load): Sync with xfns.c. Set img->width and img->height
6306 before IMAGE_BACKGROUND.
6307 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
6308 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
6309 Don't enclose with #if HAVE_PNG.
6310 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
6311 symbol _CGImageCreateWithPNGDataProvider is defined.
6312 Otherwise use image_load_quicktime.
6313 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
6314 [HAVE_PNG] (png_load): Sync with xfns.c.
6315 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
6316 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
6317 HAVE_JPEG.
6318 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
6319 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
6320 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
6321 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
6322 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
6323 (tiff_image_p, tiff_load): Don't enclose declarations with #if
6324 HAVE_TIFF.
6325 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
6326 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
6327 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
6328 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
6329 New functions (from xfns.c).
6330 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
6331 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
6332 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
6333 Don't enclose with #if HAVE_GIF.
6334 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
6335 animated gif. Otherwise use image_load_quicktime.
6336 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
6337 gif_DrawText to avoid conflict with QuickdrawText.h.
6338 [HAVE_GIF] (gif_load): Sync with xfns.c.
6339 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
6340 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
6341 Ghostscript is not supported yet).
6342 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
6343 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
6344 cross_disabled_images (from xfns.c). Remove #if 0 for supported
6345 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
6346 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
6347 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
6348 HAVE_PNG. Call EnterMovies to support animated gifs.
6349 Call init_image_func_pointer to bind a symbol
6350 _CGImageCreateWithPNGDataProvider if it is defined.
6351
6352 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
6353 (x_draw_bar_cursor): Sync declaration with xterm.c.
6354 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
6355 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
6356 graphics).
6357 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
6358 (mac_draw_line_to_pixmap, XCreatePixmap)
6359 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
6360 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
6361 New functions.
6362 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
6363 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
6364 Cast bits to char *.
6365 (reflect_byte): New function (from w32fns.c).
6366 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
6367 due to byte alignment.
6368 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
6369 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
6370 (XSetForeground): Remove static (now used in macfns.c).
6371 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
6372 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
6373 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
6374 (x_draw_glyph_string_box, x_draw_image_foreground)
6375 (x_draw_image_foreground_1, x_draw_image_glyph_string)
6376 (x_draw_stretch_glyph_string, x_draw_glyph_string)
6377 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
6378 Sync with xterm.c.
6379 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
6380 than the xterm.c version when a strictly horizontal or vertical
6381 line is drawn.
6382 (XTset_terminal_window): Add static.
6383 (x_make_frame_visible): Add UNBLOCK_INPUT.
6384 (x_free_frame_resources): New funcion (from xterm.c).
6385 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
6386 occurs in tool bar area.
6387 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
6388 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
6389 Initialize image cache.
6390 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
6391 Enclose unused functions with #if 0.
6392 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
6393 (decode_mac_font_name): New function to apply code conversions
6394 from a mac font name to an XLFD font name according to its script code.
6395 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
6396 font name to a mac font name according to REGISTRY and ENCODING fields.
6397 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
6398 whose name starts with `.'.
6399 (init_font_name_table): Use decode_mac_font_name. Add both
6400 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
6401 of a font is smJapanese.
6402 (mac_do_list_fonts): New function to list fonts that match a given
6403 pattern.
6404 (x_list_fonts, XLoadQueryFont): Use it.
6405 (XLoadQueryFont): Set rbearing field for each variable width
6406 character to avoid needless redraw.
6407 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
6408
6409 2004-02-26 Kim F. Storm <storm@cua.dk>
6410
6411 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
6412 as read_socket_hook handler on X aborts if buffer is too small
6413 and W32 handler doesn't always check buffer limit.
6414
6415 * xdisp.c (handle_single_display_prop): Handle left-fringe and
6416 right-fringe similar to a display margin image. Specifically,
6417 the characters having the fringe prop are no longer shown, and
6418 we use IT_IMAGE/next_element_from_image with image_id = -1 to
6419 do this. Set fringe bitmap face_id in it->face_id.
6420 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
6421 still realize it->face (i.e. the fringe bitmap face).
6422
6423 2004-02-25 Miles Bader <miles@gnu.org>
6424
6425 * xdisp.c (check_it): Check string/string_pos consistency.
6426 (init_iterator): Initialize string-related fields properly.
6427
6428 2004-02-11 Miles Bader <miles@gnu.org>
6429
6430 * xdisp.c (produce_image_glyph): Force negative descents to zero.
6431
6432 2004-02-10 Miles Bader <miles@gnu.org>
6433
6434 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
6435 BLOCK_INPUT can be nested, so it doesn't make much sense.
6436
6437 2004-02-24 Michael Mauger <mmaug@yahoo.com>
6438
6439 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
6440 (xbm_read_bitmap_data): Use unsigned char for image data.
6441
6442 2004-02-23 Luc Teirlinck <teirllm@auburn.edu>
6443
6444 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
6445
6446 2004-02-22 Jason Rumney <jasonr@gnu.org>
6447
6448 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
6449 correctly over other bitmaps.
6450
6451 2004-02-21 Eli Zaretskii <eliz@gnu.org>
6452
6453 * emacs.c (USAGE1): Split into two halves.
6454 (USAGE2): Second half of the old USAGE1.
6455 (USAGE3): Rename from USAGE2.
6456 (USAGE4): Rename from USAGE3.
6457
6458 2004-02-21 Juri Linkov <juri@jurta.org>
6459
6460 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
6461 Fix --multibyte. Move --help, --version to USAGE2. Add alias
6462 --file. Fix -f, -l. Sort options. Untabify.
6463 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
6464
6465 2004-02-19 Luc Teirlinck <teirllm@auburn.edu>
6466
6467 * category.c (Fdefine_category, Fcategory_docstring)
6468 (Fget_unused_category, Fset_category_table)
6469 (Fcategory_set_mnemonics): Doc fixes.
6470
6471 2004-02-20 Kim F. Storm <storm@cua.dk>
6472
6473 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
6474 The following changes are relative to the 2004-01-21 revision.
6475 (NREAD_INPUT_EVENTS): Define as max number of input events to read
6476 in one call to read_socket_hook. Value is 8.
6477 (read_avail_input): Separate and rework handling of read_socket_hook
6478 and non-read_socket_hook cases. Use smaller input_event buffer
6479 in read_socket_hook case, and repeat if full buffer is read.
6480 Use new local variable 'discard' to skip input after C-g.
6481 In non-read_socket_hook case, just use a single input_event, and
6482 call kbd_buffer_store_event on the fly for each character.
6483
6484 2004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
6485
6486 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
6487 Remove unused `gu' alternative.
6488
6489 2004-02-19 Andreas Schwab <schwab@suse.de>
6490
6491 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
6492 warning.
6493
6494 2004-02-18 Kim F. Storm <storm@cua.dk>
6495
6496 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
6497 Fix last change.
6498
6499 2004-02-17 Kim F. Storm <storm@cua.dk>
6500
6501 * xdisp.c (fast_find_position): Fix return value of new version;
6502 it was inverted compared to the 21.1 version.
6503 (get_window_cursor_type): Don't look at glyph if NULL.
6504 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
6505
6506 * keyboard.c: Rework previous change; it didn't consider that the
6507 buf array was allocated on the stack.
6508 (prev_read): Remove variable.
6509 (read_avail_input_buf): New static event buffer array.
6510 (in_read_avail_input): New static variable to handle re-entrancy.
6511 (read_avail_input): Change buf to pinter to read_avail_input_buf.
6512 Use in_read_avail_input to handle re-entrance; when re-entered,
6513 fully initialize and use tmp_buf array instead of read_avail_input_buf.
6514 Do not initialize read_avail_input_buf in full here; instead assume it
6515 is always cleared on entry. To ensure that, we clear (just) the
6516 entries that were used before we return.
6517 (init_keyboard): Initialize read_avail_input_buf here.
6518
6519 2004-02-16 Jesper Harder <harder@ifa.au.dk>
6520
6521 * cmds.c (Fend_of_line): Doc fix.
6522
6523 2004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
6524
6525 * keyboard.c (prev_read): New static variable.
6526 (read_avail_input): Use it to zero out only those slots in buf[]
6527 that were used last time we were called.
6528
6529 2004-02-16 Eli Zaretskii <eliz@gnu.org>
6530
6531 * Makefile.in (obj): Move fringe.o from here...
6532 (XOBJ, MAC_OBJ): ...to here.
6533
6534 2004-02-16 Stephen Eglen <stephen@gnu.org>
6535
6536 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
6537
6538 2004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
6539
6540 * data.c (Fbyteorder):
6541 * fringe.c (Fdefine_fringe_bitmap):
6542 * xdisp.c (handle_single_display_prop):
6543 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
6544
6545 2004-02-16 Jason Rumney <jasonr@gnu.org>
6546
6547 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
6548
6549 2004-02-15 Steven Tamm <steventamm@mac.com>
6550
6551 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
6552 controlling emulation of a three button mouse with option and
6553 command keys.
6554 (Qreverse, mac_get_enumlated_btn): Handle the emulation.
6555 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
6556
6557 2004-02-15 Kim F. Storm <storm@cua.dk>
6558
6559 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
6560
6561 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
6562 Perform byte-swapping.
6563
6564 2004-02-14 Kim F. Storm <storm@cua.dk>
6565
6566 * dispextern.h (struct draw_fringe_bitmap_params): Change member
6567 bits from char to short to facilitate wider bitmaps.
6568 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
6569 member.
6570
6571 * fringe.c (struct fringe_bitmap): Change member bits from char to
6572 short to facilitate 16 bits wide bitmaps. Modify all standard
6573 bitmaps accordingly.
6574 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
6575 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
6576 (draw_fringe_bitmap): Ditto.
6577 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
6578 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
6579 handle up to 16 bits wide bitmaps.
6580 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
6581 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
6582
6583 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
6584 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
6585 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
6586
6587 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
6588 so it is no longer necessary to expand them here.
6589
6590 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
6591
6592 2004-02-12 Kim F. Storm <storm@cua.dk>
6593
6594 * window.c (Fwindow_fringes): Doc fix.
6595
6596 2004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6597
6598 * xselect.c (x_get_foreign_selection): Add new optional parameter
6599 time_stamp.
6600 (Fx_get_selection_internal): Ditto, pass time_stamp to
6601 x_get_foreign_selection.
6602
6603 * data.c (Fbyteorder): New function.
6604
6605 2004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6606
6607 * atimer.c: Move include stdio.h to same place as in other files.
6608
6609 * region-cache.c: Ditto.
6610
6611 * sysdep.c: Ditto.
6612
6613 * xfaces.c: Ditto.
6614
6615 2004-02-09 Sam Steingold <sds@gnu.org>
6616
6617 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
6618
6619 2004-02-09 Kim F. Storm <storm@cua.dk>
6620
6621 * fringe.c: New file. Move original fringe related declarations
6622 and code from dispextern.h and xdisp.c here.
6623 Rework code to support user defined fringe bitmaps, redefining
6624 standard bitmaps, ability to overlay user defined bitmap with
6625 overlay arrow bitmap, and add faces to bitmaps.
6626 (Voverflow_newline_into_fringe): Declare here.
6627 (enum fringe_bitmap_align): New enum.
6628 (..._bits): All bitmaps are now defined without bitswapping; that
6629 is now done in init_fringe_once (if necessary).
6630 (standard_bitmaps): New array with specifications for the
6631 standard fringe bitmaps.
6632 (fringe_faces): New array.
6633 (valid_fringe_bitmap_id_p): New function.
6634 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
6635 (draw_fringe_bitmap): New function which draws fringe bitmap,
6636 possibly overlaying bitmap with cursor in right fringe or the
6637 overlay arrow in the left fringe.
6638 (update_window_fringes): Do not handle overlay arrow here.
6639 Compare and copy fringe bitmap faces.
6640 (init_fringe_bitmap): New function.
6641 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
6642 define and destroy user defined fringe bitmaps.
6643 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
6644 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
6645 (syms_of_fringe): New function. Defsubr new DEFUNs.
6646 DEFVAR_LISP Voverflow_newline_into_fringe.
6647 (init_fringe_once, init_fringe): New functions.
6648 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
6649
6650 * Makefile.in (obj): Add fringe.o.
6651 (fringe.o): New dependencies.
6652
6653 * dispextern.h (FRINGE_ID_BITS): New definition for number of
6654 bits allocated to hold a fringe number. Increase number of bits
6655 from 4 to 8 to allow user defined fringe bitmaps.
6656 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
6657 left_user_fringe_face_id, right_user_fringe_bitmap,
6658 right_user_fringe_face_id.
6659 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
6660 Move to new file fringe.c.
6661 (MAX_FRINGE_BITMAPS): Define here.
6662 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
6663 and overlay_p. Change member which to int.
6664 (struct redisplay_interface): New members define_fringe_bitmap
6665 and destroy_fringe_bitmap.
6666 (valid_fringe_bitmap_id_p): Add prototype.
6667 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
6668
6669 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
6670 arrows.
6671 (update_frame): Do flush_display if force_flush_display_p to
6672 ensure display (specifically fringes) are updated in a timely
6673 manner when resizing the frame by dragging the mouse.
6674 (update_window_line): Update row if overlay arrow changed.
6675 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
6676 or overlay arrow changed.
6677
6678 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
6679 syms_of_fringe, and init_fringe.
6680
6681 * frame.h (struct frame): New member force_flush_display_p.
6682
6683 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
6684 Add prototypes.
6685
6686 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
6687 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
6688 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
6689 Use cursor color for displaying cursor in fringe.
6690 (x_redisplay_interface): Add null handlers for
6691 define_fringe_bitmap and destroy_fringe_bitmap functions.
6692
6693 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
6694 xterm.c to handle overlayed fringe bitmaps and to use cursor color
6695 for displaying cursor in fringe.
6696 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
6697 specific functions to define and destroy fringe bitmaps in fringe_bmp.
6698 (w32_redisplay_interface): Add them to redisplay_interface.
6699 (w32_term_init): Call w32_init_fringe instead of explicitly
6700 defining fringe bitmaps in fringe_bmp array.
6701 (x_delete_display): Call w32_reset_fringes instead of explicitly
6702 destroying fringe bitmaps in fringe_bmp array.
6703
6704 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
6705 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
6706 (continued_bits, continuation_bits, ov_bits, first_line_bits)
6707 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
6708 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
6709 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
6710 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
6711 Move fringe handling vars and code to new file fringe.c.
6712 (handle_display_prop): Handle left-fringe and right-fringe
6713 display properties; store user fringe bitmaps in iterator.
6714 (move_it_in_display_line_to): Handle cursor in fringe at eob.
6715 (clear_garbaged_frames): Set force_flush_display_p if resized.
6716 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
6717 (display_line): Handle cursor in fringe at eob.
6718 (display_line): Set row user fringe bitmaps from iterator.
6719
6720 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
6721 Use cursor color for displaying cursor in fringe.
6722 (x_redisplay_interface): Add null handlers for
6723 define_fringe_bitmap and destroy_fringe_bitmap functions.
6724
6725 2004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6726
6727 * macfns.c (Fx_change_window_property): Make doc string and
6728 parameters same as for X version.
6729
6730 * w32fns.c (Fx_change_window_property): Ditto.
6731
6732 2004-02-07 Kim F. Storm <storm@cua.dk>
6733
6734 * xdisp.c (hscroll_window_tree): Position cursor near to right
6735 margin in hscrolled window when jumping to end of line (rather
6736 than centering cursor).
6737
6738 * process.c (wait_reading_process_input): Don't do adaptive read
6739 buffering if waiting for a specific process.
6740
6741 2004-02-05 Luc Teirlinck <teirllm@auburn.edu>
6742
6743 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
6744 (Fread_minibuffer, Feval_minibuffer)
6745 (Fread_string, Fread_no_blanks_input)
6746 (Fcompleting_read): Doc fixes.
6747 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
6748 completion-regexp-list. Define Qcase_fold_search and staticpro it.
6749 (read_minibuf): Fix initial comment.
6750 (Ftry_completion, Fall_completions, Ftest_completion): Bind
6751 case-fold-search to the value of completion-ignore-case when
6752 checking completion-regexp-list.
6753 (Fdisplay_completion_list): Make it handle arguments that are
6754 symbols. Doc fix.
6755
6756 2004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6757
6758 * xterm.h: Add declaration of free_frame_menubar.
6759
6760 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
6761 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
6762 (Fx_change_window_property): Add declaration of parameters type and
6763 format. Remove unused variable cons.
6764
6765 * xselect.c: Include stdio,h.
6766
6767 2004-02-05 Kenichi Handa <handa@m17n.org>
6768
6769 * fns.c (Fset_char_table_range): Fix previous change.
6770
6771 * buffer.c (Fset_buffer_multibyte): Fix docstring.
6772
6773 2004-02-04 Luc Teirlinck <teirllm@auburn.edu>
6774
6775 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
6776
6777 2004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
6778
6779 * keymap.c (Vmouse_events): Rename from Vmenu_events.
6780 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
6781
6782 2004-02-04 Kenichi Handa <handa@m17n.org>
6783
6784 * fns.c (Fset_char_table_range): Handle charsets ascii,
6785 eight-bit-control, and eight-bit-graphic correctly.
6786
6787 2004-02-03 Jason Rumney <jasonr@gnu.org>
6788
6789 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
6790
6791 * w32fns.c (x_to_w32_font): Likewise.
6792
6793 2004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6794
6795 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
6796 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
6797
6798 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
6799 ClientMessages.
6800
6801 * xselect.c: Include termhooks.h and X11/Xproto.h
6802 (x_check_property_data, x_fill_property_data)
6803 (x_property_data_to_lisp, mouse_position_for_drop)
6804 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
6805 (Fx_send_client_event): Move here from xfns.c.
6806 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
6807
6808 * xfns.c (x-send-client-message): Move to xselect.c
6809 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
6810 OUTER_P.
6811 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
6812 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
6813 if vector_ret_p is true.
6814 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
6815
6816 2004-02-02 Eli Zaretskii <eliz@gnu.org>
6817
6818 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
6819 basename of FILE relative to it, not FILE itself.
6820
6821 2004-02-02 Kenichi Handa <handa@m17n.org>
6822
6823 * coding.c (coding_restore_composition): Check invalid
6824 composition data more rigidly.
6825
6826 2004-01-30 Luc Teirlinck <teirllm@auburn.edu>
6827
6828 * fileio.c (Fread_file_name_internal): Correctly handle the case
6829 where insert-default-directory is nil.
6830 (Fread_file_name): Always return an empty string if the user exits
6831 with an empty minibuffer. Adapt the docstring accordingly.
6832 (syms_of_fileio): Adapt the docstring of insert-default-directory
6833 to the change in Fread_file_name.
6834
6835 2004-01-29 Eli Zaretskii <eliz@gnu.org>
6836
6837 * alloca.c [!alloca]: Fix the prototype for xfree.
6838
6839 2004-01-29 Kenichi Handa <handa@m17n.org>
6840
6841 * fns.c (string_char_to_byte): Optimize for ASCII only string.
6842 (string_byte_to_char): Likewise.
6843
6844 2004-01-28 Peter Runestig <peter@runestig.com>
6845
6846 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
6847
6848 2004-01-27 Steven Tamm <steventamm@mac.com>
6849
6850 * unexmacosx.c (unexec_copy): Do not copy more than was
6851 requested to prevent overwriting during unexec.
6852
6853 2004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6854
6855 * process.c (sigchld_handler): Add comment about not calling malloc.
6856
6857 * process.h: Add extern to synch_process_termsig.
6858
6859 2004-01-27 Steven Tamm <steventamm@mac.com>
6860
6861 * macterm.c (make_mac_frame, make_mac_terminal_frame):
6862 Move setting of scroll bars from make_mac_frame to
6863 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
6864
6865 2004-01-26 Richard M. Stallman <rms@gnu.org>
6866
6867 * search.c (Freplace_match): Handle nonexistent
6868 back-references properly.
6869
6870 2004-01-03 Richard M. Stallman <rms@gnu.org>
6871
6872 * window.c (decode_any_window): New function.
6873 (Fwindow_height, Fwindow_width, Fwindow_edges)
6874 (Fwindow_pixel_edges, Fwindow_inside_edges)
6875 (Fwindow_inside_pixel_edges): Use decode_any_window.
6876
6877 2004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6878
6879 * process.h: synch_process_termsig new variable.
6880
6881 * callproc.c: Define synch_process_termsig.
6882 (Fcall_process): Initiate synch_process_termsig to zero and
6883 check if non-zero and get signal name after subprocess has ended.
6884
6885 * process.c (sigchld_handler): Set synch_process_termsig
6886 if terminated by a signal. synch_process_death setting removed.
6887
6888 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
6889
6890 2004-01-26 Andreas Schwab <schwab@suse.de>
6891
6892 * print.c (print_preprocess): Declare size as EMACS_INT to not
6893 lose bits.
6894 (print_object): Likewise.
6895 * alloc.c (Fpurecopy): Likewise.
6896
6897 2004-01-25 Luc Teirlinck <teirllm@auburn.edu>
6898
6899 * window.c (Fwindow_minibuffer_p): Doc fix.
6900
6901 2004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
6902
6903 * editfns.c (Fformat): Make both passes accept the same set of flags.
6904
6905 2004-01-23 Kenichi Handa <handa@m17n.org>
6906
6907 * fns.c (Fmd5): If OBJECT is a buffer different from the current
6908 one, set buffer to OBJECT temporarily.
6909
6910 2004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
6911
6912 * keyboard.c (kbd_buffer_gcpro): Remove.
6913 (kbd_buffer_store_event, clear_event, Fdiscard_input)
6914 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
6915 Don't initialize and/or maintain the variable any more. It was made
6916 redundant by my commit of 2003-06-15.
6917
6918 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
6919
6920 2004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6921
6922 * lisp.h: Add undef DECL_ALIGN.
6923
6924 2004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
6925
6926 * process.c (wait_reading_process_input) [SYNC_INPUT]:
6927 Check interrupt_input_pending explicitly.
6928
6929 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
6930
6931 * keyboard.c (handle_async_input): New fun,
6932 extracted from input_available_signal.
6933 (input_available_signal, reinvoke_input_signal): Use it.
6934
6935 2004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
6936
6937 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
6938
6939 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
6940 manipulation macros for when tags are in the lower bits.
6941 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
6942 (DECL_ALIGN): New macro.
6943 (DEFUN): Use it.
6944
6945 * lisp.h [ENABLE_CHECKING]: Don't force union type.
6946
6947 * s/darwin.h (__attribute__): Remove outdated workaround.
6948
6949 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
6950
6951 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
6952 Don't check range of malloc address.
6953 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
6954
6955 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
6956
6957 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
6958
6959 2004-01-19 Kenichi Handa <handa@m17n.org>
6960
6961 * fontset.c (fontset_font_pattern): Fix previous change.
6962
6963 2004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
6964
6965 * xdisp.c (Voverflow_newline_into_fringe)
6966 (move_it_in_display_line_to, redisplay_internal)
6967 (update_window_fringes, redisplay_window, display_line, window):
6968 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
6969 that it compiles without a window-system.
6970 * dispnew.c (direct_output_for_insert, update_window): Likewise.
6971
6972 2004-01-16 Kim F. Storm <storm@cua.dk>
6973
6974 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
6975
6976 * buffer.c (init_buffer_once): Set buffer_defaults and
6977 buffer_local_flags for indicate_buffer_boundaries.
6978 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
6979 default- variable for it.
6980
6981 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
6982 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
6983 New members exact_window_width_line_p and cursor_in_fringe_p for
6984 overflowing newlines into right fringe.
6985 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
6986 and indicate_bottom_line_p for buffer boundaries and scrolling.
6987 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
6988 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
6989 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
6990 and HOLLOW_SQUARE_BITMAP.
6991 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
6992 Add prototypes.
6993
6994 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
6995 instead of related indicator fields.
6996 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
6997 (direct_output_for_insert): Handle exact width lines like
6998 contined lines. Call update_window_fringes.
6999 (update_window): Call update_window_fringes.
7000 (scrolling_window): Don't skip desired rows with changed bitmaps.
7001 Check if fringe bitmaps changes when assigning scrolled rows.
7002
7003 * xdisp.c (Voverflow_newline_into_fringe): New variable.
7004 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
7005 (move_it_in_display_line_to): Overflow newline into fringe for
7006 rows that are exactly as wide as the window.
7007 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
7008 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
7009 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
7010 (fringe_bitmaps): Add new bitmaps.
7011 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
7012 Select proper bitmap for cursor in fringe when appropriate.
7013 Handle alignment of bitmap to top or bottom of row.
7014 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
7015 done by update_window_fringes.
7016 (update_window_fringes, draw_window_fringes): New functions.
7017 (redisplay_internal): Call update_window_fringes in case only
7018 cursor row is updated.
7019 (redisplay_window): Call update_window_fringes.
7020 Explicitly call draw_window_fringes if redisplay was done using
7021 the current matrix or the overlay arrow is in the window.
7022 (try_window_reusing_current_matrix): Mark scrolled rows for
7023 fringe update (to update buffer-boundaries / scrolling icons).
7024 (find_last_unchanged_at_beg_row): Handle exact width lines line
7025 continued lines.
7026 (display_line): Overflow newline into fringe for rows that are
7027 exactly as wide as the window. Don't append space for newline
7028 in this case.
7029 (notice_overwritten_cursor): Explicitly clear cursor bitmap
7030 in fringe as if it had been overwritten.
7031 (erase_phys_cursor): Erase cursor bitmap in fringe.
7032 (syms_of_xdisp): Mark show-trailing-whitespace and
7033 void-text-area-pointer as user options.
7034 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
7035
7036 * xterm.c (x_update_window_end): Call draw_window_fringes.
7037 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
7038 in row instead of actually drawing fringe bitmaps.
7039 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
7040 (x_draw_window_cursor): Draw cursor in fringe.
7041
7042 * w32term.c (x_update_window_end): Call draw_window_fringes.
7043 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
7044 in row instead of actually drawing fringe bitmaps.
7045 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
7046 (w32_draw_window_cursor): Draw cursor in fringe.
7047
7048 * macterm.c (x_update_window_end): Call draw_window_fringes.
7049 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
7050 in row instead of actually drawing fringe bitmaps.
7051 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
7052 (mac_draw_window_cursor): Draw cursor in fringe.
7053
7054 2004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7055
7056 * xterm.c (handle_one_xevent): Don't handle characters that are part
7057 of an old style (XLookupString) compose sequence.
7058
7059 2004-01-15 Kenichi Handa <handa@m17n.org>
7060
7061 * search.c (Freplace_match): Use make_multibyte_string or
7062 make_unibyte_string according to the buffer multibyteness.
7063
7064 2004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
7065
7066 * alloc.c (struct interval_block, struct string_block)
7067 (struct symbol_block, struct marker_block, live_string_p)
7068 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
7069 Better preserve alignment for objects in blocks.
7070 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
7071
7072 * lread.c (defvar_per_buffer): Remove dead declaration.
7073
7074 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
7075 space size.
7076
7077 2004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7078
7079 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
7080 if a key press should pop down. Only pop down if a key is pressed
7081 outside the menu/dialog.
7082 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
7083 popup_get_selection.
7084 (create_and_show_dialog): Pass 1 for down_on_keypress to
7085 popup_get_selection.
7086
7087 2004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7088
7089 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
7090 BLOCK/UNBLOCK_INPUT.
7091
7092 2004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7093
7094 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
7095 specified.
7096
7097 2004-01-08 Kenichi Handa <handa@m17n.org>
7098
7099 * editfns.c (Fformat): Fix '&' to '&&'.
7100
7101 2004-01-08 Andreas Schwab <schwab@suse.de>
7102
7103 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
7104 size if PSEUDOVECTOR_FLAG is set.
7105
7106 2004-01-07 Kenichi Handa <handa@m17n.org>
7107
7108 * charset.c (Fdeclare_equiv_charset): Fix docstring.
7109
7110 * fontset.c (fontset_ref_via_base): Fix previous change.
7111
7112 2004-01-07 Kim F. Storm <storm@cua.dk>
7113
7114 * process.c (read_process_output): Only activate adaptive
7115 buffering if we read less than 256 bytes at a time.
7116
7117 2004-01-06 Kim F. Storm <storm@cua.dk>
7118
7119 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
7120 object and image object. Return glyph width and height.
7121 (mode_line_string, marginal_area_string): Ditto.
7122
7123 * dispextern.h (buffer_posn_from_coords, mode_line_string)
7124 (marginal_area_string): Fix prototypes.
7125
7126 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
7127 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
7128 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
7129
7130 * keyboard.c (make_lispy_position): Use modified mode_line_string,
7131 buffer_posn_from_coords, and marginal_area_string functions to
7132 include both string object and image object in the lispy position.
7133 Also add actual glyph width and height to position.
7134 (read_key_sequence): Use real buffer position from mouse
7135 event to find keymap property even when click is in marginal area.
7136
7137 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
7138 mode_line_string and marginal_area_string functions to handle
7139 both string object and image object properties.
7140
7141 2004-01-06 Andreas Schwab <schwab@suse.de>
7142
7143 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
7144 character.
7145
7146 2004-01-02 Andreas Schwab <schwab@suse.de>
7147
7148 * macterm.c (emacs_options, x_initialized, same_x_server):
7149 Remove unused (and duplicated) definitions.
7150
7151 2004-01-02 Kim F. Storm <storm@cua.dk>
7152
7153 * process.h (struct Lisp_Process): New members for adaptive read
7154 buffering: adaptive_read_buffering, read_output_delay, and
7155 read_output_skip.
7156
7157 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
7158 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
7159 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
7160 (process_output_delay_count, process_output_skip): New vars.
7161 (Vprocess_adaptive_read_buffering): New variable.
7162 (make_process): Initialize adaptive read buffering members.
7163 (Fstart_process): Set adaptive_read_buffering member.
7164 (deactivate_process): Cleanup adaptive read buffering.
7165 (wait_reading_process_input): Temporarily omit delayed
7166 subprocesses from the set of file descriptors to read from;
7167 adjust the select timeout if we skipped any subprocesses.
7168 (read_process_output): Increase adaptive read buffering delay if
7169 we read less than a full buffer; reduce delay when we read a
7170 full buffer.
7171 (send_process): Simplify using local Lisp_Process var.
7172 Reset adaptive read buffering delay after write.
7173 (init_process): Initialize process_output_delay_count and
7174 process_output_skip.
7175 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
7176
7177 2004-01-01 Jason Rumney <jasonr@gnu.org>
7178
7179 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
7180
7181 2003-12-30 Luc Teirlinck <teirllm@auburn.edu>
7182
7183 * print.c (Ferror_message_string): Add hyperlink in the docstring
7184 to the definition of `signal' in the Elisp manual.
7185 * eval.c (Fsignal): Ditto.
7186
7187 2003-12-29 James Clark <jjc@jclark.com>
7188
7189 * fns.c (internal_equal): Return t for two NaN arguments.
7190
7191 2003-12-29 Richard M. Stallman <rms@gnu.org>
7192
7193 * data.c (store_symval_forwarding): Handle setting
7194 default-fill-column, etc., by changing the value in
7195 buffers that use the default.
7196
7197 * minibuf.c (Fset_minibuffer_window): Doc fix.
7198
7199 * fileio.c (choose_write_coding_system): Ignore auto_saving
7200 if using the visited file for auto saves.
7201 (Fwrite_region): Don't update SAVE_MODIFF
7202 if auto-saving in visited file.
7203
7204 2003-12-29 Kenichi Handa <handa@m17n.org>
7205
7206 * dispextern.h (face_font_available_p): Extern it.
7207
7208 * fontset.c (Voverriding_fontspec_alist): New variable.
7209 (lookup_overriding_fontspec): New function.
7210 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
7211 (fontset_font_pattern): Likewise.
7212 (regulalize_fontname): New function.
7213 (Fset_fontset_font): Call regulalize_fontname.
7214 (Fset_overriding_fontspec_internal): New function.
7215 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
7216 Defsubr Sset_overriding_fontspec_internal.
7217
7218 * xfaces.c (face_font_available_p): New function.
7219
7220 2003-12-28 Richard M. Stallman <rms@gnu.org>
7221
7222 * buffer.c (Fother_buffer): Don't crash if BUF is nil
7223 or if its name is nil.
7224
7225 * buffer.c (Fkill_buffer): Don't delete auto-save file
7226 if it's the same as the visited file.
7227
7228 2003-12-28 Luc Teirlinck <teirllm@auburn.edu>
7229
7230 * coding.c (Fcheck_coding_system): Doc fix.
7231
7232 2003-12-28 Kim F. Storm <storm@cua.dk>
7233
7234 * Makefile.in (eval.o): Depend on dispextern.h.
7235
7236 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
7237 image glyph using image's ascent.
7238 (mode_line_string): Return image glyph as object clicked on.
7239 Adjust y0 for image glyph using image's ascent.
7240
7241 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
7242 (struct glyph): New members, ascent and descent. Used to save
7243 this glyph's ascent and descent, instead of having.
7244 (struct glyph): Declare member face_id using FACE_ID_BITS.
7245 (find_hot_spot): Add prototype.
7246
7247 * keyboard.c (Qimage): Remove extern (now in lisp.h).
7248 (QCmap): Declare extern.
7249 (make_lispy_position): When position is inside image hot-spot,
7250 use hot-spot element's id as posn element.
7251
7252 * lisp.h (IMAGEP): New macro to test for image object type.
7253 (Qimage): Declare extern.
7254
7255 * macfns.c (Qimage): Remove extern (now in lisp.h).
7256 (valid_image_p, parse_image_spec): Use IMAGEP macro.
7257
7258 * macterm.c (Qface, Qmouse_face): Remove unused externs.
7259
7260 * w32fns.c (Qimage): Remove extern (now in lisp.h).
7261 (valid_image_p, parse_image_spec): Use IMAGEP macro.
7262
7263 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
7264
7265 * w32term.c (Qface, Qmouse_face): Remove unused externs.
7266
7267 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
7268 pointer types.
7269 (Qrelative_width, Qalign_to): Remove unused variables.
7270 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
7271 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
7272 image maps.
7273 (x_y_to_hpos_vpos): Return glyph relative coordinates through
7274 new dx and dy args.
7275 Remove buffer_only_p arg (always 0). Simplify code accordingly.
7276 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
7277 than row's ascent and height, to get sensible height on tall rows.
7278 (build_desired_tool_bar_string): Remove Qimage extern.
7279 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
7280 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
7281 image glyph is alone on the last line.
7282 (append_glyph, append_composite_glyph, produce_image_glyph)
7283 (append_stretch_glyph): Set glyph's ascent and descent.
7284 (on_hot_spot_p): New function to check if position is inside an
7285 rectangular, circular, or polygon-shaped image hot-spot,
7286 (find_hot_spot): New function to search for image hot-spot.
7287 (Flookup_image_map): New defun to search for image hot-spot.
7288 (define_frame_cursor1): New aux function to determine frame pointer.
7289 (note_mode_line_or_margin_highlight, note_mouse_highlight):
7290 Handle `pointer' text property and :pointer image property to
7291 control frame pointer shape. Detect image hot-spots for pointer
7292 and help_echo properties. Use define_frame_cursor1.
7293 (note_mouse_highlight): Use Vvoid_text_area_pointer.
7294 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
7295 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
7296
7297 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
7298
7299 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
7300 (Qimage): Remove extern (now in lisp.h).
7301 (valid_image_p, parse_image_spec): Use IMAGEP macro.
7302
7303 * xmenu.c (show_help_event): Remove unused code.
7304
7305 * xterm.c (Qface, Qmouse_face): Remove unused externs.
7306 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
7307 row's ascent and descent, to get a sensible height on tall rows.
7308
7309 2003-12-25 Luc Teirlinck <teirllm@auburn.edu>
7310
7311 * minibuf.c (Fcompleting_read): Undo previous change.
7312
7313 2003-12-25 Lars Hansen <larsh@math.ku.dk>
7314
7315 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
7316 Arguments GCPRO'ed in call to file name handler.
7317
7318 2003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
7319
7320 * termcap.c (tgetst1): Scan for "%pN"; if all
7321 N are continuous in [1,9], remove all "%pN".
7322
7323 2003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7324
7325 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
7326
7327 * xfaces.c (lface_fully_specified_p): Take into account that
7328 MAC OS always have unspecified stipple.
7329
7330 2003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
7331
7332 * tparam.c (tparam1): Add handling for `%pN', which
7333 means use param N for the next substitution.
7334
7335 2003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
7336
7337 * xfaces.c (Fcolor_gray_p): Fix omission bug:
7338 In case `frame' is nil, consult the selected frame.
7339 (Fcolor_supported_p): Likewise.
7340
7341 2003-12-23 Luc Teirlinck <teirllm@auburn.edu>
7342
7343 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
7344 Doc fixes.
7345
7346 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
7347 and an integer. Adapt the introductory comment accordingly.
7348 (Fread_from_minibuffer): Delete code moved into read_minibuf.
7349 Doc fix.
7350 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
7351 read_minibuf.
7352 (Fcompleting_read): Delete code moved into read_minibuf.
7353 (Ftest_completion): Make it handle obarrays and hash tables correctly.
7354
7355 2003-12-03 Kenichi Handa <handa@m17n.org>
7356
7357 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
7358 encoding sequence.
7359
7360 2003-12-01 Kenichi Handa <handa@m17n.org>
7361
7362 * composite.c (syms_of_composite): Don't make the compostion hash
7363 table week.
7364
7365 2003-11-30 Luc Teirlinck <teirllm@auburn.edu>
7366
7367 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
7368 * textprop.c (Fget_char_property_and_overlay): New function.
7369 (syms_of_textprop): Defsubr it.
7370
7371 2003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7372
7373 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
7374 to compile on terminal configuration.
7375
7376 * fileio.c (Fread_file_name): Check use_file_dialog also before
7377 calling Fx_file_dialog.
7378
7379 * fns.c: use_file_dialog: New variable.
7380 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
7381
7382 2003-11-29 Kim F. Storm <storm@cua.dk>
7383
7384 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
7385 (syms_of_msdos): Don't intern and staticpro them.
7386
7387 2003-11-27 Kim F. Storm <storm@cua.dk>
7388
7389 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
7390 coordinates relative to glyph at posn. If glyph is an image,
7391 return that as object at posn. Callers changed.
7392 (mode_line_string, marginal_area_string): Calculate and return
7393 pixel coordinates relative to glyph. Callers changed.
7394
7395 * dispextern.h (buffer_posn_from_coords, mode_line_string)
7396 (marginal_area_string): Fix prototypes.
7397 (window_box_left_offset, window_box_right_offset): Add prototypes.
7398
7399 * frame.h (get_specified_cursor_type, get_window_cursor_type):
7400 Remove prototypes.
7401
7402 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
7403
7404 * keyboard.c (make_lispy_position): Add x and y coordinates
7405 relative to the current glyph as 7th element of position.
7406 If glyph is an image, return it in the object element.
7407 (read_key_sequence): Skip checks for keymap property in cases
7408 where POSN_STRING is not a string (e.g. an image).
7409
7410 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
7411 (Vshow_text_cursor_in_void): New variable.
7412 (glyph_to_pixel_coords): Don't use negative hpos.
7413 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
7414 (append_stretch_glyph): Change ascent arg to be actual value
7415 in pixels rather than ratio to height. Callers changed.
7416 (calc_pixel_width_or_height): New aux function, implementing
7417 pixel based artihmetic for glyph widths and heights.
7418 (produce_stretch_glyph): Use calc_pixel_width_or_height for
7419 :width, :height, :align-to, and :ascent, thus allowing these to
7420 be specified in pixels as well as multiples of characters.
7421 Don't produce stretch glyphs with zero width or height.
7422 (get_specified_cursor_type): Declare static.
7423 (get_window_cursor_type): Declare static. Add glyph arg to be
7424 able to know when cursor is on an image; always substitute
7425 hollow-box cursor for filled-box cursor on images, to avoid
7426 negative images and flicker when blinking the cursor.
7427 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
7428 (note_mode_line_or_margin_highlight): Use non-text cursor rather
7429 than vertical scroll-bar cursor in display margins.
7430 (note_mouse_highlight): Use non-text cursor rather than text
7431 cursor in fringes and over images in the text area.
7432 Use non-text cursor when mouse pointer is outside editable text,
7433 i.e. in the void after end-of-line or end-of-buffer; this was
7434 already done for W32, but is now standard for all systems --
7435 user can toggle show-text-cursor-in-void to get old behaviour.
7436 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
7437 Vdisplay_pixels_per_inch.
7438
7439 2003-11-25 Andreas Schwab <schwab@suse.de>
7440
7441 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
7442 EMACS_INT to not lose bits.
7443 (Ffillarray): Don't set bits beyond the size of a bool vector.
7444
7445 2003-11-25 Kim F. Storm <storm@cua.dk>
7446
7447 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
7448 define this defun on systems that cannot use stderr as lvalue.
7449
7450 2003-11-24 Gerd Moellmann <gerd@gnu.org>
7451
7452 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
7453 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
7454 ld's default is incompatible with unexec.
7455
7456 2003-11-23 Kim F. Storm <storm@cua.dk>
7457
7458 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
7459 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
7460 (Fforce_window_update): New defun.
7461 (syms_of_window): Defsubr it.
7462 (Fset_window_margins, Fset_window_fringes): Doc fix.
7463
7464 * print.c (Fredirect_debugging_output): New defun.
7465 (syms_of_print): Defsubr it.
7466
7467 2003-11-22 Luc Teirlinck <teirllm@auburn.edu>
7468
7469 * fns.c (Fset_char_table_parent): Doc fix.
7470
7471 2003-11-22 Kim F. Storm <storm@cua.dk>
7472
7473 * dispnew.c (buffer_posn_from_coords): Return actual row/column
7474 for glyph clicked on, rather than (unused) pixel positions.
7475 (mode_line_string, marginal_area_string): Change X and Y args to
7476 pointers for returning actual row/column for glyph clicked on.
7477 Simplify and optimize loops.
7478
7479 * dispextern.h (mode_line_string, marginal_area_string):
7480 Update prototypes.
7481
7482 * keyboard.c (make_lispy_position): New function for generating
7483 mouse click positions from frame and pixel coordinates.
7484 Enhanced to return buffer position and actual row/column for
7485 events outside the text area using updated mode_line_string and
7486 marginal_area_string functions.
7487 Return left-fringe and right-fringe clicks as such, rather than
7488 clicks in text area.
7489 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
7490 pixel_to_glyph_coords, as we never use the results.
7491 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
7492 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
7493 Eliminate unused code in WHEEL_EVENT handling.
7494 (make_lispy_movement): Use make_lispy_position.
7495
7496 * window.c (coordinates_in_window): Remove redundant tests.
7497 Fix returned X pixel value for left-margin.
7498
7499 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
7500 mode_line_string and marginal_area_string parameters.
7501
7502 2003-11-22 Lars Hansen <larsh@math.ku.dk>
7503
7504 * w32.c (struct the_group, getgrgid): Add.
7505 * mac.c (struct my_group, getgrgid): Add.
7506
7507 2003-11-21 Luc Teirlinck <teirllm@auburn.edu>
7508
7509 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
7510
7511 2003-11-21 Lars Hansen <larsh@math.ku.dk>
7512
7513 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
7514 include in call to file name handler. Optionally translate numeric
7515 UID and GID to strings. Update docstring.
7516 (directory_files_internal): Add parameter ID-FORMAT.
7517 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
7518 include in call to file name handler and call to
7519 directory_files_internal. Update Docstring.
7520 (Fdirectory_files): Add dummy parameter in call to
7521 directory_files_internal.
7522 * lisp.h (Qinteger): Add.
7523 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
7524 (Ffile_attributes): Add parameter.
7525 * data.c (Qinteger): Export.
7526
7527 2003-11-21 Luc Teirlinck <teirllm@auburn.edu>
7528
7529 * fns.c (Freverse, Fnreverse): Doc fixes.
7530
7531 2003-11-19 Kim F. Storm <storm@cua.dk>
7532
7533 * xdisp.c (init_iterator): Initialize it->start to position
7534 before reseating (in case start position is invisible).
7535 (init_to_row_start): Set it->start to row-start.
7536 (redisplay_window): Accept optional_new_start if start position
7537 is invisible (in which case IT_CHARPOS overshoots PT).
7538 (display_line): Setup row->start from it->start (rather than
7539 it->current which is wrong if first char on line is invisible).
7540 When done, reseat it->start to it->current (= start of next row).
7541 (expose_area): Fix exposure of text area when first char (e.g. TAB)
7542 is only partially visible.
7543
7544 * dispextern.h (struct it): New member start.
7545
7546 2003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
7547
7548 * alloc.c (make_float, Fcons): Clear the markbit at init time.
7549 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
7550 of block_index outside of the macro call.
7551 (Fgarbage_collect): Remove null code.
7552
7553 * m/amdx86-64.h: Don't redefine XPNTR.
7554
7555 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
7556 of VALMASK.
7557
7558 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
7559 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
7560 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
7561
7562 * lisp.h (VALMASK): Only define for non-union type.
7563 (MARKBIT): Remove.
7564 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
7565 (XTYPE): Define unconditionally.
7566 (XSETTYPE): Remove one more remnant.
7567 (EQ): Define differently for the union and non-union cases.
7568 (INTMASK): New bit mask.
7569 (struct Lisp_Marker): Move down to prepare for upcoming patch.
7570 (GC_EQ): Delegate to EQ.
7571
7572 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
7573
7574 2003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7575
7576 * xterm.c (x_window_to_scroll_bar): Move check of display to
7577 where window_id is compared.
7578
7579 2003-11-17 Kim F. Storm <storm@cua.dk>
7580
7581 * dispextern.h (struct it): New member first_vpos.
7582
7583 * xdisp.c (start_display): Set it->first_vpos.
7584 (try_window_id): Use first_vpos to start display in first _text_
7585 line if no reusable lines at start of window with header line.
7586
7587 2003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7588
7589 * w32fns.c (XPutPixel):
7590 * w32bdf.c (w32_init_bdf_font):
7591 * sunfns.c (sel_read):
7592 * process.c (Fmake_network_process):
7593 * frame.c (store_frame_param):
7594 * fontset.c (Fset_fontset_font):
7595 * emacs.c (shut_down_emacs):
7596 * ccl.c (ccl_driver): Remove period at end of error message.
7597
7598 * config.in: Regenerate.
7599
7600 * xfns.c (x_window_to_frame, x_any_window_to_frame)
7601 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
7602 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
7603 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
7604 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
7605
7606 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
7607
7608 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
7609 (XTmouse_position, handle_one_xevent): Pass Display* to
7610 x_window_to_scroll_bar.
7611 (x_window_to_scroll_bar): Take a Display* argument.
7612 Check that display for frame is equal to Display* argument.
7613 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
7614 x_display_info_for_display instead. Use Display in xev instead
7615 of GDK_DISPLAY.
7616 (x_dispatch_event): Call x_display_info_for_display.
7617 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
7618 (x_connection_closed): Call xg_display_close for GTK.
7619 (x_term_init): Call xg_display_open for additional displays.
7620 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
7621 for GTK.
7622
7623 * xmenu.c (single_menu_item, mouse_position_for_popup)
7624 (x_activate_menubar): Formatting adjustments.
7625
7626 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
7627 adjustments.
7628
7629 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
7630 (xg_display_close, xg_create_default_cursor)
7631 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
7632 handling.
7633 (xg_left_ptr_cursor): Remove.
7634 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
7635 cursor here.
7636 (xg_win_to_widget): Take Display* argument, call
7637 gdk_xid_table_lookup_for_display.
7638 (xg_create_frame_widgets, xg_get_file_name, create_menus)
7639 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
7640 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
7641 in FRAME_X_DISPLAY_INFO.
7642 (xg_get_scroll_id_for_window): Take Display* argument.
7643 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
7644 (xg_initialize): Remove xg_left_ptr_cursor.
7645
7646 * gtkutil.h (xg_get_scroll_id_for_window, xg_win_to_widget): Add
7647 Display* argument.
7648 (xg_display_open, xg_display_close, xg_create_default_cursor): Declare.
7649
7650 2003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7651
7652 * xterm.c (x_detect_focus_change): Do not change focus frame for
7653 Enter/LeaveNotify if the current focus frame has explicit focus.
7654
7655 2003-11-14 Kim F. Storm <storm@cua.dk>
7656
7657 * dispnew.c (update_text_area): Fix redisplay error when hscroll
7658 is active and first glyph is only partially visible.
7659
7660 2003-11-13 Kenichi Handa <handa@m17n.org>
7661
7662 * xdisp.c (select_frame_for_redisplay): New function.
7663 (redisplay_internal): Record also selected_frame for
7664 unwind_redisplay. Call select_frame_for_redisplay before
7665 redrawing each frame.
7666 (unwind_redisplay): Argument changed to a cons.
7667
7668 2003-11-12 Luc Teirlinck <teirllm@auburn.edu>
7669
7670 * fns.c (Fstring_to_multibyte): Doc fix.
7671
7672 2003-11-11 Kenichi Handa <handa@m17n.org>
7673
7674 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
7675
7676 2003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7677
7678 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
7679 program specified positions.
7680
7681 2003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7682
7683 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
7684
7685 2003-11-08 Kenichi Handa <handa@m17n.org>
7686
7687 * Makefile.in (lisp): Add kannada.el.
7688 (shortlisp): Likewise.
7689
7690 2003-11-07 Kenichi Handa <handa@m17n.org>
7691
7692 * coding.c (coding_allocate_composition_data):
7693 Reset coding->composing to COMPOSITION_NO.
7694 (coding_restore_composition): Detect invalid composition data.
7695 Give Fstring and Fvector a Lispy integer, not C int.
7696
7697 2003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
7698
7699 * floatfns.c (Flogb): Don't use VALMASK.
7700
7701 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
7702 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
7703
7704 * lisp.h (XINT): Move the cast to clarify what is going on.
7705 (GCTYPEMASK, XSETTYPE): Remove.
7706 (XGCTYPE): Make it an alias of XTYPE.
7707
7708 2003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7709
7710 * xterm.c (x_term_init): Fix formatting.
7711
7712 2003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7713
7714 * gtkutil.h (xg_have_tear_offs): Declare.
7715 (xg_keep_popup, xg_did_tearoff): Remove.
7716
7717 * gtkutil.c: Remove variable xg_did_tearoff.
7718 (xg_have_tear_offs): New function.
7719 (tearoff_remove): Just decrease xg_detached_menus.
7720 (tearoff_activate): Increase xg_detached_menus and call
7721 tearoff_remove when tearoff is removed.
7722 (xg_keep_popup): Remove function.
7723 (create_menus): Give add_tearoff_p as argument to recursive
7724 call to create_menus.
7725 (xg_create_widget): Use variables instead of multiple
7726 strcmp. Tell create_menus to create tear off only for
7727 menu bar menus.
7728 (xg_update_menubar): Change title for a detached menu also.
7729 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
7730 of deep_p.
7731 (xg_initialize): Initialize xg_detached_menus, remove
7732 initialization of xg_did_tearoff.
7733
7734 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
7735 xg_have_tear_offs returns non-zero.
7736 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
7737 call to xg_keep_popup.
7738
7739 2003-11-01 Andrew Choi <akochoi@shaw.ca>
7740
7741 * macterm.c (XTread_socket): Handle menubar selection and grow
7742 window only for mouseDown events.
7743
7744 2003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7745
7746 * xterm.c (x_term_init): For GTK part, increase x_initialized
7747 to check for more than one display. Use error instead of return 0.
7748
7749 2003-10-31 Andrew Choi <akochoi@shaw.ca>
7750
7751 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
7752 (copy_dysymtab): Call it.
7753
7754 2003-10-31 Luc Teirlinck <teirllm@auburn.edu>
7755
7756 * eval.c (Fdefvaralias): Doc fix.
7757
7758 2003-10-26 Luc Teirlinck <teirllm@auburn.edu>
7759
7760 * data.c (Fsetplist): Doc fix.
7761
7762 2003-10-14 Lute Kamstra <lute@gnu.org>
7763
7764 * window.c (Fset_window_fringes): Clarify docstring.
7765
7766 2003-10-14 Kim F. Storm <storm@cua.dk>
7767
7768 * window.c (Fset_window_margins): Simplify arg checking.
7769
7770 2003-10-13 Richard M. Stallman <rms@gnu.org>
7771
7772 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
7773 (print_partial_compiled_pattern): Replace assert with a printout.
7774 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
7775
7776 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
7777
7778 * window.c (Fset_window_margins): Allow only integers as args.
7779 (syms_of_window) <special-display-buffer-names, special-display-regexps>:
7780 Doc fixes.
7781
7782 2003-10-13 Lute Kamstra <lute@gnu.org>
7783
7784 * window.c (Fset_window_fringes): Elaborate docstring.
7785
7786 2003-10-12 Andrew Choi <akochoi@shaw.ca>
7787
7788 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
7789
7790 * s/darwin.h (GC_MARK_STACK): Define.
7791
7792 2003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7793
7794 * window.c (shrink_windows): New function.
7795 (size_window): Call shrink_windows to calculate window sizes when
7796 shrinking frame with more than one window.
7797
7798 2003-10-12 Kim F. Storm <storm@cua.dk>
7799
7800 * xdisp.c (compute_fringe_widths): Doc fix.
7801
7802 2003-10-08 Kenichi Handa <handa@m17n.org>
7803
7804 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
7805
7806 2003-10-07 Kenichi Handa <handa@m17n.org>
7807
7808 * coding.c (Qcoding_system_define_form): New variable.
7809 (syms_of_coding): Intern and staticpro it.
7810 (Fcheck_coding_system): Try to autoload the definition of
7811 CODING-SYSTEM.
7812
7813 2003-10-05 Luc Teirlinck <teirllm@auburn.edu>
7814
7815 * fns.c (Frequire): Doc fix.
7816
7817 2003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7818
7819 * xfns.c (Fx_send_client_event): New function as a base for
7820 manipulating extended window manager hints.
7821 (Fx_send_client_event): Remove unused variable s.
7822
7823 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
7824 that function is removed.
7825
7826 * xterm.c (x_set_offset): Use move_offset_left/top instead of
7827 x/y_pixels_outer_diff.
7828 (x_check_expected_move): Calculate move_offset_left/top.
7829
7830 * xterm.h (struct x_output): New members: move_offset_top/left.
7831
7832 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
7833 call x_set_offset directly.
7834
7835 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
7836
7837 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
7838
7839 * xterm.c (x_delete_display): Free font names and font_encoder
7840 in dpyinfo->font_table.
7841
7842 * xfns.c (Fx_close_connection): Only call XFreeFont here.
7843 Move xfree of font names to x_delete_display.
7844
7845 * xterm.h (struct x_display_info): New member, wm_type.
7846 (struct x_output): New members, expected_top/left and
7847 check_expected_move.
7848
7849 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
7850 is received.
7851 (handle_one_xevent): Rename x_check_expected_move from
7852 x_check_fullscreen_move.
7853 (x_set_offset): Only add WM decoration sizes to modified_top/left
7854 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
7855 (x_check_expected_move): Rename from x_check_fullscreen_move.
7856 Removed fullscreen specific code. Use check_expected_move,
7857 expected_left/top instead. Also, set wm_type.
7858 (x_term_init): Initialize wm_type to unknown.
7859
7860 * frame.c (x_fullscreen_move): Remove addition of WM decoration
7861 sizes to move_x/y.
7862
7863 2003-10-03 Kenichi Handa <handa@m17n.org>
7864
7865 * macterm.c (x_load_font): Clear all members of FONTP before start
7866 filling them.
7867
7868 2003-10-02 Kenichi Handa <handa@m17n.org>
7869
7870 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
7871 before calling find_ccl_program_func. Call find_ccl_program_func
7872 only when fontp->font_encoder is not NULL.
7873
7874 * xterm.c (x_load_font): Clear all members of FONTP before start
7875 filling them.
7876
7877 2003-10-03 John Paul Wallington <jpw@gnu.org>
7878
7879 * keymap.c (map_keymap): Don't abort when binding is a vector.
7880
7881 2003-10-02 Jason Rumney <jasonr@gnu.org>
7882
7883 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
7884 Sync dependencies with Makefile.in.
7885 (alloca.o): Remove.
7886
7887 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
7888 filling them.
7889
7890 * w32bdf.c (w32_load_bdf_font): Likewise.
7891
7892 2003-09-30 Richard M. Stallman <rms@gnu.org>
7893
7894 * term.c (set_tty_color_mode): Calculate current_mode_spec
7895 regardless of value of VAL.
7896
7897 * intervals.c (graft_intervals_into_buffer):
7898 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
7899 Handle over_used when splitting UNDER.
7900
7901 2003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7902
7903 * regex.c (regex_compile): Free the stack when returning from function.
7904
7905 2003-09-28 Kenichi Handa <handa@m17n.org>
7906
7907 * fontset.c (Finternal_char_font): Change return value to
7908 cons (FONT-NAME . GLYPH-CODE).
7909
7910 2003-09-28 Eli Zaretskii <eliz@gnu.org>
7911
7912 * term.c (tty_setup_colors): Treat any negative argument as -1.
7913
7914 2003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
7915
7916 * process.c (send_process): Delete unused temp_buf.
7917
7918 2003-09-26 Dave Love <fx@gnu.org>
7919
7920 * xterm.c (x_bitmap_mask): Declare.
7921
7922 2003-09-25 Dave Love <fx@gnu.org>
7923
7924 * Makefile.in (fns.o): Depend on md5.h.
7925
7926 2003-09-25 Kim F. Storm <storm@cua.dk>
7927
7928 * window.c (set_window_buffer): Fix redisplay problems when
7929 switching between buffers with different display margin widths.
7930
7931 2003-09-23 Kim F. Storm <storm@cua.dk>
7932
7933 * process.c (set_socket_option): Fix :bindtodevice option.
7934 (Fset_network_process_option): Update process contact list when
7935 setting option succeeds.
7936 (Fmake_network_process): Doc fix.
7937
7938 2003-09-23 Dave Love <fx@gnu.org>
7939
7940 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
7941
7942 2003-09-22 Eli Zaretskii <eliz@gnu.org>
7943
7944 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
7945 color mode is an integer number (it could be -1).
7946
7947 2003-09-22 Richard M. Stallman <rms@gnu.org>
7948
7949 * intervals.c (graft_intervals_into_buffer): Correct the main loop
7950 in the case where OVER is longer than UNDER.
7951
7952 2003-09-22 Masatake YAMATO <jet@gyve.org>
7953
7954 * window.c (Fset_window_scroll_bars): Validate the value of
7955 `vertical_type'.
7956
7957 2003-09-21 Kim F. Storm <storm@cua.dk>
7958
7959 * frame.c (Vdefault_frame_scroll_bars): New variable.
7960 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
7961 (syms_of_frame): DEFVAR_LISP it, and initialize according to
7962 window-system default scroll bar position.
7963
7964 * window.c (Fwindow_scroll_bars): Doc fix.
7965
7966 2003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7967
7968 * xterm.c (x_set_offset): Take window manager decorations into account.
7969
7970 2003-09-19 Richard M. Stallman <rms@gnu.org>
7971
7972 * atimer.h: Don't include lisp.h.
7973 (P_): Define it here (as well as elsewhere).
7974
7975 * print.c (Fprin1_to_string): Move the PRINTPREPARE
7976 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
7977
7978 * data.c (Fvariable_binding_locus): New function.
7979 (syms_of_data): defsubr it.
7980 (Flocal_variable_p): Delete duplicate call to indirect_variable.
7981
7982 2003-09-18 Dave Love <fx@gnu.org>
7983
7984 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
7985
7986 * process.c (Fnetwork_interface_info): Fix type error.
7987 (Fnetwork_interface_list): Doc fix.
7988 (read_process_output, read_process_output): Delete unused var.
7989
7990 2003-09-17 Kim F. Storm <storm@cua.dk>
7991
7992 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
7993 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
7994 (Fnetwork_interface_info): Check that ifreq struct has required
7995 fields before accessing them; this requires that those fields are
7996 defined as macros, which may be too restrictive on some platforms,
7997 but it is better than failing on other platforms.
7998 (syms_of_process): Only defsubr above fns when included.
7999
8000 2003-09-17 Dave Love <fx@gnu.org>
8001
8002 * unexalpha.c: Don't include varargs.h.
8003
8004 2003-09-17 Kim F. Storm <storm@cua.dk>
8005
8006 * process.c (Fset_process_sentinel): Add sentinel to childp plist
8007 for network process.
8008 (socket_options): Add `:' prefix to option names. Add optbit field.
8009 (set_socket_option): Remove no_error arg and special handling of s < 0.
8010 Return 1<<optbit for known option, 0 for unknown.
8011 Do not interpret 0 as false for boolean option (only nil).
8012 Pass failed option and value to report_file_error.
8013 (Fset_network_process_options): Replace by Fset_network_process_option.
8014 (Fset_network_process_option): New function to set just one option.
8015 (Fmake_network_process): Allow :coding arg to be a cons.
8016 Allow :server arg to be an integer specifying backlog size.
8017 Remove :options arg, and allow options to be specified directly
8018 as :KEY, VALUE pairs. Parse these options before binding socket.
8019 As before, :reuseaddr t is default for a server process, but this
8020 can now be disabled by specifying :reuseaddr nil.
8021 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
8022 (init_process): Availability of network options is now checked with
8023 simpler syntax (featurep 'make-network-process :OPTION); use loop to
8024 setup features.
8025 (syms_of_process): Fix defsubr's for the replaced functions.
8026
8027 2003-09-16 Dave Love <fx@gnu.org>
8028
8029 * Makefile.in: Depend on coding.h.
8030
8031 2003-09-14 Kim F. Storm <storm@cua.dk>
8032
8033 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
8034 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
8035 (syms_of_process): Defsubr them.
8036
8037 * config.in: Regenerate.
8038
8039 2003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
8040
8041 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
8042 * m/news-r6.h (XUNMARK): Remove.
8043 * m/mips.h (XUNMARK): Remove.
8044 * m/mips-siemens.h (XUNMARK): Remove.
8045 * m/iris4d.h (XUNMARK): Remove.
8046 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
8047
8048 2003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
8049
8050 * lisp.h (VALBITS): Don't remove 1 for the markbit.
8051 (union Lisp_Object): Use unsigned int for types. Remove markbit.
8052 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
8053 (XTYPE): Use unsigned right-shift.
8054 (XMARKBIT, XMARK, XUNMARK): Remove.
8055
8056 * alloc.c (init_intervals, init_symbol, init_marker):
8057 Don't preallocate anything.
8058 (Fgarbage_collect, mark_object): Ignore the markbit.
8059
8060 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
8061
8062 2003-09-08 Lute Kamstra <lute@gnu.org>
8063
8064 * xdisp.c (pint2hrstr): New function.
8065 (decode_mode_spec): Add `%i' and `%I' specs.
8066 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
8067 for `mode-line-format'.
8068
8069 2003-09-07 Andreas Schwab <schwab@suse.de>
8070
8071 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
8072 avoid warning.
8073
8074 2003-09-07 Eli Zaretskii <eliz@gnu.org>
8075
8076 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
8077
8078 2003-09-03 Kim F. Storm <storm@cua.dk>
8079
8080 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
8081 change (superseded by 2002-08-30 change); the default blink-off
8082 cursor is now again "no cursor".
8083
8084 2003-09-01 Jason Rumney <jasonr@gnu.org>
8085
8086 * makefile.w32-in (alloca.o): Remove.
8087 (coding.o): Depend on intervals.h
8088 (emacs.o, bytecode.o): Depend on window.h
8089
8090 2003-09-01 Dave Love <fx@gnu.org>
8091
8092 * Makefile.in (alloca.o): Remove commands.
8093 (coding.o): Depend on intervals.h composite.h window.h.
8094 (emacs.o): Depend on window.h keyboard.h keymap.h.
8095 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
8096 (bytecode.o): Depend on window.h.
8097
8098 2003-08-31 Jason Rumney <jasonr@gnu.org>
8099
8100 * w32term.c (w32_per_char_metric): Allow cached metrics to be
8101 returned even when font_type is unknown.
8102
8103 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
8104
8105 2003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8106
8107 * xterm.c (x_term_init): Initialize new fields in x_display_info.
8108
8109 * xterm.h (struct x_display_info): Add red/green/blue_bits and
8110 *_offset.
8111
8112 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
8113 calculate pixel value.
8114
8115 2003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
8116
8117 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
8118 Don't tell redisplay display is accurate when it's actually been
8119 paused for pending input.
8120
8121 2003-08-29 Richard M. Stallman <rms@gnu.org>
8122
8123 * dispnew.c (adjust_glyph_matrix): Call window_box
8124 whenever W is nonzero.
8125
8126 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
8127 (Fkill_local_variable, Fmake_variable_frame_local)
8128 (Flocal_variable_p, Flocal_variable_if_set_p):
8129 Use indirect_variable to trace thru variable aliases.
8130
8131 * config.in: Updated.
8132
8133 * callint.c (Fcall_interactively): Save and restore
8134 Vthis_command, Vthis_original_command, real_this_command,
8135 and current_kboard->Vlast_command.
8136
8137 * abbrev.c (Fexpand_abbrev): Insert before deleting.
8138
8139 2003-08-29 Gerd Moellmann <gerd@gnu.org>
8140
8141 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
8142
8143 2003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
8144
8145 * coding.c (decode_coding_iso2022): Initialize local variable c2.
8146 (decode_coding_sjis_big5): Likewise.
8147
8148 2003-08-27 Jason Rumney <jasonr@gnu.org>
8149
8150 * w32.c (sys_pipe): Protect against file descriptor overflow.
8151
8152 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
8153
8154 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
8155
8156 2003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
8157
8158 * xfns.c (Vgtk_version_string): New variable.
8159 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
8160
8161 2003-08-24 Eli Zaretskii <eliz@gnu.org>
8162
8163 * term.c (term_init): Remove `const' from buffer_size's declaration.
8164
8165 * Makefile.in (msdos.o): Depend on intervals.h.
8166
8167 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
8168
8169 2003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8170
8171 * xterm.h (struct x_display_info): New fields: client_leader_window
8172 and Xatom_wm_client_leader.
8173
8174 * xterm.c (x_initialize): Move call to x_session_initialize to ...
8175 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
8176
8177 * xsmfns.c (create_client_leader_window): New function.
8178 (x_session_initialize): Call create_client_leader_window, take
8179 dpyinfo as argument.
8180
8181 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
8182
8183 * Makefile.in (xsmfns.o): Add more depenedencies.
8184
8185 2003-08-21 Dave Love <fx@gnu.org>
8186
8187 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
8188
8189 2003-08-21 Kenichi Handa <handa@m17n.org>
8190
8191 * term.c (term_init): Fix previous change; don't rely on the
8192 length of `buffer' if TERMINFO is defined.
8193
8194 2003-08-20 Dave Love <fx@gnu.org>
8195
8196 * atimer.h: Include lisp.h.
8197
8198 * lisp.h (EMACS_LISP_H): New.
8199 (popup_activated_flag): Don't declare.
8200
8201 * alloca.c: Some merging with gnulib. Change logic and doc
8202 concerning (x)malloc/(x)free -- no longer Emacs-specific.
8203 [DO_BLOCK_INPUT]: Don't include lisp.h.
8204 (xmalloc, xfree): Declare.
8205 (malloc): Don't declare.
8206
8207 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
8208 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
8209 atimer.h, blockinput.h.
8210
8211 * alloc.c (lisp_align_malloc): Change type of `aligned'.
8212
8213 * alloca.s: Remove.
8214
8215 2003-08-19 Gerd Moellmann <gerd@gnu.org>
8216
8217 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
8218 use -lncurses.
8219
8220 * term.c (term_init): Use a buffer of size 4096 for tgetent since
8221 FreeBSD returns something longer than 2044. Abort if the end of
8222 the buffer is overwritten.
8223
8224 2003-08-19 Miles Bader <miles@gnu.org>
8225
8226 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
8227
8228 2003-08-19 Gerd Moellmann <gerd@gnu.org>
8229
8230 * alloc.c (lisp_align_malloc): Check for memory full when
8231 allocating ablocks, which also avoids freeing a pointer into an
8232 ablocks structure.
8233
8234 * puresize.h (BASE_PURESIZE): Increase to 1100000.
8235
8236 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
8237
8238 2003-08-16 Richard M. Stallman <rms@gnu.org>
8239
8240 * editfns.c (Fencode_time): Doc fix.
8241
8242 2003-08-16 David Ponce <david@dponce.com>
8243
8244 * fileio.c (Fwrite_region): Fix conditional expression to issue
8245 the right message.
8246
8247 2003-08-16 Juri Linkov <juri@jurta.org>
8248
8249 * syntax.c (Fforward_word): Argument changed to optional.
8250 Set default value to 1.
8251
8252 2003-08-15 Kenichi Handa <handa@m17n.org>
8253
8254 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
8255 what autoscaled.
8256 (best_matching_font): Once we find a better scalable font, set
8257 non_scalable_has_exact_height_p to 1.
8258 (try_font_list): Call try_alternative_families to try any family
8259 with the given registry.
8260
8261 2003-08-09 Andreas Schwab <schwab@suse.de>
8262
8263 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
8264
8265 * print.c (print_string): Fix printing of multibyte string with
8266 nontrivial printcharfun.
8267
8268 2003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8269
8270 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
8271
8272 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
8273
8274 2003-07-31 Kenichi Handa <handa@m17n.org>
8275
8276 * process.c (read_process_output): Return the actually read bytes
8277 instead of the result of decoding.
8278
8279 2003-07-31 Kenichi Handa <handa@m17n.org>
8280
8281 * xterm.h (struct x_bitmap_record): New member have_mask.
8282
8283 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
8284 to 0.
8285 (x_create_bitmap_from_file): Likewise.
8286 (x_destroy_bitmap): Check have_mask member before freeing a mask.
8287 (x_destroy_all_bitmaps): Likewise.
8288 (x_create_bitmap_mask): Set have_mask member to 1.
8289
8290 2003-07-30 Richard M. Stallman <rms@gnu.org>
8291
8292 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
8293
8294 2003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8295
8296 * gtkutil.c (xg_mark_data): Update calls to mark_object.
8297
8298 2003-07-29 Richard M. Stallman <rms@gnu.org>
8299
8300 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
8301 Conditionalize XIM code on HAVE_XIM.
8302
8303 * fns.c (Fclear_string): New function.
8304 (syms_of_fns): defsubr it.
8305
8306 2003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
8307
8308 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
8309
8310 2003-07-22 Stefan Monnier <monnier@cs.yale.edu>
8311
8312 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
8313
8314 * buffer.c (delete_all_overlays): New function.
8315 * buffer.h (delete_all_overlays): Declare.
8316 * coding.c (run_pre_post_conversion_on_str):
8317 * print.c (temp_output_buffer_setup):
8318 * fileio.c (Finsert_file_contents):
8319 * minibuf.c (get_minibuffer): Use it.
8320
8321 2003-07-22 Andrew Choi <akochoi@shaw.ca>
8322
8323 * unexmacosx.c (unexec_regions_sort_compare):
8324 (unexec_regions_merge): New functions. Sort and merge unexec
8325 regions before dumping them.
8326
8327 2003-07-22 Dave Love <fx@gnu.org>
8328
8329 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
8330
8331 2003-07-21 Stefan Monnier <monnier@cs.yale.edu>
8332
8333 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
8334 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
8335 MARKBIT as the gcmarkbit for strings.
8336
8337 2003-07-21 Richard M. Stallman <rms@gnu.org>
8338
8339 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
8340
8341 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
8342 (syms_of_fns): Corresponding change.
8343
8344 * alloc.c (syms_of_alloc): Doc fixes.
8345
8346 2003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
8347
8348 * s/netbsd.h: Use -Wl syntax.
8349
8350 2003-07-17 Richard M. Stallman <rms@gnu.org>
8351
8352 * xterm.c (xim_initialize): Redo 6/24 change.
8353
8354 2003-07-15 Stefan Monnier <monnier@cs.yale.edu>
8355
8356 * buffer.c (copy_overlays): Use EMACS_INT for positions.
8357 (Fswitch_to_buffer): Don't signal an error when switching to the same
8358 buffer in a dedicated window.
8359
8360 * alloc.c: Use bitmaps for cons, as was done for floats.
8361 (init_float, init_cons): Let the normal code allocate the first block.
8362 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
8363 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
8364 New macros.
8365 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
8366 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
8367 (live_cons_p): Check the pointer is not past the `conses' array.
8368 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
8369 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
8370 (survives_gc_p): Use CONS_MARKED_P and simplify.
8371 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
8372
8373 2003-07-13 Paul Eggert <eggert@twinsun.com>
8374
8375 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
8376 puts it into BSS instead, at least on Solaris 8 and 9.
8377 This is a valid optimization, and it may occur on other platforms,
8378 so Emacs should not assume that initializing a static variable to
8379 zero puts it into data.
8380 * alloc.c (pure, staticvec):
8381 Initialize these arrays to nonzero, so that they're not
8382 put into BSS by that optimization.
8383
8384 2003-07-13 Stefan Monnier <monnier@cs.yale.edu>
8385
8386 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
8387 (lisp_align_malloc): Use posix_memalign is available.
8388 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
8389 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
8390 for consistency. Update users.
8391
8392 2003-07-13 Richard M. Stallman <rms@gnu.org>
8393
8394 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
8395
8396 2003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
8397
8398 * xterm.c (x_bitmap_icon,x_wm_set_icon_pixmap): Modify to add mask,
8399 and use the Gtk+ function gtk_window_icon_from_file if available.
8400
8401 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
8402 handle mask of bitmaps.
8403 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
8404 mask property.
8405 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
8406
8407 * xterm.h (xg_set_icon): New function.
8408
8409 2003-07-12 Paul Eggert <eggert@twinsun.com>
8410
8411 * unexelf.c (unexec): Consider a section to precede the .bss
8412 section if its addresses overlap that of .bss.
8413
8414 2003-07-12 Richard M. Stallman <rms@gnu.org>
8415
8416 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
8417
8418 * config.in (HAVE_CRTIN): Add #undef.
8419 (INLINE): Really inline only if OPTIMIZE is defined.
8420
8421 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
8422 END_FILES_1.
8423 (START_FILES_1, END_FILES_1): New macros (conditional).
8424 (LD_SWITCH_SYSTEM_TEMACS): Define.
8425
8426 * s/openbsd.h: Don't include bsd4-3.h.
8427 (TERMINFO): Define.
8428 (LIBS_TERMCAP): Define.
8429 (LD_SWITCH_SYSTEM): Define (two definitions).
8430
8431 * xfns.c: Include libpng/png.h instead of png.h.
8432
8433 2003-07-11 Andreas Schwab <schwab@suse.de>
8434
8435 * buffer.c (modify_overlay): Update prototype.
8436 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
8437 Likewise.
8438
8439 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
8440
8441 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
8442 (struct interval): Move to intervals.h.
8443 (struct Lisp_Marker): Use EMACS_INT for position info.
8444 (forward_point): Remove prototype of defunct function.
8445 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
8446 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
8447 (syms_of_textprop, set_text_properties): Remove prototypes that are
8448 already in intervals.h.
8449
8450 * intervals.h (struct interval): Move from lisp.h.
8451 Use EMACS_INT for position and size info.
8452
8453 * coding.c: Include intervals.h for Fset_text_properties.
8454
8455 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
8456 position and length information.
8457
8458 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
8459
8460 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
8461 position and length information.
8462
8463 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
8464
8465 Change overlays_after and overlays_before so the overlays themselves
8466 are linked into lists, rather than using cons cells. After all each
8467 Lisp_Misc already occupies 5 words, so we can add a `next' field to
8468 Lisp_Overlay for free and save up one cons cell per overlay (not
8469 to mention one indirection when traversing the list of overlay).
8470
8471 * lisp.h (struct Lisp_Overlay): New field `next'.
8472
8473 * buffer.h (struct buffer): Change overlays_before and overlays_after
8474 from Lisp lists of overlays to pointers to overlays.
8475
8476 * buffer.c (overlay_strings, recenter_overlay_lists):
8477 Fix typo in eassert in last commit.
8478 (unchain_overlay): New function.
8479 (add_overlay_mod_hooklist): Use AREF.
8480 (copy_overlays, reset_buffer, overlays_at, overlays_in)
8481 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
8482 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
8483 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
8484 (report_overlay_modification, evaporate_overlays, init_buffer_once):
8485 Adjust to new type of overlays_(before|after).
8486
8487 * alloc.c (mark_object): Mark the new `next' field of overlays.
8488 (mark_buffer): Manually mark the overlays_(after|before) fields.
8489
8490 * coding.c (run_pre_post_conversion_on_str):
8491 * editfns.c (overlays_around):
8492 * xdisp.c (load_overlay_strings):
8493 * fileio.c (Finsert_file_contents):
8494 * indent.c (current_column):
8495 * insdel.c (signal_before_change, signal_after_change):
8496 * intervals.c (set_point_both):
8497 * print.c (temp_output_buffer_setup): Use new type for
8498 overlays_(before|after).
8499
8500 2003-07-08 Stefan Monnier <monnier@cs.yale.edu>
8501
8502 * buffer.c (report_overlay_modification): Don't run hooks while
8503 traversing the list of overlays.
8504
8505 * buffer.h (struct buffer): Use an int for overlay_center.
8506 (overlays_at, evaporate_overlays, recenter_overlay_lists)
8507 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
8508
8509 * buffer.c (reset_buffer, recenter_overlay_lists)
8510 (adjust_overlays_for_insert, adjust_overlays_for_delete)
8511 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
8512 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
8513 (overlays_at, evaporate_overlays, recenter_overlay_lists)
8514 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
8515
8516 * xdisp.c (fast_find_position): Remove unused var.
8517
8518 * cmds.c (Qexpand_abbrev): New sym.
8519 (syms_of_cmds): Initialize it.
8520 (internal_self_insert): Use it to call expand-abbrev.
8521
8522 2003-07-09 Kim F. Storm <storm@cua.dk>
8523
8524 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
8525 was configured with --without-xim.
8526 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
8527
8528 2003-07-07 Richard M. Stallman <rms@gnu.org>
8529
8530 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
8531
8532 * alloc.c (Fgarbage_collect): Doc fix.
8533
8534 2003-07-07 Nozomu Ando <nand@mac.com>
8535
8536 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
8537
8538 2003-07-06 Stefan Monnier <monnier@cs.yale.edu>
8539
8540 * minibuf.c (read_minibuf): UNGCPRO before returning.
8541 (Ftry_completion, Fall_completions): Doc fix.
8542
8543 * alloc.c (live_float_p): Check that p is not past the `floats' array,
8544 now that `floats' is not the last element of the struct any more.
8545
8546 2003-07-06 Jason Rumney <jasonr@gnu.org>
8547
8548 * w32term.h (ClipboardSequence_Proc): New type.
8549
8550 * w32fns.c (clipboard_sequence_fn): New variable.
8551 (globals_of_w32fns): Initialize it.
8552
8553 * w32select.c (last_clipboard_sequence_number): New variable.
8554 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
8555 number if possible.
8556
8557 2003-07-06 Stefan Monnier <monnier@cs.yale.edu>
8558
8559 * m/amdx86-64.h (MARKBIT):
8560 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
8561 MARKBIT and ARRAY_MARK_FLAG any more.
8562
8563 * m/hp800.h (XSETMARKBIT):
8564 * m/sr2k.h (XSETMARKBIT):
8565 * lisp.h (XSETMARKBIT): Remove unused macro.
8566
8567 * lisp.h (mark_object): Change prototype.
8568
8569 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
8570 (last_marked): Change accordingly.
8571 (mark_interval, mark_maybe_object, mark_maybe_pointer)
8572 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
8573 (mark_buffer): Update calls to mark_object.
8574
8575 * bytecode.c (mark_byte_stack):
8576 * fns.c (sweep_weak_table):
8577 * keyboard.c (mark_kboards): Update calls to mark_object.
8578
8579 2003-07-06 Jason Rumney <jasonr@gnu.org>
8580
8581 * alloc.c (struct ablock): Only include padding when there is some.
8582
8583 2003-07-04 Stefan Monnier <monnier@cs.yale.edu>
8584
8585 * alloc.c (ALIGN): Add casts to simplify usage.
8586 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
8587 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
8588 (struct ablock, struct ablocks): New types.
8589 (free_ablock): New global var.
8590 (lisp_align_malloc, lisp_align_free): New functions.
8591 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
8592 (struct float_block): Reorder and add gcmarkbits.
8593 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
8594 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
8595 (init_float, make_float): Use lisp_align_malloc.
8596 (free_float, live_float_p): Don't use `type' any more.
8597 (make_float): Use FLOAT_UNMARK to access to mark bit.
8598 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
8599 Use FLOAT_MARKED_P to access the mark bit.
8600 (pure_alloc): Simplify use of ALIGN.
8601 (mark_object): Use FLOAT_MARK to access the mark bit.
8602 (gc_sweep): Use new macros to access the float's mark bit.
8603 (init_alloc_once): Init free_ablock.
8604
8605 * lisp.h (struct Lisp_Float): Remove unused field `type'.
8606
8607 2003-06-27 Stefan Monnier <monnier@cs.yale.edu>
8608
8609 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
8610 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
8611 (allocate_buffer): Move.
8612 (string_bytes): Don't mask markbit of `size_byte'.
8613 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
8614 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
8615 Use the `size' field of buffers (rather than the `name' field) for
8616 the mark bit, as is done for all other vectorlike objects.
8617 Use the new macros to access the mark bit of vectorlike objects.
8618
8619 2003-06-26 Richard M. Stallman <rms@gnu.org>
8620
8621 * puresize.h (BASE_PURESIZE): Increment base size.
8622
8623 * xdisp.c (fast_find_position): Enable Gerd's new definition.
8624
8625 * xterm.c (xim_initialize): Undo previous change.
8626
8627 2003-06-26 Stefan Monnier <monnier@cs.yale.edu>
8628
8629 * alloc.c (survives_gc_p): Simplify.
8630
8631 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
8632
8633 * window.c (Fset_window_dedicated_p): Simplify.
8634 (display_buffer_1): Don't raise the win from which minibuf was entered.
8635 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
8636 (Fminibuffer_selected_window): Simplify.
8637
8638 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
8639
8640 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
8641 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
8642
8643 * insdel.c (check_markers, adjust_markers_for_delete)
8644 (adjust_markers_for_insert, adjust_markers_for_replace)
8645 (prepare_to_modify_buffer, RESTORE_VALUE):
8646 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
8647 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
8648 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
8649 * alloc.c (Fmake_marker, free_marker, gc_sweep):
8650 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
8651 * editfns.c (save_excursion_restore, transpose_markers):
8652 * window.c (delete_window):
8653 * xdisp.c (message_dolog): Update for new types.
8654
8655 2003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8656
8657 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
8658 (realize_default_face): Use default_face_done_p for the force_p
8659 argument to set_lface_from_font_name. Set default_face_done_p to one.
8660
8661 * frame.c (make_frame): Initialize default_face_done_p.
8662
8663 * frame.h (struct frame): Add default_face_done_p.
8664
8665 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
8666 will be defined.
8667
8668 2003-06-25 Stefan Monnier <monnier@cs.yale.edu>
8669
8670 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
8671 Initialize the new field `gcmarkbit'.
8672 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
8673 (mark_interval_tree): Don't mark the tree separately from the nodes.
8674 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
8675 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
8676 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
8677
8678 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
8679 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
8680 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
8681 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
8682 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
8683
8684 2003-06-24 Dave Love <fx@gnu.org>
8685
8686 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
8687
8688 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
8689 from gnulib.
8690
8691 2003-06-21 Richard M. Stallman <rms@gnu.org>
8692
8693 * fileio.c (Fwrite_region): Alternate messages
8694 for append and partial write.
8695
8696 * keyboard.c (read_key_sequence): When converting upcase fn key to
8697 downcase, update fkey and keytran so `backspace' gets translated.
8698
8699 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
8700
8701 * process.c (wait_reading_process_input): Don't signal SIGIO
8702 in batch mode.
8703
8704 2003-06-17 Kenichi Handa <handa@m17n.org>
8705
8706 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
8707 composite.h.
8708
8709 * xselect.c: Don't include charset.h, coding.h, composite.h.
8710 (Qforeign_selection): New variable.
8711 (syms_of_xselect): Intern and static it.
8712 (selection_data_to_lisp_data): Return a unibyte string made from
8713 data with `foreign-selection' text property.
8714
8715 2003-06-15 Stefan Monnier <monnier@cs.yale.edu>
8716
8717 * termhooks.h (EVENT_INIT): New macro.
8718
8719 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
8720
8721 * alloc.c (mark_kboards): Move to keyboard.c.
8722
8723 * keyboard.c (record_asynch_buffer_change, read_avail_input):
8724 * xterm.c (x_dispatch_event):
8725 * xmenu.c (find_and_call_menu_selection):
8726 * xdisp.c (handle_tool_bar_click):
8727 * w32menu.c (menubar_selection_callback):
8728 * sysdep.c (kbd_input_ast, read_input_waiting):
8729 * msdos.c (dos_rawgetc):
8730 * macterm.c (mac_check_for_quit_char):
8731 * macmenu.c (menubar_selection_callback):
8732 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
8733 data to kbd_buffer_store_event.
8734
8735 2003-06-15 Kim F. Storm <storm@cua.dk>
8736
8737 * xdisp.c (x_fix_overlapping_area): Always use area relative X
8738 to fix redisplay problem with tall characters (such as \e,AC\e(B).
8739
8740 2003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
8741
8742 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
8743
8744 2003-06-12 Kenichi Handa <handa@m17n.org>
8745
8746 * fileio.c (Fwrite_region): Save and restore restriction.
8747
8748 2003-06-12 Dave Love <fx@gnu.org>
8749
8750 * alloca.c (alloca): Declare arg as size_t.
8751
8752 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
8753 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
8754
8755 2003-06-11 Dave Love <fx@gnu.org>
8756
8757 * search.c (shrink_regexp_cache): Use xrealloc.
8758 (syms_of_search): Use xmalloc.
8759
8760 2003-06-10 Kim F. Storm <storm@cua.dk>
8761
8762 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
8763 Adjust phys_cursor.x to be relative to window box, rather than
8764 text area before checking -- to ensure cursor is redrawn when
8765 exposing window.
8766 Note: This also fixes a similar (older) bug if display margins
8767 are present.
8768
8769 2003-06-06 Kenichi Handa <handa@m17n.org>
8770
8771 * coding.c (encoding_buffer_size): If coding->type is
8772 coding_type_ccl, double magnification on CRLF encoding.
8773
8774 2003-06-06 Jason Rumney <jasonr@gnu.org>
8775
8776 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
8777 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
8778
8779 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
8780 Mac too.
8781
8782 2003-06-05 Dave Love <fx@gnu.org>
8783
8784 * strftime.c: Merge changes from gnulib.
8785
8786 * mktime.c (__mktime_internal): Merge changes from gnulib
8787 involving year 69 and dst2.
8788
8789 Changes to merge with gnulib version and be consistent with the
8790 autoconf test:
8791
8792 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
8793 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
8794 [HAVE_LOCALE_H]: Include locale.h.
8795 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
8796
8797 2003-06-05 Kim F. Storm <storm@cua.dk>
8798
8799 * window.c (coordinates_in_window): Convert X and Y to window
8800 relative coordinates inside mode-line and header-line parts.
8801 Convert X and Y to margin area relative coordinates inside left
8802 and right display margin parts.
8803
8804 2003-06-05 Jason Rumney <jasonr@gnu.org>
8805
8806 * w32fns.c (add_system_logical_colors_to_map): New function.
8807 (Fx_open_connection): Use it.
8808
8809 2003-06-04 Stefan Monnier <monnier@cs.yale.edu>
8810
8811 * process.c (allocate_pty): Revert part of the previous patch.
8812 (Faccept_process_output): Simplify.
8813
8814 2003-06-04 Jason Rumney <jasonr@gnu.org>
8815
8816 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
8817
8818 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
8819 (lispy_mouse_wheel_names): Remove.
8820 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
8821 Always define drag_and_drop_syms.
8822
8823 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
8824 WHEEL_EVENT events.
8825
8826 2003-06-03 Stefan Monnier <monnier@cs.yale.edu>
8827
8828 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
8829
8830 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
8831
8832 2003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8833
8834 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
8835 menu item label.
8836
8837 2003-06-03 Richard M. Stallman <rms@gnu.org>
8838
8839 * window.c (Fwindow_edges): Doc fix.
8840 (Fwindow_pixel_edges, Fwindow_inside_edges)
8841 (Fwindow_inside_pixel_edges): New functions.
8842 (syms_of_window): defsubr them.
8843
8844 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
8845 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
8846
8847 2003-06-02 Stefan Monnier <monnier@cs.yale.edu>
8848
8849 * dispnew.c (Fsit_for): Don't lie about the number of args.
8850
8851 2003-06-02 Dave Love <fx@gnu.org>
8852
8853 * callproc.c: Use HAVE_FCNTL_H, not USG5.
8854 (syms_of_callproc) <process-environment>: Doc fix.
8855
8856 * doc.c: Use HAVE_FCNTL_H, not USG5.
8857
8858 * xfaces.c (font_rescale_ratio): Fix for K&R.
8859
8860 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
8861
8862 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
8863
8864 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
8865
8866 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
8867 (xg_create_frame_widgets): Use ENCODE_UTF_8.
8868
8869 * xterm.c (Qutf_8): Move to coding.c
8870
8871 * xmenu.c (ENCODE_MENU_STRING): New.
8872 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
8873 Use it.
8874
8875 * coding.h (ENCODE_UTF_8): New.
8876 (Qutf_8): Declare.
8877
8878 * coding.c (Qutf_8): New.
8879 (syms_of_coding): Intern it.
8880
8881 * fns.c: Doc fixes.
8882
8883 2003-06-02 Kenichi Handa <handa@m17n.org>
8884
8885 * buffer.c (Fset_buffer_multibyte): Fix previous change.
8886
8887 2003-06-01 Stefan Monnier <monnier@cs.yale.edu>
8888
8889 * lread.c (openp): Make sure STR is a string.
8890
8891 2003-06-01 David Ponce <david@dponce.com>
8892
8893 * termhooks.h (enum event_kind): Add new WHEEL_EVENT event.
8894 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
8895
8896 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
8897 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
8898 (discard_mouse_events): Discard WHEEL_EVENT events too.
8899 (lispy_wheel_names, wheel_syms): New.
8900 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
8901 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX defined.
8902 (make_lispy_event): Add WHEEL_EVENT handler.
8903
8904 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
8905 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
8906 WHEEL_EVENT events.
8907
8908 2003-05-31 John Paul Wallington <jpw@gnu.org>
8909
8910 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
8911 timer are in lisp/emacs-lisp.
8912
8913 2003-05-31 Kenichi Handa <handa@m17n.org>
8914
8915 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
8916 region when a buffer is changed to unibyte.
8917
8918 * charset.h (VALID_LEADING_CODE_P): New macro.
8919 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
8920
8921 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
8922 is nonzero, accept multibyte form of eight-bit-control chars.
8923 (decode_composition_emacs_mule): Likewise.
8924 (decode_coding_emacs_mule): Likewise.
8925 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
8926 multibyte form of eight-bit-control chars.
8927
8928 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
8929 (Finsert_file_contents): If coding-system-for-read is bound to
8930 Qauto_save_coding, use the coding system emacs-mule with special
8931 setting for recovering a file.
8932 (choose_write_coding_system): On auto saving, use the coding
8933 system emacs-mule with special setting for auto saving.
8934 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
8935
8936 2003-05-30 Kenichi Handa <handa@m17n.org>
8937
8938 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
8939 properly before calling ccl_driver.
8940
8941 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
8942
8943 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is nonzero.
8944 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
8945 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
8946
8947 2003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
8948
8949 * xfaces.c (realize_default_face): Do not abort if lface is
8950 non-existent - reverts change from 2003-05-19.
8951
8952 2003-05-29 Kenichi Handa <handa@m17n.org>
8953
8954 * coding.c (decode_coding_iso2022): Pay attention to the byte
8955 sequence of CTEXT extended segment, and retain those bytes as is.
8956
8957 2003-05-28 Kenichi Handa <handa@m17n.org>
8958
8959 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjust for the name change
8960 of CODING_REPLACEMENT_CHARACTER.
8961 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
8962 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
8963 check this flag on encoding.
8964 (encode_coding_sjis_big5):
8965 Check CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
8966 (Fset_terminal_coding_system_internal):
8967 Set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
8968 instead of setting CODING_FLAG_ISO_SAFE flag in terminal_coding.flags.
8969
8970 * coding.h (CODING_REPLACEMENT_CHARACTER): Rename from
8971 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
8972 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
8973
8974 2003-05-28 Richard M. Stallman <rms@gnu.org>
8975
8976 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
8977
8978 * eval.c (unbind_to): Move init of this_binding to separate statement.
8979
8980 2003-05-28 Kim F. Storm <storm@cua.dk>
8981
8982 * xdisp.c (expose_window): Fix error in calculation of
8983 window relative coordinates of area to redisplay.
8984
8985 2003-05-27 Jason Rumney <jasonr@gnu.org>
8986
8987 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
8988
8989 2003-05-27 David Ponce <david@dponce.com>
8990
8991 Handle W32 mouse wheel events as mouse click events, like in X.
8992
8993 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
8994 MOUSE_WHEEL_EVENT anymore.
8995
8996 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
8997 Scrolling down/up the mouse wheel is respectively mapped to mouse
8998 button 4 and 5.
8999 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
9000 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
9001 WM_MOUSEWHEEL events.
9002
9003 2003-05-27 Andreas Schwab <schwab@suse.de>
9004
9005 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
9006
9007 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
9008 partially visible line.
9009
9010 * alloc.c (Fgarbage_collect): Fix last change.
9011
9012 2003-05-26 John Paul Wallington <jpw@gnu.org>
9013
9014 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
9015
9016 2003-05-25 Stefan Monnier <monnier@cs.yale.edu>
9017
9018 * window.c (Fset_window_buffer): Add type of `keep_margins'.
9019 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
9020
9021 * window.h (window_box_text_cols): Declare.
9022
9023 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
9024 (x_draw_vertical_border): Remove unused var `f'.
9025
9026 * xfaces.c (build_scalable_font_name): Remove `unused var
9027 pixel_size' warning.
9028
9029 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
9030
9031 * unexelf.c (unexec): Remove `unused var n' warning.
9032
9033 * strftime.c (my_strftime_localtime_r): Remove `defined but
9034 unused' warning.
9035
9036 * process.c (allocate_pty): Remove `unused var stb' and
9037 `cp might be used uninitialized' warnings.
9038
9039 * dispnew.c (mode_line_string): Remove unused var `f'.
9040
9041 * coding.c (find_safe_codings): Remove unused var `i'.
9042
9043 * bytecode.c (Fbyte_code): Remove `unused val' warning.
9044
9045 * buffer.c (Fkill_buffer): Remove unused var `list'.
9046
9047 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
9048
9049 2003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9050
9051 * frame.c (make_frame): Condition want_fullscreen with
9052 HAVE_WINDOW_SYSTEM.
9053
9054 2003-05-25 Juanma Barranquero <lektu@terra.es>
9055
9056 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
9057 (Fwindow_scroll_bars): Fix typo in docstring.
9058
9059 2003-05-24 Kim F. Storm <storm@cua.dk>
9060
9061 The following changes serve several purposes:
9062
9063 1) Swap the position of fringes and display margins in windows, i.e.
9064 the fringes are now displayed between the margins and the text area
9065 (by default).
9066
9067 2) Allow fringe and scroll bar parameters to be set per-buffer and
9068 per-window (like display margins). Such settings are now stored
9069 in window configurations, preserved when frames are resized, and
9070 copied when windows are split vertically or horizontally.
9071 Several bugs related to display margins have been fixed.
9072
9073 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
9074
9075 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
9076 rather than FRAME_WIDTH (FRAME_FONT (f)).
9077
9078 5) Introduce a consistent naming of variables, members and macros
9079 depending on whether their value is measured in pixels or in
9080 canonical columns/lines. Pixel dimensions are named *_width and
9081 *_height, while canonical columns/lines are named *_cols and
9082 *_lines. Pixel positions are named *_x and *_y, while column/line
9083 positions are named *_col and *_line.
9084
9085 6) Consolidate more of the X, W32, and MAC gui code by moving
9086 common data into struct frame, and generalize it for the non-gui
9087 case by using suitable defaults.
9088
9089 7) Cleanup and consolidate the macros controlling frame and window
9090 layout into frame.h and window.h, and generalize the use of the
9091 various window_box_* functions (enhanced to handle the new fringe
9092 position and the per-window fringe and scroll bar settings).
9093
9094 * frame.h (struct frame): Rename members height to text_lines,
9095 width to text_cols, window_height to total_lines, window_width to
9096 total_cols, new_height to new_text_lines, new_width to
9097 new_text_cols. All uses changed.
9098 (struct frame): New members which consolidate common members of
9099 x_output, w32_output, and mac_output structures: left_pos,
9100 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
9101 win_gravity, size_hint_flags, border_width, internal_border_width,
9102 line_height, fringe_cols, left_fringe_width, right_fringe_width,
9103 want_fullscreen. All uses changed.
9104 (struct frame): New member column_width contaning the canonical
9105 column width, analogue to line_height. All uses changed.
9106 (struct frame): Rename members scroll_bar_pixel_width to
9107 config_scroll_bar_width, and scroll_bar_cols to
9108 config_scroll_bar_cols. All uses changed.
9109 (struct frame): New member scroll_bar_actual_width which
9110 consolidates and renames the vertical_scroll_bar_extra member of
9111 x_output, w32_output, and mac_output structures. All uses changed.
9112 (FRAME_PIXEL_HEIGHT): Rename from PIXEL_HEIGHT and moved
9113 from x/w32/macterm.h files. All uses changed. Also change code
9114 which referred to f->output_data...->pixel_height.
9115 (FRAME_PIXEL_WIDTH): Rename from PIXEL_WIDTH and moved
9116 from x/w32/macterm.h files. All uses changed. Also change code
9117 which referred to f->output_data...->pixel_width.
9118 (FRAME_LINES): Rename from FRAME_HEIGHT. All uses changed.
9119 Also change code which referred to f->height.
9120 (FRAME_COLS): Rename from FRAME_WIDTH. All uses changed.
9121 Also change code which referred to f->width.
9122 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
9123 to update new_text_lines and new_text_cols members directly.
9124 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Rename from
9125 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
9126 (FRAME_CONFIG_SCROLL_BAR_COLS): Rename from
9127 FRAME_SCROLL_BAR_COLS. All uses changed.
9128 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
9129 Rename from FRAME_LEFT_SCROLL_BAR_WIDTH and
9130 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
9131 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
9132 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
9133 (FRAME_TOTAL_COLS): Rename from FRAME_WINDOW_WIDTH.
9134 (SET_FRAME_COLS): Rename from SET_FRAME_WIDTH.
9135 (FRAME_TOTAL_COLS_ARG): Rename from FRAME_WINDOW_WIDTH_ARG.
9136 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
9137 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
9138 (FRAME_LINE_HEIGHT): Rename from CANON_Y_UNIT.
9139 Unconditionally return line_height member (it now has proper value
9140 also for non-window frames).
9141 (FRAME_COLUMN_WIDTH): Rename from CANON_X_UNIT. Unconditionally
9142 return new column_width member (rather than the default font width).
9143 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
9144 (FRAME_RIGHT_FRINGE_WIDTH): Rename from FRAME_X_... and moved
9145 from x/w32/macterm.h files. Unconditionally return corresponding
9146 member of frame structure (they now have proper values also for
9147 non-window frames).
9148 (FRAME_TOTAL_FRINGE_WIDTH): Rename from FRAME_FRINGE_WIDTH.
9149 Calculate return value from left and right widths.
9150 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
9151 internal_border_width member (has proper value for non-window frame).
9152 (FRAME_PIXEL_X_FROM_CANON_X): Rename from PIXEL_X_FROM_CANON_X.
9153 (FRAME_PIXEL_Y_FROM_CANON_Y): Rename from PIXEL_Y_FROM_CANON_Y.
9154 (FRAME_CANON_X_FROM_PIXEL_X): Rename from CANON_X_FROM_PIXEL_X.
9155 (FRAME_CANON_Y_FROM_PIXEL_Y): Rename from CANON_Y_FROM_PIXEL_Y.
9156 (FRAME_LINE_TO_PIXEL_Y): Rename from CHAR_TO_PIXEL_ROW,
9157 consolidated from xterm.h, macterm.h, and w32term.h.
9158 (FRAME_COL_TO_PIXEL_X): Rename from CHAR_TO_PIXEL_COL,
9159 consolidated from xterm.h, macterm.h, and w32term.h.
9160 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Rename from
9161 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
9162 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Rename from
9163 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
9164 (FRAME_PIXEL_Y_TO_LINE): Rename from PIXEL_TO_CHAR_ROW
9165 consolidated from x/mac/w32term.h.
9166 (FRAME_PIXEL_X_TO_COL): Rename from PIXEL_TO_CHAR_COL
9167 consolidated from x/mac/w32term.h.
9168 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Rename from
9169 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
9170 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Rename from
9171 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
9172
9173 * window.h (struct window): Rename members left to left_col,
9174 top to top_line, height to total_lines, width to total_cols,
9175 left_margin_width to left_margin_cols, right_margin_width to
9176 right_margin_cols, orig_height to orig_total_lines, orig_top to
9177 orig_top_line. All uses changed.
9178 (struct window): New members left_fringe_width, right_fringe_width,
9179 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
9180 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
9181 New macros primarily used to simplify other macros.
9182 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
9183 referred to XINT (w->width).
9184 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
9185 referred to XINT (w->height).
9186 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
9187 referred to XINT (w->width) * canon_x_unit.
9188 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
9189 referred to XINT (w->height) * canon_y_unit.
9190 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
9191 referred to XINT (w->left).
9192 (WINDOW_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_EDGE. Change
9193 all uses and code that referred to XINT (w->left) + XINT (w->width).
9194 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
9195 referred to XINT (w->top).
9196 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
9197 referred to XINT (w->top) + XINT (w->height).
9198 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
9199 referred to XINT (w->left) * canon_x_unit.
9200 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
9201 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
9202 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
9203 referred to XINT (w->top) * canon_y_unit.
9204 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
9205 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
9206 (WINDOW_LEFTMOST_P): New macro.
9207 (WINDOW_BOX_LEFT_EDGE_COL): Rename from WINDOW_LEFT_MARGIN.
9208 All uses changed.
9209 (WINDOW_BOX_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_MARGIN.
9210 All uses changed.
9211 (WINDOW_BOX_LEFT_EDGE_X): Rename from
9212 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
9213 Do not exclude left fringe width.
9214 (WINDOW_BOX_RIGHT_EDGE_X): Rename from
9215 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
9216 Do not exclude fringe widths.
9217 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
9218 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
9219 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
9220 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
9221 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
9222 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
9223 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
9224 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
9225 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
9226 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
9227 New macros. Change code which referenced corresponding
9228 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
9229 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
9230 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
9231 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
9232 allow per-window scroll-bar settings.
9233 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
9234 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
9235 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
9236 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
9237 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
9238 FRAME_SCROLL_BAR_WIDTH.
9239 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
9240 (WINDOW_SCROLL_BAR_AREA_X): New macros.
9241 (WINDOW_HEADER_LINE_HEIGHT): Rename from
9242 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
9243 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Rename from
9244 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
9245 (WINDOW_BOX_TEXT_HEIGHT): Rename from
9246 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
9247 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
9248 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
9249 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Move here from dispextern.h.
9250 (WINDOW_LEFT_MARGIN_WIDTH): Rename from
9251 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
9252 (WINDOW_RIGHT_MARGIN_WIDTH): Rename from
9253 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
9254 (window_from_coordinates): Update prototype.
9255 (Fset_window_buffer): Update EXFUN.
9256 (set_window_buffer): Update prototype.
9257
9258 * dispextern.h (struct glyph_matrix): Rename members window_left_x
9259 to window_left_col, window_top_y to window_top_line. All uses
9260 changed.
9261 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
9262 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
9263 internal_border_width is now set to 0 for non-window frames.
9264 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
9265 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
9266 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
9267 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
9268 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
9269 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
9270 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
9271 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
9272 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
9273 Move to window.h and renamed [see window.h changes].
9274 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
9275 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
9276 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
9277 Use WINDOW_TOTAL_LINES.
9278 (frame_update_line_height): Remove prototype.
9279
9280 * buffer.h (struct buffer): Rename members measured in columns:
9281 left_margin_width to left_margin_cols, right_margin_width to
9282 right_margin_cols. All uses changed.
9283 New members left_fringe_width, right_fringe_width,
9284 fringes_outside_margins for per-buffer fringe settings.
9285 New members scroll_bar_width and vertical_scroll_bar_type for
9286 per-buffer scroll bar settings.
9287
9288 * buffer.c (init_buffer_once): Set buffer_defaults and
9289 buffer_local_flags for new buffer-local variables
9290 left_fringe_width, right_fringe_width, fringes_outside_margins,
9291 scroll_bar_width, and vertical_scroll_bar_type.
9292 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
9293 default-* variables for them.
9294
9295 * dispnew.c: Make (many) trivial substitutions for renamed and
9296 new macros in dispextern.h, frame.h and window.h.
9297 (mode_line_string): No need to adjust width for mode lines, as it
9298 is already adjusted by the caller.
9299 (marginal_area_string): Handle fringes inside/outside margins.
9300
9301 * frame.c: Make (many) trivial substitutions for renamed and
9302 new macros in dispextern.h, frame.h and window.h.
9303 (make_frame): Initialize left_fringe_width, right_fringe_width,
9304 fringe_cols, scroll_bar_actual_width, border_width,
9305 internal_border_width, column_width, line_height, x_pixels_diff,
9306 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
9307 members with values suitable for a non-window frames.
9308
9309 * gtkutil.c: Make (many) trivial substitutions for renamed and
9310 new macros in dispextern.h, frame.h and window.h.
9311
9312 * indent.c: Make (few) trivial substitutions for renamed and
9313 new macros in dispextern.h, frame.h and window.h.
9314
9315 * keyboard.c: Make (many) trivial substitutions for renamed and
9316 new macros in dispextern.h, frame.h and window.h.
9317 (make_lispy_event): Use window positions returned from
9318 window_from_coordinates when constructing the lisp event for
9319 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
9320 (incorrect) values locally.
9321 (make_lispy_movement): Use window positions returned from
9322 window_from_coordinates when constructing the lisp event, rather
9323 than calculating (incorrect) values locally.
9324
9325 * scroll.c: Make (some) trivial substitutions for renamed and
9326 new macros in dispextern.h, frame.h and window.h.
9327
9328 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
9329 scroll-bars.
9330
9331 * sysdep.c: Make (few) trivial substitutions for renamed and
9332 new macros in dispextern.h, frame.h and window.h.
9333
9334 * term.c: Make (some) trivial substitutions for renamed and
9335 new macros in dispextern.h, frame.h and window.h.
9336
9337 * widget.c: Make (few) trivial substitutions for renamed and
9338 new macros in dispextern.h, frame.h and window.h.
9339
9340 * window.c: Make (many) trivial substitutions for renamed and
9341 new macros in dispextern.h, frame.h and window.h.
9342 (make_window): Initialize new members
9343 left_margin_cols, right_margin_cols, left_fringe_width,
9344 right_fringe_width, fringes_outside_margins, scroll_bar_width,
9345 and vertical_scroll_bar_type.
9346 (coordinates_in_window): Adapt to new fringe/margin positions
9347 and per-window fringes and scroll-bars.
9348 Fix bug related to incorrectly adjusting coordinates by
9349 frame's internal_border_width (the effect normally negible since
9350 the internal_border_width is typically 0 or 1 pixel, but very
9351 noticeable for an internal_border_width of e.g. 25 pixels).
9352 Upon successful return (other than ON_NOTHING), the coordinates
9353 are now always properly converted to window relative for the
9354 given display element.
9355 (window_from_coordinates): Add new parameters wx and wy to
9356 return the window relative x and y position in the returned
9357 window and part. A null arg means, don't return the position.
9358 All callers changed.
9359 (adjust_window_margins): New function which may reduce the width
9360 of the display margins if a window's text area is too small after
9361 resizing or splitting windows.
9362 (size_window): Fix bug that did not account for display margin
9363 widths when checking the minimum width of a window; use
9364 adjust_window_margins.
9365 (set_window_buffer): Call Fset_window_fringes and
9366 Fset_window_scroll_bars to setup per-window elements.
9367 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
9368 existing display margin, fringe widths, and scroll bar settings
9369 (e.g. after splitting a window or resizing the frame).
9370 All callers changed.
9371 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
9372 (Fsplit_window): Duplicate original window's display margin,
9373 fringe, and scroll-bar settings; then call Fset_window_buffer with
9374 KEEP_MARGINS non-nil. This fixes a bug which caused a split
9375 window to only preserve the display margins in one of the windows.
9376 When splitting horizontally, call adjust_window_margins on both
9377 windows to ensure that the text area of the new windows is non too
9378 narrow. This fixes a bug which could cause Emacs to trap if the
9379 width of the split window was less than the width of the display
9380 margins.
9381 (window_box_text_cols): Rename from window_internal_width.
9382 All uses changed. Adapt to per-window fringes and scroll bars.
9383 Fix bug that caused vertical separator to be subtracted also on
9384 window frames. Fix another bug that did not reduce the returned
9385 value by the columns used for display margins.
9386 (window_scroll_line_based): Fix bug related to scrolling too much
9387 when display margins are present (implicitly fixed by the fix to
9388 window_box_text_cols).
9389 (scroll_left, scroll_right): Fix bug related to scrolling too far
9390 by default when display margins are present (implicitly fixed by
9391 the fix to window_box_text_cols).
9392 (struct saved_window): Rename members left to left_col, top to
9393 top_line, width to total_cols, height to total_lines, orig_top to
9394 orig_top_line, orig_height to orig_total_lines. All uses changed.
9395 New members left_margin_cols, right_margin_cols,
9396 left_fringe_width, right_fringe_width, fringes_outside_margins,
9397 scroll_bar_width, and vertical_scroll_bar_type for saving
9398 per-window display elements.
9399 (Fset_window_configuration): Restore display margins, fringes,
9400 and scroll bar settings. This fixes a bug which caused display
9401 margins to be discarded when saving and restoring a window
9402 configuration.
9403 (save_window_save): Save display margins, fringes, and scroll bar
9404 settings. This fixes a bug which caused display margins to be
9405 discarded when saving and restoring a window configuration.
9406 (Fset_window_margins): Do nothing if display margins are not
9407 really changed. Otherwise, call adjust_window_margins to ensure
9408 the text area doesn't get too narrow. This fixes a bug which
9409 could cause Emacs to trap if setting display margins wider than
9410 the width of the window.
9411 (Fset_window_fringes): New defun to allow user to specifically set
9412 this window's fringe widths and position vs. display margins.
9413 (Fwindow_fringes): New defun to return window's actual fringe settings.
9414 (Fset_window_scroll_bars): New defun to allow user to specifically
9415 set this window's scroll bar width and position.
9416 (Fwindow_scroll_bars): New defun to return window's actual scroll
9417 bar settings.
9418 (compare_window_configurations): Also compare display margins,
9419 fringes, and scroll bar settings.
9420 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
9421
9422 * xdisp.c: Make (many) trivial substitutions for renamed and
9423 new macros in dispextern.h, frame.h and window.h.
9424 (window_box_width): Adapt to per-window fringes and scroll bars,
9425 and new fringe vs. display margin position. Note that returned
9426 value is no longer guaranteed to be a whole multiple of the frame
9427 column width, since per-window fringes may now be any width.
9428 (window_box_left_offset): New function like window_box_left, but
9429 value is relative to left border of window (rather than frame).
9430 (window_box_right_offset): New function like window_box_right,
9431 but value is relative to left border of window.
9432 (window_box_left): Adapt to per-window fringes and scroll bars,
9433 and new fringe vs. display margin position. Simplify by using
9434 WINDOW_LEFT_EDGE_X and window_box_left_offset.
9435 (window_box): Allow null args for unnecessary return values;
9436 change/simplify relevant callers.
9437 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
9438 and new fringe vs. display margin position.
9439 Use window_box_left_offset and window_box_right_offset
9440 (get_glyph_string_clip_rect): Adapt to per-window fringes and
9441 scroll bars, and new fringe vs. display margin position.
9442 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
9443 (draw_fringe_bitmap): Rework to handle per-window fringes and new
9444 fringe vs. display margin position.
9445 (hscroll_window_tree): Use window_box_width instead of window_box.
9446 (redisplay_window): Adapt to per-window scroll bars.
9447 (draw_glyphs): Rework to handle per-window fringes and scroll
9448 bars, and new fringe vs. display margin position.
9449 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
9450 (x_clear_end_of_line): Adapt to per-window fringes and scroll
9451 bars, and new fringe vs. display margin position. Fix bug which
9452 increased total width of full_width rows by width of scroll bars
9453 although window's total width already includes that.
9454 (x_fix_overlapping_area): Simplify using window_box_left_offset.
9455 (expose_area): Simplify using window_box_left_offset.
9456 (x_draw_vertical_border): Handle per-window scroll bar settings,
9457 mixing windows with left, right and no scroll bars.
9458
9459 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
9460 where it's used in x_list_fonts (for clarity).
9461 (frame_update_line_height): Remove unused function; functionality
9462 is now done directly when setting the default font in x_set_font.
9463
9464 * xfns.c: Make (many) trivial substitutions for renamed and
9465 new macros in dispextern.h, frame.h and window.h.
9466
9467 * xmenu.c: Make (some) trivial substitutions for renamed and
9468 new macros in dispextern.h, frame.h and window.h.
9469
9470 * xterm.h (struct x_output): Move members left_pos, top_pos,
9471 border_width, pixel_height, pixel_width, line_height,
9472 internal_border_width, vertical_scroll_bar_extra,
9473 left_fringe_width, right_fringe_width, fringe_cols,
9474 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
9475 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
9476 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
9477 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
9478 (PIXEL_WIDTH, PIXEL_HEIGHT)
9479 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
9480 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
9481 frame.h and renamed [see frame.h changes].
9482 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
9483 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
9484 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
9485 and renamed [see frame.h changes].
9486
9487 * xterm.c: Make (several) trivial substitutions for renamed and
9488 new macros in dispextern.h, frame.h and window.h.
9489 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
9490 (scroll_run): Adapt to new fringe position.
9491 (glyph_rect): Use window coordinates returned from
9492 window_from_coordinates rather than frame_to_window_pixel_xy.
9493 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
9494 scroll-bars.
9495 (handle_one_xevent): Simplify a USE_GTK conditional.
9496 (x_clip_to_row): Remove superfluous whole_line_p arg and code
9497 (fringes are now inside margins, i.e. always in the clipping area).
9498 All callers changed.
9499 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
9500 directly, then call compute_fringe_widths. Don't call
9501 frame_update_line_height.
9502
9503 * w32term.h (struct w32_output): Move members left_pos, top_pos,
9504 border_width, pixel_height, pixel_width, line_height,
9505 internal_border_width, vertical_scroll_bar_extra,
9506 left_fringe_width, right_fringe_width, fringe_cols,
9507 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
9508 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
9509 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
9510 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
9511 (PIXEL_WIDTH, PIXEL_HEIGHT)
9512 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
9513 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
9514 frame.h and renamed [see frame.h changes].
9515 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
9516 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
9517 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
9518 and renamed [see frame.h changes].
9519
9520 * w32term.c: Make (several) trivial substitutions for renamed and
9521 new macros in dispextern.h, frame.h and window.h.
9522 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
9523 (glyph_rect): Use window coordinates returned from
9524 window_from_coordinates rather than frame_to_window_pixel_xy.
9525 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
9526 scroll-bars.
9527 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
9528 (fringes are now inside margins, i.e. always in the clipping area).
9529 All callers changed.
9530 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
9531 directly, then call compute_fringe_widths. Don't call
9532 frame_update_line_height.
9533
9534 * w32console.c: Make (few) trivial substitutions for renamed and
9535 new macros in dispextern.h, frame.h and window.h.
9536
9537 * w32fns.c: Make (many) trivial substitutions for renamed and
9538 new macros in dispextern.h, frame.h and window.h.
9539
9540 * w32menu.c: Make (few) trivial substitutions for renamed and
9541 new macros in dispextern.h, frame.h and window.h.
9542
9543 * macterm.h (struct mac_output): Move members left_pos, top_pos,
9544 border_width, pixel_height, pixel_width, line_height,
9545 internal_border_width, vertical_scroll_bar_extra,
9546 left_fringe_width, right_fringe_width, fringe_cols,
9547 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
9548 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
9549 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
9550 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
9551 (PIXEL_WIDTH, PIXEL_HEIGHT)
9552 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
9553 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
9554 frame.h and renamed [see frame.h changes].
9555 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
9556 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
9557 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
9558 and renamed [see frame.h changes].
9559
9560 * macterm.c: Make (several) trivial substitutions for renamed and
9561 new macros in dispextern.h, frame.h and window.h.
9562 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
9563 (glyph_rect): Use window coordinates returned from
9564 window_from_coordinates rather than frame_to_window_pixel_xy.
9565 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
9566 scroll-bars.
9567 (x_clip_to_row): Remove superfluous whole_line_p arg and code
9568 (fringes are now inside margins, i.e. always in the clipping area).
9569 All callers changed.
9570 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
9571 directly, then call compute_fringe_widths. Don't call
9572 frame_update_line_height.
9573
9574 * macfns.c: Make (several) trivial substitutions for renamed and
9575 new macros in dispextern.h, frame.h and window.h.
9576 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
9577
9578 * macmenu.c: Make (few) trivial substitutions for renamed and
9579 new macros in dispextern.h, frame.h and window.h.
9580
9581 * msdos.h (struct x_output): Remove members left_pos, top_pos,
9582 and line_height, and use corresponding new members in struct
9583 frame. All uses changed.
9584 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
9585 superseeded by corresponding macros in frame.h.
9586
9587 * msdos.c: Make (several) trivial substitutions for renamed and
9588 new macros in dispextern.h, frame.h and window.h.
9589 (IT_note_mouse_highlight): Use updated window coordinates returned
9590 by window_from_coordinates, rather than adjusting them locally.
9591 (internal_terminal_init): No need to initialize line_height here;
9592 it now defaults to 1.
9593
9594 2003-05-24 Stefan Monnier <monnier@cs.yale.edu>
9595
9596 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
9597 dropping `down' events.
9598
9599 2003-05-24 Andreas Schwab <schwab@suse.de>
9600
9601 * coding.c (find_safe_codings): Fix last change.
9602
9603 2003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
9604
9605 * xfns.c (x_window): Fix typo from 2003-05-21 change.
9606
9607 2003-05-23 Stefan Monnier <monnier@cs.yale.edu>
9608
9609 * xdisp.c (display_mode_element): Increase max depth.
9610 Simplify the error handling code. Use a different error string
9611 for the case where we hit the depth limit.
9612
9613 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
9614
9615 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
9616
9617 2003-05-21 Stefan Monnier <monnier@cs.yale.edu>
9618
9619 * intervals.c (get_local_map): Don't get char-property of previous
9620 point any more: get_pos_property already does it and better.
9621
9622 2003-05-21 Dave Love <fx@gnu.org>
9623
9624 [Merged from unicode branch.]
9625
9626 * xfns.c (x_window, x_window): Use use_xim.
9627
9628 * xterm.c (use_xim): Initialize.
9629 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
9630 (x_term_init): Maybe set use_xim.
9631
9632 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
9633
9634 2003-05-21 Jason Rumney <jasonr@gnu.org>
9635
9636 * unexw32.c (_start): Remove _fmode initialization.
9637
9638 * emacs.c (main) [WINDOWSNT]: Move it here.
9639
9640 2003-05-20 Dave Love <fx@gnu.org>
9641
9642 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
9643
9644 2003-05-19 Richard M. Stallman <rms@gnu.org>
9645
9646 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
9647 as value for QCfont attribute.
9648 (realize_default_face): lface should already exist; crash if not.
9649 Specify 0 for FORCE_P when calling set_lface_from_font_name.
9650
9651 * frame.c (Fignore_event): Doc fix.
9652
9653 2003-05-19 Kenichi Handa <handa@m17n.org>
9654
9655 * coding.c (decode_coding_string): Handle post-read-conversion
9656 even if the coding doesn't require decoding.
9657
9658 2003-05-18 Richard M. Stallman <rms@gnu.org>
9659
9660 * callproc.c (Fcall_process_region): Doc fix.
9661
9662 2003-05-17 Stefan Monnier <monnier@cs.yale.edu>
9663
9664 * lread.c (Fload): Print a message if package is obsolete.
9665
9666 * window.c (Fselect_window): Add optional `norecord' arg.
9667 (select_window_1): Fold into Fselect_window.
9668 (select_window_norecord): New function.
9669 (temp_output_buffer_show): Use it. Preserve current buffer.
9670
9671 * window.h (Fselect_window): Update declaration.
9672
9673 * window.c (delete_window, Fother_window, Fset_window_configuration):
9674 * minibuf.c (read_minibuf):
9675 * macterm.c (x_new_focus_frame):
9676 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
9677 * callint.c (Fcall_interactively):
9678 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
9679
9680 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
9681
9682 2003-05-17 David Kastrup <dak@gnu.org>
9683
9684 * process.c (read_process_output): Back out change from 2003-03-09.
9685
9686 2003-05-17 Stefan Monnier <monnier@cs.yale.edu>
9687
9688 * editfns.c (get_pos_property): Don't assume that `object' = nil.
9689
9690 * textprop.c (text_property_stickiness): New arg `buffer'.
9691
9692 * intervals.h (text_property_stickiness): New arg `buffer'.
9693 (get_pos_property): Declare.
9694
9695 * intervals.c (get_local_map): Use get_pos_property, to obey
9696 stickiness and empty overlays.
9697 (create_root_interval, graft_intervals_into_buffer): Use BEG.
9698 (merge_properties, intervals_equal, merge_properties_sticky):
9699 Use XCAR, XCDR.
9700 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
9701
9702 2003-05-17 Richard M. Stallman <rms@gnu.org>
9703
9704 * minibuf.c (read_minibuf): If buffer is empty, record the default
9705 in the history.
9706 (Fminibuffer_complete_word): When deleting the overlap, take account
9707 of its real position.
9708
9709 * fns.c (map_char_table): Fix previous change.
9710
9711 * syntax.c (find_defun_start):
9712 When open_paren_in_column_0_is_defun_start,
9713 return beginning of buffer.
9714
9715 * lisp.h (map_char_table): Declare added arg.
9716
9717 * fns.c (map_char_table): New arg TABLE gets the master table.
9718 All calls changed.
9719 Process default and inheritance, resorting to Faref if necessary.
9720
9721 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
9722 (Faccessible_keymaps): Pass new arg to map_char_table.
9723
9724 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
9725
9726 * casetab.c (set_case_table): Pass new arg to map_char_table.
9727
9728 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
9729
9730 * lisp.h (specbinding_func): New typedef.
9731 (struct specbinding): Use specbinding_func, to put the `volatile'
9732 in the right place.
9733
9734 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
9735 to avoid GCC warning.
9736
9737 2003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org>
9738
9739 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
9740
9741 2003-05-15 Stefan Monnier <monnier@cs.yale.edu>
9742
9743 * keyboard.c (apply_modifiers): Don't fill the other cache.
9744
9745 2003-05-14 Stefan Monnier <monnier@cs.yale.edu>
9746
9747 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
9748
9749 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
9750 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
9751 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
9752 (Fset_window_configuration, Fcurrent_window_configuration)
9753 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
9754 (Fpos_visible_in_window_p, mark_window_cursors_off)
9755 (window_internal_height, window_internal_width, Frecenter)
9756 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
9757 (replace_buffer_in_all_windows, init_window_once, init_window)
9758 (syms_of_window, keys_of_window): Move from lisp.h.
9759 * lisp.h: Move window.c declarations to window.h.
9760
9761 * bytecode.c: Include window.h.
9762 * emacs.c: Include window.h.
9763
9764 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
9765 (keyremap): Add `parent' field.
9766 (keyremap_step): Use it. Remove `parent' argument.
9767 (read_key_sequence): Setup and use the new `parent' field.
9768
9769 2003-05-11 Stefan Monnier <monnier@cs.yale.edu>
9770
9771 * keyboard.c (adjust_point_for_property): Ensure termination.
9772
9773 2003-05-10 Stefan Monnier <monnier@cs.yale.edu>
9774
9775 * keyboard.c (follow_key): Remove dead variable `did_meta'.
9776 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
9777 duplicated handling of function-key-map and key-translation-map
9778 in read_key_sequence.
9779 (read_key_sequence): Use them.
9780
9781 * keyboard.c (adjust_point_for_property): Try harder to move point
9782 to the non-sticky end of an invisible property.
9783
9784 * xdisp.c (single_display_prop_intangible_p): Make `space' display
9785 property intangible as well.
9786
9787 2003-05-10 Andreas Schwab <schwab@suse.de>
9788
9789 * xmenu.c (single_menu_item): Change last parameter to void* to
9790 avoid warning.
9791
9792 2003-05-09 Richard M. Stallman <rms@gnu.org>
9793
9794 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
9795 Bind Qinhibit_modification_hooks to t so there will be no GC.
9796 Rename local `tem' to `save_deactivate_mark'.
9797
9798 * eval.c (specpdl_ptr): Declare volatile.
9799 (unbind_to): Copy the whole binding and decrement specpdl_ptr
9800 before doing the work of unbinding it.
9801
9802 * lisp.h (struct specbinding): Declare elements volatile.
9803 (specpdl_ptr): Declare volatile.
9804
9805 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
9806
9807 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
9808 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
9809
9810 2003-05-08 Dave Love <fx@gnu.org>
9811
9812 * coding.c (Vlast_coding_system_used): Doc fix.
9813
9814 2003-05-07 Jason Rumney <jasonr@gnu.org>
9815
9816 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
9817 when system does not support them.
9818
9819 2003-05-05 Stefan Monnier <monnier@cs.yale.edu>
9820
9821 * fileio.c (Qwrite_region_annotate_functions): New var.
9822 (build_annotations): Use it to process the global part of the hook.
9823 (syms_of_fileio): Init and staticpro it.
9824
9825 * keyboard.c (safe_run_hooks_error): Display a message instead of
9826 silently ignoring the error.
9827
9828 2003-05-03 Stefan Monnier <monnier@cs.yale.edu>
9829
9830 * keyboard.c (input_available_signal): Mark static.
9831 (menu_bar_items): Use map_keymap.
9832 (menu_bar_one_keymap): Remove.
9833 (menu_bar_item): Adjust arglist (for use in map_keymap).
9834 Properly hide a second binding when not both are keymaps.
9835
9836 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
9837 (single_keymap_panes): Use it and map_keymap.
9838 (single_menu_item): Use skp as well.
9839
9840 * keymap.h (map_keymap_function_t): New type.
9841 (map_keymap): Declare.
9842
9843 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
9844 (map_keymap_call, Fmap_keymap): New functions.
9845 (syms_of_keymap): Defsubr map-keymap.
9846
9847 2003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9848
9849 * gtkutil.c (create_dialog, make_widget_for_menu_item)
9850 (make_menu_item, create_menus, xg_update_menu_item): Don't call
9851 ..._with_mnemonic functions for menu items.
9852
9853 2003-05-01 Kenichi Handa <handa@m17n.org>
9854
9855 * coding.c (coding_system_accept_latin_extra_p): Delete this
9856 function.
9857 (find_safe_codings): Pay attention to
9858 the property tranlsation-table-for-encode of each codings.
9859 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
9860
9861 2003-05-01 Stefan Monnier <monnier@cs.yale.edu>
9862
9863 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
9864
9865 2003-04-30 Stefan Monnier <monnier@cs.yale.edu>
9866
9867 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
9868
9869 * lisp.h (CHECK): Wrap args in parenthesis.
9870 (specbind): Fix doc: symbol = Qnil is not supported any more.
9871
9872 * bytecode.c (Fbyte_code) <unwind-protect>:
9873 Use Fprogn rather than 0 and Qnil.
9874
9875 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
9876 `double', and `triple' modifiers as well.
9877
9878 2003-04-30 Richard M. Stallman <rms@gnu.org>
9879
9880 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
9881
9882 * alloc.c (abort_on_gc): New variable.
9883 (Fgarbage_collect): Abort if abort_on_gc is set.
9884
9885 * lisp.h (abort_on_gc): Add decl.
9886
9887 * eval.c (Fsignal): Clear abort_on_gc.
9888
9889 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
9890 Reinit FORMAT_START and END before second scan.
9891
9892 * xdisp.c (move_it_vertically_backward): Do the final big else
9893 even if nlines is 0.
9894
9895 * xdisp.c (redisplay_internal): Finish the per-frame loop
9896 even if redisplay is suspended by input.
9897
9898 2003-04-24 Andrew Choi <akochoi@shaw.ca>
9899
9900 * macterm.c (x_list_fonts): Return all fonts that match if
9901 maxnames = -1.
9902
9903 2003-04-25 Kenichi Handa <handa@m17n.org>
9904
9905 * syntax.c (skip_chars): Fix previous change.
9906
9907 2003-04-24 Kenichi Handa <handa@m17n.org>
9908
9909 * syntax.c (skip_chars): Make the code faster by using the common
9910 technique of *p, *stop, and *endp.
9911
9912 2003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9913
9914 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
9915 tool_bar_items so GTK tool bar expose callback does not access items
9916 being updated.
9917
9918 2003-04-19 Stefan Monnier <monnier@cs.yale.edu>
9919
9920 * eval.c (Fapply): Undo last change and add a comment about why.
9921
9922 2003-04-18 Miles Bader <miles@gnu.org>
9923
9924 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
9925 pickier PARSE_MULTIBYTE_SEQ.
9926
9927 2003-04-17 Stefan Monnier <monnier@cs.yale.edu>
9928
9929 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
9930 Use XCDR, XCAR, CONSP.
9931 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
9932 (Fapply): Remove unnecessary GCPRO.
9933
9934 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
9935
9936 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
9937
9938 * buffer.h: Don't hardcode BEG==1.
9939
9940 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
9941
9942 2003-04-16 Richard M. Stallman <rms@gnu.org>
9943
9944 * xdisp.c (try_window, try_window_reusing_current_matrix):
9945 When at end of window, set window_end_pos to Z-ZV.
9946
9947 * buffer.c (Foverlay_recenter): Doc fix.
9948
9949 2003-04-14 Stefan Monnier <monnier@cs.yale.edu>
9950
9951 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
9952
9953 2003-04-14 Andrew Choi <akochoi@shaw.ca>
9954
9955 * macterm.c (mac_check_for_quit_char): Don't check more often than
9956 once a second.
9957
9958 2003-04-11 Stefan Monnier <monnier@cs.yale.edu>
9959
9960 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
9961 specially, so that they can't hide an implicit switch-frame event.
9962 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
9963 (head_table): Use switch-frame as event_kind for select-window.
9964 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
9965
9966 * editfns.c (Fformat): Lisp_Object/int mixup.
9967 (format2): Remove unused var numargs.
9968
9969 2003-04-11 Kenichi Handa <handa@m17n.org>
9970
9971 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
9972 (Qafter_insert_file_set_coding): New variable.
9973 (syms_of_fileio): Initialize and staticpro it. Delete declaration
9974 for after-insert-file-adjust-coding-function.
9975 (Finsert_file_contents): Call Qafter_insert_file_set_coding
9976 instead of Vafter_insert_file_adjust_coding_function.
9977
9978 2003-04-11 Kenichi Handa <handa@m17n.org>
9979
9980 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
9981
9982 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
9983 string. Callers changed.
9984
9985 2003-04-10 Kenichi Handa <handa@m17n.org>
9986
9987 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
9988 (syms_of_fileio): Declare it as a lisp variable.
9989 (Finsert_file_contents):
9990 Call Vafter_insert_file_adjust_coding_function before calling
9991 decode-format.
9992
9993 2003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9994
9995 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
9996 get GtkAdjustment as widget now is a GtkRange.
9997
9998 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
9999 GtkRange to avoid memory leak.
10000
10001 2003-04-09 Kenichi Handa <handa@m17n.org>
10002
10003 * xfaces.c (Vface_font_rescale_alist): New variable.
10004 (struct font_name): New member rescale_ratio.
10005 (font_rescale_ratio): New function.
10006 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
10007 (better_font_p): On comparing point sized, pay attention to
10008 recale_ratio member of fonts.
10009 (build_scalable_font_name): Reflect font->rescale_ratio in the
10010 font name.
10011 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
10012
10013 * lread.c (read1): Before calling index, check if the 2nd
10014 arguemnt is in ASCII range.
10015
10016 2003-04-08 Richard M. Stallman <rms@gnu.org>
10017
10018 * fileio.c (Ffile_symlink_p): Doc fix.
10019
10020 * editfns.c (Fformat): Translate positions of text properties
10021 in the format string to apply them to the result.
10022
10023 * fileio.c (Finsert_file_contents): Doc fix.
10024 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
10025
10026 2003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
10027
10028 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
10029
10030 2003-04-08 Steven Tamm <steventamm@mac.com>
10031
10032 * mac.c (init_mac_osx_environment): Switch libexec and bin so
10033 that self-contained application finds libexec files.
10034
10035 2003-04-08 Kenichi Handa <handa@m17n.org>
10036
10037 * coding.c (code_convert_region_unwind):
10038 Set Vlast_coding_system_used to the argument.
10039 (code_convert_region): If post-read-conversion function changed
10040 the value of last-coding-sytem, keep the new value in
10041 coding->symbol so that it won't be overridden.
10042 (run_pre_post_conversion_on_str): Likewise.
10043 (coding_system_accept_latin_extra_p): New function.
10044 (find_safe_codings): Pay attention to characters registered in
10045 latin-extra-code-table.
10046
10047 2003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
10048
10049 * Makefile.in (md5.o): Add missing dependency info.
10050
10051 2003-04-06 Richard M. Stallman <rms@gnu.org>
10052
10053 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
10054
10055 * marker.c (verify_bytepos): New function.
10056
10057 * intervals.c (set_intervals_multibyte_1): When becoming
10058 multibyte, adjust right and left child sizes to a whole set of
10059 characters. If an interval gets zero total-length, delete it.
10060 If an interval consists of just its children, delete one of them.
10061
10062 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
10063 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
10064
10065 * alloc.c: (VALIDATE_LISP_STORAGE): Macro deleted.
10066 All calls deleted.
10067 (lisp_malloc): Do the work here directly.
10068
10069 2003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
10070
10071 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
10072 char tables.
10073
10074 2003-04-04 Kenichi Handa <handa@m17n.org>
10075
10076 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
10077 destructively change "%S" to "%s".
10078
10079 2003-04-03 Miles Bader <miles@gnu.org>
10080
10081 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
10082 always set.
10083
10084 2003-04-01 Dave Love <fx@gnu.org>
10085
10086 * xfns.c (xpm_lookup_color): Grok "opaque".
10087
10088 2003-03-31 Andrew Choi <akochoi@shaw.ca>
10089
10090 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
10091 parent window ID.
10092
10093 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
10094
10095 * macterm.h (struct mac_output): Define x_pixels_diff and
10096 y_pixels_diff.
10097
10098 2003-03-31 Juanma Barranquero <lektu@terra.es>
10099
10100 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
10101 blockinput.h and files included from it.
10102
10103 2003-03-31 Kim F. Storm <storm@cua.dk>
10104
10105 The following changes consolidates the common code related to
10106 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
10107 files into frame.c.
10108
10109 * frame.c: Include blockinput.h.
10110 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
10111 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
10112 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
10113 related vars here.
10114 (struct frame_parm_table, frame_parms): New table for describing
10115 frame parameters and their associated Q-variable.
10116 The order of the parameters corresponds to the sequence of the
10117 frame_parm_handlers table in redisplay_interface.
10118 (x_fullscreen_move, x_set_frame_parameters)
10119 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
10120 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
10121 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
10122 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
10123 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
10124 Generic functions for processing of frame parameters.
10125 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
10126 (display_x_get_resource, x_get_resource_string): Functions for
10127 generic access to X resources.
10128 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
10129 (x_default_parameter, Fx_parse_geometry): Functions for generic
10130 access to frame parameters.
10131 (x_figure_window_size): Generic calculation of frame size.
10132 Fixed to add space needed for tool bar. Also setup size_hint_flags.
10133 (syms_of_frame): Intern and staticpro frame parameter variables.
10134 Defvar_lisp Vx_resource_class and Vx_resource_name here.
10135 Defsubr Sx_get_resource and Sx_parse_geometry.
10136
10137 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
10138 parameter related vars defined in frame.c.
10139 (EMACS_CLASS): Define here.
10140 (enum FULLSCREEN_*): Define here.
10141 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
10142 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
10143 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
10144 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
10145 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
10146 (x_set_visibility, x_set_autoraise, x_set_autolower)
10147 (x_set_unsplittable, x_set_vertical_scroll_bars)
10148 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
10149 (x_figure_window_size): Add prototypes.
10150
10151 * dispextern.h (frame_parm_handler): New typedef.
10152 (struct redisplay_interface): New member frame_parm_handlers.
10153 (enum resource_types): Move declaration here.
10154 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
10155 (x_default_parameter): Add prototypes.
10156
10157 * window.c: Remove extern decl for frame parameter vars.
10158 (change_window_heights): New generic function;
10159 replaces x_change_window_heights. All users changed.
10160
10161 * window.h (change_window_heights): Add prototype.
10162
10163 * xfaces.c: Remove extern decl for frame parameter vars.
10164
10165 * xterm.h (EMACS_CLASS): Remove. Use generic define.
10166 (struct w32_display_info): Fix type of xrdb member.
10167 (enum FULLSCREEN_*): Remove.
10168 Remove prototypes for generic functions (in frame.h).
10169
10170 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
10171 parameters now defined in frame.h and frame.c.
10172 (Vx_resource_name): Remove. Use generic var.
10173 (enum x_frame_parms): Remove (bogus, unused enum).
10174 (check_x_display_info): Make non-static (for frame.c).
10175 (struct x_frame_parm_table, x_frame_parms): Remove.
10176 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
10177 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
10178 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
10179 (x_change_window_heights, x_set_autoraise, x_set_autolower)
10180 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
10181 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
10182 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
10183 Remove. Use generic functions instead.
10184 (enum resource_types): Remove.
10185 (x_set_scroll_bar_default_width): New global function (for frame.c).
10186 (Fx_create_frame): Depend on x_figure_window_size to add space for
10187 toolbar and setup size_hint_flags.
10188 (x_frame_parm_handlers): New table for redisplay_interface.
10189 (syms_of_xfns): Don't intern/staticpro removed vars.
10190
10191 * xterm.c: Remove unnecessary extern declarations.
10192 (x_fullscreen_adjust): Remove. Use generic instead.
10193 (x_redisplay_interface): Add x_frame_parm_handlers member.
10194
10195 * w32gui.h (XrmDatabase): New (dummy) typedef.
10196
10197 * w32term.h (EMACS_CLASS): Remove. Use generic define.
10198 (struct w32_display_info): Fix type of xrdb member.
10199 (enum FULLSCREEN_*): Remove.
10200 (x_fullscreen_adjust): Remove prototype.
10201
10202 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
10203 parameters now defined in frame.h and frame.c.
10204 (Vx_resource_name): Remove. Use generic var.
10205 (enum x_frame_parms): Remove (bogus, unused enum).
10206 (check_x_display_info): Make non-static (for frame.c).
10207 (struct x_frame_parm_table, x_frame_parms): Remove.
10208 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
10209 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
10210 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
10211 (x_change_window_heights, x_set_autoraise, x_set_autolower)
10212 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
10213 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
10214 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
10215 Remove. Use generic functions instead.
10216 (enum resource_types): Remove.
10217 (x_set_scroll_bar_default_width): New global function (for frame.c).
10218 (Fx_create_frame): Depend on x_figure_window_size to add space for
10219 toolbar and setup size_hint_flags.
10220 (w32_frame_parm_handlers): New table for redisplay_interface.
10221 (syms_of_w32fns): Don't intern/staticpro removed vars.
10222
10223 * w32term.c: Remove unnecessary extern declarations.
10224 (x_fullscreen_adjust): Remove. Use generic instead.
10225 (x_redisplay_interface): Add w32_frame_parm_handlers member.
10226
10227 * w32reg.c (x_get_string_resource): Use XrmDatabase.
10228
10229 * macgui.h (XrmDatabase): New (dummy) typedef.
10230
10231 * macterm.h (EMACS_CLASS): Remove.
10232 (struct mac_display_info): Add xrdb member.
10233 (struct mac_output): Add want_fullscreen member.
10234
10235 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
10236 parameters now defined in frame.h and frame.c.
10237 (Vx_resource_name): Remove. Use generic var.
10238 (check_x_display_info): Make non-static (for frame.c).
10239 (struct x_frame_parm_table, x_frame_parms): Remove.
10240 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
10241 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
10242 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
10243 (x_change_window_heights, x_set_autoraise, x_set_autolower)
10244 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
10245 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
10246 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
10247 Remove. Use generic functions instead.
10248 (enum resource_types): Remove.
10249 (x_set_scroll_bar_default_width): New global function (for frame.c).
10250 (mac_frame_parm_handlers): New table for redisplay_interface.
10251 (syms_of_macfns): Don't intern/staticpro removed vars.
10252
10253 * macterm.c: Remove unnecessary extern declarations.
10254 (x_redisplay_interface): Add mac_frame_parm_handlers member.
10255
10256 * Makefile.in (frame.o): Add dependency on blockinput.h and files
10257 included from it (atimer.h and systime.h).
10258
10259 2003-03-30 Andreas Schwab <schwab@suse.de>
10260
10261 * xdisp.c (x_insert_glyphs): Fix swapped width and height
10262 parameters for shift_glyphs_for_insert.
10263
10264 * macterm.c (x_redisplay_interface): Add missing entry for
10265 draw_vertical_window_border.
10266
10267 2003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
10268
10269 * fileio.c (Fexpand_file_name): In the no-handler case, after
10270 expanding, look again for a handler and invoke it. This is needed
10271 for filenames like "/foo/../user@host:/bar/../baz" -- the first
10272 expansion produces "/user@host:/bar/../baz" which needs to be
10273 expanded again for the finame result "/user@host:/baz".
10274
10275 2003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10276
10277 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
10278 of area to be redrawn for better performance.
10279
10280 2003-03-28 Stefan Monnier <monnier@cs.yale.edu>
10281
10282 * xterm.c (take_vertical_position_into_account): Remove.
10283 (xt_action_hook): Call set_vertical_scroll_bar if needed.
10284 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
10285 (xm_scroll_callback, x_create_toolkit_scroll_bar)
10286 (x_set_toolkit_scroll_bar_thumb): Simplify.
10287 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
10288 (XTread_socket): Remove unused var.
10289 (x_make_frame_invisible): Replace goto with else.
10290
10291 * xdisp.c (set_vertical_scroll_bar): New fun.
10292 (redisplay_window): Use it.
10293
10294 2003-03-26 Richard M. Stallman <rms@gnu.org>
10295
10296 * xdisp.c (update_tool_bar): Recompute tool bar if
10297 update_mode_lines is set. Set w->update_mode_line
10298 only if the tool bar contents actually change.
10299 (update_menu_bar): Undo previous change.
10300
10301 2003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10302
10303 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
10304 (xg_frame_set_char_size): Calculate scroll bar width before frame
10305 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
10306 (xg_separator_p): Check for all documented separator types.
10307 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
10308 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
10309
10310 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
10311 so tool bar gets updated.
10312
10313 2003-03-26 Stefan Monnier <monnier@cs.yale.edu>
10314
10315 * data.c (store_symval_forwarding): Re-instate part of the code
10316 that was deleted with too much enthusiasm.
10317
10318 2003-03-25 Stefan Monnier <monnier@cs.yale.edu>
10319
10320 * data.c (store_symval_forwarding): Delete special read-only
10321 hack for type == -1, since we now use ->constant instead.
10322 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
10323
10324 * buffer.c (overlays_in): Declare static.
10325 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
10326 `constant' field rather than the variable's `type' field.
10327
10328 2003-03-24 Andrew Choi <akochoi@shaw.ca>
10329
10330 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
10331
10332 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
10333
10334 * fns.c [MAC_OSX]: Do not redefine vector.
10335
10336 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
10337
10338 * macgui.h: Remove definition of No_Cursor.
10339
10340 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
10341
10342 * xdisp.c: Define No_Cursor.
10343 (x_write_glyphs, notice_overwritten_cursor)
10344 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
10345 (note_mouse_highlight): Remove Mac-specific code.
10346 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
10347
10348 2003-03-24 John Paul Wallington <jpw@gnu.org>
10349
10350 * xdisp.c (redisplay_window): If mini window's buffer is not
10351 empty, then redisplay it like other windows.
10352
10353 2003-03-23 Kim F. Storm <storm@cua.dk>
10354
10355 * w32term.c (w32_draw_window_cursor): Fix last change.
10356
10357 2003-03-23 Kenichi Handa <handa@m17n.org>
10358
10359 * alloc.c (make_string_from_bytes, make_specified_string):
10360 Add `const' for the arg CONTENTS.
10361
10362 * lisp.h (make_string_from_bytes, make_specified_string):
10363 Prototypes adjusted.
10364
10365 2003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10366
10367 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
10368
10369 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
10370 (XG_SB_RANGE): New define.
10371
10372 * gtkutil.c (xg_fixed_handle_expose): New function.
10373 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
10374 expose events.
10375 (xg_update_scrollbar_pos): Take two more arguments, left and width
10376 of scroll bar including borders.
10377 Clear left and right part outside scroll bar separately as some
10378 themes have bars that are not an even number of pixels.
10379 Don't set reallocate_redraws, don't call
10380 gdk_window_process_all_updates.
10381 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
10382 so no need to change it. Calculate size and value with XG_SB_RANGE.
10383
10384 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
10385 Pass left and width of scroll bar including borders to
10386 xg_update_scrollbar_pos.
10387
10388 2003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
10389
10390 * Makefile.in: Make sure space precedes end-of-line backslashes.
10391
10392 2003-03-22 Kim F. Storm <storm@cua.dk>
10393
10394 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
10395 Add generic versions here. Remove system specific versions
10396 defined elsewhere.
10397
10398 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
10399 Add prototypes.
10400
10401 * xterm.h (STORE_NATIVE_RECT): New macro.
10402
10403 2003-03-21 Kim F. Storm <storm@cua.dk>
10404
10405 * xdisp.c (get_glyph_string_clip_rect):
10406 Use FRAME_INTERNAL_BORDER_WIDTH.
10407
10408 * dispextern.h (struct redisplay_interface): Add active_p
10409 argument to draw_window_cursor member. All uses changed.
10410
10411 2003-03-21 Kim F. Storm <storm@cua.dk>
10412
10413 The following changes consolidate code related to writing and
10414 inserting glyphs, exposing frame, the tool bar, the mouse face,
10415 the output cursor, and help echo from xterm.c, w32term.c and
10416 macterm.c into xdisp.c. It also generalizes the use of the
10417 window_part enum instead of using numeric values throughout.
10418
10419 * xdisp.c: Consolidate gui-independent code here.
10420 Include keymap.h.
10421 (Qhelp_echo): Import.
10422 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
10423 (help_echo_string, help_echo_window, help_echo_object)
10424 (previous_help_echo_string, help_echo_pos): Declare here.
10425 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
10426 (estimate_mode_line_height): Define here. Handle windowing
10427 systems directly (without using estimate_mode_line_height_hook).
10428 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
10429 (update_window_cursor, update_cursor_in_window_tree)
10430 (fast_find_position, fast_find_string_pos)
10431 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
10432 (expose_area, expose_line, expose_overlaps, expose_window)
10433 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
10434 declared static as they are only used locally in xdisp.c.
10435 (draw_glyphs): Rename from x_draw_glyphs and make static.
10436 (tool_bar_item_info, notice_overwritten_cursor): Make static.
10437 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
10438 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
10439 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
10440 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
10441 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
10442 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
10443 (note_mouse_highlight, x_clear_window_mouse_face)
10444 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
10445 (x_intersect_rectangles): New generic functions for use by xdisp.c
10446 and GUI front-ends.
10447 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
10448 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
10449
10450 * dispextern.h (Display_Info): Generic typedef for *_display_info.
10451 (NativeRectangle): Generic typedef for rectangle type.
10452 (enum window_part): Move here from window.c.
10453 (struct redisplay_interface): New members flush_display_optional,
10454 define_frame_cursor, clear_frame_area, draw_window_cursor,
10455 draw_vertical_window_border, shift_glyphs_for_insert.
10456 Rename member clear_mouse_face to clear_window_mouse_face.
10457 (estimate_mode_line_height_hook): Remove hook.
10458 (auto_raise_tool_bar_buttons_p): Don't declare extern.
10459 (tool_bar_item_info): Remove prototype.
10460 (help_echo_string, help_echo_window, help_echo_object)
10461 (previous_help_echo_string, help_echo_pos)
10462 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
10463 (x_stretch_cursor_p, output_cursor): Declare extern.
10464 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
10465 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
10466 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
10467 (display_and_set_cursor, set_output_cursor, x_cursor_to)
10468 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
10469 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
10470 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
10471 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
10472 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
10473 Add prototypes.
10474 (mode_line_string, marginal_area_string): Fix prototypes.
10475
10476 * window.c (enum window_part): Move to dispextern.h.
10477 (coordinates_in_window): Use enum window_part member names
10478 instead of numbers to describe return value.
10479 (struct check_window_data): Change part member to window_part.
10480 (check_window_containing): Return window_part unaltered.
10481 (window_from_coordinates): Change part arg from int to enum
10482 window_part. Allow part arg to be null. All users changed.
10483
10484 * window.h (window_from_coordinates): Fix prototype.
10485
10486 * term.c (estimate_mode_line_height): Move to xdisp.c.
10487
10488 * keyboard.c (make_lispy_event): Use enum window_part.
10489
10490 * dispnew.c (mode_line_string, marginal_area_string): Use enum
10491 window_part instead of int in arg list. Users changed.
10492
10493 * xterm.h (No_Cursor): Declare as None for X.
10494 (struct mac_output): Replace member cross_cursor by hand_cursor.
10495
10496 * xterm.c: Remove consolidated defines and code.
10497 (BETWEEN): Remove unused macro.
10498 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
10499 (x_define_frame_cursor, x_clear_frame_area)
10500 (x_draw_window_cursor): New X-specific functions for RIF.
10501 (x_redisplay_interface): Add new members.
10502
10503 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
10504
10505 * w32term.h (struct w32_output): Remove cross_cursor member.
10506
10507 * w32term.c: Remove consolidated defines and code.
10508 (BETWEEN): Remove unused macro.
10509 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
10510 (w32_define_frame_cursor, w32_clear_frame_area)
10511 (w32_draw_window_cursor): New W32-specific functions for RIF.
10512 (w32_redisplay_interface): Add new members.
10513
10514 * w32gui.h (No_Cursor): Define as 0 for W32.
10515 (XRectangle): Add X compatible rectangle type.
10516 (NativeRectangle): Declare as RECT for W32.
10517 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
10518
10519 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
10520
10521 * w32console.c: Remove consolidated defines and code.
10522
10523 * msdos.h (Display_Info): Add generic typedef.
10524
10525 * msdos.c: Remove consolidated defines and code.
10526 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
10527
10528 * macterm.h (struct mac_output): Replace member cross_cursor by
10529 hand_cursor.
10530 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
10531
10532 * macterm.c: Remove consolidated defines and code.
10533 (BETWEEN): Remove unused macro.
10534 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
10535 (mac_define_frame_cursor, mac_clear_frame_area)
10536 (mac_draw_window_cursor): New Mac-specific functions for RIF.
10537 (x_redisplay_interface): Add new members.
10538
10539 * macgui.h (No_Cursor): Define as 0 for Mac.
10540 (XRectangle): Add X compatible rectangle type.
10541 (NativeRectangle): Declare as Rect for Mac.
10542 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
10543
10544 * macfns.c (x_set_mouse_color): Setup hand_cursor.
10545 (x_set_cursor_color): Use x_display_and_set_cursor.
10546
10547 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
10548 included from it. Add dependency on keymap.h.
10549
10550 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
10551
10552 2003-03-21 Kenichi Handa <handa@m17n.org>
10553
10554 * fileio.c (Fexpand_file_name): Fix previous change.
10555
10556 2003-03-19 Kenichi Handa <handa@m17n.org>
10557
10558 * fileio.c (Ffile_name_directory): Reconstruct file name by
10559 make_specified_string.
10560 (Ffile_name_nondirectory, Ffile_name_as_directory)
10561 (Fdirectory_file_name, Fexpand_file_name)
10562 (Fsubstitute_in_file_name): Likewise.
10563 (Fread_file_name): Compare decoded homedir with DIR and
10564 DEFAULT_FILENAME.
10565
10566 * alloc.c (make_specified_string): If NCHARS is negative, count
10567 the number of characters.
10568
10569 2003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10570
10571 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
10572 all widgets.
10573
10574 * gtkutil.h: Removed xg_ignore_next_thumb.
10575
10576 2003-03-18 Kenichi Handa <handa@m17n.org>
10577
10578 * coding.c (Vchar_coding_system_table): Remove this variable.
10579 (Vcoding_system_safe_chars): New variable.
10580 (intersection): Remove this function.
10581 (find_safe_codings): Don't use Vchar_coding_system_table, but try
10582 all codings in SAFE_CODINGS.
10583 (Ffind_coding_systems_region_internal): Adjust for the change of
10584 find_safe_codings. Get generic coding systems from
10585 Vcoding_system_safe_chars.
10586 (Fdefine_coding_system_internal): New function.
10587 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
10588 Initialize and staticpro Vcoding_system_safe_chars.
10589
10590 2003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10591
10592 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
10593 equal old values before updating.
10594
10595 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
10596
10597 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
10598
10599 2003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10600
10601 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
10602 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
10603 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
10604 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
10605 (xg_create_scroll_bar): Pass bar to button event callback.
10606 (xg_find_top_left_in_fixed): New function.
10607 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
10608 whole scroll bar area. Get old position with
10609 xg_find_top_left_in_fixed, calculate and only clear needed areas.
10610 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
10611 dragging is in progress. Calculate whole as for Motif.
10612 Remove code that saved last values. Call gtk_range functions to
10613 set scroll bar sizes.
10614
10615 * gtkutil.h: Removed xg_ignore_next_thumb.
10616
10617 2003-03-17 Juanma Barranquero <lektu@terra.es>
10618
10619 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
10620 and files included from it.
10621
10622 2003-03-18 Stefan Monnier <monnier@cs.yale.edu>
10623
10624 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
10625 multiple occurrences of the same keymap under different prefixes.
10626 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
10627
10628 2003-03-16 Jason Rumney <jasonr@gnu.org>
10629
10630 * w32gui.h: Use HDC for Display.
10631
10632 * w32term.c (w32_encode_char): Prevent double-byte chars from
10633 crashing Emacs.
10634
10635 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
10636 as binary.
10637
10638 2003-03-16 Juanma Barranquero <lektu@terra.es>
10639
10640 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
10641
10642 2003-03-16 Kim F. Storm <storm@cua.dk>
10643
10644 The following changes consolidate some of the gui-independent
10645 parts of the processing and drawing of "glyph strings" from
10646 xterm.c, w32term.c, and macterm.c into xdisp.c.
10647
10648 * dispextern.h (struct glyph): Reduce face_id member from 22 to
10649 21 bits (this reduces number of faces from 4M to 2M).
10650 Replace W32 specific w32_font_type member (2 bits) by generic
10651 font_type member (3 bits) for portability.
10652 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
10653 (enum draw_glyphs_face): Define here.
10654 (struct glyph_string): Define here. Merge W32 and X versions.
10655 (struct redisplay_interface): New members per_char_metric,
10656 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
10657 (VCENTER_BASELINE_OFFSET): Define here.
10658 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
10659 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
10660
10661 * xdisp.c: Consolidate gui-independent "glyph string" code here.
10662 (dump_glyph_string): Moved here.
10663 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
10664 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
10665 (fill_composite_glyph_string, fill_glyph_string)
10666 (fill_image_glyph_string, fill_stretch_glyph_string)
10667 (left_overwritten, left_overwriting, right_overwritten)
10668 (right_overwriting, get_char_face_and_encoding)
10669 (set_glyph_string_background_width, compute_overhangs_and_x)
10670 (append_glyph, append_composite_glyph, produce_image_glyph)
10671 (take_vertical_position_into_account, append_stretch_glyph)
10672 (produce_stretch_glyph): New generic functions (based on X version).
10673 Call platform specific functions through rif.
10674 (INIT_GLYPH_STRING): New macro, hides W32 details.
10675 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
10676 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
10677 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
10678 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
10679 (notice_overwritten_cursor):
10680 Generic functions exported to platform modules. Users changed.
10681
10682 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
10683 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
10684 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
10685 New macros for consolidated code.
10686
10687 * xterm.c: Remove consolidated defines and code.
10688 (x_per_char_metric, x_encode_char)
10689 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
10690 (x_redisplay_interface): Add new members.
10691
10692 * w32gui.h (Display): Add dummy typedef for consolidation.
10693 (XChar2b): Define alias for wchar_t for consolidation.
10694 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
10695
10696 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
10697 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
10698 New macros for consolidation.
10699
10700 * w32term.c: Remove consolidated defines and code.
10701 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
10702 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
10703 (w32_per_char_metric): Change font_type arg to int for RIF.
10704 (w32_encode_char): Return int according to RIF requirements.
10705 (w32_compute_glyph_string_overhangs): Adapt to RIF.
10706 (w32_get_glyph_overhangs): New function for RIF. Uses generic
10707 x_get_glyph_overhangs.
10708 (w32_redisplay_interface): Add new members.
10709
10710 * macgui.h (XChar2b): Move typedef here for consolidation.
10711 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
10712
10713 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
10714 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
10715 consolidation.
10716
10717 * macterm.c: Remove consolidated defines and code.
10718 (mac_per_char_metric): New function for RIF.
10719 (mac_encode_char): Adapt to new RIF requirements.
10720 (mac_compute_glyph_string_overhangs): Adapt for RIF.
10721 (x_redisplay_interface): Add new members.
10722
10723 2003-03-15 Stefan Monnier <monnier@cs.yale.edu>
10724
10725 * keymap.c (Vmenu_events): New var.
10726 (syms_of_keymap): Initialize it.
10727 (where_is_internal): Check more carefully what is a menu event.
10728
10729 2003-03-14 Richard M. Stallman <rms@gnu.org>
10730
10731 * lread.c (read1): After #!, exit loop on eof.
10732
10733 2003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10734
10735 * gtkutil.h: Add declaration for xg_frame_cleared.
10736
10737 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
10738
10739 * gtkutil.c (struct xg_last_sb_pos): New structure.
10740 (handle_fixed_child): New function.
10741 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
10742 and force a redraw on them.
10743 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
10744 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
10745 so we can avoid unneeded redraws.
10746 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
10747 and force a redraw on the scroll bar.
10748 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
10749 if xg_last_sb_pos shows the positions are up to date.
10750 (xg_frame_cleared): New function.
10751
10752 2003-03-13 Kenichi Handa <handa@m17n.org>
10753
10754 * coding.c (Fdetect_coding_region): Fix docstring.
10755 (Fdetect_coding_string): Fix docstring.
10756
10757 2003-03-13 Andreas Schwab <schwab@suse.de>
10758
10759 * gtkutil.c: Add prototype for create_menus.
10760
10761 * data.c (long_to_cons): Fix type of top.
10762
10763 * xselect.c (selection_data_to_lisp_data): Use int instead of
10764 long for an integer of size 4.
10765
10766 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
10767 (xg_tool_bar_help_callback): Likewise.
10768
10769 2003-03-12 Andreas Schwab <schwab@suse.de>
10770
10771 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
10772
10773 2003-03-12 Kim F. Storm <storm@cua.dk>
10774
10775 The following changes consolidate the fringe handling from
10776 xterm.c, w32term.c, and macterm.c into xdisp.c.
10777
10778 * xdisp.c: Consolidate fringe handling code here.
10779 (left_bits, right_bits, continued_bits, continuation_bits)
10780 (ov_bits, zv_bits): Define fringe bitmaps.
10781 (fringe_bitmaps): New array holding fringe bitmaps.
10782 (draw_fringe_bitmap): Draw a specific bitmap; call display
10783 specific drawing routine via rif->draw_fringe_bitmap.
10784 (draw_row_fringe_bitmaps): Generic replacement for
10785 x_draw_row_fringe_bitmaps; all callers changed.
10786 (compute_fringe_widths): Generic replacement for
10787 x_compute_fringe_widths; all callers changed.
10788
10789 * dispextern.h (enum fringe_bitmap_type): Define here.
10790 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
10791 (fringe_bitmaps): Declare extern.
10792 (struct redisplay_interface): New member draw_fringe_bitmap.
10793 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
10794
10795 * xterm.c: Remove generic fringe code.
10796 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
10797 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
10798
10799 * w32term.c: Remove generic fringe code.
10800 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
10801 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
10802
10803 * macterm.c: Remove generic fringe code.
10804 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
10805 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
10806
10807 2003-03-11 Stefan Monnier <monnier@cs.yale.edu>
10808
10809 * print.c (Fprin1_to_string): Return unibyte string if possible.
10810
10811 2003-03-09 David Kastrup <dak@gnu.org>
10812
10813 * process.c (read_process_output): We have allocated enough space
10814 for readmax and carryover, so actually use the alloted space.
10815
10816 2003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10817
10818 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
10819 toolkit scrollbar click.
10820
10821 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
10822 for USE_GTK.
10823 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
10824 also.
10825 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
10826 scrollbar and control is pressed, call x_scroll_bar_handle_click.
10827
10828 * gtkutil.h (xg_get_scroll_id_for_window): Declare.
10829
10830 * gtkutil.c (xg_get_scroll_id_for_window): New function.
10831 (xg_tool_bar_item_expose_callback): New function.
10832 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
10833 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
10834 on the tool bar widget.
10835 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
10836 to expose on the tool bar item widgets.
10837
10838 2003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10839
10840 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
10841 struct image* when deciding to update (struct image* may have been
10842 deleted from the image cache).
10843
10844 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
10845 the event isn't for a frame (i.e. for dialogs).
10846
10847 2003-03-07 Kenichi Handa <handa@m17n.org>
10848
10849 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
10850 composition components reaches the limit, terminate composing.
10851 (COMPOSITION_OK): New macro.
10852 (detect_coding_iso2022): Use it if an escape sequence for
10853 composition is found.
10854 (coding_restore_composition): Adjust the number of composition
10855 components if it is not sane.
10856
10857 2003-03-06 Juanma Barranquero <lektu@terra.es>
10858
10859 * w32term.h (struct w32_display_info): Add xrdb member to support
10860 passing resources via -xrm on Windows.
10861
10862 * w32term.c (w32_make_rdb): New function.
10863 (w32_term_init): Use it to initialize xrdb member of w32_display_info
10864 struct. Delete leftover code.
10865
10866 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
10867 for resources passed on the command line.
10868
10869 * w32reg.c (w32_get_rdb_resource): New function.
10870 (x_get_string_resource): Use it, so resources passed with -xrm
10871 supercede the ones in the registry.
10872
10873 2003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10874
10875 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
10876 instead of x_top_window_to_frame.
10877
10878 2003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10879
10880 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
10881 when restarting Emacs.
10882
10883 2003-03-03 Richard M. Stallman <rms@gnu.org>
10884
10885 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
10886 to run kill-buffer-query-functions.
10887 (Qkill_buffer_query_functions): New var.
10888 (syms_of_buffer): Init and staticpro it.
10889
10890 2003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10891
10892 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
10893
10894 2003-02-25 Kim F. Storm <storm@cua.dk>
10895
10896 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
10897 If centering point failed to make whole line visible and vscroll
10898 is non-zero, disable vscroll and try centering point again.
10899
10900 * lread.c (read1): Accept `single space' syntax like (? x).
10901
10902 2003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10903
10904 * keyboard.c (cancel_hourglass_unwind): Surround with
10905 #ifdef HAVE_X_WINDOWS
10906
10907 2003-02-25 Kenichi Handa <handa@m17n.org>
10908
10909 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
10910 process only when "subprocesses" is defined.
10911
10912 2003-02-24 Stefan Monnier <monnier@cs.yale.edu>
10913
10914 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
10915
10916 2003-02-24 Juanma Barranquero <lektu@terra.es>
10917
10918 * callint.c (fix_command): Declare as static void and move before
10919 Fcall_interactively.
10920
10921 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
10922 (syms_of_xdisp): Don't initialize Qwhen.
10923
10924 2003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10925
10926 * keyboard.c (cancel_hourglass_unwind): New function.
10927 (command_loop_1): Cancel hourglass with unwind-protect.
10928
10929 2003-02-23 Richard M. Stallman <rms@gnu.org>
10930
10931 * callint.c (fix_command): New subroutine, from Fcall_interactively.
10932 Detect (when ... (region-beginning)) etc.
10933 (Fcall_interactively): Call fix_command.
10934 (Qif, Qwhen): New variables.
10935 (syms_of_callint): Init and staticpro them.
10936
10937 * regex.c (print_partial_compiled_pattern): Output to stderr.
10938
10939 2003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
10940
10941 * dired.c (directory_files_internal): Don't expand directory.
10942 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
10943 instead. From Lars Hansen <larsh@math.ku.dk>.
10944
10945 2003-02-22 Stefan Monnier <monnier@cs.yale.edu>
10946
10947 * fns.c (string_to_multibyte): Remove unused var i.
10948 (Flanginfo): Fix int/Lisp_Object mixup.
10949 (void_call2): New fun.
10950 (Fmap_char_table): Use it in place of call2.
10951
10952 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
10953
10954 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
10955
10956 * keymap.c (copy_keymap_1): Make it static.
10957
10958 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
10959
10960 2003-02-22 David Ponce <david@dponce.com>
10961
10962 * lread.c (Fload): Don't check STRING_MULTIBYTE.
10963
10964 2003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10965
10966 * process.h: Removed subtty field from struct Lisp_Process.
10967
10968 * process.c (create_process): Remove setting of subtty.
10969 (emacs_get_tty_pgrp): New function.
10970 (Fprocess_running_child_p, process_send_signal):
10971 Call emacs_get_tty_pgrp instead of ioctl.
10972 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
10973
10974 2003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
10975
10976 * keymap.c (Fdefine_key): Doc fix.
10977
10978 2003-02-21 Juanma Barranquero <lektu@terra.es>
10979
10980 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
10981
10982 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
10983 POLLING_PROBLEM_IN_SELECT.
10984
10985 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
10986 Delete #undef of POLLING_PROBLEM_IN_SELECT.
10987
10988 * s/hpux10-20.h: New file.
10989
10990 * process.c (wait_reading_process_input):
10991 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
10992
10993 2003-02-20 Kenichi Handa <handa@m17n.org>
10994
10995 * fontset.c (check_fontset_name): If NAME is nil, return the
10996 default fontset.
10997 (override_font_info): New function.
10998 (Fset_fontset_font): Document that NAME nil means the default fontset.
10999 (Ffontset_info): If FONTSET is not the default fontset, merge
11000 FONTSET onto the copy of the default fontset, and work on that
11001 copy. Document that NAME nil means the default fontset.
11002 (Ffontset_font): Document that NAME nil means the default fontset.
11003
11004 * process.c (setup_process_coding_systems): If the process's
11005 in/out descriptor is -1, do nothing.
11006
11007 2003-02-19 Andreas Schwab <schwab@suse.de>
11008
11009 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
11010 Add prototypes.
11011
11012 2003-02-19 Kenichi Handa <handa@m17n.org>
11013
11014 * xfaces.c (try_alternative_families): Try all scalable fonts if
11015 Vscalable_fonts_allowed is not Qt.
11016
11017 2003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11018
11019 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
11020
11021 2003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11022
11023 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
11024 names.
11025
11026 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
11027 (sorted_font_list): Move allocation of struct font_name to
11028 x_face_list_fonts.
11029 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
11030 (Fx_list_fonts): Set maxnames to -1 to get all font names.
11031
11032 2003-02-18 Kim F. Storm <storm@cua.dk>
11033
11034 * lread.c (read1): Fix last change.
11035 "`" is not always special. Allow "?" after a character constant.
11036
11037 2003-02-18 Andrew Choi <akochoi@shaw.ca>
11038
11039 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
11040
11041 2003-02-18 Andreas Schwab <schwab@suse.de>
11042
11043 * window.c (window_scroll_pixel_based): Move outside a
11044 multi-glyph character before setting new window start.
11045
11046 * xdisp.c (in_display_vector_p): New function.
11047 * dispextern.h (in_display_vector_p): Declare.
11048
11049 2003-02-18 Kim F. Storm <storm@cua.dk>
11050
11051 * lread.c (read1): Fix and relax read syntax.
11052 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
11053 Only recognize "," after dotted-pair dot if inside backquote.
11054 Never include "`" or "," (inside backquote) in a symbol.
11055 Allow dotted-pair dot after a character constant.
11056 Allow "`" and "," (inside backquote) after a character constant.
11057
11058 2003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11059
11060 * gtkutil.c (xg_tool_bar_expose_callback): New function.
11061 (xg_create_tool_bar): Force style of tool bar to be horizontal with
11062 icons. Set name of tool bar to emacs-toolbar.
11063 (update_frame_tool_bar): Connect expose event to
11064 xg_tool_bar_expose_callback.
11065
11066 2003-02-17 Richard M. Stallman <rms@gnu.org>
11067
11068 * keyboard.c (this_command_key_count_reset): New variable.
11069 Initiatize to 0 where this_command_key_count is set.
11070 (read_char): Save and restore this_command_key_count_reset
11071 around input method code.
11072 (read_char): If this_command_key_count_reset, echo reread commands.
11073 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
11074
11075 2003-02-17 Kenichi Handa <handa@m17n.org>
11076
11077 * fns.c (string_to_multibyte): Always return a multibyte string.
11078
11079 2003-02-16 Jason Rumney <jasonr@gnu.org>
11080
11081 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
11082 Negative max_fonts parameter means list all.
11083
11084 2003-02-14 Dave Love <fx@gnu.org>
11085
11086 * fns.c (Flanginfo): Doc fix.
11087
11088 2003-02-13 Kim F. Storm <storm@cua.dk>
11089
11090 * lread.c (read_escape): Interpret \s as a SPACE character, except
11091 for \s-X in a character constant which still is the super modifier.
11092 (read1): Signal an `invalid read syntax' error if a character
11093 constant is immediately followed by a digit or symbol character.
11094
11095 * search.c (Fmatch_data): Doc fix. Explicitly state that
11096 match-data is undefined if last search failed.
11097
11098 * keymap.c (Fcommand_remapping): Rename from Fremap_command.
11099 All uses changed.
11100
11101 2003-02-12 Juanma Barranquero <lektu@terra.es>
11102
11103 * eval.c (Fdefmacro): Fix typo.
11104
11105 2003-02-12 Kim F. Storm <storm@cua.dk>
11106
11107 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
11108 macro is a string, convert meta modifiers in string when copying
11109 the string into a vector.
11110
11111 2003-02-11 Kim F. Storm <storm@cua.dk>
11112
11113 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
11114
11115 2003-02-11 Kenichi Handa <handa@m17n.org>
11116
11117 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
11118
11119 2003-02-10 Kim F. Storm <storm@cua.dk>
11120
11121 * process.c: Doc fixes.
11122 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
11123
11124 2003-02-10 Kenichi Handa <handa@m17n.org>
11125
11126 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
11127
11128 * process.c (QCfilter_multibyte): New variable.
11129 (setup_process_coding_systems): New function.
11130 (Fset_process_buffer, Fset_process_filter):
11131 Call setup_process_coding_systems.
11132 (Fstart_process): Initialize the member `filter_multibyte' of
11133 struct Lisp_Process.
11134 (create_process): Call setup_process_coding_systems.
11135 (Fmake_network_process): New keyward `:filter-multibyte'.
11136 Initialize the member `filter_multibyte' of struct Lisp_Process.
11137 Call setup_process_coding_systems.
11138 (server_accept_connection): Call setup_process_coding_systems.
11139 (read_process_output): If the process has a filter, decide the
11140 multibyteness of a string to given to the filter by
11141 `filter_multibyte' member of the process. If the process doesn't
11142 have a filter and the result of conversion is unibyte, use
11143 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
11144 multibyte form.
11145 (Fset_process_coding_system): Call setup_process_coding_systems.
11146 (Fset_process_filter_multibyte): New function.
11147 (Fprocess_filter_multibyte_p): New function.
11148 (syms_of_process): Intern and staticpro QCfilter_multibyte.
11149 Defsubr Sset_process_filter_multibyte and
11150 Sprocess_filter_multibyte_p.
11151
11152 * process.h (struct Lisp_Process): New member filter_multibyte.
11153
11154 * lisp.h (setup_process_coding_systems): Add prototype.
11155
11156 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
11157 process, update coding systems for the process.
11158
11159 2003-02-09 Kenichi Handa <handa@m17n.org>
11160
11161 * fns.c (string_to_multibyte): New function.
11162 (Fstring_to_multibyte): New function.
11163 (syms_of_fns): Defsubr it.
11164
11165 2003-02-08 Andreas Schwab <schwab@suse.de>
11166
11167 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
11168 instead of the substitution.
11169
11170 2003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11171
11172 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
11173
11174 * xmenu.c (menu_position_func): Adjust menu popup position so that
11175 the menu is fully visible.
11176
11177 2003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11178
11179 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
11180 (x_make_frame_invisible, x_wm_set_icon_position):
11181 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
11182
11183 * xfns.c (x_set_name, x_set_title): Ditto.
11184
11185 2003-02-04 Richard M. Stallman <rms@gnu.org>
11186
11187 * keyboard.c (echo_now): Update before_command_echo_length.
11188 (Freset_this_command_lengths): Reset this_command_key_count etc.
11189 immediately rather than arranging to do it later.
11190 (before_command_key_count_1, before_command_echo_length_1)
11191 (before_command_restore_flag): Vars deleted.
11192 (add_command_key): Don't handle before_command_restore_flag.
11193 (read_char, record_menu_key): Don't update before_command_key_count or
11194 before_command_echo_length.
11195 (read_char): Don't handle before_command_restore_flag.
11196
11197 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
11198 in direct-output clauses if it wouldn't be called in the ordinary case.
11199
11200 2003-02-04 Kim F. Storm <storm@cua.dk>
11201
11202 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
11203
11204 2003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11205
11206 * gtkutil.c (remove_from_container): Copying list is not needed.
11207 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
11208 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
11209 on list returned from gtk_container_get_children to avoid memory leak.
11210
11211 2003-02-01 Jason Rumney <jasonr@gnu.org>
11212
11213 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
11214 local malloc.
11215 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
11216 definitions in xpm.h.
11217 (init_xpm_functions): New function.
11218 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
11219 (init_external_image_libraries): Try to load libXpm.dll.
11220
11221 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
11222 timestamp.
11223
11224 2003-01-31 Dave Love <fx@gnu.org>
11225
11226 * syntax.c (Fskip_chars_forward)
11227 (open-paren-in-column-0-is-defun-start): Doc fix.
11228
11229 2003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
11230
11231 * fileio.c: Support // at start of name for Cygwin (just added proper
11232 preprocessor tests).
11233
11234 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
11235
11236 * Makefile.in: Use @EXEEXT@ for Cygwin.
11237
11238 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
11239
11240 * s/cygwin.h: Added for Cygwin port.
11241
11242 2003-01-31 Juanma Barranquero <lektu@terra.es>
11243
11244 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
11245 when including gif_lib.h.
11246 (init_gif_functions, init_tiff_functions): New functions.
11247 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
11248 Windows. Disable color table lookups. Call library functions
11249 through pointers determined at runtime.
11250 (init_external_image_libraries): Try to load libungif.dll and
11251 libtiff.dll.
11252
11253 2003-01-31 Kenichi Handa <handa@m17n.org>
11254
11255 * xdisp.c (SKIP_GLYPHS): New macro.
11256 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
11257
11258 2003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11259
11260 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
11261
11262 2003-01-30 Dave Love <fx@gnu.org>
11263
11264 * alloc.c (Vgc_elapsed, gcs_done): New variables.
11265 (Fgarbage_collect): Use them.
11266 (init_alloc, syms_of_alloc): Set them up.
11267
11268 2003-01-30 Juanma Barranquero <lektu@terra.es>
11269
11270 * w32fns.c (init_external_image_libraries): Add missing operator.
11271
11272 2003-01-29 Jason Rumney <jasonr@gnu.org>
11273
11274 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
11275 an alternative name for jpeg.dll.
11276
11277 2003-01-29 Kenichi Handa <handa@m17n.org>
11278
11279 * xdisp.c (set_cursor_from_row): Pay attention to string display
11280 properties.
11281
11282 2003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
11283
11284 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
11285 <escape>.
11286 (keycode_to_xkeysym_table): Reformat and add more comments.
11287 (XTread_socket): Drop special case for backspace.
11288
11289 2003-01-28 Andrew Choi <akochoi@shaw.ca>
11290
11291 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
11292 values in old-style RGB specs.
11293
11294 2003-01-27 Juanma Barranquero <lektu@terra.es>
11295
11296 * w32fns.c (init_external_image_libraries): Try alternate names for the
11297 jpeg dll.
11298
11299 2003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11300
11301 * gtkutil.c (create_dialog, xg_separator_p)
11302 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
11303 before calling strcmp or strlen.
11304
11305 2003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11306
11307 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
11308 and handle image load failure.
11309
11310 2003-01-26 Jason Rumney <jasonr@gnu.org>
11311
11312 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
11313 New functions.
11314 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
11315 Disable color table lookups. Call jpeg library functions
11316 through pointers determined at runtime.
11317 (init_external_image_libraries): Try to load jpeg.dll.
11318
11319 2003-01-25 Richard M. Stallman <rms@gnu.org>
11320
11321 * lisp.h: Declare format2 instead of format1.
11322
11323 * fileio.c (barf_or_query_if_file_exists):
11324 Call format2 instead of format1.
11325
11326 * editfns.c (format2): New function, replaces format1
11327 but takes exactly two Lisp Objects as format args.
11328
11329 * buffer.c (Fkill_buffer): Call format2 instead of format1.
11330
11331 2003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11332
11333 * xterm.h: Change to return value of x_dispatch_event to int.
11334
11335 * xterm.c (x_filter_event): New function.
11336 (event_handler_gdk, XTread_socket): Call x_filter_event.
11337 (x_dispatch_event): Change to return value of finish.
11338 (event_handler_gdk): Use return value from x_dispatch_event.
11339
11340 * xfns.c (x_window): Call create_frame_xic for GTK version to
11341 initialize input methods.
11342
11343 * gtkutil.h: Add (void) prototypes.
11344
11345 * gtkutil.c (create_menus): Remove code that puts the help menu to
11346 the right.
11347
11348 2003-01-25 Jason Rumney <jasonr@gnu.org>
11349
11350 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
11351 [HAVE_PNG]: Sync with xfns.c version.
11352 (png_load): Adjust colors for Windows. Use Windows
11353 bitmaps. Disable color table lookups.
11354 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
11355 (init_png_functions): New function.
11356 (png_read_from_memory, png_load): Call png library functions
11357 through pointers determined at runtime.
11358 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
11359 (init_external_image_libraries): New function.
11360 (init_xfns): Call it.
11361
11362 2003-01-24 Andreas Schwab <schwab@suse.de>
11363
11364 * minibuf.c (Fminibuffer_message): Verify type of parameter.
11365
11366 2003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11367
11368 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
11369 of static initializer.
11370
11371 2003-01-24 Dave Love <fx@gnu.org>
11372
11373 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
11374 architectures.
11375
11376 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
11377 Use __alignof__.
11378
11379 2003-01-24 Kenichi Handa <handa@m17n.org>
11380
11381 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
11382 It it is nonzero, don't pretend that an invisible area doesn't exist.
11383 (command_loop_1): Call adjust_point_for_property with proper
11384 second arg.
11385
11386 2003-01-22 Jason Rumney <jasonr@gnu.org>
11387
11388 Sync changes with xterm.c and xfns.c.
11389
11390 * w32term.c (x_draw_glyph_string_foreground)
11391 (x_draw_composite_glyph_string_foreground): Implement overstriking.
11392
11393 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
11394 phys_cursor's hpos is overwritten. This is still not completely
11395 correct, as it doesn't really make sense to use hpos at all to
11396 get the cursor glyph (as that is relative to the width of the
11397 characters on the line, which may have changed during the update).
11398
11399 * w32term.c (notice_overwritten_cursor): Handle the special case
11400 of the cursor being in the first blank non-text line at the
11401 end of a window.
11402
11403 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
11404 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
11405 Compute from the x position returned by x_draw_glyphs.
11406
11407 (x_display_and_set_cursor): Don't set phys_cursor_width here,
11408 except for NO_CURSOR and system caret, to make phys_cursor_width
11409 contain what its name suggests.
11410 (notice_overwritten_cursor): Consider the cursor image erased if
11411 the output area intersects the cursor image in y-direction.
11412
11413 * w32term.c (note_mode_line_or_margin_highlight): Rename from
11414 note_mode_line_highlight and extend.
11415
11416 * w32term.c (last_window): New variable.
11417 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
11418 (note_mouse_movement): Remove reimplemented code in #if 0.
11419
11420 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
11421 not update_mode_lines, and always set it to 1.
11422
11423 2003-01-21 Jason Rumney <jasonr@gnu.org>
11424
11425 * w32fns.c (IDC_HAND): Define it if system headers don't.
11426
11427 2003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
11428
11429 * w32term.h (struct w32_output): New member hand_cursor.
11430 (WM_EMACS_SETCURSOR): New message definition.
11431
11432 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
11433 function w32_define_cursor.
11434 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
11435 position, change member name output_data.x to output_data.w32 and
11436 add function w32_define_cursor.
11437 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
11438 and change member name output_data.x to output_data.w32.
11439 (w32_initialize_display_info):
11440 Setup dpyinfo->vertical_scroll_bar_cursor.
11441
11442 * w32fns.c (Vx_hand_shape): New variable.
11443 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
11444 WM_EMACS_SETCURSOR.
11445 (x-create-frame): Setup Cursor types.
11446
11447 2003-01-21 David Ponce <david@dponce.com>
11448
11449 * w32term.c (w32_encode_char): For DIM=1 charset, set
11450 ccl->reg[2] to -1 before calling ccl_driver. (Sync. with xterm.c
11451 x_encode_char change by Kenichi Handa <handa@m17n.org> on
11452 2002-09-30.)
11453 (w32_draw_relief_rect): Declare all args.
11454 (w32_define_cursor): New.
11455
11456 * w32fns.c (w32_load_cursor): New function.
11457 (w32_init_class): Use it.
11458 (x_put_x_image): Declare all args.
11459
11460 2003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk>
11461
11462 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
11463
11464 2003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11465
11466 * gtkutil.c: Must include stdio.h before termhooks.h
11467
11468 2003-01-21 Dave Love <fx@gnu.org>
11469
11470 * alloc.c (Fgc_status): Print zombie list.
11471 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
11472 Fix assignment of zombies.
11473 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
11474 Don't take car of non-cons.
11475
11476 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
11477
11478 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
11479
11480 2003-01-20 David Ponce <david@dponce.com>
11481
11482 * w32menu.c (digest_single_submenu): Declare all args.
11483
11484 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
11485 changes in xmenu.c:
11486
11487 (parse_single_submenu): Use individual keymap's prompt
11488 string as pane name, if there is one.
11489 (set_frame_menubar): Save menu_items_n_panes from each call to
11490 parse_single_submenu and use it when calling digest_single_submenu.
11491
11492 2003-01-20 Steven Tamm <steventamm@mac.com>
11493
11494 * macterm.c (XTread_socket): Check for valid, visible window
11495 before sending a scroll-wheel event.
11496
11497 2003-01-20 Richard M. Stallman <rms@gnu.org>
11498
11499 * xdisp.c (redisplay_window): If mini window's buffer is not
11500 a minibuffer, then redisplay it like other windows.
11501
11502 2003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11503
11504 * gtkutil.c (xg_create_frame_widgets): Check if there is an
11505 external tool bar before setting tool bar height.
11506
11507 2003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11508
11509 * xterm.c (handle_one_xevent): Surround popup_activated
11510 with #ifdef:s for non-toolkit version.
11511
11512 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
11513 (gtkutil.o): New file.
11514 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
11515 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
11516
11517 * gtkutil.c: New file for GTK version.
11518
11519 * gtkutil.h: New file for GTK version.
11520
11521 * xterm.h: Add xt_or_gtk_widget.
11522 Include gtk files for USE_GTK.
11523 (struct x_output): Add toolbar_height.
11524 (struct x_output): Add GTK widgets and Gdk size_hints.
11525 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
11526 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
11527 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
11528
11529 * xterm.c: Include gtkutil.h for USE_GTK.
11530 (free_frame_menubar): Declare extern void for USE_GTK.
11531 (note_mouse_highlight): Check popup_activated for USE_GTK.
11532 (xt_action_hook): Don't compile if USE_GTK.
11533 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
11534 (xg_scroll_callback): New function.
11535 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
11536 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
11537 for USE_GTK.
11538 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
11539 xg_show_scroll_bar for USE_GTK.
11540 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
11541 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
11542 (event_handler_gdk): New function for USE_GTK.
11543 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
11544 (handle_one_xevent): Make sure widget is mapped before
11545 calling x_real_positions for USE_GTK.
11546 (XTread_socket): Add GTK event loop for USE_GTK.
11547 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
11548 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
11549 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
11550 (x_iconify_frame): Add code for USE_GTK.
11551 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
11552 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
11553 is in gtkutil.c.
11554 (x_term_init): Add initialization for GTK.
11555 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
11556
11557 * xmenu.c: Include gtkutil.h for USE_GTK.
11558 (Fx_popup_menu): Use current position if x and y is NIL.
11559 (single_menu_item, single_menu_item, Fx_popup_dialog):
11560 Check for USE_GTK.
11561 (popup_widget_loop): New function for USE_GTK.
11562 (x_activate_menubar): Add code for USE_GTK.
11563 (popup_activate_callback, popup_deactivate_callback)
11564 (menu_highlight_callback, menubar_selection_callback):
11565 Add USE_GTK versions.
11566 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
11567 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
11568 (free_frame_menubar): Only compile if not USE_GTK. GTK version
11569 is in gtkutil.c.
11570 (popup_selection_callback): New version for USE_GTK.
11571 (create_and_show_popup_menu): New fuction, one USE_GTK version and
11572 one USE_X_TOOLKIT version.
11573 (xmenu_show): Call create_and_show_popup_menu.
11574 (dialog_selection_callback): New version for USE_GTK.
11575 (create_and_show_dialog): New fuction, one USE_GTK version and
11576 one USE_X_TOOLKIT version.
11577 (xdialog_show): Call create_and_show_dialog.
11578
11579 * xfns.c: Include gtkutil for USE_GTK.
11580 (x_window_to_frame, x_any_window_to_frame)
11581 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
11582 (x_top_window_to_frame): Add code for USE_GTK.
11583 (x_set_background_color): Call xg_set_background_color for GTK.
11584 (x_set_menu_bar_lines): Check for USE_GTK.
11585 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
11586 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
11587 (x_window): Call xg_create_frame_widgets for USE_GTK.
11588 (Fx_create_frame): Check for USE_GTK
11589 (Fx_file_dialog): New implementation for USE_GTK.
11590
11591 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
11592 (update_menu_bar): Add check for USE_GTK.
11593 (update_tool_bar): Add check for USE_GTK and external tool bar.
11594 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
11595 (redisplay_internal): Add check for USE_GTK and popup_activated.
11596 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
11597 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
11598 (display_menu_bar): Add check for USE_GTK
11599
11600 * lisp.h (Vx_resource_name): Declare extern.
11601
11602 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
11603 for USE_GTK.
11604 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
11605
11606 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
11607 (FRAME_EXTERNAL_TOOL_BAR): New macro.
11608 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
11609
11610 * fileio.c (Fread_file_name): Add check for USE_GTK.
11611
11612 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
11613 Add check for USE_GTK.
11614
11615 * config.in: Added HAVE_GTK
11616
11617 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
11618
11619 2003-01-18 Stefan Monnier <monnier@cs.yale.edu>
11620
11621 * charset.h (Funibyte_char_to_multibyte): Export.
11622
11623 2003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11624
11625 * xmenu.c (mouse_position_for_popup): New function.
11626 (Fx_popup_menu): Call mouse_position_for_popup for X and
11627 mouse_position_hook for others.
11628
11629 2003-01-17 Kim F. Storm <storm@cua.dk>
11630
11631 * editfns.c (Finsert): Mention `string-make-multibyte' and
11632 `string-as-multibyte' in doc string.
11633
11634 2003-01-17 Kenichi Handa <handa@m17n.org>
11635
11636 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
11637
11638 * editfns.c (Fformat): Convert an unibyte char argument that is
11639 formatted by "%c" to multibyte if the total result must be a
11640 multibyte string.
11641
11642 2003-01-16 Kim F. Storm <storm@cua.dk>
11643
11644 * process.c (set-process-filter): Document unibyte/multibyte-ness
11645 of string argument.
11646
11647 2003-01-16 Kenichi Handa <handa@m17n.org>
11648
11649 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
11650
11651 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
11652 (re_search_2): Likewise.
11653
11654 2003-01-15 Kenichi Handa <handa@m17n.org>
11655
11656 * xdisp.c (message_dolog): Fix bug of the case that *Message*
11657 buffer is unibyte.
11658
11659 2003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
11660
11661 * fns.c (Fsubstring): Clarify doc string.
11662
11663 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
11664 (Fprevious_char_property_change)
11665 (Fnext_single_char_property_change)
11666 (Fprevious_single_char_property_change, Fnext_property_change)
11667 (Fnext_single_property_change, Fprevious_property_change)
11668 (Fprevious_single_property_change, Fadd_text_properties)
11669 (Fput_text_property, Fset_text_properties)
11670 (Fremove_text_properties, Fremove_list_of_text_properties)
11671 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
11672
11673 2003-01-14 Kim F. Storm <storm@cua.dk>
11674
11675 * process.h (struct Lisp_Process): New member plist replaces old
11676 member private_vars. All uses changed.
11677
11678 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
11679 (QCplist): Rename from QCvars. Change all uses.
11680 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
11681 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
11682 (syms_of_process): Intern, staticpro, defsubr these.
11683 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
11684
11685 2003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
11686
11687 * m/delta.h: Remove (obsolete).
11688
11689 2003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
11690
11691 * fileio.c (Fdelete_directory, Fdelete_file): Document the
11692 behaviour in front of symlinks.
11693 (Fdelete_file): Raise an error on directories.
11694
11695 2003-01-13 Dave Love <fx@gnu.org>
11696
11697 * fns.c (Freverse): Use QUIT.
11698
11699 2003-01-13 Richard M. Stallman <rms@gnu.org>
11700
11701 * minibuf.c (minibuffer_completion_contents):
11702 Error if point is inside prompt.
11703
11704 * keyboard.c (command_loop_1): Don't redisplay directly
11705 if there's a post-command-hook.
11706
11707 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
11708 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
11709
11710 2003-01-12 Kim F. Storm <storm@cua.dk>
11711
11712 * process.h (struct Lisp_Process): New member private_vars.
11713
11714 * process.c (QCvars): New variable.
11715 (syms_of_process): Intern and staticpro it.
11716 (Fset_process_contact): Removed function.
11717 (Fprocess_variable, Fset_process_variable): New functions.
11718 (syms_of_process): Defsubr them.
11719 (Fstart_process): Initialize private_vars plist to nil.
11720 (Fmake_network_process): New arg :vars to setup the private
11721 variables for new network process.
11722 (server_accept_connection): Copy server's private variables to
11723 client process.
11724
11725 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
11726 crashes). Code rewritten and simplified. Now directly aligns the
11727 pointer and recalculates pure_bytes_used, rather than aligning the
11728 size and adjusting the pointer.
11729
11730 2003-01-11 Kim F. Storm <storm@cua.dk>
11731
11732 * process.c (Fset_process_contact): New function.
11733 (syms_of_process): defsubr it.
11734 (make-network-process): Update doc.
11735
11736 2003-01-10 Andreas Schwab <schwab@suse.de>
11737
11738 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
11739 Reported by Berthold Gunreben <b.gunreben@web.de>.
11740
11741 2003-01-10 Dave Love <fx@gnu.org>
11742
11743 * composite.c (syms_of_composite): Make composition_hash_table weak.
11744
11745 2003-01-09 Kim F. Storm <storm@cua.dk>
11746
11747 * process.c (Fmake_network_process): Convert new port number
11748 to host byte order for `:service t' case. From Mario Lang.
11749
11750 2003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11751
11752 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
11753 instead of XtAppProcessEvent.
11754
11755 * xterm.c (handle_one_xevent): New function.
11756 (x_dispatch_event): New function.
11757 (XTread_socket): Call handle_one_xevent.
11758
11759 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
11760
11761 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
11762 call XQueryPointer to get coordinates.
11763 (popup_get_selection): Do not set popup_activated_flag to zero,
11764 let popup_deactivate_callback do that. Needed for Motif.
11765 Call x_dispatch_event instead of XtDispatchEvent.
11766 (xmenu_show): Calculate root coordinate from frame top/left position.
11767
11768 2003-01-08 Kim F. Storm <storm@cua.dk>
11769
11770 * process.c (server_accept_connection): Fix recording of new
11771 connection's local address in :local property of contact info.
11772 (Fmake_network_process): Record local network address for new
11773 client processes in :local property of contact info.
11774 (format-network-address): Add arg OMIT-PORT. Change callers.
11775
11776 2003-01-07 Dave Love <fx@gnu.org>
11777
11778 * Makefile.in (fns.o): Depend on coding.h.
11779
11780 2003-01-07 Markus Rost <rost@math.ohio-state.edu>
11781
11782 * minibuf.c (Fread_variable): Doc fix.
11783
11784 * eval.c (Fuser_variable_p): Doc change. For custom variables,
11785 use the same test as for custom-variable-p.
11786
11787 2003-01-05 Richard M. Stallman <rms@gnu.org>
11788
11789 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
11790 Count LAST_LINE_MISFIT in scroll margin for end of window.
11791 Move label too_near_end before setting SCROLL_MARGIN_POS.
11792 Set LAST_LINE_MISFIT before jumping there.
11793
11794 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
11795 scroll_conservatively case. If scrolling that much doesn't change
11796 STARTP, move it down one line.
11797
11798 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
11799 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
11800
11801 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
11802 selected frame.
11803
11804 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
11805 (syms_of_keymap): Staticpro them.
11806 (Fapropos_internal): Initialize them and clear them out.
11807 Don't GCPRO them.
11808
11809 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
11810 Doc fixes.
11811
11812 * lisp.h: New misc type Lisp_Save_Value.
11813 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
11814 (XSAVE_VALUE): New macro.
11815 (struct Lisp_Save_Value): New data type.
11816 (union Lisp_Misc): Add u_save_value alternative.
11817 (make_save_value): Declare.
11818
11819 * alloc.c (make_save_value): New function.
11820
11821 * xterm.c (x_catch_errors): Save dpy using make_save_value.
11822 (x_catch_errors_unwind): Call XSync.
11823
11824 2003-01-01 Richard M. Stallman <rms@gnu.org>
11825
11826 * window.c (window_scroll_pixel_based): Partially undo last change.
11827
11828 * keyboard.c (command_loop_1): Call adjust_point_for_property
11829 in direct action cases for Qforward_char and Qbackward_char.
11830 Set already_adjusted so it won't be done twice.
11831
11832 2002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk>
11833
11834 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
11835 type definition of size_t.
11836
11837 2003-01-02 Steven Tamm <steventamm@mac.com>
11838
11839 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
11840 distinguish Carbon GUI builds from X11 builds on darwin.
11841
11842 2002-12-30 Steven Tamm <steventamm@mac.com>
11843
11844 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
11845 to default to t.
11846
11847 2002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
11848
11849 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
11850
11851 2002-12-28 Steven Tamm <steventamm@mac.com>
11852
11853 * Makefile.in (macosx-bundle): Fix Mac OS X/Carbon port to
11854 allow building in a different directory than source. Uses some
11855 GNU Make extensions, but there is no other make on Mac OS X.
11856
11857 2002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
11858
11859 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
11860 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
11861 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
11862 (Fstring_to_number): Mention the returned value in the doc strings.
11863
11864 2002-12-23 Richard M. Stallman <rms@gnu.org>
11865
11866 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
11867 <scroll-down-aggressively>: Doc fix.
11868
11869 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
11870 string as pane name, if there is one.
11871 (set_frame_menubar): Save menu_items_n_panes from each call to
11872 parse_single_submenu and use it when calling digest_single_submenu.
11873
11874 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
11875 Don't try to make last line fully visible if it is past end of window.
11876
11877 2002-12-22 Steven Tamm <steventamm@mac.com>
11878
11879 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
11880 (mac_menu_show): Add support for hierarchical popup menus.
11881 (add_menu_item): Remove indentation support.
11882 (fill_submenu, fill_menu): Create hierarchical menus
11883 instead of using indentation.
11884
11885 2002-12-22 Richard M. Stallman <rms@gnu.org>
11886
11887 * xdisp.c (try_cursor_movement): Don't call try_window here.
11888 (redisplay_window): Never redisplay minibuffer when inactive.
11889
11890 * window.c (select_window_1): Undo 9/21 change.
11891
11892 2002-12-22 Steven Tamm <steventamm@mac.com>
11893
11894 * macterm.c (XTread_socket): Call KeyTranslate for control and
11895 meta to deal correctly shifted non-alpha characters, like C-S-5
11896 being treated like C-%. Do not look for shift key to deal
11897 with masking off control-key with mac-reverse-ctrl-meta.
11898
11899 2002-12-21 Richard M. Stallman <rms@gnu.org>
11900
11901 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
11902 If it is non-nil, run timers. Use an unwind-protect to requeue
11903 the events that were read ahead.
11904 (popup_get_selection_unwind): New subroutine.
11905 (popup_get_selection_queue): File-scope variable now holds that queue.
11906 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
11907 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
11908 Use an unwind-protect to pop down the dialog box.
11909 (xdialog_show_unwind): New subroutine implements that.
11910
11911 * xdisp.c (row_containing_pos): Change exit test using last_y.
11912 (try_window_id): Abort if row_containing_pos returns null.
11913
11914 * lread.c (load_error_handler): New function.
11915 (Fload): Handle errors in Fsubstitute_in_file_name.
11916 Don't expect Fsignal to return.
11917
11918 * eval.c: Errors and throws work right with interrupt blocking.
11919 (struct catchtag): New elt interrupt_input_blocked.
11920 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
11921 (internal_catch, Fcondition_case, internal_condition_case)
11922 (internal_condition_case_1, internal_condition_case_2): Save it.
11923 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
11924
11925 * editfns.c (Fformat): Add parens.
11926
11927 * dired.c (file_name_completion): Fix that change.
11928 Delete special quit-handling code; just use QUIT.
11929
11930 2002-12-21 Tak Ota <Takaaki.Ota@am.sony.com>
11931
11932 * dired.c (file_name_completion): Close directory on error
11933 just as in directory_files_internal.
11934
11935 2002-12-19 David Kastrup <David.Kastrup@t-online.de>
11936
11937 * window.c (Fset_window_configuration): Set old_point to correct
11938 value when new_current_buffer == current_buffer.
11939
11940 2002-12-17 Ben Key <bkey1@tampabay.rr.com>
11941
11942 Revisited my earlier fix for the following entry in etc/PROBLEMS:
11943 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
11944 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
11945
11946 These changes were in part based upon suggestions made by Peter
11947 'Luna' Runestig [peter@runestig.com].
11948
11949 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token)
11950 (g_b_init_get_token_information, g_b_init_lookup_account_sid)
11951 (g_b_init_get_sid_identifier_authority ): Add several static
11952 global variables.
11953
11954 * w32.c (globals_of_w32): New function. Used to initialize those
11955 global variables that must always be initialized on startup even
11956 when the global variable initialized is non zero. Its primary
11957 purpose at this time is to set the global variables
11958 g_b_init_is_windows_9x, g_b_init_open_process_token,
11959 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
11960 g_b_init_get_sid_identifier_authority to 0 on startup.
11961 Called from main.
11962
11963 * w32.c (is_windows_9x): Perform initialization only if
11964 g_b_init_is_windows_9x is equal to 0. On initialization set
11965 g_b_init_is_windows_9x equal to 1.
11966
11967 * w32.c (open_process_token): Perform initialization only if
11968 g_b_init_open_process_token is equal to 0. On initialization set
11969 g_b_init_open_process_token equal to 1.
11970
11971 * w32.c (get_token_information): Perform initialization only if
11972 g_b_init_get_token_information is equal to 0. On initialization
11973 set g_b_init_get_token_information equal to 1.
11974
11975 * w32.c (lookup_account_sid): Perform initialization only if
11976 g_b_init_lookup_account_sid is equal to 0. On initialization
11977 set g_b_init_lookup_account_sid equal to 1.
11978
11979 * w32.c (get_sid_identifier_authority): Perform initialization
11980 only if g_b_init_get_sid_identifier_authority is equal to 0.
11981 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
11982
11983 * w32fns.c (globals_of_w32fns): New function. Used to initialize
11984 those global variables that must always be initialized on startup
11985 even when the global variable initialized is non zero.
11986 Its primary purpose at this time is to initialize the global variable
11987 track_mouse_event_fn.
11988
11989 * w32fns.c (w32_wnd_proc): Remove initialization of
11990 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
11991
11992 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
11993
11994 * w32menu.c (globals_of_w32menu): New function. Used to
11995 initialize those global variables that must always be initialized
11996 on startup even when the global variable initialized is non zero.
11997 Its primary purpose at this time is to initialize the global
11998 variables get_menu_item_info and set_menu_item_info.
11999
12000 * w32menu.c (initialize_frame_menubar): Remove initialization of
12001 get_menu_item_info and set_menu_item_info.
12002
12003 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
12004
12005 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
12006 Declare them.
12007
12008 * emacs.c (main): Call globals_of_w32 prior to calling
12009 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
12010 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
12011 is defined.
12012
12013 * w32term.c (x_update_window_begin): Fix Windows API error
12014 detected by BoundsChecker. Test to determine if
12015 w32_system_caret_hwnd is NULL prior to attempting to use
12016 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
12017
12018 * w32term.c (x_update_window_end): Fix Windows API error
12019 detected by BoundsChecker. Test to determine if
12020 w32_system_caret_hwnd is NULL prior to attempting to use
12021 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
12022
12023 2002-12-17 Kenichi Handa <handa@m17n.org>
12024
12025 * coding.c (coding_system_require_warning): New variable.
12026 (syms_of_coding): DEFVAR it.
12027
12028 * coding.h (coding_system_require_warning): Extern it.
12029
12030 * fileio.c (choose_write_coding_system): Even if
12031 Vcoding_system_for_write is non-nil, if
12032 coding_system_require_warning is nonzero, call
12033 Vselect_safe_coding_system_function.
12034
12035 2002-12-17 Markus Rost <rost@math.ohio-state.edu>
12036
12037 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
12038 (lisp): Add font-core.
12039
12040 2002-12-13 Stefan Monnier <monnier@cs.yale.edu>
12041
12042 * textprop.c (text_read_only): New arg `propval'.
12043 (get_char_property_and_overlay): Remove unused var `next_overlay'.
12044 (verify_interval_modification): Use text_read_only's new arg.
12045
12046 2002-12-13 Kenichi Handa <handa@m17n.org>
12047
12048 * coding.c (Funencodable_char_position): Set pend correctly.
12049
12050 2002-12-12 Jason Rumney <jasonr@gnu.org>
12051
12052 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
12053 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
12054 Be more careful about when help_events are generated.
12055
12056 2002-12-12 Steven Tamm <steventamm@mac.com>
12057
12058 * macterm.c (mac_check_for_quit_char): Correctly set the
12059 modifiers of the event to 0.
12060 * mac.c (sys_select): Duplicate rfds before calling select to
12061 ensure that rfds survive the while loop.
12062
12063 2002-12-11 Kim F. Storm <storm@cua.dk>
12064
12065 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
12066 row_containing_pos returned NULL.
12067
12068 2002-12-10 Steven Tamm <steventamm@mac.com>
12069
12070 * mac.c (sys_read): Fix sys_read to not call select if IO is
12071 non-blocking.
12072 (sys_select): Fix sys_select to not use a timeout larger than
12073 the one given.
12074
12075 2002-12-10 Juanma Barranquero <lektu@terra.es>
12076
12077 * editfns.c (Fformat): Use alloca, not _alloca.
12078
12079 2002-12-09 Richard M. Stallman <rms@gnu.org>
12080
12081 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
12082 as the last thing.
12083
12084 2002-12-09 Dave Love <fx@gnu.org>
12085
12086 * s/sol2-8.h: Removed. (Not necessary.)
12087
12088 2002-12-09 Matthew Swift <swift@alum.mit.edu>
12089
12090 * editfns.c (Fformat): Handle precision in string conversion
12091 specifiers like libc functions do (ie, print at most that many
12092 characters).
12093
12094 2002-12-08 Richard M. Stallman <rms@gnu.org>
12095
12096 * xdisp.c (row_containing_pos): Check more carefully
12097 whether charpos is really in the row before returning it.
12098
12099 2002-12-07 Steven Tamm <steventamm@mac.com>
12100
12101 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
12102
12103 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
12104 each stack frame. This may change as it could be time consuming.
12105
12106 * macterm.c (mac_check_for_quit_char, quit_char_comp)
12107 (init_quit_char_handler, mac_determine_quit_char_modifiers)
12108 (mac_initialize): Add code to check for pressing of quit_char
12109 in the OS event queue.
12110
12111 * mac.c (sys_select): Call mac_check_for_quit_char every second
12112 while blocking on select.
12113
12114 * mac.c (sys_read): Use sys_select to test for input first
12115 before calling read, to allow C-g to break.
12116
12117 2002-12-07 Richard M. Stallman <rms@gnu.org>
12118
12119 * minibuf.c (Fcompleting_read): Doc fix.
12120
12121 * lread.c (syms_of_lread) <load-history>: Doc fix.
12122
12123 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
12124
12125 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
12126 autoload.
12127
12128 * data.c (Fdefalias): Record in load-history redefining an autoload.
12129
12130 * alloca.c: Undo ifdef change accidentally made on 12-04.
12131
12132 2002-12-06 Francesco Potorti` <pot@gnu.org>
12133
12134 * xfns.c (png_load): Avoid double gamma correction for PNG images.
12135
12136 2002-12-04 Richard M. Stallman <rms@gnu.org>
12137
12138 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
12139
12140 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
12141
12142 * alloca.c: Don't use #error.
12143
12144 2002-12-03 Dave Love <fx@gnu.org>
12145
12146 * buffer.c (Qucs_set_table_for_input): New.
12147 (Fget_buffer_create): Use it.
12148 (Qset_buffer_major_mode_hook): Deleted.
12149 (Fset_buffer_major_mode): Revert previous change.
12150 (init_buffer_once): Intern ucs-set-table-for-input.
12151 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
12152 Add &Qucs_set_table_for_input.
12153
12154 2002-12-03 Andreas Schwab <schwab@suse.de>
12155
12156 * callint.c (Fcall_interactively): Use next_event only if less
12157 than key_count.
12158
12159 2002-12-02 Andrew Choi <akochoi@shaw.ca>
12160
12161 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
12162 names to 255 characters.
12163
12164 * macterm.c (XTread_socket): If all frames have been collapsed,
12165 expand the first one before handling drag-and-drop events.
12166
12167 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
12168 which is detected by autoconf.
12169
12170 2002-12-01 Steven Tamm <steventamm@mac.com>
12171
12172 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
12173 offset in two hints table to allow prebinding to be redone and
12174 allow the executable to be stripped.
12175
12176 2002-11-29 Dave Love <fx@gnu.org>
12177
12178 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
12179 already provided.
12180
12181 2002-11-29 Richard M. Stallman <rms@gnu.org>
12182
12183 * xdisp.c (start_display): Check more intelligently for
12184 whether the line is continued.
12185 (move_it_vertically_backward): Clear it->continuation_lines_width.
12186
12187 2002-11-28 Dave Love <fx@gnu.org>
12188
12189 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
12190 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
12191
12192 2002-11-27 Steven Tamm <steventamm@mac.com>
12193
12194 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
12195 more descriptive error output from lread.c:Fload upon most require
12196 cycles during boostrapping.
12197
12198 2002-11-27 Jason Rumney <jasonr@gnu.org>
12199
12200 * fileio.c (Finsert_file_contents): Give a more appropriate error
12201 for files bigger than 2Gb when off_t is 32 bit.
12202
12203 * dired.c (Ffile_attributes): Don't return negative file sizes for
12204 files bigger than 2Gb when off_t is 32 bit.
12205
12206 2002-11-27 Dave Love <fx@gnu.org>
12207
12208 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
12209
12210 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
12211 Test GETPGRP_VOID instead.
12212 [BSD_TERMIOS]: Remove definitions (never used).
12213
12214 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
12215 Don't define.
12216 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
12217
12218 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
12219
12220 2002-11-25 Jason Rumney <jasonr@gnu.org>
12221
12222 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
12223 supported.
12224
12225 2002-11-25 Dave Love <fx@gnu.org>
12226
12227 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
12228
12229 * Makefile.in (TEMACS_LDFLAGS): Update last change.
12230
12231 2002-11-25 Andreas Schwab <schwab@suse.de>
12232
12233 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
12234
12235 2002-11-24 Steven Tamm <steventamm@mac.com>
12236
12237 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
12238 determine the size of pointers alloced in unexed space instead
12239 of using possibly invalid emacs_zone pointers. This fixes the
12240 binary incompatibility problems caused by updates to libSystem.B.
12241
12242 2002-11-24 Richard M. Stallman <rms@gnu.org>
12243
12244 * search.c (Fstring_match): Doc fix.
12245
12246 * callint.c (Fcall_interactively): If a command fails because
12247 `*' detects a read-only buffer, but RECORD_FLAG is set,
12248 record it anyway if the args don't actually do tty input.
12249
12250 2002-11-22 Dave Love <fx@gnu.org>
12251
12252 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
12253
12254 * keyboard.c (interrupt_signal): Provide forward declaration.
12255 (kbd_buffer_store_event): Don't declare interrupt_signal.
12256
12257 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
12258
12259 2002-11-21 Richard M. Stallman <rms@gnu.org>
12260
12261 * eval.c (interactive_p): Skip any number of bytecode
12262 and special form frames, in any order.
12263
12264 2002-11-20 Jason Rumney <jasonr@gnu.org>
12265
12266 * w32fns.c (convert_mono_to_color_image): New function.
12267 (xbm_load, xbm_load_image): Use it when foreground or background
12268 is explicitly set.
12269
12270 2002-11-19 Dave Love <fx@gnu.org>
12271
12272 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
12273
12274 2002-11-18 Jason Rumney <jasonr@gnu.org>
12275
12276 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
12277 (XPutPixel): Swap blue and red.
12278 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
12279 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
12280 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
12281 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
12282
12283 2002-11-18 Dave Love <fx@gnu.org>
12284
12285 * m/orion105.h (HAVE_ALLOCA): Don't define.
12286
12287 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
12288
12289 * m/intel386.h: Don't include alloca.h or define alloca.
12290
12291 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
12292 malloc, realloc, calloc.
12293
12294 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
12295 (bcmp): Don't define.
12296
12297 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
12298
12299 * m/amdahl.h: Don't define LIB_STANDARD.
12300
12301 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
12302
12303 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
12304
12305 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
12306 Don't include alloca.h.
12307
12308 * s/aix3-2.h (HAVE_FSYNC): Don't define.
12309
12310 * regex.c (_GNU_SOURCE): Don't define.
12311
12312 * process.c (_GNU_SOURCE): Don't define.
12313
12314 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
12315
12316 2002-11-18 Markus Rost <rost@math.ohio-state.edu>
12317
12318 * s/sol2-8.h: Include sol2-6.h.
12319
12320 2002-11-18 Miles Bader <miles@gnu.org>
12321
12322 * dispextern.h (struct face): Add `overstrike' field.
12323 * xterm.c (x_draw_glyph_string_foreground)
12324 (x_draw_composite_glyph_string_foreground): Implement overstriking.
12325 * xfaces.c (load_face_font): Set `face->overstrike' based on
12326 result from choose_face_font.
12327 (best_matching_font, choose_face_font): Add `needs_overstrike'
12328 argument, and use it to return whether overstriking is desirable
12329 for this face/font combo.
12330 (set_font_frame_param: Pass new argument to choose_face_font.
12331
12332 2002-11-17 Ben Key <BKey1@tampabay.rr.com>
12333
12334 This change is my fix for the following entry in etc/PROBLEMS:
12335 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
12336 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
12337
12338 * w32.c: Added wrapper functions around the win32 API functions
12339 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
12340 GetSidIdentifierAuthority. These wrapper functions serve two
12341 purposes:
12342 1. They ensure that the wrapped function can never be called
12343 when Emacs is running on an operating system on which they are
12344 not supported (Microsoft Windows 95 / 98 / ME).
12345 2. They call the wrapped functions via function pointers rather
12346 than calling them directly. This avoids taking advantage of the
12347 undocumented fact that although these functions are not supported
12348 in the 9x branch of Microsoft Windows, the functions do exist in
12349 the version of advapi32.dll that is found in the 9x branch of
12350 Microsoft Windows.
12351
12352 * w32.c (init_user_info): Replace the calls to the win32 API
12353 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
12354 and GetSidIdentifierAuthority with calls to the newly added
12355 wrapper functions.
12356
12357 * w32.h: Added extern declarations for the following functions:
12358 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
12359 syms_of_w32menu, and void syms_of_fontset.
12360
12361 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
12362 function pointer track_mouse_event_fn in the handler for the
12363 WM_SETFOCUS message.
12364
12365 * w32menu.c (initialize_frame_menubar): Add code to
12366 reinitialize the function pointers set_menu_item_info and
12367 get_menu_item_info.
12368
12369 2002-11-17 Ben Key <BKey1@tampabay.rr.com>
12370
12371 * sound.c: Added a partial implementation of play-sound-internal
12372 for Microsoft Windows. Added various #ifdef / #else / #endif
12373 code blocks to separate the code that will compile under
12374 Microsoft Windows from the code that is specific to Gnu/Linux.
12375 Moved several blocks of code around to make this separation of code
12376 into Windows compatible and Gnu/Linux compatible code blocks easier.
12377
12378 * makefile.w32-in: Include sound.c and link with WinMM.lib.
12379
12380 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
12381 added support for play-sound-internal under Windows would be
12382 included in the build of Emacs.
12383
12384 2002-11-16 Jason Rumney <jasonr@gnu.org>
12385
12386 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
12387
12388 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
12389
12390 2002-11-15 Stefan Monnier <monnier@cs.yale.edu>
12391
12392 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
12393 (adjust_point_for_property): Move out of display and invisible even if
12394 we were already inside before (in case a property was added while
12395 we weren't looking). Be more careful when handling invisible props.
12396 Skip invisible text as if it really wasn't there at all.
12397
12398 2002-11-15 Jason Rumney <jasonr@gnu.org>
12399
12400 * w32term.c (x_draw_image_foreground)
12401 (w32_draw_image_foreground_1): Use standard copy and invert
12402 operations to draw images.
12403
12404 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
12405 depth of 1.
12406 (xbm_read_bitmap_data): Invert bits as xbm is read in.
12407 (XPutPixel): Don't invert bits here.
12408
12409 2002-11-15 Jason Rumney <jasonr@gnu.org>
12410
12411 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
12412 (w32_draw_image_foreground_1): Handle image masks.
12413 (x_draw_image_glyph_string): Don't BitBlt transparently.
12414
12415 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
12416 (x_from_xcolors): Adjust RGB values for W32.
12417 (image_background, image_background_transparent)
12418 (postprocess_image, x_to_xcolors, x_disable_image)
12419 (x_build_heuristic_mask): Adapt for W32 and enable.
12420 (x_create_x_image_and_pixmap): Mark images with palettes as such.
12421 (xbm_load): Remove unused variable.
12422
12423 2002-11-14 Richard M. Stallman <rms@gnu.org>
12424
12425 * buffer.c (syms_of_buffer): Doc fix.
12426
12427 2002-11-14 Dave Love <fx@gnu.org>
12428
12429 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
12430
12431 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
12432 * xmenu.c (unuse_menu_items, digest_single_submenu):
12433 * xfns.c (x_put_x_image):
12434 * xdisp.c (message2_nolog, set_message):
12435 * undo.c (record_point):
12436 * terminfo.c (tparam):
12437 * syntax.c (scan_sexps_forward):
12438 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
12439 * composite.c (update_compositions):
12440 * cm.c (calccost, cmgoto):
12441 * charset.c (c_string_width): Declare all args (per C99).
12442
12443 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
12444
12445 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
12446 Don't declare.
12447
12448 * emacs.c (main) [!VMS]: Avoid third arg.
12449
12450 * fns.c (Fcopy_sequence): Doc fix.
12451 (Fmap_char_table): Cast `call2'.
12452
12453 2002-11-14 Francesco Potorti` <pot@gnu.org>
12454
12455 * s/sol2-8.h: New file.
12456
12457 2002-11-14 Kim F. Storm <storm@cua.dk>
12458
12459 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
12460 dependency on `risky-local-variable' and the :propertize form.
12461
12462 2002-11-12 Stefan Monnier <monnier@cs.yale.edu>
12463
12464 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
12465
12466 * syntax.c (scan_sexps_forward): Undo last patch.
12467 Use a more obvious fix: check eob before updating the syntax table.
12468
12469 2002-11-09 Stefan Monnier <monnier@cs.yale.edu>
12470
12471 * syntax.c (scan_sexps_forward): Update syntax table before reading
12472 a char rather than after so we don't update the table past eob.
12473
12474 2002-11-09 Dave Love <fx@gnu.org>
12475
12476 * buffer.c (Fset_buffer_major_mode): Fix last change.
12477
12478 * regex.c (regexec): Fix pmatch declaration.
12479
12480 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
12481
12482 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
12483 to self-inserting characters.
12484 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
12485
12486 * coding.c (Vtranslation_table_for_input): New.
12487 (syms_of_coding): DEFVAR it.
12488
12489 2002-11-08 Juanma Barranquero <lektu@terra.es>
12490
12491 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
12492 window.
12493
12494 2002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12495
12496 * process.c (Fformat_network_address): Remove unused locals p,
12497 cp, and i.
12498
12499 2002-11-06 Dave Love <fx@gnu.org>
12500
12501 * buffer.c (Qset_buffer_major_mode_hook): New.
12502 (Fset_buffer_major_mode): Use it.
12503
12504 2002-11-06 Richard M. Stallman <rms@gnu.org>
12505
12506 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
12507 and stop_polling.
12508
12509 * process.c (wait_reading_process_input):
12510 Test POLLING_PROBLEM_IN_SELECT, not hpux.
12511 Avoid initialization for auto Lisp_Object var.
12512
12513 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
12514
12515 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
12516
12517 2002-11-05 Richard M. Stallman <rms@gnu.org>
12518
12519 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
12520
12521 * callint.c (Fcall_interactively): New local filter_specs.
12522 (Fcall_interactively): Check for progn as well as let.
12523 Add a gcpro.
12524 (Qprogn): New variable.
12525 (syms_of_callint): Staticpro and init Qprogn.
12526
12527 2002-11-04 John Paul Wallington <jpw@shootybangbang.com>
12528
12529 * lread.c (Feval_buffer): Doc fix.
12530
12531 2002-11-04 Dave Love <fx@gnu.org>
12532
12533 * keyboard.c (read_char): Always translate iff
12534 Vkeyboard_translate_table is a char table and c is valid.
12535
12536 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
12537 and fix C types.
12538
12539 2002-11-03 Stefan Monnier <monnier@cs.yale.edu>
12540
12541 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
12542
12543 * editfns.c (get_pos_property): Don't hardcode Qfield.
12544
12545 * keyboard.c (adjust_point_for_property): Handle `display' prop on
12546 overlays. Also handle `invisible' prop.
12547
12548 2002-11-02 Stefan Monnier <monnier@cs.yale.edu>
12549
12550 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
12551 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
12552
12553 2002-11-01 Andreas Schwab <schwab@suse.de>
12554
12555 * editfns.c (Fmessage): Revert last change to properly handle %%.
12556
12557 2002-11-01 Stefan Monnier <monnier@cs.yale.edu>
12558
12559 * xmenu.c (unuse_menu_items): New fun.
12560 (menu_items_inuse): New var.
12561 (syms_of_xmenu): Initialize it.
12562 (init_menu_items): Use it to detect re-entrance.
12563 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
12564 (Fx_popup_menu): Remove spurious XSETFRAME.
12565
12566 * editfns.c (find_field): Make an exception for nil fields.
12567
12568 2002-11-01 Dave Love <fx@gnu.org>
12569
12570 * m/gec63.h: Deleted.
12571
12572 2002-10-31 Dave Love <fx@gnu.org>
12573
12574 * xterm.c (XTread_socket): Fix last change.
12575 (xaw_scroll_callback): Cast call_data to long to avoid warning.
12576
12577 2002-10-31 Stefan Monnier <monnier@cs.yale.edu>
12578
12579 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
12580
12581 2002-10-30 Stefan Monnier <monnier@cs.yale.edu>
12582
12583 * editfns.c (overlays_around, get_pos_property): New funs.
12584 (find_field): Use them.
12585 Also be careful not to modify POS before its last use.
12586 (Fmessage): Don't Fformat if there's nothing to format.
12587
12588 2002-10-30 Dave Love <fx@gnu.org>
12589
12590 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
12591 [HAVE_PTY_H]; Include pty.h.
12592
12593 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
12594
12595 * xterm.c (Qeql): Declare.
12596 (Vx_keysym_table): New.
12597 (syms_of_xterm): Initialize it.
12598 (XTread_socket): Use it. Deal with ASCII keysyms.
12599 (XSetIMValues) [HAVE_X11R6]: Prototype.
12600
12601 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
12602 (lispy_kana_keys): Comment out.
12603 (make_lispy_event) [XK_kana_A]: Comment out.
12604 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
12605 Fix sprintf call.
12606
12607 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
12608 regexp.h change).
12609 (TERMINFO, LIBS_TERMCAP): Define.
12610
12611 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
12612 (bcmp): Define conditional on HAVE_BCMP.
12613 (NO_SIOCTL_H): Don't define.
12614 (TIOCSIGSEND): Don't make conditional on IRIX6.
12615
12616 * s/sol2-5.h: Don't include strings.h.
12617 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
12618
12619 * s/irix6-0.h (IRIX6): Don't define.
12620 (bcopy, bcmp, bzero): Don't undef.
12621
12622 * s/irix6-5.h: Don't include strings.h.
12623 (IRIX6): Don't define.
12624 (bcopy, bcmp, bzero): Don't undef.
12625
12626 * syntax.c (Fforward_comment): Doc fix.
12627
12628 2002-10-29 Kim F. Storm <storm@cua.dk>
12629
12630 * process.c (Fsignal_process): Allow PROCESS to be specified by
12631 name in addition to pid (as integer or string).
12632
12633 2002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
12634
12635 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
12636 environments.
12637
12638 2002-10-27 Kim F. Storm <storm@cua.dk>
12639
12640 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
12641
12642 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
12643
12644 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
12645
12646 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
12647
12648 2002-10-26 Richard M. Stallman <rms@gnu.org>
12649
12650 * editfns.c (Fformat): Detect invalid format letters for floats.
12651
12652 2002-10-25 Kenichi Handa <handa@m17n.org>
12653
12654 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
12655 (x_set_title): Likewise.
12656
12657 2002-10-25 Juanma Barranquero <lektu@terra.es>
12658
12659 * macgui.h:
12660 * w32gui.h: Remove definition of XColor.
12661
12662 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
12663
12664 2002-10-24 Kim F. Storm <storm@cua.dk>
12665
12666 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
12667 Callers changed (supply dummy arg).
12668
12669 * lisp.h (get_window_cursor_type): Update prototype.
12670
12671 * w32term.c (x_display_and_set_cursor): Get active_cursor from
12672 get_window_cursor_type to track system caret.
12673
12674 2002-10-24 Kim F. Storm <storm@cua.dk>
12675
12676 * process.c (Fformat_network_address): New function.
12677 (syms_of_process): Defsubr it.
12678 (list_processes_1): Use it to format :local/:remote address if
12679 service/host is not set; before Emacs would crash in that case.
12680 (Fmake_network_process): Don't use Ffind_operation_coding_system
12681 to setup coding system if host or service is not set.
12682
12683 2002-10-23 Juanma Barranquero <lektu@terra.es>
12684
12685 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
12686
12687 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
12688 COLORREF.
12689
12690 * macgui.h:
12691 * w32gui.h: Add definition of XColor.
12692
12693 * macfns.c:
12694 * w32fns.c:
12695 * xfaces.c: Remove definition of XColor.
12696
12697 2002-10-22 Stefan Monnier <monnier@cs.yale.edu>
12698
12699 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
12700
12701 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
12702 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
12703 window if it is dedicated.
12704 (Fshrink_window): Add preserve_before as was done for enlarge_window.
12705 (Vspecial_display_function): Update docstring.
12706
12707 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
12708 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
12709 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
12710
12711 2002-10-21 Stefan Monnier <monnier@cs.yale.edu>
12712
12713 * casefiddle.c (casify_region): Don't treat a prefix char as part
12714 of a word when at the beginning.
12715
12716 2002-10-17 Juanma Barranquero <lektu@terra.es>
12717
12718 * lread.c (syms_of_lread): Fix typos.
12719
12720 2002-10-17 Dave Love <fx@gnu.org>
12721
12722 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
12723
12724 2002-10-16 Richard M. Stallman <rms@gnu.org>
12725
12726 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
12727
12728 2002-10-14 Juanma Barranquero <lektu@terra.es>
12729
12730 * w16select.c (syms_of_win16select): Fix docstring for
12731 `selection-coding-system'.
12732
12733 * w32select.c (syms_of_w32select): Likewise.
12734
12735 2002-10-14 Stefan Monnier <monnier@cs.yale.edu>
12736
12737 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
12738 a backslash-quoted char.
12739 (scan_lists, scan_sexps_forward): Pacify the compiler.
12740
12741 2002-10-13 Richard M. Stallman <rms@gnu.org>
12742
12743 * window.c (window_scroll): Set immediate_quit.
12744
12745 * print.c (print): When backquote form is the car of a list,
12746 output in old style. Use old_backquote_output to output all
12747 comma forms inside it in old style too.
12748
12749 * buffer.h (struct buffer): Move `undo_list' down below `name'.
12750
12751 2002-10-11 Markus Rost <rost@math.ohio-state.edu>
12752
12753 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
12754 batch mode).
12755
12756 * lread.c (Fload): Doc fix (load-suffixes).
12757
12758 2002-10-10 Steven Tamm <steventamm@mac.com>
12759
12760 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
12761 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
12762 Also switch the default to Qnil from Qt.
12763
12764 2002-10-08 Kenichi Handa <handa@m17n.org>
12765
12766 * coding.c (code_convert_region): When we need more GAP for
12767 conversion, pay attention to the case that coding->produced is not
12768 greater than coding->consumed.
12769
12770 2002-10-07 Richard M. Stallman <rms@gnu.org>
12771
12772 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
12773
12774 2002-10-06 Andrew Choi <akochoi@shaw.ca>
12775
12776 * macmenu.c (mac_menu_show): Add j to count menu items; match
12777 menu_item_selection to it to find selected item.
12778
12779 2002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12780
12781 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
12782 cases. The correct fix is to pass ReparentNotify to Xt.
12783 The shell widget interprets ConfigureNotify differently depending
12784 on if it has been reparented or not.
12785
12786 2002-10-05 Markus Rost <rost@math.ohio-state.edu>
12787
12788 * editfns.c (Fformat_time_string): Doc fix.
12789
12790 2002-10-05 John Paul Wallington <jpw@shootybangbang.com>
12791
12792 * fns.c (Flength): Doc fix.
12793
12794 2002-10-04 Stefan Monnier <monnier@cs.yale.edu>
12795
12796 * keyboard.c (keyremap): New struct.
12797 (read_key_sequence): Use it: globally replace keytran_foo with
12798 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
12799 keytran_next and fkey_next to just `next'.
12800
12801 2002-10-04 Steven Tamm <steventamm@mac.com>
12802
12803 * macterm.c (keycode_to_xkeysym_table): Change return to be
12804 treated like an X keysym.
12805
12806 2002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12807
12808 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
12809 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
12810 This is to also handle x/y changes that occur because of a resize.
12811
12812 2002-10-02 John Paul Wallington <jpw@shootybangbang.com>
12813
12814 * frame.c (Vdelete_frame_functions): New variable.
12815 (syms_of_frame): Initialize and defvar it.
12816 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
12817 it when frame's `tooltip' parameter is non-nil.
12818
12819 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
12820
12821 * w32fns.c (x_create_tip_frame): Likewise.
12822
12823 * macfns.c (x_create_tip_frame): Likewise.
12824
12825 2002-09-30 Kenichi Handa <handa@m17n.org>
12826
12827 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
12828 -1 before calling ccl_driver.
12829
12830 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
12831 Only when it is non-nil, handle composition sequence.
12832 (setup_coding_system) <0>: Don't force composition handling.
12833
12834 * Makefile.in (lisp, shortlisp): Add utf-16.elc
12835
12836 2002-09-29 Richard M. Stallman <rms@gnu.org>
12837
12838 * search.c (Freplace_match): Adjust match data for the substitution
12839 just made in the buffer.
12840
12841 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
12842 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
12843
12844 2002-09-27 Richard M. Stallman <rms@gnu.org>
12845
12846 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
12847 (read_char): Use them. Do all exits thru the end of the function.
12848
12849 2002-09-27 Kenichi Handa <handa@etl.go.jp>
12850
12851 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
12852 is nil.
12853
12854 2002-09-26 Richard M. Stallman <rms@gnu.org>
12855
12856 * regex.h (__restrict_arr): Don't define if already defined.
12857
12858 * coding.c (run_pre_post_conversion_on_str):
12859 Save and restore Vdeactivate_mark.
12860
12861 2002-09-26 John Paul Wallington <jpw@shootybangbang.com>
12862
12863 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
12864
12865 2002-09-26 Kenichi Handa <handa@etl.go.jp>
12866
12867 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
12868 nonzero, try face's family at first. Otherwise try FAMILY at first.
12869 (choose_face_font): If C is a single byte char or latin-1, call
12870 try_font_list with PREFER_FACE_FAMILY 1.
12871
12872 2002-09-21 Richard M. Stallman <rms@gnu.org>
12873
12874 * window.c (select_window_1): Don't select frame.
12875 Set frame's selected window only when frame itself is selected.
12876 (Fselect_window): Doc fix.
12877
12878 2002-09-18 Kim F. Storm <storm@cua.dk>
12879
12880 * process.c (make-network-process): Doc fix (there is no
12881 network-server-log-function hook).
12882
12883 2002-09-18 Richard M. Stallman <rms@gnu.org>
12884
12885 * print.c (print): Clear out the unused parts of Vprint_number_table.
12886 (syms_of_print): Doc fix for `print-number-table'.
12887
12888 * unexelf.c (unexec): Undo previous change.
12889
12890 2002-09-17 Andreas Schwab <schwab@suse.de>
12891
12892 * m/alpha.h [LINUX]: Don't define DATA_START.
12893
12894 2002-09-16 Dave Love <fx@gnu.org>
12895
12896 * unexelf.c (unexec): Deal with .got, reinstating change from
12897 25-08-1999.
12898
12899 2002-09-13 Richard M. Stallman <rms@gnu.org>
12900
12901 * s/sol2-6.h (UNEXEC): Comment out definition.
12902
12903 * unexsol.c (unexec): Don't downcase first letter of error msg.
12904
12905 * xfaces.c (Fcolor_supported_p): Just one arg is required.
12906
12907 2002-09-12 Markus Rost <rost@math.ohio-state.edu>
12908
12909 * unexsol.c: Include buffer.h, charset.h, coding.h.
12910
12911 2002-09-11 Richard M. Stallman <rms@gnu.org>
12912
12913 * unexsol.c: Don't use report_file_error; do it by hand
12914 using dlerror.
12915
12916 * process.c (wait_reading_process_input, both versions):
12917 Before calling turn_on_atimers, call stop_polling.
12918
12919 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
12920
12921 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
12922 we go to too_near_end, call clear_glyph_matrix.
12923 (redisplay_window): After make_cursor_line_fully_visible,
12924 call clear_glyph_matrix and bypass `goto done'.
12925
12926 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
12927 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
12928
12929 2002-09-10 Richard M. Stallman <rms@gnu.org>
12930
12931 * fileio.c (Fdo_auto_save): Catch error making directory.
12932 Only call push_message if we need to.
12933 At the same time, make an unwind-protect to pop it.
12934 Rename local message_p to old_message_p.
12935 (do_auto_save_make_dir, do_auto_save_eh): New functions.
12936 (do_auto_save_unwind): Don't call pop_message.
12937
12938 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
12939
12940 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
12941
12942 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
12943
12944 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
12945
12946 2002-09-10 Stefan Monnier <monnier@cs.yale.edu>
12947
12948 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
12949 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
12950 (re_match_2_internal): Be more careful with infinite loops.
12951
12952 2002-09-10 Kim F. Storm <storm@cua.dk>
12953
12954 * macros.c (end_kbd_macro): New function.
12955 (Fend_kbd_macro): Use it.
12956
12957 * macros.h (end_kbd_macro): Declare extern.
12958
12959 * keyboard.c (Fdiscard_input): If defining keyboard macro,
12960 end and save it instead of discarding it.
12961
12962 2002-09-09 Markus Rost <rost@math.ohio-state.edu>
12963
12964 * s/sol2-6.h: Fix typo. Add comment.
12965
12966 2002-09-09 Richard M. Stallman <rms@gnu.org>
12967
12968 * regex.c (regnum_t): Use signed int, not unsigned int.
12969
12970 * s/sol2-6.h: New file.
12971
12972 * s/sol2-5.h (UNEXEC): Definition deleted.
12973
12974 2002-09-08 Kim F. Storm <storm@cua.dk>
12975
12976 * macros.c (executing_macro_index): Change type to EMACS_INT.
12977 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
12978
12979 * macros.h (executing_macro_index): Change type to EMACS_INT.
12980
12981 2002-09-06 Richard M. Stallman <rms@gnu.org>
12982
12983 * casetab.c (set_case_table): Make canon table point to eqv table.
12984
12985 2002-09-06 Juanma Barranquero <lektu@terra.es>
12986
12987 * coding.c (syms_of_coding): Fix spacing.
12988
12989 * composite.c (Fcompose_region_internal)
12990 (Fcompose_string_internal): Likewise.
12991
12992 * data.c (Flsh): Likewise.
12993
12994 * fontset.c (Fset_fontset_font): Likewise.
12995
12996 * macfns.c (Fx_server_max_request_size): Likewise.
12997
12998 * w16select.c (syms_of_win16select): Likewise.
12999
13000 * w32select.c (syms_of_w32select): Likewise.
13001
13002 * xselect.c (syms_of_xselect): Likewise.
13003
13004 2002-09-05 Richard M. Stallman <rms@gnu.org>
13005
13006 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
13007 call EXTEND_RANGE_TABLE and return a proper value.
13008 (set_image_of_range): Don't call set_image_of_range_1
13009 if no TRANSLATE or if range includes all of Latin-1.
13010 Only call it for the Latin-1 part of the range.
13011 For other cases, make two separate ranges,
13012 one for the original specified characters and one for
13013 their case-conversions.
13014
13015 2002-09-04 Richard M. Stallman <rms@gnu.org>
13016
13017 * s/sol2-5.h (UNEXEC): Use unexsol.o.
13018
13019 * window.c (displayed_window_lines): Correct for one-off bug
13020 in HEIGHT on non-window displays.
13021
13022 * regex.c (set_image_of_range_1): New function.
13023 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
13024 Return a value to indicate running out of memory.
13025 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
13026 (extend_range_table_work_area): New subroutine.
13027 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
13028 Different calling conventions, and used from set_image_of_range{,_1}.
13029 (IMMEDIATE_QUIT_CHECK): Definitions moved.
13030
13031 2002-09-04 Juanma Barranquero <lektu@terra.es>
13032
13033 * makefile.w32-in: All dependencies updated.
13034
13035 2002-09-01 Richard M. Stallman <rms@gnu.org>
13036
13037 * unexsol.c: New file.
13038
13039 * xfns.c (Qbox): Declare external, don't define.
13040
13041 * xdisp.c (redisplay_window) <force-start case>:
13042 If point is on semi-visible last line, reposition
13043 it at previous line.
13044
13045 * alloc.c (display_malloc_warning): Use display-warning.
13046 (malloc_warning_1): Function deleted.
13047
13048 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
13049
13050 * lread.c (read1): Handle #! by skipping the line.
13051
13052 2002-08-31 Richard M. Stallman <rms@gnu.org>
13053
13054 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
13055 Don't include LDFLAGS.
13056 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
13057
13058 2002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
13059
13060 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
13061 member of x_display_info unless we compile for some window system.
13062
13063 2002-08-31 Kim F. Storm <storm@cua.dk>
13064
13065 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
13066 (get_window_cursor_type): Don't use them.
13067 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
13068
13069 2002-08-30 Kenichi Handa <handa@etl.go.jp>
13070
13071 * xdisp.c (get_next_display_element): Fix previous change.
13072
13073 2002-08-30 Andrew Choi <akochoi@shaw.ca>
13074
13075 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
13076 (expose_window): Use it to fix the display of overlapping
13077 rows (merge code from xterm.c).
13078
13079 * macfns.c (Qbox): Add extern declaration.
13080
13081 2002-08-30 Juanma Barranquero <lektu@terra.es>
13082
13083 * w32fns.c (Qbox): Make extern.
13084 (syms_of_w32fns): Remove initialization of Qbox.
13085
13086 2002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
13087
13088 * xfns.c (Fx_open_connection): Fix error message.
13089
13090 2002-08-30 Kim F. Storm <storm@cua.dk>
13091
13092 The following changes consolidates the handling of the cursor
13093 type in xdisp.c, moving duplicate code and functionality from
13094 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
13095
13096 * frame.h (enum text_cursor_kinds): Consolidated here.
13097 Added DEFAULT_CURSOR value.
13098 (struct frame) <desired_cursor, cursor_width>
13099 <blink_off_cursor, blink_off_cursor_width>: New fields.
13100 Consolidated from output_x, output_w32 and output_mac structs.
13101 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
13102 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
13103
13104 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
13105 Variables consolidated here.
13106 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
13107 (Vcursor_in_non_selected_windows): Renamed from
13108 cursor_in_non_selected_windows and changed to Lisp_Object.
13109 (syms_of_xdisp): Define and staticpro new and moved variables.
13110 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
13111 consolidated here. Recognize Qhollow setting.
13112 (set_frame_cursor_types): New function to set frame cursor types
13113 based on the frame parameters.
13114 (get_window_cursor_type): New function to calculate new cursor
13115 type and width for the specified window. Based on duplicated
13116 code consolidated here.
13117 Enhancements: cursor-in-non-selected-windows may be a cursor type,
13118 check buffer-local alternate-cursor-type and blink-cursor-alist
13119 before using built-in blink off methods.
13120
13121 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
13122
13123 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
13124 (get_specified_cursor_type, get_window_cursor_type)
13125 (set_frame_cursor_types): Added prototypes.
13126
13127 * macfns.c (x_specified_cursor_type): Removed.
13128 (x_set_cursor_type): Use set_frame_cursor_types.
13129 (Qbar, Qbox): Removed.
13130 (syms_of_macfns): Don't intern or staticpro them.
13131
13132 * macterm.c (x_specified_cursor_type): Remove prototype.
13133 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
13134 (x_display_and_set_cursor): Use get_window_cursor_type.
13135 Remove unused local variables cursor_non_selected, active_cursor.
13136 Redraw cursor if hbar cursor width changes.
13137 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
13138
13139 * macterm.h (enum text_cursor_kinds): Removed.
13140 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
13141 <blink_off_cursor, blink_off_cursor_width>: Members removed.
13142 (FRAME_DESIRED_CURSOR): Macro removed.
13143
13144 * w32fns.c (Vblink_cursor_alist): Removed.
13145 (Qbar, Qhbar, Qbox, Qhollow): Removed.
13146 (syms_of_w32fns): Don't intern, staticpro, or define them.
13147 (x_specified_cursor_type): Removed.
13148 (x_set_cursor_type): Use set_frame_cursor_types.
13149
13150 * w32term.c (x_specified_cursor_type): Remove prototype.
13151 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
13152 (x_display_and_set_cursor): Use get_window_cursor_type.
13153 Remove unused local variables cursor_off_state.
13154 Redraw cursor if hbar cursor width changes.
13155 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
13156
13157 * w32term.h (enum text_cursor_kinds): Removed.
13158 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
13159 <blink_off_cursor, blink_off_cursor_width>: Members removed.
13160 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
13161 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
13162 (struct w32_display_info) <x_highlight_frame>: Renamed member from
13163 w32_highlight_frame.
13164
13165 * xfns.c (Vblink_cursor_alist): Removed.
13166 (Qbar, Qhbar, Qbox, Qhollow): Removed.
13167 (syms_of_xfns): Don't intern, staticpro, or define them.
13168 (x_specified_cursor_type): Removed.
13169 (x_set_cursor_type): Use set_frame_cursor_types.
13170
13171 * xterm.c (x_specified_cursor_type): Remove prototype.
13172 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
13173 (x_display_and_set_cursor): Use get_window_cursor_type.
13174 Remove unused local variables cursor_off_state.
13175 Redraw cursor if hbar cursor width changes.
13176
13177 * xterm.h (enum text_cursor_kinds): Removed.
13178 (struct output_x) <current_cursor, desired_cursor, cursor_width>
13179 <blink_off_cursor, blink_off_cursor_width>: Members removed.
13180 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
13181 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
13182 (x_specified_cursor_type): Remove prototype.
13183
13184 2002-08-28 Richard M. Stallman <rms@gnu.org>
13185
13186 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
13187 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
13188 (Vblink_cursor_alist): New variable.
13189 (syms_of_w32fns): Initialize and defvar it.
13190 (x_specified_cursor_type): Recognize Qbox for filled box.
13191 Exceptions are hollow boxes.
13192 (Qbox, Qhollow): New variables.
13193 (syms_of_w32fns): Initialize and staticpro them.
13194
13195 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
13196 New macros.
13197 (struct w32_output): New fields blink_off_cursor,
13198 blink_off_cursor_width.
13199 (FRAME_CURSOR_WIDTH): New macro.
13200
13201 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
13202 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
13203
13204 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
13205 for bar cursor.
13206
13207 * w32term.c (expose_overlaps): New function.
13208 (expose_window): Use it to fix the display of overlapping rows.
13209
13210 2002-08-28 Simon Josefsson <jas@extundo.com>
13211
13212 * xfns.c (Fx_open_connection): Improve help when X connection
13213 fails, xhost is insecure and xauth is better.
13214
13215 2002-08-28 Juanma Barranquero <lektu@terra.es>
13216
13217 * makefile.w32-in: Add missing dependencies on w32term.h and
13218 composite.h.
13219
13220 * emacs.c (USAGE1): Add missing newline.
13221
13222 2002-08-27 Andrew Choi <akochoi@shaw.ca>
13223
13224 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
13225
13226 2002-08-27 Richard M. Stallman <rms@gnu.org>
13227
13228 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
13229 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
13230 (Vblink_cursor_alist): New variable.
13231 (syms_of_xfns): Initialize and defvar it.
13232 (x_specified_cursor_type): Recognize Qbox for filled box.
13233 Exceptions are hollow boxes.
13234 (Qbox, Qhollow): New variables.
13235 (syms_of_xfns): Initialize and staticpro them.
13236
13237 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
13238 New macros.
13239 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
13240
13241 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
13242 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
13243
13244 * emacs.c (main): Handle --script.
13245 (USAGE1): Mention --script.
13246 (standard_args): Define sort order for --script.
13247
13248 2002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
13249
13250 * xdisp.c (redisplay_updating_p): Variable removed.
13251 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
13252 New variables.
13253 (init_iterator): Don't free realized faces if
13254 inhibit_free_realized_faces is set.
13255 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
13256 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
13257 initialize Qinhibit_free_realized_faces.
13258
13259 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
13260 when iterator is adding glyphs to a glyph matrix.
13261
13262 2002-08-27 Kenichi Handa <handa@etl.go.jp>
13263
13264 * xdisp.c (get_next_display_element): In unibyte case, don't use
13265 octal form for such eight-bit characters that can be converted to
13266 multibyte char.
13267
13268 2002-08-26 Kim F. Storm <storm@cua.dk>
13269
13270 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
13271 foreground and background colors. From Joe Buehler.
13272
13273 2002-08-26 Miles Bader <miles@gnu.org>
13274
13275 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
13276
13277 2002-08-25 Andrew Choi <akochoi@shaw.ca>
13278
13279 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
13280 defined instead of MAC_OSX.
13281
13282 * s/darwin.h (select): Define select to sys_select only if
13283 HAVE_CARBON is defined.
13284 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
13285 (DONT_REOPEN_PTY): #def it.
13286
13287 * macterm.c (XTread_socket): Remove code to call
13288 SendEventToEventTarget for keys with command modifiers when
13289 mac_command_key_is_meta is nil.
13290
13291 2002-08-24 Andreas Schwab <schwab@suse.de>
13292
13293 * eval.c (Fdefvar): Fix last change.
13294
13295 2002-08-23 Richard M. Stallman <rms@gnu.org>
13296
13297 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
13298 Record variables in load history as (defvar . VAR).
13299 (Fdefvar): Don't record in load history if no initial value.
13300 (Qdefvar): New variable.
13301 (syms_of_eval): Init and staticpro it.
13302
13303 * lread.c (syms_of_lread): Doc fix.
13304 (build_load_history): Use Fmember to see if a definition
13305 is already in the Vload_history element.
13306
13307 * process.c (Fstart_process): Remove /: from program name.
13308
13309 * emacs.c (decode_env_path): Don't add /: if file name handler
13310 has a `safe-magic' property.
13311
13312 * callproc.c (Fcall_process): Remove /: from program name.
13313
13314 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
13315
13316 * regex.c (PATFETCH): Remove the translating fetch.
13317 (PATFETCH_RAW): Rename to PATFETCH.
13318 (set_image_of_range): New fun.
13319 (SET_RANGE_TABLE_WORK_AREA): Use it.
13320 (regex_compile): Don't translate the pattern chars so eagerly.
13321 Only do it when inserting an `exactn' bytecode or when handling
13322 a char-range.
13323 (mutually_exclusive_p): Avoid empty statement.
13324
13325 2002-08-22 Kim F. Storm <storm@cua.dk>
13326
13327 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
13328 end up on a partially visible line; this reverts a specific part
13329 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
13330 display error which has been reported several times now.
13331 However it introduces the problem that changes was supposed to fix.
13332 See my comments in the source if you want to debug this further.
13333
13334 2002-08-20 Kenichi Handa <handa@etl.go.jp>
13335
13336 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
13337
13338 2002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
13339
13340 * msdos.c (croak): Add `void' to definition.
13341
13342 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
13343 Don't define them, they are defined in msdos.c.
13344
13345 * mem-limits.h [MSDOS]: Declare etext.
13346
13347 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
13348 `const' since CORRECT_DIR_SEPS modifies its target.
13349
13350 2002-08-19 Kim F. Storm <storm@cua.dk>
13351
13352 * keyboard.c (Fclear_this_command_keys): Add optional arg
13353 KEEP-RECORD to avoid clearing lossage when we just want to clear
13354 the current key sequence (kmacro needs this).
13355
13356 2002-08-19 Kenichi Handa <handa@localhost>
13357
13358 * composite.c (run_composition_function): Call FUNC if it is fboundp.
13359
13360 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
13361 cons, return Qnil.
13362
13363 2002-08-17 Richard M. Stallman <rms@gnu.org>
13364
13365 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
13366
13367 * sysdep.c [!VMS]: Include sys/files.h.
13368
13369 * editfns.c (save_restriction_restore): Defend from unchained marker.
13370
13371 * buffer.c (overlays_at): Handle extending vec uniformly.
13372 (overlays_in): Handle extending vec from length 0 as in overlays_at.
13373
13374 2002-08-15 Andrew Choi <akochoi@shaw.ca>
13375
13376 * mac.c (init_mac_osx_environment): New function.
13377
13378 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
13379
13380 2002-08-14 Kim F. Storm <storm@cua.dk>
13381
13382 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
13383 executing macro before appending to it (when used from Lisp).
13384 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
13385 which is called prior to each iteration of macro (for kmacro.el).
13386 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
13387
13388 * lisp.h (Fexecute_kbd_macro): Update prototype.
13389
13390 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
13391
13392 2002-08-14 Kenichi Handa <handa@etl.go.jp>
13393
13394 * xselect.c (QUTF8_STRING): New variable.
13395 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
13396 (x_atom_to_symbol): Likewise.
13397 (x_get_local_selection): New argument local_request. If it is
13398 nonzero, call handler_fn with the second arg nil.
13399 (x_handle_selection_request): Call x_get_local_selection with
13400 local_request 0.
13401 (lisp_data_to_selection_data): Don't encode the string here.
13402 (Fx_get_selection_internal): Call x_get_local_selection with
13403 local_request 1.
13404 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
13405
13406 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
13407
13408 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
13409
13410 2002-08-13 Richard M. Stallman <rms@gnu.org>
13411
13412 * minibuf.c (Fminibufferp): New function.
13413 (syms_of_minibuf): Defsubr it.
13414 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
13415
13416 2002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
13417
13418 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
13419
13420 2002-08-12 Richard M. Stallman <rms@gnu.org>
13421
13422 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
13423 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
13424 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
13425 already.
13426
13427 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
13428
13429 2002-08-11 Andrew Choi <akochoi@shaw.ca>
13430
13431 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
13432 (Vmac_pass_command_to_system): New variable.
13433 (Vmac_pass_control_to_system): New variable.
13434 (do_mouse_moved): Check wp with is_emacs_window.
13435 (XTread_socket): Check window_ptr with is_emacs_window.
13436 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
13437 events back to Mac Toolbox for processing, depending on values of
13438 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
13439 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
13440 Vmac_pass_control_to_system.
13441
13442 2002-08-10 Kenichi Handa <handa@etl.go.jp>
13443
13444 * coding.c (unencodable_char_position): New function.
13445 (Funencodable_char_position): New function.
13446 (syms_of_coding): Defsubr Funencodable_char_position.
13447
13448 2002-08-10 Andrew Choi <akochoi@shaw.ca>
13449
13450 * mac.c (sys_select) [MAC_OSX]: New function.
13451
13452 * macterm.c (MakeMeTheFrontProcess): New function.
13453 (mac_initialize): Call MakeMeTheFrontProcess.
13454
13455 * s/darwin.h: Define select to sys_select.
13456
13457 2002-08-09 Richard M. Stallman <rms@gnu.org>
13458
13459 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
13460
13461 2002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
13462
13463 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
13464 end of the buffer.
13465
13466 2002-08-08 Ken Raeburn <raeburn@mit.edu>
13467
13468 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
13469
13470 * puresize.h (BASE_PURESIZE): Increase to 910000.
13471
13472 2002-08-08 Kenichi Handa <handa@etl.go.jp>
13473
13474 * coding.c (Ffind_operation_coding_system): For write-region, if
13475 VISIT is a filename, make it the target.
13476
13477 2002-08-07 Richard M. Stallman <rms@gnu.org>
13478
13479 * alloc.c (mark_object): Detect long lists for debugging.
13480 (mark_object_loop_halt): New variable.
13481
13482 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
13483
13484 * data.c (Fmake_variable_frame_local): Doc fix.
13485
13486 2002-08-01 David Ponce <david@dponce.com>
13487
13488 * w32menu.c (local_heap, local_alloc, local_free): New macros.
13489 (malloc_widget_value, free_widget_value)
13490 (w32_free_submenu_strings): Use them.
13491
13492 (push_submenu_start, push_submenu_end, push_left_right_boundary)
13493 (push_menu_pane, push_menu_item, single_keymap_panes)
13494 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
13495 (single_submenu, set_frame_menubar)
13496 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
13497
13498 (Fx_popup_menu): Don't show pop up menu until preceding one is
13499 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
13500
13501 * w32menu.c: Changes adapted from xmenu.c
13502 (set_frame_menubar): First parse all submenus,
13503 then make widget_value trees from them.
13504 Don't allocate any widget_value objects
13505 until we are done with the parsing.
13506 (parse_single_submenu): New function.
13507 (digest_single_submenu): New function.
13508 (single_submenu): Function deleted, replaced by those two.
13509
13510 2002-08-04 Andrew Choi <akochoi@shaw.ca>
13511
13512 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
13513 returns a valid window pointer before proceeding for keyDown and
13514 autoKey events.
13515
13516 2002-08-03 Andrew Choi <akochoi@shaw.ca>
13517
13518 * macterm.c (USE_CARBON_EVENTS): New macro.
13519 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
13520 (x_iconify_frame): Call CollapseWindow.
13521 (Vmac_reverse_ctrl_meta): New variable.
13522 (Vmac_wheel_button_is_mouse_2): New variable.
13523 (init_mac_drag_n_drop): New function.
13524 (mac_do_receive_drag): New function.
13525 (mac_handle_service_event): New function.
13526 (init_service_handler): New function.
13527 (mac_to_emacs_modifiers): New function.
13528 (mac_event_to_emacs_modifiers): New function.
13529 (mac_get_mouse_btn): New function.
13530 (mac_convert_event_ref): New function.
13531 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
13532 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
13533 mac_get_mouse_btn.
13534 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
13535
13536 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
13537 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
13538 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
13539 TOOL_BAR_EVENT for MAC_OS as well.
13540 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
13541 as for WINDOWS_NT.
13542 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
13543
13544 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
13545
13546 2002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
13547
13548 * xdisp.c (forward_to_next_line_start): Fix a condition that
13549 lead to a newline being skipped.
13550
13551 2002-08-02 Andrew Choi <akochoi@shaw.ca>
13552
13553 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
13554
13555 2002-08-01 Richard M. Stallman <rms@gnu.org>
13556
13557 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
13558
13559 2002-07-31 Andrew Choi <akochoi@shaw.ca>
13560
13561 * macfns.c: #undef init_process before #define-ing it.
13562
13563 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
13564 HAVE_CARBON is defined.
13565
13566 2002-07-31 Richard M. Stallman <rms@gnu.org>
13567
13568 * xmenu.c (set_frame_menubar): First parse all submenus,
13569 then make widget_value trees from them.
13570 Don't allocate any widget_value objects
13571 until we are done with the parsing.
13572 (parse_single_submenu): New function.
13573 (digest_single_submenu): New function.
13574 (single_submenu): Function deleted, replaced by those two.
13575
13576 2002-07-30 Juanma Barranquero <lektu@terra.es>
13577
13578 * w32proc.c (syms_of_ntproc): Fix docstring of
13579 `w32-get-true-file-attributes'.
13580
13581 2002-07-28 Richard M. Stallman <rms@gnu.org>
13582
13583 * s/hpux8.h (HPUX8): Define this before including hpux.h.
13584 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
13585
13586 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
13587
13588 * keyboard.c (make_lispy_event):
13589 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
13590 Explicitly clear up_modifier in event->modifiers.
13591
13592 2002-07-27 Richard M. Stallman <rms@gnu.org>
13593
13594 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
13595
13596 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
13597 for bar cursor.
13598
13599 2002-07-26 Kenichi Handa <handa@etl.go.jp>
13600
13601 * coding.c (detect_coding_iso2022): While checking a byte sequence
13602 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
13603 it in the normal loop.
13604
13605 2002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
13606
13607 * xterm.c (expose_overlaps): New function.
13608 (expose_window): Use it to fix the display of overlapping rows.
13609
13610 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
13611
13612 2002-07-23 Ken Raeburn <raeburn@gnu.org>
13613
13614 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
13615 since it only depends on XUINT.
13616
13617 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
13618 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
13619 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
13620 Macros deleted.
13621
13622 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
13623 its value over other approaches.
13624 * sysdep.c (start_of_data): Don't define the function if a macro
13625 form has been defined.
13626
13627 2002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
13628
13629 * xdisp.c (redisplay_updating_p): New variable.
13630 (init_iterator): Don't free realized faces when
13631 redisplay_updating_p is set.
13632 (redisplay_internal): Set redisplay_updating_p while updating
13633 the display.
13634
13635 2002-07-23 Richard M. Stallman <rms@gnu.org>
13636
13637 * editfns.c (Fmessage): Treat "" like nil.
13638
13639 2002-07-23 Kenichi Handa <handa@etl.go.jp>
13640
13641 * xdisp.c (face_before_or_after_it_pos):
13642 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
13643
13644 2002-07-22 Juanma Barranquero <lektu@terra.es>
13645
13646 * callproc.c (init_callproc) [DOS_NT]:
13647 Initialize Vshared_game_score_directory to nil.
13648 (syms_of_callproc) [DOS_NT]: Likewise.
13649
13650 2002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
13651
13652 * xdisp.c (display_line): Replace an abort with xassert.
13653
13654 2002-07-21 Richard M. Stallman <rms@gnu.org>
13655
13656 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
13657 and END_UNCHANGED when setting buffer_unchanged_p.
13658 Use current_matrix_up_to_date_p to decide whether to use
13659 try_cursor_movement.
13660
13661 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
13662
13663 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
13664
13665 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
13666 Set to nil if dir does not exist.
13667 (syms_of_callproc): Init unconditionally and simply.
13668
13669 * buffer.c (Fbuffer_list): Doc fix.
13670
13671 2002-07-21 Ken Raeburn <raeburn@gnu.org>
13672
13673 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
13674
13675 * buffer.c (mmap_realloc): When shrinking, make sure number of
13676 pages to unmap is rounded towards zero.
13677
13678 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
13679 (XSETINT): Deleted.
13680
13681 * m/att3b.h (XINT): Don't define.
13682 (VALBITS, VALMASK, XTYPE): Deleted.
13683 (DATA_SEG_BITS): Define.
13684 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
13685 ARRAY_MARK_FLAG): Deleted.
13686 (DATA_SEG_BITS): Define.
13687 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
13688 (DATA_SEG_BITS): Define.
13689
13690 2002-07-20 Richard M. Stallman <rms@gnu.org>
13691
13692 * print.c (print_error_message): New args CONTEXT and CALLER.
13693 Calls changed.
13694
13695 * lisp.h (print_error_message): Declare new args.
13696
13697 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
13698 and CONTEXT to print_error_message, don't print them here.
13699 For a Quit, don't use Vsignaling_function.
13700 Call message_log_maybe_newline.
13701
13702 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
13703
13704 2002-07-20 Kim F. Storm <storm@cua.dk>
13705
13706 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
13707
13708 2002-07-19 Ken Raeburn <raeburn@gnu.org>
13709
13710 * bytecode.c (struct byte_stack): Pointers into byte string now
13711 point to const.
13712 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
13713 const.
13714 * charset.h (BCOPY_SHORT): Source pointer now points to const.
13715 * coding.c (encode_eol, detect_coding, detect_eol):
13716 (decode_coding, encode_coding, detect_coding_system):
13717 Source strings now treated as const.
13718 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
13719 modify Lisp string contents.
13720 * coding.h (decode_coding, encode_coding, detect_coding,
13721 detect_eol): Declarations updated.
13722 * composite.c (compose_chars_in_text): Treat Lisp string contents
13723 as const.
13724 * dispnew.c (safe_bcopy): Source pointer now points to const.
13725 * lisp.h (STRING_COPYIN): New macro.
13726 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
13727 (internal_with_output_to_temp_buffer): Declarations updated.
13728 * print.c (temp_output_buffer_setup):
13729 (internal_with_output_to_temp_buffer): Buffer name argument is now
13730 pointer to const.
13731 * sound.c (struct sound_device): Function pointer field "write"
13732 buffer argument now points to const.
13733 (vox_write): Buffer argument points to const.
13734 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
13735 contents as const.
13736 * sysdep.c (emacs_write): Buffer pointer now const.
13737 * term.c (encode_terminal_code): Buffer pointer now const.
13738 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
13739 (x_face_list_fonts, x_update_menu_appearance):
13740 (hash_string_case_insensitive): Treat Lisp string contents as const.
13741
13742 2002-07-19 Juanma Barranquero <lektu@terra.es>
13743
13744 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
13745
13746 * fileio.c (syms_of_fileio): Likewise.
13747 (Ffile_name_as_directory): Fix argument name in docstring.
13748 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
13749
13750 2002-07-18 Richard M. Stallman <rms@gnu.org>
13751
13752 * data.c (Fdefalias): Doc fix.
13753
13754 2002-07-17 Dave Love <fx@gnu.org>
13755
13756 * intervals.h (text_property_stickiness): Use P_.
13757
13758 * ccl.c: Remove `emacs' conditionals.
13759 (ccl_backtrace_table): Fix size spec.
13760 (ccl_driver): Fix type errors.
13761
13762 2002-07-16 Ken Raeburn <raeburn@gnu.org>
13763
13764 * alloc.c (xstrdup, make_string, make_unibyte_string)
13765 (make_multibyte_string, build_string): String pointer args now
13766 point to const.
13767 * charset.c (find_charset_in_text, c_string_width):
13768 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
13769 * fileio.c (report_file_error):
13770 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
13771 (count_combining_before, count_combining_after, insert_1_both):
13772 (insert, insert_and_inherit, insert_string):
13773 (insert_before_markers, insert_before_markers_and_inherit):
13774 * lread.c (intern, oblookup, hash_string):
13775 * minibuf.c (temp_echo_area_glyphs):
13776 * search.c (fast_c_string_match_ignore_case):
13777 * sysdep.c (emacs_open, set_file_times):
13778 * xfaces.c (xstricmp):
13779 * xdisp.c (store_frame_title, string_char_and_length):
13780 (message_dolog, message2, message2_nolog, set_message): Likewise.
13781 (set_message_1): Cast message string argument to const pointer.
13782 * editfns.c (general_insert_function): Insertion function now
13783 takes pointer to const for input data.
13784 * charset.h (find_charset_in_text, c_string_width):
13785 (parse_str_as_multibyte): Declarations updated.
13786 * dispextern.h (xstricmp): Declaration updated.
13787 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
13788 (count_size_as_multibyte, count_combining_before):
13789 (count_combining_after, insert_1, insert_1_both, message_dolog):
13790 (insert, insert_and_inherit, insert_before_markers)
13791 (insert_before_markers_and_inherit, set_message, message2):
13792 (message2_dolog, build_string, make_string, make_unibyte_string):
13793 (make_multibyte_string, intern, oblookup, report_file_error):
13794 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
13795 (emacs_open, xstrdup): Declarations updated.
13796 * systime.h (set_file_times): Declaration updated.
13797
13798 * charset.c (find_charset_in_text, lisp_string_width): Use const
13799 for pointer to lisp string data.
13800 * charset.h (FETCH_STRING_CHAR_ADVANCE):
13801 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
13802 * coding.c (Ffind_coding_systems_region_interval):
13803 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
13804 (Fmake_directory_internal, Fdelete_directory):
13805 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
13806 * fontset.c (font_family_registry, fs_query_fontset):
13807 (list_fontsets):
13808 * frame.c (Fframe_parameter):
13809 * keyboard.c (cmd_error_internal):
13810 * keymap.c (Fdescribe_buffer_bindings):
13811 * lread.c (complete_filename_p, openp):
13812 * minibuf.c (Fminibuffer_complete_word):
13813 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
13814 (face_before_or_after_it_pos, next_element_from_string):
13815 (get_overlay_arrow_glyph_row, display_mode_element):
13816 (decode_mode_spec_coding):
13817 * xterm.c (same_x_server): Likewise.
13818
13819 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
13820 settings of non-existent fields.
13821
13822 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
13823 copy a lisp value.
13824
13825 * lread.c (Fintern_soft): Use string macros instead of
13826 Lisp_String fields.
13827 * keyboard.c (echo_char, parse_modifiers_uncached):
13828 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
13829 * textprop.c (validate_interval_range, interval_of): Likewise.
13830
13831 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
13832
13833 * charset.h (FETCH_STRING_CHAR_ADVANCE)
13834 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
13835 XSTRING()->size_byte.
13836
13837 * lisp.h (SDATA, SREF): Produce rvalue.
13838 (SSET): New macro.
13839 * alloc.c (make_event_array): Use SSET for storing into a string.
13840 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
13841 a string.
13842 * casefiddle.c (casify_object): Use SSET.
13843 * charset.h (FETCH_STRING_CHAR_ADVANCE)
13844 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
13845 address of string contents.
13846 * data.c (Faref): Use SDATA.
13847 (Faset): Use SDATA, SSET.
13848 * dired.c (directory_files_internal): Use SSET.
13849 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
13850 (Fread_file_name): Use SREF, SSET.
13851 * fns.c (concat): Use SSET.
13852 (concat, Fdelete): Use SDATA.
13853 * insdel.c (insert_from_string_1): Use SDATA.
13854 * keyboard.c (Fevent_convert_list): Use SREF.
13855 * lread.c (Fload): Use SDATA, SSET.
13856 * macfns.c (validate_x_resource_name): Use SSET.
13857 * process.c (status_message): Use SSET.
13858 * search.c (wordify): Use SDATA.
13859 (Freplace_match): Use SREF.
13860 * w32fns.c (validate_x_resource_name): Use SSET.
13861 * xfns.c (validate_x_resource_name): Use SSET.
13862 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
13863
13864 2002-07-16 Richard M. Stallman <rms@gnu.org>
13865
13866 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
13867
13868 * xdisp.c (reconsider_clip_changes):
13869 Don't test prevent_redisplay_optimizations_p.
13870 (redisplay_internal): Test prevent_redisplay_optimizations_p
13871 along with clip_changed in some cases.
13872 (try_window_id): Likewise.
13873 (redisplay_window): New local var buffer_unchanged_p.
13874
13875 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
13876
13877 * process.c (create_process): Test USG_SUBTTY_WORKS.
13878 (process_send_signal): Clean up handling of GID.
13879 Detect errors in ioctls meant to set GID.
13880
13881 * window.c (temp_output_buffer_show):
13882 Don't set prevent_redisplay_optimizations_p.
13883
13884 2002-07-15 Juanma Barranquero <lektu@terra.es>
13885
13886 * eval.c (Fdefvaralias): Add docstring argument.
13887
13888 2002-07-15 Ken Raeburn <raeburn@gnu.org>
13889
13890 * lisp.h (STRING_INTERVALS): Produce rvalue.
13891 (STRING_SET_INTERVALS): New macro.
13892 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
13893 * fns.c (Fstring_as_multibyte): Likewise.
13894 * intervals.c (balance_possible_root_interval, delete_interval)
13895 (create_root_interval, copy_intervals_to_string): Likewise.
13896 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
13897 instead of 0.
13898
13899 2002-07-14 Ken Raeburn <raeburn@gnu.org>
13900
13901 * lisp.h (STRING_SET_CHARS): New macro.
13902 (SCHARS, SBYTES): Produce rvalues.
13903 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
13904 * fns.c (concat): Likewise.
13905 * lread.c (read_vector): Likewise.
13906
13907 * lisp.h (SMBP): Delete. All uses changed to STRING_MULTIBYTE.
13908 (STRING_SET_UNIBYTE): New macro.
13909 (SET_STRING_BYTES): Delete. Callers (all of which supplied a
13910 length of -1) changed to use STRING_SET_UNIBYTE.
13911 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
13912 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
13913 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
13914 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
13915 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
13916 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
13917 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
13918 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
13919 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
13920 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
13921 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
13922 STRING_BYTES or indirection changed to SCHARS, SBYTES,
13923 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
13924 unchanged for now.
13925
13926 2002-07-13 Kim F. Storm <storm@cua.dk>
13927
13928 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
13929
13930 2002-07-12 Richard M. Stallman <rms@gnu.org>
13931
13932 * fileio.c (Fwrite_region): Doc fix.
13933
13934 * print.c (print_error_message): Don't handle Vsignaling_function here.
13935
13936 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
13937 (command_loop_1): Avoid certain actions after memory-full error.
13938
13939 * eval.c (Fsignal): Don't call cancel_hourglass.
13940 For a memory-full error, don't call Vsignal_hook_function
13941 and don't set Vsignaling_function.
13942
13943 * process.c (process_send_signal): Add abort call.
13944
13945 2002-07-11 Markus Rost <rost@math.ohio-state.edu>
13946
13947 * keymap.c (Fkey_binding): Fix typo.
13948
13949 2002-07-11 Richard M. Stallman <rms@gnu.org>
13950
13951 * alloc.c (Vmemory_full): New variable.
13952 (Vmemory_signal_data): Rename from memory_signal_data.
13953 Uses changed.
13954 (syms_of_alloc): Defvar them.
13955 (memory_full, buffer_memory_full): Set Vmemory_full.
13956
13957 * lisp.h (Vmemory_full): Add declaration.
13958 (current_column, indented_beyond_p): Change declaration.
13959
13960 * indent.c (last_known_column): Declare as double, not float.
13961 (current_column, current_column_1, string_display_width)
13962 (position_indentation): Return `double'.
13963 (indented_beyond_p): Arg `column' is `double'. Callers changed.
13964
13965 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
13966 (back_to_previous_visible_line_start)
13967 (reseat_at_next_visible_line_start, next_element_from_buffer):
13968 Use `double', not `float', when calling indented_beyond_p.
13969
13970 * s/hpux11.h (BROKEN_SA_RESTART): Define.
13971
13972 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
13973
13974 2002-07-11 Juanma Barranquero <lektu@terra.es>
13975
13976 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
13977 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
13978 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
13979 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
13980 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
13981 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
13982
13983 2002-07-10 Juanma Barranquero <lektu@terra.es>
13984
13985 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
13986 All callers changed.
13987
13988 2002-07-09 Stefan Monnier <monnier@cs.yale.edu>
13989
13990 * data.c (Fdefalias): Add an optional `docstring' argument.
13991 (set_internal, Fsetq_default): Use XCAR/XCDR.
13992
13993 * composite.c (HASH_VALUE, HASH_KEY):
13994 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
13995
13996 2002-07-09 Kenichi Handa <handa@etl.go.jp>
13997
13998 * callproc.c (Fcall_process): Fix previous change.
13999
14000 2002-07-07 Stefan Monnier <monnier@cs.yale.edu>
14001
14002 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
14003 Add support for hash-tables.
14004 (Ftry_completion): Return t even if the string appears multiple times.
14005
14006 * fns.c (Fnconc): Use XCDR.
14007 (Fprovide): Use CONSP and XCDR.
14008 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
14009 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
14010 (Fmake_hash_table): Accept `:size nil'.
14011 (Fmakehash): Delete: moved to subr.el.
14012 (syms_of_fns): Don't defsubr makehash.
14013
14014 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
14015 (HASH_TABLE_SIZE): Move from fns.c.
14016
14017 2002-07-07 Richard M. Stallman <rms@gnu.org>
14018
14019 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
14020 Instead just return 0 when there is something to be done.
14021 (try_scrolling): If make_cursor_line_fully_visible returns 0,
14022 retry scrolling as if cursor were off the bottom.
14023 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
14024 return CURSOR_MOVEMENT_MUST_SCROLL.
14025 (redisplay_window): If make_cursor_line_fully_visible returns 0,
14026 go to try_to_scroll.
14027
14028 * buffer.c (Fbuffer_local_value): Store current value into its binding
14029 so we get the up-to-date value for the binding that is loaded.
14030
14031 * eval.c (Fdefmacro): Doc fix.
14032
14033 2002-07-05 Dave Love <fx@gnu.org>
14034
14035 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
14036 correctly.
14037
14038 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
14039 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
14040 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
14041 CCL_LookupCharConstTbl.
14042 (syms_of_ccl): Defvar translation-hash-table-vector.
14043
14044 2002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14045
14046 * xdisp.c: Remove unused variable `face'.
14047
14048 2002-07-04 Juanma Barranquero <lektu@terra.es>
14049
14050 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
14051 obsolescence information.
14052
14053 2002-07-03 Andrew Choi <akochoi@shaw.ca>
14054
14055 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
14056 pattern. Search cache first.
14057 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
14058 for Japanese font.
14059 (XLoadQueryFont): Use it.
14060
14061 2002-07-02 Richard M. Stallman <rms@gnu.org>
14062
14063 * keymap.c (Fdefine_key): Doc fix.
14064
14065 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
14066
14067 2002-07-02 Juanma Barranquero <lektu@terra.es>
14068
14069 * keymap.c (syms_of_keymap): Fix typo.
14070
14071 2002-07-01 Andrew Choi <akochoi@shaw.ca>
14072
14073 * s/darwin.h: Define POSIX_SIGNALS.
14074
14075 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
14076 and FSRefMakePath to convert FSSpec returned with Apple Event to
14077 Posix pathname.
14078 (mac_initialize) [TARGET_API_MAC_CARBON]:
14079 Call init_required_apple_events and disable the `Quit' menu item
14080 provided automatically by the Carbon Toolbox.
14081
14082 2002-07-01 Dave Love <fx@gnu.org>
14083
14084 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
14085 for K&R.
14086
14087 * xterm.c: Fix prototype for K&R.
14088
14089 * term.c (costs_set): Declare static, non-initialized for pcc.
14090
14091 2002-07-01 Richard M. Stallman <rms@gnu.org>
14092
14093 * keyboard.c (timer_last_idleness_start_time): New variable.
14094 (timer_start_idle): Set that.
14095 (read_key_sequence): Use that to reset timer_idleness_start_time
14096 to previous value.
14097
14098 * window.c (Frecenter): With arg, set optional_new_start.
14099
14100 * xdisp.c (redisplay_internal): Make optional_new_start really work.
14101
14102 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
14103 buffer for completion.
14104
14105 2002-06-29 Ken Raeburn <raeburn@gnu.org>
14106
14107 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
14108
14109 2002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14110
14111 * keyboard.c (readable_filtered_events): New function that filters
14112 FOCUS_IN_EVENT depending on parameter.
14113 (readable_events): Calls readable_filtered_events, not filtering
14114 FOCUS_IN_EVENT.
14115 (get_filtered_input_pending): New function, filtering parameter passed
14116 to readable_filtered_events.
14117 (get_input_pending): Calls get_filtered_input_pending, not filtering
14118 FOCUS_IN_EVENT.
14119 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
14120 FOCUS_IN_EVENT.
14121
14122 * xterm.h (struct x_output): Add focus_state.
14123
14124 * xterm.c (x_focus_changed): New function.
14125 (x_detect_focus_change): New function.
14126 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
14127 EnterNotify and LeaveNotify to track X focus changes.
14128
14129 2002-06-28 Andreas Schwab <schwab@suse.de>
14130
14131 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
14132
14133 2002-06-27 Kim F. Storm <storm@cua.dk>
14134
14135 * xdisp.c: (mode_line_string_list, mode_line_string_face)
14136 (mode_line_string_face_prop): New variables.
14137 (store_mode_line_string): New function.
14138 (display_mode_element): Use store_mode_line_string to
14139 add mode-line string elements to mode_line_string_list
14140 when mode_line_string_list is non-nil.
14141 (Fformat_mode_line): Now returns propertized string by
14142 default. New arg NO-PROPS to ignore properties.
14143 (decode_mode_spec): Only add two dashes for %- in propertized
14144 mode-line string.
14145 (syms_of_xdisp): Init and staticpro mode_line_string_list.
14146
14147 2002-06-27 Stefan Monnier <monnier@cs.yale.edu>
14148
14149 * minibuf.c (minibuffer_completion_contents): Add return type.
14150
14151 2002-06-27 Juanma Barranquero <lektu@terra.es>
14152
14153 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
14154
14155 2002-06-26 Juanma Barranquero <lektu@terra.es>
14156
14157 * fileio.c (read_file_name_cleanup): Add missing return.
14158
14159 2002-06-26 Richard M. Stallman <rms@gnu.org>
14160
14161 * window.c (Frecenter): Don't set force_start flag.
14162
14163 * minibuf.c (do_completion, Fminibuffer_complete_word)
14164 (Fminibuffer_completion_help): Complete just the text before point.
14165 (minibuffer_completion_contents): New function.
14166
14167 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
14168
14169 * frame.c (frames_bury_buffer): Function deleted.
14170
14171 2002-06-25 Miles Bader <miles@gnu.org>
14172
14173 * callint.c (Fcall_interactively): When checking to see if doprnt hit
14174 the end of callint_message, allow for a terminating '\0'.
14175
14176 2002-06-24 Juanma Barranquero <lektu@terra.es>
14177
14178 * w32select.c: Include composite.h
14179
14180 * w16select.c: Likewise.
14181
14182 2002-06-24 Kenichi Handa <handa@etl.go.jp>
14183
14184 * callproc.c (Fcall_process): If code detection is necessary,
14185 call detect_coding directly here.
14186
14187 * coding.c (detect_eol): Preserve coding->cmp_data.
14188
14189 * w16select.c (Fw16_get_clipboard_data):
14190 * w32fns.c (w32_to_x_font):
14191 * w32select.c (Fw32_get_clipboard_data):
14192 * xselect.c (selection_data_to_lisp_data):
14193 * xterm.c (XTread_socket): Disable composition handling.
14194
14195 2002-06-24 Stefan Monnier <monnier@cs.yale.edu>
14196
14197 * print.c (temp_output_buffer_setup): Kill all local variables.
14198
14199 2002-06-22 Stefan Monnier <monnier@cs.yale.edu>
14200
14201 * lread.c (Fread): Remove redundant and imprecise declaration.
14202
14203 * xfns.c (check_x_display_info): Use check_x_frame.
14204
14205 * .gdbinit (xprintsym): Use the new `xname' field.
14206 (xsymbol): Use it.
14207
14208 2002-06-22 Jason Rumney <jasonr@gnu.org>
14209
14210 * w32fns.c (file_dialog_callback): New function.
14211 (Fx_file_dialog): Allow selecting directories as well as files.
14212
14213 2002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14214
14215 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
14216 OpenBSD. Add support for mipseb-*-netbsd* machines.
14217
14218 2002-06-17 Andrew Choi <akochoi@shaw.ca>
14219
14220 * macterm.c (mac_scroll_area): Set foreground and backcolor to
14221 black and white before scrolling. Restore frame background and
14222 foreground color after scrolling.
14223 (do_window_update): Call XClearWindow before calling expose_frame.
14224 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
14225 FRAME_FOREGROUND_PIXEL of frame.
14226
14227 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
14228 test Mac command key as <ALT> key.
14229
14230 2002-06-17 Stefan Monnier <monnier@cs.yale.edu>
14231
14232 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
14233
14234 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
14235 Lookup keys in function-key-map immediately so that key-translation-map
14236 can be applied earlier.
14237 Remove function_key_possible and key_translation_possible, replaced
14238 by checking `keytran_start < t'.
14239
14240 * .gdbinit (xsymbol): Use the new `xname' field.
14241
14242 2002-06-17 Andrew Choi <akochoi@shaw.ca>
14243
14244 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
14245 test Mac command key as <ALT> key.
14246
14247 * mac.c (do_applescript): Call initialize_applescript if necessary
14248 when first called. Dispose of result_desc only when there is no error.
14249 (Fdo_applescript): Use %d format specifier instead of %ld.
14250
14251 2002-06-16 Andrew Choi <akochoi@shaw.ca>
14252
14253 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
14254 of FrontWindow for cases keyDown and autoKey.
14255
14256 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
14257 Vdefault_fontset to Monaco with mac-roman coding.
14258
14259 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
14260 init_process before and after inclusion of Carbon/Carbon.h, resp.
14261
14262 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
14263 cursor_gc.
14264 (add_font_name_table_entry): New function.
14265 (init_font_name_table): Use add_font_name_table_entry; add italic,
14266 bold, and bold-italic entries for truetype fonts.
14267
14268 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
14269 for Mac too.
14270 (try_font_list) [MAC_OS]: If no font matches given registry, try
14271 fonts with any registry matching face_family.
14272 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
14273
14274 * s/darwin.h: If autoconf detects the Ncurses library, define
14275 LIBS_TERMCAP to -lncurses to use it.
14276
14277 2002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
14278
14279 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
14280
14281 2002-06-15 Richard M. Stallman <rms@gnu.org>
14282
14283 * window.c (Fset_window_configuration): Explicitly preserve
14284 the point value that new_current_buffer had at the start.
14285
14286 2002-06-14 Juanma Barranquero <lektu@terra.es>
14287
14288 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
14289 Fix typos.
14290
14291 2002-06-14 Kim F. Storm <storm@cua.dk>
14292
14293 * insdel.c (insert_1_both, insert_from_string_1)
14294 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
14295 insert happened in the end_unchanged region. Otherwise, the
14296 redisplay may be confused and duplicate the last line in the
14297 buffer [seen after save-buffer when require-final-newline==t].
14298
14299 2002-06-13 Jason Rumney <jasonr@gnu.org>
14300
14301 * w32.c (init_environment): Remove EMACSLOCKDIR.
14302 (stat): Swap _S_IFDIR and _S_IFREG.
14303
14304 2002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14305
14306 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
14307 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
14308 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
14309 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
14310 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
14311 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
14312 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
14313 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
14314 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
14315 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
14316 SELECTION_REQUEST_EVENT, selection_clear_event to
14317 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
14318 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
14319 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
14320 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
14321 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
14322 no_event to NO_EVENT.
14323
14324 2002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14325
14326 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
14327
14328 2002-06-12 Stefan Monnier <monnier@cs.yale.edu>
14329
14330 * intervals.c (textget): Don't forget to `return'.
14331 (lookup_char_property): Use XCAR/XCDR.
14332
14333 2002-06-12 Juanma Barranquero <lektu@terra.es>
14334
14335 * xdisp.c (Fformat_mode_line): Fix typo.
14336
14337 2002-06-12 Kim F. Storm <storm@cua.dk>
14338
14339 * xdisp.c (Fformat_mode_line): New function.
14340 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
14341 (store_frame_title_char, store_frame_title): Use unconditionally.
14342 (init_xdisp): Defsubr Fformat_mode_line.
14343 Initialize frame_title_buf etc. unconditionally.
14344
14345 2002-06-11 Stefan Monnier <monnier@cs.yale.edu>
14346
14347 * keyboard.c (read_key_sequence):
14348 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
14349 things through those maps after downcasing events.
14350 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
14351 applies after function-key-map.
14352 Make sure that keytran can be done in the middle in the sequence.
14353 Be careful not to throw away events past the one we downcase.
14354
14355 * lread.c (read_integer): Remove unused var `tem'.
14356 (read1): Fix int/Lisp_Object mixup.
14357
14358 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
14359
14360 2002-06-11 Richard M. Stallman <rms@gnu.org>
14361
14362 * keyboard.c (readable_events): Ignore any number of
14363 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
14364
14365 2002-06-09 Miles Bader <miles@gnu.org>
14366
14367 * xfaces.c (Ftty_supports_face_attributes_p): New function.
14368 (parse_rgb_list, tty_lookup_color): New functions.
14369 (tty_defined_color): Use `tty_lookup_color' to do all the work.
14370 (color_distance, Fcolor_distance): New functions.
14371 (TTY_SAME_COLOR_THRESHOLD): New macro.
14372 (Qtty_color_standard_values): New variable.
14373 (syms_of_xfaces): Initialize new vars & functions.
14374
14375 2002-06-08 Colin Walters <walters@verbum.org>
14376
14377 * textprop.c (Vchar_property_alias_alist): New variable.
14378 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
14379
14380 * intervals.c (lookup_char_property): New function for looking up
14381 overlay and text properties, created from textget.
14382 (textget): Use it.
14383
14384 * intervals.h (lookup_char_property): Declare.
14385 (Vchar_property_alias_alist): Declare.
14386
14387 * buffer.c (Foverlay_get): Use lookup_char_property.
14388
14389 2002-06-07 Sam Steingold <sds@gnu.org>
14390
14391 * xselect.c (lisp_data_to_selection_data): Fix last change:
14392 *data_ret is not a Lisp string, while unibyte_string is.
14393
14394 2002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
14395
14396 * xselect.c (lisp_data_to_selection_data): Fix last change:
14397 set size_ret.
14398
14399 2002-06-07 Andreas Schwab <schwab@suse.de>
14400
14401 * m/amdx86-64.h: New file.
14402
14403 2002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
14404
14405 * fns.c (Fstring_make_unibyte): Doc fix.
14406
14407 * xselect.c (lisp_data_to_selection_data): If the requested type
14408 is STRING, call string_make_unibyte to encode the selected text
14409 as a string.
14410
14411 * window.c (Fset_window_hscroll): Doc fix.
14412
14413 2002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14414
14415 * fileio.c (choose_write_coding_system):
14416 Call select-safe-coding-system properly.
14417
14418 2002-06-03 Richard M. Stallman <rms@gnu.org>
14419
14420 * xdisp.c (message_with_string): Error if STRING is not a string.
14421
14422 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
14423
14424 * fileio.c (choose_write_coding_system): Pass FILE arg to
14425 Vselect_safe_coding_system_function.
14426
14427 2002-06-03 Ken Raeburn <raeburn@gnu.org>
14428
14429 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
14430
14431 2002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
14432
14433 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
14434 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
14435 * keymap.c (describe_command): Likewise.
14436 * minibuf.c (read_minibuf): Likewise.
14437
14438 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
14439 Cast `current_column' return value to int.
14440 (back_to_previous_visible_line_start)
14441 (reseat_at_next_visible_line_start, next_element_from_buffer):
14442 Cast `indented_beyond_p' 3rd arg to float.
14443
14444 * indent.c (last_known_column): Now a float.
14445 (current_column_1, position_indentation, current_column)
14446 (string_display_width): Return float.
14447 (Fcurrent_column): Cast `current_column' return value to int.
14448 (Fcurrent_indentation): Cast `position_indentation' retval to int.
14449 (indented_beyond_p): Third arg now a float.
14450 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
14451
14452 * lisp.h (current_column): Now returns float.
14453 (indented_beyond_p): 3rd arg now a float.
14454
14455 2002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
14456
14457 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
14458 is Qcompound_text_with_extensions.
14459
14460 * xselect.c (lisp_data_to_selection_data): Always set selection
14461 type as string if x_encode_text returns streingp non-NULL.
14462
14463 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
14464
14465 2002-05-30 Richard M. Stallman <rms@gnu.org>
14466
14467 * window.c (Fset_window_configuration): Correct the handling
14468 of point in current buffer, to work with multiple windows.
14469
14470 2002-05-29 Colin Walters <walters@verbum.org>
14471
14472 * lread.c (Fread_from_string): Don't depend on order of evaluation
14473 for C function parameters.
14474
14475 2002-05-28 Richard M. Stallman <rms@gnu.org>
14476
14477 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
14478 way for blinked-off state and for a nonselected window.
14479
14480 * window.c (window_scroll_pixel_based): Don't call Fbolp;
14481 instead, see if the new start pos is at beginning of line.
14482
14483 * fileio.c (Fwrite_region): If START is a string, don't
14484 make any annotations.
14485
14486 * eval.c (syms_of_eval): Doc fix.
14487
14488 2002-05-28 Colin Walters <walters@debian.org>
14489
14490 * emacs.c (USAGE1): Add --no-splash.
14491 (standard_args): Ditto.
14492
14493 2002-05-28 Colin Walters <walters@gnu.org>
14494
14495 * lread.c (readchar_count): New variable.
14496 (readchar): Increment it.
14497 (unreadchar): Decrement it.
14498 (read_multibyte): Decrement it.
14499 (Vread_with_symbol_positions): New variable.
14500 (Vread_symbol_positions_list): New variable.
14501 (read_internal_start): New function, created from Fread and
14502 Fread_from_string. Handle Vread_symbol_positions_list and
14503 Vread_with_symbol_positions.
14504 (readevalloop, Fread, Fread_from_string): Use it.
14505 (read1): Use readchar_count to add symbol positions to
14506 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
14507 (syms_of_lread): DEFVAR_LISP and initialize them.
14508
14509 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
14510 (substitute_object_recurse, substitute_object_in_subtree)
14511 (substitute_in_interval): Prototype.
14512 (read_multibyte): Return c if it's less than zero.
14513
14514 2002-05-28 Kim F. Storm <storm@cua.dk>
14515
14516 * fileio.c (Fread_file_name_internal): Added brute-force
14517 speed up for using predicate file-directory-p.
14518
14519 2002-05-28 Kim F. Storm <storm@cua.dk>
14520
14521 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
14522 New variables.
14523 (syms_of_fileio): DEFVAR_LISP them.
14524 (read_file_name_cleanup): New unwind function.
14525 (Fread_file_name_internal): Only return completions satifying
14526 Vread_file_name_predicate. Temporarily unwind protect and rebind
14527 default-directory while checking completions against the predicate.
14528 (Fread_file_name): Added PREDICATE argument. Specbind it to
14529 Vread_file_name_predicate during completion.
14530 Call Vread_file_name_function to read the file name if non-nil.
14531
14532 * lisp.h (Fread_file_name): Now has 6 args.
14533
14534 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
14535 predicate for Fread_file_name when reading directory name.
14536 Supply Qnil for predicate in other calls to Fread_file_name.
14537
14538 2002-05-26 Miles Bader <miles@gnu.org>
14539
14540 * term.c (tty_capable_p): New function.
14541 * dispextern.h (tty_capable_p): New function declaration.
14542 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
14543 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
14544
14545 2002-05-23 Stefan Monnier <monnier@cs.yale.edu>
14546
14547 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
14548 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
14549 (Vwrite_region_annotate_functions): Docstring fix.
14550
14551 2002-05-23 Kim F. Storm <storm@cua.dk>
14552
14553 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
14554 phys_cursor's hpos is overwritten. This is still not completely
14555 correct, as it doesn't really make sense to use hpos at all to
14556 get the cursor glyph (as that is relative to the width of the
14557 characters on the line, which may have changed during the update).
14558
14559 2002-05-22 Jason Rumney <jasonr@gnu.org>
14560
14561 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
14562 Lisp_Object.
14563 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
14564 Use modified enumfont_t struct.
14565
14566 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
14567
14568 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
14569 Handle the `hbar' cursor type.
14570 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
14571
14572 * w32fns.c (Qhbar): New variable.
14573 (x_specified_cursor_type): Use it.
14574
14575 2002-05-21 Ken Raeburn <raeburn@gnu.org>
14576
14577 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
14578 now, when the address is needed.
14579
14580 2002-05-21 Colin Walters <walters@gnu.org>
14581
14582 * Makefile.in (shortlisp): Add font-core.el.
14583
14584 2002-05-20 Richard M. Stallman <rms@gnu.org>
14585
14586 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
14587
14588 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
14589 equivalent key bindings here.
14590
14591 2002-05-20 Ken Raeburn <raeburn@gnu.org>
14592
14593 Change symbol structure to contain a lisp object for the symbol
14594 name:
14595 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
14596 object field named "xname".
14597 (SYMBOL_NAME): New macro.
14598 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
14599 name field.
14600 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
14601 (mark_object, gc_sweep): Use symbol xname field and XSTRING
14602 instead of name field.
14603 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
14604 SYMBOL_NAME instead of XSYMBOL and name field.
14605 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
14606 instead of XSYMBOL and name field.
14607 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
14608 and SYMBOL_NAME instead of XSYMBOL and name field.
14609 * coding.c (Fread_coding_system, code_convert_region1)
14610 (code_convert_string1, code_convert_string_norecord)
14611 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
14612 XSYMBOL and name field.
14613 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
14614 (Fmake_variable_buffer_local, Fmake_local_variable)
14615 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
14616 of XSYMBOL and name field.
14617 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
14618 XSYMBOL and name field.
14619 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
14620 instead of XSYMBOL and name field.
14621 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
14622 XSYMBOL and name field.
14623 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
14624 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
14625 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
14626 instead of XSYMBOL and name field.
14627 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
14628 (parse_modifiers, apply_modifiers, Fevent_convert_list)
14629 (parse_solitary_modifier, Fexecute_extended_command):
14630 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
14631 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
14632 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
14633 of XSYMBOL and name field.
14634 (describe_command, describe_translation): Use SYMBOL_NAME and
14635 assignment instead of XSYMBOL and name field and XSETSTRING.
14636 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
14637 instead of XSYMBOL and name field.
14638 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
14639 name field and XSETSTRING.
14640 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
14641 of XSYMBOL and name field.
14642 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
14643 assignment instead of XSYMBOL and name field and XSETSTRING.
14644 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
14645 XSTRING instead of XSYMBOL and name field.
14646 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
14647 and XSTRING instead of XSYMBOL and name field.
14648 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
14649 and XSTRING instead of XSYMBOL and name field.
14650 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
14651 XSTRING instead of XSYMBOL and name field.
14652 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
14653 of XSYMBOL and name field.
14654 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
14655 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
14656
14657 2002-05-19 Ken Raeburn <raeburn@gnu.org>
14658
14659 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
14660 and XCDR real rvalues in most configurations.
14661
14662 * buffer.c (fix_overlays_in_range, fix_overlays_before):
14663 Don't take the address of the cdr part of a cons cell; instead, track
14664 the parent cell and call XSETCDR, or set the variable for the head
14665 of the list if we haven't started down the list yet.
14666
14667 2002-05-19 Richard M. Stallman <rms@gnu.org>
14668
14669 * doc.c (reread_doc_file): Don't ask for confirmation.
14670
14671 2002-05-18 Jason Rumney <jasonr@gnu.org>
14672
14673 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
14674 (xbm_load_image): Use it.
14675 (xbm_load): Ditto.
14676 (xbm_read_bitmap_data): Reverted to xfns.c version.
14677 From David Ponce <david@dponce.com>.
14678
14679 2002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
14680
14681 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
14682 2.02 and later.
14683
14684 2002-05-16 Juanma Barranquero <lektu@terra.es>
14685
14686 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
14687
14688 2002-05-15 Stefan Monnier <monnier@cs.yale.edu>
14689
14690 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
14691 meaningful test.
14692 (read_char_minibuf_menu_prompt): Fix typo.
14693
14694 2002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
14695
14696 * eval.c (Fcommandp): Doc fix.
14697
14698 2002-05-13 Stefan Monnier <monnier@cs.yale.edu>
14699
14700 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
14701 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
14702 (Fset_keymap_parent): Gcpro a bit more.
14703 (access_keymap): Gcpro around meta_map call and around the main loop.
14704 (get_keyelt): Gcpro when following indirect references.
14705 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
14706 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
14707 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
14708 Remove useless ad-hoc remap code.
14709
14710 2002-05-13 Richard M. Stallman <rms@gnu.org>
14711
14712 * search.c (search_buffer): Give up boyer moore search if inverse
14713 translation change charset_base.
14714
14715 2002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
14716
14717 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
14718 characters is carried over from the previous block of text, adjust
14719 coding->produced to account for the extra character.
14720
14721 2002-05-11 Andreas Schwab <schwab@suse.de>
14722
14723 * coding.c (intersection): Keep the elements of the returned list
14724 in the same order as in the first list.
14725
14726 2002-05-11 Kim F. Storm <storm@cua.dk>
14727
14728 * keymap.c (current_minor_maps): Fix resizing of cmm_maps;
14729 only update cmm_size if realloc actually succeeds.
14730 Testing with initial size of 2 elements revealed that using
14731 realloc on GNU/Linux would cause a random trap in xmalloc
14732 later on, so I rewrote the code to use malloc/bcopy/free instead
14733 of realloc.
14734
14735 2002-05-10 Jason Rumney <jasonr@gnu.org>
14736
14737 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
14738
14739 2002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
14740
14741 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
14742 parens, to ensure correct evaluation order.
14743
14744 2002-05-10 Kim F. Storm <storm@cua.dk>
14745
14746 * keymap.c (Vemulation_mode_map_alists): New variable.
14747 (syms_of_keymap): DEFVAR_LISP it.
14748 (current_minor_maps): Process keymap alists in that list before
14749 minor-mode-overriding-map-alist and minor-mode-map-alist.
14750
14751 2002-05-09 Richard M. Stallman <rms@gnu.org>
14752
14753 * search.c (Freplace_match): Doc fix.
14754
14755 2002-05-09 Kim F. Storm <storm@cua.dk>
14756
14757 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
14758 Enlarge cursor rectangle drawn around image with non-zero relief.
14759
14760 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
14761 Enlarge cursor rectangle drawn around image with non-zero relief.
14762
14763 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
14764 Enlarge cursor rectangle drawn around image with non-zero relief.
14765
14766 2002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
14767
14768 * xselect.c (lisp_data_to_selection_data): Don't set selection
14769 type if comes from the Lisp object's car. If the selection
14770 contains a pure ASCII text, always return QSTRING as its type.
14771
14772 2002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14773
14774 * mac.c (mac-cut-function): Doc fix.
14775
14776 2002-05-05 Richard M. Stallman <rms@gnu.org>
14777
14778 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
14779
14780 2002-05-04 Jason Rumney <jasonr@gnu.org>
14781
14782 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
14783 for event-click-count.
14784
14785 * process.c (init_process): Only add server subfeature if we can
14786 use non-blocking I/O.
14787
14788 2002-05-04 Andrew Choi <akochoi@shaw.ca>
14789
14790 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
14791 repeatedly.
14792
14793 2002-05-03 Jason Rumney <jasonr@gnu.org>
14794
14795 * process.c (Fmake_network_process): Only support server sockets
14796 when we can make them non-blocking.
14797
14798 * s/ms-w32.h (HAVE_SELECT): Define.
14799
14800 * w32.h (FILE_NDELAY): New flag.
14801
14802 * w32.c (sys_getpeername, fcntl): New functions.
14803 (_sys_read_ahead): Temporarily block on non-blocking sockets.
14804
14805 * w32proc.c: include sys/file.h.
14806
14807 2002-05-03 Colin Walters <walters@verbum.org>
14808
14809 * callproc.c (Vgame_score_directory): Renamed to
14810 Vshared_game_score_directory.
14811
14812 2002-04-30 Richard M. Stallman <rms@gnu.org>
14813
14814 * s/gnu.h [emacs]: Include stdio.h.
14815 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
14816
14817 * eval.c (do_autoload): Error if called while preparing to dump.
14818
14819 * fns.c (Frequire): Error if need to load while preparing to dump.
14820
14821 2002-04-28 Colin Walters <walters@verbum.org>
14822
14823 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
14824 Default to "~/.emacs.d/games".
14825
14826 2002-04-29 Stefan Monnier <monnier@cs.yale.edu>
14827
14828 * lread.c (openp): Change arg exec_only to predicate.
14829 (build_load_history): Use XCAR/XCDR.
14830 (Flocate_file_internal): New fun.
14831 (syms_of_lread): Defsubr it.
14832 (Fload): Update call to openp.
14833
14834 * lisp.h (openp): Update prototype.
14835
14836 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
14837 * w32proc.c (sys_spawnve):
14838 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
14839 * w32.c (check_windows_init_file):
14840 * sound.c (Fplay_sound_internal):
14841 * process.c (Fstart_process):
14842 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
14843 * mac.c (run_mac_command):
14844 * emacs.c (init_cmdargs):
14845 * callproc.c (Fcall_process): Update call to openp.
14846
14847 * textprop.c (remove_properties): Don't use XCAR without CONSP.
14848
14849 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
14850
14851 2002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14852
14853 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
14854 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
14855
14856 2002-04-28 Richard M. Stallman <rms@gnu.org>
14857
14858 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
14859
14860 * eval.c (Fcommandp): New arg for_call_interactively.
14861 * lisp.h (Fcommandp): Declare new arg.
14862
14863 2002-04-28 Jason Rumney <jasonr@gnu.org>
14864
14865 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
14866
14867 * w32.c (stat, fstat): Use file index information to generate
14868 inodes for directories where available.
14869
14870 2002-04-26 Andrew Choi <akochoi@shaw.ca>
14871
14872 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
14873 [HAVE_CARBON]: Include Mac object files.
14874
14875 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
14876 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
14877 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
14878 MAC_OSX, and MAC_OS instead of macintosh.
14879
14880 * editfns.c [MAC_OS8]: Include stdio.h.
14881
14882 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
14883
14884 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
14885 Apple Monaco.
14886
14887 * process.c (QCfamily, QCfilte): Declare extern.
14888 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
14889 calling select.
14890
14891 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
14892
14893 * tparam.c [MAC_OSX]: Don't define BC and UP.
14894
14895 * config.in [HAVE_CARBON]: Add.
14896
14897 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
14898 Move here from mac/src and mac/inc.
14899
14900 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
14901
14902 2002-04-26 Gerd Moellmann <gerd@gnu.org>
14903
14904 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
14905 Compute phys_cursor_width from the x position returned
14906 by x_draw_glyhs, which is cheaper.
14907 (x_display_and_set_cursor): Compute the buffer-local value
14908 of `cursor-in-non-selected-windows' only when needed.
14909
14910 2002-04-25 Gerd Moellmann <gerd@gnu.org>
14911
14912 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
14913 cursor on a stretch glyph has a width that depends on
14914 x_stretch_cursor_p.
14915
14916 2002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14917
14918 * abbrev.c (abbrev-start-location): Doc fix.
14919
14920 * indent.c (Fvertical_motion): Fix last change.
14921
14922 2002-04-25 Gerd Moellmann <gerd@gnu.org>
14923
14924 * indent.c (Fvertical_motion): Move to the start of the line
14925 containing PT before moving up or down.
14926
14927 2002-04-24 Gerd Moellmann <gerd@gnu.org>
14928
14929 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
14930 case of writing a whole row, more or less analogous to the case of
14931 writing only parts of a row.
14932
14933 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
14934 0 for NO_CURSOR.
14935
14936 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
14937
14938 2002-04-23 Colin Walters <walters@verbum.org>
14939
14940 * buffer.c (syms_of_buffer): Doc fix.
14941
14942 2002-04-23 Gerd Moellmann <gerd@gnu.org>
14943
14944 * xterm.c (notice_overwritten_cursor): Handle the special case
14945 of the cursor being in the first blank non-text line at the
14946 end of a window.
14947
14948 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
14949 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
14950 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
14951 bar cursors only, to make phys_cursor_width contain what its name
14952 suggests.
14953 (notice_overwritten_cursor): Consider the cursor image erased if
14954 the output area intersects the cursor image in y-direction.
14955
14956 2002-04-23 Simon Marshall <simon@gnu.org>
14957
14958 * xfns.c (x_set_mouse_color): Change default for cross_cursor
14959 to XC_hand2.
14960
14961 2002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14962
14963 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
14964
14965 2002-04-22 Kim F. Storm <storm@cua.dk>
14966
14967 * textprop.c (remove_properties): Fixed trap for malformed plist.
14968
14969 2002-04-22 Richard M. Stallman <rms@gnu.org>
14970
14971 * cmds.c (Fend_of_line): Handle intangible text in mid line.
14972
14973 * window.c (make_window): Initialize height_fixed_p,
14974 last_cursor_off_p, and p->cursor_off_p slots.
14975
14976 2002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14977
14978 * fns.c (use-dialog-box): Doc fix.
14979
14980 2002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14981
14982 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
14983 variables `row', `i' and `area'.
14984 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
14985 toolkit library.
14986
14987 2002-04-19 Stefan Monnier <monnier@cs.yale.edu>
14988
14989 * xfaces.c (clear_font_table): Don't free the default font of
14990 a frame even if it's on another display.
14991 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
14992 that could be Qt.
14993
14994 2002-04-19 Juanma Barranquero <lektu@terra.es>
14995
14996 * indent.c (Fmove_to_column): Remove unused local variable
14997 `next_boundary_byte'.
14998 (current_column_1): Likewise.
14999
15000 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
15001
15002 * msdos.c (Qhbar): New variable.
15003 (syms_of_msdos): Intern and staticpro it.
15004 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
15005 cursor type.
15006
15007 2002-04-19 Dave Lambert <dlambert@acm.org>
15008
15009 Theses change implement an underscore-like (`hbar') cursor.
15010
15011 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
15012
15013 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
15014 Handle the `hbar' cursor type.
15015 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
15016
15017 * xfns.c (Qhbar): New variable.
15018 (syms_of_xfns): Intern and staticpro it.
15019 (x_specified_cursor_type): Handle `hbar' cursor.
15020
15021 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
15022 not defined.
15023
15024 2002-04-18 Richard M. Stallman <rms@gnu.org>
15025
15026 * textprop.c (remove_properties): New arg LIST allows scanning
15027 either a list or a plist.
15028 (interval_has_some_properties_list): New function, like
15029 interval_has_some_properties using list instead of plist.
15030 All callers changed.
15031 (Fremove_list_of_text_properties): New function.
15032 (syms_of_textprop): Defsubr it.
15033
15034 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
15035
15036 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
15037
15038 2002-04-17 Juanma Barranquero <lektu@terra.es>
15039
15040 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
15041
15042 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
15043
15044 * window.c (coordinates_in_window): Don't report on margin area
15045 if its width is zero.
15046
15047 2002-04-16 Jason Rumney <jasonr@gnu.org>
15048
15049 * w32fns.c (Fx_file_dialog): Decode file name before using.
15050
15051 * w32term.c (construct_drag_n_drop): Likewise.
15052
15053 2002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
15054
15055 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
15056 store load-history in pure space.
15057
15058 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
15059
15060 2002-04-16 Stefan Monnier <monnier@cs.yale.edu>
15061
15062 * xterm.c (Qlatin_1, Qutf_8): New vars.
15063 (syms_of_xterm): Initialize them.
15064 (XTread_socket): Eliminate incorrect optimization that tried to avoid
15065 decoding the output of X*LookupString.
15066 Always use latin-1 to decode the output of XLookupString.
15067 Try Xutf8LookupString if XmbLookupString failed.
15068
15069 * region-cache.c (new_region_cache): Use BEG.
15070
15071 2002-04-16 Gerd Moellmann <gerd@gnu.org>
15072
15073 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
15074 configuration files.
15075 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
15076 returns 0.
15077
15078 2002-04-15 Andreas Schwab <schwab@suse.de>
15079
15080 * config.in: Regenerated using autoheader.
15081
15082 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
15083 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
15084 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
15085 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
15086 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
15087 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
15088 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
15089 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
15090 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
15091 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
15092 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
15093 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
15094 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
15095 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
15096 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
15097 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
15098 STACK_DIRECTION, now set by autoconf.
15099
15100 2002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15101
15102 * dispnew.c (marginal_area_string): Sort arguments.
15103
15104 * dispextern.h (marginal_area_string): Add prototype.
15105
15106 2002-04-13 Richard M. Stallman <rms@gnu.org>
15107
15108 * fileio.c (Finsert_file_contents):
15109 Don't call temp_output_buffer_setup--do just part, by hand.
15110
15111 * coding.c (run_pre_post_conversion_on_str):
15112 Don't call temp_output_buffer_setup--do just part, by hand.
15113
15114 * keyboard.c (command_loop_1): Don't call start_hourglass
15115 or cancel_hourglass when executing a macro.
15116
15117 * marker.c (count_markers): New function.
15118
15119 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
15120 grow without limit. Move recently used elements to the front.
15121
15122 2002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
15123
15124 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
15125
15126 2002-04-12 Gerd Moellmann <gerd@gnu.org>
15127
15128 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
15129 rows marginal areas.
15130 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
15131 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
15132
15133 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
15134
15135 2002-04-12 Dave Love <fx@gnu.org>
15136
15137 * dispnew.c (marginal_area_string): New.
15138
15139 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
15140 (Qleft_margin, Qright_margin): Declare.
15141 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
15142
15143 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
15144 note_mode_line_highlight and extended.
15145
15146 * keyboard.c (Qleft_margin, Qright_margin): Declare.
15147 (make_lispy_event): Deal with mouse events in margins.
15148
15149 2002-04-12 Stefan Monnier <monnier@cs.yale.edu>
15150
15151 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
15152
15153 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
15154 than deactivating the mark if tmm is set to `lambda'.
15155 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
15156 Use a single event for HELP_EVENT.
15157 (Fexecute_extended_command): Save last_point_position.
15158
15159 2002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15160
15161 * lisp.h (Fpropertize): Add prototype.
15162
15163 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
15164
15165 2002-04-10 Colin Walters <walters@verbum.org>
15166
15167 * config.in: Add HAVE_SHARED_GAME_DIR.
15168
15169 * callproc.c: (Vgame_score_directory): New variable.
15170 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
15171
15172 2002-04-10 Richard M. Stallman <rms@gnu.org>
15173
15174 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
15175
15176 2002-04-09 Stefan Monnier <monnier@cs.yale.edu>
15177
15178 * minibuf.c (read_minibuf): Use empty_string.
15179 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
15180 Short-circuit the search as soon as it "failed".
15181 (Fall_completions): Allow lambda forms and lists of strings for alist.
15182 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
15183 when require_match is nil.
15184 (Ftest_completion): Rename from `test_completion' and export to elisp.
15185 Call the predicate also when alist is a list.
15186 Obey Vcompletion_regexp_list.
15187 (do_completion, Fminibuffer_complete_and_exit): Use it.
15188 (Fassoc_string): Rename from `assoc_for_completion'.
15189 Allow list of strings as well and export to elisp.
15190
15191 2002-04-08 Stefan Monnier <monnier@cs.yale.edu>
15192
15193 * puresize.h (BASE_PURESIZE): Increase to 900KB.
15194
15195 2002-04-08 Juanma Barranquero <lektu@terra.es>
15196
15197 * w32.c (sys_accept): Don't hide variable `s'.
15198
15199 2002-04-05 Gerd Moellmann <gerd@gnu.org>
15200
15201 * callint.c (Fcall_interactively): Use INTEGERP instead of
15202 NUMBERP for checking Vhistory_length.
15203
15204 2002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15205
15206 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
15207 Doc fix to reflect it.
15208
15209 2002-04-04 Richard M. Stallman <rms@gnu.org>
15210
15211 * xdisp.c (display_mode_element): New arg RISKY.
15212 Disregard text props found or specified within a variable
15213 that isn't marked risky-local-variable.
15214 (Qrisky_local_variable): New variable.
15215 (syms_of_xdisp): Init and staticpro it.
15216
15217 2002-04-04 Stefan Monnier <monnier@cs.yale.edu>
15218
15219 * undo.c (record_point): New fun.
15220 (record_delete, record_insert): Use it.
15221
15222 2002-04-03 Juanma Barranquero <lektu@terra.es>
15223
15224 * doc.c (Fdocumentation): Add missing parentheses.
15225 (Fdocumentation_property): Likewise.
15226
15227 2002-04-03 Stefan Monnier <monnier@cs.yale.edu>
15228
15229 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
15230 data is 0, just return nil.
15231
15232 2002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
15233
15234 * msdos.c (syms_of_msdos): Fix last change with
15235 mouse_autoselect_window.
15236
15237 2002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15238
15239 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
15240 mouse_autoselect_window.
15241
15242 2002-04-02 Stefan Monnier <monnier@cs.yale.edu>
15243
15244 * keyboard.c (make_lispy_event): Handle unknown keysyms together
15245 with system-specific keysyms. Use it also for unknown function keys.
15246
15247 * doc.c (reread_doc_file): Return whether reload was attempted.
15248 (Fdocumentation, Fdocumentation_property): Don't try to reload
15249 if the doc is 0 and only ask once.
15250
15251 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
15252
15253 2002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
15254
15255 * keyboard.c (read_char): If the event was Qselect_window,
15256 restore timer_idleness_start_time to its previous value.
15257
15258 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
15259
15260 2002-04-01 Stefan Monnier <monnier@cs.yale.edu>
15261
15262 * region-cache.c (new_region_cache): Use BEG.
15263
15264 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
15265 Use BEG and BEG_BYTE.
15266
15267 * doc.c (get_doc_string): Return nil if the location is wrong.
15268 (reread_doc_file): New fun.
15269 (Fdocumentation, Fdocumentation_property):
15270 Call it if get_doc_string fails.
15271 (Fsnarf_documentation): Make it work for a dumped Emacs.
15272
15273 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
15274 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
15275
15276 * charset.c (Fstring): Allow 0 arguments.
15277
15278 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
15279
15280 * process.c (DATAGRAM_CONN_P, list_processes_1)
15281 (Fprocess_datagram_address, Fset_process_datagram_address)
15282 (Fset_network_process_options, server_accept_connection):
15283 Fix some int/Lisp_Object confusions (thank you union types).
15284
15285 2002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15286
15287 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
15288
15289 * w32term.c: Likewise.
15290 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
15291
15292 * keyboard.c (Qselect_window): New symbol.
15293 (head_table): Use it.
15294 (keys_of_keyboard): Bound select-window event to handle-select-window.
15295 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
15296
15297 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
15298 (last_window): New variable.
15299 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
15300 (note_mouse_movement): Remove reimplemented code in #if 0.
15301 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
15302 Emacs windows.
15303
15304 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
15305
15306 2002-03-31 Gerd Moellmann <gerd@gnu.org>
15307
15308 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
15309 Callers changed.
15310
15311 2002-03-30 Richard M. Stallman <rms@gnu.org>
15312
15313 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
15314 loop whenever it stops making progress.
15315
15316 * widget.c (set_frame_size): Don't call change_frame_size.
15317
15318 2002-03-30 Gerd Moellmann <gerd@gnu.org>
15319
15320 * dispnew.c (direct_output_for_insert):
15321 Call mark_window_display_accurate.
15322
15323 2002-03-29 Jason Rumney <jasonr@gnu.org>
15324
15325 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
15326
15327 2002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
15328
15329 * Makefile.in (lread.o): Depend on coding.h.
15330
15331 * lread.c (openp, Fload): Encode the file name before passing it
15332 to `stat', `access', and `emacs_open'.
15333 (openp): GCPRO the encoded file name. Don't recompute Lisp
15334 strings unnecessarily.
15335
15336 2002-03-29 Kim F. Storm <storm@cua.dk>
15337
15338 * fns.c (Flax_plist_put): Doc fix.
15339
15340 2002-03-28 Miles Bader <miles@gnu.org>
15341
15342 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
15343
15344 2002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15345
15346 * process.c (set-network-process-options): Add usage.
15347 (make-network-process): Doc fix.
15348
15349 2002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
15350
15351 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
15352
15353 2002-03-26 Richard M. Stallman <rms@gnu.org>
15354
15355 * fns.c (Fsubstring_no_properties): New function.
15356 (Flax_plist_get, Flax_plist_put): New functions.
15357 (syms_of_fns): defsubr them.
15358
15359 * xdisp.c (update_menu_bar): Test only update_mode_lines;
15360 don't test or alter w->update_mode_line.
15361
15362 * window.c (Fdisplay_buffer): Doc fix.
15363
15364 2002-03-24 Richard M. Stallman <rms@gnu.org>
15365
15366 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
15367
15368 2002-03-24 Gerd Moellmann <gerd@gnu.org>
15369
15370 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
15371 (Fdefmacro): Handle `(declare ...)'.
15372 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
15373 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
15374
15375 2002-03-24 Jason Rumney <jasonr@gnu.org>
15376
15377 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
15378 (xbm_file_p): Add prototypes.
15379 (xbm_format, xbm_image_p): Sync with xfns.c.
15380 (reflect_byte): New function.
15381 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
15382 (xbm_load_image): Create bitmaps with a depth of 1.
15383 (init_xfns): Enable XBM images.
15384
15385 2002-03-23 Jason Rumney <jasonr@gnu.org>
15386
15387 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
15388 correctly. Do not pass up_modifier to keyboard buffer.
15389
15390 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
15391
15392 2002-03-22 Stefan Monnier <monnier@cs.yale.edu>
15393
15394 * Makefile.in (bootstrapclean): New target.
15395 (bootstrap-temacs, bootstrap-doc): Remove.
15396 (bootstrap-emacs): Use a bog-standard `temacs'.
15397 Don't bother to build a DOC file.
15398
15399 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
15400
15401 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
15402 in temacs even if !CANNOT_DUMP.
15403 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
15404
15405 * alloc.c (check_pure_size): Only output a warning.
15406
15407 2002-03-22 Jason Rumney <jasonr@gnu.org>
15408
15409 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
15410 supported.
15411
15412 * w32term.c (zv_bits): Declare as short, for word alignment.
15413 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
15414 (syms_of_w32term): Define x-use-underline-position-properties.
15415
15416 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
15417 (clear_image_cache): Block input, fix logic, clear matrices in
15418 all frames that share this cache.
15419
15420 2002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
15421
15422 * emacs.c (main): Update the Copyright year in the blurb printed
15423 by "emacs --version".
15424
15425 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
15426
15427 * xterm.c (XTread_socket): If XK_ISO_Lock and
15428 XK_ISO_Last_Group_Lock are defined, handle keysyms between
15429 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
15430
15431 2002-03-21 Kim F. Storm <storm@cua.dk>
15432
15433 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
15434 menu-bar bindings in keymap and local-map properties _are_ used.
15435 But try keymap property first in accordance with 2002-01-03 patch.
15436 Added comment describing why this is not always reliable.
15437 (tool_bar_items): Ditto for tool-bar.
15438
15439 2002-03-21 Jason Rumney <jasonr@gnu.org>
15440
15441 * w32fns.c (x_clear_image_1): Disable color table code.
15442
15443 2002-03-21 Kim F. Storm <storm@cua.dk>
15444
15445 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
15446 removed the wrong version of the DEFUN macro; fixed it.
15447
15448 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
15449 Fmember rather than Fmemq).
15450 (Fprovide): Check that subfeatures is a list.
15451
15452 * process.c (QCfeature, QCdatagram): Removed variables.
15453 (QCtype, Qdatagram): New variables.
15454 (network_process_featurep): Removed function.
15455 (Fmake_network_process): Removed :feature check.
15456 Use :type 'datagram instead of :datagram t to create a datagram
15457 socket. This allows us to add other connection types (e.g. raw
15458 sockets) later in a consistent manner.
15459 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
15460 supported subfeatures for feature make-network-process.
15461 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
15462 Intern and staticpro QCtype and Qdatagram.
15463 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
15464
15465 * xfns.c: (QCtype): Remove duplicate declaration and
15466 initialization (is now declared in process.c).
15467
15468 * w32fns.c: (QCtype): Remove duplicate declaration and
15469 initialization (is now declared in process.c).
15470
15471 2002-03-21 Richard M. Stallman <rms@gnu.org>
15472
15473 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
15474 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
15475 when jumping to `fail' to avoid undoing reg changes in the
15476 last iteration of the loop.
15477 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
15478
15479 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
15480 Depend on process.h.
15481
15482 2002-03-20 Jason Rumney <jasonr@gnu.org>
15483
15484 Most of the following changes are still conditional on HAVE_IMAGES
15485 which is not set by default on Windows.
15486
15487 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
15488
15489 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
15490 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
15491 (four_corners_best, x_clear_image_1, x_clear_image)
15492 (x_alloc_image_color, postprocess_image)
15493 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
15494 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
15495 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
15496
15497 * w32gui.h (struct XImage): Define.
15498
15499 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
15500 extract mouse co-ordinates.
15501
15502 2002-03-20 Jason Rumney <jasonr@gnu.org>
15503
15504 * w32.c (init_winsock): Dynamically load new server and UDP
15505 socket functions.
15506 (socket_to_fd): New function.
15507 (sys_socket): Use it.
15508 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
15509 (sys_recvfrom, sys_sendto): New wrapper functions.
15510
15511 * process.c (QCfamily, QCfilter): Remove duplicate declaration
15512 and initialization.
15513
15514 * makefile.w32-in (LIBS): Remove $(WSOCK32).
15515
15516 2002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
15517
15518 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
15519 Don't use "sun" as a variable, it's a predefined constant on Sun
15520 machines.
15521
15522 2002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15523
15524 * bytecode.c (Fbyte_code): Revert last change.
15525
15526 2002-03-19 Kim F. Storm <storm@cua.dk>
15527
15528 * makefile.w32-in (LIBS): Add $(WSOCK32).
15529 From David Ponce <dponce@voila.fr>.
15530
15531 2002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15532
15533 * process.c (wait_reading_process_input): Move variables `pname'
15534 and `pnamelen' down where they are used.
15535
15536 * bytecode.c (Fbyte_code): Discard unused computed value to
15537 prevent gcc warning.
15538
15539 * lisp.h (Fplist_member): Add prototype.
15540
15541 2002-03-18 Kim F. Storm <storm@cua.dk>
15542
15543 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
15544 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
15545
15546 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
15547 Remove explicit GNU_LINUX settings for datagram support.
15548
15549 2002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15550
15551 * process.c (Fmake_network_process): Remove unused variable `sa'.
15552 Doc fix. Add usage:.
15553 (set_socket_options): Remove unused variables `optnum' and `opttype'.
15554
15555 2002-03-17 Richard M. Stallman <rms@gnu.org>
15556
15557 * xdisp.c (cursor_type_changed): New variable.
15558 (redisplay_internal): Redisplay all windows if cursor_type_changed.
15559 Clear it when clearing windows_or_buffers_changed.
15560 (try_cursor_movement, redisplay_window, try_window_id)
15561 (try_window_reusing_current_matrix): Test cursor_type_changed
15562 along with windows_or_buffers_changed.
15563
15564 * window.h (cursor_type_changed): New variable.
15565
15566 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
15567 not update_mode_lines, and always set it to 1.
15568
15569 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
15570 if no frames needed redrawing.
15571
15572 2002-03-17 Kim F. Storm <storm@cua.dk>
15573
15574 The following changes add support for network server processes,
15575 datagram connections, and local (unix) sockets.
15576
15577 * process.h (struct Lisp_Process): New member log.
15578 Doc fix: Member command used to indicate stopped network process.
15579 Doc fix: Member childp contains plist for network process.
15580 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
15581
15582 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
15583 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
15584 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
15585 New variables.
15586 (NETCONN1_P): New macro.
15587 (DATAGRAM_SOCKETS): New conditional symbol.
15588 (datagram_address): New array.
15589 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
15590 (status_message): Use concat3.
15591 (Fprocess_status): Add `listen' status to doc string. Return `stop'
15592 for a stopped network process.
15593 (Fset_process_buffer): Update contact plist for network process.
15594 (Fset_process_filter): Ditto. Don't enable input for stopped
15595 network processes. Server must listen, even if filter is t.
15596 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
15597 New functions.
15598 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
15599 (Fprocess_contact): Added KEY argument. Handle datagrams.
15600 (list_processes_1): Optionally show only processes with the query
15601 on exit flag set. Dynamically adjust column widths. Omit tty
15602 column if not needed. Report stopped network processes.
15603 Identify server and datagram network processes.
15604 (Flist_processes): New optional arg `query-only'.
15605 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
15606 (conv_lisp_to_sockaddr, set_socket_options)
15607 (network_process_featurep, unwind_request_sigio): New helper functions.
15608 (Fprocess_datagram_address, Fset_process_datagram_address):
15609 (Fset_network_process_options): New lisp functions.
15610 (Fopen_network_stream): Removed. Now defined in simple.el.
15611 (Fmake_network_process): New lisp function. Code is based on previous
15612 Fopen_network_stream, but heavily reworked with new property list based
15613 argument list, support for datagrams, server processes, and local
15614 sockets in addition to old client-only functionality.
15615 (server_accept_connection): New function.
15616 (wait_reading_process_input): Use it to handle incoming connects.
15617 Do not enable input on a new connection if process is stopped.
15618 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
15619 (send_process): Handle datagram sockets.
15620 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
15621 network process is indicated by setting command field to t .
15622 (Fprocess_send_eof): No-op if datagram connection.
15623 (Fstatus_notify): Don't read input for a stream server socket or a
15624 stopped network process.
15625 (init_process): Initialize datagram_address array.
15626 (syms_of_process): Intern and staticpro new variables, defsubr new
15627 functions.
15628
15629 2002-03-16 Jason Rumney <jasonr@gnu.org>
15630
15631 * w32fns.c (w32_to_all_x_charsets): Return correct type in
15632 startup case.
15633
15634 2002-03-16 Richard M. Stallman <rms@gnu.org>
15635
15636 * xdisp.c (redisplay_internal, redisplay_windows):
15637 Use list_of_error to call internal_condition_case_1.
15638 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
15639 so as to catch all errors with no possibility of debugger redisplay.
15640 (list_of_error): New variable.
15641 (syms_of_xdisp): Init and staticpro it.
15642
15643 * print.c (print_object): Delete `\ ' from printed rep of frame.
15644
15645 2002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
15646
15647 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
15648 until its implementation is fixed.
15649
15650 2002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15651
15652 * xfns.c (png_load): Remove unused variable `gamma_str'.
15653
15654 2002-03-14 Richard M. Stallman <rms@gnu.org>
15655
15656 * xfns.c (x_real_positions): Handle failure in XQueryTree.
15657
15658 2002-03-14 Miles Bader <miles@gnu.org>
15659
15660 * intervals.c (adjust_for_invis_intang): New function.
15661 (set_point_both): Use `adjust_for_invis_intang' to do most of the
15662 work for dealing with invisible+intangible regions. Do so before
15663 and after both forward and backward movements, to handle both
15664 front-sticky and rear-sticky cases.
15665 * textprop.c (text_property_stickiness): Function moved here from
15666 `editfns.c'.
15667 * intervals.h (text_property_stickiness): New declaration.
15668 * editfns.c (char_property_eq): Function removed.
15669 (text_property_stickiness): Function moved to `textprop.c'.
15670
15671 2002-03-13 Jason Rumney <jasonr@gnu.org>
15672
15673 * config.in: Add STRFTIME_NO_POSIX2.
15674
15675 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
15676 and %OX when underlying strftime does not.
15677
15678 2002-03-13 Stefan Monnier <monnier@cs.yale.edu>
15679
15680 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
15681 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
15682 line) to avoid annoying flicker.
15683 (xm_scroll_callback): Get rid of the now unnecessary kludge.
15684 (XTread_socket): Mark it static.
15685
15686 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
15687
15688 2002-03-13 Kim F. Storm <storm@cua.dk>
15689
15690 * puresize.h (BASE_PURESIZE): Increase to 775000.
15691
15692 2002-03-12 Juanma Barranquero <lektu@terra.es>
15693
15694 * editfns.c (syms_of_editfns): Fix typo.
15695
15696 2002-03-12 Gerd Moellmann <gerd@gnu.org>
15697
15698 * xsmfns.c: Include stdio.h because termhooks.h needs it.
15699 Include termopt.h for interrupt_input.
15700
15701 2002-03-11 Andreas Schwab <schwab@suse.de>
15702
15703 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
15704
15705 2002-03-11 Gerd Moellmann <gerd@gnu.org>
15706
15707 * xterm.c (note_mouse_movement): Put code for
15708 x_autoselect_window_p in #if 0.
15709
15710 * lread.c (Fload): Don't assume that message_with_string uses the
15711 string it is given like a C string.
15712
15713 2002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15714
15715 * xterm.h (x_session_check_input, x_session_initialize): Declare.
15716
15717 * xterm.c: (XTread_socket): Add call to x_session_check_input and
15718 x_session_have_connection.
15719 (x_initialize): Add call to x_session_initialize.
15720
15721 * termhooks.h (enum event_kind): Add save_session_event.
15722
15723 * keyboard.c: Add Emacs event save_session_event.
15724
15725 * emacs.c (main): Add call to syms_of_xsmfns.
15726
15727 * lisp.h (syms_of_xsmfns): Declare extern.
15728
15729 * config.in: Add HAVE_X_SM.
15730
15731 * Makefile.in (LIBXT): Add -lSM -lICE
15732 if HAVE_X_SM and not USE_X_TOOLKIT.
15733 (XOBJ): New file xsmfns.c added.
15734
15735 * xsmfns.c: New file for X session management.
15736
15737 2002-03-09 Jason Rumney <jasonr@gnu.org>
15738
15739 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
15740 read-only when setting modified time.
15741
15742 2002-03-08 Gerd Moellmann <gerd@gnu.org>
15743
15744 * xdisp.c (move_it_vertically_backward): At the end of the function,
15745 when moving forward by lines, treat terminal frames specially.
15746
15747 * keyboard.c (echo_char): Make sure to add a separator between
15748 keys even if echo_dash hasn't been called.
15749
15750 * xdisp.c: Use new string macros.
15751 (update_echo_area): Pass number of bytes to message3 instead of
15752 number of chars.
15753 (set_message_1): Don't access a string's size_byte directly.
15754 (decode_mode_spec_coding): Use number of bytes of eoltype string
15755 instead number of chars.
15756
15757 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
15758
15759 2002-03-08 Juanma Barranquero <lektu@terra.es>
15760
15761 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
15762 24-bit.
15763
15764 2002-03-06 Jason Rumney <jasonr@gnu.org>
15765
15766 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
15767
15768 2002-03-06 Gerd Moellmann <gerd@gnu.org>
15769
15770 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
15771 (cancel_echoing, echo_length, echo_truncate): Changed to
15772 work with new kboard definition.
15773 (echo_now): Use message3_nolog instead of message2_nolog.
15774
15775 * alloc.c (mark_kboards): Mark echo_string.
15776
15777 * keyboard.h (ECHOBUFSIZE): Removed.
15778 (struct kboard): Member echoptr removed, member echobuf renamed
15779 to echo_string.
15780
15781 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
15782 message3 instead of message2 to display the message using STRING's
15783 text properties.
15784
15785 2002-03-05 Andreas Schwab <schwab@suse.de>
15786
15787 * xdisp.c (hscroll_margin): Change to EMACS_INT.
15788
15789 2002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
15790
15791 * frame.c (default-frame-alist): Explain that setting it doesn't
15792 affect existing frames.
15793
15794 2002-03-05 Stefan Monnier <monnier@cs.yale.edu>
15795
15796 * indent.c (skip_invisible): Fix my brain fart.
15797
15798 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
15799
15800 2002-03-04 Stefan Monnier <monnier@cs.yale.edu>
15801
15802 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
15803 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
15804 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
15805 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
15806 and variables to use EMACS_INT instead of just int.
15807
15808 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
15809
15810 2002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
15811
15812 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
15813 environment, pass it down with corrected value.
15814
15815 2002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15816
15817 * lread.c (read_filtered_event): Do not call start_hourglass
15818 before returning.
15819
15820 2002-03-04 Juanma Barranquero <lektu@terra.es>
15821
15822 * w32term.c (x_display_and_set_cursor): Fix typo.
15823
15824 2002-03-03 Richard M. Stallman <rms@gnu.org>
15825
15826 * fileio.c (Fmake_temp_name): Doc fix.
15827
15828 2002-03-03 Gary Wong <gtw@gnu.org>
15829
15830 * termcap.c [!emacs]: Replace ospeed for building standalone
15831 libtermcap, for binary compatibility.
15832
15833 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
15834
15835 2002-03-03 Richard M. Stallman <rms@gnu.org>
15836
15837 * xrdb.c (file_p): Rename arg `path' to `filename'.
15838
15839 * abbrev.c (Fexpand_abbrev): Increment plist as use count
15840 only if it is an integer.
15841
15842 * xfns.c (png_load): Set screen_gamma based on f->gamma.
15843 If png_get_sRGB gives an answer, call png_set_gamma
15844 using the default image gamma value.
15845
15846 * lread.c (read1): When reading from a file, default string to
15847 multibyte only if it has some multibyte characters.
15848
15849 * print.c (print_object): Output multibyte chars 128...255
15850 using \x even if ! print_escape_multibyte.
15851
15852 * xdisp.c (display_mode_element): Move the places where
15853 bytepos, charpos, this, and lisp_string are set.
15854 Use lisp_string to set bytepos.
15855
15856 * xdisp.c (redisplay_internal):
15857 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
15858
15859 * xdisp.c (display_mode_element): Merge properties specified with
15860 :propertize onto those that come with the string.
15861
15862 2002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
15863
15864 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
15865 automatic-hscrolling. Users changed.
15866 <hscroll-margin>: Renamed from automatic-hscroll-margin.
15867 Users changed.
15868 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
15869
15870 2002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
15871
15872 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
15873
15874 2002-03-02 Kim F. Storm <storm@cua.dk>
15875
15876 * window.c (Fminibuffer_selected_window): New function.
15877 (syms_of_window): Defsubr it.
15878
15879 2002-03-01 Kim F. Storm <storm@cua.dk>
15880
15881 * window.h (struct window): New member phys_cursor_width.
15882
15883 * window.c (make_window, replace_window): Init phys_cursor_width.
15884
15885 * xterm.c (x_display_and_set_cursor): Blink box cursor using
15886 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
15887
15888 * w32term.c (x_display_and_set_cursor): Blink box cursor using
15889 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
15890
15891 * lisp.h (GCPRO6): New macro.
15892
15893 * process.c (Fopen_network_stream): Use GCPRO6.
15894
15895 2002-03-01 Kim F. Storm <storm@cua.dk>
15896
15897 * process.c (Qconnect, Qfailed): New variables.
15898 (syms_of_process): Intern and staticpro them.
15899 (Fprocess_status): Document connect and failed return values.
15900 [NON_BLOCKING_CONNECT]: New conditional.
15901 (connect_wait_mask, num_pending_connects): New variables.
15902 (status_message): Convert Qfailed status.
15903 (Fopen_network_stream): Added support for non-blocking connect.
15904 New optional args: filter, sentinel, non_blocking. Doc updated.
15905 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
15906 (deactivate_process): Handle pending non-blocking connect.
15907 (wait_reading_process_input): Poll for status of non-blocking
15908 connects. Exec sentinel directly when connect succeeds.
15909 (status_notify): Don't read process output if not yet connected.
15910
15911 2002-02-28 Kim F. Storm <storm@cua.dk>
15912
15913 * window.c: (minibuf_selected_window): Renamed from
15914 Vminibuf_selected_window. Users changed.
15915 (syms_of_window): Staticpro it.
15916
15917 2002-02-26 Kim F. Storm <storm@cua.dk>
15918
15919 The following changes add a new Vminibuf_selected_window variable
15920 which is similar to Vminibuf_scroll_window, but which is only set
15921 on entry to the minibuffer (from a non-minibuffer window):
15922
15923 * window.c: (Vminibuf_selected_window): New variable.
15924 (struct save_window_data): New member minibuf_selected_window.
15925 (Fset_window_configuration): Restore Vminibuf_selected_window.
15926 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
15927 Set minibuf_scroll_window member to nil if minibuf_level is 0.
15928 (compare_window_configurations): Compare minibuf_selected_window.
15929
15930 * window.h: (Vminibuf_selected_window): Declare extern.
15931
15932 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
15933 entry to minibuffer or on entry from a non-minibuffer window.
15934
15935 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
15936 Vminibuf_selected_window instead of Vminibuf_scroll_window.
15937
15938 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
15939 instead of Vminibuf_scroll_window when deciding in which window
15940 the region should be highlighted. Consequently, the region remains
15941 highlighteded even when a completion buffer is also displayed.
15942
15943 2002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
15944
15945 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
15946
15947 * xselect.c (Qcompound_text_with_extensions): Renamed from
15948 Qcompound_text_no_extensions.
15949 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
15950
15951 2002-02-26 Juanma Barranquero <lektu@terra.es>
15952
15953 * w32proc.c (syms_of_ntproc): Doc fix.
15954
15955 2002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15956
15957 * intervals.h: Include "dispextern.h" unconditionally.
15958
15959 2002-02-24 Jason Rumney <jasonr@gnu.org>
15960
15961 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
15962 and disp-table.elc.
15963 (lisp): Add emacs-lisp/backquote.elc.
15964
15965 2002-02-24 Kim F. Storm <storm@cua.dk>
15966
15967 * keymap.c (Flookup_key): Fix problem in 2001-12-28 patch:
15968 The validation of the event type was too strict as it didn't
15969 allow string events; buffer names are used in bindings for
15970 menu-bar-select-buffer (see `menu-bar-update-buffers').
15971
15972 2002-02-23 Kim F. Storm <storm@cua.dk>
15973
15974 The following changes rework my patch of 2002-02-06 which
15975 added command remapping by entering the commands directly into
15976 the keymaps. Now, command remapping uses an explicit `remap'
15977 prefix in the keymaps, i.e. [remap COMMAND].
15978
15979 * keymap.c (Qremap, remap_command_vector): New variables.
15980 (is_command_symbol): Remove function.
15981 (Fdefine_key): No longer accept a symbol for KEY.
15982 Added validation of [remap COMMAND] argument for KEY.
15983 The DEF is no longer required to be a symbol when remapping a command.
15984 (Fremap_command): New function to remap command through keymaps.
15985 (Flookup_key): Perform command remapping initiated by
15986 Fremap_command directly for speed.
15987 (Fkey_binding): Use Fremap_command for command remapping.
15988 (where_is_internal): Handle new command remapping representation.
15989 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
15990 staticpro them. Defsubr Fremap_command.
15991
15992 * keymap.h (Fremap_command): Declare extern.
15993 (is_command_symbol): Remove extern.
15994
15995 * keyboard.c (command_loop_1): Use Fremap_command for command
15996 remapping; now try command remapping for all symbols.
15997
15998 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
15999
16000 * coding.h (run_pre_post_conversion_on_str): Add prototype.
16001
16002 2002-02-23 Jason Rumney <jasonr@gnu.org>
16003
16004 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
16005 on the string before encoding it.
16006 (Fw32_get_clipboard_data): Run post-read-conversion on the string
16007 after decoding it.
16008
16009 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
16010
16011 2002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16012
16013 * w32term.c (enter_timestamp): Remove unused static variable to
16014 prevent warning.
16015
16016 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
16017
16018 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
16019
16020 * w16select.c (Fw16_get_clipboard_data): Fix last change.
16021
16022 * xselect.c (selection_data_to_lisp_data): Fix last change.
16023
16024 2002-02-22 Jason Rumney <jasonr@gnu.org>
16025
16026 * w32term.h (struct w32_output): New member menu_command_in_progress.
16027
16028 * w32menu.c (menubar_selection_callback): Free the menu and
16029 clear the menu_command_in_progress flag.
16030
16031 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
16032 (menu_free_timer): New variable.
16033 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
16034 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
16035 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
16036 menu command is in progress.
16037 <WM_COMMAND>: Set the menu_command_in_progress flag.
16038 Kill any menu_free_timer that is running.
16039
16040 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
16041 Call ExtTextOutA rather than ExtTextOut.
16042
16043 2002-02-22 Eli Zaretskii <eliz@gnu.org>
16044
16045 * puresize.h (BASE_PURESIZE): Increase to 755000.
16046
16047 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
16048
16049 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
16050 on the string before encoding it.
16051 (Fw16_get_clipboard_data): Run post-read-conversion on the string
16052 after decoding it.
16053
16054 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
16055
16056 Support for ICCCM Extended Segments in X selections:
16057
16058 * xselect.c <Qcompound_text_no_extensions>: New variable.
16059 (syms_of_xselect): Intern and staticpro it.
16060 (selection_data_to_lisp_data): Run post-read-conversion on decoded
16061 selection text.
16062 (lisp_data_to_selection_data): If next-selection-coding-system is
16063 compound-text-no-extensions, set the type of selection to be
16064 compound-text.
16065
16066 * xterm.h (x_encode_text): Update prototype.
16067
16068 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
16069 callers changed. If SELECTIONP is non-zero, run the
16070 pre-write-conversion function before encoding the selection text.
16071
16072 2002-02-21 Kim F. Storm <storm@cua.dk>
16073
16074 * frame.c (syms_of_frame): Change mouse-highlight default to t.
16075
16076 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
16077 Correct composing of language-change event.
16078
16079 2002-02-20 Kim F. Storm <storm@cua.dk>
16080
16081 * keyboard.c (menu_bar_items): Don't include keymap or local-map
16082 bindings at PT when building menu (the menu is not updated often
16083 enough for this to work reliable).
16084 (tool_bar_items): Likewise.
16085 (current_active_maps): Removed unused (and buggy) function.
16086
16087 2002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16088
16089 * xfns.c (gif_load): Use correct width and height for GIF images.
16090
16091 2002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
16092
16093 * floatfns.c (Fatan): Accept an optional second arg and call
16094 atan2 if passed 2 args.
16095
16096 2002-02-18 Jason Rumney <jasonr@gnu.org>
16097
16098 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
16099
16100 2002-02-17 Jason Rumney <jasonr@gnu.org>
16101
16102 * w32term.c (x_autoselect_window_p): New variable.
16103 (syms_of_w32term): DEFVAR_BOOL and initialize it.
16104 (note_mouse_movement): Use it.
16105
16106 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
16107
16108 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
16109
16110 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
16111 New variables.
16112 (syms_of_w32fns): Intern and staticpro them.
16113 (x_frame_parms) <"fullscreen">: New parameter.
16114 (x_fullscreen_move, x_set_fullscreen): New functions.
16115 (x_set_frame_parameters): Support Qfullscreen.
16116 (x_real_positions): Save x/y_pixels_diff frame params.
16117 (x_figure_window_size): Support full-screen frames.
16118 (Fx_create_frame): Default the fullscreen parameter.
16119
16120 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
16121 (x_fullscreen_adjust): New functions.
16122 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
16123 fullscreen. Call x_check_fullscreen_move, and set the
16124 want_fullscreen member of output_data.w32
16125 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
16126
16127 * w32term.h: New enum for FULLSCREEN_* constants.
16128 (struct w32_output): New members want_fullscreen, x_pixels_diff,
16129 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
16130 (x-fullscreen-adjust): New prototype.
16131
16132 2002-02-17 Kim F. Storm <storm@cua.dk>
16133
16134 * frame.c: (Vmouse_highlight): New variable.
16135 (syms_of_frame): DEFVAR_LISP it.
16136
16137 * frame.h: (Vmouse_highlight): Declare extern.
16138
16139 * xterm.h (struct x_display_info): Add mouse_face_hidden.
16140
16141 * xterm.c (disable_mouse_highlight): Removed variable.
16142 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
16143 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
16144 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
16145 and on after keyboard input.
16146 (x_term_init): Initialize mouse_face_hidden.
16147
16148 * msdos.h (struct display_info): Add mouse_face_hidden.
16149
16150 * msdos.c (disable_mouse_highlight): Removed variable.
16151 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
16152 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
16153 (internal_terminal_init): Initialize mouse_face_hidden.
16154 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
16155 and on after keyboard input.
16156
16157 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
16158
16159 * w32term.c (disable_mouse_highlight): Removed variable.
16160 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
16161 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
16162 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
16163 and on after keyboard input.
16164 (w32_initialize_display_info): Initialize mouse_face_hidden.
16165
16166 2002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
16167
16168 * msdos.c (last_mouse_window): New variable.
16169 (dos_rawgetc): Fix last change--if the mouse is in the same window
16170 as recorded in last_mouse_window, don't select this window.
16171
16172 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
16173
16174 * msdos.c (x_autoselect_window_p): New variable.
16175 (syms_of_msdos): Defvar it.
16176 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
16177 which the last mouse movement occured, unless it is already selected.
16178
16179 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
16180 New variables.
16181 (syms_of_xdisp): DEVFAR them.
16182 (hscroll_window_tree): Use automatic_hscroll_margin and
16183 Vautomatic_hscroll_step to compute the amount of window scrolling.
16184
16185 2002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16186
16187 * xterm.c (x-autoselect-window): New variable.
16188 (note_mouse_movement): Use it.
16189
16190 * keyboard.c: Do not include "systime.h" twice.
16191
16192 2002-02-15 Andreas Schwab <schwab@suse.de>
16193
16194 * puresize.h (PURESIZE_RATIO): Increase to 9/5.
16195
16196 * alloc.c (NSTATICS): Increase to 1280.
16197
16198 2002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
16199
16200 * alloc.c (NSTATICS): Bump to 1026.
16201
16202 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
16203 (Vx_super_keysym): New variables.
16204 (syms_of_xterm): DEFVAR_LISP them.
16205 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
16206 variables to determine which keys to use for the various modifiers.
16207
16208 2002-02-13 Kim F. Storm <storm@cua.dk>
16209
16210 * window.c: (Vmode_line_in_non_selected_windows): Removed.
16211 (mode_line_in_non_selected_windows): New variable.
16212 (syms_of_window): DEFVAR_BOOL it.
16213
16214 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
16215 Use mode_line_in_non_selected_windows.
16216 (mode_line_in_non_selected_windows): Declare extern.
16217 (Vmode_line_in_non_selected_windows): Removed extern.
16218
16219 2002-02-13 Richard M. Stallman <rms@gnu.org>
16220
16221 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
16222 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
16223 (Fclear_this_command_keys): Doc fixes.
16224
16225 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
16226 (update_face_from_frame_parameter): Increment face_change_count
16227 and windows_or_buffers_changed to force redisplay using changed faces.
16228
16229 * xdisp.c (QCpropertize): New variable.
16230 (mode_line_proptrans_alist): New variable.
16231 (display_mode_element): New arg PROPS; all calls changed.
16232 Implement this, for strings.
16233 Handle literal output of strings by sharing the
16234 main-line code for strings, using local var `literal'.
16235 Handle :propertize feature.
16236 (syms_of_xdisp): Initialze and staticpro QCpropertize and
16237 mode_line_proptrans_alist.
16238
16239 2002-02-11 Kim F. Storm <storm@cua.dk>
16240
16241 * window.c: (Vmode_line_in_non_selected_windows): New variable.
16242 (syms_of_window): DEFVAR_LISP it.
16243
16244 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
16245 (CURRENT_MODE_LINE_FACE_ID): Use it.
16246 (Vmode_line_in_non_selected_windows): Declare extern.
16247
16248 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
16249 to get mode line face.
16250
16251 2002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
16252
16253 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
16254 variables; cus-start.el doesn't need them anymore.
16255
16256 2002-02-09 Kim F. Storm <storm@cua.dk>
16257
16258 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
16259 reduction. This fixes a display problem where stray newlines were
16260 inserted in the window (corrected by C-l). Clarified code (IMHO).
16261
16262 2002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
16263
16264 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
16265
16266 * xdisp.c (display_mode_lines): Fix last change.
16267
16268 2002-02-09 Jason Rumney <jasonr@gnu.org>
16269
16270 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
16271 match each other.
16272 (w32_load_system_font): Prevent Cleartype fonts from loading.
16273 (Fx_show_tip): Ensure tip frames are above other topmost windows.
16274
16275 2002-02-09 Kim F. Storm <storm@cua.dk>
16276
16277 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
16278 (CURRENT_MODE_LINE_HEIGHT): Use it.
16279 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
16280
16281 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
16282 (pos_visible_p, handle_face_prop): Likewise.
16283 (display_mode_lines): Likewise, but for the real selected window.
16284 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
16285
16286 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
16287 in non-selected windows.
16288 (realize_basic_faces): Realize it.
16289 (syms_of_term): Intern and staticpro it.
16290
16291 2002-02-08 Kim F. Storm <storm@cua.dk>
16292
16293 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
16294 Changed mail addresses to emacs-devel@gnu.org.
16295
16296 2002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
16297
16298 * fileio.c (Fsubstitute_in_file_name): If the file name includes
16299 ~user, and there's no such user, don't discard everything before ~user.
16300
16301 * floatfns.c (Fround): Doc fix.
16302
16303 2002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16304
16305 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
16306
16307 2002-02-07 Stefan Monnier <monnier@cs.yale.edu>
16308
16309 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
16310
16311 2002-02-07 Kim F. Storm <storm@cua.dk>
16312
16313 * keymap.c (where_is_internal): Only check whether definition is
16314 remapped if it fulfills is_command_symbol.
16315
16316 2002-02-07 Andreas Schwab <schwab@suse.de>
16317
16318 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
16319
16320 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
16321
16322 2002-02-06 Kim F. Storm <storm@cua.dk>
16323
16324 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
16325 defining command remapping. Doc updated.
16326 (Flookup_key): Remap command through keymap if KEY is a symbol.
16327 (is_command_symbol): New function.
16328 (Fkey_binding): Use it. New optional argument NO-REMAP.
16329 Doc updated. Callers changed. Perform command remapping via
16330 recursive call unless that arg is non-nil.
16331 (where_is_internal): New argument no_remap. Callers changed.
16332 Call recursively to find original key bindings for a remapped
16333 comand unless that arg is non-nil.
16334 (Fwhere_is_internal): New optional argument NO-REMAP.
16335 Doc updated. Callers changed. Pass arg to where_is_internal.
16336
16337 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
16338 (is_command_symbol): Add prototype.
16339
16340 * keyboard.c (Vthis_original_command): New variable.
16341 (syms_of_keyboard): DEFVAR_LISP it.
16342 (command_loop_1): Set it, and perform command remapping.
16343
16344 2002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16345
16346 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
16347
16348 2002-02-06 Jason Rumney <jasonr@gnu.org>
16349
16350 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
16351
16352 2002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
16353
16354 * charset.c (get_charset_id): Use if-else instead of ?:.
16355
16356 2002-02-06 Richard M. Stallman <rms@gnu.org>
16357
16358 * filelock.c (S_ISLNK): Define if not defined.
16359
16360 2002-02-03 Richard M. Stallman <rms@gnu.org>
16361
16362 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
16363
16364 * lread.c (read1): Redesign strategy for force_multibyte and
16365 force_singlebyte. Now is_multibyte records whether read_buffer
16366 is multibyte. Encountering any multibyte character makes it so.
16367
16368 2002-02-02 Stefan Monnier <monnier@cs.yale.edu>
16369
16370 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
16371 with the same sequence, map that sequence to f10 rather than f0.
16372
16373 2002-02-03 Andreas Schwab <schwab@suse.de>
16374
16375 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
16376 latter never being defined on GNU/Linux.
16377
16378 2002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
16379
16380 * xfaces.c (realize_default_face): Don't set the weight and slant of
16381 the default face to Qnormal, unless these attributes are unspecified.
16382
16383 2002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16384
16385 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
16386 Call cancel_hourglass unconditionally.
16387
16388 * eval.c (Fsignal): Remove duplicated declaration of
16389 the variable `display_hourglass_p'.
16390
16391 2002-01-31 Richard M. Stallman <rms@gnu.org>
16392
16393 * editfns.c (region_limit): Nicer error message.
16394
16395 * coding.c (decode_composition_emacs_mule):
16396 Give up if NCOMPONENT gets too large to index `component'.
16397
16398 * callint.c (check_mark): New arg to specify clearer error message.
16399 Callers changed.
16400
16401 2002-01-27 Richard M. Stallman <rms@gnu.org>
16402
16403 * minibuf.c (Fcompleting_read): Doc fix.
16404
16405 2002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16406
16407 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
16408 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
16409 Fix doc-strings.
16410
16411 2002-01-26 Richard M. Stallman <rms@gnu.org>
16412
16413 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
16414
16415 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
16416 and scroll_up_aggressively.
16417
16418 2002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16419
16420 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
16421
16422 2002-01-25 Stefan Monnier <monnier@cs.yale.edu>
16423
16424 * textprop.c (Fnext_property_change, Fnext_single_property_change)
16425 (Fprevious_property_change, Fprevious_single_property_change):
16426 Stay within the narrowed-buffer boundaries.
16427
16428 2002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
16429
16430 * term.c (Ftty_display_color_cells): New function.
16431 (syms_of_term): Defsubr it.
16432 (Ftty_display_color_cells, Ftty_display_color_p): Change the
16433 argument name to DISPLAY. Doc fix.
16434
16435 * dispextern.h: Add prototype for set_tty_color_mode and
16436 tty_setup_colors.
16437
16438 2002-01-24 Jason Rumney <jasonr@gnu.org>
16439
16440 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
16441 If region left to draw is not what was expected, mark the frame as
16442 garbaged.
16443
16444 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
16445 Combine the regions returned by BeginPaint and GetUpdateRect.
16446
16447 2002-01-23 Jason Rumney <jasonr@gnu.org>
16448
16449 * w32term.c (x_update_window_begin): Only hide caret if
16450 w32_use_visible_system_caret is set.
16451 (x_update_window_end): Only show caret if
16452 w32_use_visible_system_caret is set.
16453 (syms_of_w32term): Handle SystemParametersInfo call failing.
16454
16455 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
16456
16457 2002-01-22 Richard M. Stallman <rms@gnu.org>
16458
16459 * unexelf.c (unexec): Define n so as to cause compilation error
16460 for the code where people have often written n instead of nn.
16461
16462 * .gdbinit (hookpost-run): Defined.
16463
16464 2002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16465
16466 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
16467
16468 2002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16469
16470 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
16471 if fullscreen is being set.
16472
16473 2002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16474
16475 * minibuf.c (Fminibuffer_contents)
16476 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
16477 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
16478
16479 2002-01-21 Richard M. Stallman <rms@gnu.org>
16480
16481 * window.c (check_frame_size): Fix minimum height calculation.
16482
16483 2002-01-20 Ken Raeburn <raeburn@gnu.org>
16484
16485 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
16486 height before comparison.
16487 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
16488
16489 2002-01-20 Jason Rumney <jasonr@gnu.org>
16490
16491 * w32term.c (w32_system_caret_width): Remove.
16492 (w32_use_visible_system_caret): New user flag.
16493 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
16494 Windows reports a screen reader running.
16495 (x_update_window_begin): Hide the system caret.
16496 (x_update_window_end): Show the system caret.
16497 (x_display_and_set_cursor): Don't draw a cursor when
16498 w32_use_visible_system_caret is set. Do not adjust width.
16499
16500 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
16501 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
16502 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
16503 the user requests it. Use system default width when creating.
16504 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
16505
16506 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
16507 New window messages.
16508
16509 2002-01-20 Richard M. Stallman <rms@gnu.org>
16510
16511 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
16512
16513 2002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16514
16515 * doprnt.c (doprnt1): Fix typos in error call.
16516
16517 2002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
16518
16519 * unexelf.c (unexec) [__sgi]: Support the .got sections.
16520
16521 2002-01-20 Jason Rumney <jasonr@gnu.org>
16522
16523 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
16524 that Windows returns. If a double check fails, try to guess how
16525 ExtTextOut is going to act.
16526
16527 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
16528 in place of stricmp.
16529 (w32_list_synthesized_fonts): Removed.
16530 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
16531 (struct enumfont_t): New element; list.
16532 (enum_font_cb2): List all style and charset variations of a font.
16533 (Fw32_select_font): New optional argument; include_proportional.
16534 Exclude vertical fonts. Exclude proportional fonts unless
16535 include_proportional is non-nil.
16536 (w32_enable_synthesized_fonts): Change to a boolean.
16537 (Fw32_send_sys_command): Doc fix.
16538
16539 2002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16540
16541 * dispnew.c (update_frame): Move the variable `tem' to the block
16542 where it is used.
16543
16544 2002-01-19 Jason Rumney <jasonr@gnu.org>
16545
16546 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
16547 call to face-set-after-frame-default.
16548
16549 2002-01-18 Richard M. Stallman <rms@gnu.org>
16550
16551 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
16552 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
16553
16554 2002-01-17 Richard M. Stallman <rms@gnu.org>
16555
16556 * window.c (enlarge_window): When exceeding size of parent,
16557 directly delete all the siblings instead of trying to resize it.
16558
16559 2002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16560
16561 * term.c (set_tty_color_mode): Remove unused variable `tem'.
16562
16563 2002-01-16 Henrik Enberg <henrik@enberg.org>
16564
16565 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
16566
16567 2002-01-16 Kim F. Storm <storm@cua.dk>
16568
16569 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
16570 is invisible. This can happen if cursor is on top line of a
16571 window, and we switch to a buffer with a header line.
16572
16573 * w32term.c (x_erase_phys_cursor): Ditto.
16574
16575 2002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16576
16577 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
16578 `dont_resize' only when used.
16579
16580 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
16581
16582 2002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
16583
16584 * xdisp.c (display_mode_element): When computing charpos, depend
16585 on multibyteness of elt, not the text in field.
16586
16587 2002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16588
16589 * buffer.c (Fkill_all_local_variables):
16590 Increment `update_mode_lines' only once.
16591
16592 2002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16593
16594 * lisp.h (adjust_after_replace_noundo)
16595 (Fupdate_coding_systems_internal): Add prototypes.
16596
16597 * sound.c (Fplay_sound): Initialize header_size also for :data case.
16598
16599 2002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
16600
16601 Support for the --color command-line argument and tty-color-mode
16602 frame parameter:
16603
16604 * term.c (tty_default_color_capabilities, tty_setup_colors)
16605 (set_tty_color_mode): New functions.
16606 (term_init): Call tty_default_color_capabilities.
16607 (Qtty_color_mode_alist): New variable.
16608 (syms_of_term): Intern and staticpro it.
16609
16610 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
16611 frames.
16612 (do_switch_frame): For termcap frames, switch the tty
16613 color mode as specified by the frame's parameters.
16614 (Qtty_color_mode): New variable.
16615 (syms_of_frame): Intern and staticpro it.
16616
16617 * emacs.c (USAGE2): Add the --color option.
16618 (standard_args): Ditto.
16619
16620 2002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16621
16622 * xterm.h (struct x_output): New members want_fullscreen,
16623 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
16624 y_pixels_outer_diff.
16625 New enum for FULLSCREEN_* constants.
16626 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
16627 is NULL.
16628 (x_fullscreen_adjust): Add prototype.
16629
16630 * emacs.c (USAGE2): Add the new full-screen arguments.
16631 (standard_args): Ditto.
16632
16633 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
16634 New variables.
16635 (syms_of_xfns): Intern and staticpro them.
16636 (x_frame_parms) <"fullscreen">: New parameter.
16637 (x_fullscreen_move, x_set_fullscreen): New functions.
16638 (x_set_frame_parameters): Support for Qfullscreen.
16639 (x_real_positions): More accurate computation of the frame position.
16640 (x_figure_window_size): Support full-screen frames.
16641 (Fx_create_frame): Default the fullscreen parameter.
16642
16643 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
16644 (XTread_socket) <Expose>: Call x_check_fullscreen.
16645 <ConfigureNotify>: Don't resize to fullscreen.
16646 Call x_check_fullscreen_move, and set the want_fullscreen member of
16647 output_data.x.
16648
16649 2002-01-13 Jason Rumney <jasonr@gnu.org>
16650
16651 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
16652 for mice with more than 3 buttons.
16653
16654 * w32term.c (parse_button): New parameter xbutton. Callers changed.
16655 (w32_read_socket): Handle new "XBUTTON" messages.
16656
16657 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
16658 (syms_of_w32fns): DEFVAR_BOOL it.
16659 (w32_wnd_proc): Handle new "XBUTTON" messages.
16660
16661 2002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16662
16663 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
16664
16665 2002-01-13 Andreas Schwab <schwab@suse.de>
16666
16667 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
16668
16669 2002-01-12 Andreas Schwab <schwab@suse.de>
16670
16671 * .gdbinit (xbuffer): Remove address operator since data is now a
16672 pointer.
16673
16674 2002-01-11 Richard M. Stallman <rms@gnu.org>
16675
16676 * insdel.c (adjust_after_replace_noundo): New function.
16677
16678 * coding.c (code_convert_region): Don't copy old text if undo disabled.
16679
16680 2002-01-09 Jason Rumney <jasonr@gnu.org>
16681
16682 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
16683 when checking for multiple frames.
16684
16685 2002-01-08 Richard M. Stallman <rms@gnu.org>
16686
16687 * window.c (delete_window): Rewrite the code for changing the
16688 selected window to handle the case where WINDOW is not a leaf.
16689
16690 2002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
16691
16692 * process.c (send_process): Set src_multibyte to 1 after the call
16693 top setup_coding_system, not before the call.
16694
16695 2002-01-07 Jason Rumney <jasonr@gnu.org>
16696
16697 * xmenu.c (set_frame_menubar, xmenu_show):
16698 (xdialog_show): Initialize wv->help to Qnil.
16699
16700 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
16701 (w32_dialog_show): Initialize wv->help to Qnil.
16702
16703 2002-01-06 Jason Rumney <jasonr@gnu.org>
16704
16705 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
16706
16707 * w32menu.c (w32_menu_display_help): Revert last change.
16708
16709 * xmenu.c (menu_highlight_callback): Revert last change.
16710
16711 2002-01-06 Andreas Schwab <schwab@suse.de>
16712
16713 * insdel.c (make_gap_larger): Make sure buffer size does not
16714 overflow range of int.
16715
16716 2002-01-05 Jason Rumney <jasonr@gnu.org>
16717
16718 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
16719 OVERLAPS_P.
16720
16721 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
16722
16723 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
16724 to the left or to the right of the pointer, put it against
16725 the left screen edge.
16726 (x_frame_parms): Add missing braces around initializer.
16727
16728 * w32term.c (x_setup_relief_colors): Don't compute an image's
16729 background color if it doesn't have a Pixmap.
16730 (notice_overwritten_cursor): Don't depend on
16731 output_cursor and updated_area. Compare pixel coordinates with
16732 window's cursor pixel coordinates.
16733 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
16734 Call notice_overwritten_cursor with new arg list.
16735 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
16736 unconditionally.
16737 (x_draw_image_relief): Use predefined macro instead of
16738 constant when the value of `tool_bar_button_relief' is negative.
16739
16740 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
16741
16742 2002-01-04 Richard M. Stallman <rms@gnu.org>
16743
16744 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
16745
16746 2002-01-03 Richard M. Stallman <rms@gnu.org>
16747
16748 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
16749 (Fkey_binding): Try the `keymap' property map first.
16750 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
16751 minor mode bindings.
16752
16753 2002-01-03 Kim F. Storm <storm@cua.dk>
16754
16755 * keyboard.c (read_key_sequence): Fix cast of submaps arg to bcopy.
16756
16757 2002-01-02 Richard M. Stallman <rms@gnu.org>
16758
16759 * keyboard.c (read_key_sequence): Handle the keymap property
16760 before minor mode maps.
16761
16762 * editfns.c (Fformat): Update thissize from field_width
16763 based on the actual width, in the string case.
16764
16765 2002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16766
16767 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
16768 when used as truth value to prevent gcc warnings.
16769
16770 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
16771 * w32proc.c: Include <config.h>.
16772
16773 2002-01-01 Andreas Schwab <schwab@suse.de>
16774
16775 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
16776 not EMACS_INT, to make them compatible with DEFVAR_INT.
16777 * lisp.h (max_specpdl_size): Adjust declaration.
16778
16779 2002-01-01 Richard M. Stallman <rms@gnu.org>
16780
16781 * print.c (print_object): Test print_escape_nonascii only for
16782 unibyte strings.
16783 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
16784 when outputting to a multibyte buffer.
16785
16786 2001-12-29 Richard M. Stallman <rms@gnu.org>
16787
16788 * print.c (print_object): In multibyte string, use hex escapes.
16789 Use octal only for unibyte strings.
16790 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
16791
16792 * lread.c (read_escape): New arg BYTEREP for reporting whether
16793 escape forces unibyte or multibyte.
16794 (read1): When reading a string, take note of that info.
16795
16796 2001-12-29 Ken Raeburn <raeburn@gnu.org>
16797
16798 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
16799 comparison to test lisp value returned by Fget.
16800
16801 2001-12-29 Richard M. Stallman <rms@gnu.org>
16802
16803 * lisp.h (max_specpdl_size): Add declaration.
16804
16805 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
16806
16807 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
16808 Handle modifier bits. Correct typo in error message.
16809
16810 2001-12-28 Richard M. Stallman <rms@gnu.org>
16811
16812 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
16813 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
16814 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
16815 Update calls to Fdefine_abbrev.
16816 (write_abbrev): Update for changed data format.
16817 Don't list "system" abbrevs.
16818 (Fexpand_abbrev): Update use count with new data format.
16819 (describe_abbrev): Update for changed data format.
16820 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
16821
16822 * config.in (HAVE_MBSINIT): Add #undef.
16823
16824 * strftime.c (mbsinit): Define as no-op if not available.
16825
16826 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
16827 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
16828
16829 * keymap.c (Flookup_key): Error message if key has wrong data type.
16830 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
16831 (exclude_key): New variable.
16832
16833 2001-12-28 Gerd Moellmann <gerd@gnu.org>
16834
16835 * xterm.c (x_setup_relief_colors): Don't compute an image's
16836 background color if it doesn't have a Pixmap.
16837
16838 * xterm.c (notice_overwritten_cursor): Don't depend on
16839 output_cursor and updated_area. Compare pixel coordinates with
16840 window's cursor pixel coordinates.
16841 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
16842 Call notice_overwritten_cursor with new arg list.
16843 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
16844 unconditionally.
16845
16846 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
16847 height of the cursor line to the amount to scroll.
16848
16849 2001-12-27 Richard M. Stallman <rms@gnu.org>
16850
16851 * intervals.c (set_point_both): The position after an invisible,
16852 intangible character is not an acceptable stopping point.
16853
16854 2001-12-27 Ken Raeburn <raeburn@gnu.org>
16855
16856 * window.c (enlarge_window): In new preserve_before code, convert
16857 CURBEG from lisp object to integer before doing arithmetic.
16858
16859 2001-12-27 Richard M. Stallman <rms@gnu.org>
16860
16861 * bytecode.c (Fbyte_code): Undo previous change.
16862
16863 2001-12-26 Kim F. Storm <storm@cua.dk>
16864
16865 * keyboard.c (record_char): Ignore duplicate help-echo events only
16866 separated by mouse-movement. When tracking mouse, only record
16867 first and last mouse-movement event in same window.
16868 Don't record mouse-movement events in keyboard macros.
16869
16870 2001-12-25 Richard M. Stallman <rms@gnu.org>
16871
16872 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
16873 (Fenlarge_window): New arg PRESERVE_BEFORE.
16874
16875 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
16876 instead of Fstring_as_unibyte.
16877
16878 2001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16879
16880 The following changes remove mocklisp support:
16881
16882 * mocklisp.h, mocklisp.c: Files removed.
16883
16884 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
16885 `Qmocklisp' and `Qmocklisp_arguments'.
16886 Remove prototype of syms_of_mocklisp.
16887
16888 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
16889
16890 * callint.c: Do not include mocklisp.h.
16891 (Fcall_interactively): Do not test for mocklisp case.
16892
16893 * eval.c: Remove variables `Qmocklisp_arguments',
16894 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
16895 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
16896 Do not test for mocklisp case.
16897 (Fwhile): Remove unused variable `tem'.
16898 (syms_of_eval): Remove variable `moclisp-arguments'.
16899
16900 * data.c (wrong_type_argument): Remove mocklisp case.
16901
16902 * doc.c (Fdocumentation): Remove mocklisp case.
16903
16904 * emacs.c (main): Do not call syms_of_mocklisp.
16905
16906 2001-12-21 Richard M. Stallman <rms@gnu.org>
16907
16908 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
16909 to the left or to the right of the pointer, put it against
16910 the left screen edge.
16911
16912 2001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
16913
16914 * Makefile.in (distclean): Remove .gdbinit if we are building
16915 outside the source tree.
16916
16917 2001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
16918
16919 * w32.c (emacs_root_dir): New function.
16920
16921 * msdos.c (emacs_root_dir): New function.
16922
16923 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
16924 of the current drive as the fallback for default_directory.
16925
16926 * dired.c (file_name_completion): Run the elements of
16927 completion-ignored-extensions through ENCODE_FILE.
16928
16929 * lisp.h (scmp): Remove prototype, since it's now a static
16930 function private to dired.c.
16931
16932 2001-12-18 Richard M. Stallman <rms@gnu.org>
16933
16934 * dired.c (scmp): Function moved from minibuf.c.
16935 Delete multibyte handling--used only on encoded strings.
16936
16937 * minibuf.c (scmp): Function moved to dired.c.
16938
16939 * fns.c (merge): Add QUIT call.
16940
16941 2001-12-18 Dave Love <fx@gnu.org>
16942
16943 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
16944 language/georgian.el.
16945
16946 2001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
16947
16948 * Makefile.in (lisp, shortlisp): Synchronize with changes to
16949 lisp/Makefile.in:DONTCOMPILE.
16950
16951 2001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16952
16953 * xdisp.c (window_box_height): Do not return negative values.
16954 From Gerd Moellmann <gerd@gnu.org>.
16955
16956 * keyboard.c (head_table): Add missing braces around initializer.
16957
16958 * term.c (keys): Likewise.
16959
16960 * xfns.c (x_frame_parms, visual_classes): Likewise.
16961
16962 2001-12-17 Sam Steingold <sds@gnu.org>
16963
16964 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
16965 patch (COMPOSING_P, not COMPOSING).
16966
16967 2001-12-17 Richard M. Stallman <rms@gnu.org>
16968
16969 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
16970
16971 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
16972 before calling decode_coding.
16973
16974 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
16975
16976 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
16977 instead of only for COMPOSITION_DISABLED.
16978
16979 2001-12-16 Richard M. Stallman <rms@gnu.org>
16980
16981 * alloc.c (pure_alloc): After overflow, allocate just a small block.
16982
16983 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
16984
16985 * buffer.h (struct buffer): New field `display_error_modiff'.
16986 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
16987
16988 * window.c (Frecenter): Clear display_error_modiff field.
16989
16990 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
16991 Call redisplay_window, but not if display_error_modiff field says no.
16992 (redisplay_window_error): New function.
16993 (displayed_buffer): New variable.
16994 (redisplay_internal, redisplay_windows): Call the new functions
16995 instead of redisplay_window directly.
16996
16997 2001-12-15 Richard M. Stallman <rms@gnu.org>
16998
16999 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
17000
17001 2001-12-14 Andrew Innes <andrewi@gnu.org>
17002
17003 * makefile.w32-in (EMACSLOADPATH): Define.
17004 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
17005 (bootstrap-temacs): Remove dependency on bootstrap-clean.
17006
17007 2001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
17008
17009 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
17010 parameter have a numeric value all the time.
17011
17012 * w32fns.c (x_report_frame_params): Likewise.
17013
17014 2001-12-12 Richard M. Stallman <rms@gnu.org>
17015
17016 * fileio.c (Fwrite_region): Doc fix.
17017
17018 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
17019 (redisplay_internal): Call clear_image_cache only for window terminals.
17020
17021 2001-12-12 Gerd Moellmann <gerd@gnu.org>
17022
17023 * xdisp.c (move_it_vertically_backward): Change heuristic
17024 for the case that we didn't move far enough initially.
17025
17026 * window.c (Frecenter): Simplify computation in the case of window
17027 system frames and ARG < 0; use window_box_height.
17028
17029 2001-12-11 Richard M. Stallman <rms@gnu.org>
17030
17031 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
17032 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
17033
17034 2001-12-11 Andrew Innes <andrewi@gnu.org>
17035
17036 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
17037 arg is negative.
17038
17039 2001-12-11 Richard M. Stallman <rms@gnu.org>
17040
17041 * m/hp800.h: Split the __hpux conditional into the parts
17042 that are right for GNU/Linux too and the parts that are not.
17043 Use the former if GNU_LINUX.
17044 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
17045
17046 * s/gnu-linux.h (GNU_LINUX): Defined.
17047
17048 2001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17049
17050 * macros.c, msdos.c, w16select.c: Change doc-string comments to
17051 `new style' [w/`doc:' keyword].
17052
17053 2001-12-10 Jason Rumney <jasonr@gnu.org>
17054
17055 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
17056 before using.
17057
17058 2001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17059
17060 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
17061 keyword].
17062
17063 2001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
17064
17065 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
17066
17067 * s/hpux10.h (srand48): Don't undefine.
17068
17069 2001-12-09 Jason Rumney <jasonr@gnu.org>
17070
17071 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
17072 Add comment to explain where the struct came from.
17073 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
17074 (add_menu_item): Process pop-up menus first to avoid memory leak.
17075 (add_menu_item, w32_menu_display_help): Use `help' field as
17076 Lisp_Object.
17077 (w32_free_submenu_strings): Only free owner-drawn strings.
17078
17079 2001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17080
17081 * COPYING: Moved back.
17082
17083 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
17084 Add parentheses around && within ||.
17085
17086 * indent.c (compute_motion): Likewise.
17087
17088 * intervals.c (merge_properties_sticky): Likewise.
17089
17090 * coding.c (setup_coding_system, shrink_encoding_region)
17091 (Fdecode_sjis_char): Likewise.
17092
17093 2001-12-07 Andreas Schwab <schwab@suse.de>
17094
17095 * xdisp.c (display_mode_element): Don't read past end of string if
17096 it ends with '%'.
17097
17098 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
17099 can hold.
17100
17101 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
17102 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
17103 type changed to Lisp_Object.
17104 (syms_of_data): DEFVAR_LISP them.
17105
17106 2001-12-07 Richard M. Stallman <rms@gnu.org>
17107
17108 * callproc.c (init_callproc): Set Vdata_directory based on the source
17109 location whenever Emacs was run uninstalled.
17110
17111 2001-12-06 Paul Eggert <eggert@twinsun.com>
17112
17113 * config.in (HAVE_WORKING_VFORK): New #undefs.
17114 * process.c (create_process):
17115 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
17116 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
17117 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
17118 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
17119 * m/intel386.h (HAVE_VFORK): Likewise.
17120 * m/mips-siemens.h (HAVE_VFORK): Likewise.
17121 * m/mips.h (HAVE_VFORK): Likewise.
17122 * s/freebsd.h (vfork): Remove #define.
17123 * s/lynxos.h (HAVE_VFORK): Remove #undef.
17124 * s/usg5-4-2.h: Fix comment about vfork.
17125
17126 2001-12-06 Richard M. Stallman <rms@gnu.org>
17127
17128 * s/hpux10.h (random): Add undef.
17129 (HAVE_RANDOM): Define it just once.
17130
17131 2001-12-06 Stefan Monnier <monnier@cs.yale.edu>
17132
17133 * eval.c: Undo last change: the standard syntax is not wanted.
17134
17135 2001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
17136
17137 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
17138 scroll bars of the frame before deleting the frame itself. If the
17139 frame has a widget, delete the frame with XtDestroyWidget, and do
17140 not call XDestroyWindow before that.
17141
17142 2001-12-06 Kim F. Storm <storm@cua.dk>
17143
17144 * xfns.c (x_report_frame_params): Return actual fringe widths.
17145
17146 * w32fns.c (x_report_frame_params): Return actual fringe widths.
17147
17148 2001-12-05 Andrew Innes <andrewi@gnu.org>
17149
17150 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
17151 excessively large.
17152
17153 * insdel.c (make_gap_larger): New function.
17154 (make_gap_smaller): New function.
17155 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
17156 Call make_gap_smaller if arg is negative.
17157
17158 2001-12-04 Stefan Monnier <monnier@cs.yale.edu>
17159
17160 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
17161 Pass a dummy argument when calling interrupt_signal.
17162 (parse_menu_item): Mark disabled items before checking for empty def.
17163 (read_char_minibuf_menu_prompt): Make safety more visible.
17164 (read_key_sequence): Add a `first_unbound' variable.
17165 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
17166 unbound prefix as soon as we can detect it.
17167
17168 * doc.c (Fsnarf_documentation): Add prototype.
17169 (get_doc_string): Handle negative arguments.
17170 (Fdocumentation): Use AREF and ASIZE.
17171 Move the calls to get_doc_string to a single place.
17172 Don't confuse an interactive-spec for a docstring reference.
17173 (Fdocumentation_property): Take advantage of the fact that
17174 get_doc_string now ignores the sign of the docstring position.
17175
17176 * eval.c: Use standard syntax for usage in docstrings.
17177
17178 2001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17179
17180 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
17181
17182 2001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17183
17184 * xterm.c (x_draw_image_relief): Use predefined macro instead of
17185 constant when the value of `tool_bar_button_relief' is negative.
17186
17187 2001-12-02 Richard M. Stallman <rms@gnu.org>
17188
17189 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
17190 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
17191
17192 * fileio.c (read_non_regular): Delete Fsignal call.
17193
17194 2001-12-01 Stefan Monnier <monnier@cs.yale.edu>
17195
17196 * lisp.h (run_hook_list_with_args): Undo last change.
17197
17198 2001-12-01 Gerd Moellmann <gerd@gnu.org>
17199
17200 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
17201
17202 2001-12-01 Jason Rumney <jasonr@gnu.org>
17203
17204 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
17205
17206 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
17207 [!WM_MOUSELEAVE]: Define.
17208
17209 * w32menu.c (current_popup_menu, get_menu_item_info):
17210 (set_menu_item_info): New vars.
17211 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
17212 (w32_menu_show): Set current_popup_menu.
17213 (add_menu_item): Allocate new strings for owner-drawn menu items
17214 and help strings.
17215 Use owner-draw for disabled menu items again.
17216 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
17217 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
17218
17219 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
17220 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
17221 <WM_EXITMENULOOP>: Free menu strings.
17222 <WM_MOUSELEAVE>: Stop tracking mouse.
17223 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
17224
17225 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
17226 and mouse face.
17227
17228 2001-12-01 Kim F. Storm <storm@cua.dk>
17229
17230 The following changes add left-fringe and right-fringe
17231 frame parameters to adjust fringe widths, or remove one or
17232 both fringes.
17233
17234 * frame.h (struct frame): Remove trunc_area_pixel_width and
17235 trunc_area_cols fields.
17236 (Qleft_fringe, Qright_fringe): Declare.
17237 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
17238
17239 * frame.c (Qleft_fringe, Qright_fringe): New vars.
17240 (syms_of_frame): Initialize them.
17241
17242 * window.c (coordinates_in_window): Handle separate left and right
17243 fringe widths.
17244
17245 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
17246 and fringe_cols fields.
17247 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
17248 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
17249 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
17250 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
17251 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
17252 (x_compute_fringe_widths): Add prototype.
17253
17254 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
17255 fill fringe evenly with small dashes.
17256 (x_draw_fringe_bitmap): Clear background if necessary. Align and
17257 clip the new ZV bitmap to avoid jitter between rows.
17258 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
17259 background. Don't draw fringe bitmaps if fringe width is zero.
17260 (x_compute_fringe_widths): New function.
17261 (x_new_font, x_set_window_size_1): Use it.
17262
17263 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
17264 (x_set_frame_parameters): Process `font' parameter before other
17265 parameters as fringe widths depend on it.
17266 (x_set_fringe_width): New function.
17267 (x_figure_window_size): Use x_compute_fringe_widths.
17268 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
17269 parameters.
17270
17271 * widget.c (set_frame_size): Use x_compute_fringe_widths.
17272 (EmacsFrameSetCharSize): Ditto.
17273
17274 * w32term.h: Merged changes from xterm.h.
17275 * w32term.c: Merged changes from xterm.c.
17276 * w32fns.c: Merged changes from xfns.c.
17277
17278 2001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17279
17280 * COPYING: Removed.
17281
17282 2001-11-29 Dave Love <fx@gnu.org>
17283
17284 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
17285 extra extra slot.
17286 (detect_coding_mask): Fix call of detect_coding_iso2022.
17287
17288 2001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17289
17290 * fileio.c (file-name-coding-system)
17291 (default-file-name-coding-system): Doc fix (links to referenced
17292 variables added).
17293
17294 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
17295
17296 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
17297 Add dummy uses of gcproN variables.
17298
17299 * category.c (describe_category, describe_category_1)
17300 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
17301 (syms_of_category): Don't defsubr Sdescribe_categories.
17302
17303 2001-11-28 Richard M. Stallman <rms@gnu.org>
17304
17305 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
17306
17307 * Makefile.in (lispdir): New variable, referring to build dir.
17308 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
17309
17310 2001-11-28 Andrew Innes <andrewi@gnu.org>
17311
17312 * w32menu.c (w32_menu_display_help): Actually add the new argument
17313 OWNER.
17314
17315 2001-11-28 Jason Rumney <jasonr@gnu.org>
17316
17317 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
17318 menu items. From David Ponce <dponce@wanadoo.fr>.
17319 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
17320 conditionally.
17321 (w32_menu_display_help): New argument OWNER. Rewritten to store a
17322 help event in the owner frame's keyboard buffer.
17323
17324 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
17325 (Fx_show_tip): Don't subtract last width from row width.
17326
17327 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
17328 (w32_read_socket): Use EQ to compare frames.
17329
17330 2001-11-28 Gerd Moellmann <gerd@gnu.org>
17331
17332 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
17333 OVERLAPS_P.
17334
17335 2001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17336
17337 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
17338 `gcpro3' and `gcpro4'.
17339
17340 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
17341
17342 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
17343
17344 * ccl.c: Use AREF and ASIZE.
17345
17346 2001-11-27 Stefan Monnier <monnier@cs.yale.edu>
17347
17348 * lisp.h (run_hook_list_with_args): Remove.
17349 (LIST_END_P): Fix call to wrong_type_argument.
17350 (make_fixnum_or_float): Use EMACS_INT rather than int.
17351
17352 2001-11-26 Stefan Monnier <monnier@cs.yale.edu>
17353
17354 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
17355 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
17356
17357 * eval.c: Use AREF and ASIZE.
17358 (Ffetch_bytecode): Add the file name to the error message.
17359
17360 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
17361 which match the end of the file-name.
17362 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
17363 is not a valid env var, but leave it as is instead.
17364
17365 * keymap.c (access_keymap): Handle t bindings like nil bindings.
17366 Make nil bindings in char-tables transparent.
17367 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
17368
17369 2001-11-26 Richard M. Stallman <rms@gnu.org>
17370
17371 * textprop.c (set_text_properties_1): Allow START, END in either order.
17372 Do nothing if range is empty.
17373
17374 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
17375
17376 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
17377 (clean): Not here.
17378
17379 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
17380
17381 * textprop.c (set_text_properties_1): Clearly mark that the
17382 interval should not be empty.
17383
17384 * intervals.c (graft_intervals_into_buffer):
17385 Don't call set_text_properties_1 on an empty interval.
17386
17387 2001-11-25 Richard M. Stallman <rms@gnu.org>
17388
17389 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
17390
17391 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
17392 don't lose the data in it.
17393
17394 2001-11-25 Juanma Barranquero <lektu@terra.es>
17395
17396 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
17397
17398 * buffer.c (Fkill_buffer): Likewise.
17399
17400 * print.c (temp_output_buffer_setup): Likewise.
17401
17402 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
17403
17404 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
17405
17406 2001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
17407
17408 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
17409 Niemitalo <kon@iki.fi>.
17410
17411 2001-11-25 Jason Rumney <jasonr@gnu.org>
17412
17413 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
17414
17415 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
17416 (Fx_show_tip): Block input during frame creation.
17417 (Fx_show_tip, Fx_hide_tip): Enable.
17418
17419 2001-11-24 Richard M. Stallman <rms@gnu.org>
17420
17421 * lread.c (Fload): Detect recursive load error for more than 3
17422 nestings of the same file.
17423 (Vrecursive_load_depth_limit): Variable deleted.
17424 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
17425
17426 2001-11-24 Jason Rumney <jasonr@gnu.org>
17427
17428 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
17429 mouse position if either left or top is not specified.
17430
17431 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
17432 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
17433 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
17434 (my_create_tip_window): Assign tip_window.
17435 (x_create_tip_frame): Use same defaults as X.
17436 (compute_tip_xy): Remove unused variable. Use full screen width.
17437 (Fx_show_tip): Do not double height. Call ShowWindow directly.
17438
17439 * w32term.c (x_after_update_window_line): Doc fix.
17440 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
17441 frames.
17442 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
17443
17444 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
17445 for all Windowed systems.
17446
17447 2001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
17448
17449 * msdos.c (IT_clear_screen): If the frame's faces are not yet
17450 realized, use the initial screen colors to clear the screen.
17451
17452 2001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17453
17454 * textprop.c (Fset_text_properties): Remove unused variables
17455 `unchanged', `prev_changed', `s' and `len'.
17456
17457 * search.c (Freplace_match): Remove unused variable `inslen'.
17458
17459 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
17460
17461 2001-11-22 Jason Rumney <jasonr@gnu.org>
17462
17463 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
17464 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
17465 (my_create_tip_window): New function.
17466 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
17467 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
17468
17469 2001-11-20 Jason Rumney <jasonr@gnu.org>
17470
17471 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
17472 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
17473
17474 * w32fns.c (Vw32_system_coding_system): Remove.
17475 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
17476
17477 2001-11-19 Stefan Monnier <monnier@cs.yale.edu>
17478
17479 * fileio.c (Fwrite_region): Move choose_write_coding_system to
17480 after build_annotations.
17481
17482 * syntax.c (describe_syntax): Add dummy arg.
17483 (describe_syntax_1): Update call to describe_vector.
17484
17485 * category.c (describe_category): Add dummy arg.
17486 (describe_category_1): Update call to describe_vector.
17487
17488 * keymap.c (Fdescribe_vector): Add `describer' parameter.
17489 (describe_command, describe_translation): Add dummy second param.
17490 (describe_map): Call elt_describer with two arguments.
17491 (describe_vector_princ): Add `fun' parameter.
17492 Call it instead of the hardcoded `princ'.
17493 (describe_vector): Add arg `args'.
17494 Pass it as a new second argument to elt_describer.
17495
17496 * keymap.h (describe_vector): Update prototype.
17497
17498 * frame.c: Don't include keymap.h any more.
17499 (keys_of_frame): Remove.
17500
17501 * lisp.h (keys_of_frame): Remove declaration.
17502
17503 * emacs.c (main): Don't call `keys_of_frame' any more.
17504
17505 2001-11-14 Andreas Schwab <schwab@suse.de>
17506
17507 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
17508 if defined, 0 otherwise.
17509 (MAP_FAILED): Define if not defined and use it to test mmap failure.
17510 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
17511
17512 2001-11-19 Richard M. Stallman <rms@gnu.org>
17513
17514 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
17515
17516 2001-11-18 Jason Rumney <jasonr@gnu.org>
17517
17518 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
17519 (x_draw_bar_cursor): If the background color of the glyph under
17520 the cursor equals the frame's cursor color, use the glyph's
17521 foreground color for drawing the bar cursor.
17522 (x_after_update_window_line): Clear internal border in different
17523 circumstances.
17524 (w32_set_vertical_scroll_bar): Check for width and height > 0.
17525 (w32_draw_relief_rect): Correct relief by 1 pixel.
17526 (x_set_glyph_string_background_width):
17527 Set extends_to_end_of_line_p if the row's fill_line_p is set and
17528 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
17529 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
17530 if cursor_in_non_selected_windows is false.
17531 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
17532 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
17533 Notice if cursor gets overwritten.
17534 (notice_overwritten_cursor): Renamed from
17535 note_overwritten_text_cursor. Rewritten to take glyph widths
17536 into account, and to take X positions as parameters.
17537 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
17538 around call to x_draw_glyphs.
17539 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
17540 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
17541 color to use for image glyph reliefs.
17542 (x_draw_image_relief): Accept zero tool_bar_button_relief.
17543 (glyph_rect): Remove unused variable `area'.
17544
17545 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
17546 some items.
17547 (x_set_internal_border_width): Set frame garbaged when window
17548 doesn't exist yet.
17549 (Fx_create_frame): Accept zero tool_bar_button_relief.
17550 (x_clear_image_1, four_corners_best, image_background)
17551 (image_background_transparent): New functions.
17552 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
17553 (gs_format): Add `:background' entry.
17554 (lookup_image): Set IMG's background color if specified.
17555 (pbm_load, xbm_load_image, png_load): Set IMG's background field
17556 when appropriate.
17557 (x_clear_image_1): Reset `background_valid' and
17558 `background_transparent_valid' fields.
17559 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
17560 calculating it here. Set IMG's background_transparent field.
17561 (enum xpm_keyword_index): Add XPM_BACKGROUND.
17562 (enum png_keyword_index): Add PNG_BACKGROUND.
17563 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
17564 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
17565 (enum gif_keyword_index): Add GIF_BACKGROUND.
17566 (enum gs_keyword_index): Add GS_BACKGROUND.
17567 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
17568 Pre-calculate image background color where necessary.
17569 (x_create_x_image_and_pixmap, xbm_load, gs_load):
17570 Use display info's n_cbits entry for screen depth.
17571 (Fx_show_tip): Remove unused variables `buffer', `top',
17572 `left', `max_width' and `max_height'.
17573
17574 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
17575
17576 2001-11-18 Gerd Moellmann <gerd@gnu.org>
17577
17578 * puresize.h (BASE_PURESIZE): Increase to 750000.
17579
17580 2001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17581
17582 * frame.c (Fframe_live_p): Doc fix.
17583
17584 2001-11-18 Richard M. Stallman <rms@gnu.org>
17585
17586 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
17587 (message_dolog_marker3): New static variables hold three markers.
17588 (syms_of_xdisp): Initialize and staticpro them.
17589 (message_dolog): Use message_dolog_marker1..3 instead of
17590 allocating markers each time. Unchain them when done.
17591
17592 2001-11-17 Richard M. Stallman <rms@gnu.org>
17593
17594 * doc.c (Fsnarf_documentation): Doc fix.
17595
17596 2001-11-17 Andreas Schwab <schwab@suse.de>
17597
17598 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
17599
17600 2001-11-17 Richard M. Stallman <rms@gnu.org>
17601
17602 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
17603
17604 2001-11-17 Jason Rumney <jasonr@gnu.org>
17605
17606 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
17607
17608 2001-11-17 Gerd Moellmann <gerd@gnu.org>
17609
17610 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
17611 with invalid position.
17612
17613 2001-11-16 Richard M. Stallman <rms@gnu.org>
17614
17615 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
17616
17617 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
17618 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
17619 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
17620
17621 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
17622
17623 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
17624
17625 * fileio.c (build_annotations): Split off the tail.
17626 (build_annotations_2): New fun. Extracted from build_annotations.
17627 (Fwrite_region): Split the call to build_annotations into two
17628 calls to build_annotations and build_annotations_2.
17629
17630 2001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17631
17632 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
17633 clear_waiting_for_input with argument.
17634
17635 * xterm.h (x_update_cursor): Remove duplicated prototype.
17636
17637 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
17638
17639 * xterm.c (waiting_for_input): Remove unnecessary declaration.
17640
17641 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
17642
17643 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
17644
17645 * fileio.c (choose_write_coding_system): New fun, extracted
17646 from Fwrite_region.
17647 (Fwrite_region): Use it.
17648
17649 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
17650 (funcall_lambda, run_hook_with_args): Make static and add prototype.
17651 (ml_apply, find_handler_clause): Add prototype.
17652
17653 2001-11-16 Eli Zaretskii <eliz@gnu.org>
17654
17655 * config.in: Add #undef HAVE_COFF_H.
17656
17657 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
17658 Required for ISC 4.1.
17659
17660 2001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
17661
17662 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
17663 Andrew Wiseman <a.wiseman@btclick.com>.
17664
17665 2001-11-16 Kim F. Storm <storm@cua.dk>
17666
17667 The following changes are made to clean up the various internal
17668 references to the fringes to actually use the term `fringe' for
17669 them. Previously, they were called `flags areas', `bitmap areas',
17670 `left/right side of windows', or implicitly as `flags' or
17671 `bitmaps':
17672
17673 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
17674 Comments fixed. Use renamed symbols.
17675
17676 * dispnew.c: Comment fix. Use renamed symbols.
17677
17678 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
17679 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
17680 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
17681
17682 * msdos.c: Comment fix.
17683
17684 * w32fns.c: Use renamed symbols.
17685
17686 * w32term.c: Comment fixes. Use renamed symbols.
17687 (fringe_bitmap_type): Renamed from bitmap_type.
17688 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
17689 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
17690 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
17691
17692 * w32term.h: Comment fixes. Use renamed symbols.
17693 (fringes_extra): Renamed from flags_areas_extra.
17694 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
17695 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
17696 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
17697 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
17698 (FRAME_X_LEFT_FRINGE_WIDTH):
17699 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
17700 (FRAME_X_RIGHT_FRINGE_WIDTH):
17701 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
17702
17703 * widget.c: Use renamed symbols.
17704
17705 * window.c: Comment fixes. Use renamed symbols.
17706 (coordinates-in-window-p): Doc fix.
17707
17708 * xdisp.c: Comment fixes. Use renamed symbols.
17709
17710 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
17711
17712 * xfns.c: Use renamed symbols.
17713
17714 * xterm.c: Comment fixes. Use renamed symbols.
17715 (fringe_bitmap_type): Renamed from bitmap_type.
17716 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
17717 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
17718 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
17719
17720 * xterm.h: Comment fixes. Use renamed symbols.
17721 (fringes_extra): Renamed from flags_areas_extra.
17722 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
17723 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
17724 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
17725 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
17726 (FRAME_X_LEFT_FRINGE_WIDTH):
17727 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
17728 (FRAME_X_RIGHT_FRINGE_WIDTH):
17729 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
17730
17731 2001-11-15 Jason Rumney <jasonr@gnu.org>
17732
17733 * w32menu.c (add-menu-item): Make help_echo and radio buttons
17734 work for most menu items. From David Ponce
17735 <david.ponce@wanadoo.fr>.
17736
17737 2001-11-15 Gerd Moellmann <gerd@gnu.org>
17738
17739 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
17740 Some x_set_* function expect to be called even if old and new
17741 value are equal.
17742
17743 * xdisp.c (build_desired_tool_bar_string): Accept zero
17744 tool_bar_button_relief.
17745
17746 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
17747
17748 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
17749
17750 * xterm.c (x_draw_bar_cursor): If the background color of the
17751 glyph under the cursor equals the frame's cursor color, use
17752 the glyph's foreground color for drawing the bar cursor.
17753
17754 * dispnew.c (direct_output_forward_char): Fix character/byte
17755 position comparison.
17756
17757 2001-11-15 Miles Bader <miles@gnu.org>
17758
17759 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
17760 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
17761 Update arguments to find_field.
17762 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
17763 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
17764 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
17765 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
17766
17767 2001-11-14 Richard M. Stallman <rms@gnu.org>
17768
17769 * editfns.c (Fpropertize): Allow call with 1 arg.
17770
17771 * dispextern.h (image_background, image_background_transparent):
17772 Conditionalize on HAVE_X_WINDOWS.
17773
17774 2001-11-13 Richard M. Stallman <rms@gnu.org>
17775
17776 * print.c (Fprin1_to_string): Doc fix.
17777
17778 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
17779
17780 * floatfns.c (Fceiling, Ffloor): Doc fixes.
17781
17782 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
17783
17784 * fileio.c (Ffile_accessible_directory_p): Doc fix.
17785
17786 * eval.c (syms_of_eval): Doc fix.
17787
17788 * coding.c (syms_of_coding): Doc fix.
17789
17790 * doc.c (Fsnarf_documentation): Doc fix.
17791
17792 * dispnew.c (syms_of_display): Doc fix.
17793
17794 * category.c (Fget_unused_category): Doc fix.
17795
17796 * buffer.c (syms_of_buffer): Doc fixes.
17797
17798 2001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
17799
17800 * print.c (prin1, print): Doc fix.
17801
17802 2001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17803
17804 * fontset.h: Remove declarations of variables
17805 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
17806
17807 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
17808 `Vclip_large_size_font'.
17809
17810 2001-11-13 Jason Rumney <jasonr@gnu.org>
17811
17812 * w32fns.c: Doc fix.
17813
17814 2001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17815
17816 * xfaces.c (Fface_attributes_as_vector): Doc fix.
17817
17818 * fns.c: Doc fix.
17819
17820 * emacs.c: Doc fix.
17821
17822 * coding.c: Doc fix.
17823
17824 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
17825 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
17826 `new style' [w/`doc:' keyword].
17827
17828 2001-11-12 Richard M. Stallman <rms@gnu.org>
17829
17830 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
17831 LeaveNotify events. Only FocusIn and FocusOut do that now.
17832 (x_display_and_set_cursor): Do display hollow cursors in active
17833 minibuffer windows when they are not selected.
17834
17835 2001-11-12 Jason Rumney <jasonr@gnu.org>
17836
17837 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
17838 * w32term.c: Change doc-string comments to `new style'
17839 [w/`doc:' keyword]. Doc fixes.
17840
17841 * w32fns.c: Don't define max.
17842 (Fx_open_connection): Only execute once.
17843
17844 2001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17845
17846 * ccl.c: Change macros to use do-while block instead of if-else.
17847 Use braces to follow GNU Coding Standards.
17848
17849 2001-11-11 Richard M. Stallman <rms@gnu.org>
17850
17851 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
17852
17853 * lread.c (read_escape): Use end_of_file_error for reporting eof.
17854
17855 * insdel.c (replace_range): Use adjust_markers_for_replace
17856 instead of adjust_markers_for_delete and adjust_markers_for_insert.
17857
17858 * intervals.h (set_text_properties, set_text_properties_1): Declare.
17859
17860 * textprop.c (set_text_properties_1): New subroutine
17861 broken out of set_text_properties.
17862 (set_text_properties): Use set_text_properties_1.
17863
17864 * intervals.c (graft_intervals_into_buffer):
17865 Use set_text_properties_1 to clear out properties.
17866
17867 * search.c (Freplace_match): Use replace_range to insert
17868 and delete. Don't request property inheritance from
17869 surrounding text.
17870
17871 2001-11-10 Jason Rumney <jasonr@gnu.org>
17872
17873 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
17874 vertical fonts. Allow them if face name is explicitly specified.
17875 Do not give up if we find a font that cannot be converted to an xlfd.
17876
17877 2001-11-10 Gerd Moellmann <gerd@gnu.org>
17878
17879 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
17880 instead of malloc/free.
17881
17882 2001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17883
17884 * xfaces.c (merge_face_vectors): Use braces to follow GNU
17885 Coding Standards.
17886 (Finternal_set_lisp_face_attribute): Likewise.
17887
17888 * buffer.c (Fbury_buffer): Likewise.
17889
17890 * indent.c (current_column_1): Remove unused variable `prev_col'.
17891
17892 * coding.c (encode_coding): Use precomputed value of `src'.
17893 (encode_coding): Remove unused variable `src_end'.
17894 (code_convert_region): Remove unused variables `count'.
17895
17896 2001-11-07 Jason Rumney <jasonr@gnu.org>
17897
17898 * w32term.c (x_display_and_set_cursor): Do not move system caret
17899 if cursor_glyph is NULL.
17900
17901 2001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17902
17903 * keymap.c (access_keymap): Fix compilation error.
17904
17905 2001-11-07 Miles Bader <miles@gnu.org>
17906
17907 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
17908
17909 2001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17910
17911 * intervals.c (graft_intervals_into_buffer):
17912 Remove #ifdef'd-out code.
17913 (graft_intervals_into_buffer): Remove unused variable `middle'.
17914
17915 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
17916 code (eval-current-buffer).
17917 Change doc-string comments to `new style' [w/`doc:' keyword].
17918
17919 2001-11-06 Richard M. Stallman <rms@gnu.org>
17920
17921 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
17922
17923 2001-11-06 Stefan Monnier <monnier@cs.yale.edu>
17924
17925 * lread.c (read1): Fix behavior with nested backquoting.
17926
17927 * keyboard.c (make_lispy_event): Check integerness and fix
17928 Lisp_Object/int mixup.
17929
17930 2001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17931
17932 * fns.c (copy_hash_table): Remove unused variable `v'.
17933
17934 * fontset.c (fontset_font_pattern): Remove unused variable
17935 `family_registry'.
17936
17937 * indent.c (current_column_1): Remove unused variable `prev_col'.
17938
17939 2001-11-05 Richard M. Stallman <rms@gnu.org>
17940
17941 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
17942
17943 * buffer.c (Fkill_buffer): Don't delete auto save file
17944 if buffer is modified.
17945
17946 2001-11-05 Andrew Innes <andrewi@gnu.org>
17947
17948 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
17949 CHECK_NUMBER_CDR.
17950
17951 2001-11-05 Richard M. Stallman <rms@gnu.org>
17952
17953 * unexelf.c (unexec): Minor changes; clean up comments.
17954
17955 2001-11-05 Sam Steingold <sds@gnu.org>
17956
17957 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
17958
17959 2001-11-05 Andreas Schwab <schwab@suse.de>
17960
17961 * sound.c (sound_perror): Save errno from being clobbered.
17962
17963 2001-11-05 Dale Hagglund <rdh@yottayotta.com>
17964
17965 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
17966 the program image directly.
17967
17968 2001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17969
17970 * buffer.h (Fbuffer_local_value): Add prototype.
17971
17972 2001-11-04 Richard M. Stallman <rms@gnu.org>
17973
17974 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
17975 and CHECK_BUFFER.
17976
17977 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
17978 (record_char): Likewise.
17979
17980 * keyboard.c (make_lispy_event): Don't insist a drag event must
17981 move to a different buffer position. Instead, check for moving at
17982 least double_click_fuzz.
17983
17984 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
17985
17986 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
17987
17988 * indent.c (current_column_1, Fmove_to_column): Separate the code
17989 for display-table glyphs from the code for buffer text, to fix
17990 bugs in the former.
17991
17992 2001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
17993
17994 * buffer.c (Fbuffer_local_value): New function.
17995 (syms_of_buffer): Defsubr it.
17996
17997 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
17998 value of `cursor-in-non-selected-windows'.
17999
18000 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
18001 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
18002 (syms_of_xdisp): Initialize it.
18003
18004 2001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18005
18006 * xfns.c (Fx_create_frame): Doc fix.
18007
18008 * coding.c: Change doc-string comments to `new style' [w/`doc:'
18009 keyword].
18010
18011 * eval.c (top_level_value, top_level_set): Remove commented and
18012 #ifdef'd-out code.
18013 (Fdefvar): Fix usage in doc-string.
18014
18015 2001-11-03 Richard M. Stallman <rms@gnu.org>
18016
18017 * xfns.c: Include unistd.h, if it exists.
18018
18019 * editfns.c: Move the include of ctype.h after unistd.h.
18020
18021 * gmalloc.c: Test BROKEN_PROTOTYPES.
18022
18023 2001-11-03 Ken Raeburn <raeburn@gnu.org>
18024
18025 * lisp.h (CHECK_STRING_CAR): New macro.
18026 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
18027 treating XCAR and XCDR as lvalues.
18028 (openp): Use CHECK_STRING_CAR.
18029 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
18030
18031 2001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
18032
18033 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
18034 (SIGMASKTYPE): Define.
18035
18036 * syssignal.h (sigunblock): Don't define if already defined.
18037
18038 2001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18039
18040 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
18041 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
18042 Fix typos in comments.
18043
18044 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
18045 and #ifdef'd-out code.
18046 Fix and reindent comments.
18047
18048 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
18049
18050 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
18051 argument `i' in macros.
18052
18053 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
18054 `i' in macros.
18055
18056 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
18057 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
18058 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
18059 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
18060 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
18061 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
18062 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
18063 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
18064 in macros.
18065
18066 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
18067 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
18068 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
18069 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
18070 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
18071 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
18072 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
18073 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
18074 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
18075 (remove unused second argument).
18076
18077 2001-11-02 Stefan Monnier <monnier@cs.yale.edu>
18078
18079 * syntax.c (describe_syntax): New wrapper.
18080 (Finternal_describe_syntax_value): Rename from describe_syntax.
18081 Don't insert space at front and \n at the end.
18082 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
18083
18084 * regex.c (re_wctype): Try to fix some warnings.
18085 (regcomp, regexec): Don't forget the __restrict.
18086
18087 2001-11-02 Richard M. Stallman <rms@gnu.org>
18088
18089 * textprop.c (Fget_char_property): Doc fix.
18090
18091 2001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18092
18093 * process.c (Fstart_process): Add usage to doc-string.
18094
18095 * data.c (Fsetq_default): Ditto.
18096
18097 * callint.c (Finteractive): Ditto.
18098
18099 2001-11-01 Stefan Monnier <monnier@cs.yale.edu>
18100
18101 * macros.c: Don't include keymap.h any more.
18102
18103 2001-11-01 Richard M. Stallman <rms@gnu.org>
18104
18105 * data.c (Fmake_local_variable): Doc fix.
18106
18107 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
18108 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
18109
18110 * keymap.c (Fdescribe_buffer_bindings): Print character property
18111 bindings along with or instead of the buffer local map.
18112 Make the overriding maps override what they should.
18113
18114 2001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18115
18116 * window.c (grow_mini_window): Fix typo in comment.
18117
18118 2001-11-01 Gerd Moellmann <gerd@gnu.org>
18119
18120 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
18121 (XTset_vertical_scroll_bar): Likewise.
18122
18123 * xfns.c (x_build_heuristic_mask): Use four_corners_best
18124 instead of IMAGE_BACKGROUND.
18125
18126 * xfns.c (four_corners_best): Reindent.
18127
18128 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
18129 Handle :box so that it is possible to specify sexprs.
18130
18131 2001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
18132
18133 * s/hpux11.h: New file.
18134
18135 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18136
18137 * emacs.c (USAGE1): Show command line option --no-window-system
18138 instead of --no-windows in usage.
18139 (standard_args): Rename --no-windows to --no-window-system.
18140 (bug_reporting_address): Follow Emacs coding conventions.
18141
18142 * eval.c (Fcommandp): Doc fix.
18143 Change doc-string comments to `new style' [w/`doc:' keyword].
18144
18145 * frame.c (Fframe_live_p): Doc fix.
18146
18147 * buffer.c (selective-display-ellipses): Doc fix.
18148
18149 2001-10-31 Gerd Moellmann <gerd@gnu.org>
18150
18151 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
18152
18153 * xfaces.c (realize_x_face): If C is not a single-byte character,
18154 set the face's colors_copied_bitwise_p instead of the defaulted_p
18155 members which have a different meaning.
18156 (free_face_colors): Do nothing for a face whose colors have been
18157 copied bitwise.
18158
18159 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
18160
18161 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18162
18163 * marker.c, mocklisp.c: Change doc-string comments to `new style'
18164 [w/`doc:' keyword].
18165
18166 2001-10-31 Gerd Moellmann <gerd@gnu.org>
18167
18168 * fns.c (require_unwind): Return Lisp_Object.
18169
18170 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18171
18172 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
18173 (last-input-char): Revert doc-string to be the same as the
18174 doc-string of `last-input-event'.
18175
18176 * xdisp.c: Fix typos in comments.
18177
18178 2001-10-31 Gerd Moellmann <gerd@gnu.org>
18179
18180 * window.c (grow_mini_window): Handle case that the root
18181 window is already smaller than the nominal mininum height.
18182
18183 2001-10-30 Stefan Monnier <monnier@cs.yale.edu>
18184
18185 * emacs.c (main): Don't call keys_of_macros any more.
18186
18187 * lisp.h (keys_of_macros): Remove.
18188
18189 * macros.c (keys_of_macros): Remove.
18190
18191 * xfaces.c (Fface_attribute_relative_p): Declare args.
18192
18193 2001-10-30 Jason Rumney <jasonr@gnu.org>
18194
18195 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
18196 (enum_font_cb2): Ignore fonts with vertical orientation.
18197
18198 2001-10-30 Richard M. Stallman <rms@gnu.org>
18199
18200 * keyboard.c (Finput_pending_p): Doc fix.
18201
18202 2001-10-30 Gerd Moellmann <gerd@gnu.org>
18203
18204 * xterm.c (x_after_update_window_line): Don't run the code
18205 clearing in borders for rows whose visible height is 0.
18206
18207 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
18208 resized_p flag is set. If not set, use the much less flickering
18209 method previously used.
18210
18211 * dispnew.c (change_frame_size_1): Set frame's resized_p.
18212
18213 * frame.h (struct frame) <resized_p>: New member.
18214
18215 * lread.c (to_multibyte): Ensure read_buffer is at least twice
18216 as large as the number of bytes to convert.
18217
18218 * lread.c (to_multibyte): New function.
18219 (read1): Use it.
18220
18221 2001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
18222
18223 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
18224
18225 2001-10-30 Gerd Moellmann <gerd@gnu.org>
18226
18227 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
18228 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
18229 if the row's fill_line_p is set and drawing the last glyph with
18230 DRAW_IMAGE_{RAISED,SUNKEN}.
18231
18232 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
18233
18234 2001-10-29 Stefan Monnier <monnier@cs.yale.edu>
18235
18236 * xmenu.c: Include coding.h and charset.h.
18237 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
18238 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
18239 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
18240 Explicitly set wv->help. Use `TRUE' rather than `True'.
18241 (menu_help_callback): Use empty_string.
18242
18243 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
18244 (Fx_popup_dialog): Explicitly init f.
18245 (w32_menu_display_help): Use empty_string.
18246
18247 2001-10-29 Richard M. Stallman <rms@gnu.org>
18248
18249 * fns.c (Frequire): Detect recursive try to require the same
18250 feature 3 or more levels deep, and get error.
18251 (require_unwind): New subroutine.
18252 (require_nesting_list): New variable.
18253 (syms_of_fns): Init and staticpro it.
18254
18255 * print.c (print_object): Clarify indication of insertion type.
18256
18257 2001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
18258
18259 * coding.c (syms_of_coding): Document that locale-coding-system is
18260 used for decoding input on X.
18261
18262 * window.c (Fscroll_left, Fscroll_right): Doc fix.
18263
18264 2001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18265
18266 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
18267 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
18268
18269 2001-10-29 Gerd Moellmann <gerd@gnu.org>
18270
18271 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
18272 use NO_CURSOR if cursor_in_non_selected_windows is false.
18273
18274 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
18275 the slant attribute if FRAME is t.
18276
18277 * xfns.c (x_set_internal_border_width): Set frame garbaged
18278 when X window doesn't exist yet.
18279
18280 * xterm.c (x_after_update_window_line): Clear internal border
18281 in different circumstances.
18282
18283 * xterm.c (XTread_socket) <KeyPress>: Don't use
18284 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
18285 <handa@etl.go.jp>.
18286
18287 2001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
18288
18289 * m/ibms390.h: New file. From Adam Thornton
18290 <athornton@sinenomine.net>.
18291
18292 2001-10-28 Gerd Moellmann <gerd@gnu.org>
18293
18294 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
18295
18296 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
18297 a loop counter.
18298
18299 2001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18300
18301 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
18302
18303 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
18304 keyword].
18305 Fix typos in comments.
18306
18307 * emacs.c (bug_reporting_address): New function.
18308 Use it when displaying usage message.
18309
18310 * minibuf.c (read_minibuf): Remove unused external declaration of
18311 variable `Qread_only'.
18312
18313 * keymap.c (access_keymap): Remove unused variable `charset'.
18314
18315 2001-10-28 Miles Bader <miles@gnu.org>
18316
18317 * xfaces.c (merge_face_heights): Handle TO being relative as well.
18318 Remove #ifdef'd-out code.
18319 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
18320 (syms_of_xfaces): Initialize them.
18321
18322 2001-10-27 Jason Rumney <jasonr@gnu.org>
18323
18324 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
18325 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
18326 position using the system caret.
18327
18328 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
18329 (w32_system_caret_height, w32_system_caret_x)
18330 (w32_system_caret_y): New variables for tracking system caret.
18331 (w32_initialize): Initialize them.
18332 (x_display_and_set_cursor): Make system caret follow the active cursor.
18333
18334 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
18335 New messages types.
18336
18337 * w32term.c (note_mouse_highlight): Clear old help_echo.
18338
18339 2001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18340
18341 * xterm.c: Fix typo in a comment.
18342
18343 * emacs.c: Fix typos in comments.
18344 Remove unnecessary spaces.
18345 Change doc-string comments to `new style' [w/`doc:' keyword].
18346 (USAGE2): Fix typos in usage string.
18347
18348 * xterm.c: Fix typo in a comment.
18349
18350 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
18351 emacs.c.
18352
18353 2001-10-27 Gerd Moellmann <gerd@gnu.org>
18354
18355 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
18356 instead of 1/2 line_height in the heuristic for skipping
18357 farther backward when target_y was not reached.
18358
18359 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
18360 Display errno only if non-zero.
18361 (sound_warning): New function.
18362 (vox_configure): Don't treat failing to set sample rate as error.
18363 (various places): Improve error messages.
18364
18365 2001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
18366
18367 * fileio.c (Faccess_file): Run the argument filename through
18368 Fexpand_file_name, before using it.
18369
18370 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
18371 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
18372
18373 2001-10-26 Gerd Moellmann <gerd@gnu.org>
18374
18375 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
18376
18377 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
18378 Fix clearing in the case of scroll bars on the right.
18379
18380 2001-10-26 Juanma Barranquero <lektu@terra.es>
18381
18382 * w32gui.h (XImage): Add a dummy typedef.
18383
18384 2001-10-26 Gerd Moellmann <gerd@gnu.org>
18385
18386 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
18387
18388 2001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
18389
18390 * frame.c (Fframe_parameter): Fix last change.
18391
18392 * fileio.c: Revert last change (which removed old commented-out
18393 version of expand-file-name). Add a comment that explains why
18394 this old version should not be removed.
18395
18396 2001-10-25 Gerd Moellmann <gerd@gnu.org>
18397
18398 * frame.c (Fframe_parameter): Fix a bug whereby some
18399 ``artificial'' frame parameters, like `minibuffer' were not
18400 obtained by calling Fframe_parameters.
18401
18402 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
18403 cursor differently.
18404
18405 * xdisp.c (move_it_vertically_backward): Compute line height
18406 differently. Add heuristic to try to be more compatible to 20.x.
18407
18408 2001-10-25 Stefan Monnier <monnier@cs.yale.edu>
18409
18410 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
18411
18412 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
18413 boolean.
18414
18415 2001-10-25 Miles Bader <miles@gnu.org>
18416
18417 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
18418 BG is a pointer to a structure, not a structure.
18419 (gif_format, png_format): Add missing commas.
18420
18421 2001-10-24 Richard M. Stallman <rms@gnu.org>
18422
18423 * xfaces.c (Fface_attributes_as_vector): New function.
18424 (syms_of_xfaces): Defsubr it.
18425
18426 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18427
18428 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
18429 variable `area'.
18430
18431 2001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18432
18433 * search.c (scan_newline): Remove unused variable `selective_display'.
18434
18435 2001-10-25 Miles Bader <miles@gnu.org>
18436
18437 * dispextern.h (struct image): Add `background',
18438 `background_valid', and `background_transparent' fields.
18439 (image_background, image_background_transparent): New declarations.
18440 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
18441 * xfns.c (image_background, image_background_transparent)
18442 (four_corners_best): New functions.
18443 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
18444 (gs_format): Add `:background' entry.
18445 (lookup_image): Set IMG's background color if specified.
18446 (pbm_load, xbm_load_image, png_load): Set IMG's background field
18447 when appropriate.
18448 (x_clear_image_1): Reset `background_valid' and
18449 `background_transparent_valid' fields.
18450 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
18451 calculating it here. Set IMG's background_transparent field.
18452 (enum xpm_keyword_index): Add XPM_BACKGROUND.
18453 (enum png_keyword_index): Add PNG_BACKGROUND.
18454 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
18455 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
18456 (enum gif_keyword_index): Add GIF_BACKGROUND.
18457 (enum gs_keyword_index): Add GS_BACKGROUND.
18458 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
18459 Pre-calculate image background color where necessary.
18460 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
18461 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
18462 color to use for image glyph reliefs.
18463
18464 2001-10-24 Gerd Moellmann <gerd@gnu.org>
18465
18466 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
18467 in full-width rows.
18468
18469 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
18470 Fix clearing of area not covered by scroll bar.
18471
18472 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18473
18474 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
18475 and `real_start'.
18476 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
18477 (glyph_rect): Remove unused variable `area'.
18478
18479 2001-10-24 Gerd Moellmann <gerd@gnu.org>
18480
18481 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
18482
18483 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
18484 (row_containing_pos): Take additional argument DY.
18485 Treat rows ending in middle of char differently.
18486 (display_line): Handle tabs on window systems differently.
18487
18488 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
18489 with additional argument.
18490
18491 * dispextern.h (row_containing_pos): Adjust prototype.
18492
18493 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
18494 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
18495 (try_window_id, try_window_reusing_current_matrix)
18496 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
18497 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
18498
18499 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18500
18501 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
18502 gnuemacs).
18503 (HAVE_BOXES): Fix typo in comment.
18504 (push_menu_pane): Fix typo in comment.
18505
18506 * xdisp.c: (display_prop_string_p): Remove unused local declaration
18507 of `Qwhen'.
18508 (single_display_prop_string_p): Remove unused local declarations
18509 of `Qwhen' and `Qmargin'.
18510 (string_buffer_position): Remove unused variable `around'.
18511 (store_frame_title): Remove unused variable `width'.
18512
18513 * window.c: Don't define max.
18514 (coordinates_in_window): Remove unused variable `uy'.
18515
18516 * widget.c: Don't define max.
18517
18518 * process.c: Don't define max.
18519 (create_process): Remove unused variable `buffer'.
18520
18521 2001-10-23 Gerd Moellmann <gerd@gnu.org>
18522
18523 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
18524
18525 2001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
18526
18527 * xfaces.c (Finternal_set_lisp_face_attribute)
18528 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
18529 frame is on a windowed display.
18530
18531 2001-10-23 Gerd Moellmann <gerd@gnu.org>
18532
18533 * dispnew.c (sync_window_with_frame_matrix_rows):
18534 Fix handling of windows which aren't full-width, fix handling
18535 of marginal areas.
18536
18537 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
18538
18539 2001-10-23 Andreas Schwab <schwab@suse.de>
18540
18541 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
18542 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
18543
18544 2001-10-23 Gerd Moellmann <gerd@gnu.org>
18545
18546 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
18547 REAL_END. Notice if cursor gets overwritten.
18548 (notice_overwritten_cursor): Take X positions as parameters.
18549 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
18550 around call to x_draw_glyphs.
18551
18552 2001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18553
18554 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
18555 instead of C) and usage.
18556
18557 * editfns.c (char-to-string): Fix argument names (use CHAR instead
18558 of C) and usage.
18559
18560 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
18561 `left', `max_width' and `max_height'.
18562
18563 2001-10-23 Gerd Moellmann <gerd@gnu.org>
18564
18565 * xdisp.c (display_line): For a tab continued to the next line,
18566 set row's ends_in_middle_of_char_p.
18567
18568 2001-10-22 Gerd Moellmann <gerd@gnu.org>
18569
18570 * xdisp.c (display_line): Fix computation of continuation lines
18571 width for TABs.
18572
18573 2001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18574
18575 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
18576 `Qlaplace'.
18577
18578 * fileio.c: Remove unused code.
18579
18580 2001-10-22 Miles Bader <miles@gnu.org>
18581
18582 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
18583 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
18584 Remove `DOC_STRINGS_IN_COMMENTS' cases.
18585
18586 2001-10-21 Jason Rumney <jasonr@gnu.org>
18587
18588 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
18589
18590 2001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
18591
18592 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
18593 (Finsert_string): Avoid the multi-line string literals warning.
18594
18595 2001-10-22 Miles Bader <miles@gnu.org>
18596
18597 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
18598 (Fdocumentation): Don't use it.
18599 (syms_of_doc): Don't initialize it.
18600
18601 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
18602 * print.c (Fwith_output_to_temp_buffer): Likewise.
18603 * window.c (Fsave_window_excursion): Likewise.
18604 * editfns.c (Fsave_excursion, Fsave_current_buffer)
18605 (Fsave_restriction): Likewise.
18606 * eval.c (Frun_hooks, Frun_hook_with_args)
18607 (Frun_hook_with_args_until_failure)
18608 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
18609 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
18610 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
18611 (Funwind_protect, Fcondition_case): Likewise.
18612 * coding.c (Ffind_operation_coding_system): Likewise.
18613 * keyboard.c (Ftrack_mouse): Likewise.
18614
18615 2001-10-21 Miles Bader <miles@gnu.org>
18616
18617 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
18618 (Fmake_hash_table): Add usage: string to doc string.
18619 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
18620 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
18621 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
18622 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
18623 (Fml_prefix_argument_loop): Likewise.
18624
18625 2001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18626
18627 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
18628
18629 * sysdep.c (init_sys_modes): Change doc-string comments to `new
18630 style' [w/`doc:' keyword].
18631
18632 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
18633 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
18634 comments to `new style' [w/`doc:' keyword].
18635
18636 2001-10-21 Jason Rumney <jasonr@gnu.org>
18637
18638 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
18639
18640 * w32term.c (remember_mouse_glyph): New function.
18641 (w32_mouse_position): Use it.
18642 (note_mouse_movement): If the mouse moved off the glyph, remember
18643 its new position.
18644
18645 * w32term.h (struct w32_output): Correct spelling of x_compatible.
18646 (w32_display_info): Add mouse_face_overlay.
18647
18648 * w32term.c (notice_overwritten_cursor): Renamed from
18649 note_overwritten_text_cursor. Rewritten to take glyph widths into
18650 account.
18651 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
18652 (fast_find_string_pos): New function.
18653 (fast_find_position): Return the correct vpos. Add parameter
18654 STOP. In the final row, stop before glyphs having STOP as object.
18655 Don't consider glyphs that are not from a buffer.
18656 (fast_find_position) [0]: Add a presumably more correct version
18657 for after 21.1.
18658 (expose_window_tree, expose_frame): Don't compute intersections here.
18659 (expose_window): Do it here instead.
18660 (expose_window_tree, expose_window, expose_line): Return 1 when
18661 overwriting mouse-face.
18662 (expose_window): If W is the window currently being updated, mark
18663 the frame garbaged.
18664 (expose_frame): If mouse-face was overwritten, redo it.
18665 (x_use_underline_position_properties): New variable.
18666 (syms_of_xterm): DEFVAR_BOOL it.
18667 (x_draw_glyph_string): Add comment to use it in future.
18668 (x_draw_glyph_string): Restore clipping after drawing box.
18669 Fix a computation of the underline position.
18670 (w32_get_glyph_string_clip_rect): Minor cleanup.
18671 (x_fill_stretch_glyph_string): Remove an assertion.
18672 (x_produce_glyphs): Don't convert multibyte characters
18673 to unibyte characters in unibyte buffers.
18674 (cursor_in_mouse_face_p): New function.
18675 (x_draw_stretch_glyph_string): Use it to choose a different GC
18676 when drawing a cursor within highlighted text. Don't draw
18677 background again if it has already been drawn.
18678 (x_draw_glyph_string_box): Don't draw a full-width
18679 box just because the glyph row's full_width_p flag is set.
18680 (x_draw_glyphs): Fix computation of rightmost x for
18681 full-width rows.
18682 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
18683 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
18684 change bottom shadow accordingly. Some cleanup.
18685 (x_update_window_end): Handle overwritten mouse face
18686 also for tool bar windows.
18687 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
18688 DRAW is DRAW_IMAGE_RAISED.
18689 (clear_mouse_face): Return 1 if text with mouse face was
18690 actually redrawn. Make the function static.
18691 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
18692 optimize away highlighting if we pass over that same overlay again.
18693 (note_mouse_highlight): Call mouse_face_overlay_overlaps
18694 to detect a case where we have to highlight a different region
18695 despite not having left the currently highlighted region.
18696 Set mouse_face_overlay in the x_display_info. Avoid changing the
18697 mouse pointer shape when show_mouse_face has already done it, or
18698 there is no need. Handle mouse-face and help-echo in strings.
18699 (glyph_rect): New function.
18700 (w32_mouse_position): Use it to raise the threshold for mouse
18701 movement event generation.
18702 (w32_initialize_display_info): Initialize the x_display_info's
18703 mouse_face_overlay.
18704 (w32_set_vertical_scroll_bar): Don't clear a zero height
18705 or width area.
18706 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
18707 a widget to zero height.
18708
18709 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
18710 Protect unibyte strings created by replacing their multibyte
18711 equivalents in menu_items.
18712 (w32_menu_show): Don't overwrite an item's name with its key
18713 description in case the description is a multibyte string.
18714 (single_submenu): Some cleanup.
18715
18716 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
18717 (postprocess_image): New function.
18718 (lookup_image): Call it for all image types except PostScript.
18719 (x_kill_gs_process): Call postprocess_image.
18720 (tiff_error_handler, tiff_warning_handler): New functions.
18721 (tiff_load): Install them as handlers.
18722 (x_kill_gs_process): Recognize if someone has cleared the image
18723 cache under us.
18724 (valid_image_p): Protect better against invalid image
18725 specifications. Previous code could signal an error.
18726 (Fx_hide_tip, Fshow_tip): Doc fix.
18727 (Fv_max_tooltip_size): New variable.
18728 (syns_of_xfns): DEFVAR_LISP it.
18729 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
18730 window buffer to *tip* right after creating the frame. Set frame's
18731 window_width. Use a maximum tooltip size specified by
18732 Vx_max_tooltip_size, if that has valid contents.
18733 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
18734 Make sure the tooltip is completely visible.
18735 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
18736 (Fx_create_frame): Adjust the frame's height for presence
18737 of the tool bar before calling x_figure_window_size.
18738 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
18739 when the window gets smaller.
18740 (x_set_foreground_color): Set frame's cursor_pixel.
18741 (x_set_foreground_color, x_set_background_color): Cleaned up.
18742 (x_set_font): Handle case of x_new_fontset returning the same name
18743 as before, although there was a change in fontsets.
18744
18745 2001-10-21 Miles Bader <miles@gnu.org>
18746
18747 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
18748 (Flogxor): Add usage: string to doc string.
18749 * charset.c (Fstring): Likewise.
18750 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
18751 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
18752
18753 2001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18754
18755 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
18756
18757 * alloc.c: Reindent DEFUNs with doc: keywords.
18758
18759 * abbrev.c (Finsert_abbrev_table_description): Reindent.
18760
18761 * frame.c: Change doc-string comments to `new style' [w/`doc:'
18762 keyword].
18763
18764 See ChangeLog.9 for earlier changes.
18765
18766 ;; Local Variables:
18767 ;; coding: iso-2022-7bit
18768 ;; End:
18769
18770 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
18771 Copying and distribution of this file, with or without modification,
18772 are permitted provided the copyright notice and this notice are preserved.
18773
18774 ;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4