(Pop-Up Menus): Correct and clarify description of `x-popup-menu'.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
4d49edf6
LT
12005-05-01 Luc Teirlinck <teirllm@auburn.edu>
2
3 * charset.c (syms_of_charset): Delete defsubr for Schars_in_region.
4
4a766fe6
JR
52005-05-02 Jason Rumney <jasonr@gnu.org>
6
7 * emacs.c (USAGE3, USAGE4): Keep strings below 2048 bytes.
8
c924d3ff
TTN
92005-05-02 Nozomu Ando <nand@mac.com>
10
11 * sysselect.h: Fix typo.
12
b161ea4e 132005-05-02 Nick Roberts <nickrob@snap.net.nz>
5c2e5a5e 14
b161ea4e
NR
15 * charset.c (Fchars_in_region): Remove as obsolete.
16
d37e919d 172005-05-01 Kim F. Storm <storm@cua.dk>
b161ea4e
NR
18
19 * xdisp.c (move_it_in_display_line_to): Stop if we move beyond
20 TO_CHARPOS. This may happen if last glyphs was an image or stretch
21 glyph.
5c2e5a5e 22
bec0b768
LT
232005-05-01 Luc Teirlinck <teirllm@auburn.edu>
24
25 * dispnew.c (sit_for): Vexecuting_macro -> Vexecuting_kbd_macro.
26
ebbfa918
RS
272005-05-01 Richard M. Stallman <rms@gnu.org>
28
29 * xmenu.c [not HAVE_X_TOOLKIT] (xmenu_show):
30 If user cancels the menu, quit unless FOR_CLICK.
31
32 * macros.c (Vexecuting_kbd_macro): Renamed from Vexecuting_macro.
33 All uses changed.
34 (syms_of_macros): Define only executing-kbd-macro, not executing-macro.
35 * keyboard.c: Change Vexecuting_macro to Vexecuting_kbd_macro.
36 * macros.h (Vexecuting_kbd_macro): Declare instead of Vexecuting_macro.
37 * commands.h (Vexecuting_kbd_macro): Likewise.
38
a72c2d97
TTN
392005-05-01 Thien-Thi Nguyen <ttn@gnu.org>
40
41 * sysdep.c (get_frame_size) [VMS]: Use a fresh i/o channel.
42
7e995a23
RS
432005-04-30 Richard M. Stallman <rms@gnu.org>
44
45 * fileio.c (Ffind_file_name_handler): Handle the `operations'
46 property of the file name handler.
47 (Qoperations): New variable.
48 (syms_of_fileio): Initialize and staticpro it.
49
50 * xdisp.c (set_message_1): Delete xassert.
51
7a92caf8
YM
522005-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
53
54 * mac.c: Don't include time.h. Include sysselect.h after
55 systime.h.
56
57 * macfns.c (Fx_server_version): Add BLOCK_INPUT around Gestalt.
58
59 * macgui.h [HAVE_CARBON && MAC_OSX]: Don't undefine/define mktime
60 before/after including Carbon.h if there is a working mktime.
61
5ae91803
KS
622005-04-28 Kim F. Storm <storm@cua.dk>
63
64 * xfaces.c (resolve_face_name): Add arg SIGNAL_P. Calls changed.
65 Fix cyclic alias check. If alias loop is detected, signal
66 circular-list error if SIGNAL_P, and return Qdefault if !SIGNAL_P.
67
d79b6c21
LK
682005-04-28 Lute Kamstra <lute@gnu.org>
69
70 * eval.c (do_autoload): Record only autoloads in the autoload
71 property of symbols.
72
8c75afbf
NR
732005-04-28 Nick Roberts <nickrob@snap.net.nz>
74
75 * emacs.c (USAGE1): Add --basic-display and --quick options.
76
832e294f
KS
772005-04-27 Kim F. Storm <storm@cua.dk>
78
79 * data.c (syms_of_data) Staticpro Qcyclic_variable_indirection.
80
f03f317a
RS
812005-04-26 Richard M. Stallman <rms@gnu.org>
82
c019856e
RS
83 * window.c (Fsame_window_p, Fspecial_display_p): Doc fixes.
84 (syms_of_window): Doc fixes.
85
f03f317a
RS
86 * indent.c (Fvertical_motion): Undo previous change.
87
38f60cd9
KH
882005-04-26 Kenichi Handa <handa@m17n.org>
89
90 * fns.c (char_table_range): New function.
91 (Fchar_table_range): Signal an error if characters in the range
92 have inconsistent values. Don't check the parent.
93
87ede5a1
KH
942005-04-25 Kenichi Handa <handa@m17n.org>
95
96 * fontset.c (fontset_set): Fix previous change.
97
a6390474
RS
982005-04-24 Richard M. Stallman <rms@gnu.org>
99
100 * indent.c (Fvertical_motion): Bind fontification-functions to nil.
101
7fce7dfe
EZ
1022005-04-24 Eli Zaretskii <eliz@gnu.org>
103
cf1982d9
EZ
104 * regex.c (re_search_2, re_match_2_internal): Convert second arg
105 of RE_TRANSLATE to int, to shut up GCC warnings.
106
7fce7dfe
EZ
107 * fileio.c (Fcopy_file): Doc fix.
108 [MSDOS]: Fix call to emacs_open: buffer_file_type not defined and
109 not needed.
110
49ed33c7
YM
1112005-04-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
112
113 * Makefile.in [HAVE_CARBON] (MAC_OBJ): Add macselect.o.
114 (SOME_MACHINE_OBJECTS): Likewise.
115 (mac.o): Depend on ccl.h.
116 (macselect.o): New target.
117
118 * emacs.c (main) [MAC_OS8 || MAC_OSX && HAVE_CARBON]: Call
119 syms_of_macselect.
120
121 * frame.c (Fdelete_frame) [MAC_OS]: Call x_clear_frame_selections.
122
123 * mac.c [!TARGET_API_MAC_CARBON]: Don't include charset.h or
124 coding.h.
125 (QCLIPBOARD): Remove variable.
126 (syms_of_mac): Don't initialize it.
127 (Fmac_paste_function, Fmac_cut_function, Fx_selection_exists_p):
128 Remove functions.
129 (syms_of_mac): Don't defsubr them.
130 [TARGET_API_MAC_CARBON] (Qmime_charset, QNFD, QNFKD, QNFC, QNFKC)
131 (QHFS_plus_D, QHFS_plus_C): New variables.
132 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
133 [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp)
134 (cfstring_create_normalized): New functions.
135 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Likewise.
136 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
137
138 * macterm.c (handling_window_update, terminate_flag): Remove
139 variables.
140 (do_window_update, do_ae_quit_application, XTread_socket): Don't
141 use them.
142 (WNE_SLEEP_AT_SUSPEND, WNE_SLEEP_AT_RESUME): Don't define.
143 [USE_CARBON_EVENTS && MAC_OSX] (mac_handle_service_event)
144 (init_service_handler): Move to macselect.c. Remove declarations.
145 [USE_CARBON_EVENTS && MAC_OSX] (init_service_handler): Add extern.
146 (Qapplication, Qabout): New variables.
147 (syms_of_mac): Initialize them.
148 [USE_CARBON_EVENTS && MAC_OSX] (Qpreferences, Qservices, Qpaste)
149 (Qperform): New variables.
150 (syms_of_mac) [USE_CARBON_EVENTS && MAC_OSX]: Initialize them.
7a92caf8 151 (do_get_menus) [TARGET_API_MAC_CARBON]: Don't call AppendResMenu.
49ed33c7
YM
152 (do_menu_choice): Unhighlight menu bar also when menu_id is 0.
153 (mac_store_application_menu_event, init_menu_bar): New functions.
154 [USE_CARBON_EVENTS] (mac_handle_command_event)
155 (init_command_handler): New functions.
156 (mac_handle_window_event): Return noErr on window update event.
157 (do_ae_quit_application): Call mac_store_application_menu_event.
158 (mac_initialize) [USE_CARBON_EVENTS]: Call init_command_handler
159 and init_menu_bar.
160
161 * macterm.h (x_clear_frame_selections): Add extern.
162
163 * macselect.c: New file for selection processing on Mac OS.
164
469bc679
RS
1652005-04-23 Richard M. Stallman <rms@gnu.org>
166
167 * fileio.c (Fcopy_file): New arg MUSTBENEW.
168 (Frename_file): Pass new arg to Fcopy_file.
169
170 * window.c (window_size_fixed): Variable deleted.
171 (syms_of_window): Initialize window-size-fixed to nil.
172 But don't DEFVAR window_size_fixed.
173
d379c558
AS
1742005-04-23 Andreas Schwab <schwab@suse.de>
175
176 * m/macppc.h (LD_SWITCH_MACHINE) [LINUX]: Don't define.
177 (START_FILES, LIB_STANDARD) [LINUX && _ARCH_PPC64]: Override to
178 use lib64 instead of lib.
179 (_LP64) [_ARCH_PPC64]: Define if not defined.
180
007d105b
TTN
1812005-04-23 David Hunter <hunterd42@comcast.net> (tiny change)
182
183 * s/ms-w32.h (HAVE_PWD_H): Define.
184
b9c15916
KH
1852005-04-22 Kenichi Handa <handa@m17n.org>
186
187 * fns.c (copy_sub_char_table): Explicitly copy the default value
188 of the sub-chartable.
189
190 * fontset.c (fontset_set): When a sub-chartable is created,
191 explicitly sets the defalt value.
192
1ba52906
KS
1932005-04-22 Kim F. Storm <storm@cua.dk>
194
195 * fns.c (Fplist_get): Replace by Fsafe_plist_get.
196 (Fsafe_plist_get): Rename to Fplist_get.
197 (Fsafe_get): Remove, as Fget now uses safe Fplist_get.
198 (defsubr): Remove defsubr for Fsafe_plist_get and Fsafe_get.
199
200 * lisp.h (Fsafe_plist_get, Fsafe_get): Remove EXFUN.
201
202 * xdisp.c (store_mode_line_string, produce_stretch_glyph)
203 (note_mode_line_or_margin_highlight, note_mouse_highlight):
204 Use Fplist_get instead of Fsafe_plist_get.
205
206 * xfaces.c (resolve_face_name): Use Fget instead of Fsafe_get.
207
e235145c
MB
2082005-04-21 Miles Bader <miles@gnu.org>
209
210 * xdisp.c (dump_glyph_row): Don't display overlay_arrow_p field.
211
766c5349
TTN
2122005-04-20 Thien-Thi Nguyen <ttn@gnu.org>
213
c164a7e6
TTN
214 * sysdep.c: Remove reference to defunct vms-pwd.h.
215 * dired.c: Likewise. Also, for pwd.h, use HAVE_PWD_H, not !VMS.
216 * editfns.c, fileio.c, filelock.c, sysdep.c, xrdb.c: Likewise.
217
766c5349
TTN
218 * config.in: Regenerate.
219
2b048bf5
KH
2202005-04-20 Kenichi Handa <handa@m17n.org>
221
222 * lisp.h (CHAR_TABLE_DEFAULT_SLOT_ASCII): New macro.
223 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_CONTROL): New macro.
224 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_GRAPHIC): New macro.
225
226 * alloc.c (make_sub_char_table): Argument changed to initial
227 value of the slots.
228
229 * data.c (Faref): Handle special slots used as default values of
230 ascii, eight-bit-control, eight-bit-control. Don't ignore a
231 default value set for a group of characters.
232 (Faset): Signal an error if IDXVAL is not a valid character code.
233 Make a sub-chartable with correct initial value.
234
235 * fns.c (Fset_char_table_range): Don't set slots used as default
236 values for ascii, eight-bit-control, eight-bit-graphic. Don't
237 call Faref with charset-id.
238 (Fset_char_table_default): Document how to treat normal character
239 argument. Handle special slots used as default values of ascii,
240 eight-bit-control, eight-bit-control. Make a sub chartable if
241 necessary.
242
b0a35939
KH
2432005-04-20 Kenichi Handa <handa@m17n.org>
244
245 * search.c (boyer_moore): Fix previous change.
246
98dde726
KS
2472005-04-19 Kim F. Storm <storm@cua.dk>
248
249 * xdisp.c (setup_for_ellipsis): Reset saved_face_id to use default
250 face unless last visible char and first invisible char have the
251 same face. Also use default face if saved_face_id is undefined.
252
327a3376
YM
2532005-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
254
255 * macgui.h (MacFontStruct): Remove member `fontname'. Add member
256 `full_name'.
257 [TARGET_API_MAC_CARBON] (MacFontStruct): Use type int for
258 mac_scriptcode member.
259
260 * macterm.c (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): Remove variables.
261 (syms_of_mac): Don't initialize them.
262 (Vmac_charset_info_alist): New variable.
263 (syms_of_mac): Defvar it.
264 (create_text_encoding_info_alist): New function.
265 (decode_mac_font_name, mac_to_x_fontname)
266 (x_font_name_to_mac_font_name, init_font_name_table): Don't hard
267 code the correspondence among XLFD charsets, Mac script codes, and
268 Emacs coding systems. Use Vmac_charset_info_alist and result of
269 create_text_encoding_info_alist instead.
270 (init_font_name_table) [TARGET_API_MAC_CARBON]: Use Font Manager
271 routines also on Mac OS Classic.
272 (init_font_name_table) [!TARGET_API_MAC_CARBON]: Use
273 add_font_name_table_entry.
274 (mac_do_list_fonts): Regard 0 in XLFD scaleble fields as
275 specified. Derive unspecified scalable fields from specified one.
276 (x_list_fonts): Consider Valternate_fontname_alist.
277 (kDefaultFontSize): Change value from 9 to 12.
278 (XLoadQueryFont): Get decoded font family, font face, and charset
279 from x_font_name_to_mac_font_name. Set full name of loaded font.
280 (mac_unload_font): Free `full_name' member.
281 (x_load_font): Don't try XLoadQueryFont if x_list_fonts returns
282 NULL. Copy full_name member of struct MacFontStruct to that of
283 struct font_info.
284
d0636839
KS
2852005-04-19 Kim F. Storm <storm@cua.dk>
286
5827e9d4
KS
287 * xdisp.c (handle_stop): Set saved_face_id to current face if
288 selective_display_ellipsis_p so ellipsis will be shown in same
289 face as preceding text.
290 (setup_for_ellipsis): Don't set saved_face_id here.
291 (next_element_from_display_vector): Default to saved_face_id.
292
d0636839
KS
293 * fns.c (Fsafe_get): New function.
294 (syms_of_fns): Defsubr it.
295
296 * lisp.h (Fsafe_get): EXFUN it.
297
298 * xfaces.c (resolve_face_name): Use Fsafe_get to avoid redisplay
299 loops in case of bad face property lists. Limit number of face
300 alias lookups to 10 (in case of face alias loops).
301
e5c78c9d
KS
3022005-04-18 Kim F. Storm <storm@cua.dk>
303
304 * dispextern.h (struct glyph_row): New member overlay_arrow_bitmap.
305 It replaces the corresponding member from struct window, as a
306 window may now show multiple overlay arrows.
307 Remove member overlay_arrow_p, superseeded by overlay_arrow_bitmap.
308
309 * dispnew.c (row_equal_p, update_window_line, scrolling_window):
310 Compare overlay_arrow_bitmap than overlay_arrow_p members.
311
312 * fringe.c (draw_fringe_bitmap): Use overlay_arrow_bitmap from row
313 rather than from window.
314 (update_window_fringes): Compare overlay_arrow_bitmap rather than
315 overlay_arrow_p members.
316 (Ffringe_bitmaps_at_pos): Return fringe overlay_arrow_bitmap name
317 if not default.
318
319 * window.h (struct window): Remove member overlay_arrow_bitmap.
320
321 * window.c (make_window): Don't initialize overlay_arrow_bitmap.
322
323 * xdisp.c (overlay_arrow_string_or_property): Remove PBITMAP arg.
324 Calls changed. Don't check for overlay-arrow-bitmap property here.
325 (overlay_arrow_at_row): Remove PBITMAP arg. Instead, if left
326 fringe is present, return Lisp integer for bitmap (or -1 for default).
327 Fix value of overlay-arrow-bitmap property to be a symbol, use
328 lookup_fringe_bitmap to parse it.
329 (display_line): Change call to overlay_arrow_at_row. Store integer
330 return value as overlay bitmap in row rather than window.
331 Only show overlay arrow if row displays text, or if no other overlay
332 arrow is seen in window (if overlay marker is at point-max).
333
7d603e3f
TTN
3342005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
335
336 * xfaces.c (realize_x_face) [!HAVE_WINDOW_SYSTEM]: Return NULL.
337
9942fa0c
LK
3382005-04-18 Lute Kamstra <lute@gnu.org>
339
340 * lread.c (Vloads_in_progress): Static.
341 * fns.c (Vloads_in_progress): Remove extern.
342 (load_in_progress): Add extern.
343 (Frequire): Use load_in_progress instead of Vloads_in_progress.
344
999cdb8f
TTN
3452005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
346
347 * xmenu.c (Fx_popup_menu): Initialize error_name to NULL.
348
3f4413f8
YM
3492005-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
350
351 * macterm.c (XTread_socket): Don't beep on keyboard input even if
352 no frame is visible.
353
60ec7b7e
DN
3542005-04-16 Dan Nicolaescu <dann@ics.uci.edu>
355
356 * term.c (struct keys): Add support for shifted keys.
357
a8a1c0ee
RS
3582005-04-16 Richard M. Stallman <rms@gnu.org>
359
360 * xdisp.c (with_echo_area_buffer): Delete WHICH < 0 case.
361 (set_message): Call with_echo_area_buffer with WHICH = 0.
362 (set_message_1): Erase the echo area buffer first thing.
363 (echo_area_display): Don't clear echo_message_buffer.
364
f3cf04d3
YM
3652005-04-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
366
367 * Makefile.in (mac.o): Depend on charset.h and coding.h.
368
369 * mac.c: Include charset.h and coding.h.
370 [TARGET_API_MAC_CARBON] (Qutf_8): Remove extern.
371 [TARGET_API_MAC_CARBON] (cfstring_create_with_string): New
372 function.
373 [TARGET_API_MAC_CARBON] (Fmac_get_preference): Use it.
374
375 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
376
377 * image.c [MAC_OSX] (image_load_quartz2d): Likewise.
378
379 * macterm.c (x_autoselect_window_p): Remove variable.
380 (last_window): New variable.
381 (XTreassert_line_highlight, x_change_line_highlight): Remove
382 declarations.
383 (mac_focus_changed, x_detect_focus_change): New functions and
384 declarations.
385 (XTextExtents16, front_emacs_window): Remove function.
386 (mac_focus_frame): New function.
387 (XTmouse_position, do_menu_choice, do_zoom_window, XTread_socket)
388 (mac_check_for_quit_char): Use it instead of front_emacs_window.
389 (x_scroll_bar_report_motion): Obtain window from control owner.
390 (x_make_frame_invisible): Set window manager size hint.
391 (do_mouse_moved): Remove function.
392 (XTread_socket): Move its contents here. Generate select-window
393 event on mouse movement if needed. Use x_detect_focus_change on
394 activate/deactivate events. Don't deiconify frame or invalidate
395 window rectangle when dnd items are dropped. Don't
396 activate/deactivate root control.
397 (frame_highlight, frame_unhighlight): Activate/deactivate root
398 control here.
399 (syms_of_macterm): Delete DEFVAR_BOOL for x_autoselect_window_p.
400
401 * macterm.h (cfstring_create_with_string) [TARGET_API_MAC_CARBON]:
402 New extern.
403
9e5b2858
LT
4042005-04-15 Luc Teirlinck <teirllm@auburn.edu>
405
406 * Makefile.in: Define new macro TOOLTIP_SUPPORT.
407 (lisp): Use it.
408 (SOME_MACHINE_LISP): Add tooltip.
409
42c6741e
YM
4102005-04-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
411
412 * mac.c [!TARGET_API_MAC_CARBON]: Include MacLocales.h. Don't
413 include TextEncodingConverter.h.
414 (mac_system_script_code, Vmac_system_locale): New variables.
415 (syms_of_mac): Defvar them.
416 (mac_get_system_locale): New function.
417
418 * macfns.c (x_set_name, x_set_title) [!TARGET_API_MAC_CARBON]: Use
419 ENCODE_SYSTEM to encode title bar string.
420 (x_create_tip_frame): Apply 2005-03-18 change for xfns.c.
421 (Fx_file_dialog) [TARGET_API_MAC_CARBON && !MAC_OSX]: Use
422 CFStringGetSystemEncoding to get system default string encoding.
423
424 * macterm.c [!TARGET_API_MAC_CARBON]: Don't include
425 TextEncodingConverter.h.
426
0614c575
ST
4272005-04-13 Steven Tamm <steventamm@mac.com>
428
7e26f91b
KS
429 * macterm.c (syms_of_macterm): Remove redundant definition of
430 mac-pass-control-to-system.
0614c575 431
203eb0aa
SM
4322005-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
433
434 * window.c (Fset_window_configuration): Be careful when you choose
435 among several possible points for the new_current_buffer.
436
a56e6111
YM
4372005-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
438
439 * keyboard.c (poll_for_input) [SYNC_INPUT]: Don't call
440 poll_for_input_1. Set interrupt_input_pending to 1 instead.
b7461be9
YM
441 (Qlanguage_change) [MAC_OS]: New variable.
442 (syms_of_keyboard) [MAC_OS]: Intern and staticpro it.
203eb0aa 443 (kbd_buffer_get_event) [MAC_OS]: Make event for LANGUAGE_CHANGE_EVENT.
b7461be9
YM
444
445 * macterm.c (mac_keyboard_text_encoding)
446 (current_mac_keyboard_text_encoding): Remove variables.
7e26f91b
KS
447 (XTread_socket): Store language-change event if keyboard script change
448 is detected. Don't convert input to `mac_keyboard_text_encoding'.
203eb0aa 449 (syms_of_macterm): Delete DEFVAR_INT for mac-keyboard-text-encoding.
b7461be9 450
7e26f91b 451 * termhooks.h (enum event_kind) [MAC_OS]: Add LANGUAGE_CHANGE_EVENT.
a56e6111 452
6695c528
RS
4532005-04-10 Richard M. Stallman <rms@gnu.org>
454
455 * emacs.c (standard_args): Rename --bare-bones to --quick.
456 Add -D aka --basic-display.
457
458 * buffer.c (Fmake_indirect_buffer): Clear out some local variables.
459
18e2d91f
RS
4602005-04-09 Richard M. Stallman <rms@gnu.org>
461
462 * keymap.c (where_is_internal): Convert a string used as event type
463 into "(any string)".
464
465 * lread.c (Vloads_in_progress): Not static.
18e2d91f
RS
466 * fns.c (Vloads_in_progress): Add extern.
467 (Frequire): Don't do LOADHIST_ATTACH if Vloads_in_progress is nil.
468
4692005-04-09 Thien-Thi Nguyen <ttn@surf.glug.org>
470
471 * dispnew.c (mirror_line_dance): Avoid crash if W2 is null.
472
1cf21850
LK
4732005-04-09 Lute Kamstra <lute@gnu.org>
474
475 * print.c (PRINTPREPARE): Check if the marker PRINTCHARFUN is
476 within the accessible part of the buffer.
477
bfd93240
KS
4782005-04-09 Kim F. Storm <storm@cua.dk>
479
480 * lread.c (readevalloop): Add args START and END as region in
481 current buffer to read. Callers changed.
482 When specified, narrow to this region only when reading,
483 not during eval. Track next point to read from during eval.
484 Also restore point to "real" buffer position before eval.
485 (Feval_region): Don't save excursion and restriction here, and
486 don't narrow to region. Just pass region to readevalloop.
487 Note: Point is now preserved even when PRINTFLAG is nil.
488
9ba27690
KS
4892005-04-08 Kim F. Storm <storm@cua.dk>
490
491 * xdisp.c (syms_of_xdisp): Init overlay-arrow-string to "=>".
492
73f0d996
KS
4932005-04-06 Kim F. Storm <storm@cua.dk>
494
495 * emacs.c (standard_args): Add -Q, --bare-bones, -bare-bones.
496
369f76bb
YM
4972005-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
498
499 * mac.c (cfdate_to_lisp): Add `const' for variable `epoch_gdate'.
500 (Fmac_get_preference): Doc fix.
501
203eb0aa
SM
502 * macfns.c (Fx_create_frame, x_create_tip_frame):
503 Add "fontset-mac" to fallback font/fontsets.
369f76bb 504
2ba613a6
KS
5052005-04-04 Kim F. Storm <storm@cua.dk>
506
4d5ddddc
KS
507 * alloc.c (Fgarbage_collect): Call CHECK_CONS_LIST before and after gc.
508
2ba613a6
KS
509 * eval.c (Ffuncall): Always call CHECK_CONS_LIST on entry.
510 Call it again after autoload.
511
1673df2e
JD
5122005-04-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
513
514 * alloc.c (allocate_string_data): Call BLOCK_INPUT before calling
515 mallopt.
516
517 * ralloc.c (r_alloc_init): Ditto.
518
41639988
KH
5192005-04-01 Kenichi Handa <handa@m17n.org>
520
1cf21850
LK
521 * lisp.h (Vascii_upcase_table, Vascii_canon_table)
522 (Vascii_eqv_table): Extern them.
41639988
KH
523
524 * casetab.c (set_case_table): If standard is nonzero, setup
525 Vascii_upcase_table, Vascii_canon_table, and Vascii_eqv_table.
526
527 * search.c (looking_at_1): Use current_buffer->case_canon_table,
528 not DOWNCASE_TABLE.
529 (string_match_1): Likewise.
530 (fast_c_string_match_ignore_case): Use Vascii_canon_table, not
531 Vascii_downcase_table.
532 (fast_string_match_ignore_case): Likewise.
533 (search_buffer): Fix checking of boyer-moore usability.
203eb0aa
SM
534 (boyer_moore): Calculate translate_prev_byte1/2/3 in advance.
535 No need of tranlating characters in PAT. Fix calculation of
41639988
KH
536 simple_translate.
537
6ca53601
SM
5382005-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
539
540 * xterm.c [HAVE_XAW3D]: Include ThreeD.h for XtNbeNiceToColormap.
541 (x_create_toolkit_scroll_bar): Test XtNbeNiceToColormap before using it.
542 Use XtNtopShadowPixel and XtNbottomShadowPixel.
543 (x_set_toolkit_scroll_bar_thumb): Remove ugly old hack that didn't
544 really work and that breaks with some versions of Xaw3d.
545
fafbb99d 5462005-03-31 Kenichi Handa <handa@m17n.org>
bf762c98
KH
547
548 * coding.c (syms_of_coding): Fix previous change.
549
6ca53601
SM
5502005-03-30 Stefan Monnier <monnier@iro.umontreal.ca>
551
552 * fileio.c (search_embedded_absfilename): Fix last change.
553
bf762c98
KH
5542005-03-25 Kenichi Handa <handa@m17n.org>
555
556 * coding.c (syms_of_coding): Suggest to use set-coding-category in
557 the docstring of coding-category-list.
558
f793f885
KS
5592005-03-31 Kim F. Storm <storm@cua.dk>
560
561 * keyboard.c (Qmouse_fixup_help_message): New var.
562 (syms_of_keyboard): Intern and staticpro it.
563 (show_help_echo): Apply mouse-fixup-help-message to help string.
564
c364fe19
KS
5652005-03-30 Kim F. Storm <storm@cua.dk>
566
567 * xdisp.c (display_line): Allow multiple overlay arrows in window.
568
c70a4df6
SM
5692005-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
570
571 * fileio.c (Fexpand_file_name): Use IS_DEVICE_SEP.
572 (file_name_absolute_p): New fun, extracted from Ffile_name_absolute_p.
573 (Ffile_name_absolute_p): Use it.
574 (search_embedded_absfilename): New fun, extracted from
575 Fsubstitute_in_file_name. Use file_name_absolute_p.
576 Free the pw data after use.
577 (Fsubstitute_in_file_name): Use it.
578 After cutting a prefix, re-check file-name-handler.
579
6e7d0438
JR
5802005-03-26 Lennart Borgman <lennart.borgman.073@student.lu.se>
581
6ca53601 582 * w32term.h (x_output): Add focus_state.
6e7d0438
JR
583
584 * w32term.c (x_focus_changed, w32_detect_focus_change): New functions.
585 (w32_read_socket) [WM_SETFOCUS]: Call w32_detect_focus_change.
586
65671706
SM
5872005-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
588
589 * minibuf.c (Fminibuffer_complete_and_exit, Fself_insert_and_exit):
590 Use Fexit_minibuffer.
591 (Fexit_minibuffer): Mark it as no-return, deactivate the mark.
592
0de4dad4
SM
5932005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
594
781da985
SM
595 * dired.c (Ffile_attributes): Add a missing gcpro.
596
0de4dad4
SM
597 * alloc.c (make_number): The arg can be bigger than `int'.
598 * lisp.h (make_number): Make prototype more precise.
599
600 * process.c, dired.c (Vfile_name_coding_system)
601 (Vdefault_file_name_coding_system):
602 * callproc.c (Vdoc_file_name, Vfile_name_coding_system)
603 (Vdefault_file_name_coding_system): Remove unused declarations.
604
ff18668f
JD
6052005-03-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
606
607 * xmenu.c (create_and_show_popup_menu): Just remove menu and return
608 if it failed to pop up (Gnome "show pointer on ctrl" option makes
609 menus fail to pop up).
610
0de4dad4 6112005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
66347da7
SM
612
613 * xdisp.c (get_next_display_element): Also use `\ ' & `\-' for latin-9.
0de4dad4 614 Just prepend a backslash without replacing the NBSP by an SPC.
66347da7 615
8df0ffbe
KS
6162005-03-22 Kim F. Storm <storm@cua.dk>
617
618 * xfaces.c (lookup_derived_face): Add arg SIGNAL_P.
619 * dispextern.h (lookup_derived_face): Fix prototype.
620 * msdos.c (XMenuActivate): Fix call to lookup_derived_face.
621
622 * xdisp.c (handle_single_display_spec): Derive left-fringe and
623 right-fringe face from fringe face.
624
625 * fringe.c (draw_fringe_bitmap_1, Fset_fringe_bitmap_face):
626 Derive face from fringe face.
627
6ca30ba4
JD
6282005-03-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
629
630 * xrdb.c (x_load_resources): Undo previous change (2005-03-18).
631
d615870a
DK
6322005-03-22 David Kastrup <dak@gnu.org>
633
634 * textprop.c (Fnext_char_property_change)
66347da7 635 (Fprevious_char_property_change): Allow marker as limit.
d615870a
DK
636 (Fnext_single_char_property_change)
637 (Fprevious_single_char_property_change): Check that limit is a
638 number in strings.
639 (Fnext_single_char_property_change): Coerce position to integer.
640 (Fprevious_single_char_property_change): Same here.
641
32b939ea
TTN
6422005-03-21 Thien-Thi Nguyen <ttn@gnu.org>
643
644 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Define if undefined.
645
6027e473
SM
6462005-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
647
648 * frame.c (Fignore_event): Remove.
649 (syms_of_frame): Don't defsubr it.
650
651 * keyboard.c (keys_of_keyboard): Just use `ignore' instead of the
652 redundant `ignore-event'.
653
730f4d72
EZ
6542005-03-19 Eli Zaretskii <eliz@gnu.org>
655
656 * unexec.c (write_segment, unexec): Move these functions to avoid
657 forward references (which cause errors with "gcc -gcoff").
658
c7f6afd5
JD
6592005-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
660
6027e473 661 * xfns.c (x_create_tip_frame): Remove setting of Vx_resource_name so
9188be47 662 that it doesn't become "tooltip". The specbind is enough.
8d5980cf 663
c7f6afd5
JD
664 * xrdb.c (x_load_resources): Use different char *helv when I18N
665 is present.
666
db328182
KH
6672005-03-17 Kenichi Handa <handa@m17n.org>
668
66347da7 669 * coding.c (syms_of_coding): Docstring of coding-category-list fixed.
db328182 670
211f2210
SM
6712005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
672
673 * xfaces.c (x_update_menu_appearance) [HAVE_X_I18N]:
674 Use xic_create_fontsetname even for non-Motif menus.
675 Don't forget to free the fontsetname.
676
677 * xfns.c (xic_create_fontsetname): Add a final catch-all font pattern.
678
c7bd5d57
RS
6792005-03-17 Richard M. Stallman <rms@gnu.org>
680
681 * dispnew.c (mirror_line_dance): Set W2 according to FRAME_FROM.
682
683 * fileio.c (Fcopy_file, Frename_file, Fadd_name_to_file)
684 (Fmake_symbolic_link): Use G to read the new file name.
685
686 * callint.c (Finteractive): Document G option.
687 (Fcall_interactively): Implement G option.
688
689 * buffer.c (buffer_lisp_local_variables): New function,
690 broken out from Fbuffer_local_variables.
691 (clone_per_buffer_values): Use buffer_lisp_local_variables.
692
888953f1
SM
6932005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
694
3c916d65
SM
695 * xfns.c (xic_create_fontsetname): Add `motif' argument.
696 Always return a freshly allocated string.
697 (xic_create_xfontset): Adjust call.
698
699 * xfaces.c (x_update_menu_appearance) [USE_MOTIF]:
700 Use xic_create_fontsetname to create a fontset so utf-8 locales work.
701 (dump_realized_face): Fix warning.
702
9f9e5275
SM
703 * emacs.c (Fkill_emacs): YAILOM.
704
888953f1
SM
705 * frame.c (Fignore_event): Fix ancient obscure C-u handling bug.
706
48502d68
YM
7072005-03-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
708
709 * mac.c (HASHKEY_TERMINAL): Remove.
710 (HASHKEY_MAX_NID): New macro.
711 (xrm_q_get_resource_1): Rename from xrm_q_get_resource. Add extra
712 argument.
888953f1 713 (xrm_q_get_resource): Call xrm_q_get_resource_1 with extra argument.
48502d68
YM
714 (xrm_create_database, xrm_q_put_resource)
715 (xrm_merge_string_database, xrm_q_get_resource_1)
716 (xrm_q_get_resource): Change resource database representation so
717 that it may not use multiple hash tables for a single database.
718 [TARGET_API_MAC_CARBON] (xrm_cfproperty_list_to_value): YAILOM.
719
d5161e8c
SM
7202005-03-16 Stefan Monnier <monnier@iro.umontreal.ca>
721
11a646cd
SM
722 * xmenu.c (ENCODE_MENU_STRING) [HAVE_X_I18N]: Use ENCODE_SYSTEM.
723
724 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [!WINDOWSNT]: Use the
725 locale-coding-system, as was already done for WINDOWSNT.
726
d5161e8c
SM
727 * keyboard.c (read_char): Only do the 7-bit-meta -> 27-bit-meta
728 translation for chars in the 0-255 range.
729
568b6e41
LK
7302005-03-16 Lute Kamstra <lute@gnu.org>
731
732 * floatfns.c (Ffloor): Doc fix.
733
469fb3cf
YM
7342005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
735
736 * mac.c: Include macterm.h instead of directly including Carbon.h.
737 [TARGET_API_MAC_CARBON] (Qstring, Qnumber, Qboolean, Qdate, Qdata)
738 (Qarray, Qdictionary): New variables.
739 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
740 [TARGET_API_MAC_CARBON] (Qutf_8): Add extern.
741 [TARGET_API_MAC_CARBON] (DECODE_UTF_8): New macro.
742 [TARGET_API_MAC_CARBON] (struct cfdict_context): New struct used
743 in callback for CFDictionaryApplyFunction.
744 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
745 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
746 (cfobject_desc_to_lisp, cfdictionary_add_to_list)
747 (cfdictionary_puthash, cfproperty_list_to_lisp): New functions.
748 [TARGET_API_MAC_CARBON] (Fmac_get_preference): New function.
749 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
750 (P, LOOSE_BINDING, SINGLE_COMPONENT, HASHKEY_TERMINAL): New macro.
3d454340 751 (skip_white_space, parse_comment, parse_include_file)
469fb3cf
YM
752 (parse_binding, parse_component, parse_resource_name, parse_value)
753 (parse_resource_line, xrm_create_database, xrm_q_put_resource)
754 (xrm_merge_string_database, xrm_q_get_resource, xrm_get_resource)
d5161e8c
SM
755 (xrm_cfproperty_list_to_value, xrm_get_preference_database):
756 New functions.
469fb3cf
YM
757
758 * macfns.c (mac_get_rdb_resource): Remove function.
759 (x_get_string_resource): Use xrm_get_resource.
760
761 * macgui.h (XrmDatabase): Typedef to Lisp_Object.
762
763 * macterm.c (x_list_fonts): FONT-LIST-CACHE is now cadr part of
764 name_list_element.
765 (mac_make_rdb): Create resource database from preferences and
766 argument string.
767 (mac_term_init): Save resource database to cddr part of
768 name_list_element.
769
770 * macterm.h (xrm_merge_string_database, xrm_get_resource)
771 (xrm_get_preference_database): Add externs.
772 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
773 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
774 (cfobject_desc_to_lisp, cfproperty_list_to_lisp): Likewise.
775
776 * process.c (init_process): Change `#ifdef DARWIN' to `#if
777 defined (DARWIN) || defined (MAC_OSX)'
778
779 * s/darwin.h (DARWIN): Don't define.
780
6a3fac90
YM
7812005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
782
783 * macfns.c (Qhyper, Qsuper, Qmeta, Qalt, Qctrl, Qcontrol, Qshift):
784 Remove unused variables.
785 (syms_of_macfns): Don't initialize them. Likewise for
786 Qface_set_after_frame_default. Defvar and initialize
787 Vx_window_horizontal_drag_shape.
788 (x_set_mouse_color): Change mouse pointer shape.
789 (mac_window) [!MAC_OSX]: Create root control.
469fb3cf 790 (Fx_create_frame): Remove initializations of mouse pointer shapes.
6a3fac90
YM
791 (hourglass_started): New function (from xfns.c).
792 (start_hourglass, cancel_hourglass): Put function body in #ifdef
793 MAC_OSX.
794 (show_hourglass) [TARGET_API_MAC_CARBON]: Create progress
795 indicator for each non-tooltip frame if needed, and show it.
d5161e8c 796 (hide_hourglass) [TARGET_API_MAC_CARBON]: Hide progress indicators.
6a3fac90
YM
797
798 * macgui.h [!TARGET_API_MAC_CARBON]: Include Appearance.h and
799 Controls.h. Use ThemeCursor instead of CursHandle.
800
d5161e8c
SM
801 * macterm.c (activate_scroll_bars, deactivate_scroll_bars):
802 Remove functions and declarations.
803 (mac_set_colors): Take argument for saving background color.
804 All callers changed.
6a3fac90
YM
805 (XDrawLine, XClearArea, mac_draw_bitmap, XFillRectangle)
806 (mac_draw_rectangle, mac_draw_string_common): Save and Restore
807 background color.
808 (x_update_end, mac_do_track_drag): Don't reset background color.
d5161e8c
SM
809 (mac_define_frame_cursor) [!TARGET_API_MAC_CARBON]:
810 Use SetThemeCursor.
6a3fac90
YM
811 (x_set_window_size) [TARGET_API_MAC_CARBON]: Move progress
812 indicator control to the upper-right corner of the window.
813 (arrow_cursor) [!TARGET_API_MAC_CARBON]: Remove variable.
814 (do_init_managers) [!TARGET_API_MAC_CARBON]: Don't initialize it.
815 (do_window_update): Update controls after updating content area.
816 (mac_handle_window_event): Remove unused extern.
817 (XTread_socket): Check both control handle and control part code
818 to determine whether a scroll bar is clicked. Activate/deactivate
819 root control instead of contained scroll bar controls.
820 (make_mac_terminal_frame): Use ThemeCursor constants.
821
d5161e8c
SM
822 * macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]:
823 New member hourglass_control.
6a3fac90 824 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): New defines.
d5161e8c 825 (activate_scroll_bars, deactivate_scroll_bars): Remove declarations.
6a3fac90 826
a7321976
YM
8272005-03-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
828
829 * macterm.c (keycode_to_xkeysym_table): Change mapping so that it
6a3fac90 830 coincides with that in Apple X11 except `clear', `enter' on
a7321976
YM
831 laptops, and fn + `enter' on laptops.
832
f7b758bd
SM
8332005-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
834
835 * xmenu.c (ENCODE_MENU_STRING): Explicitly use string_make_unibyte.
836 (list_of_panes, list_of_items, Fx_popup_menu): Use XCAR/XCDR.
837 (digest_single_submenu, xmenu_show): Use ENCODE_MENU_STRING.
838
839 * xfns.c (xic_defaut_fontset): New constant.
840 (xic_create_fontsetname): New function.
841 Extracted from create_frame_xic. Try to generate a slightly
842 better fontset.
843 (xic_create_xfontset): Use it.
844 (create_frame_xic): Simplify.
845
dac24db4
SM
8462005-03-11 Stefan Monnier <monnier@iro.umontreal.ca>
847
848 * fileio.c (Fmake_symbolic_link): Fix last change.
849
e0402468
RS
8502005-03-11 Richard M. Stallman <rms@gnu.org>
851
852 * fileio.c (Frename_file, Fadd_name_to_file)
853 (Fmake_symbolic_link): If NEWNAME or LINKNAME is a directory,
854 expand the basename of FILE relative to it.
855
fa815b14
KH
8562005-03-11 Kenichi Handa <handa@m17n.org>
857
858 * fileio.c (Finsert_file_contents): Call Fcheck_coding_system
859 before calling setup_coding_system so that autoloading of a coding
860 system work.
861
817d354b
JD
8622005-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
863
68a505ef
JD
864 * xfns.c (hourglass_started): New function.
865
866 * dispextern.h: Declare hourglass_started.
867
868 * keyboard.c (Fexecute_extended_command): Restart hourglass
869 after call to Fcompleting_read if already started.
870
817d354b
JD
871 * gtkutil.c (xg_update_scrollbar_pos): Call x_sync so that the
872 GTK main loop is entered in xterm.c, thus doing the redraw.
873
b0a6f45c
KS
8742005-03-10 Kim F. Storm <storm@cua.dk>
875
876 * xdisp.c (pos_visible_p): Fix X value in last line of buffer.
877
ee5d57b0
KH
8782005-03-08 Kenichi Handa <handa@m17n.org>
879
880 * frame.c (x_set_font): Call set_default_ascii_font if an
881 available font is found.
882
883 * fontset.c (set_default_ascii_font): New function.
dac24db4 884 (syms_of_fontset): Don't set FONTSET_ASCII (Vdefault_fontset) here.
ee5d57b0
KH
885
886 * fontset.h (set_default_ascii_font): Extern it.
887
f30c4a5c
KS
8882005-03-07 Kim F. Storm <storm@cua.dk>
889
3fb26a86
KS
890 * xdisp.c (CLEAR_IMAGE_CACHE_COUNT): New const.
891 (clear_image_cache_count): New var.
892 (redisplay_internal): Don't clear face and image caches in the
893 middle of redisplay; do it afterwards.
894
a54595d4
KS
895 * blockinput.h (TOTALLY_UNBLOCK_INPUT): Avoid dangling else.
896
f30c4a5c
KS
897 * xdisp.c (notice_overwritten_cursor): Check that phys_cursor.vpos
898 is valid. If not, clear phys_cursor_on_p and return.
899
3d182f9d
AS
9002005-03-07 Andreas Schwab <schwab@suse.de>
901
902 * blockinput.h (UNBLOCK_INPUT_TO): Always call UNBLOCK_INPUT.
903
85d964de
RS
9042005-03-06 Richard M. Stallman <rms@gnu.org>
905
906 * keyboard.c (Ftop_level): Let Fthrow deal with UNBLOCK_INPUT.
907
908 * eval.c (unwind_to_catch): Use UNBLOCK_INPUT_TO.
909 (Feval, Ffuncall): Use CHECK_CONS_LIST.
910
911 * lisp.h (CHECK_CONS_LIST): New macro (two definitions).
912
913 * blockinput.h (UNBLOCK_INPUT_TO): New macro.
914 (TOTALLY_UNBLOCK_INPUT): Handle a pending signal if any.
915
3ff96c81
JL
9162005-03-05 Juri Linkov <juri@jurta.org>
917
918 * emacs.c (USAGE1): Replace Info node name "command arguments"
919 with "emacs invocation".
920 (USAGE3): Fix usage of `--color=MODE' which actually doesn't
921 allow arguments `--color' and `MODE' to be separated by space.
922 Add --no-blinking-cursor, -nbc.
923 (standard_args): Add -nbc, --no-blinking-cursor.
924
64eb0083
TTN
9252005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
926
927 * s/vms.h: Define NO_HYPHENS_IN_FILENAMES.
928 * s/vms4-4.h, s/vms5-5.h: Undefine NO_HYPHENS_IN_FILENAMES.
929 * fileio.c (Fexpand_file_name) [VMS]:
930 Use NO_HYPHENS_IN_FILENAMES, not VMS4_4.
931 * doc.c (munge_doc_file_name) [VMS]: Likewise.
932 (Fsnarf_documentation): Call munge_doc_file_name.
933
ad708ae5
TTN
9342005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
935
936 * s/vms.h (FILE_SYSTEM_CASE): New macro.
937 * fileio.c (Fexpand_file_name) [VMS]: Don't upcase the name
938 "manually"; this is now handled generally via FILE_SYSTEM_CASE.
939
ba025f6d
YM
9402005-03-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
941
942 * emacs.c (main): Change `#ifdef HAVE_CARBON' to `#if
943 defined (MAC_OSX) && defined (HAVE_CARBON)'.
ad708ae5 944
dac24db4 945 * image.c [!MAC_OSX && TARGET_API_MAC_CARBON]: Include QuickTime.h.
ba025f6d
YM
946
947 * mac.c [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
948 [!MAC_OSX] (select) [TARGET_API_MAC_CARBON]: Use ReceiveNextEvent.
dac24db4 949 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): New functions.
ba025f6d
YM
950 (mac_clear_font_name_table): Move extern to macterm.h.
951
952 * macfns.c (install_window_handler): Move extern to macterm.h.
953 (Fx_file_dialog): Check STRINGP (default_filename) to see it is
954 valid. Don't check !NILP (dir) because it is already checked with
955 CHECK_STRING.
956 (Fx_file_dialog) [!MAC_OSX]: Use FSSpec instead of FSRef for
dac24db4 957 specifying the default location and obtaining the selected filename.
ba025f6d
YM
958
959 * macgui.h [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
960
2313f861 961 * macmenu.c [TARGET_API_MAC_CARBON]: Don't include headers that
ba025f6d
YM
962 are included via Carbon.h.
963
dac24db4
SM
964 * macterm.c [TARGET_API_MAC_CARBON && !MAC_OSX]:
965 Define USE_CARBON_EVENTS to 1.
2313f861 966 (qd) [__MRC__ && TARGET_API_MAC_CARBON]: Don't declare.
ba025f6d
YM
967 (x_free_frame_resources): Call remove_window_handler for
968 non-tooltip windows.
969 [TARGET_API_MAC_CARBON]: Don't include headers that are included
970 via Carbon.h.
971 [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
972 (mac_do_receive_dragUPP): New variables.
973 (mac_handle_service_event, init_service_handler): Put declarations
974 and definitions in #ifdef MAC_OSX.
975 (install_window_handler) [TARGET_API_MAC_CARBON]: Create UPPs for
976 drag-and-drop handler functions and register them.
977 (remove_window_handler): New function.
dac24db4
SM
978 (do_ae_open_documents, mac_do_receive_drag) [!MAC_OSX]:
979 Use fsspec_to_posix_pathname.
ba025f6d
YM
980 (main): Change #if !TARGET_API_MAC_CARBON to #ifdef MAC_OS8.
981 (XTread_socket) [!MAC_OSX]: Don't pass keyboard events to TSM.
dac24db4
SM
982 [MAC_OS8] (make_mac_terminal_frame) [TARGET_API_MAC_CARBON]:
983 Set default cursors.
ba025f6d
YM
984 (mac_initialize) [USE_CARBON_EVENTS && !MAC_OSX] : Don't call
985 init_service_handler or init_quit_char_handler.
986 (mac_initialize) [!MAC_OSX]: Don't call MakeMeTheFrontProcess.
987
988 * macterm.h (install_window_handler, remove_window_handler)
989 (posix_pathname_to_fsspec, fsspec_to_posix_pathname)
990 (mac_clear_font_name_table): New externs.
ad708ae5 991
c1558952
TTN
9922005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
993
994 * fileio.c (FILE_SYSTEM_CASE): Define macro if not already defined.
995 (Ffile_name_directory): Use FILE_SYSTEM_CASE unconditionally.
996 (Fexpand_file_name): Likewise.
997
fa439170
TTN
9982005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
999
1000 * emacs.c (Fkill_emacs): Use EXIT_SUCCESS;
1001 no longer special-case VMS. Add bogus return value.
1002
db2dacf6
KS
10032005-03-02 Kim F. Storm <storm@cua.dk>
1004
1005 * dispextern.h (XASSERTS): Define to 0 if not already defined.
1006 (xassert) [!XASSERTS]: Define dummy version.
1007
0870514c
KS
10082005-03-02 Kim F. Storm <storm@cua.dk>
1009
1010 * xdisp.c (redisplay_window): YABX (yet another bogus xassert).
1011 Reported by David Kastrup.
1012
6b640092
KS
10132005-03-01 Ehud Karni <ehud@unix.mvs.co.il>
1014
1015 * xdisp.c (get_next_display_element): Fix control and escape
1016 glyph from display vector.
1017
f4a5a485
SM
10182005-03-01 Stefan Monnier <monnier@iro.umontreal.ca>
1019
1020 * keyboard.c (Fposn_at_x_y): Check integerness of X and Y.
1021
85d964de
RS
10222005-02-27 Richard M. Stallman <rms@gnu.org>
1023
1024 * xdisp.c (fast_find_position): Rename END to BEG.
1025 (syms_of_xdisp) <menu-bar-update-hook>: Doc fix.
1026
6e8db3ea
JD
10272005-02-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1028
f4a5a485 1029 * gtkutil.c (xg_resize_outer_widget): Remove unneeded call to
6e8db3ea
JD
1030 gtk_window_resize and x_wm_set_size_hint.
1031
0f465b55
KS
10322005-02-25 Kim F. Storm <storm@cua.dk>
1033
1034 * dispextern.h (OVERLAY_STRING_CHUNK_SIZE): Increase from 3 to 16.
1035
1036 * xdisp.c (init_from_display_pos): Don't read past end of
1037 it->overlay_strings array.
1038
845a78b4
LK
10392005-02-25 Stephan Stahl <stahl@eos.franken.de> (tiny change)
1040
1041 * buffer.c (syms_of_buffer): Fix typo.
1042
b02c3eed
LK
10432005-02-23 Lute Kamstra <lute@gnu.org>
1044
1045 * buffer.c (Foverlay_buffer): Doc fix.
1046
c8500765
KS
10472005-02-22 Kim F. Storm <storm@cua.dk>
1048
b686dd59
KS
1049 * minibuf.c (Ftry_completion, Fall_completions): Allow both string
1050 and symbol keys in alists and hash tables.
1051
c8500765
KS
1052 * xdisp.c (fast_find_position): Fix search for start of overlay.
1053
81c85b53
KS
10542005-02-21 Kim F. Storm <storm@cua.dk>
1055
1056 * window.c (window_scroll_pixel_based): When scrolling backwards,
1057 handle partial visible line at end of window even when we hit PT.
1058
f4a5a485 10592005-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
9df747e1
SM
1060
1061 * keymap.h: Declare Fcurrent_active_maps, used in doc.c.
1062
0dd5a842
KS
10632005-02-21 Kim F. Storm <storm@cua.dk>
1064
1065 * xdisp.c (move_it_vertically_backward): Eliminate two xasserts.
1066 I think those asserts are bogus if buffer contains invisible text
1067 or images.
1068
19e05d1f
KS
10692005-02-21 David Kastrup <dak@gnu.org>
1070
1071 * gtkutil.c (xg_create_frame_widgets): UNBLOCK_INPUT on error.
1072
0fba9f25
KS
10732005-02-20 Kim F. Storm <storm@cua.dk>
1074
1075 * xdisp.c (pos_visible_p): Be sure to move to the specified
1076 position. Always get the full ascent / descent of the
1077 corresponding row, to return reliable rtop and rbot values.
1078 (back_to_previous_visible_line_start): Fix 2005-01-18 change.
1079 Must look one character back, as back_to_previous_line_start
1080 returns position after the newline.
1081 (move_it_vertically_backward): Fix heuristic for when to move further
1082 back in case line_height * 2/3 is larger than window height.
1083 (cursor_row_fully_visible_p): Rename make_cursor_line_fully_visible_p
1084 as it does not do anything anymore. Add arg current_matrix_p to
1085 use current matrix rather than desired matrix when set.
1086 (try_cursor_movement): Don't scroll to make cursor row fully
1087 visible if cursor didn't move. This avoids unexpected recentering
1088 in case of blinking cursor or accepting process output.
1089 Use current matrix to check cursor row visibility.
1090 (redisplay_window): Fix whether to recenter or move to top in case
1091 cursor line is taller than window height.
1092 (find_first_unchanged_at_end_row): Stop search if we reach a row
1093 which not enabled (instead of abort).
1094
b1c2adc3
KS
10952005-02-18 Kim F. Storm <storm@cua.dk>
1096
c2ee48fb
KS
1097 * xfaces.c (Finternal_set_lisp_face_attribute): Allow :color property
1098 to be nil in a :box attribute value list; customize prints that
1099 as lisp value when no box color is specified.
1100
b1c2adc3
KS
1101 * .gdbinit (pitx, pit): Pretty print display iterator.
1102 (prowx, prow): Pretty print glyph row.
1103 (pcursorx, pcursor): Pretty print a window cursor.
1104 (pwinx, pwin): Pretty print struct window.
1105
f102186f
SM
11062005-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
1107
1108 * alloc.c (BLOCK_BYTES): Harmless typo.
1109
9b516537
AS
11102005-02-17 Andreas Schwab <schwab@suse.de>
1111
1112 * xfns.c (hack_wm_protocols): Use correct type for last parameter
1113 of XGetWindowProperty to avoid aliasing issues.
1114 (Fx_window_property): Likewise.
1115
1116 * xselect.c (Fx_disown_selection_internal): Use union of struct
f4a5a485 1117 input_event and struct selection_input_event to avoid aliasing issues.
9b516537
AS
1118
1119 * xterm.c (handle_one_xevent): Use union of struct input_event and
1120 struct selection_input_event to avoid aliasing issues.
1121 (SET_SAVED_MENU_EVENT): Adapt reference to inev.
1122
886b1418
KS
11232005-02-17 Kim F. Storm <storm@cua.dk>
1124
1125 * dispextern.h (enum it_method): New enum.
1126 (GET_FROM_*): Its members.
1127 (struct it): Change member method from function pointer to enum.
1128
1129 * xdisp.c (check_it, init_from_display_pos, handle_stop)
1130 (setup_for_ellipsis, handle_single_display_spec)
1131 (handle_composition_prop, next_overlay_string)
1132 (get_overlay_strings, reseat_1, reseat_to_string)
1133 (next_element_from_ellipsis, BUFFER_POS_REACHED_P)
1134 (in_display_vector_p, display_line, get_next_display_element):
1135 Change it->method from function pointer to enum.
1136 (get_next_element): New array to map it->method to function.
1137 (get_next_display_element): Use it.
1138 (set_iterator_to_next): Use switch instead of if/else chain.
1139
99ee2c6a 11402005-02-15 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
52c7f9ee
JR
1141
1142 * w32select.c: Summary: Thorough rework to implement Unicode
1143 clipboard operations and delayed rendering.
1144
1145 Drop last_clipboard_text and related code, keep track of
f4a5a485 1146 ownership via clipboard_owner instead. Drop old #if0 sections.
52c7f9ee
JR
1147
1148 (DEFAULT_LCID, ANSICP, OEMCP, QUNICODE, QANSICP, QOEMCP)
1149 (clipboard_owner, modifying_clipboard, cfg_coding_system)
1150 (cfg_codepage, cfg_lcid, cfg_clipboard_type, current_text)
1151 (current_coding_system, current_requires_encoding)
f4a5a485
SM
1152 (current_num_nls, current_clipboard_type, current_lcid):
1153 New static variables.
52c7f9ee
JR
1154
1155 (convert_to_handle_as_ascii, convert_to_handle_as_coded)
1156 (render, render_all, run_protected, lisp_error_handler)
1157 (owner_callback, create_owner, setup_config)
f4a5a485
SM
1158 (enum_locale_callback, cp_from_locale, coding_from_cp):
1159 New local functions.
52c7f9ee
JR
1160
1161 (term_w32select, globals_of_w32select): New global functions.
1162
1163 (Fw32_set_clipboard_data): Ignore parameter FRAME, use
1164 clipboard_owner instead. Use delayed rendering and provide
1165 all text formats. Provide CF_LOCALE if necessary.
1166
1167 (Fw32_get_clipboard_data): Handle CF_UNICODETEXT and
1168 CF_LOCALE. Fall back to CF_TEXT, if CF_UNICODETEXT is not
1169 available. Force DOS line-ends for decoding.
1170
1171 (Fx_selection_exists_p): Handle CF_UNICODETEXT.
1172
1173 (syms_of_w32select): Init and register new variables.
1174
1175 * w32.h: Add prototypes for globals_of_w32select and
1176 term_w32select. Make the neighboring K&R declarations into
1177 prototypes, too.
1178
1179 * emacs.c: Include w32.h to get function prototypes.
1180 (main): Call globals_of_w32select.
1181
886b1418 1182 * w32.c (term_ntproc): Call term_w32select.
52c7f9ee
JR
1183
1184 * s/ms-w32.h: Guard MSC-specific #pragmas with an #ifdef.
1185
86e61586
KS
11862005-02-16 Kim F. Storm <storm@cua.dk>
1187
1188 * xdisp.c (BUFFER_POS_REACHED_P): Return true if pos reached and
1189 at end of display vector.
1190
6407f07b
RS
11912005-02-15 Richard M. Stallman <rms@gnu.org>
1192
1193 * xdisp.c (get_next_display_element): Fix escape-glyph criterion
1194 for mode and header lines.
1195
1196 * lread.c (syms_of_lread) <user-init-file>: Doc fix.
1197
1198 * keymap.h (describe_map_tree): Change decl.
1199
1200 * keyboard.c (command_loop_1): Always use safe_run_hooks
1201 to run Qdeferred_action_function.
1202
1203 * keymap.c (describe_map_tree): New arg MENTION_SHADOW. Calls changed.
1204 (describe_map, describe_vector): Likewise. When it's 1,
1205 don't omit shadowed bindings, instead mark them as shadowed.
1206
1207 * doc.c (Fsubstitute_command_keys): Compute list of shadowing maps
1208 for describe_map_tree. Pass 1 for MENTION_SHADOW.
1209
1210 * data.c (Fsetq_default): Allow no arg case.
1211
3bb917bf
KH
12122005-02-14 Kenichi Handa <handa@m17n.org>
1213
1214 * coding.c (encode_coding_string): Always return a unibyte string.
1215 If NOCOPY is nonzero and there's no need of encoding, make STR
1216 unibyte directly.
1217
1218 * xselect.c (lisp_data_to_selection_data): If OBJ is a non-ASCII
1219 multibyte string, signal an error instead of aborting.
1220
e31d908f
DN
12212005-02-12 Dan Nicolaescu <dann@ics.uci.edu>
1222
1223 * keyboard.c: If HAVE_FCNTL_H include fcntl.h.
1224
48e029b6
KS
12252005-02-12 Kim F. Storm <storm@cua.dk>
1226
1227 * xdisp.c (expose_window): Don't fix overlaps for mode lines.
1228
c10bb00a
KS
12292005-02-10 Kim F. Storm <storm@cua.dk>
1230
1231 * xdisp.c (try_window_id): Set first_unchanged_at_end_row to NULL
1232 if it moves outside window or it doesn't display text.
1233
9ca0f64a
KS
12342005-02-09 Kim F. Storm <storm@cua.dk>
1235
1236 * undo.c (Fprimitive_undo): Check that undo function does not
1237 switch buffer.
1238
b8d6f4af
JD
12392005-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1240
1241 * xselect.c (selection_data_to_lisp_data): For the special case
1242 type == XA_ATOM, data contains array of int, not array of Atom.
d5161e8c
SM
1243 (x_property_data_to_lisp, selection_data_to_lisp_data):
1244 Comment update: data must be array of int for format == 32.
b8d6f4af 1245
3419757d
SM
12462005-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
1247
1248 * undo.c (Fprimitive_undo): Check veracity of delta,start,end.
1249
3a441526
JD
12502005-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1251
fc34503b
JD
1252 * xfns.c (Fx_change_window_property): Use long array when format is 32.
1253 (Fx_window_property): If format is 32 and long is bigger than 32 bits,
1254 convert long array returned from XGetWindowProperty to an int array.
bae45dc3
JD
1255 (x_set_tool_bar_lines): Check that width and height is greater than
1256 zero before clearing area.
fc34503b
JD
1257
1258 * xselect.c (x_reply_selection_request): Pass long array to
1259 XChangeProperty so that 64 bit longs are handeled correctly.
1260 (x_get_window_property): If format is 32 and long is bigger than 32
1261 bits convert data from XGetWindowProperty from long array to int array.
1262 (lisp_data_to_selection_data): When the input is a vector and the
1263 format is 32, allocate a long array even if long is bigger than 32 bits.
1264 (x_fill_property_data): Use char, short and long as the man page
1265 for XChangeProperty specifies. This way the data returned is OK for
1266 both 32 and 64 bit machines.
1267 (x_handle_dnd_message): Calculate size correctly even for 64 bit
1268 machines.
1269 (Fx_send_client_event): Undo change from 2005-02-05,
1270 x_fill_property_data now handles that case.
1271
3419757d 1272 * xfns.c (Fx_backspace_delete_keys_p): Add comment about the
3a441526
JD
1273 reason for the approach in the code.
1274
82ec225b
KS
12752005-02-07 Kim F. Storm <storm@cua.dk>
1276
1277 * undo.c (Fprimitive_undo): Record max one dummmy apply element.
1278
ba2c991c
RS
12792005-02-06 Richard M. Stallman <rms@gnu.org>
1280
1281 * eval.c (Frun_hook_with_args)
1282 (Frun_hook_with_args_until_success)
1283 (Frun_hook_with_args_until_failure): Doc fixes.
1284
e120ea40
AS
12852005-02-05 Andreas Schwab <schwab@suse.de>
1286
3419757d 1287 * sysdep.c (sys_subshell): Properly terminate execlp argument list.
e120ea40 1288
31f16913
JD
12892005-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1290
1291 * xselect.c (Fx_send_client_event, x_handle_dnd_message): Handle
1292 the longs in a XClientMessageEvent correctly when long is 64 bits.
1293
6082a820
EZ
12942005-02-05 Eli Zaretskii <eliz@gnu.org>
1295
1296 * xfaces.c (face_color_supported_p): Use HAVE_WINDOW_SYSTEM
1297 instead of HAVE_X_WINDOWS, for non-X windowed sessions.
1298
0e95095b
JD
12992005-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1300
1301 * xmenu.c (menubar_selection_callback): Force out GTK buffered
1302 events so the menu event comes after them. This is to prevent sit-for
1303 from exiting on buffered events directly after a menu selection,
1304 lisp code for Help => About Emacs uses sit-for.
1305
1306 * gtkutil.c (create_menus): Connect selection-done event instead of
1307 the deactivate event to deactivate_cb. This will make the last
1308 leave event come before the call to deactivate_cb, so the leave
1309 event does not make sit-for exit after a menu selection.
1310
5bb6a3c1
KS
13112005-02-03 Kim F. Storm <storm@cua.dk>
1312
1313 * dispnew.c (build_frame_matrix_from_leaf_window)
1314 [!GLYPH_DEBUG]: Fix xassert.
1315
1316 * xfaces.c (x_free_gc) [!GLYPH_DEBUG]: Fix xassert.
1317
1318 * xfns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
1319
e9859e26
YM
13202005-02-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1321
1322 * mac.c: Use MAC_OS_X_VERSION_MAX_ALLOWED to conditionalize by
1323 the compiling OS version.
1324
1325 * macfns.c (x_create_tip_frame): Likewise.
1326
3419757d 1327 * macterm.c (mac_draw_string_common, x_make_frame_visible): Likewise.
e9859e26 1328
4e07258f
RS
13292005-02-03 Richard M. Stallman <rms@gnu.org>
1330
1331 * xterm.c (x_error_quitter): On GCC 3 and up, specify noinline.
1332
1333 * xdisp.c (echo_area_display): Clear echo_message_buffer.
1334
1335 * buffer.c (Fbury_buffer): Doc fix.
1336
4a34b529
ST
13372005-02-02 Steven Tamm <steventamm@mac.com>
1338
7e26f91b 1339 * macfns.c (unwind_create_frame): Fix compile error due to
f6c62d96 1340 xassert being uncondition, but predicate is.
7e26f91b 1341 * dispnew.c (update_window): Fix compile error due to
f6c62d96 1342 xassert being uncondition, but predicate is.
4a34b529 1343
d78f30b8
MB
13442005-02-02 Miles Bader <miles@gnu.org>
1345
1346 * dispextern.h (xassert): Enable unconditionally.
1347
b044278d
KS
13482005-02-02 Kim F. Storm <storm@cua.dk>
1349
1350 * undo.c (Fprimitive_undo): Fix dummy apply undo entry.
1351
56072160
KH
13522005-02-02 Kenichi Handa <handa@m17n.org>
1353
1354 * casefiddle.c (casify_object): Enable changing characters of
1355 different byte length.
1356 (casify_region): Fix loop condition, args to replace_range_2, and
1357 update opoint_byte.
1358
f4a5a485 1359 * insdel.c (replace_range_2): Fix bugs in adjusting markers and point.
56072160 1360
5e1674c5
KS
13612005-02-01 Kim F. Storm <storm@cua.dk>
1362
1363 * xdisp.c (back_to_previous_visible_line_start): Reset iterator
1364 stack before calling handle_display_prop.
1365
fb89c330
KS
13662005-01-31 Kim F. Storm <storm@cua.dk>
1367
1368 * undo.c (Qapply): New lisp var.
1369 (syms_of_undo): Intern and staticpro it.
1370 (Fprimitive_undo): Support formats (apply FUNNAME . ARGS) and
1371 (apply DELTA BEG END FUNNAME . ARGS) instead of (FUNNAME . ARGS).
1372
1373 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
1374
7bf72fa6
JH
13752005-01-30 Jesper Harder <harder@phys.au.dk>
1376
a050b1a9
KS
1377 * macterm.c (syms_of_macterm) <mac-reverse-ctrl-meta>
1378 <mac-emulate-three-button-mouse>: Fix docstring indentation.
7bf72fa6 1379
03c64f2e
LT
13802005-01-29 Luc Teirlinck <teirllm@auburn.edu>
1381
1382 * undo.c (syms_of_undo) <undo-outer-limit>: Doc update.
6de38aa3 1383 Increase value to 3 Meg.
03c64f2e 1384
49b8b5dc
JD
13852005-01-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1386
1387 * xfns.c (show_hourglass): Use FRAME_X_WINDOW as parent for GTK,
1388 button events are not received otherwise.
1389
5a92a9eb
RS
13902005-01-29 Richard M. Stallman <rms@gnu.org>
1391
1392 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
1393
1394 * undo.c (Fprimitive_undo): Handle (FUNNAME . ARGS) by calling FUNNAME.
1395
5c243ee4
SM
13962005-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
1397
1398 * keymap.c (access_keymap): YAILOM.
1399
caf533af
KS
14002005-01-27 Kim F. Storm <storm@cua.dk>
1401
1402 * xdisp.c (get_phys_cursor_geometry): New function to calculate
1403 phys cursor position and size for hollow cursor. Position is
1404 aligned with get_glyph_string_clip_rect and ensures that a hollow
1405 cursor is shown, even when the actual glyph is not visible.
1406
1407 * dispextern.h (get_phys_cursor_geometry): Add prototype.
1408
1409 * xterm.c (x_clip_to_row): Ensure y >= 0.
1410 (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
1411
1412 * w32term.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
1413
1414 * macterm.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
1415
043f7f73
SM
14162005-01-27 Stefan Monnier <monnier@iro.umontreal.ca>
1417
1418 * xterm.c (x_error_quitter): Add a prototype. Make it static again.
1419
889f3641
KS
14202005-01-27 Kim F. Storm <storm@cua.dk>
1421
1422 * xdisp.c (get_glyph_string_clip_rect): Always show a cursor
1423 glyph, even when row is only partially visible and actual cursor
1424 position is not visible.
1425
29099c2f
RS
14262005-01-24 Richard M. Stallman <rms@gnu.org>
1427
1428 * xterm.c (x_error_quitter): No longer static, and moved after
1429 x_error_handler.
1430
6adb6f01
KS
14312005-01-24 Kim F. Storm <storm@cua.dk>
1432
1433 * xdisp.c (move_it_by_lines): If we move forward after going too
1434 far back, cancel move if end position is same as start position.
1435
4d904fa0
ST
14362005-01-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1437
1438 * dispextern.h (struct glyph_string): New members clip_head and
1439 clip_tail.
6adb6f01 1440
4d904fa0
ST
1441 * xdisp.c (get_glyph_string_clip_rect): Restrict horizontal clip
1442 region to the area between clip_head and clip_tail.
1443 (draw_glyphs): Record the area that need to be actually redrawn to
1444 the new variables clip_head and clip_tail when there are
1445 overhangs. Set values of these variables to the corresponding
1446 members in struct glyph_string. Refine x coordinates for
1447 notice_overwritten_cursor using clip_head and clip_tail.
6adb6f01 1448
4d904fa0
ST
1449 * macgui.h (STORE_XCHARSETSTRUCT): New macro.
1450
1451 * macterm.c (mac_compute_glyph_string_overhangs): Implement with
1452 QDTextBounds.
1453 (x_draw_glyph_string): Don't fill the background of the successor
6adb6f01 1454 of a glyph with a right overhang if the successor will draw a cursor.
4d904fa0 1455 (XLoadQueryFont): Obtain font metrics using QDTextBounds.
6adb6f01 1456 (x_redisplay_interface): Add entry for compute_glyph_string_overhangs.
4d904fa0 1457
f2417699
KS
14582005-01-24 Kim F. Storm <storm@cua.dk>
1459
6f67f013
KS
1460 * window.c (window_scroll_pixel_based): Fix scrolling in the wrong
1461 direction if window height was smaller than next-screen-context-lines.
1462 Now always scroll at least one line in the requested direction.
1463 Ensure that we actually do scroll backwards when requested to do so.
1464
f2417699
KS
1465 * xdisp.c (redisplay_window): Only try to make cursor line fully
1466 visible once (to avoid redisplay loop).
1467
a354b72c
KS
14682005-01-23 Kim F. Storm <storm@cua.dk>
1469
6b3d88f7 1470 * window.c (Fpos_visible_in_window_p): Simplify return value for
8f958b40 1471 partially visible rows.
6b3d88f7
KS
1472 (window_scroll_pixel_based): Adapt to that change.
1473
5c20cae2
KS
1474 * window.c (window_scroll_pixel_based): Force moving to next line
1475 if scrolling doesn't move start point, e.g. if looking at tall image.
1476
a354b72c 1477 * xdisp.c (pos_visible_p): Return 0 if non-interactive.
5c20cae2
KS
1478 Clear last_height before calling line_bottom_y to get real height.
1479 Fix calculation of y.
a354b72c 1480
d9e7c622
ST
14812005-01-22 Steven Tamm <steventamm@mac.com>
1482
1483 * s/darwin.h: Removed PTY_ITERATION from here.
043f7f73 1484 (DARWIN): Define.
7e26f91b 1485
d9e7c622
ST
1486 * process.c (init_process): Default process-connection-type to
1487 nil on darwin 6 or less, t if it is 7 or higher. This way the
1488 broken pty behavior is still allowed on darwin 6 for interactive
1489 processes for people that know what they are doing.
1490
d00e399a
KS
14912005-01-22 Kim F. Storm <storm@cua.dk>
1492
1493 * window.c (auto_window_vscroll_p): New boolean.
1494 (syms_of_window): DEFVAR_BOOL it.
1495 (Fpos_visible_in_window_p): Extend return value to include RTOP
1496 and RBOT values if FULLY is nil.
1497 (window_scroll_pixel_based): Adjust vscroll for partially visible
1498 rows if auto_window_vscroll_p is set.
1499 (Fset_window_vscroll): Do nothing if vscroll is not modified.
1500
1501 * xdisp.c (pos_visible_p): Replace FULLY arg by RTOP and RBOT args
1502 to return number of partially invisible pixels at top and bottom
1503 of the dislay row at POS.
1504
1505 * lisp.h (pos_visible_p): Fix prototype.
1506
f95a20e7
RS
15072005-01-21 Richard M. Stallman <rms@gnu.org>
1508
1509 * fileio.c (Fcopy_file): Doc fix.
1510
eee141ce
JD
15112005-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1512
1513 * gtkutil.c (xg_tool_bar_detach_callback): Remove unused variable bw.
1514 (xg_get_file_name): Move declaration ofx_use_old_gtk_file_dialog to
1515 start of function for older compilers.
1516
6f771c32
RS
15172005-01-20 Richard M. Stallman <rms@gnu.org>
1518
1519 * editfns.c (Fmessage): If arg is "", return "" (as before).
1520
1521 * keymap.c (access_keymap): Protect from bad value of meta_prefix_char.
1522
1523 * .gdbinit (xgetptr, xgetint, xgettype): Copy $arg0 into a temp
1524 variable.
1525
a15252fd
ST
15262005-01-20 Steven Tamm <steventamm@mac.com>
1527
043f7f73 1528 * editfns.c (Voperating_system_release): Add.
a15252fd
ST
1529 (init_editfns): Assign new variable operating-system-release
1530 based on call to uname if available.
043f7f73 1531 (get_operating_system_release): Add function to
d00e399a 1532 allow c-level access to operating system release.
a15252fd
ST
1533
1534 * config.h: Regenerated.
1535
043f7f73
SM
1536 * s/darwin.h (PTY_ITERATION): Don't allow PTYs on darwin 6 or less.
1537 (MIN_PTY_KERNEL_VERSION): Define minimum kernel version for
a15252fd
ST
1538 using ptys as '7'.
1539
3d6a4b2d
KS
15402005-01-20 Kim F. Storm <storm@cua.dk>
1541
62fc9b0f
KS
1542 * alloc.c (STRING_MARKED_P, VECTOR_MARKED_P): Return boolean.
1543
c310aca4
KS
1544 * xterm.c (x_draw_glyph_string_box): Fix last_x for full width rows.
1545 Thanks to Chong Yidong <cyd@stupidchicken.com> for debugging this.
1546
1547 * macterm.c (x_draw_glyph_string_box): Likewise.
1548
1549 * w32term.c (x_draw_glyph_string_box): Likewise.
1550
3d6a4b2d
KS
1551 * indent.c (Fvertical_motion): Temporarily disable selective display.
1552
27c8be45
KS
15532005-01-19 Kim F. Storm <storm@cua.dk>
1554
77db5cf3
KS
1555 * xdisp.c (note_mode_line_or_margin_highlight): Fix :pointer
1556 image property.
1557
27c8be45
KS
1558 * fns.c (sweep_weak_table): Advance prev pointer when we keep a pair.
1559
81f498dc
KS
15602005-01-18 Kim F. Storm <storm@cua.dk>
1561
1562 * xdisp.c (fast_find_position): Backtrack to find first row if
1563 charpos is inside a display overlay that spans multiple lines.
1564
1cdb0707
KH
15652005-01-18 Kenichi Handa <handa@m17n.org>
1566
1567 * coding.c (decode_coding_iso2022): Translate invalid codes if
1568 translation-table is specified.
1569
677159ce
KS
15702005-01-18 Kim F. Storm <storm@cua.dk>
1571
1572 * xdisp.c (back_to_previous_visible_line_start): Undo 2004-12-28
1573 change. If handle_display_prop indicates newline is replaced by
1574 image or text, move back to start of relevant overlay or interval
1575 and continue scan from there. Simplify.
1576
977284cc
KS
15772005-01-17 Kim F. Storm <storm@cua.dk>
1578
043f7f73
SM
1579 * dispnew.c (mode_line_string, marginal_area_string):
1580 Fix off-by-one error in search for glyph.
977284cc 1581
e24531b7
KS
15822005-01-16 Kim F. Storm <storm@cua.dk>
1583
1584 * macterm.c (syms_of_macterm) <mac-allow-anti-aliasing>: Doc fix.
1585
5ddd7664
ST
15862005-01-16 Steven Tamm <steventamm@mac.com>
1587
043f7f73 1588 * macterm.c (mac_to_x_fontname): Remove spurious argument.
5ddd7664 1589
fc2ff44b
AS
15902005-01-16 Andreas Schwab <schwab@suse.de>
1591
1592 * macterm.c (mac_draw_string_common): Fix compilation on OSX 10.1.
1593
50af5100
JD
15942005-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1595
1596 * fringe.c (Fdefine_fringe_bitmap, init_fringe): When assigning
1597 fringe_faces, cast result from xmalloc/xrealloc to Lisp_Object *.
1598
a2d5fca0
JD
15992005-01-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1600
1601 * keyboard.c (READABLE_EVENTS_DO_TIMERS_NOW)
e24531b7
KS
1602 (READABLE_EVENTS_FILTER_EVENTS, READABLE_EVENTS_IGNORE_SQUEEZABLES):
1603 New flags for readable_events.
043f7f73 1604 (get_filtered_input_pending, readable_filtered_events): Remove.
a2d5fca0
JD
1605 (tracking_off): Call readable_events and get_input_pending with
1606 flag READABLE_EVENTS_DO_TIMERS_NOW.
1607 (readable_events): Move code from old readable_filtered_events here,
1608 but check new READABLE_EVENTS_* in argument flags instead of previous
1609 two boolean arguments do_timers_now and filter_events.
1610 If we are doing mouse tracking and the mouse moved, return only if
1611 READABLE_EVENTS_IGNORE_SQUEEZABLES is not set in flags.
1612 (swallow_events): Call get_input_pending with flag
1613 READABLE_EVENTS_DO_TIMERS_NOW.
e24531b7 1614 (get_input_pending): Move code from old get_filtered_input_pending
a2d5fca0
JD
1615 here. Replace boolean arguments do_timers_now, filter_events with
1616 flags, and pass flags to readable_events. Document new
1617 READABLE_EVENTS_* flags.
1618 (detect_input_pending_ignore_squeezables): New function.
1619 (detect_input_pending_run_timers): Call get_input_pending with flag
1620 READABLE_EVENTS_DO_TIMERS_NOW.
1621 (Finput_pending_p): Call get_input_pending with flags
1622 READABLE_EVENTS_DO_TIMERS_NOW and READABLE_EVENTS_FILTER_EVENTS.
1623
1624 * dispnew.c (update_window, update_frame_1): Replace calls to
1625 detect_input_pending with detect_input_pending_ignore_squeezables
e24531b7 1626 so that redisplay is not paused if the event queue contains only
a2d5fca0
JD
1627 mouse movements.
1628
1629 * lisp.h: Declare detect_input_pending_ignore_squeezables.
1630
42afbcda
ST
16312005-01-15 Steven Tamm <steventamm@mac.com>
1632
e24531b7
KS
1633 * macterm.c (Vmac_use_core_graphics): Declare variable for
1634 mac-allow-anti-aliasing.
1635 (syms_of_macterm): DEFVAR_LISP and initialize it.
743d0696 1636 (mac_draw_string_common): Use core graphics text rendering if
0530c679 1637 mac-allow-anti-aliasing is enabled.
743d0696 1638
42afbcda
ST
1639 * macfns.c (Fx_file_dialog): Save As dialog includes only the
1640 file name in the text box.
1641
9cdd4884
ST
16422005-01-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1643
043f7f73
SM
1644 * macfns.c (x_set_foreground_color, x_set_background_color):
1645 Sync with xfns.c.
9cdd4884
ST
1646 (mac_window, x_create_tip_frame): Use XSetWindowBackground.
1647 * macterm.c (XSetBackground, XSetWindowBackground): New functions.
1648 * macterm.h (XSetBackground, XSetWindowBackground): Add externs.
1649
88948d55
KS
16502005-01-14 Kim F. Storm <storm@cua.dk>
1651
1652 * keyboard.c (Fposn_at_x_y): Add optional arg WHOLE.
1653
20d6de82
RS
16542005-01-13 Richard M. Stallman <rms@gnu.org>
1655
1656 * keymap.c (Fcurrent_active_maps): Ignore Voverriding_local_map
1657 if Voverriding_terminal_local_map is non-nil.
1658
1659 * keyboard.c (syms_of_keyboard): Doc fix.
1660
f75a592e
KS
16612005-01-13 Kim F. Storm <storm@cua.dk>
1662
1663 * xdisp.c (Fformat_mode_line): Fix last change. Remove NO_PROPS arg
1664 (specify 0 for FACE instead). Reorder arg list. Doc fix.
1665
28f94a34
RS
16662005-01-12 Richard M. Stallman <rms@gnu.org>
1667
1668 * xdisp.c (Fformat_mode_line): New arg FACE specifies a default
1669 face property for characters that don't specify one.
1670
1671 * fns.c (Frequire): Record in load-history unconditionally.
1672
57a230b1
KS
16732005-01-10 Kim F. Storm <storm@cua.dk>
1674
1675 * dispextern.h (merge_faces): Rename from merge_into_realized_face.
1676
1677 * xfaces.c (merge_faces): Rename from merge_into_realized_face.
1678 Callers changed.
1679 Add support to merge with lisp face id too (if face_name is t).
1680
1681 * xdisp.c (get_next_display_element, next_element_from_display_vector):
1682 Don't lookup lface_id from display table glyphs here; instead use
1683 merge_faces to merge the lisp face id into current face.
1684
8ab2c119
KS
16852005-01-09 Kim F. Storm <storm@cua.dk>
1686
1687 * dispextern.h (struct it): New member dpvec_face_id.
1688 (merge_into_realized_face): Add prototype.
1689
1690 * xfaces.c (merge_into_realized_face): New function. Used to
1691 merge escape-glyph face or face from display table into current face.
1692
1693 * xdisp.c (Vshow_nonbreak_escape): New lisp var.
1694 (syms_of_xdisp): DEFVAR_LISP it.
1695 (escape_glyph_face): Remove var.
1696 (redisplay_window): Don't initialize it.
1697 (setup_for_ellipsis, get_next_display_element):
1698 Set it->dpvec_face_id to -1.
1699 (get_next_display_element): Test Vshow_nonbreak_escape.
1700 Do not setup escape_glyph_face.
1701 Properly merge escape-glyph face or face from display table with
043f7f73
SM
1702 current face for escape and control characters.
1703 Set it->dpvec_face_id to relevant face id instead of adding it to each
8ab2c119
KS
1704 element of display vector.
1705 (next_element_from_display_vector): If it->dpvec_face_id is set,
1706 use that instead of lface_id from glyph itself.
1707
e0910857
JD
17082005-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1709
1710 * xterm.h (struct x_output): New member, toolbar_detached.
1711
1712 * gtkutil.c (xg_create_frame_widgets): Set initial tool bar height to
1713 38.
1714 (xg_tool_bar_detach_callback): Set toolbar_detached to 1.
1715 (xg_tool_bar_attach_callback): Set toolbar_detached to 0.
1716 (xg_create_tool_bar): Initialize toolbar_detached.
1717 (update_frame_tool_bar): Only set FRAME_TOOLBAR_HEIGHT (f) if
1718 toolbar_detached is zero.
1719
ff59904a
JD
17202005-01-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1721
9b85e63d
JD
1722 * xmenu.c (create_and_show_popup_menu): Pass zero as button to
1723 gtk_menu_popup if not for_click, so callbacks for the menu are called.
1724
ff59904a
JD
1725 * gtkutil.c (xg_gtk_scroll_destroy, xg_create_scroll_bar)
1726 (xg_tool_bar_callback, xg_tool_bar_help_callback)
043f7f73 1727 (update_frame_tool_bar): Cast to EMACS_INT to avoid compiler warning.
ff59904a
JD
1728
1729 * xselect.c (x_get_foreign_selection, x_fill_property_data)
8ab2c119 1730 (Fx_get_atom_name, Fx_send_client_event): Replace XFLOAT with
ff59904a
JD
1731 XFLOAT_DATA to get extract number from Lisp object.
1732
f9a23a6f
KS
17332005-01-07 Kim F. Storm <storm@cua.dk>
1734
1735 * xdisp.c (set_iterator_to_next): Fix 2004-12-13 change.
1736 Set stop_charpos to current charpos instead of 0.
1737
28f94a34
RS
17382005-01-06 Nick Roberts <nickrob@snap.net.nz>
1739
1740 * xdisp.c (Fformat_mode_line): First arg now required.
1741
a6fffcdc
ST
17422005-01-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1743
1744 * macterm.c (XLoadQueryFont): Correctly handle 0 size
1745 font widths that are returned from some Japanese fonts.
1746
c35b0c6b
KS
17472005-01-06 Kim F. Storm <storm@cua.dk>
1748
1749 * fringe.c (fringe_faces): Change to Lisp_Object pointer.
1750 (draw_fringe_bitmap_1): Lookup user defined fringe faces here.
1751 (destroy_fringe_bitmap): Set fringe_faces element to nil.
1752 (Fdefine_fringe_bitmap, init_fringe): Change allocation of
1753 fringe_faces array and init elements to nil.
1754 (Fset_fringe_bitmap_face): Set fringe_faces to face name instead of
1755 non-persistent face id.
1756 (mark_fringe_data): New function for GC.
1757
1758 * alloc.c (mark_fringe_data): Declare extern.
1759 (Fgarbage_collect): Call mark_fringe_data.
1760
1761 * alloc.c (overrun_check_free): Invalidate freed memory if
1762 XMALLOC_CLEAR_FREE_MEMORY is defined.
1763
e0e76ab9
ST
17642005-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1765
1766 * macfns.c: Include sys/param.h.
1767 [TARGET_API_MAC_CARBON] (mac_nav_event_callback): New declaration
1768 and function.
1769 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Use MAXPATHLEN for size
1770 of filename string. Set event callback function when creating
1771 dialog boxes. Add code conversions for filenames. Don't dispose
1772 apple event descriptor record if failed to create it.
1773
1774 * macterm.c: Include sys/param.h.
1775 [USE_CARBON_EVENTS] (mac_handle_window_event): Add handler for
1776 kEventWindowUpdate.
1777 (install_window_handler) [USE_CARBON_EVENTS]: Register it.
1778 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Get FSRef instead
1779 of FSSpec from apple event descriptor record.
1780 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Use MAXPATHLEN for
1781 size of filename string.
1782 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.
1783 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Return error when a
1784 file dialog is in action.
043f7f73
SM
1785 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Likewise.
1786 Reject only when there are no filename items. Set background color
e0e76ab9 1787 before (un)highlighting the window below the dragged items.
2313f861 1788 (XTread_socket) [USE_CARBON_EVENTS]: Don't call do_window_update.
e0e76ab9 1789
043bc640
KH
17902005-01-05 Romain Francoise <romain@orebokech.com>
1791
1792 * term.c (encode_terminal_code): Fix buffer size computation.
1793
dd496df6
RS
17942005-01-04 Richard M. Stallman <rms@gnu.org>
1795
1796 * xdisp.c (Fformat_mode_line): Doc fix.
1797
026cdede
SM
17982005-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
1799
1800 * alloc.c (refill_memory_reserve): Move.
1801 (emacs_blocked_free, emacs_blocked_malloc, emacs_blocked_realloc)
1802 (reset_malloc_hooks, uninterrupt_malloc) [SYNC_INPUT]: Don't define.
1803
d57c7572
RS
18042005-01-03 Richard M. Stallman <rms@gnu.org>
1805
1806 * window.c (window_scroll_pixel_based): Don't correct preserve_y
1807 for CURRENT_HEADER_LINE_HEIGHT when moving backwards.
1808
b14f868c
JR
18092005-01-03 Jason Rumney <jasonr@gnu.org>
1810
1811 * w32bdf.c (w32_load_bdf_font): Set fontp->average_width and
1812 fontp->space_width to FONT_WIDTH so they are valid.
1813
1814 * w32fns.c (w32_load_system_font): Set FONT_WIDTH to maximum, not
1815 average width. Set fontp->average_width and fontp->space_width to
1816 their appropriate values.
1817
1818 * w32term.c (x_new_font): Set FRAME_COLUMN_WIDTH to
1819 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
1820 fontp->space_width.
1821
e169f939
ST
18222005-01-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1823
1824 * macterm.c (x_new_font): Set FRAME_SPACE_WIDTH.
1825 (x_font_min_bounds, XLoadQueryFont): Use the correct font width
1826 metrics for max and min bounds.
1827 (x_load_font): Correctly calculate average font width metrics.
1828
19996af4
RS
18292005-01-02 Richard M. Stallman <rms@gnu.org>
1830
1831 * alloc.c (Fgarbage_collect): Don't truncate_undo_list on dead buffers.
1832
42d02da0
JD
18332004-12-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1834
1835 * xterm.c (handle_one_xevent): Clear area in expose event for GTK.
1836
1db7dd46
RS
18372004-12-31 Richard M. Stallman <rms@gnu.org>
1838
b437860a
RS
1839 * xdisp.c (setup_for_ellipsis, get_next_display_element):
1840 Set it->ellipsis_p to 1 or 0.
1841 (display_line): Record whether row ends in mid-ellipsis.
1842 (set_cursor_from_row): If ends in ellipsis. find start of it.
1843 (cursor_row_p): If PT's at the end of the ellipsis the row
1844 ends within, don't display cursor on this row.
1845
1846 * dispextern.h (struct it): New element ellipsis_p.
1847 (struct glyph_row): New element ends_in_ellipsis_p.
1848
1849 * xdisp.c (BUFFER_POS_REACHED_P): We haven't reached the specified
1850 position if we're reading from something other than the buffer.
1851
1db7dd46
RS
1852 * window.c (window_scroll_pixel_based): Only look at
1853 Vscroll_preserve_screen_position if the old PT can't be kept.
1854 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
1855
1225f637
KS
18562004-12-30 Kim F. Storm <storm@cua.dk>
1857
1858 * xdisp.c (get_line_height_property): New function extracted from
1859 original calc_line_height_property.
1860 (calc_line_height_property): Rework. Handle t and (nil . ratio).
1861 (x_produce_glyphs): Use them to handle line-height and
1862 line-spacing according to new height spec.
1863 (Qtotal): Remove.
33b2f4ea 1864 (syms_of_xdisp): Remove intern and staticpro for Qtotal.
1225f637 1865
c243063e
KH
18662004-12-30 Kenichi Handa <handa@m17n.org>
1867
1868 * fileio.c (Finsert_file_contents): Don't use
1869 current_buffer->buffer_file_coding_system even if REPLACE is
043f7f73 1870 non-nil. Call Qafter_insert_file_set_coding with the second arg VISIT.
c243063e
KH
1871
1872 * fontset.h (struct font_info): New members space_width and
1873 average_width.
1874
1875 * frame.h (struct frame): New member space_width.
1876 (FRAME_SPACE_WIDTH): New macro.
1877
1878 * xterm.h (struct x_display_info): New member Xatom_AVERAGE_WIDTH.
1879
1880 * xterm.c (x_new_font): Set FRAME_COLUMN_WIDTH to
1881 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
b14f868c 1882 fontp->space_width.
043f7f73 1883 (x_load_font): Calculate fontp->space_width and fontp->average_width.
c243063e
KH
1884 (x_term_init): Initialize dpyinfo->Xatom_AVERAGE_WIDTH.
1885
1886 * xdisp.c (x_produce_glyphs): Calculate tab width by
1887 FRAME_SPACE_WIDTH, not FRAME_COLUMN_WIDTH.
1888
456e761b
ST
18892004-12-29 Sanghyuk Suh <han9kin@mac.com>
1890
1891 * macterm.c (SelectionRange): Add Xcode position apple event struct.
043f7f73 1892 (do_ae_open_documents): Handle Xcode-style file position open events.
456e761b 1893
188577ce
LT
18942004-12-29 Luc Teirlinck <teirllm@auburn.edu>
1895
1896 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Correct typo.
1897
99ec74b9
RS
18982004-12-29 Richard M. Stallman <rms@gnu.org>
1899
1900 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Doc fix.
1901
30c92fab
ST
19022004-12-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1903
1904 * macfns.c (install_window_handler): Modify extern to return OSErr
1905 value.
1906 (mac_window): Handle return value of install_window_handler.
1907
1908 * macterm.c (reflect_byte): Remove function.
1909 (mac_create_bitmap_from_bitmap_data): Don't call reflect_byte.
1910 Lookup table instead.
1911 (mac_do_font_lists): Simplify calculation of the longest
1912 nonspecial string.
1913 (init_mac_drag_n_drop): Remove function and declaration.
1914 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
1915 init_mac_drag_n_drop.
1916 (mac_do_track_drag): New function and declaration.
1917 (install_window_handler): Return OSErr value.
043f7f73
SM
1918 (install_window_handler) [TARGET_API_MAC_CARBON]:
1919 Register handlers for tracking/receiving drag-and-drop items.
30c92fab 1920 (do_ae_open_documents): Generate unibyte strings for filenames.
043f7f73
SM
1921 (mac_do_receive_drag) [TARGET_API_MAC_CARBON] : Likewise.
1922 Reject only non-filename items. Set event modifiers, and return value.
30c92fab 1923
4b982924
DN
19242004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
1925
1926 * coding.c (decode_coding): Fix previous change.
1927
93fdf45f
RS
19282004-12-28 Richard M. Stallman <rms@gnu.org>
1929
1930 * xdisp.c (back_to_previous_visible_line_start):
1931 Don't call handle_display_prop.
1932
5bdca8af
DN
19332004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
1934
1935 * coding.c (decode_coding_XXX, decode_composition_emacs_mule)
1936 (decode_coding_emacs_mule, encode_coding_emacs_mule)
1937 (decode_coding_iso2022, encode_designation_at_bol)
1938 (encode_coding_iso2022, decode_coding_sjis_big5, decode_eol)
1939 (decode_coding): Constify arguments and local vars.
1940
33385c6f
JD
19412004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1942
1943 * xmenu.c (popup_get_selection): Only pop down dialogs
1944 on C-g and Escape.
95bdef2e 1945 (popup_get_selection): Remove parameter down_on_keypress.
043f7f73
SM
1946 (create_and_show_popup_menu, create_and_show_dialog):
1947 Remove parameter down_on_keypress to popup_get_selection.
33385c6f 1948
b15325b2
ST
19492004-12-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1950
1951 * dispextern.h: Change HAVE_CARBON to MAC_OS.
1952 (struct glyph_string): Likewise.
a2c7e69a 1953
b15325b2
ST
1954 * emacs.c (main) [MAC_OS8]: Call mac_term_init instead of
1955 mac_initialize.
a2c7e69a 1956
b15325b2
ST
1957 * fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name):
1958 Change TARGET_API_MAC_CARBON to HAVE_CARBON.
a2c7e69a 1959
b15325b2 1960 * fns.c (vector): Change MAC_OSX to MAC_OS.
a2c7e69a 1961
b15325b2
ST
1962 * frame.c (x_set_frame_parameters, x_report_frame_params)
1963 (x_set_fullscreen): Remove #ifndef HAVE_CARBON.
043f7f73
SM
1964 (x_set_border_width, Vdefault_frame_scroll_bars):
1965 Change HAVE_CARBON to MAC_OS.
a2c7e69a 1966
b15325b2
ST
1967 * image.c [MAC_OS]: Include sys/stat.h.
1968 [MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and
1969 QuickTimeComponents.h.
a2c7e69a 1970
b15325b2
ST
1971 * mac.c [!MAC_OSX] (mac_wait_next_event): Add extern.
1972 [!MAC_OSX] (select): Use mac_wait_next_event.
043f7f73 1973 [!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to Vexec_suffixes.
b15325b2
ST
1974 [!MAC_OSX] (select, run_mac_command): Change `#ifdef
1975 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
1976 (mac_clear_font_name_table): Add extern.
1977 (Fmac_clear_font_name_table): New defun.
1978 (syms_of_mac): Defsubr it.
1979 [MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define.
1980 [MAC_OSX] (select_and_poll_event): New function.
1981 [MAC_OSX] (sys_select): Use it.
1982 [MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function.
1983 [MAC_OSX && SELECT_USE_CFSOCKET]
1984 (SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines.
1985 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and
1986 RunLoop for simultaneously monitoring two kinds of inputs, window
1987 events and process outputs, without periodically polling.
a2c7e69a 1988
b15325b2
ST
1989 * macfns.c (mac_initialized): Remove extern.
1990 (stricmp): Put in #if 0. All callers changed to use xstricmp in
1991 xfaces.c.
043f7f73
SM
1992 (strnicmp): Decrement `n' at the end of each loop, not the beginning.
1993 (check_mac): Use the term "Mac native windows" instead of "Mac OS".
b15325b2
ST
1994 (check_x_display_info, x_display_info_for_name): Sync with xfns.c.
1995 (mac_get_rdb_resource): New function (from w32reg.c).
1996 (x_get_string_resource): Use it.
1997 (install_window_handler): Add extern.
1998 (mac_window): New function.
043f7f73
SM
1999 (Fx_create_frame): Use it instead of make_mac_frame.
2000 Set parameter for Qfullscreen. Call x_wm_set_size_hint.
b15325b2
ST
2001 (Fx_open_connection, Fx_close_connection): New defuns.
2002 (syms_of_macfns): Defsubr them.
043f7f73
SM
2003 (x_create_tip_frame) [TARGET_API_MAC_CARBON]:
2004 Add kWindowNoUpdatesAttribute to the window attribute.
b15325b2
ST
2005 (x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow.
2006 (x_create_tip_frame): Don't call ShowWindow.
2007 (Fx_show_tip): Call ShowWindow.
2008 (Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if
2009 TARGET_API_MAC_CARBON'.
2010 (mac_frame_parm_handlers): Set handlers for Qfullscreen.
2011 (syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0.
a2c7e69a 2012
043f7f73 2013 * macgui.h [!MAC_OSX]: Don't include Controls.h. Include Windows.h.
b15325b2
ST
2014 (Window): Typedef to WindowPtr and move outside `#if
2015 TARGET_API_MAC_CARBON'.
2016 (XSizeHints): New struct.
a2c7e69a 2017
b15325b2
ST
2018 * macterm.c (x_update_begin, x_update_end)
2019 [TARGET_API_MAC_CARBON]: Disable screen updates during update of a
2020 frame.
2021 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
2022 [MAC_OS8]: Use XDrawImageString/XDrawImageString16.
2023 (construct_mouse_click): Put in #if 0.
2024 (x_check_fullscreen, x_check_fullscreen_move): Remove decls.
2025 (x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef
2026 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
2027 (activate_scroll_bars, deactivate_scroll_bars)
2028 [!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl.
2029 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window
2030 if the position is neither user-specified nor program-specified.
2031 (x_free_frame_resources): Free size_hints.
043f7f73 2032 (x_wm_set_size_hint): Allocate size_hints if needed. Set size_hints.
b15325b2
ST
2033 (mac_clear_font_name_table): New function.
2034 (mac_do_list_fonts): Initialize font_name_table if needed.
2035 (x_list_fonts): Don't initialize font_name_table. Add BLOCK_INPUT
2036 around mac_do_list_fonts.
2037 (mac_unload_font): New function.
2038 (x_load_font): Add BLOCK_INPUT around XLoadQueryFont.
2039 (init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations
2040 and definitions with #if TARGET_API_MAC_CARBON.
2041 [USE_CARBON_EVENTS] (mac_handle_window_event): Add decl.
2042 (install_window_handler): Add decl.
2043 (do_window_update): Add BeginUpdate/EndUpdate for the tooltip
2044 window. Use UpdateControls. Get the rectangle that should be
2045 updated and restrict the target of expose_frame to it.
043f7f73 2046 (do_grow_window): Set minimum height/width according to size_hints.
b15325b2
ST
2047 (do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow.
2048 (do_zoom_window): Don't use x_set_window_size.
2049 [USE_CARBON_EVENTS] (mac_handle_window_event): New function.
2050 (install_window_handler): New function.
2051 [!USE_CARBON_EVENTS] (mouse_region): New variable.
2052 [!USE_CARBON_EVENTS] (mac_wait_next_event): New function.
2053 (XTread_socket) [USE_CARBON_EVENTS]: Move call to
2054 GetEventDispatcherTarget inside BLOCK_INPUT.
2055 (XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event.
2056 Update mouse_region when mouse is moved.
2057 (make_mac_frame): Remove.
043f7f73
SM
2058 (make_mac_terminal_frame): Put in #ifdef MAC_OS8.
2059 Initialize mouse pointer shapes. Change values of f->left_pos and
2060 f->top_pos. Don't use make_mac_frame. Use NewCWindow.
2061 Don't call ShowWindow.
b15325b2
ST
2062 (mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from
2063 Vinvocation_name and Vsystem_name.
2064 (mac_make_rdb): New function (from w32term.c).
2065 (mac_term_init): Use it. Add BLOCK_INPUT. Error if display has
2066 already been opened. Don't pass argument to
2067 mac_initialize_display_info. Don't set dpyinfo->height/width.
2068 Add entries to x_display_list and x_display_name_list.
2069 (x_delete_display): New function.
2070 (mac_initialize): Don't call mac_initialize_display_info.
a2c7e69a
KS
2071 (syms_of_macterm) [!MAC_OSX]: Don't call Fprovide.
2072
b15325b2
ST
2073 * macterm.h (check_mac): Add extern.
2074 (struct mac_output): New member size_hints.
2075 (FRAME_SIZE_HINTS): New macro.
2076 (mac_unload_font): Add extern.
a2c7e69a 2077
b15325b2 2078 * xdisp.c (expose_window, expose_frame): Remove kludges for Mac.
a2c7e69a 2079
b15325b2
ST
2080 * xfaces.c (clear_font_table) [MAC_OS]: call mac_unload_font.
2081
92d2947b
RS
20822004-12-27 Richard M. Stallman <rms@gnu.org>
2083
043f7f73 2084 * buffer.c (Fbuffer_disable_undo): Delete (move to simple.el).
ebbd14f1
RS
2085 (syms_of_buffer): Don't defsubr it.
2086
2087 * process.c (list_processes_1): Set undo_list instead
2088 of calling Fbuffer_disable_undo.
2089
043f7f73 2090 * xdisp.c (single_display_spec_string_p): Rename from
92d2947b 2091 single_display_prop_string_p.
043f7f73 2092 (single_display_spec_intangible_p): Rename from
92d2947b 2093 single_display_prop_intangible_p.
043f7f73 2094 (handle_single_display_spec): Rename from handle_single_display_prop.
92d2947b
RS
2095 Rewritten to be easier to understand.
2096
a2c7e69a 2097 Change in load-history format. Functions now get (defun . NAME),
92d2947b
RS
2098 and variables get just NAME.
2099
2100 * data.c (Fdefalias): Use (defun . FN_NAME) in LOADHIST_ATTACH.
2101
2102 * eval.c (Fdefun, Fdefmacro): Use (defun . FN_NAME) in LOADHIST_ATTACH.
2103 (Fdefvaralias, Fdefvar, Fdefconst): Use just SYM in LOADHIST_ATTACH.
2104 (Qdefvar): Var deleted.
2105 (syms_of_eval): Don't initialze it.
2106
2107 * lread.c (syms_of_lread) <load-history>: Doc fix.
2108
9f6fcdc5
JD
21092004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2110
2111 * xmenu.c (popup_get_selection): Pop down on C-g.
2112 (set_frame_menubar): Install translations for Lucid/Motif/Lesstif that
2113 pops down menu on C-g.
2114 (xdialog_show): If dialog popped down and no button in the dialog was
2115 pushed, call Fsignal to quit.
2116 (xmenu_show): In no toolkit version, if menu returns NO_SELECT call
2117 Fsignal to quit.
2118
2119 * xfns.c (Fx_file_dialog): Motif/Lesstif version: Pop down on C-g.
2120
2121 * gtkutil.c (xg_initialize): Install bindings for C-g so that
2122 dialogs and menus pop down.
2123
d8ca23a0
KH
21242004-12-27 Kenichi Handa <handa@m17n.org>
2125
2126 * coding.c (code_convert_region): Fix calculation of `ratio'.
2127
857ae68b
JD
21282004-12-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2129
133c0116
JD
2130 * gtkutil.c (update_frame_tool_bar): Make the value of
2131 tool-bar-button-margin control margins of images in tool bar.
2132
857ae68b
JD
2133 * alloc.c (check_depth): New variable.
2134 (overrun_check_malloc, overrun_check_realloc): Only add
2135 overhead and write check pattern if check_depth is 1 (to handle
2136 recursive calls). Increase/decrease check_depth in entry/exit.
2137 (overrun_check_free): Only check for overhead if check_depth is 1.
2138 Increase/decrease check_depth in entry/exit.
2139
bd55c35c
JD
21402004-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2141
2142 * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK
2143 before touching input_available_clear_time, to avoid accessing it
2144 from multiple threads.
2145
66354420
JR
21462004-12-23 Jason Rumney <jasonr@gnu.org>
2147
2148 * image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behaviour
2149 of JPEG library.
2150
55f4edbc
RS
21512004-12-22 Richard M. Stallman <rms@gnu.org>
2152
2153 * emacs.c (main): If batch mode, set Vundo_outer_limit to nil.
2154
2155 * lisp.h (Vundo_outer_limit): Fix decl.
2156
2157 * undo.c (Vundo_outer_limit): Replaces undo_outer_limit.
2158 Uses changed.
2159 (syms_of_undo): Initialize appropriately.
2160 (truncate_undo_list): If it's nil, there's no limit.
2161
7a0ea9e3
KH
21622004-12-22 Kenichi Handa <handa@m17n.org>
2163
2164 * xselect.c (Fx_get_cut_buffer_internal): Return a unibyte string.
2165
fda2922a
RS
21662004-12-21 Richard M. Stallman <rms@gnu.org>
2167
2168 * eval.c (unwind_to_catch): Clear immediate_quit.
2169
2170 * xdisp.c (get_next_display_element): Display codes 8a0 and 8ad
2171 specially as `\ ' and `\-'.
2172
2173 * keyboard.c (kbd_buffer_store_event_hold):
2174 In the code for while-no-input, handle immediate_quit.
2175
2176 * alloc.c (Fgarbage_collect): Update call to truncate_undo_list.
2177 Call that at the very start.
043f7f73 2178 (undo_limit, undo_strong_limit, undo_outer_limit): Move to undo.c.
fda2922a
RS
2179 (syms_of_alloc): Don't define undo-limit,
2180 undo-strong-limit and undo-outer-limit here.
2181
2182 * undo.c (truncate_undo_list): Return void.
2183 Take just one argument, the buffer.
2184 Make it current, and inhibit recursive GC.
2185 Access and update the undo list directly; return void.
2186 Refer to the undo...limit variables directly.
2187 Test undo_outer_limit only after counting the whole current command.
2188 When it's exceeded, call the function in undo-outer-limit-function.
2189 (undo_limit, undo_strong_limit, undo_outer_limit): From alloc.c.
2190 (Vundo_outer_limit_function): New variable.
2191 (syms_of_undo): Define undo-limit, undo-strong-limit
2192 and undo-outer-limit here, and undo-outer-limit-function.
2193 Doc fixes.
2194
2195 * lisp.h (truncate_undo_list): Update decl.
2196
21972004-12-21 Piet van Oostrum <piet@cs.uu.nl>
2198
2199 * fileio.c (Fread_file_name): Delete duplicates in
2200 file-name-history when history_delete_duplicates is true.
2201
68c69027
ST
22022004-12-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2203
2204 * macterm.c (mac_do_list_fonts): Fix memory leak
2205
134579f2
RS
22062004-12-20 Richard M. Stallman <rms@gnu.org>
2207
2208 * regex.c (re_match_2_internal) <symend, wordend>:
2209 Fix calls to UPDATE_SYNTAX_TABLE_FORWARD.
2210
fbe6152f
ST
22112004-12-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2212
043f7f73
SM
2213 * macterm.c (endif, x_font_name_to_mac_font_name):
2214 Use maccentraleurroman instead of maccentraleuropean
fbe6152f
ST
2215 (mac_c_string_match, mac_do_list_fonts): Speed up font search by
2216 quickly finding a specific font without needing regexps.
2217
fecad3f6
JD
22182004-12-15 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2219
333f1b6f
JD
2220 * syssignal.h: Declare main_thread.
2221 (SIGNAL_THREAD_CHECK): New macro.
2222
2223 * keyboard.c (input_available_signal): Move thread checking code
2224 to macro SIGNAL_THREAD_CHECK and call that macro.
2225 (interrupt_signal): Call SIGNAL_THREAD_CHECK.
2226
2227 * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.
2228
2229 * emacs.c: Define main_thread.
2230 (main): Initialize main_thread.
2231 (handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
2232 (memory_warning_signal): Call SIGNAL_THREAD_CHECK.
2233
2234 * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.
2235
2236 * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.
2237
2238 * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.
2239
043f7f73
SM
2240 * process.c (send_process_trap, sigchld_handler):
2241 Call SIGNAL_THREAD_CHECK.
333f1b6f
JD
2242
2243 * data.c (arith_error): Call SIGNAL_THREAD_CHECK.
2244
2245 * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
2246
fecad3f6
JD
2247 * xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
2248 returning when xg_ignore_gtk_scrollbar is true.
2249
2a84c6da
KS
22502004-12-14 Kim F. Storm <storm@cua.dk>
2251
2252 * keyboard.c (read_char): Save and restore echo_string when
2253 handling input method.
2254
d9c1ce9d
RS
22552004-12-13 Richard M. Stallman <rms@gnu.org>
2256
2257 * eval.c (syms_of_eval) <quit-flag>: Doc fix.
2258
2259 * keyboard.c (Vthrow_on_input): New variable.
2260 (syms_of_keyboard): Defvar and initialize it.
2261 (kbd_buffer_store_event_hold): Handle Vthrow_on_input.
2262
2263 * lisp.h (QUIT): Check for Vthrow_on_input.
2264 (Vthrow_on_input): Declare it.
2265
a6495ed5
KS
22662004-12-13 Kim F. Storm <storm@cua.dk>
2267
2268 * xdisp.c (set_iterator_to_next): Reset stop_charpos after display
2269 vector.
2270
24a0e22f
RS
22712004-12-12 Richard M. Stallman <rms@gnu.org>
2272
2273 * indent.c (Fvertical_motion): Call move_it_by_lines even if LINES = 0.
2274
2275 * minibuf.c (Fall_completions): Add var `zero' and use it in loop.
2276 (Ftry_completion): Really use outer `zero'; eliminate inner one.
2277
d6d31e57
KH
22782004-12-12 Kenichi Handa <handa@m17n.org>
2279
2280 * term.c (encode_terminal_code): Fix previous change.
2281
6f8ffb88
SM
22822004-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
2283
fb6f5cbf
SM
2284 * keyboard.c (handle_async_input): Remove pthread mutex handling.
2285 (input_available_signal): Move pthread thingy to !SYNC_INPUT branch.
2286
6f8ffb88
SM
2287 * syntax.c (Fforward_word): Avoid non-idempotent side-effects
2288 in macro arguments.
2289
2290 * minibuf.c (Ftry_completion, Fall_completions): Don't use
2291 XFASTINT blindly.
2292
2293 * emacs.c (main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT.
2294
c83c9f9d
JD
22952004-12-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2296
2f25767f
JD
2297 * w32term.c (x_calc_absolute_position): Remove calculation of
2298 difference between inner and outer window. Don't subtract difference
2299 for left and top calculations.
2300
c83c9f9d
JD
2301 * xterm.c (x_calc_absolute_position): Don't subtract outer_pixel_diff
2302 for left and top calculations. Remove call to x_real_positions.
24a0e22f 2303 [Bug report by Drew Adams in November]
c83c9f9d
JD
2304 (x_check_expected_move): Do not set change_gravity to 1 when calling
2305 x_set_offset.
2306
cc1caa4e
RS
23072004-12-08 Richard M. Stallman <rms@gnu.org>
2308
2309 * xdisp.c (get_next_display_element): Use `escape-glyph' for
2310 control chars and escaped octal codes.
2311 (Qescape_glyph): New variable.
2312 (syms_of_xdisp): Initialize it.
2313 (escape_glyph_face): New variable.
2314 (redisplay_window): Initialize it.
2315
e0e30823
RS
23162004-12-07 Paul Eggert <eggert@cs.ucla.edu>
2317
2318 * image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE)
2319 (init_image): Use 1 rather than TRUE. TRUE's not always defined.
2320
f415cacd
JD
23212004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2322
cf435f39
JD
2323 * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
2324 reset_malloc_hooks.
2325
6f8ffb88
SM
2326 * keyboard.c (handle_async_input, input_available_signal):
2327 Add ! defined (SYSTEM_MALLOC) around thread code.
cf435f39 2328
f415cacd
JD
2329 * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
2330
043f7f73 23312004-12-07 Stefan Monnier <monnier@iro.umontreal.ca>
19b1f29a
SM
2332
2333 * eval.c (init_eval_once): Increase max_specpdl_size to 1000.
2334
2335 * config.in: Regenerate.
2336
ded997c1
JD
23372004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2338
453a4f1b
JD
2339 * xmenu.c (Fx_popup_menu): Correct documentation about position.
2340 (xmenu_show): Do not call XTranslateCoordinates. Adjust position
2341 if not given by a mouse click to correspond with x-popup-menu
2342 documentation.
2343
9a38524c
JD
2344 * config.in: Regenerate.
2345
aa477689
JD
2346 * gtkutil.c: Include signal.h and syssignal.h.
2347 (xg_get_file_name): Block and unblock __SIGRTMIN if defined.
2348
2349 * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
2350 new variables main_thread and alloc_mutex,
2351 define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
2352 emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
2353 If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same as
2354 (UN)BLOCK_INPUT.
2355 (emacs_blocked_free, emacs_blocked_malloc)
2356 (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
2357 (uninterrupt_malloc): Initialize main_thread and alloc_mutex.
2358 (reset_malloc_hooks): New function.
2359
2360 * lisp.h: Declare reset_malloc_hooks.
2361
2362 * emacs.c (Fdump_emacs): Call reset_malloc_hooks.
2363
2364 * keyboard.c: Conditionally include pthread.h
6f8ffb88 2365 (handle_async_input, input_available_signalt): If not in the main
aa477689
JD
2366 thread, block signal, send signal to main thread and return.
2367
ded997c1 2368 * gtkutil.c (xg_get_file_with_chooser): Handle local files only.
6f8ffb88 2369 Set current folder in file chooser if default_filename is a directory.
ded997c1 2370
c72b0edd
SM
23712004-12-05 Stefan Monnier <monnier@iro.umontreal.ca>
2372
2373 * regex.c (GET_UNSIGNED_NUMBER): Signal an error when reaching the end.
2374 Remove redundant correctness checks.
2375 (regex_compile): Fix up error codes for \{..\} expressions.
2376
c721eee5
RS
23772004-12-05 Richard M. Stallman <rms@gnu.org>
2378
2379 * regex.c (regex_compile): Fix end-of-pattern case for space.
2380
d8f96db8
ST
23812004-12-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2382
6108209e
KS
2383 * macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
2384 * mac.c (cfstring_create_with_utf8_cstring): Add to prevent
d8f96db8 2385 crashes with invalid characters.
6108209e
KS
2386 * macmenu.c (add_menu_item): Use it.
2387 * image.c (image_load_quartz2d): Likewise.
2388 * macfns.c (x_set_name, x_set_title): Likewise.
2389 (Fx_file_dialog): Likewise. Use constant CFRefs instead of
2390 creating them each time for labels.
d8f96db8 2391
ab67e8b6
RS
23922004-12-02 Richard M. Stallman <rms@gnu.org>
2393
2394 * config.in (RE_TRANSLATE_P): If make_number is not a macro,
2395 don't use it here.
2396
2397 * eval.c (Fcalled_interactively_p): Don't check INTERACTIVE.
2398 (interactive_p): Skip Scalled_interactively_p frames
2399 like Sinteractive_p frames.
b8217ea6 2400 (unwind_to_catch): Clear handling_signal.
ab67e8b6
RS
2401
2402 * data.c (Fmake_variable_buffer_local): Doc fix.
2403 (Fmake_local_variable): Doc fix.
2404
2405 * insdel.c (insert_from_string_before_markers)
2406 (insert_from_string): Don't modify buffer on empty insertion.
2407
2408 * window.c (Fget_lru_window, Fget_largest_window): Doc fixes.
2409
f86bdc80
ST
24102004-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2411
2412 * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
2413 menu text as UTF8 fails.
2414
1cae6d39
KS
24152004-12-01 Kim F. Storm <storm@cua.dk>
2416
2417 * alloc.c: Add commentary for last change.
2418 (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
2419 sizeof(size_t) != 4.
2420 (overrun_check_malloc, overrun_check_realloc, overrun_check_free):
2421 Use them. Also clear header and trailer of freed memory.
2422 (GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
2423 (string_overrun_cookie): Rename from string_overrun_pattern.
2424 (GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
2425
77ea0764
AS
24262004-12-01 Andreas Schwab <schwab@suse.de>
2427
2428 * lisp.h: Declare string_to_multibyte.
2429
2d5cd4e6
KH
24302004-12-01 Kenichi Handa <handa@m17n.org>
2431
2432 * w32console.c (w32con_write_glyphs): Decide coding here.
2433 Adjusted for the change of encode_terminal_code.
2434
2435 * term.c (encode_terminal_code): Don't make it "static".
2436
25a0994a
KH
24372004-11-30 Kenichi Handa <handa@m17n.org>
2438
19b1f29a 2439 * term.c (encode_terminal_buf, encode_terminal_bufsize): New variables.
25a0994a 2440 (encode_terminal_code): Argument changed. Encode all
19b1f29a
SM
2441 characters at once, and return a pointer to the result of encoding.
2442 (write_glyphs): Decide coding here. Adjusted for the above change.
25a0994a
KH
2443 (insert_glyphs): Likewise.
2444 (term_init): Initialize encode_terminal_bufsize to 0.
2445
2446 * coding.c (Vcode_conversion_workbuf_name): New variable.
2447 (syms_of_coding): Initialize and staticpro it.
2448 (set_conversion_work_buffer): New function.
2449 (run_pre_post_conversion_on_str): Use it.
2450 (run_pre_write_conversin_on_c_str): New function.
2451
2452 * coding.h (run_pre_write_conversin_on_c_str): Extern it.
2453
fc7a70cc
ST
24542004-11-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2455
2456 * keyboard.c: Don't undef SIGIO
2457 * s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
2458 * Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
2459 (macfns.o): Don't depend on ccl.h.
2460 * macfns.c (mac_frame_parm_handlers): Set handlers for
2461 Qleft_fringe and Qright_fringe.
2462 * macterm.c (mac_fill_rectangle_to_pixmap)
2463 (mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
2464 (mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
2465 Put in #if 0.
2466 (mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
2467 (x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
2468 (XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
2469 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
2470 [!MAC_OS8]: Added ifdef'd out code for os8. Don't use
2471 XDrawImageString. Always draw background and foreground separately.
2472 (x_draw_image_foreground): Use clipping instead of computing the
2473 intersection rectangle.
2474 (x_draw_image_glyph_string): Don't draw an image with mask to a
2475 pixmap.
2476 (x_redisplay_interface): Set flush_display_optional member to 0.
2477 (XTread_socket): Correctly reset the TEConverter
2478 object.
2479
fc368889
KS
24802004-11-30 Kim F. Storm <storm@cua.dk>
2481
2482 * lisp.h: New defines to enable buffer overrun checking.
2483 (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
2484 (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
2485
2486 * alloc.c: Add more checks for buffer overruns.
2487 (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
2488 xmalloc_overrun_check_trailer, overrun_check_malloc)
2489 overrun_check_realloc, overrun_check_free): Add.
2490 (GC_STRING_EXTRA, string_overrun_pattern): Add.
2491 (check_sblock, allocate_string_data, compact_small_strings):
2492 Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
2493 (check_cons_list): Condition on GC_CHECK_CONS_LIST.
2494 (check_string_free_list): Add.
2495 (allocate_string, sweep_strings): Call check_string_free_list.
2496
2497 * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if
2498 XMALLOC_OVERRUN_CHECK to avoid crash during load.
2499
0af8cfe1
KS
25002004-11-29 Kim F. Storm <storm@cua.dk>
2501
2502 * fns.c (concat): Use SAFE_ALLOCA.
2503
77220eeb
SM
25042004-11-29 Stefan Monnier <monnier@iro.umontreal.ca>
2505
2506 * sysdep.c (emacs_write): Don't use QUIT.
2507
a778cf63
KH
25082004-11-29 Kenichi Handa <handa@m17n.org>
2509
2510 * buffer.c (init_buffer): Set current_buffer->directory to a
2511 multibyte string made by string_to_multibyte.
2512
77220eeb 2513 * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
a778cf63 2514
e3177e43
AS
25152004-11-27 Andreas Schwab <schwab@suse.de>
2516
2517 * alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined.
2518
2519 * s/gnu-linux.h: Enable no-op gcpros on ia64.
2520 (GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
2521
77220eeb
SM
2522 * filelock.c (lock_file_1): Call get_boot_time early.
2523 Increase buffer size.
e3177e43 2524
ca5e6fef
EZ
25252004-11-27 Eli Zaretskii <eliz@gnu.org>
2526
2527 * lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN
2528 is not defined.
2529
e2811828
KS
25302004-11-27 Kim F. Storm <storm@cua.dk>
2531
2532 * search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:'
2533 marker out of doc string.
2534
7a262394
SM
25352004-11-26 Stefan Monnier <monnier@iro.umontreal.ca>
2536
2537 * s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25,
2538 which was not mentioned in the log.
2539
f33cc5a9
KS
25402004-11-26 Kim F. Storm <storm@cua.dk>
2541
048bb03f
KS
2542 * fringe.c (update_window_fringes): Prefer truncation bitmaps over
2543 angle bitmaps at top/bottom line.
2544
f33cc5a9
KS
2545 * xdisp.c: Undo recent changes for restoring saved_face_id. Instead,
2546 set it when it->method is set to next_element_from_display_vector.
2547 (setup_for_ellipsis): Add LEN argument. Callers changed.
2548 Set it->saved_face_id.
2549 (get_next_display_element): Use loop instead of recursion.
2550 Set it->saved_face_id. Combine duplicate code for ctr chars.
2551 (next_element_from_display_vector): Do not set it->saved_face_id.
2552 (next_element_from_ellipsis): Use setup_for_ellipsis.
2553
670e8906
EZ
25542004-11-26 Eli Zaretskii <eliz@gnu.org>
2555
2556 * eval.c (Fdefvar): Declare pdl from last change as `volatile' to
2557 prevent compiler warnings.
2558
275464e7
SM
25592004-11-25 Stefan Monnier <monnier@iro.umontreal.ca>
2560
1bf0e604
SM
2561 * keyboard.c (command_loop_1): Print a message describing the key
2562 the user just pressed when this key has no binding.
2563
275464e7
SM
2564 * sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
2565 (emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
2566
2567 * lread.c (readchar): Check QUIT when `getc' is interrupted.
2568
261b01c6
RS
25692004-11-24 Richard M. Stallman <rms@gnu.org>
2570
2571 * coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
2572
2573 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
2574
a5bd504e
KS
25752004-11-24 Kim F. Storm <storm@cua.dk>
2576
2577 * xdisp.c (move_it_in_display_line_to, display_line):
2578 Restore saved_face_id also when truncate-lines or hscrolled.
2579
255e4140
JD
25802004-11-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2581
2582 * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
2583 x-use-old-gtk-file-dialog.
2584
2585 * xfns.c: Define x_use_old_gtk_file_dialog.
2586 (syms_of_xfns): Rename use-old-gtk-file-dialog to x-... Move it
2587 outside ifdef USE_GTK.
2588
cab27d04
SM
25892004-11-23 Stefan Monnier <monnier@iro.umontreal.ca>
2590
2591 * coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
2592 Don't use XFASTINT blindly.
2593
2594 * config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly.
2595
2596 * indent.c (skip_invisible): Avoid non-idempotent side-effects
2597 in macro arguments.
2598
2599 * keymap.c (Flookup_key): Check INTEGERP before XINT.
2600
2601 * lread.c (oblookup): Don't use XFASTINT blindly.
2602
2603 * window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int.
2604 (decode_next_window_args, window_loop): Don't use XFASTINT blindly.
2605
11e0be49
KS
26062004-11-23 Kim F. Storm <storm@cua.dk>
2607
4d721114
KS
2608 * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
2609 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
2610
11e0be49
KS
2611 * xfaces.c (lookup_named_face): Add signal_p arg. Return -1 if
2612 signal_p is zero and face name is unknown.
2613 (Fx_list_fonts): Don't signal error in lookup_named_face.
2614 (Fface_font): Signal error in lookup_named_face.
2615 (ascii_face_of_lisp_face): Likewise.
2616
2617 * dispextern.h (lookup_named_face): Fix prototype.
2618
2619 * xdisp.c (handle_single_display_prop): Don't signal error in
2620 lookup_named_face for unknown fringe face name.
2621 (highlight_trailing_whitespace): Don't signal error in
2622 lookup_named_face if trailing-whitespace face unknown.
2623 (calc_line_height_property): Don't signal error in
2624 lookup_named_face if specified face name is unknown.
2625
2626 * fringe.c (update_window_fringes): Show top row indicator if
2627 window has header-line. Don't show arrow at bob and eob
2628 if the boundary indicators are not used.
2629 (Fset_fringe_bitmap_face): Signal error in lookup_named_face.
2630
2631 * window.c (set_window_buffer): Clear display_error_modiff.
2632
0960a582
KS
26332004-11-22 Kim F. Storm <storm@cua.dk>
2634
2635 * fringe.c (update_window_fringes): Provide sensible fall-back
2636 value for non-nil indicate-buffer-boundaries setting.
2637
b0e9bb28
MR
26382004-11-22 Markus Rost <rost@ias.edu>
2639
2640 * minibuf.c (Fminibuffer_complete_and_exit): Fix previous change.
2641
d0bce91e
SM
26422004-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
2643
2644 * eval.c (Fdefvar): Warn when var is let-bound but globally void.
2645
e1814672
KS
26462004-11-21 Kim F. Storm <storm@cua.dk>
2647
b7fd3518
KS
2648 * xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA.
2649
2650 * xterm.c (x_clip_to_row): Add area arg. Callers changed.
2651 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
2652
2653 * w32term.c (w32_clip_to_row): Add area arg. Callers changed.
2654 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
2655
2656 * macterm.c (x_clip_to_row): Add area arg. Callers changed.
2657 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
2658
d0bce91e
SM
2659 * xdisp.c (move_it_in_display_line_to, display_line):
2660 Restore saved_face_id if overflow-newline-into-fringe is enabled and
2661 line is continued before or in middle of element from display vector.
f01d4d05 2662
f1a61389
KS
2663 * indent.c (Fvertical_motion): Fix last change. Use another
2664 method to detect if iterator moved too far ahead after reseat.
2665
e1814672
KS
2666 * xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro. Do not
2667 expand matrix width for overflow in zero-width area.
2668 (append_glyph, append_composite_glyph, produce_image_glyph)
2669 (append_stretch_glyph): Use it to avoid loop in redisplay.
2670 (note_mode_line_or_margin_highlight): Don't let help-echo from
2671 string override help-echo from image map.
2672
2dafe1c9
LT
26732004-11-20 Luc Teirlinck <teirllm@auburn.edu>
2674
d0bce91e 2675 * fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument.
2dafe1c9
LT
2676 * callint.c (Fcall_interactively): Ditto.
2677
fd6866c8 26782004-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
9961365e
RS
2679
2680 * minibuf.c (Fminibuffer_complete_and_exit):
2681 Fixup the case of the completed value, for case-indep completion.
2682
dedbac89
RS
26832004-11-20 Richard M. Stallman <rms@gnu.org>
2684
fd6866c8
RS
2685 * lisp.h (Fread_from_minibuffer): Add arg in decl.
2686
9d00469f 2687 * minibuf.c (read_minibuf): New arg KEEP_ALL. Callers changed.
ce8dd7ca 2688 (Fread_from_minibuffer): New arg KEEP_ALL. Callers changed.
9d00469f 2689
dedbac89 2690 * search.c (Vsearch_spaces_regexp):
d0bce91e 2691 Rename from Vsearch_whitespace_regexp. All uses changed.
dedbac89 2692
2f672bb5
TTN
26932004-11-20 Thien-Thi Nguyen <ttn@gnu.org>
2694
2695 * eval.c (init_eval_once): Increase `max_specpdl_size' to 650.
2696
f31a9a68
RS
26972004-11-19 Richard M. Stallman <rms@gnu.org>
2698
2699 * search.c (Vsearch_whitespace_regexp): New variable.
2700 (syms_of_search): Defvar it.
2701 (compile_pattern_1): Call re_set_whitespace_regexp with it.
2702 (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
2703 is non-nil.
6de891db
RS
2704 (struct regexp_cache): New element whitespace_regexp.
2705 (syms_of_search): Initialize whitespace_regexp elements.
2706 (compile_pattern): Compare whitespace_regexp elements.
2707 (compile_pattern_1): Set whitespace_regexp elements.
f31a9a68
RS
2708
2709 * regex.c (regex_compile): Substitute whitespace_regexp
2710 for spaces, if it is nonzero.
2711 (whitespace_regexp): New variable.
2712 (re_set_whitespace_regexp): New function.
2713
cbc34cb3
KS
27142004-11-19 Kim F. Storm <storm@cua.dk>
2715
2716 * indent.c (Fvertical_motion): Fix last change.
2717
b54a7539
KS
27182004-11-18 Kim F. Storm <storm@cua.dk>
2719
2720 * indent.c (Fvertical_motion): Undo 2004-11-16 change.
2721 Instead, move back again if reseating moves too far ahead.
2722
27232004-11-17 Luc Teirlinck <teirllm@auburn.edu>
802c6e56
LT
2724
2725 * xdisp.c (message3): Call clear_message.
2726
5ff504fe
KS
27272004-11-17 Kim F. Storm <storm@cua.dk>
2728
2729 * xdisp.c (erase_phys_cursor): Adjust cursor row visible height.
2730
5ae53dcf
JD
27312004-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2732
d0bce91e 2733 * gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW.
724cde0d 2734
6abf3a27 2735 * xmenu.c (x_menu_in_use): Remove.
5ae53dcf
JD
2736 (x_menu_set_in_use): Also set popup_activated_flag.
2737
5ff504fe 2738 * xfns.c (Fx_file_dialog): Call popup_activated instead of
5ae53dcf
JD
2739 x_menu_in_use. Call x_menu_set_in_use in Motif version also.
2740
6abf3a27 2741 * xterm.h: (x_menu_in_use): Remove.
5ae53dcf 2742
ee31cd78
RS
27432004-11-16 Richard M. Stallman <rms@gnu.org>
2744
6abf3a27
SM
2745 * keymap.c (Fmap_keymap): New arg SORT-FIRST.
2746 Use map-keymap-internal to implement that.
ee31cd78
RS
2747
2748 * indent.c (Fvertical_motion): In batch mode, use vmotion directly.
2749
6abf3a27
SM
27502004-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
2751
2752 * xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's
2753 a window before using XWINDOW.
2754
2755 * window.c (make_window, Fselect_window, make_dummy_parent)
2756 (save_window_save):
2757 * frame.c (make_frame):
2758 * fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments.
2759
2760 * lisp.h (NILP): Use EQ rather than XFASTINT.
2761
b4d61105
KS
27622004-11-16 Kim F. Storm <storm@cua.dk>
2763
6abf3a27 2764 * fringe.c (Fdefine_fringe_bitmap): Always set 'h'. Simplify.
dda01a4c 2765
b4d61105
KS
2766 * indent.c (Fvertical_motion): Fix last change. Only reseat when
2767 moving backwards.
2768
27692004-11-16 Luc Teirlinck <teirllm@auburn.edu>
ce2bbf6a
LT
2770
2771 * dispextern.h: Extern reseat_at_previous_visible_line_start.
2772
ab5b02b0
KH
27732004-11-16 Kenichi Handa <handa@m17n.org>
2774
2775 * xdisp.c (display_mode_element): Fix previous change (calculate
2776 end position of substring to display correctly).
2777
c482cf97
KS
27782004-11-16 Kim F. Storm <storm@cua.dk>
2779
2780 * keyboard.c (Fposn_at_point): Remove extra */ after doc string.
2781 Reported by Andrew M. Scott.
2782
9f89426b
KS
27832004-11-15 Kim F. Storm <storm@cua.dk>
2784
2785 * fns.c (Fsafe_plist_get): New defun.
2786 (syms_of_fns): Defsubr it.
2787
2788 * lisp.h (Fsafe_plist_get): Add EXFUN.
2789
2790 * xdisp.c (store_mode_line_string, produce_stretch_glyph):
2791 Use Fsafe_plist_get.
2792 (note_mode_line_or_margin_highlight, note_mouse_highlight):
2793 Fix image map element parsing. Use Fsafe_plist_get.
2794
27418463
RS
27952004-11-15 Richard M. Stallman <rms@gnu.org>
2796
2797 * xdisp.c (get_next_display_element): Fix previous change.
2798
a130b901
JD
27992004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2800
ef614e04
JD
2801 * window.c (shrink_windows): Handle special case of one window left
2802 when trying to shrink the final reminder. Grow windows if
2803 total_removed is less than total_shrink.
2804
a130b901
JD
2805 * xmenu.c (pop_down_menu): Remove global variable current_menu,
2806 extract pointer from arg with XSAVE_VALUE.
46303896
KS
2807 (create_and_show_popup_menu, create_and_show_dialog, xmenu_show):
2808 Construct arg to record_unwind_protect with make_save_value.
a130b901 2809
d9a03ad2
RS
28102004-11-13 Richard M. Stallman <rms@gnu.org>
2811
2812 * xdisp.c (reseat_at_previous_visible_line_start): No longer static.
2813 (get_next_display_element): Fix previous change to apply only to \n.
2814
2815 * indent.c (Fvertical_motion): Scan to PT from start of line to
2816 make iterator consistent.
2817
2818 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
2819
b3935289
JD
28202004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2821
2822 * gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT.
2823
2824 * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
2825 Record unwind with clean_up_file_dialog.
2826
78819ebb
KS
2827 * xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event):
2828 Declare.
b3935289
JD
2829
2830 * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
2831
af89e871
JD
28322004-11-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2833
457a8155 2834 * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
6abf3a27 2835 (xg_file_sel_destroy): Remove.
46303896
KS
2836 (xg_file_response_cb, pop_down_file_dialog)
2837 (xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
457a8155 2838 New functions.
6abf3a27
SM
2839 (xg_get_file_with_chooser, xg_get_file_with_selection):
2840 Take new arg func, set it to xg_get_file_name_from_chooser/selector.
457a8155
JD
2841 Move common code to xg_get_file_name. Return widget created.
2842 (xg_get_file_name): Set name, transient for, modal and destroy
2843 with parent here. Connect response signal to xg_file_response_cb,
2844 connect delete-event to gtk_true. Record pop_down_file_dialog
2845 for unwind. Do event loop and call x_menu_wait_for_event in loop.
2846 (xg_create_widget): Make dialogs modal.
2847
af89e871
JD
2848 * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
2849 Lisp_Object.
2850 (popup_get_selection): Move unwind protect ...
2851 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
2852 Move destroy of widget to pop_down_menu.
2853 (popup_widget_loop): Move unwind protect ...
2854 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
2855 Move destroy of widget to pop_down_menu.
2856 (pop_down_menu): BLOCK_INPUT and destroy widget/window.
6abf3a27 2857 (xmenu_show): Record unwind pop_down_menu. Move XMenuDestroy,
af89e871
JD
2858 x_mouse_leave and grabbed = 0 to pop_down_menu.
2859
5596fbf1
KS
28602004-11-13 Kim F. Storm <storm@cua.dk>
2861
2862 * xdisp.c (make_cursor_line_fully_visible_p): New variable.
2863 (syms_of_xdisp): DEFVAR_BOOL it.
2864 (make_cursor_line_fully_visible, try_cursor_movement)
2865 (try_window_id): Use it.
2866
b9de078a
KS
28672004-11-12 Kim F. Storm <storm@cua.dk>
2868
381f7091
KS
2869 * dispextern.h (struct glyph_row): New member extra_line_spacing.
2870 (struct it): New member max_extra_line_spacing.
2871 (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
2872 (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
2873 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
2874 part of last line is only extra line spacing (so the text on the
2875 line is fully visible). Use helper macros.
2876 Add W arg (to use them). All callers changed.
2877 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
2878 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
2879
6abf3a27
SM
2880 * window.c (window_scroll_pixel_based, Frecenter):
2881 Use move_it_vertically_backward directly.
381f7091
KS
2882 (Frecenter): Fix calculation of new start pos for negative arg.
2883 Before, the new start pos was sometimes chosen too far back, so
2884 the last line became only partially visible, and thus would be
2885 either only semi-visible or automatically scrolled to the middle
2886 of the window by redisplay.
2887
2888 * xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
2889 (move_it_vertically_backward): Don't recure to move further back.
2890 (move_it_vertically): Remove superfluous condition.
2891 (move_it_by_lines): Clear last_height when moved 0 lines.
6abf3a27 2892 (resize_mini_window): Use it.max_extra_line_spacing.
381f7091
KS
2893 (display_tool_bar_line): Clear row->extra_line_spacing.
2894 (try_scrolling): Use move_it_vertically_backward directly.
2895 (redisplay_window): Likewise.
2896 (compute_line_metrics): Set row->extra_line_spacing.
2897 (display_line, display_string): Likewise.
2898 (x_produce_glyphs): Update it->max_extra_line_spacing.
2899
b9de078a
KS
2900 * xmenu.c (pop_down_menu): Return nil.
2901
c3438661
JD
29022004-11-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2903
2904 * xmenu.c (x_menu_wait_for_event): New function.
2905 (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
2906 to handle timers.
df00f436
JD
2907 (popup_widget_loop): Add argument do_timers.
2908 (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
2909 do_timers to popup_widget_loop.
c3438661
JD
2910 (xmenu_show): Call XMenuActivateSetWaitFunction so that
2911 x_menu_wait_for_event is called by XMenuActivate.
b9de078a 2912 (create_and_show_popup_menu): Pass 1 for do_timers to
df00f436 2913 popup_get_selection.
f1d1cd24
JD
2914 (pop_down_menu): New function.
2915 (popup_get_selection, popup_widget_loop): Unwind protect to
2916 pop_down_menu.
2917 (popup_widget_loop): Add argument widget.
2918 (create_and_show_popup_menu, create_and_show_dialog): Pass new
2919 argument widget to popup_widget_loop.
c3438661 2920
32e2fb04
SM
29212004-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
2922
2923 * keymap.c (Fkeymap_prompt): Accept symbol keymaps.
2924
0faf6806
KS
29252004-11-09 Kim F. Storm <storm@cua.dk>
2926
2927 * xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
2928 Fix various comments referring to XEvents instead of input events.
2929 (x_queue_event): Fix format strings.
2930 (x_stop_queuing_selection_requests): Likewise.
2931
2932 * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
2933 (pint2hrstr): Add extra braces to silence compiler.
2934
2935 * print.c (print_object): Fix format string.
2936
2937 * lread.c (read1): Fix next_char matching.
2938
2939 * lisp.h (Fdelete): Add EXFUN.
2940 (replace_range_2): Add prototype.
2941
2942 * keyboard.c (read_avail_input): Remove unused variable 'discard'.
2943
2944 * intervals.h (NULL_INTERVAL_P): Add separate version when
2945 ENABLE_CHECKING is not defined to silence compiler.
2946 (compare_string_intervals): Add prototype.
2947
2948 * fringe.c (destroy_fringe_bitmap): Fix return type.
2949 (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
2950
2951 * emacs.c (Fdump_emacs): Fix format string.
2952
2953 * doc.c: Include <ctype.h>.
2954 (Fsubstitute_command_keys): Remove unused variable 'firstkey'.
2955
2956 * data.c (store_symval_forwarding): Remove unused variables.
2957
2958 * callint.c (Fcall_interactively): Remove unused variable 'funcar'.
2959
16bf4e32
JD
29602004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2961
2962 * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
2963 to ${OLDXMENU}.
2964
cdb805a9
KS
29652004-11-09 Kim F. Storm <storm@cua.dk>
2966
2967 * process.c (Fmake_network_process): Remove kludge for interrupted
2968 connects on BSD. If connect is interrupted, just close socket and
2969 start over rather than sleeping and retry with same socket.
2970
d87a9ab8 29712004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
0faf6806 2972
a8b16c80
JD
2973 * .cvsignore: Add buildobj.lst.
2974
d87a9ab8
JD
2975 * doc.c: New variable Vbuild_files.
2976 (Fsnarf_documentation): If Vbuild_files is nil, populate it with
e7427ac1 2977 file names from buildobj.lst. Only attach docstrings from files
d87a9ab8
JD
2978 that are in Vbuild_files.
2979 (syms_of_doc): Defvar Vbuild_files.
2980
2981 * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
2982 and w32*.o.
2983 (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
6abf3a27 2984 (mostlyclean): Rm buildobj.lst
d87a9ab8
JD
2985
2986 * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
2987 is linked.
2988
b6709e77
KS
29892004-11-09 Kim F. Storm <storm@cua.dk>
2990
2991 * fringe.c (update_window_fringes): Update fringe bitmaps if
2992 cur and row ends_at_zv_p differs. If bitmaps of a row is updated,
2993 also update previous row to get rid of misc. artifacts.
2994
bae9677d
KS
29952004-11-08 Kim F. Storm <storm@cua.dk>
2996
2997 * xdisp.c (fast_find_position): Fix start pos if header line present.
b7127aa8 2998 (note_mouse_highlight): Clear mouse face if we move out of text area.
bae9677d 2999
3f8ea68c
EZ
30002004-11-08 Eli Zaretskii <eliz@gnu.org>
3001
3002 * editfns.c: Move #include "systime.h" before <sys/resource.h>.
3003 Don't include <sys/time.h> explicitly.
3004 Include <stdio.h> unconditionally, not just on MacOS.
3005
a653f812
KH
30062004-11-08 Kenichi Handa <handa@m17n.org>
3007
3008 * fontset.c (fontset_pattern_regexp): Cancel my previous change;
3009 don't pay attention to '\' before '*'.
3010 (fontset_pattern_regexp): Change the meaning of the second arg.
3011 (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
3012 (check_fontset_name): Try NAME as literal at first, and if it
3013 failes, try NAME as pattern.
3014
c37caf9d
JD
30152004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3016
3017 * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
3018
b72915a7
AS
30192004-11-07 Andreas Schwab <schwab@suse.de>
3020
78819ebb
KS
3021 * lisp.h (Fmsdos_downcase_filename): Declare.
3022 * dired.c (Fmsdos_downcase_filename): Don't declare here.
b72915a7
AS
3023 * fileio.c: Likewise.
3024
238a44a8
JD
30252004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3026
3027 * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
3028 comparisons with integers instead of Lisp_Object address.
3029 (Fmsdos_set_keyboard): Declare argument allkeys.
3030
3031 * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
3032
78819ebb 3033 * dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid
238a44a8
JD
3034 int/Lisp_Object mixup.
3035
3036 * fileio.c: Ditto.
3037
31141c13
ST
30382004-11-06 Steven Tamm <steventamm@mac.com>
3039
3040 * editfns.c: Need to include sys/time.h before resource.h on darwin.
3041
f28c1bd9
RS
30422004-11-06 Richard M. Stallman <rms@gnu.org>
3043
3044 * callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
3045
3046 * xfaces.c (merge_named_face): GCPRO the face_name in the
3047 named_merge_point struct that we make.
3048 (merge_face_heights): Eliminate GCPRO arg. All callers changed.
3049
3050 * keyboard.c (command_loop_1): Change Vtransient_mark_mode
3051 before deciding whether to inactivate mark.
3052
59dede22
EZ
30532004-11-06 Lars Brinkhoff <lars@nocrew.org>
3054
3055 * config.in: Regenerate (add HAVE_GETRUSAGE).
6159c232
EZ
3056 * editfns.c (Fget_internal_run_time): New function.
3057 (syms_of_data): Defsubr it.
3058 * fns.c (sxhash): As far as possible, merge calculation of
3059 hash code for symbols and strings.
59dede22 3060
27540e81
EZ
30612004-11-06 Eli Zaretskii <eliz@gnu.org>
3062
3063 * frame.c (syms_of_frame): Fix the example in the doc string.
3064
df470e3b
JD
30652004-11-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3066
3067 * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
3068
3069 * xmenu.c (popup_get_selection, create_and_show_popup_menu)
3070 (create_and_show_dialog): Revert change from 2004-10-31.
bae9677d 3071
4cc8522c
LT
30722004-11-05 Luc Teirlinck <teirllm@auburn.edu>
3073
3074 * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
3075
d4a42098
KS
30762004-11-05 Kim F. Storm <storm@cua.dk>
3077
a8490886
KS
3078 * print.c (print_object): Print Lisp_Misc_Save_Value objects.
3079
d4a42098
KS
3080 * fileio.c (Ffile_modes): Doc fix.
3081 (auto_save_1): Check for Ffile_modes nil value.
3082
36a2b04c
KS
30832004-11-05 Kim F. Storm <storm@cua.dk>
3084
3085 * xselect.c (struct selection_event_queue, selection_queue)
3086 (x_queue_selection_requests, x_queue_event)
3087 (x_start_queuing_selection_requests)
3088 (x_stop_queuing_selection_requests): Add new queue for selection
3089 input events to replace previous XEvent queue in xterm.c.
3090 (queue_selection_requests_unwind): Adapt to new queue.
32e2fb04
SM
3091 (x_reply_selection_request): Adapt to new queue.
3092 Unexpect wait_object in case of x errors (memory leak).
36a2b04c
KS
3093 (x_handle_selection_request, x_handle_selection_clear): Make static.
3094 (x_handle_selection_event): New function. May queue selection events.
3095 (wait_for_property_change_unwind): Use save_value instead of cons.
3096 Clear property_change_reply_object.
3097 (wait_for_property_change): Abort if already waiting.
3098 Use save_value instead of cons for unwind data.
3099 (x_handle_property_notify): Skip events already arrived, but don't
3100 free them, as "arrived" field is checked by wait_for_property_change,
3101 and it will be freed by unwind or explicit unexpect_property_change.
3102 (x_get_foreign_selection): Add to new queue.
3103 (receive_incremental_selection): Don't unexpect wait_object when done
3104 as it has already been freed by previous wait_for_property_change.
3105
3106 * xterm.h (x_start_queuing_selection_requests)
3107 (x_stop_queuing_selection_requests, x_handle_selection_request)
3108 (x_handle_selection_clear): Remove prototypes.
3109 (x_handle_selection_event): Add prototype.
3110
3111 * xterm.c (handle_one_xevent): Don't queue X selection events
3112 here, it may be too late if we start queuing after we have already
3113 stored some selection events into the kbd buffer.
3114 (struct selection_event_queue, queue, x_queue_selection_requests)
3115 (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
3116 (x_stop_queuing_selection_requests): Remove/move to xselect.c.
3117 (x_catch_errors_unwind): Block input around final XSync.
3118
3119 * keyboard.h (kbd_buffer_unget_event): Add prototype.
3120
3121 * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
3122 (kbd_buffer_unget_event): New function.
3123 (kbd_buffer_get_event, swallow_events): Combine SELECTION events
3124 and use x_handle_selection_event.
3125 (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
3126
9c3ad9e1
JD
31272004-11-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3128
3129 * xselect.c (TRACE3): New debug macro.
3130 (x_reply_selection_request): Use it.
3131 (receive_incremental_selection): In call to TRACE0, the name of
3132 a symbol is in xname.
3133
a33b89de
KS
31342004-11-05 Kim F. Storm <storm@cua.dk>
3135
3136 * fontset.c (fontset_pattern_regexp): Use unsigned char.
3137
a872928c
JD
31382004-11-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3139
88208bb8
JD
3140 * fileio.c (Fnext_read_file_uses_dialog_p): New function.
3141
78819ebb 3142 * gtkutil.h (use_old_gtk_file_dialog): Declare.
0a4f23f3
JD
3143
3144 * gtkutil.c: Make use_old_gtk_file_dialog non-static.
32e2fb04 3145 (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
0a4f23f3
JD
3146 * xfns.c (syms_of_xfns): ... to here.
3147
a872928c
JD
3148 * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
3149 it doesn't start with /.
3150
b912921c
KH
31512004-11-04 Kenichi Handa <handa@m17n.org>
3152
3153 * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
3154 treat it as a literal character.
3155
c524d9a6
KS
31562004-11-03 Kim F. Storm <storm@cua.dk>
3157
3158 * .gdbinit (ppt): New function.
3159
8cfd0f36
JD
31602004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3161
a11e1dce
JD
3162 * xterm.c (x_window_to_scroll_bar): Only call
3163 xg_get_scroll_id_for_window if toolkit scroll bars are used.
3164
8cfd0f36
JD
3165 * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
3166 of save.
3167
a93563fd
AS
31682004-11-02 Andreas Schwab <schwab@suse.de>
3169
3170 * window.c (Fscroll_right): Fix last change.
3171
2b2d59d8
KS
31722004-11-02 Kim F. Storm <storm@cua.dk>
3173
3174 * Makefile.in (callproc.o): Depend on blockinput.h atimer.h systime.h.
3175
31762004-11-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3177
3178 * callproc.c (Fcall_process): Block input around vfork.
3179
ca28104d
KS
31802004-11-02 Kim F. Storm <storm@cua.dk>
3181
3182 * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
3183 (syms_of_eval): Defsubr it.
3184
29bb7127
RS
31852004-11-02 Richard M. Stallman <rms@gnu.org>
3186
3187 * insdel.c (replace_range_2): New function.
3188
3189 * casefiddle.c (casify_region): Handle changes in byte-length
3190 using replace_range_2.
3191
3192 * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
3193
b6189c3b 3194 * xdisp.c (back_to_previous_visible_line_start):
29bb7127
RS
3195 Subtract 1 from pos when checking previous newline for invisibility.
3196
3197 * window.c (window_scroll_pixel_based): Update preserve_y
3198 for header line if any.
3199 (Fscroll_left, Fscroll_right): Don't call interactive_p;
3200 use a new second argument instead.
3201
3202 * eval.c (Fcall_interactive_p): New function.
3203 (interactive_p): Don't test INTERACTIVE here.
3204 (Finteractive_p): Doc fix.
3205
3206 * eval.c (Feval): Abort if INPUT_BLOCKED_P.
3207
b6189c3b 32082004-11-02 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
a3fe4aaf
JR
3209
3210 * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
b6189c3b 3211 comparing font names.
a3fe4aaf 3212
2a00cdb4
JD
32132004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3214
f9d64bb3
JD
3215 * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
3216 Fx_file_dialog if only directories should be read.
3217
3218 * lisp.h: Fx_file_dialog takes 5 parameters.
3219
32e2fb04
SM
3220 * xfns.c (Fx_file_dialog): Both Motif and GTK version:
3221 Add parameter only_dir_p.
f9d64bb3
JD
3222 In Motif version, don't put DEFAULT_FILENAME in filter part of the
3223 dialog, just text field part. Do not add DEFAULT_FILENAME
3224 to list of files if it isn't there.
3225 In GTK version, pass only_dir_p parameter to xg_get_file_name.
3226
32e2fb04
SM
3227 * macfns.c (Fx_file_dialog): Add parameter only_dir_p.
3228 Check only_dir_p instead of comparing prompt to "Dired". When using
f9d64bb3
JD
3229 a save dialog, add option kNavDontConfirmReplacement, change title
3230 to "Enter name", change text for save button to "Ok".
3231
32e2fb04
SM
3232 * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
3233 Check only_dir_p instead of comparing prompt to "Dired".
f9d64bb3
JD
3234
3235 * gtkutil.c (xg_get_file_with_chooser)
3236 (xg_get_file_with_selection): New functions, only defined ifdef
3237 HAVE_GTK_FILE_CHOOSER_DIALOG_NEW and HAVE_GTK_FILE_SELECTION_NEW
3238 respectively.
3239 (xg_get_file_name): Add parameter only_dir_p.
3240 Call xg_get_file_with_chooser or xg_get_file_with_selection
3241 depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
3242 (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
3243
3244 * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
3245
2a00cdb4
JD
3246 * config.in: Rebuild (added HAVE_GTK_FILE_*).
3247
f6749d5d
KS
32482004-11-01 Kim F. Storm <storm@cua.dk>
3249
32e2fb04
SM
3250 * process.c (connect_wait_mask, num_pending_connects):
3251 Only declare and use them if NON_BLOCKING_CONNECT is defined.
bad49fc7 3252 (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
f6749d5d
KS
3253 (IF_NON_BLOCKING_CONNECT): New helper macro.
3254 (wait_reading_process_output): Only declare and use local vars
3255 Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
f6749d5d 3256
1a99fe1a
JR
32572004-11-01 Andy Petrusenco <Igrek@star-sw.com> (tiny change)
3258
3259 * w32term.c (x_scroll_run): Delete region objects after use.
3260
fcdb28b4
JD
32612004-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3262
495ef86b
JD
3263 * xmenu.c: Add prototypes for forward function declarations.
3264 (popup_get_selection): Remove parameter do_timers, remove call to
3265 timer_check.
32e2fb04
SM
3266 (create_and_show_popup_menu, create_and_show_dialog):
3267 Remove parameter do_timers from call to popup_get_selection.
495ef86b 3268
12e6566a
JD
3269 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
3270 tool_bar_items and assign the result to f->tool_bar_items if
3271 not equal. Move BLOCK/UNBLOCK_INPUT from around call to
3272 tool_bar_items to assignment of result.
3273
fcdb28b4
JD
3274 * atimer.c (alarm_signal_handler): Do not call set_alarm if
3275 pending_atmers is non-zero.
3276
1a1a0c4c
KS
32772004-10-31 Kim F. Storm <storm@cua.dk>
3278
3279 * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
3280
a36f1680
JW
32812004-10-28 Will <will@glozer.net>
3282
3283 * macterm.c: allow user to assign key modifiers to the Mac Option
3284 key via a 'mac-option-modifier' variable.
3285
32e2fb04 32862004-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
2d586478
SM
3287
3288 * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
3289 Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
3290 (x_handle_selection_request, x_handle_selection_clear)
3291 (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
3292
4f71c13f
RS
32932004-10-28 Richard M. Stallman <rms@gnu.org>
3294
3295 * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
3296
3297 * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
3298
068f3848
SM
32992004-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
3300
3301 * syntax.c (scan_sexps_forward): Give precedence to a 2-char
3302 comment-starter over a 1-char one.
3303
4660a9e3
RS
33042004-10-27 Richard M. Stallman <rms@gnu.org>
3305
3306 * xdisp.c (get_next_display_element): In mode lines,
3307 treat newline and tab like other control characters.
3308
3309 * editfns.c (Fmessage): Doc fix.
3310
3311 * indent.c (vmotion): When moving up, check the newline before.
3312 Make prevline an int, not a Lisp_Object.
3313
233f3db6
KS
33142004-10-27 Kim F. Storm <storm@cua.dk>
3315
3316 * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
3317 Only allocate info and discarded tables once.
3318
3319 * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
3320 (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
3321 (SAFE_FREE): Test it to determine if we need to unwind to free.
3322 Remove size arg. All users changed.
3323 (SAFE_FREE_LISP) Remove. All users changed to use SAFE_FREE.
3324
1442465d
JD
33252004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3326
3327 * gtkutil.c: Put empty line between comment and function body.
068f3848
SM
3328 (xg_destroy_widgets): Rename from remove_from_container.
3329 Just destroy all widgets in list. Argument wcont removed.
1442465d
JD
3330 (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
3331 instead of remove_from_container.
3332 (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
3333 (free_frame_tool_bar): Add comment.
3334
3335 * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
3336 is not NULL before strcmp.
3337
c8636435
KS
33382004-10-26 Kim F. Storm <storm@cua.dk>
3339
3340 * callint.c (Fcall_interactively): Add 'U' code to get the
3341 up-event discarded by a previous 'k' or 'K' argument.
3342
5629f29b
DK
33432004-10-26 David Kastrup <dak@gnu.org>
3344
3345 * buffer.c (syms_of_buffer): Fix a few typos.
3346
4f2f546e
JD
33472004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3348
3349 * xsmfns.c: Put empty line between comment and function body.
3350 Use two spaces before comment end.
3351
fc1062f5
KH
33522004-10-25 Kenichi Handa <handa@m17n.org>
3353
3354 * fontset.c (fontset_pattern_regexp): Optimize for the case that
3355 PATTERN is full XLFD.
3356
be13f5e5
KH
33572004-10-24 Kenichi Handa <handa@m17n.org>
3358
3359 * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
3360
3361 * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
3362 (regex_compile): Return REG_ERANGEX if appropriate.
3363
d0ee2ed3
KH
33642004-10-22 Kenichi Handa <handa@m17n.org>
3365
3366 * editfns.c (Ftranslate_region_internal): New function.
3367 (syms_of_editfns): Defsubr it.
3368
63ea8ea5
JD
33692004-10-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3370
3371 * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
3372
9ba27690 33732004-10-21 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
c27ed90a 3374
068f3848
SM
3375 * xterm.h (x_output): New member `xic_base_fontname'.
3376 (FRAME_XIC_BASE_FONTNAME): New macro.
3377 (xic_free_xfontset): Declare.
c27ed90a 3378
068f3848
SM
3379 * xfns.c (xic_create_xfontset): Share fontsets between frames
3380 based on base_fontname.
3381 (xic_free_xfontset): New function.
3382 (free_frame_xic): Use it.
3383 (xic_set_xfontset): Ditto.
c27ed90a 3384
068f3848 3385 * xterm.c (xim_destroy_callback): Ditto.
c27ed90a
JD
3386
3387
59508699
JR
33882004-10-20 B. Anyos <banyos@freemail.hu> (tiny change)
3389
3390 * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
3391
dede2792
JD
33922004-10-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3393
3aca2078
JD
3394 * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
3395 XSync.
3396
dede2792
JD
3397 * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
3398 New variables and constant.
3399 (main): Calculate heap_bss_diff. If we are dumping and the
3400 heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
3401 and exec ourself again.
3402 (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
3403 print a warning.
3404
3405 * lastfile.c: Make my_endbss and my_endbss_static available on all
3406 platforms.
3407
3408 * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
3409 * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
3410
1dc5ba01
LT
34112004-10-19 Luc Teirlinck <teirllm@auburn.edu>
3412
3413 * data.c (Flocal_variable_if_set_p): Doc fix.
3414
950090be
JR
34152004-10-19 Jason Rumney <jasonr@gnu.org>
3416
3417 * w32.c (init_environment): Set emacs_dir correctly when running
3418 emacs from the build directory.
3419
8550b998
RS
34202004-10-19 Richard M. Stallman <rms@gnu.org>
3421
3422 * editfns.c (Fdelete_and_extract_region):
3423 If region is empty, return null string.
3424
08dedea6
JD
34252004-10-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3426
1dc5ba01 3427 * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
08dedea6 3428 and canon_width.
068f3848 3429 (xg_frame_cleared): Remove.
08dedea6 3430
068f3848
SM
3431 * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
3432 (xg_find_top_left_in_fixed): Remove.
08dedea6
JD
3433 (xg_create_scroll_bar): Put an event box widget between
3434 the scroll bar widget and the edit widget.
3435 (xg_show_scroll_bar): Show the parent widget (the event box).
3436 (xg_remove_scroll_bar): Destroy parent (the event box) also.
3437 (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
3438 Move the parent (the event box) widget inside the fixed widget.
3439 Move window clear to xterm.c.
3440
068f3848 3441 * gtkutil.h (xg_frame_cleared): Remove.
1dc5ba01 3442
08dedea6 3443 * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
068f3848
SM
3444 (x_scroll_bar_create, XTset_vertical_scroll_bar):
3445 Remove arguments left and width to xg_update_scrollbar_pos.
08dedea6
JD
3446 (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
3447
8550b998 34482004-10-19 Kenichi Handa <handa@m17n.org>
e3e55463
KS
3449
3450 * xdisp.c (display_mode_element): Fix display of wide chars.
e3e55463 3451
84338890
JD
34522004-10-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3453
3454 * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
3455 gdk_window_clear and move gdk_window_process_all_updates after
3456 clear so events are sent to the X server in correct order.
3457
6e1b0d8c
KH
34582004-10-18 Kenichi Handa <handa@m17n.org>
3459
3460 * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
3461 comparing font names.
8550b998 3462 (fs_query_fontset): Use fast_string_match for comparing fontset names.
6e1b0d8c
KH
3463 (list_fontsets): Likewise.
3464
3465 * search.c (fast_string_match_ignore_case): New function.
3466
3467 * lisp.h (fast_string_match_ignore_case): Extern it.
3468
345e75a8
KS
34692004-10-17 Kim F. Storm <storm@cua.dk>
3470
3471 * xdisp.c (overlay_arrow_at_row): Return overlay string rather
3472 than bitmap if there is not left fringe.
3473 (get_overlay_arrow_glyph_row): Also used on windows system.
3474 (display_line): Display overlay string if no left fringe.
3475
be13cbb7
JR
34762004-10-16 Jason Rumney <jasonr@gnu.org>
3477
3478 * w32fns.c (w32_font_match): Encode font name being matched.
3479
c2e2ede7
RS
34802004-10-16 Richard M. Stallman <rms@gnu.org>
3481
3482 * window.c (Fspecial_display_p): Doc fix.
3483
043f7f73 34842004-10-15 Stefan Monnier <monnier@iro.umontreal.ca>
3584d95d
SM
3485
3486 * doc.c (Fsubstitute_command_keys): Fix remap-handling.
3487 Don't ignore menus, because where-is-internal already does it for us.
3488
699a0392
KS
34892004-10-15 Kim F. Storm <storm@cua.dk>
3490
b3c7a89b
KS
3491 * xdisp.c (redisplay_window): Only update fringes and vertical
3492 border on window frames.
699a0392 3493
4e382b0f
AS
34942004-10-14 Andreas Schwab <schwab@suse.de>
3495
3496 * m/ia64.h (DATA_SEG_BITS): Don't define.
3497
329a7be2
KS
34982004-10-14 Kim F. Storm <storm@cua.dk>
3499
3500 * xterm.h: Include Xutil.h after keysym.h to work around bug
dbb37962 3501 in some X versions.
329a7be2 3502
982241b1
SM
35032004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
3504
3505 * fns.c (map_char_table): Add missing gcpros.
3506
9238467d
SM
35072004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
3508
3509 * keymap.c (get_keymap): An autoload form is not a keymap.
3510
3511 * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
3512
4440e3ca
KS
35132004-10-13 Kim F. Storm <storm@cua.dk>
3514
7cfdabde
KS
3515 * callproc.c (Fcall_process): Simplify handling of display arg.
3516 Resume `display_on_the_fly' once a coding system is determined.
3517
4440e3ca
KS
3518 * xdisp.c (redisplay_preserve_echo_area): Fix last change.
3519
1c8dec6a
KS
35202004-10-12 Kim F. Storm <storm@cua.dk>
3521
3522 * xdisp.c (redisplay_preserve_echo_area): Flush display in case
3523 caller, such as call-process, is not going to poll for input.
3524 (calc_line_height_property): Handle case where it->object is nil.
3525
3526 * xterm.c (x_redisplay_interface): Fix flush_display_optional.
3527
170b174c
KH
35282004-10-12 Kenichi Handa <handa@m17n.org>
3529
9238467d
SM
3530 * xdisp.c (get_next_display_element):
3531 If unibyte_display_via_language_environment is zero, display 8-bit
170b174c
KH
3532 chars in octal in unibyte buffer.
3533
b583964c
KS
35342004-10-12 Kim F. Storm <storm@cua.dk>
3535
3536 * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
3537 are no ordinary bindings.
3538
29fabd8c
JD
35392004-10-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3540
9238467d 3541 * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
29fabd8c 3542
c3f4c690
ST
35432004-10-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3544
9238467d
SM
3545 * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
3546 (x_lower_frame): Add BLOCK_INPUT around SendBehind.
c3f4c690 3547 (make_mac_frame): Add BLOCK_INPUT around the making of a
9238467d
SM
3548 terminal frame.
3549 (mac_initialize): Add BLOCK_INPUT around carbon initialization.
3550 * macgui.h (mktime): Use emacs_mktime.
c3f4c690
ST
3551 * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
3552 Make a cancel file-open dialog be like C-g.
9238467d
SM
3553 * mac.c (mktime): Use emacs_mktime.
3554 (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
3555 (Fmac_paste_function): Add better error handling for carbon cut/paste.
c3f4c690 3556
9688f9eb
KS
35572004-10-10 Kim F. Storm <storm@cua.dk>
3558
3559 * keyboard.c (timer_resume_idle): New function to resume idle
3560 timer without resetting timers on the idle list.
3561 (read_char): Use timer_resume_idle. Remove local var last_idle_start.
3562 (timer_start_idle, timer_stop_idle): Declare static.
3563 (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
3564
3565 * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
3566
f7f3a65f
ST
35672004-10-08 Steven Tamm <steventamm@mac.com>
3568
9238467d 3569 * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
f7f3a65f 3570 * macterm.c (mac_check_for_quit_char): Remove warning for using
9238467d 3571 NULL where 0 should be used.
f7f3a65f
ST
3572 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
3573 objc/malloc.h
9238467d 3574 * mac.c: Include time.h for Tiger compatibility.
f7f3a65f 3575
3c7d999a
KS
35762004-10-07 Kim F. Storm <storm@cua.dk>
3577
3578 * xdisp.c (redisplay_window): Fix flicker on vertical line between
3579 windows. Update vertical line after drawing window fringes, but
3580 only if actually drawing any bitmaps--or there is no fringe.
3581
3582 * xterm.c (x_update_window_end): Likewise.
3583 * macterm.c (x_update_window_end): Likewise.
3584 * w32term.c (x_update_window_end): Likewise.
3585
3586 * fringe.c (draw_window_fringes): Return value now indicates if
3587 any fringe bitmaps were redrawn (or there are no fringes).
3588
3589 * dispextern.h (draw_window_fringes): Update prototype.
3590
bf06c82f
ST
35912004-10-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3592
3593 * macfns.c (mac_get_window_bounds): Add extern.
3594 (x_real_positions): Use mac_get_window_bounds.
3595
3596 * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
3597 xmenu.c (YAILOM).
3c7d999a 3598
bf06c82f
ST
3599 * macterm.c [!MAC_OSX]: Include Windows.h.
3600 (front_emacs_window): Rename from mac_front_window. All uses
3601 changed. Return the frontmost non-tooltip emacs window.
3602 (mac_get_window_bounds): New function.
3603 (x_calc_absolute_position): Use the difference of width and height
3604 between the inner and outer window.
3605 (x_set_offset): Specify window position by the coordinae of the
3606 outer window. Adjust the position if the title bar is completely
3607 outside the screen.
3608 (app_is_suspended, app_sleep_time): Remove unused variables.
3609 (do_app_resume, do_app_suspend): Remove their contents because
3610 window-activate/deactivate events will do the job.
3611 (do_zoom_window): Remove unused variables. Make compliant to the
3612 standard way of zooming. Set f->left_pos and f->top_pos.
3613 (XTread_socket): Don't use argument `expected'. Don't use
3614 FrontWindow to determine the clicked window. Exclude unprocessed
3615 mouseUp cases in the early stage. Add parentheses to fix operator
3616 precedence.
3617 (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
3618
4cbbf6b7 36192004-10-05 Jan Dj\e,Ad\e(Brv. <jan.h.d@swipnet.se>
d8b43276
JD
3620
3621 * config.in: Regenerate.
3622
3623 * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
3624 HAVE_EXECSHIELD.
3625
b90ee8b5
JD
36262004-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3627
3628 * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
3629 a row if Alt or Meta has been found for that row. Also stop scanning
3630 for Keysyms for that row.
3631
904db1a2
KS
36322004-10-04 Kim F. Storm <storm@cua.dk>
3633
0207b8ad
KS
3634 * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
3635 to list. Include overlay arrow bitmap in return value.
3636
25f7220c
KS
3637 * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
3638 bars with fractional column width. If scroll bar separates two
3639 windows, move it towards the window it belongs to. Only update
3640 the padding area below the scroll bar widget when necessary,
3641 i.e. when scroll bar widget is created, moved, or resized.
3642
562020fe
KS
3643 * xdisp.c (define_frame_cursor1): Do not change frame cursor
3644 while tracking/dragging mouse.
3645 (x_draw_vertical_border): Do not draw line if frame has scroll bars.
3646
37e34af7
KS
3647 * window.c (coordinates_in_window): Relax check for cursor
3648 on vertial border between mode lines.
3649 (Fset_window_fringes): Do not allow negative widths.
3650 (Fset_window_scroll_bars): Likewise.
3651
904db1a2
KS
3652 * .gdbinit (pp): Shorthand for p ARG + pr.
3653 (ff): New command: flush frame updates (X only).
3654
38fe4f64
MA
36552004-10-03 Michael Albinus <michael.albinus@gmx.de>
3656
3657 * fileio.c (auto_save_1) Call Ffile_modes for remote files.
3658
9de36315
KH
36592004-09-30 Kenichi Handa <handa@m17n.org>
3660
07c381ad 3661 * process.c (send_process): Free composition data.
9de36315 3662
07c381ad 3663 * fileio.c (Finsert_file_contents): Free composition data.
9de36315
KH
3664
3665 * coding.c (code_convert_region): Don't skip ASCIIs if there are
07c381ad
KH
3666 compositions to encode.
3667 (encode_coding_string): Likewise. Free composition data.
3668
b6189c3b 36692004-09-30 Florian Weimer <fw@deneb.enyo.de>
07c381ad
KH
3670
3671 * coding.c (code_convert_region): Free composition data.
9de36315 3672
f2a54fbc
KS
36732004-09-29 Kim F. Storm <storm@cua.dk>
3674
dc5d6435
KS
3675 * fringe.c: Remove limit on number of bitmaps.
3676 (fringe_bitmaps, fringe_faces): Change to pointers.
3677 (max_fringe_bitmaps): New var.
3678 (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
3679 (init_fringe): Allocate fringe_bitmaps and fringe_faces.
3680
3681 * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
3682 (struct glyph_row): Reorder fringe_bitmap related fields.
3683 (struct it): Likewise.
3684
3685 * w32term.c (fringe_bmp): Change to pointer.
3686 (max_fringe_bmp): New var.
3687 (w32_define_fringe_bitmap): Expand fringe_bmp.
3688 (w32_draw_fringe_bitmap): Check max_fringe_bmp.
3689 (w32_destroy_fringe_bitmap): Likewise.
3690
36912004-09-29 Kim F. Storm <storm@cua.dk>
3692
3693 * fringe.c: Simplify last change.
f2a54fbc
KS
3694 (lookup_fringe_bitmap): New function.
3695 (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
3696 (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
3697 Keep standard bitmaps in Vfringe_bitmaps.
3698 (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
3699 (Fset_fringe_bitmap_face): Likewise.
3700
3701 * dispextern.h (lookup_fringe_bitmap): Add prototype.
3702 (valid_fringe_bitmap_p): Remove prototype.
3703
3704 * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
3705
841a8bca
KS
37062004-09-29 Kim F. Storm <storm@cua.dk>
3707
1f2da365
KS
3708 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
3709 (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
3710
841a8bca
KS
3711 * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
3712
3713 * fringe.c (Vfringe_bitmaps): New variable.
3714 (syms_of_fringe): DEFVAR_LISP it.
3715 (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
3716 Change arg to Lisp_Object and fail if not an integer.
3717 (get_fringe_bitmap_name, resolve_fringe_bitmap)
3718 (destroy_fringe_bitmap): New functions.
9238467d
SM
3719 (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
3720 Use destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and
841a8bca
KS
3721 clear its fringe property.
3722 (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
3723 Fdestroy_fringe_bitmap.
3724 (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
3725 bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps
3726 and set fringe property. Signal error if no free slots.
3727 (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
3728 (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
3729
3730 * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
3731 symbols with a fringe property.
3732
4d965590
KS
37332004-09-27 Kim F. Storm <storm@cua.dk>
3734
3735 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
3736 Doc fix. Format may now be a symbol or alist, not a cons.
3737
3738 * fringe.c (update_window_fringes): Handle new formats of
3739 indicate-buffer-boundaries (symbol or alist). No longer
3740 allow a simple cons.
3741 (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
3742
e888c2b3
JD
37432004-09-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3744
9238467d 3745 * config.in: Rebuild.
e888c2b3 3746
83f1cb94
JD
37472004-09-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3748
3749 * config.in: Rebuild.
3750
dd3b1d60 3751 * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
83f1cb94 3752
2c51754c
SM
37532004-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
3754
3755 * xterm.c (x_term_init): Work around a bug in some X servers.
3756
3df5f8aa
RS
37572004-09-18 Richard M. Stallman <rms@gnu.org>
3758
557ca2c1
RS
3759 * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
3760
3df5f8aa
RS
3761 * xdisp.c (try_window_reusing_current_matrix):
3762 Handle the case where we reach the old displayed text,
3763 out of sync with the old line boundary.
3764
9238467d 37652004-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
4b70e2c9
SM
3766
3767 * fileio.c (Finsert_file_contents): Fix case of replacement in a
3768 narrowed buffer.
3769
bfa02563
KS
37702004-09-14 Kim F. Storm <storm@cua.dk>
3771
a25fe164
KS
3772 * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
3773
bfa02563
KS
3774 * xfaces.c (Qface_no_inherit): New var.
3775 (syms_of_xfaces): Intern and staticpro it.
3776 (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
3777 (Finternal_copy_lisp_face, update_face_from_frame_parameter):
3778 Don't increment face_change_count when face has non-nil
3779 face-no-inherit property.
3780
126f9c02
SM
37812004-09-13 Stefan Monnier <monnier@iro.umontreal.ca>
3782
892a8eb5
SM
3783 * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
3784 (Fbyte_code): Remove dead code after `wrong_type_argument'.
3785
126f9c02 3786 * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
9238467d 3787 before doing the mark_stack_check_gcpros since they're not on the stack.
126f9c02 3788
c0ad3b38
KS
37892004-09-12 Kim F. Storm <storm@cua.dk>
3790
3791 * editfns.c (Fformat): Handle format strings with multiple text
3792 properties. Reverse text property list from the format string,
3793 so the positions are in increasing order.
3794
844fc085
JD
37952004-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3796
3797 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
3798 x_uncatch_errors so that possible protocol errors are delivered.
3799
b106731c
EZ
38002004-09-10 Eli Zaretskii <eliz@gnu.org>
3801
21065c92
EZ
3802 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
3803 blockinput.h.
3804 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
3805 charset.h, and coding.h
9238467d 3806 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
21065c92
EZ
3807 (term.o): Depend on window.h and keymap.h.
3808 (abbrev.o): Depend on syntax.h.
3809 (callint.o): Depend on keymap.h.
3810 (casefiddle.o): Depend on charset.h and keymap.h.
3811 (category.o): Depend on keymap.h.
3812 (coding.o): Depend on dispextern.h.
3813 (cmds.o): Depend on keyboard.h and keymap.h.
3814 (dispnew.o): Depend on indent.h and intervals.h.
3815 (doc.o): Depend on keymap.h.
3816 (editfns.o): Depend on frame.h.
3817 (emacs.o): Depend on dispextern.h.
3818 (fileio.o): Don't depend on ccl.h.
3819 (filelock.o): Depend on charset.h and coding.h.
3820 (frame.o): Depend on w32term.h and macterm.h.
3821 (insdel.o): Depend on region-cache.h.
3822 (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
3823 (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
3824 (search.o): Depend on $(INTERVALS_SRC).
3825 (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
3826 (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
3827 xterm.h, w32term.h, and macterm.h.
3828 (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
3829 w32term.h, and macterm.h.
3830 (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
3831 region-cache.h, xterm.h, w32term.h, and macterm.h.
3832 (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
3833 (data.o): Depend on frame.h.
3834 (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
3835 (print.o): Depend on termchar.h and $(INTERVALS_SRC).
3836 (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
3837 (intervals.o): Depend on keymap.h.
3838
9238467d
SM
3839 * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
3840 Add debugging print-out to termscript.
b106731c 3841
64b7122d
RS
38422004-09-09 Richard M. Stallman <rms@gnu.org>
3843
3844 * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
3845
5670531e
RS
38462004-09-08 Richard M. Stallman <rms@gnu.org>
3847
6cb4a892
RS
3848 * window.c (Fset_window_buffer): Doc fix.
3849
5670531e
RS
3850 * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
3851
7e388eb7
JL
38522004-09-08 Dan Nicolaescu <dann@ics.uci.edu>
3853
3854 * minibuf.c (history_delete_duplicates): New variable.
3855 (read_minibuf): Use it.
3856 (syms_of_minibuf): Create the corresponding lisp variable.
3857
370e3587
KS
38582004-09-08 Kim F. Storm <storm@cua.dk>
3859
3860 * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
3861 overlay just before point.
3862
f844ba4e
LT
38632004-09-07 Luc Teirlinck <teirllm@auburn.edu>
3864
3865 * buffer.h (struct buffer): Add auto_save_file_format field.
9238467d
SM
3866 * buffer.c (reset_buffer, init_buffer_once):
3867 Handle auto_save_file_format field.
f844ba4e
LT
3868 (syms_of_buffer): Add DEFVAR_PER_BUFFER for
3869 `buffer-auto-save-file-format'.
f844ba4e
LT
3870 * fileio.c: Delete declaration for removed Vauto_save_file_format.
3871 (build_annotations): Adapt to replacement of
3872 `auto-save-file-format' with the new buffer-local variable
3873 `buffer-auto-save-file-format'.
3874 (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
3875
f0f90717
JR
38762004-09-07 Jason Rumney <jasonr@gnu.org>
3877
3878 * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
3879
9238467d
SM
3880 * w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]:
3881 Handle Unicode menu titles.
f0f90717 3882
4e14f66c
KS
38832004-09-07 Kim F. Storm <storm@cua.dk>
3884
3885 * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor'
3886 property from text property or overlay strings at point.
3887
9238467d 38882004-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
1806714a
SM
3889
3890 * xmenu.c (update_submenu_strings): YAILOM.
3891 (set_frame_menubar): Make sure last_i is initialized.
3892
1f06d367
JR
38932004-09-03 Jason Rumney <jasonr@gnu.org>
3894
1806714a 3895 * w32menu.c (_widget_value): Add lname and lkey.
1f06d367
JR
3896 (digest_single_submenu): Set lname and lkey in widget_value
3897 instead of name and key.
3898 (update_submenu_strings): New function.
3899 (set_frame_menubar): Remove call to inhibit_garbage_collection,
3900 call update_submenu_strings.
3901
3902 * w32menu.c (globals_of_w32menu): Check for Unicode API.
3903 (digest_single_submenu, w32_menu_show): Encode menu strings as
3904 UTF-8 if Unicode API is available.
3905 (utf8to16): New function.
3906 (add_menu_item): Use it when calling Unicode API.
1806714a 3907
46540080
KS
39082004-09-03 Kim F. Storm <storm@cua.dk>
3909
3910 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
3911 in overlay or text-property strings; set cursor on corresponding
3912 glyph rather than at end of the string.
3913
9277ba61 39142004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
46540080 3915
9277ba61 3916 * macfns.c (x_real_positions): Save the current window port and
1806714a
SM
3917 set a new one before obtaining the global coordinate.
3918 Use FRAME_MAC_WINDOW.
3919 (x_set_name, x_set_title): Encode title to UTF8.
3920 Use SetWindowTitleWithCFString.
9277ba61
ST
3921 (Fx_server_version): Get correct OS version.
3922
1806714a
SM
3923 * macmenu.c (add_menu_item): Remove unused variable `i'.
3924 Don't let separator items destroy refence constants of other menu items.
9277ba61
ST
3925
3926 * macterm.c (x_update_end): Move SetPortWindowPort to inside
3927 BLOCK_INPUT.
3928 (x_set_offset): Use FRAME_MAC_WINDOW.
3929
3930 * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
3931 nontext_cursor if it is on a scroll bar.
3932
3933 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
3934 Carbon support.
1806714a
SM
3935 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
3936 Use LIBS_CARBON.
9277ba61 3937
b10daec7
JD
39382004-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3939
3940 * xfns.c (x_set_name_internal): New function. Check if we shall call
3941 xfree before ENCODE_UTF_8.
3942 (x_set_name, x_set_title): Call x_set_name_internal.
3943
f7e22385
JR
39442004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
3945
3946 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
3947 reload it.
3948
2bf436c3
JD
39492004-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3950
1806714a 3951 * macmenu.c (_widget_value): Add lname and lkey.
16ceacc2
JD
3952 (single_submenu): Set lname and lkey in widget_value
3953 instead of name and key.
3954 (update_submenu_strings): New function.
3955 (set_frame_menubar): Remove call to inhibit_garbage_collection,
3956 call update_submenu_strings.
3957
2bf436c3
JD
3958 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
3959 instead of name and key.
3960 (update_submenu_strings): New function.
3961 (set_frame_menubar): Remove call to inhibit_garbage_collection,
ec867797 3962 call update_submenu_strings.
2bf436c3
JD
3963
3964 * gtkutil.h (_widget_value): Added lname and lkey.
3965
11715f92
ST
39662004-08-30 Steven Tamm <steventamm@mac.com>
3967
3968 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
3969 by using different names for inner loop variables.
3970
5500be54
JD
39712004-08-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3972
059cd329
JD
3973 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
3974 from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
3975
5500be54
JD
3976 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
3977 tool bar items is 0.
3978
383418e5
ST
39792004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3980
3981 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
3982 strings in menu items.
3983 (single_submenu): Use ENCODE_MENU_STRING
3984 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
3985 button release isn't passed to event loop
3986 (add_menu_item): Use SetMenuItemWithCFString
3987
6eb3ee72
ST
39882004-08-26 Steven Tamm <steventamm@mac.com>
3989
3990 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
7e26f91b
KS
3991 tool-bar/menu click.
3992 * macfns.c (Fx_file_dialog): Implement using NavServices.
6eb3ee72 3993
10b43ac3
JD
39942004-08-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3995
2728b5d0
JD
3996 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
3997
10b43ac3
JD
3998 * xfns.c (x_window_to_frame, x_any_window_to_frame)
3999 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
4000 (x_top_window_to_frame): Return 0 if wdesc is None.
4001
2ee3b79e
RS
40022004-08-22 Richard M. Stallman <rms@gnu.org>
4003
4004 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
4005 HAVE_TERMIOS]: If there's no char for this signal, drop through
4006 and use system calls.
4007
4008 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
4009
9a1ba2ea
KS
40102004-08-20 Kim F. Storm <storm@cua.dk>
4011
4012 * process.c (wait_reading_process_output): Rename from
4013 wait_reading_process_input. All uses changed.
4014 (wait_reading_process_output_1): Rename from
4015 wait_reading_process_input_1. All uses changed.
4016
4017 * dispnew.c (Fsleep_for): Remove obsolete code.
4018
295f3b30
KH
40192004-08-20 Kenichi Handa <handa@m17n.org>
4020
4021 * syntax.c (skip_chars): Fix for unibyte case.
4022
27615979
SM
40232004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
4024
4025 * syntax.c (char_quoted): Mixup byte/char pos.
4026 (back_comment): Fixup globals in all cases.
4027
00267f94
JD
40282004-08-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4029
4030 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
4031 passing it to gtk_window_set_title.
4032
2439909e
KS
40332004-08-19 Kim F. Storm <storm@cua.dk>
4034
6ba0f14c
KS
4035 * process.c (wait_reading_process_input): Clean up.
4036 Add wait_for_cell, wait_proc, and just_wait_proc args
4037 to avoid overloading `read_kbd' and `do_display' args.
4038 Change read_kbd arg to int. All callers changed.
4039
2439909e
KS
4040 * process.c (process_send_signal): Use CDISABLE.
4041
4042 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
4043
101c421e
KS
40442004-08-18 Kim F. Storm <storm@cua.dk>
4045
4046 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
4047 forward to wait_reading_process_input via DO_DISPLAY arg.
4048 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
4049 object, only process output from that process; also inhibit
4050 running timers if DO_DISPLAY==-2.
4051
c438dc33
KS
40522004-08-17 Kim F. Storm <storm@cua.dk>
4053
4054 * process.c (process_send_signal): Fix last change--use
4055 _POSIX_VDISABLE instead of CVDISABLE when available.
4056
8afc13c6
RS
40572004-08-16 Richard M. Stallman <rms@gnu.org>
4058
4059 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
4060 Set VQUIT and VINTR chars to the standard ones if they are unset.
4061 [AIX]: Don't do that here. And don't force VINTR to standard
4062 when SIGNALS_VIA_CHARACTERS.
4063
c438dc33 4064 * process.c (process_send_signal)
8afc13c6
RS
4065 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
4066 Do nothing if the character is CVDISABLE.
4067
4068 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
4069
c438dc33 4070 * intervals.c (move_if_not_intangible):
8afc13c6
RS
4071 Force POSITION to be between BEGV and ZV.
4072
6dad1714
JPW
40732004-08-14 John Paul Wallington <jpw@gnu.org>
4074
4075 * buffer.c (Frestore_buffer_modified_p): Doc fix.
4076
4077 * fileio.c (Fread_file_name): Doc fix.
4078
4079 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
4080
2bd77330
LT
40812004-08-09 Luc Teirlinck <teirllm@auburn.edu>
4082
4083 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
4084
c90e7e43
LT
40852004-08-08 Luc Teirlinck <teirllm@auburn.edu>
4086
4087 * keyboard.c: Declare Qdisabled_command_function instead of
8392e138 4088 Qdisabled_command_hook.
c90e7e43 4089 (Fcommand_execute): Use Qdisabled_command_function instead of
8392e138 4090 Qdisabled_command_hook.
c90e7e43
LT
4091 (syms_of_keyboard): Ditto.
4092
81909a1a
LT
40932004-08-07 Luc Teirlinck <teirllm@auburn.edu>
4094
4095 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
4096 (syms_of_keymap) <key-translation-map>: Doc fixes.
4097
0cedd530
SM
40982004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
4099
1725a7c9
SM
4100 * window.c (window_list_1): YAILOM.
4101
0cedd530
SM
4102 * fileio.c (make_temp_name): Handle multibyte prefixes.
4103
2515a131
LT
41042004-08-06 Luc Teirlinck <teirllm@auburn.edu>
4105
4106 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
4107 Doc fix.
4108
c8b20fb7
KH
41092004-08-03 Kenichi Handa <handa@m17n.org>
4110
4111 * coding.c (decode_coding_string): Adjust coding->consumed, and
4112 etc. with shrinked_bytes.
4113
fb8b092b
KS
41142004-08-03 Kim F. Storm <storm@cua.dk>
4115
4116 * indent.c (compute_motion): Fix check for full width window
4117 in non-window case. Do not count left truncation glyph on
4118 window systems.
4119
df133612
LT
41202004-08-02 Luc Teirlinck <teirllm@auburn.edu>
4121
4122 * data.c (Finteractive_form): Doc fix.
4123
0f7a93c1
KS
41242004-08-02 Kim F. Storm <storm@cua.dk>
4125
4126 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
4127 properly accounting for continuation glyph on non-window systems.
4128 (Fcompute_motion): Use actual window width if WIDTH is nil, and
4129 actual window width/height if TOPOS is nil, properly accounting for
4130 continuation glyphs on non-window systems, and optional header lines.
4131 (vmotion): Let compute_motion calculate actual window width.
4132
4133 * window.c (window_scroll_line_based): Let compute_motion
4134 calculate actual window width.
4135
f491e1ed
KS
41362004-08-02 Kim F. Storm <storm@cua.dk>
4137
4138 * process.c (read_process_output): Use whole read buffer.
4139 Don't trigger adaptive read buffering on errors.
4140
83f64226
LT
41412004-07-31 Luc Teirlinck <teirllm@auburn.edu>
4142
4143 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
4144
4145 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
4146
4147 * callint.c (Fcall_interactively): Doc fix.
4148
8afc13c6
RS
41492004-07-30 Richard M. Stallman <rms@gnu.org>
4150
4151 * abbrev.c (Fexpand_abbrev): Undo previous change.
4152
7c111482
KS
41532004-07-30 Kim F. Storm <storm@cua.dk>
4154
4155 * editfns.c (Fformat): Allocate extra (dummy) element in info.
4156
ee945d08
LT
41572004-07-28 Luc Teirlinck <teirllm@auburn.edu>
4158
4159 * eval.c (Fdefvar, Fdefconst): Doc fixes.
4160
3f911c94
KS
41612004-07-27 Kim F. Storm <storm@cua.dk>
4162
4163 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
4164 we have ensured that the glyph fits on the current line (or returned
4165 MOVE_LINE_CONTINUED otherwise).
4166
f29ff8c7
KS
41672004-07-26 Kim F. Storm <storm@cua.dk>
4168
4169 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
4170 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
4171 if target position is at end of display line but char is not a newline.
4172
81159bb9
RS
41732004-07-25 Richard M. Stallman <rms@gnu.org>
4174
ab431b61
RS
4175 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
4176 instead of ON_VERTICAL_BORDER, when on scroll bar.
4177 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
4178
4179 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
4180
f29ff8c7 4181 * window.c (Fcoordinates_in_window_p):
81159bb9
RS
4182 Take account of FRAME_INTERNAL_BORDER_WIDTH.
4183
4184 * alloc.c (check_cons_list): New function (contents commented out).
4185
fc820cc5
LT
41862004-07-24 Luc Teirlinck <teirllm@auburn.edu>
4187
4188 * xfaces.c (Fcolor_supported_p): Doc fix.
4189
4190 * frame.c (Fselect_frame, Fset_frame_selected_window)
4191 (Fframe_visible_p, Fraise_frame): Doc fixes.
4192
289978b5
LT
41932004-07-24 Richard M. Stallman <rms@gnu.org>
4194
78819ebb 4195 * keyboard.h (not_single_kboard_state): Declare.
7630911d
RS
4196
4197 * fileio.c (Fwrite_region): Doc fix.
4198
4199 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
4200
4201 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
4202 only when a real abbrev is present.
4203
289978b5
LT
4204 * xfns.c (x_icon_verify): New function.
4205 (Fx_create_frame): Use it.
4206
63cc10ae
KS
42072004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
4208
4209 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
4210
36f826d4
KS
42112004-07-21 Kim F. Storm <storm@cua.dk>
4212
4213 * window.h (struct glyph_matrix): New members nrows_scale_factor
4214 and ncols_scale_factor.
4215
4216 * window.c (make_window): Initialize nrows_scale_factor and
4217 ncols_scale_factor members.
4218
4219 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
4220 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
4221 (required_matrix_height): Apply nrows_scale_factor.
4222 (required_matrix_width): Apply ncols_scale_factor.
4223
4224 * xdisp.c (display_line): Increment nrows_scale_factor and set
4225 fonts_changed_p if past last allocated row.
4226 (append_glyph, append_composite_glyph, produce_image_glyph)
4227 (append_stretch_glyph): Increment ncols_scale_factor and set
4228 fonts_changed_p if current area is full.
4229
5fc1c546
JD
42302004-07-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4231
4232 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
4233
cb7516e5
LT
42342004-07-19 Luc Teirlinck <teirllm@auburn.edu>
4235
4236 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
4237 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
4238 (Fset_window_start, Fscroll_up, Fscroll_down)
4239 (Fother_window_for_scrolling, Fscroll_other_window)
4240 (Fsave_window_excursion, Fset_window_vscroll)
4241 (syms_of_window) <window-size-fixed>: Doc fixes.
4242
b6189c3b 42432004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
dda741ec
JR
4244
4245 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
4246 ENCODE_SYSTEM for filenames.
4247
bfcf6608
ST
42482004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4249
4250 * mac.c (sys_select): Block input around call to
4251 ReceiveNextEvent to prevent breakage. Correctly handle
4252 blocking on event queue only by calling ReceiveNextEvent
4253 instead of select (since GUI events aren't on an fd).
4254 (sys_read): Remove function
4255 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
4256
e082ac9d
ST
42572004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4258
4259 * mac.c (sys_select): Redo sys_select to use alarm-based
cb7516e5 4260 polling instead of 1 sec timeouts (like solaris).
e082ac9d 4261
cb7516e5 4262 * macterm.c (x_make_frame_visible): Comment in polling on
e082ac9d
ST
4263 frame creation.
4264
4265 * keyboard.c: Undef SIGIO on Carbon
4266
4267 * atimer.c (alarm_signal_handler): Call alarm handlers after
4268 scheduling.
4269
4270 * eval.c (Feval): Remove quit_char test
4271
4272 * process.c (wait_reading_process_input): Remove clearing
4273 stdin for select call on process input.
4274
4b9da0fb
LT
42752004-07-18 Luc Teirlinck <teirllm@auburn.edu>
4276
1204e81c
LT
4277 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
4278 capitalization error in docstring.
4b9da0fb 4279
26503ad2
JB
42802004-07-17 Juanma Barranquero <lektu@terra.es>
4281
4282 * keyboard.c (not_single_kboard_state): Do nothing unless
4283 MULTI_KBOARD is defined.
4284
3751eb00
RS
42852004-07-17 Richard M. Stallman <rms@gnu.org>
4286
4287 * window.c (coordinates_in_window): Inside the window but outside
4288 its box to the L or R, return ON_VERTICAL_BORDER.
4289 (window_list_1): Rotate the list to start with WINDOW.
4290
4291 * print.c (print_preprocess): Test for print_depth at limit
4292 before entering in being_printed.
4293
4294 * keyboard.c (not_single_kboard_state): New function.
4295 (stuff_buffered_input): Now no-op only if no SIGTSTP.
4296
4297 * frame.c (Fdelete_frame): If we're in single_bboard_state on
4298 this kboard, and we delete its last frame, go to any_kboard_state.
4299
4300 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
4301
b6189c3b 43022004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
62eb6ca9
JR
4303
4304 * w32fns.c (Fx_file_dialog): Encode strings in system coding
4305 system before passing them to OS functions for display.
4306
0f6af254
DK
43072004-07-15 David Kastrup <dak@gnu.org>
4308
f9253326
KS
4309 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
4310 Apparently fixes an abort condition.
0f6af254 4311
386c8f42
LT
43122004-07-14 Luc Teirlinck <teirllm@auburn.edu>
4313
4314 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
4315 instead of a cons.
4316
366511da
MB
43172004-07-14 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
4318
4319 * keyboard.c (echo_dash): Do nothing if there already is a dash
4320 at the end of the echo string.
4321
f85409d3
KS
43222004-07-12 Kim F. Storm <storm@cua.dk>
4323
4324 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
4325 if GC_MARK_STACK.
4326
0ba2e87b
LT
43272004-07-10 Luc Teirlinck <teirllm@auburn.edu>
4328
da38045d
LT
4329 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
4330
0ba2e87b
LT
4331 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
4332 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
4333 (Freplace_buffer_in_windows, Fset_window_buffer)
4334 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
4335 (syms_of_window): Expand docstring of `display-buffer-function'.
4336
5668fbb8
LT
43372004-07-09 Luc Teirlinck <teirllm@auburn.edu>
4338
4339 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
4340 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
4341 that time values of the type (HIGH . LOW) are considered obsolete.
4342
a085bf9d
LT
43432004-07-06 Luc Teirlinck <teirllm@auburn.edu>
4344
669de2fb
LT
4345 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
4346 docstring.
4347
bac66325 4348 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
a085bf9d 4349
8e975df9
JPW
43502004-07-06 John Paul Wallington <jpw@gnu.org>
4351
4352 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
4353
fa164e6a
JPW
4354 * fns.c (Fclear_string): Signal an error if STRING is not a string.
4355
2bac9bb1
JD
43562004-07-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4357
4358 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
4359 instead of CGMainDisplayID (only in OSX 10.2 and later).
4360
316ef0dc
JPW
43612004-07-04 John Paul Wallington <jpw@gnu.org>
4362
4363 * fileio.c (read_file_name_completion_ignore_case): New variable.
4364 (syms_of_fileio): Declare and initialise it.
4365 (Fread_file_name): Bind `completion-ignore-case' to respect it.
4366
2a1a35c6
EZ
43672004-07-03 Eli Zaretskii <eliz@gnu.org>
4368
4369 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
4370 for event.x and event.y.
4371
33a72331
KH
43722004-07-01 Kenichi Handa <handa@m17n.org>
4373
4374 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
4375 after getting a new string by pre-write-conversion.
4376
9238467d 43772004-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
07a6ab76
SM
4378
4379 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
4380 (x_calc_absolute_position): Remove unused var `child'.
4381
4382 * xfaces.c (x_supports_face_attributes_p)
4383 (Fdisplay_supports_face_attributes_p): YAILOM.
4384 (tty_supports_face_attributes_p): Remove unused var `i'.
4385
4386 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
4387 back_unibyte_ok.
4388
4389 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
4390
4391 * fontset.c (Fset_fontset_font): Remove unused vars `family' and `registry'.
4392
4393 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
4394
f96ec754
AS
43952004-06-30 Andreas Schwab <schwab@suse.de>
4396
4397 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
4398 (Finit_image_library): Pass LIBRARIES through to
4399 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
4400 (lookup_image_type): Pass Qnil as second argument to
4401 Finit_image_library.
4402
78819ebb 4403 * lisp.h (Finit_image_library): Declare.
f96ec754 4404
59feca74 44052004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
c8d09ad8 4406
31983645
AS
4407 * macterm.c (do_window_activate, do_window_deactivate): Remove.
4408 (XTread_socket): Send mouse button events to the toolbox
4409 dispatcher even when the mouse is grabbed. Don't process window
4410 activate events for non-Emacs windows. Replace function calls to
4411 do_window_activate and do_window_deactivate with their contents.
4412 Reset mouse grabbing status when a window is deactivated.
59feca74 4413
c61278bb
ST
44142004-06-29 Steven Tamm <steventamm@mac.com>
4415
4416 * macterm.c (mac_get_emulated_btn)
4417 (mac_event_to_emacs_modifiers): Fix emulated mouse button
4418 support to correctly mask out modifiers.
4419
c3762cbd
DK
44202004-06-29 David Kastrup <dak@gnu.org>
4421
4422 * search.c (Fset_match_data): Allow buffer before end of list
4423 which can happen if set-match-data is using a pre-consed list.
4424
c61278bb 44252004-06-28 Steven Tamm <steventamm@mac.com>
e439b925
ST
4426
4427 * macterm.c (XTread_socket): Correctly set the frame position
4428 after the window is moved.
4429
74cdfe05
JD
44302004-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4431
4432 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
4433 gpix and gmask just before return to avoid memory leak.
03ecb80f
JD
4434 (xg_get_image_for_pixmap): Add workaround for monochrome displays
4435 so insensitive and activated icons look ok.
74cdfe05 4436
ef544dc8
JR
44372004-06-27 Jason Rumney <jasonr@gnu.org>
4438
4439 * w32fns.c (file_dialog_callback): Disable edit control if set
4440 to directories only on CDN_INITDONE message.
4441 (Fx_file_dialog): Default to directories only when prompt starts
4442 with "Dired".
4443
7b7990cc
KS
44442004-06-25 Kim F. Storm <storm@cua.dk>
4445
4446 * alloc.c (allocate_misc): Update total_free_markers.
4447 (free_misc): New function.
4448 (safe_alloca_unwind, free_marker): Use it.
4449
4450 * lisp.h (free_misc): Add prototype.
4451
4452 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
4453
d8c379f8
RS
44542004-06-24 Richard M. Stallman <rms@gnu.org>
4455
4456 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
4457 (syms_of_emacs): Lisp variables deleted.
4458
559cdd07
DK
44592004-06-23 David Kastrup <dak@gnu.org>
4460
94939b84
DK
4461 * search.c (Freplace_match): Adjust the match-data more thoroughly
4462 when replacing strings in the buffer.
4463 (Fmatch_data): When INTEGERS is non-nil and the last match was in
4464 a buffer, add the buffer as last element to the match data.
4465 (Fset_match_data): If an additional element of the match-data is a
4466 buffer, restore it to last_thing_searched.
c8d09ad8 4467 (save_search_regs): Save last_thing_searched as part of the match data.
559cdd07
DK
4468 (restore_match_data): Restore it again.
4469
dce417e7
LT
44702004-06-23 Luc Teirlinck <teirllm@auburn.edu>
4471
4472 * keymap.c (Ftext_char_description): Doc fix.
4473 * doc.c (Fsnarf_documentation): Doc fix.
4474
ef54b2d0
KS
44752004-06-22 Kim F. Storm <storm@cua.dk>
4476
b5bc4d05
KS
4477 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
4478
ef54b2d0
KS
4479 * lisp.h (struct Lisp_Save_Value): New member dogc.
4480 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
4481 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
4482 (SAFE_FREE_LISP): New macro.
4483
4484 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
4485 (make_save_value): Init new dogc member.
4486 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
4487
4488 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
4489 SAFE_FREE_LISP macros.
4490
3d33d993
KS
44912004-06-22 Kim F. Storm <storm@cua.dk>
4492
4493 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
4494 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
4495 in that memory area are unknown to GC. Add comments.
4496
4497 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
4498
5c917f98
KS
44992004-06-21 Kim F. Storm <storm@cua.dk>
4500
4501 * lisp.h (MAX_ALLOCA): Define here.
4502 (safe_alloca_unwind): Add prototype.
4503 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
4504
4505 * alloc.c (safe_alloca_unwind): New function.
4506
4507 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
4508
4509 * charset.c (Fstring): Use SAFE_ALLOCA.
4510
4511 * coding.c (MAX_ALLOCA): Remove define.
4512
4513 * data.c (MAX_ALLOCA): Remove define.
4514 (Faset): Use SAFE_ALLOCA.
4515
4516 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
4517
4518 * fns.c (string_make_multibyte, string_to_multibyte)
4519 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
4520 (MAX_ALLOCA): Remove define.
4521 (Fbase64_encode_region, Fbase64_encode_string)
4522 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
4523 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
4524 memory leak if encoding fails.
4525
4526 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
4527
9a09408e
EZ
45282004-06-21 Eli Zaretskii <eliz@gnu.org>
4529
4530 * print.c (Fwith_output_to_temp_buffer): Doc fix.
4531
376de739
RS
45322004-06-20 Richard M. Stallman <rms@gnu.org>
4533
4534 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
4535
4536 * search.c (match_limit): Cleaner err msg when no match data available.
4537
4538 * window.c (syms_of_window): Doc fix.
4539
4540 * keyboard.c (command_loop_1): Handle values `only' and `identity'
4541 for Vtransient_mark_mode.
4542
4543 * buffer.c (syms_of_buffer): Doc fix.
4544
acd81db9
DK
45452004-06-21 David Kastrup <dak@gnu.org>
4546
4547 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
4548 and unbinding of `case-fold-search' according to
4549 `completion-ignore-case' around calls of string-match and
4550 predicates, respectively. Should give satisfactory performance
4551 in all relevant cases.
4552
f303762d
JD
45532004-06-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4554
95911c74
JD
4555 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
4556 clip_x/y_origin.
4557
a6cb6b78
JD
4558 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
4559
f303762d
JD
4560 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
4561
4562 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
4563 on Mac OSX.
4564
bbdb2684
LT
45652004-06-16 Luc Teirlinck <teirllm@auburn.edu>
4566
4567 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
4568
5ea48b1c
KS
45692004-06-16 Kim F. Storm <storm@cua.dk>
4570
4571 * dispextern.h (Vimage_types): Remove extern.
4572
803aac3e
MB
45732004-06-16 Miles Bader <miles@gnu.org>
4574
4575 * image.c (lookup_image_type): Initialize image type if necessary.
4576
cdc97764
KS
45772004-06-15 Kim F. Storm <storm@cua.dk>
4578
c4a5739c
KS
4579 * xdisp.c (try_cursor_movement): Exclude header line from scroll
4580 margin at top of window.
4581 (try_window_reusing_current_matrix): Calculate proper cursor position
4582 after scrolling up with non-zero scroll margin, as the old cursor
4583 position corresponds to value of PT before executing this command.
4584 (try_window_id): Consider scroll margin at bottom of window too;
4585 otherwise we fail to scroll when hl-line-mode is enabled.
4586
cdc97764
KS
4587 * syntax.c (skip_chars): Only recognize [:class:] when it has the
4588 proper format and class is a lower-case word.
4589
5b166323
JD
45902004-06-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4591
4592 * gtkutil.c (xg_get_image_for_pixmap): New function.
c8d09ad8 4593 (xg_get_gdk_pixmap_and_mask): Remove.
5b166323
JD
4594 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
4595 xg_get_gdk_pixmap_and_mask.
cdc97764 4596
5b166323
JD
4597 * xterm.h (struct x_display_info): Typo in comment fixed.
4598
1ebd4f78
JB
45992004-06-14 Juanma Barranquero <lektu@terra.es>
4600
4601 * dispextern.h (Vimage_types): Make it conditional on
4602 HAVE_WINDOW_SYSTEM.
4603
4604 * image.c (Vimage_types): Move from xdisp.c.
4605 (Vimage_type_cache): New variable.
4606 (define_image_type): New argument indicating whether an image
4607 library was loaded; cache loaded status and return t on success,
4608 nil otherwise.
4609 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
4610 (w32_delayed_load): New function to load an image library from a
4611 list of possible filenames.
4612 (init_xpm_functions, init_png_functions, init_jpeg_functions)
4613 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
c8d09ad8 4614 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
1ebd4f78
JB
4615 (Finit_image_library): New function, extracted from `init_image'.
4616 Try to initialize an image library on demand and cache whether we
4617 were successful or not.
4618 (syms_of_image): Initialize `Vimage_types' and
4619 `Vimage_type_cache'. Add recognized image types to Vimage_types.
4620 Export `init-image-library'.
4621 (init_image): Remove initialization of all image types, except xbm
4622 and pbm.
4623
4624 * xdisp.c (Vimage_types): Delete (moved to image.c).
4625
904ee128
AS
46262004-06-14 Andreas Schwab <schwab@suse.de>
4627
4628 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
4629 Avoid calling specbind when completion-regexp-list is empty.
4630
092de21d
RS
46312004-06-13 Richard M. Stallman <rms@gnu.org>
4632
4633 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
4634 (re_wctype, re_iswctype, re_wctype_to_bit):
4635 Non-function definitions moved here from regex.c.
1ebd4f78 4636
092de21d
RS
4637 * regex.c (re_wctype, re_iswctype): Function defs longer static.
4638 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
4639 (re_wctype, re_iswctype, re_wctype_to_bit):
4640 Non-function definitions moved to regex.h.
4641
4642 * window.c (Fselect_window): Doc fix.
4643
4644 * syntax.c: Include regex.h.
4645 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
4646 If requested, make a list of classes, then check the scanned
4647 chars for membership in them.
4648 (in_classes): New function.
4649 Doc fix.
4650
4651 * keyboard.c (cmd_error): Don't call any_kboard_state
4652 if inside a recursive edit level.
4653
9ba27690 46542004-06-13 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
092de21d
RS
4655
4656 * keyboard.c (command_loop): Call any_kboard_state before
4657 command_loop_2 when at top level.
4658
3ebc0939
AS
46592004-06-13 Andreas Schwab <schwab@suse.de>
4660
cea5d0d4
AS
4661 * print.c (print_object): Always use %ld for printing EMACS_INT.
4662
4663 * keyboard.c (cancel_hourglass_unwind): Return a value.
4664 (modify_event_symbol): Always use %ld for printing EMACS_INT.
4665 (Fexecute_extended_command): Likewise.
4666
4667 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
4668 avoid clashes.
4669 (SYNTAX): Likewise.
4670 (SYNTAX_WITH_FLAGS): Likewise.
4671 (SYNTAX_MATCH): Likewise.
4672
4673 * syntax.c (char_quoted): Avoid warning about undefined operation.
4674 (find_defun_start): Likewise.
4675 (scan_lists): Likewise.
4676 (INC_FROM): Likewise.
4677 (scan_sexps_forward): Likewise.
4678
be8c4ce4
AS
4679 * image.c: Include <ctype.h>.
4680
3ebc0939
AS
4681 * xfaces.c (face_attr_equal_p): Declare parameters.
4682
6fb41b5b
KH
46832004-06-13 Kenichi Handa <handa@m17n.org>
4684
4685 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
4686
fc3095ce
EZ
46872004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
4688
4689 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
4690
66189a40
KH
46912004-06-12 Kenichi Handa <handa@m17n.org>
4692
4693 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
4694 ccl_prog_stack_struct and update it.
4695 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
4696 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
4697 ccl->eof_ic on EOF.
4698 (ccl_debug_hook): New function.
4699 (struct ccl_prog_stack): New member eof_ic.
4700 (ccl_driver): Handle EOF in subrountine call correctly.
4701
47022004-06-11 Kenichi Handa <handa@m17n.org>
4703
4704 * coding.c (decode_coding_string): Check CODING_FINISH_INTERRUPT.
4705
1da71023
KS
47062004-06-11 Kim F. Storm <storm@cua.dk>
4707
4708 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
4709
e9efcef4
JB
47102004-06-11 Juanma Barranquero <lektu@terra.es>
4711
4712 * keyboard.c (Fposn_at_point): Doc fix.
4713
9b9ceb61
DK
47142004-06-11 David Kastrup <dak@gnu.org>
4715
4716 * search.c (match_limit): Don't flag an error if match-data
4717 exceeding the allocated search_regs.num_regs gets requested, just
4718 return Qnil.
4719
6e87ac8f
MB
47202004-06-08 Miles Bader <miles@gnu.org>
4721
4722 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
4723
0b0dea7b
JB
47242004-06-07 Juanma Barranquero <lektu@terra.es>
4725
4726 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
4727 (Fcurrent_time_string, Fcurrent_time_zone)
4728 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
4729
a0a23346
MB
47302004-06-07 Miles Bader <miles@gnu.org>
4731
08384afd 4732 * xfaces.c (struct named_merge_point): New type.
a0a23346
MB
4733 (push_named_merge_point): New function.
4734 (merge_named_face): New function.
4735 (merge_face_ref, face_at_buffer_position, face_at_string_position):
4736 Use `merge_named_face'.
4737 (merge_face_inheritance): Function removed.
c8d09ad8 4738 (merge_face_ref): Rename from `merge_face_vector_with_property'.
a0a23346
MB
4739 Add new `err_msgs' and `named_merge_points' args. Return error
4740 status. Only print error messages if ERR_MSGS is true. Don't try to
4741 do :inherit attribute validation.
4742 (merge_face_heights): Handle `unspecified' in both directions.
4743 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
4744 Call `merge_face_ref' instead of `merge_face_inheritance'.
4745 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
4746 (compute_char_face, face_at_buffer_position)
4747 (face_at_string_position): Call `merge_face_ref' instead of
4748 `merge_face_vector_with_property'.
4749
12d5b185
KH
47502004-06-07 Kenichi Handa <handa@m17n.org>
4751
4752 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
4753 the necessary places.
4754
2e2d7ee6
KS
47552004-06-07 Kim F. Storm <storm@cua.dk>
4756
4757 * process.c (Fdelete_process): Undo 2004-05-28 change.
4758 Instead, call status_notify also for network process.
4759 (status_message): Use process instead of status as arg.
4760 Give messages "deleted" or "connection broken by remote peer" for
4761 an exited network process.
4762 (status_notify): Change call to status_message.
4763 (read_process_output): Increase readmax to 4096. Do not increase
4764 buffer size for datagram channels (default is now large enough).
4765
fcf0d299
ST
47662004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
4767
4768 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
4769 problem due to newly defined variable.
4770
0722292b
MB
47712004-06-06 Miles Bader <miles@gnu.org>
4772
4773 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
4774 immediately if non-interactive or not initialized.
4775
ddfb8369
RS
47762004-06-05 Richard M. Stallman <rms@gnu.org>
4777
4778 * minibuf.c (Fcompleting_read): Doc fix.
4779
57015754
AS
47802004-06-05 Andreas Schwab <schwab@suse.de>
4781
4782 * macfns.c (x_create_tip_frame): Fix declaration after statement.
4783
23715ea6
JB
47842004-06-05 Juanma Barranquero <lektu@terra.es>
4785
4786 * keymap.c (Fdescribe_vector): Fix docstring.
4787 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
4788
8e330b22
MB
47892004-06-05 Miles Bader <miles@gnu.org>
4790
4791 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
4792 attributes have different values than the default face.
4793
9742a3a6
EZ
47942004-06-04 Eli Zaretskii <eliz@gnu.org>
4795
4796 * xfaces.c (x_supports_face_attributes_p): Make this function
4797 conditional on HAVE_WINDOW_SYSTEM.
c8d09ad8
SM
4798 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
4799 Don't call x_supports_face_attributes_p if it was not compiled in.
9742a3a6 4800
9717e36c
MB
48012004-06-04 Miles Bader <miles@gnu.org>
4802
4803 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
4804 from Ftty_supports_face_attributes_p.
4805 (x_supports_face_attributes_p): New function.
4806 (Ftty_supports_face_attributes_p): Function deleted.
4807 (Fdisplay_supports_face_attributes_p): New function.
4808 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
f9711de4 4809 (face_attr_equal_p): New function.
9717e36c
MB
4810 (lface_equal_p): Use it.
4811
52deb19f
JB
48122004-06-03 Juanma Barranquero <lektu@terra.es>
4813
4814 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
4815 (Vw32_color_map): Fix typo in docstring.
4816 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
4817 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
4818 Make argument names match their use in docstring.
4819
86d373e6
JB
48202004-06-02 Juanma Barranquero <lektu@terra.es>
4821
4822 Work around bugs/problems with MinGW builds of graphics libraries
4823 called from MSVC builds of Emacs.
4824
4825 * image.c (lookup_image): Make pointer to img static.
4826 (png_read_from_memory): Disable "global" optimization.
4827
2fb0ce67
SM
48282004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
4829
c8d09ad8
SM
4830 * eval.c (Fcondition_case): Fix usage. Simplify.
4831
2fb0ce67
SM
4832 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
4833
50bf7673
ST
48342004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4835
4836 * macfns.c: Don't include ccl.h.
4837 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
86d373e6
JB
4838 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
4839 TextUtils.h.
c8d09ad8 4840 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
50bf7673
ST
4841 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
4842 display height/width.
4843 (compute_tip_xy, Vx_max_tooltip_size): Declare.
4844 (unwind_create_tip_frame, compute_tip_xy): New functions.
4845 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
4846 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
4847 and last_show_tip_args.
2fb0ce67 4848
50bf7673
ST
4849 * macgui.h [!MAC_OSX]: Include Gestalt.h.
4850 (Cursor, No_Cursor): New defines.
c8d09ad8 4851 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
50bf7673
ST
4852 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
4853
4854 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
4855
4856 * macterm.c: Don't include Gestalt.h.
4857 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
4858 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
4859 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
4860 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
4861 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
4862 (construct_mouse_click, XTmouse_position)
4863 (x_scroll_bar_report_motion, x_calc_absolute_position)
4864 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
4865 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
4866 (note_mouse_movement): Clear the mouse face and reset the pointer
4867 shape when the pointer goes outside the frame without grabbing.
4868 (mac_front_window): New function.
4869 (mac_window_to_frame): New macro.
4870 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
4871 (do_window_activate, do_window_deactivate, do_app_resume)
4872 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
4873 (do_zoom_window, mac_do_receive_drag, XTread_socket)
4874 (mac_check_for_quit_char): Use mac_front_window and/or
4875 mac_window_to_frame.
4876 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
4877 scroll-bar click event.
4878 (mac_define_frame_cursor): Change the pointer shape.
c8d09ad8 4879 (x_free_frame_resources): Reset tip_window to NULL when it is disposed.
50bf7673 4880 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
c8d09ad8 4881 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
50bf7673
ST
4882 (do_window_update): Don't do anything if the updated window is the
4883 tooltip window.
4884 (do_mouse_moved): Handle mouse movement events here (previously in
4885 XTread_socket). Clear the mouse face if
4886 dpyinfo->mouse_face_hidden is set.
4887 (do_os_event, do_events): Remove (now in XTread_socket).
4888 (XTread_socket): Immediately return if interrupt_input_blocked.
c8d09ad8
SM
4889 Loop until all the events in the queue are processed.
4890 Rearrange codes for mouse grabbing. Add tooltip support. Include the
50bf7673
ST
4891 contents of do_os_event and do_events. Remove mouse movement
4892 handling (now in do_mouse_moved). Add the case where
4893 Vmouse_highlight has an integer value.
4894 (NewMacWindow): Remove.
4895 (make_mac_frame): Do what NewMacWindow previously did. Don't do
4896 excess initializations.
4897 (make_mac_terminal_frame): Previous initializations in
4898 make_mac_frame are moved here.
c8d09ad8
SM
4899 (mac_initialize_display_info):
4900 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
50bf7673
ST
4901
4902 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
4903 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
4904
08fd1251
RS
49052004-05-29 Richard M. Stallman <rms@gnu.org>
4906
4907 * lisp.h (truncate_undo_list): Update decl.
4908
4909 * alloc.c (undo_outer_limit): New variable.
4910 (syms_of_alloc): Defvar it.
4911 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
4912
4913 * undo.c (truncate_undo_list): New arg LIMITSIZE.
4914
4915 * alloc.c (lisp_align_malloc): Check for base == 0
4916 regardless of HAVE_POSIX_MEMALIGN.
4917 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
4918
227ef0ff
SM
49192004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
4920
4921 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
4922 (marker_blocks_pending_free): Remove.
4923 (Fgarbage_collect): Sweep after cleaning up undo-lists.
4924 Mark the undo lists after claning them up.
4925 Don't free block in marker_blocks_pending_free.
4926 (mark_buffer): Don't mark undo_list.
4927 (gc_sweep): Sweep hash-tables and strings first.
4928 Do free marker blocks that are empty.
4929
034a6113
SM
49302004-05-28 Jim Blandy <jimb@redhat.com>
4931
4932 * regex.c (print_partial_compiled_pattern): Add missing 'break'
4933 after 'case wordend'. For symbeg and symend, print to stderr,
4934 like the other cases.
4935
33594a8d
NF
49362004-05-28 Noah Friedman <friedman@splode.com>
4937
4938 * process.c (Fdelete_process): Do not call remove_process.
4939
ce50a847
SM
49402004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
4941
4942 * alloc.c (struct backtrace): Remove.
4943 (Fgarbage_collect): Use the new mark_backtrace.
4944
4945 * eval.c (mark_backtrace): New function.
4946
4947 * minibuf.c (run_exit_minibuf_hook): New function.
4948 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
4949 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
4950
1e8dae36
KS
49512004-05-27 Kim F. Storm <storm@cua.dk>
4952
4953 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
4954 over display properties, e.g. images, that replace buffer text.
4955
846faa3b
KS
49562004-05-25 Kim F. Storm <storm@cua.dk>
4957
4958 * alloc.c (marker_blocks_pending_free): New var.
4959 (gc_sweep): Store free marker blocks on that list.
4960 (Fgarbage_collect): Free them after undo-list cleanup.
4961
4962 * process.c (wait_reading_process_input): Check connect_wait_mask
4963 before actually accepting connection in case it has already been
4964 accepted due to recursion.
4965
b6189c3b 49662004-05-23 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
6239a668 4967
ce50a847
SM
4968 * coding.c (Fset_safe_terminal_coding_system_internal):
4969 Set suppress_error in safe_terminal_coding, not terminal_coding.
6239a668 4970
71d5a208
RS
49712004-05-22 Richard M. Stallman <rms@gnu.org>
4972
4973 * alloc.c (Fmake_string): Doc fix.
4974
4975 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
4976 and the alist pairs too.
4977
4978 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
4979
4980 * emacs.c (main): Update copyright year.
4981
4982 * fileio.c (Fread_file_name): Expand DIR if not absolute.
4983
4984 * insdel.c (del_range_2, replace_range): Don't write an anchor
4985 if the gap is empty.
4986
4987 * xdisp.c (try_scrolling): If scroll-up-aggressively or
4988 scroll-down-aggressively is small but positive, put point
4989 near the screen edge.
4990
f63fd14e
JB
49912004-05-22 Juanma Barranquero <lektu@terra.es>
4992
4993 * keymap.c (Fdefine_key): Doc fix.
4994
4d12067c
KS
49952004-05-22 Kim F. Storm <storm@cua.dk>
4996
4997 * alloc.c (struct backtrace): Add debug_on_exit member.
4998 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
4999 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
5000 the removed cons cells.
5001 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
5002 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
5003 any cons cells pointing to unallocated stings.
5004 Do not lisp_free any marker blocks, as there may still be pointers
5005 to them from buffer undo lists at this stage of GC.
5006
5007 * keyboard.c (struct backtrace): Add debug_on_exit member.
5008 (Fcommand_execute): Clear it.
5009
931285e2
LT
50102004-05-20 Luc Teirlinck <teirllm@auburn.edu>
5011
5012 * intervals.c (lookup_char_property): Do not prematurely return nil.
5013
669fa600
SM
50142004-05-19 Jim Blandy <jimb@redhat.com>
5015
5016 Add support for new '\_<' and '\_>' regexp operators, matching the
f63fd14e 5017 beginning and end of symbols.
4d12067c 5018
669fa600
SM
5019 * regex.c (enum syntaxcode): Add Ssymbol.
5020 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
5021 (re_opcode_t): New opcodes `symbeg' and `symend'.
5022 (print_partial_compiled_pattern): Print the new opcodes properly.
5023 (regex_compile): Parse the new operators.
ce50a847 5024 (analyse_first): Skip sym(beg|end) (they match only the empty string).
669fa600
SM
5025 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
5026 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
5027 (re_match_2_internal): Match symbeg and symend.
5028
5029 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
5030
0d8c2e5c
KS
50312004-05-19 Kim F. Storm <storm@cua.dk>
5032
5033 * .gdbinit (xsymbol): Fix last change.
5034
669fa600
SM
50352004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
5036
5037 * .gdbinit (xprintstr): New fun.
5038 (xstring, xprintsym): Use it.
5039
5040 * w32proc.c (create_child): Use INTMASK.
5041
5042 * alloc.c (Fgarbage_collect): Do all the marking before flushing
5043 unmarked elements of the undo list.
5044
9a6a4c40
DP
50452004-05-18 David Ponce <david@dponce.com>
5046
5047 * print.c (print): Reset print_depth before to call print_object.
5048
f3c4ec74
JR
50492004-05-18 Jason Rumney <jasonr@gnu.org>
5050
5051 * w32console.c: Prefix RIF functions with w32con_ to avoid
5052 namespace clash with functions in term.c and w32term.c.
5053
5054 * w32menu.c (add_menu_item, w32_menu_display_help)
5055 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
5056
0d8c2e5c 5057 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
f3c4ec74 5058
6be49c3a
EZ
50592004-05-18 Eli Zaretskii <eliz@gnu.org>
5060
4d0b9a0a
EZ
5061 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
5062
6be49c3a
EZ
5063 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
5064 with make_number.
5065 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
5066 with XINT.
5067
0bc90bba
KS
50682004-05-18 Kim F. Storm <storm@cua.dk>
5069
89d19988
KS
5070 * blockinput.h (INPUT_BLOCKED_P): New macros.
5071
5072 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
5073 (Ftop_level): Unblock input if blocked.
5074
0bc90bba
KS
5075 * buffer.h (GET_OVERLAYS_AT): New macro.
5076 * msdos.c (IT_note_mouse_highlight): Use it.
5077 * textprop.c (get_char_property_and_overlay): Use it.
5078 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
5079 * xfaces.c (face_at_buffer_position): Use it.
5080
5081 * print.c (print_object): Increase buf size.
5082
653bd0f6
JR
50832004-05-17 Jason Rumney <jasonr@gnu.org>
5084
5085 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
5086 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
5087 Lisp_Object using i member.
5088 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
5089 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
5090 consistently.
5091
5092 * w32proc.c (create_child): Use make_number instead of masking pid.
5093
5094 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
5095 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
5096 Use EQ to compare Lisp_Objects.
5097 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
5098
5099 * w32term.c (w32_num_mouse_buttons): Rename from
5100 Vw32_num_mouse_buttons and make it an int.
5101
5102 * w32.c (init_environment): Use it.
5103
5104 * w32fns.c (w32_wnd_proc): Likewise.
5105
5106 * w32proc.c (w32_pipe_read_delay): Rename from
5107 Vw32_pipe_read_delay and make it an int.
5108
5109 * w32.c (_sys_read_ahead): Use it.
5110
5111 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
5112
5113 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
5114
5115 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
5116 (key_event): Don't mix Lisp_Object and int.
5117
5118 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
5119
5120 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
5121 modifiers in language change event.
5122
54b53ba7
KS
51232004-05-17 Kim F. Storm <storm@cua.dk>
5124
5125 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
5126 Such objects may be freed markers which still exist on an undo list.
5127
6e86a75d
JB
51282004-05-16 Juanma Barranquero <lektu@terra.es>
5129
5130 * data.c (Fset_default): Make argument names match their use in
5131 docstring.
5132
fc80da24
AS
51332004-05-15 Andreas Schwab <schwab@suse.de>
5134
5135 * emacs.c (gdb_array_mark_flag): Define.
5136 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
5137
c1380aa6
EZ
51382004-05-15 Eli Zaretskii <eliz@gnu.org>
5139
5140 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
5141 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
5142 defined for the MS-DOS build.
5143
89458937
SM
51442004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
5145
5146 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
5147
08020f9a
KH
51482004-05-14 Kenichi Handa <handa@m17n.org>
5149
5150 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
5151
a433994a
ST
51522004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5153
5154 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
5155 section to frame.c section.
5156 (Fxw_display_color_p, Fx_file_dialog): Declare if
89458937 5157 HAVE_WINDOW_SYSTEM defined.
0d8c2e5c 5158
a433994a 5159 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
0d8c2e5c 5160
a433994a 5161 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
0d8c2e5c 5162
a433994a
ST
5163 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
5164 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
5165 (XTread_socket): Fix int/Lisp_Object mixup.
5166 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
0d8c2e5c 5167
a433994a
ST
5168 * macterm.h (struct frame, struct face, struct image)
5169 (display_x_get_resource, Fx_display_color_p)
89458937
SM
5170 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
5171 Add prototypes.
a433994a 5172
b51a51b9
KS
51732004-05-14 Kim F. Storm <storm@cua.dk>
5174
5175 * process.c (wait_reading_process_input): Make reentrant.
5176 Make Available and Connecting non-static. Save and restore value
5177 of waiting_for_user_input_p.
5178
2bde1dd8
KS
51792004-05-13 Kim F. Storm <storm@cua.dk>
5180
5181 * keyboard.c (mark_kboards): Don't mark x and y members
5182 that are overloaded in selection request events.
5183
a267ab4d
SM
51842004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
5185
5186 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
5187
eb15ce9e
GM
51882004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
5189
5190 * window.c (Fdisplay_buffer, Fsplit_window)
5191 (split-height-threshold): Doc fix.
5192
7fc92635
JB
51932004-05-13 Juanma Barranquero <lektu@terra.es>
5194
5195 * xfaces.c (Ftty_supports_face_attributes_p)
5196 (Finternal_copy_lisp_face): Fix typo in docstring.
5197 (Finternal_get_lisp_face_attribute): Fix docstring.
5198
1ec2a572
JD
51992004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5200
5201 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
5202
ae9292e0
ST
52032004-05-11 Steven Tamm <steventamm@mac.com>
5204
5205 * macfns.c (Fx_create_frame): Default to using tool-bar by
5206 setting tool-bar-lines to 1 in default-frame-alist.
5207
52082004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ea1aaa6f
ST
5209
5210 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
5211 (xpm_get_color_table_v, xpm_make_color_table_h)
5212 (xpm_put_color_table_h, xpm_get_color_table_h)
5213 (xpm_str_to_color_key, xpm_load_image, xpm_load)
5214 (syms_of_image): Support XPM on Carbon Emacs. Does not
a267ab4d 5215 depend on libXpm, but only supports XPM version 3 without extensions.
ea1aaa6f 5216
fe97e8df
ST
52172004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5218
a267ab4d 5219 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
fe97e8df
ST
5220 instead of FRAME_X_P
5221
b47e779e
KS
52222004-05-11 Kim F. Storm <storm@cua.dk>
5223
5224 * process.c (read_process_output): Grow decoding_buf when needed;
5225 this could cause a crash in allocate_string and compact_small_strings.
5226
cdc9b845
EZ
52272004-04-29 Jim Blandy <jimb@redhat.com>
5228
5229 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
5230 against proper opcode.
5231
aa7094ba
JB
52322004-05-10 Juanma Barranquero <lektu@terra.es>
5233
5234 * process.c (Fstart_process): Fix docstring.
5235
5236 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
5237 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
5238 (Fsplit_char, Fchar_charset): Make argument names match their use
5239 in docstring.
5240
e109331a
RS
52412004-05-10 Richard M. Stallman <rms@gnu.org>
5242
5243 * print.c (print_preprocess): Use being_printed, loop_count and
5244 halftail to detect overdeep nesting and cyclic cdr chains.
5245
9a28b921
AS
52462004-05-10 Andreas Schwab <schwab@suse.de>
5247
78819ebb 5248 * lisp.h (Fmake_symbolic_link): Declare.
9a28b921
AS
5249
5250 * fileio.c (Frename_file): Remove extra argument in call to
5251 Fmake_symbolic_link.
5252
e2c02c1a
KS
52532004-05-10 Kim F. Storm <storm@cua.dk>
5254
5255 * xdisp.c (calc_line_height_property): Use string position when
5256 object is a string.
5257
cfe9d13e
KH
52582004-05-10 Kenichi Handa <handa@m17n.org>
5259
a57e8159
KH
5260 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
5261 inhibit-modification-hooks to t temporarily before calling
5262 Ferase_buffer.
5263
5264 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
5265 inhibit-modification-hooks to t temporarily before calling
5266 Ferase_buffer.
5267
5268 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
5269 inhibit-modification-hooks to t temporarily before calling
5270 Ferase_buffer.
5271
cfe9d13e
KH
5272 * fns.c (count_combining): Delete it.
5273 (concat): Don't check combining bytes.
5274
ceb96489
JR
52752004-05-09 Jason Rumney <jasonr@gnu.org>
5276
5277 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
5278 (globals_of_w32fns): Set it.
5279
b6189c3b 52802004-05-09 Piet van Oostrum <piet@cs.uu.nl>
b1c661c7
JB
5281
5282 * data.c (Fquo): Simplify.
5283
28712a21
JB
52842004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
5285
5286 * data.c (Fquo): If any argument is float, do the computation in
5287 floating point.
5288
0f0af7a8
JB
52892004-05-08 Juanma Barranquero <lektu@terra.es>
5290
88214ef6
JB
5291 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
5292 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
5293 Fix spelling of Emacs on docstring.
5294 (Fset_process_coding_system, Fprocess_coding_system)
5295 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
5296 Make argument names match their use in docstring.
5297 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
5298 Fix docstring.
5299
0f0af7a8
JB
5300 * editfns.c (Finsert_buffer_substring): Make argument names match their
5301 use in docstring.
5302
5303 * syntax.c (Fmodify_syntax_entry): Fix docstring.
5304
2a316a84
ST
53052004-05-07 Steven Tamm <steventamm@mac.com>
5306
5307 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
5308 around call to ReceiveEvent to avoid certain crashes.
5309
53102004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
0d8c2e5c 5311
2a316a84
ST
5312 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
5313 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
5314 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
5315 Save/restore the current graphics port and device handle when
5316 drawing into an offscreen graphics world.
5317
5318 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
5319 (gif_load): Likewise.
5320
ab80314b
JB
53212004-05-07 Juanma Barranquero <lektu@terra.es>
5322
5323 * window.c (Fset_window_buffer): Fix docstring.
5324
70646bb5
TTN
53252004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
5326
5327 * emacs.c (main) [VMS]: Fix var ref.
5328
b6189c3b 53292004-05-06 Romain Francoise <romain@orebokech.com>
b03a4fdd
JB
5330
5331 * data.c (Fsetq_default): Fix docstring.
5332
279d3293
JR
53332004-05-06 Jason Rumney <jasonr@gnu.org>
5334
5335 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
5336 to avoid name clash.
5337
f72b5416
JD
53382004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5339
5340 * fileio.c (barf_or_query_if_file_exists): Use lstat.
5341 (Frename_file): Handle renaming of symlinks across file systems.
440c7d00 5342 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
f72b5416 5343
6ab66799
KS
53442004-05-04 Kim F. Storm <storm@cua.dk>
5345
5346 * xdisp.c (Qtotal): New var.
5347 (syms_of_xdisp): Intern and staticpro it.
5348 (calc_line_height_property): New arg total. Set it if
5349 line-spacing property has format (total . VALUE).
5350 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
5351 Handle total line-spacing property.
5352
ab2d724b
JD
53532004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5354
5355 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
5356 "under" scroll bar when size/position changes.
5357
238add5e
JR
53582004-05-03 Jason Rumney <jasonr@gnu.org>
5359
5360 * makefile.nt: Remove.
5361
1644f4e4
EZ
53622004-05-02 Eli Zaretskii <eliz@gnu.org>
5363
a267ab4d
SM
5364 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
5365 Avoid compiler warnings.
05fdbeb8 5366
1644f4e4
EZ
5367 * Makefile.in (region-cache.o): Depend on config.h.
5368
b6189c3b 53692004-05-02 Romain Francoise <romain@orebokech.com>
6cbc951e
SM
5370
5371 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
5372 with continuation lines, too.
5373
2b98b088
TTN
53742004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
5375
5376 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
5377
d9bf7950
SM
53782004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
5379
5380 * xdisp.c (calc_line_height_property): YAILOM (yet another
5381 int/Lisp_Object mixup).
5382
affa509c
EZ
53832004-05-01 Eli Zaretskii <eliz@gnu.org>
5384
5385 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
5386 undo bad effect of pack(4) in some versions of system headers.
5387
07c07cfe
JR
53882004-05-01 Jason Rumney <jasonr@gnu.org>
5389
5390 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
5391
e71caa4e
KS
53922004-04-30 Kim F. Storm <storm@cua.dk>
5393
5394 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
b2b55d03 5395 (syms_of_buffer) <cursor-type>: Doc fix.
e71caa4e
KS
5396
5397 * dispextern.h (struct it): Remove member use_default_face.
5398 Add members override_ascent, override_descent, override_boff.
5399
5400 * xdisp.c (init_iterator): Handle line-spacing float value.
5401 Initialize override_ascent member.
5402 (append_space_for_newline): Reset override_ascent.
5403 Remove use_default_face.
5404 (calc_line_height_property): New function to calculate value of
5405 line-height and line-spacing properties. Look at overlays, too.
5406 Set override_ascent, override_descent, override_boff members when
5407 using another face than the current face. Float values are now
5408 relative to the frame default font, by default; accept a cons
5409 of ratio and face name to specify value relative to a specific face.
5410 (x_produce_glyphs): Use calc_line_height_property.
5411 Use override_ascent etc. when set to handle different face heights.
5412 A negative line-spacing property value is interpreted as a total
5413 line height, rather than inter-line spacing.
5414 (note_mouse_highlight): Allocate room for 40 overlays initially.
5415
0fddae66
SM
54162004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
5417
5418 * data.c (Fsubr_name): New fun.
5419 (syms_of_data): Defsubr it.
5420
712d23dc
KS
54212004-04-29 Kim F. Storm <storm@cua.dk>
5422
5423 * xdisp.c (null_glyph_slice): New var.
5424 (append_glyph, append_composite_glyph, append_stretch_glyph):
5425 Use it to initialize glyph slice.
5426
033ad8c6
SM
54272004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
5428
5429 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
5430 (on_hot_spot_p): Make sure we always return a value.
5431 (Flookup_image_map): Remove unused var ix and iy.
5432 (note_mode_line_or_margin_highlight): Remove unused var `image'.
5433
93397360
EZ
54342004-04-27 Eli Zaretskii <eliz@gnu.org>
5435
5436 * msdos.c (init_environment): If one of the TMP... environment
5437 variables is set to a drive letter without a trailing slash,
5438 append a slash.
5439
0c54865e
EZ
54402004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
5441
5442 * editfns.c (lisp_time_argument): Provide externally.
5443
5444 * fileio.c (Fset_file_times): New function.
5445 (syms_of_fileio): Intern and staticpro it.
5446
d3b111bd
KS
54472004-04-27 Kim F. Storm <storm@cua.dk>
5448
07dc1231
KS
5449 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
5450 header line strings.
5451
360fe9d2
KS
5452 * dispextern.h (struct it): New member use_default_face.
5453
d3b111bd
KS
5454 * xdisp.c (Qline_height): New variable.
5455 (syms_of_xdisp): Intern and staticpro it.
5456 (append_space_for_newline): Partially undo 2004-04-25 change;
5457 add default_face_p arg, and restore callers.
5458 Clear it->use_default_face after use.
5459 (x_produce_glyphs): Set default font for ascii char if
5460 it->use_default_font is set. Change line-spacing property to set
5461 just extra line spacing. Handle new line-height property.
5462
0448588b
AS
54632004-04-26 Andreas Schwab <schwab@suse.de>
5464
5465 * print.c (print_object): Print non-ascii characters in bool
5466 vector representation as octal escapes.
5467
5468 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
5469 * print.c (print_object): Use it instead of BITS_PER_CHAR for
5470 bool vectors.
5471 * lread.c (read1): Likewise.
5472 * alloc.c (Fmake_bool_vector): Likewise.
5473 * data.c (Faref, Faset): Likewise.
5474 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
5475 (mapcar1): Likewise.
d3b111bd 5476
536d6baa
ST
54772004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
5478
7e26f91b 5479 * lread.c (init_lread): Fix typo in HAVE_CARBON test logic.
536d6baa 5480
ae11577a
MB
54812004-04-26 Miles Bader <miles@gnu.org>
5482
5483 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
5484
e198ba87
JB
54852004-04-26 Juanma Barranquero <lektu@terra.es>
5486
5487 * buffer.c (Fpop_to_buffer): Fix docstring.
5488
f3d5f92d 54892004-04-26 Steven Tamm <steventamm@mac.com>
e198ba87 5490
f3d5f92d
ST
5491 * lread.c (init_lread): Don't display missing lisp directory
5492 warnings with Carbon Emacs because self-contained bundled Emacs
e198ba87 5493 may be built without correct installation path.
f3d5f92d 5494
03e35edc
KS
54952004-04-25 Kim F. Storm <storm@cua.dk>
5496
9ff3aa31
KS
5497 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
5498
5499 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
5500
03e35edc
KS
5501 * xdisp.c (append_space_for_newline): Rename from append_space.
5502 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
5503 (x_produce_glyphs): Handle line-spacing property on newline char.
5504 If value is t, adjust ascent and descent to fit current row height.
5505 If value is an integer or float, set extra_line_spacing to integer
5506 value, or to float value x current line height.
5507
f24814e0
KH
55082004-04-23 Kenichi Handa <handa@m17n.org>
5509
5510 * fontset.c (Finternal_char_font): If POSITION is nil, return
5511 font for displaying CH with the default face.
5512
d814862a
JB
55132004-04-23 Juanma Barranquero <lektu@terra.es>
5514
5515 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
5516
063a45c5
SM
55172004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
5518
5519 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
5520 Don't make assumptions about the relative place of i and val.
5521 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
5522
ae7ab2d3
KS
55232004-04-21 Kim F. Storm <storm@cua.dk>
5524
5525 * dispextern.h (struct glyph_slice): New struct.
5526 (struct glyph): New member slice.
5527 (GLYPH_SLICE_EQUAL_P): New macro.
5528 (GLYPH_EQUAL_P): Use it.
5529 (struct glyph_string): New member slice.
5530 (struct it_slice): New struct.
5531 (struct it): New member slice, add member to stack too.
5532 New member constrain_row_ascent_descent_p.
5533 (image_ascent): Add prototype.
5534
5535 * dispnew.c (buffer_posn_from_coords): Return full image width
5536 and height even for image slices (posn is relative to full image).
5537 (marginal_area_string): Adjust x0,y0 for image slice.
5538
5539 * image.c (image_ascent): Add slice arg; calculate ascent for
5540 image slice (or full image).
5541
5542 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
5543 (syms_of_keyboard): Defsubr them.
5544
5545 * lisp.h (pos_visible_p): Fix prototype.
5546
c62aec78 5547 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
ae7ab2d3
KS
5548 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
5549 (x_draw_image_foreground, x_draw_image_relief)
5550 (x_draw_image_foreground_1, x_draw_image_glyph_string):
5551 Draw sliced images.
5552
5553 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
5554 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
5555 (x_draw_image_foreground, x_draw_image_relief)
5556 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
5557 Draw sliced images.
5558
5559 * w32term.h (image_ascent): Remove prototype.
5560
5561 * window.c (Fpos_visible_in_window_p): Return pixel position if
5562 PARTIALLY arg is non-nil. Simplify. Doc fix.
5563 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
5564 to return/set vscroll in pixels.
5565
5566 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
5567
5568 * xdisp.c (Qslice): New variable.
5569 (syms_of_xdisp): Intern and staticpro it.
5570 (pos_visible_p): Return pixel position in new x and y args.
5571 (init_iterator): Reset it->slice info.
5572 (handle_display_prop): Parse (slice ...) property.
5573 (push_it, pop_it): Save/restore slice info.
5574 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
5575 force repositioning of tall row if window is vscrolled, as that
5576 would reset vscroll.
5577 (append_space): Set it->constrain_row_ascent_descent_p to avoid
5578 increasing row height if row is non-empty.
5579 (fill_image_glyph_string): Copy slice info.
5580 (take_vertical_position_into_account): Simplify.
5581 (produce_image_glyph): Handle iterator slice info, setup glyph
5582 slice info. Do not force minimum line height.
5583 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
5584 do not increase height (ascent/descent) of non-empty row when
5585 adding normal character glyph; instead reduce glyph ascent/descent
5586 appropriately; if row is higher than current glyph, adjust glyph
5587 descent/ascent to reposition glyph within the existing row.
5588 Likewise, when char is newline, only set ascent/descent if row is
5589 currently empty.
5590 (note_mouse_highlight): Handle hotspots with sliced image.
5591
5592 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
5593 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
5594 (x_draw_image_foreground, x_draw_image_relief)
5595 (x_draw_image_foreground_1, x_draw_image_glyph_string):
5596 Draw sliced images.
5597
5598 * xterm.h (image_ascent): Remove prototype.
5599
d58f8753
SM
56002004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
5601
5602 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
5603
4ce2719d
JPW
56042004-04-20 John Paul Wallington <jpw@gnu.org>
5605
5606 * fns.c (Fassoc, Feql): Fix indentation.
5607
d58f8753 5608 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
4ce2719d 5609
95f8c3b9
JPW
56102004-04-19 John Paul Wallington <jpw@gnu.org>
5611
5612 * fns.c (Feql): New function.
d58f8753 5613 (syms_of_fns): Defsubr it.
95f8c3b9 5614
b7e85537
JR
56152004-04-18 Jason Rumney <jasonr@gnu.org>
5616
5617 * w32select.c (Fw32_set_clipboard_data): Get sequence number
5618 after closing the clipboard.
5619
5a72efd4
LT
56202004-04-16 Luc Teirlinck <teirllm@auburn.edu>
5621
5622 * buffer.c (Fbuffer_base_buffer): Doc fix.
5623
20dc8583
KS
56242004-04-17 Kim F. Storm <storm@cua.dk>
5625
60962ec4
KS
5626 * keymap.c (Fkey_description): Add optional PREFIX arg.
5627 Combine prefix with KEYS to make up the full key sequence to describe.
5628 Correlate meta_prefix_char and following (simple) key to describe
5629 as meta modifier. All callers changed.
5630 (describe_map): Rename arg `keys' to `prefix'. Remove local
5631 `elt_prefix' var. Use Fkey_description with prefix instead of
5632 elt_prefix combined with Fsingle_key_description.
5633 (describe_vector): Declare static. Replace arg `elt_prefix' with
5634 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
5635 if !KEYMAP_P. Use Fkey_description with prefix instead of
5636 Fsingle_key_description.
5637
5638 * keymap.h (Fkey_description): Fix prototype.
5639 (describe_vector): Remove prototype.
5640
409368b9
KS
5641 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
5642
20dc8583
KS
5643 * image.c (PNG_BG_COLOR_SHIFT): Remove.
5644 (png_load): Fix calculation of transparent background color on X
5645 and W32 platforms.
5646
75c5501b
JB
56472004-04-16 Juanma Barranquero <lektu@terra.es>
5648
5649 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
5650 not too large before computing how much to scroll.
5651
da879ae8
SM
56522004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
5653
5654 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
5655
d01ca4a8
LT
56562004-04-14 Luc Teirlinck <teirllm@auburn.edu>
5657
5658 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
5659 Add hyperlink to Elisp manual to the docstring.
5660
572943b3
SM
56612004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
5662
5663 * callint.c (fix_command): Use XDCR.
5664
5e30a0fb
NR
56652004-04-14 Nick Roberts <nick@nick.uklinux.net>
5666
5667 * window.c (Fget_lru_window): Doc fix.
5668
a27ddfaf
KS
56692004-04-14 Kim F. Storm <storm@cua.dk>
5670
5671 * editfns.c (Fformat): Fix allocation size of precision array.
5672
5673 * dispnew.c (update_window): Only set changed_p if
5674 scrolling_window actually did scroll.
5675 (scrolling_window): Only return 1 if we actually did scroll.
5676
5677 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
5678 height to glyph height when cursor row is not fully visible.
5679 (make_cursor_line_fully_visible): Add FORCE_P arg to return
5680 failure in case row is higher than window. Callers changed.
5681 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
5682 Try to scroll partially visible, higher-than-window cursor row.
5683 (redisplay_window): Always try to scroll partially visible,
5684 higher-than-window cursor row - both initially and again with
5685 centering_position = 0.
5686 Clear desired matrix before retrying with centering_position = 0.
5687
da879ae8
SM
56882004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
5689
5690 * syntax.c (scan_lists): Simplify backward string scan.
5691 Fix off-by-one boundary check for string and comment fences.
5692
5fc16e8e
SM
56932004-04-13 Joe Buehler <jbuehler@hekimian.com>
5694
5695 * sheap.c, unexcw.c: New files.
5696
c9aac8e6
LT
56972004-04-12 Luc Teirlinck <teirllm@auburn.edu>
5698
5699 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
5700 base buffer has been killed. Correct the error message if the
5701 base buffer does not exist.
5702
1e88a355
SM
57032004-04-12 Joe Buehler <jbuehler@hekimian.com>
5704
5705 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
5706 Cygwin itself. Add support for Xaw3d scrollbars.
5707
5708 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
5709
5710 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
5711
5712 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
5713 before Cygwin unexec.
5714
5715 * Makefile.in: Link changes for Cygwin unexec() support.
5716
8dbff9a0
AS
57172004-04-12 Andreas Schwab <schwab@suse.de>
5718
5719 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
5720
54dffe35
LT
57212004-04-11 Luc Teirlinck <teirllm@auburn.edu>
5722
5723 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
5724 IGNORE argument equals NAME. Doc fix.
5725
99a72bdf
MY
57262004-04-11 Masatake YAMATO <jet@gyve.org>
5727
1e88a355 5728 * buffer.c (fix_start_end_in_overlays): Make overlays
99a72bdf
MY
5729 empty if they are backwards.
5730
40899d7b
SM
57312004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
5732
5733 * xfaces.c (face_color_supported_p): Fix compilation without X11.
5734
f8f853de
SM
57352004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
5736
5737 * doc.c (Fsnarf_documentation): Ignore new file name entries.
5738
c953fe1b
KS
57392004-04-06 Kim F. Storm <storm@cua.dk>
5740
661e85c1
KS
5741 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
5742 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
5743
5744 * w32term.c (w32_read_socket): Set mouse_face_hidden after
5745 clearing highlight.
5746
5747 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
5748
5749 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
5750 clearing highlight.
5751
c953fe1b
KS
5752 * indent.c (vmotion): Do not reserve one column for continuation
5753 marks on window frames.
5754
c1994268
EZ
57552004-04-04 Eli Zaretskii <eliz@gnu.org>
5756
5757 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
5758 from GCC.
5759
9f691b0d
SM
57602004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
5761
5762 * .gdbinit-union: Remove.
5763
5764 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
5765 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
5766 ($nonvalbits): Remove.
5767 ($valmask): Set it by calling xreload to avoid redundancy.
5768
5769 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
5770 (gdb_emacs_intbits): Remove.
5771
7a8560d7
JD
57722004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5773
9f691b0d 5774 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
7a8560d7 5775
3c8111fc
KH
57762004-03-30 Kenichi Handa <handa@m17n.org>
5777
5778 * editfns.c (Fformat): Fix initialization of the array info.
5779
48a0bce4
KS
57802004-03-30 Kim F. Storm <storm@cua.dk>
5781
5782 * xterm.c (x_mouse_click_focus_ignore_position): New var.
5783 (syms_of_xterm): DEFVAR_BOOL it.
5784 (ignore_next_mouse_click_timeout): New var.
5785 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
5786 Use it to filter mouse clicks following focus event.
5787
1cd0066c
KS
57882004-03-29 David Ponce <david@dponce.com>
5789
5790 * callint.c (Fcall_interactively): Fix last change.
5791
adb3b353
SM
57922004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
5793
5794 * eval.c (Fcommandp): Simplify.
5795
5796 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
5797 Extend to handle all kinds of functions.
5798
5799 * lisp.h (Finteractive_form): Declare.
5800
5801 * callint.c (Fcall_interactively): Use it.
5802
6fc4c9c9
KS
58032004-03-26 Kim F. Storm <storm@cua.dk>
5804
5805 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
5806 to catch errors in calc_pixel_width_or_height during redisplay.
5807
abdb9b83
MY
58082004-03-26 Masatake YAMATO <jet@gyve.org>
5809
b17856dd 5810 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
abdb9b83 5811
b17856dd 5812 * lisp.h (fix_start_end_in_overlays): Likewise.
abdb9b83 5813
b17856dd 5814 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
abdb9b83 5815
b17856dd 5816 * editfns.c (Ftranspose_regions): Likewise.
abdb9b83 5817
e8a84b6c
JD
58182004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5819
b17856dd 5820 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
e8a84b6c 5821
36a3fd05
RS
58222004-03-19 Richard M. Stallman <rms@gnu.org>
5823
5824 * s/sol2-6.h: Delete previous change.
5825
ab24c127
KS
58262004-03-19 Kim F. Storm <storm@cua.dk>
5827
5828 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
5829 to_charpos corresponds to newline in right fringe. Use local
5830 BUFFER_POS_REACHED_P macro.
5831
992126de
JD
58322004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5833
5834 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
5835 to compile on non-window system.
5836
45dbfc84
KS
58372004-03-19 Kim F. Storm <storm@cua.dk>
5838
5839 * dispextern.h (calc_pixel_width_or_height): Add prototype.
5840
5841 * image.c (Qcenter): Move to xdisp.c.
5842
5843 * xdisp.c (Qcenter): Declare here.
adb3b353 5844 (syms_of_xdisp): Intern and staticpro it.
45dbfc84
KS
5845 (handle_single_display_prop): Allow space display property on all
5846 platforms.
5847 (display_mode_line): Set mode_line_p before displaying line.
5848 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
5849 handling. Remove complex cases for fringes and scroll-bars.
5850 Add left, right, and center alignment positions. Add text (area)
5851 width/height. Return width or height for image specs.
5852 (produce_stretch_glyph): Improve handling of :align-to. Is now
5853 relative to left of text area by default, but other base offsets
5854 can be specified -- also for text lines.
5855
5856 * term.c (produce_glyphs): Handle IT_STRETCH.
5857 (produce_stretch_glyph): New function to handle space width and
5858 align-to display properties on non-window systems.
5859
37264101
SM
58602004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
5861
5862 * fileio.c (Fread_file_name): Set completion-ignore-case for
5863 case-insensitive systems.
5864
73bc43da
MY
58652004-03-14 Masatake YAMATO <jet@gyve.org>
5866
5867 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
5868 when keymap and cursor are setup.
5869
9062aa89
ST
58702004-03-14 Steven Tamm <steventamm@mac.com>
5871
b17856dd 5872 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
9062aa89 5873
e4b1b5ab
KS
58742004-03-14 Kim F. Storm <storm@cua.dk>
5875
5876 * dispextern.h (x_find_image_file): Add prototype.
5877
5878 * image.c (x_find_image_file): Make extern.
5879
5880 * xfns.c (x_find_image_file): Remove prototype.
5881
a6eeaa81 58822004-03-13 Eli Zaretskii <eliz@gnu.org>
5109b06a 5883
37264101 5884 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
5109b06a 5885
37264101 5886 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
5109b06a 5887
e69cfac2
RS
58882004-03-12 Richard M. Stallman <rms@gnu.org>
5889
5890 * fns.c (internal_equal): New arg PROPS controls comparing
5891 text properties. All callers changed.
5892 (Fequal_including_properties): New function.
5893 (syms_of_fns): defsubr it.
5894
45034953
KS
58952004-03-12 Kim F. Storm <storm@cua.dk>
5896
5897 Fix image support on MAC. From YAMAMOTO Mitsuharu.
37264101 5898
45034953
KS
5899 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
5900 (image_background, image_background_transparent): Fix prototypes.
5901
37264101 5902 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
45034953
KS
5903
5904 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
5905 (x_query_font, x_find_ccl_program, x_set_window_size)
5906 (x_make_frame_visible, mac_initialize, XCreatePixmap)
5907 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
5908 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
5909
5910 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
5911 (x_query_font, x_find_ccl_program, x_set_window_size)
5912 (x_make_frame_visible, mac_initialize, XCreatePixmap)
5913 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
5914 (mac_draw_line_to_pixmap): Add prototypes.
5915
59162004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5917
5918 * macterm.c (XTread_socket): Fix mouse click on tool bar.
5919
a12d3d87
KS
59202004-03-11 Kim F. Storm <storm@cua.dk>
5921
d3ab1cf1
KS
5922 * dispextern.h: Move image related prototypes from xfns.c section
5923 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
5924 HAVE_X_WINDOWS.
37264101 5925
37de9f51 5926 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
37264101 5927 Move gtkutil.o to new GTK_OBJ list.
a12d3d87
KS
5928 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
5929 (GTK_OBJ) [USE_GTK]: New declaration.
5930 (obj): Add $(GTK_OBJ) to list.
5931
5243c06a 59322004-03-11 Steven Tamm <steventamm@mac.com>
5109b06a 5933
7e26f91b 5934 * image.c [MAC_OSX]: Include sys/stat.h.
5243c06a
ST
5935
5936 * macfns.c (syms_of_macfns): Remove definitions of things now
7e26f91b 5937 defined in image.c.
5243c06a 5938
c0f97789
KS
59392004-03-11 Kim F. Storm <storm@cua.dk>
5940
5941 The following changes consolidates the identical/similar image
5942 support code previously found in xfns.c, w32fns.c, and macfns.c
5943 into a new file image.c.
5944
5945 * makefile.w32-in (OBJ1): Add image.o.
5946 ($(BLD)/image.$(O)): Add dependencies.
5947
5948 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
5949 (image.o): Add dependencies.
37264101 5950
c0f97789
KS
5951 * image.c: New file with consolidated image support code.
5952 (COLOR_TABLE_SUPPORT): New define to control whether
5953 color table support is available (X only).
5954 (Bitmap_Record): Common name for x_bitmap_record,
5955 w32_bitmap_record, and mac_bitmap_record.
5956 (XImagePtr): Common name for pointer to XImage or equivalent.
5957 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
5958 to XImagePtr on X+MAC, and to HDC on W32.
5959 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
5960 (NO_PIXMAP): Common name for "None" or equivalent.
5961 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
5962 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
5963 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
37264101
SM
5964 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
5965 Define with suitable equivalents on W32 and MAC for code sharing.
c0f97789
KS
5966 (XDrawLine): Define on MAC for code sharing.
5967 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
5968 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
5969 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
5970 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
5971 (x_reference_bitmap, x_create_bitmap_from_data)
5972 (x_create_bitmap_from_file, x_destroy_bitmap)
5973 (x_destroy_all_bitmaps, x_create_bitmap_mask)
5974 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
5975 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
5976 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
5977 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
5978 (define_image_type, lookup_image_type, valid_image_p)
5979 (image_error, enum image_value_type, struct image_keyword)
5980 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
5981 (make_image, free_image, prepare_image_for_display, image_ascent)
5982 (four_corners_best, image_background, image_background_transparent)
5983 (x_clear_image_1, x_clear_image, x_alloc_image_color)
5984 (make_image_cache, free_image_cache, clear_image_cache)
5985 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
5986 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
5987 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
5988 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
5989 (init_image_func_pointer, image_load_quartz2d)
5990 (struct ct_color, init_color_table, free_color_table)
5991 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
5992 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
5993 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
5994 (x_disable_image, x_build_heuristic_mask)
5995 (XBM support, XPM support, PBM support, PNG support, JPEG support)
5996 (TIFF support, GIF support, Ghostscript support): Consolidate image
5997 code from xfns.c, w32fns.c, and macfns.c.
5998 (syms_of_image): Consolidate image related symbol setup here.
5999 (init_image): Consolidate image related initializations here.
37264101 6000
c0f97789
KS
6001 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
6002 and init_image. Remove call to init_xfns.
6003
37264101
SM
6004 * macterm.h (struct mac_bitmap_record): Add file member.
6005 Not currently used, but simplifies code sharing.
c0f97789
KS
6006
6007 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
6008 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
6009 (x_reference_bitmap, x_create_bitmap_from_data)
6010 (x_create_bitmap_from_file, x_destroy_bitmap)
6011 (x_destroy_all_bitmaps, x_create_bitmap_mask)
6012 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
6013 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
6014 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
6015 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
6016 (define_image_type, lookup_image_type, valid_image_p)
6017 (image_error, enum image_value_type, struct image_keyword)
6018 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
6019 (make_image, free_image, prepare_image_for_display, image_ascent)
6020 (four_corners_best, image_background, image_background_transparent)
6021 (x_clear_image_1, x_clear_image, x_alloc_image_color)
6022 (make_image_cache, free_image_cache, clear_image_cache)
6023 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
6024 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
6025 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
6026 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
6027 (init_image_func_pointer, image_load_quartz2d)
6028 (struct ct_color, init_color_table, free_color_table)
6029 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
6030 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
6031 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
6032 (x_disable_image, x_build_heuristic_mask)
6033 (XBM support, XPM support, PBM support, PNG support, JPEG support)
6034 (TIFF support, GIF support, Ghostscript support): Merge with image
6035 code from xfns.c and macfns.c into image.c.
6036 (syms_of_xfns): Move image related symbols to image.c.
6037 (init_external_image_libraries, init_xfns): Remove; initialization
6038 moved to init_image in image.c.
6039
6040 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
6041 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
6042 (x_reference_bitmap, x_create_bitmap_from_data)
6043 (x_create_bitmap_from_file, x_destroy_bitmap)
6044 (x_destroy_all_bitmaps, x_create_bitmap_mask)
6045 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
6046 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
6047 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
6048 (define_image_type, lookup_image_type, valid_image_p)
6049 (image_error, enum image_value_type, struct image_keyword)
6050 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
6051 (make_image, free_image, prepare_image_for_display, image_ascent)
6052 (four_corners_best, image_background, image_background_transparent)
6053 (x_clear_image_1, x_clear_image, x_alloc_image_color)
6054 (make_image_cache, free_image_cache, clear_image_cache)
6055 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
6056 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
6057 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
6058 (struct ct_color, init_color_table, free_color_table)
6059 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
6060 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
6061 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
6062 (x_disable_image, x_build_heuristic_mask)
6063 (XBM support, XPM support, PBM support, PNG support, JPEG support)
6064 (TIFF support, GIF support, Ghostscript support): Merge with image
6065 code from xfns.c and macfns.c into image.c.
6066 (syms_of_xfns): Move image related symbols to image.c.
6067 (init_external_image_libraries, init_xfns): Remove; initialization
6068 moved to init_image in image.c.
6069
6070 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
6071 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
6072 (x_reference_bitmap, x_create_bitmap_from_data)
6073 (x_create_bitmap_from_file, x_destroy_bitmap)
6074 (x_destroy_all_bitmaps, x_create_bitmap_mask)
6075 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
6076 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
6077 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
6078 (define_image_type, lookup_image_type, valid_image_p)
6079 (image_error, enum image_value_type, struct image_keyword)
6080 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
6081 (make_image, free_image, prepare_image_for_display, image_ascent)
6082 (four_corners_best, image_background, image_background_transparent)
6083 (x_clear_image_1, x_clear_image, x_alloc_image_color)
6084 (make_image_cache, free_image_cache, clear_image_cache)
6085 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
6086 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
6087 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
6088 (struct ct_color, init_color_table, free_color_table)
6089 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
6090 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
6091 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
6092 (x_disable_image, x_build_heuristic_mask)
6093 (XBM support, XPM support, PBM support, PNG support, JPEG support)
6094 (TIFF support, GIF support, Ghostscript support): Merge with
6095 w32fns.c and macfns.c image code into image.c.
6096 (syms_of_xfns): Move image related symbols to image.c.
6097 (init_xfns): Remove; initialization moved to init_image in image.c.
6098
6099 * lisp.h (syms_of_image, init_image): Add protoypes.
6100 (init_xfns): Remove prototype.
6101
6102 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
6103 (x_reference_bitmap, x_create_bitmap_from_data)
6104 (x_create_bitmap_from_file, x_destroy_bitmap)
6105 (x_create_bitmap_mask): Move prototypes from dispextern.h.
6106 (gamma_correct) [MAC_OS]: Add prototype.
6107
6108 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
6109 (x_reference_bitmap, x_create_bitmap_from_data)
6110 (x_create_bitmap_from_file, x_destroy_bitmap)
6111 (x_create_bitmap_mask): Move prototypes to dispextern.h.
6112
6eced09c
KH
61132004-03-09 Kenichi Handa <handa@etlken2>
6114
6115 * coding.c (decode_coding_emacs_mule): Handle insufficent source
6116 correctly.
6117
9a7e95f3
RS
61182004-03-04 Richard M. Stallman <rms@gnu.org>
6119
04a6e76b
RS
6120 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
6121
9a7e95f3
RS
6122 * window.c (Fdisplay_buffer): Doc fix.
6123
6124 * buffer.c (Fpop_to_buffer): Doc fix.
6125
6c2488df
KS
61262004-03-03 Kim F. Storm <storm@cua.dk>
6127
6128 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
6129
d8d95bc7
SM
61302004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
6131
6132 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
6133
357589bf
RS
61342004-03-02 Richard M. Stallman <rms@gnu.org>
6135
6136 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
6137
409949b5
KH
61382004-03-02 Kenichi Handa <handa@m17n.org>
6139
6140 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
6141
d24bc50f
KS
61422004-03-02 Kim F. Storm <storm@cua.dk>
6143
6144 * window.h (struct window): New member overlay_arrow_bitmap.
6145
6146 * window.c (make_window): Initialize overlay_arrow_bitmap.
6147
6148 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
6149 implement and integrate multiple overlay arrows with redisplay.
6150 (syms_of_xdisp): DEFVAR_LISP and initialize it.
6151 (last_arrow_position, last_arrow_string): Replace by properties.
6152 (Qlast_arrow_position, Qlast_arrow_string)
6153 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
6154 (syms_of_xdisp): Intern and staticpro them.
6155 (overlay_arrow_string_or_property, update_overlay_arrows)
6156 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
6157 (overlay_arrow_at_row): New functions for multiple overlay arrows.
6158 (redisplay_internal): Use them instead of directly accessing
6159 Voverlay_arrow_position etc. for multiple overlay arrows.
6160 (mark_window_display_accurate): Use update_overlay_arrows.
6161 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
6162 (try_window_id): Use overlay_arrows_changed_p.
6163 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
6164 (display_line): Use overlay_arrow_at_row to check multiple
6165 overlay arrows, and get relevant overlay-arrow-string and
d8d95bc7 6166 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
d24bc50f
KS
6167 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
6168 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
6169
6170 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
6171 (update_window_fringes): Remove unused code.
6172
c1464661
JR
61732004-03-01 Jason Rumney <jasonr@gnu.org>
6174
6175 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
6176
a64387ee
JB
61772004-03-01 Juanma Barranquero <lektu@terra.es>
6178
6179 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
6180
6181 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
6182
334faa08
JD
61832004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6184
6185 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
6186 how many colors can be displayed.
6187
bb62616f
KH
61882004-03-01 Kenichi Handa <handa@m17n.org>
6189
6190 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
6191 correctly.
6192
0fd16104
KS
61932004-02-28 Kim F. Storm <storm@cua.dk>
6194
6195 * dispnew.c (update_window): Update header line also if there are
6196 no other changes in window (move code after set_cursor label).
6197
6198 * lisp.h (mark_window_display_accurate): Remove prototype.
6199
6200 * window.c (window_loop, Fforce_window_update): Force mode line
6201 updates by setting prevent_redisplay_optimizations_p and
6202 update_mode_lines.
6203
b59dd9c8
JD
62042004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6205
d8d95bc7 6206 * xfns.c (x_window): Fix indentation.
b59dd9c8
JD
6207
6208 * xterm.c (x_calc_absolute_position): Call x_real_positions
6209 to get WM window sizes and use those to calculate position.
d8d95bc7 6210 (x_set_offset): Remove code commented out.
b59dd9c8 6211
a874691c
MB
62122004-02-28 Miles Bader <miles@gnu.org>
6213
6214 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
6215
3e0c6482
KS
62162004-02-28 Kim F. Storm <storm@cua.dk>
6217
6218 * keyboard.c (kbd_buffer_store_event_hold): New function to store
6219 an event into kbd fifo, but with special handling of quit event;
6220 a quit event is saved for later, and further events are discarded
6221 until the saved quit event has been processed.
6222 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
6223 (gen_help_event): Store help event in kbd fifo.
6224 (NREAD_INPUT_EVENTS): Remove.
6225 (read_avail_input): Adapt to new read_socket_hook interface.
6226 Remove allocation and initialization of local input_event buffer,
6227 as read_socket_hook stores events directly in fifo. Allocate and
6228 initialize local hold_quit event to handle postponed quit event
6229 (and store it if set by kbd_buffer_store_event_hold).
6230
6231 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
6232 (gen_help_event): Fix prototype.
6233
a64387ee 6234 * macterm.c (XTread_socket): Remove bufp_r and
3e0c6482 6235 numcharsp args. Add hold_quit arg.
f63fd14e 6236 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
6237 directly in fifo using kbd_buffer_store_event_hold.
6238
6239 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
6240 (read_input_waiting): Adapt to new read_socket_hook interface.
6241 Remove allocation and initialization of local input_event buffer,
6242 as read_socket_hook stores events directly in fifo. Allocate and
6243 initialize local hold_quit event to handle postponed quit event
6244 (and store it if set by kbd_buffer_store_event_hold).
6245
a64387ee 6246 * term.c (read_socket_hook): Fix arg list.
3e0c6482
KS
6247
6248 * termhooks.h (read_socket_hook): Fix prototype.
6249
6250 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
6251 numcharsp args. Add hold_quit arg.
f63fd14e 6252 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
6253 directly in fifo using kbd_buffer_store_event_hold.
6254
6255 * w32inevt.h (w32_console_mouse_position): Fix prototype.
6256
6257 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
f63fd14e
JB
6258 Add hold_quit arg. Rework to use just one, local, inev
6259 input_event. Store inev directly in fifo using
3e0c6482
KS
6260 kbd_buffer_store_event_hold. Update count in one place.
6261 Postpone call to gen_help_event until inev is stored; use new
6262 local do_help for this.
6263 Remove local emacs_event in handing of ButtonPress event; just use
6264 inev instead (so no reason to copy it later).
6265
6266 * xsmfns.c (x_session_check_input): Remove numchars arg.
6267
d8d95bc7
SM
6268 * xterm.c (x_focus_changed, x_detect_focus_change):
6269 Remove numchars arg. Always store event into bufp arg.
6270 Return nothing. Callers changed accordingly.
3e0c6482
KS
6271 (glyph_rect): Simplify.
6272 (STORE_KEYSYM_FOR_DEBUG): New macro.
6273 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
6274 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
6275 (current_hold_quit) [USE_GTK]: Add.
6276 (event_handler_gdk): Adapt to new handle_one_xevent.
6277 (handle_one_xevent): Remove bufp_r and numcharsp args.
f63fd14e
JB
6278 Add hold_quit arg. Rework to use just one, local, inev
6279 input_event. Store inev directly in fifo using
3e0c6482
KS
6280 kbd_buffer_store_event_hold. Update count in one place.
6281 Postpone call to gen_help_event until inev is stored; use new
6282 local do_help for this.
6283 Simplify handling of keysyms (consolidate common code). Fix bug
6284 where count was updated with nchars instead of nbytes.
6285 Remove local emacs_event in handing of ButtonPress event; just use
6286 inev instead (so no reason to copy it later).
6287 Remove `out' label. Rename label `ret' to `done'; add various
6288 `goto done' to clarify code flow in deeply nested blocks.
6289 (x_dispatch_event): Simplify as handle_one_xevent now calls
6290 kbd_buffer_store_event itself.
f63fd14e 6291 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
3e0c6482
KS
6292 arg. Call handle_one_xevent with new arglist. Store event from
6293 x_session_check_input in fifo.
6294 [USE_GTK]: Setup current_hold_quit.
6295 Decrement handling_signal before unblocking input.
6296 (x_initialize) [USE_GTK]: Initialize current_count.
6297
6298 * xterm.h (x_session_check_input): Fix prototype.
6299
e3564461 63002004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
a64387ee 6301
d8d95bc7 6302 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
a64387ee 6303
e3564461
ST
6304 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
6305 macgui.h).
a64387ee 6306
e3564461 6307 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
a64387ee 6308
e3564461
ST
6309 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
6310 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
6311 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
6312 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
6313 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
6314 (Bitmap): Remove typedef.
6315 (Pixmap): Change int to GWorldPtr.
6316
d8d95bc7 6317 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
a64387ee 6318
d8d95bc7
SM
6319 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
6320 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
6321 New #define to extract 16-bit depth color components from unsigned
e3564461
ST
6322 long representation.
6323 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
6324 colors used for masks.
6325 (struct mac_display_info): Add color_p. Remove n_cbits.
a64387ee 6326
e3564461
ST
6327 * macfns.c: Include sys/types.h and sys/stat.h.
6328 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
6329 Include QuickTime/QuickTime.h.
6330 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
6331 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
6332 functions defined in macterm.c.
6333 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
6334 (ZPixmap): New #define for compatibility with xfns.c.
6335 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
6336 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
d8d95bc7
SM
6337 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
6338 New functions.
e3564461 6339 (four_corners_best, x_create_x_image_and_pixmap)
d8d95bc7
SM
6340 (x_destroy_x_image, unwind_create_frame, x_disable_image)
6341 (x_edge_detection, init_color_table, colors_in_color_table)
e3564461
ST
6342 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
6343 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
6344 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
6345 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
6346 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
6347 long mixup.
6348 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
6349 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
6350 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
6351 (x_set_cursor_type, Fxw_color_values, valid_image_p)
6352 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
6353 (x_alloc_image_color, clear_image_cache, lookup_image)
6354 (x_find_image_file, xbm_read_bitmap_file_data)
6355 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
6356 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
6357 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
6358 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
6359 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
d8d95bc7 6360 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
e3564461
ST
6361 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
6362 #if 0.
6363 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
6364 #if 0. Free white_relief.gc and black_relief.gc.
d8d95bc7
SM
6365 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
6366 New functions (from xfns.c).
e3564461
ST
6367 (Fx_create_frame): Record unwind_create_frame.
6368 (Fxw_display_color_p): Use dpyinfo->color_p.
6369 (Fx_display_grayscale_p, Fx_display_planes): Don't use
6370 dpyinfo->n_cbits.
6371 (Fx_display_color_cells): Use dpyinfo->n_planes;
6372 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
6373 (Qheuristic, cross_disabled_images, emboss_matrix)
6374 (laplace_matrix): New variables (from xfns.c).
6375 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
6376 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
6377 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
d8d95bc7
SM
6378 (image_background_transparent): New function (from xfns.c).
6379 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
6380 (image_load_quicktime): Add declaration.
6381 [MAC_OSX] (image_load_quartz2d): Likewise.
6382 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
6383 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
d8d95bc7 6384 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
e3564461
ST
6385 (xbm_load_image_from_file, x_laplace_read_row)
6386 (x_laplace_write_row, pbm_read_file): Remove functions.
6387 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
6388 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
6389 (colors_in_color_table): Sync with xfns.c (although not used).
6390 (lookup_rgb_color): Don't lookup color table. Just do gamma
6391 correction.
6392 (COLOR_INTENSITY): New #define (from xfns.c).
d8d95bc7
SM
6393 (x_disable_image): New function (from xfns.c).
6394 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
6395 (x_build_heuristic_mask): Sync with xfns.c.
6396 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
6397 (HAVE_PBM): Remove #ifdef.
6398 (pbm_load): Sync with xfns.c. Set img->width and img->height
6399 before IMAGE_BACKGROUND.
d8d95bc7 6400 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
e3564461
ST
6401 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
6402 Don't enclose with #if HAVE_PNG.
6403 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
d8d95bc7
SM
6404 symbol _CGImageCreateWithPNGDataProvider is defined.
6405 Otherwise use image_load_quicktime.
e3564461 6406 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
d8d95bc7
SM
6407 [HAVE_PNG] (png_load): Sync with xfns.c.
6408 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
6409 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
6410 HAVE_JPEG.
6411 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
6412 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
6413 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
6414 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
6415 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
6416 (tiff_image_p, tiff_load): Don't enclose declarations with #if
6417 HAVE_TIFF.
6418 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
6419 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
6420 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
d8d95bc7
SM
6421 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
6422 New functions (from xfns.c).
e3564461 6423 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
d8d95bc7 6424 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
e3564461
ST
6425 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
6426 Don't enclose with #if HAVE_GIF.
6427 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
6428 animated gif. Otherwise use image_load_quicktime.
6429 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
6430 gif_DrawText to avoid conflict with QuickdrawText.h.
6431 [HAVE_GIF] (gif_load): Sync with xfns.c.
6432 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
6433 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
6434 Ghostscript is not supported yet).
6435 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
6436 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
6437 cross_disabled_images (from xfns.c). Remove #if 0 for supported
6438 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
6439 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
6440 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
d8d95bc7
SM
6441 HAVE_PNG. Call EnterMovies to support animated gifs.
6442 Call init_image_func_pointer to bind a symbol
e3564461 6443 _CGImageCreateWithPNGDataProvider if it is defined.
a64387ee 6444
d8d95bc7 6445 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
e3564461
ST
6446 (x_draw_bar_cursor): Sync declaration with xterm.c.
6447 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
6448 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
6449 graphics).
6450 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
6451 (mac_draw_line_to_pixmap, XCreatePixmap)
6452 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
d8d95bc7
SM
6453 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
6454 New functions.
6455 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
6456 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
6457 Cast bits to char *.
e3564461
ST
6458 (reflect_byte): New function (from w32fns.c).
6459 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
6460 due to byte alignment.
d8d95bc7
SM
6461 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
6462 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
e3564461
ST
6463 (XSetForeground): Remove static (now used in macfns.c).
6464 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
6465 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
6466 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
6467 (x_draw_glyph_string_box, x_draw_image_foreground)
6468 (x_draw_image_foreground_1, x_draw_image_glyph_string)
6469 (x_draw_stretch_glyph_string, x_draw_glyph_string)
6470 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
6471 Sync with xterm.c.
6472 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
6473 than the xterm.c version when a strictly horizontal or vertical
6474 line is drawn.
6475 (XTset_terminal_window): Add static.
6476 (x_make_frame_visible): Add UNBLOCK_INPUT.
6477 (x_free_frame_resources): New funcion (from xterm.c).
6478 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
6479 occurs in tool bar area.
d8d95bc7
SM
6480 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
6481 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
e3564461
ST
6482 Initialize image cache.
6483 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
6484 Enclose unused functions with #if 0.
6485 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
6486 (decode_mac_font_name): New function to apply code conversions
d8d95bc7 6487 from a mac font name to an XLFD font name according to its script code.
e3564461 6488 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
d8d95bc7 6489 font name to a mac font name according to REGISTRY and ENCODING fields.
e3564461
ST
6490 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
6491 whose name starts with `.'.
6492 (init_font_name_table): Use decode_mac_font_name. Add both
6493 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
6494 of a font is smJapanese.
6495 (mac_do_list_fonts): New function to list fonts that match a given
6496 pattern.
6497 (x_list_fonts, XLoadQueryFont): Use it.
6498 (XLoadQueryFont): Set rbearing field for each variable width
6499 character to avoid needless redraw.
6500 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
6501
446f5f3d
KS
65022004-02-26 Kim F. Storm <storm@cua.dk>
6503
af617d0f
KS
6504 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
6505 as read_socket_hook handler on X aborts if buffer is too small
6506 and W32 handler doesn't always check buffer limit.
6507
446f5f3d
KS
6508 * xdisp.c (handle_single_display_prop): Handle left-fringe and
6509 right-fringe similar to a display margin image. Specifically,
6510 the characters having the fringe prop are no longer shown, and
6511 we use IT_IMAGE/next_element_from_image with image_id = -1 to
6512 do this. Set fringe bitmap face_id in it->face_id.
6513 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
6514 still realize it->face (i.e. the fringe bitmap face).
6515
7d8a0b55
MB
65162004-02-25 Miles Bader <miles@gnu.org>
6517
6518 * xdisp.c (check_it): Check string/string_pos consistency.
6519 (init_iterator): Initialize string-related fields properly.
6520
65212004-02-11 Miles Bader <miles@gnu.org>
6522
6523 * xdisp.c (produce_image_glyph): Force negative descents to zero.
6524
65252004-02-10 Miles Bader <miles@gnu.org>
6526
6527 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
6528 BLOCK_INPUT can be nested, so it doesn't make much sense.
6529
a64387ee 65302004-02-24 Michael Mauger <mmaug@yahoo.com>
ce35edd1
JR
6531
6532 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
6533 (xbm_read_bitmap_data): Use unsigned char for image data.
6534
92f5fba2
LT
65352004-02-23 Luc Teirlinck <teirllm@auburn.edu>
6536
6537 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
6538
8565fb3d
JR
65392004-02-22 Jason Rumney <jasonr@gnu.org>
6540
6541 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
6542 correctly over other bitmaps.
6543
a6eeaa81 65442004-02-21 Eli Zaretskii <eliz@gnu.org>
f8125c39
EZ
6545
6546 * emacs.c (USAGE1): Split into two halves.
6547 (USAGE2): Second half of the old USAGE1.
d8d95bc7
SM
6548 (USAGE3): Rename from USAGE2.
6549 (USAGE4): Rename from USAGE3.
f8125c39 6550
4effffca
EZ
65512004-02-21 Juri Linkov <juri@jurta.org>
6552
6553 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
6554 Fix --multibyte. Move --help, --version to USAGE2. Add alias
6555 --file. Fix -f, -l. Sort options. Untabify.
6556 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
6557
923c1e6f
LT
65582004-02-19 Luc Teirlinck <teirllm@auburn.edu>
6559
6560 * category.c (Fdefine_category, Fcategory_docstring)
6561 (Fget_unused_category, Fset_category_table)
6562 (Fcategory_set_mnemonics): Doc fixes.
6563
b0e225fd
KS
65642004-02-20 Kim F. Storm <storm@cua.dk>
6565
6566 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
6567 The following changes are relative to the 2004-01-21 revision.
6568 (NREAD_INPUT_EVENTS): Define as max number of input events to read
6569 in one call to read_socket_hook. Value is 8.
6570 (read_avail_input): Separate and rework handling of read_socket_hook
6571 and non-read_socket_hook cases. Use smaller input_event buffer
d8d95bc7
SM
6572 in read_socket_hook case, and repeat if full buffer is read.
6573 Use new local variable 'discard' to skip input after C-g.
b0e225fd
KS
6574 In non-read_socket_hook case, just use a single input_event, and
6575 call kbd_buffer_store_event on the fly for each character.
6576
b15aa9f9
SM
65772004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
6578
6579 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
6580 Remove unused `gu' alternative.
6581
83c9aa95
AS
65822004-02-19 Andreas Schwab <schwab@suse.de>
6583
6584 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
6585 warning.
6586
cc808173
KS
65872004-02-18 Kim F. Storm <storm@cua.dk>
6588
6589 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
6590 Fix last change.
6591
ab90a54d
KS
65922004-02-17 Kim F. Storm <storm@cua.dk>
6593
b26f249f
KS
6594 * xdisp.c (fast_find_position): Fix return value of new version;
6595 it was inverted compared to the 21.1 version.
6596 (get_window_cursor_type): Don't look at glyph if NULL.
6597 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
0bf7d005 6598
ab90a54d
KS
6599 * keyboard.c: Rework previous change; it didn't consider that the
6600 buf array was allocated on the stack.
6601 (prev_read): Remove variable.
6602 (read_avail_input_buf): New static event buffer array.
b9568dfc 6603 (in_read_avail_input): New static variable to handle re-entrancy.
ab90a54d 6604 (read_avail_input): Change buf to pinter to read_avail_input_buf.
b9568dfc
KS
6605 Use in_read_avail_input to handle re-entrance; when re-entered,
6606 fully initialize and use tmp_buf array instead of read_avail_input_buf.
6607 Do not initialize read_avail_input_buf in full here; instead assume it
ab90a54d
KS
6608 is always cleared on entry. To ensure that, we clear (just) the
6609 entries that were used before we return.
6610 (init_keyboard): Initialize read_avail_input_buf here.
6611
b6189c3b 66122004-02-16 Jesper Harder <harder@ifa.au.dk>
4e039f3f
EZ
6613
6614 * cmds.c (Fend_of_line): Doc fix.
6615
7b5368c1
EZ
66162004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
6617
6618 * keyboard.c (prev_read): New static variable.
6619 (read_avail_input): Use it to zero out only those slots in buf[]
6620 that were used last time we were called.
6621
a6eeaa81 66222004-02-16 Eli Zaretskii <eliz@gnu.org>
ca4bc494
EZ
6623
6624 * Makefile.in (obj): Move fringe.o from here...
6625 (XOBJ, MAC_OBJ): ...to here.
6626
159c348e
SE
66272004-02-16 Stephen Eglen <stephen@gnu.org>
6628
6629 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
6630
d2f14999
SM
66312004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
6632
b15aa9f9
SM
6633 * data.c (Fbyteorder):
6634 * fringe.c (Fdefine_fringe_bitmap):
6635 * xdisp.c (handle_single_display_prop):
d2f14999
SM
6636 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
6637
8d50508a
JR
66382004-02-16 Jason Rumney <jasonr@gnu.org>
6639
6640 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
6641
dd4497dc
ST
66422004-02-15 Steven Tamm <steventamm@mac.com>
6643
6644 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
6645 controlling emulation of a three button mouse with option and
6646 command keys.
7e26f91b 6647 (Qreverse, mac_get_enumlated_btn): Handle the emulation.
b15aa9f9 6648 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
dd4497dc 6649
c9159cb3
KS
66502004-02-15 Kim F. Storm <storm@cua.dk>
6651
2cc52658
KS
6652 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
6653
c9159cb3
KS
6654 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
6655 Perform byte-swapping.
6656
12fde2dc
KS
66572004-02-14 Kim F. Storm <storm@cua.dk>
6658
6659 * dispextern.h (struct draw_fringe_bitmap_params): Change member
6660 bits from char to short to facilitate wider bitmaps.
6661 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
6662 member.
6663
6664 * fringe.c (struct fringe_bitmap): Change member bits from char to
6665 short to facilitate 16 bits wide bitmaps. Modify all standard
6666 bitmaps accordingly.
6667 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
6668 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
6669 (draw_fringe_bitmap): Ditto.
6670 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
6671 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
6672 handle up to 16 bits wide bitmaps.
6673 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
f21a7192 6674 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
12fde2dc
KS
6675
6676 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
6677 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
6678 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
6679
6680 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
6681 so it is no longer necessary to expand them here.
6682
6683 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
6684
9d7271e8
KS
66852004-02-12 Kim F. Storm <storm@cua.dk>
6686
6687 * window.c (Fwindow_fringes): Doc fix.
6688
706c1e4f
JD
66892004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6690
6691 * xselect.c (x_get_foreign_selection): Add new optional parameter
6692 time_stamp.
6693 (Fx_get_selection_internal): Ditto, pass time_stamp to
6694 x_get_foreign_selection.
6695
6696 * data.c (Fbyteorder): New function.
6697
c2d12b5d
JD
66982004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6699
6700 * atimer.c: Move include stdio.h to same place as in other files.
6701
6702 * region-cache.c: Ditto.
6703
6704 * sysdep.c: Ditto.
6705
6706 * xfaces.c: Ditto.
6707
4c1947b9
SS
67082004-02-09 Sam Steingold <sds@gnu.org>
6709
89458937 6710 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
4c1947b9 6711
82722af3
KS
67122004-02-09 Kim F. Storm <storm@cua.dk>
6713
6714 * fringe.c: New file. Move original fringe related declarations
6715 and code from dispextern.h and xdisp.c here.
6716 Rework code to support user defined fringe bitmaps, redefining
6717 standard bitmaps, ability to overlay user defined bitmap with
6718 overlay arrow bitmap, and add faces to bitmaps.
6719 (Voverflow_newline_into_fringe): Declare here.
6720 (enum fringe_bitmap_align): New enum.
6721 (..._bits): All bitmaps are now defined without bitswapping; that
6722 is now done in init_fringe_once (if necessary).
6723 (standard_bitmaps): New array with specifications for the
6724 standard fringe bitmaps.
6725 (fringe_faces): New array.
6726 (valid_fringe_bitmap_id_p): New function.
6727 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
6728 (draw_fringe_bitmap): New function which draws fringe bitmap,
6729 possibly overlaying bitmap with cursor in right fringe or the
6730 overlay arrow in the left fringe.
6731 (update_window_fringes): Do not handle overlay arrow here.
6732 Compare and copy fringe bitmap faces.
6733 (init_fringe_bitmap): New function.
6734 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
6735 define and destroy user defined fringe bitmaps.
6736 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
6737 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
6738 (syms_of_fringe): New function. Defsubr new DEFUNs.
6739 DEFVAR_LISP Voverflow_newline_into_fringe.
6740 (init_fringe_once, init_fringe): New functions.
6741 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
4c1947b9 6742
82722af3
KS
6743 * Makefile.in (obj): Add fringe.o.
6744 (fringe.o): New dependencies.
6745
6746 * dispextern.h (FRINGE_ID_BITS): New definition for number of
6747 bits allocated to hold a fringe number. Increase number of bits
6748 from 4 to 8 to allow user defined fringe bitmaps.
6749 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
6750 left_user_fringe_face_id, right_user_fringe_bitmap,
6751 right_user_fringe_face_id.
6752 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
6753 Move to new file fringe.c.
6754 (MAX_FRINGE_BITMAPS): Define here.
6755 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
6756 and overlay_p. Change member which to int.
6757 (struct redisplay_interface): New members define_fringe_bitmap
6758 and destroy_fringe_bitmap.
6759 (valid_fringe_bitmap_id_p): Add prototype.
6760 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
6761
6762 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
6763 arrows.
6764 (update_frame): Do flush_display if force_flush_display_p to
6765 ensure display (specifically fringes) are updated in a timely
6766 manner when resizing the frame by dragging the mouse.
6767 (update_window_line): Update row if overlay arrow changed.
6768 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
6769 or overlay arrow changed.
6770
6771 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
6772 syms_of_fringe, and init_fringe.
6773
6774 * frame.h (struct frame): New member force_flush_display_p.
6775
6776 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
6777 Add prototypes.
6778
a3993cc8 6779 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
a64387ee 6780 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
a3993cc8
KS
6781 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
6782 Use cursor color for displaying cursor in fringe.
82722af3
KS
6783 (x_redisplay_interface): Add null handlers for
6784 define_fringe_bitmap and destroy_fringe_bitmap functions.
6785
6786 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
6787 xterm.c to handle overlayed fringe bitmaps and to use cursor color
6788 for displaying cursor in fringe.
6789 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
6790 specific functions to define and destroy fringe bitmaps in fringe_bmp.
6791 (w32_redisplay_interface): Add them to redisplay_interface.
6792 (w32_term_init): Call w32_init_fringe instead of explicitly
6793 defining fringe bitmaps in fringe_bmp array.
6794 (x_delete_display): Call w32_reset_fringes instead of explicitly
6795 destroying fringe bitmaps in fringe_bmp array.
6796
6797 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
6798 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
6799 (continued_bits, continuation_bits, ov_bits, first_line_bits)
6800 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
6801 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
6802 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
6803 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
6804 Move fringe handling vars and code to new file fringe.c.
6805 (handle_display_prop): Handle left-fringe and right-fringe
6806 display properties; store user fringe bitmaps in iterator.
6807 (move_it_in_display_line_to): Handle cursor in fringe at eob.
6808 (clear_garbaged_frames): Set force_flush_display_p if resized.
6809 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
6810 (display_line): Handle cursor in fringe at eob.
6811 (display_line): Set row user fringe bitmaps from iterator.
6812
6813 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
6814 Use cursor color for displaying cursor in fringe.
6815 (x_redisplay_interface): Add null handlers for
6816 define_fringe_bitmap and destroy_fringe_bitmap functions.
6817
030400eb
JD
68182004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6819
6820 * macfns.c (Fx_change_window_property): Make doc string and
6821 parameters same as for X version.
6822
6823 * w32fns.c (Fx_change_window_property): Ditto.
6824
3af55251
KS
68252004-02-07 Kim F. Storm <storm@cua.dk>
6826
ec110e9e
KS
6827 * xdisp.c (hscroll_window_tree): Position cursor near to right
6828 margin in hscrolled window when jumping to end of line (rather
6829 than centering cursor).
6830
3af55251
KS
6831 * process.c (wait_reading_process_input): Don't do adaptive read
6832 buffering if waiting for a specific process.
6833
b0c138ce
LT
68342004-02-05 Luc Teirlinck <teirllm@auburn.edu>
6835
6836 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
6837 (Fread_minibuffer, Feval_minibuffer)
6838 (Fread_string, Fread_no_blanks_input)
6839 (Fcompleting_read): Doc fixes.
6840 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
6841 completion-regexp-list. Define Qcase_fold_search and staticpro it.
6842 (read_minibuf): Fix initial comment.
6843 (Ftry_completion, Fall_completions, Ftest_completion): Bind
e8eeaed8 6844 case-fold-search to the value of completion-ignore-case when
b0c138ce
LT
6845 checking completion-regexp-list.
6846 (Fdisplay_completion_list): Make it handle arguments that are
6847 symbols. Doc fix.
6848
9676f5ad 68492004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
64d1e373 6850
9676f5ad 6851 * xterm.h: Add declaration of free_frame_menubar.
64d1e373 6852
9676f5ad
JD
6853 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
6854 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
b0c138ce 6855 (Fx_change_window_property): Add declaration of parameters type and
9676f5ad 6856 format. Remove unused variable cons.
5b698285
JD
6857
6858 * xselect.c: Include stdio,h.
6859
fc1d15f6
KH
68602004-02-05 Kenichi Handa <handa@m17n.org>
6861
ebaff4af
KH
6862 * fns.c (Fset_char_table_range): Fix previous change.
6863
fc1d15f6
KH
6864 * buffer.c (Fset_buffer_multibyte): Fix docstring.
6865
9676f5ad
JD
68662004-02-04 Luc Teirlinck <teirllm@auburn.edu>
6867
6868 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
6869
da75761f
SM
68702004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
6871
6872 * keymap.c (Vmouse_events): Rename from Vmenu_events.
6873 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
6874
13c5d120
KH
68752004-02-04 Kenichi Handa <handa@m17n.org>
6876
6877 * fns.c (Fset_char_table_range): Handle charsets ascii,
6878 eight-bit-control, and eight-bit-graphic correctly.
6879
2883d842
JR
68802004-02-03 Jason Rumney <jasonr@gnu.org>
6881
6882 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
6883
6884 * w32fns.c (x_to_w32_font): Likewise.
6885
69eff41f
JD
68862004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6887
6888 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
6889 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
6890
6891 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
6892 ClientMessages.
6893
6894 * xselect.c: Include termhooks.h and X11/Xproto.h
6895 (x_check_property_data, x_fill_property_data)
6896 (x_property_data_to_lisp, mouse_position_for_drop)
6897 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
da75761f 6898 (Fx_send_client_event): Move here from xfns.c.
69eff41f
JD
6899 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
6900
da75761f 6901 * xfns.c (x-send-client-message): Move to xselect.c
69eff41f
JD
6902 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
6903 OUTER_P.
6904 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
6905 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
6906 if vector_ret_p is true.
6907 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
69eff41f 6908
a6eeaa81 69092004-02-02 Eli Zaretskii <eliz@gnu.org>
dcdbbb5d
EZ
6910
6911 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
6912 basename of FILE relative to it, not FILE itself.
6913
09721b31
KH
69142004-02-02 Kenichi Handa <handa@m17n.org>
6915
6916 * coding.c (coding_restore_composition): Check invalid
6917 composition data more rigidly.
6918
eb996101
LT
69192004-01-30 Luc Teirlinck <teirllm@auburn.edu>
6920
6921 * fileio.c (Fread_file_name_internal): Correctly handle the case
6922 where insert-default-directory is nil.
6923 (Fread_file_name): Always return an empty string if the user exits
6924 with an empty minibuffer. Adapt the docstring accordingly.
6925 (syms_of_fileio): Adapt the docstring of insert-default-directory
6926 to the change in Fread_file_name.
6927
a6eeaa81 69282004-01-29 Eli Zaretskii <eliz@gnu.org>
a0367d42
EZ
6929
6930 * alloca.c [!alloca]: Fix the prototype for xfree.
6931
13f52ed8
KH
69322004-01-29 Kenichi Handa <handa@m17n.org>
6933
6934 * fns.c (string_char_to_byte): Optimize for ASCII only string.
6935 (string_byte_to_char): Likewise.
6936
d57625a0
JR
69372004-01-28 Peter Runestig <peter@runestig.com>
6938
6939 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
6940
a64387ee 69412004-01-27 Steven Tamm <steventamm@mac.com>
911c78b4
ST
6942
6943 * unexmacosx.c (unexec_copy): Do not copy more than was
6944 requested to prevent overwriting during unexec.
6945
eb37b8fd
JD
69462004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6947
ce38070a
JD
6948 * process.c (sigchld_handler): Add comment about not calling malloc.
6949
eb37b8fd
JD
6950 * process.h: Add extern to synch_process_termsig.
6951
a64387ee 69522004-01-27 Steven Tamm <steventamm@mac.com>
21a3e657 6953
da75761f
SM
6954 * macterm.c (make_mac_frame, make_mac_terminal_frame):
6955 Move setting of scroll bars from make_mac_frame to
6956 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
21a3e657 6957
d62a265d
RS
69582004-01-26 Richard M. Stallman <rms@gnu.org>
6959
6960 * search.c (Freplace_match): Handle nonexistent
6961 back-references properly.
6962
69632004-01-03 Richard M. Stallman <rms@gnu.org>
6964
6965 * window.c (decode_any_window): New function.
6966 (Fwindow_height, Fwindow_width, Fwindow_edges)
6967 (Fwindow_pixel_edges, Fwindow_inside_edges)
6968 (Fwindow_inside_pixel_edges): Use decode_any_window.
6969
ff236419
JD
69702004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6971
6972 * process.h: synch_process_termsig new variable.
6973
6974 * callproc.c: Define synch_process_termsig.
6975 (Fcall_process): Initiate synch_process_termsig to zero and
6976 check if non-zero and get signal name after subprocess has ended.
6977
6978 * process.c (sigchld_handler): Set synch_process_termsig
6979 if terminated by a signal. synch_process_death setting removed.
6980
6981 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
6982
41b867ea
AS
69832004-01-26 Andreas Schwab <schwab@suse.de>
6984
6985 * print.c (print_preprocess): Declare size as EMACS_INT to not
6986 lose bits.
6987 (print_object): Likewise.
6988 * alloc.c (Fpurecopy): Likewise.
6989
a08084ff
LT
69902004-01-25 Luc Teirlinck <teirllm@auburn.edu>
6991
6992 * window.c (Fwindow_minibuffer_p): Doc fix.
6993
b19ac475
JY
69942004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
6995
6996 * editfns.c (Fformat): Make both passes accept the same set of flags.
6997
fe905025
KH
69982004-01-23 Kenichi Handa <handa@m17n.org>
6999
7000 * fns.c (Fmd5): If OBJECT is a buffer different from the current
7001 one, set buffer to OBJECT temporarily.
7002
438fc6c0
SM
70032004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
7004
455316e2
SM
7005 * keyboard.c (kbd_buffer_gcpro): Remove.
7006 (kbd_buffer_store_event, clear_event, Fdiscard_input)
7007 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
7008 Don't initialize and/or maintain the variable any more. It was made
7009 redundant by my commit of 2003-06-15.
7010
438fc6c0
SM
7011 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
7012
5335a4ee
JD
70132004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7014
7015 * lisp.h: Add undef DECL_ALIGN.
7016
dcdaeebc
SM
70172004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
7018
7019 * process.c (wait_reading_process_input) [SYNC_INPUT]:
7020 Check interrupt_input_pending explicitly.
7021
7022 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
7023
7024 * keyboard.c (handle_async_input): New fun,
7025 extracted from input_available_signal.
7026 (input_available_signal, reinvoke_input_signal): Use it.
7027
9076a823
SM
70282004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
7029
d7107586
SM
7030 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
7031
7032 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
7033 manipulation macros for when tags are in the lower bits.
7034 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
7035 (DECL_ALIGN): New macro.
7036 (DEFUN): Use it.
7037
7038 * lisp.h [ENABLE_CHECKING]: Don't force union type.
7039
7040 * s/darwin.h (__attribute__): Remove outdated workaround.
7041
7042 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
7043
7044 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
7045 Don't check range of malloc address.
7046 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
7047
9076a823
SM
7048 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
7049
7050 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
7051
ba029065
KH
70522004-01-19 Kenichi Handa <handa@m17n.org>
7053
7054 * fontset.c (fontset_font_pattern): Fix previous change.
7055
7af0e8d7
MB
70562004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
7057
7058 * xdisp.c (Voverflow_newline_into_fringe)
7059 (move_it_in_display_line_to, redisplay_internal)
7060 (update_window_fringes, redisplay_window, display_line, window):
7061 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
7062 that it compiles without a window-system.
7063 * dispnew.c (direct_output_for_insert, update_window): Likewise.
7064
77a9cf69
KS
70652004-01-16 Kim F. Storm <storm@cua.dk>
7066
7067 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
7068
a64387ee 7069 * buffer.c (init_buffer_once): Set buffer_defaults and
77a9cf69
KS
7070 buffer_local_flags for indicate_buffer_boundaries.
7071 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
7072 default- variable for it.
7073
7074 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
7075 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
d7107586 7076 New members exact_window_width_line_p and cursor_in_fringe_p for
77a9cf69
KS
7077 overflowing newlines into right fringe.
7078 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
7079 and indicate_bottom_line_p for buffer boundaries and scrolling.
7080 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
7081 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
7082 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
7083 and HOLLOW_SQUARE_BITMAP.
7084 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
7085 Add prototypes.
7086
7087 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
7088 instead of related indicator fields.
7089 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
7090 (direct_output_for_insert): Handle exact width lines like
7091 contined lines. Call update_window_fringes.
7092 (update_window): Call update_window_fringes.
7093 (scrolling_window): Don't skip desired rows with changed bitmaps.
7094 Check if fringe bitmaps changes when assigning scrolled rows.
7095
7096 * xdisp.c (Voverflow_newline_into_fringe): New variable.
7097 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
7098 (move_it_in_display_line_to): Overflow newline into fringe for
7099 rows that are exactly as wide as the window.
7100 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
7101 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
7102 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
7103 (fringe_bitmaps): Add new bitmaps.
7104 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
7105 Select proper bitmap for cursor in fringe when appropriate.
7106 Handle alignment of bitmap to top or bottom of row.
7107 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
7108 done by update_window_fringes.
7109 (update_window_fringes, draw_window_fringes): New functions.
7110 (redisplay_internal): Call update_window_fringes in case only
7111 cursor row is updated.
7112 (redisplay_window): Call update_window_fringes.
7113 Explicitly call draw_window_fringes if redisplay was done using
7114 the current matrix or the overlay arrow is in the window.
7115 (try_window_reusing_current_matrix): Mark scrolled rows for
7116 fringe update (to update buffer-boundaries / scrolling icons).
7117 (find_last_unchanged_at_beg_row): Handle exact width lines line
7118 continued lines.
7119 (display_line): Overflow newline into fringe for rows that are
7120 exactly as wide as the window. Don't append space for newline
d7107586 7121 in this case.
77a9cf69
KS
7122 (notice_overwritten_cursor): Explicitly clear cursor bitmap
7123 in fringe as if it had been overwritten.
7124 (erase_phys_cursor): Erase cursor bitmap in fringe.
d7107586 7125 (syms_of_xdisp): Mark show-trailing-whitespace and
77a9cf69
KS
7126 void-text-area-pointer as user options.
7127 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
d7107586 7128
77a9cf69
KS
7129 * xterm.c (x_update_window_end): Call draw_window_fringes.
7130 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
7131 in row instead of actually drawing fringe bitmaps.
7132 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
7133 (x_draw_window_cursor): Draw cursor in fringe.
7134
7135 * w32term.c (x_update_window_end): Call draw_window_fringes.
7136 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
7137 in row instead of actually drawing fringe bitmaps.
7138 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
7139 (w32_draw_window_cursor): Draw cursor in fringe.
7140
7141 * macterm.c (x_update_window_end): Call draw_window_fringes.
7142 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
7143 in row instead of actually drawing fringe bitmaps.
7144 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
7145 (mac_draw_window_cursor): Draw cursor in fringe.
7146
a633a954
JD
71472004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7148
7149 * xterm.c (handle_one_xevent): Don't handle characters that are part
7150 of an old style (XLookupString) compose sequence.
7151
80460525
KH
71522004-01-15 Kenichi Handa <handa@m17n.org>
7153
7154 * search.c (Freplace_match): Use make_multibyte_string or
7155 make_unibyte_string according to the buffer multibyteness.
7156
7fc34f85
SM
71572004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
7158
7159 * alloc.c (struct interval_block, struct string_block)
7160 (struct symbol_block, struct marker_block, live_string_p)
7161 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
7162 Better preserve alignment for objects in blocks.
7163 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
7164
7165 * lread.c (defvar_per_buffer): Remove dead declaration.
7166
7167 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
7168 space size.
7169
66070bd1
JD
71702004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7171
7172 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
7173 if a key press should pop down. Only pop down if a key is pressed
7174 outside the menu/dialog.
7175 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
7176 popup_get_selection.
7177 (create_and_show_dialog): Pass 1 for down_on_keypress to
7178 popup_get_selection.
7179
de7515d6
JD
71802004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7181
7182 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
7183 BLOCK/UNBLOCK_INPUT.
7184
160b1b50
JD
71852004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7186
7187 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
7188 specified.
7189
3a9f36e6
KH
71902004-01-08 Kenichi Handa <handa@m17n.org>
7191
7192 * editfns.c (Fformat): Fix '&' to '&&'.
7193
3803eb32
AS
71942004-01-08 Andreas Schwab <schwab@suse.de>
7195
7196 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
7197 size if PSEUDOVECTOR_FLAG is set.
7198
9da88f37
KH
71992004-01-07 Kenichi Handa <handa@m17n.org>
7200
74ac5074
KH
7201 * charset.c (Fdeclare_equiv_charset): Fix docstring.
7202
9da88f37
KH
7203 * fontset.c (fontset_ref_via_base): Fix previous change.
7204
05faee07
KS
72052004-01-07 Kim F. Storm <storm@cua.dk>
7206
7207 * process.c (read_process_output): Only activate adaptive
7208 buffering if we read less than 256 bytes at a time.
7209
634910c8
KS
72102004-01-06 Kim F. Storm <storm@cua.dk>
7211
7212 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
7213 object and image object. Return glyph width and height.
7214 (mode_line_string, marginal_area_string): Ditto.
7215
7216 * dispextern.h (buffer_posn_from_coords, mode_line_string)
7217 (marginal_area_string): Fix prototypes.
7218
7219 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
f63fd14e 7220 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
634910c8
KS
7221 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
7222
7223 * keyboard.c (make_lispy_position): Use modified mode_line_string,
7224 buffer_posn_from_coords, and marginal_area_string functions to
7225 include both string object and image object in the lispy position.
7226 Also add actual glyph width and height to position.
7227 (read_key_sequence): Use real buffer position from mouse
7228 event to find keymap property even when click is in marginal area.
7229
7230 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
7231 mode_line_string and marginal_area_string functions to handle
7232 both string object and image object properties.
d7107586 7233
57951c2e
AS
72342004-01-06 Andreas Schwab <schwab@suse.de>
7235
7236 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
7237 character.
7238
181e6a61
AS
72392004-01-02 Andreas Schwab <schwab@suse.de>
7240
d7107586
SM
7241 * macterm.c (emacs_options, x_initialized, same_x_server):
7242 Remove unused (and duplicated) definitions.
181e6a61 7243
31e0fbdd
KS
72442004-01-02 Kim F. Storm <storm@cua.dk>
7245
7246 * process.h (struct Lisp_Process): New members for adaptive read
7247 buffering: adaptive_read_buffering, read_output_delay, and
7248 read_output_skip.
7249
7250 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
7251 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
7252 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
7253 (process_output_delay_count, process_output_skip): New vars.
7254 (Vprocess_adaptive_read_buffering): New variable.
7255 (make_process): Initialize adaptive read buffering members.
7256 (Fstart_process): Set adaptive_read_buffering member.
7257 (deactivate_process): Cleanup adaptive read buffering.
7258 (wait_reading_process_input): Temporarily omit delayed
7259 subprocesses from the set of file descriptors to read from;
7260 adjust the select timeout if we skipped any subprocesses.
7261 (read_process_output): Increase adaptive read buffering delay if
7262 we read less than a full buffer; reduce delay when we read a
7263 full buffer.
7264 (send_process): Simplify using local Lisp_Process var.
7265 Reset adaptive read buffering delay after write.
7266 (init_process): Initialize process_output_delay_count and
7267 process_output_skip.
7268 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
7269
68c6a789
JR
72702004-01-01 Jason Rumney <jasonr@gnu.org>
7271
d7107586 7272 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
68c6a789 7273
3f70fe82
LT
72742003-12-30 Luc Teirlinck <teirllm@auburn.edu>
7275
7276 * print.c (Ferror_message_string): Add hyperlink in the docstring
7277 to the definition of `signal' in the Elisp manual.
7278 * eval.c (Fsignal): Ditto.
7279
b6189c3b 72802003-12-29 James Clark <jjc@jclark.com>
c2be49ed
EZ
7281
7282 * fns.c (internal_equal): Return t for two NaN arguments.
7283
7abd90ea
RS
72842003-12-29 Richard M. Stallman <rms@gnu.org>
7285
7286 * data.c (store_symval_forwarding): Handle setting
7287 default-fill-column, etc., by changing the value in
7288 buffers that use the default.
7289
7290 * minibuf.c (Fset_minibuffer_window): Doc fix.
7291
7292 * fileio.c (choose_write_coding_system): Ignore auto_saving
7293 if using the visited file for auto saves.
7294 (Fwrite_region): Don't update SAVE_MODIFF
7295 if auto-saving in visited file.
7296
3e7cfcdc
KH
72972003-12-29 Kenichi Handa <handa@m17n.org>
7298
7299 * dispextern.h (face_font_available_p): Extern it.
7300
7301 * fontset.c (Voverriding_fontspec_alist): New variable.
7302 (lookup_overriding_fontspec): New function.
d7107586 7303 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
3e7cfcdc
KH
7304 (fontset_font_pattern): Likewise.
7305 (regulalize_fontname): New function.
7306 (Fset_fontset_font): Call regulalize_fontname.
7307 (Fset_overriding_fontspec_internal): New function.
d7107586
SM
7308 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
7309 Defsubr Sset_overriding_fontspec_internal.
3e7cfcdc
KH
7310
7311 * xfaces.c (face_font_available_p): New function.
7312
7abd90ea
RS
73132003-12-28 Richard M. Stallman <rms@gnu.org>
7314
7315 * buffer.c (Fother_buffer): Don't crash if BUF is nil
7316 or if its name is nil.
7317
7318 * buffer.c (Fkill_buffer): Don't delete auto-save file
7319 if it's the same as the visited file.
7320
de1d1a40
LT
73212003-12-28 Luc Teirlinck <teirllm@auburn.edu>
7322
7323 * coding.c (Fcheck_coding_system): Doc fix.
7324
204fb75e
KS
73252003-12-28 Kim F. Storm <storm@cua.dk>
7326
7327 * Makefile.in (eval.o): Depend on dispextern.h.
7328
7329 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
7330 image glyph using image's ascent.
7331 (mode_line_string): Return image glyph as object clicked on.
7332 Adjust y0 for image glyph using image's ascent.
7333
7334 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
7335 (struct glyph): New members, ascent and descent. Used to save
7336 this glyph's ascent and descent, instead of having.
7337 (struct glyph): Declare member face_id using FACE_ID_BITS.
7338 (find_hot_spot): Add prototype.
7339
7340 * keyboard.c (Qimage): Remove extern (now in lisp.h).
7341 (QCmap): Declare extern.
7342 (make_lispy_position): When position is inside image hot-spot,
7343 use hot-spot element's id as posn element.
7344
7345 * lisp.h (IMAGEP): New macro to test for image object type.
7346 (Qimage): Declare extern.
7347
7348 * macfns.c (Qimage): Remove extern (now in lisp.h).
7349 (valid_image_p, parse_image_spec): Use IMAGEP macro.
7350
7351 * macterm.c (Qface, Qmouse_face): Remove unused externs.
7352
7353 * w32fns.c (Qimage): Remove extern (now in lisp.h).
7354 (valid_image_p, parse_image_spec): Use IMAGEP macro.
7355
7356 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
7357
7358 * w32term.c (Qface, Qmouse_face): Remove unused externs.
7359
7360 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
7361 pointer types.
7362 (Qrelative_width, Qalign_to): Remove unused variables.
7363 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
7364 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
7365 image maps.
d7107586 7366 (x_y_to_hpos_vpos): Return glyph relative coordinates through
204fb75e
KS
7367 new dx and dy args.
7368 Remove buffer_only_p arg (always 0). Simplify code accordingly.
7369 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
7370 than row's ascent and height, to get sensible height on tall rows.
7371 (build_desired_tool_bar_string): Remove Qimage extern.
7372 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
7373 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
7374 image glyph is alone on the last line.
7375 (append_glyph, append_composite_glyph, produce_image_glyph)
d7107586 7376 (append_stretch_glyph): Set glyph's ascent and descent.
204fb75e 7377 (on_hot_spot_p): New function to check if position is inside an
d7107586 7378 rectangular, circular, or polygon-shaped image hot-spot,
204fb75e
KS
7379 (find_hot_spot): New function to search for image hot-spot.
7380 (Flookup_image_map): New defun to search for image hot-spot.
7381 (define_frame_cursor1): New aux function to determine frame pointer.
7382 (note_mode_line_or_margin_highlight, note_mouse_highlight):
7383 Handle `pointer' text property and :pointer image property to
7384 control frame pointer shape. Detect image hot-spots for pointer
7385 and help_echo properties. Use define_frame_cursor1.
7386 (note_mouse_highlight): Use Vvoid_text_area_pointer.
f63fd14e 7387 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
204fb75e
KS
7388 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
7389
7390 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
7391
7392 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
7393 (Qimage): Remove extern (now in lisp.h).
7394 (valid_image_p, parse_image_spec): Use IMAGEP macro.
7395
7396 * xmenu.c (show_help_event): Remove unused code.
7397
7398 * xterm.c (Qface, Qmouse_face): Remove unused externs.
7399 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
7400 row's ascent and descent, to get a sensible height on tall rows.
7401
fc052137
LT
74022003-12-25 Luc Teirlinck <teirllm@auburn.edu>
7403
7404 * minibuf.c (Fcompleting_read): Undo previous change.
7405
a64387ee 74062003-12-25 Lars Hansen <larsh@math.ku.dk>
b9148500
LH
7407
7408 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
7409 Arguments GCPRO'ed in call to file name handler.
7410
56ffd194
TTN
74112003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
7412
7413 * termcap.c (tgetst1): Scan for "%pN"; if all
7414 N are continuous in [1,9], remove all "%pN".
7415
5202d23d
JD
74162003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7417
f26fab36
JD
7418 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
7419
5202d23d
JD
7420 * xfaces.c (lface_fully_specified_p): Take into account that
7421 MAC OS always have unspecified stipple.
7422
8babaa59
TTN
74232003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
7424
7425 * tparam.c (tparam1): Add handling for `%pN', which
7426 means use param N for the next substitution.
7427
2d176448
TTN
74282003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
7429
7430 * xfaces.c (Fcolor_gray_p): Fix omission bug:
7431 In case `frame' is nil, consult the selected frame.
7432 (Fcolor_supported_p): Likewise.
7433
adb0708c
LT
74342003-12-23 Luc Teirlinck <teirllm@auburn.edu>
7435
000eeb15
LT
7436 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
7437 Doc fixes.
0dc72b11
LT
7438
7439 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
7440 and an integer. Adapt the introductory comment accordingly.
adb0708c
LT
7441 (Fread_from_minibuffer): Delete code moved into read_minibuf.
7442 Doc fix.
7443 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
7444 read_minibuf.
7445 (Fcompleting_read): Delete code moved into read_minibuf.
d7107586 7446 (Ftest_completion): Make it handle obarrays and hash tables correctly.
adb0708c 7447
2e4d132b
KH
74482003-12-03 Kenichi Handa <handa@m17n.org>
7449
7450 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
7451 encoding sequence.
7452
3999c705
KH
74532003-12-01 Kenichi Handa <handa@m17n.org>
7454
7455 * composite.c (syms_of_composite): Don't make the compostion hash
7456 table week.
7457
d344ecbb
LT
74582003-11-30 Luc Teirlinck <teirllm@auburn.edu>
7459
7460 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
7461 * textprop.c (Fget_char_property_and_overlay): New function.
7462 (syms_of_textprop): Defsubr it.
7463
03d6484e
JD
74642003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7465
019b1f0e
JD
7466 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
7467 to compile on terminal configuration.
7468
03d6484e
JD
7469 * fileio.c (Fread_file_name): Check use_file_dialog also before
7470 calling Fx_file_dialog.
7471
7472 * fns.c: use_file_dialog: New variable.
7473 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
7474
442d3fd0
KS
74752003-11-29 Kim F. Storm <storm@cua.dk>
7476
7477 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
7478 (syms_of_msdos): Don't intern and staticpro them.
7479
0f6a07a8
KS
74802003-11-27 Kim F. Storm <storm@cua.dk>
7481
7482 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
7483 coordinates relative to glyph at posn. If glyph is an image,
7484 return that as object at posn. Callers changed.
7485 (mode_line_string, marginal_area_string): Calculate and return
7486 pixel coordinates relative to glyph. Callers changed.
7487
7488 * dispextern.h (buffer_posn_from_coords, mode_line_string)
7489 (marginal_area_string): Fix prototypes.
7490 (window_box_left_offset, window_box_right_offset): Add prototypes.
7491
7492 * frame.h (get_specified_cursor_type, get_window_cursor_type):
7493 Remove prototypes.
7494
7495 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
7496
7497 * keyboard.c (make_lispy_position): Add x and y coordinates
7498 relative to the current glyph as 7th element of position.
7499 If glyph is an image, return it in the object element.
7500 (read_key_sequence): Skip checks for keymap property in cases
7501 where POSN_STRING is not a string (e.g. an image).
7502
7503 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
7504 (Vshow_text_cursor_in_void): New variable.
7505 (glyph_to_pixel_coords): Don't use negative hpos.
7506 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
7507 (append_stretch_glyph): Change ascent arg to be actual value
f63fd14e 7508 in pixels rather than ratio to height. Callers changed.
0f6a07a8
KS
7509 (calc_pixel_width_or_height): New aux function, implementing
7510 pixel based artihmetic for glyph widths and heights.
7511 (produce_stretch_glyph): Use calc_pixel_width_or_height for
7512 :width, :height, :align-to, and :ascent, thus allowing these to
7513 be specified in pixels as well as multiples of characters.
7514 Don't produce stretch glyphs with zero width or height.
7515 (get_specified_cursor_type): Declare static.
7516 (get_window_cursor_type): Declare static. Add glyph arg to be
7517 able to know when cursor is on an image; always substitute
7518 hollow-box cursor for filled-box cursor on images, to avoid
7519 negative images and flicker when blinking the cursor.
7520 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
7521 (note_mode_line_or_margin_highlight): Use non-text cursor rather
7522 than vertical scroll-bar cursor in display margins.
7523 (note_mouse_highlight): Use non-text cursor rather than text
7524 cursor in fringes and over images in the text area.
7525 Use non-text cursor when mouse pointer is outside editable text,
7526 i.e. in the void after end-of-line or end-of-buffer; this was
7527 already done for W32, but is now standard for all systems --
7528 user can toggle show-text-cursor-in-void to get old behaviour.
7529 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
7530 Vdisplay_pixels_per_inch.
7531
00498bfc
AS
75322003-11-25 Andreas Schwab <schwab@suse.de>
7533
7534 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
7535 EMACS_INT to not lose bits.
7536 (Ffillarray): Don't set bits beyond the size of a bool vector.
7537
edaa824d
KS
75382003-11-25 Kim F. Storm <storm@cua.dk>
7539
7540 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
7541 define this defun on systems that cannot use stderr as lvalue.
7542
74d6f539
GM
75432003-11-24 Gerd Moellmann <gerd@gnu.org>
7544
7545 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
7546 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
7547 ld's default is incompatible with unexec.
7548
6a1ff3ba
KS
75492003-11-23 Kim F. Storm <storm@cua.dk>
7550
63dc7c6b
KS
7551 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
7552 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
7553 (Fforce_window_update): New defun.
7554 (syms_of_window): Defsubr it.
7555 (Fset_window_margins, Fset_window_fringes): Doc fix.
7556
6a1ff3ba
KS
7557 * print.c (Fredirect_debugging_output): New defun.
7558 (syms_of_print): Defsubr it.
7559
aef109b7
LT
75602003-11-22 Luc Teirlinck <teirllm@auburn.edu>
7561
7562 * fns.c (Fset_char_table_parent): Doc fix.
7563
6a1ff3ba 75642003-11-22 Kim F. Storm <storm@cua.dk>
63ccbe21
KS
7565
7566 * dispnew.c (buffer_posn_from_coords): Return actual row/column
7567 for glyph clicked on, rather than (unused) pixel positions.
7568 (mode_line_string, marginal_area_string): Change X and Y args to
7569 pointers for returning actual row/column for glyph clicked on.
7570 Simplify and optimize loops.
7571
aef109b7
LT
7572 * dispextern.h (mode_line_string, marginal_area_string):
7573 Update prototypes.
63ccbe21
KS
7574
7575 * keyboard.c (make_lispy_position): New function for generating
7576 mouse click positions from frame and pixel coordinates.
7577 Enhanced to return buffer position and actual row/column for
7578 events outside the text area using updated mode_line_string and
7579 marginal_area_string functions.
7580 Return left-fringe and right-fringe clicks as such, rather than
7581 clicks in text area.
7582 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
7583 pixel_to_glyph_coords, as we never use the results.
7584 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
7585 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
7586 Eliminate unused code in WHEEL_EVENT handling.
7587 (make_lispy_movement): Use make_lispy_position.
7588
7589 * window.c (coordinates_in_window): Remove redundant tests.
7590 Fix returned X pixel value for left-margin.
7591
7592 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
7593 mode_line_string and marginal_area_string parameters.
7594
a64387ee 75952003-11-22 Lars Hansen <larsh@math.ku.dk>
930a9995 7596
d7107586
SM
7597 * w32.c (struct the_group, getgrgid): Add.
7598 * mac.c (struct my_group, getgrgid): Add.
aef109b7 7599
3dbf3426
LT
76002003-11-21 Luc Teirlinck <teirllm@auburn.edu>
7601
7602 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
7603
cae8ddbb 76042003-11-21 Lars Hansen <larsh@math.ku.dk>
ded4064f 7605
d7107586
SM
7606 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
7607 include in call to file name handler. Optionally translate numeric
7608 UID and GID to strings. Update docstring.
7609 (directory_files_internal): Add parameter ID-FORMAT.
7610 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
7611 include in call to file name handler and call to
7612 directory_files_internal. Update Docstring.
7613 (Fdirectory_files): Add dummy parameter in call to
7614 directory_files_internal.
7615 * lisp.h (Qinteger): Add.
7616 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
7617 (Ffile_attributes): Add parameter.
7618 * data.c (Qinteger): Export.
cae8ddbb 7619
2550b848
LT
76202003-11-21 Luc Teirlinck <teirllm@auburn.edu>
7621
3dbf3426 7622 * fns.c (Freverse, Fnreverse): Doc fixes.
2550b848 7623
88380018
KS
76242003-11-19 Kim F. Storm <storm@cua.dk>
7625
7626 * xdisp.c (init_iterator): Initialize it->start to position
7627 before reseating (in case start position is invisible).
7628 (init_to_row_start): Set it->start to row-start.
7629 (redisplay_window): Accept optional_new_start if start position
7630 is invisible (in which case IT_CHARPOS overshoots PT).
7631 (display_line): Setup row->start from it->start (rather than
7632 it->current which is wrong if first char on line is invisible).
7633 When done, reseat it->start to it->current (= start of next row).
7634 (expose_area): Fix exposure of text area when first char (e.g. TAB)
7635 is only partially visible.
7636
7637 * dispextern.h (struct it): New member start.
7638
854c1a59
SM
76392003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
7640
455316e2
SM
7641 * alloc.c (make_float, Fcons): Clear the markbit at init time.
7642 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
7643 of block_index outside of the macro call.
7644 (Fgarbage_collect): Remove null code.
7645
7646 * m/amdx86-64.h: Don't redefine XPNTR.
7647
854c1a59
SM
7648 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
7649 of VALMASK.
7650
7651 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
7652 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
7653 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
7654
7655 * lisp.h (VALMASK): Only define for non-union type.
7656 (MARKBIT): Remove.
7657 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
7658 (XTYPE): Define unconditionally.
7659 (XSETTYPE): Remove one more remnant.
7660 (EQ): Define differently for the union and non-union cases.
7661 (INTMASK): New bit mask.
7662 (struct Lisp_Marker): Move down to prepare for upcoming patch.
7663 (GC_EQ): Delegate to EQ.
7664
7665 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
7666
a0c6ef2d
JD
76672003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7668
7669 * xterm.c (x_window_to_scroll_bar): Move check of display to
7670 where window_id is compared.
7671
859492c4
KS
76722003-11-17 Kim F. Storm <storm@cua.dk>
7673
7674 * dispextern.h (struct it): New member first_vpos.
7675
7676 * xdisp.c (start_display): Set it->first_vpos.
7677 (try_window_id): Use first_vpos to start display in first _text_
7678 line if no reusable lines at start of window with header line.
7679
810f2256
JD
76802003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7681
7c402969 7682 * w32fns.c (XPutPixel):
854c1a59
SM
7683 * w32bdf.c (w32_init_bdf_font):
7684 * sunfns.c (sel_read):
7685 * process.c (Fmake_network_process):
7686 * frame.c (store_frame_param):
7687 * fontset.c (Fset_fontset_font):
7688 * emacs.c (shut_down_emacs):
a64387ee 7689 * ccl.c (ccl_driver): Remove period at end of error message.
7c402969 7690
a32e9bfd
JD
7691 * config.in: Regenerate.
7692
810f2256
JD
7693 * xfns.c (x_window_to_frame, x_any_window_to_frame)
7694 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
7695 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
7696 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
7697 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
7698
7699 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
7700
7701 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
7702 (XTmouse_position, handle_one_xevent): Pass Display* to
7703 x_window_to_scroll_bar.
7704 (x_window_to_scroll_bar): Take a Display* argument.
7705 Check that display for frame is equal to Display* argument.
854c1a59 7706 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
810f2256
JD
7707 x_display_info_for_display instead. Use Display in xev instead
7708 of GDK_DISPLAY.
7709 (x_dispatch_event): Call x_display_info_for_display.
f63fd14e 7710 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
810f2256
JD
7711 (x_connection_closed): Call xg_display_close for GTK.
7712 (x_term_init): Call xg_display_open for additional displays.
7713 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
7714 for GTK.
7715
7716 * xmenu.c (single_menu_item, mouse_position_for_popup)
7717 (x_activate_menubar): Formatting adjustments.
7718
7719 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
7720 adjustments.
7721
7722 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
7723 (xg_display_close, xg_create_default_cursor)
7724 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
7725 handling.
854c1a59
SM
7726 (xg_left_ptr_cursor): Remove.
7727 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
810f2256
JD
7728 cursor here.
7729 (xg_win_to_widget): Take Display* argument, call
7730 gdk_xid_table_lookup_for_display.
7731 (xg_create_frame_widgets, xg_get_file_name, create_menus)
7732 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
7733 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
7734 in FRAME_X_DISPLAY_INFO.
7735 (xg_get_scroll_id_for_window): Take Display* argument.
7736 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
854c1a59 7737 (xg_initialize): Remove xg_left_ptr_cursor.
810f2256 7738
78819ebb
KS
7739 * gtkutil.h (xg_get_scroll_id_for_window, xg_win_to_widget): Add
7740 Display* argument.
7741 (xg_display_open, xg_display_close, xg_create_default_cursor): Declare.
810f2256 7742
0b03cc78
JD
77432003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7744
7745 * xterm.c (x_detect_focus_change): Do not change focus frame for
7746 Enter/LeaveNotify if the current focus frame has explicit focus.
7747
77e688fa
KS
77482003-11-14 Kim F. Storm <storm@cua.dk>
7749
7750 * dispnew.c (update_text_area): Fix redisplay error when hscroll
7751 is active and first glyph is only partially visible.
854c1a59 7752
dd429b03
KH
77532003-11-13 Kenichi Handa <handa@m17n.org>
7754
7755 * xdisp.c (select_frame_for_redisplay): New function.
7756 (redisplay_internal): Record also selected_frame for
7757 unwind_redisplay. Call select_frame_for_redisplay before
7758 redrawing each frame.
7759 (unwind_redisplay): Argument changed to a cons.
7760
6d9266f4
LT
77612003-11-12 Luc Teirlinck <teirllm@auburn.edu>
7762
7763 * fns.c (Fstring_to_multibyte): Doc fix.
7764
80060eb3
KH
77652003-11-11 Kenichi Handa <handa@m17n.org>
7766
7767 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
7768
74305183
JD
77692003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7770
7771 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
7772 program specified positions.
7773
cfda993e
JD
77742003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7775
7776 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
7777
df211069
KH
77782003-11-08 Kenichi Handa <handa@m17n.org>
7779
7780 * Makefile.in (lisp): Add kannada.el.
7781 (shortlisp): Likewise.
7782
4307d534
KH
77832003-11-07 Kenichi Handa <handa@m17n.org>
7784
854c1a59
SM
7785 * coding.c (coding_allocate_composition_data):
7786 Reset coding->composing to COMPOSITION_NO.
4307d534
KH
7787 (coding_restore_composition): Detect invalid composition data.
7788 Give Fstring and Fvector a Lispy integer, not C int.
7789
854c1a59
SM
77902003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
7791
7792 * floatfns.c (Flogb): Don't use VALMASK.
7793
7794 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
7795 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
7796
7797 * lisp.h (XINT): Move the cast to clarify what is going on.
7798 (GCTYPEMASK, XSETTYPE): Remove.
7799 (XGCTYPE): Make it an alias of XTYPE.
7800
d04103a1
JD
78012003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7802
7803 * xterm.c (x_term_init): Fix formatting.
7804
da18b5ac
JD
78052003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7806
78819ebb
KS
7807 * gtkutil.h (xg_have_tear_offs): Declare.
7808 (xg_keep_popup, xg_did_tearoff): Remove.
da18b5ac
JD
7809
7810 * gtkutil.c: Remove variable xg_did_tearoff.
7811 (xg_have_tear_offs): New function.
7812 (tearoff_remove): Just decrease xg_detached_menus.
7813 (tearoff_activate): Increase xg_detached_menus and call
7814 tearoff_remove when tearoff is removed.
854c1a59 7815 (xg_keep_popup): Remove function.
da18b5ac
JD
7816 (create_menus): Give add_tearoff_p as argument to recursive
7817 call to create_menus.
7818 (xg_create_widget): Use variables instead of multiple
7819 strcmp. Tell create_menus to create tear off only for
7820 menu bar menus.
7821 (xg_update_menubar): Change title for a detached menu also.
7822 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
7823 of deep_p.
7824 (xg_initialize): Initialize xg_detached_menus, remove
7825 initialization of xg_did_tearoff.
7826
7827 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
7828 xg_have_tear_offs returns non-zero.
7829 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
7830 call to xg_keep_popup.
7831
64d4923e
AC
78322003-11-01 Andrew Choi <akochoi@shaw.ca>
7833
7834 * macterm.c (XTread_socket): Handle menubar selection and grow
7835 window only for mouseDown events.
854c1a59 7836
6cc8bc07
JD
78372003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7838
7839 * xterm.c (x_term_init): For GTK part, increase x_initialized
7840 to check for more than one display. Use error instead of return 0.
7841
043131c4
AC
78422003-10-31 Andrew Choi <akochoi@shaw.ca>
7843
854c1a59 7844 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
043131c4
AC
7845 (copy_dysymtab): Call it.
7846
bdda99a1
LT
78472003-10-31 Luc Teirlinck <teirllm@auburn.edu>
7848
7849 * eval.c (Fdefvaralias): Doc fix.
7850
800f42ff 78512003-10-26 Luc Teirlinck <teirllm@auburn.edu>
0d11571e
LT
7852
7853 * data.c (Fsetplist): Doc fix.
7854
ef35b389
LK
78552003-10-14 Lute Kamstra <lute@gnu.org>
7856
7857 * window.c (Fset_window_fringes): Clarify docstring.
07107abc 7858
ef35b389 78592003-10-14 Kim F. Storm <storm@cua.dk>
854c1a59 7860
07107abc
KS
7861 * window.c (Fset_window_margins): Simplify arg checking.
7862
f7005886
RS
78632003-10-13 Richard M. Stallman <rms@gnu.org>
7864
7865 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
7866 (print_partial_compiled_pattern): Replace assert with a printout.
7867 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
7868
7869 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
7870
7871 * window.c (Fset_window_margins): Allow only integers as args.
7872 (syms_of_window) <special-display-buffer-names, special-display-regexps>:
7873 Doc fixes.
7874
9c0c2af5
LK
78752003-10-13 Lute Kamstra <lute@gnu.org>
7876
7877 * window.c (Fset_window_fringes): Elaborate docstring.
7878
3f080e4e
AC
78792003-10-12 Andrew Choi <akochoi@shaw.ca>
7880
854c1a59 7881 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
a4887377 7882
3f080e4e
AC
7883 * s/darwin.h (GC_MARK_STACK): Define.
7884
0aa513ed
JD
78852003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7886
7887 * window.c (shrink_windows): New function.
7888 (size_window): Call shrink_windows to calculate window sizes when
7889 shrinking frame with more than one window.
7890
6aa8858a
KS
78912003-10-12 Kim F. Storm <storm@cua.dk>
7892
7893 * xdisp.c (compute_fringe_widths): Doc fix.
7894
c2164d91
KH
78952003-10-08 Kenichi Handa <handa@m17n.org>
7896
854c1a59 7897 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
c2164d91 7898
f82ac129
KH
78992003-10-07 Kenichi Handa <handa@m17n.org>
7900
7901 * coding.c (Qcoding_system_define_form): New variable.
7902 (syms_of_coding): Intern and staticpro it.
7903 (Fcheck_coding_system): Try to autoload the definition of
7904 CODING-SYSTEM.
7905
9296c947
LT
79062003-10-05 Luc Teirlinck <teirllm@auburn.edu>
7907
7908 * fns.c (Frequire): Doc fix.
7909
c1f0671a
JD
79102003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7911
3d8c3826
JD
7912 * xfns.c (Fx_send_client_event): New function as a base for
7913 manipulating extended window manager hints.
6dc15d98 7914 (Fx_send_client_event): Remove unused variable s.
3d8c3826 7915
068ae0fd
JD
7916 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
7917 that function is removed.
7918
7919 * xterm.c (x_set_offset): Use move_offset_left/top instead of
7920 x/y_pixels_outer_diff.
7921 (x_check_expected_move): Calculate move_offset_left/top.
7922
7923 * xterm.h (struct x_output): New members: move_offset_top/left.
7924
854c1a59 7925 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
068ae0fd
JD
7926 call x_set_offset directly.
7927
7928 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
7929
96f09305
JD
7930 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
7931
7932 * xterm.c (x_delete_display): Free font names and font_encoder
7933 in dpyinfo->font_table.
7934
854c1a59
SM
7935 * xfns.c (Fx_close_connection): Only call XFreeFont here.
7936 Move xfree of font names to x_delete_display.
96f09305 7937
c1f0671a
JD
7938 * xterm.h (struct x_display_info): New member, wm_type.
7939 (struct x_output): New members, expected_top/left and
7940 check_expected_move.
7941
7942 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
7943 is received.
854c1a59
SM
7944 (handle_one_xevent): Rename x_check_expected_move from
7945 x_check_fullscreen_move.
c1f0671a
JD
7946 (x_set_offset): Only add WM decoration sizes to modified_top/left
7947 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
854c1a59 7948 (x_check_expected_move): Rename from x_check_fullscreen_move.
c1f0671a
JD
7949 Removed fullscreen specific code. Use check_expected_move,
7950 expected_left/top instead. Also, set wm_type.
7951 (x_term_init): Initialize wm_type to unknown.
7952
7953 * frame.c (x_fullscreen_move): Remove addition of WM decoration
7954 sizes to move_x/y.
7955
be2fdba9
KH
79562003-10-03 Kenichi Handa <handa@m17n.org>
7957
7958 * macterm.c (x_load_font): Clear all members of FONTP before start
7959 filling them.
7960
79612003-10-02 Kenichi Handa <handa@m17n.org>
7962
7963 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
7964 before calling find_ccl_program_func. Call find_ccl_program_func
7965 only when fontp->font_encoder is not NULL.
7966
7967 * xterm.c (x_load_font): Clear all members of FONTP before start
7968 filling them.
7969
26a6e439
JPW
79702003-10-03 John Paul Wallington <jpw@gnu.org>
7971
7972 * keymap.c (map_keymap): Don't abort when binding is a vector.
7973
0d4c2dc2
JR
79742003-10-02 Jason Rumney <jasonr@gnu.org>
7975
854c1a59
SM
7976 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
7977 Sync dependencies with Makefile.in.
a63cf46f
JR
7978 (alloca.o): Remove.
7979
0d4c2dc2
JR
7980 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
7981 filling them.
7982
7983 * w32bdf.c (w32_load_bdf_font): Likewise.
7984
ab8f7d5c
RS
79852003-09-30 Richard M. Stallman <rms@gnu.org>
7986
7987 * term.c (set_tty_color_mode): Calculate current_mode_spec
7988 regardless of value of VAL.
7989
854c1a59 7990 * intervals.c (graft_intervals_into_buffer):
ab8f7d5c
RS
7991 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
7992 Handle over_used when splitting UNDER.
7993
a64387ee 79942003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ab8f7d5c
RS
7995
7996 * regex.c (regex_compile): Free the stack when returning from function.
7997
3413f972
KH
79982003-09-28 Kenichi Handa <handa@m17n.org>
7999
8000 * fontset.c (Finternal_char_font): Change return value to
8001 cons (FONT-NAME . GLYPH-CODE).
8002
a6eeaa81 80032003-09-28 Eli Zaretskii <eliz@gnu.org>
40409f05
EZ
8004
8005 * term.c (tty_setup_colors): Treat any negative argument as -1.
8006
f98ddc99
KH
80072003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
8008
8009 * process.c (send_process): Delete unused temp_buf.
8010
66c8f1a8
DL
80112003-09-26 Dave Love <fx@gnu.org>
8012
8013 * xterm.c (x_bitmap_mask): Declare.
8014
ca716c26
DL
80152003-09-25 Dave Love <fx@gnu.org>
8016
8017 * Makefile.in (fns.o): Depend on md5.h.
8018
fbe57420
KS
80192003-09-25 Kim F. Storm <storm@cua.dk>
8020
8021 * window.c (set_window_buffer): Fix redisplay problems when
8022 switching between buffers with different display margin widths.
8023
ef6ae4ff
KS
80242003-09-23 Kim F. Storm <storm@cua.dk>
8025
8026 * process.c (set_socket_option): Fix :bindtodevice option.
8027 (Fset_network_process_option): Update process contact list when
8028 setting option succeeds.
8029 (Fmake_network_process): Doc fix.
8030
68e03c1c
DL
80312003-09-23 Dave Love <fx@gnu.org>
8032
7146d1c1 8033 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
68e03c1c 8034
a6eeaa81 80352003-09-22 Eli Zaretskii <eliz@gnu.org>
2f809aae
EZ
8036
8037 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
8038 color mode is an integer number (it could be -1).
8039
8fe7d8c8
RS
80402003-09-22 Richard M. Stallman <rms@gnu.org>
8041
8042 * intervals.c (graft_intervals_into_buffer): Correct the main loop
8043 in the case where OVER is longer than UNDER.
8044
2f71b5ea
MY
80452003-09-22 Masatake YAMATO <jet@gyve.org>
8046
7146d1c1 8047 * window.c (Fset_window_scroll_bars): Validate the value of
2f71b5ea 8048 `vertical_type'.
7146d1c1 8049
0c4da023
KS
80502003-09-21 Kim F. Storm <storm@cua.dk>
8051
8052 * frame.c (Vdefault_frame_scroll_bars): New variable.
8053 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
8054 (syms_of_frame): DEFVAR_LISP it, and initialize according to
8055 window-system default scroll bar position.
8056
b648413b
KS
8057 * window.c (Fwindow_scroll_bars): Doc fix.
8058
8f5b9e34
JD
80592003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8060
854c1a59 8061 * xterm.c (x_set_offset): Take window manager decorations into account.
8f5b9e34 8062
b0f23edf
RS
80632003-09-19 Richard M. Stallman <rms@gnu.org>
8064
8065 * atimer.h: Don't include lisp.h.
8066 (P_): Define it here (as well as elsewhere).
8067
8068 * print.c (Fprin1_to_string): Move the PRINTPREPARE
8069 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
8070
8071 * data.c (Fvariable_binding_locus): New function.
8072 (syms_of_data): defsubr it.
8073 (Flocal_variable_p): Delete duplicate call to indirect_variable.
8074
e1283999
DL
80752003-09-18 Dave Love <fx@gnu.org>
8076
ad5f3636
DL
8077 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
8078
e1283999
DL
8079 * process.c (Fnetwork_interface_info): Fix type error.
8080 (Fnetwork_interface_list): Doc fix.
8081 (read_process_output, read_process_output): Delete unused var.
8082
b8c7fd71
KS
80832003-09-17 Kim F. Storm <storm@cua.dk>
8084
8085 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
8086 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
8087 (Fnetwork_interface_info): Check that ifreq struct has required
8088 fields before accessing them; this requires that those fields are
8089 defined as macros, which may be too restrictive on some platforms,
8090 but it is better than failing on other platforms.
8091 (syms_of_process): Only defsubr above fns when included.
8092
11e0a411
DL
80932003-09-17 Dave Love <fx@gnu.org>
8094
8095 * unexalpha.c: Don't include varargs.h.
8096
e9c50801
KS
80972003-09-17 Kim F. Storm <storm@cua.dk>
8098
8099 * process.c (Fset_process_sentinel): Add sentinel to childp plist
8100 for network process.
8101 (socket_options): Add `:' prefix to option names. Add optbit field.
8102 (set_socket_option): Remove no_error arg and special handling of s < 0.
8103 Return 1<<optbit for known option, 0 for unknown.
8104 Do not interpret 0 as false for boolean option (only nil).
8105 Pass failed option and value to report_file_error.
7146d1c1 8106 (Fset_network_process_options): Replace by Fset_network_process_option.
e9c50801
KS
8107 (Fset_network_process_option): New function to set just one option.
8108 (Fmake_network_process): Allow :coding arg to be a cons.
8109 Allow :server arg to be an integer specifying backlog size.
8110 Remove :options arg, and allow options to be specified directly
8111 as :KEY, VALUE pairs. Parse these options before binding socket.
8112 As before, :reuseaddr t is default for a server process, but this
8113 can now be disabled by specifying :reuseaddr nil.
8114 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
8115 (init_process): Availability of network options is now checked with
8116 simpler syntax (featurep 'make-network-process :OPTION); use loop to
8117 setup features.
8118 (syms_of_process): Fix defsubr's for the replaced functions.
8119
a0fc3644
DL
81202003-09-16 Dave Love <fx@gnu.org>
8121
8122 * Makefile.in: Depend on coding.h.
8123
6df2a645
KS
81242003-09-14 Kim F. Storm <storm@cua.dk>
8125
8126 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
8127 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
8128 (syms_of_process): Defsubr them.
8129
8130 * config.in: Regenerate.
7146d1c1
SM
8131
81322003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
8133
8134 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
8135 * m/news-r6.h (XUNMARK): Remove.
8136 * m/mips.h (XUNMARK): Remove.
8137 * m/mips-siemens.h (XUNMARK): Remove.
8138 * m/iris4d.h (XUNMARK): Remove.
8139 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
8140
0930c1a1
SM
81412003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
8142
31003b9e
SM
8143 * lisp.h (VALBITS): Don't remove 1 for the markbit.
8144 (union Lisp_Object): Use unsigned int for types. Remove markbit.
8145 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
8146 (XTYPE): Use unsigned right-shift.
8147 (XMARKBIT, XMARK, XUNMARK): Remove.
8148
0930c1a1
SM
8149 * alloc.c (init_intervals, init_symbol, init_marker):
8150 Don't preallocate anything.
8151 (Fgarbage_collect, mark_object): Ignore the markbit.
8152
8153 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
8154
19bb0fcd 81552003-09-08 Lute Kamstra <lute@gnu.org>
5df034de
LK
8156
8157 * xdisp.c (pint2hrstr): New function.
8158 (decode_mode_spec): Add `%i' and `%I' specs.
8159 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
8160 for `mode-line-format'.
8161
03bb6a06
AS
81622003-09-07 Andreas Schwab <schwab@suse.de>
8163
8164 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
8165 avoid warning.
8166
a6eeaa81 81672003-09-07 Eli Zaretskii <eliz@gnu.org>
2063d89c 8168
0930c1a1 8169 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
2063d89c 8170
ed159bbf
KS
81712003-09-03 Kim F. Storm <storm@cua.dk>
8172
8173 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
8174 change (superseded by 2002-08-30 change); the default blink-off
8175 cursor is now again "no cursor".
8176
fe64a394
JR
81772003-09-01 Jason Rumney <jasonr@gnu.org>
8178
8179 * makefile.w32-in (alloca.o): Remove.
8180 (coding.o): Depend on intervals.h
8181 (emacs.o, bytecode.o): Depend on window.h
8182
c0175e24
DL
81832003-09-01 Dave Love <fx@gnu.org>
8184
8185 * Makefile.in (alloca.o): Remove commands.
8186 (coding.o): Depend on intervals.h composite.h window.h.
8187 (emacs.o): Depend on window.h keyboard.h keymap.h.
8188 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
8189 (bytecode.o): Depend on window.h.
8190
a24d4cb2
JR
81912003-08-31 Jason Rumney <jasonr@gnu.org>
8192
4bc2315e
JR
8193 * w32term.c (w32_per_char_metric): Allow cached metrics to be
8194 returned even when font_type is unknown.
8195
a24d4cb2
JR
8196 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
8197
9d35adc7
JD
81982003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8199
8200 * xterm.c (x_term_init): Initialize new fields in x_display_info.
8201
8202 * xterm.h (struct x_display_info): Add red/green/blue_bits and
8203 *_offset.
8204
8205 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
8206 calculate pixel value.
8207
6f68b035
GM
82082003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
8209
0930c1a1
SM
8210 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
8211 Don't tell redisplay display is accurate when it's actually been
8212 paused for pending input.
6f68b035 8213
4828b4d7
RS
82142003-08-29 Richard M. Stallman <rms@gnu.org>
8215
8216 * dispnew.c (adjust_glyph_matrix): Call window_box
8217 whenever W is nonzero.
8218
8219 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
8220 (Fkill_local_variable, Fmake_variable_frame_local)
0930c1a1 8221 (Flocal_variable_p, Flocal_variable_if_set_p):
4828b4d7
RS
8222 Use indirect_variable to trace thru variable aliases.
8223
8224 * config.in: Updated.
8225
8226 * callint.c (Fcall_interactively): Save and restore
8227 Vthis_command, Vthis_original_command, real_this_command,
8228 and current_kboard->Vlast_command.
8229
8230 * abbrev.c (Fexpand_abbrev): Insert before deleting.
8231
e019878d
GM
82322003-08-29 Gerd Moellmann <gerd@gnu.org>
8233
8234 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
8235
85478bc6
KH
82362003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
8237
0930c1a1 8238 * coding.c (decode_coding_iso2022): Initialize local variable c2.
85478bc6
KH
8239 (decode_coding_sjis_big5): Likewise.
8240
07ce82d3
JR
82412003-08-27 Jason Rumney <jasonr@gnu.org>
8242
d3703de3
JR
8243 * w32.c (sys_pipe): Protect against file descriptor overflow.
8244
ee4a01d1
JR
8245 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
8246
07ce82d3
JR
8247 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
8248
a64387ee 82492003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
72d19c66
LK
8250
8251 * xfns.c (Vgtk_version_string): New variable.
8252 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
8253
a6eeaa81 82542003-08-24 Eli Zaretskii <eliz@gnu.org>
5459e42a 8255
0930c1a1 8256 * term.c (term_init): Remove `const' from buffer_size's declaration.
3d8714e7 8257
5459e42a
EZ
8258 * Makefile.in (msdos.o): Depend on intervals.h.
8259
0930c1a1 8260 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
5459e42a 8261
231d6cfb
JD
82622003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8263
8264 * xterm.h (struct x_display_info): New fields: client_leader_window
8265 and Xatom_wm_client_leader.
8266
8267 * xterm.c (x_initialize): Move call to x_session_initialize to ...
8268 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
8269
8270 * xsmfns.c (create_client_leader_window): New function.
8271 (x_session_initialize): Call create_client_leader_window, take
8272 dpyinfo as argument.
8273
8274 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
8275
8276 * Makefile.in (xsmfns.o): Add more depenedencies.
8277
afa88464
DL
82782003-08-21 Dave Love <fx@gnu.org>
8279
8280 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
8281
f730033e
KH
82822003-08-21 Kenichi Handa <handa@m17n.org>
8283
8284 * term.c (term_init): Fix previous change; don't rely on the
8285 length of `buffer' if TERMINFO is defined.
8286
6dca786c
DL
82872003-08-20 Dave Love <fx@gnu.org>
8288
8289 * atimer.h: Include lisp.h.
8290
8291 * lisp.h (EMACS_LISP_H): New.
8292 (popup_activated_flag): Don't declare.
8293
8294 * alloca.c: Some merging with gnulib. Change logic and doc
8295 concerning (x)malloc/(x)free -- no longer Emacs-specific.
8296 [DO_BLOCK_INPUT]: Don't include lisp.h.
8297 (xmalloc, xfree): Declare.
8298 (malloc): Don't declare.
8299
0930c1a1 8300 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
6dca786c
DL
8301 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
8302 atimer.h, blockinput.h.
8303
8304 * alloc.c (lisp_align_malloc): Change type of `aligned'.
8305
78819ebb 8306 * alloca.s: Remove.
6dca786c 8307
3a06a6d9
RS
83082003-08-19 Gerd Moellmann <gerd@gnu.org>
8309
8310 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
8311 use -lncurses.
8312
8313 * term.c (term_init): Use a buffer of size 4096 for tgetent since
8314 FreeBSD returns something longer than 2044. Abort if the end of
8315 the buffer is overwritten.
8316
27eeee55
MB
83172003-08-19 Miles Bader <miles@gnu.org>
8318
8319 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
8320
2f297815
GM
83212003-08-19 Gerd Moellmann <gerd@gnu.org>
8322
f4446bbf
GM
8323 * alloc.c (lisp_align_malloc): Check for memory full when
8324 allocating ablocks, which also avoids freeing a pointer into an
8325 ablocks structure.
8326
8327 * puresize.h (BASE_PURESIZE): Increase to 1100000.
8328
0930c1a1 8329 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
2f297815 8330
0e7d7aae
RS
83312003-08-16 Richard M. Stallman <rms@gnu.org>
8332
8333 * editfns.c (Fencode_time): Doc fix.
8334
83352003-08-16 David Ponce <david@dponce.com>
8336
8337 * fileio.c (Fwrite_region): Fix conditional expression to issue
8338 the right message.
8339
b6189c3b 83402003-08-16 Juri Linkov <juri@jurta.org>
0e7d7aae
RS
8341
8342 * syntax.c (Fforward_word): Argument changed to optional.
0930c1a1 8343 Set default value to 1.
0e7d7aae 8344
5d551295
KH
83452003-08-15 Kenichi Handa <handa@m17n.org>
8346
8347 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
8348 what autoscaled.
8349 (best_matching_font): Once we find a better scalable font, set
8350 non_scalable_has_exact_height_p to 1.
8351 (try_font_list): Call try_alternative_families to try any family
8352 with the given registry.
8353
1661e56b
AS
83542003-08-09 Andreas Schwab <schwab@suse.de>
8355
f29181dc
AS
8356 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
8357
1661e56b
AS
8358 * print.c (print_string): Fix printing of multibyte string with
8359 nontrivial printcharfun.
8360
465aa50a
JD
83612003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8362
8363 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
8364
8365 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
8366
e430e5ba
KH
83672003-07-31 Kenichi Handa <handa@m17n.org>
8368
8369 * process.c (read_process_output): Return the actually read bytes
8370 instead of the result of decoding.
8371
97e7188e
KH
83722003-07-31 Kenichi Handa <handa@m17n.org>
8373
8374 * xterm.h (struct x_bitmap_record): New member have_mask.
8375
8376 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
8377 to 0.
8378 (x_create_bitmap_from_file): Likewise.
8379 (x_destroy_bitmap): Check have_mask member before freeing a mask.
8380 (x_destroy_all_bitmaps): Likewise.
8381 (x_create_bitmap_mask): Set have_mask member to 1.
8382
b53094d6
RS
83832003-07-30 Richard M. Stallman <rms@gnu.org>
8384
8385 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
8386
631f2082
JD
83872003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8388
8389 * gtkutil.c (xg_mark_data): Update calls to mark_object.
8390
c855f2ca
RS
83912003-07-29 Richard M. Stallman <rms@gnu.org>
8392
8393 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
8394 Conditionalize XIM code on HAVE_XIM.
8395
8396 * fns.c (Fclear_string): New function.
8397 (syms_of_fns): defsubr it.
8398
b6189c3b 83992003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
17e6d491 8400
0930c1a1 8401 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
17e6d491 8402
29ea8ae9
SM
84032003-07-22 Stefan Monnier <monnier@cs.yale.edu>
8404
8405 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
8406
8407 * buffer.c (delete_all_overlays): New function.
8408 * buffer.h (delete_all_overlays): Declare.
8409 * coding.c (run_pre_post_conversion_on_str):
8410 * print.c (temp_output_buffer_setup):
8411 * fileio.c (Finsert_file_contents):
8412 * minibuf.c (get_minibuffer): Use it.
8413
1dd7ccf2
AC
84142003-07-22 Andrew Choi <akochoi@shaw.ca>
8415
8416 * unexmacosx.c (unexec_regions_sort_compare):
8417 (unexec_regions_merge): New functions. Sort and merge unexec
8418 regions before dumping them.
8419
f57bd967
DL
84202003-07-22 Dave Love <fx@gnu.org>
8421
8422 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
8423
7cdee936
SM
84242003-07-21 Stefan Monnier <monnier@cs.yale.edu>
8425
8426 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
8427 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
8428 MARKBIT as the gcmarkbit for strings.
8429
e50886d3
RS
84302003-07-21 Richard M. Stallman <rms@gnu.org>
8431
8432 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
8433
29ea8ae9 8434 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
e50886d3
RS
8435 (syms_of_fns): Corresponding change.
8436
8437 * alloc.c (syms_of_alloc): Doc fixes.
8438
84392003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
8440
8441 * s/netbsd.h: Use -Wl syntax.
8442
fdc39b59
RS
84432003-07-17 Richard M. Stallman <rms@gnu.org>
8444
8445 * xterm.c (xim_initialize): Redo 6/24 change.
8446
9c53385f
SM
84472003-07-15 Stefan Monnier <monnier@cs.yale.edu>
8448
8449 * buffer.c (copy_overlays): Use EMACS_INT for positions.
8450 (Fswitch_to_buffer): Don't signal an error when switching to the same
8451 buffer in a dedicated window.
8452
8453 * alloc.c: Use bitmaps for cons, as was done for floats.
8454 (init_float, init_cons): Let the normal code allocate the first block.
8455 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
8456 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
8457 New macros.
8458 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
8459 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
8460 (live_cons_p): Check the pointer is not past the `conses' array.
8461 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
8462 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
8463 (survives_gc_p): Use CONS_MARKED_P and simplify.
8464 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
8465
dde13196
PE
84662003-07-13 Paul Eggert <eggert@twinsun.com>
8467
8468 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
8469 puts it into BSS instead, at least on Solaris 8 and 9.
8470 This is a valid optimization, and it may occur on other platforms,
8471 so Emacs should not assume that initializing a static variable to
8472 zero puts it into data.
8473 * alloc.c (pure, staticvec):
8474 Initialize these arrays to nonzero, so that they're not
8475 put into BSS by that optimization.
8476
a801bc34
SM
84772003-07-13 Stefan Monnier <monnier@cs.yale.edu>
8478
8479 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
8480 (lisp_align_malloc): Use posix_memalign is available.
8481 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
8482 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
8483 for consistency. Update users.
8484
0c8b2afa
RS
84852003-07-13 Richard M. Stallman <rms@gnu.org>
8486
8487 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
8488
668c2ab0
JB
84892003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
8490
8491 * xterm.c (x_bitmap_icon,x_wm_set_icon_pixmap): Modify to add mask,
8492 and use the Gtk+ function gtk_window_icon_from_file if available.
8493
8494 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
8495 handle mask of bitmaps.
8496 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
8497 mask property.
8498 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
8499
8500 * xterm.h (xg_set_icon): New function.
8501
800bebe3
RS
85022003-07-12 Paul Eggert <eggert@twinsun.com>
8503
8504 * unexelf.c (unexec): Consider a section to precede the .bss
8505 section if its addresses overlap that of .bss.
8506
69e38995
RS
85072003-07-12 Richard M. Stallman <rms@gnu.org>
8508
8509 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
8510
8511 * config.in (HAVE_CRTIN): Add #undef.
8512 (INLINE): Really inline only if OPTIMIZE is defined.
8513
8514 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
8515 END_FILES_1.
8516 (START_FILES_1, END_FILES_1): New macros (conditional).
a801bc34 8517 (LD_SWITCH_SYSTEM_TEMACS): Define.
69e38995
RS
8518
8519 * s/openbsd.h: Don't include bsd4-3.h.
a801bc34
SM
8520 (TERMINFO): Define.
8521 (LIBS_TERMCAP): Define.
8522 (LD_SWITCH_SYSTEM): Define (two definitions).
69e38995
RS
8523
8524 * xfns.c: Include libpng/png.h instead of png.h.
8525
f1d0c238
AS
85262003-07-11 Andreas Schwab <schwab@suse.de>
8527
8528 * buffer.c (modify_overlay): Update prototype.
8529 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
8530 Likewise.
8531
5f6bf5fe
SM
85322003-07-09 Stefan Monnier <monnier@cs.yale.edu>
8533
8534 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
8535 (struct interval): Move to intervals.h.
8536 (struct Lisp_Marker): Use EMACS_INT for position info.
8537 (forward_point): Remove prototype of defunct function.
8538 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
8539 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
8540 (syms_of_textprop, set_text_properties): Remove prototypes that are
8541 already in intervals.h.
8542
8543 * intervals.h (struct interval): Move from lisp.h.
8544 Use EMACS_INT for position and size info.
8545
8546 * coding.c: Include intervals.h for Fset_text_properties.
8547
8548 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
8549 position and length information.
8550
2765b457
SM
85512003-07-09 Stefan Monnier <monnier@cs.yale.edu>
8552
8553 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
8554 position and length information.
8555
2410d73a
SM
85562003-07-09 Stefan Monnier <monnier@cs.yale.edu>
8557
8558 Change overlays_after and overlays_before so the overlays themselves
8559 are linked into lists, rather than using cons cells. After all each
8560 Lisp_Misc already occupies 5 words, so we can add a `next' field to
8561 Lisp_Overlay for free and save up one cons cell per overlay (not
8562 to mention one indirection when traversing the list of overlay).
8563
8564 * lisp.h (struct Lisp_Overlay): New field `next'.
8565
8566 * buffer.h (struct buffer): Change overlays_before and overlays_after
8567 from Lisp lists of overlays to pointers to overlays.
8568
8569 * buffer.c (overlay_strings, recenter_overlay_lists):
8570 Fix typo in eassert in last commit.
8571 (unchain_overlay): New function.
8572 (add_overlay_mod_hooklist): Use AREF.
8573 (copy_overlays, reset_buffer, overlays_at, overlays_in)
8574 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
8575 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
8576 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
8577 (report_overlay_modification, evaporate_overlays, init_buffer_once):
8578 Adjust to new type of overlays_(before|after).
8579
8580 * alloc.c (mark_object): Mark the new `next' field of overlays.
8581 (mark_buffer): Manually mark the overlays_(after|before) fields.
8582
8583 * coding.c (run_pre_post_conversion_on_str):
8584 * editfns.c (overlays_around):
8585 * xdisp.c (load_overlay_strings):
8586 * fileio.c (Finsert_file_contents):
8587 * indent.c (current_column):
8588 * insdel.c (signal_before_change, signal_after_change):
8589 * intervals.c (set_point_both):
8590 * print.c (temp_output_buffer_setup): Use new type for
8591 overlays_(before|after).
8592
04812929
SM
85932003-07-08 Stefan Monnier <monnier@cs.yale.edu>
8594
8595 * buffer.c (report_overlay_modification): Don't run hooks while
8596 traversing the list of overlays.
8597
8598 * buffer.h (struct buffer): Use an int for overlay_center.
8599 (overlays_at, evaporate_overlays, recenter_overlay_lists)
8600 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
8601
8602 * buffer.c (reset_buffer, recenter_overlay_lists)
8603 (adjust_overlays_for_insert, adjust_overlays_for_delete)
8604 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
8605 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
8606 (overlays_at, evaporate_overlays, recenter_overlay_lists)
8607 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
8608
8609 * xdisp.c (fast_find_position): Remove unused var.
8610
8611 * cmds.c (Qexpand_abbrev): New sym.
8612 (syms_of_cmds): Initialize it.
8613 (internal_self_insert): Use it to call expand-abbrev.
8614
2e7ecf15
KS
86152003-07-09 Kim F. Storm <storm@cua.dk>
8616
f9711de4 8617 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
2e7ecf15 8618 was configured with --without-xim.
42f81f64 8619 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
2e7ecf15 8620
c6de56a0
RS
86212003-07-07 Richard M. Stallman <rms@gnu.org>
8622
8623 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
8624
8625 * alloc.c (Fgarbage_collect): Doc fix.
8626
b6189c3b 86272003-07-07 Nozomu Ando <nand@mac.com>
b93fb365
KH
8628
8629 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
8630
bfe1a3f7
SM
86312003-07-06 Stefan Monnier <monnier@cs.yale.edu>
8632
04812929
SM
8633 * minibuf.c (read_minibuf): UNGCPRO before returning.
8634 (Ftry_completion, Fall_completions): Doc fix.
8635
bfe1a3f7
SM
8636 * alloc.c (live_float_p): Check that p is not past the `floats' array,
8637 now that `floats' is not the last element of the struct any more.
8638
ee79d1aa
JR
86392003-07-06 Jason Rumney <jasonr@gnu.org>
8640
8641 * w32term.h (ClipboardSequence_Proc): New type.
8642
8643 * w32fns.c (clipboard_sequence_fn): New variable.
8644 (globals_of_w32fns): Initialize it.
8645
8646 * w32select.c (last_clipboard_sequence_number): New variable.
8647 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
8648 number if possible.
8649
49723c04
SM
86502003-07-06 Stefan Monnier <monnier@cs.yale.edu>
8651
4698665f
SM
8652 * m/amdx86-64.h (MARKBIT):
8653 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
8654 MARKBIT and ARRAY_MARK_FLAG any more.
8655
8656 * m/hp800.h (XSETMARKBIT):
8657 * m/sr2k.h (XSETMARKBIT):
8658 * lisp.h (XSETMARKBIT): Remove unused macro.
8659
49723c04
SM
8660 * lisp.h (mark_object): Change prototype.
8661
8662 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
8663 (last_marked): Change accordingly.
8664 (mark_interval, mark_maybe_object, mark_maybe_pointer)
8665 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
8666 (mark_buffer): Update calls to mark_object.
8667
8668 * bytecode.c (mark_byte_stack):
8669 * fns.c (sweep_weak_table):
8670 * keyboard.c (mark_kboards): Update calls to mark_object.
8671
1d660eca
JR
86722003-07-06 Jason Rumney <jasonr@gnu.org>
8673
8674 * alloc.c (struct ablock): Only include padding when there is some.
8675
618b5ae4
SM
86762003-07-04 Stefan Monnier <monnier@cs.yale.edu>
8677
8678 * alloc.c (ALIGN): Add casts to simplify usage.
8679 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
8680 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
8681 (struct ablock, struct ablocks): New types.
8682 (free_ablock): New global var.
8683 (lisp_align_malloc, lisp_align_free): New functions.
8684 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
8685 (struct float_block): Reorder and add gcmarkbits.
8686 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
8687 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
8688 (init_float, make_float): Use lisp_align_malloc.
8689 (free_float, live_float_p): Don't use `type' any more.
8690 (make_float): Use FLOAT_UNMARK to access to mark bit.
8691 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
8692 Use FLOAT_MARKED_P to access the mark bit.
8693 (pure_alloc): Simplify use of ALIGN.
8694 (mark_object): Use FLOAT_MARK to access the mark bit.
8695 (gc_sweep): Use new macros to access the float's mark bit.
8696 (init_alloc_once): Init free_ablock.
8697
8698 * lisp.h (struct Lisp_Float): Remove unused field `type'.
8699
3ef06d12
SM
87002003-06-27 Stefan Monnier <monnier@cs.yale.edu>
8701
8702 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
8703 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
8704 (allocate_buffer): Move.
8705 (string_bytes): Don't mask markbit of `size_byte'.
8706 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
8707 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
8708 Use the `size' field of buffers (rather than the `name' field) for
8709 the mark bit, as is done for all other vectorlike objects.
8710 Use the new macros to access the mark bit of vectorlike objects.
8711
e81043aa
RS
87122003-06-26 Richard M. Stallman <rms@gnu.org>
8713
8714 * puresize.h (BASE_PURESIZE): Increment base size.
8715
8716 * xdisp.c (fast_find_position): Enable Gerd's new definition.
8717
8718 * xterm.c (xim_initialize): Undo previous change.
8719
2d0834cc
SM
87202003-06-26 Stefan Monnier <monnier@cs.yale.edu>
8721
8722 * alloc.c (survives_gc_p): Simplify.
8723
8724 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
8725
8726 * window.c (Fset_window_dedicated_p): Simplify.
8727 (display_buffer_1): Don't raise the win from which minibuf was entered.
8728 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
8729 (Fminibuffer_selected_window): Simplify.
8730
8731 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
8732
8733 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
8734 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
8735
8736 * insdel.c (check_markers, adjust_markers_for_delete)
8737 (adjust_markers_for_insert, adjust_markers_for_replace)
8738 (prepare_to_modify_buffer, RESTORE_VALUE):
8739 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
8740 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
8741 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
8742 * alloc.c (Fmake_marker, free_marker, gc_sweep):
8743 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
8744 * editfns.c (save_excursion_restore, transpose_markers):
8745 * window.c (delete_window):
8746 * xdisp.c (message_dolog): Update for new types.
8747
d54ae3d8
JD
87482003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8749
a5f696ac
JD
8750 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
8751 (realize_default_face): Use default_face_done_p for the force_p
2d0834cc 8752 argument to set_lface_from_font_name. Set default_face_done_p to one.
a5f696ac
JD
8753
8754 * frame.c (make_frame): Initialize default_face_done_p.
8755
8756 * frame.h (struct frame): Add default_face_done_p.
8757
d54ae3d8
JD
8758 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
8759 will be defined.
8760
2336fe58
SM
87612003-06-25 Stefan Monnier <monnier@cs.yale.edu>
8762
8763 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
8764 Initialize the new field `gcmarkbit'.
8765 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
8766 (mark_interval_tree): Don't mark the tree separately from the nodes.
8767 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
8768 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
8769 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
8770
8771 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
8772 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
8773 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
8774 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
8775 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
8776
bcea31c2
DL
87772003-06-24 Dave Love <fx@gnu.org>
8778
8779 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
8780
8781 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
8782 from gnulib.
8783
2601f59e
RS
87842003-06-21 Richard M. Stallman <rms@gnu.org>
8785
8786 * fileio.c (Fwrite_region): Alternate messages
8787 for append and partial write.
8788
8789 * keyboard.c (read_key_sequence): When converting upcase fn key to
8790 downcase, update fkey and keytran so `backspace' gets translated.
8791
8792 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
8793
8794 * process.c (wait_reading_process_input): Don't signal SIGIO
8795 in batch mode.
8796
b5d2c621
KH
87972003-06-17 Kenichi Handa <handa@m17n.org>
8798
8799 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
8800 composite.h.
8801
8802 * xselect.c: Don't include charset.h, coding.h, composite.h.
8803 (Qforeign_selection): New variable.
8804 (syms_of_xselect): Intern and static it.
8805 (selection_data_to_lisp_data): Return a unibyte string made from
8806 data with `foreign-selection' text property.
8807
6793bc63
SM
88082003-06-15 Stefan Monnier <monnier@cs.yale.edu>
8809
8810 * termhooks.h (EVENT_INIT): New macro.
8811
8812 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
8813
8814 * alloc.c (mark_kboards): Move to keyboard.c.
8815
8816 * keyboard.c (record_asynch_buffer_change, read_avail_input):
8817 * xterm.c (x_dispatch_event):
8818 * xmenu.c (find_and_call_menu_selection):
8819 * xdisp.c (handle_tool_bar_click):
8820 * w32menu.c (menubar_selection_callback):
8821 * sysdep.c (kbd_input_ast, read_input_waiting):
8822 * msdos.c (dos_rawgetc):
8823 * macterm.c (mac_check_for_quit_char):
8824 * macmenu.c (menubar_selection_callback):
8825 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
8826 data to kbd_buffer_store_event.
8827
b3ea810c
KS
88282003-06-15 Kim F. Storm <storm@cua.dk>
8829
8830 * xdisp.c (x_fix_overlapping_area): Always use area relative X
6793bc63 8831 to fix redisplay problem with tall characters (such as \e,AC\e(B).
b3ea810c 8832
b8f75eda
KG
88332003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
8834
8835 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
8836
ba92ce48
KH
88372003-06-12 Kenichi Handa <handa@m17n.org>
8838
8839 * fileio.c (Fwrite_region): Save and restore restriction.
8840
b80263be
DL
88412003-06-12 Dave Love <fx@gnu.org>
8842
8843 * alloca.c (alloca): Declare arg as size_t.
8844
6793bc63
SM
8845 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
8846 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
b80263be 8847
b23c0a83
DL
88482003-06-11 Dave Love <fx@gnu.org>
8849
8850 * search.c (shrink_regexp_cache): Use xrealloc.
8851 (syms_of_search): Use xmalloc.
8852
700e47c2
KS
88532003-06-10 Kim F. Storm <storm@cua.dk>
8854
8855 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
8856 Adjust phys_cursor.x to be relative to window box, rather than
8857 text area before checking -- to ensure cursor is redrawn when
8858 exposing window.
8859 Note: This also fixes a similar (older) bug if display margins
8860 are present.
8861
f11aa0b2
KH
88622003-06-06 Kenichi Handa <handa@m17n.org>
8863
8864 * coding.c (encoding_buffer_size): If coding->type is
8865 coding_type_ccl, double magnification on CRLF encoding.
8866
3d143690
JR
88672003-06-06 Jason Rumney <jasonr@gnu.org>
8868
8869 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
8870 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
8871
8872 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
8873 Mac too.
8874
f16205ca
DL
88752003-06-05 Dave Love <fx@gnu.org>
8876
b23c0a83
DL
8877 * strftime.c: Merge changes from gnulib.
8878
f16205ca
DL
8879 * mktime.c (__mktime_internal): Merge changes from gnulib
8880 involving year 69 and dst2.
8881
8882 Changes to merge with gnulib version and be consistent with the
8883 autoconf test:
8884
6793bc63
SM
8885 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
8886 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
f16205ca
DL
8887 [HAVE_LOCALE_H]: Include locale.h.
8888 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
8889
9b87a0bc
KS
88902003-06-05 Kim F. Storm <storm@cua.dk>
8891
8892 * window.c (coordinates_in_window): Convert X and Y to window
8893 relative coordinates inside mode-line and header-line parts.
8894 Convert X and Y to margin area relative coordinates inside left
8895 and right display margin parts.
8896
5a8a15ec
JR
88972003-06-05 Jason Rumney <jasonr@gnu.org>
8898
8899 * w32fns.c (add_system_logical_colors_to_map): New function.
8900 (Fx_open_connection): Use it.
8901
01ed8ff1
SM
89022003-06-04 Stefan Monnier <monnier@cs.yale.edu>
8903
8904 * process.c (allocate_pty): Revert part of the previous patch.
8905 (Faccept_process_output): Simplify.
8906
b427b65d
JR
89072003-06-04 Jason Rumney <jasonr@gnu.org>
8908
8909 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
8910
8911 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
8912 (lispy_mouse_wheel_names): Remove.
8913 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
8914 Always define drag_and_drop_syms.
8915
8916 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
8917 WHEEL_EVENT events.
8918
914a8c47
SM
89192003-06-03 Stefan Monnier <monnier@cs.yale.edu>
8920
01ed8ff1
SM
8921 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
8922
914a8c47
SM
8923 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
8924
adcb132c
JD
89252003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8926
8927 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
8928 menu item label.
8929
be781fa7
RS
89302003-06-03 Richard M. Stallman <rms@gnu.org>
8931
8932 * window.c (Fwindow_edges): Doc fix.
8933 (Fwindow_pixel_edges, Fwindow_inside_edges)
8934 (Fwindow_inside_pixel_edges): New functions.
8935 (syms_of_window): defsubr them.
8936
8937 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
8938 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
8939
914a8c47
SM
89402003-06-02 Stefan Monnier <monnier@cs.yale.edu>
8941
8942 * dispnew.c (Fsit_for): Don't lie about the number of args.
8943
5b07197a
DL
89442003-06-02 Dave Love <fx@gnu.org>
8945
8946 * callproc.c: Use HAVE_FCNTL_H, not USG5.
8947 (syms_of_callproc) <process-environment>: Doc fix.
8948
8949 * doc.c: Use HAVE_FCNTL_H, not USG5.
8950
8951 * xfaces.c (font_rescale_ratio): Fix for K&R.
8952
8953 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
8954
8955 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
8956
8957 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
8958
8959 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
8960 (xg_create_frame_widgets): Use ENCODE_UTF_8.
8961
d7107586 8962 * xterm.c (Qutf_8): Move to coding.c
5b07197a
DL
8963
8964 * xmenu.c (ENCODE_MENU_STRING): New.
8965 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
8966 Use it.
8967
8968 * coding.h (ENCODE_UTF_8): New.
8969 (Qutf_8): Declare.
8970
8971 * coding.c (Qutf_8): New.
8972 (syms_of_coding): Intern it.
8973
8974 * fns.c: Doc fixes.
8975
7335b336
KH
89762003-06-02 Kenichi Handa <handa@m17n.org>
8977
8978 * buffer.c (Fset_buffer_multibyte): Fix previous change.
8979
914a8c47
SM
89802003-06-01 Stefan Monnier <monnier@cs.yale.edu>
8981
8982 * lread.c (openp): Make sure STR is a string.
8983
9862c135
JR
89842003-06-01 David Ponce <david@dponce.com>
8985
cab27d04 8986 * termhooks.h (enum event_kind): Add new WHEEL_EVENT event.
9862c135
JR
8987 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
8988
8989 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
8990 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
8991 (discard_mouse_events): Discard WHEEL_EVENT events too.
8992 (lispy_wheel_names, wheel_syms): New.
8993 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
cab27d04 8994 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX defined.
914a8c47 8995 (make_lispy_event): Add WHEEL_EVENT handler.
9862c135
JR
8996
8997 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
8998 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
8999 WHEEL_EVENT events.
9000
f984e73e
JPW
90012003-05-31 John Paul Wallington <jpw@gnu.org>
9002
9003 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
9004 timer are in lisp/emacs-lisp.
9005
1efcd78f
KH
90062003-05-31 Kenichi Handa <handa@m17n.org>
9007
458c8af4
KH
9008 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
9009 region when a buffer is changed to unibyte.
9010
1efcd78f
KH
9011 * charset.h (VALID_LEADING_CODE_P): New macro.
9012 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
9013
778e2804
KH
9014 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
9015 is nonzero, accept multibyte form of eight-bit-control chars.
9016 (decode_composition_emacs_mule): Likewise.
9017 (decode_coding_emacs_mule): Likewise.
9018 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
9019 multibyte form of eight-bit-control chars.
9020
9021 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
9022 (Finsert_file_contents): If coding-system-for-read is bound to
9023 Qauto_save_coding, use the coding system emacs-mule with special
9024 setting for recovering a file.
9025 (choose_write_coding_system): On auto saving, use the coding
9026 system emacs-mule with special setting for auto saving.
9027 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
9028
034060e4
KH
90292003-05-30 Kenichi Handa <handa@m17n.org>
9030
9031 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
9032 properly before calling ccl_driver.
9033
778e2804 9034 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
034060e4 9035
cab27d04 9036 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is nonzero.
034060e4
KH
9037 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
9038 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
9039
595f5aa5
GM
90402003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
9041
9042 * xfaces.c (realize_default_face): Do not abort if lface is
9043 non-existent - reverts change from 2003-05-19.
9044
103e0180
KH
90452003-05-29 Kenichi Handa <handa@m17n.org>
9046
9047 * coding.c (decode_coding_iso2022): Pay attention to the byte
9048 sequence of CTEXT extended segment, and retain those bytes as is.
9049
90502003-05-28 Kenichi Handa <handa@m17n.org>
9051
cab27d04 9052 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjust for the name change
103e0180
KH
9053 of CODING_REPLACEMENT_CHARACTER.
9054 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
9055 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
9056 check this flag on encoding.
cab27d04
SM
9057 (encode_coding_sjis_big5):
9058 Check CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
9059 (Fset_terminal_coding_system_internal):
9060 Set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
9061 instead of setting CODING_FLAG_ISO_SAFE flag in terminal_coding.flags.
9062
9063 * coding.h (CODING_REPLACEMENT_CHARACTER): Rename from
103e0180
KH
9064 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
9065 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
9066
ff6a3bfb 90672003-05-28 Richard M. Stallman <rms@gnu.org>
45f266dc 9068
ff6a3bfb
RS
9069 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
9070
9071 * eval.c (unbind_to): Move init of this_binding to separate statement.
45f266dc 9072
1963c428
KS
90732003-05-28 Kim F. Storm <storm@cua.dk>
9074
9075 * xdisp.c (expose_window): Fix error in calculation of
9076 window relative coordinates of area to redisplay.
9077
2b5d4601
JR
90782003-05-27 Jason Rumney <jasonr@gnu.org>
9079
9080 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
9081
1c64a4a2
JB
90822003-05-27 David Ponce <david@dponce.com>
9083
9084 Handle W32 mouse wheel events as mouse click events, like in X.
9085
9086 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
9087 MOUSE_WHEEL_EVENT anymore.
9088
9089 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
9090 Scrolling down/up the mouse wheel is respectively mapped to mouse
9091 button 4 and 5.
9092 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
9093 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
9094 WM_MOUSEWHEEL events.
9095
2d031b89
AS
90962003-05-27 Andreas Schwab <schwab@suse.de>
9097
20464fdf
AS
9098 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
9099
2d031b89
AS
9100 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
9101 partially visible line.
9102
9103 * alloc.c (Fgarbage_collect): Fix last change.
9104
97bc76d4
JPW
91052003-05-26 John Paul Wallington <jpw@gnu.org>
9106
9107 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
9108
56613f06
SM
91092003-05-25 Stefan Monnier <monnier@cs.yale.edu>
9110
9111 * window.c (Fset_window_buffer): Add type of `keep_margins'.
9112 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
9113
9114 * window.h (window_box_text_cols): Declare.
9115
9116 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
9117 (x_draw_vertical_border): Remove unused var `f'.
9118
9119 * xfaces.c (build_scalable_font_name): Remove `unused var
9120 pixel_size' warning.
9121
9122 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
9123
9124 * unexelf.c (unexec): Remove `unused var n' warning.
9125
9126 * strftime.c (my_strftime_localtime_r): Remove `defined but
9127 unused' warning.
9128
9129 * process.c (allocate_pty): Remove `unused var stb' and
9130 `cp might be used uninitialized' warnings.
9131
9132 * dispnew.c (mode_line_string): Remove unused var `f'.
9133
9134 * coding.c (find_safe_codings): Remove unused var `i'.
9135
9136 * bytecode.c (Fbyte_code): Remove `unused val' warning.
9137
9138 * buffer.c (Fkill_buffer): Remove unused var `list'.
9139
9140 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
9141
93421a1f
JD
91422003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9143
9144 * frame.c (make_frame): Condition want_fullscreen with
9145 HAVE_WINDOW_SYSTEM.
9146
c4b8aebc
JB
91472003-05-25 Juanma Barranquero <lektu@terra.es>
9148
9149 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
9150 (Fwindow_scroll_bars): Fix typo in docstring.
9151
0416870b
KS
91522003-05-24 Kim F. Storm <storm@cua.dk>
9153
9154 The following changes serve several purposes:
9155
9156 1) Swap the position of fringes and display margins in windows, i.e.
9157 the fringes are now displayed between the margins and the text area
9158 (by default).
9159
9160 2) Allow fringe and scroll bar parameters to be set per-buffer and
9161 per-window (like display margins). Such settings are now stored
9162 in window configurations, preserved when frames are resized, and
9018a88e 9163 copied when windows are split vertically or horizontally.
0416870b
KS
9164 Several bugs related to display margins have been fixed.
9165
9166 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
9018a88e 9167
0416870b
KS
9168 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
9169 rather than FRAME_WIDTH (FRAME_FONT (f)).
9170
9171 5) Introduce a consistent naming of variables, members and macros
9172 depending on whether their value is measured in pixels or in
9173 canonical columns/lines. Pixel dimensions are named *_width and
9174 *_height, while canonical columns/lines are named *_cols and
9175 *_lines. Pixel positions are named *_x and *_y, while column/line
9176 positions are named *_col and *_line.
9177
9178 6) Consolidate more of the X, W32, and MAC gui code by moving
9179 common data into struct frame, and generalize it for the non-gui
9180 case by using suitable defaults.
9181
9182 7) Cleanup and consolidate the macros controlling frame and window
9183 layout into frame.h and window.h, and generalize the use of the
9184 various window_box_* functions (enhanced to handle the new fringe
9185 position and the per-window fringe and scroll bar settings).
9186
9187 * frame.h (struct frame): Rename members height to text_lines,
9188 width to text_cols, window_height to total_lines, window_width to
9189 total_cols, new_height to new_text_lines, new_width to
9190 new_text_cols. All uses changed.
9191 (struct frame): New members which consolidate common members of
9192 x_output, w32_output, and mac_output structures: left_pos,
9193 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
9194 win_gravity, size_hint_flags, border_width, internal_border_width,
9195 line_height, fringe_cols, left_fringe_width, right_fringe_width,
9196 want_fullscreen. All uses changed.
9197 (struct frame): New member column_width contaning the canonical
9198 column width, analogue to line_height. All uses changed.
9199 (struct frame): Rename members scroll_bar_pixel_width to
9200 config_scroll_bar_width, and scroll_bar_cols to
9201 config_scroll_bar_cols. All uses changed.
9202 (struct frame): New member scroll_bar_actual_width which
9203 consolidates and renames the vertical_scroll_bar_extra member of
9204 x_output, w32_output, and mac_output structures. All uses changed.
cab27d04 9205 (FRAME_PIXEL_HEIGHT): Rename from PIXEL_HEIGHT and moved
0416870b
KS
9206 from x/w32/macterm.h files. All uses changed. Also change code
9207 which referred to f->output_data...->pixel_height.
cab27d04 9208 (FRAME_PIXEL_WIDTH): Rename from PIXEL_WIDTH and moved
f63fd14e 9209 from x/w32/macterm.h files. All uses changed. Also change code
0416870b 9210 which referred to f->output_data...->pixel_width.
cab27d04 9211 (FRAME_LINES): Rename from FRAME_HEIGHT. All uses changed.
0416870b 9212 Also change code which referred to f->height.
cab27d04 9213 (FRAME_COLS): Rename from FRAME_WIDTH. All uses changed.
0416870b
KS
9214 Also change code which referred to f->width.
9215 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
9216 to update new_text_lines and new_text_cols members directly.
cab27d04 9217 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Rename from
0416870b 9218 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
cab27d04 9219 (FRAME_CONFIG_SCROLL_BAR_COLS): Rename from
0416870b
KS
9220 FRAME_SCROLL_BAR_COLS. All uses changed.
9221 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
cab27d04 9222 Rename from FRAME_LEFT_SCROLL_BAR_WIDTH and
0416870b
KS
9223 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
9224 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
9225 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
cab27d04
SM
9226 (FRAME_TOTAL_COLS): Rename from FRAME_WINDOW_WIDTH.
9227 (SET_FRAME_COLS): Rename from SET_FRAME_WIDTH.
9228 (FRAME_TOTAL_COLS_ARG): Rename from FRAME_WINDOW_WIDTH_ARG.
0416870b
KS
9229 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
9230 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
cab27d04
SM
9231 (FRAME_LINE_HEIGHT): Rename from CANON_Y_UNIT.
9232 Unconditionally return line_height member (it now has proper value
9233 also for non-window frames).
9234 (FRAME_COLUMN_WIDTH): Rename from CANON_X_UNIT. Unconditionally
0416870b
KS
9235 return new column_width member (rather than the default font width).
9236 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
cab27d04 9237 (FRAME_RIGHT_FRINGE_WIDTH): Rename from FRAME_X_... and moved
0416870b
KS
9238 from x/w32/macterm.h files. Unconditionally return corresponding
9239 member of frame structure (they now have proper values also for
9240 non-window frames).
cab27d04 9241 (FRAME_TOTAL_FRINGE_WIDTH): Rename from FRAME_FRINGE_WIDTH.
0416870b
KS
9242 Calculate return value from left and right widths.
9243 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
9244 internal_border_width member (has proper value for non-window frame).
cab27d04
SM
9245 (FRAME_PIXEL_X_FROM_CANON_X): Rename from PIXEL_X_FROM_CANON_X.
9246 (FRAME_PIXEL_Y_FROM_CANON_Y): Rename from PIXEL_Y_FROM_CANON_Y.
9247 (FRAME_CANON_X_FROM_PIXEL_X): Rename from CANON_X_FROM_PIXEL_X.
9248 (FRAME_CANON_Y_FROM_PIXEL_Y): Rename from CANON_Y_FROM_PIXEL_Y.
9249 (FRAME_LINE_TO_PIXEL_Y): Rename from CHAR_TO_PIXEL_ROW,
0416870b 9250 consolidated from xterm.h, macterm.h, and w32term.h.
cab27d04 9251 (FRAME_COL_TO_PIXEL_X): Rename from CHAR_TO_PIXEL_COL,
0416870b 9252 consolidated from xterm.h, macterm.h, and w32term.h.
cab27d04 9253 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Rename from
0416870b 9254 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
cab27d04 9255 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Rename from
0416870b 9256 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
cab27d04 9257 (FRAME_PIXEL_Y_TO_LINE): Rename from PIXEL_TO_CHAR_ROW
0416870b 9258 consolidated from x/mac/w32term.h.
cab27d04 9259 (FRAME_PIXEL_X_TO_COL): Rename from PIXEL_TO_CHAR_COL
0416870b 9260 consolidated from x/mac/w32term.h.
cab27d04 9261 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Rename from
0416870b 9262 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
cab27d04 9263 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Rename from
0416870b
KS
9264 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
9265
9266 * window.h (struct window): Rename members left to left_col,
9267 top to top_line, height to total_lines, width to total_cols,
9268 left_margin_width to left_margin_cols, right_margin_width to
9269 right_margin_cols, orig_height to orig_total_lines, orig_top to
9270 orig_top_line. All uses changed.
9271 (struct window): New members left_fringe_width, right_fringe_width,
9272 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
9273 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
9274 New macros primarily used to simplify other macros.
9275 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
9276 referred to XINT (w->width).
9277 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
9278 referred to XINT (w->height).
9279 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
9280 referred to XINT (w->width) * canon_x_unit.
9281 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
9282 referred to XINT (w->height) * canon_y_unit.
9283 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
9284 referred to XINT (w->left).
cab27d04 9285 (WINDOW_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_EDGE. Change
0416870b
KS
9286 all uses and code that referred to XINT (w->left) + XINT (w->width).
9287 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
9288 referred to XINT (w->top).
9289 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
9290 referred to XINT (w->top) + XINT (w->height).
9291 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
9292 referred to XINT (w->left) * canon_x_unit.
9293 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
9294 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
9295 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
9296 referred to XINT (w->top) * canon_y_unit.
9297 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
9298 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
9299 (WINDOW_LEFTMOST_P): New macro.
cab27d04 9300 (WINDOW_BOX_LEFT_EDGE_COL): Rename from WINDOW_LEFT_MARGIN.
0416870b 9301 All uses changed.
cab27d04 9302 (WINDOW_BOX_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_MARGIN.
0416870b 9303 All uses changed.
cab27d04 9304 (WINDOW_BOX_LEFT_EDGE_X): Rename from
0416870b
KS
9305 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
9306 Do not exclude left fringe width.
cab27d04 9307 (WINDOW_BOX_RIGHT_EDGE_X): Rename from
0416870b
KS
9308 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
9309 Do not exclude fringe widths.
9310 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
9311 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
9312 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
9313 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
9314 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
9315 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
9316 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
9317 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
9318 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
9319 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
9320 New macros. Change code which referenced corresponding
9321 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
9322 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
9323 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
9324 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
9325 allow per-window scroll-bar settings.
9326 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
9327 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
9328 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
9329 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
9330 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
9331 FRAME_SCROLL_BAR_WIDTH.
9332 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
9018a88e 9333 (WINDOW_SCROLL_BAR_AREA_X): New macros.
cab27d04 9334 (WINDOW_HEADER_LINE_HEIGHT): Rename from
0416870b 9335 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
cab27d04 9336 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Rename from
0416870b 9337 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
cab27d04 9338 (WINDOW_BOX_TEXT_HEIGHT): Rename from
0416870b
KS
9339 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
9340 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
9341 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
cab27d04
SM
9342 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Move here from dispextern.h.
9343 (WINDOW_LEFT_MARGIN_WIDTH): Rename from
0416870b 9344 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
cab27d04 9345 (WINDOW_RIGHT_MARGIN_WIDTH): Rename from
0416870b
KS
9346 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
9347 (window_from_coordinates): Update prototype.
9348 (Fset_window_buffer): Update EXFUN.
9349 (set_window_buffer): Update prototype.
9018a88e 9350
0416870b 9351 * dispextern.h (struct glyph_matrix): Rename members window_left_x
9018a88e 9352 to window_left_col, window_top_y to window_top_line. All uses
0416870b
KS
9353 changed.
9354 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
9355 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
9356 internal_border_width is now set to 0 for non-window frames.
9357 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
9358 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
9359 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
9360 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
9361 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
9362 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
9363 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
9364 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
9365 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
9018a88e 9366 Move to window.h and renamed [see window.h changes].
0416870b
KS
9367 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
9368 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
9018a88e
SM
9369 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
9370 Use WINDOW_TOTAL_LINES.
0416870b
KS
9371 (frame_update_line_height): Remove prototype.
9372
9373 * buffer.h (struct buffer): Rename members measured in columns:
9374 left_margin_width to left_margin_cols, right_margin_width to
9375 right_margin_cols. All uses changed.
9376 New members left_fringe_width, right_fringe_width,
9377 fringes_outside_margins for per-buffer fringe settings.
9378 New members scroll_bar_width and vertical_scroll_bar_type for
9379 per-buffer scroll bar settings.
9380
9381 * buffer.c (init_buffer_once): Set buffer_defaults and
9382 buffer_local_flags for new buffer-local variables
9383 left_fringe_width, right_fringe_width, fringes_outside_margins,
9384 scroll_bar_width, and vertical_scroll_bar_type.
9385 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
9386 default-* variables for them.
9387
9388 * dispnew.c: Make (many) trivial substitutions for renamed and
9389 new macros in dispextern.h, frame.h and window.h.
9390 (mode_line_string): No need to adjust width for mode lines, as it
9391 is already adjusted by the caller.
9392 (marginal_area_string): Handle fringes inside/outside margins.
9018a88e 9393
0416870b
KS
9394 * frame.c: Make (many) trivial substitutions for renamed and
9395 new macros in dispextern.h, frame.h and window.h.
9396 (make_frame): Initialize left_fringe_width, right_fringe_width,
9397 fringe_cols, scroll_bar_actual_width, border_width,
9398 internal_border_width, column_width, line_height, x_pixels_diff,
9399 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
9400 members with values suitable for a non-window frames.
9401
9402 * gtkutil.c: Make (many) trivial substitutions for renamed and
9403 new macros in dispextern.h, frame.h and window.h.
9018a88e 9404
0416870b
KS
9405 * indent.c: Make (few) trivial substitutions for renamed and
9406 new macros in dispextern.h, frame.h and window.h.
9407
9408 * keyboard.c: Make (many) trivial substitutions for renamed and
9409 new macros in dispextern.h, frame.h and window.h.
9410 (make_lispy_event): Use window positions returned from
9411 window_from_coordinates when constructing the lisp event for
9412 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
9413 (incorrect) values locally.
9414 (make_lispy_movement): Use window positions returned from
9415 window_from_coordinates when constructing the lisp event, rather
9416 than calculating (incorrect) values locally.
9417
9418 * scroll.c: Make (some) trivial substitutions for renamed and
9419 new macros in dispextern.h, frame.h and window.h.
9420
9421 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
9422 scroll-bars.
9423
9424 * sysdep.c: Make (few) trivial substitutions for renamed and
9425 new macros in dispextern.h, frame.h and window.h.
9426
9427 * term.c: Make (some) trivial substitutions for renamed and
9428 new macros in dispextern.h, frame.h and window.h.
9429
9430 * widget.c: Make (few) trivial substitutions for renamed and
9431 new macros in dispextern.h, frame.h and window.h.
9432
9433 * window.c: Make (many) trivial substitutions for renamed and
9434 new macros in dispextern.h, frame.h and window.h.
9435 (make_window): Initialize new members
9436 left_margin_cols, right_margin_cols, left_fringe_width,
9437 right_fringe_width, fringes_outside_margins, scroll_bar_width,
9438 and vertical_scroll_bar_type.
cab27d04 9439 (coordinates_in_window): Adapt to new fringe/margin positions
9018a88e 9440 and per-window fringes and scroll-bars.
0416870b 9441 Fix bug related to incorrectly adjusting coordinates by
9018a88e 9442 frame's internal_border_width (the effect normally negible since
0416870b
KS
9443 the internal_border_width is typically 0 or 1 pixel, but very
9444 noticeable for an internal_border_width of e.g. 25 pixels).
9445 Upon successful return (other than ON_NOTHING), the coordinates
9446 are now always properly converted to window relative for the
9447 given display element.
9448 (window_from_coordinates): Add new parameters wx and wy to
9449 return the window relative x and y position in the returned
9450 window and part. A null arg means, don't return the position.
9451 All callers changed.
9452 (adjust_window_margins): New function which may reduce the width
9453 of the display margins if a window's text area is too small after
9454 resizing or splitting windows.
9455 (size_window): Fix bug that did not account for display margin
9456 widths when checking the minimum width of a window; use
9457 adjust_window_margins.
9458 (set_window_buffer): Call Fset_window_fringes and
9459 Fset_window_scroll_bars to setup per-window elements.
9460 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
9461 existing display margin, fringe widths, and scroll bar settings
9018a88e
SM
9462 (e.g. after splitting a window or resizing the frame).
9463 All callers changed.
0416870b
KS
9464 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
9465 (Fsplit_window): Duplicate original window's display margin,
9466 fringe, and scroll-bar settings; then call Fset_window_buffer with
9467 KEEP_MARGINS non-nil. This fixes a bug which caused a split
9468 window to only preserve the display margins in one of the windows.
c4b8aebc 9469 When splitting horizontally, call adjust_window_margins on both
0416870b 9470 windows to ensure that the text area of the new windows is non too
f9711de4 9471 narrow. This fixes a bug which could cause Emacs to trap if the
0416870b
KS
9472 width of the split window was less than the width of the display
9473 margins.
cab27d04 9474 (window_box_text_cols): Rename from window_internal_width.
9018a88e 9475 All uses changed. Adapt to per-window fringes and scroll bars.
0416870b
KS
9476 Fix bug that caused vertical separator to be subtracted also on
9477 window frames. Fix another bug that did not reduce the returned
9478 value by the columns used for display margins.
9479 (window_scroll_line_based): Fix bug related to scrolling too much
9480 when display margins are present (implicitly fixed by the fix to
9481 window_box_text_cols).
9482 (scroll_left, scroll_right): Fix bug related to scrolling too far
9483 by default when display margins are present (implicitly fixed by
9484 the fix to window_box_text_cols).
9485 (struct saved_window): Rename members left to left_col, top to
9486 top_line, width to total_cols, height to total_lines, orig_top to
9487 orig_top_line, orig_height to orig_total_lines. All uses changed.
9488 New members left_margin_cols, right_margin_cols,
9489 left_fringe_width, right_fringe_width, fringes_outside_margins,
9490 scroll_bar_width, and vertical_scroll_bar_type for saving
9491 per-window display elements.
9492 (Fset_window_configuration): Restore display margins, fringes,
9493 and scroll bar settings. This fixes a bug which caused display
9494 margins to be discarded when saving and restoring a window
9495 configuration.
9496 (save_window_save): Save display margins, fringes, and scroll bar
9497 settings. This fixes a bug which caused display margins to be
9498 discarded when saving and restoring a window configuration.
9499 (Fset_window_margins): Do nothing if display margins are not
9500 really changed. Otherwise, call adjust_window_margins to ensure
9501 the text area doesn't get too narrow. This fixes a bug which
f9711de4 9502 could cause Emacs to trap if setting display margins wider than
0416870b
KS
9503 the width of the window.
9504 (Fset_window_fringes): New defun to allow user to specifically set
9505 this window's fringe widths and position vs. display margins.
cab27d04 9506 (Fwindow_fringes): New defun to return window's actual fringe settings.
0416870b
KS
9507 (Fset_window_scroll_bars): New defun to allow user to specifically
9508 set this window's scroll bar width and position.
9509 (Fwindow_scroll_bars): New defun to return window's actual scroll
9510 bar settings.
9511 (compare_window_configurations): Also compare display margins,
9512 fringes, and scroll bar settings.
9513 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
9514
9515 * xdisp.c: Make (many) trivial substitutions for renamed and
9516 new macros in dispextern.h, frame.h and window.h.
9517 (window_box_width): Adapt to per-window fringes and scroll bars,
f63fd14e 9518 and new fringe vs. display margin position. Note that returned
0416870b
KS
9519 value is no longer guaranteed to be a whole multiple of the frame
9520 column width, since per-window fringes may now be any width.
9521 (window_box_left_offset): New function like window_box_left, but
9522 value is relative to left border of window (rather than frame).
9523 (window_box_right_offset): New function like window_box_right,
9524 but value is relative to left border of window.
9525 (window_box_left): Adapt to per-window fringes and scroll bars,
9526 and new fringe vs. display margin position. Simplify by using
9527 WINDOW_LEFT_EDGE_X and window_box_left_offset.
9528 (window_box): Allow null args for unnecessary return values;
9529 change/simplify relevant callers.
9530 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
9018a88e
SM
9531 and new fringe vs. display margin position.
9532 Use window_box_left_offset and window_box_right_offset
0416870b 9533 (get_glyph_string_clip_rect): Adapt to per-window fringes and
9018a88e
SM
9534 scroll bars, and new fringe vs. display margin position.
9535 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
0416870b
KS
9536 (draw_fringe_bitmap): Rework to handle per-window fringes and new
9537 fringe vs. display margin position.
9538 (hscroll_window_tree): Use window_box_width instead of window_box.
a64387ee
JB
9539 (redisplay_window): Adapt to per-window scroll bars.
9540 (draw_glyphs): Rework to handle per-window fringes and scroll
9018a88e
SM
9541 bars, and new fringe vs. display margin position.
9542 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
a64387ee 9543 (x_clear_end_of_line): Adapt to per-window fringes and scroll
0416870b
KS
9544 bars, and new fringe vs. display margin position. Fix bug which
9545 increased total width of full_width rows by width of scroll bars
9546 although window's total width already includes that.
9547 (x_fix_overlapping_area): Simplify using window_box_left_offset.
9548 (expose_area): Simplify using window_box_left_offset.
9549 (x_draw_vertical_border): Handle per-window scroll bar settings,
9550 mixing windows with left, right and no scroll bars.
9551
9552 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
9553 where it's used in x_list_fonts (for clarity).
9554 (frame_update_line_height): Remove unused function; functionality
9555 is now done directly when setting the default font in x_set_font.
9556
9557 * xfns.c: Make (many) trivial substitutions for renamed and
9558 new macros in dispextern.h, frame.h and window.h.
9559
9560 * xmenu.c: Make (some) trivial substitutions for renamed and
9561 new macros in dispextern.h, frame.h and window.h.
9562
9563 * xterm.h (struct x_output): Move members left_pos, top_pos,
9564 border_width, pixel_height, pixel_width, line_height,
9565 internal_border_width, vertical_scroll_bar_extra,
9566 left_fringe_width, right_fringe_width, fringe_cols,
9567 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
9568 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
9569 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
9570 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
9571 (PIXEL_WIDTH, PIXEL_HEIGHT)
9572 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 9573 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
9574 frame.h and renamed [see frame.h changes].
9575 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
9576 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 9577 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 9578 and renamed [see frame.h changes].
9018a88e 9579
0416870b
KS
9580 * xterm.c: Make (several) trivial substitutions for renamed and
9581 new macros in dispextern.h, frame.h and window.h.
cab27d04 9582 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
9583 (scroll_run): Adapt to new fringe position.
9584 (glyph_rect): Use window coordinates returned from
9585 window_from_coordinates rather than frame_to_window_pixel_xy.
9586 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
9587 scroll-bars.
9588 (handle_one_xevent): Simplify a USE_GTK conditional.
9589 (x_clip_to_row): Remove superfluous whole_line_p arg and code
9590 (fringes are now inside margins, i.e. always in the clipping area).
9591 All callers changed.
9592 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
9593 directly, then call compute_fringe_widths. Don't call
9594 frame_update_line_height.
9595
9596 * w32term.h (struct w32_output): Move members left_pos, top_pos,
9597 border_width, pixel_height, pixel_width, line_height,
9598 internal_border_width, vertical_scroll_bar_extra,
9599 left_fringe_width, right_fringe_width, fringe_cols,
9600 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
9601 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
9602 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
9603 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
9604 (PIXEL_WIDTH, PIXEL_HEIGHT)
9605 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 9606 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
9607 frame.h and renamed [see frame.h changes].
9608 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
9609 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 9610 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 9611 and renamed [see frame.h changes].
9018a88e 9612
0416870b
KS
9613 * w32term.c: Make (several) trivial substitutions for renamed and
9614 new macros in dispextern.h, frame.h and window.h.
cab27d04 9615 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
9616 (glyph_rect): Use window coordinates returned from
9617 window_from_coordinates rather than frame_to_window_pixel_xy.
9618 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
9619 scroll-bars.
9620 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
9621 (fringes are now inside margins, i.e. always in the clipping area).
9622 All callers changed.
9623 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
9624 directly, then call compute_fringe_widths. Don't call
9625 frame_update_line_height.
9626
9627 * w32console.c: Make (few) trivial substitutions for renamed and
9628 new macros in dispextern.h, frame.h and window.h.
9629
9630 * w32fns.c: Make (many) trivial substitutions for renamed and
9631 new macros in dispextern.h, frame.h and window.h.
9632
9633 * w32menu.c: Make (few) trivial substitutions for renamed and
9634 new macros in dispextern.h, frame.h and window.h.
9635
9636 * macterm.h (struct mac_output): Move members left_pos, top_pos,
9637 border_width, pixel_height, pixel_width, line_height,
9638 internal_border_width, vertical_scroll_bar_extra,
9639 left_fringe_width, right_fringe_width, fringe_cols,
9640 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
9641 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
9642 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
9643 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
9644 (PIXEL_WIDTH, PIXEL_HEIGHT)
9645 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
cab27d04 9646 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
0416870b
KS
9647 frame.h and renamed [see frame.h changes].
9648 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
9649 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
cab27d04 9650 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
0416870b 9651 and renamed [see frame.h changes].
9018a88e 9652
0416870b
KS
9653 * macterm.c: Make (several) trivial substitutions for renamed and
9654 new macros in dispextern.h, frame.h and window.h.
cab27d04 9655 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
0416870b
KS
9656 (glyph_rect): Use window coordinates returned from
9657 window_from_coordinates rather than frame_to_window_pixel_xy.
9658 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
9659 scroll-bars.
9660 (x_clip_to_row): Remove superfluous whole_line_p arg and code
9661 (fringes are now inside margins, i.e. always in the clipping area).
9662 All callers changed.
9663 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
9664 directly, then call compute_fringe_widths. Don't call
9665 frame_update_line_height.
9666
9667 * macfns.c: Make (several) trivial substitutions for renamed and
9668 new macros in dispextern.h, frame.h and window.h.
9018a88e 9669 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
0416870b
KS
9670
9671 * macmenu.c: Make (few) trivial substitutions for renamed and
9672 new macros in dispextern.h, frame.h and window.h.
9673
9674 * msdos.h (struct x_output): Remove members left_pos, top_pos,
9675 and line_height, and use corresponding new members in struct
9676 frame. All uses changed.
9677 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
9678 superseeded by corresponding macros in frame.h.
9679
9680 * msdos.c: Make (several) trivial substitutions for renamed and
9681 new macros in dispextern.h, frame.h and window.h.
9682 (IT_note_mouse_highlight): Use updated window coordinates returned
9018a88e 9683 by window_from_coordinates, rather than adjusting them locally.
0416870b
KS
9684 (internal_terminal_init): No need to initialize line_height here;
9685 it now defaults to 1.
9686
9018a88e
SM
96872003-05-24 Stefan Monnier <monnier@cs.yale.edu>
9688
9689 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
9690 dropping `down' events.
9691
016bd3c0
AS
96922003-05-24 Andreas Schwab <schwab@suse.de>
9693
9694 * coding.c (find_safe_codings): Fix last change.
9695
4dacadcc
TTN
96962003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
9697
9698 * xfns.c (x_window): Fix typo from 2003-05-21 change.
9699
319830ce
SM
97002003-05-23 Stefan Monnier <monnier@cs.yale.edu>
9701
9018a88e
SM
9702 * xdisp.c (display_mode_element): Increase max depth.
9703 Simplify the error handling code. Use a different error string
9704 for the case where we hit the depth limit.
9705
319830ce
SM
9706 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
9707
9708 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
9709
97102003-05-21 Stefan Monnier <monnier@cs.yale.edu>
9711
9712 * intervals.c (get_local_map): Don't get char-property of previous
9713 point any more: get_pos_property already does it and better.
9714
c67de8ba
DL
97152003-05-21 Dave Love <fx@gnu.org>
9716
9717 [Merged from unicode branch.]
9718
9719 * xfns.c (x_window, x_window): Use use_xim.
9720
9721 * xterm.c (use_xim): Initialize.
9722 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
9723 (x_term_init): Maybe set use_xim.
9724
9725 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
9726
edd3ff1d
JR
97272003-05-21 Jason Rumney <jasonr@gnu.org>
9728
9729 * unexw32.c (_start): Remove _fmode initialization.
9730
9731 * emacs.c (main) [WINDOWSNT]: Move it here.
9732
463f55ee
DL
97332003-05-20 Dave Love <fx@gnu.org>
9734
9735 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
9736
af253914
RS
97372003-05-19 Richard M. Stallman <rms@gnu.org>
9738
9739 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
9740 as value for QCfont attribute.
9741 (realize_default_face): lface should already exist; crash if not.
9742 Specify 0 for FORCE_P when calling set_lface_from_font_name.
9743
9744 * frame.c (Fignore_event): Doc fix.
9745
1d211019
KH
97462003-05-19 Kenichi Handa <handa@m17n.org>
9747
9748 * coding.c (decode_coding_string): Handle post-read-conversion
9749 even if the coding doesn't require decoding.
9750
4dd68254
RS
97512003-05-18 Richard M. Stallman <rms@gnu.org>
9752
9753 * callproc.c (Fcall_process_region): Doc fix.
9754
14d87dc9
SM
97552003-05-17 Stefan Monnier <monnier@cs.yale.edu>
9756
deca5d96
SM
9757 * lread.c (Fload): Print a message if package is obsolete.
9758
14d87dc9
SM
9759 * window.c (Fselect_window): Add optional `norecord' arg.
9760 (select_window_1): Fold into Fselect_window.
9761 (select_window_norecord): New function.
9762 (temp_output_buffer_show): Use it. Preserve current buffer.
9763
9764 * window.h (Fselect_window): Update declaration.
9765
9766 * window.c (delete_window, Fother_window, Fset_window_configuration):
9767 * minibuf.c (read_minibuf):
9768 * macterm.c (x_new_focus_frame):
9769 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
9770 * callint.c (Fcall_interactively):
9771 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
9772
9773 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
9774
78f52183
DK
97752003-05-17 David Kastrup <dak@gnu.org>
9776
9777 * process.c (read_process_output): Back out change from 2003-03-09.
9778
14d87dc9
SM
97792003-05-17 Stefan Monnier <monnier@cs.yale.edu>
9780
9781 * editfns.c (get_pos_property): Don't assume that `object' = nil.
9782
9783 * textprop.c (text_property_stickiness): New arg `buffer'.
9784
9785 * intervals.h (text_property_stickiness): New arg `buffer'.
9786 (get_pos_property): Declare.
9787
9788 * intervals.c (get_local_map): Use get_pos_property, to obey
9789 stickiness and empty overlays.
9790 (create_root_interval, graft_intervals_into_buffer): Use BEG.
9791 (merge_properties, intervals_equal, merge_properties_sticky):
9792 Use XCAR, XCDR.
9793 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
9794
1fd1cc2f
RS
97952003-05-17 Richard M. Stallman <rms@gnu.org>
9796
4f9f637a
RS
9797 * minibuf.c (read_minibuf): If buffer is empty, record the default
9798 in the history.
9799 (Fminibuffer_complete_word): When deleting the overlap, take account
9800 of its real position.
9801
9802 * fns.c (map_char_table): Fix previous change.
9803
1fd1cc2f
RS
9804 * syntax.c (find_defun_start):
9805 When open_paren_in_column_0_is_defun_start,
9806 return beginning of buffer.
9807
9808 * lisp.h (map_char_table): Declare added arg.
9809
9810 * fns.c (map_char_table): New arg TABLE gets the master table.
9811 All calls changed.
9812 Process default and inheritance, resorting to Faref if necessary.
9813
9814 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
9815 (Faccessible_keymaps): Pass new arg to map_char_table.
9816
9817 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
9818
9819 * casetab.c (set_case_table): Pass new arg to map_char_table.
9820
9821 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
9822
9823 * lisp.h (specbinding_func): New typedef.
9824 (struct specbinding): Use specbinding_func, to put the `volatile'
9825 in the right place.
9826
9827 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
9828 to avoid GCC warning.
14d87dc9 9829
b6189c3b 98302003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org>
b4bd27c5 9831
14d87dc9 9832 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
b4bd27c5 9833
35fb885d
SM
98342003-05-15 Stefan Monnier <monnier@cs.yale.edu>
9835
9836 * keyboard.c (apply_modifiers): Don't fill the other cache.
9837
9a274fbd
SM
98382003-05-14 Stefan Monnier <monnier@cs.yale.edu>
9839
c55b5fad
SM
9840 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
9841
9a274fbd
SM
9842 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
9843 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
9844 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
9845 (Fset_window_configuration, Fcurrent_window_configuration)
9846 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
9847 (Fpos_visible_in_window_p, mark_window_cursors_off)
9848 (window_internal_height, window_internal_width, Frecenter)
9849 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
9850 (replace_buffer_in_all_windows, init_window_once, init_window)
9851 (syms_of_window, keys_of_window): Move from lisp.h.
9852 * lisp.h: Move window.c declarations to window.h.
9853
9854 * bytecode.c: Include window.h.
9855 * emacs.c: Include window.h.
9856
14d87dc9 9857 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
9a274fbd
SM
9858 (keyremap): Add `parent' field.
9859 (keyremap_step): Use it. Remove `parent' argument.
9860 (read_key_sequence): Setup and use the new `parent' field.
9861
fd93e331
SM
98622003-05-11 Stefan Monnier <monnier@cs.yale.edu>
9863
9864 * keyboard.c (adjust_point_for_property): Ensure termination.
9865
1c4001a1
SM
98662003-05-10 Stefan Monnier <monnier@cs.yale.edu>
9867
9868 * keyboard.c (follow_key): Remove dead variable `did_meta'.
9869 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
9870 duplicated handling of function-key-map and key-translation-map
9871 in read_key_sequence.
9872 (read_key_sequence): Use them.
9873
9874 * keyboard.c (adjust_point_for_property): Try harder to move point
9875 to the non-sticky end of an invisible property.
9876
9877 * xdisp.c (single_display_prop_intangible_p): Make `space' display
9878 property intangible as well.
9879
780379b1
AS
98802003-05-10 Andreas Schwab <schwab@suse.de>
9881
9882 * xmenu.c (single_menu_item): Change last parameter to void* to
9883 avoid warning.
9884
ca2de342
RS
98852003-05-09 Richard M. Stallman <rms@gnu.org>
9886
9887 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
9888 Bind Qinhibit_modification_hooks to t so there will be no GC.
9889 Rename local `tem' to `save_deactivate_mark'.
9890
9891 * eval.c (specpdl_ptr): Declare volatile.
9892 (unbind_to): Copy the whole binding and decrement specpdl_ptr
9893 before doing the work of unbinding it.
9894
9895 * lisp.h (struct specbinding): Declare elements volatile.
9896 (specpdl_ptr): Declare volatile.
9897
9898 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
9899
9900 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
9901 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
9902
347003be
DL
99032003-05-08 Dave Love <fx@gnu.org>
9904
9905 * coding.c (Vlast_coding_system_used): Doc fix.
9906
5adcec23
JR
99072003-05-07 Jason Rumney <jasonr@gnu.org>
9908
9909 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
9910 when system does not support them.
9911
5fe3b8a4
SM
99122003-05-05 Stefan Monnier <monnier@cs.yale.edu>
9913
9914 * fileio.c (Qwrite_region_annotate_functions): New var.
9915 (build_annotations): Use it to process the global part of the hook.
9916 (syms_of_fileio): Init and staticpro it.
9917
9918 * keyboard.c (safe_run_hooks_error): Display a message instead of
9919 silently ignoring the error.
9920
99212003-05-03 Stefan Monnier <monnier@cs.yale.edu>
9922
9923 * keyboard.c (input_available_signal): Mark static.
9924 (menu_bar_items): Use map_keymap.
9925 (menu_bar_one_keymap): Remove.
9926 (menu_bar_item): Adjust arglist (for use in map_keymap).
9927 Properly hide a second binding when not both are keymaps.
9928
9929 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
9930 (single_keymap_panes): Use it and map_keymap.
9931 (single_menu_item): Use skp as well.
9932
9933 * keymap.h (map_keymap_function_t): New type.
9934 (map_keymap): Declare.
9935
9936 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
9937 (map_keymap_call, Fmap_keymap): New functions.
9938 (syms_of_keymap): Defsubr map-keymap.
9939
4b1b4443
JD
99402003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9941
9942 * gtkutil.c (create_dialog, make_widget_for_menu_item)
9943 (make_menu_item, create_menus, xg_update_menu_item): Don't call
9944 ..._with_mnemonic functions for menu items.
9945
1f816871
KH
99462003-05-01 Kenichi Handa <handa@m17n.org>
9947
9948 * coding.c (coding_system_accept_latin_extra_p): Delete this
9949 function.
9950 (find_safe_codings): Pay attention to
9951 the property tranlsation-table-for-encode of each codings.
9952 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
9953
5ed6ba5b
SM
99542003-05-01 Stefan Monnier <monnier@cs.yale.edu>
9955
9956 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
9957
32c06229
SM
99582003-04-30 Stefan Monnier <monnier@cs.yale.edu>
9959
9960 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
9961
9962 * lisp.h (CHECK): Wrap args in parenthesis.
9963 (specbind): Fix doc: symbol = Qnil is not supported any more.
9964
9965 * bytecode.c (Fbyte_code) <unwind-protect>:
9966 Use Fprogn rather than 0 and Qnil.
9967
9968 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
9969 `double', and `triple' modifiers as well.
9970
ed3c3314
RS
99712003-04-30 Richard M. Stallman <rms@gnu.org>
9972
9973 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
9974
9975 * alloc.c (abort_on_gc): New variable.
9976 (Fgarbage_collect): Abort if abort_on_gc is set.
9977
9978 * lisp.h (abort_on_gc): Add decl.
9979
9980 * eval.c (Fsignal): Clear abort_on_gc.
9981
9982 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
32c06229 9983 Reinit FORMAT_START and END before second scan.
ed3c3314
RS
9984
9985 * xdisp.c (move_it_vertically_backward): Do the final big else
9986 even if nlines is 0.
9987
9988 * xdisp.c (redisplay_internal): Finish the per-frame loop
9989 even if redisplay is suspended by input.
9990
0b325c12
AC
99912003-04-24 Andrew Choi <akochoi@shaw.ca>
9992
9993 * macterm.c (x_list_fonts): Return all fonts that match if
9994 maxnames = -1.
9995
4e837cd0
KH
99962003-04-25 Kenichi Handa <handa@m17n.org>
9997
9998 * syntax.c (skip_chars): Fix previous change.
9999
9af7511a
KH
100002003-04-24 Kenichi Handa <handa@m17n.org>
10001
10002 * syntax.c (skip_chars): Make the code faster by using the common
10003 technique of *p, *stop, and *endp.
10004
e3b2c21f
JD
100052003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10006
10007 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
32c06229 10008 tool_bar_items so GTK tool bar expose callback does not access items
e3b2c21f
JD
10009 being updated.
10010
32c06229
SM
100112003-04-19 Stefan Monnier <monnier@cs.yale.edu>
10012
10013 * eval.c (Fapply): Undo last change and add a comment about why.
10014
c6464167
MB
100152003-04-18 Miles Bader <miles@gnu.org>
10016
10017 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
10018 pickier PARSE_MULTIBYTE_SEQ.
10019
e509f168
SM
100202003-04-17 Stefan Monnier <monnier@cs.yale.edu>
10021
10022 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
10023 Use XCDR, XCAR, CONSP.
10024 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
10025 (Fapply): Remove unnecessary GCPRO.
10026
10027 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
10028
10029 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
10030
10031 * buffer.h: Don't hardcode BEG==1.
10032
10033 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
10034
5ceea398
RS
100352003-04-16 Richard M. Stallman <rms@gnu.org>
10036
10037 * xdisp.c (try_window, try_window_reusing_current_matrix):
10038 When at end of window, set window_end_pos to Z-ZV.
10039
10040 * buffer.c (Foverlay_recenter): Doc fix.
10041
e509f168
SM
100422003-04-14 Stefan Monnier <monnier@cs.yale.edu>
10043
10044 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
10045
d243e605
AC
100462003-04-14 Andrew Choi <akochoi@shaw.ca>
10047
10048 * macterm.c (mac_check_for_quit_char): Don't check more often than
10049 once a second.
10050
6901b111
SM
100512003-04-11 Stefan Monnier <monnier@cs.yale.edu>
10052
10053 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
10054 specially, so that they can't hide an implicit switch-frame event.
10055 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
10056 (head_table): Use switch-frame as event_kind for select-window.
10057 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
10058
10059 * editfns.c (Fformat): Lisp_Object/int mixup.
10060 (format2): Remove unused var numargs.
10061
e301806f 100622003-04-11 Kenichi Handa <handa@m17n.org>
aa95b710 10063
6901b111 10064 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
aa95b710
KH
10065 (Qafter_insert_file_set_coding): New variable.
10066 (syms_of_fileio): Initialize and staticpro it. Delete declaration
10067 for after-insert-file-adjust-coding-function.
10068 (Finsert_file_contents): Call Qafter_insert_file_set_coding
10069 instead of Vafter_insert_file_adjust_coding_function.
10070
38914424
KH
100712003-04-11 Kenichi Handa <handa@m17n.org>
10072
10073 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
10074
10075 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
10076 string. Callers changed.
10077
100782003-04-10 Kenichi Handa <handa@m17n.org>
a288d979 10079
6901b111 10080 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
a288d979 10081 (syms_of_fileio): Declare it as a lisp variable.
6901b111
SM
10082 (Finsert_file_contents):
10083 Call Vafter_insert_file_adjust_coding_function before calling
a288d979
KH
10084 decode-format.
10085
f979dc05
JD
100862003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10087
10088 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
10089 get GtkAdjustment as widget now is a GtkRange.
10090
10091 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
10092 GtkRange to avoid memory leak.
10093
f8c6b4c2 100942003-04-09 Kenichi Handa <handa@m17n.org>
cb98871c 10095
50ebc53d
KH
10096 * xfaces.c (Vface_font_rescale_alist): New variable.
10097 (struct font_name): New member rescale_ratio.
10098 (font_rescale_ratio): New function.
6901b111 10099 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
50ebc53d
KH
10100 (better_font_p): On comparing point sized, pay attention to
10101 recale_ratio member of fonts.
10102 (build_scalable_font_name): Reflect font->rescale_ratio in the
10103 font name.
6901b111 10104 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
50ebc53d 10105
cb98871c
KH
10106 * lread.c (read1): Before calling index, check if the 2nd
10107 arguemnt is in ASCII range.
10108
4773b8ca
RS
101092003-04-08 Richard M. Stallman <rms@gnu.org>
10110
b0ada147
RS
10111 * fileio.c (Ffile_symlink_p): Doc fix.
10112
10113 * editfns.c (Fformat): Translate positions of text properties
10114 in the format string to apply them to the result.
10115
4773b8ca
RS
10116 * fileio.c (Finsert_file_contents): Doc fix.
10117 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
10118
101192003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
6901b111 10120
4773b8ca
RS
10121 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
10122
e8f25745 101232003-04-08 Steven Tamm <steventamm@mac.com>
b0ada147 10124
e8f25745
ST
10125 * mac.c (init_mac_osx_environment): Switch libexec and bin so
10126 that self-contained application finds libexec files.
10127
f8c6b4c2 101282003-04-08 Kenichi Handa <handa@m17n.org>
2310d84c 10129
6901b111
SM
10130 * coding.c (code_convert_region_unwind):
10131 Set Vlast_coding_system_used to the argument.
2310d84c
KH
10132 (code_convert_region): If post-read-conversion function changed
10133 the value of last-coding-sytem, keep the new value in
10134 coding->symbol so that it won't be overridden.
10135 (run_pre_post_conversion_on_str): Likewise.
7c086845
KH
10136 (coding_system_accept_latin_extra_p): New function.
10137 (find_safe_codings): Pay attention to characters registered in
10138 latin-extra-code-table.
2310d84c 10139
39c9a034
TTN
101402003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
10141
10142 * Makefile.in (md5.o): Add missing dependency info.
10143
eb67c5d6
RS
101442003-04-06 Richard M. Stallman <rms@gnu.org>
10145
10146 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
10147
10148 * marker.c (verify_bytepos): New function.
10149
10150 * intervals.c (set_intervals_multibyte_1): When becoming
10151 multibyte, adjust right and left child sizes to a whole set of
10152 characters. If an interval gets zero total-length, delete it.
10153 If an interval consists of just its children, delete one of them.
10154
10155 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
10156 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
39c9a034 10157
eb67c5d6
RS
10158 * alloc.c: (VALIDATE_LISP_STORAGE): Macro deleted.
10159 All calls deleted.
10160 (lisp_malloc): Do the work here directly.
10161
b1f81fc5
JB
101622003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
10163
10164 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
10165 char tables.
10166
101672003-04-04 Kenichi Handa <handa@m17n.org>
aa8b70ae
KH
10168
10169 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
10170 destructively change "%S" to "%s".
10171
774666fb
MB
101722003-04-03 Miles Bader <miles@gnu.org>
10173
10174 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
10175 always set.
10176
19c37f01
DL
101772003-04-01 Dave Love <fx@gnu.org>
10178
10179 * xfns.c (xpm_lookup_color): Grok "opaque".
10180
2f4b24c3
AC
101812003-03-31 Andrew Choi <akochoi@shaw.ca>
10182
10183 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
10184 parent window ID.
10185
10186 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
10187
10188 * macterm.h (struct mac_output): Define x_pixels_diff and
10189 y_pixels_diff.
b1f81fc5 10190
9443fcf6
JB
101912003-03-31 Juanma Barranquero <lektu@terra.es>
10192
10193 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
10194 blockinput.h and files included from it.
10195
e072891b
KS
101962003-03-31 Kim F. Storm <storm@cua.dk>
10197
10198 The following changes consolidates the common code related to
10199 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
10200 files into frame.c.
9443fcf6 10201
e072891b
KS
10202 * frame.c: Include blockinput.h.
10203 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
10204 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
10205 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
10206 related vars here.
10207 (struct frame_parm_table, frame_parms): New table for describing
10208 frame parameters and their associated Q-variable.
10209 The order of the parameters corresponds to the sequence of the
10210 frame_parm_handlers table in redisplay_interface.
10211 (x_fullscreen_move, x_set_frame_parameters)
10212 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
10213 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
10214 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
10215 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
10216 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
10217 Generic functions for processing of frame parameters.
10218 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
10219 (display_x_get_resource, x_get_resource_string): Functions for
10220 generic access to X resources.
10221 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
10222 (x_default_parameter, Fx_parse_geometry): Functions for generic
10223 access to frame parameters.
6901b111
SM
10224 (x_figure_window_size): Generic calculation of frame size.
10225 Fixed to add space needed for tool bar. Also setup size_hint_flags.
e072891b
KS
10226 (syms_of_frame): Intern and staticpro frame parameter variables.
10227 Defvar_lisp Vx_resource_class and Vx_resource_name here.
10228 Defsubr Sx_get_resource and Sx_parse_geometry.
9443fcf6 10229
e072891b
KS
10230 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
10231 parameter related vars defined in frame.c.
10232 (EMACS_CLASS): Define here.
10233 (enum FULLSCREEN_*): Define here.
10234 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
10235 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
10236 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
10237 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
10238 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
10239 (x_set_visibility, x_set_autoraise, x_set_autolower)
10240 (x_set_unsplittable, x_set_vertical_scroll_bars)
10241 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
10242 (x_figure_window_size): Add prototypes.
10243
10244 * dispextern.h (frame_parm_handler): New typedef.
10245 (struct redisplay_interface): New member frame_parm_handlers.
10246 (enum resource_types): Move declaration here.
10247 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
10248 (x_default_parameter): Add prototypes.
10249
10250 * window.c: Remove extern decl for frame parameter vars.
10251 (change_window_heights): New generic function;
10252 replaces x_change_window_heights. All users changed.
10253
10254 * window.h (change_window_heights): Add prototype.
10255
10256 * xfaces.c: Remove extern decl for frame parameter vars.
10257
10258 * xterm.h (EMACS_CLASS): Remove. Use generic define.
10259 (struct w32_display_info): Fix type of xrdb member.
10260 (enum FULLSCREEN_*): Remove.
10261 Remove prototypes for generic functions (in frame.h).
10262
10263 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
10264 parameters now defined in frame.h and frame.c.
f63fd14e 10265 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
10266 (enum x_frame_parms): Remove (bogus, unused enum).
10267 (check_x_display_info): Make non-static (for frame.c).
10268 (struct x_frame_parm_table, x_frame_parms): Remove.
10269 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
10270 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
10271 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
10272 (x_change_window_heights, x_set_autoraise, x_set_autolower)
10273 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
10274 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
10275 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
10276 Remove. Use generic functions instead.
10277 (enum resource_types): Remove.
10278 (x_set_scroll_bar_default_width): New global function (for frame.c).
10279 (Fx_create_frame): Depend on x_figure_window_size to add space for
10280 toolbar and setup size_hint_flags.
10281 (x_frame_parm_handlers): New table for redisplay_interface.
10282 (syms_of_xfns): Don't intern/staticpro removed vars.
9443fcf6 10283
e072891b 10284 * xterm.c: Remove unnecessary extern declarations.
f63fd14e 10285 (x_fullscreen_adjust): Remove. Use generic instead.
e072891b
KS
10286 (x_redisplay_interface): Add x_frame_parm_handlers member.
10287
10288 * w32gui.h (XrmDatabase): New (dummy) typedef.
10289
10290 * w32term.h (EMACS_CLASS): Remove. Use generic define.
10291 (struct w32_display_info): Fix type of xrdb member.
10292 (enum FULLSCREEN_*): Remove.
10293 (x_fullscreen_adjust): Remove prototype.
10294
10295 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
10296 parameters now defined in frame.h and frame.c.
f63fd14e 10297 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
10298 (enum x_frame_parms): Remove (bogus, unused enum).
10299 (check_x_display_info): Make non-static (for frame.c).
10300 (struct x_frame_parm_table, x_frame_parms): Remove.
10301 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
10302 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
10303 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
10304 (x_change_window_heights, x_set_autoraise, x_set_autolower)
10305 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
10306 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
10307 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
10308 Remove. Use generic functions instead.
10309 (enum resource_types): Remove.
10310 (x_set_scroll_bar_default_width): New global function (for frame.c).
10311 (Fx_create_frame): Depend on x_figure_window_size to add space for
10312 toolbar and setup size_hint_flags.
10313 (w32_frame_parm_handlers): New table for redisplay_interface.
10314 (syms_of_w32fns): Don't intern/staticpro removed vars.
9443fcf6 10315
e072891b
KS
10316 * w32term.c: Remove unnecessary extern declarations.
10317 (x_fullscreen_adjust): Remove. Use generic instead.
10318 (x_redisplay_interface): Add w32_frame_parm_handlers member.
10319
10320 * w32reg.c (x_get_string_resource): Use XrmDatabase.
10321
10322 * macgui.h (XrmDatabase): New (dummy) typedef.
10323
10324 * macterm.h (EMACS_CLASS): Remove.
10325 (struct mac_display_info): Add xrdb member.
10326 (struct mac_output): Add want_fullscreen member.
10327
10328 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
10329 parameters now defined in frame.h and frame.c.
f63fd14e 10330 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
10331 (check_x_display_info): Make non-static (for frame.c).
10332 (struct x_frame_parm_table, x_frame_parms): Remove.
10333 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
10334 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
10335 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
10336 (x_change_window_heights, x_set_autoraise, x_set_autolower)
10337 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
10338 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
10339 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
10340 Remove. Use generic functions instead.
10341 (enum resource_types): Remove.
10342 (x_set_scroll_bar_default_width): New global function (for frame.c).
10343 (mac_frame_parm_handlers): New table for redisplay_interface.
10344 (syms_of_macfns): Don't intern/staticpro removed vars.
9443fcf6 10345
e072891b
KS
10346 * macterm.c: Remove unnecessary extern declarations.
10347 (x_redisplay_interface): Add mac_frame_parm_handlers member.
10348
3e6a560b
KS
10349 * Makefile.in (frame.o): Add dependency on blockinput.h and files
10350 included from it (atimer.h and systime.h).
10351
7b7b454e
AS
103522003-03-30 Andreas Schwab <schwab@suse.de>
10353
10354 * xdisp.c (x_insert_glyphs): Fix swapped width and height
10355 parameters for shift_glyphs_for_insert.
10356
10357 * macterm.c (x_redisplay_interface): Add missing entry for
10358 draw_vertical_window_border.
10359
beb402de
KG
103602003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
10361
10362 * fileio.c (Fexpand_file_name): In the no-handler case, after
10363 expanding, look again for a handler and invoke it. This is needed
10364 for filenames like "/foo/../user@host:/bar/../baz" -- the first
10365 expansion produces "/user@host:/bar/../baz" which needs to be
10366 expanded again for the finame result "/user@host:/baz".
10367
b676f356
JD
103682003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10369
10370 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
10371 of area to be redrawn for better performance.
10372
3c671a56
SM
103732003-03-28 Stefan Monnier <monnier@cs.yale.edu>
10374
10375 * xterm.c (take_vertical_position_into_account): Remove.
10376 (xt_action_hook): Call set_vertical_scroll_bar if needed.
10377 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
10378 (xm_scroll_callback, x_create_toolkit_scroll_bar)
10379 (x_set_toolkit_scroll_bar_thumb): Simplify.
10380 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
10381 (XTread_socket): Remove unused var.
10382 (x_make_frame_invisible): Replace goto with else.
10383
10384 * xdisp.c (set_vertical_scroll_bar): New fun.
10385 (redisplay_window): Use it.
10386
84f2e615
RS
103872003-03-26 Richard M. Stallman <rms@gnu.org>
10388
10389 * xdisp.c (update_tool_bar): Recompute tool bar if
10390 update_mode_lines is set. Set w->update_mode_line
10391 only if the tool bar contents actually change.
10392 (update_menu_bar): Undo previous change.
10393
70b6104c
JD
103942003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10395
5fd6f727
JD
10396 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
10397 (xg_frame_set_char_size): Calculate scroll bar width before frame
10398 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
10399 (xg_separator_p): Check for all documented separator types.
10400 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
10401 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
10402
70b6104c
JD
10403 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
10404 so tool bar gets updated.
10405
d9b36d19
SM
104062003-03-26 Stefan Monnier <monnier@cs.yale.edu>
10407
10408 * data.c (store_symval_forwarding): Re-instate part of the code
10409 that was deleted with too much enthusiasm.
10410
104112003-03-25 Stefan Monnier <monnier@cs.yale.edu>
10412
10413 * data.c (store_symval_forwarding): Delete special read-only
10414 hack for type == -1, since we now use ->constant instead.
10415 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
10416
10417 * buffer.c (overlays_in): Declare static.
10418 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
10419 `constant' field rather than the variable's `type' field.
10420
365fa1b3
AC
104212003-03-24 Andrew Choi <akochoi@shaw.ca>
10422
10423 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
10424
10425 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
10426
10427 * fns.c [MAC_OSX]: Do not redefine vector.
10428
10429 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
10430
10431 * macgui.h: Remove definition of No_Cursor.
10432
d9b36d19 10433 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
365fa1b3
AC
10434
10435 * xdisp.c: Define No_Cursor.
10436 (x_write_glyphs, notice_overwritten_cursor)
10437 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
10438 (note_mouse_highlight): Remove Mac-specific code.
10439 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
d9b36d19 10440
c0bcce6f
JPW
104412003-03-24 John Paul Wallington <jpw@gnu.org>
10442
10443 * xdisp.c (redisplay_window): If mini window's buffer is not
10444 empty, then redisplay it like other windows.
10445
a526b96c
KS
104462003-03-23 Kim F. Storm <storm@cua.dk>
10447
10448 * w32term.c (w32_draw_window_cursor): Fix last change.
10449
37ab321e
KH
104502003-03-23 Kenichi Handa <handa@m17n.org>
10451
a526b96c
KS
10452 * alloc.c (make_string_from_bytes, make_specified_string):
10453 Add `const' for the arg CONTENTS.
37ab321e
KH
10454
10455 * lisp.h (make_string_from_bytes, make_specified_string):
10456 Prototypes adjusted.
10457
7863d625
JD
104582003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10459
a526b96c 10460 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
fd4c9408 10461
7863d625
JD
10462 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
10463 (XG_SB_RANGE): New define.
10464
10465 * gtkutil.c (xg_fixed_handle_expose): New function.
10466 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
10467 expose events.
10468 (xg_update_scrollbar_pos): Take two more arguments, left and width
10469 of scroll bar including borders.
10470 Clear left and right part outside scroll bar separately as some
10471 themes have bars that are not an even number of pixels.
d9b36d19 10472 Don't set reallocate_redraws, don't call
7863d625
JD
10473 gdk_window_process_all_updates.
10474 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
10475 so no need to change it. Calculate size and value with XG_SB_RANGE.
10476
d9b36d19
SM
10477 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
10478 Pass left and width of scroll bar including borders to
7863d625
JD
10479 xg_update_scrollbar_pos.
10480
af0ad939
TTN
104812003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
10482
10483 * Makefile.in: Make sure space precedes end-of-line backslashes.
10484
b22139fd
KS
104852003-03-22 Kim F. Storm <storm@cua.dk>
10486
10487 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
10488 Add generic versions here. Remove system specific versions
10489 defined elsewhere.
10490
10491 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
10492 Add prototypes.
10493
6e6410cf
KS
10494 * xterm.h (STORE_NATIVE_RECT): New macro.
10495
5c9cc435
KS
104962003-03-21 Kim F. Storm <storm@cua.dk>
10497
00c64fab
SM
10498 * xdisp.c (get_glyph_string_clip_rect):
10499 Use FRAME_INTERNAL_BORDER_WIDTH.
5c9cc435
KS
10500
10501 * dispextern.h (struct redisplay_interface): Add active_p
10502 argument to draw_window_cursor member. All uses changed.
10503
acd37560
KS
105042003-03-21 Kim F. Storm <storm@cua.dk>
10505
10506 The following changes consolidate code related to writing and
10507 inserting glyphs, exposing frame, the tool bar, the mouse face,
10508 the output cursor, and help echo from xterm.c, w32term.c and
10509 macterm.c into xdisp.c. It also generalizes the use of the
10510 window_part enum instead of using numeric values throughout.
af0ad939 10511
acd37560
KS
10512 * xdisp.c: Consolidate gui-independent code here.
10513 Include keymap.h.
10514 (Qhelp_echo): Import.
10515 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
10516 (help_echo_string, help_echo_window, help_echo_object)
10517 (previous_help_echo_string, help_echo_pos): Declare here.
10518 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
10519 (estimate_mode_line_height): Define here. Handle windowing
10520 systems directly (without using estimate_mode_line_height_hook).
10521 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
10522 (update_window_cursor, update_cursor_in_window_tree)
10523 (fast_find_position, fast_find_string_pos)
10524 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
10525 (expose_area, expose_line, expose_overlaps, expose_window)
10526 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
10527 declared static as they are only used locally in xdisp.c.
10528 (draw_glyphs): Rename from x_draw_glyphs and make static.
10529 (tool_bar_item_info, notice_overwritten_cursor): Make static.
10530 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
10531 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
af0ad939 10532 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
acd37560
KS
10533 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
10534 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
10535 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
10536 (note_mouse_highlight, x_clear_window_mouse_face)
10537 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
10538 (x_intersect_rectangles): New generic functions for use by xdisp.c
10539 and GUI front-ends.
10540 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
10541 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
10542
10543 * dispextern.h (Display_Info): Generic typedef for *_display_info.
10544 (NativeRectangle): Generic typedef for rectangle type.
10545 (enum window_part): Move here from window.c.
10546 (struct redisplay_interface): New members flush_display_optional,
10547 define_frame_cursor, clear_frame_area, draw_window_cursor,
10548 draw_vertical_window_border, shift_glyphs_for_insert.
10549 Rename member clear_mouse_face to clear_window_mouse_face.
10550 (estimate_mode_line_height_hook): Remove hook.
10551 (auto_raise_tool_bar_buttons_p): Don't declare extern.
10552 (tool_bar_item_info): Remove prototype.
10553 (help_echo_string, help_echo_window, help_echo_object)
10554 (previous_help_echo_string, help_echo_pos)
10555 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
10556 (x_stretch_cursor_p, output_cursor): Declare extern.
10557 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
10558 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
10559 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
10560 (display_and_set_cursor, set_output_cursor, x_cursor_to)
10561 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
10562 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
10563 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
10564 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
10565 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
10566 Add prototypes.
10567 (mode_line_string, marginal_area_string): Fix prototypes.
10568
10569 * window.c (enum window_part): Move to dispextern.h.
10570 (coordinates_in_window): Use enum window_part member names
10571 instead of numbers to describe return value.
10572 (struct check_window_data): Change part member to window_part.
10573 (check_window_containing): Return window_part unaltered.
10574 (window_from_coordinates): Change part arg from int to enum
10575 window_part. Allow part arg to be null. All users changed.
10576
10577 * window.h (window_from_coordinates): Fix prototype.
10578
10579 * term.c (estimate_mode_line_height): Move to xdisp.c.
10580
10581 * keyboard.c (make_lispy_event): Use enum window_part.
10582
10583 * dispnew.c (mode_line_string, marginal_area_string): Use enum
10584 window_part instead of int in arg list. Users changed.
10585
10586 * xterm.h (No_Cursor): Declare as None for X.
10587 (struct mac_output): Replace member cross_cursor by hand_cursor.
af0ad939 10588
acd37560
KS
10589 * xterm.c: Remove consolidated defines and code.
10590 (BETWEEN): Remove unused macro.
10591 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
10592 (x_define_frame_cursor, x_clear_frame_area)
10593 (x_draw_window_cursor): New X-specific functions for RIF.
10594 (x_redisplay_interface): Add new members.
10595
10596 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
10597
10598 * w32term.h (struct w32_output): Remove cross_cursor member.
10599
10600 * w32term.c: Remove consolidated defines and code.
10601 (BETWEEN): Remove unused macro.
10602 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
10603 (w32_define_frame_cursor, w32_clear_frame_area)
10604 (w32_draw_window_cursor): New W32-specific functions for RIF.
10605 (w32_redisplay_interface): Add new members.
10606
a64387ee 10607 * w32gui.h (No_Cursor): Define as 0 for W32.
acd37560
KS
10608 (XRectangle): Add X compatible rectangle type.
10609 (NativeRectangle): Declare as RECT for W32.
10610 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
10611
10612 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
10613
10614 * w32console.c: Remove consolidated defines and code.
af0ad939 10615
acd37560
KS
10616 * msdos.h (Display_Info): Add generic typedef.
10617
10618 * msdos.c: Remove consolidated defines and code.
10619 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
10620
10621 * macterm.h (struct mac_output): Replace member cross_cursor by
10622 hand_cursor.
10623 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
10624
10625 * macterm.c: Remove consolidated defines and code.
10626 (BETWEEN): Remove unused macro.
10627 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
10628 (mac_define_frame_cursor, mac_clear_frame_area)
10629 (mac_draw_window_cursor): New Mac-specific functions for RIF.
10630 (x_redisplay_interface): Add new members.
10631
10632 * macgui.h (No_Cursor): Define as 0 for Mac.
10633 (XRectangle): Add X compatible rectangle type.
10634 (NativeRectangle): Declare as Rect for Mac.
10635 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
10636
204ccab1
KS
10637 * macfns.c (x_set_mouse_color): Setup hand_cursor.
10638 (x_set_cursor_color): Use x_display_and_set_cursor.
acd37560 10639
9443fcf6 10640 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
acd37560
KS
10641 included from it. Add dependency on keymap.h.
10642
10643 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
10644
8ba01a70 106452003-03-21 Kenichi Handa <handa@m17n.org>
3f817c73
KH
10646
10647 * fileio.c (Fexpand_file_name): Fix previous change.
10648
8ba01a70 106492003-03-19 Kenichi Handa <handa@m17n.org>
4f497b0a
KH
10650
10651 * fileio.c (Ffile_name_directory): Reconstruct file name by
10652 make_specified_string.
10653 (Ffile_name_nondirectory, Ffile_name_as_directory)
10654 (Fdirectory_file_name, Fexpand_file_name)
10655 (Fsubstitute_in_file_name): Likewise.
10656 (Fread_file_name): Compare decoded homedir with DIR and
10657 DEFAULT_FILENAME.
10658
10659 * alloc.c (make_specified_string): If NCHARS is negative, count
10660 the number of characters.
10661
19536747
JD
106622003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10663
de38ae5a
JD
10664 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
10665 all widgets.
10666
19536747
JD
10667 * gtkutil.h: Removed xg_ignore_next_thumb.
10668
37ab321e 106692003-03-18 Kenichi Handa <handa@m17n.org>
cb0d4562
KH
10670
10671 * coding.c (Vchar_coding_system_table): Remove this variable.
10672 (Vcoding_system_safe_chars): New variable.
10673 (intersection): Remove this function.
10674 (find_safe_codings): Don't use Vchar_coding_system_table, but try
10675 all codings in SAFE_CODINGS.
00c64fab 10676 (Ffind_coding_systems_region_internal): Adjust for the change of
cb0d4562
KH
10677 find_safe_codings. Get generic coding systems from
10678 Vcoding_system_safe_chars.
10679 (Fdefine_coding_system_internal): New function.
10680 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
10681 Initialize and staticpro Vcoding_system_safe_chars.
10682
17097258
JD
106832003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10684
2a2071c3
JD
10685 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
10686 equal old values before updating.
10687
17097258
JD
10688 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
10689
10690 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
10691
106922003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10693
10694 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
10695 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
10696 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
10697 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
10698 (xg_create_scroll_bar): Pass bar to button event callback.
10699 (xg_find_top_left_in_fixed): New function.
10700 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
10701 whole scroll bar area. Get old position with
10702 xg_find_top_left_in_fixed, calculate and only clear needed areas.
10703 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
10704 dragging is in progress. Calculate whole as for Motif.
10705 Remove code that saved last values. Call gtk_range functions to
10706 set scroll bar sizes.
10707
10708 * gtkutil.h: Removed xg_ignore_next_thumb.
10709
8cb9dfbf
JB
107102003-03-17 Juanma Barranquero <lektu@terra.es>
10711
10712 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
10713 and files included from it.
10714
00c64fab
SM
107152003-03-18 Stefan Monnier <monnier@cs.yale.edu>
10716
10717 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
10718 multiple occurrences of the same keymap under different prefixes.
10719 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
10720
c45bb3b2
JR
107212003-03-16 Jason Rumney <jasonr@gnu.org>
10722
10723 * w32gui.h: Use HDC for Display.
10724
10725 * w32term.c (w32_encode_char): Prevent double-byte chars from
10726 crashing Emacs.
10727
10728 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
10729 as binary.
10730
2a6d0874
JB
107312003-03-16 Juanma Barranquero <lektu@terra.es>
10732
10733 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
10734
03eb5fab
KS
107352003-03-16 Kim F. Storm <storm@cua.dk>
10736
10737 The following changes consolidate some of the gui-independent
10738 parts of the processing and drawing of "glyph strings" from
10739 xterm.c, w32term.c, and macterm.c into xdisp.c.
2a6d0874 10740
03eb5fab
KS
10741 * dispextern.h (struct glyph): Reduce face_id member from 22 to
10742 21 bits (this reduces number of faces from 4M to 2M).
10743 Replace W32 specific w32_font_type member (2 bits) by generic
10744 font_type member (3 bits) for portability.
10745 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
10746 (enum draw_glyphs_face): Define here.
10747 (struct glyph_string): Define here. Merge W32 and X versions.
10748 (struct redisplay_interface): New members per_char_metric,
10749 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
10750 (VCENTER_BASELINE_OFFSET): Define here.
10751 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
10752 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
10753
10754 * xdisp.c: Consolidate gui-independent "glyph string" code here.
10755 (dump_glyph_string): Moved here.
10756 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
10757 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
10758 (fill_composite_glyph_string, fill_glyph_string)
10759 (fill_image_glyph_string, fill_stretch_glyph_string)
10760 (left_overwritten, left_overwriting, right_overwritten)
10761 (right_overwriting, get_char_face_and_encoding)
10762 (set_glyph_string_background_width, compute_overhangs_and_x)
10763 (append_glyph, append_composite_glyph, produce_image_glyph)
10764 (take_vertical_position_into_account, append_stretch_glyph)
10765 (produce_stretch_glyph): New generic functions (based on X version).
10766 Call platform specific functions through rif.
10767 (INIT_GLYPH_STRING): New macro, hides W32 details.
10768 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
10769 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
10770 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
10771 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
10772 (notice_overwritten_cursor):
10773 Generic functions exported to platform modules. Users changed.
10774
10775 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
10776 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
10777 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
fad49844 10778 New macros for consolidated code.
2a6d0874 10779
03eb5fab
KS
10780 * xterm.c: Remove consolidated defines and code.
10781 (x_per_char_metric, x_encode_char)
10782 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
10783 (x_redisplay_interface): Add new members.
10784
10785 * w32gui.h (Display): Add dummy typedef for consolidation.
10786 (XChar2b): Define alias for wchar_t for consolidation.
10787 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
10788
10789 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
2a6d0874 10790 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
03eb5fab
KS
10791 New macros for consolidation.
10792
fad49844 10793 * w32term.c: Remove consolidated defines and code.
03eb5fab
KS
10794 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
10795 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
10796 (w32_per_char_metric): Change font_type arg to int for RIF.
10797 (w32_encode_char): Return int according to RIF requirements.
10798 (w32_compute_glyph_string_overhangs): Adapt to RIF.
10799 (w32_get_glyph_overhangs): New function for RIF. Uses generic
10800 x_get_glyph_overhangs.
10801 (w32_redisplay_interface): Add new members.
10802
10803 * macgui.h (XChar2b): Move typedef here for consolidation.
10804 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
10805
10806 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
10807 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
10808 consolidation.
10809
10810 * macterm.c: Remove consolidated defines and code.
10811 (mac_per_char_metric): New function for RIF.
00c64fab 10812 (mac_encode_char): Adapt to new RIF requirements.
03eb5fab
KS
10813 (mac_compute_glyph_string_overhangs): Adapt for RIF.
10814 (x_redisplay_interface): Add new members.
10815
00c64fab
SM
108162003-03-15 Stefan Monnier <monnier@cs.yale.edu>
10817
10818 * keymap.c (Vmenu_events): New var.
10819 (syms_of_keymap): Initialize it.
10820 (where_is_internal): Check more carefully what is a menu event.
10821
225c7a07
RS
108222003-03-14 Richard M. Stallman <rms@gnu.org>
10823
10824 * lread.c (read1): After #!, exit loop on eof.
10825
cea9be54
JD
108262003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10827
9ea0e54d
JD
10828 * gtkutil.h: Add declaration for xg_frame_cleared.
10829
0cb35f4e
JD
10830 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
10831
cea9be54
JD
10832 * gtkutil.c (struct xg_last_sb_pos): New structure.
10833 (handle_fixed_child): New function.
10834 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
10835 and force a redraw on them.
10836 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
10837 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
10838 so we can avoid unneeded redraws.
10839 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
10840 and force a redraw on the scroll bar.
10841 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
10842 if xg_last_sb_pos shows the positions are up to date.
0cb35f4e 10843 (xg_frame_cleared): New function.
cea9be54 10844
20b853f3
KH
108452003-03-13 Kenichi Handa <handa@m17n.org>
10846
10847 * coding.c (Fdetect_coding_region): Fix docstring.
10848 (Fdetect_coding_string): Fix docstring.
10849
7a555aff
AS
108502003-03-13 Andreas Schwab <schwab@suse.de>
10851
25cc0080
AS
10852 * gtkutil.c: Add prototype for create_menus.
10853
30225431
AS
10854 * data.c (long_to_cons): Fix type of top.
10855
10856 * xselect.c (selection_data_to_lisp_data): Use int instead of
10857 long for an integer of size 4.
10858
7a555aff 10859 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
30225431 10860 (xg_tool_bar_help_callback): Likewise.
7a555aff 10861
a3e4741f
AS
108622003-03-12 Andreas Schwab <schwab@suse.de>
10863
10864 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
10865
9668be7c
KS
108662003-03-12 Kim F. Storm <storm@cua.dk>
10867
03eb5fab 10868 The following changes consolidate the fringe handling from
9668be7c 10869 xterm.c, w32term.c, and macterm.c into xdisp.c.
00a88f32 10870
9668be7c
KS
10871 * xdisp.c: Consolidate fringe handling code here.
10872 (left_bits, right_bits, continued_bits, continuation_bits)
10873 (ov_bits, zv_bits): Define fringe bitmaps.
10874 (fringe_bitmaps): New array holding fringe bitmaps.
10875 (draw_fringe_bitmap): Draw a specific bitmap; call display
10876 specific drawing routine via rif->draw_fringe_bitmap.
10877 (draw_row_fringe_bitmaps): Generic replacement for
10878 x_draw_row_fringe_bitmaps; all callers changed.
10879 (compute_fringe_widths): Generic replacement for
10880 x_compute_fringe_widths; all callers changed.
10881
10882 * dispextern.h (enum fringe_bitmap_type): Define here.
10883 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
10884 (fringe_bitmaps): Declare extern.
10885 (struct redisplay_interface): New member draw_fringe_bitmap.
10886 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
10887
10888 * xterm.c: Remove generic fringe code.
10889 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
10890 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
10891
10892 * w32term.c: Remove generic fringe code.
10893 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
10894 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
00a88f32 10895
9668be7c
KS
10896 * macterm.c: Remove generic fringe code.
10897 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
10898 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
10899
00a88f32
SM
109002003-03-11 Stefan Monnier <monnier@cs.yale.edu>
10901
10902 * print.c (Fprin1_to_string): Return unibyte string if possible.
10903
1d1de695
DK
109042003-03-09 David Kastrup <dak@gnu.org>
10905
10906 * process.c (read_process_output): We have allocated enough space
10907 for readmax and carryover, so actually use the alloted space.
10908
257f40f2
JD
109092003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10910
10911 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
10912 toolkit scrollbar click.
10913
10914 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
10915 for USE_GTK.
10916 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
10917 also.
10918 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
10919 scrollbar and control is pressed, call x_scroll_bar_handle_click.
00a88f32 10920
78819ebb 10921 * gtkutil.h (xg_get_scroll_id_for_window): Declare.
257f40f2
JD
10922
10923 * gtkutil.c (xg_get_scroll_id_for_window): New function.
10924 (xg_tool_bar_item_expose_callback): New function.
10925 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
10926 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
10927 on the tool bar widget.
10928 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
10929 to expose on the tool bar item widgets.
10930
15213141
JD
109312003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10932
26b74a0b 10933 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
00a88f32 10934 struct image* when deciding to update (struct image* may have been
26b74a0b
JD
10935 deleted from the image cache).
10936
15213141
JD
10937 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
10938 the event isn't for a frame (i.e. for dialogs).
10939
20b853f3 109402003-03-07 Kenichi Handa <handa@m17n.org>
cb681b34
KH
10941
10942 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
10943 composition components reaches the limit, terminate composing.
10944 (COMPOSITION_OK): New macro.
00a88f32 10945 (detect_coding_iso2022): Use it if an escape sequence for
cb681b34
KH
10946 composition is found.
10947 (coding_restore_composition): Adjust the number of composition
10948 components if it is not sane.
10949
c9029fe5
JB
109502003-03-06 Juanma Barranquero <lektu@terra.es>
10951
10952 * w32term.h (struct w32_display_info): Add xrdb member to support
10953 passing resources via -xrm on Windows.
10954
10955 * w32term.c (w32_make_rdb): New function.
10956 (w32_term_init): Use it to initialize xrdb member of w32_display_info
10957 struct. Delete leftover code.
10958
10959 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
10960 for resources passed on the command line.
10961
10962 * w32reg.c (w32_get_rdb_resource): New function.
10963 (x_get_string_resource): Use it, so resources passed with -xrm
10964 supercede the ones in the registry.
10965
9d00001f
JD
109662003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10967
10968 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
10969 instead of x_top_window_to_frame.
10970
ca2417b9
JD
109712003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10972
10973 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
10974 when restarting Emacs.
10975
5b20caf0
RS
109762003-03-03 Richard M. Stallman <rms@gnu.org>
10977
10978 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
10979 to run kill-buffer-query-functions.
10980 (Qkill_buffer_query_functions): New var.
10981 (syms_of_buffer): Init and staticpro it.
10982
58e91b77
JD
109832003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10984
10985 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
10986
932357b4
KS
109872003-02-25 Kim F. Storm <storm@cua.dk>
10988
10989 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
10990 If centering point failed to make whole line visible and vscroll
10991 is non-zero, disable vscroll and try centering point again.
10992
10993 * lread.c (read1): Accept `single space' syntax like (? x).
10994
bb8db7e1
JD
109952003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10996
10997 * keyboard.c (cancel_hourglass_unwind): Surround with
10998 #ifdef HAVE_X_WINDOWS
10999
47d77aab
KH
110002003-02-25 Kenichi Handa <handa@m17n.org>
11001
11002 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
11003 process only when "subprocesses" is defined.
11004
6a097c0c
SM
110052003-02-24 Stefan Monnier <monnier@cs.yale.edu>
11006
11007 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
11008
0b063c27
JB
110092003-02-24 Juanma Barranquero <lektu@terra.es>
11010
d1135afc
JB
11011 * callint.c (fix_command): Declare as static void and move before
11012 Fcall_interactively.
11013
0b063c27
JB
11014 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
11015 (syms_of_xdisp): Don't initialize Qwhen.
11016
0af912f0
JD
110172003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11018
11019 * keyboard.c (cancel_hourglass_unwind): New function.
11020 (command_loop_1): Cancel hourglass with unwind-protect.
11021
120d0a23
RS
110222003-02-23 Richard M. Stallman <rms@gnu.org>
11023
11024 * callint.c (fix_command): New subroutine, from Fcall_interactively.
11025 Detect (when ... (region-beginning)) etc.
11026 (Fcall_interactively): Call fix_command.
11027 (Qif, Qwhen): New variables.
11028 (syms_of_callint): Init and staticpro them.
0b063c27 11029
120d0a23
RS
11030 * regex.c (print_partial_compiled_pattern): Output to stderr.
11031
4ece81a6
KG
110322003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
11033
11034 * dired.c (directory_files_internal): Don't expand directory.
11035 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
11036 instead. From Lars Hansen <larsh@math.ku.dk>.
11037
e52bd6b7
SM
110382003-02-22 Stefan Monnier <monnier@cs.yale.edu>
11039
11040 * fns.c (string_to_multibyte): Remove unused var i.
11041 (Flanginfo): Fix int/Lisp_Object mixup.
11042 (void_call2): New fun.
11043 (Fmap_char_table): Use it in place of call2.
11044
11045 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
11046
11047 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
11048
11049 * keymap.c (copy_keymap_1): Make it static.
11050
11051 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
11052
c33ef7c4
JB
110532003-02-22 David Ponce <david@dponce.com>
11054
11055 * lread.c (Fload): Don't check STRING_MULTIBYTE.
11056
16782258
JD
110572003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11058
11059 * process.h: Removed subtty field from struct Lisp_Process.
11060
11061 * process.c (create_process): Remove setting of subtty.
11062 (emacs_get_tty_pgrp): New function.
e52bd6b7
SM
11063 (Fprocess_running_child_p, process_send_signal):
11064 Call emacs_get_tty_pgrp instead of ioctl.
16782258
JD
11065 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
11066
3abeca61
KG
110672003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
11068
11069 * keymap.c (Fdefine_key): Doc fix.
11070
92a8ce63
JB
110712003-02-21 Juanma Barranquero <lektu@terra.es>
11072
11073 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
11074
11075 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
11076 POLLING_PROBLEM_IN_SELECT.
11077
11078 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
11079 Delete #undef of POLLING_PROBLEM_IN_SELECT.
11080
11081 * s/hpux10-20.h: New file.
11082
e52bd6b7
SM
11083 * process.c (wait_reading_process_input):
11084 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
92a8ce63 11085
20f1ef2e
KH
110862003-02-20 Kenichi Handa <handa@m17n.org>
11087
32d0a9dc
KH
11088 * fontset.c (check_fontset_name): If NAME is nil, return the
11089 default fontset.
11090 (override_font_info): New function.
e52bd6b7 11091 (Fset_fontset_font): Document that NAME nil means the default fontset.
32d0a9dc
KH
11092 (Ffontset_info): If FONTSET is not the default fontset, merge
11093 FONTSET onto the copy of the default fontset, and work on that
11094 copy. Document that NAME nil means the default fontset.
11095 (Ffontset_font): Document that NAME nil means the default fontset.
11096
20f1ef2e
KH
11097 * process.c (setup_process_coding_systems): If the process's
11098 in/out descriptor is -1, do nothing.
11099
77d1daf2
AS
111002003-02-19 Andreas Schwab <schwab@suse.de>
11101
e52bd6b7
SM
11102 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
11103 Add prototypes.
77d1daf2 11104
f9a45bb3
KH
111052003-02-19 Kenichi Handa <handa@m17n.org>
11106
11107 * xfaces.c (try_alternative_families): Try all scalable fonts if
11108 Vscalable_fonts_allowed is not Qt.
11109
72ecb43c
JD
111102003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11111
11112 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
11113
ee5be7c3
JD
111142003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11115
11116 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
11117 names.
11118
11119 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
e52bd6b7 11120 (sorted_font_list): Move allocation of struct font_name to
ee5be7c3
JD
11121 x_face_list_fonts.
11122 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
11123 (Fx_list_fonts): Set maxnames to -1 to get all font names.
11124
4cd519a7
KS
111252003-02-18 Kim F. Storm <storm@cua.dk>
11126
068f9882
KS
11127 * lread.c (read1): Fix last change.
11128 "`" is not always special. Allow "?" after a character constant.
4cd519a7 11129
7290a344
AC
111302003-02-18 Andrew Choi <akochoi@shaw.ca>
11131
11132 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
11133
1f7fa69b
AS
111342003-02-18 Andreas Schwab <schwab@suse.de>
11135
11136 * window.c (window_scroll_pixel_based): Move outside a
11137 multi-glyph character before setting new window start.
11138
11139 * xdisp.c (in_display_vector_p): New function.
11140 * dispextern.h (in_display_vector_p): Declare.
11141
23e21195
KS
111422003-02-18 Kim F. Storm <storm@cua.dk>
11143
11144 * lread.c (read1): Fix and relax read syntax.
11145 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
11146 Only recognize "," after dotted-pair dot if inside backquote.
11147 Never include "`" or "," (inside backquote) in a symbol.
11148 Allow dotted-pair dot after a character constant.
11149 Allow "`" and "," (inside backquote) after a character constant.
92a8ce63 11150
f098b121
JD
111512003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11152
11153 * gtkutil.c (xg_tool_bar_expose_callback): New function.
11154 (xg_create_tool_bar): Force style of tool bar to be horizontal with
11155 icons. Set name of tool bar to emacs-toolbar.
11156 (update_frame_tool_bar): Connect expose event to
11157 xg_tool_bar_expose_callback.
11158
63020c46
RS
111592003-02-17 Richard M. Stallman <rms@gnu.org>
11160
11161 * keyboard.c (this_command_key_count_reset): New variable.
11162 Initiatize to 0 where this_command_key_count is set.
11163 (read_char): Save and restore this_command_key_count_reset
11164 around input method code.
11165 (read_char): If this_command_key_count_reset, echo reread commands.
11166 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
11167
fb4452cc
KH
111682003-02-17 Kenichi Handa <handa@m17n.org>
11169
11170 * fns.c (string_to_multibyte): Always return a multibyte string.
11171
bd11cc09
JR
111722003-02-16 Jason Rumney <jasonr@gnu.org>
11173
e52bd6b7
SM
11174 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
11175 Negative max_fonts parameter means list all.
bd11cc09 11176
4cdf4bde
DL
111772003-02-14 Dave Love <fx@gnu.org>
11178
11179 * fns.c (Flanginfo): Doc fix.
11180
023b93f6
KS
111812003-02-13 Kim F. Storm <storm@cua.dk>
11182
37cd4238
KS
11183 * lread.c (read_escape): Interpret \s as a SPACE character, except
11184 for \s-X in a character constant which still is the super modifier.
11185 (read1): Signal an `invalid read syntax' error if a character
11186 constant is immediately followed by a digit or symbol character.
11187
140a6b7e
KS
11188 * search.c (Fmatch_data): Doc fix. Explicitly state that
11189 match-data is undefined if last search failed.
11190
3419757d 11191 * keymap.c (Fcommand_remapping): Rename from Fremap_command.
023b93f6
KS
11192 All uses changed.
11193
7d5c86e5
JB
111942003-02-12 Juanma Barranquero <lektu@terra.es>
11195
11196 * eval.c (Fdefmacro): Fix typo.
11197
295fff2c
KS
111982003-02-12 Kim F. Storm <storm@cua.dk>
11199
11200 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
11201 macro is a string, convert meta modifiers in string when copying
11202 the string into a vector.
11203
60f3202d
KS
112042003-02-11 Kim F. Storm <storm@cua.dk>
11205
11206 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
11207
61cb0b53
KH
112082003-02-11 Kenichi Handa <handa@m17n.org>
11209
11210 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
11211
7392e23c
KS
112122003-02-10 Kim F. Storm <storm@cua.dk>
11213
11214 * process.c: Doc fixes.
11215 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
11216
ce4254bd
KH
112172003-02-10 Kenichi Handa <handa@m17n.org>
11218
9c7a329a
KH
11219 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
11220
ce4254bd
KH
11221 * process.c (QCfilter_multibyte): New variable.
11222 (setup_process_coding_systems): New function.
e52bd6b7
SM
11223 (Fset_process_buffer, Fset_process_filter):
11224 Call setup_process_coding_systems.
ce4254bd
KH
11225 (Fstart_process): Initialize the member `filter_multibyte' of
11226 struct Lisp_Process.
11227 (create_process): Call setup_process_coding_systems.
11228 (Fmake_network_process): New keyward `:filter-multibyte'.
11229 Initialize the member `filter_multibyte' of struct Lisp_Process.
11230 Call setup_process_coding_systems.
11231 (server_accept_connection): Call setup_process_coding_systems.
11232 (read_process_output): If the process has a filter, decide the
11233 multibyteness of a string to given to the filter by
11234 `filter_multibyte' member of the process. If the process doesn't
11235 have a filter and the result of conversion is unibyte, use
11236 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
11237 multibyte form.
11238 (Fset_process_coding_system): Call setup_process_coding_systems.
11239 (Fset_process_filter_multibyte): New function.
11240 (Fprocess_filter_multibyte_p): New function.
11241 (syms_of_process): Intern and staticpro QCfilter_multibyte.
11242 Defsubr Sset_process_filter_multibyte and
11243 Sprocess_filter_multibyte_p.
11244
11245 * process.h (struct Lisp_Process): New member filter_multibyte.
11246
11247 * lisp.h (setup_process_coding_systems): Add prototype.
11248
11249 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
11250 process, update coding systems for the process.
11251
b08d5f59
KH
112522003-02-09 Kenichi Handa <handa@m17n.org>
11253
11254 * fns.c (string_to_multibyte): New function.
11255 (Fstring_to_multibyte): New function.
11256 (syms_of_fns): Defsubr it.
11257
0dfd93c0
AS
112582003-02-08 Andreas Schwab <schwab@suse.de>
11259
11260 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
11261 instead of the substitution.
11262
7b76ca1c
JD
112632003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11264
11265 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
11266
11267 * xmenu.c (menu_position_func): Adjust menu popup position so that
11268 the menu is fully visible.
7b76ca1c 11269
2436a4e4
JD
112702003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11271
11272 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
e52bd6b7
SM
11273 (x_make_frame_invisible, x_wm_set_icon_position):
11274 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
2436a4e4
JD
11275
11276 * xfns.c (x_set_name, x_set_title): Ditto.
11277
37d1e680
RS
112782003-02-04 Richard M. Stallman <rms@gnu.org>
11279
11280 * keyboard.c (echo_now): Update before_command_echo_length.
11281 (Freset_this_command_lengths): Reset this_command_key_count etc.
11282 immediately rather than arranging to do it later.
11283 (before_command_key_count_1, before_command_echo_length_1)
11284 (before_command_restore_flag): Vars deleted.
11285 (add_command_key): Don't handle before_command_restore_flag.
11286 (read_char, record_menu_key): Don't update before_command_key_count or
11287 before_command_echo_length.
11288 (read_char): Don't handle before_command_restore_flag.
11289
11290 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
11291 in direct-output clauses if it wouldn't be called in the ordinary case.
11292
578846a3
KS
112932003-02-04 Kim F. Storm <storm@cua.dk>
11294
11295 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
11296
49853a4d
JD
112972003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11298
11299 * gtkutil.c (remove_from_container): Copying list is not needed.
11300 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
11301 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
11302 on list returned from gtk_container_get_children to avoid memory leak.
11303
8b53dc06
JR
113042003-02-01 Jason Rumney <jasonr@gnu.org>
11305
5d54d177
JR
11306 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
11307 local malloc.
11308 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
11309 definitions in xpm.h.
11310 (init_xpm_functions): New function.
f63fd14e 11311 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
5d54d177
JR
11312 (init_external_image_libraries): Try to load libXpm.dll.
11313
8b53dc06
JR
11314 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
11315 timestamp.
11316
b222e415
DL
113172003-01-31 Dave Love <fx@gnu.org>
11318
11319 * syntax.c (Fskip_chars_forward)
11320 (open-paren-in-column-0-is-defun-start): Doc fix.
11321
c60ee5e7
JB
113222003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
11323
11324 * fileio.c: Support // at start of name for Cygwin (just added proper
11325 preprocessor tests).
11326
11327 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
11328
11329 * Makefile.in: Use @EXEEXT@ for Cygwin.
11330
11331 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
11332
11333 * s/cygwin.h: Added for Cygwin port.
11334
53b37591
JB
113352003-01-31 Juanma Barranquero <lektu@terra.es>
11336
11337 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
11338 when including gif_lib.h.
fe929957 11339 (init_gif_functions, init_tiff_functions): New functions.
f63fd14e
JB
11340 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
11341 Windows. Disable color table lookups. Call library functions
53b37591 11342 through pointers determined at runtime.
fe929957
JB
11343 (init_external_image_libraries): Try to load libungif.dll and
11344 libtiff.dll.
53b37591 11345
45415a8f
KH
113462003-01-31 Kenichi Handa <handa@m17n.org>
11347
11348 * xdisp.c (SKIP_GLYPHS): New macro.
e52bd6b7 11349 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
45415a8f 11350
a97e4138
JD
113512003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11352
e52bd6b7 11353 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
a97e4138 11354
6eed9bed
DL
113552003-01-30 Dave Love <fx@gnu.org>
11356
11357 * alloc.c (Vgc_elapsed, gcs_done): New variables.
11358 (Fgarbage_collect): Use them.
11359 (init_alloc, syms_of_alloc): Set them up.
11360
100dcd40
JB
113612003-01-30 Juanma Barranquero <lektu@terra.es>
11362
11363 * w32fns.c (init_external_image_libraries): Add missing operator.
11364
fbd852af
JR
113652003-01-29 Jason Rumney <jasonr@gnu.org>
11366
11367 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
11368 an alternative name for jpeg.dll.
11369
8a2d8020
KH
113702003-01-29 Kenichi Handa <handa@m17n.org>
11371
11372 * xdisp.c (set_cursor_from_row): Pay attention to string display
11373 properties.
11374
058c18c7
AC
113752003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
11376
11377 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
11378 <escape>.
11379 (keycode_to_xkeysym_table): Reformat and add more comments.
11380 (XTread_socket): Drop special case for backspace.
11381
385f11cf
AC
113822003-01-28 Andrew Choi <akochoi@shaw.ca>
11383
11384 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
11385 values in old-style RGB specs.
11386
c922a224
JB
113872003-01-27 Juanma Barranquero <lektu@terra.es>
11388
11389 * w32fns.c (init_external_image_libraries): Try alternate names for the
11390 jpeg dll.
11391
0a1d6de0
JD
113922003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11393
11394 * gtkutil.c (create_dialog, xg_separator_p)
11395 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
11396 before calling strcmp or strlen.
11397
a97e4138 113982003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1d1885fc
JD
11399
11400 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
11401 and handle image load failure.
11402
28908312
JR
114032003-01-26 Jason Rumney <jasonr@gnu.org>
11404
11405 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
11406 New functions.
f63fd14e
JB
11407 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
11408 Disable color table lookups. Call jpeg library functions
28908312
JR
11409 through pointers determined at runtime.
11410 (init_external_image_libraries): Try to load jpeg.dll.
11411
84e47416
RS
114122003-01-25 Richard M. Stallman <rms@gnu.org>
11413
11414 * lisp.h: Declare format2 instead of format1.
11415
11416 * fileio.c (barf_or_query_if_file_exists):
11417 Call format2 instead of format1.
11418
11419 * editfns.c (format2): New function, replaces format1
11420 but takes exactly two Lisp Objects as format args.
11421
11422 * buffer.c (Fkill_buffer): Call format2 instead of format1.
11423
a97e4138 114242003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1fcfb866
JD
11425
11426 * xterm.h: Change to return value of x_dispatch_event to int.
11427
11428 * xterm.c (x_filter_event): New function.
11429 (event_handler_gdk, XTread_socket): Call x_filter_event.
11430 (x_dispatch_event): Change to return value of finish.
11431 (event_handler_gdk): Use return value from x_dispatch_event.
11432
11433 * xfns.c (x_window): Call create_frame_xic for GTK version to
11434 initialize input methods.
11435
11436 * gtkutil.h: Add (void) prototypes.
11437
11438 * gtkutil.c (create_menus): Remove code that puts the help menu to
11439 the right.
11440
54eefef1
JR
114412003-01-25 Jason Rumney <jasonr@gnu.org>
11442
11443 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
11444 [HAVE_PNG]: Sync with xfns.c version.
f63fd14e
JB
11445 (png_load): Adjust colors for Windows. Use Windows
11446 bitmaps. Disable color table lookups.
c262430d
JR
11447 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
11448 (init_png_functions): New function.
11449 (png_read_from_memory, png_load): Call png library functions
11450 through pointers determined at runtime.
11451 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
11452 (init_external_image_libraries): New function.
11453 (init_xfns): Call it.
54eefef1 11454
1a9e275b
AS
114552003-01-24 Andreas Schwab <schwab@suse.de>
11456
11457 * minibuf.c (Fminibuffer_message): Verify type of parameter.
11458
a97e4138 114592003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
81e302ef
JD
11460
11461 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
11462 of static initializer.
11463
422eec7e
DL
114642003-01-24 Dave Love <fx@gnu.org>
11465
11466 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
11467 architectures.
11468
11469 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
11470 Use __alignof__.
11471
2a026b04
KH
114722003-01-24 Kenichi Handa <handa@m17n.org>
11473
11474 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
e52bd6b7 11475 It it is nonzero, don't pretend that an invisible area doesn't exist.
2a026b04
KH
11476 (command_loop_1): Call adjust_point_for_property with proper
11477 second arg.
11478
a18bb28d
JR
114792003-01-22 Jason Rumney <jasonr@gnu.org>
11480
11481 Sync changes with xterm.c and xfns.c.
11482
11483 * w32term.c (x_draw_glyph_string_foreground)
11484 (x_draw_composite_glyph_string_foreground): Implement overstriking.
11485
11486 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
11487 phys_cursor's hpos is overwritten. This is still not completely
11488 correct, as it doesn't really make sense to use hpos at all to
11489 get the cursor glyph (as that is relative to the width of the
11490 characters on the line, which may have changed during the update).
11491
11492 * w32term.c (notice_overwritten_cursor): Handle the special case
11493 of the cursor being in the first blank non-text line at the
11494 end of a window.
11495
11496 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
11497 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
11498 Compute from the x position returned by x_draw_glyphs.
11499
11500 (x_display_and_set_cursor): Don't set phys_cursor_width here,
11501 except for NO_CURSOR and system caret, to make phys_cursor_width
11502 contain what its name suggests.
11503 (notice_overwritten_cursor): Consider the cursor image erased if
11504 the output area intersects the cursor image in y-direction.
11505
6a097c0c
SM
11506 * w32term.c (note_mode_line_or_margin_highlight): Rename from
11507 note_mode_line_highlight and extend.
a18bb28d
JR
11508
11509 * w32term.c (last_window): New variable.
11510 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
11511 (note_mouse_movement): Remove reimplemented code in #if 0.
11512
11513 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
11514 not update_mode_lines, and always set it to 1.
11515
ac6e47ef
JR
115162003-01-21 Jason Rumney <jasonr@gnu.org>
11517
11518 * w32fns.c (IDC_HAND): Define it if system headers don't.
11519
115202003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
11521
11522 * w32term.h (struct w32_output): New member hand_cursor.
11523 (WM_EMACS_SETCURSOR): New message definition.
11524
11525 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
11526 function w32_define_cursor.
11527 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
11528 position, change member name output_data.x to output_data.w32 and
11529 add function w32_define_cursor.
11530 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
11531 and change member name output_data.x to output_data.w32.
e52bd6b7
SM
11532 (w32_initialize_display_info):
11533 Setup dpyinfo->vertical_scroll_bar_cursor.
ac6e47ef
JR
11534
11535 * w32fns.c (Vx_hand_shape): New variable.
11536 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
11537 WM_EMACS_SETCURSOR.
11538 (x-create-frame): Setup Cursor types.
11539
ceb39a17
JB
115402003-01-21 David Ponce <david@dponce.com>
11541
ac6e47ef 11542 * w32term.c (w32_encode_char): For DIM=1 charset, set
f63fd14e 11543 ccl->reg[2] to -1 before calling ccl_driver. (Sync. with xterm.c
ac6e47ef 11544 x_encode_char change by Kenichi Handa <handa@m17n.org> on
ceb39a17 11545 2002-09-30.)
ac6e47ef
JR
11546 (w32_draw_relief_rect): Declare all args.
11547 (w32_define_cursor): New.
11548
11549 * w32fns.c (w32_load_cursor): New function.
11550 (w32_init_class): Use it.
11551 (x_put_x_image): Declare all args.
11552
b6189c3b 115532003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk>
46cf0bed
JB
11554
11555 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
11556
a97e4138 115572003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e8794476
JD
11558
11559 * gtkutil.c: Must include stdio.h before termhooks.h
11560
83fc9c63
DL
115612003-01-21 Dave Love <fx@gnu.org>
11562
11563 * alloc.c (Fgc_status): Print zombie list.
11564 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
11565 Fix assignment of zombies.
11566 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
11567 Don't take car of non-cons.
11568
11569 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
11570
11571 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
11572
fe04b8c8
JR
115732003-01-20 David Ponce <david@dponce.com>
11574
11575 * w32menu.c (digest_single_submenu): Declare all args.
11576
11577 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
11578 changes in xmenu.c:
11579
11580 (parse_single_submenu): Use individual keymap's prompt
11581 string as pane name, if there is one.
11582 (set_frame_menubar): Save menu_items_n_panes from each call to
11583 parse_single_submenu and use it when calling digest_single_submenu.
11584
539e69a9
ST
115852003-01-20 Steven Tamm <steventamm@mac.com>
11586
7e26f91b 11587 * macterm.c (XTread_socket): Check for valid, visible window
539e69a9
ST
11588 before sending a scroll-wheel event.
11589
675d000f
RS
115902003-01-20 Richard M. Stallman <rms@gnu.org>
11591
11592 * xdisp.c (redisplay_window): If mini window's buffer is not
11593 a minibuffer, then redisplay it like other windows.
11594
a97e4138 115952003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22174d10
JD
11596
11597 * gtkutil.c (xg_create_frame_widgets): Check if there is an
11598 external tool bar before setting tool bar height.
11599
048addec
JD
116002003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11601
11602 * xterm.c (handle_one_xevent): Surround popup_activated
11603 with #ifdef:s for non-toolkit version.
11604
11605 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
11606 (gtkutil.o): New file.
11607 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
11608 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
11609
11610 * gtkutil.c: New file for GTK version.
11611
11612 * gtkutil.h: New file for GTK version.
11613
11614 * xterm.h: Add xt_or_gtk_widget.
11615 Include gtk files for USE_GTK.
11616 (struct x_output): Add toolbar_height.
11617 (struct x_output): Add GTK widgets and Gdk size_hints.
11618 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
11619 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
11620 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
11621
11622 * xterm.c: Include gtkutil.h for USE_GTK.
78819ebb 11623 (free_frame_menubar): Declare extern void for USE_GTK.
048addec
JD
11624 (note_mouse_highlight): Check popup_activated for USE_GTK.
11625 (xt_action_hook): Don't compile if USE_GTK.
11626 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
11627 (xg_scroll_callback): New function.
11628 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
11629 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
11630 for USE_GTK.
11631 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
11632 xg_show_scroll_bar for USE_GTK.
11633 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
11634 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
11635 (event_handler_gdk): New function for USE_GTK.
11636 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
11637 (handle_one_xevent): Make sure widget is mapped before
11638 calling x_real_positions for USE_GTK.
11639 (XTread_socket): Add GTK event loop for USE_GTK.
11640 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
11641 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
11642 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
11643 (x_iconify_frame): Add code for USE_GTK.
11644 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
11645 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
11646 is in gtkutil.c.
11647 (x_term_init): Add initialization for GTK.
11648 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
11649
11650 * xmenu.c: Include gtkutil.h for USE_GTK.
11651 (Fx_popup_menu): Use current position if x and y is NIL.
6bdb309a
SM
11652 (single_menu_item, single_menu_item, Fx_popup_dialog):
11653 Check for USE_GTK.
048addec
JD
11654 (popup_widget_loop): New function for USE_GTK.
11655 (x_activate_menubar): Add code for USE_GTK.
11656 (popup_activate_callback, popup_deactivate_callback)
6bdb309a
SM
11657 (menu_highlight_callback, menubar_selection_callback):
11658 Add USE_GTK versions.
048addec
JD
11659 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
11660 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
11661 (free_frame_menubar): Only compile if not USE_GTK. GTK version
11662 is in gtkutil.c.
11663 (popup_selection_callback): New version for USE_GTK.
11664 (create_and_show_popup_menu): New fuction, one USE_GTK version and
6bdb309a 11665 one USE_X_TOOLKIT version.
048addec
JD
11666 (xmenu_show): Call create_and_show_popup_menu.
11667 (dialog_selection_callback): New version for USE_GTK.
11668 (create_and_show_dialog): New fuction, one USE_GTK version and
6bdb309a 11669 one USE_X_TOOLKIT version.
048addec
JD
11670 (xdialog_show): Call create_and_show_dialog.
11671
11672 * xfns.c: Include gtkutil for USE_GTK.
11673 (x_window_to_frame, x_any_window_to_frame)
11674 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
11675 (x_top_window_to_frame): Add code for USE_GTK.
11676 (x_set_background_color): Call xg_set_background_color for GTK.
11677 (x_set_menu_bar_lines): Check for USE_GTK.
11678 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
11679 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
11680 (x_window): Call xg_create_frame_widgets for USE_GTK.
11681 (Fx_create_frame): Check for USE_GTK
11682 (Fx_file_dialog): New implementation for USE_GTK.
11683
11684 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
11685 (update_menu_bar): Add check for USE_GTK.
11686 (update_tool_bar): Add check for USE_GTK and external tool bar.
11687 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
11688 (redisplay_internal): Add check for USE_GTK and popup_activated.
11689 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
11690 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
11691 (display_menu_bar): Add check for USE_GTK
11692
78819ebb 11693 * lisp.h (Vx_resource_name): Declare extern.
048addec 11694
a64387ee 11695 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
048addec
JD
11696 for USE_GTK.
11697 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
11698
11699 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
11700 (FRAME_EXTERNAL_TOOL_BAR): New macro.
11701 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
11702
11703 * fileio.c (Fread_file_name): Add check for USE_GTK.
11704
6bdb309a
SM
11705 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
11706 Add check for USE_GTK.
048addec
JD
11707
11708 * config.in: Added HAVE_GTK
11709
11710 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
11711
117122003-01-18 Stefan Monnier <monnier@cs.yale.edu>
11713
11714 * charset.h (Funibyte_char_to_multibyte): Export.
11715
117162003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11717
11718 * xmenu.c (mouse_position_for_popup): New function.
11719 (Fx_popup_menu): Call mouse_position_for_popup for X and
11720 mouse_position_hook for others.
11721
117222003-01-17 Kim F. Storm <storm@cua.dk>
11723
11724 * editfns.c (Finsert): Mention `string-make-multibyte' and
11725 `string-as-multibyte' in doc string.
11726
117272003-01-17 Kenichi Handa <handa@m17n.org>
11728
11729 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
3c02a6f5 11730
048addec
JD
11731 * editfns.c (Fformat): Convert an unibyte char argument that is
11732 formatted by "%c" to multibyte if the total result must be a
11733 multibyte string.
cd7df9c0 11734
048addec 117352003-01-16 Kim F. Storm <storm@cua.dk>
cd7df9c0 11736
048addec
JD
11737 * process.c (set-process-filter): Document unibyte/multibyte-ness
11738 of string argument.
56210ecd 11739
048addec 117402003-01-16 Kenichi Handa <handa@m17n.org>
56210ecd 11741
048addec 11742 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
56210ecd 11743
048addec
JD
11744 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
11745 (re_search_2): Likewise.
6df8b9fe 11746
048addec 117472003-01-15 Kenichi Handa <handa@m17n.org>
6df8b9fe 11748
048addec
JD
11749 * xdisp.c (message_dolog): Fix bug of the case that *Message*
11750 buffer is unibyte.
292ddc31 11751
048addec 117522003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
292ddc31 11753
048addec 11754 * fns.c (Fsubstring): Clarify doc string.
292ddc31 11755
048addec
JD
11756 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
11757 (Fprevious_char_property_change)
11758 (Fnext_single_char_property_change)
11759 (Fprevious_single_char_property_change, Fnext_property_change)
11760 (Fnext_single_property_change, Fprevious_property_change)
11761 (Fprevious_single_property_change, Fadd_text_properties)
11762 (Fput_text_property, Fset_text_properties)
11763 (Fremove_text_properties, Fremove_list_of_text_properties)
11764 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
63e4e4c6 11765
048addec 117662003-01-14 Kim F. Storm <storm@cua.dk>
63e4e4c6 11767
048addec
JD
11768 * process.h (struct Lisp_Process): New member plist replaces old
11769 member private_vars. All uses changed.
63e4e4c6 11770
048addec 11771 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
6bdb309a 11772 (QCplist): Rename from QCvars. Change all uses.
048addec 11773 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
6bdb309a 11774 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
048addec 11775 (syms_of_process): Intern, staticpro, defsubr these.
6bdb309a 11776 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
7ed16567 11777
048addec 117782003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
7ed16567 11779
6bdb309a 11780 * m/delta.h: Remove (obsolete).
e833850f 11781
048addec 117822003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
e833850f 11783
048addec
JD
11784 * fileio.c (Fdelete_directory, Fdelete_file): Document the
11785 behaviour in front of symlinks.
11786 (Fdelete_file): Raise an error on directories.
817cb127 11787
048addec 117882003-01-13 Dave Love <fx@gnu.org>
817cb127 11789
048addec 11790 * fns.c (Freverse): Use QUIT.
3e8cf2ea 11791
048addec 117922003-01-13 Richard M. Stallman <rms@gnu.org>
3e8cf2ea 11793
048addec
JD
11794 * minibuf.c (minibuffer_completion_contents):
11795 Error if point is inside prompt.
3e8cf2ea 11796
048addec
JD
11797 * keyboard.c (command_loop_1): Don't redisplay directly
11798 if there's a post-command-hook.
3e8cf2ea 11799
048addec
JD
11800 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
11801 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
2c10f029 11802
048addec 118032003-01-12 Kim F. Storm <storm@cua.dk>
94e8ffca 11804
048addec 11805 * process.h (struct Lisp_Process): New member private_vars.
94e8ffca 11806
048addec
JD
11807 * process.c (QCvars): New variable.
11808 (syms_of_process): Intern and staticpro it.
11809 (Fset_process_contact): Removed function.
11810 (Fprocess_variable, Fset_process_variable): New functions.
11811 (syms_of_process): Defsubr them.
11812 (Fstart_process): Initialize private_vars plist to nil.
11813 (Fmake_network_process): New arg :vars to setup the private
11814 variables for new network process.
11815 (server_accept_connection): Copy server's private variables to
11816 client process.
2c10f029 11817
048addec
JD
11818 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
11819 crashes). Code rewritten and simplified. Now directly aligns the
11820 pointer and recalculates pure_bytes_used, rather than aligning the
11821 size and adjusting the pointer.
b8a76c6c 11822
048addec 118232003-01-11 Kim F. Storm <storm@cua.dk>
b8a76c6c 11824
048addec
JD
11825 * process.c (Fset_process_contact): New function.
11826 (syms_of_process): defsubr it.
11827 (make-network-process): Update doc.
3a8d0899 11828
048addec 118292003-01-10 Andreas Schwab <schwab@suse.de>
3a8d0899 11830
048addec
JD
11831 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
11832 Reported by Berthold Gunreben <b.gunreben@web.de>.
4abc7470 11833
048addec 118342003-01-10 Dave Love <fx@gnu.org>
4abc7470 11835
048addec 11836 * composite.c (syms_of_composite): Make composition_hash_table weak.
b809d662 11837
048addec 118382003-01-09 Kim F. Storm <storm@cua.dk>
b809d662 11839
048addec
JD
11840 * process.c (Fmake_network_process): Convert new port number
11841 to host byte order for `:service t' case. From Mario Lang.
bf338245 11842
048addec 118432003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
bf338245 11844
048addec
JD
11845 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
11846 instead of XtAppProcessEvent.
bf338245 11847
048addec
JD
11848 * xterm.c (handle_one_xevent): New function.
11849 (x_dispatch_event): New function.
11850 (XTread_socket): Call handle_one_xevent.
bf338245 11851
048addec 11852 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
e833850f 11853
048addec
JD
11854 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
11855 call XQueryPointer to get coordinates.
11856 (popup_get_selection): Do not set popup_activated_flag to zero,
11857 let popup_deactivate_callback do that. Needed for Motif.
11858 Call x_dispatch_event instead of XtDispatchEvent.
11859 (xmenu_show): Calculate root coordinate from frame top/left position.
c4af2bce 11860
048addec 118612003-01-08 Kim F. Storm <storm@cua.dk>
c4af2bce 11862
6bdb309a 11863 * process.c (server_accept_connection): Fix recording of new
048addec
JD
11864 connection's local address in :local property of contact info.
11865 (Fmake_network_process): Record local network address for new
11866 client processes in :local property of contact info.
6bdb309a 11867 (format-network-address): Add arg OMIT-PORT. Change callers.
00e3ab56 11868
048addec 118692003-01-07 Dave Love <fx@gnu.org>
00e3ab56 11870
048addec 11871 * Makefile.in (fns.o): Depend on coding.h.
f387e1fd 11872
048addec 118732003-01-07 Markus Rost <rost@math.ohio-state.edu>
f387e1fd 11874
048addec 11875 * minibuf.c (Fread_variable): Doc fix.
f387e1fd 11876
048addec
JD
11877 * eval.c (Fuser_variable_p): Doc change. For custom variables,
11878 use the same test as for custom-variable-p.
8c6d74c6 11879
048addec 118802003-01-05 Richard M. Stallman <rms@gnu.org>
e833850f 11881
048addec
JD
11882 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
11883 Count LAST_LINE_MISFIT in scroll margin for end of window.
11884 Move label too_near_end before setting SCROLL_MARGIN_POS.
11885 Set LAST_LINE_MISFIT before jumping there.
8c6d74c6 11886
048addec
JD
11887 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
11888 scroll_conservatively case. If scrolling that much doesn't change
11889 STARTP, move it down one line.
e833850f 11890
048addec
JD
11891 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
11892 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
8c6d74c6 11893
048addec
JD
11894 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
11895 selected frame.
8c6d74c6 11896
048addec 11897 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
3419757d 11898 (syms_of_keymap): Staticpro them.
048addec
JD
11899 (Fapropos_internal): Initialize them and clear them out.
11900 Don't GCPRO them.
8c6d74c6 11901
048addec
JD
11902 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
11903 Doc fixes.
8c6d74c6 11904
048addec
JD
11905 * lisp.h: New misc type Lisp_Save_Value.
11906 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
11907 (XSAVE_VALUE): New macro.
11908 (struct Lisp_Save_Value): New data type.
11909 (union Lisp_Misc): Add u_save_value alternative.
78819ebb 11910 (make_save_value): Declare.
8c6d74c6 11911
048addec 11912 * alloc.c (make_save_value): New function.
8c6d74c6 11913
048addec
JD
11914 * xterm.c (x_catch_errors): Save dpy using make_save_value.
11915 (x_catch_errors_unwind): Call XSync.
8c6d74c6 11916
048addec 119172003-01-01 Richard M. Stallman <rms@gnu.org>
8c6d74c6 11918
048addec 11919 * window.c (window_scroll_pixel_based): Partially undo last change.
8c6d74c6 11920
048addec
JD
11921 * keyboard.c (command_loop_1): Call adjust_point_for_property
11922 in direct action cases for Qforward_char and Qbackward_char.
11923 Set already_adjusted so it won't be done twice.
8c6d74c6 11924
b6189c3b 119252002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk>
8c6d74c6 11926
048addec
JD
11927 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
11928 type definition of size_t.
8c609cff 11929
048addec 119302003-01-02 Steven Tamm <steventamm@mac.com>
8c609cff 11931
048addec
JD
11932 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
11933 distinguish Carbon GUI builds from X11 builds on darwin.
b37113a1 11934
048addec 119352002-12-30 Steven Tamm <steventamm@mac.com>
b37113a1 11936
048addec
JD
11937 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
11938 to default to t.
fa634a5e 11939
048addec 119402002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
fa634a5e 11941
048addec 11942 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
ce0669d4 11943
048addec 119442002-12-28 Steven Tamm <steventamm@mac.com>
ce0669d4 11945
7e26f91b 11946 * Makefile.in (macosx-bundle): Fix Mac OS X/Carbon port to
048addec
JD
11947 allow building in a different directory than source. Uses some
11948 GNU Make extensions, but there is no other make on Mac OS X.
2308af15 11949
048addec 119502002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
2308af15 11951
048addec
JD
11952 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
11953 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
11954 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
11955 (Fstring_to_number): Mention the returned value in the doc strings.
2155ecf3 11956
048addec 119572002-12-23 Richard M. Stallman <rms@gnu.org>
2155ecf3 11958
048addec
JD
11959 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
11960 <scroll-down-aggressively>: Doc fix.
2155ecf3 11961
048addec
JD
11962 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
11963 string as pane name, if there is one.
11964 (set_frame_menubar): Save menu_items_n_panes from each call to
11965 parse_single_submenu and use it when calling digest_single_submenu.
2155ecf3 11966
048addec
JD
11967 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
11968 Don't try to make last line fully visible if it is past end of window.
61f1d295 11969
048addec 119702002-12-22 Steven Tamm <steventamm@mac.com>
61f1d295 11971
048addec
JD
11972 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
11973 (mac_menu_show): Add support for hierarchical popup menus.
11974 (add_menu_item): Remove indentation support.
11975 (fill_submenu, fill_menu): Create hierarchical menus
11976 instead of using indentation.
0b17a217 11977
048addec 119782002-12-22 Richard M. Stallman <rms@gnu.org>
0b17a217 11979
048addec
JD
11980 * xdisp.c (try_cursor_movement): Don't call try_window here.
11981 (redisplay_window): Never redisplay minibuffer when inactive.
0b17a217 11982
048addec 11983 * window.c (select_window_1): Undo 9/21 change.
402e4f8b 11984
048addec 119852002-12-22 Steven Tamm <steventamm@mac.com>
402e4f8b 11986
048addec
JD
11987 * macterm.c (XTread_socket): Call KeyTranslate for control and
11988 meta to deal correctly shifted non-alpha characters, like C-S-5
7e26f91b 11989 being treated like C-%. Do not look for shift key to deal
048addec 11990 with masking off control-key with mac-reverse-ctrl-meta.
f02cac82 11991
048addec 119922002-12-21 Richard M. Stallman <rms@gnu.org>
f02cac82 11993
048addec
JD
11994 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
11995 If it is non-nil, run timers. Use an unwind-protect to requeue
11996 the events that were read ahead.
11997 (popup_get_selection_unwind): New subroutine.
11998 (popup_get_selection_queue): File-scope variable now holds that queue.
11999 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
12000 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
12001 Use an unwind-protect to pop down the dialog box.
12002 (xdialog_show_unwind): New subroutine implements that.
f02cac82 12003
048addec
JD
12004 * xdisp.c (row_containing_pos): Change exit test using last_y.
12005 (try_window_id): Abort if row_containing_pos returns null.
f02cac82 12006
048addec
JD
12007 * lread.c (load_error_handler): New function.
12008 (Fload): Handle errors in Fsubstitute_in_file_name.
12009 Don't expect Fsignal to return.
f02cac82 12010
048addec
JD
12011 * eval.c: Errors and throws work right with interrupt blocking.
12012 (struct catchtag): New elt interrupt_input_blocked.
12013 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
12014 (internal_catch, Fcondition_case, internal_condition_case)
12015 (internal_condition_case_1, internal_condition_case_2): Save it.
12016 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
f02cac82 12017
048addec 12018 * editfns.c (Fformat): Add parens.
f02cac82 12019
048addec
JD
12020 * dired.c (file_name_completion): Fix that change.
12021 Delete special quit-handling code; just use QUIT.
f02cac82 12022
b6189c3b 120232002-12-21 Tak Ota <Takaaki.Ota@am.sony.com>
f02cac82 12024
048addec
JD
12025 * dired.c (file_name_completion): Close directory on error
12026 just as in directory_files_internal.
1a590729 12027
048addec 120282002-12-19 David Kastrup <David.Kastrup@t-online.de>
1a590729 12029
048addec
JD
12030 * window.c (Fset_window_configuration): Set old_point to correct
12031 value when new_current_buffer == current_buffer.
f02cac82 12032
048addec 120332002-12-17 Ben Key <bkey1@tampabay.rr.com>
2308af15 12034
048addec
JD
12035 Revisited my earlier fix for the following entry in etc/PROBLEMS:
12036 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
12037 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
9785d95b 12038
048addec
JD
12039 These changes were in part based upon suggestions made by Peter
12040 'Luna' Runestig [peter@runestig.com].
9785d95b 12041
f4a5a485
SM
12042 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token)
12043 (g_b_init_get_token_information, g_b_init_lookup_account_sid)
12044 (g_b_init_get_sid_identifier_authority ): Add several static
048addec 12045 global variables.
9785d95b 12046
048addec
JD
12047 * w32.c (globals_of_w32): New function. Used to initialize those
12048 global variables that must always be initialized on startup even
12049 when the global variable initialized is non zero. Its primary
12050 purpose at this time is to set the global variables
12051 g_b_init_is_windows_9x, g_b_init_open_process_token,
12052 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
12053 g_b_init_get_sid_identifier_authority to 0 on startup.
12054 Called from main.
9785d95b 12055
048addec
JD
12056 * w32.c (is_windows_9x): Perform initialization only if
12057 g_b_init_is_windows_9x is equal to 0. On initialization set
12058 g_b_init_is_windows_9x equal to 1.
2308af15 12059
048addec
JD
12060 * w32.c (open_process_token): Perform initialization only if
12061 g_b_init_open_process_token is equal to 0. On initialization set
12062 g_b_init_open_process_token equal to 1.
2308af15 12063
048addec
JD
12064 * w32.c (get_token_information): Perform initialization only if
12065 g_b_init_get_token_information is equal to 0. On initialization
12066 set g_b_init_get_token_information equal to 1.
9785d95b 12067
048addec
JD
12068 * w32.c (lookup_account_sid): Perform initialization only if
12069 g_b_init_lookup_account_sid is equal to 0. On initialization
12070 set g_b_init_lookup_account_sid equal to 1.
9785d95b 12071
048addec
JD
12072 * w32.c (get_sid_identifier_authority): Perform initialization
12073 only if g_b_init_get_sid_identifier_authority is equal to 0.
12074 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
9785d95b 12075
f63fd14e 12076 * w32fns.c (globals_of_w32fns): New function. Used to initialize
048addec
JD
12077 those global variables that must always be initialized on startup
12078 even when the global variable initialized is non zero.
12079 Its primary purpose at this time is to initialize the global variable
12080 track_mouse_event_fn.
9785d95b 12081
a64387ee 12082 * w32fns.c (w32_wnd_proc): Remove initialization of
048addec 12083 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
9785d95b 12084
048addec 12085 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
9785d95b 12086
f63fd14e 12087 * w32menu.c (globals_of_w32menu): New function. Used to
048addec
JD
12088 initialize those global variables that must always be initialized
12089 on startup even when the global variable initialized is non zero.
12090 Its primary purpose at this time is to initialize the global
12091 variables get_menu_item_info and set_menu_item_info.
9785d95b 12092
048addec
JD
12093 * w32menu.c (initialize_frame_menubar): Remove initialization of
12094 get_menu_item_info and set_menu_item_info.
9785d95b 12095
048addec 12096 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
9785d95b 12097
048addec
JD
12098 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
12099 Declare them.
9785d95b 12100
048addec
JD
12101 * emacs.c (main): Call globals_of_w32 prior to calling
12102 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
12103 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
12104 is defined.
9785d95b 12105
048addec
JD
12106 * w32term.c (x_update_window_begin): Fix Windows API error
12107 detected by BoundsChecker. Test to determine if
12108 w32_system_caret_hwnd is NULL prior to attempting to use
12109 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
2308af15 12110
048addec
JD
12111 * w32term.c (x_update_window_end): Fix Windows API error
12112 detected by BoundsChecker. Test to determine if
12113 w32_system_caret_hwnd is NULL prior to attempting to use
12114 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
b6da19ef 12115
048addec 121162002-12-17 Kenichi Handa <handa@m17n.org>
b6da19ef 12117
048addec
JD
12118 * coding.c (coding_system_require_warning): New variable.
12119 (syms_of_coding): DEFVAR it.
b6da19ef 12120
048addec 12121 * coding.h (coding_system_require_warning): Extern it.
b6da19ef 12122
048addec
JD
12123 * fileio.c (choose_write_coding_system): Even if
12124 Vcoding_system_for_write is non-nil, if
12125 coding_system_require_warning is nonzero, call
12126 Vselect_safe_coding_system_function.
bfcf6dbe 12127
048addec 121282002-12-17 Markus Rost <rost@math.ohio-state.edu>
bfcf6dbe 12129
048addec
JD
12130 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
12131 (lisp): Add font-core.
2c568af5 12132
048addec 121332002-12-13 Stefan Monnier <monnier@cs.yale.edu>
2c568af5 12134
048addec
JD
12135 * textprop.c (text_read_only): New arg `propval'.
12136 (get_char_property_and_overlay): Remove unused var `next_overlay'.
12137 (verify_interval_modification): Use text_read_only's new arg.
b8c6225c 12138
048addec 121392002-12-13 Kenichi Handa <handa@m17n.org>
b8c6225c 12140
048addec 12141 * coding.c (Funencodable_char_position): Set pend correctly.
706ddb8f 12142
048addec 121432002-12-12 Jason Rumney <jasonr@gnu.org>
706ddb8f 12144
048addec
JD
12145 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
12146 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
12147 Be more careful about when help_events are generated.
96720f09 12148
048addec 121492002-12-12 Steven Tamm <steventamm@mac.com>
96720f09 12150
048addec
JD
12151 * macterm.c (mac_check_for_quit_char): Correctly set the
12152 modifiers of the event to 0.
12153 * mac.c (sys_select): Duplicate rfds before calling select to
12154 ensure that rfds survive the while loop.
e5ae1c49 12155
048addec 121562002-12-11 Kim F. Storm <storm@cua.dk>
e5ae1c49 12157
048addec
JD
12158 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
12159 row_containing_pos returned NULL.
2eb46b2d 12160
048addec 121612002-12-10 Steven Tamm <steventamm@mac.com>
2eb46b2d 12162
6bdb309a 12163 * mac.c (sys_read): Fix sys_read to not call select if IO is
048addec 12164 non-blocking.
6bdb309a 12165 (sys_select): Fix sys_select to not use a timeout larger than
048addec 12166 the one given.
b11f1d8a 12167
048addec 121682002-12-10 Juanma Barranquero <lektu@terra.es>
b11f1d8a 12169
048addec 12170 * editfns.c (Fformat): Use alloca, not _alloca.
d8528226 12171
048addec 121722002-12-09 Richard M. Stallman <rms@gnu.org>
d8528226 12173
048addec
JD
12174 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
12175 as the last thing.
a4ac5b17 12176
048addec 121772002-12-09 Dave Love <fx@gnu.org>
a4ac5b17 12178
048addec 12179 * s/sol2-8.h: Removed. (Not necessary.)
ac42d7b9 12180
048addec 121812002-12-09 Matthew Swift <swift@alum.mit.edu>
ac42d7b9 12182
048addec
JD
12183 * editfns.c (Fformat): Handle precision in string conversion
12184 specifiers like libc functions do (ie, print at most that many
12185 characters).
85cce843 12186
048addec 121872002-12-08 Richard M. Stallman <rms@gnu.org>
85cce843 12188
048addec
JD
12189 * xdisp.c (row_containing_pos): Check more carefully
12190 whether charpos is really in the row before returning it.
0d4d26a7 12191
048addec 121922002-12-07 Steven Tamm <steventamm@mac.com>
0d4d26a7 12193
048addec 12194 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
b11f1d8a 12195
048addec
JD
12196 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
12197 each stack frame. This may change as it could be time consuming.
0d4d26a7 12198
048addec
JD
12199 * macterm.c (mac_check_for_quit_char, quit_char_comp)
12200 (init_quit_char_handler, mac_determine_quit_char_modifiers)
6bdb309a 12201 (mac_initialize): Add code to check for pressing of quit_char
048addec 12202 in the OS event queue.
b11f1d8a 12203
048addec
JD
12204 * mac.c (sys_select): Call mac_check_for_quit_char every second
12205 while blocking on select.
0d4d26a7 12206
048addec
JD
12207 * mac.c (sys_read): Use sys_select to test for input first
12208 before calling read, to allow C-g to break.
9252f7bc 12209
048addec 122102002-12-07 Richard M. Stallman <rms@gnu.org>
9252f7bc 12211
048addec 12212 * minibuf.c (Fcompleting_read): Doc fix.
9252f7bc 12213
048addec 12214 * lread.c (syms_of_lread) <load-history>: Doc fix.
9252f7bc 12215
048addec 12216 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
9252f7bc 12217
048addec
JD
12218 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
12219 autoload.
9252f7bc 12220
048addec 12221 * data.c (Fdefalias): Record in load-history redefining an autoload.
9252f7bc 12222
048addec 12223 * alloca.c: Undo ifdef change accidentally made on 12-04.
bfa261c0 12224
048addec 122252002-12-06 Francesco Potorti` <pot@gnu.org>
bfa261c0 12226
048addec 12227 * xfns.c (png_load): Avoid double gamma correction for PNG images.
c5992177 12228
048addec 122292002-12-04 Richard M. Stallman <rms@gnu.org>
c5992177 12230
048addec 12231 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 12232
048addec 12233 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 12234
048addec 12235 * alloca.c: Don't use #error.
02d588e2 12236
048addec 122372002-12-03 Dave Love <fx@gnu.org>
02d588e2 12238
048addec
JD
12239 * buffer.c (Qucs_set_table_for_input): New.
12240 (Fget_buffer_create): Use it.
12241 (Qset_buffer_major_mode_hook): Deleted.
12242 (Fset_buffer_major_mode): Revert previous change.
12243 (init_buffer_once): Intern ucs-set-table-for-input.
12244 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
12245 Add &Qucs_set_table_for_input.
451e2697 12246
048addec 122472002-12-03 Andreas Schwab <schwab@suse.de>
451e2697 12248
048addec
JD
12249 * callint.c (Fcall_interactively): Use next_event only if less
12250 than key_count.
72742a99 12251
048addec 122522002-12-02 Andrew Choi <akochoi@shaw.ca>
72742a99 12253
048addec
JD
12254 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
12255 names to 255 characters.
72742a99 12256
048addec
JD
12257 * macterm.c (XTread_socket): If all frames have been collapsed,
12258 expand the first one before handling drag-and-drop events.
72742a99 12259
048addec
JD
12260 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
12261 which is detected by autoconf.
40e6ff95 12262
048addec 122632002-12-01 Steven Tamm <steventamm@mac.com>
40e6ff95 12264
048addec
JD
12265 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
12266 offset in two hints table to allow prebinding to be redone and
12267 allow the executable to be stripped.
c02138c6 12268
048addec 122692002-11-29 Dave Love <fx@gnu.org>
c02138c6 12270
048addec
JD
12271 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
12272 already provided.
0e47bbf7 12273
048addec 122742002-11-29 Richard M. Stallman <rms@gnu.org>
0e47bbf7 12275
048addec
JD
12276 * xdisp.c (start_display): Check more intelligently for
12277 whether the line is continued.
12278 (move_it_vertically_backward): Clear it->continuation_lines_width.
44129dcb 12279
048addec 122802002-11-28 Dave Love <fx@gnu.org>
44129dcb 12281
048addec
JD
12282 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
12283 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
f707342d 12284
048addec 122852002-11-27 Steven Tamm <steventamm@mac.com>
f707342d 12286
048addec
JD
12287 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
12288 more descriptive error output from lread.c:Fload upon most require
12289 cycles during boostrapping.
1637fd2c 12290
048addec 122912002-11-27 Jason Rumney <jasonr@gnu.org>
1637fd2c 12292
048addec
JD
12293 * fileio.c (Finsert_file_contents): Give a more appropriate error
12294 for files bigger than 2Gb when off_t is 32 bit.
1637fd2c 12295
048addec
JD
12296 * dired.c (Ffile_attributes): Don't return negative file sizes for
12297 files bigger than 2Gb when off_t is 32 bit.
540c2788 12298
048addec 122992002-11-27 Dave Love <fx@gnu.org>
6b2fd6ea 12300
048addec 12301 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6b2fd6ea 12302
048addec
JD
12303 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
12304 Test GETPGRP_VOID instead.
12305 [BSD_TERMIOS]: Remove definitions (never used).
6b2fd6ea 12306
048addec
JD
12307 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
12308 Don't define.
12309 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
540c2788 12310
048addec 12311 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
8cc03716 12312
048addec 123132002-11-25 Jason Rumney <jasonr@gnu.org>
8cc03716 12314
048addec
JD
12315 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
12316 supported.
4042a81a 12317
048addec 123182002-11-25 Dave Love <fx@gnu.org>
4042a81a 12319
048addec 12320 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
4042a81a 12321
048addec 12322 * Makefile.in (TEMACS_LDFLAGS): Update last change.
be4ee72f 12323
048addec 123242002-11-25 Andreas Schwab <schwab@suse.de>
be4ee72f 12325
048addec 12326 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
82122254 12327
048addec 123282002-11-24 Steven Tamm <steventamm@mac.com>
82122254 12329
048addec
JD
12330 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
12331 determine the size of pointers alloced in unexed space instead
12332 of using possibly invalid emacs_zone pointers. This fixes the
12333 binary incompatibility problems caused by updates to libSystem.B.
c1ee53bc 12334
048addec 123352002-11-24 Richard M. Stallman <rms@gnu.org>
c1ee53bc 12336
048addec 12337 * search.c (Fstring_match): Doc fix.
c1ee53bc 12338
048addec
JD
12339 * callint.c (Fcall_interactively): If a command fails because
12340 `*' detects a read-only buffer, but RECORD_FLAG is set,
12341 record it anyway if the args don't actually do tty input.
5598c32e 12342
048addec 123432002-11-22 Dave Love <fx@gnu.org>
5598c32e 12344
048addec 12345 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
5598c32e 12346
048addec
JD
12347 * keyboard.c (interrupt_signal): Provide forward declaration.
12348 (kbd_buffer_store_event): Don't declare interrupt_signal.
5598c32e 12349
048addec 12350 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
97b14e22 12351
048addec 123522002-11-21 Richard M. Stallman <rms@gnu.org>
97b14e22 12353
048addec
JD
12354 * eval.c (interactive_p): Skip any number of bytecode
12355 and special form frames, in any order.
516eea8e 12356
048addec 123572002-11-20 Jason Rumney <jasonr@gnu.org>
516eea8e 12358
048addec
JD
12359 * w32fns.c (convert_mono_to_color_image): New function.
12360 (xbm_load, xbm_load_image): Use it when foreground or background
12361 is explicitly set.
04dbfa08 12362
048addec 123632002-11-19 Dave Love <fx@gnu.org>
04dbfa08 12364
048addec 12365 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
b4aebae3 12366
048addec 123672002-11-18 Jason Rumney <jasonr@gnu.org>
b4aebae3 12368
048addec
JD
12369 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
12370 (XPutPixel): Swap blue and red.
12371 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
12372 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
12373 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
12374 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
1998560a 12375
048addec 123762002-11-18 Dave Love <fx@gnu.org>
d824beee 12377
048addec 12378 * m/orion105.h (HAVE_ALLOCA): Don't define.
d824beee 12379
048addec 12380 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
d824beee 12381
048addec 12382 * m/intel386.h: Don't include alloca.h or define alloca.
d824beee 12383
048addec
JD
12384 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
12385 malloc, realloc, calloc.
d824beee 12386
048addec
JD
12387 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
12388 (bcmp): Don't define.
d824beee 12389
048addec 12390 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
d824beee 12391
048addec 12392 * m/amdahl.h: Don't define LIB_STANDARD.
d824beee 12393
048addec 12394 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
d824beee 12395
048addec 12396 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
d824beee 12397
048addec
JD
12398 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
12399 Don't include alloca.h.
d824beee 12400
048addec 12401 * s/aix3-2.h (HAVE_FSYNC): Don't define.
1998560a 12402
048addec 12403 * regex.c (_GNU_SOURCE): Don't define.
1998560a 12404
048addec 12405 * process.c (_GNU_SOURCE): Don't define.
1998560a 12406
048addec 12407 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
8704a6ab 12408
048addec 124092002-11-18 Markus Rost <rost@math.ohio-state.edu>
8704a6ab 12410
048addec 12411 * s/sol2-8.h: Include sol2-6.h.
6ae2cd57 12412
048addec 124132002-11-18 Miles Bader <miles@gnu.org>
6ae2cd57 12414
048addec
JD
12415 * dispextern.h (struct face): Add `overstrike' field.
12416 * xterm.c (x_draw_glyph_string_foreground)
12417 (x_draw_composite_glyph_string_foreground): Implement overstriking.
12418 * xfaces.c (load_face_font): Set `face->overstrike' based on
12419 result from choose_face_font.
12420 (best_matching_font, choose_face_font): Add `needs_overstrike'
12421 argument, and use it to return whether overstriking is desirable
12422 for this face/font combo.
12423 (set_font_frame_param: Pass new argument to choose_face_font.
6ae2cd57 12424
048addec 124252002-11-17 Ben Key <BKey1@tampabay.rr.com>
3582b6a3 12426
048addec
JD
12427 This change is my fix for the following entry in etc/PROBLEMS:
12428 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
12429 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
f60ae425 12430
048addec
JD
12431 * w32.c: Added wrapper functions around the win32 API functions
12432 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
12433 GetSidIdentifierAuthority. These wrapper functions serve two
12434 purposes:
12435 1. They ensure that the wrapped function can never be called
12436 when Emacs is running on an operating system on which they are
12437 not supported (Microsoft Windows 95 / 98 / ME).
12438 2. They call the wrapped functions via function pointers rather
12439 than calling them directly. This avoids taking advantage of the
12440 undocumented fact that although these functions are not supported
12441 in the 9x branch of Microsoft Windows, the functions do exist in
12442 the version of advapi32.dll that is found in the 9x branch of
12443 Microsoft Windows.
f60ae425 12444
6bdb309a 12445 * w32.c (init_user_info): Replace the calls to the win32 API
048addec
JD
12446 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
12447 and GetSidIdentifierAuthority with calls to the newly added
12448 wrapper functions.
f60ae425 12449
048addec
JD
12450 * w32.h: Added extern declarations for the following functions:
12451 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
12452 syms_of_w32menu, and void syms_of_fontset.
f60ae425 12453
6bdb309a 12454 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
048addec
JD
12455 function pointer track_mouse_event_fn in the handler for the
12456 WM_SETFOCUS message.
3582b6a3 12457
6bdb309a 12458 * w32menu.c (initialize_frame_menubar): Add code to
048addec
JD
12459 reinitialize the function pointers set_menu_item_info and
12460 get_menu_item_info.
f60ae425 12461
048addec 124622002-11-17 Ben Key <BKey1@tampabay.rr.com>
f60ae425 12463
048addec
JD
12464 * sound.c: Added a partial implementation of play-sound-internal
12465 for Microsoft Windows. Added various #ifdef / #else / #endif
12466 code blocks to separate the code that will compile under
12467 Microsoft Windows from the code that is specific to Gnu/Linux.
12468 Moved several blocks of code around to make this separation of code
12469 into Windows compatible and Gnu/Linux compatible code blocks easier.
f60ae425 12470
048addec 12471 * makefile.w32-in: Include sound.c and link with WinMM.lib.
a0f0878d 12472
048addec
JD
12473 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
12474 added support for play-sound-internal under Windows would be
12475 included in the build of Emacs.
517f42a0 12476
048addec 124772002-11-16 Jason Rumney <jasonr@gnu.org>
517f42a0 12478
048addec 12479 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
517f42a0 12480
048addec 12481 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
a0f0878d 12482
048addec 124832002-11-15 Stefan Monnier <monnier@cs.yale.edu>
a0f0878d 12484
048addec
JD
12485 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
12486 (adjust_point_for_property): Move out of display and invisible even if
12487 we were already inside before (in case a property was added while
12488 we weren't looking). Be more careful when handling invisible props.
12489 Skip invisible text as if it really wasn't there at all.
aab83f91 12490
048addec 124912002-11-15 Jason Rumney <jasonr@gnu.org>
aab83f91 12492
048addec
JD
12493 * w32term.c (x_draw_image_foreground)
12494 (w32_draw_image_foreground_1): Use standard copy and invert
12495 operations to draw images.
aab83f91 12496
048addec
JD
12497 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
12498 depth of 1.
12499 (xbm_read_bitmap_data): Invert bits as xbm is read in.
12500 (XPutPixel): Don't invert bits here.
a4478a76 12501
048addec 125022002-11-15 Jason Rumney <jasonr@gnu.org>
a4478a76 12503
048addec
JD
12504 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
12505 (w32_draw_image_foreground_1): Handle image masks.
12506 (x_draw_image_glyph_string): Don't BitBlt transparently.
a4478a76 12507
048addec
JD
12508 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
12509 (x_from_xcolors): Adjust RGB values for W32.
12510 (image_background, image_background_transparent)
12511 (postprocess_image, x_to_xcolors, x_disable_image)
12512 (x_build_heuristic_mask): Adapt for W32 and enable.
12513 (x_create_x_image_and_pixmap): Mark images with palettes as such.
12514 (xbm_load): Remove unused variable.
03670a65 12515
048addec 125162002-11-14 Richard M. Stallman <rms@gnu.org>
03670a65 12517
048addec 12518 * buffer.c (syms_of_buffer): Doc fix.
59daa29a 12519
048addec 125202002-11-14 Dave Love <fx@gnu.org>
59daa29a 12521
048addec 12522 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
59daa29a 12523
048addec
JD
12524 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
12525 * xmenu.c (unuse_menu_items, digest_single_submenu):
12526 * xfns.c (x_put_x_image):
12527 * xdisp.c (message2_nolog, set_message):
12528 * undo.c (record_point):
12529 * terminfo.c (tparam):
12530 * syntax.c (scan_sexps_forward):
12531 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
12532 * composite.c (update_compositions):
12533 * cm.c (calccost, cmgoto):
12534 * charset.c (c_string_width): Declare all args (per C99).
59daa29a 12535
048addec 12536 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
59daa29a 12537
048addec
JD
12538 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
12539 Don't declare.
59daa29a 12540
048addec 12541 * emacs.c (main) [!VMS]: Avoid third arg.
59daa29a 12542
048addec
JD
12543 * fns.c (Fcopy_sequence): Doc fix.
12544 (Fmap_char_table): Cast `call2'.
3947677c 12545
048addec
JD
125462002-11-14 Francesco Potorti` <pot@gnu.org>
12547
12548 * s/sol2-8.h: New file.
12549
125502002-11-14 Kim F. Storm <storm@cua.dk>
12551
12552 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
12553 dependency on `risky-local-variable' and the :propertize form.
12554
125552002-11-12 Stefan Monnier <monnier@cs.yale.edu>
12556
12557 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
12558
12559 * syntax.c (scan_sexps_forward): Undo last patch.
12560 Use a more obvious fix: check eob before updating the syntax table.
12561
125622002-11-09 Stefan Monnier <monnier@cs.yale.edu>
12563
12564 * syntax.c (scan_sexps_forward): Update syntax table before reading
12565 a char rather than after so we don't update the table past eob.
12566
125672002-11-09 Dave Love <fx@gnu.org>
12568
12569 * buffer.c (Fset_buffer_major_mode): Fix last change.
12570
12571 * regex.c (regexec): Fix pmatch declaration.
12572
12573 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
12574
12575 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
12576 to self-inserting characters.
12577 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
12578
12579 * coding.c (Vtranslation_table_for_input): New.
12580 (syms_of_coding): DEFVAR it.
12581
125822002-11-08 Juanma Barranquero <lektu@terra.es>
12583
12584 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
12585 window.
12586
125872002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12588
6bdb309a 12589 * process.c (Fformat_network_address): Remove unused locals p,
048addec
JD
12590 cp, and i.
12591
125922002-11-06 Dave Love <fx@gnu.org>
12593
12594 * buffer.c (Qset_buffer_major_mode_hook): New.
12595 (Fset_buffer_major_mode): Use it.
12596
125972002-11-06 Richard M. Stallman <rms@gnu.org>
12598
12599 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
12600 and stop_polling.
12601
12602 * process.c (wait_reading_process_input):
12603 Test POLLING_PROBLEM_IN_SELECT, not hpux.
12604 Avoid initialization for auto Lisp_Object var.
12605
12606 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
12607
12608 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
12609
126102002-11-05 Richard M. Stallman <rms@gnu.org>
12611
12612 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
12613
12614 * callint.c (Fcall_interactively): New local filter_specs.
12615 (Fcall_interactively): Check for progn as well as let.
12616 Add a gcpro.
12617 (Qprogn): New variable.
12618 (syms_of_callint): Staticpro and init Qprogn.
12619
126202002-11-04 John Paul Wallington <jpw@shootybangbang.com>
12621
12622 * lread.c (Feval_buffer): Doc fix.
12623
126242002-11-04 Dave Love <fx@gnu.org>
12625
12626 * keyboard.c (read_char): Always translate iff
12627 Vkeyboard_translate_table is a char table and c is valid.
12628
12629 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
12630 and fix C types.
12631
126322002-11-03 Stefan Monnier <monnier@cs.yale.edu>
12633
12634 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
12635
12636 * editfns.c (get_pos_property): Don't hardcode Qfield.
12637
12638 * keyboard.c (adjust_point_for_property): Handle `display' prop on
12639 overlays. Also handle `invisible' prop.
12640
126412002-11-02 Stefan Monnier <monnier@cs.yale.edu>
12642
12643 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
12644 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
12645
126462002-11-01 Andreas Schwab <schwab@suse.de>
12647
12648 * editfns.c (Fmessage): Revert last change to properly handle %%.
12649
126502002-11-01 Stefan Monnier <monnier@cs.yale.edu>
12651
12652 * xmenu.c (unuse_menu_items): New fun.
12653 (menu_items_inuse): New var.
12654 (syms_of_xmenu): Initialize it.
12655 (init_menu_items): Use it to detect re-entrance.
12656 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
12657 (Fx_popup_menu): Remove spurious XSETFRAME.
12658
12659 * editfns.c (find_field): Make an exception for nil fields.
12660
126612002-11-01 Dave Love <fx@gnu.org>
12662
12663 * m/gec63.h: Deleted.
12664
126652002-10-31 Dave Love <fx@gnu.org>
12666
12667 * xterm.c (XTread_socket): Fix last change.
12668 (xaw_scroll_callback): Cast call_data to long to avoid warning.
12669
126702002-10-31 Stefan Monnier <monnier@cs.yale.edu>
12671
12672 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
12673
126742002-10-30 Stefan Monnier <monnier@cs.yale.edu>
12675
12676 * editfns.c (overlays_around, get_pos_property): New funs.
12677 (find_field): Use them.
12678 Also be careful not to modify POS before its last use.
12679 (Fmessage): Don't Fformat if there's nothing to format.
12680
126812002-10-30 Dave Love <fx@gnu.org>
12682
12683 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
12684 [HAVE_PTY_H]; Include pty.h.
12685
12686 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
12687
12688 * xterm.c (Qeql): Declare.
12689 (Vx_keysym_table): New.
12690 (syms_of_xterm): Initialize it.
12691 (XTread_socket): Use it. Deal with ASCII keysyms.
12692 (XSetIMValues) [HAVE_X11R6]: Prototype.
12693
12694 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
12695 (lispy_kana_keys): Comment out.
12696 (make_lispy_event) [XK_kana_A]: Comment out.
12697 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
12698 Fix sprintf call.
12699
12700 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
12701 regexp.h change).
12702 (TERMINFO, LIBS_TERMCAP): Define.
12703
12704 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
12705 (bcmp): Define conditional on HAVE_BCMP.
12706 (NO_SIOCTL_H): Don't define.
12707 (TIOCSIGSEND): Don't make conditional on IRIX6.
12708
12709 * s/sol2-5.h: Don't include strings.h.
12710 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
12711
12712 * s/irix6-0.h (IRIX6): Don't define.
12713 (bcopy, bcmp, bzero): Don't undef.
12714
12715 * s/irix6-5.h: Don't include strings.h.
12716 (IRIX6): Don't define.
12717 (bcopy, bcmp, bzero): Don't undef.
12718
12719 * syntax.c (Fforward_comment): Doc fix.
12720
127212002-10-29 Kim F. Storm <storm@cua.dk>
12722
12723 * process.c (Fsignal_process): Allow PROCESS to be specified by
12724 name in addition to pid (as integer or string).
12725
127262002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
12727
12728 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
12729 environments.
12730
127312002-10-27 Kim F. Storm <storm@cua.dk>
12732
12733 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
12734
12735 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
12736
12737 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
12738
12739 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
12740
127412002-10-26 Richard M. Stallman <rms@gnu.org>
12742
12743 * editfns.c (Fformat): Detect invalid format letters for floats.
12744
127452002-10-25 Kenichi Handa <handa@m17n.org>
12746
12747 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
12748 (x_set_title): Likewise.
12749
127502002-10-25 Juanma Barranquero <lektu@terra.es>
12751
12752 * macgui.h:
12753 * w32gui.h: Remove definition of XColor.
12754
12755 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
12756
127572002-10-24 Kim F. Storm <storm@cua.dk>
12758
12759 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
12760 Callers changed (supply dummy arg).
12761
12762 * lisp.h (get_window_cursor_type): Update prototype.
12763
12764 * w32term.c (x_display_and_set_cursor): Get active_cursor from
12765 get_window_cursor_type to track system caret.
12766
127672002-10-24 Kim F. Storm <storm@cua.dk>
12768
12769 * process.c (Fformat_network_address): New function.
12770 (syms_of_process): Defsubr it.
12771 (list_processes_1): Use it to format :local/:remote address if
f9711de4 12772 service/host is not set; before Emacs would crash in that case.
048addec
JD
12773 (Fmake_network_process): Don't use Ffind_operation_coding_system
12774 to setup coding system if host or service is not set.
12775
127762002-10-23 Juanma Barranquero <lektu@terra.es>
12777
12778 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
12779
12780 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
12781 COLORREF.
12782
12783 * macgui.h:
12784 * w32gui.h: Add definition of XColor.
12785
12786 * macfns.c:
12787 * w32fns.c:
12788 * xfaces.c: Remove definition of XColor.
12789
127902002-10-22 Stefan Monnier <monnier@cs.yale.edu>
12791
12792 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
12793
12794 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
12795 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
12796 window if it is dedicated.
12797 (Fshrink_window): Add preserve_before as was done for enlarge_window.
12798 (Vspecial_display_function): Update docstring.
12799
12800 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
12801 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
12802 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
12803
128042002-10-21 Stefan Monnier <monnier@cs.yale.edu>
12805
12806 * casefiddle.c (casify_region): Don't treat a prefix char as part
12807 of a word when at the beginning.
12808
128092002-10-17 Juanma Barranquero <lektu@terra.es>
12810
12811 * lread.c (syms_of_lread): Fix typos.
12812
128132002-10-17 Dave Love <fx@gnu.org>
12814
12815 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
12816
128172002-10-16 Richard M. Stallman <rms@gnu.org>
12818
12819 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
12820
128212002-10-14 Juanma Barranquero <lektu@terra.es>
12822
12823 * w16select.c (syms_of_win16select): Fix docstring for
12824 `selection-coding-system'.
12825
12826 * w32select.c (syms_of_w32select): Likewise.
12827
128282002-10-14 Stefan Monnier <monnier@cs.yale.edu>
12829
12830 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
12831 a backslash-quoted char.
12832 (scan_lists, scan_sexps_forward): Pacify the compiler.
12833
128342002-10-13 Richard M. Stallman <rms@gnu.org>
12835
12836 * window.c (window_scroll): Set immediate_quit.
12837
12838 * print.c (print): When backquote form is the car of a list,
12839 output in old style. Use old_backquote_output to output all
12840 comma forms inside it in old style too.
12841
12842 * buffer.h (struct buffer): Move `undo_list' down below `name'.
12843
128442002-10-11 Markus Rost <rost@math.ohio-state.edu>
12845
12846 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
12847 batch mode).
12848
12849 * lread.c (Fload): Doc fix (load-suffixes).
12850
128512002-10-10 Steven Tamm <steventamm@mac.com>
12852
12853 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
12854 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
12855 Also switch the default to Qnil from Qt.
12856
128572002-10-08 Kenichi Handa <handa@m17n.org>
12858
12859 * coding.c (code_convert_region): When we need more GAP for
12860 conversion, pay attention to the case that coding->produced is not
12861 greater than coding->consumed.
12862
128632002-10-07 Richard M. Stallman <rms@gnu.org>
12864
12865 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
12866
128672002-10-06 Andrew Choi <akochoi@shaw.ca>
12868
12869 * macmenu.c (mac_menu_show): Add j to count menu items; match
12870 menu_item_selection to it to find selected item.
12871
128722002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12873
12874 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
12875 cases. The correct fix is to pass ReparentNotify to Xt.
12876 The shell widget interprets ConfigureNotify differently depending
12877 on if it has been reparented or not.
12878
128792002-10-05 Markus Rost <rost@math.ohio-state.edu>
12880
12881 * editfns.c (Fformat_time_string): Doc fix.
12882
128832002-10-05 John Paul Wallington <jpw@shootybangbang.com>
12884
12885 * fns.c (Flength): Doc fix.
12886
128872002-10-04 Stefan Monnier <monnier@cs.yale.edu>
12888
12889 * keyboard.c (keyremap): New struct.
12890 (read_key_sequence): Use it: globally replace keytran_foo with
12891 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
12892 keytran_next and fkey_next to just `next'.
12893
128942002-10-04 Steven Tamm <steventamm@mac.com>
12895
12896 * macterm.c (keycode_to_xkeysym_table): Change return to be
12897 treated like an X keysym.
12898
128992002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12900
12901 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
12902 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
12903 This is to also handle x/y changes that occur because of a resize.
12904
129052002-10-02 John Paul Wallington <jpw@shootybangbang.com>
12906
12907 * frame.c (Vdelete_frame_functions): New variable.
12908 (syms_of_frame): Initialize and defvar it.
12909 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
12910 it when frame's `tooltip' parameter is non-nil.
12911
12912 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
12913
12914 * w32fns.c (x_create_tip_frame): Likewise.
12915
12916 * macfns.c (x_create_tip_frame): Likewise.
12917
129182002-09-30 Kenichi Handa <handa@m17n.org>
12919
12920 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
12921 -1 before calling ccl_driver.
12922
12923 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
12924 Only when it is non-nil, handle composition sequence.
12925 (setup_coding_system) <0>: Don't force composition handling.
12926
12927 * Makefile.in (lisp, shortlisp): Add utf-16.elc
12928
129292002-09-29 Richard M. Stallman <rms@gnu.org>
12930
12931 * search.c (Freplace_match): Adjust match data for the substitution
12932 just made in the buffer.
12933
12934 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
12935 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
12936
129372002-09-27 Richard M. Stallman <rms@gnu.org>
12938
12939 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
12940 (read_char): Use them. Do all exits thru the end of the function.
12941
129422002-09-27 Kenichi Handa <handa@etl.go.jp>
12943
12944 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
12945 is nil.
12946
129472002-09-26 Richard M. Stallman <rms@gnu.org>
12948
12949 * regex.h (__restrict_arr): Don't define if already defined.
12950
12951 * coding.c (run_pre_post_conversion_on_str):
12952 Save and restore Vdeactivate_mark.
12953
129542002-09-26 John Paul Wallington <jpw@shootybangbang.com>
12955
12956 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
12957
129582002-09-26 Kenichi Handa <handa@etl.go.jp>
12959
12960 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
12961 nonzero, try face's family at first. Otherwise try FAMILY at first.
12962 (choose_face_font): If C is a single byte char or latin-1, call
12963 try_font_list with PREFER_FACE_FAMILY 1.
12964
129652002-09-21 Richard M. Stallman <rms@gnu.org>
12966
12967 * window.c (select_window_1): Don't select frame.
12968 Set frame's selected window only when frame itself is selected.
12969 (Fselect_window): Doc fix.
12970
129712002-09-18 Kim F. Storm <storm@cua.dk>
12972
12973 * process.c (make-network-process): Doc fix (there is no
12974 network-server-log-function hook).
12975
129762002-09-18 Richard M. Stallman <rms@gnu.org>
12977
12978 * print.c (print): Clear out the unused parts of Vprint_number_table.
12979 (syms_of_print): Doc fix for `print-number-table'.
12980
12981 * unexelf.c (unexec): Undo previous change.
12982
129832002-09-17 Andreas Schwab <schwab@suse.de>
12984
12985 * m/alpha.h [LINUX]: Don't define DATA_START.
12986
129872002-09-16 Dave Love <fx@gnu.org>
12988
12989 * unexelf.c (unexec): Deal with .got, reinstating change from
12990 25-08-1999.
12991
129922002-09-13 Richard M. Stallman <rms@gnu.org>
12993
12994 * s/sol2-6.h (UNEXEC): Comment out definition.
12995
12996 * unexsol.c (unexec): Don't downcase first letter of error msg.
12997
12998 * xfaces.c (Fcolor_supported_p): Just one arg is required.
12999
130002002-09-12 Markus Rost <rost@math.ohio-state.edu>
13001
13002 * unexsol.c: Include buffer.h, charset.h, coding.h.
13003
130042002-09-11 Richard M. Stallman <rms@gnu.org>
13005
13006 * unexsol.c: Don't use report_file_error; do it by hand
13007 using dlerror.
13008
13009 * process.c (wait_reading_process_input, both versions):
13010 Before calling turn_on_atimers, call stop_polling.
13011
13012 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
13013
13014 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
13015 we go to too_near_end, call clear_glyph_matrix.
13016 (redisplay_window): After make_cursor_line_fully_visible,
13017 call clear_glyph_matrix and bypass `goto done'.
13018
13019 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
13020 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
13021
130222002-09-10 Richard M. Stallman <rms@gnu.org>
13023
13024 * fileio.c (Fdo_auto_save): Catch error making directory.
13025 Only call push_message if we need to.
13026 At the same time, make an unwind-protect to pop it.
13027 Rename local message_p to old_message_p.
13028 (do_auto_save_make_dir, do_auto_save_eh): New functions.
13029 (do_auto_save_unwind): Don't call pop_message.
13030
13031 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
13032
13033 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
13034
13035 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
13036
13037 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
13038
130392002-09-10 Stefan Monnier <monnier@cs.yale.edu>
13040
13041 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
13042 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
13043 (re_match_2_internal): Be more careful with infinite loops.
13044
130452002-09-10 Kim F. Storm <storm@cua.dk>
13046
13047 * macros.c (end_kbd_macro): New function.
13048 (Fend_kbd_macro): Use it.
13049
13050 * macros.h (end_kbd_macro): Declare extern.
13051
13052 * keyboard.c (Fdiscard_input): If defining keyboard macro,
13053 end and save it instead of discarding it.
13054
130552002-09-09 Markus Rost <rost@math.ohio-state.edu>
13056
13057 * s/sol2-6.h: Fix typo. Add comment.
13058
130592002-09-09 Richard M. Stallman <rms@gnu.org>
13060
13061 * regex.c (regnum_t): Use signed int, not unsigned int.
13062
13063 * s/sol2-6.h: New file.
13064
13065 * s/sol2-5.h (UNEXEC): Definition deleted.
13066
130672002-09-08 Kim F. Storm <storm@cua.dk>
13068
13069 * macros.c (executing_macro_index): Change type to EMACS_INT.
13070 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
13071
13072 * macros.h (executing_macro_index): Change type to EMACS_INT.
13073
130742002-09-06 Richard M. Stallman <rms@gnu.org>
13075
13076 * casetab.c (set_case_table): Make canon table point to eqv table.
13077
130782002-09-06 Juanma Barranquero <lektu@terra.es>
13079
13080 * coding.c (syms_of_coding): Fix spacing.
13081
13082 * composite.c (Fcompose_region_internal)
13083 (Fcompose_string_internal): Likewise.
13084
13085 * data.c (Flsh): Likewise.
13086
13087 * fontset.c (Fset_fontset_font): Likewise.
13088
13089 * macfns.c (Fx_server_max_request_size): Likewise.
13090
13091 * w16select.c (syms_of_win16select): Likewise.
13092
13093 * w32select.c (syms_of_w32select): Likewise.
13094
13095 * xselect.c (syms_of_xselect): Likewise.
13096
130972002-09-05 Richard M. Stallman <rms@gnu.org>
13098
13099 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
13100 call EXTEND_RANGE_TABLE and return a proper value.
13101 (set_image_of_range): Don't call set_image_of_range_1
13102 if no TRANSLATE or if range includes all of Latin-1.
13103 Only call it for the Latin-1 part of the range.
13104 For other cases, make two separate ranges,
13105 one for the original specified characters and one for
13106 their case-conversions.
13107
131082002-09-04 Richard M. Stallman <rms@gnu.org>
13109
13110 * s/sol2-5.h (UNEXEC): Use unexsol.o.
13111
13112 * window.c (displayed_window_lines): Correct for one-off bug
13113 in HEIGHT on non-window displays.
13114
13115 * regex.c (set_image_of_range_1): New function.
13116 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
13117 Return a value to indicate running out of memory.
13118 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
13119 (extend_range_table_work_area): New subroutine.
13120 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
13121 Different calling conventions, and used from set_image_of_range{,_1}.
13122 (IMMEDIATE_QUIT_CHECK): Definitions moved.
13123
131242002-09-04 Juanma Barranquero <lektu@terra.es>
13125
13126 * makefile.w32-in: All dependencies updated.
13127
131282002-09-01 Richard M. Stallman <rms@gnu.org>
13129
13130 * unexsol.c: New file.
13131
13132 * xfns.c (Qbox): Declare external, don't define.
13133
13134 * xdisp.c (redisplay_window) <force-start case>:
13135 If point is on semi-visible last line, reposition
13136 it at previous line.
13137
13138 * alloc.c (display_malloc_warning): Use display-warning.
13139 (malloc_warning_1): Function deleted.
13140
13141 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
13142
13143 * lread.c (read1): Handle #! by skipping the line.
13144
131452002-08-31 Richard M. Stallman <rms@gnu.org>
13146
13147 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
13148 Don't include LDFLAGS.
13149 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
13150
131512002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
13152
13153 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
13154 member of x_display_info unless we compile for some window system.
13155
131562002-08-31 Kim F. Storm <storm@cua.dk>
13157
13158 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
13159 (get_window_cursor_type): Don't use them.
13160 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
13161
131622002-08-30 Kenichi Handa <handa@etl.go.jp>
13163
13164 * xdisp.c (get_next_display_element): Fix previous change.
13165
131662002-08-30 Andrew Choi <akochoi@shaw.ca>
13167
13168 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
13169 (expose_window): Use it to fix the display of overlapping
13170 rows (merge code from xterm.c).
13171
13172 * macfns.c (Qbox): Add extern declaration.
13173
131742002-08-30 Juanma Barranquero <lektu@terra.es>
13175
13176 * w32fns.c (Qbox): Make extern.
13177 (syms_of_w32fns): Remove initialization of Qbox.
13178
131792002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
13180
13181 * xfns.c (Fx_open_connection): Fix error message.
13182
131832002-08-30 Kim F. Storm <storm@cua.dk>
13184
13185 The following changes consolidates the handling of the cursor
13186 type in xdisp.c, moving duplicate code and functionality from
13187 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
13188
13189 * frame.h (enum text_cursor_kinds): Consolidated here.
13190 Added DEFAULT_CURSOR value.
13191 (struct frame) <desired_cursor, cursor_width>
13192 <blink_off_cursor, blink_off_cursor_width>: New fields.
13193 Consolidated from output_x, output_w32 and output_mac structs.
13194 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
13195 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
13196
13197 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
13198 Variables consolidated here.
13199 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
13200 (Vcursor_in_non_selected_windows): Renamed from
13201 cursor_in_non_selected_windows and changed to Lisp_Object.
13202 (syms_of_xdisp): Define and staticpro new and moved variables.
13203 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
13204 consolidated here. Recognize Qhollow setting.
13205 (set_frame_cursor_types): New function to set frame cursor types
13206 based on the frame parameters.
13207 (get_window_cursor_type): New function to calculate new cursor
13208 type and width for the specified window. Based on duplicated
13209 code consolidated here.
13210 Enhancements: cursor-in-non-selected-windows may be a cursor type,
13211 check buffer-local alternate-cursor-type and blink-cursor-alist
13212 before using built-in blink off methods.
13213
13214 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
13215
13216 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
13217 (get_specified_cursor_type, get_window_cursor_type)
13218 (set_frame_cursor_types): Added prototypes.
13219
13220 * macfns.c (x_specified_cursor_type): Removed.
13221 (x_set_cursor_type): Use set_frame_cursor_types.
13222 (Qbar, Qbox): Removed.
13223 (syms_of_macfns): Don't intern or staticpro them.
13224
13225 * macterm.c (x_specified_cursor_type): Remove prototype.
13226 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
13227 (x_display_and_set_cursor): Use get_window_cursor_type.
13228 Remove unused local variables cursor_non_selected, active_cursor.
13229 Redraw cursor if hbar cursor width changes.
13230 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
13231
13232 * macterm.h (enum text_cursor_kinds): Removed.
13233 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
13234 <blink_off_cursor, blink_off_cursor_width>: Members removed.
13235 (FRAME_DESIRED_CURSOR): Macro removed.
13236
13237 * w32fns.c (Vblink_cursor_alist): Removed.
13238 (Qbar, Qhbar, Qbox, Qhollow): Removed.
13239 (syms_of_w32fns): Don't intern, staticpro, or define them.
13240 (x_specified_cursor_type): Removed.
13241 (x_set_cursor_type): Use set_frame_cursor_types.
13242
13243 * w32term.c (x_specified_cursor_type): Remove prototype.
13244 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
13245 (x_display_and_set_cursor): Use get_window_cursor_type.
13246 Remove unused local variables cursor_off_state.
13247 Redraw cursor if hbar cursor width changes.
13248 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
13249
13250 * w32term.h (enum text_cursor_kinds): Removed.
13251 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
13252 <blink_off_cursor, blink_off_cursor_width>: Members removed.
13253 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
13254 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
13255 (struct w32_display_info) <x_highlight_frame>: Renamed member from
13256 w32_highlight_frame.
13257
13258 * xfns.c (Vblink_cursor_alist): Removed.
13259 (Qbar, Qhbar, Qbox, Qhollow): Removed.
13260 (syms_of_xfns): Don't intern, staticpro, or define them.
13261 (x_specified_cursor_type): Removed.
13262 (x_set_cursor_type): Use set_frame_cursor_types.
13263
13264 * xterm.c (x_specified_cursor_type): Remove prototype.
13265 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
13266 (x_display_and_set_cursor): Use get_window_cursor_type.
13267 Remove unused local variables cursor_off_state.
13268 Redraw cursor if hbar cursor width changes.
13269
13270 * xterm.h (enum text_cursor_kinds): Removed.
13271 (struct output_x) <current_cursor, desired_cursor, cursor_width>
13272 <blink_off_cursor, blink_off_cursor_width>: Members removed.
13273 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
13274 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
13275 (x_specified_cursor_type): Remove prototype.
13276
132772002-08-28 Richard M. Stallman <rms@gnu.org>
13278
13279 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
13280 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
13281 (Vblink_cursor_alist): New variable.
13282 (syms_of_w32fns): Initialize and defvar it.
13283 (x_specified_cursor_type): Recognize Qbox for filled box.
13284 Exceptions are hollow boxes.
13285 (Qbox, Qhollow): New variables.
13286 (syms_of_w32fns): Initialize and staticpro them.
13287
13288 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
13289 New macros.
13290 (struct w32_output): New fields blink_off_cursor,
13291 blink_off_cursor_width.
13292 (FRAME_CURSOR_WIDTH): New macro.
13293
13294 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
13295 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
13296
13297 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
13298 for bar cursor.
13299
13300 * w32term.c (expose_overlaps): New function.
13301 (expose_window): Use it to fix the display of overlapping rows.
13302
133032002-08-28 Simon Josefsson <jas@extundo.com>
13304
13305 * xfns.c (Fx_open_connection): Improve help when X connection
13306 fails, xhost is insecure and xauth is better.
13307
133082002-08-28 Juanma Barranquero <lektu@terra.es>
13309
13310 * makefile.w32-in: Add missing dependencies on w32term.h and
13311 composite.h.
13312
13313 * emacs.c (USAGE1): Add missing newline.
13314
133152002-08-27 Andrew Choi <akochoi@shaw.ca>
13316
13317 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
13318
133192002-08-27 Richard M. Stallman <rms@gnu.org>
13320
13321 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
13322 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
13323 (Vblink_cursor_alist): New variable.
13324 (syms_of_xfns): Initialize and defvar it.
13325 (x_specified_cursor_type): Recognize Qbox for filled box.
13326 Exceptions are hollow boxes.
13327 (Qbox, Qhollow): New variables.
13328 (syms_of_xfns): Initialize and staticpro them.
13329
13330 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
13331 New macros.
13332 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
13333
13334 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
13335 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
13336
13337 * emacs.c (main): Handle --script.
13338 (USAGE1): Mention --script.
13339 (standard_args): Define sort order for --script.
13340
133412002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
13342
13343 * xdisp.c (redisplay_updating_p): Variable removed.
13344 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
13345 New variables.
13346 (init_iterator): Don't free realized faces if
13347 inhibit_free_realized_faces is set.
13348 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
13349 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
13350 initialize Qinhibit_free_realized_faces.
13351
13352 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
13353 when iterator is adding glyphs to a glyph matrix.
13354
133552002-08-27 Kenichi Handa <handa@etl.go.jp>
13356
13357 * xdisp.c (get_next_display_element): In unibyte case, don't use
13358 octal form for such eight-bit characters that can be converted to
13359 multibyte char.
13360
133612002-08-26 Kim F. Storm <storm@cua.dk>
13362
b6189c3b
KS
13363 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
13364 foreground and background colors. From Joe Buehler.
048addec
JD
13365
133662002-08-26 Miles Bader <miles@gnu.org>
13367
13368 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
13369
133702002-08-25 Andrew Choi <akochoi@shaw.ca>
13371
13372 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
13373 defined instead of MAC_OSX.
13374
13375 * s/darwin.h (select): Define select to sys_select only if
13376 HAVE_CARBON is defined.
13377 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
13378 (DONT_REOPEN_PTY): #def it.
13379
13380 * macterm.c (XTread_socket): Remove code to call
13381 SendEventToEventTarget for keys with command modifiers when
13382 mac_command_key_is_meta is nil.
13383
133842002-08-24 Andreas Schwab <schwab@suse.de>
13385
13386 * eval.c (Fdefvar): Fix last change.
13387
133882002-08-23 Richard M. Stallman <rms@gnu.org>
13389
13390 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
13391 Record variables in load history as (defvar . VAR).
13392 (Fdefvar): Don't record in load history if no initial value.
13393 (Qdefvar): New variable.
13394 (syms_of_eval): Init and staticpro it.
13395
13396 * lread.c (syms_of_lread): Doc fix.
13397 (build_load_history): Use Fmember to see if a definition
13398 is already in the Vload_history element.
13399
13400 * process.c (Fstart_process): Remove /: from program name.
13401
13402 * emacs.c (decode_env_path): Don't add /: if file name handler
13403 has a `safe-magic' property.
13404
13405 * callproc.c (Fcall_process): Remove /: from program name.
13406
134072002-08-23 Stefan Monnier <monnier@cs.yale.edu>
13408
13409 * regex.c (PATFETCH): Remove the translating fetch.
13410 (PATFETCH_RAW): Rename to PATFETCH.
13411 (set_image_of_range): New fun.
13412 (SET_RANGE_TABLE_WORK_AREA): Use it.
13413 (regex_compile): Don't translate the pattern chars so eagerly.
13414 Only do it when inserting an `exactn' bytecode or when handling
13415 a char-range.
13416 (mutually_exclusive_p): Avoid empty statement.
13417
134182002-08-22 Kim F. Storm <storm@cua.dk>
13419
13420 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
13421 end up on a partially visible line; this reverts a specific part
13422 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
13423 display error which has been reported several times now.
13424 However it introduces the problem that changes was supposed to fix.
13425 See my comments in the source if you want to debug this further.
13426
134272002-08-20 Kenichi Handa <handa@etl.go.jp>
13428
13429 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
13430
134312002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
13432
13433 * msdos.c (croak): Add `void' to definition.
13434
c1380aa6 13435 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
048addec
JD
13436 Don't define them, they are defined in msdos.c.
13437
13438 * mem-limits.h [MSDOS]: Declare etext.
13439
13440 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
13441 `const' since CORRECT_DIR_SEPS modifies its target.
13442
134432002-08-19 Kim F. Storm <storm@cua.dk>
13444
2fb0ce67 13445 * keyboard.c (Fclear_this_command_keys): Add optional arg
048addec
JD
13446 KEEP-RECORD to avoid clearing lossage when we just want to clear
13447 the current key sequence (kmacro needs this).
13448
134492002-08-19 Kenichi Handa <handa@localhost>
13450
13451 * composite.c (run_composition_function): Call FUNC if it is fboundp.
13452
13453 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
13454 cons, return Qnil.
13455
134562002-08-17 Richard M. Stallman <rms@gnu.org>
13457
13458 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
13459
13460 * sysdep.c [!VMS]: Include sys/files.h.
13461
13462 * editfns.c (save_restriction_restore): Defend from unchained marker.
13463
13464 * buffer.c (overlays_at): Handle extending vec uniformly.
13465 (overlays_in): Handle extending vec from length 0 as in overlays_at.
13466
134672002-08-15 Andrew Choi <akochoi@shaw.ca>
13468
13469 * mac.c (init_mac_osx_environment): New function.
13470
13471 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
13472
134732002-08-14 Kim F. Storm <storm@cua.dk>
13474
13475 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
13476 executing macro before appending to it (when used from Lisp).
13477 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
13478 which is called prior to each iteration of macro (for kmacro.el).
13479 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
13480
13481 * lisp.h (Fexecute_kbd_macro): Update prototype.
13482
13483 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
13484
134852002-08-14 Kenichi Handa <handa@etl.go.jp>
13486
13487 * xselect.c (QUTF8_STRING): New variable.
13488 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
13489 (x_atom_to_symbol): Likewise.
13490 (x_get_local_selection): New argument local_request. If it is
13491 nonzero, call handler_fn with the second arg nil.
13492 (x_handle_selection_request): Call x_get_local_selection with
13493 local_request 0.
13494 (lisp_data_to_selection_data): Don't encode the string here.
13495 (Fx_get_selection_internal): Call x_get_local_selection with
13496 local_request 1.
13497 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
13498
13499 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
13500
13501 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
13502
135032002-08-13 Richard M. Stallman <rms@gnu.org>
13504
13505 * minibuf.c (Fminibufferp): New function.
13506 (syms_of_minibuf): Defsubr it.
13507 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
13508
135092002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
13510
13511 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
13512
135132002-08-12 Richard M. Stallman <rms@gnu.org>
13514
13515 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
13516 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
13517 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
13518 already.
13519
13520 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
13521
135222002-08-11 Andrew Choi <akochoi@shaw.ca>
13523
13524 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
13525 (Vmac_pass_command_to_system): New variable.
13526 (Vmac_pass_control_to_system): New variable.
13527 (do_mouse_moved): Check wp with is_emacs_window.
13528 (XTread_socket): Check window_ptr with is_emacs_window.
13529 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
13530 events back to Mac Toolbox for processing, depending on values of
13531 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
13532 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
13533 Vmac_pass_control_to_system.
13534
135352002-08-10 Kenichi Handa <handa@etl.go.jp>
13536
13537 * coding.c (unencodable_char_position): New function.
13538 (Funencodable_char_position): New function.
13539 (syms_of_coding): Defsubr Funencodable_char_position.
13540
135412002-08-10 Andrew Choi <akochoi@shaw.ca>
13542
13543 * mac.c (sys_select) [MAC_OSX]: New function.
13544
13545 * macterm.c (MakeMeTheFrontProcess): New function.
13546 (mac_initialize): Call MakeMeTheFrontProcess.
13547
13548 * s/darwin.h: Define select to sys_select.
13549
135502002-08-09 Richard M. Stallman <rms@gnu.org>
13551
13552 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
13553
135542002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
13555
13556 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
13557 end of the buffer.
13558
135592002-08-08 Ken Raeburn <raeburn@mit.edu>
13560
13561 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
13562
13563 * puresize.h (BASE_PURESIZE): Increase to 910000.
13564
135652002-08-08 Kenichi Handa <handa@etl.go.jp>
13566
13567 * coding.c (Ffind_operation_coding_system): For write-region, if
13568 VISIT is a filename, make it the target.
13569
135702002-08-07 Richard M. Stallman <rms@gnu.org>
13571
13572 * alloc.c (mark_object): Detect long lists for debugging.
13573 (mark_object_loop_halt): New variable.
13574
13575 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
13576
13577 * data.c (Fmake_variable_frame_local): Doc fix.
13578
135792002-08-01 David Ponce <david@dponce.com>
13580
13581 * w32menu.c (local_heap, local_alloc, local_free): New macros.
13582 (malloc_widget_value, free_widget_value)
13583 (w32_free_submenu_strings): Use them.
13584
13585 (push_submenu_start, push_submenu_end, push_left_right_boundary)
13586 (push_menu_pane, push_menu_item, single_keymap_panes)
13587 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
13588 (single_submenu, set_frame_menubar)
13589 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
13590
13591 (Fx_popup_menu): Don't show pop up menu until preceding one is
13592 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
13593
13594 * w32menu.c: Changes adapted from xmenu.c
13595 (set_frame_menubar): First parse all submenus,
13596 then make widget_value trees from them.
13597 Don't allocate any widget_value objects
13598 until we are done with the parsing.
13599 (parse_single_submenu): New function.
13600 (digest_single_submenu): New function.
13601 (single_submenu): Function deleted, replaced by those two.
13602
136032002-08-04 Andrew Choi <akochoi@shaw.ca>
13604
13605 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
13606 returns a valid window pointer before proceeding for keyDown and
13607 autoKey events.
13608
136092002-08-03 Andrew Choi <akochoi@shaw.ca>
13610
13611 * macterm.c (USE_CARBON_EVENTS): New macro.
13612 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
13613 (x_iconify_frame): Call CollapseWindow.
13614 (Vmac_reverse_ctrl_meta): New variable.
13615 (Vmac_wheel_button_is_mouse_2): New variable.
13616 (init_mac_drag_n_drop): New function.
13617 (mac_do_receive_drag): New function.
13618 (mac_handle_service_event): New function.
13619 (init_service_handler): New function.
13620 (mac_to_emacs_modifiers): New function.
13621 (mac_event_to_emacs_modifiers): New function.
13622 (mac_get_mouse_btn): New function.
13623 (mac_convert_event_ref): New function.
13624 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
13625 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
13626 mac_get_mouse_btn.
13627 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
13628
13629 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
13630 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
13631 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
13632 TOOL_BAR_EVENT for MAC_OS as well.
13633 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
13634 as for WINDOWS_NT.
13635 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
13636
13637 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
13638
136392002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
13640
13641 * xdisp.c (forward_to_next_line_start): Fix a condition that
13642 lead to a newline being skipped.
13643
136442002-08-02 Andrew Choi <akochoi@shaw.ca>
13645
13646 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
13647
136482002-08-01 Richard M. Stallman <rms@gnu.org>
13649
13650 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
13651
136522002-07-31 Andrew Choi <akochoi@shaw.ca>
13653
13654 * macfns.c: #undef init_process before #define-ing it.
13655
13656 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
13657 HAVE_CARBON is defined.
13658
136592002-07-31 Richard M. Stallman <rms@gnu.org>
13660
13661 * xmenu.c (set_frame_menubar): First parse all submenus,
13662 then make widget_value trees from them.
13663 Don't allocate any widget_value objects
13664 until we are done with the parsing.
13665 (parse_single_submenu): New function.
13666 (digest_single_submenu): New function.
13667 (single_submenu): Function deleted, replaced by those two.
13668
136692002-07-30 Juanma Barranquero <lektu@terra.es>
13670
13671 * w32proc.c (syms_of_ntproc): Fix docstring of
13672 `w32-get-true-file-attributes'.
13673
136742002-07-28 Richard M. Stallman <rms@gnu.org>
13675
13676 * s/hpux8.h (HPUX8): Define this before including hpux.h.
13677 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
13678
13679 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
13680
13681 * keyboard.c (make_lispy_event):
13682 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
13683 Explicitly clear up_modifier in event->modifiers.
13684
136852002-07-27 Richard M. Stallman <rms@gnu.org>
13686
13687 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
13688
13689 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
13690 for bar cursor.
13691
136922002-07-26 Kenichi Handa <handa@etl.go.jp>
13693
13694 * coding.c (detect_coding_iso2022): While checking a byte sequence
13695 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
13696 it in the normal loop.
13697
136982002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
13699
13700 * xterm.c (expose_overlaps): New function.
13701 (expose_window): Use it to fix the display of overlapping rows.
13702
13703 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
13704
137052002-07-23 Ken Raeburn <raeburn@gnu.org>
13706
13707 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
13708 since it only depends on XUINT.
13709
13710 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
13711 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
13712 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
13713 Macros deleted.
3947677c 13714
77d1daf2
AS
13715 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
13716 its value over other approaches.
13717 * sysdep.c (start_of_data): Don't define the function if a macro
13718 form has been defined.
8a8e19a3 13719
048addec
JD
137202002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
13721
13722 * xdisp.c (redisplay_updating_p): New variable.
13723 (init_iterator): Don't free realized faces when
13724 redisplay_updating_p is set.
13725 (redisplay_internal): Set redisplay_updating_p while updating
13726 the display.
13727
137282002-07-23 Richard M. Stallman <rms@gnu.org>
13729
13730 * editfns.c (Fmessage): Treat "" like nil.
13731
137322002-07-23 Kenichi Handa <handa@etl.go.jp>
13733
13734 * xdisp.c (face_before_or_after_it_pos):
13735 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
13736
137372002-07-22 Juanma Barranquero <lektu@terra.es>
13738
13739 * callproc.c (init_callproc) [DOS_NT]:
13740 Initialize Vshared_game_score_directory to nil.
13741 (syms_of_callproc) [DOS_NT]: Likewise.
13742
137432002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
13744
13745 * xdisp.c (display_line): Replace an abort with xassert.
13746
137472002-07-21 Richard M. Stallman <rms@gnu.org>
13748
13749 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
13750 and END_UNCHANGED when setting buffer_unchanged_p.
13751 Use current_matrix_up_to_date_p to decide whether to use
13752 try_cursor_movement.
13753
13754 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
13755
13756 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
13757
13758 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
13759 Set to nil if dir does not exist.
13760 (syms_of_callproc): Init unconditionally and simply.
13761
13762 * buffer.c (Fbuffer_list): Doc fix.
13763
137642002-07-21 Ken Raeburn <raeburn@gnu.org>
13765
13766 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
13767
13768 * buffer.c (mmap_realloc): When shrinking, make sure number of
13769 pages to unmap is rounded towards zero.
13770
13771 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
13772 (XSETINT): Deleted.
13773
13774 * m/att3b.h (XINT): Don't define.
13775 (VALBITS, VALMASK, XTYPE): Deleted.
13776 (DATA_SEG_BITS): Define.
13777 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
13778 ARRAY_MARK_FLAG): Deleted.
13779 (DATA_SEG_BITS): Define.
13780 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
13781 (DATA_SEG_BITS): Define.
13782
137832002-07-20 Richard M. Stallman <rms@gnu.org>
13784
13785 * print.c (print_error_message): New args CONTEXT and CALLER.
13786 Calls changed.
13787
13788 * lisp.h (print_error_message): Declare new args.
13789
13790 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
13791 and CONTEXT to print_error_message, don't print them here.
13792 For a Quit, don't use Vsignaling_function.
13793 Call message_log_maybe_newline.
13794
13795 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
13796
137972002-07-20 Kim F. Storm <storm@cua.dk>
13798
13799 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
13800
138012002-07-19 Ken Raeburn <raeburn@gnu.org>
13802
13803 * bytecode.c (struct byte_stack): Pointers into byte string now
13804 point to const.
13805 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
13806 const.
13807 * charset.h (BCOPY_SHORT): Source pointer now points to const.
13808 * coding.c (encode_eol, detect_coding, detect_eol):
13809 (decode_coding, encode_coding, detect_coding_system):
13810 Source strings now treated as const.
13811 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
13812 modify Lisp string contents.
13813 * coding.h (decode_coding, encode_coding, detect_coding,
13814 detect_eol): Declarations updated.
13815 * composite.c (compose_chars_in_text): Treat Lisp string contents
13816 as const.
13817 * dispnew.c (safe_bcopy): Source pointer now points to const.
13818 * lisp.h (STRING_COPYIN): New macro.
13819 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
13820 (internal_with_output_to_temp_buffer): Declarations updated.
13821 * print.c (temp_output_buffer_setup):
13822 (internal_with_output_to_temp_buffer): Buffer name argument is now
13823 pointer to const.
13824 * sound.c (struct sound_device): Function pointer field "write"
13825 buffer argument now points to const.
13826 (vox_write): Buffer argument points to const.
13827 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
13828 contents as const.
13829 * sysdep.c (emacs_write): Buffer pointer now const.
13830 * term.c (encode_terminal_code): Buffer pointer now const.
13831 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
13832 (x_face_list_fonts, x_update_menu_appearance):
13833 (hash_string_case_insensitive): Treat Lisp string contents as const.
13834
138352002-07-19 Juanma Barranquero <lektu@terra.es>
13836
048addec
JD
13837 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
13838
13839 * fileio.c (syms_of_fileio): Likewise.
c62aec78
JB
13840 (Ffile_name_as_directory): Fix argument name in docstring.
13841 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
048addec
JD
13842
138432002-07-18 Richard M. Stallman <rms@gnu.org>
13844
13845 * data.c (Fdefalias): Doc fix.
13846
138472002-07-17 Dave Love <fx@gnu.org>
13848
13849 * intervals.h (text_property_stickiness): Use P_.
13850
13851 * ccl.c: Remove `emacs' conditionals.
13852 (ccl_backtrace_table): Fix size spec.
13853 (ccl_driver): Fix type errors.
13854
138552002-07-16 Ken Raeburn <raeburn@gnu.org>
13856
13857 * alloc.c (xstrdup, make_string, make_unibyte_string)
13858 (make_multibyte_string, build_string): String pointer args now
13859 point to const.
13860 * charset.c (find_charset_in_text, c_string_width):
13861 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
13862 * fileio.c (report_file_error):
13863 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
13864 (count_combining_before, count_combining_after, insert_1_both):
13865 (insert, insert_and_inherit, insert_string):
13866 (insert_before_markers, insert_before_markers_and_inherit):
13867 * lread.c (intern, oblookup, hash_string):
13868 * minibuf.c (temp_echo_area_glyphs):
13869 * search.c (fast_c_string_match_ignore_case):
13870 * sysdep.c (emacs_open, set_file_times):
13871 * xfaces.c (xstricmp):
13872 * xdisp.c (store_frame_title, string_char_and_length):
13873 (message_dolog, message2, message2_nolog, set_message): Likewise.
13874 (set_message_1): Cast message string argument to const pointer.
13875 * editfns.c (general_insert_function): Insertion function now
13876 takes pointer to const for input data.
13877 * charset.h (find_charset_in_text, c_string_width):
13878 (parse_str_as_multibyte): Declarations updated.
13879 * dispextern.h (xstricmp): Declaration updated.
13880 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
13881 (count_size_as_multibyte, count_combining_before):
13882 (count_combining_after, insert_1, insert_1_both, message_dolog):
13883 (insert, insert_and_inherit, insert_before_markers)
13884 (insert_before_markers_and_inherit, set_message, message2):
13885 (message2_dolog, build_string, make_string, make_unibyte_string):
13886 (make_multibyte_string, intern, oblookup, report_file_error):
13887 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
13888 (emacs_open, xstrdup): Declarations updated.
13889 * systime.h (set_file_times): Declaration updated.
13890
13891 * charset.c (find_charset_in_text, lisp_string_width): Use const
13892 for pointer to lisp string data.
13893 * charset.h (FETCH_STRING_CHAR_ADVANCE):
13894 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
13895 * coding.c (Ffind_coding_systems_region_interval):
13896 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
13897 (Fmake_directory_internal, Fdelete_directory):
13898 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
13899 * fontset.c (font_family_registry, fs_query_fontset):
13900 (list_fontsets):
13901 * frame.c (Fframe_parameter):
13902 * keyboard.c (cmd_error_internal):
13903 * keymap.c (Fdescribe_buffer_bindings):
13904 * lread.c (complete_filename_p, openp):
13905 * minibuf.c (Fminibuffer_complete_word):
13906 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
13907 (face_before_or_after_it_pos, next_element_from_string):
13908 (get_overlay_arrow_glyph_row, display_mode_element):
13909 (decode_mode_spec_coding):
13910 * xterm.c (same_x_server): Likewise.
13911
13912 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
13913 settings of non-existent fields.
13914
13915 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
13916 copy a lisp value.
13917
13918 * lread.c (Fintern_soft): Use string macros instead of
13919 Lisp_String fields.
13920 * keyboard.c (echo_char, parse_modifiers_uncached):
13921 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
13922 * textprop.c (validate_interval_range, interval_of): Likewise.
13923
13924 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
13925
13926 * charset.h (FETCH_STRING_CHAR_ADVANCE)
13927 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
13928 XSTRING()->size_byte.
13929
13930 * lisp.h (SDATA, SREF): Produce rvalue.
13931 (SSET): New macro.
13932 * alloc.c (make_event_array): Use SSET for storing into a string.
13933 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
13934 a string.
13935 * casefiddle.c (casify_object): Use SSET.
13936 * charset.h (FETCH_STRING_CHAR_ADVANCE)
13937 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
13938 address of string contents.
13939 * data.c (Faref): Use SDATA.
13940 (Faset): Use SDATA, SSET.
13941 * dired.c (directory_files_internal): Use SSET.
13942 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
13943 (Fread_file_name): Use SREF, SSET.
13944 * fns.c (concat): Use SSET.
13945 (concat, Fdelete): Use SDATA.
13946 * insdel.c (insert_from_string_1): Use SDATA.
13947 * keyboard.c (Fevent_convert_list): Use SREF.
13948 * lread.c (Fload): Use SDATA, SSET.
13949 * macfns.c (validate_x_resource_name): Use SSET.
13950 * process.c (status_message): Use SSET.
13951 * search.c (wordify): Use SDATA.
13952 (Freplace_match): Use SREF.
13953 * w32fns.c (validate_x_resource_name): Use SSET.
13954 * xfns.c (validate_x_resource_name): Use SSET.
13955 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
13956
139572002-07-16 Richard M. Stallman <rms@gnu.org>
13958
13959 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
13960
13961 * xdisp.c (reconsider_clip_changes):
13962 Don't test prevent_redisplay_optimizations_p.
13963 (redisplay_internal): Test prevent_redisplay_optimizations_p
13964 along with clip_changed in some cases.
13965 (try_window_id): Likewise.
13966 (redisplay_window): New local var buffer_unchanged_p.
13967
13968 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
13969
13970 * process.c (create_process): Test USG_SUBTTY_WORKS.
13971 (process_send_signal): Clean up handling of GID.
13972 Detect errors in ioctls meant to set GID.
13973
13974 * window.c (temp_output_buffer_show):
13975 Don't set prevent_redisplay_optimizations_p.
13976
139772002-07-15 Juanma Barranquero <lektu@terra.es>
13978
13979 * eval.c (Fdefvaralias): Add docstring argument.
13980
139812002-07-15 Ken Raeburn <raeburn@gnu.org>
13982
13983 * lisp.h (STRING_INTERVALS): Produce rvalue.
13984 (STRING_SET_INTERVALS): New macro.
13985 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
13986 * fns.c (Fstring_as_multibyte): Likewise.
13987 * intervals.c (balance_possible_root_interval, delete_interval)
13988 (create_root_interval, copy_intervals_to_string): Likewise.
13989 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
13990 instead of 0.
13991
139922002-07-14 Ken Raeburn <raeburn@gnu.org>
13993
13994 * lisp.h (STRING_SET_CHARS): New macro.
13995 (SCHARS, SBYTES): Produce rvalues.
13996 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
13997 * fns.c (concat): Likewise.
13998 * lread.c (read_vector): Likewise.
13999
3419757d 14000 * lisp.h (SMBP): Delete. All uses changed to STRING_MULTIBYTE.
048addec 14001 (STRING_SET_UNIBYTE): New macro.
3419757d 14002 (SET_STRING_BYTES): Delete. Callers (all of which supplied a
048addec
JD
14003 length of -1) changed to use STRING_SET_UNIBYTE.
14004 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
14005 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
14006 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
14007 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
14008 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
14009 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
14010 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
14011 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
14012 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
14013 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
14014 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
14015 STRING_BYTES or indirection changed to SCHARS, SBYTES,
14016 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
14017 unchanged for now.
14018
140192002-07-13 Kim F. Storm <storm@cua.dk>
14020
14021 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
14022
140232002-07-12 Richard M. Stallman <rms@gnu.org>
14024
14025 * fileio.c (Fwrite_region): Doc fix.
14026
14027 * print.c (print_error_message): Don't handle Vsignaling_function here.
14028
14029 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
14030 (command_loop_1): Avoid certain actions after memory-full error.
14031
14032 * eval.c (Fsignal): Don't call cancel_hourglass.
14033 For a memory-full error, don't call Vsignal_hook_function
14034 and don't set Vsignaling_function.
14035
14036 * process.c (process_send_signal): Add abort call.
14037
140382002-07-11 Markus Rost <rost@math.ohio-state.edu>
14039
14040 * keymap.c (Fkey_binding): Fix typo.
14041
140422002-07-11 Richard M. Stallman <rms@gnu.org>
14043
14044 * alloc.c (Vmemory_full): New variable.
3419757d 14045 (Vmemory_signal_data): Rename from memory_signal_data.
048addec
JD
14046 Uses changed.
14047 (syms_of_alloc): Defvar them.
14048 (memory_full, buffer_memory_full): Set Vmemory_full.
14049
14050 * lisp.h (Vmemory_full): Add declaration.
14051 (current_column, indented_beyond_p): Change declaration.
14052
14053 * indent.c (last_known_column): Declare as double, not float.
14054 (current_column, current_column_1, string_display_width)
14055 (position_indentation): Return `double'.
14056 (indented_beyond_p): Arg `column' is `double'. Callers changed.
14057
14058 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
14059 (back_to_previous_visible_line_start)
14060 (reseat_at_next_visible_line_start, next_element_from_buffer):
14061 Use `double', not `float', when calling indented_beyond_p.
14062
3419757d 14063 * s/hpux11.h (BROKEN_SA_RESTART): Define.
048addec
JD
14064
14065 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
14066
140672002-07-11 Juanma Barranquero <lektu@terra.es>
14068
14069 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
f9711de4
JB
14070 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
14071 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
14072 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
14073 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
14074 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
048addec
JD
14075
140762002-07-10 Juanma Barranquero <lektu@terra.es>
14077
d814862a
JB
14078 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
14079 All callers changed.
048addec
JD
14080
140812002-07-09 Stefan Monnier <monnier@cs.yale.edu>
14082
14083 * data.c (Fdefalias): Add an optional `docstring' argument.
14084 (set_internal, Fsetq_default): Use XCAR/XCDR.
14085
14086 * composite.c (HASH_VALUE, HASH_KEY):
14087 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
14088
140892002-07-09 Kenichi Handa <handa@etl.go.jp>
14090
14091 * callproc.c (Fcall_process): Fix previous change.
14092
140932002-07-07 Stefan Monnier <monnier@cs.yale.edu>
14094
14095 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
14096 Add support for hash-tables.
14097 (Ftry_completion): Return t even if the string appears multiple times.
14098
14099 * fns.c (Fnconc): Use XCDR.
14100 (Fprovide): Use CONSP and XCDR.
14101 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
14102 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
14103 (Fmake_hash_table): Accept `:size nil'.
14104 (Fmakehash): Delete: moved to subr.el.
14105 (syms_of_fns): Don't defsubr makehash.
14106
14107 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
14108 (HASH_TABLE_SIZE): Move from fns.c.
14109
141102002-07-07 Richard M. Stallman <rms@gnu.org>
14111
14112 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
14113 Instead just return 0 when there is something to be done.
14114 (try_scrolling): If make_cursor_line_fully_visible returns 0,
14115 retry scrolling as if cursor were off the bottom.
14116 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
14117 return CURSOR_MOVEMENT_MUST_SCROLL.
14118 (redisplay_window): If make_cursor_line_fully_visible returns 0,
14119 go to try_to_scroll.
14120
14121 * buffer.c (Fbuffer_local_value): Store current value into its binding
14122 so we get the up-to-date value for the binding that is loaded.
14123
14124 * eval.c (Fdefmacro): Doc fix.
14125
141262002-07-05 Dave Love <fx@gnu.org>
14127
14128 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
14129 correctly.
14130
14131 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
14132 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
14133 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
14134 CCL_LookupCharConstTbl.
14135 (syms_of_ccl): Defvar translation-hash-table-vector.
14136
141372002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14138
14139 * xdisp.c: Remove unused variable `face'.
14140
141412002-07-04 Juanma Barranquero <lektu@terra.es>
14142
14143 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
14144 obsolescence information.
14145
141462002-07-03 Andrew Choi <akochoi@shaw.ca>
14147
14148 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
14149 pattern. Search cache first.
14150 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
14151 for Japanese font.
14152 (XLoadQueryFont): Use it.
14153
141542002-07-02 Richard M. Stallman <rms@gnu.org>
14155
14156 * keymap.c (Fdefine_key): Doc fix.
14157
14158 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
14159
141602002-07-02 Juanma Barranquero <lektu@terra.es>
14161
14162 * keymap.c (syms_of_keymap): Fix typo.
14163
141642002-07-01 Andrew Choi <akochoi@shaw.ca>
14165
14166 * s/darwin.h: Define POSIX_SIGNALS.
14167
14168 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
14169 and FSRefMakePath to convert FSSpec returned with Apple Event to
14170 Posix pathname.
14171 (mac_initialize) [TARGET_API_MAC_CARBON]:
14172 Call init_required_apple_events and disable the `Quit' menu item
14173 provided automatically by the Carbon Toolbox.
14174
141752002-07-01 Dave Love <fx@gnu.org>
14176
14177 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
14178 for K&R.
14179
14180 * xterm.c: Fix prototype for K&R.
14181
14182 * term.c (costs_set): Declare static, non-initialized for pcc.
14183
141842002-07-01 Richard M. Stallman <rms@gnu.org>
14185
14186 * keyboard.c (timer_last_idleness_start_time): New variable.
14187 (timer_start_idle): Set that.
14188 (read_key_sequence): Use that to reset timer_idleness_start_time
14189 to previous value.
14190
14191 * window.c (Frecenter): With arg, set optional_new_start.
14192
14193 * xdisp.c (redisplay_internal): Make optional_new_start really work.
14194
14195 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
14196 buffer for completion.
14197
141982002-06-29 Ken Raeburn <raeburn@gnu.org>
14199
14200 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
14201
142022002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14203
14204 * keyboard.c (readable_filtered_events): New function that filters
14205 FOCUS_IN_EVENT depending on parameter.
14206 (readable_events): Calls readable_filtered_events, not filtering
14207 FOCUS_IN_EVENT.
14208 (get_filtered_input_pending): New function, filtering parameter passed
14209 to readable_filtered_events.
14210 (get_input_pending): Calls get_filtered_input_pending, not filtering
14211 FOCUS_IN_EVENT.
14212 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
14213 FOCUS_IN_EVENT.
14214
14215 * xterm.h (struct x_output): Add focus_state.
14216
14217 * xterm.c (x_focus_changed): New function.
14218 (x_detect_focus_change): New function.
14219 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
14220 EnterNotify and LeaveNotify to track X focus changes.
14221
142222002-06-28 Andreas Schwab <schwab@suse.de>
14223
14224 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
14225
142262002-06-27 Kim F. Storm <storm@cua.dk>
14227
14228 * xdisp.c: (mode_line_string_list, mode_line_string_face)
14229 (mode_line_string_face_prop): New variables.
14230 (store_mode_line_string): New function.
14231 (display_mode_element): Use store_mode_line_string to
14232 add mode-line string elements to mode_line_string_list
14233 when mode_line_string_list is non-nil.
14234 (Fformat_mode_line): Now returns propertized string by
14235 default. New arg NO-PROPS to ignore properties.
14236 (decode_mode_spec): Only add two dashes for %- in propertized
14237 mode-line string.
14238 (syms_of_xdisp): Init and staticpro mode_line_string_list.
14239
142402002-06-27 Stefan Monnier <monnier@cs.yale.edu>
14241
14242 * minibuf.c (minibuffer_completion_contents): Add return type.
14243
142442002-06-27 Juanma Barranquero <lektu@terra.es>
14245
14246 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
14247
142482002-06-26 Juanma Barranquero <lektu@terra.es>
14249
14250 * fileio.c (read_file_name_cleanup): Add missing return.
14251
142522002-06-26 Richard M. Stallman <rms@gnu.org>
14253
14254 * window.c (Frecenter): Don't set force_start flag.
14255
14256 * minibuf.c (do_completion, Fminibuffer_complete_word)
14257 (Fminibuffer_completion_help): Complete just the text before point.
14258 (minibuffer_completion_contents): New function.
14259
14260 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
14261
14262 * frame.c (frames_bury_buffer): Function deleted.
14263
142642002-06-25 Miles Bader <miles@gnu.org>
14265
14266 * callint.c (Fcall_interactively): When checking to see if doprnt hit
14267 the end of callint_message, allow for a terminating '\0'.
14268
142692002-06-24 Juanma Barranquero <lektu@terra.es>
14270
14271 * w32select.c: Include composite.h
14272
14273 * w16select.c: Likewise.
14274
142752002-06-24 Kenichi Handa <handa@etl.go.jp>
14276
14277 * callproc.c (Fcall_process): If code detection is necessary,
14278 call detect_coding directly here.
14279
14280 * coding.c (detect_eol): Preserve coding->cmp_data.
14281
14282 * w16select.c (Fw16_get_clipboard_data):
14283 * w32fns.c (w32_to_x_font):
14284 * w32select.c (Fw32_get_clipboard_data):
14285 * xselect.c (selection_data_to_lisp_data):
14286 * xterm.c (XTread_socket): Disable composition handling.
14287
142882002-06-24 Stefan Monnier <monnier@cs.yale.edu>
14289
14290 * print.c (temp_output_buffer_setup): Kill all local variables.
14291
142922002-06-22 Stefan Monnier <monnier@cs.yale.edu>
14293
14294 * lread.c (Fread): Remove redundant and imprecise declaration.
14295
14296 * xfns.c (check_x_display_info): Use check_x_frame.
14297
14298 * .gdbinit (xprintsym): Use the new `xname' field.
14299 (xsymbol): Use it.
14300
143012002-06-22 Jason Rumney <jasonr@gnu.org>
14302
14303 * w32fns.c (file_dialog_callback): New function.
14304 (Fx_file_dialog): Allow selecting directories as well as files.
14305
143062002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14307
14308 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
f63fd14e 14309 OpenBSD. Add support for mipseb-*-netbsd* machines.
048addec
JD
14310
143112002-06-17 Andrew Choi <akochoi@shaw.ca>
14312
14313 * macterm.c (mac_scroll_area): Set foreground and backcolor to
14314 black and white before scrolling. Restore frame background and
14315 foreground color after scrolling.
14316 (do_window_update): Call XClearWindow before calling expose_frame.
14317 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
14318 FRAME_FOREGROUND_PIXEL of frame.
14319
14320 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
14321 test Mac command key as <ALT> key.
14322
143232002-06-17 Stefan Monnier <monnier@cs.yale.edu>
14324
14325 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
14326
14327 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
14328 Lookup keys in function-key-map immediately so that key-translation-map
14329 can be applied earlier.
14330 Remove function_key_possible and key_translation_possible, replaced
14331 by checking `keytran_start < t'.
14332
14333 * .gdbinit (xsymbol): Use the new `xname' field.
14334
143352002-06-17 Andrew Choi <akochoi@shaw.ca>
14336
14337 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
14338 test Mac command key as <ALT> key.
14339
14340 * mac.c (do_applescript): Call initialize_applescript if necessary
14341 when first called. Dispose of result_desc only when there is no error.
14342 (Fdo_applescript): Use %d format specifier instead of %ld.
14343
143442002-06-16 Andrew Choi <akochoi@shaw.ca>
14345
14346 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
14347 of FrontWindow for cases keyDown and autoKey.
14348
14349 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
14350 Vdefault_fontset to Monaco with mac-roman coding.
14351
14352 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
14353 init_process before and after inclusion of Carbon/Carbon.h, resp.
14354
14355 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
14356 cursor_gc.
14357 (add_font_name_table_entry): New function.
14358 (init_font_name_table): Use add_font_name_table_entry; add italic,
14359 bold, and bold-italic entries for truetype fonts.
14360
14361 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
14362 for Mac too.
14363 (try_font_list) [MAC_OS]: If no font matches given registry, try
14364 fonts with any registry matching face_family.
14365 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
14366
14367 * s/darwin.h: If autoconf detects the Ncurses library, define
14368 LIBS_TERMCAP to -lncurses to use it.
14369
143702002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
14371
14372 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
14373
143742002-06-15 Richard M. Stallman <rms@gnu.org>
14375
14376 * window.c (Fset_window_configuration): Explicitly preserve
14377 the point value that new_current_buffer had at the start.
14378
143792002-06-14 Juanma Barranquero <lektu@terra.es>
14380
14381 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
14382 Fix typos.
14383
143842002-06-14 Kim F. Storm <storm@cua.dk>
14385
14386 * insdel.c (insert_1_both, insert_from_string_1)
14387 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
14388 insert happened in the end_unchanged region. Otherwise, the
14389 redisplay may be confused and duplicate the last line in the
14390 buffer [seen after save-buffer when require-final-newline==t].
14391
143922002-06-13 Jason Rumney <jasonr@gnu.org>
14393
14394 * w32.c (init_environment): Remove EMACSLOCKDIR.
14395 (stat): Swap _S_IFDIR and _S_IFREG.
14396
143972002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14398
14399 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
14400 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
14401 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
14402 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
14403 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
14404 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
14405 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
14406 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
14407 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
14408 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
14409 SELECTION_REQUEST_EVENT, selection_clear_event to
14410 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
14411 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
14412 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
14413 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
14414 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
14415 no_event to NO_EVENT.
14416
144172002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14418
14419 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
14420
144212002-06-12 Stefan Monnier <monnier@cs.yale.edu>
14422
14423 * intervals.c (textget): Don't forget to `return'.
14424 (lookup_char_property): Use XCAR/XCDR.
14425
144262002-06-12 Juanma Barranquero <lektu@terra.es>
14427
14428 * xdisp.c (Fformat_mode_line): Fix typo.
14429
144302002-06-12 Kim F. Storm <storm@cua.dk>
14431
14432 * xdisp.c (Fformat_mode_line): New function.
14433 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
14434 (store_frame_title_char, store_frame_title): Use unconditionally.
14435 (init_xdisp): Defsubr Fformat_mode_line.
14436 Initialize frame_title_buf etc. unconditionally.
14437
144382002-06-11 Stefan Monnier <monnier@cs.yale.edu>
14439
14440 * keyboard.c (read_key_sequence):
14441 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
14442 things through those maps after downcasing events.
14443 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
14444 applies after function-key-map.
14445 Make sure that keytran can be done in the middle in the sequence.
14446 Be careful not to throw away events past the one we downcase.
14447
14448 * lread.c (read_integer): Remove unused var `tem'.
14449 (read1): Fix int/Lisp_Object mixup.
14450
14451 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
14452
144532002-06-11 Richard M. Stallman <rms@gnu.org>
14454
14455 * keyboard.c (readable_events): Ignore any number of
14456 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
14457
144582002-06-09 Miles Bader <miles@gnu.org>
14459
14460 * xfaces.c (Ftty_supports_face_attributes_p): New function.
14461 (parse_rgb_list, tty_lookup_color): New functions.
14462 (tty_defined_color): Use `tty_lookup_color' to do all the work.
14463 (color_distance, Fcolor_distance): New functions.
14464 (TTY_SAME_COLOR_THRESHOLD): New macro.
14465 (Qtty_color_standard_values): New variable.
14466 (syms_of_xfaces): Initialize new vars & functions.
14467
144682002-06-08 Colin Walters <walters@verbum.org>
14469
14470 * textprop.c (Vchar_property_alias_alist): New variable.
14471 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
14472
14473 * intervals.c (lookup_char_property): New function for looking up
14474 overlay and text properties, created from textget.
14475 (textget): Use it.
14476
14477 * intervals.h (lookup_char_property): Declare.
14478 (Vchar_property_alias_alist): Declare.
14479
14480 * buffer.c (Foverlay_get): Use lookup_char_property.
14481
144822002-06-07 Sam Steingold <sds@gnu.org>
14483
14484 * xselect.c (lisp_data_to_selection_data): Fix last change:
14485 *data_ret is not a Lisp string, while unibyte_string is.
14486
144872002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
14488
14489 * xselect.c (lisp_data_to_selection_data): Fix last change:
14490 set size_ret.
14491
144922002-06-07 Andreas Schwab <schwab@suse.de>
14493
14494 * m/amdx86-64.h: New file.
14495
144962002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
14497
14498 * fns.c (Fstring_make_unibyte): Doc fix.
14499
14500 * xselect.c (lisp_data_to_selection_data): If the requested type
14501 is STRING, call string_make_unibyte to encode the selected text
14502 as a string.
14503
14504 * window.c (Fset_window_hscroll): Doc fix.
14505
145062002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14507
14508 * fileio.c (choose_write_coding_system):
14509 Call select-safe-coding-system properly.
14510
145112002-06-03 Richard M. Stallman <rms@gnu.org>
14512
14513 * xdisp.c (message_with_string): Error if STRING is not a string.
14514
14515 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
14516
14517 * fileio.c (choose_write_coding_system): Pass FILE arg to
14518 Vselect_safe_coding_system_function.
14519
145202002-06-03 Ken Raeburn <raeburn@gnu.org>
14521
14522 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
14523
145242002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
14525
14526 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
14527 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
14528 * keymap.c (describe_command): Likewise.
14529 * minibuf.c (read_minibuf): Likewise.
14530
14531 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
14532 Cast `current_column' return value to int.
14533 (back_to_previous_visible_line_start)
14534 (reseat_at_next_visible_line_start, next_element_from_buffer):
14535 Cast `indented_beyond_p' 3rd arg to float.
14536
14537 * indent.c (last_known_column): Now a float.
14538 (current_column_1, position_indentation, current_column)
14539 (string_display_width): Return float.
14540 (Fcurrent_column): Cast `current_column' return value to int.
14541 (Fcurrent_indentation): Cast `position_indentation' retval to int.
14542 (indented_beyond_p): Third arg now a float.
14543 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
14544
14545 * lisp.h (current_column): Now returns float.
14546 (indented_beyond_p): 3rd arg now a float.
14547
145482002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
14549
14550 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
14551 is Qcompound_text_with_extensions.
14552
14553 * xselect.c (lisp_data_to_selection_data): Always set selection
14554 type as string if x_encode_text returns streingp non-NULL.
14555
14556 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
14557
145582002-05-30 Richard M. Stallman <rms@gnu.org>
14559
14560 * window.c (Fset_window_configuration): Correct the handling
14561 of point in current buffer, to work with multiple windows.
14562
145632002-05-29 Colin Walters <walters@verbum.org>
14564
14565 * lread.c (Fread_from_string): Don't depend on order of evaluation
14566 for C function parameters.
14567
145682002-05-28 Richard M. Stallman <rms@gnu.org>
14569
14570 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
14571 way for blinked-off state and for a nonselected window.
14572
14573 * window.c (window_scroll_pixel_based): Don't call Fbolp;
14574 instead, see if the new start pos is at beginning of line.
14575
14576 * fileio.c (Fwrite_region): If START is a string, don't
14577 make any annotations.
14578
14579 * eval.c (syms_of_eval): Doc fix.
14580
145812002-05-28 Colin Walters <walters@debian.org>
14582
14583 * emacs.c (USAGE1): Add --no-splash.
14584 (standard_args): Ditto.
14585
145862002-05-28 Colin Walters <walters@gnu.org>
14587
14588 * lread.c (readchar_count): New variable.
14589 (readchar): Increment it.
14590 (unreadchar): Decrement it.
14591 (read_multibyte): Decrement it.
14592 (Vread_with_symbol_positions): New variable.
14593 (Vread_symbol_positions_list): New variable.
14594 (read_internal_start): New function, created from Fread and
14595 Fread_from_string. Handle Vread_symbol_positions_list and
14596 Vread_with_symbol_positions.
14597 (readevalloop, Fread, Fread_from_string): Use it.
14598 (read1): Use readchar_count to add symbol positions to
14599 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
14600 (syms_of_lread): DEFVAR_LISP and initialize them.
14601
14602 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
14603 (substitute_object_recurse, substitute_object_in_subtree)
14604 (substitute_in_interval): Prototype.
14605 (read_multibyte): Return c if it's less than zero.
14606
146072002-05-28 Kim F. Storm <storm@cua.dk>
14608
14609 * fileio.c (Fread_file_name_internal): Added brute-force
14610 speed up for using predicate file-directory-p.
14611
146122002-05-28 Kim F. Storm <storm@cua.dk>
14613
14614 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
14615 New variables.
14616 (syms_of_fileio): DEFVAR_LISP them.
14617 (read_file_name_cleanup): New unwind function.
14618 (Fread_file_name_internal): Only return completions satifying
14619 Vread_file_name_predicate. Temporarily unwind protect and rebind
14620 default-directory while checking completions against the predicate.
14621 (Fread_file_name): Added PREDICATE argument. Specbind it to
14622 Vread_file_name_predicate during completion.
14623 Call Vread_file_name_function to read the file name if non-nil.
14624
14625 * lisp.h (Fread_file_name): Now has 6 args.
14626
14627 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
14628 predicate for Fread_file_name when reading directory name.
14629 Supply Qnil for predicate in other calls to Fread_file_name.
14630
146312002-05-26 Miles Bader <miles@gnu.org>
14632
14633 * term.c (tty_capable_p): New function.
14634 * dispextern.h (tty_capable_p): New function declaration.
14635 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
14636 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
14637
146382002-05-23 Stefan Monnier <monnier@cs.yale.edu>
14639
14640 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
14641 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
14642 (Vwrite_region_annotate_functions): Docstring fix.
14643
146442002-05-23 Kim F. Storm <storm@cua.dk>
14645
14646 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
14647 phys_cursor's hpos is overwritten. This is still not completely
14648 correct, as it doesn't really make sense to use hpos at all to
14649 get the cursor glyph (as that is relative to the width of the
14650 characters on the line, which may have changed during the update).
14651
146522002-05-22 Jason Rumney <jasonr@gnu.org>
14653
14654 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
14655 Lisp_Object.
14656 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
14657 Use modified enumfont_t struct.
14658
14659 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
14660
14661 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
14662 Handle the `hbar' cursor type.
14663 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
14664
14665 * w32fns.c (Qhbar): New variable.
14666 (x_specified_cursor_type): Use it.
14667
146682002-05-21 Ken Raeburn <raeburn@gnu.org>
14669
14670 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
14671 now, when the address is needed.
14672
146732002-05-21 Colin Walters <walters@gnu.org>
14674
14675 * Makefile.in (shortlisp): Add font-core.el.
14676
146772002-05-20 Richard M. Stallman <rms@gnu.org>
14678
14679 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
14680
14681 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
14682 equivalent key bindings here.
14683
146842002-05-20 Ken Raeburn <raeburn@gnu.org>
14685
14686 Change symbol structure to contain a lisp object for the symbol
14687 name:
14688 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
14689 object field named "xname".
14690 (SYMBOL_NAME): New macro.
14691 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
14692 name field.
14693 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
14694 (mark_object, gc_sweep): Use symbol xname field and XSTRING
14695 instead of name field.
14696 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
14697 SYMBOL_NAME instead of XSYMBOL and name field.
14698 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
14699 instead of XSYMBOL and name field.
14700 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
14701 and SYMBOL_NAME instead of XSYMBOL and name field.
14702 * coding.c (Fread_coding_system, code_convert_region1)
14703 (code_convert_string1, code_convert_string_norecord)
14704 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
14705 XSYMBOL and name field.
14706 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
14707 (Fmake_variable_buffer_local, Fmake_local_variable)
14708 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
14709 of XSYMBOL and name field.
14710 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
14711 XSYMBOL and name field.
14712 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
14713 instead of XSYMBOL and name field.
14714 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
14715 XSYMBOL and name field.
14716 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
14717 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
14718 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
14719 instead of XSYMBOL and name field.
14720 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
14721 (parse_modifiers, apply_modifiers, Fevent_convert_list)
14722 (parse_solitary_modifier, Fexecute_extended_command):
14723 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
14724 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
14725 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
14726 of XSYMBOL and name field.
14727 (describe_command, describe_translation): Use SYMBOL_NAME and
14728 assignment instead of XSYMBOL and name field and XSETSTRING.
14729 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
14730 instead of XSYMBOL and name field.
14731 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
14732 name field and XSETSTRING.
14733 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
14734 of XSYMBOL and name field.
14735 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
14736 assignment instead of XSYMBOL and name field and XSETSTRING.
14737 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
14738 XSTRING instead of XSYMBOL and name field.
14739 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
14740 and XSTRING instead of XSYMBOL and name field.
14741 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
14742 and XSTRING instead of XSYMBOL and name field.
14743 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
14744 XSTRING instead of XSYMBOL and name field.
14745 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
14746 of XSYMBOL and name field.
14747 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
14748 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
14749
147502002-05-19 Ken Raeburn <raeburn@gnu.org>
14751
14752 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
14753 and XCDR real rvalues in most configurations.
14754
14755 * buffer.c (fix_overlays_in_range, fix_overlays_before):
14756 Don't take the address of the cdr part of a cons cell; instead, track
14757 the parent cell and call XSETCDR, or set the variable for the head
14758 of the list if we haven't started down the list yet.
14759
147602002-05-19 Richard M. Stallman <rms@gnu.org>
14761
14762 * doc.c (reread_doc_file): Don't ask for confirmation.
14763
147642002-05-18 Jason Rumney <jasonr@gnu.org>
14765
14766 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
14767 (xbm_load_image): Use it.
14768 (xbm_load): Ditto.
14769 (xbm_read_bitmap_data): Reverted to xfns.c version.
14770 From David Ponce <david@dponce.com>.
14771
147722002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
14773
14774 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
14775 2.02 and later.
14776
147772002-05-16 Juanma Barranquero <lektu@terra.es>
14778
14779 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
14780
147812002-05-15 Stefan Monnier <monnier@cs.yale.edu>
14782
14783 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
14784 meaningful test.
14785 (read_char_minibuf_menu_prompt): Fix typo.
14786
147872002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
14788
14789 * eval.c (Fcommandp): Doc fix.
14790
147912002-05-13 Stefan Monnier <monnier@cs.yale.edu>
14792
14793 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
14794 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
14795 (Fset_keymap_parent): Gcpro a bit more.
14796 (access_keymap): Gcpro around meta_map call and around the main loop.
14797 (get_keyelt): Gcpro when following indirect references.
14798 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
14799 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
14800 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
14801 Remove useless ad-hoc remap code.
14802
148032002-05-13 Richard M. Stallman <rms@gnu.org>
14804
14805 * search.c (search_buffer): Give up boyer moore search if inverse
14806 translation change charset_base.
14807
148082002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
14809
14810 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
14811 characters is carried over from the previous block of text, adjust
14812 coding->produced to account for the extra character.
14813
148142002-05-11 Andreas Schwab <schwab@suse.de>
14815
14816 * coding.c (intersection): Keep the elements of the returned list
14817 in the same order as in the first list.
14818
148192002-05-11 Kim F. Storm <storm@cua.dk>
14820
3419757d 14821 * keymap.c (current_minor_maps): Fix resizing of cmm_maps;
048addec
JD
14822 only update cmm_size if realloc actually succeeds.
14823 Testing with initial size of 2 elements revealed that using
14824 realloc on GNU/Linux would cause a random trap in xmalloc
14825 later on, so I rewrote the code to use malloc/bcopy/free instead
14826 of realloc.
14827
148282002-05-10 Jason Rumney <jasonr@gnu.org>
14829
14830 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
14831
148322002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
14833
14834 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
14835 parens, to ensure correct evaluation order.
14836
148372002-05-10 Kim F. Storm <storm@cua.dk>
14838
14839 * keymap.c (Vemulation_mode_map_alists): New variable.
14840 (syms_of_keymap): DEFVAR_LISP it.
14841 (current_minor_maps): Process keymap alists in that list before
14842 minor-mode-overriding-map-alist and minor-mode-map-alist.
14843
148442002-05-09 Richard M. Stallman <rms@gnu.org>
14845
14846 * search.c (Freplace_match): Doc fix.
14847
148482002-05-09 Kim F. Storm <storm@cua.dk>
14849
14850 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
14851 Enlarge cursor rectangle drawn around image with non-zero relief.
14852
14853 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
14854 Enlarge cursor rectangle drawn around image with non-zero relief.
14855
14856 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
14857 Enlarge cursor rectangle drawn around image with non-zero relief.
14858
148592002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
14860
14861 * xselect.c (lisp_data_to_selection_data): Don't set selection
14862 type if comes from the Lisp object's car. If the selection
14863 contains a pure ASCII text, always return QSTRING as its type.
14864
148652002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14866
14867 * mac.c (mac-cut-function): Doc fix.
14868
148692002-05-05 Richard M. Stallman <rms@gnu.org>
14870
14871 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
14872
148732002-05-04 Jason Rumney <jasonr@gnu.org>
14874
14875 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
14876 for event-click-count.
14877
14878 * process.c (init_process): Only add server subfeature if we can
14879 use non-blocking I/O.
14880
148812002-05-04 Andrew Choi <akochoi@shaw.ca>
14882
14883 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
14884 repeatedly.
14885
148862002-05-03 Jason Rumney <jasonr@gnu.org>
14887
14888 * process.c (Fmake_network_process): Only support server sockets
14889 when we can make them non-blocking.
14890
14891 * s/ms-w32.h (HAVE_SELECT): Define.
14892
14893 * w32.h (FILE_NDELAY): New flag.
14894
14895 * w32.c (sys_getpeername, fcntl): New functions.
14896 (_sys_read_ahead): Temporarily block on non-blocking sockets.
14897
14898 * w32proc.c: include sys/file.h.
14899
149002002-05-03 Colin Walters <walters@verbum.org>
14901
14902 * callproc.c (Vgame_score_directory): Renamed to
14903 Vshared_game_score_directory.
14904
149052002-04-30 Richard M. Stallman <rms@gnu.org>
14906
14907 * s/gnu.h [emacs]: Include stdio.h.
14908 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
14909
14910 * eval.c (do_autoload): Error if called while preparing to dump.
14911
14912 * fns.c (Frequire): Error if need to load while preparing to dump.
14913
149142002-04-28 Colin Walters <walters@verbum.org>
14915
14916 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
14917 Default to "~/.emacs.d/games".
14918
149192002-04-29 Stefan Monnier <monnier@cs.yale.edu>
14920
14921 * lread.c (openp): Change arg exec_only to predicate.
14922 (build_load_history): Use XCAR/XCDR.
14923 (Flocate_file_internal): New fun.
14924 (syms_of_lread): Defsubr it.
14925 (Fload): Update call to openp.
14926
14927 * lisp.h (openp): Update prototype.
14928
14929 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
14930 * w32proc.c (sys_spawnve):
14931 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
14932 * w32.c (check_windows_init_file):
14933 * sound.c (Fplay_sound_internal):
14934 * process.c (Fstart_process):
14935 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
14936 * mac.c (run_mac_command):
14937 * emacs.c (init_cmdargs):
14938 * callproc.c (Fcall_process): Update call to openp.
14939
14940 * textprop.c (remove_properties): Don't use XCAR without CONSP.
14941
14942 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
14943
149442002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14945
14946 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
14947 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
14948
149492002-04-28 Richard M. Stallman <rms@gnu.org>
14950
14951 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
14952
14953 * eval.c (Fcommandp): New arg for_call_interactively.
14954 * lisp.h (Fcommandp): Declare new arg.
14955
149562002-04-28 Jason Rumney <jasonr@gnu.org>
14957
14958 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
14959
14960 * w32.c (stat, fstat): Use file index information to generate
14961 inodes for directories where available.
14962
149632002-04-26 Andrew Choi <akochoi@shaw.ca>
14964
14965 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
14966 [HAVE_CARBON]: Include Mac object files.
14967
14968 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
14969 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
14970 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
14971 MAC_OSX, and MAC_OS instead of macintosh.
14972
14973 * editfns.c [MAC_OS8]: Include stdio.h.
14974
14975 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
14976
14977 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
14978 Apple Monaco.
14979
78819ebb 14980 * process.c (QCfamily, QCfilte): Declare extern.
048addec
JD
14981 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
14982 calling select.
14983
14984 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
14985
14986 * tparam.c [MAC_OSX]: Don't define BC and UP.
14987
14988 * config.in [HAVE_CARBON]: Add.
14989
14990 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
14991 Move here from mac/src and mac/inc.
14992
14993 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
14994
149952002-04-26 Gerd Moellmann <gerd@gnu.org>
14996
14997 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
14998 Compute phys_cursor_width from the x position returned
14999 by x_draw_glyhs, which is cheaper.
15000 (x_display_and_set_cursor): Compute the buffer-local value
15001 of `cursor-in-non-selected-windows' only when needed.
15002
150032002-04-25 Gerd Moellmann <gerd@gnu.org>
15004
15005 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
15006 cursor on a stretch glyph has a width that depends on
15007 x_stretch_cursor_p.
15008
150092002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15010
15011 * abbrev.c (abbrev-start-location): Doc fix.
15012
15013 * indent.c (Fvertical_motion): Fix last change.
15014
150152002-04-25 Gerd Moellmann <gerd@gnu.org>
15016
15017 * indent.c (Fvertical_motion): Move to the start of the line
15018 containing PT before moving up or down.
15019
150202002-04-24 Gerd Moellmann <gerd@gnu.org>
15021
15022 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
15023 case of writing a whole row, more or less analogous to the case of
15024 writing only parts of a row.
15025
15026 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
15027 0 for NO_CURSOR.
15028
15029 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
15030
150312002-04-23 Colin Walters <walters@verbum.org>
15032
15033 * buffer.c (syms_of_buffer): Doc fix.
15034
150352002-04-23 Gerd Moellmann <gerd@gnu.org>
15036
15037 * xterm.c (notice_overwritten_cursor): Handle the special case
15038 of the cursor being in the first blank non-text line at the
15039 end of a window.
15040
15041 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
15042 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
15043 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
15044 bar cursors only, to make phys_cursor_width contain what its name
15045 suggests.
15046 (notice_overwritten_cursor): Consider the cursor image erased if
15047 the output area intersects the cursor image in y-direction.
15048
150492002-04-23 Simon Marshall <simon@gnu.org>
15050
15051 * xfns.c (x_set_mouse_color): Change default for cross_cursor
15052 to XC_hand2.
15053
150542002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15055
15056 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
15057
150582002-04-22 Kim F. Storm <storm@cua.dk>
15059
15060 * textprop.c (remove_properties): Fixed trap for malformed plist.
15061
150622002-04-22 Richard M. Stallman <rms@gnu.org>
15063
15064 * cmds.c (Fend_of_line): Handle intangible text in mid line.
15065
15066 * window.c (make_window): Initialize height_fixed_p,
15067 last_cursor_off_p, and p->cursor_off_p slots.
15068
150692002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15070
15071 * fns.c (use-dialog-box): Doc fix.
15072
150732002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15074
15075 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
15076 variables `row', `i' and `area'.
15077 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
15078 toolkit library.
15079
150802002-04-19 Stefan Monnier <monnier@cs.yale.edu>
15081
15082 * xfaces.c (clear_font_table): Don't free the default font of
15083 a frame even if it's on another display.
15084 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
15085 that could be Qt.
15086
150872002-04-19 Juanma Barranquero <lektu@terra.es>
15088
15089 * indent.c (Fmove_to_column): Remove unused local variable
15090 `next_boundary_byte'.
15091 (current_column_1): Likewise.
15092
150932002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
15094
15095 * msdos.c (Qhbar): New variable.
15096 (syms_of_msdos): Intern and staticpro it.
15097 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
15098 cursor type.
15099
151002002-04-19 Dave Lambert <dlambert@acm.org>
15101
15102 Theses change implement an underscore-like (`hbar') cursor.
15103
15104 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
15105
15106 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
15107 Handle the `hbar' cursor type.
15108 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
15109
15110 * xfns.c (Qhbar): New variable.
15111 (syms_of_xfns): Intern and staticpro it.
15112 (x_specified_cursor_type): Handle `hbar' cursor.
15113
15114 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
15115 not defined.
15116
151172002-04-18 Richard M. Stallman <rms@gnu.org>
15118
15119 * textprop.c (remove_properties): New arg LIST allows scanning
15120 either a list or a plist.
15121 (interval_has_some_properties_list): New function, like
15122 interval_has_some_properties using list instead of plist.
15123 All callers changed.
15124 (Fremove_list_of_text_properties): New function.
15125 (syms_of_textprop): Defsubr it.
15126
151272002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
15128
15129 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
15130
151312002-04-17 Juanma Barranquero <lektu@terra.es>
15132
15133 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
15134
151352002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
15136
15137 * window.c (coordinates_in_window): Don't report on margin area
15138 if its width is zero.
15139
151402002-04-16 Jason Rumney <jasonr@gnu.org>
15141
15142 * w32fns.c (Fx_file_dialog): Decode file name before using.
15143
15144 * w32term.c (construct_drag_n_drop): Likewise.
15145
151462002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
15147
15148 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
15149 store load-history in pure space.
15150
15151 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
15152
151532002-04-16 Stefan Monnier <monnier@cs.yale.edu>
15154
15155 * xterm.c (Qlatin_1, Qutf_8): New vars.
15156 (syms_of_xterm): Initialize them.
15157 (XTread_socket): Eliminate incorrect optimization that tried to avoid
15158 decoding the output of X*LookupString.
15159 Always use latin-1 to decode the output of XLookupString.
15160 Try Xutf8LookupString if XmbLookupString failed.
15161
15162 * region-cache.c (new_region_cache): Use BEG.
15163
151642002-04-16 Gerd Moellmann <gerd@gnu.org>
15165
15166 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
15167 configuration files.
15168 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
15169 returns 0.
15170
151712002-04-15 Andreas Schwab <schwab@suse.de>
15172
15173 * config.in: Regenerated using autoheader.
15174
15175 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
15176 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
15177 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
15178 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
15179 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
15180 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
15181 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
15182 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
15183 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
15184 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
15185 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
15186 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
15187 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
15188 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
15189 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
15190 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
15191 STACK_DIRECTION, now set by autoconf.
15192
151932002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15194
15195 * dispnew.c (marginal_area_string): Sort arguments.
15196
15197 * dispextern.h (marginal_area_string): Add prototype.
15198
151992002-04-13 Richard M. Stallman <rms@gnu.org>
15200
15201 * fileio.c (Finsert_file_contents):
15202 Don't call temp_output_buffer_setup--do just part, by hand.
15203
15204 * coding.c (run_pre_post_conversion_on_str):
15205 Don't call temp_output_buffer_setup--do just part, by hand.
15206
15207 * keyboard.c (command_loop_1): Don't call start_hourglass
15208 or cancel_hourglass when executing a macro.
15209
15210 * marker.c (count_markers): New function.
15211
15212 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
15213 grow without limit. Move recently used elements to the front.
15214
152152002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
15216
15217 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
15218
152192002-04-12 Gerd Moellmann <gerd@gnu.org>
15220
15221 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
15222 rows marginal areas.
15223 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
15224 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
15225
15226 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
15227
152282002-04-12 Dave Love <fx@gnu.org>
15229
15230 * dispnew.c (marginal_area_string): New.
15231
15232 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
15233 (Qleft_margin, Qright_margin): Declare.
15234 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
15235
15236 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
15237 note_mode_line_highlight and extended.
15238
15239 * keyboard.c (Qleft_margin, Qright_margin): Declare.
15240 (make_lispy_event): Deal with mouse events in margins.
15241
152422002-04-12 Stefan Monnier <monnier@cs.yale.edu>
15243
15244 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
15245
15246 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
15247 than deactivating the mark if tmm is set to `lambda'.
15248 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
15249 Use a single event for HELP_EVENT.
15250 (Fexecute_extended_command): Save last_point_position.
15251
152522002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15253
15254 * lisp.h (Fpropertize): Add prototype.
15255
15256 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
15257
152582002-04-10 Colin Walters <walters@verbum.org>
15259
15260 * config.in: Add HAVE_SHARED_GAME_DIR.
15261
15262 * callproc.c: (Vgame_score_directory): New variable.
15263 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
15264
152652002-04-10 Richard M. Stallman <rms@gnu.org>
15266
15267 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
15268
152692002-04-09 Stefan Monnier <monnier@cs.yale.edu>
15270
15271 * minibuf.c (read_minibuf): Use empty_string.
15272 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
15273 Short-circuit the search as soon as it "failed".
15274 (Fall_completions): Allow lambda forms and lists of strings for alist.
15275 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
15276 when require_match is nil.
15277 (Ftest_completion): Rename from `test_completion' and export to elisp.
15278 Call the predicate also when alist is a list.
15279 Obey Vcompletion_regexp_list.
15280 (do_completion, Fminibuffer_complete_and_exit): Use it.
15281 (Fassoc_string): Rename from `assoc_for_completion'.
15282 Allow list of strings as well and export to elisp.
15283
152842002-04-08 Stefan Monnier <monnier@cs.yale.edu>
15285
15286 * puresize.h (BASE_PURESIZE): Increase to 900KB.
15287
152882002-04-08 Juanma Barranquero <lektu@terra.es>
15289
15290 * w32.c (sys_accept): Don't hide variable `s'.
15291
152922002-04-05 Gerd Moellmann <gerd@gnu.org>
15293
15294 * callint.c (Fcall_interactively): Use INTEGERP instead of
15295 NUMBERP for checking Vhistory_length.
15296
152972002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15298
15299 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
15300 Doc fix to reflect it.
15301
153022002-04-04 Richard M. Stallman <rms@gnu.org>
15303
15304 * xdisp.c (display_mode_element): New arg RISKY.
15305 Disregard text props found or specified within a variable
15306 that isn't marked risky-local-variable.
15307 (Qrisky_local_variable): New variable.
15308 (syms_of_xdisp): Init and staticpro it.
15309
153102002-04-04 Stefan Monnier <monnier@cs.yale.edu>
15311
15312 * undo.c (record_point): New fun.
15313 (record_delete, record_insert): Use it.
15314
153152002-04-03 Juanma Barranquero <lektu@terra.es>
15316
15317 * doc.c (Fdocumentation): Add missing parentheses.
15318 (Fdocumentation_property): Likewise.
15319
153202002-04-03 Stefan Monnier <monnier@cs.yale.edu>
15321
15322 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
15323 data is 0, just return nil.
15324
153252002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
15326
15327 * msdos.c (syms_of_msdos): Fix last change with
15328 mouse_autoselect_window.
15329
153302002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15331
15332 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
15333 mouse_autoselect_window.
15334
153352002-04-02 Stefan Monnier <monnier@cs.yale.edu>
15336
15337 * keyboard.c (make_lispy_event): Handle unknown keysyms together
15338 with system-specific keysyms. Use it also for unknown function keys.
15339
15340 * doc.c (reread_doc_file): Return whether reload was attempted.
15341 (Fdocumentation, Fdocumentation_property): Don't try to reload
15342 if the doc is 0 and only ask once.
15343
15344 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
15345
153462002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
15347
15348 * keyboard.c (read_char): If the event was Qselect_window,
15349 restore timer_idleness_start_time to its previous value.
15350
15351 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
15352
153532002-04-01 Stefan Monnier <monnier@cs.yale.edu>
15354
15355 * region-cache.c (new_region_cache): Use BEG.
15356
15357 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
15358 Use BEG and BEG_BYTE.
15359
15360 * doc.c (get_doc_string): Return nil if the location is wrong.
15361 (reread_doc_file): New fun.
15362 (Fdocumentation, Fdocumentation_property):
15363 Call it if get_doc_string fails.
15364 (Fsnarf_documentation): Make it work for a dumped Emacs.
15365
15366 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
15367 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
15368
15369 * charset.c (Fstring): Allow 0 arguments.
15370
15371 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
15372
15373 * process.c (DATAGRAM_CONN_P, list_processes_1)
15374 (Fprocess_datagram_address, Fset_process_datagram_address)
15375 (Fset_network_process_options, server_accept_connection):
15376 Fix some int/Lisp_Object confusions (thank you union types).
15377
153782002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15379
15380 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
15381
15382 * w32term.c: Likewise.
15383 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
15384
15385 * keyboard.c (Qselect_window): New symbol.
15386 (head_table): Use it.
15387 (keys_of_keyboard): Bound select-window event to handle-select-window.
15388 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
15389
15390 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
15391 (last_window): New variable.
15392 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
15393 (note_mouse_movement): Remove reimplemented code in #if 0.
15394 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
15395 Emacs windows.
15396
15397 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
15398
153992002-03-31 Gerd Moellmann <gerd@gnu.org>
15400
15401 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
15402 Callers changed.
15403
154042002-03-30 Richard M. Stallman <rms@gnu.org>
15405
15406 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
15407 loop whenever it stops making progress.
15408
15409 * widget.c (set_frame_size): Don't call change_frame_size.
15410
154112002-03-30 Gerd Moellmann <gerd@gnu.org>
15412
15413 * dispnew.c (direct_output_for_insert):
15414 Call mark_window_display_accurate.
15415
154162002-03-29 Jason Rumney <jasonr@gnu.org>
15417
15418 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
15419
154202002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
15421
15422 * Makefile.in (lread.o): Depend on coding.h.
15423
15424 * lread.c (openp, Fload): Encode the file name before passing it
15425 to `stat', `access', and `emacs_open'.
15426 (openp): GCPRO the encoded file name. Don't recompute Lisp
15427 strings unnecessarily.
15428
154292002-03-29 Kim F. Storm <storm@cua.dk>
15430
15431 * fns.c (Flax_plist_put): Doc fix.
15432
154332002-03-28 Miles Bader <miles@gnu.org>
15434
15435 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
15436
154372002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15438
15439 * process.c (set-network-process-options): Add usage.
15440 (make-network-process): Doc fix.
15441
154422002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
15443
15444 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
15445
154462002-03-26 Richard M. Stallman <rms@gnu.org>
15447
15448 * fns.c (Fsubstring_no_properties): New function.
15449 (Flax_plist_get, Flax_plist_put): New functions.
15450 (syms_of_fns): defsubr them.
15451
15452 * xdisp.c (update_menu_bar): Test only update_mode_lines;
15453 don't test or alter w->update_mode_line.
15454
15455 * window.c (Fdisplay_buffer): Doc fix.
15456
154572002-03-24 Richard M. Stallman <rms@gnu.org>
15458
15459 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
15460
154612002-03-24 Gerd Moellmann <gerd@gnu.org>
15462
15463 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
15464 (Fdefmacro): Handle `(declare ...)'.
15465 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
15466 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
15467
154682002-03-24 Jason Rumney <jasonr@gnu.org>
15469
15470 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
15471 (xbm_file_p): Add prototypes.
15472 (xbm_format, xbm_image_p): Sync with xfns.c.
15473 (reflect_byte): New function.
15474 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
15475 (xbm_load_image): Create bitmaps with a depth of 1.
15476 (init_xfns): Enable XBM images.
15477
154782002-03-23 Jason Rumney <jasonr@gnu.org>
15479
15480 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
15481 correctly. Do not pass up_modifier to keyboard buffer.
15482
15483 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
15484
154852002-03-22 Stefan Monnier <monnier@cs.yale.edu>
15486
15487 * Makefile.in (bootstrapclean): New target.
15488 (bootstrap-temacs, bootstrap-doc): Remove.
15489 (bootstrap-emacs): Use a bog-standard `temacs'.
15490 Don't bother to build a DOC file.
15491
15492 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
15493
15494 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
15495 in temacs even if !CANNOT_DUMP.
15496 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
15497
15498 * alloc.c (check_pure_size): Only output a warning.
15499
155002002-03-22 Jason Rumney <jasonr@gnu.org>
15501
15502 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
15503 supported.
15504
15505 * w32term.c (zv_bits): Declare as short, for word alignment.
15506 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
15507 (syms_of_w32term): Define x-use-underline-position-properties.
15508
15509 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
15510 (clear_image_cache): Block input, fix logic, clear matrices in
15511 all frames that share this cache.
15512
155132002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
15514
15515 * emacs.c (main): Update the Copyright year in the blurb printed
15516 by "emacs --version".
15517
15518 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
15519
15520 * xterm.c (XTread_socket): If XK_ISO_Lock and
15521 XK_ISO_Last_Group_Lock are defined, handle keysyms between
15522 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
15523
155242002-03-21 Kim F. Storm <storm@cua.dk>
15525
15526 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
15527 menu-bar bindings in keymap and local-map properties _are_ used.
15528 But try keymap property first in accordance with 2002-01-03 patch.
15529 Added comment describing why this is not always reliable.
15530 (tool_bar_items): Ditto for tool-bar.
15531
155322002-03-21 Jason Rumney <jasonr@gnu.org>
15533
15534 * w32fns.c (x_clear_image_1): Disable color table code.
15535
155362002-03-21 Kim F. Storm <storm@cua.dk>
15537
15538 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
15539 removed the wrong version of the DEFUN macro; fixed it.
15540
15541 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
15542 Fmember rather than Fmemq).
15543 (Fprovide): Check that subfeatures is a list.
15544
15545 * process.c (QCfeature, QCdatagram): Removed variables.
15546 (QCtype, Qdatagram): New variables.
15547 (network_process_featurep): Removed function.
15548 (Fmake_network_process): Removed :feature check.
15549 Use :type 'datagram instead of :datagram t to create a datagram
15550 socket. This allows us to add other connection types (e.g. raw
15551 sockets) later in a consistent manner.
15552 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
15553 supported subfeatures for feature make-network-process.
15554 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
15555 Intern and staticpro QCtype and Qdatagram.
15556 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
15557
15558 * xfns.c: (QCtype): Remove duplicate declaration and
15559 initialization (is now declared in process.c).
15560
15561 * w32fns.c: (QCtype): Remove duplicate declaration and
15562 initialization (is now declared in process.c).
15563
155642002-03-21 Richard M. Stallman <rms@gnu.org>
15565
15566 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
15567 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
15568 when jumping to `fail' to avoid undoing reg changes in the
15569 last iteration of the loop.
15570 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
15571
15572 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
15573 Depend on process.h.
15574
155752002-03-20 Jason Rumney <jasonr@gnu.org>
15576
15577 Most of the following changes are still conditional on HAVE_IMAGES
15578 which is not set by default on Windows.
15579
15580 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
15581
15582 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
15583 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
15584 (four_corners_best, x_clear_image_1, x_clear_image)
15585 (x_alloc_image_color, postprocess_image)
15586 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
15587 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
15588 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
15589
15590 * w32gui.h (struct XImage): Define.
15591
15592 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
15593 extract mouse co-ordinates.
15594
155952002-03-20 Jason Rumney <jasonr@gnu.org>
15596
15597 * w32.c (init_winsock): Dynamically load new server and UDP
15598 socket functions.
15599 (socket_to_fd): New function.
15600 (sys_socket): Use it.
15601 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
15602 (sys_recvfrom, sys_sendto): New wrapper functions.
15603
15604 * process.c (QCfamily, QCfilter): Remove duplicate declaration
15605 and initialization.
15606
15607 * makefile.w32-in (LIBS): Remove $(WSOCK32).
15608
156092002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
15610
15611 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
15612 Don't use "sun" as a variable, it's a predefined constant on Sun
15613 machines.
15614
156152002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15616
15617 * bytecode.c (Fbyte_code): Revert last change.
15618
156192002-03-19 Kim F. Storm <storm@cua.dk>
15620
15621 * makefile.w32-in (LIBS): Add $(WSOCK32).
15622 From David Ponce <dponce@voila.fr>.
15623
156242002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15625
15626 * process.c (wait_reading_process_input): Move variables `pname'
15627 and `pnamelen' down where they are used.
15628
15629 * bytecode.c (Fbyte_code): Discard unused computed value to
15630 prevent gcc warning.
15631
15632 * lisp.h (Fplist_member): Add prototype.
15633
156342002-03-18 Kim F. Storm <storm@cua.dk>
15635
15636 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
15637 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
15638
15639 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
15640 Remove explicit GNU_LINUX settings for datagram support.
15641
156422002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15643
15644 * process.c (Fmake_network_process): Remove unused variable `sa'.
15645 Doc fix. Add usage:.
15646 (set_socket_options): Remove unused variables `optnum' and `opttype'.
15647
156482002-03-17 Richard M. Stallman <rms@gnu.org>
15649
15650 * xdisp.c (cursor_type_changed): New variable.
15651 (redisplay_internal): Redisplay all windows if cursor_type_changed.
15652 Clear it when clearing windows_or_buffers_changed.
15653 (try_cursor_movement, redisplay_window, try_window_id)
15654 (try_window_reusing_current_matrix): Test cursor_type_changed
15655 along with windows_or_buffers_changed.
15656
15657 * window.h (cursor_type_changed): New variable.
15658
15659 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
15660 not update_mode_lines, and always set it to 1.
15661
15662 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
15663 if no frames needed redrawing.
15664
156652002-03-17 Kim F. Storm <storm@cua.dk>
15666
15667 The following changes add support for network server processes,
15668 datagram connections, and local (unix) sockets.
15669
15670 * process.h (struct Lisp_Process): New member log.
15671 Doc fix: Member command used to indicate stopped network process.
15672 Doc fix: Member childp contains plist for network process.
15673 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
15674
15675 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
15676 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
15677 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
15678 New variables.
15679 (NETCONN1_P): New macro.
15680 (DATAGRAM_SOCKETS): New conditional symbol.
15681 (datagram_address): New array.
15682 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
15683 (status_message): Use concat3.
15684 (Fprocess_status): Add `listen' status to doc string. Return `stop'
15685 for a stopped network process.
15686 (Fset_process_buffer): Update contact plist for network process.
15687 (Fset_process_filter): Ditto. Don't enable input for stopped
15688 network processes. Server must listen, even if filter is t.
15689 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
15690 New functions.
15691 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
15692 (Fprocess_contact): Added KEY argument. Handle datagrams.
15693 (list_processes_1): Optionally show only processes with the query
15694 on exit flag set. Dynamically adjust column widths. Omit tty
15695 column if not needed. Report stopped network processes.
15696 Identify server and datagram network processes.
15697 (Flist_processes): New optional arg `query-only'.
15698 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
15699 (conv_lisp_to_sockaddr, set_socket_options)
15700 (network_process_featurep, unwind_request_sigio): New helper functions.
15701 (Fprocess_datagram_address, Fset_process_datagram_address):
15702 (Fset_network_process_options): New lisp functions.
15703 (Fopen_network_stream): Removed. Now defined in simple.el.
15704 (Fmake_network_process): New lisp function. Code is based on previous
15705 Fopen_network_stream, but heavily reworked with new property list based
15706 argument list, support for datagrams, server processes, and local
15707 sockets in addition to old client-only functionality.
15708 (server_accept_connection): New function.
15709 (wait_reading_process_input): Use it to handle incoming connects.
15710 Do not enable input on a new connection if process is stopped.
f63fd14e 15711 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
048addec
JD
15712 (send_process): Handle datagram sockets.
15713 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
15714 network process is indicated by setting command field to t .
15715 (Fprocess_send_eof): No-op if datagram connection.
15716 (Fstatus_notify): Don't read input for a stream server socket or a
15717 stopped network process.
15718 (init_process): Initialize datagram_address array.
15719 (syms_of_process): Intern and staticpro new variables, defsubr new
15720 functions.
15721
157222002-03-16 Jason Rumney <jasonr@gnu.org>
15723
15724 * w32fns.c (w32_to_all_x_charsets): Return correct type in
15725 startup case.
15726
157272002-03-16 Richard M. Stallman <rms@gnu.org>
15728
15729 * xdisp.c (redisplay_internal, redisplay_windows):
15730 Use list_of_error to call internal_condition_case_1.
15731 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
15732 so as to catch all errors with no possibility of debugger redisplay.
15733 (list_of_error): New variable.
15734 (syms_of_xdisp): Init and staticpro it.
15735
15736 * print.c (print_object): Delete `\ ' from printed rep of frame.
15737
157382002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
15739
15740 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
15741 until its implementation is fixed.
15742
157432002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15744
15745 * xfns.c (png_load): Remove unused variable `gamma_str'.
15746
157472002-03-14 Richard M. Stallman <rms@gnu.org>
15748
15749 * xfns.c (x_real_positions): Handle failure in XQueryTree.
15750
157512002-03-14 Miles Bader <miles@gnu.org>
15752
15753 * intervals.c (adjust_for_invis_intang): New function.
15754 (set_point_both): Use `adjust_for_invis_intang' to do most of the
15755 work for dealing with invisible+intangible regions. Do so before
15756 and after both forward and backward movements, to handle both
15757 front-sticky and rear-sticky cases.
15758 * textprop.c (text_property_stickiness): Function moved here from
15759 `editfns.c'.
15760 * intervals.h (text_property_stickiness): New declaration.
15761 * editfns.c (char_property_eq): Function removed.
15762 (text_property_stickiness): Function moved to `textprop.c'.
15763
157642002-03-13 Jason Rumney <jasonr@gnu.org>
15765
15766 * config.in: Add STRFTIME_NO_POSIX2.
15767
15768 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
15769 and %OX when underlying strftime does not.
15770
157712002-03-13 Stefan Monnier <monnier@cs.yale.edu>
15772
15773 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
15774 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
15775 line) to avoid annoying flicker.
15776 (xm_scroll_callback): Get rid of the now unnecessary kludge.
15777 (XTread_socket): Mark it static.
15778
15779 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
15780
157812002-03-13 Kim F. Storm <storm@cua.dk>
15782
15783 * puresize.h (BASE_PURESIZE): Increase to 775000.
15784
157852002-03-12 Juanma Barranquero <lektu@terra.es>
15786
15787 * editfns.c (syms_of_editfns): Fix typo.
15788
157892002-03-12 Gerd Moellmann <gerd@gnu.org>
15790
15791 * xsmfns.c: Include stdio.h because termhooks.h needs it.
15792 Include termopt.h for interrupt_input.
15793
157942002-03-11 Andreas Schwab <schwab@suse.de>
15795
15796 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
15797
157982002-03-11 Gerd Moellmann <gerd@gnu.org>
15799
15800 * xterm.c (note_mouse_movement): Put code for
15801 x_autoselect_window_p in #if 0.
15802
15803 * lread.c (Fload): Don't assume that message_with_string uses the
15804 string it is given like a C string.
15805
158062002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15807
78819ebb 15808 * xterm.h (x_session_check_input, x_session_initialize): Declare.
048addec
JD
15809
15810 * xterm.c: (XTread_socket): Add call to x_session_check_input and
15811 x_session_have_connection.
15812 (x_initialize): Add call to x_session_initialize.
15813
15814 * termhooks.h (enum event_kind): Add save_session_event.
15815
15816 * keyboard.c: Add Emacs event save_session_event.
15817
15818 * emacs.c (main): Add call to syms_of_xsmfns.
15819
78819ebb 15820 * lisp.h (syms_of_xsmfns): Declare extern.
048addec
JD
15821
15822 * config.in: Add HAVE_X_SM.
15823
15824 * Makefile.in (LIBXT): Add -lSM -lICE
15825 if HAVE_X_SM and not USE_X_TOOLKIT.
15826 (XOBJ): New file xsmfns.c added.
15827
15828 * xsmfns.c: New file for X session management.
15829
158302002-03-09 Jason Rumney <jasonr@gnu.org>
15831
15832 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
15833 read-only when setting modified time.
15834
158352002-03-08 Gerd Moellmann <gerd@gnu.org>
15836
15837 * xdisp.c (move_it_vertically_backward): At the end of the function,
15838 when moving forward by lines, treat terminal frames specially.
15839
15840 * keyboard.c (echo_char): Make sure to add a separator between
15841 keys even if echo_dash hasn't been called.
15842
15843 * xdisp.c: Use new string macros.
15844 (update_echo_area): Pass number of bytes to message3 instead of
15845 number of chars.
15846 (set_message_1): Don't access a string's size_byte directly.
15847 (decode_mode_spec_coding): Use number of bytes of eoltype string
15848 instead number of chars.
15849
15850 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
15851
158522002-03-08 Juanma Barranquero <lektu@terra.es>
15853
15854 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
15855 24-bit.
15856
158572002-03-06 Jason Rumney <jasonr@gnu.org>
15858
15859 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
15860
158612002-03-06 Gerd Moellmann <gerd@gnu.org>
15862
15863 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
15864 (cancel_echoing, echo_length, echo_truncate): Changed to
15865 work with new kboard definition.
15866 (echo_now): Use message3_nolog instead of message2_nolog.
15867
15868 * alloc.c (mark_kboards): Mark echo_string.
15869
15870 * keyboard.h (ECHOBUFSIZE): Removed.
15871 (struct kboard): Member echoptr removed, member echobuf renamed
15872 to echo_string.
15873
15874 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
15875 message3 instead of message2 to display the message using STRING's
15876 text properties.
15877
158782002-03-05 Andreas Schwab <schwab@suse.de>
15879
15880 * xdisp.c (hscroll_margin): Change to EMACS_INT.
15881
158822002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
15883
15884 * frame.c (default-frame-alist): Explain that setting it doesn't
15885 affect existing frames.
15886
158872002-03-05 Stefan Monnier <monnier@cs.yale.edu>
15888
15889 * indent.c (skip_invisible): Fix my brain fart.
15890
15891 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
15892
158932002-03-04 Stefan Monnier <monnier@cs.yale.edu>
15894
15895 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
15896 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
15897 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
15898 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
15899 and variables to use EMACS_INT instead of just int.
15900
15901 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
15902
159032002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
15904
15905 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
15906 environment, pass it down with corrected value.
15907
159082002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
15909
15910 * lread.c (read_filtered_event): Do not call start_hourglass
15911 before returning.
15912
159132002-03-04 Juanma Barranquero <lektu@terra.es>
15914
15915 * w32term.c (x_display_and_set_cursor): Fix typo.
15916
159172002-03-03 Richard M. Stallman <rms@gnu.org>
15918
15919 * fileio.c (Fmake_temp_name): Doc fix.
15920
159212002-03-03 Gary Wong <gtw@gnu.org>
15922
15923 * termcap.c [!emacs]: Replace ospeed for building standalone
15924 libtermcap, for binary compatibility.
15925
15926 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
15927
159282002-03-03 Richard M. Stallman <rms@gnu.org>
15929
15930 * xrdb.c (file_p): Rename arg `path' to `filename'.
15931
15932 * abbrev.c (Fexpand_abbrev): Increment plist as use count
15933 only if it is an integer.
15934
15935 * xfns.c (png_load): Set screen_gamma based on f->gamma.
15936 If png_get_sRGB gives an answer, call png_set_gamma
15937 using the default image gamma value.
15938
15939 * lread.c (read1): When reading from a file, default string to
15940 multibyte only if it has some multibyte characters.
15941
15942 * print.c (print_object): Output multibyte chars 128...255
15943 using \x even if ! print_escape_multibyte.
15944
15945 * xdisp.c (display_mode_element): Move the places where
15946 bytepos, charpos, this, and lisp_string are set.
15947 Use lisp_string to set bytepos.
15948
15949 * xdisp.c (redisplay_internal):
15950 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
15951
15952 * xdisp.c (display_mode_element): Merge properties specified with
15953 :propertize onto those that come with the string.
15954
159552002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
15956
15957 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
15958 automatic-hscrolling. Users changed.
15959 <hscroll-margin>: Renamed from automatic-hscroll-margin.
15960 Users changed.
15961 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
15962
159632002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
15964
15965 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
15966
159672002-03-02 Kim F. Storm <storm@cua.dk>
15968
15969 * window.c (Fminibuffer_selected_window): New function.
15970 (syms_of_window): Defsubr it.
15971
159722002-03-01 Kim F. Storm <storm@cua.dk>
15973
15974 * window.h (struct window): New member phys_cursor_width.
15975
15976 * window.c (make_window, replace_window): Init phys_cursor_width.
15977
15978 * xterm.c (x_display_and_set_cursor): Blink box cursor using
15979 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
15980
15981 * w32term.c (x_display_and_set_cursor): Blink box cursor using
15982 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
15983
15984 * lisp.h (GCPRO6): New macro.
15985
15986 * process.c (Fopen_network_stream): Use GCPRO6.
15987
159882002-03-01 Kim F. Storm <storm@cua.dk>
15989
15990 * process.c (Qconnect, Qfailed): New variables.
15991 (syms_of_process): Intern and staticpro them.
15992 (Fprocess_status): Document connect and failed return values.
15993 [NON_BLOCKING_CONNECT]: New conditional.
15994 (connect_wait_mask, num_pending_connects): New variables.
15995 (status_message): Convert Qfailed status.
15996 (Fopen_network_stream): Added support for non-blocking connect.
15997 New optional args: filter, sentinel, non_blocking. Doc updated.
15998 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
15999 (deactivate_process): Handle pending non-blocking connect.
16000 (wait_reading_process_input): Poll for status of non-blocking
16001 connects. Exec sentinel directly when connect succeeds.
16002 (status_notify): Don't read process output if not yet connected.
16003
160042002-02-28 Kim F. Storm <storm@cua.dk>
16005
16006 * window.c: (minibuf_selected_window): Renamed from
16007 Vminibuf_selected_window. Users changed.
16008 (syms_of_window): Staticpro it.
16009
160102002-02-26 Kim F. Storm <storm@cua.dk>
16011
16012 The following changes add a new Vminibuf_selected_window variable
16013 which is similar to Vminibuf_scroll_window, but which is only set
16014 on entry to the minibuffer (from a non-minibuffer window):
16015
16016 * window.c: (Vminibuf_selected_window): New variable.
16017 (struct save_window_data): New member minibuf_selected_window.
16018 (Fset_window_configuration): Restore Vminibuf_selected_window.
16019 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
16020 Set minibuf_scroll_window member to nil if minibuf_level is 0.
16021 (compare_window_configurations): Compare minibuf_selected_window.
16022
16023 * window.h: (Vminibuf_selected_window): Declare extern.
16024
16025 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
16026 entry to minibuffer or on entry from a non-minibuffer window.
16027
16028 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
16029 Vminibuf_selected_window instead of Vminibuf_scroll_window.
16030
16031 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
16032 instead of Vminibuf_scroll_window when deciding in which window
16033 the region should be highlighted. Consequently, the region remains
16034 highlighteded even when a completion buffer is also displayed.
16035
160362002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
16037
16038 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
16039
16040 * xselect.c (Qcompound_text_with_extensions): Renamed from
16041 Qcompound_text_no_extensions.
16042 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
16043
160442002-02-26 Juanma Barranquero <lektu@terra.es>
16045
16046 * w32proc.c (syms_of_ntproc): Doc fix.
16047
160482002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16049
16050 * intervals.h: Include "dispextern.h" unconditionally.
16051
160522002-02-24 Jason Rumney <jasonr@gnu.org>
16053
16054 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
16055 and disp-table.elc.
16056 (lisp): Add emacs-lisp/backquote.elc.
16057
160582002-02-24 Kim F. Storm <storm@cua.dk>
16059
3419757d 16060 * keymap.c (Flookup_key): Fix problem in 2001-12-28 patch:
048addec
JD
16061 The validation of the event type was too strict as it didn't
16062 allow string events; buffer names are used in bindings for
16063 menu-bar-select-buffer (see `menu-bar-update-buffers').
16064
160652002-02-23 Kim F. Storm <storm@cua.dk>
16066
16067 The following changes rework my patch of 2002-02-06 which
16068 added command remapping by entering the commands directly into
16069 the keymaps. Now, command remapping uses an explicit `remap'
16070 prefix in the keymaps, i.e. [remap COMMAND].
16071
16072 * keymap.c (Qremap, remap_command_vector): New variables.
3419757d 16073 (is_command_symbol): Remove function.
048addec
JD
16074 (Fdefine_key): No longer accept a symbol for KEY.
16075 Added validation of [remap COMMAND] argument for KEY.
16076 The DEF is no longer required to be a symbol when remapping a command.
16077 (Fremap_command): New function to remap command through keymaps.
16078 (Flookup_key): Perform command remapping initiated by
16079 Fremap_command directly for speed.
16080 (Fkey_binding): Use Fremap_command for command remapping.
16081 (where_is_internal): Handle new command remapping representation.
16082 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
16083 staticpro them. Defsubr Fremap_command.
16084
16085 * keymap.h (Fremap_command): Declare extern.
16086 (is_command_symbol): Remove extern.
16087
16088 * keyboard.c (command_loop_1): Use Fremap_command for command
16089 remapping; now try command remapping for all symbols.
16090
160912002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
16092
16093 * coding.h (run_pre_post_conversion_on_str): Add prototype.
16094
160952002-02-23 Jason Rumney <jasonr@gnu.org>
16096
16097 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
16098 on the string before encoding it.
16099 (Fw32_get_clipboard_data): Run post-read-conversion on the string
16100 after decoding it.
16101
16102 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
16103
161042002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16105
16106 * w32term.c (enter_timestamp): Remove unused static variable to
16107 prevent warning.
16108
16109 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
16110
161112002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
16112
16113 * w16select.c (Fw16_get_clipboard_data): Fix last change.
16114
16115 * xselect.c (selection_data_to_lisp_data): Fix last change.
16116
161172002-02-22 Jason Rumney <jasonr@gnu.org>
16118
16119 * w32term.h (struct w32_output): New member menu_command_in_progress.
16120
16121 * w32menu.c (menubar_selection_callback): Free the menu and
16122 clear the menu_command_in_progress flag.
16123
16124 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
16125 (menu_free_timer): New variable.
16126 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
16127 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
16128 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
16129 menu command is in progress.
16130 <WM_COMMAND>: Set the menu_command_in_progress flag.
16131 Kill any menu_free_timer that is running.
16132
16133 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
16134 Call ExtTextOutA rather than ExtTextOut.
16135
161362002-02-22 Eli Zaretskii <eliz@gnu.org>
16137
16138 * puresize.h (BASE_PURESIZE): Increase to 755000.
16139
161402002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
16141
16142 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
16143 on the string before encoding it.
16144 (Fw16_get_clipboard_data): Run post-read-conversion on the string
16145 after decoding it.
16146
161472002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
16148
16149 Support for ICCCM Extended Segments in X selections:
16150
16151 * xselect.c <Qcompound_text_no_extensions>: New variable.
16152 (syms_of_xselect): Intern and staticpro it.
16153 (selection_data_to_lisp_data): Run post-read-conversion on decoded
16154 selection text.
16155 (lisp_data_to_selection_data): If next-selection-coding-system is
16156 compound-text-no-extensions, set the type of selection to be
16157 compound-text.
16158
16159 * xterm.h (x_encode_text): Update prototype.
16160
16161 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
16162 callers changed. If SELECTIONP is non-zero, run the
16163 pre-write-conversion function before encoding the selection text.
16164
161652002-02-21 Kim F. Storm <storm@cua.dk>
16166
16167 * frame.c (syms_of_frame): Change mouse-highlight default to t.
16168
16169 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
16170 Correct composing of language-change event.
16171
161722002-02-20 Kim F. Storm <storm@cua.dk>
16173
16174 * keyboard.c (menu_bar_items): Don't include keymap or local-map
16175 bindings at PT when building menu (the menu is not updated often
16176 enough for this to work reliable).
16177 (tool_bar_items): Likewise.
16178 (current_active_maps): Removed unused (and buggy) function.
16179
161802002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16181
16182 * xfns.c (gif_load): Use correct width and height for GIF images.
16183
161842002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
16185
16186 * floatfns.c (Fatan): Accept an optional second arg and call
16187 atan2 if passed 2 args.
16188
161892002-02-18 Jason Rumney <jasonr@gnu.org>
16190
16191 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
16192
161932002-02-17 Jason Rumney <jasonr@gnu.org>
16194
16195 * w32term.c (x_autoselect_window_p): New variable.
16196 (syms_of_w32term): DEFVAR_BOOL and initialize it.
16197 (note_mouse_movement): Use it.
16198
16199 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
16200
16201 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
16202
16203 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
16204 New variables.
16205 (syms_of_w32fns): Intern and staticpro them.
16206 (x_frame_parms) <"fullscreen">: New parameter.
16207 (x_fullscreen_move, x_set_fullscreen): New functions.
16208 (x_set_frame_parameters): Support Qfullscreen.
16209 (x_real_positions): Save x/y_pixels_diff frame params.
16210 (x_figure_window_size): Support full-screen frames.
16211 (Fx_create_frame): Default the fullscreen parameter.
16212
16213 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
16214 (x_fullscreen_adjust): New functions.
16215 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
16216 fullscreen. Call x_check_fullscreen_move, and set the
16217 want_fullscreen member of output_data.w32
16218 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
16219
16220 * w32term.h: New enum for FULLSCREEN_* constants.
16221 (struct w32_output): New members want_fullscreen, x_pixels_diff,
16222 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
16223 (x-fullscreen-adjust): New prototype.
16224
162252002-02-17 Kim F. Storm <storm@cua.dk>
16226
16227 * frame.c: (Vmouse_highlight): New variable.
16228 (syms_of_frame): DEFVAR_LISP it.
16229
16230 * frame.h: (Vmouse_highlight): Declare extern.
8a8e19a3 16231
048addec 16232 * xterm.h (struct x_display_info): Add mouse_face_hidden.
8a8e19a3 16233
048addec
JD
16234 * xterm.c (disable_mouse_highlight): Removed variable.
16235 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
16236 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
16237 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
16238 and on after keyboard input.
16239 (x_term_init): Initialize mouse_face_hidden.
8a8e19a3 16240
048addec 16241 * msdos.h (struct display_info): Add mouse_face_hidden.
8a8e19a3 16242
048addec
JD
16243 * msdos.c (disable_mouse_highlight): Removed variable.
16244 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
16245 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
16246 (internal_terminal_init): Initialize mouse_face_hidden.
16247 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
16248 and on after keyboard input.
4f1b1854 16249
048addec 16250 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
4f1b1854 16251
048addec
JD
16252 * w32term.c (disable_mouse_highlight): Removed variable.
16253 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
16254 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
16255 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
16256 and on after keyboard input.
16257 (w32_initialize_display_info): Initialize mouse_face_hidden.
4f1b1854 16258
048addec 162592002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
4f1b1854 16260
048addec
JD
16261 * msdos.c (last_mouse_window): New variable.
16262 (dos_rawgetc): Fix last change--if the mouse is in the same window
16263 as recorded in last_mouse_window, don't select this window.
5cb6905d 16264
048addec 16265 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
5cb6905d 16266
048addec
JD
16267 * msdos.c (x_autoselect_window_p): New variable.
16268 (syms_of_msdos): Defvar it.
16269 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
16270 which the last mouse movement occured, unless it is already selected.
437dfb9f 16271
048addec
JD
16272 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
16273 New variables.
16274 (syms_of_xdisp): DEVFAR them.
16275 (hscroll_window_tree): Use automatic_hscroll_margin and
16276 Vautomatic_hscroll_step to compute the amount of window scrolling.
437dfb9f 16277
048addec 162782002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9f696a00 16279
048addec
JD
16280 * xterm.c (x-autoselect-window): New variable.
16281 (note_mouse_movement): Use it.
9f696a00 16282
048addec 16283 * keyboard.c: Do not include "systime.h" twice.
d57966d7 16284
048addec 162852002-02-15 Andreas Schwab <schwab@suse.de>
d57966d7 16286
bfa02563 16287 * puresize.h (PURESIZE_RATIO): Increase to 9/5.
d57966d7 16288
048addec 16289 * alloc.c (NSTATICS): Increase to 1280.
74779f52 16290
048addec 162912002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
74779f52 16292
048addec 16293 * alloc.c (NSTATICS): Bump to 1026.
a474d59c 16294
048addec
JD
16295 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
16296 (Vx_super_keysym): New variables.
16297 (syms_of_xterm): DEFVAR_LISP them.
16298 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
16299 variables to determine which keys to use for the various modifiers.
a474d59c 16300
048addec 163012002-02-13 Kim F. Storm <storm@cua.dk>
fbb70ad9 16302
048addec
JD
16303 * window.c: (Vmode_line_in_non_selected_windows): Removed.
16304 (mode_line_in_non_selected_windows): New variable.
16305 (syms_of_window): DEFVAR_BOOL it.
fbb70ad9 16306
048addec
JD
16307 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
16308 Use mode_line_in_non_selected_windows.
16309 (mode_line_in_non_selected_windows): Declare extern.
16310 (Vmode_line_in_non_selected_windows): Removed extern.
2d10309f 16311
048addec 163122002-02-13 Richard M. Stallman <rms@gnu.org>
2d10309f 16313
048addec
JD
16314 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
16315 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
16316 (Fclear_this_command_keys): Doc fixes.
2d10309f 16317
048addec
JD
16318 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
16319 (update_face_from_frame_parameter): Increment face_change_count
16320 and windows_or_buffers_changed to force redisplay using changed faces.
7f2cddf3 16321
048addec
JD
16322 * xdisp.c (QCpropertize): New variable.
16323 (mode_line_proptrans_alist): New variable.
16324 (display_mode_element): New arg PROPS; all calls changed.
16325 Implement this, for strings.
16326 Handle literal output of strings by sharing the
16327 main-line code for strings, using local var `literal'.
16328 Handle :propertize feature.
16329 (syms_of_xdisp): Initialze and staticpro QCpropertize and
16330 mode_line_proptrans_alist.
0b1e6b54 16331
048addec 163322002-02-11 Kim F. Storm <storm@cua.dk>
7f2cddf3 16333
048addec
JD
16334 * window.c: (Vmode_line_in_non_selected_windows): New variable.
16335 (syms_of_window): DEFVAR_LISP it.
7f2cddf3 16336
048addec
JD
16337 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
16338 (CURRENT_MODE_LINE_FACE_ID): Use it.
16339 (Vmode_line_in_non_selected_windows): Declare extern.
e17144de 16340
048addec
JD
16341 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
16342 to get mode line face.
e17144de 16343
048addec 163442002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 16345
048addec
JD
16346 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
16347 variables; cus-start.el doesn't need them anymore.
44368f8f 16348
048addec 163492002-02-09 Kim F. Storm <storm@cua.dk>
f884b6f4 16350
048addec
JD
16351 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
16352 reduction. This fixes a display problem where stray newlines were
16353 inserted in the window (corrected by C-l). Clarified code (IMHO).
6637c996 16354
048addec 163552002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 16356
048addec 16357 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
6637c996 16358
048addec 16359 * xdisp.c (display_mode_lines): Fix last change.
453c5510 16360
048addec 163612002-02-09 Jason Rumney <jasonr@gnu.org>
453c5510 16362
048addec
JD
16363 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
16364 match each other.
16365 (w32_load_system_font): Prevent Cleartype fonts from loading.
16366 (Fx_show_tip): Ensure tip frames are above other topmost windows.
d1d070e3 16367
048addec 163682002-02-09 Kim F. Storm <storm@cua.dk>
d1d070e3 16369
048addec
JD
16370 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
16371 (CURRENT_MODE_LINE_HEIGHT): Use it.
16372 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 16373
048addec
JD
16374 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
16375 (pos_visible_p, handle_face_prop): Likewise.
16376 (display_mode_lines): Likewise, but for the real selected window.
16377 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 16378
048addec
JD
16379 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
16380 in non-selected windows.
16381 (realize_basic_faces): Realize it.
16382 (syms_of_term): Intern and staticpro it.
308dd672 16383
048addec 163842002-02-08 Kim F. Storm <storm@cua.dk>
edde72f6 16385
048addec
JD
16386 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
16387 Changed mail addresses to emacs-devel@gnu.org.
308dd672 16388
048addec 163892002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
3c1e6b46 16390
048addec
JD
16391 * fileio.c (Fsubstitute_in_file_name): If the file name includes
16392 ~user, and there's no such user, don't discard everything before ~user.
03950b5b 16393
048addec 16394 * floatfns.c (Fround): Doc fix.
3c1e6b46 16395
048addec 163962002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c1e11810 16397
048addec 16398 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
c1e11810 16399
048addec 164002002-02-07 Stefan Monnier <monnier@cs.yale.edu>
1996baee 16401
048addec 16402 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
1996baee 16403
048addec 164042002-02-07 Kim F. Storm <storm@cua.dk>
0065bb74 16405
048addec
JD
16406 * keymap.c (where_is_internal): Only check whether definition is
16407 remapped if it fulfills is_command_symbol.
0065bb74 16408
048addec 164092002-02-07 Andreas Schwab <schwab@suse.de>
0065bb74 16410
048addec 16411 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
b5cb6072 16412
048addec 16413 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
b5cb6072 16414
048addec 164152002-02-06 Kim F. Storm <storm@cua.dk>
15fff01d 16416
048addec
JD
16417 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
16418 defining command remapping. Doc updated.
16419 (Flookup_key): Remap command through keymap if KEY is a symbol.
16420 (is_command_symbol): New function.
16421 (Fkey_binding): Use it. New optional argument NO-REMAP.
16422 Doc updated. Callers changed. Perform command remapping via
16423 recursive call unless that arg is non-nil.
16424 (where_is_internal): New argument no_remap. Callers changed.
16425 Call recursively to find original key bindings for a remapped
16426 comand unless that arg is non-nil.
16427 (Fwhere_is_internal): New optional argument NO-REMAP.
16428 Doc updated. Callers changed. Pass arg to where_is_internal.
0065bb74 16429
048addec 16430 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
3419757d 16431 (is_command_symbol): Add prototype.
0d8466cc 16432
048addec
JD
16433 * keyboard.c (Vthis_original_command): New variable.
16434 (syms_of_keyboard): DEFVAR_LISP it.
16435 (command_loop_1): Set it, and perform command remapping.
15fff01d 16436
048addec 164372002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2fae9111 16438
048addec 16439 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
2d6c1fc0 16440
048addec 164412002-02-06 Jason Rumney <jasonr@gnu.org>
07025a55 16442
048addec 16443 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
07025a55 16444
048addec 164452002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
07025a55 16446
048addec 16447 * charset.c (get_charset_id): Use if-else instead of ?:.
3a232704 16448
048addec 164492002-02-06 Richard M. Stallman <rms@gnu.org>
539e92ad 16450
048addec 16451 * filelock.c (S_ISLNK): Define if not defined.
3a232704 16452
048addec 164532002-02-03 Richard M. Stallman <rms@gnu.org>
0cb8bb48 16454
048addec 16455 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
539e92ad 16456
048addec
JD
16457 * lread.c (read1): Redesign strategy for force_multibyte and
16458 force_singlebyte. Now is_multibyte records whether read_buffer
16459 is multibyte. Encountering any multibyte character makes it so.
4e02881b 16460
048addec 164612002-02-02 Stefan Monnier <monnier@cs.yale.edu>
4e02881b 16462
048addec
JD
16463 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
16464 with the same sequence, map that sequence to f10 rather than f0.
1ab964d7 16465
048addec 164662002-02-03 Andreas Schwab <schwab@suse.de>
1ab964d7 16467
048addec
JD
16468 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
16469 latter never being defined on GNU/Linux.
749f499f 16470
048addec 164712002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
749f499f 16472
048addec
JD
16473 * xfaces.c (realize_default_face): Don't set the weight and slant of
16474 the default face to Qnormal, unless these attributes are unspecified.
b5d9aaba 16475
048addec 164762002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3a232704 16477
048addec
JD
16478 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
16479 Call cancel_hourglass unconditionally.
d0fd26dd 16480
048addec
JD
16481 * eval.c (Fsignal): Remove duplicated declaration of
16482 the variable `display_hourglass_p'.
b4c45162 16483
048addec 164842002-01-31 Richard M. Stallman <rms@gnu.org>
d0fd26dd 16485
048addec 16486 * editfns.c (region_limit): Nicer error message.
c95eaa61 16487
048addec
JD
16488 * coding.c (decode_composition_emacs_mule):
16489 Give up if NCOMPONENT gets too large to index `component'.
c95eaa61 16490
048addec
JD
16491 * callint.c (check_mark): New arg to specify clearer error message.
16492 Callers changed.
c95eaa61 16493
048addec 164942002-01-27 Richard M. Stallman <rms@gnu.org>
c95eaa61 16495
048addec 16496 * minibuf.c (Fcompleting_read): Doc fix.
c95eaa61 16497
048addec 164982002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c95eaa61 16499
048addec
JD
16500 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
16501 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
16502 Fix doc-strings.
c95eaa61 16503
048addec 165042002-01-26 Richard M. Stallman <rms@gnu.org>
c95eaa61 16505
048addec 16506 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
c95eaa61 16507
048addec
JD
16508 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
16509 and scroll_up_aggressively.
c95eaa61 16510
048addec 165112002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
31877e0a 16512
048addec 16513 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
31877e0a 16514
048addec 165152002-01-25 Stefan Monnier <monnier@cs.yale.edu>
e2c3786a 16516
048addec
JD
16517 * textprop.c (Fnext_property_change, Fnext_single_property_change)
16518 (Fprevious_property_change, Fprevious_single_property_change):
16519 Stay within the narrowed-buffer boundaries.
e2c3786a 16520
048addec 165212002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
c513fc03 16522
048addec
JD
16523 * term.c (Ftty_display_color_cells): New function.
16524 (syms_of_term): Defsubr it.
16525 (Ftty_display_color_cells, Ftty_display_color_p): Change the
16526 argument name to DISPLAY. Doc fix.
bf794306 16527
048addec
JD
16528 * dispextern.h: Add prototype for set_tty_color_mode and
16529 tty_setup_colors.
bf794306 16530
048addec 165312002-01-24 Jason Rumney <jasonr@gnu.org>
bf794306 16532
048addec
JD
16533 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
16534 If region left to draw is not what was expected, mark the frame as
16535 garbaged.
62582985 16536
048addec
JD
16537 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
16538 Combine the regions returned by BeginPaint and GetUpdateRect.
c513fc03 16539
048addec 165402002-01-23 Jason Rumney <jasonr@gnu.org>
3509a04c 16541
048addec
JD
16542 * w32term.c (x_update_window_begin): Only hide caret if
16543 w32_use_visible_system_caret is set.
16544 (x_update_window_end): Only show caret if
16545 w32_use_visible_system_caret is set.
16546 (syms_of_w32term): Handle SystemParametersInfo call failing.
3509a04c 16547
048addec 16548 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
3509a04c 16549
048addec 165502002-01-22 Richard M. Stallman <rms@gnu.org>
3509a04c 16551
048addec
JD
16552 * unexelf.c (unexec): Define n so as to cause compilation error
16553 for the code where people have often written n instead of nn.
1e9a6186 16554
048addec 16555 * .gdbinit (hookpost-run): Defined.
1e9a6186 16556
048addec 165572002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e4e34e31 16558
048addec 16559 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
e4e34e31 16560
048addec 165612002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4521d1fc 16562
048addec
JD
16563 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
16564 if fullscreen is being set.
7c75be36 16565
048addec 165662002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4521d1fc 16567
048addec
JD
16568 * minibuf.c (Fminibuffer_contents)
16569 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
16570 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
4521d1fc 16571
048addec 165722002-01-21 Richard M. Stallman <rms@gnu.org>
4521d1fc 16573
048addec 16574 * window.c (check_frame_size): Fix minimum height calculation.
93dec019 16575
048addec 165762002-01-20 Ken Raeburn <raeburn@gnu.org>
93dec019 16577
048addec
JD
16578 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
16579 height before comparison.
16580 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
905cc05a 16581
048addec 165822002-01-20 Jason Rumney <jasonr@gnu.org>
2ed06289 16583
048addec
JD
16584 * w32term.c (w32_system_caret_width): Remove.
16585 (w32_use_visible_system_caret): New user flag.
16586 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
16587 Windows reports a screen reader running.
16588 (x_update_window_begin): Hide the system caret.
16589 (x_update_window_end): Show the system caret.
16590 (x_display_and_set_cursor): Don't draw a cursor when
16591 w32_use_visible_system_caret is set. Do not adjust width.
0e79d667 16592
048addec
JD
16593 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
16594 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
16595 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
16596 the user requests it. Use system default width when creating.
16597 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
0e79d667 16598
048addec
JD
16599 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
16600 New window messages.
905cc05a 16601
048addec 166022002-01-20 Richard M. Stallman <rms@gnu.org>
82a7ab23 16603
048addec 16604 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
d75bec6a 16605
048addec 166062002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
52dcb476 16607
048addec 16608 * doprnt.c (doprnt1): Fix typos in error call.
82a7ab23 16609
048addec 166102002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
82a7ab23 16611
048addec 16612 * unexelf.c (unexec) [__sgi]: Support the .got sections.
82a7ab23 16613
048addec 166142002-01-20 Jason Rumney <jasonr@gnu.org>
4d0fa4f3 16615
048addec
JD
16616 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
16617 that Windows returns. If a double check fails, try to guess how
16618 ExtTextOut is going to act.
4d0fa4f3 16619
048addec
JD
16620 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
16621 in place of stricmp.
16622 (w32_list_synthesized_fonts): Removed.
16623 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
16624 (struct enumfont_t): New element; list.
16625 (enum_font_cb2): List all style and charset variations of a font.
16626 (Fw32_select_font): New optional argument; include_proportional.
16627 Exclude vertical fonts. Exclude proportional fonts unless
16628 include_proportional is non-nil.
16629 (w32_enable_synthesized_fonts): Change to a boolean.
16630 (Fw32_send_sys_command): Doc fix.
493faf20 16631
048addec 166322002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
493faf20 16633
048addec
JD
16634 * dispnew.c (update_frame): Move the variable `tem' to the block
16635 where it is used.
4971e491 16636
048addec 166372002-01-19 Jason Rumney <jasonr@gnu.org>
4971e491 16638
048addec
JD
16639 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
16640 call to face-set-after-frame-default.
4971e491 16641
048addec 166422002-01-18 Richard M. Stallman <rms@gnu.org>
d911a0fa 16643
048addec
JD
16644 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
16645 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
d911a0fa 16646
048addec 166472002-01-17 Richard M. Stallman <rms@gnu.org>
d911a0fa 16648
048addec
JD
16649 * window.c (enlarge_window): When exceeding size of parent,
16650 directly delete all the siblings instead of trying to resize it.
201c831a 16651
048addec 166522002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
201c831a 16653
048addec 16654 * term.c (set_tty_color_mode): Remove unused variable `tem'.
201c831a 16655
048addec 166562002-01-16 Henrik Enberg <henrik@enberg.org>
34e39c95 16657
048addec 16658 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
34e39c95 16659
048addec 166602002-01-16 Kim F. Storm <storm@cua.dk>
d77fbc16 16661
048addec
JD
16662 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
16663 is invisible. This can happen if cursor is on top line of a
16664 window, and we switch to a buffer with a header line.
d77fbc16 16665
048addec 16666 * w32term.c (x_erase_phys_cursor): Ditto.
61e3b944 16667
048addec 166682002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
61e3b944 16669
048addec
JD
16670 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
16671 `dont_resize' only when used.
61e3b944 16672
048addec 16673 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
70da46c3 16674
048addec 166752002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
70da46c3 16676
048addec
JD
16677 * xdisp.c (display_mode_element): When computing charpos, depend
16678 on multibyteness of elt, not the text in field.
8af01033 16679
048addec 166802002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8af01033 16681
048addec
JD
16682 * buffer.c (Fkill_all_local_variables):
16683 Increment `update_mode_lines' only once.
7363986a 16684
048addec 166852002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7363986a 16686
048addec
JD
16687 * lisp.h (adjust_after_replace_noundo)
16688 (Fupdate_coding_systems_internal): Add prototypes.
d9e6c4b1 16689
048addec 16690 * sound.c (Fplay_sound): Initialize header_size also for :data case.
d20fc48a 16691
048addec 166922002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
d9e6c4b1 16693
048addec
JD
16694 Support for the --color command-line argument and tty-color-mode
16695 frame parameter:
f1a85b89 16696
048addec
JD
16697 * term.c (tty_default_color_capabilities, tty_setup_colors)
16698 (set_tty_color_mode): New functions.
16699 (term_init): Call tty_default_color_capabilities.
16700 (Qtty_color_mode_alist): New variable.
16701 (syms_of_term): Intern and staticpro it.
f1a85b89 16702
048addec
JD
16703 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
16704 frames.
16705 (do_switch_frame): For termcap frames, switch the tty
16706 color mode as specified by the frame's parameters.
16707 (Qtty_color_mode): New variable.
16708 (syms_of_frame): Intern and staticpro it.
3a62677f 16709
048addec
JD
16710 * emacs.c (USAGE2): Add the --color option.
16711 (standard_args): Ditto.
72244db2 16712
048addec
JD
167132002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16714
16715 * xterm.h (struct x_output): New members want_fullscreen,
16716 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
16717 y_pixels_outer_diff.
16718 New enum for FULLSCREEN_* constants.
16719 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
16720 is NULL.
16721 (x_fullscreen_adjust): Add prototype.
3a62677f 16722
048addec
JD
16723 * emacs.c (USAGE2): Add the new full-screen arguments.
16724 (standard_args): Ditto.
3a62677f 16725
048addec
JD
16726 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
16727 New variables.
16728 (syms_of_xfns): Intern and staticpro them.
16729 (x_frame_parms) <"fullscreen">: New parameter.
16730 (x_fullscreen_move, x_set_fullscreen): New functions.
16731 (x_set_frame_parameters): Support for Qfullscreen.
16732 (x_real_positions): More accurate computation of the frame position.
16733 (x_figure_window_size): Support full-screen frames.
16734 (Fx_create_frame): Default the fullscreen parameter.
3a62677f 16735
048addec
JD
16736 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
16737 (XTread_socket) <Expose>: Call x_check_fullscreen.
16738 <ConfigureNotify>: Don't resize to fullscreen.
16739 Call x_check_fullscreen_move, and set the want_fullscreen member of
16740 output_data.x.
3a62677f 16741
048addec 167422002-01-13 Jason Rumney <jasonr@gnu.org>
9d113d9d 16743
048addec
JD
16744 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
16745 for mice with more than 3 buttons.
b8523839 16746
048addec
JD
16747 * w32term.c (parse_button): New parameter xbutton. Callers changed.
16748 (w32_read_socket): Handle new "XBUTTON" messages.
9464dea4 16749
048addec
JD
16750 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
16751 (syms_of_w32fns): DEFVAR_BOOL it.
16752 (w32_wnd_proc): Handle new "XBUTTON" messages.
9d113d9d 16753
048addec 167542002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
70ec1377 16755
048addec 16756 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
70ec1377 16757
048addec 167582002-01-13 Andreas Schwab <schwab@suse.de>
92f7dd37 16759
048addec 16760 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
92f7dd37 16761
048addec 167622002-01-12 Andreas Schwab <schwab@suse.de>
c93674bb 16763
048addec
JD
16764 * .gdbinit (xbuffer): Remove address operator since data is now a
16765 pointer.
c93674bb 16766
048addec 167672002-01-11 Richard M. Stallman <rms@gnu.org>
59b59892 16768
048addec 16769 * insdel.c (adjust_after_replace_noundo): New function.
59b59892 16770
048addec 16771 * coding.c (code_convert_region): Don't copy old text if undo disabled.
c6ea2775 16772
048addec 167732002-01-09 Jason Rumney <jasonr@gnu.org>
c6ea2775 16774
048addec
JD
16775 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
16776 when checking for multiple frames.
91175673 16777
048addec 167782002-01-08 Richard M. Stallman <rms@gnu.org>
91175673 16779
048addec
JD
16780 * window.c (delete_window): Rewrite the code for changing the
16781 selected window to handle the case where WINDOW is not a leaf.
91175673 16782
048addec 167832002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
e0fead5d 16784
048addec
JD
16785 * process.c (send_process): Set src_multibyte to 1 after the call
16786 top setup_coding_system, not before the call.
e0fead5d 16787
048addec 167882002-01-07 Jason Rumney <jasonr@gnu.org>
e0fead5d 16789
048addec
JD
16790 * xmenu.c (set_frame_menubar, xmenu_show):
16791 (xdialog_show): Initialize wv->help to Qnil.
c186cdb3 16792
048addec
JD
16793 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
16794 (w32_dialog_show): Initialize wv->help to Qnil.
c186cdb3 16795
048addec 167962002-01-06 Jason Rumney <jasonr@gnu.org>
c186cdb3 16797
048addec 16798 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
c186cdb3 16799
048addec 16800 * w32menu.c (w32_menu_display_help): Revert last change.
58cfce98 16801
048addec 16802 * xmenu.c (menu_highlight_callback): Revert last change.
58cfce98 16803
048addec 168042002-01-06 Andreas Schwab <schwab@suse.de>
62854fe2 16805
048addec
JD
16806 * insdel.c (make_gap_larger): Make sure buffer size does not
16807 overflow range of int.
62854fe2 16808
048addec 168092002-01-05 Jason Rumney <jasonr@gnu.org>
656f46bb 16810
048addec
JD
16811 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
16812 OVERLAPS_P.
656f46bb 16813
048addec 16814 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
656f46bb 16815
048addec
JD
16816 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
16817 to the left or to the right of the pointer, put it against
16818 the left screen edge.
16819 (x_frame_parms): Add missing braces around initializer.
036e218d 16820
048addec
JD
16821 * w32term.c (x_setup_relief_colors): Don't compute an image's
16822 background color if it doesn't have a Pixmap.
16823 (notice_overwritten_cursor): Don't depend on
16824 output_cursor and updated_area. Compare pixel coordinates with
16825 window's cursor pixel coordinates.
16826 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
16827 Call notice_overwritten_cursor with new arg list.
16828 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
16829 unconditionally.
16830 (x_draw_image_relief): Use predefined macro instead of
16831 constant when the value of `tool_bar_button_relief' is negative.
036e218d 16832
048addec 16833 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
7ddb2c16 16834
048addec 168352002-01-04 Richard M. Stallman <rms@gnu.org>
7ddb2c16 16836
048addec 16837 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
ace9b298 16838
048addec 168392002-01-03 Richard M. Stallman <rms@gnu.org>
90647b07 16840
048addec
JD
16841 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
16842 (Fkey_binding): Try the `keymap' property map first.
16843 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
16844 minor mode bindings.
90647b07 16845
048addec 168462002-01-03 Kim F. Storm <storm@cua.dk>
ace9b298 16847
3419757d 16848 * keyboard.c (read_key_sequence): Fix cast of submaps arg to bcopy.
ace9b298 16849
048addec 168502002-01-02 Richard M. Stallman <rms@gnu.org>
ace9b298 16851
048addec
JD
16852 * keyboard.c (read_key_sequence): Handle the keymap property
16853 before minor mode maps.
9fbc32aa 16854
048addec
JD
16855 * editfns.c (Fformat): Update thissize from field_width
16856 based on the actual width, in the string case.
036e218d 16857
048addec 168582002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fbc32aa 16859
048addec
JD
16860 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
16861 when used as truth value to prevent gcc warnings.
9fbc32aa 16862
048addec
JD
16863 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
16864 * w32proc.c: Include <config.h>.
9fbc32aa 16865
048addec 168662002-01-01 Andreas Schwab <schwab@suse.de>
9fbc32aa 16867
048addec
JD
16868 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
16869 not EMACS_INT, to make them compatible with DEFVAR_INT.
16870 * lisp.h (max_specpdl_size): Adjust declaration.
9fbc32aa 16871
048addec 168722002-01-01 Richard M. Stallman <rms@gnu.org>
9fbc32aa 16873
048addec
JD
16874 * print.c (print_object): Test print_escape_nonascii only for
16875 unibyte strings.
16876 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
16877 when outputting to a multibyte buffer.
9fbc32aa 16878
048addec 168792001-12-29 Richard M. Stallman <rms@gnu.org>
9fbc32aa 16880
048addec
JD
16881 * print.c (print_object): In multibyte string, use hex escapes.
16882 Use octal only for unibyte strings.
16883 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
0142178a 16884
048addec
JD
16885 * lread.c (read_escape): New arg BYTEREP for reporting whether
16886 escape forces unibyte or multibyte.
16887 (read1): When reading a string, take note of that info.
0142178a 16888
048addec 168892001-12-29 Ken Raeburn <raeburn@gnu.org>
d4824a5d 16890
048addec
JD
16891 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
16892 comparison to test lisp value returned by Fget.
d4824a5d 16893
048addec 168942001-12-29 Richard M. Stallman <rms@gnu.org>
b1356234 16895
048addec 16896 * lisp.h (max_specpdl_size): Add declaration.
b1356234 16897
048addec 16898 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
3ce081f5 16899
048addec
JD
16900 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
16901 Handle modifier bits. Correct typo in error message.
99e380ee 16902
048addec 169032001-12-28 Richard M. Stallman <rms@gnu.org>
3ce081f5 16904
048addec
JD
16905 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
16906 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
16907 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
16908 Update calls to Fdefine_abbrev.
16909 (write_abbrev): Update for changed data format.
16910 Don't list "system" abbrevs.
16911 (Fexpand_abbrev): Update use count with new data format.
16912 (describe_abbrev): Update for changed data format.
16913 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
66458f32 16914
048addec 16915 * config.in (HAVE_MBSINIT): Add #undef.
66458f32 16916
048addec 16917 * strftime.c (mbsinit): Define as no-op if not available.
66458f32 16918
048addec
JD
16919 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
16920 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
59a86c99 16921
048addec
JD
16922 * keymap.c (Flookup_key): Error message if key has wrong data type.
16923 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
16924 (exclude_key): New variable.
59a86c99 16925
048addec 169262001-12-28 Gerd Moellmann <gerd@gnu.org>
eb77a5f4 16927
048addec
JD
16928 * xterm.c (x_setup_relief_colors): Don't compute an image's
16929 background color if it doesn't have a Pixmap.
eb77a5f4 16930
048addec
JD
16931 * xterm.c (notice_overwritten_cursor): Don't depend on
16932 output_cursor and updated_area. Compare pixel coordinates with
16933 window's cursor pixel coordinates.
16934 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
16935 Call notice_overwritten_cursor with new arg list.
16936 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
16937 unconditionally.
eb77a5f4 16938
048addec
JD
16939 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
16940 height of the cursor line to the amount to scroll.
eb77a5f4 16941
048addec 169422001-12-27 Richard M. Stallman <rms@gnu.org>
bb313871 16943
048addec
JD
16944 * intervals.c (set_point_both): The position after an invisible,
16945 intangible character is not an acceptable stopping point.
bb313871 16946
048addec 169472001-12-27 Ken Raeburn <raeburn@gnu.org>
55b43a63 16948
048addec
JD
16949 * window.c (enlarge_window): In new preserve_before code, convert
16950 CURBEG from lisp object to integer before doing arithmetic.
6052529b 16951
048addec 169522001-12-27 Richard M. Stallman <rms@gnu.org>
3ce081f5 16953
048addec 16954 * bytecode.c (Fbyte_code): Undo previous change.
3ce081f5 16955
048addec 169562001-12-26 Kim F. Storm <storm@cua.dk>
3ce081f5 16957
048addec
JD
16958 * keyboard.c (record_char): Ignore duplicate help-echo events only
16959 separated by mouse-movement. When tracking mouse, only record
16960 first and last mouse-movement event in same window.
16961 Don't record mouse-movement events in keyboard macros.
3ce081f5 16962
048addec 169632001-12-25 Richard M. Stallman <rms@gnu.org>
55b43a63 16964
048addec
JD
16965 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
16966 (Fenlarge_window): New arg PRESERVE_BEFORE.
111ed14e 16967
048addec
JD
16968 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
16969 instead of Fstring_as_unibyte.
9fabb2f5 16970
048addec 169712001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fabb2f5 16972
048addec 16973 The following changes remove mocklisp support:
9fabb2f5 16974
048addec 16975 * mocklisp.h, mocklisp.c: Files removed.
111ed14e 16976
048addec
JD
16977 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
16978 `Qmocklisp' and `Qmocklisp_arguments'.
16979 Remove prototype of syms_of_mocklisp.
2fa0eedf 16980
048addec 16981 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
d1420435 16982
048addec
JD
16983 * callint.c: Do not include mocklisp.h.
16984 (Fcall_interactively): Do not test for mocklisp case.
2fa0eedf 16985
048addec
JD
16986 * eval.c: Remove variables `Qmocklisp_arguments',
16987 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
16988 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
16989 Do not test for mocklisp case.
16990 (Fwhile): Remove unused variable `tem'.
16991 (syms_of_eval): Remove variable `moclisp-arguments'.
ebcbef4e 16992
048addec 16993 * data.c (wrong_type_argument): Remove mocklisp case.
5c131048 16994
048addec 16995 * doc.c (Fdocumentation): Remove mocklisp case.
5c131048 16996
048addec 16997 * emacs.c (main): Do not call syms_of_mocklisp.
5c131048 16998
048addec 169992001-12-21 Richard M. Stallman <rms@gnu.org>
96d276c3 17000
048addec
JD
17001 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
17002 to the left or to the right of the pointer, put it against
17003 the left screen edge.
6108b49c 17004
048addec 170052001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
96d276c3 17006
048addec
JD
17007 * Makefile.in (distclean): Remove .gdbinit if we are building
17008 outside the source tree.
5eea19a4 17009
048addec 170102001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5eea19a4 17011
048addec 17012 * w32.c (emacs_root_dir): New function.
5eea19a4 17013
048addec 17014 * msdos.c (emacs_root_dir): New function.
5eea19a4 17015
048addec
JD
17016 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
17017 of the current drive as the fallback for default_directory.
438e57dd 17018
048addec
JD
17019 * dired.c (file_name_completion): Run the elements of
17020 completion-ignored-extensions through ENCODE_FILE.
438e57dd 17021
048addec
JD
17022 * lisp.h (scmp): Remove prototype, since it's now a static
17023 function private to dired.c.
c88e5347 17024
048addec 170252001-12-18 Richard M. Stallman <rms@gnu.org>
c88e5347 17026
048addec
JD
17027 * dired.c (scmp): Function moved from minibuf.c.
17028 Delete multibyte handling--used only on encoded strings.
59ce1461 17029
048addec 17030 * minibuf.c (scmp): Function moved to dired.c.
59ce1461 17031
048addec 17032 * fns.c (merge): Add QUIT call.
59ce1461 17033
048addec 170342001-12-18 Dave Love <fx@gnu.org>
8727d588 17035
048addec
JD
17036 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
17037 language/georgian.el.
8727d588 17038
048addec 170392001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
cc63037e 17040
048addec
JD
17041 * Makefile.in (lisp, shortlisp): Synchronize with changes to
17042 lisp/Makefile.in:DONTCOMPILE.
cc63037e 17043
048addec 170442001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
cc63037e 17045
048addec
JD
17046 * xdisp.c (window_box_height): Do not return negative values.
17047 From Gerd Moellmann <gerd@gnu.org>.
cc63037e 17048
048addec 17049 * keyboard.c (head_table): Add missing braces around initializer.
cc63037e 17050
048addec 17051 * term.c (keys): Likewise.
deece6f5 17052
048addec 17053 * xfns.c (x_frame_parms, visual_classes): Likewise.
deece6f5 17054
048addec 170552001-12-17 Sam Steingold <sds@gnu.org>
1b944d9c 17056
048addec
JD
17057 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
17058 patch (COMPOSING_P, not COMPOSING).
28ff4293 17059
048addec 170602001-12-17 Richard M. Stallman <rms@gnu.org>
a395ef6a 17061
048addec 17062 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
a395ef6a 17063
048addec
JD
17064 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
17065 before calling decode_coding.
9b46de40 17066
048addec 17067 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
9b46de40 17068
048addec
JD
17069 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
17070 instead of only for COMPOSITION_DISABLED.
9b46de40 17071
048addec 170722001-12-16 Richard M. Stallman <rms@gnu.org>
aff37336 17073
048addec 17074 * alloc.c (pure_alloc): After overflow, allocate just a small block.
aff37336 17075
048addec 17076 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
b9937f07 17077
048addec
JD
17078 * buffer.h (struct buffer): New field `display_error_modiff'.
17079 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
b9937f07 17080
048addec 17081 * window.c (Frecenter): Clear display_error_modiff field.
2cd23960 17082
048addec
JD
17083 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
17084 Call redisplay_window, but not if display_error_modiff field says no.
17085 (redisplay_window_error): New function.
17086 (displayed_buffer): New variable.
17087 (redisplay_internal, redisplay_windows): Call the new functions
17088 instead of redisplay_window directly.
2cd23960 17089
048addec 170902001-12-15 Richard M. Stallman <rms@gnu.org>
2cd23960 17091
048addec 17092 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
2cd23960 17093
048addec 170942001-12-14 Andrew Innes <andrewi@gnu.org>
a4184c1c 17095
048addec 17096 * makefile.w32-in (EMACSLOADPATH): Define.
f9711de4 17097 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
048addec 17098 (bootstrap-temacs): Remove dependency on bootstrap-clean.
a4184c1c 17099
048addec 171002001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
f6fa0866 17101
048addec
JD
17102 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
17103 parameter have a numeric value all the time.
f6fa0866 17104
048addec 17105 * w32fns.c (x_report_frame_params): Likewise.
f4ca4b00 17106
048addec 171072001-12-12 Richard M. Stallman <rms@gnu.org>
f4ca4b00 17108
048addec 17109 * fileio.c (Fwrite_region): Doc fix.
f4e25f94 17110
048addec
JD
17111 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
17112 (redisplay_internal): Call clear_image_cache only for window terminals.
f4e25f94 17113
048addec 171142001-12-12 Gerd Moellmann <gerd@gnu.org>
91c153e2 17115
048addec
JD
17116 * xdisp.c (move_it_vertically_backward): Change heuristic
17117 for the case that we didn't move far enough initially.
91c153e2 17118
048addec
JD
17119 * window.c (Frecenter): Simplify computation in the case of window
17120 system frames and ARG < 0; use window_box_height.
65b7d3e7 17121
048addec 171222001-12-11 Richard M. Stallman <rms@gnu.org>
65b7d3e7 17123
048addec
JD
17124 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
17125 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
6b5f6311 17126
048addec 171272001-12-11 Andrew Innes <andrewi@gnu.org>
6b5f6311 17128
048addec
JD
17129 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
17130 arg is negative.
be676094 17131
048addec 171322001-12-11 Richard M. Stallman <rms@gnu.org>
be676094 17133
048addec
JD
17134 * m/hp800.h: Split the __hpux conditional into the parts
17135 that are right for GNU/Linux too and the parts that are not.
17136 Use the former if GNU_LINUX.
17137 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
032a857d 17138
048addec 17139 * s/gnu-linux.h (GNU_LINUX): Defined.
032a857d 17140
048addec 171412001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
032a857d 17142
048addec
JD
17143 * macros.c, msdos.c, w16select.c: Change doc-string comments to
17144 `new style' [w/`doc:' keyword].
032a857d 17145
048addec 171462001-12-10 Jason Rumney <jasonr@gnu.org>
b6270150 17147
048addec
JD
17148 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
17149 before using.
b6270150 17150
048addec 171512001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
792e5cbd 17152
048addec
JD
17153 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
17154 keyword].
98cbb9fa 17155
048addec 171562001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
98cbb9fa 17157
048addec 17158 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
98cbb9fa 17159
048addec 17160 * s/hpux10.h (srand48): Don't undefine.
98cbb9fa 17161
048addec 171622001-12-09 Jason Rumney <jasonr@gnu.org>
792e5cbd 17163
048addec 17164 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
78819ebb 17165 Add comment to explain where the struct came from.
048addec
JD
17166 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
17167 (add_menu_item): Process pop-up menus first to avoid memory leak.
17168 (add_menu_item, w32_menu_display_help): Use `help' field as
17169 Lisp_Object.
17170 (w32_free_submenu_strings): Only free owner-drawn strings.
fa336b91 17171
048addec 171722001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
fa336b91 17173
048addec 17174 * COPYING: Moved back.
fa336b91 17175
048addec
JD
17176 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
17177 Add parentheses around && within ||.
077907d4 17178
048addec 17179 * indent.c (compute_motion): Likewise.
aa2af83a 17180
048addec 17181 * intervals.c (merge_properties_sticky): Likewise.
60a653f1 17182
048addec
JD
17183 * coding.c (setup_coding_system, shrink_encoding_region)
17184 (Fdecode_sjis_char): Likewise.
60a653f1 17185
048addec 171862001-12-07 Andreas Schwab <schwab@suse.de>
60a653f1 17187
048addec
JD
17188 * xdisp.c (display_mode_element): Don't read past end of string if
17189 it ends with '%'.
60a653f1 17190
048addec
JD
17191 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
17192 can hold.
60a653f1 17193
048addec
JD
17194 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
17195 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
17196 type changed to Lisp_Object.
17197 (syms_of_data): DEFVAR_LISP them.
60a653f1 17198
048addec 171992001-12-07 Richard M. Stallman <rms@gnu.org>
60a653f1 17200
048addec
JD
17201 * callproc.c (init_callproc): Set Vdata_directory based on the source
17202 location whenever Emacs was run uninstalled.
60a653f1 17203
048addec 172042001-12-06 Paul Eggert <eggert@twinsun.com>
60a653f1 17205
048addec
JD
17206 * config.in (HAVE_WORKING_VFORK): New #undefs.
17207 * process.c (create_process):
17208 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
17209 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
17210 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
17211 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
17212 * m/intel386.h (HAVE_VFORK): Likewise.
17213 * m/mips-siemens.h (HAVE_VFORK): Likewise.
17214 * m/mips.h (HAVE_VFORK): Likewise.
17215 * s/freebsd.h (vfork): Remove #define.
17216 * s/lynxos.h (HAVE_VFORK): Remove #undef.
17217 * s/usg5-4-2.h: Fix comment about vfork.
60a653f1 17218
048addec 172192001-12-06 Richard M. Stallman <rms@gnu.org>
60a653f1 17220
048addec
JD
17221 * s/hpux10.h (random): Add undef.
17222 (HAVE_RANDOM): Define it just once.
60a653f1 17223
048addec 172242001-12-06 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 17225
048addec 17226 * eval.c: Undo last change: the standard syntax is not wanted.
60a653f1 17227
048addec 172282001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 17229
048addec
JD
17230 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
17231 scroll bars of the frame before deleting the frame itself. If the
17232 frame has a widget, delete the frame with XtDestroyWidget, and do
17233 not call XDestroyWindow before that.
60a653f1 17234
048addec 172352001-12-06 Kim F. Storm <storm@cua.dk>
60a653f1 17236
048addec 17237 * xfns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 17238
048addec 17239 * w32fns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 17240
048addec 172412001-12-05 Andrew Innes <andrewi@gnu.org>
60a653f1 17242
048addec
JD
17243 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
17244 excessively large.
60a653f1 17245
048addec
JD
17246 * insdel.c (make_gap_larger): New function.
17247 (make_gap_smaller): New function.
17248 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
17249 Call make_gap_smaller if arg is negative.
60a653f1 17250
048addec 172512001-12-04 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 17252
048addec
JD
17253 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
17254 Pass a dummy argument when calling interrupt_signal.
17255 (parse_menu_item): Mark disabled items before checking for empty def.
17256 (read_char_minibuf_menu_prompt): Make safety more visible.
17257 (read_key_sequence): Add a `first_unbound' variable.
17258 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
17259 unbound prefix as soon as we can detect it.
60a653f1 17260
048addec
JD
17261 * doc.c (Fsnarf_documentation): Add prototype.
17262 (get_doc_string): Handle negative arguments.
17263 (Fdocumentation): Use AREF and ASIZE.
17264 Move the calls to get_doc_string to a single place.
17265 Don't confuse an interactive-spec for a docstring reference.
17266 (Fdocumentation_property): Take advantage of the fact that
17267 get_doc_string now ignores the sign of the docstring position.
60a653f1 17268
048addec 17269 * eval.c: Use standard syntax for usage in docstrings.
60a653f1 17270
048addec 172712001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 17272
a64387ee 17273 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
60a653f1 17274
048addec 172752001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 17276
048addec
JD
17277 * xterm.c (x_draw_image_relief): Use predefined macro instead of
17278 constant when the value of `tool_bar_button_relief' is negative.
60a653f1 17279
048addec 172802001-12-02 Richard M. Stallman <rms@gnu.org>
60a653f1 17281
048addec
JD
17282 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
17283 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
60a653f1 17284
048addec 17285 * fileio.c (read_non_regular): Delete Fsignal call.
60a653f1 17286
048addec 172872001-12-01 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 17288
048addec 17289 * lisp.h (run_hook_list_with_args): Undo last change.
60a653f1 17290
048addec 172912001-12-01 Gerd Moellmann <gerd@gnu.org>
60a653f1 17292
048addec 17293 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
60a653f1 17294
048addec 172952001-12-01 Jason Rumney <jasonr@gnu.org>
60a653f1 17296
f63fd14e 17297 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
60a653f1 17298
048addec
JD
17299 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
17300 [!WM_MOUSELEAVE]: Define.
60a653f1 17301
048addec
JD
17302 * w32menu.c (current_popup_menu, get_menu_item_info):
17303 (set_menu_item_info): New vars.
17304 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
17305 (w32_menu_show): Set current_popup_menu.
17306 (add_menu_item): Allocate new strings for owner-drawn menu items
17307 and help strings.
17308 Use owner-draw for disabled menu items again.
17309 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
17310 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
60a653f1 17311
048addec
JD
17312 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
17313 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
17314 <WM_EXITMENULOOP>: Free menu strings.
17315 <WM_MOUSELEAVE>: Stop tracking mouse.
17316 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
60a653f1 17317
048addec
JD
17318 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
17319 and mouse face.
60a653f1 17320
048addec 173212001-12-01 Kim F. Storm <storm@cua.dk>
60a653f1 17322
048addec
JD
17323 The following changes add left-fringe and right-fringe
17324 frame parameters to adjust fringe widths, or remove one or
17325 both fringes.
60a653f1 17326
048addec
JD
17327 * frame.h (struct frame): Remove trunc_area_pixel_width and
17328 trunc_area_cols fields.
17329 (Qleft_fringe, Qright_fringe): Declare.
17330 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
60a653f1 17331
048addec
JD
17332 * frame.c (Qleft_fringe, Qright_fringe): New vars.
17333 (syms_of_frame): Initialize them.
60a653f1 17334
048addec
JD
17335 * window.c (coordinates_in_window): Handle separate left and right
17336 fringe widths.
60a653f1 17337
048addec
JD
17338 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
17339 and fringe_cols fields.
17340 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
17341 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
17342 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
17343 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
17344 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
17345 (x_compute_fringe_widths): Add prototype.
60a653f1 17346
048addec
JD
17347 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
17348 fill fringe evenly with small dashes.
f63fd14e 17349 (x_draw_fringe_bitmap): Clear background if necessary. Align and
048addec
JD
17350 clip the new ZV bitmap to avoid jitter between rows.
17351 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
17352 background. Don't draw fringe bitmaps if fringe width is zero.
17353 (x_compute_fringe_widths): New function.
17354 (x_new_font, x_set_window_size_1): Use it.
60a653f1 17355
048addec
JD
17356 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
17357 (x_set_frame_parameters): Process `font' parameter before other
17358 parameters as fringe widths depend on it.
17359 (x_set_fringe_width): New function.
17360 (x_figure_window_size): Use x_compute_fringe_widths.
17361 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
17362 parameters.
60a653f1 17363
048addec
JD
17364 * widget.c (set_frame_size): Use x_compute_fringe_widths.
17365 (EmacsFrameSetCharSize): Ditto.
60a653f1 17366
048addec
JD
17367 * w32term.h: Merged changes from xterm.h.
17368 * w32term.c: Merged changes from xterm.c.
17369 * w32fns.c: Merged changes from xfns.c.
60a653f1 17370
048addec 173712001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 17372
048addec 17373 * COPYING: Removed.
60a653f1 17374
048addec 173752001-11-29 Dave Love <fx@gnu.org>
60a653f1 17376
048addec
JD
17377 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
17378 extra extra slot.
17379 (detect_coding_mask): Fix call of detect_coding_iso2022.
60a653f1 17380
048addec 173812001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 17382
048addec
JD
17383 * fileio.c (file-name-coding-system)
17384 (default-file-name-coding-system): Doc fix (links to referenced
17385 variables added).
60a653f1 17386
048addec 173872001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 17388
048addec
JD
17389 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
17390 Add dummy uses of gcproN variables.
60a653f1 17391
048addec
JD
17392 * category.c (describe_category, describe_category_1)
17393 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
17394 (syms_of_category): Don't defsubr Sdescribe_categories.
60a653f1 17395
048addec 173962001-11-28 Richard M. Stallman <rms@gnu.org>
60a653f1 17397
048addec 17398 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
60a653f1 17399
048addec
JD
17400 * Makefile.in (lispdir): New variable, referring to build dir.
17401 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
60a653f1 17402
048addec 174032001-11-28 Andrew Innes <andrewi@gnu.org>
60a653f1 17404
048addec
JD
17405 * w32menu.c (w32_menu_display_help): Actually add the new argument
17406 OWNER.
60a653f1 17407
048addec 174082001-11-28 Jason Rumney <jasonr@gnu.org>
60a653f1 17409
048addec
JD
17410 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
17411 menu items. From David Ponce <dponce@wanadoo.fr>.
17412 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
17413 conditionally.
f63fd14e 17414 (w32_menu_display_help): New argument OWNER. Rewritten to store a
048addec 17415 help event in the owner frame's keyboard buffer.
60a653f1 17416
048addec
JD
17417 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
17418 (Fx_show_tip): Don't subtract last width from row width.
17419
17420 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
17421 (w32_read_socket): Use EQ to compare frames.
60a653f1 17422
048addec 174232001-11-28 Gerd Moellmann <gerd@gnu.org>
60a653f1 17424
048addec
JD
17425 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
17426 OVERLAPS_P.
60a653f1 17427
048addec 174282001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 17429
048addec
JD
17430 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
17431 `gcpro3' and `gcpro4'.
60a653f1 17432
048addec 17433 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
60a653f1 17434
048addec 174352001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 17436
048addec 17437 * ccl.c: Use AREF and ASIZE.
60a653f1 17438
048addec 174392001-11-27 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 17440
048addec
JD
17441 * lisp.h (run_hook_list_with_args): Remove.
17442 (LIST_END_P): Fix call to wrong_type_argument.
17443 (make_fixnum_or_float): Use EMACS_INT rather than int.
60a653f1 17444
048addec 174452001-11-26 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 17446
048addec
JD
17447 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
17448 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
60a653f1 17449
048addec
JD
17450 * eval.c: Use AREF and ASIZE.
17451 (Ffetch_bytecode): Add the file name to the error message.
60a653f1 17452
048addec
JD
17453 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
17454 which match the end of the file-name.
17455 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
17456 is not a valid env var, but leave it as is instead.
60a653f1 17457
048addec
JD
17458 * keymap.c (access_keymap): Handle t bindings like nil bindings.
17459 Make nil bindings in char-tables transparent.
17460 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
60a653f1 17461
048addec 174622001-11-26 Richard M. Stallman <rms@gnu.org>
60a653f1 17463
048addec
JD
17464 * textprop.c (set_text_properties_1): Allow START, END in either order.
17465 Do nothing if range is empty.
60a653f1 17466
048addec 17467 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
60a653f1 17468
048addec
JD
17469 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
17470 (clean): Not here.
60a653f1 17471
048addec 174722001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 17473
048addec
JD
17474 * textprop.c (set_text_properties_1): Clearly mark that the
17475 interval should not be empty.
60a653f1 17476
048addec
JD
17477 * intervals.c (graft_intervals_into_buffer):
17478 Don't call set_text_properties_1 on an empty interval.
60a653f1 17479
048addec 174802001-11-25 Richard M. Stallman <rms@gnu.org>
60a653f1 17481
048addec 17482 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
60a653f1 17483
048addec
JD
17484 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
17485 don't lose the data in it.
60a653f1 17486
048addec 174872001-11-25 Juanma Barranquero <lektu@terra.es>
60a653f1 17488
048addec 17489 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
60a653f1 17490
c62aec78 17491 * buffer.c (Fkill_buffer): Likewise.
60a653f1 17492
c62aec78 17493 * print.c (temp_output_buffer_setup): Likewise.
60a653f1 17494
048addec 174952001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 17496
048addec 17497 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
60a653f1 17498
048addec 174992001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 17500
048addec
JD
17501 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
17502 Niemitalo <kon@iki.fi>.
60a653f1 17503
048addec 175042001-11-25 Jason Rumney <jasonr@gnu.org>
60a653f1 17505
048addec 17506 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
60a653f1 17507
048addec
JD
17508 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
17509 (Fx_show_tip): Block input during frame creation.
17510 (Fx_show_tip, Fx_hide_tip): Enable.
60a653f1 17511
048addec 175122001-11-24 Richard M. Stallman <rms@gnu.org>
60a653f1 17513
048addec
JD
17514 * lread.c (Fload): Detect recursive load error for more than 3
17515 nestings of the same file.
17516 (Vrecursive_load_depth_limit): Variable deleted.
17517 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
60a653f1 17518
048addec 175192001-11-24 Jason Rumney <jasonr@gnu.org>
60a653f1 17520
048addec
JD
17521 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
17522 mouse position if either left or top is not specified.
60a653f1 17523
048addec
JD
17524 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
17525 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
17526 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
17527 (my_create_tip_window): Assign tip_window.
17528 (x_create_tip_frame): Use same defaults as X.
17529 (compute_tip_xy): Remove unused variable. Use full screen width.
f63fd14e 17530 (Fx_show_tip): Do not double height. Call ShowWindow directly.
60a653f1 17531
048addec
JD
17532 * w32term.c (x_after_update_window_line): Doc fix.
17533 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
17534 frames.
17535 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
60a653f1 17536
048addec
JD
17537 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
17538 for all Windowed systems.
60a653f1 17539
048addec 175402001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 17541
048addec
JD
17542 * msdos.c (IT_clear_screen): If the frame's faces are not yet
17543 realized, use the initial screen colors to clear the screen.
60a653f1 17544
048addec 175452001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 17546
048addec
JD
17547 * textprop.c (Fset_text_properties): Remove unused variables
17548 `unchanged', `prev_changed', `s' and `len'.
60a653f1 17549
048addec
JD
17550 * search.c (Freplace_match): Remove unused variable `inslen'.
17551
17552 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
17553
175542001-11-22 Jason Rumney <jasonr@gnu.org>
17555
17556 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
17557 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
17558 (my_create_tip_window): New function.
17559 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
17560 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
17561
175622001-11-20 Jason Rumney <jasonr@gnu.org>
17563
17564 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
17565 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
17566
17567 * w32fns.c (Vw32_system_coding_system): Remove.
17568 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
17569
175702001-11-19 Stefan Monnier <monnier@cs.yale.edu>
17571
17572 * fileio.c (Fwrite_region): Move choose_write_coding_system to
17573 after build_annotations.
17574
17575 * syntax.c (describe_syntax): Add dummy arg.
17576 (describe_syntax_1): Update call to describe_vector.
17577
17578 * category.c (describe_category): Add dummy arg.
17579 (describe_category_1): Update call to describe_vector.
17580
17581 * keymap.c (Fdescribe_vector): Add `describer' parameter.
17582 (describe_command, describe_translation): Add dummy second param.
17583 (describe_map): Call elt_describer with two arguments.
17584 (describe_vector_princ): Add `fun' parameter.
17585 Call it instead of the hardcoded `princ'.
17586 (describe_vector): Add arg `args'.
17587 Pass it as a new second argument to elt_describer.
60a653f1 17588
048addec 17589 * keymap.h (describe_vector): Update prototype.
60a653f1 17590
048addec
JD
17591 * frame.c: Don't include keymap.h any more.
17592 (keys_of_frame): Remove.
60a653f1 17593
048addec 17594 * lisp.h (keys_of_frame): Remove declaration.
60a653f1 17595
048addec 17596 * emacs.c (main): Don't call `keys_of_frame' any more.
60a653f1 17597
048addec 175982001-11-14 Andreas Schwab <schwab@suse.de>
60a653f1 17599
048addec
JD
17600 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
17601 if defined, 0 otherwise.
17602 (MAP_FAILED): Define if not defined and use it to test mmap failure.
17603 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
60a653f1 17604
048addec 176052001-11-19 Richard M. Stallman <rms@gnu.org>
60a653f1 17606
048addec 17607 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
60a653f1 17608
048addec 176092001-11-18 Jason Rumney <jasonr@gnu.org>
60a653f1 17610
048addec
JD
17611 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
17612 (x_draw_bar_cursor): If the background color of the glyph under
17613 the cursor equals the frame's cursor color, use the glyph's
17614 foreground color for drawing the bar cursor.
17615 (x_after_update_window_line): Clear internal border in different
17616 circumstances.
17617 (w32_set_vertical_scroll_bar): Check for width and height > 0.
17618 (w32_draw_relief_rect): Correct relief by 1 pixel.
17619 (x_set_glyph_string_background_width):
17620 Set extends_to_end_of_line_p if the row's fill_line_p is set and
17621 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
17622 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
17623 if cursor_in_non_selected_windows is false.
17624 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
17625 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
17626 Notice if cursor gets overwritten.
17627 (notice_overwritten_cursor): Renamed from
17628 note_overwritten_text_cursor. Rewritten to take glyph widths
17629 into account, and to take X positions as parameters.
17630 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
17631 around call to x_draw_glyphs.
17632 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
17633 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
17634 color to use for image glyph reliefs.
17635 (x_draw_image_relief): Accept zero tool_bar_button_relief.
17636 (glyph_rect): Remove unused variable `area'.
60a653f1 17637
048addec
JD
17638 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
17639 some items.
17640 (x_set_internal_border_width): Set frame garbaged when window
17641 doesn't exist yet.
17642 (Fx_create_frame): Accept zero tool_bar_button_relief.
17643 (x_clear_image_1, four_corners_best, image_background)
17644 (image_background_transparent): New functions.
17645 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
17646 (gs_format): Add `:background' entry.
17647 (lookup_image): Set IMG's background color if specified.
17648 (pbm_load, xbm_load_image, png_load): Set IMG's background field
17649 when appropriate.
17650 (x_clear_image_1): Reset `background_valid' and
17651 `background_transparent_valid' fields.
17652 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
17653 calculating it here. Set IMG's background_transparent field.
17654 (enum xpm_keyword_index): Add XPM_BACKGROUND.
17655 (enum png_keyword_index): Add PNG_BACKGROUND.
17656 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
17657 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
17658 (enum gif_keyword_index): Add GIF_BACKGROUND.
17659 (enum gs_keyword_index): Add GS_BACKGROUND.
17660 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
17661 Pre-calculate image background color where necessary.
17662 (x_create_x_image_and_pixmap, xbm_load, gs_load):
17663 Use display info's n_cbits entry for screen depth.
17664 (Fx_show_tip): Remove unused variables `buffer', `top',
17665 `left', `max_width' and `max_height'.
60a653f1 17666
048addec 17667 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
60a653f1 17668
048addec 176692001-11-18 Gerd Moellmann <gerd@gnu.org>
60a653f1 17670
048addec 17671 * puresize.h (BASE_PURESIZE): Increase to 750000.
60a653f1 17672
048addec 176732001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 17674
048addec 17675 * frame.c (Fframe_live_p): Doc fix.
60a653f1 17676
048addec 176772001-11-18 Richard M. Stallman <rms@gnu.org>
60a653f1 17678
048addec
JD
17679 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
17680 (message_dolog_marker3): New static variables hold three markers.
17681 (syms_of_xdisp): Initialize and staticpro them.
17682 (message_dolog): Use message_dolog_marker1..3 instead of
17683 allocating markers each time. Unchain them when done.
60a653f1 17684
048addec 176852001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 17686
048addec 17687 * doc.c (Fsnarf_documentation): Doc fix.
60a653f1 17688
048addec 176892001-11-17 Andreas Schwab <schwab@suse.de>
60a653f1 17690
048addec 17691 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
60a653f1 17692
048addec 176932001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 17694
048addec 17695 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
60a653f1 17696
048addec 176972001-11-17 Jason Rumney <jasonr@gnu.org>
60a653f1 17698
048addec 17699 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
60a653f1 17700
048addec 177012001-11-17 Gerd Moellmann <gerd@gnu.org>
60a653f1 17702
048addec
JD
17703 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
17704 with invalid position.
60a653f1 17705
048addec 177062001-11-16 Richard M. Stallman <rms@gnu.org>
60a653f1 17707
048addec 17708 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
60a653f1 17709
048addec
JD
17710 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
17711 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
17712 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
60a653f1 17713
048addec 17714 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
60a653f1 17715
048addec 177162001-11-16 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 17717
048addec
JD
17718 * fileio.c (build_annotations): Split off the tail.
17719 (build_annotations_2): New fun. Extracted from build_annotations.
17720 (Fwrite_region): Split the call to build_annotations into two
17721 calls to build_annotations and build_annotations_2.
077907d4 17722
048addec 177232001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1756e2fb 17724
048addec
JD
17725 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
17726 clear_waiting_for_input with argument.
1756e2fb 17727
048addec 17728 * xterm.h (x_update_cursor): Remove duplicated prototype.
06e8f738 17729
048addec 17730 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
06e8f738 17731
048addec 17732 * xterm.c (waiting_for_input): Remove unnecessary declaration.
fa336b91 17733
048addec 17734 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
fa336b91 17735
048addec 177362001-11-16 Stefan Monnier <monnier@cs.yale.edu>
fa336b91 17737
048addec
JD
17738 * fileio.c (choose_write_coding_system): New fun, extracted
17739 from Fwrite_region.
17740 (Fwrite_region): Use it.
fa336b91 17741
048addec
JD
17742 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
17743 (funcall_lambda, run_hook_with_args): Make static and add prototype.
17744 (ml_apply, find_handler_clause): Add prototype.
fa336b91 17745
048addec 177462001-11-16 Eli Zaretskii <eliz@gnu.org>
fa336b91 17747
048addec 17748 * config.in: Add #undef HAVE_COFF_H.
fa336b91 17749
048addec
JD
17750 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
17751 Required for ISC 4.1.
fa336b91 17752
048addec 177532001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
fa336b91 17754
048addec
JD
17755 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
17756 Andrew Wiseman <a.wiseman@btclick.com>.
fa336b91 17757
048addec 177582001-11-16 Kim F. Storm <storm@cua.dk>
fa336b91 17759
048addec
JD
17760 The following changes are made to clean up the various internal
17761 references to the fringes to actually use the term `fringe' for
17762 them. Previously, they were called `flags areas', `bitmap areas',
17763 `left/right side of windows', or implicitly as `flags' or
17764 `bitmaps':
fa336b91 17765
048addec 17766 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
f63fd14e 17767 Comments fixed. Use renamed symbols.
06e8f738 17768
f63fd14e 17769 * dispnew.c: Comment fix. Use renamed symbols.
06e8f738 17770
048addec
JD
17771 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
17772 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
17773 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
9ce647f4 17774
048addec 17775 * msdos.c: Comment fix.
9ce647f4 17776
048addec 17777 * w32fns.c: Use renamed symbols.
9b784ab8 17778
f63fd14e 17779 * w32term.c: Comment fixes. Use renamed symbols.
048addec
JD
17780 (fringe_bitmap_type): Renamed from bitmap_type.
17781 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
17782 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
17783 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
9f7e52b4 17784
f63fd14e 17785 * w32term.h: Comment fixes. Use renamed symbols.
048addec
JD
17786 (fringes_extra): Renamed from flags_areas_extra.
17787 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
17788 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
17789 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
17790 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
17791 (FRAME_X_LEFT_FRINGE_WIDTH):
17792 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
17793 (FRAME_X_RIGHT_FRINGE_WIDTH):
17794 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
9f7e52b4 17795
048addec 17796 * widget.c: Use renamed symbols.
9f7e52b4 17797
f63fd14e 17798 * window.c: Comment fixes. Use renamed symbols.
048addec 17799 (coordinates-in-window-p): Doc fix.
fa336b91 17800
f63fd14e 17801 * xdisp.c: Comment fixes. Use renamed symbols.
34e5d0af 17802
048addec 17803 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
9b784ab8 17804
048addec 17805 * xfns.c: Use renamed symbols.
89512fcd 17806
f63fd14e 17807 * xterm.c: Comment fixes. Use renamed symbols.
048addec
JD
17808 (fringe_bitmap_type): Renamed from bitmap_type.
17809 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
17810 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
17811 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
89512fcd 17812
f63fd14e 17813 * xterm.h: Comment fixes. Use renamed symbols.
048addec
JD
17814 (fringes_extra): Renamed from flags_areas_extra.
17815 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
17816 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
17817 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
17818 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
17819 (FRAME_X_LEFT_FRINGE_WIDTH):
17820 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
17821 (FRAME_X_RIGHT_FRINGE_WIDTH):
17822 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
17823
178242001-11-15 Jason Rumney <jasonr@gnu.org>
17825
17826 * w32menu.c (add-menu-item): Make help_echo and radio buttons
17827 work for most menu items. From David Ponce
17828 <david.ponce@wanadoo.fr>.
17829
178302001-11-15 Gerd Moellmann <gerd@gnu.org>
17831
17832 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
17833 Some x_set_* function expect to be called even if old and new
17834 value are equal.
17835
17836 * xdisp.c (build_desired_tool_bar_string): Accept zero
17837 tool_bar_button_relief.
17838
17839 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
17840
17841 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
17842
17843 * xterm.c (x_draw_bar_cursor): If the background color of the
17844 glyph under the cursor equals the frame's cursor color, use
17845 the glyph's foreground color for drawing the bar cursor.
17846
17847 * dispnew.c (direct_output_forward_char): Fix character/byte
17848 position comparison.
7d18891d 17849
048addec 178502001-11-15 Miles Bader <miles@gnu.org>
d2936d21 17851
048addec
JD
17852 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
17853 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
17854 Update arguments to find_field.
17855 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
17856 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
17857 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
17858 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
7d18891d 17859
048addec 178602001-11-14 Richard M. Stallman <rms@gnu.org>
7d18891d 17861
048addec 17862 * editfns.c (Fpropertize): Allow call with 1 arg.
7d18891d 17863
048addec
JD
17864 * dispextern.h (image_background, image_background_transparent):
17865 Conditionalize on HAVE_X_WINDOWS.
7d18891d 17866
048addec 178672001-11-13 Richard M. Stallman <rms@gnu.org>
7d18891d 17868
048addec 17869 * print.c (Fprin1_to_string): Doc fix.
7d18891d 17870
048addec 17871 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
7d18891d 17872
048addec 17873 * floatfns.c (Fceiling, Ffloor): Doc fixes.
7d18891d 17874
048addec 17875 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
7d18891d 17876
048addec 17877 * fileio.c (Ffile_accessible_directory_p): Doc fix.
7d18891d 17878
048addec 17879 * eval.c (syms_of_eval): Doc fix.
7d18891d 17880
048addec 17881 * coding.c (syms_of_coding): Doc fix.
7d18891d 17882
048addec 17883 * doc.c (Fsnarf_documentation): Doc fix.
7d18891d 17884
048addec 17885 * dispnew.c (syms_of_display): Doc fix.
9474c847 17886
048addec 17887 * category.c (Fget_unused_category): Doc fix.
9474c847 17888
048addec 17889 * buffer.c (syms_of_buffer): Doc fixes.
e3059a5d 17890
048addec 178912001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
e3059a5d 17892
048addec 17893 * print.c (prin1, print): Doc fix.
e3059a5d 17894
048addec 178952001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
b3700ae7 17896
048addec
JD
17897 * fontset.h: Remove declarations of variables
17898 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
b3700ae7 17899
048addec
JD
17900 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
17901 `Vclip_large_size_font'.
eae936e2 17902
048addec 179032001-11-13 Jason Rumney <jasonr@gnu.org>
4bb962be 17904
048addec 17905 * w32fns.c: Doc fix.
ddb67bdc 17906
048addec 179072001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3467c402 17908
048addec 17909 * xfaces.c (Fface_attributes_as_vector): Doc fix.
3467c402 17910
048addec 17911 * fns.c: Doc fix.
6e1b91d7 17912
048addec 17913 * emacs.c: Doc fix.
1c1d3d69 17914
048addec 17915 * coding.c: Doc fix.
1c1d3d69 17916
048addec
JD
17917 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
17918 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
17919 `new style' [w/`doc:' keyword].
b6f4c7ba 17920
048addec 179212001-11-12 Richard M. Stallman <rms@gnu.org>
b6f4c7ba 17922
048addec
JD
17923 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
17924 LeaveNotify events. Only FocusIn and FocusOut do that now.
17925 (x_display_and_set_cursor): Do display hollow cursors in active
17926 minibuffer windows when they are not selected.
b6f4c7ba 17927
048addec 179282001-11-12 Jason Rumney <jasonr@gnu.org>
a89f435d 17929
048addec 17930 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
f63fd14e
JB
17931 * w32term.c: Change doc-string comments to `new style'
17932 [w/`doc:' keyword]. Doc fixes.
a89f435d 17933
048addec
JD
17934 * w32fns.c: Don't define max.
17935 (Fx_open_connection): Only execute once.
a4cd0cd7 17936
048addec 179372001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
eafb659a 17938
048addec
JD
17939 * ccl.c: Change macros to use do-while block instead of if-else.
17940 Use braces to follow GNU Coding Standards.
eafb659a 17941
048addec 179422001-11-11 Richard M. Stallman <rms@gnu.org>
a4cd0cd7 17943
048addec 17944 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
a4cd0cd7 17945
048addec 17946 * lread.c (read_escape): Use end_of_file_error for reporting eof.
a4cd0cd7 17947
048addec
JD
17948 * insdel.c (replace_range): Use adjust_markers_for_replace
17949 instead of adjust_markers_for_delete and adjust_markers_for_insert.
a4cd0cd7 17950
78819ebb 17951 * intervals.h (set_text_properties, set_text_properties_1): Declare.
a4cd0cd7 17952
048addec
JD
17953 * textprop.c (set_text_properties_1): New subroutine
17954 broken out of set_text_properties.
17955 (set_text_properties): Use set_text_properties_1.
91823618 17956
048addec
JD
17957 * intervals.c (graft_intervals_into_buffer):
17958 Use set_text_properties_1 to clear out properties.
91823618 17959
048addec
JD
17960 * search.c (Freplace_match): Use replace_range to insert
17961 and delete. Don't request property inheritance from
17962 surrounding text.
86928dfb 17963
048addec 179642001-11-10 Jason Rumney <jasonr@gnu.org>
86928dfb 17965
048addec 17966 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
f63fd14e 17967 vertical fonts. Allow them if face name is explicitly specified.
048addec 17968 Do not give up if we find a font that cannot be converted to an xlfd.
40ef1eda 17969
048addec 179702001-11-10 Gerd Moellmann <gerd@gnu.org>
ab8469eb 17971
048addec
JD
17972 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
17973 instead of malloc/free.
a78e0303 17974
048addec 179752001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
40ef1eda 17976
048addec
JD
17977 * xfaces.c (merge_face_vectors): Use braces to follow GNU
17978 Coding Standards.
17979 (Finternal_set_lisp_face_attribute): Likewise.
fabf4a91 17980
048addec 17981 * buffer.c (Fbury_buffer): Likewise.
0c99b139 17982
048addec 17983 * indent.c (current_column_1): Remove unused variable `prev_col'.
0c99b139 17984
048addec
JD
17985 * coding.c (encode_coding): Use precomputed value of `src'.
17986 (encode_coding): Remove unused variable `src_end'.
17987 (code_convert_region): Remove unused variables `count'.
830ddd77 17988
048addec 179892001-11-07 Jason Rumney <jasonr@gnu.org>
830ddd77 17990
048addec
JD
17991 * w32term.c (x_display_and_set_cursor): Do not move system caret
17992 if cursor_glyph is NULL.
55c6d645 17993
048addec 179942001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
55c6d645 17995
048addec 17996 * keymap.c (access_keymap): Fix compilation error.
5de38842 17997
048addec 179982001-11-07 Miles Bader <miles@gnu.org>
7a4564a4 17999
048addec 18000 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
5de38842 18001
048addec 180022001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4fa23df5 18003
048addec
JD
18004 * intervals.c (graft_intervals_into_buffer):
18005 Remove #ifdef'd-out code.
18006 (graft_intervals_into_buffer): Remove unused variable `middle'.
4fa23df5 18007
048addec
JD
18008 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
18009 code (eval-current-buffer).
18010 Change doc-string comments to `new style' [w/`doc:' keyword].
7a6a97d7 18011
048addec 180122001-11-06 Richard M. Stallman <rms@gnu.org>
c191d13c 18013
048addec 18014 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
7a6a97d7 18015
048addec 180162001-11-06 Stefan Monnier <monnier@cs.yale.edu>
44dc78e0 18017
048addec 18018 * lread.c (read1): Fix behavior with nested backquoting.
44dc78e0 18019
048addec
JD
18020 * keyboard.c (make_lispy_event): Check integerness and fix
18021 Lisp_Object/int mixup.
17893c65 18022
048addec 180232001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4d994a79 18024
048addec 18025 * fns.c (copy_hash_table): Remove unused variable `v'.
d5360cc7 18026
048addec
JD
18027 * fontset.c (fontset_font_pattern): Remove unused variable
18028 `family_registry'.
d5360cc7 18029
048addec 18030 * indent.c (current_column_1): Remove unused variable `prev_col'.
d5360cc7 18031
048addec 180322001-11-05 Richard M. Stallman <rms@gnu.org>
96238a5a 18033
048addec 18034 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
96238a5a 18035
048addec
JD
18036 * buffer.c (Fkill_buffer): Don't delete auto save file
18037 if buffer is modified.
d9d54213 18038
048addec 180392001-11-05 Andrew Innes <andrewi@gnu.org>
d9d54213 18040
048addec
JD
18041 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
18042 CHECK_NUMBER_CDR.
b116830b 18043
048addec 180442001-11-05 Richard M. Stallman <rms@gnu.org>
b116830b 18045
048addec 18046 * unexelf.c (unexec): Minor changes; clean up comments.
3297e2a1 18047
048addec 180482001-11-05 Sam Steingold <sds@gnu.org>
3297e2a1 18049
048addec 18050 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
6fb8339c 18051
048addec 180522001-11-05 Andreas Schwab <schwab@suse.de>
6fb8339c 18053
048addec 18054 * sound.c (sound_perror): Save errno from being clobbered.
7dd73b78 18055
048addec 180562001-11-05 Dale Hagglund <rdh@yottayotta.com>
7dd73b78 18057
048addec
JD
18058 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
18059 the program image directly.
982f6c7e 18060
048addec 180612001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d31053f9 18062
048addec 18063 * buffer.h (Fbuffer_local_value): Add prototype.
d31053f9 18064
048addec 180652001-11-04 Richard M. Stallman <rms@gnu.org>
d31053f9 18066
048addec
JD
18067 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
18068 and CHECK_BUFFER.
d31053f9 18069
048addec
JD
18070 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
18071 (record_char): Likewise.
d31053f9 18072
048addec
JD
18073 * keyboard.c (make_lispy_event): Don't insist a drag event must
18074 move to a different buffer position. Instead, check for moving at
18075 least double_click_fuzz.
982f6c7e 18076
048addec 18077 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
830047fd 18078
048addec 18079 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
b116830b 18080
048addec
JD
18081 * indent.c (current_column_1, Fmove_to_column): Separate the code
18082 for display-table glyphs from the code for buffer text, to fix
18083 bugs in the former.
830047fd 18084
048addec 180852001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
b116830b 18086
048addec
JD
18087 * buffer.c (Fbuffer_local_value): New function.
18088 (syms_of_buffer): Defsubr it.
2df5238c 18089
048addec
JD
18090 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
18091 value of `cursor-in-non-selected-windows'.
4e397688 18092
048addec
JD
18093 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
18094 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
18095 (syms_of_xdisp): Initialize it.
48b0f3ae 18096
048addec 180972001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2df5238c 18098
048addec 18099 * xfns.c (Fx_create_frame): Doc fix.
3ecaf7e5 18100
048addec
JD
18101 * coding.c: Change doc-string comments to `new style' [w/`doc:'
18102 keyword].
3ecaf7e5 18103
048addec
JD
18104 * eval.c (top_level_value, top_level_set): Remove commented and
18105 #ifdef'd-out code.
18106 (Fdefvar): Fix usage in doc-string.
3ecaf7e5 18107
048addec 181082001-11-03 Richard M. Stallman <rms@gnu.org>
3ecaf7e5 18109
048addec 18110 * xfns.c: Include unistd.h, if it exists.
8db2e33b 18111
048addec 18112 * editfns.c: Move the include of ctype.h after unistd.h.
8db2e33b 18113
048addec 18114 * gmalloc.c: Test BROKEN_PROTOTYPES.
aed29b97 18115
048addec 181162001-11-03 Ken Raeburn <raeburn@gnu.org>
aed29b97 18117
048addec
JD
18118 * lisp.h (CHECK_STRING_CAR): New macro.
18119 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
18120 treating XCAR and XCDR as lvalues.
18121 (openp): Use CHECK_STRING_CAR.
18122 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
aed29b97 18123
048addec 181242001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
6cb16f95 18125
048addec
JD
18126 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
18127 (SIGMASKTYPE): Define.
1b1acc13 18128
048addec 18129 * syssignal.h (sigunblock): Don't define if already defined.
020f9b38 18130
048addec 181312001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
020f9b38 18132
048addec
JD
18133 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
18134 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
18135 Fix typos in comments.
6cb16f95 18136
048addec
JD
18137 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
18138 and #ifdef'd-out code.
18139 Fix and reindent comments.
6cb16f95 18140
048addec 18141 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
6cb16f95 18142
048addec
JD
18143 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
18144 argument `i' in macros.
6cb16f95 18145
048addec
JD
18146 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
18147 `i' in macros.
7e9d3c2f 18148
048addec
JD
18149 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
18150 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
18151 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
18152 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
18153 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
18154 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
18155 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
18156 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
18157 in macros.
7e9d3c2f 18158
048addec
JD
18159 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
18160 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
18161 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
18162 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
18163 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
18164 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
18165 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
18166 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
18167 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
18168 (remove unused second argument).
7e9d3c2f 18169
048addec 181702001-11-02 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 18171
048addec
JD
18172 * syntax.c (describe_syntax): New wrapper.
18173 (Finternal_describe_syntax_value): Rename from describe_syntax.
18174 Don't insert space at front and \n at the end.
18175 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
e6bff182 18176
048addec
JD
18177 * regex.c (re_wctype): Try to fix some warnings.
18178 (regcomp, regexec): Don't forget the __restrict.
9ba48103 18179
048addec 181802001-11-02 Richard M. Stallman <rms@gnu.org>
9ba48103 18181
048addec 18182 * textprop.c (Fget_char_property): Doc fix.
9ba48103 18183
048addec 181842001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9ba48103 18185
048addec 18186 * process.c (Fstart_process): Add usage to doc-string.
c22e59e1 18187
048addec 18188 * data.c (Fsetq_default): Ditto.
c22e59e1 18189
048addec 18190 * callint.c (Finteractive): Ditto.
9271ed2c 18191
048addec 181922001-11-01 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 18193
048addec
JD
18194 * macros.c: Don't include keymap.h any more.
18195
181962001-11-01 Richard M. Stallman <rms@gnu.org>
18197
18198 * data.c (Fmake_local_variable): Doc fix.
18199
18200 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
18201 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
e6bff182 18202
048addec 18203 * keymap.c (Fdescribe_buffer_bindings): Print character property
9271ed2c
RS
18204 bindings along with or instead of the buffer local map.
18205 Make the overriding maps override what they should.
18206
f00691a3 182072001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8b8bd9c6
PJ
18208
18209 * window.c (grow_mini_window): Fix typo in comment.
18210
27188d11
GM
182112001-11-01 Gerd Moellmann <gerd@gnu.org>
18212
7b49b9d2
GM
18213 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
18214 (XTset_vertical_scroll_bar): Likewise.
18215
43f7c3ea
GM
18216 * xfns.c (x_build_heuristic_mask): Use four_corners_best
18217 instead of IMAGE_BACKGROUND.
c22e59e1 18218
b350c2e5
GM
18219 * xfns.c (four_corners_best): Reindent.
18220
c22e59e1 18221 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27188d11
GM
18222 Handle :box so that it is possible to specify sexprs.
18223
bf00d461
EZ
182242001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
18225
18226 * s/hpux11.h: New file.
18227
f00691a3 182282001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e10df59 18229
2b209b97
PJ
18230 * emacs.c (USAGE1): Show command line option --no-window-system
18231 instead of --no-windows in usage.
18232 (standard_args): Rename --no-windows to --no-window-system.
18233 (bug_reporting_address): Follow Emacs coding conventions.
18234
9dbc9081
PJ
18235 * eval.c (Fcommandp): Doc fix.
18236 Change doc-string comments to `new style' [w/`doc:' keyword].
18237
4e10df59
PJ
18238 * frame.c (Fframe_live_p): Doc fix.
18239
18240 * buffer.c (selective-display-ellipses): Doc fix.
18241
dd387b25
GM
182422001-10-31 Gerd Moellmann <gerd@gnu.org>
18243
fe957e65
GM
18244 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
18245
dd387b25
GM
18246 * xfaces.c (realize_x_face): If C is not a single-byte character,
18247 set the face's colors_copied_bitwise_p instead of the defaulted_p
18248 members which have a different meaning.
18249 (free_face_colors): Do nothing for a face whose colors have been
18250 copied bitwise.
18251
c22e59e1 18252 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
dd387b25 18253
f00691a3 182542001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2e1280f8 18255
687784e8
PJ
18256 * marker.c, mocklisp.c: Change doc-string comments to `new style'
18257 [w/`doc:' keyword].
2e1280f8 18258
b9d9a9b9
GM
182592001-10-31 Gerd Moellmann <gerd@gnu.org>
18260
18261 * fns.c (require_unwind): Return Lisp_Object.
18262
f00691a3 182632001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
48400103 18264
fa1361cb
PJ
18265 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
18266 (last-input-char): Revert doc-string to be the same as the
18267 doc-string of `last-input-event'.
18268
6c465a15 18269 * xdisp.c: Fix typos in comments.
48400103 18270
eafa3196
GM
182712001-10-31 Gerd Moellmann <gerd@gnu.org>
18272
18273 * window.c (grow_mini_window): Handle case that the root
18274 window is already smaller than the nominal mininum height.
18275
747d3f2a
SM
182762001-10-30 Stefan Monnier <monnier@cs.yale.edu>
18277
bf9bb76f
SM
18278 * emacs.c (main): Don't call keys_of_macros any more.
18279
18280 * lisp.h (keys_of_macros): Remove.
18281
18282 * macros.c (keys_of_macros): Remove.
18283
747d3f2a
SM
18284 * xfaces.c (Fface_attribute_relative_p): Declare args.
18285
5e905a57
JR
182862001-10-30 Jason Rumney <jasonr@gnu.org>
18287
18288 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
18289 (enum_font_cb2): Ignore fonts with vertical orientation.
18290
3a426197
RS
182912001-10-30 Richard M. Stallman <rms@gnu.org>
18292
18293 * keyboard.c (Finput_pending_p): Doc fix.
18294
a742d646
GM
182952001-10-30 Gerd Moellmann <gerd@gnu.org>
18296
259cf6bc
GM
18297 * xterm.c (x_after_update_window_line): Don't run the code
18298 clearing in borders for rows whose visible height is 0.
18299
3f99f948
GM
18300 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
18301 resized_p flag is set. If not set, use the much less flickering
18302 method previously used.
18303
18304 * dispnew.c (change_frame_size_1): Set frame's resized_p.
18305
18306 * frame.h (struct frame) <resized_p>: New member.
18307
b4a3be43
GM
18308 * lread.c (to_multibyte): Ensure read_buffer is at least twice
18309 as large as the number of bytes to convert.
747d3f2a 18310
a742d646
GM
18311 * lread.c (to_multibyte): New function.
18312 (read1): Use it.
18313
cacbb9e9
EZ
183142001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
18315
18316 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
18317
99cb6b2f
GM
183182001-10-30 Gerd Moellmann <gerd@gnu.org>
18319
327f42ee 18320 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
18321 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
18322 if the row's fill_line_p is set and drawing the last glyph with
18323 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 18324
99cb6b2f
GM
18325 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
18326
8e8223e2
SM
183272001-10-29 Stefan Monnier <monnier@cs.yale.edu>
18328
18329 * xmenu.c: Include coding.h and charset.h.
18330 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
18331 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
18332 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
18333 Explicitly set wv->help. Use `TRUE' rather than `True'.
18334 (menu_help_callback): Use empty_string.
18335
18336 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
18337 (Fx_popup_dialog): Explicitly init f.
18338 (w32_menu_display_help): Use empty_string.
18339
4d083a8f
RS
183402001-10-29 Richard M. Stallman <rms@gnu.org>
18341
b2304472
RS
18342 * fns.c (Frequire): Detect recursive try to require the same
18343 feature 3 or more levels deep, and get error.
18344 (require_unwind): New subroutine.
18345 (require_nesting_list): New variable.
18346 (syms_of_fns): Init and staticpro it.
18347
4d083a8f
RS
18348 * print.c (print_object): Clarify indication of insertion type.
18349
2fe41216
EZ
183502001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
18351
90480000
EZ
18352 * coding.c (syms_of_coding): Document that locale-coding-system is
18353 used for decoding input on X.
18354
2fe41216
EZ
18355 * window.c (Fscroll_left, Fscroll_right): Doc fix.
18356
f00691a3 183572001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
74e79967
PJ
18358
18359 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
18360 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
18361
60ebcfe8
GM
183622001-10-29 Gerd Moellmann <gerd@gnu.org>
18363
9a7bdceb
GM
18364 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
18365 use NO_CURSOR if cursor_in_non_selected_windows is false.
18366
3f08fcd2
GM
18367 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
18368 the slant attribute if FRAME is t.
18369
0ccfdad2
GM
18370 * xfns.c (x_set_internal_border_width): Set frame garbaged
18371 when X window doesn't exist yet.
18372
ef253080
GM
18373 * xterm.c (x_after_update_window_line): Clear internal border
18374 in different circumstances.
b116830b 18375
60ebcfe8
GM
18376 * xterm.c (XTread_socket) <KeyPress>: Don't use
18377 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
18378 <handa@etl.go.jp>.
18379
73d25f9c
EZ
183802001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
18381
18382 * m/ibms390.h: New file. From Adam Thornton
18383 <athornton@sinenomine.net>.
18384
cac1daf0
GM
183852001-10-28 Gerd Moellmann <gerd@gnu.org>
18386
053b3256 18387 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
b116830b 18388
cac1daf0
GM
18389 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
18390 a loop counter.
18391
f00691a3 183922001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13b1a09c 18393
f9711de4 18394 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
186486eb 18395
4707d2d0
PJ
18396 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
18397 keyword].
18398 Fix typos in comments.
b116830b 18399
d883731c
PJ
18400 * emacs.c (bug_reporting_address): New function.
18401 Use it when displaying usage message.
18402
04012254
PJ
18403 * minibuf.c (read_minibuf): Remove unused external declaration of
18404 variable `Qread_only'.
18405
13b1a09c
PJ
18406 * keymap.c (access_keymap): Remove unused variable `charset'.
18407
5bbf4378
MB
184082001-10-28 Miles Bader <miles@gnu.org>
18409
18410 * xfaces.c (merge_face_heights): Handle TO being relative as well.
18411 Remove #ifdef'd-out code.
18412 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
18413 (syms_of_xfaces): Initialize them.
18414
1ce1e4ee
JR
184152001-10-27 Jason Rumney <jasonr@gnu.org>
18416
18417 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
18418 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
18419 position using the system caret.
18420
18421 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
18422 (w32_system_caret_height, w32_system_caret_x)
18423 (w32_system_caret_y): New variables for tracking system caret.
18424 (w32_initialize): Initialize them.
c2d53558 18425 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 18426
c2d53558
SM
18427 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
18428 New messages types.
1ce1e4ee
JR
18429
18430 * w32term.c (note_mouse_highlight): Clear old help_echo.
18431
f00691a3 184322001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e30ce42 18433
bb4600a4
PJ
18434 * xterm.c: Fix typo in a comment.
18435
7db35a48
PJ
18436 * emacs.c: Fix typos in comments.
18437 Remove unnecessary spaces.
18438 Change doc-string comments to `new style' [w/`doc:' keyword].
18439 (USAGE2): Fix typos in usage string.
18440
a7248e4f
PJ
18441 * xterm.c: Fix typo in a comment.
18442
4e30ce42
PJ
18443 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
18444 emacs.c.
18445
62725a92
GM
184462001-10-27 Gerd Moellmann <gerd@gnu.org>
18447
798dbe1f 18448 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 18449 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
18450 farther backward when target_y was not reached.
18451
62725a92
GM
18452 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
18453 Display errno only if non-zero.
18454 (sound_warning): New function.
18455 (vox_configure): Don't treat failing to set sample rate as error.
18456 (various places): Improve error messages.
18457
d4e34d24
EZ
184582001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
18459
944e6f60
EZ
18460 * fileio.c (Faccess_file): Run the argument filename through
18461 Fexpand_file_name, before using it.
18462
d4e34d24
EZ
18463 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
18464 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
18465
38d2af0c
GM
184662001-10-26 Gerd Moellmann <gerd@gnu.org>
18467
da80a8d5
GM
18468 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
18469
38d2af0c
GM
18470 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
18471 Fix clearing in the case of scroll bars on the right.
c2d53558 18472
45de4a6f 184732001-10-26 Juanma Barranquero <lektu@terra.es>
56f508dd
EZ
18474
18475 * w32gui.h (XImage): Add a dummy typedef.
18476
fbd5ceb2
GM
184772001-10-26 Gerd Moellmann <gerd@gnu.org>
18478
c2d53558 18479 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 18480
b23236fb
EZ
184812001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
18482
18483 * frame.c (Fframe_parameter): Fix last change.
18484
5d991fc4
EZ
18485 * fileio.c: Revert last change (which removed old commented-out
18486 version of expand-file-name). Add a comment that explains why
18487 this old version should not be removed.
18488
879eadc3
GM
184892001-10-25 Gerd Moellmann <gerd@gnu.org>
18490
75700ff2
GM
18491 * frame.c (Fframe_parameter): Fix a bug whereby some
18492 ``artificial'' frame parameters, like `minibuffer' were not
18493 obtained by calling Fframe_parameters.
18494
dfe92a6a
GM
18495 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
18496 cursor differently.
18497
879eadc3
GM
18498 * xdisp.c (move_it_vertically_backward): Compute line height
18499 differently. Add heuristic to try to be more compatible to 20.x.
18500
e1010ebe
SM
185012001-10-25 Stefan Monnier <monnier@cs.yale.edu>
18502
d73a471b
SM
18503 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
18504
d6da5a06
GM
18505 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
18506 boolean.
e1010ebe 18507
f66bd220
MB
185082001-10-25 Miles Bader <miles@gnu.org>
18509
18510 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
18511 BG is a pointer to a structure, not a structure.
18512 (gif_format, png_format): Add missing commas.
18513
d436d538
RS
185142001-10-24 Richard M. Stallman <rms@gnu.org>
18515
18516 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 18517 (syms_of_xfaces): Defsubr it.
d436d538 18518
f00691a3 185192001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
075c507b
PJ
18520
18521 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
18522 variable `area'.
18523
f00691a3 185242001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d492b584 18525
c2d53558 18526 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 18527
e2a57b34
MB
185282001-10-25 Miles Bader <miles@gnu.org>
18529
18530 * dispextern.h (struct image): Add `background',
18531 `background_valid', and `background_transparent' fields.
18532 (image_background, image_background_transparent): New declarations.
18533 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
18534 * xfns.c (image_background, image_background_transparent)
18535 (four_corners_best): New functions.
c2d53558 18536 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
18537 (gs_format): Add `:background' entry.
18538 (lookup_image): Set IMG's background color if specified.
18539 (pbm_load, xbm_load_image, png_load): Set IMG's background field
18540 when appropriate.
18541 (x_clear_image_1): Reset `background_valid' and
18542 `background_transparent_valid' fields.
18543 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
18544 calculating it here. Set IMG's background_transparent field.
18545 (enum xpm_keyword_index): Add XPM_BACKGROUND.
18546 (enum png_keyword_index): Add PNG_BACKGROUND.
18547 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
18548 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
18549 (enum gif_keyword_index): Add GIF_BACKGROUND.
18550 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 18551 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
18552 Pre-calculate image background color where necessary.
18553 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
18554 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
18555 color to use for image glyph reliefs.
18556
b547b6e8
GM
185572001-10-24 Gerd Moellmann <gerd@gnu.org>
18558
d9e3b8c6
GM
18559 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
18560 in full-width rows.
c2d53558 18561
b547b6e8
GM
18562 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
18563 Fix clearing of area not covered by scroll bar.
18564
f00691a3 185652001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2beb36f9
PJ
18566
18567 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
18568 and `real_start'.
c2d53558 18569 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
18570 (glyph_rect): Remove unused variable `area'.
18571
76cb5e06
GM
185722001-10-24 Gerd Moellmann <gerd@gnu.org>
18573
bdbdebff 18574 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
18575
18576 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
18577 (row_containing_pos): Take additional argument DY.
18578 Treat rows ending in middle of char differently.
62e33982
GM
18579 (display_line): Handle tabs on window systems differently.
18580
18581 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
18582 with additional argument.
18583
18584 * dispextern.h (row_containing_pos): Adjust prototype.
18585
76cb5e06
GM
18586 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
18587 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
18588 (try_window_id, try_window_reusing_current_matrix)
18589 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
6c465a15 18590 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
76cb5e06 18591
f00691a3 185922001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
996fee11 18593
c9e60620
PJ
18594 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
18595 gnuemacs).
18596 (HAVE_BOXES): Fix typo in comment.
18597 (push_menu_pane): Fix typo in comment.
18598
3b552d56
PJ
18599 * xdisp.c: (display_prop_string_p): Remove unused local declaration
18600 of `Qwhen'.
18601 (single_display_prop_string_p): Remove unused local declarations
18602 of `Qwhen' and `Qmargin'.
18603 (string_buffer_position): Remove unused variable `around'.
18604 (store_frame_title): Remove unused variable `width'.
18605
15c565ac
PJ
18606 * window.c: Don't define max.
18607 (coordinates_in_window): Remove unused variable `uy'.
18608
a8818eb9
PJ
18609 * widget.c: Don't define max.
18610
996fee11
PJ
18611 * process.c: Don't define max.
18612 (create_process): Remove unused variable `buffer'.
18613
496e1a5b
GM
186142001-10-23 Gerd Moellmann <gerd@gnu.org>
18615
c2d53558 18616 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 18617
5905ae8b
EZ
186182001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
18619
18620 * xfaces.c (Finternal_set_lisp_face_attribute)
18621 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
18622 frame is on a windowed display.
18623
24db49fb
GM
186242001-10-23 Gerd Moellmann <gerd@gnu.org>
18625
c2d53558
SM
18626 * dispnew.c (sync_window_with_frame_matrix_rows):
18627 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
18628 of marginal areas.
18629
c2d53558 18630 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 18631
f0487f05
EZ
186322001-10-23 Andreas Schwab <schwab@suse.de>
18633
18634 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
18635 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
18636
f0a48a01
GM
186372001-10-23 Gerd Moellmann <gerd@gnu.org>
18638
c2d53558 18639 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
18640 REAL_END. Notice if cursor gets overwritten.
18641 (notice_overwritten_cursor): Take X positions as parameters.
18642 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
18643 around call to x_draw_glyphs.
18644
f00691a3 186452001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a50a10a0 18646
fc11dff0
PJ
18647 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
18648 instead of C) and usage.
a50a10a0 18649
fc11dff0
PJ
18650 * editfns.c (char-to-string): Fix argument names (use CHAR instead
18651 of C) and usage.
a50a10a0
PJ
18652
18653 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
18654 `left', `max_width' and `max_height'.
18655
8738febd
GM
186562001-10-23 Gerd Moellmann <gerd@gnu.org>
18657
18658 * xdisp.c (display_line): For a tab continued to the next line,
18659 set row's ends_in_middle_of_char_p.
18660
653c329b
GM
186612001-10-22 Gerd Moellmann <gerd@gnu.org>
18662
18663 * xdisp.c (display_line): Fix computation of continuation lines
18664 width for TABs.
18665
f00691a3 186662001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f958c5ac 18667
7ba51063
PJ
18668 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
18669 `Qlaplace'.
18670
f958c5ac
PJ
18671 * fileio.c: Remove unused code.
18672
eb360291
MB
186732001-10-22 Miles Bader <miles@gnu.org>
18674
18675 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
18676 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
18677 Remove `DOC_STRINGS_IN_COMMENTS' cases.
18678
98515cf0
JR
186792001-10-21 Jason Rumney <jasonr@gnu.org>
18680
18681 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
18682
93026d88
EZ
186832001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
18684
18685 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
18686 (Finsert_string): Avoid the multi-line string literals warning.
18687
c9a95b79
MB
186882001-10-22 Miles Bader <miles@gnu.org>
18689
18690 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
18691 (Fdocumentation): Don't use it.
18692 (syms_of_doc): Don't initialize it.
18693
18694 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
18695 * print.c (Fwith_output_to_temp_buffer): Likewise.
18696 * window.c (Fsave_window_excursion): Likewise.
c2d53558 18697 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 18698 (Fsave_restriction): Likewise.
c2d53558
SM
18699 * eval.c (Frun_hooks, Frun_hook_with_args)
18700 (Frun_hook_with_args_until_failure)
18701 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
18702 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
18703 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
18704 (Funwind_protect, Fcondition_case): Likewise.
18705 * coding.c (Ffind_operation_coding_system): Likewise.
18706 * keyboard.c (Ftrack_mouse): Likewise.
18707
a3b10252
MB
187082001-10-21 Miles Bader <miles@gnu.org>
18709
c2d53558 18710 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
18711 (Fmake_hash_table): Add usage: string to doc string.
18712 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 18713 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
18714 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
18715 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
18716 (Fml_prefix_argument_loop): Likewise.
18717
f00691a3 187182001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c6f73eec 18719
c2d53558 18720 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 18721
c6f73eec
PJ
18722 * sysdep.c (init_sys_modes): Change doc-string comments to `new
18723 style' [w/`doc:' keyword].
18724
18725 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
18726 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
18727 comments to `new style' [w/`doc:' keyword].
18728
3cf3436e
JR
187292001-10-21 Jason Rumney <jasonr@gnu.org>
18730
18731 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
18732
c169b8f1
JR
18733 * w32term.c (remember_mouse_glyph): New function.
18734 (w32_mouse_position): Use it.
18735 (note_mouse_movement): If the mouse moved off the glyph, remember
18736 its new position.
c2d53558 18737
4fdd691b
JR
18738 * w32term.h (struct w32_output): Correct spelling of x_compatible.
18739 (w32_display_info): Add mouse_face_overlay.
18740
c169b8f1
JR
18741 * w32term.c (notice_overwritten_cursor): Renamed from
18742 note_overwritten_text_cursor. Rewritten to take glyph widths into
18743 account.
18744 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
18745 (fast_find_string_pos): New function.
18746 (fast_find_position): Return the correct vpos. Add parameter
18747 STOP. In the final row, stop before glyphs having STOP as object.
18748 Don't consider glyphs that are not from a buffer.
18749 (fast_find_position) [0]: Add a presumably more correct version
18750 for after 21.1.
18751 (expose_window_tree, expose_frame): Don't compute intersections here.
18752 (expose_window): Do it here instead.
18753 (expose_window_tree, expose_window, expose_line): Return 1 when
18754 overwriting mouse-face.
18755 (expose_window): If W is the window currently being updated, mark
18756 the frame garbaged.
18757 (expose_frame): If mouse-face was overwritten, redo it.
18758 (x_use_underline_position_properties): New variable.
18759 (syms_of_xterm): DEFVAR_BOOL it.
18760 (x_draw_glyph_string): Add comment to use it in future.
18761 (x_draw_glyph_string): Restore clipping after drawing box.
18762 Fix a computation of the underline position.
18763 (w32_get_glyph_string_clip_rect): Minor cleanup.
18764 (x_fill_stretch_glyph_string): Remove an assertion.
18765 (x_produce_glyphs): Don't convert multibyte characters
18766 to unibyte characters in unibyte buffers.
18767 (cursor_in_mouse_face_p): New function.
18768 (x_draw_stretch_glyph_string): Use it to choose a different GC
18769 when drawing a cursor within highlighted text. Don't draw
18770 background again if it has already been drawn.
18771 (x_draw_glyph_string_box): Don't draw a full-width
18772 box just because the glyph row's full_width_p flag is set.
18773 (x_draw_glyphs): Fix computation of rightmost x for
18774 full-width rows.
18775 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
18776 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
f63fd14e 18777 change bottom shadow accordingly. Some cleanup.
c169b8f1
JR
18778 (x_update_window_end): Handle overwritten mouse face
18779 also for tool bar windows.
18780 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
18781 DRAW is DRAW_IMAGE_RAISED.
18782 (clear_mouse_face): Return 1 if text with mouse face was
2c568af5
SM
18783 actually redrawn. Make the function static.
18784 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
c169b8f1
JR
18785 optimize away highlighting if we pass over that same overlay again.
18786 (note_mouse_highlight): Call mouse_face_overlay_overlaps
18787 to detect a case where we have to highlight a different region
18788 despite not having left the currently highlighted region.
18789 Set mouse_face_overlay in the x_display_info. Avoid changing the
18790 mouse pointer shape when show_mouse_face has already done it, or
18791 there is no need. Handle mouse-face and help-echo in strings.
18792 (glyph_rect): New function.
18793 (w32_mouse_position): Use it to raise the threshold for mouse
18794 movement event generation.
18795 (w32_initialize_display_info): Initialize the x_display_info's
18796 mouse_face_overlay.
18797 (w32_set_vertical_scroll_bar): Don't clear a zero height
18798 or width area.
18799 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
18800 a widget to zero height.
18801
3cf3436e 18802 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 18803 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
18804 equivalents in menu_items.
18805 (w32_menu_show): Don't overwrite an item's name with its key
18806 description in case the description is a multibyte string.
18807 (single_submenu): Some cleanup.
18808
18809 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
18810 (postprocess_image): New function.
18811 (lookup_image): Call it for all image types except PostScript.
18812 (x_kill_gs_process): Call postprocess_image.
18813 (tiff_error_handler, tiff_warning_handler): New functions.
18814 (tiff_load): Install them as handlers.
18815 (x_kill_gs_process): Recognize if someone has cleared the image
18816 cache under us.
18817 (valid_image_p): Protect better against invalid image
18818 specifications. Previous code could signal an error.
18819 (Fx_hide_tip, Fshow_tip): Doc fix.
18820 (Fv_max_tooltip_size): New variable.
18821 (syns_of_xfns): DEFVAR_LISP it.
18822 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
f63fd14e 18823 window buffer to *tip* right after creating the frame. Set frame's
3cf3436e
JR
18824 window_width. Use a maximum tooltip size specified by
18825 Vx_max_tooltip_size, if that has valid contents.
18826 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
18827 Make sure the tooltip is completely visible.
18828 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
18829 (Fx_create_frame): Adjust the frame's height for presence
18830 of the tool bar before calling x_figure_window_size.
18831 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
18832 when the window gets smaller.
18833 (x_set_foreground_color): Set frame's cursor_pixel.
18834 (x_set_foreground_color, x_set_background_color): Cleaned up.
18835 (x_set_font): Handle case of x_new_fontset returning the same name
18836 as before, although there was a change in fontsets.
18837
386ca361
MB
188382001-10-21 Miles Bader <miles@gnu.org>
18839
c2d53558 18840 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
18841 (Flogxor): Add usage: string to doc string.
18842 * charset.c (Fstring): Likewise.
18843 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
18844 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
18845
f00691a3 188462001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14ff1ee0 18847
03be2694
PJ
18848 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
18849
18850 * alloc.c: Reindent DEFUNs with doc: keywords.
18851
18852 * abbrev.c (Finsert_abbrev_table_description): Reindent.
18853
14ff1ee0
PJ
18854 * frame.c: Change doc-string comments to `new style' [w/`doc:'
18855 keyword].
18856
2f147815 18857See ChangeLog.9 for earlier changes.
6922b018
KH
18858
18859;; Local Variables:
49b3bd82 18860;; coding: iso-2022-7bit
6922b018 18861;; End:
2a34a036 18862
2f147815 18863 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
2a34a036
GM
18864 Copying and distribution of this file, with or without modification,
18865 are permitted provided the copyright notice and this notice are preserved.
ab5796a9
MB
18866
18867;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4