* xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
[bpt/emacs.git] / src / ChangeLog
CommitLineData
fcdb28b4
JD
12004-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2
12e6566a
JD
3 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
4 tool_bar_items and assign the result to f->tool_bar_items if
5 not equal. Move BLOCK/UNBLOCK_INPUT from around call to
6 tool_bar_items to assignment of result.
7
fcdb28b4
JD
8 * atimer.c (alarm_signal_handler): Do not call set_alarm if
9 pending_atmers is non-zero.
10
1a1a0c4c
KS
112004-10-31 Kim F. Storm <storm@cua.dk>
12
13 * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
14
a36f1680
JW
152004-10-28 Will <will@glozer.net>
16
17 * macterm.c: allow user to assign key modifiers to the Mac Option
18 key via a 'mac-option-modifier' variable.
19
2d586478
SM
202004-10-28 Stefan <monnier@iro.umontreal.ca>
21
22 * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
23 Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
24 (x_handle_selection_request, x_handle_selection_clear)
25 (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
26
4f71c13f
RS
272004-10-28 Richard M. Stallman <rms@gnu.org>
28
29 * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
30
31 * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
32
068f3848
SM
332004-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
34
35 * syntax.c (scan_sexps_forward): Give precedence to a 2-char
36 comment-starter over a 1-char one.
37
4660a9e3
RS
382004-10-27 Richard M. Stallman <rms@gnu.org>
39
40 * xdisp.c (get_next_display_element): In mode lines,
41 treat newline and tab like other control characters.
42
43 * editfns.c (Fmessage): Doc fix.
44
45 * indent.c (vmotion): When moving up, check the newline before.
46 Make prevline an int, not a Lisp_Object.
47
233f3db6
KS
482004-10-27 Kim F. Storm <storm@cua.dk>
49
50 * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
51 Only allocate info and discarded tables once.
52
53 * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
54 (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
55 (SAFE_FREE): Test it to determine if we need to unwind to free.
56 Remove size arg. All users changed.
57 (SAFE_FREE_LISP) Remove. All users changed to use SAFE_FREE.
58
1442465d
JD
592004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
60
61 * gtkutil.c: Put empty line between comment and function body.
068f3848
SM
62 (xg_destroy_widgets): Rename from remove_from_container.
63 Just destroy all widgets in list. Argument wcont removed.
1442465d
JD
64 (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
65 instead of remove_from_container.
66 (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
67 (free_frame_tool_bar): Add comment.
68
69 * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
70 is not NULL before strcmp.
71
c8636435
KS
722004-10-26 Kim F. Storm <storm@cua.dk>
73
74 * callint.c (Fcall_interactively): Add 'U' code to get the
75 up-event discarded by a previous 'k' or 'K' argument.
76
5629f29b
DK
772004-10-26 David Kastrup <dak@gnu.org>
78
79 * buffer.c (syms_of_buffer): Fix a few typos.
80
4f2f546e
JD
812004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
82
83 * xsmfns.c: Put empty line between comment and function body.
84 Use two spaces before comment end.
85
fc1062f5
KH
862004-10-25 Kenichi Handa <handa@m17n.org>
87
88 * fontset.c (fontset_pattern_regexp): Optimize for the case that
89 PATTERN is full XLFD.
90
be13f5e5
KH
912004-10-24 Kenichi Handa <handa@m17n.org>
92
93 * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
94
95 * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
96 (regex_compile): Return REG_ERANGEX if appropriate.
97
d0ee2ed3
KH
982004-10-22 Kenichi Handa <handa@m17n.org>
99
100 * editfns.c (Ftranslate_region_internal): New function.
101 (syms_of_editfns): Defsubr it.
102
63ea8ea5
JD
1032004-10-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
104
105 * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
106
c27ed90a
JD
1072004-10-21 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
108
068f3848
SM
109 * xterm.h (x_output): New member `xic_base_fontname'.
110 (FRAME_XIC_BASE_FONTNAME): New macro.
111 (xic_free_xfontset): Declare.
c27ed90a 112
068f3848
SM
113 * xfns.c (xic_create_xfontset): Share fontsets between frames
114 based on base_fontname.
115 (xic_free_xfontset): New function.
116 (free_frame_xic): Use it.
117 (xic_set_xfontset): Ditto.
c27ed90a 118
068f3848 119 * xterm.c (xim_destroy_callback): Ditto.
c27ed90a
JD
120
121
59508699
JR
1222004-10-20 B. Anyos <banyos@freemail.hu> (tiny change)
123
124 * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
125
dede2792
JD
1262004-10-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
127
3aca2078
JD
128 * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
129 XSync.
130
dede2792
JD
131 * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
132 New variables and constant.
133 (main): Calculate heap_bss_diff. If we are dumping and the
134 heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
135 and exec ourself again.
136 (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
137 print a warning.
138
139 * lastfile.c: Make my_endbss and my_endbss_static available on all
140 platforms.
141
142 * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
143 * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
144
1dc5ba01
LT
1452004-10-19 Luc Teirlinck <teirllm@auburn.edu>
146
147 * data.c (Flocal_variable_if_set_p): Doc fix.
148
950090be
JR
1492004-10-19 Jason Rumney <jasonr@gnu.org>
150
151 * w32.c (init_environment): Set emacs_dir correctly when running
152 emacs from the build directory.
153
8550b998
RS
1542004-10-19 Richard M. Stallman <rms@gnu.org>
155
156 * editfns.c (Fdelete_and_extract_region):
157 If region is empty, return null string.
158
08dedea6
JD
1592004-10-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
160
1dc5ba01 161 * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
08dedea6 162 and canon_width.
068f3848 163 (xg_frame_cleared): Remove.
08dedea6 164
068f3848
SM
165 * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
166 (xg_find_top_left_in_fixed): Remove.
08dedea6
JD
167 (xg_create_scroll_bar): Put an event box widget between
168 the scroll bar widget and the edit widget.
169 (xg_show_scroll_bar): Show the parent widget (the event box).
170 (xg_remove_scroll_bar): Destroy parent (the event box) also.
171 (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
172 Move the parent (the event box) widget inside the fixed widget.
173 Move window clear to xterm.c.
174
068f3848 175 * gtkutil.h (xg_frame_cleared): Remove.
1dc5ba01 176
08dedea6 177 * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
068f3848
SM
178 (x_scroll_bar_create, XTset_vertical_scroll_bar):
179 Remove arguments left and width to xg_update_scrollbar_pos.
08dedea6
JD
180 (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
181
8550b998 1822004-10-19 Kenichi Handa <handa@m17n.org>
e3e55463
KS
183
184 * xdisp.c (display_mode_element): Fix display of wide chars.
e3e55463 185
84338890
JD
1862004-10-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
187
188 * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
189 gdk_window_clear and move gdk_window_process_all_updates after
190 clear so events are sent to the X server in correct order.
191
6e1b0d8c
KH
1922004-10-18 Kenichi Handa <handa@m17n.org>
193
194 * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
195 comparing font names.
8550b998 196 (fs_query_fontset): Use fast_string_match for comparing fontset names.
6e1b0d8c
KH
197 (list_fontsets): Likewise.
198
199 * search.c (fast_string_match_ignore_case): New function.
200
201 * lisp.h (fast_string_match_ignore_case): Extern it.
202
345e75a8
KS
2032004-10-17 Kim F. Storm <storm@cua.dk>
204
205 * xdisp.c (overlay_arrow_at_row): Return overlay string rather
206 than bitmap if there is not left fringe.
207 (get_overlay_arrow_glyph_row): Also used on windows system.
208 (display_line): Display overlay string if no left fringe.
209
be13cbb7
JR
2102004-10-16 Jason Rumney <jasonr@gnu.org>
211
212 * w32fns.c (w32_font_match): Encode font name being matched.
213
c2e2ede7
RS
2142004-10-16 Richard M. Stallman <rms@gnu.org>
215
216 * window.c (Fspecial_display_p): Doc fix.
217
3584d95d
SM
2182004-10-15 Stefan <monnier@iro.umontreal.ca>
219
220 * doc.c (Fsubstitute_command_keys): Fix remap-handling.
221 Don't ignore menus, because where-is-internal already does it for us.
222
699a0392
KS
2232004-10-15 Kim F. Storm <storm@cua.dk>
224
b3c7a89b
KS
225 * xdisp.c (redisplay_window): Only update fringes and vertical
226 border on window frames.
699a0392 227
4e382b0f
AS
2282004-10-14 Andreas Schwab <schwab@suse.de>
229
230 * m/ia64.h (DATA_SEG_BITS): Don't define.
231
329a7be2
KS
2322004-10-14 Kim F. Storm <storm@cua.dk>
233
234 * xterm.h: Include Xutil.h after keysym.h to work around bug
dbb37962 235 in some X versions.
329a7be2 236
982241b1
SM
2372004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
238
239 * fns.c (map_char_table): Add missing gcpros.
240
9238467d
SM
2412004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
242
243 * keymap.c (get_keymap): An autoload form is not a keymap.
244
245 * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
246
4440e3ca
KS
2472004-10-13 Kim F. Storm <storm@cua.dk>
248
7cfdabde
KS
249 * callproc.c (Fcall_process): Simplify handling of display arg.
250 Resume `display_on_the_fly' once a coding system is determined.
251
4440e3ca
KS
252 * xdisp.c (redisplay_preserve_echo_area): Fix last change.
253
1c8dec6a
KS
2542004-10-12 Kim F. Storm <storm@cua.dk>
255
256 * xdisp.c (redisplay_preserve_echo_area): Flush display in case
257 caller, such as call-process, is not going to poll for input.
258 (calc_line_height_property): Handle case where it->object is nil.
259
260 * xterm.c (x_redisplay_interface): Fix flush_display_optional.
261
170b174c
KH
2622004-10-12 Kenichi Handa <handa@m17n.org>
263
9238467d
SM
264 * xdisp.c (get_next_display_element):
265 If unibyte_display_via_language_environment is zero, display 8-bit
170b174c
KH
266 chars in octal in unibyte buffer.
267
b583964c
KS
2682004-10-12 Kim F. Storm <storm@cua.dk>
269
270 * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
271 are no ordinary bindings.
272
29fabd8c
JD
2732004-10-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
274
9238467d 275 * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
29fabd8c 276
c3f4c690
ST
2772004-10-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
278
9238467d
SM
279 * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
280 (x_lower_frame): Add BLOCK_INPUT around SendBehind.
c3f4c690 281 (make_mac_frame): Add BLOCK_INPUT around the making of a
9238467d
SM
282 terminal frame.
283 (mac_initialize): Add BLOCK_INPUT around carbon initialization.
284 * macgui.h (mktime): Use emacs_mktime.
c3f4c690
ST
285 * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
286 Make a cancel file-open dialog be like C-g.
9238467d
SM
287 * mac.c (mktime): Use emacs_mktime.
288 (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
289 (Fmac_paste_function): Add better error handling for carbon cut/paste.
c3f4c690 290
9688f9eb
KS
2912004-10-10 Kim F. Storm <storm@cua.dk>
292
293 * keyboard.c (timer_resume_idle): New function to resume idle
294 timer without resetting timers on the idle list.
295 (read_char): Use timer_resume_idle. Remove local var last_idle_start.
296 (timer_start_idle, timer_stop_idle): Declare static.
297 (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
298
299 * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
300
f7f3a65f
ST
3012004-10-08 Steven Tamm <steventamm@mac.com>
302
9238467d 303 * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
f7f3a65f 304 * macterm.c (mac_check_for_quit_char): Remove warning for using
9238467d 305 NULL where 0 should be used.
f7f3a65f
ST
306 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
307 objc/malloc.h
9238467d 308 * mac.c: Include time.h for Tiger compatibility.
f7f3a65f 309
3c7d999a
KS
3102004-10-07 Kim F. Storm <storm@cua.dk>
311
312 * xdisp.c (redisplay_window): Fix flicker on vertical line between
313 windows. Update vertical line after drawing window fringes, but
314 only if actually drawing any bitmaps--or there is no fringe.
315
316 * xterm.c (x_update_window_end): Likewise.
317 * macterm.c (x_update_window_end): Likewise.
318 * w32term.c (x_update_window_end): Likewise.
319
320 * fringe.c (draw_window_fringes): Return value now indicates if
321 any fringe bitmaps were redrawn (or there are no fringes).
322
323 * dispextern.h (draw_window_fringes): Update prototype.
324
bf06c82f
ST
3252004-10-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
326
327 * macfns.c (mac_get_window_bounds): Add extern.
328 (x_real_positions): Use mac_get_window_bounds.
329
330 * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
331 xmenu.c (YAILOM).
3c7d999a 332
bf06c82f
ST
333 * macterm.c [!MAC_OSX]: Include Windows.h.
334 (front_emacs_window): Rename from mac_front_window. All uses
335 changed. Return the frontmost non-tooltip emacs window.
336 (mac_get_window_bounds): New function.
337 (x_calc_absolute_position): Use the difference of width and height
338 between the inner and outer window.
339 (x_set_offset): Specify window position by the coordinae of the
340 outer window. Adjust the position if the title bar is completely
341 outside the screen.
342 (app_is_suspended, app_sleep_time): Remove unused variables.
343 (do_app_resume, do_app_suspend): Remove their contents because
344 window-activate/deactivate events will do the job.
345 (do_zoom_window): Remove unused variables. Make compliant to the
346 standard way of zooming. Set f->left_pos and f->top_pos.
347 (XTread_socket): Don't use argument `expected'. Don't use
348 FrontWindow to determine the clicked window. Exclude unprocessed
349 mouseUp cases in the early stage. Add parentheses to fix operator
350 precedence.
351 (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
352
353
4cbbf6b7 3542004-10-05 Jan Dj\e,Ad\e(Brv. <jan.h.d@swipnet.se>
d8b43276
JD
355
356 * config.in: Regenerate.
357
358 * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
359 HAVE_EXECSHIELD.
360
b90ee8b5
JD
3612004-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
362
363 * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
364 a row if Alt or Meta has been found for that row. Also stop scanning
365 for Keysyms for that row.
366
904db1a2
KS
3672004-10-04 Kim F. Storm <storm@cua.dk>
368
0207b8ad
KS
369 * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
370 to list. Include overlay arrow bitmap in return value.
371
25f7220c
KS
372 * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
373 bars with fractional column width. If scroll bar separates two
374 windows, move it towards the window it belongs to. Only update
375 the padding area below the scroll bar widget when necessary,
376 i.e. when scroll bar widget is created, moved, or resized.
377
562020fe
KS
378 * xdisp.c (define_frame_cursor1): Do not change frame cursor
379 while tracking/dragging mouse.
380 (x_draw_vertical_border): Do not draw line if frame has scroll bars.
381
37e34af7
KS
382 * window.c (coordinates_in_window): Relax check for cursor
383 on vertial border between mode lines.
384 (Fset_window_fringes): Do not allow negative widths.
385 (Fset_window_scroll_bars): Likewise.
386
904db1a2
KS
387 * .gdbinit (pp): Shorthand for p ARG + pr.
388 (ff): New command: flush frame updates (X only).
389
38fe4f64
MA
3902004-10-03 Michael Albinus <michael.albinus@gmx.de>
391
392 * fileio.c (auto_save_1) Call Ffile_modes for remote files.
393
9de36315
KH
3942004-09-30 Kenichi Handa <handa@m17n.org>
395
07c381ad 396 * process.c (send_process): Free composition data.
9de36315 397
07c381ad 398 * fileio.c (Finsert_file_contents): Free composition data.
9de36315
KH
399
400 * coding.c (code_convert_region): Don't skip ASCIIs if there are
07c381ad
KH
401 compositions to encode.
402 (encode_coding_string): Likewise. Free composition data.
403
4042004-09-30 Florian Weimer <fw@deneb.enyo.de> (tiny change)
405
406 * coding.c (code_convert_region): Free composition data.
9de36315 407
f2a54fbc
KS
4082004-09-29 Kim F. Storm <storm@cua.dk>
409
dc5d6435
KS
410 * fringe.c: Remove limit on number of bitmaps.
411 (fringe_bitmaps, fringe_faces): Change to pointers.
412 (max_fringe_bitmaps): New var.
413 (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
414 (init_fringe): Allocate fringe_bitmaps and fringe_faces.
415
416 * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
417 (struct glyph_row): Reorder fringe_bitmap related fields.
418 (struct it): Likewise.
419
420 * w32term.c (fringe_bmp): Change to pointer.
421 (max_fringe_bmp): New var.
422 (w32_define_fringe_bitmap): Expand fringe_bmp.
423 (w32_draw_fringe_bitmap): Check max_fringe_bmp.
424 (w32_destroy_fringe_bitmap): Likewise.
425
4262004-09-29 Kim F. Storm <storm@cua.dk>
427
428 * fringe.c: Simplify last change.
f2a54fbc
KS
429 (lookup_fringe_bitmap): New function.
430 (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
431 (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
432 Keep standard bitmaps in Vfringe_bitmaps.
433 (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
434 (Fset_fringe_bitmap_face): Likewise.
435
436 * dispextern.h (lookup_fringe_bitmap): Add prototype.
437 (valid_fringe_bitmap_p): Remove prototype.
438
439 * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
440
841a8bca
KS
4412004-09-29 Kim F. Storm <storm@cua.dk>
442
1f2da365
KS
443 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
444 (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
445
841a8bca
KS
446 * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
447
448 * fringe.c (Vfringe_bitmaps): New variable.
449 (syms_of_fringe): DEFVAR_LISP it.
450 (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
451 Change arg to Lisp_Object and fail if not an integer.
452 (get_fringe_bitmap_name, resolve_fringe_bitmap)
453 (destroy_fringe_bitmap): New functions.
9238467d
SM
454 (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
455 Use destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and
841a8bca
KS
456 clear its fringe property.
457 (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
458 Fdestroy_fringe_bitmap.
459 (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
460 bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps
461 and set fringe property. Signal error if no free slots.
462 (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
463 (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
464
465 * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
466 symbols with a fringe property.
467
4d965590
KS
4682004-09-27 Kim F. Storm <storm@cua.dk>
469
470 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
471 Doc fix. Format may now be a symbol or alist, not a cons.
472
473 * fringe.c (update_window_fringes): Handle new formats of
474 indicate-buffer-boundaries (symbol or alist). No longer
475 allow a simple cons.
476 (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
477
e888c2b3
JD
4782004-09-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
479
9238467d 480 * config.in: Rebuild.
e888c2b3 481
83f1cb94
JD
4822004-09-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
483
484 * config.in: Rebuild.
485
dd3b1d60 486 * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
83f1cb94 487
2c51754c
SM
4882004-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
489
490 * xterm.c (x_term_init): Work around a bug in some X servers.
491
3df5f8aa
RS
4922004-09-18 Richard M. Stallman <rms@gnu.org>
493
557ca2c1
RS
494 * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
495
3df5f8aa
RS
496 * xdisp.c (try_window_reusing_current_matrix):
497 Handle the case where we reach the old displayed text,
498 out of sync with the old line boundary.
499
9238467d 5002004-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
4b70e2c9
SM
501
502 * fileio.c (Finsert_file_contents): Fix case of replacement in a
503 narrowed buffer.
504
bfa02563
KS
5052004-09-14 Kim F. Storm <storm@cua.dk>
506
a25fe164
KS
507 * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
508
bfa02563
KS
509 * xfaces.c (Qface_no_inherit): New var.
510 (syms_of_xfaces): Intern and staticpro it.
511 (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
512 (Finternal_copy_lisp_face, update_face_from_frame_parameter):
513 Don't increment face_change_count when face has non-nil
514 face-no-inherit property.
515
126f9c02
SM
5162004-09-13 Stefan Monnier <monnier@iro.umontreal.ca>
517
892a8eb5
SM
518 * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
519 (Fbyte_code): Remove dead code after `wrong_type_argument'.
520
126f9c02 521 * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
9238467d 522 before doing the mark_stack_check_gcpros since they're not on the stack.
126f9c02 523
c0ad3b38
KS
5242004-09-12 Kim F. Storm <storm@cua.dk>
525
526 * editfns.c (Fformat): Handle format strings with multiple text
527 properties. Reverse text property list from the format string,
528 so the positions are in increasing order.
529
844fc085
JD
5302004-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
531
532 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
533 x_uncatch_errors so that possible protocol errors are delivered.
534
b106731c
EZ
5352004-09-10 Eli Zaretskii <eliz@gnu.org>
536
21065c92
EZ
537 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
538 blockinput.h.
539 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
540 charset.h, and coding.h
9238467d 541 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
21065c92
EZ
542 (term.o): Depend on window.h and keymap.h.
543 (abbrev.o): Depend on syntax.h.
544 (callint.o): Depend on keymap.h.
545 (casefiddle.o): Depend on charset.h and keymap.h.
546 (category.o): Depend on keymap.h.
547 (coding.o): Depend on dispextern.h.
548 (cmds.o): Depend on keyboard.h and keymap.h.
549 (dispnew.o): Depend on indent.h and intervals.h.
550 (doc.o): Depend on keymap.h.
551 (editfns.o): Depend on frame.h.
552 (emacs.o): Depend on dispextern.h.
553 (fileio.o): Don't depend on ccl.h.
554 (filelock.o): Depend on charset.h and coding.h.
555 (frame.o): Depend on w32term.h and macterm.h.
556 (insdel.o): Depend on region-cache.h.
557 (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
558 (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
559 (search.o): Depend on $(INTERVALS_SRC).
560 (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
561 (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
562 xterm.h, w32term.h, and macterm.h.
563 (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
564 w32term.h, and macterm.h.
565 (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
566 region-cache.h, xterm.h, w32term.h, and macterm.h.
567 (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
568 (data.o): Depend on frame.h.
569 (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
570 (print.o): Depend on termchar.h and $(INTERVALS_SRC).
571 (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
572 (intervals.o): Depend on keymap.h.
573
9238467d
SM
574 * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
575 Add debugging print-out to termscript.
b106731c 576
64b7122d
RS
5772004-09-09 Richard M. Stallman <rms@gnu.org>
578
579 * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
580
5670531e
RS
5812004-09-08 Richard M. Stallman <rms@gnu.org>
582
6cb4a892
RS
583 * window.c (Fset_window_buffer): Doc fix.
584
5670531e
RS
585 * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
586
7e388eb7
JL
5872004-09-08 Dan Nicolaescu <dann@ics.uci.edu>
588
589 * minibuf.c (history_delete_duplicates): New variable.
590 (read_minibuf): Use it.
591 (syms_of_minibuf): Create the corresponding lisp variable.
592
370e3587
KS
5932004-09-08 Kim F. Storm <storm@cua.dk>
594
595 * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
596 overlay just before point.
597
f844ba4e
LT
5982004-09-07 Luc Teirlinck <teirllm@auburn.edu>
599
600 * buffer.h (struct buffer): Add auto_save_file_format field.
9238467d
SM
601 * buffer.c (reset_buffer, init_buffer_once):
602 Handle auto_save_file_format field.
f844ba4e
LT
603 (syms_of_buffer): Add DEFVAR_PER_BUFFER for
604 `buffer-auto-save-file-format'.
f844ba4e
LT
605 * fileio.c: Delete declaration for removed Vauto_save_file_format.
606 (build_annotations): Adapt to replacement of
607 `auto-save-file-format' with the new buffer-local variable
608 `buffer-auto-save-file-format'.
609 (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
610
f0f90717
JR
6112004-09-07 Jason Rumney <jasonr@gnu.org>
612
613 * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
614
9238467d
SM
615 * w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]:
616 Handle Unicode menu titles.
f0f90717 617
4e14f66c
KS
6182004-09-07 Kim F. Storm <storm@cua.dk>
619
620 * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor'
621 property from text property or overlay strings at point.
622
9238467d 6232004-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
1806714a
SM
624
625 * xmenu.c (update_submenu_strings): YAILOM.
626 (set_frame_menubar): Make sure last_i is initialized.
627
1f06d367
JR
6282004-09-03 Jason Rumney <jasonr@gnu.org>
629
1806714a 630 * w32menu.c (_widget_value): Add lname and lkey.
1f06d367
JR
631 (digest_single_submenu): Set lname and lkey in widget_value
632 instead of name and key.
633 (update_submenu_strings): New function.
634 (set_frame_menubar): Remove call to inhibit_garbage_collection,
635 call update_submenu_strings.
636
637 * w32menu.c (globals_of_w32menu): Check for Unicode API.
638 (digest_single_submenu, w32_menu_show): Encode menu strings as
639 UTF-8 if Unicode API is available.
640 (utf8to16): New function.
641 (add_menu_item): Use it when calling Unicode API.
1806714a 642
46540080
KS
6432004-09-03 Kim F. Storm <storm@cua.dk>
644
645 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
646 in overlay or text-property strings; set cursor on corresponding
647 glyph rather than at end of the string.
648
9277ba61 6492004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
46540080 650
9277ba61 651 * macfns.c (x_real_positions): Save the current window port and
1806714a
SM
652 set a new one before obtaining the global coordinate.
653 Use FRAME_MAC_WINDOW.
654 (x_set_name, x_set_title): Encode title to UTF8.
655 Use SetWindowTitleWithCFString.
9277ba61
ST
656 (Fx_server_version): Get correct OS version.
657
1806714a
SM
658 * macmenu.c (add_menu_item): Remove unused variable `i'.
659 Don't let separator items destroy refence constants of other menu items.
9277ba61
ST
660
661 * macterm.c (x_update_end): Move SetPortWindowPort to inside
662 BLOCK_INPUT.
663 (x_set_offset): Use FRAME_MAC_WINDOW.
664
665 * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
666 nontext_cursor if it is on a scroll bar.
667
668 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
669 Carbon support.
1806714a
SM
670 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
671 Use LIBS_CARBON.
9277ba61 672
b10daec7
JD
6732004-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
674
675 * xfns.c (x_set_name_internal): New function. Check if we shall call
676 xfree before ENCODE_UTF_8.
677 (x_set_name, x_set_title): Call x_set_name_internal.
678
f7e22385
JR
6792004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
680
681 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
682 reload it.
683
2bf436c3
JD
6842004-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
685
1806714a 686 * macmenu.c (_widget_value): Add lname and lkey.
16ceacc2
JD
687 (single_submenu): Set lname and lkey in widget_value
688 instead of name and key.
689 (update_submenu_strings): New function.
690 (set_frame_menubar): Remove call to inhibit_garbage_collection,
691 call update_submenu_strings.
692
2bf436c3
JD
693 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
694 instead of name and key.
695 (update_submenu_strings): New function.
696 (set_frame_menubar): Remove call to inhibit_garbage_collection,
ec867797 697 call update_submenu_strings.
2bf436c3
JD
698
699 * gtkutil.h (_widget_value): Added lname and lkey.
700
11715f92
ST
7012004-08-30 Steven Tamm <steventamm@mac.com>
702
703 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
704 by using different names for inner loop variables.
705
5500be54
JD
7062004-08-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
707
059cd329
JD
708 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
709 from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
710
5500be54
JD
711 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
712 tool bar items is 0.
713
383418e5
ST
7142004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
715
716 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
717 strings in menu items.
718 (single_submenu): Use ENCODE_MENU_STRING
719 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
720 button release isn't passed to event loop
721 (add_menu_item): Use SetMenuItemWithCFString
722
6eb3ee72
ST
7232004-08-26 Steven Tamm <steventamm@mac.com>
724
725 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
726 tool-bar/menu click
727 * macfns.c (Fx_file_dialog): Implemented using NavServices
728
10b43ac3
JD
7292004-08-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
730
2728b5d0
JD
731 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
732
10b43ac3
JD
733 * xfns.c (x_window_to_frame, x_any_window_to_frame)
734 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
735 (x_top_window_to_frame): Return 0 if wdesc is None.
736
2ee3b79e
RS
7372004-08-22 Richard M. Stallman <rms@gnu.org>
738
739 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
740 HAVE_TERMIOS]: If there's no char for this signal, drop through
741 and use system calls.
742
743 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
744
9a1ba2ea
KS
7452004-08-20 Kim F. Storm <storm@cua.dk>
746
747 * process.c (wait_reading_process_output): Rename from
748 wait_reading_process_input. All uses changed.
749 (wait_reading_process_output_1): Rename from
750 wait_reading_process_input_1. All uses changed.
751
752 * dispnew.c (Fsleep_for): Remove obsolete code.
753
295f3b30
KH
7542004-08-20 Kenichi Handa <handa@m17n.org>
755
756 * syntax.c (skip_chars): Fix for unibyte case.
757
27615979
SM
7582004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
759
760 * syntax.c (char_quoted): Mixup byte/char pos.
761 (back_comment): Fixup globals in all cases.
762
00267f94
JD
7632004-08-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
764
765 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
766 passing it to gtk_window_set_title.
767
2439909e
KS
7682004-08-19 Kim F. Storm <storm@cua.dk>
769
6ba0f14c
KS
770 * process.c (wait_reading_process_input): Clean up.
771 Add wait_for_cell, wait_proc, and just_wait_proc args
772 to avoid overloading `read_kbd' and `do_display' args.
773 Change read_kbd arg to int. All callers changed.
774
2439909e
KS
775 * process.c (process_send_signal): Use CDISABLE.
776
777 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
778
101c421e
KS
7792004-08-18 Kim F. Storm <storm@cua.dk>
780
781 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
782 forward to wait_reading_process_input via DO_DISPLAY arg.
783 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
784 object, only process output from that process; also inhibit
785 running timers if DO_DISPLAY==-2.
786
c438dc33
KS
7872004-08-17 Kim F. Storm <storm@cua.dk>
788
789 * process.c (process_send_signal): Fix last change--use
790 _POSIX_VDISABLE instead of CVDISABLE when available.
791
8afc13c6
RS
7922004-08-16 Richard M. Stallman <rms@gnu.org>
793
794 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
795 Set VQUIT and VINTR chars to the standard ones if they are unset.
796 [AIX]: Don't do that here. And don't force VINTR to standard
797 when SIGNALS_VIA_CHARACTERS.
798
c438dc33 799 * process.c (process_send_signal)
8afc13c6
RS
800 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
801 Do nothing if the character is CVDISABLE.
802
803 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
804
c438dc33 805 * intervals.c (move_if_not_intangible):
8afc13c6
RS
806 Force POSITION to be between BEGV and ZV.
807
6dad1714
JPW
8082004-08-14 John Paul Wallington <jpw@gnu.org>
809
810 * buffer.c (Frestore_buffer_modified_p): Doc fix.
811
812 * fileio.c (Fread_file_name): Doc fix.
813
814 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
815
2bd77330
LT
8162004-08-09 Luc Teirlinck <teirllm@auburn.edu>
817
818 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
819
c90e7e43
LT
8202004-08-08 Luc Teirlinck <teirllm@auburn.edu>
821
822 * keyboard.c: Declare Qdisabled_command_function instead of
8392e138 823 Qdisabled_command_hook.
c90e7e43 824 (Fcommand_execute): Use Qdisabled_command_function instead of
8392e138 825 Qdisabled_command_hook.
c90e7e43
LT
826 (syms_of_keyboard): Ditto.
827
81909a1a
LT
8282004-08-07 Luc Teirlinck <teirllm@auburn.edu>
829
830 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
831 (syms_of_keymap) <key-translation-map>: Doc fixes.
832
0cedd530
SM
8332004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
834
1725a7c9
SM
835 * window.c (window_list_1): YAILOM.
836
0cedd530
SM
837 * fileio.c (make_temp_name): Handle multibyte prefixes.
838
2515a131
LT
8392004-08-06 Luc Teirlinck <teirllm@auburn.edu>
840
841 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
842 Doc fix.
843
c8b20fb7
KH
8442004-08-03 Kenichi Handa <handa@m17n.org>
845
846 * coding.c (decode_coding_string): Adjust coding->consumed, and
847 etc. with shrinked_bytes.
848
fb8b092b
KS
8492004-08-03 Kim F. Storm <storm@cua.dk>
850
851 * indent.c (compute_motion): Fix check for full width window
852 in non-window case. Do not count left truncation glyph on
853 window systems.
854
df133612
LT
8552004-08-02 Luc Teirlinck <teirllm@auburn.edu>
856
857 * data.c (Finteractive_form): Doc fix.
858
0f7a93c1
KS
8592004-08-02 Kim F. Storm <storm@cua.dk>
860
861 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
862 properly accounting for continuation glyph on non-window systems.
863 (Fcompute_motion): Use actual window width if WIDTH is nil, and
864 actual window width/height if TOPOS is nil, properly accounting for
865 continuation glyphs on non-window systems, and optional header lines.
866 (vmotion): Let compute_motion calculate actual window width.
867
868 * window.c (window_scroll_line_based): Let compute_motion
869 calculate actual window width.
870
f491e1ed
KS
8712004-08-02 Kim F. Storm <storm@cua.dk>
872
873 * process.c (read_process_output): Use whole read buffer.
874 Don't trigger adaptive read buffering on errors.
875
83f64226
LT
8762004-07-31 Luc Teirlinck <teirllm@auburn.edu>
877
878 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
879
880 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
881
882 * callint.c (Fcall_interactively): Doc fix.
883
8afc13c6
RS
8842004-07-30 Richard M. Stallman <rms@gnu.org>
885
886 * abbrev.c (Fexpand_abbrev): Undo previous change.
887
7c111482
KS
8882004-07-30 Kim F. Storm <storm@cua.dk>
889
890 * editfns.c (Fformat): Allocate extra (dummy) element in info.
891
ee945d08
LT
8922004-07-28 Luc Teirlinck <teirllm@auburn.edu>
893
894 * eval.c (Fdefvar, Fdefconst): Doc fixes.
895
3f911c94
KS
8962004-07-27 Kim F. Storm <storm@cua.dk>
897
898 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
899 we have ensured that the glyph fits on the current line (or returned
900 MOVE_LINE_CONTINUED otherwise).
901
f29ff8c7
KS
9022004-07-26 Kim F. Storm <storm@cua.dk>
903
904 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
905 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
906 if target position is at end of display line but char is not a newline.
907
81159bb9
RS
9082004-07-25 Richard M. Stallman <rms@gnu.org>
909
ab431b61
RS
910 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
911 instead of ON_VERTICAL_BORDER, when on scroll bar.
912 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
913
914 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
915
f29ff8c7 916 * window.c (Fcoordinates_in_window_p):
81159bb9
RS
917 Take account of FRAME_INTERNAL_BORDER_WIDTH.
918
919 * alloc.c (check_cons_list): New function (contents commented out).
920
fc820cc5
LT
9212004-07-24 Luc Teirlinck <teirllm@auburn.edu>
922
923 * xfaces.c (Fcolor_supported_p): Doc fix.
924
925 * frame.c (Fselect_frame, Fset_frame_selected_window)
926 (Fframe_visible_p, Fraise_frame): Doc fixes.
927
289978b5
LT
9282004-07-24 Richard M. Stallman <rms@gnu.org>
929
7630911d
RS
930 * keyboard.h (not_single_kboard_state): Declared.
931
932 * fileio.c (Fwrite_region): Doc fix.
933
934 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
935
936 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
937 only when a real abbrev is present.
938
289978b5
LT
939 * xfns.c (x_icon_verify): New function.
940 (Fx_create_frame): Use it.
941
63cc10ae
KS
9422004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
943
944 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
945
36f826d4
KS
9462004-07-21 Kim F. Storm <storm@cua.dk>
947
948 * window.h (struct glyph_matrix): New members nrows_scale_factor
949 and ncols_scale_factor.
950
951 * window.c (make_window): Initialize nrows_scale_factor and
952 ncols_scale_factor members.
953
954 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
955 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
956 (required_matrix_height): Apply nrows_scale_factor.
957 (required_matrix_width): Apply ncols_scale_factor.
958
959 * xdisp.c (display_line): Increment nrows_scale_factor and set
960 fonts_changed_p if past last allocated row.
961 (append_glyph, append_composite_glyph, produce_image_glyph)
962 (append_stretch_glyph): Increment ncols_scale_factor and set
963 fonts_changed_p if current area is full.
964
5fc1c546
JD
9652004-07-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
966
967 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
968
cb7516e5
LT
9692004-07-19 Luc Teirlinck <teirllm@auburn.edu>
970
971 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
972 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
973 (Fset_window_start, Fscroll_up, Fscroll_down)
974 (Fother_window_for_scrolling, Fscroll_other_window)
975 (Fsave_window_excursion, Fset_window_vscroll)
976 (syms_of_window) <window-size-fixed>: Doc fixes.
977
dda741ec
JR
9782004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp> (tiny change)
979
980 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
981 ENCODE_SYSTEM for filenames.
982
bfcf6608
ST
9832004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
984
985 * mac.c (sys_select): Block input around call to
986 ReceiveNextEvent to prevent breakage. Correctly handle
987 blocking on event queue only by calling ReceiveNextEvent
988 instead of select (since GUI events aren't on an fd).
989 (sys_read): Remove function
990 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
991
e082ac9d
ST
9922004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
993
994 * mac.c (sys_select): Redo sys_select to use alarm-based
cb7516e5 995 polling instead of 1 sec timeouts (like solaris).
e082ac9d 996
cb7516e5 997 * macterm.c (x_make_frame_visible): Comment in polling on
e082ac9d
ST
998 frame creation.
999
1000 * keyboard.c: Undef SIGIO on Carbon
1001
1002 * atimer.c (alarm_signal_handler): Call alarm handlers after
1003 scheduling.
1004
1005 * eval.c (Feval): Remove quit_char test
1006
1007 * process.c (wait_reading_process_input): Remove clearing
1008 stdin for select call on process input.
1009
4b9da0fb
LT
10102004-07-18 Luc Teirlinck <teirllm@auburn.edu>
1011
1204e81c
LT
1012 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
1013 capitalization error in docstring.
4b9da0fb 1014
26503ad2
JB
10152004-07-17 Juanma Barranquero <lektu@terra.es>
1016
1017 * keyboard.c (not_single_kboard_state): Do nothing unless
1018 MULTI_KBOARD is defined.
1019
3751eb00
RS
10202004-07-17 Richard M. Stallman <rms@gnu.org>
1021
1022 * window.c (coordinates_in_window): Inside the window but outside
1023 its box to the L or R, return ON_VERTICAL_BORDER.
1024 (window_list_1): Rotate the list to start with WINDOW.
1025
1026 * print.c (print_preprocess): Test for print_depth at limit
1027 before entering in being_printed.
1028
1029 * keyboard.c (not_single_kboard_state): New function.
1030 (stuff_buffered_input): Now no-op only if no SIGTSTP.
1031
1032 * frame.c (Fdelete_frame): If we're in single_bboard_state on
1033 this kboard, and we delete its last frame, go to any_kboard_state.
1034
1035 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
1036
62eb6ca9
JR
10372004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp> (tiny change)
1038
1039 * w32fns.c (Fx_file_dialog): Encode strings in system coding
1040 system before passing them to OS functions for display.
1041
0f6af254
DK
10422004-07-15 David Kastrup <dak@gnu.org>
1043
f9253326
KS
1044 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
1045 Apparently fixes an abort condition.
0f6af254 1046
386c8f42
LT
10472004-07-14 Luc Teirlinck <teirllm@auburn.edu>
1048
1049 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
1050 instead of a cons.
1051
366511da
MB
10522004-07-14 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
1053
1054 * keyboard.c (echo_dash): Do nothing if there already is a dash
1055 at the end of the echo string.
1056
f85409d3
KS
10572004-07-12 Kim F. Storm <storm@cua.dk>
1058
1059 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
1060 if GC_MARK_STACK.
1061
0ba2e87b
LT
10622004-07-10 Luc Teirlinck <teirllm@auburn.edu>
1063
da38045d
LT
1064 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
1065
0ba2e87b
LT
1066 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
1067 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
1068 (Freplace_buffer_in_windows, Fset_window_buffer)
1069 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
1070 (syms_of_window): Expand docstring of `display-buffer-function'.
1071
5668fbb8
LT
10722004-07-09 Luc Teirlinck <teirllm@auburn.edu>
1073
1074 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
1075 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
1076 that time values of the type (HIGH . LOW) are considered obsolete.
1077
a085bf9d
LT
10782004-07-06 Luc Teirlinck <teirllm@auburn.edu>
1079
669de2fb
LT
1080 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
1081 docstring.
1082
bac66325 1083 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
a085bf9d 1084
8e975df9
JPW
10852004-07-06 John Paul Wallington <jpw@gnu.org>
1086
1087 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
1088
fa164e6a
JPW
1089 * fns.c (Fclear_string): Signal an error if STRING is not a string.
1090
2bac9bb1
JD
10912004-07-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1092
1093 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
1094 instead of CGMainDisplayID (only in OSX 10.2 and later).
1095
316ef0dc
JPW
10962004-07-04 John Paul Wallington <jpw@gnu.org>
1097
1098 * fileio.c (read_file_name_completion_ignore_case): New variable.
1099 (syms_of_fileio): Declare and initialise it.
1100 (Fread_file_name): Bind `completion-ignore-case' to respect it.
1101
2a1a35c6
EZ
11022004-07-03 Eli Zaretskii <eliz@gnu.org>
1103
1104 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
1105 for event.x and event.y.
1106
33a72331
KH
11072004-07-01 Kenichi Handa <handa@m17n.org>
1108
1109 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
1110 after getting a new string by pre-write-conversion.
1111
9238467d 11122004-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
07a6ab76
SM
1113
1114 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
1115 (x_calc_absolute_position): Remove unused var `child'.
1116
1117 * xfaces.c (x_supports_face_attributes_p)
1118 (Fdisplay_supports_face_attributes_p): YAILOM.
1119 (tty_supports_face_attributes_p): Remove unused var `i'.
1120
1121 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
1122 back_unibyte_ok.
1123
1124 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
1125
1126 * fontset.c (Fset_fontset_font): Remove unused vars `family' and `registry'.
1127
1128 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
1129
f96ec754
AS
11302004-06-30 Andreas Schwab <schwab@suse.de>
1131
1132 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
1133 (Finit_image_library): Pass LIBRARIES through to
1134 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
1135 (lookup_image_type): Pass Qnil as second argument to
1136 Finit_image_library.
1137
1138 * lisp.h: Declare Finit_image_library.
1139
59feca74 11402004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
c8d09ad8 1141
31983645
AS
1142 * macterm.c (do_window_activate, do_window_deactivate): Remove.
1143 (XTread_socket): Send mouse button events to the toolbox
1144 dispatcher even when the mouse is grabbed. Don't process window
1145 activate events for non-Emacs windows. Replace function calls to
1146 do_window_activate and do_window_deactivate with their contents.
1147 Reset mouse grabbing status when a window is deactivated.
59feca74 1148
c61278bb
ST
11492004-06-29 Steven Tamm <steventamm@mac.com>
1150
1151 * macterm.c (mac_get_emulated_btn)
1152 (mac_event_to_emacs_modifiers): Fix emulated mouse button
1153 support to correctly mask out modifiers.
1154
c3762cbd
DK
11552004-06-29 David Kastrup <dak@gnu.org>
1156
1157 * search.c (Fset_match_data): Allow buffer before end of list
1158 which can happen if set-match-data is using a pre-consed list.
1159
c61278bb 11602004-06-28 Steven Tamm <steventamm@mac.com>
e439b925
ST
1161
1162 * macterm.c (XTread_socket): Correctly set the frame position
1163 after the window is moved.
1164
74cdfe05
JD
11652004-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1166
1167 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
1168 gpix and gmask just before return to avoid memory leak.
03ecb80f
JD
1169 (xg_get_image_for_pixmap): Add workaround for monochrome displays
1170 so insensitive and activated icons look ok.
74cdfe05 1171
ef544dc8
JR
11722004-06-27 Jason Rumney <jasonr@gnu.org>
1173
1174 * w32fns.c (file_dialog_callback): Disable edit control if set
1175 to directories only on CDN_INITDONE message.
1176 (Fx_file_dialog): Default to directories only when prompt starts
1177 with "Dired".
1178
7b7990cc
KS
11792004-06-25 Kim F. Storm <storm@cua.dk>
1180
1181 * alloc.c (allocate_misc): Update total_free_markers.
1182 (free_misc): New function.
1183 (safe_alloca_unwind, free_marker): Use it.
1184
1185 * lisp.h (free_misc): Add prototype.
1186
1187 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
1188
d8c379f8
RS
11892004-06-24 Richard M. Stallman <rms@gnu.org>
1190
1191 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
1192 (syms_of_emacs): Lisp variables deleted.
1193
559cdd07
DK
11942004-06-23 David Kastrup <dak@gnu.org>
1195
94939b84
DK
1196 * search.c (Freplace_match): Adjust the match-data more thoroughly
1197 when replacing strings in the buffer.
1198 (Fmatch_data): When INTEGERS is non-nil and the last match was in
1199 a buffer, add the buffer as last element to the match data.
1200 (Fset_match_data): If an additional element of the match-data is a
1201 buffer, restore it to last_thing_searched.
c8d09ad8 1202 (save_search_regs): Save last_thing_searched as part of the match data.
559cdd07
DK
1203 (restore_match_data): Restore it again.
1204
dce417e7
LT
12052004-06-23 Luc Teirlinck <teirllm@auburn.edu>
1206
1207 * keymap.c (Ftext_char_description): Doc fix.
1208 * doc.c (Fsnarf_documentation): Doc fix.
1209
ef54b2d0
KS
12102004-06-22 Kim F. Storm <storm@cua.dk>
1211
b5bc4d05
KS
1212 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
1213
ef54b2d0
KS
1214 * lisp.h (struct Lisp_Save_Value): New member dogc.
1215 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
1216 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
1217 (SAFE_FREE_LISP): New macro.
1218
1219 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
1220 (make_save_value): Init new dogc member.
1221 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
1222
1223 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
1224 SAFE_FREE_LISP macros.
1225
3d33d993
KS
12262004-06-22 Kim F. Storm <storm@cua.dk>
1227
1228 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
1229 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
1230 in that memory area are unknown to GC. Add comments.
1231
1232 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
1233
5c917f98
KS
12342004-06-21 Kim F. Storm <storm@cua.dk>
1235
1236 * lisp.h (MAX_ALLOCA): Define here.
1237 (safe_alloca_unwind): Add prototype.
1238 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
1239
1240 * alloc.c (safe_alloca_unwind): New function.
1241
1242 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
1243
1244 * charset.c (Fstring): Use SAFE_ALLOCA.
1245
1246 * coding.c (MAX_ALLOCA): Remove define.
1247
1248 * data.c (MAX_ALLOCA): Remove define.
1249 (Faset): Use SAFE_ALLOCA.
1250
1251 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
1252
1253 * fns.c (string_make_multibyte, string_to_multibyte)
1254 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
1255 (MAX_ALLOCA): Remove define.
1256 (Fbase64_encode_region, Fbase64_encode_string)
1257 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
1258 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
1259 memory leak if encoding fails.
1260
1261 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
1262
9a09408e
EZ
12632004-06-21 Eli Zaretskii <eliz@gnu.org>
1264
1265 * print.c (Fwith_output_to_temp_buffer): Doc fix.
1266
376de739
RS
12672004-06-20 Richard M. Stallman <rms@gnu.org>
1268
1269 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
1270
1271 * search.c (match_limit): Cleaner err msg when no match data available.
1272
1273 * window.c (syms_of_window): Doc fix.
1274
1275 * keyboard.c (command_loop_1): Handle values `only' and `identity'
1276 for Vtransient_mark_mode.
1277
1278 * buffer.c (syms_of_buffer): Doc fix.
1279
acd81db9
DK
12802004-06-21 David Kastrup <dak@gnu.org>
1281
1282 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
1283 and unbinding of `case-fold-search' according to
1284 `completion-ignore-case' around calls of string-match and
1285 predicates, respectively. Should give satisfactory performance
1286 in all relevant cases.
1287
f303762d
JD
12882004-06-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1289
95911c74
JD
1290 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
1291 clip_x/y_origin.
1292
a6cb6b78
JD
1293 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
1294
f303762d
JD
1295 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
1296
1297 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
1298 on Mac OSX.
1299
bbdb2684
LT
13002004-06-16 Luc Teirlinck <teirllm@auburn.edu>
1301
1302 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
1303
5ea48b1c
KS
13042004-06-16 Kim F. Storm <storm@cua.dk>
1305
1306 * dispextern.h (Vimage_types): Remove extern.
1307
803aac3e
MB
13082004-06-16 Miles Bader <miles@gnu.org>
1309
1310 * image.c (lookup_image_type): Initialize image type if necessary.
1311
cdc97764
KS
13122004-06-15 Kim F. Storm <storm@cua.dk>
1313
c4a5739c
KS
1314 * xdisp.c (try_cursor_movement): Exclude header line from scroll
1315 margin at top of window.
1316 (try_window_reusing_current_matrix): Calculate proper cursor position
1317 after scrolling up with non-zero scroll margin, as the old cursor
1318 position corresponds to value of PT before executing this command.
1319 (try_window_id): Consider scroll margin at bottom of window too;
1320 otherwise we fail to scroll when hl-line-mode is enabled.
1321
cdc97764
KS
1322 * syntax.c (skip_chars): Only recognize [:class:] when it has the
1323 proper format and class is a lower-case word.
1324
5b166323
JD
13252004-06-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1326
1327 * gtkutil.c (xg_get_image_for_pixmap): New function.
c8d09ad8 1328 (xg_get_gdk_pixmap_and_mask): Remove.
5b166323
JD
1329 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
1330 xg_get_gdk_pixmap_and_mask.
cdc97764 1331
5b166323
JD
1332 * xterm.h (struct x_display_info): Typo in comment fixed.
1333
1ebd4f78
JB
13342004-06-14 Juanma Barranquero <lektu@terra.es>
1335
1336 * dispextern.h (Vimage_types): Make it conditional on
1337 HAVE_WINDOW_SYSTEM.
1338
1339 * image.c (Vimage_types): Move from xdisp.c.
1340 (Vimage_type_cache): New variable.
1341 (define_image_type): New argument indicating whether an image
1342 library was loaded; cache loaded status and return t on success,
1343 nil otherwise.
1344 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
1345 (w32_delayed_load): New function to load an image library from a
1346 list of possible filenames.
1347 (init_xpm_functions, init_png_functions, init_jpeg_functions)
1348 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
c8d09ad8 1349 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
1ebd4f78
JB
1350 (Finit_image_library): New function, extracted from `init_image'.
1351 Try to initialize an image library on demand and cache whether we
1352 were successful or not.
1353 (syms_of_image): Initialize `Vimage_types' and
1354 `Vimage_type_cache'. Add recognized image types to Vimage_types.
1355 Export `init-image-library'.
1356 (init_image): Remove initialization of all image types, except xbm
1357 and pbm.
1358
1359 * xdisp.c (Vimage_types): Delete (moved to image.c).
1360
904ee128
AS
13612004-06-14 Andreas Schwab <schwab@suse.de>
1362
1363 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
1364 Avoid calling specbind when completion-regexp-list is empty.
1365
092de21d
RS
13662004-06-13 Richard M. Stallman <rms@gnu.org>
1367
1368 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
1369 (re_wctype, re_iswctype, re_wctype_to_bit):
1370 Non-function definitions moved here from regex.c.
1ebd4f78 1371
092de21d
RS
1372 * regex.c (re_wctype, re_iswctype): Function defs longer static.
1373 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
1374 (re_wctype, re_iswctype, re_wctype_to_bit):
1375 Non-function definitions moved to regex.h.
1376
1377 * window.c (Fselect_window): Doc fix.
1378
1379 * syntax.c: Include regex.h.
1380 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
1381 If requested, make a list of classes, then check the scanned
1382 chars for membership in them.
1383 (in_classes): New function.
1384 Doc fix.
1385
1386 * keyboard.c (cmd_error): Don't call any_kboard_state
1387 if inside a recursive edit level.
1388
13892004-06-13 Lorentey K\e,Aa\e(Broly <lorentey@elte.hu>
1390
1391 * keyboard.c (command_loop): Call any_kboard_state before
1392 command_loop_2 when at top level.
1393
3ebc0939
AS
13942004-06-13 Andreas Schwab <schwab@suse.de>
1395
cea5d0d4
AS
1396 * print.c (print_object): Always use %ld for printing EMACS_INT.
1397
1398 * keyboard.c (cancel_hourglass_unwind): Return a value.
1399 (modify_event_symbol): Always use %ld for printing EMACS_INT.
1400 (Fexecute_extended_command): Likewise.
1401
1402 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
1403 avoid clashes.
1404 (SYNTAX): Likewise.
1405 (SYNTAX_WITH_FLAGS): Likewise.
1406 (SYNTAX_MATCH): Likewise.
1407
1408 * syntax.c (char_quoted): Avoid warning about undefined operation.
1409 (find_defun_start): Likewise.
1410 (scan_lists): Likewise.
1411 (INC_FROM): Likewise.
1412 (scan_sexps_forward): Likewise.
1413
be8c4ce4
AS
1414 * image.c: Include <ctype.h>.
1415
3ebc0939
AS
1416 * xfaces.c (face_attr_equal_p): Declare parameters.
1417
6fb41b5b
KH
14182004-06-13 Kenichi Handa <handa@m17n.org>
1419
1420 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
1421
fc3095ce
EZ
14222004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
1423
1424 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
1425
66189a40
KH
14262004-06-12 Kenichi Handa <handa@m17n.org>
1427
1428 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
1429 ccl_prog_stack_struct and update it.
1430 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
1431 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
1432 ccl->eof_ic on EOF.
1433 (ccl_debug_hook): New function.
1434 (struct ccl_prog_stack): New member eof_ic.
1435 (ccl_driver): Handle EOF in subrountine call correctly.
1436
14372004-06-11 Kenichi Handa <handa@m17n.org>
1438
1439 * coding.c (decode_coding_string): Check CODING_FINISH_INTERRUPT.
1440
1da71023
KS
14412004-06-11 Kim F. Storm <storm@cua.dk>
1442
1443 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
1444
e9efcef4
JB
14452004-06-11 Juanma Barranquero <lektu@terra.es>
1446
1447 * keyboard.c (Fposn_at_point): Doc fix.
1448
9b9ceb61
DK
14492004-06-11 David Kastrup <dak@gnu.org>
1450
1451 * search.c (match_limit): Don't flag an error if match-data
1452 exceeding the allocated search_regs.num_regs gets requested, just
1453 return Qnil.
1454
6e87ac8f
MB
14552004-06-08 Miles Bader <miles@gnu.org>
1456
1457 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
1458
0b0dea7b
JB
14592004-06-07 Juanma Barranquero <lektu@terra.es>
1460
1461 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
1462 (Fcurrent_time_string, Fcurrent_time_zone)
1463 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
1464
a0a23346
MB
14652004-06-07 Miles Bader <miles@gnu.org>
1466
08384afd 1467 * xfaces.c (struct named_merge_point): New type.
a0a23346
MB
1468 (push_named_merge_point): New function.
1469 (merge_named_face): New function.
1470 (merge_face_ref, face_at_buffer_position, face_at_string_position):
1471 Use `merge_named_face'.
1472 (merge_face_inheritance): Function removed.
c8d09ad8 1473 (merge_face_ref): Rename from `merge_face_vector_with_property'.
a0a23346
MB
1474 Add new `err_msgs' and `named_merge_points' args. Return error
1475 status. Only print error messages if ERR_MSGS is true. Don't try to
1476 do :inherit attribute validation.
1477 (merge_face_heights): Handle `unspecified' in both directions.
1478 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
1479 Call `merge_face_ref' instead of `merge_face_inheritance'.
1480 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
1481 (compute_char_face, face_at_buffer_position)
1482 (face_at_string_position): Call `merge_face_ref' instead of
1483 `merge_face_vector_with_property'.
1484
12d5b185
KH
14852004-06-07 Kenichi Handa <handa@m17n.org>
1486
1487 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
1488 the necessary places.
1489
2e2d7ee6
KS
14902004-06-07 Kim F. Storm <storm@cua.dk>
1491
1492 * process.c (Fdelete_process): Undo 2004-05-28 change.
1493 Instead, call status_notify also for network process.
1494 (status_message): Use process instead of status as arg.
1495 Give messages "deleted" or "connection broken by remote peer" for
1496 an exited network process.
1497 (status_notify): Change call to status_message.
1498 (read_process_output): Increase readmax to 4096. Do not increase
1499 buffer size for datagram channels (default is now large enough).
1500
fcf0d299
ST
15012004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
1502
1503 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
1504 problem due to newly defined variable.
1505
0722292b
MB
15062004-06-06 Miles Bader <miles@gnu.org>
1507
1508 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
1509 immediately if non-interactive or not initialized.
1510
ddfb8369
RS
15112004-06-05 Richard M. Stallman <rms@gnu.org>
1512
1513 * minibuf.c (Fcompleting_read): Doc fix.
1514
57015754
AS
15152004-06-05 Andreas Schwab <schwab@suse.de>
1516
1517 * macfns.c (x_create_tip_frame): Fix declaration after statement.
1518
23715ea6
JB
15192004-06-05 Juanma Barranquero <lektu@terra.es>
1520
1521 * keymap.c (Fdescribe_vector): Fix docstring.
1522 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
1523
8e330b22
MB
15242004-06-05 Miles Bader <miles@gnu.org>
1525
1526 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
1527 attributes have different values than the default face.
1528
9742a3a6
EZ
15292004-06-04 Eli Zaretskii <eliz@gnu.org>
1530
1531 * xfaces.c (x_supports_face_attributes_p): Make this function
1532 conditional on HAVE_WINDOW_SYSTEM.
c8d09ad8
SM
1533 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
1534 Don't call x_supports_face_attributes_p if it was not compiled in.
9742a3a6 1535
9717e36c
MB
15362004-06-04 Miles Bader <miles@gnu.org>
1537
1538 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
1539 from Ftty_supports_face_attributes_p.
1540 (x_supports_face_attributes_p): New function.
1541 (Ftty_supports_face_attributes_p): Function deleted.
1542 (Fdisplay_supports_face_attributes_p): New function.
1543 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
f9711de4 1544 (face_attr_equal_p): New function.
9717e36c
MB
1545 (lface_equal_p): Use it.
1546
52deb19f
JB
15472004-06-03 Juanma Barranquero <lektu@terra.es>
1548
1549 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
1550 (Vw32_color_map): Fix typo in docstring.
1551 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
1552 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
1553 Make argument names match their use in docstring.
1554
86d373e6
JB
15552004-06-02 Juanma Barranquero <lektu@terra.es>
1556
1557 Work around bugs/problems with MinGW builds of graphics libraries
1558 called from MSVC builds of Emacs.
1559
1560 * image.c (lookup_image): Make pointer to img static.
1561 (png_read_from_memory): Disable "global" optimization.
1562
2fb0ce67
SM
15632004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
1564
c8d09ad8
SM
1565 * eval.c (Fcondition_case): Fix usage. Simplify.
1566
2fb0ce67
SM
1567 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
1568
50bf7673
ST
15692004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1570
1571 * macfns.c: Don't include ccl.h.
1572 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
86d373e6
JB
1573 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
1574 TextUtils.h.
c8d09ad8 1575 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
50bf7673
ST
1576 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
1577 display height/width.
1578 (compute_tip_xy, Vx_max_tooltip_size): Declare.
1579 (unwind_create_tip_frame, compute_tip_xy): New functions.
1580 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
1581 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
1582 and last_show_tip_args.
2fb0ce67 1583
50bf7673
ST
1584 * macgui.h [!MAC_OSX]: Include Gestalt.h.
1585 (Cursor, No_Cursor): New defines.
c8d09ad8 1586 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
50bf7673
ST
1587 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
1588
1589 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
1590
1591 * macterm.c: Don't include Gestalt.h.
1592 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
1593 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
1594 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
1595 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
1596 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
1597 (construct_mouse_click, XTmouse_position)
1598 (x_scroll_bar_report_motion, x_calc_absolute_position)
1599 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
1600 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
1601 (note_mouse_movement): Clear the mouse face and reset the pointer
1602 shape when the pointer goes outside the frame without grabbing.
1603 (mac_front_window): New function.
1604 (mac_window_to_frame): New macro.
1605 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
1606 (do_window_activate, do_window_deactivate, do_app_resume)
1607 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
1608 (do_zoom_window, mac_do_receive_drag, XTread_socket)
1609 (mac_check_for_quit_char): Use mac_front_window and/or
1610 mac_window_to_frame.
1611 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
1612 scroll-bar click event.
1613 (mac_define_frame_cursor): Change the pointer shape.
c8d09ad8 1614 (x_free_frame_resources): Reset tip_window to NULL when it is disposed.
50bf7673 1615 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
c8d09ad8 1616 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
50bf7673
ST
1617 (do_window_update): Don't do anything if the updated window is the
1618 tooltip window.
1619 (do_mouse_moved): Handle mouse movement events here (previously in
1620 XTread_socket). Clear the mouse face if
1621 dpyinfo->mouse_face_hidden is set.
1622 (do_os_event, do_events): Remove (now in XTread_socket).
1623 (XTread_socket): Immediately return if interrupt_input_blocked.
c8d09ad8
SM
1624 Loop until all the events in the queue are processed.
1625 Rearrange codes for mouse grabbing. Add tooltip support. Include the
50bf7673
ST
1626 contents of do_os_event and do_events. Remove mouse movement
1627 handling (now in do_mouse_moved). Add the case where
1628 Vmouse_highlight has an integer value.
1629 (NewMacWindow): Remove.
1630 (make_mac_frame): Do what NewMacWindow previously did. Don't do
1631 excess initializations.
1632 (make_mac_terminal_frame): Previous initializations in
1633 make_mac_frame are moved here.
c8d09ad8
SM
1634 (mac_initialize_display_info):
1635 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
50bf7673
ST
1636
1637 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
1638 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
1639
08fd1251
RS
16402004-05-29 Richard M. Stallman <rms@gnu.org>
1641
1642 * lisp.h (truncate_undo_list): Update decl.
1643
1644 * alloc.c (undo_outer_limit): New variable.
1645 (syms_of_alloc): Defvar it.
1646 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
1647
1648 * undo.c (truncate_undo_list): New arg LIMITSIZE.
1649
1650 * alloc.c (lisp_align_malloc): Check for base == 0
1651 regardless of HAVE_POSIX_MEMALIGN.
1652 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
1653
227ef0ff
SM
16542004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
1655
1656 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
1657 (marker_blocks_pending_free): Remove.
1658 (Fgarbage_collect): Sweep after cleaning up undo-lists.
1659 Mark the undo lists after claning them up.
1660 Don't free block in marker_blocks_pending_free.
1661 (mark_buffer): Don't mark undo_list.
1662 (gc_sweep): Sweep hash-tables and strings first.
1663 Do free marker blocks that are empty.
1664
034a6113
SM
16652004-05-28 Jim Blandy <jimb@redhat.com>
1666
1667 * regex.c (print_partial_compiled_pattern): Add missing 'break'
1668 after 'case wordend'. For symbeg and symend, print to stderr,
1669 like the other cases.
1670
33594a8d
NF
16712004-05-28 Noah Friedman <friedman@splode.com>
1672
1673 * process.c (Fdelete_process): Do not call remove_process.
1674
ce50a847
SM
16752004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
1676
1677 * alloc.c (struct backtrace): Remove.
1678 (Fgarbage_collect): Use the new mark_backtrace.
1679
1680 * eval.c (mark_backtrace): New function.
1681
1682 * minibuf.c (run_exit_minibuf_hook): New function.
1683 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
1684 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
1685
1e8dae36
KS
16862004-05-27 Kim F. Storm <storm@cua.dk>
1687
1688 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
1689 over display properties, e.g. images, that replace buffer text.
1690
846faa3b
KS
16912004-05-25 Kim F. Storm <storm@cua.dk>
1692
1693 * alloc.c (marker_blocks_pending_free): New var.
1694 (gc_sweep): Store free marker blocks on that list.
1695 (Fgarbage_collect): Free them after undo-list cleanup.
1696
1697 * process.c (wait_reading_process_input): Check connect_wait_mask
1698 before actually accepting connection in case it has already been
1699 accepted due to recursion.
1700
6239a668
KH
17012004-05-23 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu> (tiny change)
1702
ce50a847
SM
1703 * coding.c (Fset_safe_terminal_coding_system_internal):
1704 Set suppress_error in safe_terminal_coding, not terminal_coding.
6239a668 1705
71d5a208
RS
17062004-05-22 Richard M. Stallman <rms@gnu.org>
1707
1708 * alloc.c (Fmake_string): Doc fix.
1709
1710 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
1711 and the alist pairs too.
1712
1713 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
1714
1715 * emacs.c (main): Update copyright year.
1716
1717 * fileio.c (Fread_file_name): Expand DIR if not absolute.
1718
1719 * insdel.c (del_range_2, replace_range): Don't write an anchor
1720 if the gap is empty.
1721
1722 * xdisp.c (try_scrolling): If scroll-up-aggressively or
1723 scroll-down-aggressively is small but positive, put point
1724 near the screen edge.
1725
f63fd14e
JB
17262004-05-22 Juanma Barranquero <lektu@terra.es>
1727
1728 * keymap.c (Fdefine_key): Doc fix.
1729
4d12067c
KS
17302004-05-22 Kim F. Storm <storm@cua.dk>
1731
1732 * alloc.c (struct backtrace): Add debug_on_exit member.
1733 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
1734 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
1735 the removed cons cells.
1736 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
1737 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
1738 any cons cells pointing to unallocated stings.
1739 Do not lisp_free any marker blocks, as there may still be pointers
1740 to them from buffer undo lists at this stage of GC.
1741
1742 * keyboard.c (struct backtrace): Add debug_on_exit member.
1743 (Fcommand_execute): Clear it.
1744
931285e2
LT
17452004-05-20 Luc Teirlinck <teirllm@auburn.edu>
1746
1747 * intervals.c (lookup_char_property): Do not prematurely return nil.
1748
669fa600
SM
17492004-05-19 Jim Blandy <jimb@redhat.com>
1750
1751 Add support for new '\_<' and '\_>' regexp operators, matching the
f63fd14e 1752 beginning and end of symbols.
4d12067c 1753
669fa600
SM
1754 * regex.c (enum syntaxcode): Add Ssymbol.
1755 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
1756 (re_opcode_t): New opcodes `symbeg' and `symend'.
1757 (print_partial_compiled_pattern): Print the new opcodes properly.
1758 (regex_compile): Parse the new operators.
ce50a847 1759 (analyse_first): Skip sym(beg|end) (they match only the empty string).
669fa600
SM
1760 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
1761 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
1762 (re_match_2_internal): Match symbeg and symend.
1763
1764 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
1765
0d8c2e5c
KS
17662004-05-19 Kim F. Storm <storm@cua.dk>
1767
1768 * .gdbinit (xsymbol): Fix last change.
1769
669fa600
SM
17702004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
1771
1772 * .gdbinit (xprintstr): New fun.
1773 (xstring, xprintsym): Use it.
1774
1775 * w32proc.c (create_child): Use INTMASK.
1776
1777 * alloc.c (Fgarbage_collect): Do all the marking before flushing
1778 unmarked elements of the undo list.
1779
9a6a4c40
DP
17802004-05-18 David Ponce <david@dponce.com>
1781
1782 * print.c (print): Reset print_depth before to call print_object.
1783
f3c4ec74
JR
17842004-05-18 Jason Rumney <jasonr@gnu.org>
1785
1786 * w32console.c: Prefix RIF functions with w32con_ to avoid
1787 namespace clash with functions in term.c and w32term.c.
1788
1789 * w32menu.c (add_menu_item, w32_menu_display_help)
1790 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
1791
0d8c2e5c 1792 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
f3c4ec74 1793
6be49c3a
EZ
17942004-05-18 Eli Zaretskii <eliz@gnu.org>
1795
4d0b9a0a
EZ
1796 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
1797
6be49c3a
EZ
1798 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
1799 with make_number.
1800 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
1801 with XINT.
1802
0bc90bba
KS
18032004-05-18 Kim F. Storm <storm@cua.dk>
1804
89d19988
KS
1805 * blockinput.h (INPUT_BLOCKED_P): New macros.
1806
1807 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
1808 (Ftop_level): Unblock input if blocked.
1809
0bc90bba
KS
1810 * buffer.h (GET_OVERLAYS_AT): New macro.
1811 * msdos.c (IT_note_mouse_highlight): Use it.
1812 * textprop.c (get_char_property_and_overlay): Use it.
1813 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
1814 * xfaces.c (face_at_buffer_position): Use it.
1815
1816 * print.c (print_object): Increase buf size.
1817
653bd0f6
JR
18182004-05-17 Jason Rumney <jasonr@gnu.org>
1819
1820 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
1821 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
1822 Lisp_Object using i member.
1823 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
1824 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
1825 consistently.
1826
1827 * w32proc.c (create_child): Use make_number instead of masking pid.
1828
1829 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
1830 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
1831 Use EQ to compare Lisp_Objects.
1832 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
1833
1834 * w32term.c (w32_num_mouse_buttons): Rename from
1835 Vw32_num_mouse_buttons and make it an int.
1836
1837 * w32.c (init_environment): Use it.
1838
1839 * w32fns.c (w32_wnd_proc): Likewise.
1840
1841 * w32proc.c (w32_pipe_read_delay): Rename from
1842 Vw32_pipe_read_delay and make it an int.
1843
1844 * w32.c (_sys_read_ahead): Use it.
1845
1846 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
1847
1848 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
1849
1850 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
1851 (key_event): Don't mix Lisp_Object and int.
1852
1853 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
1854
1855 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
1856 modifiers in language change event.
1857
54b53ba7
KS
18582004-05-17 Kim F. Storm <storm@cua.dk>
1859
1860 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
1861 Such objects may be freed markers which still exist on an undo list.
1862
6e86a75d
JB
18632004-05-16 Juanma Barranquero <lektu@terra.es>
1864
1865 * data.c (Fset_default): Make argument names match their use in
1866 docstring.
1867
fc80da24
AS
18682004-05-15 Andreas Schwab <schwab@suse.de>
1869
1870 * emacs.c (gdb_array_mark_flag): Define.
1871 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
1872
c1380aa6
EZ
18732004-05-15 Eli Zaretskii <eliz@gnu.org>
1874
1875 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
1876 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
1877 defined for the MS-DOS build.
1878
89458937
SM
18792004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
1880
1881 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
1882
08020f9a
KH
18832004-05-14 Kenichi Handa <handa@m17n.org>
1884
1885 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
1886
a433994a
ST
18872004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1888
1889 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
1890 section to frame.c section.
1891 (Fxw_display_color_p, Fx_file_dialog): Declare if
89458937 1892 HAVE_WINDOW_SYSTEM defined.
0d8c2e5c 1893
a433994a 1894 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
0d8c2e5c 1895
a433994a 1896 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
0d8c2e5c 1897
a433994a
ST
1898 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
1899 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
1900 (XTread_socket): Fix int/Lisp_Object mixup.
1901 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
0d8c2e5c 1902
a433994a
ST
1903 * macterm.h (struct frame, struct face, struct image)
1904 (display_x_get_resource, Fx_display_color_p)
89458937
SM
1905 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
1906 Add prototypes.
a433994a 1907
b51a51b9
KS
19082004-05-14 Kim F. Storm <storm@cua.dk>
1909
1910 * process.c (wait_reading_process_input): Make reentrant.
1911 Make Available and Connecting non-static. Save and restore value
1912 of waiting_for_user_input_p.
1913
2bde1dd8
KS
19142004-05-13 Kim F. Storm <storm@cua.dk>
1915
1916 * keyboard.c (mark_kboards): Don't mark x and y members
1917 that are overloaded in selection request events.
1918
a267ab4d
SM
19192004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
1920
1921 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
1922
eb15ce9e
GM
19232004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
1924
1925 * window.c (Fdisplay_buffer, Fsplit_window)
1926 (split-height-threshold): Doc fix.
1927
7fc92635
JB
19282004-05-13 Juanma Barranquero <lektu@terra.es>
1929
1930 * xfaces.c (Ftty_supports_face_attributes_p)
1931 (Finternal_copy_lisp_face): Fix typo in docstring.
1932 (Finternal_get_lisp_face_attribute): Fix docstring.
1933
1ec2a572
JD
19342004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1935
1936 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
1937
ae9292e0
ST
19382004-05-11 Steven Tamm <steventamm@mac.com>
1939
1940 * macfns.c (Fx_create_frame): Default to using tool-bar by
1941 setting tool-bar-lines to 1 in default-frame-alist.
1942
19432004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ea1aaa6f
ST
1944
1945 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
1946 (xpm_get_color_table_v, xpm_make_color_table_h)
1947 (xpm_put_color_table_h, xpm_get_color_table_h)
1948 (xpm_str_to_color_key, xpm_load_image, xpm_load)
1949 (syms_of_image): Support XPM on Carbon Emacs. Does not
a267ab4d 1950 depend on libXpm, but only supports XPM version 3 without extensions.
ea1aaa6f 1951
fe97e8df
ST
19522004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1953
a267ab4d 1954 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
fe97e8df
ST
1955 instead of FRAME_X_P
1956
b47e779e
KS
19572004-05-11 Kim F. Storm <storm@cua.dk>
1958
1959 * process.c (read_process_output): Grow decoding_buf when needed;
1960 this could cause a crash in allocate_string and compact_small_strings.
1961
cdc9b845
EZ
19622004-04-29 Jim Blandy <jimb@redhat.com>
1963
1964 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
1965 against proper opcode.
1966
aa7094ba
JB
19672004-05-10 Juanma Barranquero <lektu@terra.es>
1968
1969 * process.c (Fstart_process): Fix docstring.
1970
1971 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
1972 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
1973 (Fsplit_char, Fchar_charset): Make argument names match their use
1974 in docstring.
1975
e109331a
RS
19762004-05-10 Richard M. Stallman <rms@gnu.org>
1977
1978 * print.c (print_preprocess): Use being_printed, loop_count and
1979 halftail to detect overdeep nesting and cyclic cdr chains.
1980
9a28b921
AS
19812004-05-10 Andreas Schwab <schwab@suse.de>
1982
1983 * lisp.h: Declare Fmake_symbolic_link.
1984
1985 * fileio.c (Frename_file): Remove extra argument in call to
1986 Fmake_symbolic_link.
1987
e2c02c1a
KS
19882004-05-10 Kim F. Storm <storm@cua.dk>
1989
1990 * xdisp.c (calc_line_height_property): Use string position when
1991 object is a string.
1992
cfe9d13e
KH
19932004-05-10 Kenichi Handa <handa@m17n.org>
1994
a57e8159
KH
1995 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
1996 inhibit-modification-hooks to t temporarily before calling
1997 Ferase_buffer.
1998
1999 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
2000 inhibit-modification-hooks to t temporarily before calling
2001 Ferase_buffer.
2002
2003 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
2004 inhibit-modification-hooks to t temporarily before calling
2005 Ferase_buffer.
2006
cfe9d13e
KH
2007 * fns.c (count_combining): Delete it.
2008 (concat): Don't check combining bytes.
2009
ceb96489
JR
20102004-05-09 Jason Rumney <jasonr@gnu.org>
2011
2012 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
2013 (globals_of_w32fns): Set it.
2014
b1c661c7
JB
20152004-05-09 Piet van Oostrum <piet@cs.uu.nl> (tiny change)
2016
2017 * data.c (Fquo): Simplify.
2018
28712a21
JB
20192004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
2020
2021 * data.c (Fquo): If any argument is float, do the computation in
2022 floating point.
2023
0f0af7a8
JB
20242004-05-08 Juanma Barranquero <lektu@terra.es>
2025
88214ef6
JB
2026 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
2027 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
2028 Fix spelling of Emacs on docstring.
2029 (Fset_process_coding_system, Fprocess_coding_system)
2030 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
2031 Make argument names match their use in docstring.
2032 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
2033 Fix docstring.
2034
0f0af7a8
JB
2035 * editfns.c (Finsert_buffer_substring): Make argument names match their
2036 use in docstring.
2037
2038 * syntax.c (Fmodify_syntax_entry): Fix docstring.
2039
2a316a84
ST
20402004-05-07 Steven Tamm <steventamm@mac.com>
2041
2042 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
2043 around call to ReceiveEvent to avoid certain crashes.
2044
20452004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
0d8c2e5c 2046
2a316a84
ST
2047 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
2048 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
2049 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
2050 Save/restore the current graphics port and device handle when
2051 drawing into an offscreen graphics world.
2052
2053 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
2054 (gif_load): Likewise.
2055
ab80314b
JB
20562004-05-07 Juanma Barranquero <lektu@terra.es>
2057
2058 * window.c (Fset_window_buffer): Fix docstring.
2059
70646bb5
TTN
20602004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
2061
2062 * emacs.c (main) [VMS]: Fix var ref.
2063
b03a4fdd
JB
20642004-05-06 Romain Francoise <romain@orebokech.com> (tiny change)
2065
2066 * data.c (Fsetq_default): Fix docstring.
2067
279d3293
JR
20682004-05-06 Jason Rumney <jasonr@gnu.org>
2069
2070 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
2071 to avoid name clash.
2072
f72b5416
JD
20732004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2074
2075 * fileio.c (barf_or_query_if_file_exists): Use lstat.
2076 (Frename_file): Handle renaming of symlinks across file systems.
440c7d00 2077 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
f72b5416 2078
6ab66799
KS
20792004-05-04 Kim F. Storm <storm@cua.dk>
2080
2081 * xdisp.c (Qtotal): New var.
2082 (syms_of_xdisp): Intern and staticpro it.
2083 (calc_line_height_property): New arg total. Set it if
2084 line-spacing property has format (total . VALUE).
2085 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
2086 Handle total line-spacing property.
2087
ab2d724b
JD
20882004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2089
2090 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
2091 "under" scroll bar when size/position changes.
2092
238add5e
JR
20932004-05-03 Jason Rumney <jasonr@gnu.org>
2094
2095 * makefile.nt: Remove.
2096
1644f4e4
EZ
20972004-05-02 Eli Zaretskii <eliz@gnu.org>
2098
a267ab4d
SM
2099 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
2100 Avoid compiler warnings.
05fdbeb8 2101
1644f4e4
EZ
2102 * Makefile.in (region-cache.o): Depend on config.h.
2103
6cbc951e
SM
21042004-05-02 Romain Francoise <romain@orebokech.com> (tiny change)
2105
2106 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
2107 with continuation lines, too.
2108
2b98b088
TTN
21092004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
2110
2111 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
2112
d9bf7950
SM
21132004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
2114
2115 * xdisp.c (calc_line_height_property): YAILOM (yet another
2116 int/Lisp_Object mixup).
2117
affa509c
EZ
21182004-05-01 Eli Zaretskii <eliz@gnu.org>
2119
2120 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
2121 undo bad effect of pack(4) in some versions of system headers.
2122
07c07cfe
JR
21232004-05-01 Jason Rumney <jasonr@gnu.org>
2124
2125 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
2126
e71caa4e
KS
21272004-04-30 Kim F. Storm <storm@cua.dk>
2128
2129 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
b2b55d03 2130 (syms_of_buffer) <cursor-type>: Doc fix.
e71caa4e
KS
2131
2132 * dispextern.h (struct it): Remove member use_default_face.
2133 Add members override_ascent, override_descent, override_boff.
2134
2135 * xdisp.c (init_iterator): Handle line-spacing float value.
2136 Initialize override_ascent member.
2137 (append_space_for_newline): Reset override_ascent.
2138 Remove use_default_face.
2139 (calc_line_height_property): New function to calculate value of
2140 line-height and line-spacing properties. Look at overlays, too.
2141 Set override_ascent, override_descent, override_boff members when
2142 using another face than the current face. Float values are now
2143 relative to the frame default font, by default; accept a cons
2144 of ratio and face name to specify value relative to a specific face.
2145 (x_produce_glyphs): Use calc_line_height_property.
2146 Use override_ascent etc. when set to handle different face heights.
2147 A negative line-spacing property value is interpreted as a total
2148 line height, rather than inter-line spacing.
2149 (note_mouse_highlight): Allocate room for 40 overlays initially.
2150
0fddae66
SM
21512004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
2152
2153 * data.c (Fsubr_name): New fun.
2154 (syms_of_data): Defsubr it.
2155
712d23dc
KS
21562004-04-29 Kim F. Storm <storm@cua.dk>
2157
2158 * xdisp.c (null_glyph_slice): New var.
2159 (append_glyph, append_composite_glyph, append_stretch_glyph):
2160 Use it to initialize glyph slice.
2161
033ad8c6
SM
21622004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
2163
2164 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
2165 (on_hot_spot_p): Make sure we always return a value.
2166 (Flookup_image_map): Remove unused var ix and iy.
2167 (note_mode_line_or_margin_highlight): Remove unused var `image'.
2168
93397360
EZ
21692004-04-27 Eli Zaretskii <eliz@gnu.org>
2170
2171 * msdos.c (init_environment): If one of the TMP... environment
2172 variables is set to a drive letter without a trailing slash,
2173 append a slash.
2174
0c54865e
EZ
21752004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
2176
2177 * editfns.c (lisp_time_argument): Provide externally.
2178
2179 * fileio.c (Fset_file_times): New function.
2180 (syms_of_fileio): Intern and staticpro it.
2181
d3b111bd
KS
21822004-04-27 Kim F. Storm <storm@cua.dk>
2183
07dc1231
KS
2184 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
2185 header line strings.
2186
360fe9d2
KS
2187 * dispextern.h (struct it): New member use_default_face.
2188
d3b111bd
KS
2189 * xdisp.c (Qline_height): New variable.
2190 (syms_of_xdisp): Intern and staticpro it.
2191 (append_space_for_newline): Partially undo 2004-04-25 change;
2192 add default_face_p arg, and restore callers.
2193 Clear it->use_default_face after use.
2194 (x_produce_glyphs): Set default font for ascii char if
2195 it->use_default_font is set. Change line-spacing property to set
2196 just extra line spacing. Handle new line-height property.
2197
0448588b
AS
21982004-04-26 Andreas Schwab <schwab@suse.de>
2199
2200 * print.c (print_object): Print non-ascii characters in bool
2201 vector representation as octal escapes.
2202
2203 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
2204 * print.c (print_object): Use it instead of BITS_PER_CHAR for
2205 bool vectors.
2206 * lread.c (read1): Likewise.
2207 * alloc.c (Fmake_bool_vector): Likewise.
2208 * data.c (Faref, Faset): Likewise.
2209 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
2210 (mapcar1): Likewise.
d3b111bd 2211
536d6baa
ST
22122004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
2213
2214 * lread.c (init_lread): Fixing typo HAVE_CARBON test logic
2215
ae11577a
MB
22162004-04-26 Miles Bader <miles@gnu.org>
2217
2218 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
2219
e198ba87
JB
22202004-04-26 Juanma Barranquero <lektu@terra.es>
2221
2222 * buffer.c (Fpop_to_buffer): Fix docstring.
2223
f3d5f92d 22242004-04-26 Steven Tamm <steventamm@mac.com>
e198ba87 2225
f3d5f92d
ST
2226 * lread.c (init_lread): Don't display missing lisp directory
2227 warnings with Carbon Emacs because self-contained bundled Emacs
e198ba87 2228 may be built without correct installation path.
f3d5f92d 2229
03e35edc
KS
22302004-04-25 Kim F. Storm <storm@cua.dk>
2231
9ff3aa31
KS
2232 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
2233
2234 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
2235
03e35edc
KS
2236 * xdisp.c (append_space_for_newline): Rename from append_space.
2237 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
2238 (x_produce_glyphs): Handle line-spacing property on newline char.
2239 If value is t, adjust ascent and descent to fit current row height.
2240 If value is an integer or float, set extra_line_spacing to integer
2241 value, or to float value x current line height.
2242
f24814e0
KH
22432004-04-23 Kenichi Handa <handa@m17n.org>
2244
2245 * fontset.c (Finternal_char_font): If POSITION is nil, return
2246 font for displaying CH with the default face.
2247
d814862a
JB
22482004-04-23 Juanma Barranquero <lektu@terra.es>
2249
2250 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
2251
063a45c5
SM
22522004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
2253
2254 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
2255 Don't make assumptions about the relative place of i and val.
2256 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
2257
ae7ab2d3
KS
22582004-04-21 Kim F. Storm <storm@cua.dk>
2259
2260 * dispextern.h (struct glyph_slice): New struct.
2261 (struct glyph): New member slice.
2262 (GLYPH_SLICE_EQUAL_P): New macro.
2263 (GLYPH_EQUAL_P): Use it.
2264 (struct glyph_string): New member slice.
2265 (struct it_slice): New struct.
2266 (struct it): New member slice, add member to stack too.
2267 New member constrain_row_ascent_descent_p.
2268 (image_ascent): Add prototype.
2269
2270 * dispnew.c (buffer_posn_from_coords): Return full image width
2271 and height even for image slices (posn is relative to full image).
2272 (marginal_area_string): Adjust x0,y0 for image slice.
2273
2274 * image.c (image_ascent): Add slice arg; calculate ascent for
2275 image slice (or full image).
2276
2277 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
2278 (syms_of_keyboard): Defsubr them.
2279
2280 * lisp.h (pos_visible_p): Fix prototype.
2281
c62aec78 2282 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
ae7ab2d3
KS
2283 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
2284 (x_draw_image_foreground, x_draw_image_relief)
2285 (x_draw_image_foreground_1, x_draw_image_glyph_string):
2286 Draw sliced images.
2287
2288 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
2289 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
2290 (x_draw_image_foreground, x_draw_image_relief)
2291 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
2292 Draw sliced images.
2293
2294 * w32term.h (image_ascent): Remove prototype.
2295
2296 * window.c (Fpos_visible_in_window_p): Return pixel position if
2297 PARTIALLY arg is non-nil. Simplify. Doc fix.
2298 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
2299 to return/set vscroll in pixels.
2300
2301 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
2302
2303 * xdisp.c (Qslice): New variable.
2304 (syms_of_xdisp): Intern and staticpro it.
2305 (pos_visible_p): Return pixel position in new x and y args.
2306 (init_iterator): Reset it->slice info.
2307 (handle_display_prop): Parse (slice ...) property.
2308 (push_it, pop_it): Save/restore slice info.
2309 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
2310 force repositioning of tall row if window is vscrolled, as that
2311 would reset vscroll.
2312 (append_space): Set it->constrain_row_ascent_descent_p to avoid
2313 increasing row height if row is non-empty.
2314 (fill_image_glyph_string): Copy slice info.
2315 (take_vertical_position_into_account): Simplify.
2316 (produce_image_glyph): Handle iterator slice info, setup glyph
2317 slice info. Do not force minimum line height.
2318 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
2319 do not increase height (ascent/descent) of non-empty row when
2320 adding normal character glyph; instead reduce glyph ascent/descent
2321 appropriately; if row is higher than current glyph, adjust glyph
2322 descent/ascent to reposition glyph within the existing row.
2323 Likewise, when char is newline, only set ascent/descent if row is
2324 currently empty.
2325 (note_mouse_highlight): Handle hotspots with sliced image.
2326
2327 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
2328 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
2329 (x_draw_image_foreground, x_draw_image_relief)
2330 (x_draw_image_foreground_1, x_draw_image_glyph_string):
2331 Draw sliced images.
2332
2333 * xterm.h (image_ascent): Remove prototype.
2334
d58f8753
SM
23352004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
2336
2337 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
2338
4ce2719d
JPW
23392004-04-20 John Paul Wallington <jpw@gnu.org>
2340
2341 * fns.c (Fassoc, Feql): Fix indentation.
2342
d58f8753 2343 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
4ce2719d 2344
95f8c3b9
JPW
23452004-04-19 John Paul Wallington <jpw@gnu.org>
2346
2347 * fns.c (Feql): New function.
d58f8753 2348 (syms_of_fns): Defsubr it.
95f8c3b9 2349
b7e85537
JR
23502004-04-18 Jason Rumney <jasonr@gnu.org>
2351
2352 * w32select.c (Fw32_set_clipboard_data): Get sequence number
2353 after closing the clipboard.
2354
5a72efd4
LT
23552004-04-16 Luc Teirlinck <teirllm@auburn.edu>
2356
2357 * buffer.c (Fbuffer_base_buffer): Doc fix.
2358
20dc8583
KS
23592004-04-17 Kim F. Storm <storm@cua.dk>
2360
60962ec4
KS
2361 * keymap.c (Fkey_description): Add optional PREFIX arg.
2362 Combine prefix with KEYS to make up the full key sequence to describe.
2363 Correlate meta_prefix_char and following (simple) key to describe
2364 as meta modifier. All callers changed.
2365 (describe_map): Rename arg `keys' to `prefix'. Remove local
2366 `elt_prefix' var. Use Fkey_description with prefix instead of
2367 elt_prefix combined with Fsingle_key_description.
2368 (describe_vector): Declare static. Replace arg `elt_prefix' with
2369 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
2370 if !KEYMAP_P. Use Fkey_description with prefix instead of
2371 Fsingle_key_description.
2372
2373 * keymap.h (Fkey_description): Fix prototype.
2374 (describe_vector): Remove prototype.
2375
409368b9
KS
2376 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
2377
20dc8583
KS
2378 * image.c (PNG_BG_COLOR_SHIFT): Remove.
2379 (png_load): Fix calculation of transparent background color on X
2380 and W32 platforms.
2381
75c5501b
JB
23822004-04-16 Juanma Barranquero <lektu@terra.es>
2383
2384 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
2385 not too large before computing how much to scroll.
2386
da879ae8
SM
23872004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
2388
2389 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
2390
d01ca4a8
LT
23912004-04-14 Luc Teirlinck <teirllm@auburn.edu>
2392
2393 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
2394 Add hyperlink to Elisp manual to the docstring.
2395
572943b3
SM
23962004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
2397
2398 * callint.c (fix_command): Use XDCR.
2399
5e30a0fb
NR
24002004-04-14 Nick Roberts <nick@nick.uklinux.net>
2401
2402 * window.c (Fget_lru_window): Doc fix.
2403
a27ddfaf
KS
24042004-04-14 Kim F. Storm <storm@cua.dk>
2405
2406 * editfns.c (Fformat): Fix allocation size of precision array.
2407
2408 * dispnew.c (update_window): Only set changed_p if
2409 scrolling_window actually did scroll.
2410 (scrolling_window): Only return 1 if we actually did scroll.
2411
2412 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
2413 height to glyph height when cursor row is not fully visible.
2414 (make_cursor_line_fully_visible): Add FORCE_P arg to return
2415 failure in case row is higher than window. Callers changed.
2416 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
2417 Try to scroll partially visible, higher-than-window cursor row.
2418 (redisplay_window): Always try to scroll partially visible,
2419 higher-than-window cursor row - both initially and again with
2420 centering_position = 0.
2421 Clear desired matrix before retrying with centering_position = 0.
2422
da879ae8
SM
24232004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
2424
2425 * syntax.c (scan_lists): Simplify backward string scan.
2426 Fix off-by-one boundary check for string and comment fences.
2427
5fc16e8e
SM
24282004-04-13 Joe Buehler <jbuehler@hekimian.com>
2429
2430 * sheap.c, unexcw.c: New files.
2431
c9aac8e6
LT
24322004-04-12 Luc Teirlinck <teirllm@auburn.edu>
2433
2434 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
2435 base buffer has been killed. Correct the error message if the
2436 base buffer does not exist.
2437
1e88a355
SM
24382004-04-12 Joe Buehler <jbuehler@hekimian.com>
2439
2440 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
2441 Cygwin itself. Add support for Xaw3d scrollbars.
2442
2443 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
2444
2445 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
2446
2447 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
2448 before Cygwin unexec.
2449
2450 * Makefile.in: Link changes for Cygwin unexec() support.
2451
8dbff9a0
AS
24522004-04-12 Andreas Schwab <schwab@suse.de>
2453
2454 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
2455
54dffe35
LT
24562004-04-11 Luc Teirlinck <teirllm@auburn.edu>
2457
2458 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
2459 IGNORE argument equals NAME. Doc fix.
2460
99a72bdf
MY
24612004-04-11 Masatake YAMATO <jet@gyve.org>
2462
1e88a355 2463 * buffer.c (fix_start_end_in_overlays): Make overlays
99a72bdf
MY
2464 empty if they are backwards.
2465
40899d7b
SM
24662004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
2467
2468 * xfaces.c (face_color_supported_p): Fix compilation without X11.
2469
f8f853de
SM
24702004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
2471
2472 * doc.c (Fsnarf_documentation): Ignore new file name entries.
2473
c953fe1b
KS
24742004-04-06 Kim F. Storm <storm@cua.dk>
2475
661e85c1
KS
2476 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
2477 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
2478
2479 * w32term.c (w32_read_socket): Set mouse_face_hidden after
2480 clearing highlight.
2481
2482 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
2483
2484 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
2485 clearing highlight.
2486
c953fe1b
KS
2487 * indent.c (vmotion): Do not reserve one column for continuation
2488 marks on window frames.
2489
c1994268
EZ
24902004-04-04 Eli Zaretskii <eliz@gnu.org>
2491
2492 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
2493 from GCC.
2494
9f691b0d
SM
24952004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
2496
2497 * .gdbinit-union: Remove.
2498
2499 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
2500 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
2501 ($nonvalbits): Remove.
2502 ($valmask): Set it by calling xreload to avoid redundancy.
2503
2504 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
2505 (gdb_emacs_intbits): Remove.
2506
7a8560d7
JD
25072004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2508
9f691b0d 2509 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
7a8560d7 2510
3c8111fc
KH
25112004-03-30 Kenichi Handa <handa@m17n.org>
2512
2513 * editfns.c (Fformat): Fix initialization of the array info.
2514
48a0bce4
KS
25152004-03-30 Kim F. Storm <storm@cua.dk>
2516
2517 * xterm.c (x_mouse_click_focus_ignore_position): New var.
2518 (syms_of_xterm): DEFVAR_BOOL it.
2519 (ignore_next_mouse_click_timeout): New var.
2520 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
2521 Use it to filter mouse clicks following focus event.
2522
1cd0066c
KS
25232004-03-29 David Ponce <david@dponce.com>
2524
2525 * callint.c (Fcall_interactively): Fix last change.
2526
adb3b353
SM
25272004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
2528
2529 * eval.c (Fcommandp): Simplify.
2530
2531 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
2532 Extend to handle all kinds of functions.
2533
2534 * lisp.h (Finteractive_form): Declare.
2535
2536 * callint.c (Fcall_interactively): Use it.
2537
6fc4c9c9
KS
25382004-03-26 Kim F. Storm <storm@cua.dk>
2539
2540 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
2541 to catch errors in calc_pixel_width_or_height during redisplay.
2542
abdb9b83
MY
25432004-03-26 Masatake YAMATO <jet@gyve.org>
2544
b17856dd 2545 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
abdb9b83 2546
b17856dd 2547 * lisp.h (fix_start_end_in_overlays): Likewise.
abdb9b83 2548
b17856dd 2549 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
abdb9b83 2550
b17856dd 2551 * editfns.c (Ftranspose_regions): Likewise.
abdb9b83 2552
e8a84b6c
JD
25532004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2554
b17856dd 2555 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
e8a84b6c 2556
36a3fd05
RS
25572004-03-19 Richard M. Stallman <rms@gnu.org>
2558
2559 * s/sol2-6.h: Delete previous change.
2560
ab24c127
KS
25612004-03-19 Kim F. Storm <storm@cua.dk>
2562
2563 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
2564 to_charpos corresponds to newline in right fringe. Use local
2565 BUFFER_POS_REACHED_P macro.
2566
992126de
JD
25672004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2568
2569 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
2570 to compile on non-window system.
2571
45dbfc84
KS
25722004-03-19 Kim F. Storm <storm@cua.dk>
2573
2574 * dispextern.h (calc_pixel_width_or_height): Add prototype.
2575
2576 * image.c (Qcenter): Move to xdisp.c.
2577
2578 * xdisp.c (Qcenter): Declare here.
adb3b353 2579 (syms_of_xdisp): Intern and staticpro it.
45dbfc84
KS
2580 (handle_single_display_prop): Allow space display property on all
2581 platforms.
2582 (display_mode_line): Set mode_line_p before displaying line.
2583 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
2584 handling. Remove complex cases for fringes and scroll-bars.
2585 Add left, right, and center alignment positions. Add text (area)
2586 width/height. Return width or height for image specs.
2587 (produce_stretch_glyph): Improve handling of :align-to. Is now
2588 relative to left of text area by default, but other base offsets
2589 can be specified -- also for text lines.
2590
2591 * term.c (produce_glyphs): Handle IT_STRETCH.
2592 (produce_stretch_glyph): New function to handle space width and
2593 align-to display properties on non-window systems.
2594
37264101
SM
25952004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
2596
2597 * fileio.c (Fread_file_name): Set completion-ignore-case for
2598 case-insensitive systems.
2599
73bc43da
MY
26002004-03-14 Masatake YAMATO <jet@gyve.org>
2601
2602 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
2603 when keymap and cursor are setup.
2604
9062aa89
ST
26052004-03-14 Steven Tamm <steventamm@mac.com>
2606
b17856dd 2607 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
9062aa89 2608
e4b1b5ab
KS
26092004-03-14 Kim F. Storm <storm@cua.dk>
2610
2611 * dispextern.h (x_find_image_file): Add prototype.
2612
2613 * image.c (x_find_image_file): Make extern.
2614
2615 * xfns.c (x_find_image_file): Remove prototype.
2616
a6eeaa81 26172004-03-13 Eli Zaretskii <eliz@gnu.org>
5109b06a 2618
37264101 2619 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
5109b06a 2620
37264101 2621 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
5109b06a 2622
e69cfac2
RS
26232004-03-12 Richard M. Stallman <rms@gnu.org>
2624
2625 * fns.c (internal_equal): New arg PROPS controls comparing
2626 text properties. All callers changed.
2627 (Fequal_including_properties): New function.
2628 (syms_of_fns): defsubr it.
2629
45034953
KS
26302004-03-12 Kim F. Storm <storm@cua.dk>
2631
2632 Fix image support on MAC. From YAMAMOTO Mitsuharu.
37264101 2633
45034953
KS
2634 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
2635 (image_background, image_background_transparent): Fix prototypes.
2636
37264101 2637 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
45034953
KS
2638
2639 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
2640 (x_query_font, x_find_ccl_program, x_set_window_size)
2641 (x_make_frame_visible, mac_initialize, XCreatePixmap)
2642 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
2643 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
2644
2645 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
2646 (x_query_font, x_find_ccl_program, x_set_window_size)
2647 (x_make_frame_visible, mac_initialize, XCreatePixmap)
2648 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
2649 (mac_draw_line_to_pixmap): Add prototypes.
2650
26512004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2652
2653 * macterm.c (XTread_socket): Fix mouse click on tool bar.
2654
a12d3d87
KS
26552004-03-11 Kim F. Storm <storm@cua.dk>
2656
d3ab1cf1
KS
2657 * dispextern.h: Move image related prototypes from xfns.c section
2658 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
2659 HAVE_X_WINDOWS.
37264101 2660
37de9f51 2661 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
37264101 2662 Move gtkutil.o to new GTK_OBJ list.
a12d3d87
KS
2663 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
2664 (GTK_OBJ) [USE_GTK]: New declaration.
2665 (obj): Add $(GTK_OBJ) to list.
2666
5243c06a 26672004-03-11 Steven Tamm <steventamm@mac.com>
5109b06a 2668
5243c06a
ST
2669 * image.c [MAC_OSX]: Include sys/stat.h
2670
2671 * macfns.c (syms_of_macfns): Remove definitions of things now
2672 defined in image.c
2673
c0f97789
KS
26742004-03-11 Kim F. Storm <storm@cua.dk>
2675
2676 The following changes consolidates the identical/similar image
2677 support code previously found in xfns.c, w32fns.c, and macfns.c
2678 into a new file image.c.
2679
2680 * makefile.w32-in (OBJ1): Add image.o.
2681 ($(BLD)/image.$(O)): Add dependencies.
2682
2683 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
2684 (image.o): Add dependencies.
37264101 2685
c0f97789
KS
2686 * image.c: New file with consolidated image support code.
2687 (COLOR_TABLE_SUPPORT): New define to control whether
2688 color table support is available (X only).
2689 (Bitmap_Record): Common name for x_bitmap_record,
2690 w32_bitmap_record, and mac_bitmap_record.
2691 (XImagePtr): Common name for pointer to XImage or equivalent.
2692 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
2693 to XImagePtr on X+MAC, and to HDC on W32.
2694 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
2695 (NO_PIXMAP): Common name for "None" or equivalent.
2696 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
2697 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
2698 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
37264101
SM
2699 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
2700 Define with suitable equivalents on W32 and MAC for code sharing.
c0f97789
KS
2701 (XDrawLine): Define on MAC for code sharing.
2702 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
2703 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
2704 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
2705 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
2706 (x_reference_bitmap, x_create_bitmap_from_data)
2707 (x_create_bitmap_from_file, x_destroy_bitmap)
2708 (x_destroy_all_bitmaps, x_create_bitmap_mask)
2709 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
2710 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
2711 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
2712 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
2713 (define_image_type, lookup_image_type, valid_image_p)
2714 (image_error, enum image_value_type, struct image_keyword)
2715 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
2716 (make_image, free_image, prepare_image_for_display, image_ascent)
2717 (four_corners_best, image_background, image_background_transparent)
2718 (x_clear_image_1, x_clear_image, x_alloc_image_color)
2719 (make_image_cache, free_image_cache, clear_image_cache)
2720 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
2721 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
2722 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
2723 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
2724 (init_image_func_pointer, image_load_quartz2d)
2725 (struct ct_color, init_color_table, free_color_table)
2726 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
2727 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
2728 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
2729 (x_disable_image, x_build_heuristic_mask)
2730 (XBM support, XPM support, PBM support, PNG support, JPEG support)
2731 (TIFF support, GIF support, Ghostscript support): Consolidate image
2732 code from xfns.c, w32fns.c, and macfns.c.
2733 (syms_of_image): Consolidate image related symbol setup here.
2734 (init_image): Consolidate image related initializations here.
37264101 2735
c0f97789
KS
2736 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
2737 and init_image. Remove call to init_xfns.
2738
37264101
SM
2739 * macterm.h (struct mac_bitmap_record): Add file member.
2740 Not currently used, but simplifies code sharing.
c0f97789
KS
2741
2742 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
2743 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
2744 (x_reference_bitmap, x_create_bitmap_from_data)
2745 (x_create_bitmap_from_file, x_destroy_bitmap)
2746 (x_destroy_all_bitmaps, x_create_bitmap_mask)
2747 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
2748 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
2749 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
2750 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
2751 (define_image_type, lookup_image_type, valid_image_p)
2752 (image_error, enum image_value_type, struct image_keyword)
2753 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
2754 (make_image, free_image, prepare_image_for_display, image_ascent)
2755 (four_corners_best, image_background, image_background_transparent)
2756 (x_clear_image_1, x_clear_image, x_alloc_image_color)
2757 (make_image_cache, free_image_cache, clear_image_cache)
2758 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
2759 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
2760 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
2761 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
2762 (init_image_func_pointer, image_load_quartz2d)
2763 (struct ct_color, init_color_table, free_color_table)
2764 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
2765 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
2766 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
2767 (x_disable_image, x_build_heuristic_mask)
2768 (XBM support, XPM support, PBM support, PNG support, JPEG support)
2769 (TIFF support, GIF support, Ghostscript support): Merge with image
2770 code from xfns.c and macfns.c into image.c.
2771 (syms_of_xfns): Move image related symbols to image.c.
2772 (init_external_image_libraries, init_xfns): Remove; initialization
2773 moved to init_image in image.c.
2774
2775 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
2776 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
2777 (x_reference_bitmap, x_create_bitmap_from_data)
2778 (x_create_bitmap_from_file, x_destroy_bitmap)
2779 (x_destroy_all_bitmaps, x_create_bitmap_mask)
2780 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
2781 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
2782 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
2783 (define_image_type, lookup_image_type, valid_image_p)
2784 (image_error, enum image_value_type, struct image_keyword)
2785 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
2786 (make_image, free_image, prepare_image_for_display, image_ascent)
2787 (four_corners_best, image_background, image_background_transparent)
2788 (x_clear_image_1, x_clear_image, x_alloc_image_color)
2789 (make_image_cache, free_image_cache, clear_image_cache)
2790 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
2791 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
2792 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
2793 (struct ct_color, init_color_table, free_color_table)
2794 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
2795 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
2796 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
2797 (x_disable_image, x_build_heuristic_mask)
2798 (XBM support, XPM support, PBM support, PNG support, JPEG support)
2799 (TIFF support, GIF support, Ghostscript support): Merge with image
2800 code from xfns.c and macfns.c into image.c.
2801 (syms_of_xfns): Move image related symbols to image.c.
2802 (init_external_image_libraries, init_xfns): Remove; initialization
2803 moved to init_image in image.c.
2804
2805 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
2806 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
2807 (x_reference_bitmap, x_create_bitmap_from_data)
2808 (x_create_bitmap_from_file, x_destroy_bitmap)
2809 (x_destroy_all_bitmaps, x_create_bitmap_mask)
2810 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
2811 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
2812 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
2813 (define_image_type, lookup_image_type, valid_image_p)
2814 (image_error, enum image_value_type, struct image_keyword)
2815 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
2816 (make_image, free_image, prepare_image_for_display, image_ascent)
2817 (four_corners_best, image_background, image_background_transparent)
2818 (x_clear_image_1, x_clear_image, x_alloc_image_color)
2819 (make_image_cache, free_image_cache, clear_image_cache)
2820 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
2821 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
2822 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
2823 (struct ct_color, init_color_table, free_color_table)
2824 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
2825 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
2826 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
2827 (x_disable_image, x_build_heuristic_mask)
2828 (XBM support, XPM support, PBM support, PNG support, JPEG support)
2829 (TIFF support, GIF support, Ghostscript support): Merge with
2830 w32fns.c and macfns.c image code into image.c.
2831 (syms_of_xfns): Move image related symbols to image.c.
2832 (init_xfns): Remove; initialization moved to init_image in image.c.
2833
2834 * lisp.h (syms_of_image, init_image): Add protoypes.
2835 (init_xfns): Remove prototype.
2836
2837 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
2838 (x_reference_bitmap, x_create_bitmap_from_data)
2839 (x_create_bitmap_from_file, x_destroy_bitmap)
2840 (x_create_bitmap_mask): Move prototypes from dispextern.h.
2841 (gamma_correct) [MAC_OS]: Add prototype.
2842
2843 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
2844 (x_reference_bitmap, x_create_bitmap_from_data)
2845 (x_create_bitmap_from_file, x_destroy_bitmap)
2846 (x_create_bitmap_mask): Move prototypes to dispextern.h.
2847
6eced09c
KH
28482004-03-09 Kenichi Handa <handa@etlken2>
2849
2850 * coding.c (decode_coding_emacs_mule): Handle insufficent source
2851 correctly.
2852
9a7e95f3
RS
28532004-03-04 Richard M. Stallman <rms@gnu.org>
2854
04a6e76b
RS
2855 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
2856
9a7e95f3
RS
2857 * window.c (Fdisplay_buffer): Doc fix.
2858
2859 * buffer.c (Fpop_to_buffer): Doc fix.
2860
6c2488df
KS
28612004-03-03 Kim F. Storm <storm@cua.dk>
2862
2863 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
2864
d8d95bc7
SM
28652004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
2866
2867 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
2868
357589bf
RS
28692004-03-02 Richard M. Stallman <rms@gnu.org>
2870
2871 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
2872
409949b5
KH
28732004-03-02 Kenichi Handa <handa@m17n.org>
2874
2875 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
2876
d24bc50f
KS
28772004-03-02 Kim F. Storm <storm@cua.dk>
2878
2879 * window.h (struct window): New member overlay_arrow_bitmap.
2880
2881 * window.c (make_window): Initialize overlay_arrow_bitmap.
2882
2883 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
2884 implement and integrate multiple overlay arrows with redisplay.
2885 (syms_of_xdisp): DEFVAR_LISP and initialize it.
2886 (last_arrow_position, last_arrow_string): Replace by properties.
2887 (Qlast_arrow_position, Qlast_arrow_string)
2888 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
2889 (syms_of_xdisp): Intern and staticpro them.
2890 (overlay_arrow_string_or_property, update_overlay_arrows)
2891 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
2892 (overlay_arrow_at_row): New functions for multiple overlay arrows.
2893 (redisplay_internal): Use them instead of directly accessing
2894 Voverlay_arrow_position etc. for multiple overlay arrows.
2895 (mark_window_display_accurate): Use update_overlay_arrows.
2896 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
2897 (try_window_id): Use overlay_arrows_changed_p.
2898 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
2899 (display_line): Use overlay_arrow_at_row to check multiple
2900 overlay arrows, and get relevant overlay-arrow-string and
d8d95bc7 2901 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
d24bc50f
KS
2902 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
2903 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
2904
2905 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
2906 (update_window_fringes): Remove unused code.
2907
c1464661
JR
29082004-03-01 Jason Rumney <jasonr@gnu.org>
2909
2910 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
2911
a64387ee
JB
29122004-03-01 Juanma Barranquero <lektu@terra.es>
2913
2914 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
2915
2916 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
2917
334faa08
JD
29182004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2919
2920 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
2921 how many colors can be displayed.
2922
bb62616f
KH
29232004-03-01 Kenichi Handa <handa@m17n.org>
2924
2925 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
2926 correctly.
2927
0fd16104
KS
29282004-02-28 Kim F. Storm <storm@cua.dk>
2929
2930 * dispnew.c (update_window): Update header line also if there are
2931 no other changes in window (move code after set_cursor label).
2932
2933 * lisp.h (mark_window_display_accurate): Remove prototype.
2934
2935 * window.c (window_loop, Fforce_window_update): Force mode line
2936 updates by setting prevent_redisplay_optimizations_p and
2937 update_mode_lines.
2938
b59dd9c8
JD
29392004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2940
d8d95bc7 2941 * xfns.c (x_window): Fix indentation.
b59dd9c8
JD
2942
2943 * xterm.c (x_calc_absolute_position): Call x_real_positions
2944 to get WM window sizes and use those to calculate position.
d8d95bc7 2945 (x_set_offset): Remove code commented out.
b59dd9c8 2946
a874691c
MB
29472004-02-28 Miles Bader <miles@gnu.org>
2948
2949 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
2950
3e0c6482
KS
29512004-02-28 Kim F. Storm <storm@cua.dk>
2952
2953 * keyboard.c (kbd_buffer_store_event_hold): New function to store
2954 an event into kbd fifo, but with special handling of quit event;
2955 a quit event is saved for later, and further events are discarded
2956 until the saved quit event has been processed.
2957 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
2958 (gen_help_event): Store help event in kbd fifo.
2959 (NREAD_INPUT_EVENTS): Remove.
2960 (read_avail_input): Adapt to new read_socket_hook interface.
2961 Remove allocation and initialization of local input_event buffer,
2962 as read_socket_hook stores events directly in fifo. Allocate and
2963 initialize local hold_quit event to handle postponed quit event
2964 (and store it if set by kbd_buffer_store_event_hold).
2965
2966 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
2967 (gen_help_event): Fix prototype.
2968
a64387ee 2969 * macterm.c (XTread_socket): Remove bufp_r and
3e0c6482 2970 numcharsp args. Add hold_quit arg.
f63fd14e 2971 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
2972 directly in fifo using kbd_buffer_store_event_hold.
2973
2974 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
2975 (read_input_waiting): Adapt to new read_socket_hook interface.
2976 Remove allocation and initialization of local input_event buffer,
2977 as read_socket_hook stores events directly in fifo. Allocate and
2978 initialize local hold_quit event to handle postponed quit event
2979 (and store it if set by kbd_buffer_store_event_hold).
2980
a64387ee 2981 * term.c (read_socket_hook): Fix arg list.
3e0c6482
KS
2982
2983 * termhooks.h (read_socket_hook): Fix prototype.
2984
2985 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
2986 numcharsp args. Add hold_quit arg.
f63fd14e 2987 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
2988 directly in fifo using kbd_buffer_store_event_hold.
2989
2990 * w32inevt.h (w32_console_mouse_position): Fix prototype.
2991
2992 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
f63fd14e
JB
2993 Add hold_quit arg. Rework to use just one, local, inev
2994 input_event. Store inev directly in fifo using
3e0c6482
KS
2995 kbd_buffer_store_event_hold. Update count in one place.
2996 Postpone call to gen_help_event until inev is stored; use new
2997 local do_help for this.
2998 Remove local emacs_event in handing of ButtonPress event; just use
2999 inev instead (so no reason to copy it later).
3000
3001 * xsmfns.c (x_session_check_input): Remove numchars arg.
3002
d8d95bc7
SM
3003 * xterm.c (x_focus_changed, x_detect_focus_change):
3004 Remove numchars arg. Always store event into bufp arg.
3005 Return nothing. Callers changed accordingly.
3e0c6482
KS
3006 (glyph_rect): Simplify.
3007 (STORE_KEYSYM_FOR_DEBUG): New macro.
3008 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
3009 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
3010 (current_hold_quit) [USE_GTK]: Add.
3011 (event_handler_gdk): Adapt to new handle_one_xevent.
3012 (handle_one_xevent): Remove bufp_r and numcharsp args.
f63fd14e
JB
3013 Add hold_quit arg. Rework to use just one, local, inev
3014 input_event. Store inev directly in fifo using
3e0c6482
KS
3015 kbd_buffer_store_event_hold. Update count in one place.
3016 Postpone call to gen_help_event until inev is stored; use new
3017 local do_help for this.
3018 Simplify handling of keysyms (consolidate common code). Fix bug
3019 where count was updated with nchars instead of nbytes.
3020 Remove local emacs_event in handing of ButtonPress event; just use
3021 inev instead (so no reason to copy it later).
3022 Remove `out' label. Rename label `ret' to `done'; add various
3023 `goto done' to clarify code flow in deeply nested blocks.
3024 (x_dispatch_event): Simplify as handle_one_xevent now calls
3025 kbd_buffer_store_event itself.
f63fd14e 3026 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
3e0c6482
KS
3027 arg. Call handle_one_xevent with new arglist. Store event from
3028 x_session_check_input in fifo.
3029 [USE_GTK]: Setup current_hold_quit.
3030 Decrement handling_signal before unblocking input.
3031 (x_initialize) [USE_GTK]: Initialize current_count.
3032
3033 * xterm.h (x_session_check_input): Fix prototype.
3034
e3564461 30352004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
a64387ee 3036
d8d95bc7 3037 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
a64387ee 3038
e3564461
ST
3039 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
3040 macgui.h).
a64387ee 3041
e3564461 3042 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
a64387ee 3043
e3564461
ST
3044 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
3045 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
3046 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
3047 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
3048 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
3049 (Bitmap): Remove typedef.
3050 (Pixmap): Change int to GWorldPtr.
3051
d8d95bc7 3052 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
a64387ee 3053
d8d95bc7
SM
3054 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
3055 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
3056 New #define to extract 16-bit depth color components from unsigned
e3564461
ST
3057 long representation.
3058 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
3059 colors used for masks.
3060 (struct mac_display_info): Add color_p. Remove n_cbits.
a64387ee 3061
e3564461
ST
3062 * macfns.c: Include sys/types.h and sys/stat.h.
3063 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
3064 Include QuickTime/QuickTime.h.
3065 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
3066 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
3067 functions defined in macterm.c.
3068 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
3069 (ZPixmap): New #define for compatibility with xfns.c.
3070 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
3071 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
d8d95bc7
SM
3072 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
3073 New functions.
e3564461 3074 (four_corners_best, x_create_x_image_and_pixmap)
d8d95bc7
SM
3075 (x_destroy_x_image, unwind_create_frame, x_disable_image)
3076 (x_edge_detection, init_color_table, colors_in_color_table)
e3564461
ST
3077 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
3078 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
3079 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
3080 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
3081 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
3082 long mixup.
3083 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
3084 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
3085 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
3086 (x_set_cursor_type, Fxw_color_values, valid_image_p)
3087 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
3088 (x_alloc_image_color, clear_image_cache, lookup_image)
3089 (x_find_image_file, xbm_read_bitmap_file_data)
3090 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
3091 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
3092 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
3093 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
3094 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
d8d95bc7 3095 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
e3564461
ST
3096 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
3097 #if 0.
3098 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
3099 #if 0. Free white_relief.gc and black_relief.gc.
d8d95bc7
SM
3100 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
3101 New functions (from xfns.c).
e3564461
ST
3102 (Fx_create_frame): Record unwind_create_frame.
3103 (Fxw_display_color_p): Use dpyinfo->color_p.
3104 (Fx_display_grayscale_p, Fx_display_planes): Don't use
3105 dpyinfo->n_cbits.
3106 (Fx_display_color_cells): Use dpyinfo->n_planes;
3107 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
3108 (Qheuristic, cross_disabled_images, emboss_matrix)
3109 (laplace_matrix): New variables (from xfns.c).
3110 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
3111 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
3112 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
d8d95bc7
SM
3113 (image_background_transparent): New function (from xfns.c).
3114 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
3115 (image_load_quicktime): Add declaration.
3116 [MAC_OSX] (image_load_quartz2d): Likewise.
3117 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
3118 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
d8d95bc7 3119 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
e3564461
ST
3120 (xbm_load_image_from_file, x_laplace_read_row)
3121 (x_laplace_write_row, pbm_read_file): Remove functions.
3122 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
3123 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
3124 (colors_in_color_table): Sync with xfns.c (although not used).
3125 (lookup_rgb_color): Don't lookup color table. Just do gamma
3126 correction.
3127 (COLOR_INTENSITY): New #define (from xfns.c).
d8d95bc7
SM
3128 (x_disable_image): New function (from xfns.c).
3129 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
3130 (x_build_heuristic_mask): Sync with xfns.c.
3131 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
3132 (HAVE_PBM): Remove #ifdef.
3133 (pbm_load): Sync with xfns.c. Set img->width and img->height
3134 before IMAGE_BACKGROUND.
d8d95bc7 3135 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
e3564461
ST
3136 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
3137 Don't enclose with #if HAVE_PNG.
3138 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
d8d95bc7
SM
3139 symbol _CGImageCreateWithPNGDataProvider is defined.
3140 Otherwise use image_load_quicktime.
e3564461 3141 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
d8d95bc7
SM
3142 [HAVE_PNG] (png_load): Sync with xfns.c.
3143 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
3144 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
3145 HAVE_JPEG.
3146 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
3147 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
3148 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
3149 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
3150 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
3151 (tiff_image_p, tiff_load): Don't enclose declarations with #if
3152 HAVE_TIFF.
3153 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
3154 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
3155 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
d8d95bc7
SM
3156 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
3157 New functions (from xfns.c).
e3564461 3158 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
d8d95bc7 3159 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
e3564461
ST
3160 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
3161 Don't enclose with #if HAVE_GIF.
3162 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
3163 animated gif. Otherwise use image_load_quicktime.
3164 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
3165 gif_DrawText to avoid conflict with QuickdrawText.h.
3166 [HAVE_GIF] (gif_load): Sync with xfns.c.
3167 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
3168 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
3169 Ghostscript is not supported yet).
3170 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
3171 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
3172 cross_disabled_images (from xfns.c). Remove #if 0 for supported
3173 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
3174 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
3175 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
d8d95bc7
SM
3176 HAVE_PNG. Call EnterMovies to support animated gifs.
3177 Call init_image_func_pointer to bind a symbol
e3564461 3178 _CGImageCreateWithPNGDataProvider if it is defined.
a64387ee 3179
d8d95bc7 3180 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
e3564461
ST
3181 (x_draw_bar_cursor): Sync declaration with xterm.c.
3182 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
3183 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
3184 graphics).
3185 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
3186 (mac_draw_line_to_pixmap, XCreatePixmap)
3187 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
d8d95bc7
SM
3188 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
3189 New functions.
3190 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
3191 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
3192 Cast bits to char *.
e3564461
ST
3193 (reflect_byte): New function (from w32fns.c).
3194 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
3195 due to byte alignment.
d8d95bc7
SM
3196 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
3197 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
e3564461
ST
3198 (XSetForeground): Remove static (now used in macfns.c).
3199 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
3200 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
3201 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
3202 (x_draw_glyph_string_box, x_draw_image_foreground)
3203 (x_draw_image_foreground_1, x_draw_image_glyph_string)
3204 (x_draw_stretch_glyph_string, x_draw_glyph_string)
3205 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
3206 Sync with xterm.c.
3207 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
3208 than the xterm.c version when a strictly horizontal or vertical
3209 line is drawn.
3210 (XTset_terminal_window): Add static.
3211 (x_make_frame_visible): Add UNBLOCK_INPUT.
3212 (x_free_frame_resources): New funcion (from xterm.c).
3213 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
3214 occurs in tool bar area.
d8d95bc7
SM
3215 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
3216 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
e3564461
ST
3217 Initialize image cache.
3218 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
3219 Enclose unused functions with #if 0.
3220 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
3221 (decode_mac_font_name): New function to apply code conversions
d8d95bc7 3222 from a mac font name to an XLFD font name according to its script code.
e3564461 3223 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
d8d95bc7 3224 font name to a mac font name according to REGISTRY and ENCODING fields.
e3564461
ST
3225 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
3226 whose name starts with `.'.
3227 (init_font_name_table): Use decode_mac_font_name. Add both
3228 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
3229 of a font is smJapanese.
3230 (mac_do_list_fonts): New function to list fonts that match a given
3231 pattern.
3232 (x_list_fonts, XLoadQueryFont): Use it.
3233 (XLoadQueryFont): Set rbearing field for each variable width
3234 character to avoid needless redraw.
3235 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
3236
446f5f3d
KS
32372004-02-26 Kim F. Storm <storm@cua.dk>
3238
af617d0f
KS
3239 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
3240 as read_socket_hook handler on X aborts if buffer is too small
3241 and W32 handler doesn't always check buffer limit.
3242
446f5f3d
KS
3243 * xdisp.c (handle_single_display_prop): Handle left-fringe and
3244 right-fringe similar to a display margin image. Specifically,
3245 the characters having the fringe prop are no longer shown, and
3246 we use IT_IMAGE/next_element_from_image with image_id = -1 to
3247 do this. Set fringe bitmap face_id in it->face_id.
3248 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
3249 still realize it->face (i.e. the fringe bitmap face).
3250
7d8a0b55
MB
32512004-02-25 Miles Bader <miles@gnu.org>
3252
3253 * xdisp.c (check_it): Check string/string_pos consistency.
3254 (init_iterator): Initialize string-related fields properly.
3255
32562004-02-11 Miles Bader <miles@gnu.org>
3257
3258 * xdisp.c (produce_image_glyph): Force negative descents to zero.
3259
32602004-02-10 Miles Bader <miles@gnu.org>
3261
3262 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
3263 BLOCK_INPUT can be nested, so it doesn't make much sense.
3264
a64387ee 32652004-02-24 Michael Mauger <mmaug@yahoo.com>
ce35edd1
JR
3266
3267 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
3268 (xbm_read_bitmap_data): Use unsigned char for image data.
3269
92f5fba2
LT
32702004-02-23 Luc Teirlinck <teirllm@auburn.edu>
3271
3272 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
3273
8565fb3d
JR
32742004-02-22 Jason Rumney <jasonr@gnu.org>
3275
3276 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
3277 correctly over other bitmaps.
3278
a6eeaa81 32792004-02-21 Eli Zaretskii <eliz@gnu.org>
f8125c39
EZ
3280
3281 * emacs.c (USAGE1): Split into two halves.
3282 (USAGE2): Second half of the old USAGE1.
d8d95bc7
SM
3283 (USAGE3): Rename from USAGE2.
3284 (USAGE4): Rename from USAGE3.
f8125c39 3285
4effffca
EZ
32862004-02-21 Juri Linkov <juri@jurta.org>
3287
3288 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
3289 Fix --multibyte. Move --help, --version to USAGE2. Add alias
3290 --file. Fix -f, -l. Sort options. Untabify.
3291 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
3292
923c1e6f
LT
32932004-02-19 Luc Teirlinck <teirllm@auburn.edu>
3294
3295 * category.c (Fdefine_category, Fcategory_docstring)
3296 (Fget_unused_category, Fset_category_table)
3297 (Fcategory_set_mnemonics): Doc fixes.
3298
b0e225fd
KS
32992004-02-20 Kim F. Storm <storm@cua.dk>
3300
3301 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
3302 The following changes are relative to the 2004-01-21 revision.
3303 (NREAD_INPUT_EVENTS): Define as max number of input events to read
3304 in one call to read_socket_hook. Value is 8.
3305 (read_avail_input): Separate and rework handling of read_socket_hook
3306 and non-read_socket_hook cases. Use smaller input_event buffer
d8d95bc7
SM
3307 in read_socket_hook case, and repeat if full buffer is read.
3308 Use new local variable 'discard' to skip input after C-g.
b0e225fd
KS
3309 In non-read_socket_hook case, just use a single input_event, and
3310 call kbd_buffer_store_event on the fly for each character.
3311
b15aa9f9
SM
33122004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
3313
3314 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
3315 Remove unused `gu' alternative.
3316
83c9aa95
AS
33172004-02-19 Andreas Schwab <schwab@suse.de>
3318
3319 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
3320 warning.
3321
cc808173
KS
33222004-02-18 Kim F. Storm <storm@cua.dk>
3323
3324 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
3325 Fix last change.
3326
ab90a54d
KS
33272004-02-17 Kim F. Storm <storm@cua.dk>
3328
b26f249f
KS
3329 * xdisp.c (fast_find_position): Fix return value of new version;
3330 it was inverted compared to the 21.1 version.
3331 (get_window_cursor_type): Don't look at glyph if NULL.
3332 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
0bf7d005 3333
ab90a54d
KS
3334 * keyboard.c: Rework previous change; it didn't consider that the
3335 buf array was allocated on the stack.
3336 (prev_read): Remove variable.
3337 (read_avail_input_buf): New static event buffer array.
b9568dfc 3338 (in_read_avail_input): New static variable to handle re-entrancy.
ab90a54d 3339 (read_avail_input): Change buf to pinter to read_avail_input_buf.
b9568dfc
KS
3340 Use in_read_avail_input to handle re-entrance; when re-entered,
3341 fully initialize and use tmp_buf array instead of read_avail_input_buf.
3342 Do not initialize read_avail_input_buf in full here; instead assume it
ab90a54d
KS
3343 is always cleared on entry. To ensure that, we clear (just) the
3344 entries that were used before we return.
3345 (init_keyboard): Initialize read_avail_input_buf here.
3346
4e039f3f
EZ
33472004-02-16 Jesper Harder <harder@ifa.au.dk> (tiny change)
3348
3349 * cmds.c (Fend_of_line): Doc fix.
3350
7b5368c1
EZ
33512004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
3352
3353 * keyboard.c (prev_read): New static variable.
3354 (read_avail_input): Use it to zero out only those slots in buf[]
3355 that were used last time we were called.
3356
a6eeaa81 33572004-02-16 Eli Zaretskii <eliz@gnu.org>
ca4bc494
EZ
3358
3359 * Makefile.in (obj): Move fringe.o from here...
3360 (XOBJ, MAC_OBJ): ...to here.
3361
159c348e
SE
33622004-02-16 Stephen Eglen <stephen@gnu.org>
3363
3364 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
3365
d2f14999
SM
33662004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
3367
b15aa9f9
SM
3368 * data.c (Fbyteorder):
3369 * fringe.c (Fdefine_fringe_bitmap):
3370 * xdisp.c (handle_single_display_prop):
d2f14999
SM
3371 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
3372
8d50508a
JR
33732004-02-16 Jason Rumney <jasonr@gnu.org>
3374
3375 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
3376
dd4497dc
ST
33772004-02-15 Steven Tamm <steventamm@mac.com>
3378
3379 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
3380 controlling emulation of a three button mouse with option and
3381 command keys.
3382 (Qreverse, mac_get_enumlated_btn): Handle the emulation
b15aa9f9 3383 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
dd4497dc 3384
c9159cb3
KS
33852004-02-15 Kim F. Storm <storm@cua.dk>
3386
2cc52658
KS
3387 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
3388
c9159cb3
KS
3389 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
3390 Perform byte-swapping.
3391
12fde2dc
KS
33922004-02-14 Kim F. Storm <storm@cua.dk>
3393
3394 * dispextern.h (struct draw_fringe_bitmap_params): Change member
3395 bits from char to short to facilitate wider bitmaps.
3396 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
3397 member.
3398
3399 * fringe.c (struct fringe_bitmap): Change member bits from char to
3400 short to facilitate 16 bits wide bitmaps. Modify all standard
3401 bitmaps accordingly.
3402 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
3403 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
3404 (draw_fringe_bitmap): Ditto.
3405 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
3406 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
3407 handle up to 16 bits wide bitmaps.
3408 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
f21a7192 3409 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
12fde2dc
KS
3410
3411 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
3412 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
3413 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
3414
3415 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
3416 so it is no longer necessary to expand them here.
3417
3418 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
3419
9d7271e8
KS
34202004-02-12 Kim F. Storm <storm@cua.dk>
3421
3422 * window.c (Fwindow_fringes): Doc fix.
3423
706c1e4f
JD
34242004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3425
3426 * xselect.c (x_get_foreign_selection): Add new optional parameter
3427 time_stamp.
3428 (Fx_get_selection_internal): Ditto, pass time_stamp to
3429 x_get_foreign_selection.
3430
3431 * data.c (Fbyteorder): New function.
3432
c2d12b5d
JD
34332004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3434
3435 * atimer.c: Move include stdio.h to same place as in other files.
3436
3437 * region-cache.c: Ditto.
3438
3439 * sysdep.c: Ditto.
3440
3441 * xfaces.c: Ditto.
3442
4c1947b9
SS
34432004-02-09 Sam Steingold <sds@gnu.org>
3444
89458937 3445 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
4c1947b9 3446
82722af3
KS
34472004-02-09 Kim F. Storm <storm@cua.dk>
3448
3449 * fringe.c: New file. Move original fringe related declarations
3450 and code from dispextern.h and xdisp.c here.
3451 Rework code to support user defined fringe bitmaps, redefining
3452 standard bitmaps, ability to overlay user defined bitmap with
3453 overlay arrow bitmap, and add faces to bitmaps.
3454 (Voverflow_newline_into_fringe): Declare here.
3455 (enum fringe_bitmap_align): New enum.
3456 (..._bits): All bitmaps are now defined without bitswapping; that
3457 is now done in init_fringe_once (if necessary).
3458 (standard_bitmaps): New array with specifications for the
3459 standard fringe bitmaps.
3460 (fringe_faces): New array.
3461 (valid_fringe_bitmap_id_p): New function.
3462 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
3463 (draw_fringe_bitmap): New function which draws fringe bitmap,
3464 possibly overlaying bitmap with cursor in right fringe or the
3465 overlay arrow in the left fringe.
3466 (update_window_fringes): Do not handle overlay arrow here.
3467 Compare and copy fringe bitmap faces.
3468 (init_fringe_bitmap): New function.
3469 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
3470 define and destroy user defined fringe bitmaps.
3471 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
3472 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
3473 (syms_of_fringe): New function. Defsubr new DEFUNs.
3474 DEFVAR_LISP Voverflow_newline_into_fringe.
3475 (init_fringe_once, init_fringe): New functions.
3476 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
4c1947b9 3477
82722af3
KS
3478 * Makefile.in (obj): Add fringe.o.
3479 (fringe.o): New dependencies.
3480
3481 * dispextern.h (FRINGE_ID_BITS): New definition for number of
3482 bits allocated to hold a fringe number. Increase number of bits
3483 from 4 to 8 to allow user defined fringe bitmaps.
3484 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
3485 left_user_fringe_face_id, right_user_fringe_bitmap,
3486 right_user_fringe_face_id.
3487 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
3488 Move to new file fringe.c.
3489 (MAX_FRINGE_BITMAPS): Define here.
3490 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
3491 and overlay_p. Change member which to int.
3492 (struct redisplay_interface): New members define_fringe_bitmap
3493 and destroy_fringe_bitmap.
3494 (valid_fringe_bitmap_id_p): Add prototype.
3495 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
3496
3497 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
3498 arrows.
3499 (update_frame): Do flush_display if force_flush_display_p to
3500 ensure display (specifically fringes) are updated in a timely
3501 manner when resizing the frame by dragging the mouse.
3502 (update_window_line): Update row if overlay arrow changed.
3503 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
3504 or overlay arrow changed.
3505
3506 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
3507 syms_of_fringe, and init_fringe.
3508
3509 * frame.h (struct frame): New member force_flush_display_p.
3510
3511 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
3512 Add prototypes.
3513
a3993cc8 3514 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
a64387ee 3515 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
a3993cc8
KS
3516 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
3517 Use cursor color for displaying cursor in fringe.
82722af3
KS
3518 (x_redisplay_interface): Add null handlers for
3519 define_fringe_bitmap and destroy_fringe_bitmap functions.
3520
3521 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
3522 xterm.c to handle overlayed fringe bitmaps and to use cursor color
3523 for displaying cursor in fringe.
3524 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
3525 specific functions to define and destroy fringe bitmaps in fringe_bmp.
3526 (w32_redisplay_interface): Add them to redisplay_interface.
3527 (w32_term_init): Call w32_init_fringe instead of explicitly
3528 defining fringe bitmaps in fringe_bmp array.
3529 (x_delete_display): Call w32_reset_fringes instead of explicitly
3530 destroying fringe bitmaps in fringe_bmp array.
3531
3532 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
3533 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
3534 (continued_bits, continuation_bits, ov_bits, first_line_bits)
3535 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
3536 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
3537 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
3538 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
3539 Move fringe handling vars and code to new file fringe.c.
3540 (handle_display_prop): Handle left-fringe and right-fringe
3541 display properties; store user fringe bitmaps in iterator.
3542 (move_it_in_display_line_to): Handle cursor in fringe at eob.
3543 (clear_garbaged_frames): Set force_flush_display_p if resized.
3544 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
3545 (display_line): Handle cursor in fringe at eob.
3546 (display_line): Set row user fringe bitmaps from iterator.
3547
3548 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
3549 Use cursor color for displaying cursor in fringe.
3550 (x_redisplay_interface): Add null handlers for
3551 define_fringe_bitmap and destroy_fringe_bitmap functions.
3552
030400eb
JD
35532004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3554
3555 * macfns.c (Fx_change_window_property): Make doc string and
3556 parameters same as for X version.
3557
3558 * w32fns.c (Fx_change_window_property): Ditto.
3559
3af55251
KS
35602004-02-07 Kim F. Storm <storm@cua.dk>
3561
ec110e9e
KS
3562 * xdisp.c (hscroll_window_tree): Position cursor near to right
3563 margin in hscrolled window when jumping to end of line (rather
3564 than centering cursor).
3565
3af55251
KS
3566 * process.c (wait_reading_process_input): Don't do adaptive read
3567 buffering if waiting for a specific process.
3568
b0c138ce
LT
35692004-02-05 Luc Teirlinck <teirllm@auburn.edu>
3570
3571 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
3572 (Fread_minibuffer, Feval_minibuffer)
3573 (Fread_string, Fread_no_blanks_input)
3574 (Fcompleting_read): Doc fixes.
3575 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
3576 completion-regexp-list. Define Qcase_fold_search and staticpro it.
3577 (read_minibuf): Fix initial comment.
3578 (Ftry_completion, Fall_completions, Ftest_completion): Bind
e8eeaed8 3579 case-fold-search to the value of completion-ignore-case when
b0c138ce
LT
3580 checking completion-regexp-list.
3581 (Fdisplay_completion_list): Make it handle arguments that are
3582 symbols. Doc fix.
3583
9676f5ad 35842004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
64d1e373 3585
9676f5ad 3586 * xterm.h: Add declaration of free_frame_menubar.
64d1e373 3587
9676f5ad
JD
3588 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
3589 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
b0c138ce 3590 (Fx_change_window_property): Add declaration of parameters type and
9676f5ad 3591 format. Remove unused variable cons.
5b698285
JD
3592
3593 * xselect.c: Include stdio,h.
3594
fc1d15f6
KH
35952004-02-05 Kenichi Handa <handa@m17n.org>
3596
ebaff4af
KH
3597 * fns.c (Fset_char_table_range): Fix previous change.
3598
fc1d15f6
KH
3599 * buffer.c (Fset_buffer_multibyte): Fix docstring.
3600
9676f5ad
JD
36012004-02-04 Luc Teirlinck <teirllm@auburn.edu>
3602
3603 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
3604
da75761f
SM
36052004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
3606
3607 * keymap.c (Vmouse_events): Rename from Vmenu_events.
3608 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
3609
13c5d120
KH
36102004-02-04 Kenichi Handa <handa@m17n.org>
3611
3612 * fns.c (Fset_char_table_range): Handle charsets ascii,
3613 eight-bit-control, and eight-bit-graphic correctly.
3614
2883d842
JR
36152004-02-03 Jason Rumney <jasonr@gnu.org>
3616
3617 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
3618
3619 * w32fns.c (x_to_w32_font): Likewise.
3620
69eff41f
JD
36212004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3622
3623 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
3624 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
3625
3626 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
3627 ClientMessages.
3628
3629 * xselect.c: Include termhooks.h and X11/Xproto.h
3630 (x_check_property_data, x_fill_property_data)
3631 (x_property_data_to_lisp, mouse_position_for_drop)
3632 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
da75761f 3633 (Fx_send_client_event): Move here from xfns.c.
69eff41f
JD
3634 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
3635
da75761f 3636 * xfns.c (x-send-client-message): Move to xselect.c
69eff41f
JD
3637 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
3638 OUTER_P.
3639 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
3640 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
3641 if vector_ret_p is true.
3642 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
69eff41f 3643
a6eeaa81 36442004-02-02 Eli Zaretskii <eliz@gnu.org>
dcdbbb5d
EZ
3645
3646 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
3647 basename of FILE relative to it, not FILE itself.
3648
09721b31
KH
36492004-02-02 Kenichi Handa <handa@m17n.org>
3650
3651 * coding.c (coding_restore_composition): Check invalid
3652 composition data more rigidly.
3653
eb996101
LT
36542004-01-30 Luc Teirlinck <teirllm@auburn.edu>
3655
3656 * fileio.c (Fread_file_name_internal): Correctly handle the case
3657 where insert-default-directory is nil.
3658 (Fread_file_name): Always return an empty string if the user exits
3659 with an empty minibuffer. Adapt the docstring accordingly.
3660 (syms_of_fileio): Adapt the docstring of insert-default-directory
3661 to the change in Fread_file_name.
3662
a6eeaa81 36632004-01-29 Eli Zaretskii <eliz@gnu.org>
a0367d42
EZ
3664
3665 * alloca.c [!alloca]: Fix the prototype for xfree.
3666
13f52ed8
KH
36672004-01-29 Kenichi Handa <handa@m17n.org>
3668
3669 * fns.c (string_char_to_byte): Optimize for ASCII only string.
3670 (string_byte_to_char): Likewise.
3671
d57625a0
JR
36722004-01-28 Peter Runestig <peter@runestig.com>
3673
3674 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
3675
a64387ee 36762004-01-27 Steven Tamm <steventamm@mac.com>
911c78b4
ST
3677
3678 * unexmacosx.c (unexec_copy): Do not copy more than was
3679 requested to prevent overwriting during unexec.
3680
eb37b8fd
JD
36812004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3682
ce38070a
JD
3683 * process.c (sigchld_handler): Add comment about not calling malloc.
3684
eb37b8fd
JD
3685 * process.h: Add extern to synch_process_termsig.
3686
a64387ee 36872004-01-27 Steven Tamm <steventamm@mac.com>
21a3e657 3688
da75761f
SM
3689 * macterm.c (make_mac_frame, make_mac_terminal_frame):
3690 Move setting of scroll bars from make_mac_frame to
3691 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
21a3e657 3692
d62a265d
RS
36932004-01-26 Richard M. Stallman <rms@gnu.org>
3694
3695 * search.c (Freplace_match): Handle nonexistent
3696 back-references properly.
3697
36982004-01-03 Richard M. Stallman <rms@gnu.org>
3699
3700 * window.c (decode_any_window): New function.
3701 (Fwindow_height, Fwindow_width, Fwindow_edges)
3702 (Fwindow_pixel_edges, Fwindow_inside_edges)
3703 (Fwindow_inside_pixel_edges): Use decode_any_window.
3704
ff236419
JD
37052004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3706
3707 * process.h: synch_process_termsig new variable.
3708
3709 * callproc.c: Define synch_process_termsig.
3710 (Fcall_process): Initiate synch_process_termsig to zero and
3711 check if non-zero and get signal name after subprocess has ended.
3712
3713 * process.c (sigchld_handler): Set synch_process_termsig
3714 if terminated by a signal. synch_process_death setting removed.
3715
3716 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
3717
41b867ea
AS
37182004-01-26 Andreas Schwab <schwab@suse.de>
3719
3720 * print.c (print_preprocess): Declare size as EMACS_INT to not
3721 lose bits.
3722 (print_object): Likewise.
3723 * alloc.c (Fpurecopy): Likewise.
3724
a08084ff
LT
37252004-01-25 Luc Teirlinck <teirllm@auburn.edu>
3726
3727 * window.c (Fwindow_minibuffer_p): Doc fix.
3728
b19ac475
JY
37292004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
3730
3731 * editfns.c (Fformat): Make both passes accept the same set of flags.
3732
fe905025
KH
37332004-01-23 Kenichi Handa <handa@m17n.org>
3734
3735 * fns.c (Fmd5): If OBJECT is a buffer different from the current
3736 one, set buffer to OBJECT temporarily.
3737
438fc6c0
SM
37382004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
3739
455316e2
SM
3740 * keyboard.c (kbd_buffer_gcpro): Remove.
3741 (kbd_buffer_store_event, clear_event, Fdiscard_input)
3742 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
3743 Don't initialize and/or maintain the variable any more. It was made
3744 redundant by my commit of 2003-06-15.
3745
438fc6c0
SM
3746 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
3747
5335a4ee
JD
37482004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3749
3750 * lisp.h: Add undef DECL_ALIGN.
3751
dcdaeebc
SM
37522004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
3753
3754 * process.c (wait_reading_process_input) [SYNC_INPUT]:
3755 Check interrupt_input_pending explicitly.
3756
3757 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
3758
3759 * keyboard.c (handle_async_input): New fun,
3760 extracted from input_available_signal.
3761 (input_available_signal, reinvoke_input_signal): Use it.
3762
9076a823
SM
37632004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
3764
d7107586
SM
3765 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
3766
3767 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
3768 manipulation macros for when tags are in the lower bits.
3769 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
3770 (DECL_ALIGN): New macro.
3771 (DEFUN): Use it.
3772
3773 * lisp.h [ENABLE_CHECKING]: Don't force union type.
3774
3775 * s/darwin.h (__attribute__): Remove outdated workaround.
3776
3777 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
3778
3779 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
3780 Don't check range of malloc address.
3781 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
3782
9076a823
SM
3783 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
3784
3785 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
3786
ba029065
KH
37872004-01-19 Kenichi Handa <handa@m17n.org>
3788
3789 * fontset.c (fontset_font_pattern): Fix previous change.
3790
7af0e8d7
MB
37912004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
3792
3793 * xdisp.c (Voverflow_newline_into_fringe)
3794 (move_it_in_display_line_to, redisplay_internal)
3795 (update_window_fringes, redisplay_window, display_line, window):
3796 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
3797 that it compiles without a window-system.
3798 * dispnew.c (direct_output_for_insert, update_window): Likewise.
3799
77a9cf69
KS
38002004-01-16 Kim F. Storm <storm@cua.dk>
3801
3802 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
3803
a64387ee 3804 * buffer.c (init_buffer_once): Set buffer_defaults and
77a9cf69
KS
3805 buffer_local_flags for indicate_buffer_boundaries.
3806 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
3807 default- variable for it.
3808
3809 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
3810 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
d7107586 3811 New members exact_window_width_line_p and cursor_in_fringe_p for
77a9cf69
KS
3812 overflowing newlines into right fringe.
3813 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
3814 and indicate_bottom_line_p for buffer boundaries and scrolling.
3815 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
3816 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
3817 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
3818 and HOLLOW_SQUARE_BITMAP.
3819 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
3820 Add prototypes.
3821
3822 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
3823 instead of related indicator fields.
3824 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
3825 (direct_output_for_insert): Handle exact width lines like
3826 contined lines. Call update_window_fringes.
3827 (update_window): Call update_window_fringes.
3828 (scrolling_window): Don't skip desired rows with changed bitmaps.
3829 Check if fringe bitmaps changes when assigning scrolled rows.
3830
3831 * xdisp.c (Voverflow_newline_into_fringe): New variable.
3832 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
3833 (move_it_in_display_line_to): Overflow newline into fringe for
3834 rows that are exactly as wide as the window.
3835 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
3836 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
3837 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
3838 (fringe_bitmaps): Add new bitmaps.
3839 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
3840 Select proper bitmap for cursor in fringe when appropriate.
3841 Handle alignment of bitmap to top or bottom of row.
3842 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
3843 done by update_window_fringes.
3844 (update_window_fringes, draw_window_fringes): New functions.
3845 (redisplay_internal): Call update_window_fringes in case only
3846 cursor row is updated.
3847 (redisplay_window): Call update_window_fringes.
3848 Explicitly call draw_window_fringes if redisplay was done using
3849 the current matrix or the overlay arrow is in the window.
3850 (try_window_reusing_current_matrix): Mark scrolled rows for
3851 fringe update (to update buffer-boundaries / scrolling icons).
3852 (find_last_unchanged_at_beg_row): Handle exact width lines line
3853 continued lines.
3854 (display_line): Overflow newline into fringe for rows that are
3855 exactly as wide as the window. Don't append space for newline
d7107586 3856 in this case.
77a9cf69
KS
3857 (notice_overwritten_cursor): Explicitly clear cursor bitmap
3858 in fringe as if it had been overwritten.
3859 (erase_phys_cursor): Erase cursor bitmap in fringe.
d7107586 3860 (syms_of_xdisp): Mark show-trailing-whitespace and
77a9cf69
KS
3861 void-text-area-pointer as user options.
3862 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
d7107586 3863
77a9cf69
KS
3864 * xterm.c (x_update_window_end): Call draw_window_fringes.
3865 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
3866 in row instead of actually drawing fringe bitmaps.
3867 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
3868 (x_draw_window_cursor): Draw cursor in fringe.
3869
3870 * w32term.c (x_update_window_end): Call draw_window_fringes.
3871 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
3872 in row instead of actually drawing fringe bitmaps.
3873 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
3874 (w32_draw_window_cursor): Draw cursor in fringe.
3875
3876 * macterm.c (x_update_window_end): Call draw_window_fringes.
3877 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
3878 in row instead of actually drawing fringe bitmaps.
3879 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
3880 (mac_draw_window_cursor): Draw cursor in fringe.
3881
a633a954
JD
38822004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3883
3884 * xterm.c (handle_one_xevent): Don't handle characters that are part
3885 of an old style (XLookupString) compose sequence.
3886
80460525
KH
38872004-01-15 Kenichi Handa <handa@m17n.org>
3888
3889 * search.c (Freplace_match): Use make_multibyte_string or
3890 make_unibyte_string according to the buffer multibyteness.
3891
7fc34f85
SM
38922004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
3893
3894 * alloc.c (struct interval_block, struct string_block)
3895 (struct symbol_block, struct marker_block, live_string_p)
3896 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
3897 Better preserve alignment for objects in blocks.
3898 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
3899
3900 * lread.c (defvar_per_buffer): Remove dead declaration.
3901
3902 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
3903 space size.
3904
66070bd1
JD
39052004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3906
3907 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
3908 if a key press should pop down. Only pop down if a key is pressed
3909 outside the menu/dialog.
3910 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
3911 popup_get_selection.
3912 (create_and_show_dialog): Pass 1 for down_on_keypress to
3913 popup_get_selection.
3914
de7515d6
JD
39152004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3916
3917 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
3918 BLOCK/UNBLOCK_INPUT.
3919
160b1b50
JD
39202004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3921
3922 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
3923 specified.
3924
3a9f36e6
KH
39252004-01-08 Kenichi Handa <handa@m17n.org>
3926
3927 * editfns.c (Fformat): Fix '&' to '&&'.
3928
3803eb32
AS
39292004-01-08 Andreas Schwab <schwab@suse.de>
3930
3931 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
3932 size if PSEUDOVECTOR_FLAG is set.
3933
9da88f37
KH
39342004-01-07 Kenichi Handa <handa@m17n.org>
3935
74ac5074
KH
3936 * charset.c (Fdeclare_equiv_charset): Fix docstring.
3937
9da88f37
KH
3938 * fontset.c (fontset_ref_via_base): Fix previous change.
3939
05faee07
KS
39402004-01-07 Kim F. Storm <storm@cua.dk>
3941
3942 * process.c (read_process_output): Only activate adaptive
3943 buffering if we read less than 256 bytes at a time.
3944
634910c8
KS
39452004-01-06 Kim F. Storm <storm@cua.dk>
3946
3947 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
3948 object and image object. Return glyph width and height.
3949 (mode_line_string, marginal_area_string): Ditto.
3950
3951 * dispextern.h (buffer_posn_from_coords, mode_line_string)
3952 (marginal_area_string): Fix prototypes.
3953
3954 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
f63fd14e 3955 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
634910c8
KS
3956 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
3957
3958 * keyboard.c (make_lispy_position): Use modified mode_line_string,
3959 buffer_posn_from_coords, and marginal_area_string functions to
3960 include both string object and image object in the lispy position.
3961 Also add actual glyph width and height to position.
3962 (read_key_sequence): Use real buffer position from mouse
3963 event to find keymap property even when click is in marginal area.
3964
3965 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
3966 mode_line_string and marginal_area_string functions to handle
3967 both string object and image object properties.
d7107586 3968
57951c2e
AS
39692004-01-06 Andreas Schwab <schwab@suse.de>
3970
3971 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
3972 character.
3973
181e6a61
AS
39742004-01-02 Andreas Schwab <schwab@suse.de>
3975
d7107586
SM
3976 * macterm.c (emacs_options, x_initialized, same_x_server):
3977 Remove unused (and duplicated) definitions.
181e6a61 3978
31e0fbdd
KS
39792004-01-02 Kim F. Storm <storm@cua.dk>
3980
3981 * process.h (struct Lisp_Process): New members for adaptive read
3982 buffering: adaptive_read_buffering, read_output_delay, and
3983 read_output_skip.
3984
3985 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
3986 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
3987 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
3988 (process_output_delay_count, process_output_skip): New vars.
3989 (Vprocess_adaptive_read_buffering): New variable.
3990 (make_process): Initialize adaptive read buffering members.
3991 (Fstart_process): Set adaptive_read_buffering member.
3992 (deactivate_process): Cleanup adaptive read buffering.
3993 (wait_reading_process_input): Temporarily omit delayed
3994 subprocesses from the set of file descriptors to read from;
3995 adjust the select timeout if we skipped any subprocesses.
3996 (read_process_output): Increase adaptive read buffering delay if
3997 we read less than a full buffer; reduce delay when we read a
3998 full buffer.
3999 (send_process): Simplify using local Lisp_Process var.
4000 Reset adaptive read buffering delay after write.
4001 (init_process): Initialize process_output_delay_count and
4002 process_output_skip.
4003 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
4004
68c6a789
JR
40052004-01-01 Jason Rumney <jasonr@gnu.org>
4006
d7107586 4007 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
68c6a789 4008
3f70fe82
LT
40092003-12-30 Luc Teirlinck <teirllm@auburn.edu>
4010
4011 * print.c (Ferror_message_string): Add hyperlink in the docstring
4012 to the definition of `signal' in the Elisp manual.
4013 * eval.c (Fsignal): Ditto.
4014
a64387ee 40152003-12-29 James Clark <jjc@jclark.com> (tiny change)
c2be49ed
EZ
4016
4017 * fns.c (internal_equal): Return t for two NaN arguments.
4018
7abd90ea
RS
40192003-12-29 Richard M. Stallman <rms@gnu.org>
4020
4021 * data.c (store_symval_forwarding): Handle setting
4022 default-fill-column, etc., by changing the value in
4023 buffers that use the default.
4024
4025 * minibuf.c (Fset_minibuffer_window): Doc fix.
4026
4027 * fileio.c (choose_write_coding_system): Ignore auto_saving
4028 if using the visited file for auto saves.
4029 (Fwrite_region): Don't update SAVE_MODIFF
4030 if auto-saving in visited file.
4031
3e7cfcdc
KH
40322003-12-29 Kenichi Handa <handa@m17n.org>
4033
4034 * dispextern.h (face_font_available_p): Extern it.
4035
4036 * fontset.c (Voverriding_fontspec_alist): New variable.
4037 (lookup_overriding_fontspec): New function.
d7107586 4038 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
3e7cfcdc
KH
4039 (fontset_font_pattern): Likewise.
4040 (regulalize_fontname): New function.
4041 (Fset_fontset_font): Call regulalize_fontname.
4042 (Fset_overriding_fontspec_internal): New function.
d7107586
SM
4043 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
4044 Defsubr Sset_overriding_fontspec_internal.
3e7cfcdc
KH
4045
4046 * xfaces.c (face_font_available_p): New function.
4047
7abd90ea
RS
40482003-12-28 Richard M. Stallman <rms@gnu.org>
4049
4050 * buffer.c (Fother_buffer): Don't crash if BUF is nil
4051 or if its name is nil.
4052
4053 * buffer.c (Fkill_buffer): Don't delete auto-save file
4054 if it's the same as the visited file.
4055
de1d1a40
LT
40562003-12-28 Luc Teirlinck <teirllm@auburn.edu>
4057
4058 * coding.c (Fcheck_coding_system): Doc fix.
4059
204fb75e
KS
40602003-12-28 Kim F. Storm <storm@cua.dk>
4061
4062 * Makefile.in (eval.o): Depend on dispextern.h.
4063
4064 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
4065 image glyph using image's ascent.
4066 (mode_line_string): Return image glyph as object clicked on.
4067 Adjust y0 for image glyph using image's ascent.
4068
4069 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
4070 (struct glyph): New members, ascent and descent. Used to save
4071 this glyph's ascent and descent, instead of having.
4072 (struct glyph): Declare member face_id using FACE_ID_BITS.
4073 (find_hot_spot): Add prototype.
4074
4075 * keyboard.c (Qimage): Remove extern (now in lisp.h).
4076 (QCmap): Declare extern.
4077 (make_lispy_position): When position is inside image hot-spot,
4078 use hot-spot element's id as posn element.
4079
4080 * lisp.h (IMAGEP): New macro to test for image object type.
4081 (Qimage): Declare extern.
4082
4083 * macfns.c (Qimage): Remove extern (now in lisp.h).
4084 (valid_image_p, parse_image_spec): Use IMAGEP macro.
4085
4086 * macterm.c (Qface, Qmouse_face): Remove unused externs.
4087
4088 * w32fns.c (Qimage): Remove extern (now in lisp.h).
4089 (valid_image_p, parse_image_spec): Use IMAGEP macro.
4090
4091 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
4092
4093 * w32term.c (Qface, Qmouse_face): Remove unused externs.
4094
4095 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
4096 pointer types.
4097 (Qrelative_width, Qalign_to): Remove unused variables.
4098 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
4099 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
4100 image maps.
d7107586 4101 (x_y_to_hpos_vpos): Return glyph relative coordinates through
204fb75e
KS
4102 new dx and dy args.
4103 Remove buffer_only_p arg (always 0). Simplify code accordingly.
4104 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
4105 than row's ascent and height, to get sensible height on tall rows.
4106 (build_desired_tool_bar_string): Remove Qimage extern.
4107 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
4108 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
4109 image glyph is alone on the last line.
4110 (append_glyph, append_composite_glyph, produce_image_glyph)
d7107586 4111 (append_stretch_glyph): Set glyph's ascent and descent.
204fb75e 4112 (on_hot_spot_p): New function to check if position is inside an
d7107586 4113 rectangular, circular, or polygon-shaped image hot-spot,
204fb75e
KS
4114 (find_hot_spot): New function to search for image hot-spot.
4115 (Flookup_image_map): New defun to search for image hot-spot.
4116 (define_frame_cursor1): New aux function to determine frame pointer.
4117 (note_mode_line_or_margin_highlight, note_mouse_highlight):
4118 Handle `pointer' text property and :pointer image property to
4119 control frame pointer shape. Detect image hot-spots for pointer
4120 and help_echo properties. Use define_frame_cursor1.
4121 (note_mouse_highlight): Use Vvoid_text_area_pointer.
f63fd14e 4122 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
204fb75e
KS
4123 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
4124
4125 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
4126
4127 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
4128 (Qimage): Remove extern (now in lisp.h).
4129 (valid_image_p, parse_image_spec): Use IMAGEP macro.
4130
4131 * xmenu.c (show_help_event): Remove unused code.
4132
4133 * xterm.c (Qface, Qmouse_face): Remove unused externs.
4134 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
4135 row's ascent and descent, to get a sensible height on tall rows.
4136
fc052137
LT
41372003-12-25 Luc Teirlinck <teirllm@auburn.edu>
4138
4139 * minibuf.c (Fcompleting_read): Undo previous change.
4140
a64387ee 41412003-12-25 Lars Hansen <larsh@math.ku.dk>
b9148500
LH
4142
4143 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
4144 Arguments GCPRO'ed in call to file name handler.
4145
56ffd194
TTN
41462003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
4147
4148 * termcap.c (tgetst1): Scan for "%pN"; if all
4149 N are continuous in [1,9], remove all "%pN".
4150
5202d23d
JD
41512003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4152
f26fab36
JD
4153 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
4154
5202d23d
JD
4155 * xfaces.c (lface_fully_specified_p): Take into account that
4156 MAC OS always have unspecified stipple.
4157
8babaa59
TTN
41582003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
4159
4160 * tparam.c (tparam1): Add handling for `%pN', which
4161 means use param N for the next substitution.
4162
2d176448
TTN
41632003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
4164
4165 * xfaces.c (Fcolor_gray_p): Fix omission bug:
4166 In case `frame' is nil, consult the selected frame.
4167 (Fcolor_supported_p): Likewise.
4168
adb0708c
LT
41692003-12-23 Luc Teirlinck <teirllm@auburn.edu>
4170
000eeb15
LT
4171 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
4172 Doc fixes.
0dc72b11
LT
4173
4174 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
4175 and an integer. Adapt the introductory comment accordingly.
adb0708c
LT
4176 (Fread_from_minibuffer): Delete code moved into read_minibuf.
4177 Doc fix.
4178 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
4179 read_minibuf.
4180 (Fcompleting_read): Delete code moved into read_minibuf.
d7107586 4181 (Ftest_completion): Make it handle obarrays and hash tables correctly.
adb0708c 4182
2e4d132b
KH
41832003-12-03 Kenichi Handa <handa@m17n.org>
4184
4185 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
4186 encoding sequence.
4187
3999c705
KH
41882003-12-01 Kenichi Handa <handa@m17n.org>
4189
4190 * composite.c (syms_of_composite): Don't make the compostion hash
4191 table week.
4192
d344ecbb
LT
41932003-11-30 Luc Teirlinck <teirllm@auburn.edu>
4194
4195 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
4196 * textprop.c (Fget_char_property_and_overlay): New function.
4197 (syms_of_textprop): Defsubr it.
4198
03d6484e
JD
41992003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4200
019b1f0e
JD
4201 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
4202 to compile on terminal configuration.
4203
03d6484e
JD
4204 * fileio.c (Fread_file_name): Check use_file_dialog also before
4205 calling Fx_file_dialog.
4206
4207 * fns.c: use_file_dialog: New variable.
4208 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
4209
442d3fd0
KS
42102003-11-29 Kim F. Storm <storm@cua.dk>
4211
4212 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
4213 (syms_of_msdos): Don't intern and staticpro them.
4214
0f6a07a8
KS
42152003-11-27 Kim F. Storm <storm@cua.dk>
4216
4217 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
4218 coordinates relative to glyph at posn. If glyph is an image,
4219 return that as object at posn. Callers changed.
4220 (mode_line_string, marginal_area_string): Calculate and return
4221 pixel coordinates relative to glyph. Callers changed.
4222
4223 * dispextern.h (buffer_posn_from_coords, mode_line_string)
4224 (marginal_area_string): Fix prototypes.
4225 (window_box_left_offset, window_box_right_offset): Add prototypes.
4226
4227 * frame.h (get_specified_cursor_type, get_window_cursor_type):
4228 Remove prototypes.
4229
4230 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
4231
4232 * keyboard.c (make_lispy_position): Add x and y coordinates
4233 relative to the current glyph as 7th element of position.
4234 If glyph is an image, return it in the object element.
4235 (read_key_sequence): Skip checks for keymap property in cases
4236 where POSN_STRING is not a string (e.g. an image).
4237
4238 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
4239 (Vshow_text_cursor_in_void): New variable.
4240 (glyph_to_pixel_coords): Don't use negative hpos.
4241 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
4242 (append_stretch_glyph): Change ascent arg to be actual value
f63fd14e 4243 in pixels rather than ratio to height. Callers changed.
0f6a07a8
KS
4244 (calc_pixel_width_or_height): New aux function, implementing
4245 pixel based artihmetic for glyph widths and heights.
4246 (produce_stretch_glyph): Use calc_pixel_width_or_height for
4247 :width, :height, :align-to, and :ascent, thus allowing these to
4248 be specified in pixels as well as multiples of characters.
4249 Don't produce stretch glyphs with zero width or height.
4250 (get_specified_cursor_type): Declare static.
4251 (get_window_cursor_type): Declare static. Add glyph arg to be
4252 able to know when cursor is on an image; always substitute
4253 hollow-box cursor for filled-box cursor on images, to avoid
4254 negative images and flicker when blinking the cursor.
4255 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
4256 (note_mode_line_or_margin_highlight): Use non-text cursor rather
4257 than vertical scroll-bar cursor in display margins.
4258 (note_mouse_highlight): Use non-text cursor rather than text
4259 cursor in fringes and over images in the text area.
4260 Use non-text cursor when mouse pointer is outside editable text,
4261 i.e. in the void after end-of-line or end-of-buffer; this was
4262 already done for W32, but is now standard for all systems --
4263 user can toggle show-text-cursor-in-void to get old behaviour.
4264 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
4265 Vdisplay_pixels_per_inch.
4266
00498bfc
AS
42672003-11-25 Andreas Schwab <schwab@suse.de>
4268
4269 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
4270 EMACS_INT to not lose bits.
4271 (Ffillarray): Don't set bits beyond the size of a bool vector.
4272
edaa824d
KS
42732003-11-25 Kim F. Storm <storm@cua.dk>
4274
4275 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
4276 define this defun on systems that cannot use stderr as lvalue.
4277
74d6f539
GM
42782003-11-24 Gerd Moellmann <gerd@gnu.org>
4279
4280 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
4281 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
4282 ld's default is incompatible with unexec.
4283
6a1ff3ba
KS
42842003-11-23 Kim F. Storm <storm@cua.dk>
4285
63dc7c6b
KS
4286 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
4287 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
4288 (Fforce_window_update): New defun.
4289 (syms_of_window): Defsubr it.
4290 (Fset_window_margins, Fset_window_fringes): Doc fix.
4291
6a1ff3ba
KS
4292 * print.c (Fredirect_debugging_output): New defun.
4293 (syms_of_print): Defsubr it.
4294
aef109b7
LT
42952003-11-22 Luc Teirlinck <teirllm@auburn.edu>
4296
4297 * fns.c (Fset_char_table_parent): Doc fix.
4298
6a1ff3ba 42992003-11-22 Kim F. Storm <storm@cua.dk>
63ccbe21
KS
4300
4301 * dispnew.c (buffer_posn_from_coords): Return actual row/column
4302 for glyph clicked on, rather than (unused) pixel positions.
4303 (mode_line_string, marginal_area_string): Change X and Y args to
4304 pointers for returning actual row/column for glyph clicked on.
4305 Simplify and optimize loops.
4306
aef109b7
LT
4307 * dispextern.h (mode_line_string, marginal_area_string):
4308 Update prototypes.
63ccbe21
KS
4309
4310 * keyboard.c (make_lispy_position): New function for generating
4311 mouse click positions from frame and pixel coordinates.
4312 Enhanced to return buffer position and actual row/column for
4313 events outside the text area using updated mode_line_string and
4314 marginal_area_string functions.
4315 Return left-fringe and right-fringe clicks as such, rather than
4316 clicks in text area.
4317 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
4318 pixel_to_glyph_coords, as we never use the results.
4319 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
4320 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
4321 Eliminate unused code in WHEEL_EVENT handling.
4322 (make_lispy_movement): Use make_lispy_position.
4323
4324 * window.c (coordinates_in_window): Remove redundant tests.
4325 Fix returned X pixel value for left-margin.
4326
4327 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
4328 mode_line_string and marginal_area_string parameters.
4329
a64387ee 43302003-11-22 Lars Hansen <larsh@math.ku.dk>
930a9995 4331
d7107586
SM
4332 * w32.c (struct the_group, getgrgid): Add.
4333 * mac.c (struct my_group, getgrgid): Add.
aef109b7 4334
3dbf3426
LT
43352003-11-21 Luc Teirlinck <teirllm@auburn.edu>
4336
4337 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
4338
cae8ddbb 43392003-11-21 Lars Hansen <larsh@math.ku.dk>
ded4064f 4340
d7107586
SM
4341 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
4342 include in call to file name handler. Optionally translate numeric
4343 UID and GID to strings. Update docstring.
4344 (directory_files_internal): Add parameter ID-FORMAT.
4345 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
4346 include in call to file name handler and call to
4347 directory_files_internal. Update Docstring.
4348 (Fdirectory_files): Add dummy parameter in call to
4349 directory_files_internal.
4350 * lisp.h (Qinteger): Add.
4351 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
4352 (Ffile_attributes): Add parameter.
4353 * data.c (Qinteger): Export.
cae8ddbb 4354
2550b848
LT
43552003-11-21 Luc Teirlinck <teirllm@auburn.edu>
4356
3dbf3426 4357 * fns.c (Freverse, Fnreverse): Doc fixes.
2550b848 4358
88380018
KS
43592003-11-19 Kim F. Storm <storm@cua.dk>
4360
4361 * xdisp.c (init_iterator): Initialize it->start to position
4362 before reseating (in case start position is invisible).
4363 (init_to_row_start): Set it->start to row-start.
4364 (redisplay_window): Accept optional_new_start if start position
4365 is invisible (in which case IT_CHARPOS overshoots PT).
4366 (display_line): Setup row->start from it->start (rather than
4367 it->current which is wrong if first char on line is invisible).
4368 When done, reseat it->start to it->current (= start of next row).
4369 (expose_area): Fix exposure of text area when first char (e.g. TAB)
4370 is only partially visible.
4371
4372 * dispextern.h (struct it): New member start.
4373
854c1a59
SM
43742003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
4375
455316e2
SM
4376 * alloc.c (make_float, Fcons): Clear the markbit at init time.
4377 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
4378 of block_index outside of the macro call.
4379 (Fgarbage_collect): Remove null code.
4380
4381 * m/amdx86-64.h: Don't redefine XPNTR.
4382
854c1a59
SM
4383 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
4384 of VALMASK.
4385
4386 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
4387 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
4388 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
4389
4390 * lisp.h (VALMASK): Only define for non-union type.
4391 (MARKBIT): Remove.
4392 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
4393 (XTYPE): Define unconditionally.
4394 (XSETTYPE): Remove one more remnant.
4395 (EQ): Define differently for the union and non-union cases.
4396 (INTMASK): New bit mask.
4397 (struct Lisp_Marker): Move down to prepare for upcoming patch.
4398 (GC_EQ): Delegate to EQ.
4399
4400 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
4401
a0c6ef2d
JD
44022003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4403
4404 * xterm.c (x_window_to_scroll_bar): Move check of display to
4405 where window_id is compared.
4406
859492c4
KS
44072003-11-17 Kim F. Storm <storm@cua.dk>
4408
4409 * dispextern.h (struct it): New member first_vpos.
4410
4411 * xdisp.c (start_display): Set it->first_vpos.
4412 (try_window_id): Use first_vpos to start display in first _text_
4413 line if no reusable lines at start of window with header line.
4414
810f2256
JD
44152003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4416
7c402969 4417 * w32fns.c (XPutPixel):
854c1a59
SM
4418 * w32bdf.c (w32_init_bdf_font):
4419 * sunfns.c (sel_read):
4420 * process.c (Fmake_network_process):
4421 * frame.c (store_frame_param):
4422 * fontset.c (Fset_fontset_font):
4423 * emacs.c (shut_down_emacs):
a64387ee 4424 * ccl.c (ccl_driver): Remove period at end of error message.
7c402969 4425
a32e9bfd
JD
4426 * config.in: Regenerate.
4427
810f2256
JD
4428 * xfns.c (x_window_to_frame, x_any_window_to_frame)
4429 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
4430 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
4431 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
4432 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
4433
4434 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
4435
4436 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
4437 (XTmouse_position, handle_one_xevent): Pass Display* to
4438 x_window_to_scroll_bar.
4439 (x_window_to_scroll_bar): Take a Display* argument.
4440 Check that display for frame is equal to Display* argument.
854c1a59 4441 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
810f2256
JD
4442 x_display_info_for_display instead. Use Display in xev instead
4443 of GDK_DISPLAY.
4444 (x_dispatch_event): Call x_display_info_for_display.
f63fd14e 4445 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
810f2256
JD
4446 (x_connection_closed): Call xg_display_close for GTK.
4447 (x_term_init): Call xg_display_open for additional displays.
4448 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
4449 for GTK.
4450
4451 * xmenu.c (single_menu_item, mouse_position_for_popup)
4452 (x_activate_menubar): Formatting adjustments.
4453
4454 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
4455 adjustments.
4456
4457 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
4458 (xg_display_close, xg_create_default_cursor)
4459 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
4460 handling.
854c1a59
SM
4461 (xg_left_ptr_cursor): Remove.
4462 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
810f2256
JD
4463 cursor here.
4464 (xg_win_to_widget): Take Display* argument, call
4465 gdk_xid_table_lookup_for_display.
4466 (xg_create_frame_widgets, xg_get_file_name, create_menus)
4467 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
4468 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
4469 in FRAME_X_DISPLAY_INFO.
4470 (xg_get_scroll_id_for_window): Take Display* argument.
4471 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
854c1a59 4472 (xg_initialize): Remove xg_left_ptr_cursor.
810f2256
JD
4473
4474 * gtkutil.h: xg_get_scroll_id_for_window, xg_win_to_widget takes
4475 Display* argument also. Declare xg_display_open,
4476 xg_display_close, xg_create_default_cursor.
4477
0b03cc78
JD
44782003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4479
4480 * xterm.c (x_detect_focus_change): Do not change focus frame for
4481 Enter/LeaveNotify if the current focus frame has explicit focus.
4482
77e688fa
KS
44832003-11-14 Kim F. Storm <storm@cua.dk>
4484
4485 * dispnew.c (update_text_area): Fix redisplay error when hscroll
4486 is active and first glyph is only partially visible.
854c1a59 4487
dd429b03
KH
44882003-11-13 Kenichi Handa <handa@m17n.org>
4489
4490 * xdisp.c (select_frame_for_redisplay): New function.
4491 (redisplay_internal): Record also selected_frame for
4492 unwind_redisplay. Call select_frame_for_redisplay before
4493 redrawing each frame.
4494 (unwind_redisplay): Argument changed to a cons.
4495
6d9266f4
LT
44962003-11-12 Luc Teirlinck <teirllm@auburn.edu>
4497
4498 * fns.c (Fstring_to_multibyte): Doc fix.
4499
80060eb3
KH
45002003-11-11 Kenichi Handa <handa@m17n.org>
4501
4502 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
4503
74305183
JD
45042003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4505
4506 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
4507 program specified positions.
4508
cfda993e
JD
45092003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4510
4511 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
4512
df211069
KH
45132003-11-08 Kenichi Handa <handa@m17n.org>
4514
4515 * Makefile.in (lisp): Add kannada.el.
4516 (shortlisp): Likewise.
4517
4307d534
KH
45182003-11-07 Kenichi Handa <handa@m17n.org>
4519
854c1a59
SM
4520 * coding.c (coding_allocate_composition_data):
4521 Reset coding->composing to COMPOSITION_NO.
4307d534
KH
4522 (coding_restore_composition): Detect invalid composition data.
4523 Give Fstring and Fvector a Lispy integer, not C int.
4524
854c1a59
SM
45252003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
4526
4527 * floatfns.c (Flogb): Don't use VALMASK.
4528
4529 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
4530 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
4531
4532 * lisp.h (XINT): Move the cast to clarify what is going on.
4533 (GCTYPEMASK, XSETTYPE): Remove.
4534 (XGCTYPE): Make it an alias of XTYPE.
4535
d04103a1
JD
45362003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4537
4538 * xterm.c (x_term_init): Fix formatting.
4539
da18b5ac
JD
45402003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4541
4542 * gtkutil.h: Declare xg_have_tear_offs, remove xg_keep_popup
4543 and xg_did_tearoff.
4544
4545 * gtkutil.c: Remove variable xg_did_tearoff.
4546 (xg_have_tear_offs): New function.
4547 (tearoff_remove): Just decrease xg_detached_menus.
4548 (tearoff_activate): Increase xg_detached_menus and call
4549 tearoff_remove when tearoff is removed.
854c1a59 4550 (xg_keep_popup): Remove function.
da18b5ac
JD
4551 (create_menus): Give add_tearoff_p as argument to recursive
4552 call to create_menus.
4553 (xg_create_widget): Use variables instead of multiple
4554 strcmp. Tell create_menus to create tear off only for
4555 menu bar menus.
4556 (xg_update_menubar): Change title for a detached menu also.
4557 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
4558 of deep_p.
4559 (xg_initialize): Initialize xg_detached_menus, remove
4560 initialization of xg_did_tearoff.
4561
4562 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
4563 xg_have_tear_offs returns non-zero.
4564 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
4565 call to xg_keep_popup.
4566
64d4923e
AC
45672003-11-01 Andrew Choi <akochoi@shaw.ca>
4568
4569 * macterm.c (XTread_socket): Handle menubar selection and grow
4570 window only for mouseDown events.
854c1a59 4571
6cc8bc07
JD
45722003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4573
4574 * xterm.c (x_term_init): For GTK part, increase x_initialized
4575 to check for more than one display. Use error instead of return 0.
4576
043131c4
AC
45772003-10-31 Andrew Choi <akochoi@shaw.ca>
4578
854c1a59 4579 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
043131c4
AC
4580 (copy_dysymtab): Call it.
4581
bdda99a1
LT
45822003-10-31 Luc Teirlinck <teirllm@auburn.edu>
4583
4584 * eval.c (Fdefvaralias): Doc fix.
4585
800f42ff 45862003-10-26 Luc Teirlinck <teirllm@auburn.edu>
0d11571e
LT
4587
4588 * data.c (Fsetplist): Doc fix.
4589
ef35b389
LK
45902003-10-14 Lute Kamstra <lute@gnu.org>
4591
4592 * window.c (Fset_window_fringes): Clarify docstring.
07107abc 4593
ef35b389 45942003-10-14 Kim F. Storm <storm@cua.dk>
854c1a59 4595
07107abc
KS
4596 * window.c (Fset_window_margins): Simplify arg checking.
4597
f7005886
RS
45982003-10-13 Richard M. Stallman <rms@gnu.org>
4599
4600 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
4601 (print_partial_compiled_pattern): Replace assert with a printout.
4602 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
4603
4604 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
4605
4606 * window.c (Fset_window_margins): Allow only integers as args.
4607 (syms_of_window) <special-display-buffer-names, special-display-regexps>:
4608 Doc fixes.
4609
9c0c2af5
LK
46102003-10-13 Lute Kamstra <lute@gnu.org>
4611
4612 * window.c (Fset_window_fringes): Elaborate docstring.
4613
3f080e4e
AC
46142003-10-12 Andrew Choi <akochoi@shaw.ca>
4615
854c1a59 4616 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
a4887377 4617
3f080e4e
AC
4618 * s/darwin.h (GC_MARK_STACK): Define.
4619
0aa513ed
JD
46202003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4621
4622 * window.c (shrink_windows): New function.
4623 (size_window): Call shrink_windows to calculate window sizes when
4624 shrinking frame with more than one window.
4625
6aa8858a
KS
46262003-10-12 Kim F. Storm <storm@cua.dk>
4627
4628 * xdisp.c (compute_fringe_widths): Doc fix.
4629
c2164d91
KH
46302003-10-08 Kenichi Handa <handa@m17n.org>
4631
854c1a59 4632 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
c2164d91 4633
f82ac129
KH
46342003-10-07 Kenichi Handa <handa@m17n.org>
4635
4636 * coding.c (Qcoding_system_define_form): New variable.
4637 (syms_of_coding): Intern and staticpro it.
4638 (Fcheck_coding_system): Try to autoload the definition of
4639 CODING-SYSTEM.
4640
9296c947
LT
46412003-10-05 Luc Teirlinck <teirllm@auburn.edu>
4642
4643 * fns.c (Frequire): Doc fix.
4644
c1f0671a
JD
46452003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4646
3d8c3826
JD
4647 * xfns.c (Fx_send_client_event): New function as a base for
4648 manipulating extended window manager hints.
6dc15d98 4649 (Fx_send_client_event): Remove unused variable s.
3d8c3826 4650
068ae0fd
JD
4651 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
4652 that function is removed.
4653
4654 * xterm.c (x_set_offset): Use move_offset_left/top instead of
4655 x/y_pixels_outer_diff.
4656 (x_check_expected_move): Calculate move_offset_left/top.
4657
4658 * xterm.h (struct x_output): New members: move_offset_top/left.
4659
854c1a59 4660 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
068ae0fd
JD
4661 call x_set_offset directly.
4662
4663 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
4664
96f09305
JD
4665 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
4666
4667 * xterm.c (x_delete_display): Free font names and font_encoder
4668 in dpyinfo->font_table.
4669
854c1a59
SM
4670 * xfns.c (Fx_close_connection): Only call XFreeFont here.
4671 Move xfree of font names to x_delete_display.
96f09305 4672
c1f0671a
JD
4673 * xterm.h (struct x_display_info): New member, wm_type.
4674 (struct x_output): New members, expected_top/left and
4675 check_expected_move.
4676
4677 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
4678 is received.
854c1a59
SM
4679 (handle_one_xevent): Rename x_check_expected_move from
4680 x_check_fullscreen_move.
c1f0671a
JD
4681 (x_set_offset): Only add WM decoration sizes to modified_top/left
4682 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
854c1a59 4683 (x_check_expected_move): Rename from x_check_fullscreen_move.
c1f0671a
JD
4684 Removed fullscreen specific code. Use check_expected_move,
4685 expected_left/top instead. Also, set wm_type.
4686 (x_term_init): Initialize wm_type to unknown.
4687
4688 * frame.c (x_fullscreen_move): Remove addition of WM decoration
4689 sizes to move_x/y.
4690
be2fdba9
KH
46912003-10-03 Kenichi Handa <handa@m17n.org>
4692
4693 * macterm.c (x_load_font): Clear all members of FONTP before start
4694 filling them.
4695
46962003-10-02 Kenichi Handa <handa@m17n.org>
4697
4698 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
4699 before calling find_ccl_program_func. Call find_ccl_program_func
4700 only when fontp->font_encoder is not NULL.
4701
4702 * xterm.c (x_load_font): Clear all members of FONTP before start
4703 filling them.
4704
26a6e439
JPW
47052003-10-03 John Paul Wallington <jpw@gnu.org>
4706
4707 * keymap.c (map_keymap): Don't abort when binding is a vector.
4708
0d4c2dc2
JR
47092003-10-02 Jason Rumney <jasonr@gnu.org>
4710
854c1a59
SM
4711 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
4712 Sync dependencies with Makefile.in.
a63cf46f
JR
4713 (alloca.o): Remove.
4714
0d4c2dc2
JR
4715 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
4716 filling them.
4717
4718 * w32bdf.c (w32_load_bdf_font): Likewise.
4719
ab8f7d5c
RS
47202003-09-30 Richard M. Stallman <rms@gnu.org>
4721
4722 * term.c (set_tty_color_mode): Calculate current_mode_spec
4723 regardless of value of VAL.
4724
854c1a59 4725 * intervals.c (graft_intervals_into_buffer):
ab8f7d5c
RS
4726 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
4727 Handle over_used when splitting UNDER.
4728
a64387ee 47292003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ab8f7d5c
RS
4730
4731 * regex.c (regex_compile): Free the stack when returning from function.
4732
3413f972
KH
47332003-09-28 Kenichi Handa <handa@m17n.org>
4734
4735 * fontset.c (Finternal_char_font): Change return value to
4736 cons (FONT-NAME . GLYPH-CODE).
4737
a6eeaa81 47382003-09-28 Eli Zaretskii <eliz@gnu.org>
40409f05
EZ
4739
4740 * term.c (tty_setup_colors): Treat any negative argument as -1.
4741
f98ddc99
KH
47422003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
4743
4744 * process.c (send_process): Delete unused temp_buf.
4745
66c8f1a8
DL
47462003-09-26 Dave Love <fx@gnu.org>
4747
4748 * xterm.c (x_bitmap_mask): Declare.
4749
ca716c26
DL
47502003-09-25 Dave Love <fx@gnu.org>
4751
4752 * Makefile.in (fns.o): Depend on md5.h.
4753
fbe57420
KS
47542003-09-25 Kim F. Storm <storm@cua.dk>
4755
4756 * window.c (set_window_buffer): Fix redisplay problems when
4757 switching between buffers with different display margin widths.
4758
ef6ae4ff
KS
47592003-09-23 Kim F. Storm <storm@cua.dk>
4760
4761 * process.c (set_socket_option): Fix :bindtodevice option.
4762 (Fset_network_process_option): Update process contact list when
4763 setting option succeeds.
4764 (Fmake_network_process): Doc fix.
4765
68e03c1c
DL
47662003-09-23 Dave Love <fx@gnu.org>
4767
7146d1c1 4768 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
68e03c1c 4769
a6eeaa81 47702003-09-22 Eli Zaretskii <eliz@gnu.org>
2f809aae
EZ
4771
4772 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
4773 color mode is an integer number (it could be -1).
4774
8fe7d8c8
RS
47752003-09-22 Richard M. Stallman <rms@gnu.org>
4776
4777 * intervals.c (graft_intervals_into_buffer): Correct the main loop
4778 in the case where OVER is longer than UNDER.
4779
2f71b5ea
MY
47802003-09-22 Masatake YAMATO <jet@gyve.org>
4781
7146d1c1 4782 * window.c (Fset_window_scroll_bars): Validate the value of
2f71b5ea 4783 `vertical_type'.
7146d1c1 4784
0c4da023
KS
47852003-09-21 Kim F. Storm <storm@cua.dk>
4786
4787 * frame.c (Vdefault_frame_scroll_bars): New variable.
4788 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
4789 (syms_of_frame): DEFVAR_LISP it, and initialize according to
4790 window-system default scroll bar position.
4791
b648413b
KS
4792 * window.c (Fwindow_scroll_bars): Doc fix.
4793
8f5b9e34
JD
47942003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4795
854c1a59 4796 * xterm.c (x_set_offset): Take window manager decorations into account.
8f5b9e34 4797
b0f23edf
RS
47982003-09-19 Richard M. Stallman <rms@gnu.org>
4799
4800 * atimer.h: Don't include lisp.h.
4801 (P_): Define it here (as well as elsewhere).
4802
4803 * print.c (Fprin1_to_string): Move the PRINTPREPARE
4804 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
4805
4806 * data.c (Fvariable_binding_locus): New function.
4807 (syms_of_data): defsubr it.
4808 (Flocal_variable_p): Delete duplicate call to indirect_variable.
4809
e1283999
DL
48102003-09-18 Dave Love <fx@gnu.org>
4811
ad5f3636
DL
4812 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
4813
e1283999
DL
4814 * process.c (Fnetwork_interface_info): Fix type error.
4815 (Fnetwork_interface_list): Doc fix.
4816 (read_process_output, read_process_output): Delete unused var.
4817
b8c7fd71
KS
48182003-09-17 Kim F. Storm <storm@cua.dk>
4819
4820 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
4821 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
4822 (Fnetwork_interface_info): Check that ifreq struct has required
4823 fields before accessing them; this requires that those fields are
4824 defined as macros, which may be too restrictive on some platforms,
4825 but it is better than failing on other platforms.
4826 (syms_of_process): Only defsubr above fns when included.
4827
11e0a411
DL
48282003-09-17 Dave Love <fx@gnu.org>
4829
4830 * unexalpha.c: Don't include varargs.h.
4831
e9c50801
KS
48322003-09-17 Kim F. Storm <storm@cua.dk>
4833
4834 * process.c (Fset_process_sentinel): Add sentinel to childp plist
4835 for network process.
4836 (socket_options): Add `:' prefix to option names. Add optbit field.
4837 (set_socket_option): Remove no_error arg and special handling of s < 0.
4838 Return 1<<optbit for known option, 0 for unknown.
4839 Do not interpret 0 as false for boolean option (only nil).
4840 Pass failed option and value to report_file_error.
7146d1c1 4841 (Fset_network_process_options): Replace by Fset_network_process_option.
e9c50801
KS
4842 (Fset_network_process_option): New function to set just one option.
4843 (Fmake_network_process): Allow :coding arg to be a cons.
4844 Allow :server arg to be an integer specifying backlog size.
4845 Remove :options arg, and allow options to be specified directly
4846 as :KEY, VALUE pairs. Parse these options before binding socket.
4847 As before, :reuseaddr t is default for a server process, but this
4848 can now be disabled by specifying :reuseaddr nil.
4849 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
4850 (init_process): Availability of network options is now checked with
4851 simpler syntax (featurep 'make-network-process :OPTION); use loop to
4852 setup features.
4853 (syms_of_process): Fix defsubr's for the replaced functions.
4854
a0fc3644
DL
48552003-09-16 Dave Love <fx@gnu.org>
4856
4857 * Makefile.in: Depend on coding.h.
4858
6df2a645
KS
48592003-09-14 Kim F. Storm <storm@cua.dk>
4860
4861 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
4862 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
4863 (syms_of_process): Defsubr them.
4864
4865 * config.in: Regenerate.
7146d1c1
SM
4866
48672003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4868
4869 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
4870 * m/news-r6.h (XUNMARK): Remove.
4871 * m/mips.h (XUNMARK): Remove.
4872 * m/mips-siemens.h (XUNMARK): Remove.
4873 * m/iris4d.h (XUNMARK): Remove.
4874 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
4875
0930c1a1
SM
48762003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
4877
31003b9e
SM
4878 * lisp.h (VALBITS): Don't remove 1 for the markbit.
4879 (union Lisp_Object): Use unsigned int for types. Remove markbit.
4880 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
4881 (XTYPE): Use unsigned right-shift.
4882 (XMARKBIT, XMARK, XUNMARK): Remove.
4883
0930c1a1
SM
4884 * alloc.c (init_intervals, init_symbol, init_marker):
4885 Don't preallocate anything.
4886 (Fgarbage_collect, mark_object): Ignore the markbit.
4887
4888 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
4889
19bb0fcd 48902003-09-08 Lute Kamstra <lute@gnu.org>
5df034de
LK
4891
4892 * xdisp.c (pint2hrstr): New function.
4893 (decode_mode_spec): Add `%i' and `%I' specs.
4894 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
4895 for `mode-line-format'.
4896
03bb6a06
AS
48972003-09-07 Andreas Schwab <schwab@suse.de>
4898
4899 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
4900 avoid warning.
4901
a6eeaa81 49022003-09-07 Eli Zaretskii <eliz@gnu.org>
2063d89c 4903
0930c1a1 4904 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
2063d89c 4905
ed159bbf
KS
49062003-09-03 Kim F. Storm <storm@cua.dk>
4907
4908 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
4909 change (superseded by 2002-08-30 change); the default blink-off
4910 cursor is now again "no cursor".
4911
fe64a394
JR
49122003-09-01 Jason Rumney <jasonr@gnu.org>
4913
4914 * makefile.w32-in (alloca.o): Remove.
4915 (coding.o): Depend on intervals.h
4916 (emacs.o, bytecode.o): Depend on window.h
4917
c0175e24
DL
49182003-09-01 Dave Love <fx@gnu.org>
4919
4920 * Makefile.in (alloca.o): Remove commands.
4921 (coding.o): Depend on intervals.h composite.h window.h.
4922 (emacs.o): Depend on window.h keyboard.h keymap.h.
4923 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
4924 (bytecode.o): Depend on window.h.
4925
a24d4cb2
JR
49262003-08-31 Jason Rumney <jasonr@gnu.org>
4927
4bc2315e
JR
4928 * w32term.c (w32_per_char_metric): Allow cached metrics to be
4929 returned even when font_type is unknown.
4930
a24d4cb2
JR
4931 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
4932
9d35adc7
JD
49332003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4934
4935 * xterm.c (x_term_init): Initialize new fields in x_display_info.
4936
4937 * xterm.h (struct x_display_info): Add red/green/blue_bits and
4938 *_offset.
4939
4940 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
4941 calculate pixel value.
4942
6f68b035
GM
49432003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
4944
0930c1a1
SM
4945 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
4946 Don't tell redisplay display is accurate when it's actually been
4947 paused for pending input.
6f68b035 4948
4828b4d7
RS
49492003-08-29 Richard M. Stallman <rms@gnu.org>
4950
4951 * dispnew.c (adjust_glyph_matrix): Call window_box
4952 whenever W is nonzero.
4953
4954 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
4955 (Fkill_local_variable, Fmake_variable_frame_local)
0930c1a1 4956 (Flocal_variable_p, Flocal_variable_if_set_p):
4828b4d7
RS
4957 Use indirect_variable to trace thru variable aliases.
4958
4959 * config.in: Updated.
4960
4961 * callint.c (Fcall_interactively): Save and restore
4962 Vthis_command, Vthis_original_command, real_this_command,
4963 and current_kboard->Vlast_command.
4964
4965 * abbrev.c (Fexpand_abbrev): Insert before deleting.
4966
e019878d
GM
49672003-08-29 Gerd Moellmann <gerd@gnu.org>
4968
4969 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
4970
85478bc6
KH
49712003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
4972
0930c1a1 4973 * coding.c (decode_coding_iso2022): Initialize local variable c2.
85478bc6
KH
4974 (decode_coding_sjis_big5): Likewise.
4975
07ce82d3
JR
49762003-08-27 Jason Rumney <jasonr@gnu.org>
4977
d3703de3
JR
4978 * w32.c (sys_pipe): Protect against file descriptor overflow.
4979
ee4a01d1
JR
4980 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
4981
07ce82d3
JR
4982 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
4983
a64387ee 49842003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
72d19c66
LK
4985
4986 * xfns.c (Vgtk_version_string): New variable.
4987 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
4988
a6eeaa81 49892003-08-24 Eli Zaretskii <eliz@gnu.org>
5459e42a 4990
0930c1a1 4991 * term.c (term_init): Remove `const' from buffer_size's declaration.
3d8714e7 4992
5459e42a
EZ
4993 * Makefile.in (msdos.o): Depend on intervals.h.
4994
0930c1a1 4995 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
5459e42a 4996
231d6cfb
JD
49972003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4998
4999 * xterm.h (struct x_display_info): New fields: client_leader_window
5000 and Xatom_wm_client_leader.
5001
5002 * xterm.c (x_initialize): Move call to x_session_initialize to ...
5003 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
5004
5005 * xsmfns.c (create_client_leader_window): New function.
5006 (x_session_initialize): Call create_client_leader_window, take
5007 dpyinfo as argument.
5008
5009 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
5010
5011 * Makefile.in (xsmfns.o): Add more depenedencies.
5012
afa88464
DL
50132003-08-21 Dave Love <fx@gnu.org>
5014
5015 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
5016
f730033e
KH
50172003-08-21 Kenichi Handa <handa@m17n.org>
5018
5019 * term.c (term_init): Fix previous change; don't rely on the
5020 length of `buffer' if TERMINFO is defined.
5021
6dca786c
DL
50222003-08-20 Dave Love <fx@gnu.org>
5023
5024 * atimer.h: Include lisp.h.
5025
5026 * lisp.h (EMACS_LISP_H): New.
5027 (popup_activated_flag): Don't declare.
5028
5029 * alloca.c: Some merging with gnulib. Change logic and doc
5030 concerning (x)malloc/(x)free -- no longer Emacs-specific.
5031 [DO_BLOCK_INPUT]: Don't include lisp.h.
5032 (xmalloc, xfree): Declare.
5033 (malloc): Don't declare.
5034
0930c1a1 5035 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
6dca786c
DL
5036 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
5037 atimer.h, blockinput.h.
5038
5039 * alloc.c (lisp_align_malloc): Change type of `aligned'.
5040
5041 * alloca.s: Removed.
5042
3a06a6d9
RS
50432003-08-19 Gerd Moellmann <gerd@gnu.org>
5044
5045 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
5046 use -lncurses.
5047
5048 * term.c (term_init): Use a buffer of size 4096 for tgetent since
5049 FreeBSD returns something longer than 2044. Abort if the end of
5050 the buffer is overwritten.
5051
27eeee55
MB
50522003-08-19 Miles Bader <miles@gnu.org>
5053
5054 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
5055
2f297815
GM
50562003-08-19 Gerd Moellmann <gerd@gnu.org>
5057
f4446bbf
GM
5058 * alloc.c (lisp_align_malloc): Check for memory full when
5059 allocating ablocks, which also avoids freeing a pointer into an
5060 ablocks structure.
5061
5062 * puresize.h (BASE_PURESIZE): Increase to 1100000.
5063
0930c1a1 5064 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
2f297815 5065
0e7d7aae
RS
50662003-08-16 Richard M. Stallman <rms@gnu.org>
5067
5068 * editfns.c (Fencode_time): Doc fix.
5069
50702003-08-16 David Ponce <david@dponce.com>
5071
5072 * fileio.c (Fwrite_region): Fix conditional expression to issue
5073 the right message.
5074
50752003-08-16 Juri Linkov <juri@jurta.org> (tiny change)
5076
5077 * syntax.c (Fforward_word): Argument changed to optional.
0930c1a1 5078 Set default value to 1.
0e7d7aae 5079
5d551295
KH
50802003-08-15 Kenichi Handa <handa@m17n.org>
5081
5082 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
5083 what autoscaled.
5084 (best_matching_font): Once we find a better scalable font, set
5085 non_scalable_has_exact_height_p to 1.
5086 (try_font_list): Call try_alternative_families to try any family
5087 with the given registry.
5088
1661e56b
AS
50892003-08-09 Andreas Schwab <schwab@suse.de>
5090
f29181dc
AS
5091 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
5092
1661e56b
AS
5093 * print.c (print_string): Fix printing of multibyte string with
5094 nontrivial printcharfun.
5095
465aa50a
JD
50962003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5097
5098 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
5099
5100 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
5101
e430e5ba
KH
51022003-07-31 Kenichi Handa <handa@m17n.org>
5103
5104 * process.c (read_process_output): Return the actually read bytes
5105 instead of the result of decoding.
5106
97e7188e
KH
51072003-07-31 Kenichi Handa <handa@m17n.org>
5108
5109 * xterm.h (struct x_bitmap_record): New member have_mask.
5110
5111 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
5112 to 0.
5113 (x_create_bitmap_from_file): Likewise.
5114 (x_destroy_bitmap): Check have_mask member before freeing a mask.
5115 (x_destroy_all_bitmaps): Likewise.
5116 (x_create_bitmap_mask): Set have_mask member to 1.
5117
b53094d6
RS
51182003-07-30 Richard M. Stallman <rms@gnu.org>
5119
5120 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
5121
631f2082
JD
51222003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5123
5124 * gtkutil.c (xg_mark_data): Update calls to mark_object.
5125
c855f2ca
RS
51262003-07-29 Richard M. Stallman <rms@gnu.org>
5127
5128 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
5129 Conditionalize XIM code on HAVE_XIM.
5130
5131 * fns.c (Fclear_string): New function.
5132 (syms_of_fns): defsubr it.
5133
17e6d491
KH
51342003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp> (tiny change)
5135
0930c1a1 5136 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
17e6d491 5137
29ea8ae9
SM
51382003-07-22 Stefan Monnier <monnier@cs.yale.edu>
5139
5140 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
5141
5142 * buffer.c (delete_all_overlays): New function.
5143 * buffer.h (delete_all_overlays): Declare.
5144 * coding.c (run_pre_post_conversion_on_str):
5145 * print.c (temp_output_buffer_setup):
5146 * fileio.c (Finsert_file_contents):
5147 * minibuf.c (get_minibuffer): Use it.
5148
1dd7ccf2
AC
51492003-07-22 Andrew Choi <akochoi@shaw.ca>
5150
5151 * unexmacosx.c (unexec_regions_sort_compare):
5152 (unexec_regions_merge): New functions. Sort and merge unexec
5153 regions before dumping them.
5154
f57bd967
DL
51552003-07-22 Dave Love <fx@gnu.org>
5156
5157 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
5158
7cdee936
SM
51592003-07-21 Stefan Monnier <monnier@cs.yale.edu>
5160
5161 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
5162 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
5163 MARKBIT as the gcmarkbit for strings.
5164
e50886d3
RS
51652003-07-21 Richard M. Stallman <rms@gnu.org>
5166
5167 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
5168
29ea8ae9 5169 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
e50886d3
RS
5170 (syms_of_fns): Corresponding change.
5171
5172 * alloc.c (syms_of_alloc): Doc fixes.
5173
51742003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
5175
5176 * s/netbsd.h: Use -Wl syntax.
5177
fdc39b59
RS
51782003-07-17 Richard M. Stallman <rms@gnu.org>
5179
5180 * xterm.c (xim_initialize): Redo 6/24 change.
5181
9c53385f
SM
51822003-07-15 Stefan Monnier <monnier@cs.yale.edu>
5183
5184 * buffer.c (copy_overlays): Use EMACS_INT for positions.
5185 (Fswitch_to_buffer): Don't signal an error when switching to the same
5186 buffer in a dedicated window.
5187
5188 * alloc.c: Use bitmaps for cons, as was done for floats.
5189 (init_float, init_cons): Let the normal code allocate the first block.
5190 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
5191 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
5192 New macros.
5193 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
5194 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
5195 (live_cons_p): Check the pointer is not past the `conses' array.
5196 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
5197 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
5198 (survives_gc_p): Use CONS_MARKED_P and simplify.
5199 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
5200
dde13196
PE
52012003-07-13 Paul Eggert <eggert@twinsun.com>
5202
5203 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
5204 puts it into BSS instead, at least on Solaris 8 and 9.
5205 This is a valid optimization, and it may occur on other platforms,
5206 so Emacs should not assume that initializing a static variable to
5207 zero puts it into data.
5208 * alloc.c (pure, staticvec):
5209 Initialize these arrays to nonzero, so that they're not
5210 put into BSS by that optimization.
5211
a801bc34
SM
52122003-07-13 Stefan Monnier <monnier@cs.yale.edu>
5213
5214 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
5215 (lisp_align_malloc): Use posix_memalign is available.
5216 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
5217 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
5218 for consistency. Update users.
5219
0c8b2afa
RS
52202003-07-13 Richard M. Stallman <rms@gnu.org>
5221
5222 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
5223
668c2ab0
JB
52242003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
5225
5226 * xterm.c (x_bitmap_icon,x_wm_set_icon_pixmap): Modify to add mask,
5227 and use the Gtk+ function gtk_window_icon_from_file if available.
5228
5229 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
5230 handle mask of bitmaps.
5231 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
5232 mask property.
5233 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
5234
5235 * xterm.h (xg_set_icon): New function.
5236
800bebe3
RS
52372003-07-12 Paul Eggert <eggert@twinsun.com>
5238
5239 * unexelf.c (unexec): Consider a section to precede the .bss
5240 section if its addresses overlap that of .bss.
5241
69e38995
RS
52422003-07-12 Richard M. Stallman <rms@gnu.org>
5243
5244 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
5245
5246 * config.in (HAVE_CRTIN): Add #undef.
5247 (INLINE): Really inline only if OPTIMIZE is defined.
5248
5249 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
5250 END_FILES_1.
5251 (START_FILES_1, END_FILES_1): New macros (conditional).
a801bc34 5252 (LD_SWITCH_SYSTEM_TEMACS): Define.
69e38995
RS
5253
5254 * s/openbsd.h: Don't include bsd4-3.h.
a801bc34
SM
5255 (TERMINFO): Define.
5256 (LIBS_TERMCAP): Define.
5257 (LD_SWITCH_SYSTEM): Define (two definitions).
69e38995
RS
5258
5259 * xfns.c: Include libpng/png.h instead of png.h.
5260
f1d0c238
AS
52612003-07-11 Andreas Schwab <schwab@suse.de>
5262
5263 * buffer.c (modify_overlay): Update prototype.
5264 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
5265 Likewise.
5266
5f6bf5fe
SM
52672003-07-09 Stefan Monnier <monnier@cs.yale.edu>
5268
5269 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
5270 (struct interval): Move to intervals.h.
5271 (struct Lisp_Marker): Use EMACS_INT for position info.
5272 (forward_point): Remove prototype of defunct function.
5273 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
5274 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
5275 (syms_of_textprop, set_text_properties): Remove prototypes that are
5276 already in intervals.h.
5277
5278 * intervals.h (struct interval): Move from lisp.h.
5279 Use EMACS_INT for position and size info.
5280
5281 * coding.c: Include intervals.h for Fset_text_properties.
5282
5283 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
5284 position and length information.
5285
2765b457
SM
52862003-07-09 Stefan Monnier <monnier@cs.yale.edu>
5287
5288 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
5289 position and length information.
5290
2410d73a
SM
52912003-07-09 Stefan Monnier <monnier@cs.yale.edu>
5292
5293 Change overlays_after and overlays_before so the overlays themselves
5294 are linked into lists, rather than using cons cells. After all each
5295 Lisp_Misc already occupies 5 words, so we can add a `next' field to
5296 Lisp_Overlay for free and save up one cons cell per overlay (not
5297 to mention one indirection when traversing the list of overlay).
5298
5299 * lisp.h (struct Lisp_Overlay): New field `next'.
5300
5301 * buffer.h (struct buffer): Change overlays_before and overlays_after
5302 from Lisp lists of overlays to pointers to overlays.
5303
5304 * buffer.c (overlay_strings, recenter_overlay_lists):
5305 Fix typo in eassert in last commit.
5306 (unchain_overlay): New function.
5307 (add_overlay_mod_hooklist): Use AREF.
5308 (copy_overlays, reset_buffer, overlays_at, overlays_in)
5309 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
5310 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
5311 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
5312 (report_overlay_modification, evaporate_overlays, init_buffer_once):
5313 Adjust to new type of overlays_(before|after).
5314
5315 * alloc.c (mark_object): Mark the new `next' field of overlays.
5316 (mark_buffer): Manually mark the overlays_(after|before) fields.
5317
5318 * coding.c (run_pre_post_conversion_on_str):
5319 * editfns.c (overlays_around):
5320 * xdisp.c (load_overlay_strings):
5321 * fileio.c (Finsert_file_contents):
5322 * indent.c (current_column):
5323 * insdel.c (signal_before_change, signal_after_change):
5324 * intervals.c (set_point_both):
5325 * print.c (temp_output_buffer_setup): Use new type for
5326 overlays_(before|after).
5327
04812929
SM
53282003-07-08 Stefan Monnier <monnier@cs.yale.edu>
5329
5330 * buffer.c (report_overlay_modification): Don't run hooks while
5331 traversing the list of overlays.
5332
5333 * buffer.h (struct buffer): Use an int for overlay_center.
5334 (overlays_at, evaporate_overlays, recenter_overlay_lists)
5335 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
5336
5337 * buffer.c (reset_buffer, recenter_overlay_lists)
5338 (adjust_overlays_for_insert, adjust_overlays_for_delete)
5339 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
5340 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
5341 (overlays_at, evaporate_overlays, recenter_overlay_lists)
5342 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
5343
5344 * xdisp.c (fast_find_position): Remove unused var.
5345
5346 * cmds.c (Qexpand_abbrev): New sym.
5347 (syms_of_cmds): Initialize it.
5348 (internal_self_insert): Use it to call expand-abbrev.
5349
2e7ecf15
KS
53502003-07-09 Kim F. Storm <storm@cua.dk>
5351
f9711de4 5352 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
2e7ecf15 5353 was configured with --without-xim.
42f81f64 5354 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
2e7ecf15 5355
c6de56a0
RS
53562003-07-07 Richard M. Stallman <rms@gnu.org>
5357
5358 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
5359
5360 * alloc.c (Fgarbage_collect): Doc fix.
5361
b93fb365
KH
53622003-07-07 Nozomu Ando <nand@mac.com> (tiny change)
5363
5364 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
5365
bfe1a3f7
SM
53662003-07-06 Stefan Monnier <monnier@cs.yale.edu>
5367
04812929
SM
5368 * minibuf.c (read_minibuf): UNGCPRO before returning.
5369 (Ftry_completion, Fall_completions): Doc fix.
5370
bfe1a3f7
SM
5371 * alloc.c (live_float_p): Check that p is not past the `floats' array,
5372 now that `floats' is not the last element of the struct any more.
5373
ee79d1aa
JR
53742003-07-06 Jason Rumney <jasonr@gnu.org>
5375
5376 * w32term.h (ClipboardSequence_Proc): New type.
5377
5378 * w32fns.c (clipboard_sequence_fn): New variable.
5379 (globals_of_w32fns): Initialize it.
5380
5381 * w32select.c (last_clipboard_sequence_number): New variable.
5382 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
5383 number if possible.
5384
49723c04
SM
53852003-07-06 Stefan Monnier <monnier@cs.yale.edu>
5386
4698665f
SM
5387 * m/amdx86-64.h (MARKBIT):
5388 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
5389 MARKBIT and ARRAY_MARK_FLAG any more.
5390
5391 * m/hp800.h (XSETMARKBIT):
5392 * m/sr2k.h (XSETMARKBIT):
5393 * lisp.h (XSETMARKBIT): Remove unused macro.
5394
49723c04
SM
5395 * lisp.h (mark_object): Change prototype.
5396
5397 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
5398 (last_marked): Change accordingly.
5399 (mark_interval, mark_maybe_object, mark_maybe_pointer)
5400 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
5401 (mark_buffer): Update calls to mark_object.
5402
5403 * bytecode.c (mark_byte_stack):
5404 * fns.c (sweep_weak_table):
5405 * keyboard.c (mark_kboards): Update calls to mark_object.
5406
1d660eca
JR
54072003-07-06 Jason Rumney <jasonr@gnu.org>
5408
5409 * alloc.c (struct ablock): Only include padding when there is some.
5410
618b5ae4
SM
54112003-07-04 Stefan Monnier <monnier@cs.yale.edu>
5412
5413 * alloc.c (ALIGN): Add casts to simplify usage.
5414 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
5415 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
5416 (struct ablock, struct ablocks): New types.
5417 (free_ablock): New global var.
5418 (lisp_align_malloc, lisp_align_free): New functions.
5419 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
5420 (struct float_block): Reorder and add gcmarkbits.
5421 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
5422 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
5423 (init_float, make_float): Use lisp_align_malloc.
5424 (free_float, live_float_p): Don't use `type' any more.
5425 (make_float): Use FLOAT_UNMARK to access to mark bit.
5426 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
5427 Use FLOAT_MARKED_P to access the mark bit.
5428 (pure_alloc): Simplify use of ALIGN.
5429 (mark_object): Use FLOAT_MARK to access the mark bit.
5430 (gc_sweep): Use new macros to access the float's mark bit.
5431 (init_alloc_once): Init free_ablock.
5432
5433 * lisp.h (struct Lisp_Float): Remove unused field `type'.
5434
3ef06d12
SM
54352003-06-27 Stefan Monnier <monnier@cs.yale.edu>
5436
5437 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
5438 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
5439 (allocate_buffer): Move.
5440 (string_bytes): Don't mask markbit of `size_byte'.
5441 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
5442 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
5443 Use the `size' field of buffers (rather than the `name' field) for
5444 the mark bit, as is done for all other vectorlike objects.
5445 Use the new macros to access the mark bit of vectorlike objects.
5446
e81043aa
RS
54472003-06-26 Richard M. Stallman <rms@gnu.org>
5448
5449 * puresize.h (BASE_PURESIZE): Increment base size.
5450
5451 * xdisp.c (fast_find_position): Enable Gerd's new definition.
5452
5453 * xterm.c (xim_initialize): Undo previous change.
5454
2d0834cc
SM
54552003-06-26 Stefan Monnier <monnier@cs.yale.edu>
5456
5457 * alloc.c (survives_gc_p): Simplify.
5458
5459 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
5460
5461 * window.c (Fset_window_dedicated_p): Simplify.
5462 (display_buffer_1): Don't raise the win from which minibuf was entered.
5463 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
5464 (Fminibuffer_selected_window): Simplify.
5465
5466 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
5467
5468 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
5469 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
5470
5471 * insdel.c (check_markers, adjust_markers_for_delete)
5472 (adjust_markers_for_insert, adjust_markers_for_replace)
5473 (prepare_to_modify_buffer, RESTORE_VALUE):
5474 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
5475 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
5476 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
5477 * alloc.c (Fmake_marker, free_marker, gc_sweep):
5478 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
5479 * editfns.c (save_excursion_restore, transpose_markers):
5480 * window.c (delete_window):
5481 * xdisp.c (message_dolog): Update for new types.
5482
d54ae3d8
JD
54832003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5484
a5f696ac
JD
5485 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
5486 (realize_default_face): Use default_face_done_p for the force_p
2d0834cc 5487 argument to set_lface_from_font_name. Set default_face_done_p to one.
a5f696ac
JD
5488
5489 * frame.c (make_frame): Initialize default_face_done_p.
5490
5491 * frame.h (struct frame): Add default_face_done_p.
5492
d54ae3d8
JD
5493 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
5494 will be defined.
5495
2336fe58
SM
54962003-06-25 Stefan Monnier <monnier@cs.yale.edu>
5497
5498 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
5499 Initialize the new field `gcmarkbit'.
5500 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
5501 (mark_interval_tree): Don't mark the tree separately from the nodes.
5502 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
5503 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
5504 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
5505
5506 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
5507 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
5508 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
5509 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
5510 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
5511
bcea31c2
DL
55122003-06-24 Dave Love <fx@gnu.org>
5513
5514 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
5515
5516 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
5517 from gnulib.
5518
2601f59e
RS
55192003-06-21 Richard M. Stallman <rms@gnu.org>
5520
5521 * fileio.c (Fwrite_region): Alternate messages
5522 for append and partial write.
5523
5524 * keyboard.c (read_key_sequence): When converting upcase fn key to
5525 downcase, update fkey and keytran so `backspace' gets translated.
5526
5527 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
5528
5529 * process.c (wait_reading_process_input): Don't signal SIGIO
5530 in batch mode.
5531
b5d2c621
KH
55322003-06-17 Kenichi Handa <handa@m17n.org>
5533
5534 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
5535 composite.h.
5536
5537 * xselect.c: Don't include charset.h, coding.h, composite.h.
5538 (Qforeign_selection): New variable.
5539 (syms_of_xselect): Intern and static it.
5540 (selection_data_to_lisp_data): Return a unibyte string made from
5541 data with `foreign-selection' text property.
5542
6793bc63
SM
55432003-06-15 Stefan Monnier <monnier@cs.yale.edu>
5544
5545 * termhooks.h (EVENT_INIT): New macro.
5546
5547 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
5548
5549 * alloc.c (mark_kboards): Move to keyboard.c.
5550
5551 * keyboard.c (record_asynch_buffer_change, read_avail_input):
5552 * xterm.c (x_dispatch_event):
5553 * xmenu.c (find_and_call_menu_selection):
5554 * xdisp.c (handle_tool_bar_click):
5555 * w32menu.c (menubar_selection_callback):
5556 * sysdep.c (kbd_input_ast, read_input_waiting):
5557 * msdos.c (dos_rawgetc):
5558 * macterm.c (mac_check_for_quit_char):
5559 * macmenu.c (menubar_selection_callback):
5560 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
5561 data to kbd_buffer_store_event.
5562
b3ea810c
KS
55632003-06-15 Kim F. Storm <storm@cua.dk>
5564
5565 * xdisp.c (x_fix_overlapping_area): Always use area relative X
6793bc63 5566 to fix redisplay problem with tall characters (such as \e,AC\e(B).
b3ea810c 5567
b8f75eda
KG
55682003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
5569
5570 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
5571
ba92ce48
KH
55722003-06-12 Kenichi Handa <handa@m17n.org>
5573
5574 * fileio.c (Fwrite_region): Save and restore restriction.
5575
b80263be
DL
55762003-06-12 Dave Love <fx@gnu.org>
5577
5578 * alloca.c (alloca): Declare arg as size_t.
5579
6793bc63
SM
5580 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
5581 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
b80263be 5582
b23c0a83
DL
55832003-06-11 Dave Love <fx@gnu.org>
5584
5585 * search.c (shrink_regexp_cache): Use xrealloc.
5586 (syms_of_search): Use xmalloc.
5587
700e47c2
KS
55882003-06-10 Kim F. Storm <storm@cua.dk>
5589
5590 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
5591 Adjust phys_cursor.x to be relative to window box, rather than
5592 text area before checking -- to ensure cursor is redrawn when
5593 exposing window.
5594 Note: This also fixes a similar (older) bug if display margins
5595 are present.
5596
f11aa0b2
KH
55972003-06-06 Kenichi Handa <handa@m17n.org>
5598
5599 * coding.c (encoding_buffer_size): If coding->type is
5600 coding_type_ccl, double magnification on CRLF encoding.
5601
3d143690
JR
56022003-06-06 Jason Rumney <jasonr@gnu.org>
5603
5604 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
5605 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
5606
5607 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
5608 Mac too.
5609
f16205ca
DL
56102003-06-05 Dave Love <fx@gnu.org>
5611
b23c0a83
DL
5612 * strftime.c: Merge changes from gnulib.
5613
f16205ca
DL
5614 * mktime.c (__mktime_internal): Merge changes from gnulib
5615 involving year 69 and dst2.
5616
5617 Changes to merge with gnulib version and be consistent with the
5618 autoconf test:
5619
6793bc63
SM
5620 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
5621 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
f16205ca
DL
5622 [HAVE_LOCALE_H]: Include locale.h.
5623 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
5624
9b87a0bc
KS
56252003-06-05 Kim F. Storm <storm@cua.dk>
5626
5627 * window.c (coordinates_in_window): Convert X and Y to window
5628 relative coordinates inside mode-line and header-line parts.
5629 Convert X and Y to margin area relative coordinates inside left
5630 and right display margin parts.
5631
5a8a15ec
JR
56322003-06-05 Jason Rumney <jasonr@gnu.org>
5633
5634 * w32fns.c (add_system_logical_colors_to_map): New function.
5635 (Fx_open_connection): Use it.
5636
01ed8ff1
SM
56372003-06-04 Stefan Monnier <monnier@cs.yale.edu>
5638
5639 * process.c (allocate_pty): Revert part of the previous patch.
5640 (Faccept_process_output): Simplify.
5641
b427b65d
JR
56422003-06-04 Jason Rumney <jasonr@gnu.org>
5643
5644 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
5645
5646 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
5647 (lispy_mouse_wheel_names): Remove.
5648 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
5649 Always define drag_and_drop_syms.
5650
5651 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
5652 WHEEL_EVENT events.
5653
914a8c47
SM
56542003-06-03 Stefan Monnier <monnier@cs.yale.edu>
5655
01ed8ff1
SM
5656 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
5657
914a8c47
SM
5658 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
5659
adcb132c
JD
56602003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5661
5662 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
5663 menu item label.
5664
be781fa7
RS
56652003-06-03 Richard M. Stallman <rms@gnu.org>
5666
5667 * window.c (Fwindow_edges): Doc fix.
5668 (Fwindow_pixel_edges, Fwindow_inside_edges)
5669 (Fwindow_inside_pixel_edges): New functions.
5670 (syms_of_window): defsubr them.
5671
5672 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
5673 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
5674
914a8c47
SM
56752003-06-02 Stefan Monnier <monnier@cs.yale.edu>
5676
5677 * dispnew.c (Fsit_for): Don't lie about the number of args.
5678
5b07197a
DL
56792003-06-02 Dave Love <fx@gnu.org>
5680
5681 * callproc.c: Use HAVE_FCNTL_H, not USG5.
5682 (syms_of_callproc) <process-environment>: Doc fix.
5683
5684 * doc.c: Use HAVE_FCNTL_H, not USG5.
5685
5686 * xfaces.c (font_rescale_ratio): Fix for K&R.
5687
5688 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
5689
5690 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
5691
5692 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
5693
5694 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
5695 (xg_create_frame_widgets): Use ENCODE_UTF_8.
5696
d7107586 5697 * xterm.c (Qutf_8): Move to coding.c
5b07197a
DL
5698
5699 * xmenu.c (ENCODE_MENU_STRING): New.
5700 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
5701 Use it.
5702
5703 * coding.h (ENCODE_UTF_8): New.
5704 (Qutf_8): Declare.
5705
5706 * coding.c (Qutf_8): New.
5707 (syms_of_coding): Intern it.
5708
5709 * fns.c: Doc fixes.
5710
7335b336
KH
57112003-06-02 Kenichi Handa <handa@m17n.org>
5712
5713 * buffer.c (Fset_buffer_multibyte): Fix previous change.
5714
914a8c47
SM
57152003-06-01 Stefan Monnier <monnier@cs.yale.edu>
5716
5717 * lread.c (openp): Make sure STR is a string.
5718
9862c135
JR
57192003-06-01 David Ponce <david@dponce.com>
5720
5721 * termhooks.h (enum event_kind): Added new WHEEL_EVENT event.
5722 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
5723
5724 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
5725 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
5726 (discard_mouse_events): Discard WHEEL_EVENT events too.
5727 (lispy_wheel_names, wheel_syms): New.
5728 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
5729 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX
5730 defined.
914a8c47 5731 (make_lispy_event): Add WHEEL_EVENT handler.
9862c135
JR
5732
5733 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
5734 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
5735 WHEEL_EVENT events.
5736
f984e73e
JPW
57372003-05-31 John Paul Wallington <jpw@gnu.org>
5738
5739 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
5740 timer are in lisp/emacs-lisp.
5741
1efcd78f
KH
57422003-05-31 Kenichi Handa <handa@m17n.org>
5743
458c8af4
KH
5744 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
5745 region when a buffer is changed to unibyte.
5746
1efcd78f
KH
5747 * charset.h (VALID_LEADING_CODE_P): New macro.
5748 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
5749
778e2804
KH
5750 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
5751 is nonzero, accept multibyte form of eight-bit-control chars.
5752 (decode_composition_emacs_mule): Likewise.
5753 (decode_coding_emacs_mule): Likewise.
5754 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
5755 multibyte form of eight-bit-control chars.
5756
5757 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
5758 (Finsert_file_contents): If coding-system-for-read is bound to
5759 Qauto_save_coding, use the coding system emacs-mule with special
5760 setting for recovering a file.
5761 (choose_write_coding_system): On auto saving, use the coding
5762 system emacs-mule with special setting for auto saving.
5763 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
5764
034060e4
KH
57652003-05-30 Kenichi Handa <handa@m17n.org>
5766
5767 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
5768 properly before calling ccl_driver.
5769
778e2804 5770 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
034060e4
KH
5771
5772 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is
5773 nonzero.
5774 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
5775 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
5776
595f5aa5
GM
57772003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
5778
5779 * xfaces.c (realize_default_face): Do not abort if lface is
5780 non-existent - reverts change from 2003-05-19.
5781
103e0180
KH
57822003-05-29 Kenichi Handa <handa@m17n.org>
5783
5784 * coding.c (decode_coding_iso2022): Pay attention to the byte
5785 sequence of CTEXT extended segment, and retain those bytes as is.
5786
57872003-05-28 Kenichi Handa <handa@m17n.org>
5788
5789 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjusted for the name change
5790 of CODING_REPLACEMENT_CHARACTER.
5791 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
5792 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
5793 check this flag on encoding.
5794 (encode_coding_sjis_big5): Check
5795 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
5796 (Fset_terminal_coding_system_internal): Set
5797 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
5798 instead of setting CODING_FLAG_ISO_SAFE flag in
5799 terminal_coding.flags.
5800
5801 * coding.h (CODING_REPLACEMENT_CHARACTER): Renamed from
5802 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
5803 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
5804
ff6a3bfb 58052003-05-28 Richard M. Stallman <rms@gnu.org>
45f266dc 5806
ff6a3bfb
RS
5807 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
5808
5809 * eval.c (unbind_to): Move init of this_binding to separate statement.
45f266dc 5810
1963c428
KS
58112003-05-28 Kim F. Storm <storm@cua.dk>
5812
5813 * xdisp.c (expose_window): Fix error in calculation of
5814 window relative coordinates of area to redisplay.
5815
2b5d4601
JR
58162003-05-27 Jason Rumney <jasonr@gnu.org>
5817
5818 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
5819
1c64a4a2
JB
58202003-05-27 David Ponce <david@dponce.com>
5821
5822 Handle W32 mouse wheel events as mouse click events, like in X.
5823
5824 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
5825 MOUSE_WHEEL_EVENT anymore.
5826
5827 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
5828 Scrolling down/up the mouse wheel is respectively mapped to mouse
5829 button 4 and 5.
5830 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
5831 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
5832 WM_MOUSEWHEEL events.
5833
2d031b89
AS
58342003-05-27 Andreas Schwab <schwab@suse.de>
5835
20464fdf
AS
5836 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
5837
2d031b89
AS
5838 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
5839 partially visible line.
5840
5841 * alloc.c (Fgarbage_collect): Fix last change.
5842
97bc76d4
JPW
58432003-05-26 John Paul Wallington <jpw@gnu.org>
5844
5845 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
5846
56613f06
SM
58472003-05-25 Stefan Monnier <monnier@cs.yale.edu>
5848
5849 * window.c (Fset_window_buffer): Add type of `keep_margins'.
5850 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
5851
5852 * window.h (window_box_text_cols): Declare.
5853
5854 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
5855 (x_draw_vertical_border): Remove unused var `f'.
5856
5857 * xfaces.c (build_scalable_font_name): Remove `unused var
5858 pixel_size' warning.
5859
5860 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
5861
5862 * unexelf.c (unexec): Remove `unused var n' warning.
5863
5864 * strftime.c (my_strftime_localtime_r): Remove `defined but
5865 unused' warning.
5866
5867 * process.c (allocate_pty): Remove `unused var stb' and
5868 `cp might be used uninitialized' warnings.
5869
5870 * dispnew.c (mode_line_string): Remove unused var `f'.
5871
5872 * coding.c (find_safe_codings): Remove unused var `i'.
5873
5874 * bytecode.c (Fbyte_code): Remove `unused val' warning.
5875
5876 * buffer.c (Fkill_buffer): Remove unused var `list'.
5877
5878 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
5879
93421a1f
JD
58802003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5881
5882 * frame.c (make_frame): Condition want_fullscreen with
5883 HAVE_WINDOW_SYSTEM.
5884
c4b8aebc
JB
58852003-05-25 Juanma Barranquero <lektu@terra.es>
5886
5887 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
5888 (Fwindow_scroll_bars): Fix typo in docstring.
5889
0416870b
KS
58902003-05-24 Kim F. Storm <storm@cua.dk>
5891
5892 The following changes serve several purposes:
5893
5894 1) Swap the position of fringes and display margins in windows, i.e.
5895 the fringes are now displayed between the margins and the text area
5896 (by default).
5897
5898 2) Allow fringe and scroll bar parameters to be set per-buffer and
5899 per-window (like display margins). Such settings are now stored
5900 in window configurations, preserved when frames are resized, and
9018a88e 5901 copied when windows are split vertically or horizontally.
0416870b
KS
5902 Several bugs related to display margins have been fixed.
5903
5904 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
9018a88e 5905
0416870b
KS
5906 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
5907 rather than FRAME_WIDTH (FRAME_FONT (f)).
5908
5909 5) Introduce a consistent naming of variables, members and macros
5910 depending on whether their value is measured in pixels or in
5911 canonical columns/lines. Pixel dimensions are named *_width and
5912 *_height, while canonical columns/lines are named *_cols and
5913 *_lines. Pixel positions are named *_x and *_y, while column/line
5914 positions are named *_col and *_line.
5915
5916 6) Consolidate more of the X, W32, and MAC gui code by moving
5917 common data into struct frame, and generalize it for the non-gui
5918 case by using suitable defaults.
5919
5920 7) Cleanup and consolidate the macros controlling frame and window
5921 layout into frame.h and window.h, and generalize the use of the
5922 various window_box_* functions (enhanced to handle the new fringe
5923 position and the per-window fringe and scroll bar settings).
5924
5925 * frame.h (struct frame): Rename members height to text_lines,
5926 width to text_cols, window_height to total_lines, window_width to
5927 total_cols, new_height to new_text_lines, new_width to
5928 new_text_cols. All uses changed.
5929 (struct frame): New members which consolidate common members of
5930 x_output, w32_output, and mac_output structures: left_pos,
5931 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
5932 win_gravity, size_hint_flags, border_width, internal_border_width,
5933 line_height, fringe_cols, left_fringe_width, right_fringe_width,
5934 want_fullscreen. All uses changed.
5935 (struct frame): New member column_width contaning the canonical
5936 column width, analogue to line_height. All uses changed.
5937 (struct frame): Rename members scroll_bar_pixel_width to
5938 config_scroll_bar_width, and scroll_bar_cols to
5939 config_scroll_bar_cols. All uses changed.
5940 (struct frame): New member scroll_bar_actual_width which
5941 consolidates and renames the vertical_scroll_bar_extra member of
5942 x_output, w32_output, and mac_output structures. All uses changed.
5943 (FRAME_PIXEL_HEIGHT): Renamed from PIXEL_HEIGHT and moved
5944 from x/w32/macterm.h files. All uses changed. Also change code
5945 which referred to f->output_data...->pixel_height.
5946 (FRAME_PIXEL_WIDTH): Renamed from PIXEL_WIDTH and moved
f63fd14e 5947 from x/w32/macterm.h files. All uses changed. Also change code
0416870b
KS
5948 which referred to f->output_data...->pixel_width.
5949 (FRAME_LINES): Renamed from FRAME_HEIGHT. All uses changed.
5950 Also change code which referred to f->height.
5951 (FRAME_COLS): Renamed from FRAME_WIDTH. All uses changed.
5952 Also change code which referred to f->width.
5953 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
5954 to update new_text_lines and new_text_cols members directly.
5955 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Renamed from
5956 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
5957 (FRAME_CONFIG_SCROLL_BAR_COLS): Renamed from
5958 FRAME_SCROLL_BAR_COLS. All uses changed.
5959 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
5960 Renamed from FRAME_LEFT_SCROLL_BAR_WIDTH and
5961 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
5962 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
5963 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
5964 (FRAME_TOTAL_COLS): Renamed from FRAME_WINDOW_WIDTH.
5965 (SET_FRAME_COLS): Renamed from SET_FRAME_WIDTH.
5966 (FRAME_TOTAL_COLS_ARG): Renamed from FRAME_WINDOW_WIDTH_ARG.
5967 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
5968 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
5969 (FRAME_LINE_HEIGHT): Renamed from CANON_Y_UNIT. Unconditionally
5970 return line_height member (it now has proper value also for
5971 non-window frames).
5972 (FRAME_COLUMN_WIDTH): Renamed from CANON_X_UNIT. Unconditionally
5973 return new column_width member (rather than the default font width).
5974 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
5975 (FRAME_RIGHT_FRINGE_WIDTH): Renamed from FRAME_X_... and moved
5976 from x/w32/macterm.h files. Unconditionally return corresponding
5977 member of frame structure (they now have proper values also for
5978 non-window frames).
5979 (FRAME_TOTAL_FRINGE_WIDTH): Renamed from FRAME_FRINGE_WIDTH.
5980 Calculate return value from left and right widths.
5981 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
5982 internal_border_width member (has proper value for non-window frame).
5983 (FRAME_PIXEL_X_FROM_CANON_X): Renamed from PIXEL_X_FROM_CANON_X.
5984 (FRAME_PIXEL_Y_FROM_CANON_Y): Renamed from PIXEL_Y_FROM_CANON_Y.
5985 (FRAME_CANON_X_FROM_PIXEL_X): Renamed from CANON_X_FROM_PIXEL_X.
5986 (FRAME_CANON_Y_FROM_PIXEL_Y): Renamed from CANON_Y_FROM_PIXEL_Y.
5987 (FRAME_LINE_TO_PIXEL_Y): Renamed from CHAR_TO_PIXEL_ROW,
5988 consolidated from xterm.h, macterm.h, and w32term.h.
5989 (FRAME_COL_TO_PIXEL_X): Renamed from CHAR_TO_PIXEL_COL,
5990 consolidated from xterm.h, macterm.h, and w32term.h.
5991 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Renamed from
5992 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
5993 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Renamed from
5994 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
5995 (FRAME_PIXEL_Y_TO_LINE): Renamed from PIXEL_TO_CHAR_ROW
5996 consolidated from x/mac/w32term.h.
5997 (FRAME_PIXEL_X_TO_COL): Renamed from PIXEL_TO_CHAR_COL
5998 consolidated from x/mac/w32term.h.
5999 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Renamed from
6000 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
6001 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Renamed from
6002 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
6003
6004 * window.h (struct window): Rename members left to left_col,
6005 top to top_line, height to total_lines, width to total_cols,
6006 left_margin_width to left_margin_cols, right_margin_width to
6007 right_margin_cols, orig_height to orig_total_lines, orig_top to
6008 orig_top_line. All uses changed.
6009 (struct window): New members left_fringe_width, right_fringe_width,
6010 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
6011 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
6012 New macros primarily used to simplify other macros.
6013 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
6014 referred to XINT (w->width).
6015 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
6016 referred to XINT (w->height).
6017 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
6018 referred to XINT (w->width) * canon_x_unit.
6019 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
6020 referred to XINT (w->height) * canon_y_unit.
6021 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
6022 referred to XINT (w->left).
6023 (WINDOW_RIGHT_EDGE_COL): Renamed from WINDOW_RIGHT_EDGE. Change
6024 all uses and code that referred to XINT (w->left) + XINT (w->width).
6025 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
6026 referred to XINT (w->top).
6027 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
6028 referred to XINT (w->top) + XINT (w->height).
6029 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
6030 referred to XINT (w->left) * canon_x_unit.
6031 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
6032 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
6033 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
6034 referred to XINT (w->top) * canon_y_unit.
6035 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
6036 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
6037 (WINDOW_LEFTMOST_P): New macro.
6038 (WINDOW_BOX_LEFT_EDGE_COL): Renamed from WINDOW_LEFT_MARGIN.
6039 All uses changed.
6040 (WINDOW_BOX_RIGHT_EDGE_COL): Renamed from WINDOW_RIGHT_MARGIN.
6041 All uses changed.
6042 (WINDOW_BOX_LEFT_EDGE_X): Renamed from
6043 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
6044 Do not exclude left fringe width.
6045 (WINDOW_BOX_RIGHT_EDGE_X): Renamed from
6046 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
6047 Do not exclude fringe widths.
6048 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
6049 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
6050 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
6051 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
6052 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
6053 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
6054 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
6055 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
6056 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
6057 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
6058 New macros. Change code which referenced corresponding
6059 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
6060 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
6061 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
6062 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
6063 allow per-window scroll-bar settings.
6064 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
6065 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
6066 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
6067 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
6068 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
6069 FRAME_SCROLL_BAR_WIDTH.
6070 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
9018a88e 6071 (WINDOW_SCROLL_BAR_AREA_X): New macros.
0416870b
KS
6072 (WINDOW_HEADER_LINE_HEIGHT): Renamed from
6073 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
6074 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Renamed from
6075 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
6076 (WINDOW_BOX_TEXT_HEIGHT): Renamed from
6077 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
6078 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
6079 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
6080 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Moved here from dispextern.h.
6081 (WINDOW_LEFT_MARGIN_WIDTH): Renamed from
6082 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
6083 (WINDOW_RIGHT_MARGIN_WIDTH): Renamed from
6084 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
6085 (window_from_coordinates): Update prototype.
6086 (Fset_window_buffer): Update EXFUN.
6087 (set_window_buffer): Update prototype.
9018a88e 6088
0416870b 6089 * dispextern.h (struct glyph_matrix): Rename members window_left_x
9018a88e 6090 to window_left_col, window_top_y to window_top_line. All uses
0416870b
KS
6091 changed.
6092 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
6093 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
6094 internal_border_width is now set to 0 for non-window frames.
6095 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
6096 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
6097 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
6098 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
6099 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
6100 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
6101 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
6102 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
6103 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
9018a88e 6104 Move to window.h and renamed [see window.h changes].
0416870b
KS
6105 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
6106 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
9018a88e
SM
6107 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
6108 Use WINDOW_TOTAL_LINES.
0416870b
KS
6109 (frame_update_line_height): Remove prototype.
6110
6111 * buffer.h (struct buffer): Rename members measured in columns:
6112 left_margin_width to left_margin_cols, right_margin_width to
6113 right_margin_cols. All uses changed.
6114 New members left_fringe_width, right_fringe_width,
6115 fringes_outside_margins for per-buffer fringe settings.
6116 New members scroll_bar_width and vertical_scroll_bar_type for
6117 per-buffer scroll bar settings.
6118
6119 * buffer.c (init_buffer_once): Set buffer_defaults and
6120 buffer_local_flags for new buffer-local variables
6121 left_fringe_width, right_fringe_width, fringes_outside_margins,
6122 scroll_bar_width, and vertical_scroll_bar_type.
6123 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
6124 default-* variables for them.
6125
6126 * dispnew.c: Make (many) trivial substitutions for renamed and
6127 new macros in dispextern.h, frame.h and window.h.
6128 (mode_line_string): No need to adjust width for mode lines, as it
6129 is already adjusted by the caller.
6130 (marginal_area_string): Handle fringes inside/outside margins.
9018a88e 6131
0416870b
KS
6132 * frame.c: Make (many) trivial substitutions for renamed and
6133 new macros in dispextern.h, frame.h and window.h.
6134 (make_frame): Initialize left_fringe_width, right_fringe_width,
6135 fringe_cols, scroll_bar_actual_width, border_width,
6136 internal_border_width, column_width, line_height, x_pixels_diff,
6137 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
6138 members with values suitable for a non-window frames.
6139
6140 * gtkutil.c: Make (many) trivial substitutions for renamed and
6141 new macros in dispextern.h, frame.h and window.h.
9018a88e 6142
0416870b
KS
6143 * indent.c: Make (few) trivial substitutions for renamed and
6144 new macros in dispextern.h, frame.h and window.h.
6145
6146 * keyboard.c: Make (many) trivial substitutions for renamed and
6147 new macros in dispextern.h, frame.h and window.h.
6148 (make_lispy_event): Use window positions returned from
6149 window_from_coordinates when constructing the lisp event for
6150 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
6151 (incorrect) values locally.
6152 (make_lispy_movement): Use window positions returned from
6153 window_from_coordinates when constructing the lisp event, rather
6154 than calculating (incorrect) values locally.
6155
6156 * scroll.c: Make (some) trivial substitutions for renamed and
6157 new macros in dispextern.h, frame.h and window.h.
6158
6159 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
6160 scroll-bars.
6161
6162 * sysdep.c: Make (few) trivial substitutions for renamed and
6163 new macros in dispextern.h, frame.h and window.h.
6164
6165 * term.c: Make (some) trivial substitutions for renamed and
6166 new macros in dispextern.h, frame.h and window.h.
6167
6168 * widget.c: Make (few) trivial substitutions for renamed and
6169 new macros in dispextern.h, frame.h and window.h.
6170
6171 * window.c: Make (many) trivial substitutions for renamed and
6172 new macros in dispextern.h, frame.h and window.h.
6173 (make_window): Initialize new members
6174 left_margin_cols, right_margin_cols, left_fringe_width,
6175 right_fringe_width, fringes_outside_margins, scroll_bar_width,
6176 and vertical_scroll_bar_type.
6177 (coordinates_in_window): Adapted to new fringe/margin positions
9018a88e 6178 and per-window fringes and scroll-bars.
0416870b 6179 Fix bug related to incorrectly adjusting coordinates by
9018a88e 6180 frame's internal_border_width (the effect normally negible since
0416870b
KS
6181 the internal_border_width is typically 0 or 1 pixel, but very
6182 noticeable for an internal_border_width of e.g. 25 pixels).
6183 Upon successful return (other than ON_NOTHING), the coordinates
6184 are now always properly converted to window relative for the
6185 given display element.
6186 (window_from_coordinates): Add new parameters wx and wy to
6187 return the window relative x and y position in the returned
6188 window and part. A null arg means, don't return the position.
6189 All callers changed.
6190 (adjust_window_margins): New function which may reduce the width
6191 of the display margins if a window's text area is too small after
6192 resizing or splitting windows.
6193 (size_window): Fix bug that did not account for display margin
6194 widths when checking the minimum width of a window; use
6195 adjust_window_margins.
6196 (set_window_buffer): Call Fset_window_fringes and
6197 Fset_window_scroll_bars to setup per-window elements.
6198 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
6199 existing display margin, fringe widths, and scroll bar settings
9018a88e
SM
6200 (e.g. after splitting a window or resizing the frame).
6201 All callers changed.
0416870b
KS
6202 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
6203 (Fsplit_window): Duplicate original window's display margin,
6204 fringe, and scroll-bar settings; then call Fset_window_buffer with
6205 KEEP_MARGINS non-nil. This fixes a bug which caused a split
6206 window to only preserve the display margins in one of the windows.
c4b8aebc 6207 When splitting horizontally, call adjust_window_margins on both
0416870b 6208 windows to ensure that the text area of the new windows is non too
f9711de4 6209 narrow. This fixes a bug which could cause Emacs to trap if the
0416870b
KS
6210 width of the split window was less than the width of the display
6211 margins.
9018a88e
SM
6212 (window_box_text_cols): Renamed from window_internal_width.
6213 All uses changed. Adapt to per-window fringes and scroll bars.
0416870b
KS
6214 Fix bug that caused vertical separator to be subtracted also on
6215 window frames. Fix another bug that did not reduce the returned
6216 value by the columns used for display margins.
6217 (window_scroll_line_based): Fix bug related to scrolling too much
6218 when display margins are present (implicitly fixed by the fix to
6219 window_box_text_cols).
6220 (scroll_left, scroll_right): Fix bug related to scrolling too far
6221 by default when display margins are present (implicitly fixed by
6222 the fix to window_box_text_cols).
6223 (struct saved_window): Rename members left to left_col, top to
6224 top_line, width to total_cols, height to total_lines, orig_top to
6225 orig_top_line, orig_height to orig_total_lines. All uses changed.
6226 New members left_margin_cols, right_margin_cols,
6227 left_fringe_width, right_fringe_width, fringes_outside_margins,
6228 scroll_bar_width, and vertical_scroll_bar_type for saving
6229 per-window display elements.
6230 (Fset_window_configuration): Restore display margins, fringes,
6231 and scroll bar settings. This fixes a bug which caused display
6232 margins to be discarded when saving and restoring a window
6233 configuration.
6234 (save_window_save): Save display margins, fringes, and scroll bar
6235 settings. This fixes a bug which caused display margins to be
6236 discarded when saving and restoring a window configuration.
6237 (Fset_window_margins): Do nothing if display margins are not
6238 really changed. Otherwise, call adjust_window_margins to ensure
6239 the text area doesn't get too narrow. This fixes a bug which
f9711de4 6240 could cause Emacs to trap if setting display margins wider than
0416870b
KS
6241 the width of the window.
6242 (Fset_window_fringes): New defun to allow user to specifically set
6243 this window's fringe widths and position vs. display margins.
6244 (Fwindow_fringes): New defun to return window's actual fringe
6245 settings.
6246 (Fset_window_scroll_bars): New defun to allow user to specifically
6247 set this window's scroll bar width and position.
6248 (Fwindow_scroll_bars): New defun to return window's actual scroll
6249 bar settings.
6250 (compare_window_configurations): Also compare display margins,
6251 fringes, and scroll bar settings.
6252 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
6253
6254 * xdisp.c: Make (many) trivial substitutions for renamed and
6255 new macros in dispextern.h, frame.h and window.h.
6256 (window_box_width): Adapt to per-window fringes and scroll bars,
f63fd14e 6257 and new fringe vs. display margin position. Note that returned
0416870b
KS
6258 value is no longer guaranteed to be a whole multiple of the frame
6259 column width, since per-window fringes may now be any width.
6260 (window_box_left_offset): New function like window_box_left, but
6261 value is relative to left border of window (rather than frame).
6262 (window_box_right_offset): New function like window_box_right,
6263 but value is relative to left border of window.
6264 (window_box_left): Adapt to per-window fringes and scroll bars,
6265 and new fringe vs. display margin position. Simplify by using
6266 WINDOW_LEFT_EDGE_X and window_box_left_offset.
6267 (window_box): Allow null args for unnecessary return values;
6268 change/simplify relevant callers.
6269 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
9018a88e
SM
6270 and new fringe vs. display margin position.
6271 Use window_box_left_offset and window_box_right_offset
0416870b 6272 (get_glyph_string_clip_rect): Adapt to per-window fringes and
9018a88e
SM
6273 scroll bars, and new fringe vs. display margin position.
6274 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
0416870b
KS
6275 (draw_fringe_bitmap): Rework to handle per-window fringes and new
6276 fringe vs. display margin position.
6277 (hscroll_window_tree): Use window_box_width instead of window_box.
a64387ee
JB
6278 (redisplay_window): Adapt to per-window scroll bars.
6279 (draw_glyphs): Rework to handle per-window fringes and scroll
9018a88e
SM
6280 bars, and new fringe vs. display margin position.
6281 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
a64387ee 6282 (x_clear_end_of_line): Adapt to per-window fringes and scroll
0416870b
KS
6283 bars, and new fringe vs. display margin position. Fix bug which
6284 increased total width of full_width rows by width of scroll bars
6285 although window's total width already includes that.
6286 (x_fix_overlapping_area): Simplify using window_box_left_offset.
6287 (expose_area): Simplify using window_box_left_offset.
6288 (x_draw_vertical_border): Handle per-window scroll bar settings,
6289 mixing windows with left, right and no scroll bars.
6290
6291 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
6292 where it's used in x_list_fonts (for clarity).
6293 (frame_update_line_height): Remove unused function; functionality
6294 is now done directly when setting the default font in x_set_font.
6295
6296 * xfns.c: Make (many) trivial substitutions for renamed and
6297 new macros in dispextern.h, frame.h and window.h.
6298
6299 * xmenu.c: Make (some) trivial substitutions for renamed and
6300 new macros in dispextern.h, frame.h and window.h.
6301
6302 * xterm.h (struct x_output): Move members left_pos, top_pos,
6303 border_width, pixel_height, pixel_width, line_height,
6304 internal_border_width, vertical_scroll_bar_extra,
6305 left_fringe_width, right_fringe_width, fringe_cols,
6306 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
6307 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
6308 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
6309 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
6310 (PIXEL_WIDTH, PIXEL_HEIGHT)
6311 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
6312 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to
6313 frame.h and renamed [see frame.h changes].
6314 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
6315 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
6316 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h
6317 and renamed [see frame.h changes].
9018a88e 6318
0416870b
KS
6319 * xterm.c: Make (several) trivial substitutions for renamed and
6320 new macros in dispextern.h, frame.h and window.h.
6321 (x_draw_glyph_string_box): Adapt to per-window fringes and
6322 scroll-bars.
6323 (scroll_run): Adapt to new fringe position.
6324 (glyph_rect): Use window coordinates returned from
6325 window_from_coordinates rather than frame_to_window_pixel_xy.
6326 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
6327 scroll-bars.
6328 (handle_one_xevent): Simplify a USE_GTK conditional.
6329 (x_clip_to_row): Remove superfluous whole_line_p arg and code
6330 (fringes are now inside margins, i.e. always in the clipping area).
6331 All callers changed.
6332 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
6333 directly, then call compute_fringe_widths. Don't call
6334 frame_update_line_height.
6335
6336 * w32term.h (struct w32_output): Move members left_pos, top_pos,
6337 border_width, pixel_height, pixel_width, line_height,
6338 internal_border_width, vertical_scroll_bar_extra,
6339 left_fringe_width, right_fringe_width, fringe_cols,
6340 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
6341 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
6342 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
6343 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
6344 (PIXEL_WIDTH, PIXEL_HEIGHT)
6345 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
6346 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to
6347 frame.h and renamed [see frame.h changes].
6348 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
6349 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
6350 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h
6351 and renamed [see frame.h changes].
9018a88e 6352
0416870b
KS
6353 * w32term.c: Make (several) trivial substitutions for renamed and
6354 new macros in dispextern.h, frame.h and window.h.
6355 (x_draw_glyph_string_box): Adapt to per-window fringes and
6356 scroll-bars.
6357 (glyph_rect): Use window coordinates returned from
6358 window_from_coordinates rather than frame_to_window_pixel_xy.
6359 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
6360 scroll-bars.
6361 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
6362 (fringes are now inside margins, i.e. always in the clipping area).
6363 All callers changed.
6364 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
6365 directly, then call compute_fringe_widths. Don't call
6366 frame_update_line_height.
6367
6368 * w32console.c: Make (few) trivial substitutions for renamed and
6369 new macros in dispextern.h, frame.h and window.h.
6370
6371 * w32fns.c: Make (many) trivial substitutions for renamed and
6372 new macros in dispextern.h, frame.h and window.h.
6373
6374 * w32menu.c: Make (few) trivial substitutions for renamed and
6375 new macros in dispextern.h, frame.h and window.h.
6376
6377 * macterm.h (struct mac_output): Move members left_pos, top_pos,
6378 border_width, pixel_height, pixel_width, line_height,
6379 internal_border_width, vertical_scroll_bar_extra,
6380 left_fringe_width, right_fringe_width, fringe_cols,
6381 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
6382 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
6383 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
6384 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
6385 (PIXEL_WIDTH, PIXEL_HEIGHT)
6386 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
6387 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to
6388 frame.h and renamed [see frame.h changes].
6389 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
6390 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
6391 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h
6392 and renamed [see frame.h changes].
9018a88e 6393
0416870b
KS
6394 * macterm.c: Make (several) trivial substitutions for renamed and
6395 new macros in dispextern.h, frame.h and window.h.
6396 (x_draw_glyph_string_box): Adapt to per-window fringes and
6397 scroll-bars.
6398 (glyph_rect): Use window coordinates returned from
6399 window_from_coordinates rather than frame_to_window_pixel_xy.
6400 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
6401 scroll-bars.
6402 (x_clip_to_row): Remove superfluous whole_line_p arg and code
6403 (fringes are now inside margins, i.e. always in the clipping area).
6404 All callers changed.
6405 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
6406 directly, then call compute_fringe_widths. Don't call
6407 frame_update_line_height.
6408
6409 * macfns.c: Make (several) trivial substitutions for renamed and
6410 new macros in dispextern.h, frame.h and window.h.
9018a88e 6411 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
0416870b
KS
6412
6413 * macmenu.c: Make (few) trivial substitutions for renamed and
6414 new macros in dispextern.h, frame.h and window.h.
6415
6416 * msdos.h (struct x_output): Remove members left_pos, top_pos,
6417 and line_height, and use corresponding new members in struct
6418 frame. All uses changed.
6419 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
6420 superseeded by corresponding macros in frame.h.
6421
6422 * msdos.c: Make (several) trivial substitutions for renamed and
6423 new macros in dispextern.h, frame.h and window.h.
6424 (IT_note_mouse_highlight): Use updated window coordinates returned
9018a88e 6425 by window_from_coordinates, rather than adjusting them locally.
0416870b
KS
6426 (internal_terminal_init): No need to initialize line_height here;
6427 it now defaults to 1.
6428
9018a88e
SM
64292003-05-24 Stefan Monnier <monnier@cs.yale.edu>
6430
6431 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
6432 dropping `down' events.
6433
016bd3c0
AS
64342003-05-24 Andreas Schwab <schwab@suse.de>
6435
6436 * coding.c (find_safe_codings): Fix last change.
6437
4dacadcc
TTN
64382003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
6439
6440 * xfns.c (x_window): Fix typo from 2003-05-21 change.
6441
319830ce
SM
64422003-05-23 Stefan Monnier <monnier@cs.yale.edu>
6443
9018a88e
SM
6444 * xdisp.c (display_mode_element): Increase max depth.
6445 Simplify the error handling code. Use a different error string
6446 for the case where we hit the depth limit.
6447
319830ce
SM
6448 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
6449
6450 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
6451
64522003-05-21 Stefan Monnier <monnier@cs.yale.edu>
6453
6454 * intervals.c (get_local_map): Don't get char-property of previous
6455 point any more: get_pos_property already does it and better.
6456
c67de8ba
DL
64572003-05-21 Dave Love <fx@gnu.org>
6458
6459 [Merged from unicode branch.]
6460
6461 * xfns.c (x_window, x_window): Use use_xim.
6462
6463 * xterm.c (use_xim): Initialize.
6464 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
6465 (x_term_init): Maybe set use_xim.
6466
6467 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
6468
edd3ff1d
JR
64692003-05-21 Jason Rumney <jasonr@gnu.org>
6470
6471 * unexw32.c (_start): Remove _fmode initialization.
6472
6473 * emacs.c (main) [WINDOWSNT]: Move it here.
6474
463f55ee
DL
64752003-05-20 Dave Love <fx@gnu.org>
6476
6477 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
6478
af253914
RS
64792003-05-19 Richard M. Stallman <rms@gnu.org>
6480
6481 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
6482 as value for QCfont attribute.
6483 (realize_default_face): lface should already exist; crash if not.
6484 Specify 0 for FORCE_P when calling set_lface_from_font_name.
6485
6486 * frame.c (Fignore_event): Doc fix.
6487
1d211019
KH
64882003-05-19 Kenichi Handa <handa@m17n.org>
6489
6490 * coding.c (decode_coding_string): Handle post-read-conversion
6491 even if the coding doesn't require decoding.
6492
4dd68254
RS
64932003-05-18 Richard M. Stallman <rms@gnu.org>
6494
6495 * callproc.c (Fcall_process_region): Doc fix.
6496
14d87dc9
SM
64972003-05-17 Stefan Monnier <monnier@cs.yale.edu>
6498
deca5d96
SM
6499 * lread.c (Fload): Print a message if package is obsolete.
6500
14d87dc9
SM
6501 * window.c (Fselect_window): Add optional `norecord' arg.
6502 (select_window_1): Fold into Fselect_window.
6503 (select_window_norecord): New function.
6504 (temp_output_buffer_show): Use it. Preserve current buffer.
6505
6506 * window.h (Fselect_window): Update declaration.
6507
6508 * window.c (delete_window, Fother_window, Fset_window_configuration):
6509 * minibuf.c (read_minibuf):
6510 * macterm.c (x_new_focus_frame):
6511 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
6512 * callint.c (Fcall_interactively):
6513 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
6514
6515 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
6516
78f52183
DK
65172003-05-17 David Kastrup <dak@gnu.org>
6518
6519 * process.c (read_process_output): Back out change from 2003-03-09.
6520
14d87dc9
SM
65212003-05-17 Stefan Monnier <monnier@cs.yale.edu>
6522
6523 * editfns.c (get_pos_property): Don't assume that `object' = nil.
6524
6525 * textprop.c (text_property_stickiness): New arg `buffer'.
6526
6527 * intervals.h (text_property_stickiness): New arg `buffer'.
6528 (get_pos_property): Declare.
6529
6530 * intervals.c (get_local_map): Use get_pos_property, to obey
6531 stickiness and empty overlays.
6532 (create_root_interval, graft_intervals_into_buffer): Use BEG.
6533 (merge_properties, intervals_equal, merge_properties_sticky):
6534 Use XCAR, XCDR.
6535 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
6536
1fd1cc2f
RS
65372003-05-17 Richard M. Stallman <rms@gnu.org>
6538
4f9f637a
RS
6539 * minibuf.c (read_minibuf): If buffer is empty, record the default
6540 in the history.
6541 (Fminibuffer_complete_word): When deleting the overlap, take account
6542 of its real position.
6543
6544 * fns.c (map_char_table): Fix previous change.
6545
1fd1cc2f
RS
6546 * syntax.c (find_defun_start):
6547 When open_paren_in_column_0_is_defun_start,
6548 return beginning of buffer.
6549
6550 * lisp.h (map_char_table): Declare added arg.
6551
6552 * fns.c (map_char_table): New arg TABLE gets the master table.
6553 All calls changed.
6554 Process default and inheritance, resorting to Faref if necessary.
6555
6556 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
6557 (Faccessible_keymaps): Pass new arg to map_char_table.
6558
6559 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
6560
6561 * casetab.c (set_case_table): Pass new arg to map_char_table.
6562
6563 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
6564
6565 * lisp.h (specbinding_func): New typedef.
6566 (struct specbinding): Use specbinding_func, to put the `volatile'
6567 in the right place.
6568
6569 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
6570 to avoid GCC warning.
14d87dc9 6571
b4bd27c5
RS
65722003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org> (tiny change)
6573
14d87dc9 6574 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
b4bd27c5 6575
35fb885d
SM
65762003-05-15 Stefan Monnier <monnier@cs.yale.edu>
6577
6578 * keyboard.c (apply_modifiers): Don't fill the other cache.
6579
9a274fbd
SM
65802003-05-14 Stefan Monnier <monnier@cs.yale.edu>
6581
c55b5fad
SM
6582 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
6583
9a274fbd
SM
6584 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
6585 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
6586 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
6587 (Fset_window_configuration, Fcurrent_window_configuration)
6588 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
6589 (Fpos_visible_in_window_p, mark_window_cursors_off)
6590 (window_internal_height, window_internal_width, Frecenter)
6591 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
6592 (replace_buffer_in_all_windows, init_window_once, init_window)
6593 (syms_of_window, keys_of_window): Move from lisp.h.
6594 * lisp.h: Move window.c declarations to window.h.
6595
6596 * bytecode.c: Include window.h.
6597 * emacs.c: Include window.h.
6598
14d87dc9 6599 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
9a274fbd
SM
6600 (keyremap): Add `parent' field.
6601 (keyremap_step): Use it. Remove `parent' argument.
6602 (read_key_sequence): Setup and use the new `parent' field.
6603
fd93e331
SM
66042003-05-11 Stefan Monnier <monnier@cs.yale.edu>
6605
6606 * keyboard.c (adjust_point_for_property): Ensure termination.
6607
1c4001a1
SM
66082003-05-10 Stefan Monnier <monnier@cs.yale.edu>
6609
6610 * keyboard.c (follow_key): Remove dead variable `did_meta'.
6611 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
6612 duplicated handling of function-key-map and key-translation-map
6613 in read_key_sequence.
6614 (read_key_sequence): Use them.
6615
6616 * keyboard.c (adjust_point_for_property): Try harder to move point
6617 to the non-sticky end of an invisible property.
6618
6619 * xdisp.c (single_display_prop_intangible_p): Make `space' display
6620 property intangible as well.
6621
780379b1
AS
66222003-05-10 Andreas Schwab <schwab@suse.de>
6623
6624 * xmenu.c (single_menu_item): Change last parameter to void* to
6625 avoid warning.
6626
ca2de342
RS
66272003-05-09 Richard M. Stallman <rms@gnu.org>
6628
6629 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
6630 Bind Qinhibit_modification_hooks to t so there will be no GC.
6631 Rename local `tem' to `save_deactivate_mark'.
6632
6633 * eval.c (specpdl_ptr): Declare volatile.
6634 (unbind_to): Copy the whole binding and decrement specpdl_ptr
6635 before doing the work of unbinding it.
6636
6637 * lisp.h (struct specbinding): Declare elements volatile.
6638 (specpdl_ptr): Declare volatile.
6639
6640 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
6641
6642 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
6643 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
6644
347003be
DL
66452003-05-08 Dave Love <fx@gnu.org>
6646
6647 * coding.c (Vlast_coding_system_used): Doc fix.
6648
5adcec23
JR
66492003-05-07 Jason Rumney <jasonr@gnu.org>
6650
6651 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
6652 when system does not support them.
6653
5fe3b8a4
SM
66542003-05-05 Stefan Monnier <monnier@cs.yale.edu>
6655
6656 * fileio.c (Qwrite_region_annotate_functions): New var.
6657 (build_annotations): Use it to process the global part of the hook.
6658 (syms_of_fileio): Init and staticpro it.
6659
6660 * keyboard.c (safe_run_hooks_error): Display a message instead of
6661 silently ignoring the error.
6662
66632003-05-03 Stefan Monnier <monnier@cs.yale.edu>
6664
6665 * keyboard.c (input_available_signal): Mark static.
6666 (menu_bar_items): Use map_keymap.
6667 (menu_bar_one_keymap): Remove.
6668 (menu_bar_item): Adjust arglist (for use in map_keymap).
6669 Properly hide a second binding when not both are keymaps.
6670
6671 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
6672 (single_keymap_panes): Use it and map_keymap.
6673 (single_menu_item): Use skp as well.
6674
6675 * keymap.h (map_keymap_function_t): New type.
6676 (map_keymap): Declare.
6677
6678 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
6679 (map_keymap_call, Fmap_keymap): New functions.
6680 (syms_of_keymap): Defsubr map-keymap.
6681
4b1b4443
JD
66822003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6683
6684 * gtkutil.c (create_dialog, make_widget_for_menu_item)
6685 (make_menu_item, create_menus, xg_update_menu_item): Don't call
6686 ..._with_mnemonic functions for menu items.
6687
1f816871
KH
66882003-05-01 Kenichi Handa <handa@m17n.org>
6689
6690 * coding.c (coding_system_accept_latin_extra_p): Delete this
6691 function.
6692 (find_safe_codings): Pay attention to
6693 the property tranlsation-table-for-encode of each codings.
6694 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
6695
5ed6ba5b
SM
66962003-05-01 Stefan Monnier <monnier@cs.yale.edu>
6697
6698 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
6699
32c06229
SM
67002003-04-30 Stefan Monnier <monnier@cs.yale.edu>
6701
6702 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
6703
6704 * lisp.h (CHECK): Wrap args in parenthesis.
6705 (specbind): Fix doc: symbol = Qnil is not supported any more.
6706
6707 * bytecode.c (Fbyte_code) <unwind-protect>:
6708 Use Fprogn rather than 0 and Qnil.
6709
6710 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
6711 `double', and `triple' modifiers as well.
6712
ed3c3314
RS
67132003-04-30 Richard M. Stallman <rms@gnu.org>
6714
6715 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
6716
6717 * alloc.c (abort_on_gc): New variable.
6718 (Fgarbage_collect): Abort if abort_on_gc is set.
6719
6720 * lisp.h (abort_on_gc): Add decl.
6721
6722 * eval.c (Fsignal): Clear abort_on_gc.
6723
6724 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
32c06229 6725 Reinit FORMAT_START and END before second scan.
ed3c3314
RS
6726
6727 * xdisp.c (move_it_vertically_backward): Do the final big else
6728 even if nlines is 0.
6729
6730 * xdisp.c (redisplay_internal): Finish the per-frame loop
6731 even if redisplay is suspended by input.
6732
0b325c12
AC
67332003-04-24 Andrew Choi <akochoi@shaw.ca>
6734
6735 * macterm.c (x_list_fonts): Return all fonts that match if
6736 maxnames = -1.
6737
4e837cd0
KH
67382003-04-25 Kenichi Handa <handa@m17n.org>
6739
6740 * syntax.c (skip_chars): Fix previous change.
6741
9af7511a
KH
67422003-04-24 Kenichi Handa <handa@m17n.org>
6743
6744 * syntax.c (skip_chars): Make the code faster by using the common
6745 technique of *p, *stop, and *endp.
6746
e3b2c21f
JD
67472003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6748
6749 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
32c06229 6750 tool_bar_items so GTK tool bar expose callback does not access items
e3b2c21f
JD
6751 being updated.
6752
32c06229
SM
67532003-04-19 Stefan Monnier <monnier@cs.yale.edu>
6754
6755 * eval.c (Fapply): Undo last change and add a comment about why.
6756
c6464167
MB
67572003-04-18 Miles Bader <miles@gnu.org>
6758
6759 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
6760 pickier PARSE_MULTIBYTE_SEQ.
6761
e509f168
SM
67622003-04-17 Stefan Monnier <monnier@cs.yale.edu>
6763
6764 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
6765 Use XCDR, XCAR, CONSP.
6766 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
6767 (Fapply): Remove unnecessary GCPRO.
6768
6769 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
6770
6771 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
6772
6773 * buffer.h: Don't hardcode BEG==1.
6774
6775 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
6776
5ceea398
RS
67772003-04-16 Richard M. Stallman <rms@gnu.org>
6778
6779 * xdisp.c (try_window, try_window_reusing_current_matrix):
6780 When at end of window, set window_end_pos to Z-ZV.
6781
6782 * buffer.c (Foverlay_recenter): Doc fix.
6783
e509f168
SM
67842003-04-14 Stefan Monnier <monnier@cs.yale.edu>
6785
6786 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
6787
d243e605
AC
67882003-04-14 Andrew Choi <akochoi@shaw.ca>
6789
6790 * macterm.c (mac_check_for_quit_char): Don't check more often than
6791 once a second.
6792
6901b111
SM
67932003-04-11 Stefan Monnier <monnier@cs.yale.edu>
6794
6795 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
6796 specially, so that they can't hide an implicit switch-frame event.
6797 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
6798 (head_table): Use switch-frame as event_kind for select-window.
6799 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
6800
6801 * editfns.c (Fformat): Lisp_Object/int mixup.
6802 (format2): Remove unused var numargs.
6803
e301806f 68042003-04-11 Kenichi Handa <handa@m17n.org>
aa95b710 6805
6901b111 6806 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
aa95b710
KH
6807 (Qafter_insert_file_set_coding): New variable.
6808 (syms_of_fileio): Initialize and staticpro it. Delete declaration
6809 for after-insert-file-adjust-coding-function.
6810 (Finsert_file_contents): Call Qafter_insert_file_set_coding
6811 instead of Vafter_insert_file_adjust_coding_function.
6812
38914424
KH
68132003-04-11 Kenichi Handa <handa@m17n.org>
6814
6815 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
6816
6817 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
6818 string. Callers changed.
6819
68202003-04-10 Kenichi Handa <handa@m17n.org>
a288d979 6821
6901b111 6822 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
a288d979 6823 (syms_of_fileio): Declare it as a lisp variable.
6901b111
SM
6824 (Finsert_file_contents):
6825 Call Vafter_insert_file_adjust_coding_function before calling
a288d979
KH
6826 decode-format.
6827
f979dc05
JD
68282003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6829
6830 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
6831 get GtkAdjustment as widget now is a GtkRange.
6832
6833 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
6834 GtkRange to avoid memory leak.
6835
f8c6b4c2 68362003-04-09 Kenichi Handa <handa@m17n.org>
cb98871c 6837
50ebc53d
KH
6838 * xfaces.c (Vface_font_rescale_alist): New variable.
6839 (struct font_name): New member rescale_ratio.
6840 (font_rescale_ratio): New function.
6901b111 6841 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
50ebc53d
KH
6842 (better_font_p): On comparing point sized, pay attention to
6843 recale_ratio member of fonts.
6844 (build_scalable_font_name): Reflect font->rescale_ratio in the
6845 font name.
6901b111 6846 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
50ebc53d 6847
cb98871c
KH
6848 * lread.c (read1): Before calling index, check if the 2nd
6849 arguemnt is in ASCII range.
6850
4773b8ca
RS
68512003-04-08 Richard M. Stallman <rms@gnu.org>
6852
b0ada147
RS
6853 * fileio.c (Ffile_symlink_p): Doc fix.
6854
6855 * editfns.c (Fformat): Translate positions of text properties
6856 in the format string to apply them to the result.
6857
4773b8ca
RS
6858 * fileio.c (Finsert_file_contents): Doc fix.
6859 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
6860
68612003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
6901b111 6862
4773b8ca
RS
6863 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
6864
e8f25745 68652003-04-08 Steven Tamm <steventamm@mac.com>
b0ada147 6866
e8f25745
ST
6867 * mac.c (init_mac_osx_environment): Switch libexec and bin so
6868 that self-contained application finds libexec files.
6869
f8c6b4c2 68702003-04-08 Kenichi Handa <handa@m17n.org>
2310d84c 6871
6901b111
SM
6872 * coding.c (code_convert_region_unwind):
6873 Set Vlast_coding_system_used to the argument.
2310d84c
KH
6874 (code_convert_region): If post-read-conversion function changed
6875 the value of last-coding-sytem, keep the new value in
6876 coding->symbol so that it won't be overridden.
6877 (run_pre_post_conversion_on_str): Likewise.
7c086845
KH
6878 (coding_system_accept_latin_extra_p): New function.
6879 (find_safe_codings): Pay attention to characters registered in
6880 latin-extra-code-table.
2310d84c 6881
39c9a034
TTN
68822003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
6883
6884 * Makefile.in (md5.o): Add missing dependency info.
6885
eb67c5d6
RS
68862003-04-06 Richard M. Stallman <rms@gnu.org>
6887
6888 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
6889
6890 * marker.c (verify_bytepos): New function.
6891
6892 * intervals.c (set_intervals_multibyte_1): When becoming
6893 multibyte, adjust right and left child sizes to a whole set of
6894 characters. If an interval gets zero total-length, delete it.
6895 If an interval consists of just its children, delete one of them.
6896
6897 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
6898 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
39c9a034 6899
eb67c5d6
RS
6900 * alloc.c: (VALIDATE_LISP_STORAGE): Macro deleted.
6901 All calls deleted.
6902 (lisp_malloc): Do the work here directly.
6903
b1f81fc5
JB
69042003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
6905
6906 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
6907 char tables.
6908
69092003-04-04 Kenichi Handa <handa@m17n.org>
aa8b70ae
KH
6910
6911 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
6912 destructively change "%S" to "%s".
6913
774666fb
MB
69142003-04-03 Miles Bader <miles@gnu.org>
6915
6916 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
6917 always set.
6918
19c37f01
DL
69192003-04-01 Dave Love <fx@gnu.org>
6920
6921 * xfns.c (xpm_lookup_color): Grok "opaque".
6922
2f4b24c3
AC
69232003-03-31 Andrew Choi <akochoi@shaw.ca>
6924
6925 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
6926 parent window ID.
6927
6928 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
6929
6930 * macterm.h (struct mac_output): Define x_pixels_diff and
6931 y_pixels_diff.
b1f81fc5 6932
9443fcf6
JB
69332003-03-31 Juanma Barranquero <lektu@terra.es>
6934
6935 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
6936 blockinput.h and files included from it.
6937
e072891b
KS
69382003-03-31 Kim F. Storm <storm@cua.dk>
6939
6940 The following changes consolidates the common code related to
6941 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
6942 files into frame.c.
9443fcf6 6943
e072891b
KS
6944 * frame.c: Include blockinput.h.
6945 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
6946 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
6947 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
6948 related vars here.
6949 (struct frame_parm_table, frame_parms): New table for describing
6950 frame parameters and their associated Q-variable.
6951 The order of the parameters corresponds to the sequence of the
6952 frame_parm_handlers table in redisplay_interface.
6953 (x_fullscreen_move, x_set_frame_parameters)
6954 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
6955 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
6956 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
6957 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
6958 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
6959 Generic functions for processing of frame parameters.
6960 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
6961 (display_x_get_resource, x_get_resource_string): Functions for
6962 generic access to X resources.
6963 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
6964 (x_default_parameter, Fx_parse_geometry): Functions for generic
6965 access to frame parameters.
6901b111
SM
6966 (x_figure_window_size): Generic calculation of frame size.
6967 Fixed to add space needed for tool bar. Also setup size_hint_flags.
e072891b
KS
6968 (syms_of_frame): Intern and staticpro frame parameter variables.
6969 Defvar_lisp Vx_resource_class and Vx_resource_name here.
6970 Defsubr Sx_get_resource and Sx_parse_geometry.
9443fcf6 6971
e072891b
KS
6972 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
6973 parameter related vars defined in frame.c.
6974 (EMACS_CLASS): Define here.
6975 (enum FULLSCREEN_*): Define here.
6976 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
6977 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
6978 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
6979 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
6980 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
6981 (x_set_visibility, x_set_autoraise, x_set_autolower)
6982 (x_set_unsplittable, x_set_vertical_scroll_bars)
6983 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
6984 (x_figure_window_size): Add prototypes.
6985
6986 * dispextern.h (frame_parm_handler): New typedef.
6987 (struct redisplay_interface): New member frame_parm_handlers.
6988 (enum resource_types): Move declaration here.
6989 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
6990 (x_default_parameter): Add prototypes.
6991
6992 * window.c: Remove extern decl for frame parameter vars.
6993 (change_window_heights): New generic function;
6994 replaces x_change_window_heights. All users changed.
6995
6996 * window.h (change_window_heights): Add prototype.
6997
6998 * xfaces.c: Remove extern decl for frame parameter vars.
6999
7000 * xterm.h (EMACS_CLASS): Remove. Use generic define.
7001 (struct w32_display_info): Fix type of xrdb member.
7002 (enum FULLSCREEN_*): Remove.
7003 Remove prototypes for generic functions (in frame.h).
7004
7005 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
7006 parameters now defined in frame.h and frame.c.
f63fd14e 7007 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
7008 (enum x_frame_parms): Remove (bogus, unused enum).
7009 (check_x_display_info): Make non-static (for frame.c).
7010 (struct x_frame_parm_table, x_frame_parms): Remove.
7011 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
7012 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
7013 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
7014 (x_change_window_heights, x_set_autoraise, x_set_autolower)
7015 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
7016 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
7017 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
7018 Remove. Use generic functions instead.
7019 (enum resource_types): Remove.
7020 (x_set_scroll_bar_default_width): New global function (for frame.c).
7021 (Fx_create_frame): Depend on x_figure_window_size to add space for
7022 toolbar and setup size_hint_flags.
7023 (x_frame_parm_handlers): New table for redisplay_interface.
7024 (syms_of_xfns): Don't intern/staticpro removed vars.
9443fcf6 7025
e072891b 7026 * xterm.c: Remove unnecessary extern declarations.
f63fd14e 7027 (x_fullscreen_adjust): Remove. Use generic instead.
e072891b
KS
7028 (x_redisplay_interface): Add x_frame_parm_handlers member.
7029
7030 * w32gui.h (XrmDatabase): New (dummy) typedef.
7031
7032 * w32term.h (EMACS_CLASS): Remove. Use generic define.
7033 (struct w32_display_info): Fix type of xrdb member.
7034 (enum FULLSCREEN_*): Remove.
7035 (x_fullscreen_adjust): Remove prototype.
7036
7037 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
7038 parameters now defined in frame.h and frame.c.
f63fd14e 7039 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
7040 (enum x_frame_parms): Remove (bogus, unused enum).
7041 (check_x_display_info): Make non-static (for frame.c).
7042 (struct x_frame_parm_table, x_frame_parms): Remove.
7043 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
7044 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
7045 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
7046 (x_change_window_heights, x_set_autoraise, x_set_autolower)
7047 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
7048 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
7049 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
7050 Remove. Use generic functions instead.
7051 (enum resource_types): Remove.
7052 (x_set_scroll_bar_default_width): New global function (for frame.c).
7053 (Fx_create_frame): Depend on x_figure_window_size to add space for
7054 toolbar and setup size_hint_flags.
7055 (w32_frame_parm_handlers): New table for redisplay_interface.
7056 (syms_of_w32fns): Don't intern/staticpro removed vars.
9443fcf6 7057
e072891b
KS
7058 * w32term.c: Remove unnecessary extern declarations.
7059 (x_fullscreen_adjust): Remove. Use generic instead.
7060 (x_redisplay_interface): Add w32_frame_parm_handlers member.
7061
7062 * w32reg.c (x_get_string_resource): Use XrmDatabase.
7063
7064 * macgui.h (XrmDatabase): New (dummy) typedef.
7065
7066 * macterm.h (EMACS_CLASS): Remove.
7067 (struct mac_display_info): Add xrdb member.
7068 (struct mac_output): Add want_fullscreen member.
7069
7070 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
7071 parameters now defined in frame.h and frame.c.
f63fd14e 7072 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
7073 (check_x_display_info): Make non-static (for frame.c).
7074 (struct x_frame_parm_table, x_frame_parms): Remove.
7075 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
7076 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
7077 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
7078 (x_change_window_heights, x_set_autoraise, x_set_autolower)
7079 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
7080 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
7081 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
7082 Remove. Use generic functions instead.
7083 (enum resource_types): Remove.
7084 (x_set_scroll_bar_default_width): New global function (for frame.c).
7085 (mac_frame_parm_handlers): New table for redisplay_interface.
7086 (syms_of_macfns): Don't intern/staticpro removed vars.
9443fcf6 7087
e072891b
KS
7088 * macterm.c: Remove unnecessary extern declarations.
7089 (x_redisplay_interface): Add mac_frame_parm_handlers member.
7090
3e6a560b
KS
7091 * Makefile.in (frame.o): Add dependency on blockinput.h and files
7092 included from it (atimer.h and systime.h).
7093
7b7b454e
AS
70942003-03-30 Andreas Schwab <schwab@suse.de>
7095
7096 * xdisp.c (x_insert_glyphs): Fix swapped width and height
7097 parameters for shift_glyphs_for_insert.
7098
7099 * macterm.c (x_redisplay_interface): Add missing entry for
7100 draw_vertical_window_border.
7101
beb402de
KG
71022003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
7103
7104 * fileio.c (Fexpand_file_name): In the no-handler case, after
7105 expanding, look again for a handler and invoke it. This is needed
7106 for filenames like "/foo/../user@host:/bar/../baz" -- the first
7107 expansion produces "/user@host:/bar/../baz" which needs to be
7108 expanded again for the finame result "/user@host:/baz".
7109
b676f356
JD
71102003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7111
7112 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
7113 of area to be redrawn for better performance.
7114
3c671a56
SM
71152003-03-28 Stefan Monnier <monnier@cs.yale.edu>
7116
7117 * xterm.c (take_vertical_position_into_account): Remove.
7118 (xt_action_hook): Call set_vertical_scroll_bar if needed.
7119 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
7120 (xm_scroll_callback, x_create_toolkit_scroll_bar)
7121 (x_set_toolkit_scroll_bar_thumb): Simplify.
7122 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
7123 (XTread_socket): Remove unused var.
7124 (x_make_frame_invisible): Replace goto with else.
7125
7126 * xdisp.c (set_vertical_scroll_bar): New fun.
7127 (redisplay_window): Use it.
7128
84f2e615
RS
71292003-03-26 Richard M. Stallman <rms@gnu.org>
7130
7131 * xdisp.c (update_tool_bar): Recompute tool bar if
7132 update_mode_lines is set. Set w->update_mode_line
7133 only if the tool bar contents actually change.
7134 (update_menu_bar): Undo previous change.
7135
70b6104c
JD
71362003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7137
5fd6f727
JD
7138 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
7139 (xg_frame_set_char_size): Calculate scroll bar width before frame
7140 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
7141 (xg_separator_p): Check for all documented separator types.
7142 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
7143 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
7144
70b6104c
JD
7145 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
7146 so tool bar gets updated.
7147
d9b36d19
SM
71482003-03-26 Stefan Monnier <monnier@cs.yale.edu>
7149
7150 * data.c (store_symval_forwarding): Re-instate part of the code
7151 that was deleted with too much enthusiasm.
7152
71532003-03-25 Stefan Monnier <monnier@cs.yale.edu>
7154
7155 * data.c (store_symval_forwarding): Delete special read-only
7156 hack for type == -1, since we now use ->constant instead.
7157 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
7158
7159 * buffer.c (overlays_in): Declare static.
7160 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
7161 `constant' field rather than the variable's `type' field.
7162
365fa1b3
AC
71632003-03-24 Andrew Choi <akochoi@shaw.ca>
7164
7165 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
7166
7167 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
7168
7169 * fns.c [MAC_OSX]: Do not redefine vector.
7170
7171 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
7172
7173 * macgui.h: Remove definition of No_Cursor.
7174
d9b36d19 7175 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
365fa1b3
AC
7176
7177 * xdisp.c: Define No_Cursor.
7178 (x_write_glyphs, notice_overwritten_cursor)
7179 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
7180 (note_mouse_highlight): Remove Mac-specific code.
7181 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
d9b36d19 7182
c0bcce6f
JPW
71832003-03-24 John Paul Wallington <jpw@gnu.org>
7184
7185 * xdisp.c (redisplay_window): If mini window's buffer is not
7186 empty, then redisplay it like other windows.
7187
a526b96c
KS
71882003-03-23 Kim F. Storm <storm@cua.dk>
7189
7190 * w32term.c (w32_draw_window_cursor): Fix last change.
7191
37ab321e
KH
71922003-03-23 Kenichi Handa <handa@m17n.org>
7193
a526b96c
KS
7194 * alloc.c (make_string_from_bytes, make_specified_string):
7195 Add `const' for the arg CONTENTS.
37ab321e
KH
7196
7197 * lisp.h (make_string_from_bytes, make_specified_string):
7198 Prototypes adjusted.
7199
7863d625
JD
72002003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7201
a526b96c 7202 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
fd4c9408 7203
7863d625
JD
7204 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
7205 (XG_SB_RANGE): New define.
7206
7207 * gtkutil.c (xg_fixed_handle_expose): New function.
7208 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
7209 expose events.
7210 (xg_update_scrollbar_pos): Take two more arguments, left and width
7211 of scroll bar including borders.
7212 Clear left and right part outside scroll bar separately as some
7213 themes have bars that are not an even number of pixels.
d9b36d19 7214 Don't set reallocate_redraws, don't call
7863d625
JD
7215 gdk_window_process_all_updates.
7216 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
7217 so no need to change it. Calculate size and value with XG_SB_RANGE.
7218
d9b36d19
SM
7219 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
7220 Pass left and width of scroll bar including borders to
7863d625
JD
7221 xg_update_scrollbar_pos.
7222
af0ad939
TTN
72232003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
7224
7225 * Makefile.in: Make sure space precedes end-of-line backslashes.
7226
b22139fd
KS
72272003-03-22 Kim F. Storm <storm@cua.dk>
7228
7229 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
7230 Add generic versions here. Remove system specific versions
7231 defined elsewhere.
7232
7233 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
7234 Add prototypes.
7235
6e6410cf
KS
7236 * xterm.h (STORE_NATIVE_RECT): New macro.
7237
5c9cc435
KS
72382003-03-21 Kim F. Storm <storm@cua.dk>
7239
00c64fab
SM
7240 * xdisp.c (get_glyph_string_clip_rect):
7241 Use FRAME_INTERNAL_BORDER_WIDTH.
5c9cc435
KS
7242
7243 * dispextern.h (struct redisplay_interface): Add active_p
7244 argument to draw_window_cursor member. All uses changed.
7245
acd37560
KS
72462003-03-21 Kim F. Storm <storm@cua.dk>
7247
7248 The following changes consolidate code related to writing and
7249 inserting glyphs, exposing frame, the tool bar, the mouse face,
7250 the output cursor, and help echo from xterm.c, w32term.c and
7251 macterm.c into xdisp.c. It also generalizes the use of the
7252 window_part enum instead of using numeric values throughout.
af0ad939 7253
acd37560
KS
7254 * xdisp.c: Consolidate gui-independent code here.
7255 Include keymap.h.
7256 (Qhelp_echo): Import.
7257 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
7258 (help_echo_string, help_echo_window, help_echo_object)
7259 (previous_help_echo_string, help_echo_pos): Declare here.
7260 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
7261 (estimate_mode_line_height): Define here. Handle windowing
7262 systems directly (without using estimate_mode_line_height_hook).
7263 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
7264 (update_window_cursor, update_cursor_in_window_tree)
7265 (fast_find_position, fast_find_string_pos)
7266 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
7267 (expose_area, expose_line, expose_overlaps, expose_window)
7268 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
7269 declared static as they are only used locally in xdisp.c.
7270 (draw_glyphs): Rename from x_draw_glyphs and make static.
7271 (tool_bar_item_info, notice_overwritten_cursor): Make static.
7272 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
7273 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
af0ad939 7274 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
acd37560
KS
7275 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
7276 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
7277 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
7278 (note_mouse_highlight, x_clear_window_mouse_face)
7279 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
7280 (x_intersect_rectangles): New generic functions for use by xdisp.c
7281 and GUI front-ends.
7282 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
7283 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
7284
7285 * dispextern.h (Display_Info): Generic typedef for *_display_info.
7286 (NativeRectangle): Generic typedef for rectangle type.
7287 (enum window_part): Move here from window.c.
7288 (struct redisplay_interface): New members flush_display_optional,
7289 define_frame_cursor, clear_frame_area, draw_window_cursor,
7290 draw_vertical_window_border, shift_glyphs_for_insert.
7291 Rename member clear_mouse_face to clear_window_mouse_face.
7292 (estimate_mode_line_height_hook): Remove hook.
7293 (auto_raise_tool_bar_buttons_p): Don't declare extern.
7294 (tool_bar_item_info): Remove prototype.
7295 (help_echo_string, help_echo_window, help_echo_object)
7296 (previous_help_echo_string, help_echo_pos)
7297 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
7298 (x_stretch_cursor_p, output_cursor): Declare extern.
7299 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
7300 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
7301 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
7302 (display_and_set_cursor, set_output_cursor, x_cursor_to)
7303 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
7304 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
7305 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
7306 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
7307 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
7308 Add prototypes.
7309 (mode_line_string, marginal_area_string): Fix prototypes.
7310
7311 * window.c (enum window_part): Move to dispextern.h.
7312 (coordinates_in_window): Use enum window_part member names
7313 instead of numbers to describe return value.
7314 (struct check_window_data): Change part member to window_part.
7315 (check_window_containing): Return window_part unaltered.
7316 (window_from_coordinates): Change part arg from int to enum
7317 window_part. Allow part arg to be null. All users changed.
7318
7319 * window.h (window_from_coordinates): Fix prototype.
7320
7321 * term.c (estimate_mode_line_height): Move to xdisp.c.
7322
7323 * keyboard.c (make_lispy_event): Use enum window_part.
7324
7325 * dispnew.c (mode_line_string, marginal_area_string): Use enum
7326 window_part instead of int in arg list. Users changed.
7327
7328 * xterm.h (No_Cursor): Declare as None for X.
7329 (struct mac_output): Replace member cross_cursor by hand_cursor.
af0ad939 7330
acd37560
KS
7331 * xterm.c: Remove consolidated defines and code.
7332 (BETWEEN): Remove unused macro.
7333 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
7334 (x_define_frame_cursor, x_clear_frame_area)
7335 (x_draw_window_cursor): New X-specific functions for RIF.
7336 (x_redisplay_interface): Add new members.
7337
7338 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
7339
7340 * w32term.h (struct w32_output): Remove cross_cursor member.
7341
7342 * w32term.c: Remove consolidated defines and code.
7343 (BETWEEN): Remove unused macro.
7344 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
7345 (w32_define_frame_cursor, w32_clear_frame_area)
7346 (w32_draw_window_cursor): New W32-specific functions for RIF.
7347 (w32_redisplay_interface): Add new members.
7348
a64387ee 7349 * w32gui.h (No_Cursor): Define as 0 for W32.
acd37560
KS
7350 (XRectangle): Add X compatible rectangle type.
7351 (NativeRectangle): Declare as RECT for W32.
7352 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
7353
7354 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
7355
7356 * w32console.c: Remove consolidated defines and code.
af0ad939 7357
acd37560
KS
7358 * msdos.h (Display_Info): Add generic typedef.
7359
7360 * msdos.c: Remove consolidated defines and code.
7361 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
7362
7363 * macterm.h (struct mac_output): Replace member cross_cursor by
7364 hand_cursor.
7365 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
7366
7367 * macterm.c: Remove consolidated defines and code.
7368 (BETWEEN): Remove unused macro.
7369 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
7370 (mac_define_frame_cursor, mac_clear_frame_area)
7371 (mac_draw_window_cursor): New Mac-specific functions for RIF.
7372 (x_redisplay_interface): Add new members.
7373
7374 * macgui.h (No_Cursor): Define as 0 for Mac.
7375 (XRectangle): Add X compatible rectangle type.
7376 (NativeRectangle): Declare as Rect for Mac.
7377 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
7378
204ccab1
KS
7379 * macfns.c (x_set_mouse_color): Setup hand_cursor.
7380 (x_set_cursor_color): Use x_display_and_set_cursor.
acd37560 7381
9443fcf6 7382 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
acd37560
KS
7383 included from it. Add dependency on keymap.h.
7384
7385 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
7386
8ba01a70 73872003-03-21 Kenichi Handa <handa@m17n.org>
3f817c73
KH
7388
7389 * fileio.c (Fexpand_file_name): Fix previous change.
7390
8ba01a70 73912003-03-19 Kenichi Handa <handa@m17n.org>
4f497b0a
KH
7392
7393 * fileio.c (Ffile_name_directory): Reconstruct file name by
7394 make_specified_string.
7395 (Ffile_name_nondirectory, Ffile_name_as_directory)
7396 (Fdirectory_file_name, Fexpand_file_name)
7397 (Fsubstitute_in_file_name): Likewise.
7398 (Fread_file_name): Compare decoded homedir with DIR and
7399 DEFAULT_FILENAME.
7400
7401 * alloc.c (make_specified_string): If NCHARS is negative, count
7402 the number of characters.
7403
19536747
JD
74042003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7405
de38ae5a
JD
7406 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
7407 all widgets.
7408
19536747
JD
7409 * gtkutil.h: Removed xg_ignore_next_thumb.
7410
37ab321e 74112003-03-18 Kenichi Handa <handa@m17n.org>
cb0d4562
KH
7412
7413 * coding.c (Vchar_coding_system_table): Remove this variable.
7414 (Vcoding_system_safe_chars): New variable.
7415 (intersection): Remove this function.
7416 (find_safe_codings): Don't use Vchar_coding_system_table, but try
7417 all codings in SAFE_CODINGS.
00c64fab 7418 (Ffind_coding_systems_region_internal): Adjust for the change of
cb0d4562
KH
7419 find_safe_codings. Get generic coding systems from
7420 Vcoding_system_safe_chars.
7421 (Fdefine_coding_system_internal): New function.
7422 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
7423 Initialize and staticpro Vcoding_system_safe_chars.
7424
17097258
JD
74252003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7426
2a2071c3
JD
7427 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
7428 equal old values before updating.
7429
17097258
JD
7430 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
7431
7432 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
7433
74342003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7435
7436 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
7437 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
7438 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
7439 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
7440 (xg_create_scroll_bar): Pass bar to button event callback.
7441 (xg_find_top_left_in_fixed): New function.
7442 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
7443 whole scroll bar area. Get old position with
7444 xg_find_top_left_in_fixed, calculate and only clear needed areas.
7445 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
7446 dragging is in progress. Calculate whole as for Motif.
7447 Remove code that saved last values. Call gtk_range functions to
7448 set scroll bar sizes.
7449
7450 * gtkutil.h: Removed xg_ignore_next_thumb.
7451
8cb9dfbf
JB
74522003-03-17 Juanma Barranquero <lektu@terra.es>
7453
7454 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
7455 and files included from it.
7456
00c64fab
SM
74572003-03-18 Stefan Monnier <monnier@cs.yale.edu>
7458
7459 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
7460 multiple occurrences of the same keymap under different prefixes.
7461 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
7462
c45bb3b2
JR
74632003-03-16 Jason Rumney <jasonr@gnu.org>
7464
7465 * w32gui.h: Use HDC for Display.
7466
7467 * w32term.c (w32_encode_char): Prevent double-byte chars from
7468 crashing Emacs.
7469
7470 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
7471 as binary.
7472
2a6d0874
JB
74732003-03-16 Juanma Barranquero <lektu@terra.es>
7474
7475 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
7476
03eb5fab
KS
74772003-03-16 Kim F. Storm <storm@cua.dk>
7478
7479 The following changes consolidate some of the gui-independent
7480 parts of the processing and drawing of "glyph strings" from
7481 xterm.c, w32term.c, and macterm.c into xdisp.c.
2a6d0874 7482
03eb5fab
KS
7483 * dispextern.h (struct glyph): Reduce face_id member from 22 to
7484 21 bits (this reduces number of faces from 4M to 2M).
7485 Replace W32 specific w32_font_type member (2 bits) by generic
7486 font_type member (3 bits) for portability.
7487 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
7488 (enum draw_glyphs_face): Define here.
7489 (struct glyph_string): Define here. Merge W32 and X versions.
7490 (struct redisplay_interface): New members per_char_metric,
7491 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
7492 (VCENTER_BASELINE_OFFSET): Define here.
7493 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
7494 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
7495
7496 * xdisp.c: Consolidate gui-independent "glyph string" code here.
7497 (dump_glyph_string): Moved here.
7498 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
7499 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
7500 (fill_composite_glyph_string, fill_glyph_string)
7501 (fill_image_glyph_string, fill_stretch_glyph_string)
7502 (left_overwritten, left_overwriting, right_overwritten)
7503 (right_overwriting, get_char_face_and_encoding)
7504 (set_glyph_string_background_width, compute_overhangs_and_x)
7505 (append_glyph, append_composite_glyph, produce_image_glyph)
7506 (take_vertical_position_into_account, append_stretch_glyph)
7507 (produce_stretch_glyph): New generic functions (based on X version).
7508 Call platform specific functions through rif.
7509 (INIT_GLYPH_STRING): New macro, hides W32 details.
7510 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
7511 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
7512 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
7513 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
7514 (notice_overwritten_cursor):
7515 Generic functions exported to platform modules. Users changed.
7516
7517 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
7518 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
7519 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
fad49844 7520 New macros for consolidated code.
2a6d0874 7521
03eb5fab
KS
7522 * xterm.c: Remove consolidated defines and code.
7523 (x_per_char_metric, x_encode_char)
7524 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
7525 (x_redisplay_interface): Add new members.
7526
7527 * w32gui.h (Display): Add dummy typedef for consolidation.
7528 (XChar2b): Define alias for wchar_t for consolidation.
7529 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
7530
7531 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
2a6d0874 7532 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
03eb5fab
KS
7533 New macros for consolidation.
7534
fad49844 7535 * w32term.c: Remove consolidated defines and code.
03eb5fab
KS
7536 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
7537 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
7538 (w32_per_char_metric): Change font_type arg to int for RIF.
7539 (w32_encode_char): Return int according to RIF requirements.
7540 (w32_compute_glyph_string_overhangs): Adapt to RIF.
7541 (w32_get_glyph_overhangs): New function for RIF. Uses generic
7542 x_get_glyph_overhangs.
7543 (w32_redisplay_interface): Add new members.
7544
7545 * macgui.h (XChar2b): Move typedef here for consolidation.
7546 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
7547
7548 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
7549 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
7550 consolidation.
7551
7552 * macterm.c: Remove consolidated defines and code.
7553 (mac_per_char_metric): New function for RIF.
00c64fab 7554 (mac_encode_char): Adapt to new RIF requirements.
03eb5fab
KS
7555 (mac_compute_glyph_string_overhangs): Adapt for RIF.
7556 (x_redisplay_interface): Add new members.
7557
00c64fab
SM
75582003-03-15 Stefan Monnier <monnier@cs.yale.edu>
7559
7560 * keymap.c (Vmenu_events): New var.
7561 (syms_of_keymap): Initialize it.
7562 (where_is_internal): Check more carefully what is a menu event.
7563
225c7a07
RS
75642003-03-14 Richard M. Stallman <rms@gnu.org>
7565
7566 * lread.c (read1): After #!, exit loop on eof.
7567
cea9be54
JD
75682003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7569
9ea0e54d
JD
7570 * gtkutil.h: Add declaration for xg_frame_cleared.
7571
0cb35f4e
JD
7572 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
7573
cea9be54
JD
7574 * gtkutil.c (struct xg_last_sb_pos): New structure.
7575 (handle_fixed_child): New function.
7576 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
7577 and force a redraw on them.
7578 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
7579 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
7580 so we can avoid unneeded redraws.
7581 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
7582 and force a redraw on the scroll bar.
7583 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
7584 if xg_last_sb_pos shows the positions are up to date.
0cb35f4e 7585 (xg_frame_cleared): New function.
cea9be54 7586
20b853f3
KH
75872003-03-13 Kenichi Handa <handa@m17n.org>
7588
7589 * coding.c (Fdetect_coding_region): Fix docstring.
7590 (Fdetect_coding_string): Fix docstring.
7591
7a555aff
AS
75922003-03-13 Andreas Schwab <schwab@suse.de>
7593
25cc0080
AS
7594 * gtkutil.c: Add prototype for create_menus.
7595
30225431
AS
7596 * data.c (long_to_cons): Fix type of top.
7597
7598 * xselect.c (selection_data_to_lisp_data): Use int instead of
7599 long for an integer of size 4.
7600
7a555aff 7601 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
30225431 7602 (xg_tool_bar_help_callback): Likewise.
7a555aff 7603
a3e4741f
AS
76042003-03-12 Andreas Schwab <schwab@suse.de>
7605
7606 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
7607
9668be7c
KS
76082003-03-12 Kim F. Storm <storm@cua.dk>
7609
03eb5fab 7610 The following changes consolidate the fringe handling from
9668be7c 7611 xterm.c, w32term.c, and macterm.c into xdisp.c.
00a88f32 7612
9668be7c
KS
7613 * xdisp.c: Consolidate fringe handling code here.
7614 (left_bits, right_bits, continued_bits, continuation_bits)
7615 (ov_bits, zv_bits): Define fringe bitmaps.
7616 (fringe_bitmaps): New array holding fringe bitmaps.
7617 (draw_fringe_bitmap): Draw a specific bitmap; call display
7618 specific drawing routine via rif->draw_fringe_bitmap.
7619 (draw_row_fringe_bitmaps): Generic replacement for
7620 x_draw_row_fringe_bitmaps; all callers changed.
7621 (compute_fringe_widths): Generic replacement for
7622 x_compute_fringe_widths; all callers changed.
7623
7624 * dispextern.h (enum fringe_bitmap_type): Define here.
7625 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
7626 (fringe_bitmaps): Declare extern.
7627 (struct redisplay_interface): New member draw_fringe_bitmap.
7628 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
7629
7630 * xterm.c: Remove generic fringe code.
7631 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
7632 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
7633
7634 * w32term.c: Remove generic fringe code.
7635 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
7636 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
00a88f32 7637
9668be7c
KS
7638 * macterm.c: Remove generic fringe code.
7639 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
7640 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
7641
00a88f32
SM
76422003-03-11 Stefan Monnier <monnier@cs.yale.edu>
7643
7644 * print.c (Fprin1_to_string): Return unibyte string if possible.
7645
1d1de695
DK
76462003-03-09 David Kastrup <dak@gnu.org>
7647
7648 * process.c (read_process_output): We have allocated enough space
7649 for readmax and carryover, so actually use the alloted space.
7650
257f40f2
JD
76512003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7652
7653 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
7654 toolkit scrollbar click.
7655
7656 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
7657 for USE_GTK.
7658 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
7659 also.
7660 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
7661 scrollbar and control is pressed, call x_scroll_bar_handle_click.
00a88f32 7662
257f40f2
JD
7663 * gtkutil.h: Declare xg_get_scroll_id_for_window.
7664
7665 * gtkutil.c (xg_get_scroll_id_for_window): New function.
7666 (xg_tool_bar_item_expose_callback): New function.
7667 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
7668 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
7669 on the tool bar widget.
7670 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
7671 to expose on the tool bar item widgets.
7672
15213141
JD
76732003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7674
26b74a0b 7675 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
00a88f32 7676 struct image* when deciding to update (struct image* may have been
26b74a0b
JD
7677 deleted from the image cache).
7678
15213141
JD
7679 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
7680 the event isn't for a frame (i.e. for dialogs).
7681
20b853f3 76822003-03-07 Kenichi Handa <handa@m17n.org>
cb681b34
KH
7683
7684 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
7685 composition components reaches the limit, terminate composing.
7686 (COMPOSITION_OK): New macro.
00a88f32 7687 (detect_coding_iso2022): Use it if an escape sequence for
cb681b34
KH
7688 composition is found.
7689 (coding_restore_composition): Adjust the number of composition
7690 components if it is not sane.
7691
c9029fe5
JB
76922003-03-06 Juanma Barranquero <lektu@terra.es>
7693
7694 * w32term.h (struct w32_display_info): Add xrdb member to support
7695 passing resources via -xrm on Windows.
7696
7697 * w32term.c (w32_make_rdb): New function.
7698 (w32_term_init): Use it to initialize xrdb member of w32_display_info
7699 struct. Delete leftover code.
7700
7701 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
7702 for resources passed on the command line.
7703
7704 * w32reg.c (w32_get_rdb_resource): New function.
7705 (x_get_string_resource): Use it, so resources passed with -xrm
7706 supercede the ones in the registry.
7707
9d00001f
JD
77082003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7709
7710 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
7711 instead of x_top_window_to_frame.
7712
ca2417b9
JD
77132003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7714
7715 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
7716 when restarting Emacs.
7717
5b20caf0
RS
77182003-03-03 Richard M. Stallman <rms@gnu.org>
7719
7720 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
7721 to run kill-buffer-query-functions.
7722 (Qkill_buffer_query_functions): New var.
7723 (syms_of_buffer): Init and staticpro it.
7724
58e91b77
JD
77252003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7726
7727 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
7728
932357b4
KS
77292003-02-25 Kim F. Storm <storm@cua.dk>
7730
7731 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
7732 If centering point failed to make whole line visible and vscroll
7733 is non-zero, disable vscroll and try centering point again.
7734
7735 * lread.c (read1): Accept `single space' syntax like (? x).
7736
bb8db7e1
JD
77372003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7738
7739 * keyboard.c (cancel_hourglass_unwind): Surround with
7740 #ifdef HAVE_X_WINDOWS
7741
47d77aab
KH
77422003-02-25 Kenichi Handa <handa@m17n.org>
7743
7744 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
7745 process only when "subprocesses" is defined.
7746
6a097c0c
SM
77472003-02-24 Stefan Monnier <monnier@cs.yale.edu>
7748
7749 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
7750
0b063c27
JB
77512003-02-24 Juanma Barranquero <lektu@terra.es>
7752
d1135afc
JB
7753 * callint.c (fix_command): Declare as static void and move before
7754 Fcall_interactively.
7755
0b063c27
JB
7756 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
7757 (syms_of_xdisp): Don't initialize Qwhen.
7758
0af912f0
JD
77592003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7760
7761 * keyboard.c (cancel_hourglass_unwind): New function.
7762 (command_loop_1): Cancel hourglass with unwind-protect.
7763
120d0a23
RS
77642003-02-23 Richard M. Stallman <rms@gnu.org>
7765
7766 * callint.c (fix_command): New subroutine, from Fcall_interactively.
7767 Detect (when ... (region-beginning)) etc.
7768 (Fcall_interactively): Call fix_command.
7769 (Qif, Qwhen): New variables.
7770 (syms_of_callint): Init and staticpro them.
0b063c27 7771
120d0a23
RS
7772 * regex.c (print_partial_compiled_pattern): Output to stderr.
7773
4ece81a6
KG
77742003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
7775
7776 * dired.c (directory_files_internal): Don't expand directory.
7777 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
7778 instead. From Lars Hansen <larsh@math.ku.dk>.
7779
e52bd6b7
SM
77802003-02-22 Stefan Monnier <monnier@cs.yale.edu>
7781
7782 * fns.c (string_to_multibyte): Remove unused var i.
7783 (Flanginfo): Fix int/Lisp_Object mixup.
7784 (void_call2): New fun.
7785 (Fmap_char_table): Use it in place of call2.
7786
7787 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
7788
7789 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
7790
7791 * keymap.c (copy_keymap_1): Make it static.
7792
7793 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
7794
c33ef7c4
JB
77952003-02-22 David Ponce <david@dponce.com>
7796
7797 * lread.c (Fload): Don't check STRING_MULTIBYTE.
7798
16782258
JD
77992003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7800
7801 * process.h: Removed subtty field from struct Lisp_Process.
7802
7803 * process.c (create_process): Remove setting of subtty.
7804 (emacs_get_tty_pgrp): New function.
e52bd6b7
SM
7805 (Fprocess_running_child_p, process_send_signal):
7806 Call emacs_get_tty_pgrp instead of ioctl.
16782258
JD
7807 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
7808
3abeca61
KG
78092003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
7810
7811 * keymap.c (Fdefine_key): Doc fix.
7812
92a8ce63
JB
78132003-02-21 Juanma Barranquero <lektu@terra.es>
7814
7815 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
7816
7817 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
7818 POLLING_PROBLEM_IN_SELECT.
7819
7820 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
7821 Delete #undef of POLLING_PROBLEM_IN_SELECT.
7822
7823 * s/hpux10-20.h: New file.
7824
e52bd6b7
SM
7825 * process.c (wait_reading_process_input):
7826 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
92a8ce63 7827
20f1ef2e
KH
78282003-02-20 Kenichi Handa <handa@m17n.org>
7829
32d0a9dc
KH
7830 * fontset.c (check_fontset_name): If NAME is nil, return the
7831 default fontset.
7832 (override_font_info): New function.
e52bd6b7 7833 (Fset_fontset_font): Document that NAME nil means the default fontset.
32d0a9dc
KH
7834 (Ffontset_info): If FONTSET is not the default fontset, merge
7835 FONTSET onto the copy of the default fontset, and work on that
7836 copy. Document that NAME nil means the default fontset.
7837 (Ffontset_font): Document that NAME nil means the default fontset.
7838
20f1ef2e
KH
7839 * process.c (setup_process_coding_systems): If the process's
7840 in/out descriptor is -1, do nothing.
7841
77d1daf2
AS
78422003-02-19 Andreas Schwab <schwab@suse.de>
7843
e52bd6b7
SM
7844 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
7845 Add prototypes.
77d1daf2 7846
f9a45bb3
KH
78472003-02-19 Kenichi Handa <handa@m17n.org>
7848
7849 * xfaces.c (try_alternative_families): Try all scalable fonts if
7850 Vscalable_fonts_allowed is not Qt.
7851
72ecb43c
JD
78522003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7853
7854 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
7855
ee5be7c3
JD
78562003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7857
7858 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
7859 names.
7860
7861 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
e52bd6b7 7862 (sorted_font_list): Move allocation of struct font_name to
ee5be7c3
JD
7863 x_face_list_fonts.
7864 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
7865 (Fx_list_fonts): Set maxnames to -1 to get all font names.
7866
4cd519a7
KS
78672003-02-18 Kim F. Storm <storm@cua.dk>
7868
068f9882
KS
7869 * lread.c (read1): Fix last change.
7870 "`" is not always special. Allow "?" after a character constant.
4cd519a7 7871
7290a344
AC
78722003-02-18 Andrew Choi <akochoi@shaw.ca>
7873
7874 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
7875
1f7fa69b
AS
78762003-02-18 Andreas Schwab <schwab@suse.de>
7877
7878 * window.c (window_scroll_pixel_based): Move outside a
7879 multi-glyph character before setting new window start.
7880
7881 * xdisp.c (in_display_vector_p): New function.
7882 * dispextern.h (in_display_vector_p): Declare.
7883
23e21195
KS
78842003-02-18 Kim F. Storm <storm@cua.dk>
7885
7886 * lread.c (read1): Fix and relax read syntax.
7887 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
7888 Only recognize "," after dotted-pair dot if inside backquote.
7889 Never include "`" or "," (inside backquote) in a symbol.
7890 Allow dotted-pair dot after a character constant.
7891 Allow "`" and "," (inside backquote) after a character constant.
92a8ce63 7892
f098b121
JD
78932003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7894
7895 * gtkutil.c (xg_tool_bar_expose_callback): New function.
7896 (xg_create_tool_bar): Force style of tool bar to be horizontal with
7897 icons. Set name of tool bar to emacs-toolbar.
7898 (update_frame_tool_bar): Connect expose event to
7899 xg_tool_bar_expose_callback.
7900
63020c46
RS
79012003-02-17 Richard M. Stallman <rms@gnu.org>
7902
7903 * keyboard.c (this_command_key_count_reset): New variable.
7904 Initiatize to 0 where this_command_key_count is set.
7905 (read_char): Save and restore this_command_key_count_reset
7906 around input method code.
7907 (read_char): If this_command_key_count_reset, echo reread commands.
7908 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
7909
fb4452cc
KH
79102003-02-17 Kenichi Handa <handa@m17n.org>
7911
7912 * fns.c (string_to_multibyte): Always return a multibyte string.
7913
bd11cc09
JR
79142003-02-16 Jason Rumney <jasonr@gnu.org>
7915
e52bd6b7
SM
7916 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
7917 Negative max_fonts parameter means list all.
bd11cc09 7918
4cdf4bde
DL
79192003-02-14 Dave Love <fx@gnu.org>
7920
7921 * fns.c (Flanginfo): Doc fix.
7922
023b93f6
KS
79232003-02-13 Kim F. Storm <storm@cua.dk>
7924
37cd4238
KS
7925 * lread.c (read_escape): Interpret \s as a SPACE character, except
7926 for \s-X in a character constant which still is the super modifier.
7927 (read1): Signal an `invalid read syntax' error if a character
7928 constant is immediately followed by a digit or symbol character.
7929
140a6b7e
KS
7930 * search.c (Fmatch_data): Doc fix. Explicitly state that
7931 match-data is undefined if last search failed.
7932
023b93f6
KS
7933 * keymap.c (Fcommand_remapping): Renamed from Fremap_command.
7934 All uses changed.
7935
7d5c86e5
JB
79362003-02-12 Juanma Barranquero <lektu@terra.es>
7937
7938 * eval.c (Fdefmacro): Fix typo.
7939
295fff2c
KS
79402003-02-12 Kim F. Storm <storm@cua.dk>
7941
7942 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
7943 macro is a string, convert meta modifiers in string when copying
7944 the string into a vector.
7945
60f3202d
KS
79462003-02-11 Kim F. Storm <storm@cua.dk>
7947
7948 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
7949
61cb0b53
KH
79502003-02-11 Kenichi Handa <handa@m17n.org>
7951
7952 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
7953
7392e23c
KS
79542003-02-10 Kim F. Storm <storm@cua.dk>
7955
7956 * process.c: Doc fixes.
7957 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
7958
ce4254bd
KH
79592003-02-10 Kenichi Handa <handa@m17n.org>
7960
9c7a329a
KH
7961 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
7962
ce4254bd
KH
7963 * process.c (QCfilter_multibyte): New variable.
7964 (setup_process_coding_systems): New function.
e52bd6b7
SM
7965 (Fset_process_buffer, Fset_process_filter):
7966 Call setup_process_coding_systems.
ce4254bd
KH
7967 (Fstart_process): Initialize the member `filter_multibyte' of
7968 struct Lisp_Process.
7969 (create_process): Call setup_process_coding_systems.
7970 (Fmake_network_process): New keyward `:filter-multibyte'.
7971 Initialize the member `filter_multibyte' of struct Lisp_Process.
7972 Call setup_process_coding_systems.
7973 (server_accept_connection): Call setup_process_coding_systems.
7974 (read_process_output): If the process has a filter, decide the
7975 multibyteness of a string to given to the filter by
7976 `filter_multibyte' member of the process. If the process doesn't
7977 have a filter and the result of conversion is unibyte, use
7978 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
7979 multibyte form.
7980 (Fset_process_coding_system): Call setup_process_coding_systems.
7981 (Fset_process_filter_multibyte): New function.
7982 (Fprocess_filter_multibyte_p): New function.
7983 (syms_of_process): Intern and staticpro QCfilter_multibyte.
7984 Defsubr Sset_process_filter_multibyte and
7985 Sprocess_filter_multibyte_p.
7986
7987 * process.h (struct Lisp_Process): New member filter_multibyte.
7988
7989 * lisp.h (setup_process_coding_systems): Add prototype.
7990
7991 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
7992 process, update coding systems for the process.
7993
b08d5f59
KH
79942003-02-09 Kenichi Handa <handa@m17n.org>
7995
7996 * fns.c (string_to_multibyte): New function.
7997 (Fstring_to_multibyte): New function.
7998 (syms_of_fns): Defsubr it.
7999
0dfd93c0
AS
80002003-02-08 Andreas Schwab <schwab@suse.de>
8001
8002 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
8003 instead of the substitution.
8004
7b76ca1c
JD
80052003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8006
8007 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
8008
8009 * xmenu.c (menu_position_func): Adjust menu popup position so that
8010 the menu is fully visible.
7b76ca1c 8011
2436a4e4
JD
80122003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8013
8014 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
e52bd6b7
SM
8015 (x_make_frame_invisible, x_wm_set_icon_position):
8016 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
2436a4e4
JD
8017
8018 * xfns.c (x_set_name, x_set_title): Ditto.
8019
37d1e680
RS
80202003-02-04 Richard M. Stallman <rms@gnu.org>
8021
8022 * keyboard.c (echo_now): Update before_command_echo_length.
8023 (Freset_this_command_lengths): Reset this_command_key_count etc.
8024 immediately rather than arranging to do it later.
8025 (before_command_key_count_1, before_command_echo_length_1)
8026 (before_command_restore_flag): Vars deleted.
8027 (add_command_key): Don't handle before_command_restore_flag.
8028 (read_char, record_menu_key): Don't update before_command_key_count or
8029 before_command_echo_length.
8030 (read_char): Don't handle before_command_restore_flag.
8031
8032 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
8033 in direct-output clauses if it wouldn't be called in the ordinary case.
8034
578846a3
KS
80352003-02-04 Kim F. Storm <storm@cua.dk>
8036
8037 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
8038
49853a4d
JD
80392003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8040
8041 * gtkutil.c (remove_from_container): Copying list is not needed.
8042 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
8043 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
8044 on list returned from gtk_container_get_children to avoid memory leak.
8045
8b53dc06
JR
80462003-02-01 Jason Rumney <jasonr@gnu.org>
8047
5d54d177
JR
8048 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
8049 local malloc.
8050 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
8051 definitions in xpm.h.
8052 (init_xpm_functions): New function.
f63fd14e 8053 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
5d54d177
JR
8054 (init_external_image_libraries): Try to load libXpm.dll.
8055
8b53dc06
JR
8056 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
8057 timestamp.
8058
b222e415
DL
80592003-01-31 Dave Love <fx@gnu.org>
8060
8061 * syntax.c (Fskip_chars_forward)
8062 (open-paren-in-column-0-is-defun-start): Doc fix.
8063
c60ee5e7
JB
80642003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
8065
8066 * fileio.c: Support // at start of name for Cygwin (just added proper
8067 preprocessor tests).
8068
8069 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
8070
8071 * Makefile.in: Use @EXEEXT@ for Cygwin.
8072
8073 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
8074
8075 * s/cygwin.h: Added for Cygwin port.
8076
53b37591
JB
80772003-01-31 Juanma Barranquero <lektu@terra.es>
8078
8079 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
8080 when including gif_lib.h.
fe929957 8081 (init_gif_functions, init_tiff_functions): New functions.
f63fd14e
JB
8082 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
8083 Windows. Disable color table lookups. Call library functions
53b37591 8084 through pointers determined at runtime.
fe929957
JB
8085 (init_external_image_libraries): Try to load libungif.dll and
8086 libtiff.dll.
53b37591 8087
45415a8f
KH
80882003-01-31 Kenichi Handa <handa@m17n.org>
8089
8090 * xdisp.c (SKIP_GLYPHS): New macro.
e52bd6b7 8091 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
45415a8f 8092
a97e4138
JD
80932003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8094
e52bd6b7 8095 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
a97e4138 8096
6eed9bed
DL
80972003-01-30 Dave Love <fx@gnu.org>
8098
8099 * alloc.c (Vgc_elapsed, gcs_done): New variables.
8100 (Fgarbage_collect): Use them.
8101 (init_alloc, syms_of_alloc): Set them up.
8102
100dcd40
JB
81032003-01-30 Juanma Barranquero <lektu@terra.es>
8104
8105 * w32fns.c (init_external_image_libraries): Add missing operator.
8106
fbd852af
JR
81072003-01-29 Jason Rumney <jasonr@gnu.org>
8108
8109 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
8110 an alternative name for jpeg.dll.
8111
8a2d8020
KH
81122003-01-29 Kenichi Handa <handa@m17n.org>
8113
8114 * xdisp.c (set_cursor_from_row): Pay attention to string display
8115 properties.
8116
058c18c7
AC
81172003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
8118
8119 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
8120 <escape>.
8121 (keycode_to_xkeysym_table): Reformat and add more comments.
8122 (XTread_socket): Drop special case for backspace.
8123
385f11cf
AC
81242003-01-28 Andrew Choi <akochoi@shaw.ca>
8125
8126 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
8127 values in old-style RGB specs.
8128
c922a224
JB
81292003-01-27 Juanma Barranquero <lektu@terra.es>
8130
8131 * w32fns.c (init_external_image_libraries): Try alternate names for the
8132 jpeg dll.
8133
0a1d6de0
JD
81342003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8135
8136 * gtkutil.c (create_dialog, xg_separator_p)
8137 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
8138 before calling strcmp or strlen.
8139
a97e4138 81402003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1d1885fc
JD
8141
8142 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
8143 and handle image load failure.
8144
28908312
JR
81452003-01-26 Jason Rumney <jasonr@gnu.org>
8146
8147 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
8148 New functions.
f63fd14e
JB
8149 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
8150 Disable color table lookups. Call jpeg library functions
28908312
JR
8151 through pointers determined at runtime.
8152 (init_external_image_libraries): Try to load jpeg.dll.
8153
84e47416
RS
81542003-01-25 Richard M. Stallman <rms@gnu.org>
8155
8156 * lisp.h: Declare format2 instead of format1.
8157
8158 * fileio.c (barf_or_query_if_file_exists):
8159 Call format2 instead of format1.
8160
8161 * editfns.c (format2): New function, replaces format1
8162 but takes exactly two Lisp Objects as format args.
8163
8164 * buffer.c (Fkill_buffer): Call format2 instead of format1.
8165
a97e4138 81662003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1fcfb866
JD
8167
8168 * xterm.h: Change to return value of x_dispatch_event to int.
8169
8170 * xterm.c (x_filter_event): New function.
8171 (event_handler_gdk, XTread_socket): Call x_filter_event.
8172 (x_dispatch_event): Change to return value of finish.
8173 (event_handler_gdk): Use return value from x_dispatch_event.
8174
8175 * xfns.c (x_window): Call create_frame_xic for GTK version to
8176 initialize input methods.
8177
8178 * gtkutil.h: Add (void) prototypes.
8179
8180 * gtkutil.c (create_menus): Remove code that puts the help menu to
8181 the right.
8182
54eefef1
JR
81832003-01-25 Jason Rumney <jasonr@gnu.org>
8184
8185 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
8186 [HAVE_PNG]: Sync with xfns.c version.
f63fd14e
JB
8187 (png_load): Adjust colors for Windows. Use Windows
8188 bitmaps. Disable color table lookups.
c262430d
JR
8189 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
8190 (init_png_functions): New function.
8191 (png_read_from_memory, png_load): Call png library functions
8192 through pointers determined at runtime.
8193 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
8194 (init_external_image_libraries): New function.
8195 (init_xfns): Call it.
54eefef1 8196
1a9e275b
AS
81972003-01-24 Andreas Schwab <schwab@suse.de>
8198
8199 * minibuf.c (Fminibuffer_message): Verify type of parameter.
8200
a97e4138 82012003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
81e302ef
JD
8202
8203 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
8204 of static initializer.
8205
422eec7e
DL
82062003-01-24 Dave Love <fx@gnu.org>
8207
8208 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
8209 architectures.
8210
8211 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
8212 Use __alignof__.
8213
2a026b04
KH
82142003-01-24 Kenichi Handa <handa@m17n.org>
8215
8216 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
e52bd6b7 8217 It it is nonzero, don't pretend that an invisible area doesn't exist.
2a026b04
KH
8218 (command_loop_1): Call adjust_point_for_property with proper
8219 second arg.
8220
a18bb28d
JR
82212003-01-22 Jason Rumney <jasonr@gnu.org>
8222
8223 Sync changes with xterm.c and xfns.c.
8224
8225 * w32term.c (x_draw_glyph_string_foreground)
8226 (x_draw_composite_glyph_string_foreground): Implement overstriking.
8227
8228 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
8229 phys_cursor's hpos is overwritten. This is still not completely
8230 correct, as it doesn't really make sense to use hpos at all to
8231 get the cursor glyph (as that is relative to the width of the
8232 characters on the line, which may have changed during the update).
8233
8234 * w32term.c (notice_overwritten_cursor): Handle the special case
8235 of the cursor being in the first blank non-text line at the
8236 end of a window.
8237
8238 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
8239 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
8240 Compute from the x position returned by x_draw_glyphs.
8241
8242 (x_display_and_set_cursor): Don't set phys_cursor_width here,
8243 except for NO_CURSOR and system caret, to make phys_cursor_width
8244 contain what its name suggests.
8245 (notice_overwritten_cursor): Consider the cursor image erased if
8246 the output area intersects the cursor image in y-direction.
8247
6a097c0c
SM
8248 * w32term.c (note_mode_line_or_margin_highlight): Rename from
8249 note_mode_line_highlight and extend.
a18bb28d
JR
8250
8251 * w32term.c (last_window): New variable.
8252 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
8253 (note_mouse_movement): Remove reimplemented code in #if 0.
8254
8255 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
8256 not update_mode_lines, and always set it to 1.
8257
ac6e47ef
JR
82582003-01-21 Jason Rumney <jasonr@gnu.org>
8259
8260 * w32fns.c (IDC_HAND): Define it if system headers don't.
8261
82622003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
8263
8264 * w32term.h (struct w32_output): New member hand_cursor.
8265 (WM_EMACS_SETCURSOR): New message definition.
8266
8267 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
8268 function w32_define_cursor.
8269 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
8270 position, change member name output_data.x to output_data.w32 and
8271 add function w32_define_cursor.
8272 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
8273 and change member name output_data.x to output_data.w32.
e52bd6b7
SM
8274 (w32_initialize_display_info):
8275 Setup dpyinfo->vertical_scroll_bar_cursor.
ac6e47ef
JR
8276
8277 * w32fns.c (Vx_hand_shape): New variable.
8278 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
8279 WM_EMACS_SETCURSOR.
8280 (x-create-frame): Setup Cursor types.
8281
ceb39a17
JB
82822003-01-21 David Ponce <david@dponce.com>
8283
ac6e47ef 8284 * w32term.c (w32_encode_char): For DIM=1 charset, set
f63fd14e 8285 ccl->reg[2] to -1 before calling ccl_driver. (Sync. with xterm.c
ac6e47ef 8286 x_encode_char change by Kenichi Handa <handa@m17n.org> on
ceb39a17 8287 2002-09-30.)
ac6e47ef
JR
8288 (w32_draw_relief_rect): Declare all args.
8289 (w32_define_cursor): New.
8290
8291 * w32fns.c (w32_load_cursor): New function.
8292 (w32_init_class): Use it.
8293 (x_put_x_image): Declare all args.
8294
46cf0bed
JB
82952003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk> (tiny change)
8296
8297 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
8298
a97e4138 82992003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e8794476
JD
8300
8301 * gtkutil.c: Must include stdio.h before termhooks.h
8302
83fc9c63
DL
83032003-01-21 Dave Love <fx@gnu.org>
8304
8305 * alloc.c (Fgc_status): Print zombie list.
8306 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
8307 Fix assignment of zombies.
8308 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
8309 Don't take car of non-cons.
8310
8311 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
8312
8313 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
8314
fe04b8c8
JR
83152003-01-20 David Ponce <david@dponce.com>
8316
8317 * w32menu.c (digest_single_submenu): Declare all args.
8318
8319 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
8320 changes in xmenu.c:
8321
8322 (parse_single_submenu): Use individual keymap's prompt
8323 string as pane name, if there is one.
8324 (set_frame_menubar): Save menu_items_n_panes from each call to
8325 parse_single_submenu and use it when calling digest_single_submenu.
8326
539e69a9
ST
83272003-01-20 Steven Tamm <steventamm@mac.com>
8328
8329 * macterm.c (XTread_socket): Checks for valid, visible window
8330 before sending a scroll-wheel event.
8331
675d000f
RS
83322003-01-20 Richard M. Stallman <rms@gnu.org>
8333
8334 * xdisp.c (redisplay_window): If mini window's buffer is not
8335 a minibuffer, then redisplay it like other windows.
8336
a97e4138 83372003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22174d10
JD
8338
8339 * gtkutil.c (xg_create_frame_widgets): Check if there is an
8340 external tool bar before setting tool bar height.
8341
048addec
JD
83422003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8343
8344 * xterm.c (handle_one_xevent): Surround popup_activated
8345 with #ifdef:s for non-toolkit version.
8346
8347 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
8348 (gtkutil.o): New file.
8349 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
8350 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
8351
8352 * gtkutil.c: New file for GTK version.
8353
8354 * gtkutil.h: New file for GTK version.
8355
8356 * xterm.h: Add xt_or_gtk_widget.
8357 Include gtk files for USE_GTK.
8358 (struct x_output): Add toolbar_height.
8359 (struct x_output): Add GTK widgets and Gdk size_hints.
8360 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
8361 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
8362 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
8363
8364 * xterm.c: Include gtkutil.h for USE_GTK.
8365 Declare extern void free_frame_menubar for USE_GTK.
8366 (note_mouse_highlight): Check popup_activated for USE_GTK.
8367 (xt_action_hook): Don't compile if USE_GTK.
8368 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
8369 (xg_scroll_callback): New function.
8370 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
8371 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
8372 for USE_GTK.
8373 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
8374 xg_show_scroll_bar for USE_GTK.
8375 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
8376 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
8377 (event_handler_gdk): New function for USE_GTK.
8378 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
8379 (handle_one_xevent): Make sure widget is mapped before
8380 calling x_real_positions for USE_GTK.
8381 (XTread_socket): Add GTK event loop for USE_GTK.
8382 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
8383 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
8384 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
8385 (x_iconify_frame): Add code for USE_GTK.
8386 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
8387 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
8388 is in gtkutil.c.
8389 (x_term_init): Add initialization for GTK.
8390 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
8391
8392 * xmenu.c: Include gtkutil.h for USE_GTK.
8393 (Fx_popup_menu): Use current position if x and y is NIL.
6bdb309a
SM
8394 (single_menu_item, single_menu_item, Fx_popup_dialog):
8395 Check for USE_GTK.
048addec
JD
8396 (popup_widget_loop): New function for USE_GTK.
8397 (x_activate_menubar): Add code for USE_GTK.
8398 (popup_activate_callback, popup_deactivate_callback)
6bdb309a
SM
8399 (menu_highlight_callback, menubar_selection_callback):
8400 Add USE_GTK versions.
048addec
JD
8401 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
8402 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
8403 (free_frame_menubar): Only compile if not USE_GTK. GTK version
8404 is in gtkutil.c.
8405 (popup_selection_callback): New version for USE_GTK.
8406 (create_and_show_popup_menu): New fuction, one USE_GTK version and
6bdb309a 8407 one USE_X_TOOLKIT version.
048addec
JD
8408 (xmenu_show): Call create_and_show_popup_menu.
8409 (dialog_selection_callback): New version for USE_GTK.
8410 (create_and_show_dialog): New fuction, one USE_GTK version and
6bdb309a 8411 one USE_X_TOOLKIT version.
048addec
JD
8412 (xdialog_show): Call create_and_show_dialog.
8413
8414 * xfns.c: Include gtkutil for USE_GTK.
8415 (x_window_to_frame, x_any_window_to_frame)
8416 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
8417 (x_top_window_to_frame): Add code for USE_GTK.
8418 (x_set_background_color): Call xg_set_background_color for GTK.
8419 (x_set_menu_bar_lines): Check for USE_GTK.
8420 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
8421 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
8422 (x_window): Call xg_create_frame_widgets for USE_GTK.
8423 (Fx_create_frame): Check for USE_GTK
8424 (Fx_file_dialog): New implementation for USE_GTK.
8425
8426 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
8427 (update_menu_bar): Add check for USE_GTK.
8428 (update_tool_bar): Add check for USE_GTK and external tool bar.
8429 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
8430 (redisplay_internal): Add check for USE_GTK and popup_activated.
8431 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
8432 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
8433 (display_menu_bar): Add check for USE_GTK
8434
8435 * lisp.h: Declare Vx_resource_name extern.
8436
a64387ee 8437 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
048addec
JD
8438 for USE_GTK.
8439 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
8440
8441 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
8442 (FRAME_EXTERNAL_TOOL_BAR): New macro.
8443 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
8444
8445 * fileio.c (Fread_file_name): Add check for USE_GTK.
8446
6bdb309a
SM
8447 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
8448 Add check for USE_GTK.
048addec
JD
8449
8450 * config.in: Added HAVE_GTK
8451
8452 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
8453
84542003-01-18 Stefan Monnier <monnier@cs.yale.edu>
8455
8456 * charset.h (Funibyte_char_to_multibyte): Export.
8457
84582003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8459
8460 * xmenu.c (mouse_position_for_popup): New function.
8461 (Fx_popup_menu): Call mouse_position_for_popup for X and
8462 mouse_position_hook for others.
8463
84642003-01-17 Kim F. Storm <storm@cua.dk>
8465
8466 * editfns.c (Finsert): Mention `string-make-multibyte' and
8467 `string-as-multibyte' in doc string.
8468
84692003-01-17 Kenichi Handa <handa@m17n.org>
8470
8471 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
3c02a6f5 8472
048addec
JD
8473 * editfns.c (Fformat): Convert an unibyte char argument that is
8474 formatted by "%c" to multibyte if the total result must be a
8475 multibyte string.
cd7df9c0 8476
048addec 84772003-01-16 Kim F. Storm <storm@cua.dk>
cd7df9c0 8478
048addec
JD
8479 * process.c (set-process-filter): Document unibyte/multibyte-ness
8480 of string argument.
56210ecd 8481
048addec 84822003-01-16 Kenichi Handa <handa@m17n.org>
56210ecd 8483
048addec 8484 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
56210ecd 8485
048addec
JD
8486 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
8487 (re_search_2): Likewise.
6df8b9fe 8488
048addec 84892003-01-15 Kenichi Handa <handa@m17n.org>
6df8b9fe 8490
048addec
JD
8491 * xdisp.c (message_dolog): Fix bug of the case that *Message*
8492 buffer is unibyte.
292ddc31 8493
048addec 84942003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
292ddc31 8495
048addec 8496 * fns.c (Fsubstring): Clarify doc string.
292ddc31 8497
048addec
JD
8498 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
8499 (Fprevious_char_property_change)
8500 (Fnext_single_char_property_change)
8501 (Fprevious_single_char_property_change, Fnext_property_change)
8502 (Fnext_single_property_change, Fprevious_property_change)
8503 (Fprevious_single_property_change, Fadd_text_properties)
8504 (Fput_text_property, Fset_text_properties)
8505 (Fremove_text_properties, Fremove_list_of_text_properties)
8506 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
63e4e4c6 8507
048addec 85082003-01-14 Kim F. Storm <storm@cua.dk>
63e4e4c6 8509
048addec
JD
8510 * process.h (struct Lisp_Process): New member plist replaces old
8511 member private_vars. All uses changed.
63e4e4c6 8512
048addec 8513 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
6bdb309a 8514 (QCplist): Rename from QCvars. Change all uses.
048addec 8515 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
6bdb309a 8516 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
048addec 8517 (syms_of_process): Intern, staticpro, defsubr these.
6bdb309a 8518 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
7ed16567 8519
048addec 85202003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
7ed16567 8521
6bdb309a 8522 * m/delta.h: Remove (obsolete).
e833850f 8523
048addec 85242003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
e833850f 8525
048addec
JD
8526 * fileio.c (Fdelete_directory, Fdelete_file): Document the
8527 behaviour in front of symlinks.
8528 (Fdelete_file): Raise an error on directories.
817cb127 8529
048addec 85302003-01-13 Dave Love <fx@gnu.org>
817cb127 8531
048addec 8532 * fns.c (Freverse): Use QUIT.
3e8cf2ea 8533
048addec 85342003-01-13 Richard M. Stallman <rms@gnu.org>
3e8cf2ea 8535
048addec
JD
8536 * minibuf.c (minibuffer_completion_contents):
8537 Error if point is inside prompt.
3e8cf2ea 8538
048addec
JD
8539 * keyboard.c (command_loop_1): Don't redisplay directly
8540 if there's a post-command-hook.
3e8cf2ea 8541
048addec
JD
8542 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
8543 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
2c10f029 8544
048addec 85452003-01-12 Kim F. Storm <storm@cua.dk>
94e8ffca 8546
048addec 8547 * process.h (struct Lisp_Process): New member private_vars.
94e8ffca 8548
048addec
JD
8549 * process.c (QCvars): New variable.
8550 (syms_of_process): Intern and staticpro it.
8551 (Fset_process_contact): Removed function.
8552 (Fprocess_variable, Fset_process_variable): New functions.
8553 (syms_of_process): Defsubr them.
8554 (Fstart_process): Initialize private_vars plist to nil.
8555 (Fmake_network_process): New arg :vars to setup the private
8556 variables for new network process.
8557 (server_accept_connection): Copy server's private variables to
8558 client process.
2c10f029 8559
048addec
JD
8560 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
8561 crashes). Code rewritten and simplified. Now directly aligns the
8562 pointer and recalculates pure_bytes_used, rather than aligning the
8563 size and adjusting the pointer.
b8a76c6c 8564
048addec 85652003-01-11 Kim F. Storm <storm@cua.dk>
b8a76c6c 8566
048addec
JD
8567 * process.c (Fset_process_contact): New function.
8568 (syms_of_process): defsubr it.
8569 (make-network-process): Update doc.
3a8d0899 8570
048addec 85712003-01-10 Andreas Schwab <schwab@suse.de>
3a8d0899 8572
048addec
JD
8573 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
8574 Reported by Berthold Gunreben <b.gunreben@web.de>.
4abc7470 8575
048addec 85762003-01-10 Dave Love <fx@gnu.org>
4abc7470 8577
048addec 8578 * composite.c (syms_of_composite): Make composition_hash_table weak.
b809d662 8579
048addec 85802003-01-09 Kim F. Storm <storm@cua.dk>
b809d662 8581
048addec
JD
8582 * process.c (Fmake_network_process): Convert new port number
8583 to host byte order for `:service t' case. From Mario Lang.
bf338245 8584
048addec 85852003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
bf338245 8586
048addec
JD
8587 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
8588 instead of XtAppProcessEvent.
bf338245 8589
048addec
JD
8590 * xterm.c (handle_one_xevent): New function.
8591 (x_dispatch_event): New function.
8592 (XTread_socket): Call handle_one_xevent.
bf338245 8593
048addec 8594 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
e833850f 8595
048addec
JD
8596 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
8597 call XQueryPointer to get coordinates.
8598 (popup_get_selection): Do not set popup_activated_flag to zero,
8599 let popup_deactivate_callback do that. Needed for Motif.
8600 Call x_dispatch_event instead of XtDispatchEvent.
8601 (xmenu_show): Calculate root coordinate from frame top/left position.
c4af2bce 8602
048addec 86032003-01-08 Kim F. Storm <storm@cua.dk>
c4af2bce 8604
6bdb309a 8605 * process.c (server_accept_connection): Fix recording of new
048addec
JD
8606 connection's local address in :local property of contact info.
8607 (Fmake_network_process): Record local network address for new
8608 client processes in :local property of contact info.
6bdb309a 8609 (format-network-address): Add arg OMIT-PORT. Change callers.
00e3ab56 8610
048addec 86112003-01-07 Dave Love <fx@gnu.org>
00e3ab56 8612
048addec 8613 * Makefile.in (fns.o): Depend on coding.h.
f387e1fd 8614
048addec 86152003-01-07 Markus Rost <rost@math.ohio-state.edu>
f387e1fd 8616
048addec 8617 * minibuf.c (Fread_variable): Doc fix.
f387e1fd 8618
048addec
JD
8619 * eval.c (Fuser_variable_p): Doc change. For custom variables,
8620 use the same test as for custom-variable-p.
8c6d74c6 8621
048addec 86222003-01-05 Richard M. Stallman <rms@gnu.org>
e833850f 8623
048addec
JD
8624 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
8625 Count LAST_LINE_MISFIT in scroll margin for end of window.
8626 Move label too_near_end before setting SCROLL_MARGIN_POS.
8627 Set LAST_LINE_MISFIT before jumping there.
8c6d74c6 8628
048addec
JD
8629 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
8630 scroll_conservatively case. If scrolling that much doesn't change
8631 STARTP, move it down one line.
e833850f 8632
048addec
JD
8633 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
8634 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
8c6d74c6 8635
048addec
JD
8636 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
8637 selected frame.
8c6d74c6 8638
048addec
JD
8639 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
8640 (syms_of_keymap): staticpro them.
8641 (Fapropos_internal): Initialize them and clear them out.
8642 Don't GCPRO them.
8c6d74c6 8643
048addec
JD
8644 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
8645 Doc fixes.
8c6d74c6 8646
048addec
JD
8647 * lisp.h: New misc type Lisp_Save_Value.
8648 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
8649 (XSAVE_VALUE): New macro.
8650 (struct Lisp_Save_Value): New data type.
8651 (union Lisp_Misc): Add u_save_value alternative.
8652 (make_save_value): Declared.
8c6d74c6 8653
048addec 8654 * alloc.c (make_save_value): New function.
8c6d74c6 8655
048addec
JD
8656 * xterm.c (x_catch_errors): Save dpy using make_save_value.
8657 (x_catch_errors_unwind): Call XSync.
8c6d74c6 8658
048addec 86592003-01-01 Richard M. Stallman <rms@gnu.org>
8c6d74c6 8660
048addec 8661 * window.c (window_scroll_pixel_based): Partially undo last change.
8c6d74c6 8662
048addec
JD
8663 * keyboard.c (command_loop_1): Call adjust_point_for_property
8664 in direct action cases for Qforward_char and Qbackward_char.
8665 Set already_adjusted so it won't be done twice.
8c6d74c6 8666
048addec 86672002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk> (tiny change)
8c6d74c6 8668
048addec
JD
8669 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
8670 type definition of size_t.
8c609cff 8671
048addec 86722003-01-02 Steven Tamm <steventamm@mac.com>
8c609cff 8673
048addec
JD
8674 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
8675 distinguish Carbon GUI builds from X11 builds on darwin.
b37113a1 8676
048addec 86772002-12-30 Steven Tamm <steventamm@mac.com>
b37113a1 8678
048addec
JD
8679 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
8680 to default to t.
fa634a5e 8681
048addec 86822002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
fa634a5e 8683
048addec 8684 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
ce0669d4 8685
048addec 86862002-12-28 Steven Tamm <steventamm@mac.com>
ce0669d4 8687
048addec
JD
8688 * Makefile.in (macosx-bundle): Fixes to Mac OS X/Carbon port to
8689 allow building in a different directory than source. Uses some
8690 GNU Make extensions, but there is no other make on Mac OS X.
2308af15 8691
048addec 86922002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
2308af15 8693
048addec
JD
8694 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
8695 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
8696 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
8697 (Fstring_to_number): Mention the returned value in the doc strings.
2155ecf3 8698
048addec 86992002-12-23 Richard M. Stallman <rms@gnu.org>
2155ecf3 8700
048addec
JD
8701 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
8702 <scroll-down-aggressively>: Doc fix.
2155ecf3 8703
048addec
JD
8704 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
8705 string as pane name, if there is one.
8706 (set_frame_menubar): Save menu_items_n_panes from each call to
8707 parse_single_submenu and use it when calling digest_single_submenu.
2155ecf3 8708
048addec
JD
8709 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
8710 Don't try to make last line fully visible if it is past end of window.
61f1d295 8711
048addec 87122002-12-22 Steven Tamm <steventamm@mac.com>
61f1d295 8713
048addec
JD
8714 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
8715 (mac_menu_show): Add support for hierarchical popup menus.
8716 (add_menu_item): Remove indentation support.
8717 (fill_submenu, fill_menu): Create hierarchical menus
8718 instead of using indentation.
0b17a217 8719
048addec 87202002-12-22 Richard M. Stallman <rms@gnu.org>
0b17a217 8721
048addec
JD
8722 * xdisp.c (try_cursor_movement): Don't call try_window here.
8723 (redisplay_window): Never redisplay minibuffer when inactive.
0b17a217 8724
048addec 8725 * window.c (select_window_1): Undo 9/21 change.
402e4f8b 8726
048addec 87272002-12-22 Steven Tamm <steventamm@mac.com>
402e4f8b 8728
048addec
JD
8729 * macterm.c (XTread_socket): Call KeyTranslate for control and
8730 meta to deal correctly shifted non-alpha characters, like C-S-5
8731 being treated like C-%. Does not look for shift key to deal
8732 with masking off control-key with mac-reverse-ctrl-meta.
f02cac82 8733
048addec 87342002-12-21 Richard M. Stallman <rms@gnu.org>
f02cac82 8735
048addec
JD
8736 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
8737 If it is non-nil, run timers. Use an unwind-protect to requeue
8738 the events that were read ahead.
8739 (popup_get_selection_unwind): New subroutine.
8740 (popup_get_selection_queue): File-scope variable now holds that queue.
8741 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
8742 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
8743 Use an unwind-protect to pop down the dialog box.
8744 (xdialog_show_unwind): New subroutine implements that.
f02cac82 8745
048addec
JD
8746 * xdisp.c (row_containing_pos): Change exit test using last_y.
8747 (try_window_id): Abort if row_containing_pos returns null.
f02cac82 8748
048addec
JD
8749 * lread.c (load_error_handler): New function.
8750 (Fload): Handle errors in Fsubstitute_in_file_name.
8751 Don't expect Fsignal to return.
f02cac82 8752
048addec
JD
8753 * eval.c: Errors and throws work right with interrupt blocking.
8754 (struct catchtag): New elt interrupt_input_blocked.
8755 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
8756 (internal_catch, Fcondition_case, internal_condition_case)
8757 (internal_condition_case_1, internal_condition_case_2): Save it.
8758 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
f02cac82 8759
048addec 8760 * editfns.c (Fformat): Add parens.
f02cac82 8761
048addec
JD
8762 * dired.c (file_name_completion): Fix that change.
8763 Delete special quit-handling code; just use QUIT.
f02cac82 8764
048addec 87652002-12-21 Tak Ota <Takaaki.Ota@am.sony.com> (tiny change)
f02cac82 8766
048addec
JD
8767 * dired.c (file_name_completion): Close directory on error
8768 just as in directory_files_internal.
1a590729 8769
048addec 87702002-12-19 David Kastrup <David.Kastrup@t-online.de>
1a590729 8771
048addec
JD
8772 * window.c (Fset_window_configuration): Set old_point to correct
8773 value when new_current_buffer == current_buffer.
f02cac82 8774
048addec 87752002-12-17 Ben Key <bkey1@tampabay.rr.com>
2308af15 8776
048addec
JD
8777 Revisited my earlier fix for the following entry in etc/PROBLEMS:
8778 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
8779 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
9785d95b 8780
048addec
JD
8781 These changes were in part based upon suggestions made by Peter
8782 'Luna' Runestig [peter@runestig.com].
9785d95b 8783
048addec
JD
8784 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token,
8785 g_b_init_get_token_information, g_b_init_lookup_account_sid,
6bdb309a 8786 g_b_init_get_sid_identifier_authority ): Add several static
048addec 8787 global variables.
9785d95b 8788
048addec
JD
8789 * w32.c (globals_of_w32): New function. Used to initialize those
8790 global variables that must always be initialized on startup even
8791 when the global variable initialized is non zero. Its primary
8792 purpose at this time is to set the global variables
8793 g_b_init_is_windows_9x, g_b_init_open_process_token,
8794 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
8795 g_b_init_get_sid_identifier_authority to 0 on startup.
8796 Called from main.
9785d95b 8797
048addec
JD
8798 * w32.c (is_windows_9x): Perform initialization only if
8799 g_b_init_is_windows_9x is equal to 0. On initialization set
8800 g_b_init_is_windows_9x equal to 1.
2308af15 8801
048addec
JD
8802 * w32.c (open_process_token): Perform initialization only if
8803 g_b_init_open_process_token is equal to 0. On initialization set
8804 g_b_init_open_process_token equal to 1.
2308af15 8805
048addec
JD
8806 * w32.c (get_token_information): Perform initialization only if
8807 g_b_init_get_token_information is equal to 0. On initialization
8808 set g_b_init_get_token_information equal to 1.
9785d95b 8809
048addec
JD
8810 * w32.c (lookup_account_sid): Perform initialization only if
8811 g_b_init_lookup_account_sid is equal to 0. On initialization
8812 set g_b_init_lookup_account_sid equal to 1.
9785d95b 8813
048addec
JD
8814 * w32.c (get_sid_identifier_authority): Perform initialization
8815 only if g_b_init_get_sid_identifier_authority is equal to 0.
8816 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
9785d95b 8817
f63fd14e 8818 * w32fns.c (globals_of_w32fns): New function. Used to initialize
048addec
JD
8819 those global variables that must always be initialized on startup
8820 even when the global variable initialized is non zero.
8821 Its primary purpose at this time is to initialize the global variable
8822 track_mouse_event_fn.
9785d95b 8823
a64387ee 8824 * w32fns.c (w32_wnd_proc): Remove initialization of
048addec 8825 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
9785d95b 8826
048addec 8827 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
9785d95b 8828
f63fd14e 8829 * w32menu.c (globals_of_w32menu): New function. Used to
048addec
JD
8830 initialize those global variables that must always be initialized
8831 on startup even when the global variable initialized is non zero.
8832 Its primary purpose at this time is to initialize the global
8833 variables get_menu_item_info and set_menu_item_info.
9785d95b 8834
048addec
JD
8835 * w32menu.c (initialize_frame_menubar): Remove initialization of
8836 get_menu_item_info and set_menu_item_info.
9785d95b 8837
048addec 8838 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
9785d95b 8839
048addec
JD
8840 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
8841 Declare them.
9785d95b 8842
048addec
JD
8843 * emacs.c (main): Call globals_of_w32 prior to calling
8844 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
8845 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
8846 is defined.
9785d95b 8847
048addec
JD
8848 * w32term.c (x_update_window_begin): Fix Windows API error
8849 detected by BoundsChecker. Test to determine if
8850 w32_system_caret_hwnd is NULL prior to attempting to use
8851 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
2308af15 8852
048addec
JD
8853 * w32term.c (x_update_window_end): Fix Windows API error
8854 detected by BoundsChecker. Test to determine if
8855 w32_system_caret_hwnd is NULL prior to attempting to use
8856 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
b6da19ef 8857
048addec 88582002-12-17 Kenichi Handa <handa@m17n.org>
b6da19ef 8859
048addec
JD
8860 * coding.c (coding_system_require_warning): New variable.
8861 (syms_of_coding): DEFVAR it.
b6da19ef 8862
048addec 8863 * coding.h (coding_system_require_warning): Extern it.
b6da19ef 8864
048addec
JD
8865 * fileio.c (choose_write_coding_system): Even if
8866 Vcoding_system_for_write is non-nil, if
8867 coding_system_require_warning is nonzero, call
8868 Vselect_safe_coding_system_function.
bfcf6dbe 8869
048addec 88702002-12-17 Markus Rost <rost@math.ohio-state.edu>
bfcf6dbe 8871
048addec
JD
8872 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
8873 (lisp): Add font-core.
2c568af5 8874
048addec 88752002-12-13 Stefan Monnier <monnier@cs.yale.edu>
2c568af5 8876
048addec
JD
8877 * textprop.c (text_read_only): New arg `propval'.
8878 (get_char_property_and_overlay): Remove unused var `next_overlay'.
8879 (verify_interval_modification): Use text_read_only's new arg.
b8c6225c 8880
048addec 88812002-12-13 Kenichi Handa <handa@m17n.org>
b8c6225c 8882
048addec 8883 * coding.c (Funencodable_char_position): Set pend correctly.
706ddb8f 8884
048addec 88852002-12-12 Jason Rumney <jasonr@gnu.org>
706ddb8f 8886
048addec
JD
8887 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
8888 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
8889 Be more careful about when help_events are generated.
96720f09 8890
048addec 88912002-12-12 Steven Tamm <steventamm@mac.com>
96720f09 8892
048addec
JD
8893 * macterm.c (mac_check_for_quit_char): Correctly set the
8894 modifiers of the event to 0.
8895 * mac.c (sys_select): Duplicate rfds before calling select to
8896 ensure that rfds survive the while loop.
e5ae1c49 8897
048addec 88982002-12-11 Kim F. Storm <storm@cua.dk>
e5ae1c49 8899
048addec
JD
8900 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
8901 row_containing_pos returned NULL.
2eb46b2d 8902
048addec 89032002-12-10 Steven Tamm <steventamm@mac.com>
2eb46b2d 8904
6bdb309a 8905 * mac.c (sys_read): Fix sys_read to not call select if IO is
048addec 8906 non-blocking.
6bdb309a 8907 (sys_select): Fix sys_select to not use a timeout larger than
048addec 8908 the one given.
b11f1d8a 8909
048addec 89102002-12-10 Juanma Barranquero <lektu@terra.es>
b11f1d8a 8911
048addec 8912 * editfns.c (Fformat): Use alloca, not _alloca.
d8528226 8913
048addec 89142002-12-09 Richard M. Stallman <rms@gnu.org>
d8528226 8915
048addec
JD
8916 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
8917 as the last thing.
a4ac5b17 8918
048addec 89192002-12-09 Dave Love <fx@gnu.org>
a4ac5b17 8920
048addec 8921 * s/sol2-8.h: Removed. (Not necessary.)
ac42d7b9 8922
048addec 89232002-12-09 Matthew Swift <swift@alum.mit.edu>
ac42d7b9 8924
048addec
JD
8925 * editfns.c (Fformat): Handle precision in string conversion
8926 specifiers like libc functions do (ie, print at most that many
8927 characters).
85cce843 8928
048addec 89292002-12-08 Richard M. Stallman <rms@gnu.org>
85cce843 8930
048addec
JD
8931 * xdisp.c (row_containing_pos): Check more carefully
8932 whether charpos is really in the row before returning it.
0d4d26a7 8933
048addec 89342002-12-07 Steven Tamm <steventamm@mac.com>
0d4d26a7 8935
048addec 8936 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
b11f1d8a 8937
048addec
JD
8938 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
8939 each stack frame. This may change as it could be time consuming.
0d4d26a7 8940
048addec
JD
8941 * macterm.c (mac_check_for_quit_char, quit_char_comp)
8942 (init_quit_char_handler, mac_determine_quit_char_modifiers)
6bdb309a 8943 (mac_initialize): Add code to check for pressing of quit_char
048addec 8944 in the OS event queue.
b11f1d8a 8945
048addec
JD
8946 * mac.c (sys_select): Call mac_check_for_quit_char every second
8947 while blocking on select.
0d4d26a7 8948
048addec
JD
8949 * mac.c (sys_read): Use sys_select to test for input first
8950 before calling read, to allow C-g to break.
9252f7bc 8951
048addec 89522002-12-07 Richard M. Stallman <rms@gnu.org>
9252f7bc 8953
048addec 8954 * minibuf.c (Fcompleting_read): Doc fix.
9252f7bc 8955
048addec 8956 * lread.c (syms_of_lread) <load-history>: Doc fix.
9252f7bc 8957
048addec 8958 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
9252f7bc 8959
048addec
JD
8960 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
8961 autoload.
9252f7bc 8962
048addec 8963 * data.c (Fdefalias): Record in load-history redefining an autoload.
9252f7bc 8964
048addec 8965 * alloca.c: Undo ifdef change accidentally made on 12-04.
bfa261c0 8966
048addec 89672002-12-06 Francesco Potorti` <pot@gnu.org>
bfa261c0 8968
048addec 8969 * xfns.c (png_load): Avoid double gamma correction for PNG images.
c5992177 8970
048addec 89712002-12-04 Richard M. Stallman <rms@gnu.org>
c5992177 8972
048addec 8973 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 8974
048addec 8975 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 8976
048addec 8977 * alloca.c: Don't use #error.
02d588e2 8978
048addec 89792002-12-03 Dave Love <fx@gnu.org>
02d588e2 8980
048addec
JD
8981 * buffer.c (Qucs_set_table_for_input): New.
8982 (Fget_buffer_create): Use it.
8983 (Qset_buffer_major_mode_hook): Deleted.
8984 (Fset_buffer_major_mode): Revert previous change.
8985 (init_buffer_once): Intern ucs-set-table-for-input.
8986 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
8987 Add &Qucs_set_table_for_input.
451e2697 8988
048addec 89892002-12-03 Andreas Schwab <schwab@suse.de>
451e2697 8990
048addec
JD
8991 * callint.c (Fcall_interactively): Use next_event only if less
8992 than key_count.
72742a99 8993
048addec 89942002-12-02 Andrew Choi <akochoi@shaw.ca>
72742a99 8995
048addec
JD
8996 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
8997 names to 255 characters.
72742a99 8998
048addec
JD
8999 * macterm.c (XTread_socket): If all frames have been collapsed,
9000 expand the first one before handling drag-and-drop events.
72742a99 9001
048addec
JD
9002 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
9003 which is detected by autoconf.
40e6ff95 9004
048addec 90052002-12-01 Steven Tamm <steventamm@mac.com>
40e6ff95 9006
048addec
JD
9007 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
9008 offset in two hints table to allow prebinding to be redone and
9009 allow the executable to be stripped.
c02138c6 9010
048addec 90112002-11-29 Dave Love <fx@gnu.org>
c02138c6 9012
048addec
JD
9013 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
9014 already provided.
0e47bbf7 9015
048addec 90162002-11-29 Richard M. Stallman <rms@gnu.org>
0e47bbf7 9017
048addec
JD
9018 * xdisp.c (start_display): Check more intelligently for
9019 whether the line is continued.
9020 (move_it_vertically_backward): Clear it->continuation_lines_width.
44129dcb 9021
048addec 90222002-11-28 Dave Love <fx@gnu.org>
44129dcb 9023
048addec
JD
9024 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
9025 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
f707342d 9026
048addec 90272002-11-27 Steven Tamm <steventamm@mac.com>
f707342d 9028
048addec
JD
9029 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
9030 more descriptive error output from lread.c:Fload upon most require
9031 cycles during boostrapping.
1637fd2c 9032
048addec 90332002-11-27 Jason Rumney <jasonr@gnu.org>
1637fd2c 9034
048addec
JD
9035 * fileio.c (Finsert_file_contents): Give a more appropriate error
9036 for files bigger than 2Gb when off_t is 32 bit.
1637fd2c 9037
048addec
JD
9038 * dired.c (Ffile_attributes): Don't return negative file sizes for
9039 files bigger than 2Gb when off_t is 32 bit.
540c2788 9040
048addec 90412002-11-27 Dave Love <fx@gnu.org>
6b2fd6ea 9042
048addec 9043 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6b2fd6ea 9044
048addec
JD
9045 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
9046 Test GETPGRP_VOID instead.
9047 [BSD_TERMIOS]: Remove definitions (never used).
6b2fd6ea 9048
048addec
JD
9049 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
9050 Don't define.
9051 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
540c2788 9052
048addec 9053 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
8cc03716 9054
048addec 90552002-11-25 Jason Rumney <jasonr@gnu.org>
8cc03716 9056
048addec
JD
9057 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
9058 supported.
4042a81a 9059
048addec 90602002-11-25 Dave Love <fx@gnu.org>
4042a81a 9061
048addec 9062 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
4042a81a 9063
048addec 9064 * Makefile.in (TEMACS_LDFLAGS): Update last change.
be4ee72f 9065
048addec 90662002-11-25 Andreas Schwab <schwab@suse.de>
be4ee72f 9067
048addec 9068 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
82122254 9069
048addec 90702002-11-24 Steven Tamm <steventamm@mac.com>
82122254 9071
048addec
JD
9072 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
9073 determine the size of pointers alloced in unexed space instead
9074 of using possibly invalid emacs_zone pointers. This fixes the
9075 binary incompatibility problems caused by updates to libSystem.B.
c1ee53bc 9076
048addec 90772002-11-24 Richard M. Stallman <rms@gnu.org>
c1ee53bc 9078
048addec 9079 * search.c (Fstring_match): Doc fix.
c1ee53bc 9080
048addec
JD
9081 * callint.c (Fcall_interactively): If a command fails because
9082 `*' detects a read-only buffer, but RECORD_FLAG is set,
9083 record it anyway if the args don't actually do tty input.
5598c32e 9084
048addec 90852002-11-22 Dave Love <fx@gnu.org>
5598c32e 9086
048addec 9087 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
5598c32e 9088
048addec
JD
9089 * keyboard.c (interrupt_signal): Provide forward declaration.
9090 (kbd_buffer_store_event): Don't declare interrupt_signal.
5598c32e 9091
048addec 9092 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
97b14e22 9093
048addec 90942002-11-21 Richard M. Stallman <rms@gnu.org>
97b14e22 9095
048addec
JD
9096 * eval.c (interactive_p): Skip any number of bytecode
9097 and special form frames, in any order.
516eea8e 9098
048addec 90992002-11-20 Jason Rumney <jasonr@gnu.org>
516eea8e 9100
048addec
JD
9101 * w32fns.c (convert_mono_to_color_image): New function.
9102 (xbm_load, xbm_load_image): Use it when foreground or background
9103 is explicitly set.
04dbfa08 9104
048addec 91052002-11-19 Dave Love <fx@gnu.org>
04dbfa08 9106
048addec 9107 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
b4aebae3 9108
048addec 91092002-11-18 Jason Rumney <jasonr@gnu.org>
b4aebae3 9110
048addec
JD
9111 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
9112 (XPutPixel): Swap blue and red.
9113 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
9114 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
9115 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
9116 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
1998560a 9117
048addec 91182002-11-18 Dave Love <fx@gnu.org>
d824beee 9119
048addec 9120 * m/orion105.h (HAVE_ALLOCA): Don't define.
d824beee 9121
048addec 9122 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
d824beee 9123
048addec 9124 * m/intel386.h: Don't include alloca.h or define alloca.
d824beee 9125
048addec
JD
9126 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
9127 malloc, realloc, calloc.
d824beee 9128
048addec
JD
9129 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
9130 (bcmp): Don't define.
d824beee 9131
048addec 9132 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
d824beee 9133
048addec 9134 * m/amdahl.h: Don't define LIB_STANDARD.
d824beee 9135
048addec 9136 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
d824beee 9137
048addec 9138 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
d824beee 9139
048addec
JD
9140 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
9141 Don't include alloca.h.
d824beee 9142
048addec 9143 * s/aix3-2.h (HAVE_FSYNC): Don't define.
1998560a 9144
048addec 9145 * regex.c (_GNU_SOURCE): Don't define.
1998560a 9146
048addec 9147 * process.c (_GNU_SOURCE): Don't define.
1998560a 9148
048addec 9149 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
8704a6ab 9150
048addec 91512002-11-18 Markus Rost <rost@math.ohio-state.edu>
8704a6ab 9152
048addec 9153 * s/sol2-8.h: Include sol2-6.h.
6ae2cd57 9154
048addec 91552002-11-18 Miles Bader <miles@gnu.org>
6ae2cd57 9156
048addec
JD
9157 * dispextern.h (struct face): Add `overstrike' field.
9158 * xterm.c (x_draw_glyph_string_foreground)
9159 (x_draw_composite_glyph_string_foreground): Implement overstriking.
9160 * xfaces.c (load_face_font): Set `face->overstrike' based on
9161 result from choose_face_font.
9162 (best_matching_font, choose_face_font): Add `needs_overstrike'
9163 argument, and use it to return whether overstriking is desirable
9164 for this face/font combo.
9165 (set_font_frame_param: Pass new argument to choose_face_font.
6ae2cd57 9166
048addec 91672002-11-17 Ben Key <BKey1@tampabay.rr.com>
3582b6a3 9168
048addec
JD
9169 This change is my fix for the following entry in etc/PROBLEMS:
9170 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
9171 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
f60ae425 9172
048addec
JD
9173 * w32.c: Added wrapper functions around the win32 API functions
9174 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
9175 GetSidIdentifierAuthority. These wrapper functions serve two
9176 purposes:
9177 1. They ensure that the wrapped function can never be called
9178 when Emacs is running on an operating system on which they are
9179 not supported (Microsoft Windows 95 / 98 / ME).
9180 2. They call the wrapped functions via function pointers rather
9181 than calling them directly. This avoids taking advantage of the
9182 undocumented fact that although these functions are not supported
9183 in the 9x branch of Microsoft Windows, the functions do exist in
9184 the version of advapi32.dll that is found in the 9x branch of
9185 Microsoft Windows.
f60ae425 9186
6bdb309a 9187 * w32.c (init_user_info): Replace the calls to the win32 API
048addec
JD
9188 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
9189 and GetSidIdentifierAuthority with calls to the newly added
9190 wrapper functions.
f60ae425 9191
048addec
JD
9192 * w32.h: Added extern declarations for the following functions:
9193 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
9194 syms_of_w32menu, and void syms_of_fontset.
f60ae425 9195
6bdb309a 9196 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
048addec
JD
9197 function pointer track_mouse_event_fn in the handler for the
9198 WM_SETFOCUS message.
3582b6a3 9199
6bdb309a 9200 * w32menu.c (initialize_frame_menubar): Add code to
048addec
JD
9201 reinitialize the function pointers set_menu_item_info and
9202 get_menu_item_info.
f60ae425 9203
048addec 92042002-11-17 Ben Key <BKey1@tampabay.rr.com>
f60ae425 9205
048addec
JD
9206 * sound.c: Added a partial implementation of play-sound-internal
9207 for Microsoft Windows. Added various #ifdef / #else / #endif
9208 code blocks to separate the code that will compile under
9209 Microsoft Windows from the code that is specific to Gnu/Linux.
9210 Moved several blocks of code around to make this separation of code
9211 into Windows compatible and Gnu/Linux compatible code blocks easier.
f60ae425 9212
048addec 9213 * makefile.w32-in: Include sound.c and link with WinMM.lib.
a0f0878d 9214
048addec
JD
9215 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
9216 added support for play-sound-internal under Windows would be
9217 included in the build of Emacs.
517f42a0 9218
048addec 92192002-11-16 Jason Rumney <jasonr@gnu.org>
517f42a0 9220
048addec 9221 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
517f42a0 9222
048addec 9223 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
a0f0878d 9224
048addec 92252002-11-15 Stefan Monnier <monnier@cs.yale.edu>
a0f0878d 9226
048addec
JD
9227 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
9228 (adjust_point_for_property): Move out of display and invisible even if
9229 we were already inside before (in case a property was added while
9230 we weren't looking). Be more careful when handling invisible props.
9231 Skip invisible text as if it really wasn't there at all.
aab83f91 9232
048addec 92332002-11-15 Jason Rumney <jasonr@gnu.org>
aab83f91 9234
048addec
JD
9235 * w32term.c (x_draw_image_foreground)
9236 (w32_draw_image_foreground_1): Use standard copy and invert
9237 operations to draw images.
aab83f91 9238
048addec
JD
9239 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
9240 depth of 1.
9241 (xbm_read_bitmap_data): Invert bits as xbm is read in.
9242 (XPutPixel): Don't invert bits here.
a4478a76 9243
048addec 92442002-11-15 Jason Rumney <jasonr@gnu.org>
a4478a76 9245
048addec
JD
9246 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
9247 (w32_draw_image_foreground_1): Handle image masks.
9248 (x_draw_image_glyph_string): Don't BitBlt transparently.
a4478a76 9249
048addec
JD
9250 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
9251 (x_from_xcolors): Adjust RGB values for W32.
9252 (image_background, image_background_transparent)
9253 (postprocess_image, x_to_xcolors, x_disable_image)
9254 (x_build_heuristic_mask): Adapt for W32 and enable.
9255 (x_create_x_image_and_pixmap): Mark images with palettes as such.
9256 (xbm_load): Remove unused variable.
03670a65 9257
048addec 92582002-11-14 Richard M. Stallman <rms@gnu.org>
03670a65 9259
048addec 9260 * buffer.c (syms_of_buffer): Doc fix.
59daa29a 9261
048addec 92622002-11-14 Dave Love <fx@gnu.org>
59daa29a 9263
048addec 9264 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
59daa29a 9265
048addec
JD
9266 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
9267 * xmenu.c (unuse_menu_items, digest_single_submenu):
9268 * xfns.c (x_put_x_image):
9269 * xdisp.c (message2_nolog, set_message):
9270 * undo.c (record_point):
9271 * terminfo.c (tparam):
9272 * syntax.c (scan_sexps_forward):
9273 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
9274 * composite.c (update_compositions):
9275 * cm.c (calccost, cmgoto):
9276 * charset.c (c_string_width): Declare all args (per C99).
59daa29a 9277
048addec 9278 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
59daa29a 9279
048addec
JD
9280 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
9281 Don't declare.
59daa29a 9282
048addec 9283 * emacs.c (main) [!VMS]: Avoid third arg.
59daa29a 9284
048addec
JD
9285 * fns.c (Fcopy_sequence): Doc fix.
9286 (Fmap_char_table): Cast `call2'.
3947677c 9287
048addec
JD
92882002-11-14 Francesco Potorti` <pot@gnu.org>
9289
9290 * s/sol2-8.h: New file.
9291
92922002-11-14 Kim F. Storm <storm@cua.dk>
9293
9294 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
9295 dependency on `risky-local-variable' and the :propertize form.
9296
92972002-11-12 Stefan Monnier <monnier@cs.yale.edu>
9298
9299 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
9300
9301 * syntax.c (scan_sexps_forward): Undo last patch.
9302 Use a more obvious fix: check eob before updating the syntax table.
9303
93042002-11-09 Stefan Monnier <monnier@cs.yale.edu>
9305
9306 * syntax.c (scan_sexps_forward): Update syntax table before reading
9307 a char rather than after so we don't update the table past eob.
9308
93092002-11-09 Dave Love <fx@gnu.org>
9310
9311 * buffer.c (Fset_buffer_major_mode): Fix last change.
9312
9313 * regex.c (regexec): Fix pmatch declaration.
9314
9315 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
9316
9317 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
9318 to self-inserting characters.
9319 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
9320
9321 * coding.c (Vtranslation_table_for_input): New.
9322 (syms_of_coding): DEFVAR it.
9323
93242002-11-08 Juanma Barranquero <lektu@terra.es>
9325
9326 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
9327 window.
9328
93292002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9330
6bdb309a 9331 * process.c (Fformat_network_address): Remove unused locals p,
048addec
JD
9332 cp, and i.
9333
93342002-11-06 Dave Love <fx@gnu.org>
9335
9336 * buffer.c (Qset_buffer_major_mode_hook): New.
9337 (Fset_buffer_major_mode): Use it.
9338
93392002-11-06 Richard M. Stallman <rms@gnu.org>
9340
9341 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
9342 and stop_polling.
9343
9344 * process.c (wait_reading_process_input):
9345 Test POLLING_PROBLEM_IN_SELECT, not hpux.
9346 Avoid initialization for auto Lisp_Object var.
9347
9348 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
9349
9350 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
9351
93522002-11-05 Richard M. Stallman <rms@gnu.org>
9353
9354 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
9355
9356 * callint.c (Fcall_interactively): New local filter_specs.
9357 (Fcall_interactively): Check for progn as well as let.
9358 Add a gcpro.
9359 (Qprogn): New variable.
9360 (syms_of_callint): Staticpro and init Qprogn.
9361
93622002-11-04 John Paul Wallington <jpw@shootybangbang.com>
9363
9364 * lread.c (Feval_buffer): Doc fix.
9365
93662002-11-04 Dave Love <fx@gnu.org>
9367
9368 * keyboard.c (read_char): Always translate iff
9369 Vkeyboard_translate_table is a char table and c is valid.
9370
9371 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
9372 and fix C types.
9373
93742002-11-03 Stefan Monnier <monnier@cs.yale.edu>
9375
9376 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
9377
9378 * editfns.c (get_pos_property): Don't hardcode Qfield.
9379
9380 * keyboard.c (adjust_point_for_property): Handle `display' prop on
9381 overlays. Also handle `invisible' prop.
9382
93832002-11-02 Stefan Monnier <monnier@cs.yale.edu>
9384
9385 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
9386 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
9387
93882002-11-01 Andreas Schwab <schwab@suse.de>
9389
9390 * editfns.c (Fmessage): Revert last change to properly handle %%.
9391
93922002-11-01 Stefan Monnier <monnier@cs.yale.edu>
9393
9394 * xmenu.c (unuse_menu_items): New fun.
9395 (menu_items_inuse): New var.
9396 (syms_of_xmenu): Initialize it.
9397 (init_menu_items): Use it to detect re-entrance.
9398 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
9399 (Fx_popup_menu): Remove spurious XSETFRAME.
9400
9401 * editfns.c (find_field): Make an exception for nil fields.
9402
94032002-11-01 Dave Love <fx@gnu.org>
9404
9405 * m/gec63.h: Deleted.
9406
94072002-10-31 Dave Love <fx@gnu.org>
9408
9409 * xterm.c (XTread_socket): Fix last change.
9410 (xaw_scroll_callback): Cast call_data to long to avoid warning.
9411
94122002-10-31 Stefan Monnier <monnier@cs.yale.edu>
9413
9414 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
9415
94162002-10-30 Stefan Monnier <monnier@cs.yale.edu>
9417
9418 * editfns.c (overlays_around, get_pos_property): New funs.
9419 (find_field): Use them.
9420 Also be careful not to modify POS before its last use.
9421 (Fmessage): Don't Fformat if there's nothing to format.
9422
94232002-10-30 Dave Love <fx@gnu.org>
9424
9425 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
9426 [HAVE_PTY_H]; Include pty.h.
9427
9428 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
9429
9430 * xterm.c (Qeql): Declare.
9431 (Vx_keysym_table): New.
9432 (syms_of_xterm): Initialize it.
9433 (XTread_socket): Use it. Deal with ASCII keysyms.
9434 (XSetIMValues) [HAVE_X11R6]: Prototype.
9435
9436 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
9437 (lispy_kana_keys): Comment out.
9438 (make_lispy_event) [XK_kana_A]: Comment out.
9439 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
9440 Fix sprintf call.
9441
9442 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
9443 regexp.h change).
9444 (TERMINFO, LIBS_TERMCAP): Define.
9445
9446 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
9447 (bcmp): Define conditional on HAVE_BCMP.
9448 (NO_SIOCTL_H): Don't define.
9449 (TIOCSIGSEND): Don't make conditional on IRIX6.
9450
9451 * s/sol2-5.h: Don't include strings.h.
9452 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
9453
9454 * s/irix6-0.h (IRIX6): Don't define.
9455 (bcopy, bcmp, bzero): Don't undef.
9456
9457 * s/irix6-5.h: Don't include strings.h.
9458 (IRIX6): Don't define.
9459 (bcopy, bcmp, bzero): Don't undef.
9460
9461 * syntax.c (Fforward_comment): Doc fix.
9462
94632002-10-29 Kim F. Storm <storm@cua.dk>
9464
9465 * process.c (Fsignal_process): Allow PROCESS to be specified by
9466 name in addition to pid (as integer or string).
9467
94682002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
9469
9470 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
9471 environments.
9472
94732002-10-27 Kim F. Storm <storm@cua.dk>
9474
9475 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
9476
9477 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
9478
9479 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
9480
9481 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
9482
94832002-10-26 Richard M. Stallman <rms@gnu.org>
9484
9485 * editfns.c (Fformat): Detect invalid format letters for floats.
9486
94872002-10-25 Kenichi Handa <handa@m17n.org>
9488
9489 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
9490 (x_set_title): Likewise.
9491
94922002-10-25 Juanma Barranquero <lektu@terra.es>
9493
9494 * macgui.h:
9495 * w32gui.h: Remove definition of XColor.
9496
9497 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
9498
94992002-10-24 Kim F. Storm <storm@cua.dk>
9500
9501 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
9502 Callers changed (supply dummy arg).
9503
9504 * lisp.h (get_window_cursor_type): Update prototype.
9505
9506 * w32term.c (x_display_and_set_cursor): Get active_cursor from
9507 get_window_cursor_type to track system caret.
9508
95092002-10-24 Kim F. Storm <storm@cua.dk>
9510
9511 * process.c (Fformat_network_address): New function.
9512 (syms_of_process): Defsubr it.
9513 (list_processes_1): Use it to format :local/:remote address if
f9711de4 9514 service/host is not set; before Emacs would crash in that case.
048addec
JD
9515 (Fmake_network_process): Don't use Ffind_operation_coding_system
9516 to setup coding system if host or service is not set.
9517
95182002-10-23 Juanma Barranquero <lektu@terra.es>
9519
9520 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
9521
9522 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
9523 COLORREF.
9524
9525 * macgui.h:
9526 * w32gui.h: Add definition of XColor.
9527
9528 * macfns.c:
9529 * w32fns.c:
9530 * xfaces.c: Remove definition of XColor.
9531
95322002-10-22 Stefan Monnier <monnier@cs.yale.edu>
9533
9534 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
9535
9536 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
9537 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
9538 window if it is dedicated.
9539 (Fshrink_window): Add preserve_before as was done for enlarge_window.
9540 (Vspecial_display_function): Update docstring.
9541
9542 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
9543 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
9544 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
9545
95462002-10-21 Stefan Monnier <monnier@cs.yale.edu>
9547
9548 * casefiddle.c (casify_region): Don't treat a prefix char as part
9549 of a word when at the beginning.
9550
95512002-10-17 Juanma Barranquero <lektu@terra.es>
9552
9553 * lread.c (syms_of_lread): Fix typos.
9554
95552002-10-17 Dave Love <fx@gnu.org>
9556
9557 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
9558
95592002-10-16 Richard M. Stallman <rms@gnu.org>
9560
9561 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
9562
95632002-10-14 Juanma Barranquero <lektu@terra.es>
9564
9565 * w16select.c (syms_of_win16select): Fix docstring for
9566 `selection-coding-system'.
9567
9568 * w32select.c (syms_of_w32select): Likewise.
9569
95702002-10-14 Stefan Monnier <monnier@cs.yale.edu>
9571
9572 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
9573 a backslash-quoted char.
9574 (scan_lists, scan_sexps_forward): Pacify the compiler.
9575
95762002-10-13 Richard M. Stallman <rms@gnu.org>
9577
9578 * window.c (window_scroll): Set immediate_quit.
9579
9580 * print.c (print): When backquote form is the car of a list,
9581 output in old style. Use old_backquote_output to output all
9582 comma forms inside it in old style too.
9583
9584 * buffer.h (struct buffer): Move `undo_list' down below `name'.
9585
95862002-10-11 Markus Rost <rost@math.ohio-state.edu>
9587
9588 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
9589 batch mode).
9590
9591 * lread.c (Fload): Doc fix (load-suffixes).
9592
95932002-10-10 Steven Tamm <steventamm@mac.com>
9594
9595 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
9596 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
9597 Also switch the default to Qnil from Qt.
9598
95992002-10-08 Kenichi Handa <handa@m17n.org>
9600
9601 * coding.c (code_convert_region): When we need more GAP for
9602 conversion, pay attention to the case that coding->produced is not
9603 greater than coding->consumed.
9604
96052002-10-07 Richard M. Stallman <rms@gnu.org>
9606
9607 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
9608
96092002-10-06 Andrew Choi <akochoi@shaw.ca>
9610
9611 * macmenu.c (mac_menu_show): Add j to count menu items; match
9612 menu_item_selection to it to find selected item.
9613
96142002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9615
9616 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
9617 cases. The correct fix is to pass ReparentNotify to Xt.
9618 The shell widget interprets ConfigureNotify differently depending
9619 on if it has been reparented or not.
9620
96212002-10-05 Markus Rost <rost@math.ohio-state.edu>
9622
9623 * editfns.c (Fformat_time_string): Doc fix.
9624
96252002-10-05 John Paul Wallington <jpw@shootybangbang.com>
9626
9627 * fns.c (Flength): Doc fix.
9628
96292002-10-04 Stefan Monnier <monnier@cs.yale.edu>
9630
9631 * keyboard.c (keyremap): New struct.
9632 (read_key_sequence): Use it: globally replace keytran_foo with
9633 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
9634 keytran_next and fkey_next to just `next'.
9635
96362002-10-04 Steven Tamm <steventamm@mac.com>
9637
9638 * macterm.c (keycode_to_xkeysym_table): Change return to be
9639 treated like an X keysym.
9640
96412002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9642
9643 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
9644 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
9645 This is to also handle x/y changes that occur because of a resize.
9646
96472002-10-02 John Paul Wallington <jpw@shootybangbang.com>
9648
9649 * frame.c (Vdelete_frame_functions): New variable.
9650 (syms_of_frame): Initialize and defvar it.
9651 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
9652 it when frame's `tooltip' parameter is non-nil.
9653
9654 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
9655
9656 * w32fns.c (x_create_tip_frame): Likewise.
9657
9658 * macfns.c (x_create_tip_frame): Likewise.
9659
96602002-09-30 Kenichi Handa <handa@m17n.org>
9661
9662 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
9663 -1 before calling ccl_driver.
9664
9665 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
9666 Only when it is non-nil, handle composition sequence.
9667 (setup_coding_system) <0>: Don't force composition handling.
9668
9669 * Makefile.in (lisp, shortlisp): Add utf-16.elc
9670
96712002-09-29 Richard M. Stallman <rms@gnu.org>
9672
9673 * search.c (Freplace_match): Adjust match data for the substitution
9674 just made in the buffer.
9675
9676 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
9677 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
9678
96792002-09-27 Richard M. Stallman <rms@gnu.org>
9680
9681 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
9682 (read_char): Use them. Do all exits thru the end of the function.
9683
96842002-09-27 Kenichi Handa <handa@etl.go.jp>
9685
9686 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
9687 is nil.
9688
96892002-09-26 Richard M. Stallman <rms@gnu.org>
9690
9691 * regex.h (__restrict_arr): Don't define if already defined.
9692
9693 * coding.c (run_pre_post_conversion_on_str):
9694 Save and restore Vdeactivate_mark.
9695
96962002-09-26 John Paul Wallington <jpw@shootybangbang.com>
9697
9698 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
9699
97002002-09-26 Kenichi Handa <handa@etl.go.jp>
9701
9702 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
9703 nonzero, try face's family at first. Otherwise try FAMILY at first.
9704 (choose_face_font): If C is a single byte char or latin-1, call
9705 try_font_list with PREFER_FACE_FAMILY 1.
9706
97072002-09-21 Richard M. Stallman <rms@gnu.org>
9708
9709 * window.c (select_window_1): Don't select frame.
9710 Set frame's selected window only when frame itself is selected.
9711 (Fselect_window): Doc fix.
9712
97132002-09-18 Kim F. Storm <storm@cua.dk>
9714
9715 * process.c (make-network-process): Doc fix (there is no
9716 network-server-log-function hook).
9717
97182002-09-18 Richard M. Stallman <rms@gnu.org>
9719
9720 * print.c (print): Clear out the unused parts of Vprint_number_table.
9721 (syms_of_print): Doc fix for `print-number-table'.
9722
9723 * unexelf.c (unexec): Undo previous change.
9724
97252002-09-17 Andreas Schwab <schwab@suse.de>
9726
9727 * m/alpha.h [LINUX]: Don't define DATA_START.
9728
97292002-09-16 Dave Love <fx@gnu.org>
9730
9731 * unexelf.c (unexec): Deal with .got, reinstating change from
9732 25-08-1999.
9733
97342002-09-13 Richard M. Stallman <rms@gnu.org>
9735
9736 * s/sol2-6.h (UNEXEC): Comment out definition.
9737
9738 * unexsol.c (unexec): Don't downcase first letter of error msg.
9739
9740 * xfaces.c (Fcolor_supported_p): Just one arg is required.
9741
97422002-09-12 Markus Rost <rost@math.ohio-state.edu>
9743
9744 * unexsol.c: Include buffer.h, charset.h, coding.h.
9745
97462002-09-11 Richard M. Stallman <rms@gnu.org>
9747
9748 * unexsol.c: Don't use report_file_error; do it by hand
9749 using dlerror.
9750
9751 * process.c (wait_reading_process_input, both versions):
9752 Before calling turn_on_atimers, call stop_polling.
9753
9754 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
9755
9756 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
9757 we go to too_near_end, call clear_glyph_matrix.
9758 (redisplay_window): After make_cursor_line_fully_visible,
9759 call clear_glyph_matrix and bypass `goto done'.
9760
9761 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
9762 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
9763
97642002-09-10 Richard M. Stallman <rms@gnu.org>
9765
9766 * fileio.c (Fdo_auto_save): Catch error making directory.
9767 Only call push_message if we need to.
9768 At the same time, make an unwind-protect to pop it.
9769 Rename local message_p to old_message_p.
9770 (do_auto_save_make_dir, do_auto_save_eh): New functions.
9771 (do_auto_save_unwind): Don't call pop_message.
9772
9773 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
9774
9775 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
9776
9777 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
9778
9779 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
9780
97812002-09-10 Stefan Monnier <monnier@cs.yale.edu>
9782
9783 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
9784 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
9785 (re_match_2_internal): Be more careful with infinite loops.
9786
97872002-09-10 Kim F. Storm <storm@cua.dk>
9788
9789 * macros.c (end_kbd_macro): New function.
9790 (Fend_kbd_macro): Use it.
9791
9792 * macros.h (end_kbd_macro): Declare extern.
9793
9794 * keyboard.c (Fdiscard_input): If defining keyboard macro,
9795 end and save it instead of discarding it.
9796
97972002-09-09 Markus Rost <rost@math.ohio-state.edu>
9798
9799 * s/sol2-6.h: Fix typo. Add comment.
9800
98012002-09-09 Richard M. Stallman <rms@gnu.org>
9802
9803 * regex.c (regnum_t): Use signed int, not unsigned int.
9804
9805 * s/sol2-6.h: New file.
9806
9807 * s/sol2-5.h (UNEXEC): Definition deleted.
9808
98092002-09-08 Kim F. Storm <storm@cua.dk>
9810
9811 * macros.c (executing_macro_index): Change type to EMACS_INT.
9812 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
9813
9814 * macros.h (executing_macro_index): Change type to EMACS_INT.
9815
98162002-09-06 Richard M. Stallman <rms@gnu.org>
9817
9818 * casetab.c (set_case_table): Make canon table point to eqv table.
9819
98202002-09-06 Juanma Barranquero <lektu@terra.es>
9821
9822 * coding.c (syms_of_coding): Fix spacing.
9823
9824 * composite.c (Fcompose_region_internal)
9825 (Fcompose_string_internal): Likewise.
9826
9827 * data.c (Flsh): Likewise.
9828
9829 * fontset.c (Fset_fontset_font): Likewise.
9830
9831 * macfns.c (Fx_server_max_request_size): Likewise.
9832
9833 * w16select.c (syms_of_win16select): Likewise.
9834
9835 * w32select.c (syms_of_w32select): Likewise.
9836
9837 * xselect.c (syms_of_xselect): Likewise.
9838
98392002-09-05 Richard M. Stallman <rms@gnu.org>
9840
9841 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
9842 call EXTEND_RANGE_TABLE and return a proper value.
9843 (set_image_of_range): Don't call set_image_of_range_1
9844 if no TRANSLATE or if range includes all of Latin-1.
9845 Only call it for the Latin-1 part of the range.
9846 For other cases, make two separate ranges,
9847 one for the original specified characters and one for
9848 their case-conversions.
9849
98502002-09-04 Richard M. Stallman <rms@gnu.org>
9851
9852 * s/sol2-5.h (UNEXEC): Use unexsol.o.
9853
9854 * window.c (displayed_window_lines): Correct for one-off bug
9855 in HEIGHT on non-window displays.
9856
9857 * regex.c (set_image_of_range_1): New function.
9858 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
9859 Return a value to indicate running out of memory.
9860 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
9861 (extend_range_table_work_area): New subroutine.
9862 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
9863 Different calling conventions, and used from set_image_of_range{,_1}.
9864 (IMMEDIATE_QUIT_CHECK): Definitions moved.
9865
98662002-09-04 Juanma Barranquero <lektu@terra.es>
9867
9868 * makefile.w32-in: All dependencies updated.
9869
98702002-09-01 Richard M. Stallman <rms@gnu.org>
9871
9872 * unexsol.c: New file.
9873
9874 * xfns.c (Qbox): Declare external, don't define.
9875
9876 * xdisp.c (redisplay_window) <force-start case>:
9877 If point is on semi-visible last line, reposition
9878 it at previous line.
9879
9880 * alloc.c (display_malloc_warning): Use display-warning.
9881 (malloc_warning_1): Function deleted.
9882
9883 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
9884
9885 * lread.c (read1): Handle #! by skipping the line.
9886
98872002-08-31 Richard M. Stallman <rms@gnu.org>
9888
9889 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
9890 Don't include LDFLAGS.
9891 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
9892
98932002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
9894
9895 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
9896 member of x_display_info unless we compile for some window system.
9897
98982002-08-31 Kim F. Storm <storm@cua.dk>
9899
9900 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
9901 (get_window_cursor_type): Don't use them.
9902 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
9903
99042002-08-30 Kenichi Handa <handa@etl.go.jp>
9905
9906 * xdisp.c (get_next_display_element): Fix previous change.
9907
99082002-08-30 Andrew Choi <akochoi@shaw.ca>
9909
9910 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
9911 (expose_window): Use it to fix the display of overlapping
9912 rows (merge code from xterm.c).
9913
9914 * macfns.c (Qbox): Add extern declaration.
9915
99162002-08-30 Juanma Barranquero <lektu@terra.es>
9917
9918 * w32fns.c (Qbox): Make extern.
9919 (syms_of_w32fns): Remove initialization of Qbox.
9920
99212002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
9922
9923 * xfns.c (Fx_open_connection): Fix error message.
9924
99252002-08-30 Kim F. Storm <storm@cua.dk>
9926
9927 The following changes consolidates the handling of the cursor
9928 type in xdisp.c, moving duplicate code and functionality from
9929 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
9930
9931 * frame.h (enum text_cursor_kinds): Consolidated here.
9932 Added DEFAULT_CURSOR value.
9933 (struct frame) <desired_cursor, cursor_width>
9934 <blink_off_cursor, blink_off_cursor_width>: New fields.
9935 Consolidated from output_x, output_w32 and output_mac structs.
9936 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
9937 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
9938
9939 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
9940 Variables consolidated here.
9941 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
9942 (Vcursor_in_non_selected_windows): Renamed from
9943 cursor_in_non_selected_windows and changed to Lisp_Object.
9944 (syms_of_xdisp): Define and staticpro new and moved variables.
9945 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
9946 consolidated here. Recognize Qhollow setting.
9947 (set_frame_cursor_types): New function to set frame cursor types
9948 based on the frame parameters.
9949 (get_window_cursor_type): New function to calculate new cursor
9950 type and width for the specified window. Based on duplicated
9951 code consolidated here.
9952 Enhancements: cursor-in-non-selected-windows may be a cursor type,
9953 check buffer-local alternate-cursor-type and blink-cursor-alist
9954 before using built-in blink off methods.
9955
9956 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
9957
9958 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
9959 (get_specified_cursor_type, get_window_cursor_type)
9960 (set_frame_cursor_types): Added prototypes.
9961
9962 * macfns.c (x_specified_cursor_type): Removed.
9963 (x_set_cursor_type): Use set_frame_cursor_types.
9964 (Qbar, Qbox): Removed.
9965 (syms_of_macfns): Don't intern or staticpro them.
9966
9967 * macterm.c (x_specified_cursor_type): Remove prototype.
9968 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
9969 (x_display_and_set_cursor): Use get_window_cursor_type.
9970 Remove unused local variables cursor_non_selected, active_cursor.
9971 Redraw cursor if hbar cursor width changes.
9972 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
9973
9974 * macterm.h (enum text_cursor_kinds): Removed.
9975 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
9976 <blink_off_cursor, blink_off_cursor_width>: Members removed.
9977 (FRAME_DESIRED_CURSOR): Macro removed.
9978
9979 * w32fns.c (Vblink_cursor_alist): Removed.
9980 (Qbar, Qhbar, Qbox, Qhollow): Removed.
9981 (syms_of_w32fns): Don't intern, staticpro, or define them.
9982 (x_specified_cursor_type): Removed.
9983 (x_set_cursor_type): Use set_frame_cursor_types.
9984
9985 * w32term.c (x_specified_cursor_type): Remove prototype.
9986 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
9987 (x_display_and_set_cursor): Use get_window_cursor_type.
9988 Remove unused local variables cursor_off_state.
9989 Redraw cursor if hbar cursor width changes.
9990 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
9991
9992 * w32term.h (enum text_cursor_kinds): Removed.
9993 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
9994 <blink_off_cursor, blink_off_cursor_width>: Members removed.
9995 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
9996 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
9997 (struct w32_display_info) <x_highlight_frame>: Renamed member from
9998 w32_highlight_frame.
9999
10000 * xfns.c (Vblink_cursor_alist): Removed.
10001 (Qbar, Qhbar, Qbox, Qhollow): Removed.
10002 (syms_of_xfns): Don't intern, staticpro, or define them.
10003 (x_specified_cursor_type): Removed.
10004 (x_set_cursor_type): Use set_frame_cursor_types.
10005
10006 * xterm.c (x_specified_cursor_type): Remove prototype.
10007 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
10008 (x_display_and_set_cursor): Use get_window_cursor_type.
10009 Remove unused local variables cursor_off_state.
10010 Redraw cursor if hbar cursor width changes.
10011
10012 * xterm.h (enum text_cursor_kinds): Removed.
10013 (struct output_x) <current_cursor, desired_cursor, cursor_width>
10014 <blink_off_cursor, blink_off_cursor_width>: Members removed.
10015 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
10016 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
10017 (x_specified_cursor_type): Remove prototype.
10018
100192002-08-28 Richard M. Stallman <rms@gnu.org>
10020
10021 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
10022 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
10023 (Vblink_cursor_alist): New variable.
10024 (syms_of_w32fns): Initialize and defvar it.
10025 (x_specified_cursor_type): Recognize Qbox for filled box.
10026 Exceptions are hollow boxes.
10027 (Qbox, Qhollow): New variables.
10028 (syms_of_w32fns): Initialize and staticpro them.
10029
10030 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
10031 New macros.
10032 (struct w32_output): New fields blink_off_cursor,
10033 blink_off_cursor_width.
10034 (FRAME_CURSOR_WIDTH): New macro.
10035
10036 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
10037 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
10038
10039 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
10040 for bar cursor.
10041
10042 * w32term.c (expose_overlaps): New function.
10043 (expose_window): Use it to fix the display of overlapping rows.
10044
100452002-08-28 Simon Josefsson <jas@extundo.com>
10046
10047 * xfns.c (Fx_open_connection): Improve help when X connection
10048 fails, xhost is insecure and xauth is better.
10049
100502002-08-28 Juanma Barranquero <lektu@terra.es>
10051
10052 * makefile.w32-in: Add missing dependencies on w32term.h and
10053 composite.h.
10054
10055 * emacs.c (USAGE1): Add missing newline.
10056
100572002-08-27 Andrew Choi <akochoi@shaw.ca>
10058
10059 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
10060
100612002-08-27 Richard M. Stallman <rms@gnu.org>
10062
10063 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
10064 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
10065 (Vblink_cursor_alist): New variable.
10066 (syms_of_xfns): Initialize and defvar it.
10067 (x_specified_cursor_type): Recognize Qbox for filled box.
10068 Exceptions are hollow boxes.
10069 (Qbox, Qhollow): New variables.
10070 (syms_of_xfns): Initialize and staticpro them.
10071
10072 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
10073 New macros.
10074 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
10075
10076 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
10077 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
10078
10079 * emacs.c (main): Handle --script.
10080 (USAGE1): Mention --script.
10081 (standard_args): Define sort order for --script.
10082
100832002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
10084
10085 * xdisp.c (redisplay_updating_p): Variable removed.
10086 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
10087 New variables.
10088 (init_iterator): Don't free realized faces if
10089 inhibit_free_realized_faces is set.
10090 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
10091 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
10092 initialize Qinhibit_free_realized_faces.
10093
10094 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
10095 when iterator is adding glyphs to a glyph matrix.
10096
100972002-08-27 Kenichi Handa <handa@etl.go.jp>
10098
10099 * xdisp.c (get_next_display_element): In unibyte case, don't use
10100 octal form for such eight-bit characters that can be converted to
10101 multibyte char.
10102
101032002-08-26 Kim F. Storm <storm@cua.dk>
10104
10105 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize foreground
10106 and background colors. From Joe Buehler (tiny change).
10107
101082002-08-26 Miles Bader <miles@gnu.org>
10109
10110 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
10111
101122002-08-25 Andrew Choi <akochoi@shaw.ca>
10113
10114 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
10115 defined instead of MAC_OSX.
10116
10117 * s/darwin.h (select): Define select to sys_select only if
10118 HAVE_CARBON is defined.
10119 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
10120 (DONT_REOPEN_PTY): #def it.
10121
10122 * macterm.c (XTread_socket): Remove code to call
10123 SendEventToEventTarget for keys with command modifiers when
10124 mac_command_key_is_meta is nil.
10125
101262002-08-24 Andreas Schwab <schwab@suse.de>
10127
10128 * eval.c (Fdefvar): Fix last change.
10129
101302002-08-23 Richard M. Stallman <rms@gnu.org>
10131
10132 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
10133 Record variables in load history as (defvar . VAR).
10134 (Fdefvar): Don't record in load history if no initial value.
10135 (Qdefvar): New variable.
10136 (syms_of_eval): Init and staticpro it.
10137
10138 * lread.c (syms_of_lread): Doc fix.
10139 (build_load_history): Use Fmember to see if a definition
10140 is already in the Vload_history element.
10141
10142 * process.c (Fstart_process): Remove /: from program name.
10143
10144 * emacs.c (decode_env_path): Don't add /: if file name handler
10145 has a `safe-magic' property.
10146
10147 * callproc.c (Fcall_process): Remove /: from program name.
10148
101492002-08-23 Stefan Monnier <monnier@cs.yale.edu>
10150
10151 * regex.c (PATFETCH): Remove the translating fetch.
10152 (PATFETCH_RAW): Rename to PATFETCH.
10153 (set_image_of_range): New fun.
10154 (SET_RANGE_TABLE_WORK_AREA): Use it.
10155 (regex_compile): Don't translate the pattern chars so eagerly.
10156 Only do it when inserting an `exactn' bytecode or when handling
10157 a char-range.
10158 (mutually_exclusive_p): Avoid empty statement.
10159
101602002-08-22 Kim F. Storm <storm@cua.dk>
10161
10162 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
10163 end up on a partially visible line; this reverts a specific part
10164 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
10165 display error which has been reported several times now.
10166 However it introduces the problem that changes was supposed to fix.
10167 See my comments in the source if you want to debug this further.
10168
101692002-08-20 Kenichi Handa <handa@etl.go.jp>
10170
10171 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
10172
101732002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
10174
10175 * msdos.c (croak): Add `void' to definition.
10176
c1380aa6 10177 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
048addec
JD
10178 Don't define them, they are defined in msdos.c.
10179
10180 * mem-limits.h [MSDOS]: Declare etext.
10181
10182 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
10183 `const' since CORRECT_DIR_SEPS modifies its target.
10184
101852002-08-19 Kim F. Storm <storm@cua.dk>
10186
2fb0ce67 10187 * keyboard.c (Fclear_this_command_keys): Add optional arg
048addec
JD
10188 KEEP-RECORD to avoid clearing lossage when we just want to clear
10189 the current key sequence (kmacro needs this).
10190
101912002-08-19 Kenichi Handa <handa@localhost>
10192
10193 * composite.c (run_composition_function): Call FUNC if it is fboundp.
10194
10195 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
10196 cons, return Qnil.
10197
101982002-08-17 Richard M. Stallman <rms@gnu.org>
10199
10200 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
10201
10202 * sysdep.c [!VMS]: Include sys/files.h.
10203
10204 * editfns.c (save_restriction_restore): Defend from unchained marker.
10205
10206 * buffer.c (overlays_at): Handle extending vec uniformly.
10207 (overlays_in): Handle extending vec from length 0 as in overlays_at.
10208
102092002-08-15 Andrew Choi <akochoi@shaw.ca>
10210
10211 * mac.c (init_mac_osx_environment): New function.
10212
10213 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
10214
102152002-08-14 Kim F. Storm <storm@cua.dk>
10216
10217 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
10218 executing macro before appending to it (when used from Lisp).
10219 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
10220 which is called prior to each iteration of macro (for kmacro.el).
10221 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
10222
10223 * lisp.h (Fexecute_kbd_macro): Update prototype.
10224
10225 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
10226
102272002-08-14 Kenichi Handa <handa@etl.go.jp>
10228
10229 * xselect.c (QUTF8_STRING): New variable.
10230 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
10231 (x_atom_to_symbol): Likewise.
10232 (x_get_local_selection): New argument local_request. If it is
10233 nonzero, call handler_fn with the second arg nil.
10234 (x_handle_selection_request): Call x_get_local_selection with
10235 local_request 0.
10236 (lisp_data_to_selection_data): Don't encode the string here.
10237 (Fx_get_selection_internal): Call x_get_local_selection with
10238 local_request 1.
10239 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
10240
10241 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
10242
10243 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
10244
102452002-08-13 Richard M. Stallman <rms@gnu.org>
10246
10247 * minibuf.c (Fminibufferp): New function.
10248 (syms_of_minibuf): Defsubr it.
10249 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
10250
102512002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
10252
10253 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
10254
102552002-08-12 Richard M. Stallman <rms@gnu.org>
10256
10257 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
10258 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
10259 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
10260 already.
10261
10262 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
10263
102642002-08-11 Andrew Choi <akochoi@shaw.ca>
10265
10266 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
10267 (Vmac_pass_command_to_system): New variable.
10268 (Vmac_pass_control_to_system): New variable.
10269 (do_mouse_moved): Check wp with is_emacs_window.
10270 (XTread_socket): Check window_ptr with is_emacs_window.
10271 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
10272 events back to Mac Toolbox for processing, depending on values of
10273 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
10274 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
10275 Vmac_pass_control_to_system.
10276
102772002-08-10 Kenichi Handa <handa@etl.go.jp>
10278
10279 * coding.c (unencodable_char_position): New function.
10280 (Funencodable_char_position): New function.
10281 (syms_of_coding): Defsubr Funencodable_char_position.
10282
102832002-08-10 Andrew Choi <akochoi@shaw.ca>
10284
10285 * mac.c (sys_select) [MAC_OSX]: New function.
10286
10287 * macterm.c (MakeMeTheFrontProcess): New function.
10288 (mac_initialize): Call MakeMeTheFrontProcess.
10289
10290 * s/darwin.h: Define select to sys_select.
10291
102922002-08-09 Richard M. Stallman <rms@gnu.org>
10293
10294 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
10295
102962002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
10297
10298 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
10299 end of the buffer.
10300
103012002-08-08 Ken Raeburn <raeburn@mit.edu>
10302
10303 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
10304
10305 * puresize.h (BASE_PURESIZE): Increase to 910000.
10306
103072002-08-08 Kenichi Handa <handa@etl.go.jp>
10308
10309 * coding.c (Ffind_operation_coding_system): For write-region, if
10310 VISIT is a filename, make it the target.
10311
103122002-08-07 Richard M. Stallman <rms@gnu.org>
10313
10314 * alloc.c (mark_object): Detect long lists for debugging.
10315 (mark_object_loop_halt): New variable.
10316
10317 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
10318
10319 * data.c (Fmake_variable_frame_local): Doc fix.
10320
103212002-08-01 David Ponce <david@dponce.com>
10322
10323 * w32menu.c (local_heap, local_alloc, local_free): New macros.
10324 (malloc_widget_value, free_widget_value)
10325 (w32_free_submenu_strings): Use them.
10326
10327 (push_submenu_start, push_submenu_end, push_left_right_boundary)
10328 (push_menu_pane, push_menu_item, single_keymap_panes)
10329 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
10330 (single_submenu, set_frame_menubar)
10331 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
10332
10333 (Fx_popup_menu): Don't show pop up menu until preceding one is
10334 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
10335
10336 * w32menu.c: Changes adapted from xmenu.c
10337 (set_frame_menubar): First parse all submenus,
10338 then make widget_value trees from them.
10339 Don't allocate any widget_value objects
10340 until we are done with the parsing.
10341 (parse_single_submenu): New function.
10342 (digest_single_submenu): New function.
10343 (single_submenu): Function deleted, replaced by those two.
10344
103452002-08-04 Andrew Choi <akochoi@shaw.ca>
10346
10347 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
10348 returns a valid window pointer before proceeding for keyDown and
10349 autoKey events.
10350
103512002-08-03 Andrew Choi <akochoi@shaw.ca>
10352
10353 * macterm.c (USE_CARBON_EVENTS): New macro.
10354 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
10355 (x_iconify_frame): Call CollapseWindow.
10356 (Vmac_reverse_ctrl_meta): New variable.
10357 (Vmac_wheel_button_is_mouse_2): New variable.
10358 (init_mac_drag_n_drop): New function.
10359 (mac_do_receive_drag): New function.
10360 (mac_handle_service_event): New function.
10361 (init_service_handler): New function.
10362 (mac_to_emacs_modifiers): New function.
10363 (mac_event_to_emacs_modifiers): New function.
10364 (mac_get_mouse_btn): New function.
10365 (mac_convert_event_ref): New function.
10366 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
10367 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
10368 mac_get_mouse_btn.
10369 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
10370
10371 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
10372 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
10373 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
10374 TOOL_BAR_EVENT for MAC_OS as well.
10375 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
10376 as for WINDOWS_NT.
10377 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
10378
10379 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
10380
103812002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
10382
10383 * xdisp.c (forward_to_next_line_start): Fix a condition that
10384 lead to a newline being skipped.
10385
103862002-08-02 Andrew Choi <akochoi@shaw.ca>
10387
10388 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
10389
103902002-08-01 Richard M. Stallman <rms@gnu.org>
10391
10392 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
10393
103942002-07-31 Andrew Choi <akochoi@shaw.ca>
10395
10396 * macfns.c: #undef init_process before #define-ing it.
10397
10398 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
10399 HAVE_CARBON is defined.
10400
104012002-07-31 Richard M. Stallman <rms@gnu.org>
10402
10403 * xmenu.c (set_frame_menubar): First parse all submenus,
10404 then make widget_value trees from them.
10405 Don't allocate any widget_value objects
10406 until we are done with the parsing.
10407 (parse_single_submenu): New function.
10408 (digest_single_submenu): New function.
10409 (single_submenu): Function deleted, replaced by those two.
10410
104112002-07-30 Juanma Barranquero <lektu@terra.es>
10412
10413 * w32proc.c (syms_of_ntproc): Fix docstring of
10414 `w32-get-true-file-attributes'.
10415
104162002-07-28 Richard M. Stallman <rms@gnu.org>
10417
10418 * s/hpux8.h (HPUX8): Define this before including hpux.h.
10419 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
10420
10421 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
10422
10423 * keyboard.c (make_lispy_event):
10424 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
10425 Explicitly clear up_modifier in event->modifiers.
10426
104272002-07-27 Richard M. Stallman <rms@gnu.org>
10428
10429 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
10430
10431 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
10432 for bar cursor.
10433
104342002-07-26 Kenichi Handa <handa@etl.go.jp>
10435
10436 * coding.c (detect_coding_iso2022): While checking a byte sequence
10437 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
10438 it in the normal loop.
10439
104402002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
10441
10442 * xterm.c (expose_overlaps): New function.
10443 (expose_window): Use it to fix the display of overlapping rows.
10444
10445 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
10446
104472002-07-23 Ken Raeburn <raeburn@gnu.org>
10448
10449 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
10450 since it only depends on XUINT.
10451
10452 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
10453 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
10454 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
10455 Macros deleted.
3947677c 10456
77d1daf2
AS
10457 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
10458 its value over other approaches.
10459 * sysdep.c (start_of_data): Don't define the function if a macro
10460 form has been defined.
8a8e19a3 10461
048addec
JD
104622002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
10463
10464 * xdisp.c (redisplay_updating_p): New variable.
10465 (init_iterator): Don't free realized faces when
10466 redisplay_updating_p is set.
10467 (redisplay_internal): Set redisplay_updating_p while updating
10468 the display.
10469
104702002-07-23 Richard M. Stallman <rms@gnu.org>
10471
10472 * editfns.c (Fmessage): Treat "" like nil.
10473
104742002-07-23 Kenichi Handa <handa@etl.go.jp>
10475
10476 * xdisp.c (face_before_or_after_it_pos):
10477 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
10478
104792002-07-22 Juanma Barranquero <lektu@terra.es>
10480
10481 * callproc.c (init_callproc) [DOS_NT]:
10482 Initialize Vshared_game_score_directory to nil.
10483 (syms_of_callproc) [DOS_NT]: Likewise.
10484
104852002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
10486
10487 * xdisp.c (display_line): Replace an abort with xassert.
10488
104892002-07-21 Richard M. Stallman <rms@gnu.org>
10490
10491 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
10492 and END_UNCHANGED when setting buffer_unchanged_p.
10493 Use current_matrix_up_to_date_p to decide whether to use
10494 try_cursor_movement.
10495
10496 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
10497
10498 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
10499
10500 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
10501 Set to nil if dir does not exist.
10502 (syms_of_callproc): Init unconditionally and simply.
10503
10504 * buffer.c (Fbuffer_list): Doc fix.
10505
105062002-07-21 Ken Raeburn <raeburn@gnu.org>
10507
10508 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
10509
10510 * buffer.c (mmap_realloc): When shrinking, make sure number of
10511 pages to unmap is rounded towards zero.
10512
10513 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
10514 (XSETINT): Deleted.
10515
10516 * m/att3b.h (XINT): Don't define.
10517 (VALBITS, VALMASK, XTYPE): Deleted.
10518 (DATA_SEG_BITS): Define.
10519 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
10520 ARRAY_MARK_FLAG): Deleted.
10521 (DATA_SEG_BITS): Define.
10522 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
10523 (DATA_SEG_BITS): Define.
10524
105252002-07-20 Richard M. Stallman <rms@gnu.org>
10526
10527 * print.c (print_error_message): New args CONTEXT and CALLER.
10528 Calls changed.
10529
10530 * lisp.h (print_error_message): Declare new args.
10531
10532 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
10533 and CONTEXT to print_error_message, don't print them here.
10534 For a Quit, don't use Vsignaling_function.
10535 Call message_log_maybe_newline.
10536
10537 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
10538
105392002-07-20 Kim F. Storm <storm@cua.dk>
10540
10541 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
10542
105432002-07-19 Ken Raeburn <raeburn@gnu.org>
10544
10545 * bytecode.c (struct byte_stack): Pointers into byte string now
10546 point to const.
10547 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
10548 const.
10549 * charset.h (BCOPY_SHORT): Source pointer now points to const.
10550 * coding.c (encode_eol, detect_coding, detect_eol):
10551 (decode_coding, encode_coding, detect_coding_system):
10552 Source strings now treated as const.
10553 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
10554 modify Lisp string contents.
10555 * coding.h (decode_coding, encode_coding, detect_coding,
10556 detect_eol): Declarations updated.
10557 * composite.c (compose_chars_in_text): Treat Lisp string contents
10558 as const.
10559 * dispnew.c (safe_bcopy): Source pointer now points to const.
10560 * lisp.h (STRING_COPYIN): New macro.
10561 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
10562 (internal_with_output_to_temp_buffer): Declarations updated.
10563 * print.c (temp_output_buffer_setup):
10564 (internal_with_output_to_temp_buffer): Buffer name argument is now
10565 pointer to const.
10566 * sound.c (struct sound_device): Function pointer field "write"
10567 buffer argument now points to const.
10568 (vox_write): Buffer argument points to const.
10569 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
10570 contents as const.
10571 * sysdep.c (emacs_write): Buffer pointer now const.
10572 * term.c (encode_terminal_code): Buffer pointer now const.
10573 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
10574 (x_face_list_fonts, x_update_menu_appearance):
10575 (hash_string_case_insensitive): Treat Lisp string contents as const.
10576
105772002-07-19 Juanma Barranquero <lektu@terra.es>
10578
048addec
JD
10579 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
10580
10581 * fileio.c (syms_of_fileio): Likewise.
c62aec78
JB
10582 (Ffile_name_as_directory): Fix argument name in docstring.
10583 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
048addec
JD
10584
105852002-07-18 Richard M. Stallman <rms@gnu.org>
10586
10587 * data.c (Fdefalias): Doc fix.
10588
105892002-07-17 Dave Love <fx@gnu.org>
10590
10591 * intervals.h (text_property_stickiness): Use P_.
10592
10593 * ccl.c: Remove `emacs' conditionals.
10594 (ccl_backtrace_table): Fix size spec.
10595 (ccl_driver): Fix type errors.
10596
105972002-07-16 Ken Raeburn <raeburn@gnu.org>
10598
10599 * alloc.c (xstrdup, make_string, make_unibyte_string)
10600 (make_multibyte_string, build_string): String pointer args now
10601 point to const.
10602 * charset.c (find_charset_in_text, c_string_width):
10603 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
10604 * fileio.c (report_file_error):
10605 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
10606 (count_combining_before, count_combining_after, insert_1_both):
10607 (insert, insert_and_inherit, insert_string):
10608 (insert_before_markers, insert_before_markers_and_inherit):
10609 * lread.c (intern, oblookup, hash_string):
10610 * minibuf.c (temp_echo_area_glyphs):
10611 * search.c (fast_c_string_match_ignore_case):
10612 * sysdep.c (emacs_open, set_file_times):
10613 * xfaces.c (xstricmp):
10614 * xdisp.c (store_frame_title, string_char_and_length):
10615 (message_dolog, message2, message2_nolog, set_message): Likewise.
10616 (set_message_1): Cast message string argument to const pointer.
10617 * editfns.c (general_insert_function): Insertion function now
10618 takes pointer to const for input data.
10619 * charset.h (find_charset_in_text, c_string_width):
10620 (parse_str_as_multibyte): Declarations updated.
10621 * dispextern.h (xstricmp): Declaration updated.
10622 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
10623 (count_size_as_multibyte, count_combining_before):
10624 (count_combining_after, insert_1, insert_1_both, message_dolog):
10625 (insert, insert_and_inherit, insert_before_markers)
10626 (insert_before_markers_and_inherit, set_message, message2):
10627 (message2_dolog, build_string, make_string, make_unibyte_string):
10628 (make_multibyte_string, intern, oblookup, report_file_error):
10629 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
10630 (emacs_open, xstrdup): Declarations updated.
10631 * systime.h (set_file_times): Declaration updated.
10632
10633 * charset.c (find_charset_in_text, lisp_string_width): Use const
10634 for pointer to lisp string data.
10635 * charset.h (FETCH_STRING_CHAR_ADVANCE):
10636 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
10637 * coding.c (Ffind_coding_systems_region_interval):
10638 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
10639 (Fmake_directory_internal, Fdelete_directory):
10640 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
10641 * fontset.c (font_family_registry, fs_query_fontset):
10642 (list_fontsets):
10643 * frame.c (Fframe_parameter):
10644 * keyboard.c (cmd_error_internal):
10645 * keymap.c (Fdescribe_buffer_bindings):
10646 * lread.c (complete_filename_p, openp):
10647 * minibuf.c (Fminibuffer_complete_word):
10648 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
10649 (face_before_or_after_it_pos, next_element_from_string):
10650 (get_overlay_arrow_glyph_row, display_mode_element):
10651 (decode_mode_spec_coding):
10652 * xterm.c (same_x_server): Likewise.
10653
10654 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
10655 settings of non-existent fields.
10656
10657 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
10658 copy a lisp value.
10659
10660 * lread.c (Fintern_soft): Use string macros instead of
10661 Lisp_String fields.
10662 * keyboard.c (echo_char, parse_modifiers_uncached):
10663 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
10664 * textprop.c (validate_interval_range, interval_of): Likewise.
10665
10666 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
10667
10668 * charset.h (FETCH_STRING_CHAR_ADVANCE)
10669 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
10670 XSTRING()->size_byte.
10671
10672 * lisp.h (SDATA, SREF): Produce rvalue.
10673 (SSET): New macro.
10674 * alloc.c (make_event_array): Use SSET for storing into a string.
10675 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
10676 a string.
10677 * casefiddle.c (casify_object): Use SSET.
10678 * charset.h (FETCH_STRING_CHAR_ADVANCE)
10679 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
10680 address of string contents.
10681 * data.c (Faref): Use SDATA.
10682 (Faset): Use SDATA, SSET.
10683 * dired.c (directory_files_internal): Use SSET.
10684 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
10685 (Fread_file_name): Use SREF, SSET.
10686 * fns.c (concat): Use SSET.
10687 (concat, Fdelete): Use SDATA.
10688 * insdel.c (insert_from_string_1): Use SDATA.
10689 * keyboard.c (Fevent_convert_list): Use SREF.
10690 * lread.c (Fload): Use SDATA, SSET.
10691 * macfns.c (validate_x_resource_name): Use SSET.
10692 * process.c (status_message): Use SSET.
10693 * search.c (wordify): Use SDATA.
10694 (Freplace_match): Use SREF.
10695 * w32fns.c (validate_x_resource_name): Use SSET.
10696 * xfns.c (validate_x_resource_name): Use SSET.
10697 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
10698
106992002-07-16 Richard M. Stallman <rms@gnu.org>
10700
10701 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
10702
10703 * xdisp.c (reconsider_clip_changes):
10704 Don't test prevent_redisplay_optimizations_p.
10705 (redisplay_internal): Test prevent_redisplay_optimizations_p
10706 along with clip_changed in some cases.
10707 (try_window_id): Likewise.
10708 (redisplay_window): New local var buffer_unchanged_p.
10709
10710 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
10711
10712 * process.c (create_process): Test USG_SUBTTY_WORKS.
10713 (process_send_signal): Clean up handling of GID.
10714 Detect errors in ioctls meant to set GID.
10715
10716 * window.c (temp_output_buffer_show):
10717 Don't set prevent_redisplay_optimizations_p.
10718
107192002-07-15 Juanma Barranquero <lektu@terra.es>
10720
10721 * eval.c (Fdefvaralias): Add docstring argument.
10722
107232002-07-15 Ken Raeburn <raeburn@gnu.org>
10724
10725 * lisp.h (STRING_INTERVALS): Produce rvalue.
10726 (STRING_SET_INTERVALS): New macro.
10727 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
10728 * fns.c (Fstring_as_multibyte): Likewise.
10729 * intervals.c (balance_possible_root_interval, delete_interval)
10730 (create_root_interval, copy_intervals_to_string): Likewise.
10731 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
10732 instead of 0.
10733
107342002-07-14 Ken Raeburn <raeburn@gnu.org>
10735
10736 * lisp.h (STRING_SET_CHARS): New macro.
10737 (SCHARS, SBYTES): Produce rvalues.
10738 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
10739 * fns.c (concat): Likewise.
10740 * lread.c (read_vector): Likewise.
10741
10742 * lisp.h (SMBP): Deleted. All uses changed to STRING_MULTIBYTE.
10743 (STRING_SET_UNIBYTE): New macro.
10744 (SET_STRING_BYTES): Deleted. Callers (all of which supplied a
10745 length of -1) changed to use STRING_SET_UNIBYTE.
10746 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
10747 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
10748 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
10749 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
10750 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
10751 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
10752 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
10753 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
10754 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
10755 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
10756 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
10757 STRING_BYTES or indirection changed to SCHARS, SBYTES,
10758 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
10759 unchanged for now.
10760
107612002-07-13 Kim F. Storm <storm@cua.dk>
10762
10763 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
10764
107652002-07-12 Richard M. Stallman <rms@gnu.org>
10766
10767 * fileio.c (Fwrite_region): Doc fix.
10768
10769 * print.c (print_error_message): Don't handle Vsignaling_function here.
10770
10771 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
10772 (command_loop_1): Avoid certain actions after memory-full error.
10773
10774 * eval.c (Fsignal): Don't call cancel_hourglass.
10775 For a memory-full error, don't call Vsignal_hook_function
10776 and don't set Vsignaling_function.
10777
10778 * process.c (process_send_signal): Add abort call.
10779
107802002-07-11 Markus Rost <rost@math.ohio-state.edu>
10781
10782 * keymap.c (Fkey_binding): Fix typo.
10783
107842002-07-11 Richard M. Stallman <rms@gnu.org>
10785
10786 * alloc.c (Vmemory_full): New variable.
10787 (Vmemory_signal_data): Renamed from memory_signal_data.
10788 Uses changed.
10789 (syms_of_alloc): Defvar them.
10790 (memory_full, buffer_memory_full): Set Vmemory_full.
10791
10792 * lisp.h (Vmemory_full): Add declaration.
10793 (current_column, indented_beyond_p): Change declaration.
10794
10795 * indent.c (last_known_column): Declare as double, not float.
10796 (current_column, current_column_1, string_display_width)
10797 (position_indentation): Return `double'.
10798 (indented_beyond_p): Arg `column' is `double'. Callers changed.
10799
10800 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
10801 (back_to_previous_visible_line_start)
10802 (reseat_at_next_visible_line_start, next_element_from_buffer):
10803 Use `double', not `float', when calling indented_beyond_p.
10804
10805 * s/hpux11.h (BROKEN_SA_RESTART): Defined.
10806
10807 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
10808
108092002-07-11 Juanma Barranquero <lektu@terra.es>
10810
10811 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
f9711de4
JB
10812 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
10813 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
10814 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
10815 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
10816 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
048addec
JD
10817
108182002-07-10 Juanma Barranquero <lektu@terra.es>
10819
d814862a
JB
10820 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
10821 All callers changed.
048addec
JD
10822
108232002-07-09 Stefan Monnier <monnier@cs.yale.edu>
10824
10825 * data.c (Fdefalias): Add an optional `docstring' argument.
10826 (set_internal, Fsetq_default): Use XCAR/XCDR.
10827
10828 * composite.c (HASH_VALUE, HASH_KEY):
10829 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
10830
108312002-07-09 Kenichi Handa <handa@etl.go.jp>
10832
10833 * callproc.c (Fcall_process): Fix previous change.
10834
108352002-07-07 Stefan Monnier <monnier@cs.yale.edu>
10836
10837 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
10838 Add support for hash-tables.
10839 (Ftry_completion): Return t even if the string appears multiple times.
10840
10841 * fns.c (Fnconc): Use XCDR.
10842 (Fprovide): Use CONSP and XCDR.
10843 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
10844 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
10845 (Fmake_hash_table): Accept `:size nil'.
10846 (Fmakehash): Delete: moved to subr.el.
10847 (syms_of_fns): Don't defsubr makehash.
10848
10849 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
10850 (HASH_TABLE_SIZE): Move from fns.c.
10851
108522002-07-07 Richard M. Stallman <rms@gnu.org>
10853
10854 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
10855 Instead just return 0 when there is something to be done.
10856 (try_scrolling): If make_cursor_line_fully_visible returns 0,
10857 retry scrolling as if cursor were off the bottom.
10858 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
10859 return CURSOR_MOVEMENT_MUST_SCROLL.
10860 (redisplay_window): If make_cursor_line_fully_visible returns 0,
10861 go to try_to_scroll.
10862
10863 * buffer.c (Fbuffer_local_value): Store current value into its binding
10864 so we get the up-to-date value for the binding that is loaded.
10865
10866 * eval.c (Fdefmacro): Doc fix.
10867
108682002-07-05 Dave Love <fx@gnu.org>
10869
10870 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
10871 correctly.
10872
10873 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
10874 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
10875 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
10876 CCL_LookupCharConstTbl.
10877 (syms_of_ccl): Defvar translation-hash-table-vector.
10878
108792002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10880
10881 * xdisp.c: Remove unused variable `face'.
10882
108832002-07-04 Juanma Barranquero <lektu@terra.es>
10884
10885 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
10886 obsolescence information.
10887
108882002-07-03 Andrew Choi <akochoi@shaw.ca>
10889
10890 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
10891 pattern. Search cache first.
10892 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
10893 for Japanese font.
10894 (XLoadQueryFont): Use it.
10895
108962002-07-02 Richard M. Stallman <rms@gnu.org>
10897
10898 * keymap.c (Fdefine_key): Doc fix.
10899
10900 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
10901
109022002-07-02 Juanma Barranquero <lektu@terra.es>
10903
10904 * keymap.c (syms_of_keymap): Fix typo.
10905
109062002-07-01 Andrew Choi <akochoi@shaw.ca>
10907
10908 * s/darwin.h: Define POSIX_SIGNALS.
10909
10910 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
10911 and FSRefMakePath to convert FSSpec returned with Apple Event to
10912 Posix pathname.
10913 (mac_initialize) [TARGET_API_MAC_CARBON]:
10914 Call init_required_apple_events and disable the `Quit' menu item
10915 provided automatically by the Carbon Toolbox.
10916
109172002-07-01 Dave Love <fx@gnu.org>
10918
10919 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
10920 for K&R.
10921
10922 * xterm.c: Fix prototype for K&R.
10923
10924 * term.c (costs_set): Declare static, non-initialized for pcc.
10925
109262002-07-01 Richard M. Stallman <rms@gnu.org>
10927
10928 * keyboard.c (timer_last_idleness_start_time): New variable.
10929 (timer_start_idle): Set that.
10930 (read_key_sequence): Use that to reset timer_idleness_start_time
10931 to previous value.
10932
10933 * window.c (Frecenter): With arg, set optional_new_start.
10934
10935 * xdisp.c (redisplay_internal): Make optional_new_start really work.
10936
10937 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
10938 buffer for completion.
10939
109402002-06-29 Ken Raeburn <raeburn@gnu.org>
10941
10942 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
10943
109442002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10945
10946 * keyboard.c (readable_filtered_events): New function that filters
10947 FOCUS_IN_EVENT depending on parameter.
10948 (readable_events): Calls readable_filtered_events, not filtering
10949 FOCUS_IN_EVENT.
10950 (get_filtered_input_pending): New function, filtering parameter passed
10951 to readable_filtered_events.
10952 (get_input_pending): Calls get_filtered_input_pending, not filtering
10953 FOCUS_IN_EVENT.
10954 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
10955 FOCUS_IN_EVENT.
10956
10957 * xterm.h (struct x_output): Add focus_state.
10958
10959 * xterm.c (x_focus_changed): New function.
10960 (x_detect_focus_change): New function.
10961 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
10962 EnterNotify and LeaveNotify to track X focus changes.
10963
109642002-06-28 Andreas Schwab <schwab@suse.de>
10965
10966 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
10967
109682002-06-27 Kim F. Storm <storm@cua.dk>
10969
10970 * xdisp.c: (mode_line_string_list, mode_line_string_face)
10971 (mode_line_string_face_prop): New variables.
10972 (store_mode_line_string): New function.
10973 (display_mode_element): Use store_mode_line_string to
10974 add mode-line string elements to mode_line_string_list
10975 when mode_line_string_list is non-nil.
10976 (Fformat_mode_line): Now returns propertized string by
10977 default. New arg NO-PROPS to ignore properties.
10978 (decode_mode_spec): Only add two dashes for %- in propertized
10979 mode-line string.
10980 (syms_of_xdisp): Init and staticpro mode_line_string_list.
10981
109822002-06-27 Stefan Monnier <monnier@cs.yale.edu>
10983
10984 * minibuf.c (minibuffer_completion_contents): Add return type.
10985
109862002-06-27 Juanma Barranquero <lektu@terra.es>
10987
10988 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
10989
109902002-06-26 Juanma Barranquero <lektu@terra.es>
10991
10992 * fileio.c (read_file_name_cleanup): Add missing return.
10993
109942002-06-26 Richard M. Stallman <rms@gnu.org>
10995
10996 * window.c (Frecenter): Don't set force_start flag.
10997
10998 * minibuf.c (do_completion, Fminibuffer_complete_word)
10999 (Fminibuffer_completion_help): Complete just the text before point.
11000 (minibuffer_completion_contents): New function.
11001
11002 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
11003
11004 * frame.c (frames_bury_buffer): Function deleted.
11005
110062002-06-25 Miles Bader <miles@gnu.org>
11007
11008 * callint.c (Fcall_interactively): When checking to see if doprnt hit
11009 the end of callint_message, allow for a terminating '\0'.
11010
110112002-06-24 Juanma Barranquero <lektu@terra.es>
11012
11013 * w32select.c: Include composite.h
11014
11015 * w16select.c: Likewise.
11016
110172002-06-24 Kenichi Handa <handa@etl.go.jp>
11018
11019 * callproc.c (Fcall_process): If code detection is necessary,
11020 call detect_coding directly here.
11021
11022 * coding.c (detect_eol): Preserve coding->cmp_data.
11023
11024 * w16select.c (Fw16_get_clipboard_data):
11025 * w32fns.c (w32_to_x_font):
11026 * w32select.c (Fw32_get_clipboard_data):
11027 * xselect.c (selection_data_to_lisp_data):
11028 * xterm.c (XTread_socket): Disable composition handling.
11029
110302002-06-24 Stefan Monnier <monnier@cs.yale.edu>
11031
11032 * print.c (temp_output_buffer_setup): Kill all local variables.
11033
110342002-06-22 Stefan Monnier <monnier@cs.yale.edu>
11035
11036 * lread.c (Fread): Remove redundant and imprecise declaration.
11037
11038 * xfns.c (check_x_display_info): Use check_x_frame.
11039
11040 * .gdbinit (xprintsym): Use the new `xname' field.
11041 (xsymbol): Use it.
11042
110432002-06-22 Jason Rumney <jasonr@gnu.org>
11044
11045 * w32fns.c (file_dialog_callback): New function.
11046 (Fx_file_dialog): Allow selecting directories as well as files.
11047
110482002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11049
11050 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
f63fd14e 11051 OpenBSD. Add support for mipseb-*-netbsd* machines.
048addec
JD
11052
110532002-06-17 Andrew Choi <akochoi@shaw.ca>
11054
11055 * macterm.c (mac_scroll_area): Set foreground and backcolor to
11056 black and white before scrolling. Restore frame background and
11057 foreground color after scrolling.
11058 (do_window_update): Call XClearWindow before calling expose_frame.
11059 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
11060 FRAME_FOREGROUND_PIXEL of frame.
11061
11062 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
11063 test Mac command key as <ALT> key.
11064
110652002-06-17 Stefan Monnier <monnier@cs.yale.edu>
11066
11067 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
11068
11069 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
11070 Lookup keys in function-key-map immediately so that key-translation-map
11071 can be applied earlier.
11072 Remove function_key_possible and key_translation_possible, replaced
11073 by checking `keytran_start < t'.
11074
11075 * .gdbinit (xsymbol): Use the new `xname' field.
11076
110772002-06-17 Andrew Choi <akochoi@shaw.ca>
11078
11079 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
11080 test Mac command key as <ALT> key.
11081
11082 * mac.c (do_applescript): Call initialize_applescript if necessary
11083 when first called. Dispose of result_desc only when there is no error.
11084 (Fdo_applescript): Use %d format specifier instead of %ld.
11085
110862002-06-16 Andrew Choi <akochoi@shaw.ca>
11087
11088 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
11089 of FrontWindow for cases keyDown and autoKey.
11090
11091 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
11092 Vdefault_fontset to Monaco with mac-roman coding.
11093
11094 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
11095 init_process before and after inclusion of Carbon/Carbon.h, resp.
11096
11097 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
11098 cursor_gc.
11099 (add_font_name_table_entry): New function.
11100 (init_font_name_table): Use add_font_name_table_entry; add italic,
11101 bold, and bold-italic entries for truetype fonts.
11102
11103 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
11104 for Mac too.
11105 (try_font_list) [MAC_OS]: If no font matches given registry, try
11106 fonts with any registry matching face_family.
11107 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
11108
11109 * s/darwin.h: If autoconf detects the Ncurses library, define
11110 LIBS_TERMCAP to -lncurses to use it.
11111
111122002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
11113
11114 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
11115
111162002-06-15 Richard M. Stallman <rms@gnu.org>
11117
11118 * window.c (Fset_window_configuration): Explicitly preserve
11119 the point value that new_current_buffer had at the start.
11120
111212002-06-14 Juanma Barranquero <lektu@terra.es>
11122
11123 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
11124 Fix typos.
11125
111262002-06-14 Kim F. Storm <storm@cua.dk>
11127
11128 * insdel.c (insert_1_both, insert_from_string_1)
11129 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
11130 insert happened in the end_unchanged region. Otherwise, the
11131 redisplay may be confused and duplicate the last line in the
11132 buffer [seen after save-buffer when require-final-newline==t].
11133
111342002-06-13 Jason Rumney <jasonr@gnu.org>
11135
11136 * w32.c (init_environment): Remove EMACSLOCKDIR.
11137 (stat): Swap _S_IFDIR and _S_IFREG.
11138
111392002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11140
11141 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
11142 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
11143 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
11144 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
11145 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
11146 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
11147 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
11148 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
11149 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
11150 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
11151 SELECTION_REQUEST_EVENT, selection_clear_event to
11152 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
11153 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
11154 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
11155 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
11156 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
11157 no_event to NO_EVENT.
11158
111592002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11160
11161 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
11162
111632002-06-12 Stefan Monnier <monnier@cs.yale.edu>
11164
11165 * intervals.c (textget): Don't forget to `return'.
11166 (lookup_char_property): Use XCAR/XCDR.
11167
111682002-06-12 Juanma Barranquero <lektu@terra.es>
11169
11170 * xdisp.c (Fformat_mode_line): Fix typo.
11171
111722002-06-12 Kim F. Storm <storm@cua.dk>
11173
11174 * xdisp.c (Fformat_mode_line): New function.
11175 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
11176 (store_frame_title_char, store_frame_title): Use unconditionally.
11177 (init_xdisp): Defsubr Fformat_mode_line.
11178 Initialize frame_title_buf etc. unconditionally.
11179
111802002-06-11 Stefan Monnier <monnier@cs.yale.edu>
11181
11182 * keyboard.c (read_key_sequence):
11183 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
11184 things through those maps after downcasing events.
11185 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
11186 applies after function-key-map.
11187 Make sure that keytran can be done in the middle in the sequence.
11188 Be careful not to throw away events past the one we downcase.
11189
11190 * lread.c (read_integer): Remove unused var `tem'.
11191 (read1): Fix int/Lisp_Object mixup.
11192
11193 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
11194
111952002-06-11 Richard M. Stallman <rms@gnu.org>
11196
11197 * keyboard.c (readable_events): Ignore any number of
11198 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
11199
112002002-06-09 Miles Bader <miles@gnu.org>
11201
11202 * xfaces.c (Ftty_supports_face_attributes_p): New function.
11203 (parse_rgb_list, tty_lookup_color): New functions.
11204 (tty_defined_color): Use `tty_lookup_color' to do all the work.
11205 (color_distance, Fcolor_distance): New functions.
11206 (TTY_SAME_COLOR_THRESHOLD): New macro.
11207 (Qtty_color_standard_values): New variable.
11208 (syms_of_xfaces): Initialize new vars & functions.
11209
112102002-06-08 Colin Walters <walters@verbum.org>
11211
11212 * textprop.c (Vchar_property_alias_alist): New variable.
11213 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
11214
11215 * intervals.c (lookup_char_property): New function for looking up
11216 overlay and text properties, created from textget.
11217 (textget): Use it.
11218
11219 * intervals.h (lookup_char_property): Declare.
11220 (Vchar_property_alias_alist): Declare.
11221
11222 * buffer.c (Foverlay_get): Use lookup_char_property.
11223
112242002-06-07 Sam Steingold <sds@gnu.org>
11225
11226 * xselect.c (lisp_data_to_selection_data): Fix last change:
11227 *data_ret is not a Lisp string, while unibyte_string is.
11228
112292002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
11230
11231 * xselect.c (lisp_data_to_selection_data): Fix last change:
11232 set size_ret.
11233
112342002-06-07 Andreas Schwab <schwab@suse.de>
11235
11236 * m/amdx86-64.h: New file.
11237
112382002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
11239
11240 * fns.c (Fstring_make_unibyte): Doc fix.
11241
11242 * xselect.c (lisp_data_to_selection_data): If the requested type
11243 is STRING, call string_make_unibyte to encode the selected text
11244 as a string.
11245
11246 * window.c (Fset_window_hscroll): Doc fix.
11247
112482002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11249
11250 * fileio.c (choose_write_coding_system):
11251 Call select-safe-coding-system properly.
11252
112532002-06-03 Richard M. Stallman <rms@gnu.org>
11254
11255 * xdisp.c (message_with_string): Error if STRING is not a string.
11256
11257 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
11258
11259 * fileio.c (choose_write_coding_system): Pass FILE arg to
11260 Vselect_safe_coding_system_function.
11261
112622002-06-03 Ken Raeburn <raeburn@gnu.org>
11263
11264 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
11265
112662002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
11267
11268 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
11269 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
11270 * keymap.c (describe_command): Likewise.
11271 * minibuf.c (read_minibuf): Likewise.
11272
11273 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
11274 Cast `current_column' return value to int.
11275 (back_to_previous_visible_line_start)
11276 (reseat_at_next_visible_line_start, next_element_from_buffer):
11277 Cast `indented_beyond_p' 3rd arg to float.
11278
11279 * indent.c (last_known_column): Now a float.
11280 (current_column_1, position_indentation, current_column)
11281 (string_display_width): Return float.
11282 (Fcurrent_column): Cast `current_column' return value to int.
11283 (Fcurrent_indentation): Cast `position_indentation' retval to int.
11284 (indented_beyond_p): Third arg now a float.
11285 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
11286
11287 * lisp.h (current_column): Now returns float.
11288 (indented_beyond_p): 3rd arg now a float.
11289
112902002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
11291
11292 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
11293 is Qcompound_text_with_extensions.
11294
11295 * xselect.c (lisp_data_to_selection_data): Always set selection
11296 type as string if x_encode_text returns streingp non-NULL.
11297
11298 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
11299
113002002-05-30 Richard M. Stallman <rms@gnu.org>
11301
11302 * window.c (Fset_window_configuration): Correct the handling
11303 of point in current buffer, to work with multiple windows.
11304
113052002-05-29 Colin Walters <walters@verbum.org>
11306
11307 * lread.c (Fread_from_string): Don't depend on order of evaluation
11308 for C function parameters.
11309
113102002-05-28 Richard M. Stallman <rms@gnu.org>
11311
11312 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
11313 way for blinked-off state and for a nonselected window.
11314
11315 * window.c (window_scroll_pixel_based): Don't call Fbolp;
11316 instead, see if the new start pos is at beginning of line.
11317
11318 * fileio.c (Fwrite_region): If START is a string, don't
11319 make any annotations.
11320
11321 * eval.c (syms_of_eval): Doc fix.
11322
113232002-05-28 Colin Walters <walters@debian.org>
11324
11325 * emacs.c (USAGE1): Add --no-splash.
11326 (standard_args): Ditto.
11327
113282002-05-28 Colin Walters <walters@gnu.org>
11329
11330 * lread.c (readchar_count): New variable.
11331 (readchar): Increment it.
11332 (unreadchar): Decrement it.
11333 (read_multibyte): Decrement it.
11334 (Vread_with_symbol_positions): New variable.
11335 (Vread_symbol_positions_list): New variable.
11336 (read_internal_start): New function, created from Fread and
11337 Fread_from_string. Handle Vread_symbol_positions_list and
11338 Vread_with_symbol_positions.
11339 (readevalloop, Fread, Fread_from_string): Use it.
11340 (read1): Use readchar_count to add symbol positions to
11341 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
11342 (syms_of_lread): DEFVAR_LISP and initialize them.
11343
11344 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
11345 (substitute_object_recurse, substitute_object_in_subtree)
11346 (substitute_in_interval): Prototype.
11347 (read_multibyte): Return c if it's less than zero.
11348
113492002-05-28 Kim F. Storm <storm@cua.dk>
11350
11351 * fileio.c (Fread_file_name_internal): Added brute-force
11352 speed up for using predicate file-directory-p.
11353
113542002-05-28 Kim F. Storm <storm@cua.dk>
11355
11356 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
11357 New variables.
11358 (syms_of_fileio): DEFVAR_LISP them.
11359 (read_file_name_cleanup): New unwind function.
11360 (Fread_file_name_internal): Only return completions satifying
11361 Vread_file_name_predicate. Temporarily unwind protect and rebind
11362 default-directory while checking completions against the predicate.
11363 (Fread_file_name): Added PREDICATE argument. Specbind it to
11364 Vread_file_name_predicate during completion.
11365 Call Vread_file_name_function to read the file name if non-nil.
11366
11367 * lisp.h (Fread_file_name): Now has 6 args.
11368
11369 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
11370 predicate for Fread_file_name when reading directory name.
11371 Supply Qnil for predicate in other calls to Fread_file_name.
11372
113732002-05-26 Miles Bader <miles@gnu.org>
11374
11375 * term.c (tty_capable_p): New function.
11376 * dispextern.h (tty_capable_p): New function declaration.
11377 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
11378 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
11379
113802002-05-23 Stefan Monnier <monnier@cs.yale.edu>
11381
11382 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
11383 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
11384 (Vwrite_region_annotate_functions): Docstring fix.
11385
113862002-05-23 Kim F. Storm <storm@cua.dk>
11387
11388 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
11389 phys_cursor's hpos is overwritten. This is still not completely
11390 correct, as it doesn't really make sense to use hpos at all to
11391 get the cursor glyph (as that is relative to the width of the
11392 characters on the line, which may have changed during the update).
11393
113942002-05-22 Jason Rumney <jasonr@gnu.org>
11395
11396 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
11397 Lisp_Object.
11398 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
11399 Use modified enumfont_t struct.
11400
11401 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
11402
11403 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
11404 Handle the `hbar' cursor type.
11405 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
11406
11407 * w32fns.c (Qhbar): New variable.
11408 (x_specified_cursor_type): Use it.
11409
114102002-05-21 Ken Raeburn <raeburn@gnu.org>
11411
11412 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
11413 now, when the address is needed.
11414
114152002-05-21 Colin Walters <walters@gnu.org>
11416
11417 * Makefile.in (shortlisp): Add font-core.el.
11418
114192002-05-20 Richard M. Stallman <rms@gnu.org>
11420
11421 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
11422
11423 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
11424 equivalent key bindings here.
11425
114262002-05-20 Ken Raeburn <raeburn@gnu.org>
11427
11428 Change symbol structure to contain a lisp object for the symbol
11429 name:
11430 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
11431 object field named "xname".
11432 (SYMBOL_NAME): New macro.
11433 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
11434 name field.
11435 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
11436 (mark_object, gc_sweep): Use symbol xname field and XSTRING
11437 instead of name field.
11438 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
11439 SYMBOL_NAME instead of XSYMBOL and name field.
11440 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
11441 instead of XSYMBOL and name field.
11442 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
11443 and SYMBOL_NAME instead of XSYMBOL and name field.
11444 * coding.c (Fread_coding_system, code_convert_region1)
11445 (code_convert_string1, code_convert_string_norecord)
11446 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
11447 XSYMBOL and name field.
11448 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
11449 (Fmake_variable_buffer_local, Fmake_local_variable)
11450 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
11451 of XSYMBOL and name field.
11452 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
11453 XSYMBOL and name field.
11454 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
11455 instead of XSYMBOL and name field.
11456 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
11457 XSYMBOL and name field.
11458 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
11459 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
11460 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
11461 instead of XSYMBOL and name field.
11462 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
11463 (parse_modifiers, apply_modifiers, Fevent_convert_list)
11464 (parse_solitary_modifier, Fexecute_extended_command):
11465 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
11466 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
11467 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
11468 of XSYMBOL and name field.
11469 (describe_command, describe_translation): Use SYMBOL_NAME and
11470 assignment instead of XSYMBOL and name field and XSETSTRING.
11471 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
11472 instead of XSYMBOL and name field.
11473 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
11474 name field and XSETSTRING.
11475 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
11476 of XSYMBOL and name field.
11477 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
11478 assignment instead of XSYMBOL and name field and XSETSTRING.
11479 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
11480 XSTRING instead of XSYMBOL and name field.
11481 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
11482 and XSTRING instead of XSYMBOL and name field.
11483 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
11484 and XSTRING instead of XSYMBOL and name field.
11485 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
11486 XSTRING instead of XSYMBOL and name field.
11487 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
11488 of XSYMBOL and name field.
11489 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
11490 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
11491
114922002-05-19 Ken Raeburn <raeburn@gnu.org>
11493
11494 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
11495 and XCDR real rvalues in most configurations.
11496
11497 * buffer.c (fix_overlays_in_range, fix_overlays_before):
11498 Don't take the address of the cdr part of a cons cell; instead, track
11499 the parent cell and call XSETCDR, or set the variable for the head
11500 of the list if we haven't started down the list yet.
11501
115022002-05-19 Richard M. Stallman <rms@gnu.org>
11503
11504 * doc.c (reread_doc_file): Don't ask for confirmation.
11505
115062002-05-18 Jason Rumney <jasonr@gnu.org>
11507
11508 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
11509 (xbm_load_image): Use it.
11510 (xbm_load): Ditto.
11511 (xbm_read_bitmap_data): Reverted to xfns.c version.
11512 From David Ponce <david@dponce.com>.
11513
115142002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
11515
11516 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
11517 2.02 and later.
11518
115192002-05-16 Juanma Barranquero <lektu@terra.es>
11520
11521 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
11522
115232002-05-15 Stefan Monnier <monnier@cs.yale.edu>
11524
11525 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
11526 meaningful test.
11527 (read_char_minibuf_menu_prompt): Fix typo.
11528
115292002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
11530
11531 * eval.c (Fcommandp): Doc fix.
11532
115332002-05-13 Stefan Monnier <monnier@cs.yale.edu>
11534
11535 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
11536 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
11537 (Fset_keymap_parent): Gcpro a bit more.
11538 (access_keymap): Gcpro around meta_map call and around the main loop.
11539 (get_keyelt): Gcpro when following indirect references.
11540 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
11541 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
11542 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
11543 Remove useless ad-hoc remap code.
11544
115452002-05-13 Richard M. Stallman <rms@gnu.org>
11546
11547 * search.c (search_buffer): Give up boyer moore search if inverse
11548 translation change charset_base.
11549
115502002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
11551
11552 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
11553 characters is carried over from the previous block of text, adjust
11554 coding->produced to account for the extra character.
11555
115562002-05-11 Andreas Schwab <schwab@suse.de>
11557
11558 * coding.c (intersection): Keep the elements of the returned list
11559 in the same order as in the first list.
11560
115612002-05-11 Kim F. Storm <storm@cua.dk>
11562
11563 * keymap.c (current_minor_maps): Fixed resizing of cmm_maps;
11564 only update cmm_size if realloc actually succeeds.
11565 Testing with initial size of 2 elements revealed that using
11566 realloc on GNU/Linux would cause a random trap in xmalloc
11567 later on, so I rewrote the code to use malloc/bcopy/free instead
11568 of realloc.
11569
115702002-05-10 Jason Rumney <jasonr@gnu.org>
11571
11572 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
11573
115742002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
11575
11576 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
11577 parens, to ensure correct evaluation order.
11578
115792002-05-10 Kim F. Storm <storm@cua.dk>
11580
11581 * keymap.c (Vemulation_mode_map_alists): New variable.
11582 (syms_of_keymap): DEFVAR_LISP it.
11583 (current_minor_maps): Process keymap alists in that list before
11584 minor-mode-overriding-map-alist and minor-mode-map-alist.
11585
115862002-05-09 Richard M. Stallman <rms@gnu.org>
11587
11588 * search.c (Freplace_match): Doc fix.
11589
115902002-05-09 Kim F. Storm <storm@cua.dk>
11591
11592 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
11593 Enlarge cursor rectangle drawn around image with non-zero relief.
11594
11595 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
11596 Enlarge cursor rectangle drawn around image with non-zero relief.
11597
11598 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
11599 Enlarge cursor rectangle drawn around image with non-zero relief.
11600
116012002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
11602
11603 * xselect.c (lisp_data_to_selection_data): Don't set selection
11604 type if comes from the Lisp object's car. If the selection
11605 contains a pure ASCII text, always return QSTRING as its type.
11606
116072002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11608
11609 * mac.c (mac-cut-function): Doc fix.
11610
116112002-05-05 Richard M. Stallman <rms@gnu.org>
11612
11613 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
11614
116152002-05-04 Jason Rumney <jasonr@gnu.org>
11616
11617 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
11618 for event-click-count.
11619
11620 * process.c (init_process): Only add server subfeature if we can
11621 use non-blocking I/O.
11622
116232002-05-04 Andrew Choi <akochoi@shaw.ca>
11624
11625 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
11626 repeatedly.
11627
116282002-05-03 Jason Rumney <jasonr@gnu.org>
11629
11630 * process.c (Fmake_network_process): Only support server sockets
11631 when we can make them non-blocking.
11632
11633 * s/ms-w32.h (HAVE_SELECT): Define.
11634
11635 * w32.h (FILE_NDELAY): New flag.
11636
11637 * w32.c (sys_getpeername, fcntl): New functions.
11638 (_sys_read_ahead): Temporarily block on non-blocking sockets.
11639
11640 * w32proc.c: include sys/file.h.
11641
116422002-05-03 Colin Walters <walters@verbum.org>
11643
11644 * callproc.c (Vgame_score_directory): Renamed to
11645 Vshared_game_score_directory.
11646
116472002-04-30 Richard M. Stallman <rms@gnu.org>
11648
11649 * s/gnu.h [emacs]: Include stdio.h.
11650 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
11651
11652 * eval.c (do_autoload): Error if called while preparing to dump.
11653
11654 * fns.c (Frequire): Error if need to load while preparing to dump.
11655
116562002-04-28 Colin Walters <walters@verbum.org>
11657
11658 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
11659 Default to "~/.emacs.d/games".
11660
116612002-04-29 Stefan Monnier <monnier@cs.yale.edu>
11662
11663 * lread.c (openp): Change arg exec_only to predicate.
11664 (build_load_history): Use XCAR/XCDR.
11665 (Flocate_file_internal): New fun.
11666 (syms_of_lread): Defsubr it.
11667 (Fload): Update call to openp.
11668
11669 * lisp.h (openp): Update prototype.
11670
11671 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
11672 * w32proc.c (sys_spawnve):
11673 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
11674 * w32.c (check_windows_init_file):
11675 * sound.c (Fplay_sound_internal):
11676 * process.c (Fstart_process):
11677 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
11678 * mac.c (run_mac_command):
11679 * emacs.c (init_cmdargs):
11680 * callproc.c (Fcall_process): Update call to openp.
11681
11682 * textprop.c (remove_properties): Don't use XCAR without CONSP.
11683
11684 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
11685
116862002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11687
11688 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
11689 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
11690
116912002-04-28 Richard M. Stallman <rms@gnu.org>
11692
11693 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
11694
11695 * eval.c (Fcommandp): New arg for_call_interactively.
11696 * lisp.h (Fcommandp): Declare new arg.
11697
116982002-04-28 Jason Rumney <jasonr@gnu.org>
11699
11700 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
11701
11702 * w32.c (stat, fstat): Use file index information to generate
11703 inodes for directories where available.
11704
117052002-04-26 Andrew Choi <akochoi@shaw.ca>
11706
11707 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
11708 [HAVE_CARBON]: Include Mac object files.
11709
11710 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
11711 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
11712 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
11713 MAC_OSX, and MAC_OS instead of macintosh.
11714
11715 * editfns.c [MAC_OS8]: Include stdio.h.
11716
11717 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
11718
11719 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
11720 Apple Monaco.
11721
11722 * process.c: Declare QCfamily and QCfilter as extern.
11723 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
11724 calling select.
11725
11726 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
11727
11728 * tparam.c [MAC_OSX]: Don't define BC and UP.
11729
11730 * config.in [HAVE_CARBON]: Add.
11731
11732 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
11733 Move here from mac/src and mac/inc.
11734
11735 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
11736
117372002-04-26 Gerd Moellmann <gerd@gnu.org>
11738
11739 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
11740 Compute phys_cursor_width from the x position returned
11741 by x_draw_glyhs, which is cheaper.
11742 (x_display_and_set_cursor): Compute the buffer-local value
11743 of `cursor-in-non-selected-windows' only when needed.
11744
117452002-04-25 Gerd Moellmann <gerd@gnu.org>
11746
11747 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
11748 cursor on a stretch glyph has a width that depends on
11749 x_stretch_cursor_p.
11750
117512002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11752
11753 * abbrev.c (abbrev-start-location): Doc fix.
11754
11755 * indent.c (Fvertical_motion): Fix last change.
11756
117572002-04-25 Gerd Moellmann <gerd@gnu.org>
11758
11759 * indent.c (Fvertical_motion): Move to the start of the line
11760 containing PT before moving up or down.
11761
117622002-04-24 Gerd Moellmann <gerd@gnu.org>
11763
11764 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
11765 case of writing a whole row, more or less analogous to the case of
11766 writing only parts of a row.
11767
11768 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
11769 0 for NO_CURSOR.
11770
11771 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
11772
117732002-04-23 Colin Walters <walters@verbum.org>
11774
11775 * buffer.c (syms_of_buffer): Doc fix.
11776
117772002-04-23 Gerd Moellmann <gerd@gnu.org>
11778
11779 * xterm.c (notice_overwritten_cursor): Handle the special case
11780 of the cursor being in the first blank non-text line at the
11781 end of a window.
11782
11783 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
11784 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
11785 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
11786 bar cursors only, to make phys_cursor_width contain what its name
11787 suggests.
11788 (notice_overwritten_cursor): Consider the cursor image erased if
11789 the output area intersects the cursor image in y-direction.
11790
117912002-04-23 Simon Marshall <simon@gnu.org>
11792
11793 * xfns.c (x_set_mouse_color): Change default for cross_cursor
11794 to XC_hand2.
11795
117962002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11797
11798 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
11799
118002002-04-22 Kim F. Storm <storm@cua.dk>
11801
11802 * textprop.c (remove_properties): Fixed trap for malformed plist.
11803
118042002-04-22 Richard M. Stallman <rms@gnu.org>
11805
11806 * cmds.c (Fend_of_line): Handle intangible text in mid line.
11807
11808 * window.c (make_window): Initialize height_fixed_p,
11809 last_cursor_off_p, and p->cursor_off_p slots.
11810
118112002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11812
11813 * fns.c (use-dialog-box): Doc fix.
11814
118152002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11816
11817 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
11818 variables `row', `i' and `area'.
11819 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
11820 toolkit library.
11821
118222002-04-19 Stefan Monnier <monnier@cs.yale.edu>
11823
11824 * xfaces.c (clear_font_table): Don't free the default font of
11825 a frame even if it's on another display.
11826 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
11827 that could be Qt.
11828
118292002-04-19 Juanma Barranquero <lektu@terra.es>
11830
11831 * indent.c (Fmove_to_column): Remove unused local variable
11832 `next_boundary_byte'.
11833 (current_column_1): Likewise.
11834
118352002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
11836
11837 * msdos.c (Qhbar): New variable.
11838 (syms_of_msdos): Intern and staticpro it.
11839 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
11840 cursor type.
11841
118422002-04-19 Dave Lambert <dlambert@acm.org>
11843
11844 Theses change implement an underscore-like (`hbar') cursor.
11845
11846 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
11847
11848 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
11849 Handle the `hbar' cursor type.
11850 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
11851
11852 * xfns.c (Qhbar): New variable.
11853 (syms_of_xfns): Intern and staticpro it.
11854 (x_specified_cursor_type): Handle `hbar' cursor.
11855
11856 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
11857 not defined.
11858
118592002-04-18 Richard M. Stallman <rms@gnu.org>
11860
11861 * textprop.c (remove_properties): New arg LIST allows scanning
11862 either a list or a plist.
11863 (interval_has_some_properties_list): New function, like
11864 interval_has_some_properties using list instead of plist.
11865 All callers changed.
11866 (Fremove_list_of_text_properties): New function.
11867 (syms_of_textprop): Defsubr it.
11868
118692002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
11870
11871 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
11872
118732002-04-17 Juanma Barranquero <lektu@terra.es>
11874
11875 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
11876
118772002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
11878
11879 * window.c (coordinates_in_window): Don't report on margin area
11880 if its width is zero.
11881
118822002-04-16 Jason Rumney <jasonr@gnu.org>
11883
11884 * w32fns.c (Fx_file_dialog): Decode file name before using.
11885
11886 * w32term.c (construct_drag_n_drop): Likewise.
11887
118882002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
11889
11890 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
11891 store load-history in pure space.
11892
11893 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
11894
118952002-04-16 Stefan Monnier <monnier@cs.yale.edu>
11896
11897 * xterm.c (Qlatin_1, Qutf_8): New vars.
11898 (syms_of_xterm): Initialize them.
11899 (XTread_socket): Eliminate incorrect optimization that tried to avoid
11900 decoding the output of X*LookupString.
11901 Always use latin-1 to decode the output of XLookupString.
11902 Try Xutf8LookupString if XmbLookupString failed.
11903
11904 * region-cache.c (new_region_cache): Use BEG.
11905
119062002-04-16 Gerd Moellmann <gerd@gnu.org>
11907
11908 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
11909 configuration files.
11910 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
11911 returns 0.
11912
119132002-04-15 Andreas Schwab <schwab@suse.de>
11914
11915 * config.in: Regenerated using autoheader.
11916
11917 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
11918 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
11919 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
11920 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
11921 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
11922 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
11923 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
11924 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
11925 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
11926 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
11927 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
11928 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
11929 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
11930 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
11931 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
11932 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
11933 STACK_DIRECTION, now set by autoconf.
11934
119352002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11936
11937 * dispnew.c (marginal_area_string): Sort arguments.
11938
11939 * dispextern.h (marginal_area_string): Add prototype.
11940
119412002-04-13 Richard M. Stallman <rms@gnu.org>
11942
11943 * fileio.c (Finsert_file_contents):
11944 Don't call temp_output_buffer_setup--do just part, by hand.
11945
11946 * coding.c (run_pre_post_conversion_on_str):
11947 Don't call temp_output_buffer_setup--do just part, by hand.
11948
11949 * keyboard.c (command_loop_1): Don't call start_hourglass
11950 or cancel_hourglass when executing a macro.
11951
11952 * marker.c (count_markers): New function.
11953
11954 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
11955 grow without limit. Move recently used elements to the front.
11956
119572002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
11958
11959 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
11960
119612002-04-12 Gerd Moellmann <gerd@gnu.org>
11962
11963 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
11964 rows marginal areas.
11965 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
11966 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
11967
11968 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
11969
119702002-04-12 Dave Love <fx@gnu.org>
11971
11972 * dispnew.c (marginal_area_string): New.
11973
11974 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
11975 (Qleft_margin, Qright_margin): Declare.
11976 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
11977
11978 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
11979 note_mode_line_highlight and extended.
11980
11981 * keyboard.c (Qleft_margin, Qright_margin): Declare.
11982 (make_lispy_event): Deal with mouse events in margins.
11983
119842002-04-12 Stefan Monnier <monnier@cs.yale.edu>
11985
11986 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
11987
11988 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
11989 than deactivating the mark if tmm is set to `lambda'.
11990 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
11991 Use a single event for HELP_EVENT.
11992 (Fexecute_extended_command): Save last_point_position.
11993
119942002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11995
11996 * lisp.h (Fpropertize): Add prototype.
11997
11998 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
11999
120002002-04-10 Colin Walters <walters@verbum.org>
12001
12002 * config.in: Add HAVE_SHARED_GAME_DIR.
12003
12004 * callproc.c: (Vgame_score_directory): New variable.
12005 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
12006
120072002-04-10 Richard M. Stallman <rms@gnu.org>
12008
12009 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
12010
120112002-04-09 Stefan Monnier <monnier@cs.yale.edu>
12012
12013 * minibuf.c (read_minibuf): Use empty_string.
12014 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
12015 Short-circuit the search as soon as it "failed".
12016 (Fall_completions): Allow lambda forms and lists of strings for alist.
12017 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
12018 when require_match is nil.
12019 (Ftest_completion): Rename from `test_completion' and export to elisp.
12020 Call the predicate also when alist is a list.
12021 Obey Vcompletion_regexp_list.
12022 (do_completion, Fminibuffer_complete_and_exit): Use it.
12023 (Fassoc_string): Rename from `assoc_for_completion'.
12024 Allow list of strings as well and export to elisp.
12025
120262002-04-08 Stefan Monnier <monnier@cs.yale.edu>
12027
12028 * puresize.h (BASE_PURESIZE): Increase to 900KB.
12029
120302002-04-08 Juanma Barranquero <lektu@terra.es>
12031
12032 * w32.c (sys_accept): Don't hide variable `s'.
12033
120342002-04-05 Gerd Moellmann <gerd@gnu.org>
12035
12036 * callint.c (Fcall_interactively): Use INTEGERP instead of
12037 NUMBERP for checking Vhistory_length.
12038
120392002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12040
12041 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
12042 Doc fix to reflect it.
12043
120442002-04-04 Richard M. Stallman <rms@gnu.org>
12045
12046 * xdisp.c (display_mode_element): New arg RISKY.
12047 Disregard text props found or specified within a variable
12048 that isn't marked risky-local-variable.
12049 (Qrisky_local_variable): New variable.
12050 (syms_of_xdisp): Init and staticpro it.
12051
120522002-04-04 Stefan Monnier <monnier@cs.yale.edu>
12053
12054 * undo.c (record_point): New fun.
12055 (record_delete, record_insert): Use it.
12056
120572002-04-03 Juanma Barranquero <lektu@terra.es>
12058
12059 * doc.c (Fdocumentation): Add missing parentheses.
12060 (Fdocumentation_property): Likewise.
12061
120622002-04-03 Stefan Monnier <monnier@cs.yale.edu>
12063
12064 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
12065 data is 0, just return nil.
12066
120672002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
12068
12069 * msdos.c (syms_of_msdos): Fix last change with
12070 mouse_autoselect_window.
12071
120722002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12073
12074 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
12075 mouse_autoselect_window.
12076
120772002-04-02 Stefan Monnier <monnier@cs.yale.edu>
12078
12079 * keyboard.c (make_lispy_event): Handle unknown keysyms together
12080 with system-specific keysyms. Use it also for unknown function keys.
12081
12082 * doc.c (reread_doc_file): Return whether reload was attempted.
12083 (Fdocumentation, Fdocumentation_property): Don't try to reload
12084 if the doc is 0 and only ask once.
12085
12086 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
12087
120882002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
12089
12090 * keyboard.c (read_char): If the event was Qselect_window,
12091 restore timer_idleness_start_time to its previous value.
12092
12093 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
12094
120952002-04-01 Stefan Monnier <monnier@cs.yale.edu>
12096
12097 * region-cache.c (new_region_cache): Use BEG.
12098
12099 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
12100 Use BEG and BEG_BYTE.
12101
12102 * doc.c (get_doc_string): Return nil if the location is wrong.
12103 (reread_doc_file): New fun.
12104 (Fdocumentation, Fdocumentation_property):
12105 Call it if get_doc_string fails.
12106 (Fsnarf_documentation): Make it work for a dumped Emacs.
12107
12108 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
12109 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
12110
12111 * charset.c (Fstring): Allow 0 arguments.
12112
12113 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
12114
12115 * process.c (DATAGRAM_CONN_P, list_processes_1)
12116 (Fprocess_datagram_address, Fset_process_datagram_address)
12117 (Fset_network_process_options, server_accept_connection):
12118 Fix some int/Lisp_Object confusions (thank you union types).
12119
121202002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12121
12122 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
12123
12124 * w32term.c: Likewise.
12125 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
12126
12127 * keyboard.c (Qselect_window): New symbol.
12128 (head_table): Use it.
12129 (keys_of_keyboard): Bound select-window event to handle-select-window.
12130 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
12131
12132 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
12133 (last_window): New variable.
12134 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
12135 (note_mouse_movement): Remove reimplemented code in #if 0.
12136 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
12137 Emacs windows.
12138
12139 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
12140
121412002-03-31 Gerd Moellmann <gerd@gnu.org>
12142
12143 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
12144 Callers changed.
12145
121462002-03-30 Richard M. Stallman <rms@gnu.org>
12147
12148 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
12149 loop whenever it stops making progress.
12150
12151 * widget.c (set_frame_size): Don't call change_frame_size.
12152
121532002-03-30 Gerd Moellmann <gerd@gnu.org>
12154
12155 * dispnew.c (direct_output_for_insert):
12156 Call mark_window_display_accurate.
12157
121582002-03-29 Jason Rumney <jasonr@gnu.org>
12159
12160 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
12161
121622002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
12163
12164 * Makefile.in (lread.o): Depend on coding.h.
12165
12166 * lread.c (openp, Fload): Encode the file name before passing it
12167 to `stat', `access', and `emacs_open'.
12168 (openp): GCPRO the encoded file name. Don't recompute Lisp
12169 strings unnecessarily.
12170
121712002-03-29 Kim F. Storm <storm@cua.dk>
12172
12173 * fns.c (Flax_plist_put): Doc fix.
12174
121752002-03-28 Miles Bader <miles@gnu.org>
12176
12177 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
12178
121792002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12180
12181 * process.c (set-network-process-options): Add usage.
12182 (make-network-process): Doc fix.
12183
121842002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
12185
12186 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
12187
121882002-03-26 Richard M. Stallman <rms@gnu.org>
12189
12190 * fns.c (Fsubstring_no_properties): New function.
12191 (Flax_plist_get, Flax_plist_put): New functions.
12192 (syms_of_fns): defsubr them.
12193
12194 * xdisp.c (update_menu_bar): Test only update_mode_lines;
12195 don't test or alter w->update_mode_line.
12196
12197 * window.c (Fdisplay_buffer): Doc fix.
12198
121992002-03-24 Richard M. Stallman <rms@gnu.org>
12200
12201 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
12202
122032002-03-24 Gerd Moellmann <gerd@gnu.org>
12204
12205 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
12206 (Fdefmacro): Handle `(declare ...)'.
12207 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
12208 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
12209
122102002-03-24 Jason Rumney <jasonr@gnu.org>
12211
12212 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
12213 (xbm_file_p): Add prototypes.
12214 (xbm_format, xbm_image_p): Sync with xfns.c.
12215 (reflect_byte): New function.
12216 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
12217 (xbm_load_image): Create bitmaps with a depth of 1.
12218 (init_xfns): Enable XBM images.
12219
122202002-03-23 Jason Rumney <jasonr@gnu.org>
12221
12222 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
12223 correctly. Do not pass up_modifier to keyboard buffer.
12224
12225 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
12226
122272002-03-22 Stefan Monnier <monnier@cs.yale.edu>
12228
12229 * Makefile.in (bootstrapclean): New target.
12230 (bootstrap-temacs, bootstrap-doc): Remove.
12231 (bootstrap-emacs): Use a bog-standard `temacs'.
12232 Don't bother to build a DOC file.
12233
12234 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
12235
12236 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
12237 in temacs even if !CANNOT_DUMP.
12238 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
12239
12240 * alloc.c (check_pure_size): Only output a warning.
12241
122422002-03-22 Jason Rumney <jasonr@gnu.org>
12243
12244 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
12245 supported.
12246
12247 * w32term.c (zv_bits): Declare as short, for word alignment.
12248 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
12249 (syms_of_w32term): Define x-use-underline-position-properties.
12250
12251 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
12252 (clear_image_cache): Block input, fix logic, clear matrices in
12253 all frames that share this cache.
12254
122552002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
12256
12257 * emacs.c (main): Update the Copyright year in the blurb printed
12258 by "emacs --version".
12259
12260 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
12261
12262 * xterm.c (XTread_socket): If XK_ISO_Lock and
12263 XK_ISO_Last_Group_Lock are defined, handle keysyms between
12264 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
12265
122662002-03-21 Kim F. Storm <storm@cua.dk>
12267
12268 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
12269 menu-bar bindings in keymap and local-map properties _are_ used.
12270 But try keymap property first in accordance with 2002-01-03 patch.
12271 Added comment describing why this is not always reliable.
12272 (tool_bar_items): Ditto for tool-bar.
12273
122742002-03-21 Jason Rumney <jasonr@gnu.org>
12275
12276 * w32fns.c (x_clear_image_1): Disable color table code.
12277
122782002-03-21 Kim F. Storm <storm@cua.dk>
12279
12280 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
12281 removed the wrong version of the DEFUN macro; fixed it.
12282
12283 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
12284 Fmember rather than Fmemq).
12285 (Fprovide): Check that subfeatures is a list.
12286
12287 * process.c (QCfeature, QCdatagram): Removed variables.
12288 (QCtype, Qdatagram): New variables.
12289 (network_process_featurep): Removed function.
12290 (Fmake_network_process): Removed :feature check.
12291 Use :type 'datagram instead of :datagram t to create a datagram
12292 socket. This allows us to add other connection types (e.g. raw
12293 sockets) later in a consistent manner.
12294 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
12295 supported subfeatures for feature make-network-process.
12296 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
12297 Intern and staticpro QCtype and Qdatagram.
12298 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
12299
12300 * xfns.c: (QCtype): Remove duplicate declaration and
12301 initialization (is now declared in process.c).
12302
12303 * w32fns.c: (QCtype): Remove duplicate declaration and
12304 initialization (is now declared in process.c).
12305
123062002-03-21 Richard M. Stallman <rms@gnu.org>
12307
12308 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
12309 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
12310 when jumping to `fail' to avoid undoing reg changes in the
12311 last iteration of the loop.
12312 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
12313
12314 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
12315 Depend on process.h.
12316
123172002-03-20 Jason Rumney <jasonr@gnu.org>
12318
12319 Most of the following changes are still conditional on HAVE_IMAGES
12320 which is not set by default on Windows.
12321
12322 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
12323
12324 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
12325 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
12326 (four_corners_best, x_clear_image_1, x_clear_image)
12327 (x_alloc_image_color, postprocess_image)
12328 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
12329 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
12330 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
12331
12332 * w32gui.h (struct XImage): Define.
12333
12334 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
12335 extract mouse co-ordinates.
12336
123372002-03-20 Jason Rumney <jasonr@gnu.org>
12338
12339 * w32.c (init_winsock): Dynamically load new server and UDP
12340 socket functions.
12341 (socket_to_fd): New function.
12342 (sys_socket): Use it.
12343 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
12344 (sys_recvfrom, sys_sendto): New wrapper functions.
12345
12346 * process.c (QCfamily, QCfilter): Remove duplicate declaration
12347 and initialization.
12348
12349 * makefile.w32-in (LIBS): Remove $(WSOCK32).
12350
123512002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
12352
12353 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
12354 Don't use "sun" as a variable, it's a predefined constant on Sun
12355 machines.
12356
123572002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12358
12359 * bytecode.c (Fbyte_code): Revert last change.
12360
123612002-03-19 Kim F. Storm <storm@cua.dk>
12362
12363 * makefile.w32-in (LIBS): Add $(WSOCK32).
12364 From David Ponce <dponce@voila.fr>.
12365
123662002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12367
12368 * process.c (wait_reading_process_input): Move variables `pname'
12369 and `pnamelen' down where they are used.
12370
12371 * bytecode.c (Fbyte_code): Discard unused computed value to
12372 prevent gcc warning.
12373
12374 * lisp.h (Fplist_member): Add prototype.
12375
123762002-03-18 Kim F. Storm <storm@cua.dk>
12377
12378 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
12379 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
12380
12381 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
12382 Remove explicit GNU_LINUX settings for datagram support.
12383
123842002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12385
12386 * process.c (Fmake_network_process): Remove unused variable `sa'.
12387 Doc fix. Add usage:.
12388 (set_socket_options): Remove unused variables `optnum' and `opttype'.
12389
123902002-03-17 Richard M. Stallman <rms@gnu.org>
12391
12392 * xdisp.c (cursor_type_changed): New variable.
12393 (redisplay_internal): Redisplay all windows if cursor_type_changed.
12394 Clear it when clearing windows_or_buffers_changed.
12395 (try_cursor_movement, redisplay_window, try_window_id)
12396 (try_window_reusing_current_matrix): Test cursor_type_changed
12397 along with windows_or_buffers_changed.
12398
12399 * window.h (cursor_type_changed): New variable.
12400
12401 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
12402 not update_mode_lines, and always set it to 1.
12403
12404 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
12405 if no frames needed redrawing.
12406
124072002-03-17 Kim F. Storm <storm@cua.dk>
12408
12409 The following changes add support for network server processes,
12410 datagram connections, and local (unix) sockets.
12411
12412 * process.h (struct Lisp_Process): New member log.
12413 Doc fix: Member command used to indicate stopped network process.
12414 Doc fix: Member childp contains plist for network process.
12415 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
12416
12417 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
12418 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
12419 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
12420 New variables.
12421 (NETCONN1_P): New macro.
12422 (DATAGRAM_SOCKETS): New conditional symbol.
12423 (datagram_address): New array.
12424 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
12425 (status_message): Use concat3.
12426 (Fprocess_status): Add `listen' status to doc string. Return `stop'
12427 for a stopped network process.
12428 (Fset_process_buffer): Update contact plist for network process.
12429 (Fset_process_filter): Ditto. Don't enable input for stopped
12430 network processes. Server must listen, even if filter is t.
12431 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
12432 New functions.
12433 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
12434 (Fprocess_contact): Added KEY argument. Handle datagrams.
12435 (list_processes_1): Optionally show only processes with the query
12436 on exit flag set. Dynamically adjust column widths. Omit tty
12437 column if not needed. Report stopped network processes.
12438 Identify server and datagram network processes.
12439 (Flist_processes): New optional arg `query-only'.
12440 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
12441 (conv_lisp_to_sockaddr, set_socket_options)
12442 (network_process_featurep, unwind_request_sigio): New helper functions.
12443 (Fprocess_datagram_address, Fset_process_datagram_address):
12444 (Fset_network_process_options): New lisp functions.
12445 (Fopen_network_stream): Removed. Now defined in simple.el.
12446 (Fmake_network_process): New lisp function. Code is based on previous
12447 Fopen_network_stream, but heavily reworked with new property list based
12448 argument list, support for datagrams, server processes, and local
12449 sockets in addition to old client-only functionality.
12450 (server_accept_connection): New function.
12451 (wait_reading_process_input): Use it to handle incoming connects.
12452 Do not enable input on a new connection if process is stopped.
f63fd14e 12453 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
048addec
JD
12454 (send_process): Handle datagram sockets.
12455 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
12456 network process is indicated by setting command field to t .
12457 (Fprocess_send_eof): No-op if datagram connection.
12458 (Fstatus_notify): Don't read input for a stream server socket or a
12459 stopped network process.
12460 (init_process): Initialize datagram_address array.
12461 (syms_of_process): Intern and staticpro new variables, defsubr new
12462 functions.
12463
124642002-03-16 Jason Rumney <jasonr@gnu.org>
12465
12466 * w32fns.c (w32_to_all_x_charsets): Return correct type in
12467 startup case.
12468
124692002-03-16 Richard M. Stallman <rms@gnu.org>
12470
12471 * xdisp.c (redisplay_internal, redisplay_windows):
12472 Use list_of_error to call internal_condition_case_1.
12473 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
12474 so as to catch all errors with no possibility of debugger redisplay.
12475 (list_of_error): New variable.
12476 (syms_of_xdisp): Init and staticpro it.
12477
12478 * print.c (print_object): Delete `\ ' from printed rep of frame.
12479
124802002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
12481
12482 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
12483 until its implementation is fixed.
12484
124852002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12486
12487 * xfns.c (png_load): Remove unused variable `gamma_str'.
12488
124892002-03-14 Richard M. Stallman <rms@gnu.org>
12490
12491 * xfns.c (x_real_positions): Handle failure in XQueryTree.
12492
124932002-03-14 Miles Bader <miles@gnu.org>
12494
12495 * intervals.c (adjust_for_invis_intang): New function.
12496 (set_point_both): Use `adjust_for_invis_intang' to do most of the
12497 work for dealing with invisible+intangible regions. Do so before
12498 and after both forward and backward movements, to handle both
12499 front-sticky and rear-sticky cases.
12500 * textprop.c (text_property_stickiness): Function moved here from
12501 `editfns.c'.
12502 * intervals.h (text_property_stickiness): New declaration.
12503 * editfns.c (char_property_eq): Function removed.
12504 (text_property_stickiness): Function moved to `textprop.c'.
12505
125062002-03-13 Jason Rumney <jasonr@gnu.org>
12507
12508 * config.in: Add STRFTIME_NO_POSIX2.
12509
12510 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
12511 and %OX when underlying strftime does not.
12512
125132002-03-13 Stefan Monnier <monnier@cs.yale.edu>
12514
12515 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
12516 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
12517 line) to avoid annoying flicker.
12518 (xm_scroll_callback): Get rid of the now unnecessary kludge.
12519 (XTread_socket): Mark it static.
12520
12521 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
12522
125232002-03-13 Kim F. Storm <storm@cua.dk>
12524
12525 * puresize.h (BASE_PURESIZE): Increase to 775000.
12526
125272002-03-12 Juanma Barranquero <lektu@terra.es>
12528
12529 * editfns.c (syms_of_editfns): Fix typo.
12530
125312002-03-12 Gerd Moellmann <gerd@gnu.org>
12532
12533 * xsmfns.c: Include stdio.h because termhooks.h needs it.
12534 Include termopt.h for interrupt_input.
12535
125362002-03-11 Andreas Schwab <schwab@suse.de>
12537
12538 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
12539
125402002-03-11 Gerd Moellmann <gerd@gnu.org>
12541
12542 * xterm.c (note_mouse_movement): Put code for
12543 x_autoselect_window_p in #if 0.
12544
12545 * lread.c (Fload): Don't assume that message_with_string uses the
12546 string it is given like a C string.
12547
125482002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12549
12550 * xterm.h (x_session_check_input, x_session_initialize): Declared.
12551
12552 * xterm.c: (XTread_socket): Add call to x_session_check_input and
12553 x_session_have_connection.
12554 (x_initialize): Add call to x_session_initialize.
12555
12556 * termhooks.h (enum event_kind): Add save_session_event.
12557
12558 * keyboard.c: Add Emacs event save_session_event.
12559
12560 * emacs.c (main): Add call to syms_of_xsmfns.
12561
12562 * lisp.h: Declare syms_of_xsmfns as extern.
12563
12564 * config.in: Add HAVE_X_SM.
12565
12566 * Makefile.in (LIBXT): Add -lSM -lICE
12567 if HAVE_X_SM and not USE_X_TOOLKIT.
12568 (XOBJ): New file xsmfns.c added.
12569
12570 * xsmfns.c: New file for X session management.
12571
125722002-03-09 Jason Rumney <jasonr@gnu.org>
12573
12574 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
12575 read-only when setting modified time.
12576
125772002-03-08 Gerd Moellmann <gerd@gnu.org>
12578
12579 * xdisp.c (move_it_vertically_backward): At the end of the function,
12580 when moving forward by lines, treat terminal frames specially.
12581
12582 * keyboard.c (echo_char): Make sure to add a separator between
12583 keys even if echo_dash hasn't been called.
12584
12585 * xdisp.c: Use new string macros.
12586 (update_echo_area): Pass number of bytes to message3 instead of
12587 number of chars.
12588 (set_message_1): Don't access a string's size_byte directly.
12589 (decode_mode_spec_coding): Use number of bytes of eoltype string
12590 instead number of chars.
12591
12592 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
12593
125942002-03-08 Juanma Barranquero <lektu@terra.es>
12595
12596 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
12597 24-bit.
12598
125992002-03-06 Jason Rumney <jasonr@gnu.org>
12600
12601 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
12602
126032002-03-06 Gerd Moellmann <gerd@gnu.org>
12604
12605 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
12606 (cancel_echoing, echo_length, echo_truncate): Changed to
12607 work with new kboard definition.
12608 (echo_now): Use message3_nolog instead of message2_nolog.
12609
12610 * alloc.c (mark_kboards): Mark echo_string.
12611
12612 * keyboard.h (ECHOBUFSIZE): Removed.
12613 (struct kboard): Member echoptr removed, member echobuf renamed
12614 to echo_string.
12615
12616 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
12617 message3 instead of message2 to display the message using STRING's
12618 text properties.
12619
126202002-03-05 Andreas Schwab <schwab@suse.de>
12621
12622 * xdisp.c (hscroll_margin): Change to EMACS_INT.
12623
126242002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
12625
12626 * frame.c (default-frame-alist): Explain that setting it doesn't
12627 affect existing frames.
12628
126292002-03-05 Stefan Monnier <monnier@cs.yale.edu>
12630
12631 * indent.c (skip_invisible): Fix my brain fart.
12632
12633 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
12634
126352002-03-04 Stefan Monnier <monnier@cs.yale.edu>
12636
12637 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
12638 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
12639 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
12640 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
12641 and variables to use EMACS_INT instead of just int.
12642
12643 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
12644
126452002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
12646
12647 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
12648 environment, pass it down with corrected value.
12649
126502002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12651
12652 * lread.c (read_filtered_event): Do not call start_hourglass
12653 before returning.
12654
126552002-03-04 Juanma Barranquero <lektu@terra.es>
12656
12657 * w32term.c (x_display_and_set_cursor): Fix typo.
12658
126592002-03-03 Richard M. Stallman <rms@gnu.org>
12660
12661 * fileio.c (Fmake_temp_name): Doc fix.
12662
126632002-03-03 Gary Wong <gtw@gnu.org>
12664
12665 * termcap.c [!emacs]: Replace ospeed for building standalone
12666 libtermcap, for binary compatibility.
12667
12668 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
12669
126702002-03-03 Richard M. Stallman <rms@gnu.org>
12671
12672 * xrdb.c (file_p): Rename arg `path' to `filename'.
12673
12674 * abbrev.c (Fexpand_abbrev): Increment plist as use count
12675 only if it is an integer.
12676
12677 * xfns.c (png_load): Set screen_gamma based on f->gamma.
12678 If png_get_sRGB gives an answer, call png_set_gamma
12679 using the default image gamma value.
12680
12681 * lread.c (read1): When reading from a file, default string to
12682 multibyte only if it has some multibyte characters.
12683
12684 * print.c (print_object): Output multibyte chars 128...255
12685 using \x even if ! print_escape_multibyte.
12686
12687 * xdisp.c (display_mode_element): Move the places where
12688 bytepos, charpos, this, and lisp_string are set.
12689 Use lisp_string to set bytepos.
12690
12691 * xdisp.c (redisplay_internal):
12692 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
12693
12694 * xdisp.c (display_mode_element): Merge properties specified with
12695 :propertize onto those that come with the string.
12696
126972002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
12698
12699 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
12700 automatic-hscrolling. Users changed.
12701 <hscroll-margin>: Renamed from automatic-hscroll-margin.
12702 Users changed.
12703 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
12704
127052002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
12706
12707 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
12708
127092002-03-02 Kim F. Storm <storm@cua.dk>
12710
12711 * window.c (Fminibuffer_selected_window): New function.
12712 (syms_of_window): Defsubr it.
12713
127142002-03-01 Kim F. Storm <storm@cua.dk>
12715
12716 * window.h (struct window): New member phys_cursor_width.
12717
12718 * window.c (make_window, replace_window): Init phys_cursor_width.
12719
12720 * xterm.c (x_display_and_set_cursor): Blink box cursor using
12721 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
12722
12723 * w32term.c (x_display_and_set_cursor): Blink box cursor using
12724 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
12725
12726 * lisp.h (GCPRO6): New macro.
12727
12728 * process.c (Fopen_network_stream): Use GCPRO6.
12729
127302002-03-01 Kim F. Storm <storm@cua.dk>
12731
12732 * process.c (Qconnect, Qfailed): New variables.
12733 (syms_of_process): Intern and staticpro them.
12734 (Fprocess_status): Document connect and failed return values.
12735 [NON_BLOCKING_CONNECT]: New conditional.
12736 (connect_wait_mask, num_pending_connects): New variables.
12737 (status_message): Convert Qfailed status.
12738 (Fopen_network_stream): Added support for non-blocking connect.
12739 New optional args: filter, sentinel, non_blocking. Doc updated.
12740 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
12741 (deactivate_process): Handle pending non-blocking connect.
12742 (wait_reading_process_input): Poll for status of non-blocking
12743 connects. Exec sentinel directly when connect succeeds.
12744 (status_notify): Don't read process output if not yet connected.
12745
127462002-02-28 Kim F. Storm <storm@cua.dk>
12747
12748 * window.c: (minibuf_selected_window): Renamed from
12749 Vminibuf_selected_window. Users changed.
12750 (syms_of_window): Staticpro it.
12751
127522002-02-26 Kim F. Storm <storm@cua.dk>
12753
12754 The following changes add a new Vminibuf_selected_window variable
12755 which is similar to Vminibuf_scroll_window, but which is only set
12756 on entry to the minibuffer (from a non-minibuffer window):
12757
12758 * window.c: (Vminibuf_selected_window): New variable.
12759 (struct save_window_data): New member minibuf_selected_window.
12760 (Fset_window_configuration): Restore Vminibuf_selected_window.
12761 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
12762 Set minibuf_scroll_window member to nil if minibuf_level is 0.
12763 (compare_window_configurations): Compare minibuf_selected_window.
12764
12765 * window.h: (Vminibuf_selected_window): Declare extern.
12766
12767 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
12768 entry to minibuffer or on entry from a non-minibuffer window.
12769
12770 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
12771 Vminibuf_selected_window instead of Vminibuf_scroll_window.
12772
12773 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
12774 instead of Vminibuf_scroll_window when deciding in which window
12775 the region should be highlighted. Consequently, the region remains
12776 highlighteded even when a completion buffer is also displayed.
12777
127782002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
12779
12780 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
12781
12782 * xselect.c (Qcompound_text_with_extensions): Renamed from
12783 Qcompound_text_no_extensions.
12784 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
12785
127862002-02-26 Juanma Barranquero <lektu@terra.es>
12787
12788 * w32proc.c (syms_of_ntproc): Doc fix.
12789
127902002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12791
12792 * intervals.h: Include "dispextern.h" unconditionally.
12793
127942002-02-24 Jason Rumney <jasonr@gnu.org>
12795
12796 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
12797 and disp-table.elc.
12798 (lisp): Add emacs-lisp/backquote.elc.
12799
128002002-02-24 Kim F. Storm <storm@cua.dk>
12801
12802 * keymap.c (Flookup_key): Fixed problem in 2001-12-28 patch:
12803 The validation of the event type was too strict as it didn't
12804 allow string events; buffer names are used in bindings for
12805 menu-bar-select-buffer (see `menu-bar-update-buffers').
12806
128072002-02-23 Kim F. Storm <storm@cua.dk>
12808
12809 The following changes rework my patch of 2002-02-06 which
12810 added command remapping by entering the commands directly into
12811 the keymaps. Now, command remapping uses an explicit `remap'
12812 prefix in the keymaps, i.e. [remap COMMAND].
12813
12814 * keymap.c (Qremap, remap_command_vector): New variables.
12815 (is_command_symbol): Removed function.
12816 (Fdefine_key): No longer accept a symbol for KEY.
12817 Added validation of [remap COMMAND] argument for KEY.
12818 The DEF is no longer required to be a symbol when remapping a command.
12819 (Fremap_command): New function to remap command through keymaps.
12820 (Flookup_key): Perform command remapping initiated by
12821 Fremap_command directly for speed.
12822 (Fkey_binding): Use Fremap_command for command remapping.
12823 (where_is_internal): Handle new command remapping representation.
12824 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
12825 staticpro them. Defsubr Fremap_command.
12826
12827 * keymap.h (Fremap_command): Declare extern.
12828 (is_command_symbol): Remove extern.
12829
12830 * keyboard.c (command_loop_1): Use Fremap_command for command
12831 remapping; now try command remapping for all symbols.
12832
128332002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
12834
12835 * coding.h (run_pre_post_conversion_on_str): Add prototype.
12836
128372002-02-23 Jason Rumney <jasonr@gnu.org>
12838
12839 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
12840 on the string before encoding it.
12841 (Fw32_get_clipboard_data): Run post-read-conversion on the string
12842 after decoding it.
12843
12844 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
12845
128462002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12847
12848 * w32term.c (enter_timestamp): Remove unused static variable to
12849 prevent warning.
12850
12851 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
12852
128532002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
12854
12855 * w16select.c (Fw16_get_clipboard_data): Fix last change.
12856
12857 * xselect.c (selection_data_to_lisp_data): Fix last change.
12858
128592002-02-22 Jason Rumney <jasonr@gnu.org>
12860
12861 * w32term.h (struct w32_output): New member menu_command_in_progress.
12862
12863 * w32menu.c (menubar_selection_callback): Free the menu and
12864 clear the menu_command_in_progress flag.
12865
12866 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
12867 (menu_free_timer): New variable.
12868 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
12869 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
12870 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
12871 menu command is in progress.
12872 <WM_COMMAND>: Set the menu_command_in_progress flag.
12873 Kill any menu_free_timer that is running.
12874
12875 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
12876 Call ExtTextOutA rather than ExtTextOut.
12877
128782002-02-22 Eli Zaretskii <eliz@gnu.org>
12879
12880 * puresize.h (BASE_PURESIZE): Increase to 755000.
12881
128822002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
12883
12884 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
12885 on the string before encoding it.
12886 (Fw16_get_clipboard_data): Run post-read-conversion on the string
12887 after decoding it.
12888
128892002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
12890
12891 Support for ICCCM Extended Segments in X selections:
12892
12893 * xselect.c <Qcompound_text_no_extensions>: New variable.
12894 (syms_of_xselect): Intern and staticpro it.
12895 (selection_data_to_lisp_data): Run post-read-conversion on decoded
12896 selection text.
12897 (lisp_data_to_selection_data): If next-selection-coding-system is
12898 compound-text-no-extensions, set the type of selection to be
12899 compound-text.
12900
12901 * xterm.h (x_encode_text): Update prototype.
12902
12903 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
12904 callers changed. If SELECTIONP is non-zero, run the
12905 pre-write-conversion function before encoding the selection text.
12906
129072002-02-21 Kim F. Storm <storm@cua.dk>
12908
12909 * frame.c (syms_of_frame): Change mouse-highlight default to t.
12910
12911 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
12912 Correct composing of language-change event.
12913
129142002-02-20 Kim F. Storm <storm@cua.dk>
12915
12916 * keyboard.c (menu_bar_items): Don't include keymap or local-map
12917 bindings at PT when building menu (the menu is not updated often
12918 enough for this to work reliable).
12919 (tool_bar_items): Likewise.
12920 (current_active_maps): Removed unused (and buggy) function.
12921
129222002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12923
12924 * xfns.c (gif_load): Use correct width and height for GIF images.
12925
129262002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
12927
12928 * floatfns.c (Fatan): Accept an optional second arg and call
12929 atan2 if passed 2 args.
12930
129312002-02-18 Jason Rumney <jasonr@gnu.org>
12932
12933 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
12934
129352002-02-17 Jason Rumney <jasonr@gnu.org>
12936
12937 * w32term.c (x_autoselect_window_p): New variable.
12938 (syms_of_w32term): DEFVAR_BOOL and initialize it.
12939 (note_mouse_movement): Use it.
12940
12941 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
12942
12943 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
12944
12945 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
12946 New variables.
12947 (syms_of_w32fns): Intern and staticpro them.
12948 (x_frame_parms) <"fullscreen">: New parameter.
12949 (x_fullscreen_move, x_set_fullscreen): New functions.
12950 (x_set_frame_parameters): Support Qfullscreen.
12951 (x_real_positions): Save x/y_pixels_diff frame params.
12952 (x_figure_window_size): Support full-screen frames.
12953 (Fx_create_frame): Default the fullscreen parameter.
12954
12955 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
12956 (x_fullscreen_adjust): New functions.
12957 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
12958 fullscreen. Call x_check_fullscreen_move, and set the
12959 want_fullscreen member of output_data.w32
12960 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
12961
12962 * w32term.h: New enum for FULLSCREEN_* constants.
12963 (struct w32_output): New members want_fullscreen, x_pixels_diff,
12964 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
12965 (x-fullscreen-adjust): New prototype.
12966
129672002-02-17 Kim F. Storm <storm@cua.dk>
12968
12969 * frame.c: (Vmouse_highlight): New variable.
12970 (syms_of_frame): DEFVAR_LISP it.
12971
12972 * frame.h: (Vmouse_highlight): Declare extern.
8a8e19a3 12973
048addec 12974 * xterm.h (struct x_display_info): Add mouse_face_hidden.
8a8e19a3 12975
048addec
JD
12976 * xterm.c (disable_mouse_highlight): Removed variable.
12977 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
12978 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
12979 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
12980 and on after keyboard input.
12981 (x_term_init): Initialize mouse_face_hidden.
8a8e19a3 12982
048addec 12983 * msdos.h (struct display_info): Add mouse_face_hidden.
8a8e19a3 12984
048addec
JD
12985 * msdos.c (disable_mouse_highlight): Removed variable.
12986 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
12987 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
12988 (internal_terminal_init): Initialize mouse_face_hidden.
12989 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
12990 and on after keyboard input.
4f1b1854 12991
048addec 12992 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
4f1b1854 12993
048addec
JD
12994 * w32term.c (disable_mouse_highlight): Removed variable.
12995 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
12996 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
12997 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
12998 and on after keyboard input.
12999 (w32_initialize_display_info): Initialize mouse_face_hidden.
4f1b1854 13000
048addec 130012002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
4f1b1854 13002
048addec
JD
13003 * msdos.c (last_mouse_window): New variable.
13004 (dos_rawgetc): Fix last change--if the mouse is in the same window
13005 as recorded in last_mouse_window, don't select this window.
5cb6905d 13006
048addec 13007 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
5cb6905d 13008
048addec
JD
13009 * msdos.c (x_autoselect_window_p): New variable.
13010 (syms_of_msdos): Defvar it.
13011 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
13012 which the last mouse movement occured, unless it is already selected.
437dfb9f 13013
048addec
JD
13014 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
13015 New variables.
13016 (syms_of_xdisp): DEVFAR them.
13017 (hscroll_window_tree): Use automatic_hscroll_margin and
13018 Vautomatic_hscroll_step to compute the amount of window scrolling.
437dfb9f 13019
048addec 130202002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9f696a00 13021
048addec
JD
13022 * xterm.c (x-autoselect-window): New variable.
13023 (note_mouse_movement): Use it.
9f696a00 13024
048addec 13025 * keyboard.c: Do not include "systime.h" twice.
d57966d7 13026
048addec 130272002-02-15 Andreas Schwab <schwab@suse.de>
d57966d7 13028
bfa02563 13029 * puresize.h (PURESIZE_RATIO): Increase to 9/5.
d57966d7 13030
048addec 13031 * alloc.c (NSTATICS): Increase to 1280.
74779f52 13032
048addec 130332002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
74779f52 13034
048addec 13035 * alloc.c (NSTATICS): Bump to 1026.
a474d59c 13036
048addec
JD
13037 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
13038 (Vx_super_keysym): New variables.
13039 (syms_of_xterm): DEFVAR_LISP them.
13040 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
13041 variables to determine which keys to use for the various modifiers.
a474d59c 13042
048addec 130432002-02-13 Kim F. Storm <storm@cua.dk>
fbb70ad9 13044
048addec
JD
13045 * window.c: (Vmode_line_in_non_selected_windows): Removed.
13046 (mode_line_in_non_selected_windows): New variable.
13047 (syms_of_window): DEFVAR_BOOL it.
fbb70ad9 13048
048addec
JD
13049 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
13050 Use mode_line_in_non_selected_windows.
13051 (mode_line_in_non_selected_windows): Declare extern.
13052 (Vmode_line_in_non_selected_windows): Removed extern.
2d10309f 13053
048addec 130542002-02-13 Richard M. Stallman <rms@gnu.org>
2d10309f 13055
048addec
JD
13056 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
13057 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
13058 (Fclear_this_command_keys): Doc fixes.
2d10309f 13059
048addec
JD
13060 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
13061 (update_face_from_frame_parameter): Increment face_change_count
13062 and windows_or_buffers_changed to force redisplay using changed faces.
7f2cddf3 13063
048addec
JD
13064 * xdisp.c (QCpropertize): New variable.
13065 (mode_line_proptrans_alist): New variable.
13066 (display_mode_element): New arg PROPS; all calls changed.
13067 Implement this, for strings.
13068 Handle literal output of strings by sharing the
13069 main-line code for strings, using local var `literal'.
13070 Handle :propertize feature.
13071 (syms_of_xdisp): Initialze and staticpro QCpropertize and
13072 mode_line_proptrans_alist.
0b1e6b54 13073
048addec 130742002-02-11 Kim F. Storm <storm@cua.dk>
7f2cddf3 13075
048addec
JD
13076 * window.c: (Vmode_line_in_non_selected_windows): New variable.
13077 (syms_of_window): DEFVAR_LISP it.
7f2cddf3 13078
048addec
JD
13079 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
13080 (CURRENT_MODE_LINE_FACE_ID): Use it.
13081 (Vmode_line_in_non_selected_windows): Declare extern.
e17144de 13082
048addec
JD
13083 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
13084 to get mode line face.
e17144de 13085
048addec 130862002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 13087
048addec
JD
13088 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
13089 variables; cus-start.el doesn't need them anymore.
44368f8f 13090
048addec 130912002-02-09 Kim F. Storm <storm@cua.dk>
f884b6f4 13092
048addec
JD
13093 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
13094 reduction. This fixes a display problem where stray newlines were
13095 inserted in the window (corrected by C-l). Clarified code (IMHO).
6637c996 13096
048addec 130972002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 13098
048addec 13099 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
6637c996 13100
048addec 13101 * xdisp.c (display_mode_lines): Fix last change.
453c5510 13102
048addec 131032002-02-09 Jason Rumney <jasonr@gnu.org>
453c5510 13104
048addec
JD
13105 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
13106 match each other.
13107 (w32_load_system_font): Prevent Cleartype fonts from loading.
13108 (Fx_show_tip): Ensure tip frames are above other topmost windows.
d1d070e3 13109
048addec 131102002-02-09 Kim F. Storm <storm@cua.dk>
d1d070e3 13111
048addec
JD
13112 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
13113 (CURRENT_MODE_LINE_HEIGHT): Use it.
13114 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 13115
048addec
JD
13116 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
13117 (pos_visible_p, handle_face_prop): Likewise.
13118 (display_mode_lines): Likewise, but for the real selected window.
13119 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 13120
048addec
JD
13121 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
13122 in non-selected windows.
13123 (realize_basic_faces): Realize it.
13124 (syms_of_term): Intern and staticpro it.
308dd672 13125
048addec 131262002-02-08 Kim F. Storm <storm@cua.dk>
edde72f6 13127
048addec
JD
13128 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
13129 Changed mail addresses to emacs-devel@gnu.org.
308dd672 13130
048addec 131312002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
3c1e6b46 13132
048addec
JD
13133 * fileio.c (Fsubstitute_in_file_name): If the file name includes
13134 ~user, and there's no such user, don't discard everything before ~user.
03950b5b 13135
048addec 13136 * floatfns.c (Fround): Doc fix.
3c1e6b46 13137
048addec 131382002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c1e11810 13139
048addec 13140 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
c1e11810 13141
048addec 131422002-02-07 Stefan Monnier <monnier@cs.yale.edu>
1996baee 13143
048addec 13144 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
1996baee 13145
048addec 131462002-02-07 Kim F. Storm <storm@cua.dk>
0065bb74 13147
048addec
JD
13148 * keymap.c (where_is_internal): Only check whether definition is
13149 remapped if it fulfills is_command_symbol.
0065bb74 13150
048addec 131512002-02-07 Andreas Schwab <schwab@suse.de>
0065bb74 13152
048addec 13153 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
b5cb6072 13154
048addec 13155 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
b5cb6072 13156
048addec 131572002-02-06 Kim F. Storm <storm@cua.dk>
15fff01d 13158
048addec
JD
13159 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
13160 defining command remapping. Doc updated.
13161 (Flookup_key): Remap command through keymap if KEY is a symbol.
13162 (is_command_symbol): New function.
13163 (Fkey_binding): Use it. New optional argument NO-REMAP.
13164 Doc updated. Callers changed. Perform command remapping via
13165 recursive call unless that arg is non-nil.
13166 (where_is_internal): New argument no_remap. Callers changed.
13167 Call recursively to find original key bindings for a remapped
13168 comand unless that arg is non-nil.
13169 (Fwhere_is_internal): New optional argument NO-REMAP.
13170 Doc updated. Callers changed. Pass arg to where_is_internal.
0065bb74 13171
048addec
JD
13172 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
13173 (is_command_symbol): Added prototype.
0d8466cc 13174
048addec
JD
13175 * keyboard.c (Vthis_original_command): New variable.
13176 (syms_of_keyboard): DEFVAR_LISP it.
13177 (command_loop_1): Set it, and perform command remapping.
15fff01d 13178
048addec 131792002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2fae9111 13180
048addec 13181 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
2d6c1fc0 13182
048addec 131832002-02-06 Jason Rumney <jasonr@gnu.org>
07025a55 13184
048addec 13185 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
07025a55 13186
048addec 131872002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
07025a55 13188
048addec 13189 * charset.c (get_charset_id): Use if-else instead of ?:.
3a232704 13190
048addec 131912002-02-06 Richard M. Stallman <rms@gnu.org>
539e92ad 13192
048addec 13193 * filelock.c (S_ISLNK): Define if not defined.
3a232704 13194
048addec 131952002-02-03 Richard M. Stallman <rms@gnu.org>
0cb8bb48 13196
048addec 13197 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
539e92ad 13198
048addec
JD
13199 * lread.c (read1): Redesign strategy for force_multibyte and
13200 force_singlebyte. Now is_multibyte records whether read_buffer
13201 is multibyte. Encountering any multibyte character makes it so.
4e02881b 13202
048addec 132032002-02-02 Stefan Monnier <monnier@cs.yale.edu>
4e02881b 13204
048addec
JD
13205 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
13206 with the same sequence, map that sequence to f10 rather than f0.
1ab964d7 13207
048addec 132082002-02-03 Andreas Schwab <schwab@suse.de>
1ab964d7 13209
048addec
JD
13210 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
13211 latter never being defined on GNU/Linux.
749f499f 13212
048addec 132132002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
749f499f 13214
048addec
JD
13215 * xfaces.c (realize_default_face): Don't set the weight and slant of
13216 the default face to Qnormal, unless these attributes are unspecified.
b5d9aaba 13217
048addec 132182002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3a232704 13219
048addec
JD
13220 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
13221 Call cancel_hourglass unconditionally.
d0fd26dd 13222
048addec
JD
13223 * eval.c (Fsignal): Remove duplicated declaration of
13224 the variable `display_hourglass_p'.
b4c45162 13225
048addec 132262002-01-31 Richard M. Stallman <rms@gnu.org>
d0fd26dd 13227
048addec 13228 * editfns.c (region_limit): Nicer error message.
c95eaa61 13229
048addec
JD
13230 * coding.c (decode_composition_emacs_mule):
13231 Give up if NCOMPONENT gets too large to index `component'.
c95eaa61 13232
048addec
JD
13233 * callint.c (check_mark): New arg to specify clearer error message.
13234 Callers changed.
c95eaa61 13235
048addec 132362002-01-27 Richard M. Stallman <rms@gnu.org>
c95eaa61 13237
048addec 13238 * minibuf.c (Fcompleting_read): Doc fix.
c95eaa61 13239
048addec 132402002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c95eaa61 13241
048addec
JD
13242 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
13243 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
13244 Fix doc-strings.
c95eaa61 13245
048addec 132462002-01-26 Richard M. Stallman <rms@gnu.org>
c95eaa61 13247
048addec 13248 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
c95eaa61 13249
048addec
JD
13250 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
13251 and scroll_up_aggressively.
c95eaa61 13252
048addec 132532002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
31877e0a 13254
048addec 13255 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
31877e0a 13256
048addec 132572002-01-25 Stefan Monnier <monnier@cs.yale.edu>
e2c3786a 13258
048addec
JD
13259 * textprop.c (Fnext_property_change, Fnext_single_property_change)
13260 (Fprevious_property_change, Fprevious_single_property_change):
13261 Stay within the narrowed-buffer boundaries.
e2c3786a 13262
048addec 132632002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
c513fc03 13264
048addec
JD
13265 * term.c (Ftty_display_color_cells): New function.
13266 (syms_of_term): Defsubr it.
13267 (Ftty_display_color_cells, Ftty_display_color_p): Change the
13268 argument name to DISPLAY. Doc fix.
bf794306 13269
048addec
JD
13270 * dispextern.h: Add prototype for set_tty_color_mode and
13271 tty_setup_colors.
bf794306 13272
048addec 132732002-01-24 Jason Rumney <jasonr@gnu.org>
bf794306 13274
048addec
JD
13275 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
13276 If region left to draw is not what was expected, mark the frame as
13277 garbaged.
62582985 13278
048addec
JD
13279 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
13280 Combine the regions returned by BeginPaint and GetUpdateRect.
c513fc03 13281
048addec 132822002-01-23 Jason Rumney <jasonr@gnu.org>
3509a04c 13283
048addec
JD
13284 * w32term.c (x_update_window_begin): Only hide caret if
13285 w32_use_visible_system_caret is set.
13286 (x_update_window_end): Only show caret if
13287 w32_use_visible_system_caret is set.
13288 (syms_of_w32term): Handle SystemParametersInfo call failing.
3509a04c 13289
048addec 13290 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
3509a04c 13291
048addec 132922002-01-22 Richard M. Stallman <rms@gnu.org>
3509a04c 13293
048addec
JD
13294 * unexelf.c (unexec): Define n so as to cause compilation error
13295 for the code where people have often written n instead of nn.
1e9a6186 13296
048addec 13297 * .gdbinit (hookpost-run): Defined.
1e9a6186 13298
048addec 132992002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e4e34e31 13300
048addec 13301 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
e4e34e31 13302
048addec 133032002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4521d1fc 13304
048addec
JD
13305 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
13306 if fullscreen is being set.
7c75be36 13307
048addec 133082002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4521d1fc 13309
048addec
JD
13310 * minibuf.c (Fminibuffer_contents)
13311 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
13312 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
4521d1fc 13313
048addec 133142002-01-21 Richard M. Stallman <rms@gnu.org>
4521d1fc 13315
048addec 13316 * window.c (check_frame_size): Fix minimum height calculation.
93dec019 13317
048addec 133182002-01-20 Ken Raeburn <raeburn@gnu.org>
93dec019 13319
048addec
JD
13320 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
13321 height before comparison.
13322 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
905cc05a 13323
048addec 133242002-01-20 Jason Rumney <jasonr@gnu.org>
2ed06289 13325
048addec
JD
13326 * w32term.c (w32_system_caret_width): Remove.
13327 (w32_use_visible_system_caret): New user flag.
13328 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
13329 Windows reports a screen reader running.
13330 (x_update_window_begin): Hide the system caret.
13331 (x_update_window_end): Show the system caret.
13332 (x_display_and_set_cursor): Don't draw a cursor when
13333 w32_use_visible_system_caret is set. Do not adjust width.
0e79d667 13334
048addec
JD
13335 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
13336 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
13337 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
13338 the user requests it. Use system default width when creating.
13339 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
0e79d667 13340
048addec
JD
13341 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
13342 New window messages.
905cc05a 13343
048addec 133442002-01-20 Richard M. Stallman <rms@gnu.org>
82a7ab23 13345
048addec 13346 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
d75bec6a 13347
048addec 133482002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
52dcb476 13349
048addec 13350 * doprnt.c (doprnt1): Fix typos in error call.
82a7ab23 13351
048addec 133522002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
82a7ab23 13353
048addec 13354 * unexelf.c (unexec) [__sgi]: Support the .got sections.
82a7ab23 13355
048addec 133562002-01-20 Jason Rumney <jasonr@gnu.org>
4d0fa4f3 13357
048addec
JD
13358 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
13359 that Windows returns. If a double check fails, try to guess how
13360 ExtTextOut is going to act.
4d0fa4f3 13361
048addec
JD
13362 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
13363 in place of stricmp.
13364 (w32_list_synthesized_fonts): Removed.
13365 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
13366 (struct enumfont_t): New element; list.
13367 (enum_font_cb2): List all style and charset variations of a font.
13368 (Fw32_select_font): New optional argument; include_proportional.
13369 Exclude vertical fonts. Exclude proportional fonts unless
13370 include_proportional is non-nil.
13371 (w32_enable_synthesized_fonts): Change to a boolean.
13372 (Fw32_send_sys_command): Doc fix.
493faf20 13373
048addec 133742002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
493faf20 13375
048addec
JD
13376 * dispnew.c (update_frame): Move the variable `tem' to the block
13377 where it is used.
4971e491 13378
048addec 133792002-01-19 Jason Rumney <jasonr@gnu.org>
4971e491 13380
048addec
JD
13381 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
13382 call to face-set-after-frame-default.
4971e491 13383
048addec 133842002-01-18 Richard M. Stallman <rms@gnu.org>
d911a0fa 13385
048addec
JD
13386 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
13387 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
d911a0fa 13388
048addec 133892002-01-17 Richard M. Stallman <rms@gnu.org>
d911a0fa 13390
048addec
JD
13391 * window.c (enlarge_window): When exceeding size of parent,
13392 directly delete all the siblings instead of trying to resize it.
201c831a 13393
048addec 133942002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
201c831a 13395
048addec 13396 * term.c (set_tty_color_mode): Remove unused variable `tem'.
201c831a 13397
048addec 133982002-01-16 Henrik Enberg <henrik@enberg.org>
34e39c95 13399
048addec 13400 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
34e39c95 13401
048addec 134022002-01-16 Kim F. Storm <storm@cua.dk>
d77fbc16 13403
048addec
JD
13404 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
13405 is invisible. This can happen if cursor is on top line of a
13406 window, and we switch to a buffer with a header line.
d77fbc16 13407
048addec 13408 * w32term.c (x_erase_phys_cursor): Ditto.
61e3b944 13409
048addec 134102002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
61e3b944 13411
048addec
JD
13412 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
13413 `dont_resize' only when used.
61e3b944 13414
048addec 13415 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
70da46c3 13416
048addec 134172002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
70da46c3 13418
048addec
JD
13419 * xdisp.c (display_mode_element): When computing charpos, depend
13420 on multibyteness of elt, not the text in field.
8af01033 13421
048addec 134222002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8af01033 13423
048addec
JD
13424 * buffer.c (Fkill_all_local_variables):
13425 Increment `update_mode_lines' only once.
7363986a 13426
048addec 134272002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7363986a 13428
048addec
JD
13429 * lisp.h (adjust_after_replace_noundo)
13430 (Fupdate_coding_systems_internal): Add prototypes.
d9e6c4b1 13431
048addec 13432 * sound.c (Fplay_sound): Initialize header_size also for :data case.
d20fc48a 13433
048addec 134342002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
d9e6c4b1 13435
048addec
JD
13436 Support for the --color command-line argument and tty-color-mode
13437 frame parameter:
f1a85b89 13438
048addec
JD
13439 * term.c (tty_default_color_capabilities, tty_setup_colors)
13440 (set_tty_color_mode): New functions.
13441 (term_init): Call tty_default_color_capabilities.
13442 (Qtty_color_mode_alist): New variable.
13443 (syms_of_term): Intern and staticpro it.
f1a85b89 13444
048addec
JD
13445 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
13446 frames.
13447 (do_switch_frame): For termcap frames, switch the tty
13448 color mode as specified by the frame's parameters.
13449 (Qtty_color_mode): New variable.
13450 (syms_of_frame): Intern and staticpro it.
3a62677f 13451
048addec
JD
13452 * emacs.c (USAGE2): Add the --color option.
13453 (standard_args): Ditto.
72244db2 13454
048addec
JD
134552002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13456
13457 * xterm.h (struct x_output): New members want_fullscreen,
13458 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
13459 y_pixels_outer_diff.
13460 New enum for FULLSCREEN_* constants.
13461 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
13462 is NULL.
13463 (x_fullscreen_adjust): Add prototype.
3a62677f 13464
048addec
JD
13465 * emacs.c (USAGE2): Add the new full-screen arguments.
13466 (standard_args): Ditto.
3a62677f 13467
048addec
JD
13468 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
13469 New variables.
13470 (syms_of_xfns): Intern and staticpro them.
13471 (x_frame_parms) <"fullscreen">: New parameter.
13472 (x_fullscreen_move, x_set_fullscreen): New functions.
13473 (x_set_frame_parameters): Support for Qfullscreen.
13474 (x_real_positions): More accurate computation of the frame position.
13475 (x_figure_window_size): Support full-screen frames.
13476 (Fx_create_frame): Default the fullscreen parameter.
3a62677f 13477
048addec
JD
13478 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
13479 (XTread_socket) <Expose>: Call x_check_fullscreen.
13480 <ConfigureNotify>: Don't resize to fullscreen.
13481 Call x_check_fullscreen_move, and set the want_fullscreen member of
13482 output_data.x.
3a62677f 13483
048addec 134842002-01-13 Jason Rumney <jasonr@gnu.org>
9d113d9d 13485
048addec
JD
13486 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
13487 for mice with more than 3 buttons.
b8523839 13488
048addec
JD
13489 * w32term.c (parse_button): New parameter xbutton. Callers changed.
13490 (w32_read_socket): Handle new "XBUTTON" messages.
9464dea4 13491
048addec
JD
13492 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
13493 (syms_of_w32fns): DEFVAR_BOOL it.
13494 (w32_wnd_proc): Handle new "XBUTTON" messages.
9d113d9d 13495
048addec 134962002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
70ec1377 13497
048addec 13498 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
70ec1377 13499
048addec 135002002-01-13 Andreas Schwab <schwab@suse.de>
92f7dd37 13501
048addec 13502 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
92f7dd37 13503
048addec 135042002-01-12 Andreas Schwab <schwab@suse.de>
c93674bb 13505
048addec
JD
13506 * .gdbinit (xbuffer): Remove address operator since data is now a
13507 pointer.
c93674bb 13508
048addec 135092002-01-11 Richard M. Stallman <rms@gnu.org>
59b59892 13510
048addec 13511 * insdel.c (adjust_after_replace_noundo): New function.
59b59892 13512
048addec 13513 * coding.c (code_convert_region): Don't copy old text if undo disabled.
c6ea2775 13514
048addec 135152002-01-09 Jason Rumney <jasonr@gnu.org>
c6ea2775 13516
048addec
JD
13517 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
13518 when checking for multiple frames.
91175673 13519
048addec 135202002-01-08 Richard M. Stallman <rms@gnu.org>
91175673 13521
048addec
JD
13522 * window.c (delete_window): Rewrite the code for changing the
13523 selected window to handle the case where WINDOW is not a leaf.
91175673 13524
048addec 135252002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
e0fead5d 13526
048addec
JD
13527 * process.c (send_process): Set src_multibyte to 1 after the call
13528 top setup_coding_system, not before the call.
e0fead5d 13529
048addec 135302002-01-07 Jason Rumney <jasonr@gnu.org>
e0fead5d 13531
048addec
JD
13532 * xmenu.c (set_frame_menubar, xmenu_show):
13533 (xdialog_show): Initialize wv->help to Qnil.
c186cdb3 13534
048addec
JD
13535 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
13536 (w32_dialog_show): Initialize wv->help to Qnil.
c186cdb3 13537
048addec 135382002-01-06 Jason Rumney <jasonr@gnu.org>
c186cdb3 13539
048addec 13540 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
c186cdb3 13541
048addec 13542 * w32menu.c (w32_menu_display_help): Revert last change.
58cfce98 13543
048addec 13544 * xmenu.c (menu_highlight_callback): Revert last change.
58cfce98 13545
048addec 135462002-01-06 Andreas Schwab <schwab@suse.de>
62854fe2 13547
048addec
JD
13548 * insdel.c (make_gap_larger): Make sure buffer size does not
13549 overflow range of int.
62854fe2 13550
048addec 135512002-01-05 Jason Rumney <jasonr@gnu.org>
656f46bb 13552
048addec
JD
13553 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
13554 OVERLAPS_P.
656f46bb 13555
048addec 13556 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
656f46bb 13557
048addec
JD
13558 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
13559 to the left or to the right of the pointer, put it against
13560 the left screen edge.
13561 (x_frame_parms): Add missing braces around initializer.
036e218d 13562
048addec
JD
13563 * w32term.c (x_setup_relief_colors): Don't compute an image's
13564 background color if it doesn't have a Pixmap.
13565 (notice_overwritten_cursor): Don't depend on
13566 output_cursor and updated_area. Compare pixel coordinates with
13567 window's cursor pixel coordinates.
13568 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
13569 Call notice_overwritten_cursor with new arg list.
13570 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
13571 unconditionally.
13572 (x_draw_image_relief): Use predefined macro instead of
13573 constant when the value of `tool_bar_button_relief' is negative.
036e218d 13574
048addec 13575 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
7ddb2c16 13576
048addec 135772002-01-04 Richard M. Stallman <rms@gnu.org>
7ddb2c16 13578
048addec 13579 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
ace9b298 13580
048addec 135812002-01-03 Richard M. Stallman <rms@gnu.org>
90647b07 13582
048addec
JD
13583 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
13584 (Fkey_binding): Try the `keymap' property map first.
13585 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
13586 minor mode bindings.
90647b07 13587
048addec 135882002-01-03 Kim F. Storm <storm@cua.dk>
ace9b298 13589
048addec 13590 * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
ace9b298 13591
048addec 135922002-01-02 Richard M. Stallman <rms@gnu.org>
ace9b298 13593
048addec
JD
13594 * keyboard.c (read_key_sequence): Handle the keymap property
13595 before minor mode maps.
9fbc32aa 13596
048addec
JD
13597 * editfns.c (Fformat): Update thissize from field_width
13598 based on the actual width, in the string case.
036e218d 13599
048addec 136002002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fbc32aa 13601
048addec
JD
13602 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
13603 when used as truth value to prevent gcc warnings.
9fbc32aa 13604
048addec
JD
13605 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
13606 * w32proc.c: Include <config.h>.
9fbc32aa 13607
048addec 136082002-01-01 Andreas Schwab <schwab@suse.de>
9fbc32aa 13609
048addec
JD
13610 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
13611 not EMACS_INT, to make them compatible with DEFVAR_INT.
13612 * lisp.h (max_specpdl_size): Adjust declaration.
9fbc32aa 13613
048addec 136142002-01-01 Richard M. Stallman <rms@gnu.org>
9fbc32aa 13615
048addec
JD
13616 * print.c (print_object): Test print_escape_nonascii only for
13617 unibyte strings.
13618 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
13619 when outputting to a multibyte buffer.
9fbc32aa 13620
048addec 136212001-12-29 Richard M. Stallman <rms@gnu.org>
9fbc32aa 13622
048addec
JD
13623 * print.c (print_object): In multibyte string, use hex escapes.
13624 Use octal only for unibyte strings.
13625 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
0142178a 13626
048addec
JD
13627 * lread.c (read_escape): New arg BYTEREP for reporting whether
13628 escape forces unibyte or multibyte.
13629 (read1): When reading a string, take note of that info.
0142178a 13630
048addec 136312001-12-29 Ken Raeburn <raeburn@gnu.org>
d4824a5d 13632
048addec
JD
13633 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
13634 comparison to test lisp value returned by Fget.
d4824a5d 13635
048addec 136362001-12-29 Richard M. Stallman <rms@gnu.org>
b1356234 13637
048addec 13638 * lisp.h (max_specpdl_size): Add declaration.
b1356234 13639
048addec 13640 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
3ce081f5 13641
048addec
JD
13642 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
13643 Handle modifier bits. Correct typo in error message.
99e380ee 13644
048addec 136452001-12-28 Richard M. Stallman <rms@gnu.org>
3ce081f5 13646
048addec
JD
13647 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
13648 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
13649 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
13650 Update calls to Fdefine_abbrev.
13651 (write_abbrev): Update for changed data format.
13652 Don't list "system" abbrevs.
13653 (Fexpand_abbrev): Update use count with new data format.
13654 (describe_abbrev): Update for changed data format.
13655 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
66458f32 13656
048addec 13657 * config.in (HAVE_MBSINIT): Add #undef.
66458f32 13658
048addec 13659 * strftime.c (mbsinit): Define as no-op if not available.
66458f32 13660
048addec
JD
13661 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
13662 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
59a86c99 13663
048addec
JD
13664 * keymap.c (Flookup_key): Error message if key has wrong data type.
13665 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
13666 (exclude_key): New variable.
59a86c99 13667
048addec 136682001-12-28 Gerd Moellmann <gerd@gnu.org>
eb77a5f4 13669
048addec
JD
13670 * xterm.c (x_setup_relief_colors): Don't compute an image's
13671 background color if it doesn't have a Pixmap.
eb77a5f4 13672
048addec
JD
13673 * xterm.c (notice_overwritten_cursor): Don't depend on
13674 output_cursor and updated_area. Compare pixel coordinates with
13675 window's cursor pixel coordinates.
13676 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
13677 Call notice_overwritten_cursor with new arg list.
13678 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
13679 unconditionally.
eb77a5f4 13680
048addec
JD
13681 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
13682 height of the cursor line to the amount to scroll.
eb77a5f4 13683
048addec 136842001-12-27 Richard M. Stallman <rms@gnu.org>
bb313871 13685
048addec
JD
13686 * intervals.c (set_point_both): The position after an invisible,
13687 intangible character is not an acceptable stopping point.
bb313871 13688
048addec 136892001-12-27 Ken Raeburn <raeburn@gnu.org>
55b43a63 13690
048addec
JD
13691 * window.c (enlarge_window): In new preserve_before code, convert
13692 CURBEG from lisp object to integer before doing arithmetic.
6052529b 13693
048addec 136942001-12-27 Richard M. Stallman <rms@gnu.org>
3ce081f5 13695
048addec 13696 * bytecode.c (Fbyte_code): Undo previous change.
3ce081f5 13697
048addec 136982001-12-26 Kim F. Storm <storm@cua.dk>
3ce081f5 13699
048addec
JD
13700 * keyboard.c (record_char): Ignore duplicate help-echo events only
13701 separated by mouse-movement. When tracking mouse, only record
13702 first and last mouse-movement event in same window.
13703 Don't record mouse-movement events in keyboard macros.
3ce081f5 13704
048addec 137052001-12-25 Richard M. Stallman <rms@gnu.org>
55b43a63 13706
048addec
JD
13707 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
13708 (Fenlarge_window): New arg PRESERVE_BEFORE.
111ed14e 13709
048addec
JD
13710 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
13711 instead of Fstring_as_unibyte.
9fabb2f5 13712
048addec 137132001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fabb2f5 13714
048addec 13715 The following changes remove mocklisp support:
9fabb2f5 13716
048addec 13717 * mocklisp.h, mocklisp.c: Files removed.
111ed14e 13718
048addec
JD
13719 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
13720 `Qmocklisp' and `Qmocklisp_arguments'.
13721 Remove prototype of syms_of_mocklisp.
2fa0eedf 13722
048addec 13723 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
d1420435 13724
048addec
JD
13725 * callint.c: Do not include mocklisp.h.
13726 (Fcall_interactively): Do not test for mocklisp case.
2fa0eedf 13727
048addec
JD
13728 * eval.c: Remove variables `Qmocklisp_arguments',
13729 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
13730 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
13731 Do not test for mocklisp case.
13732 (Fwhile): Remove unused variable `tem'.
13733 (syms_of_eval): Remove variable `moclisp-arguments'.
ebcbef4e 13734
048addec 13735 * data.c (wrong_type_argument): Remove mocklisp case.
5c131048 13736
048addec 13737 * doc.c (Fdocumentation): Remove mocklisp case.
5c131048 13738
048addec 13739 * emacs.c (main): Do not call syms_of_mocklisp.
5c131048 13740
048addec 137412001-12-21 Richard M. Stallman <rms@gnu.org>
96d276c3 13742
048addec
JD
13743 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
13744 to the left or to the right of the pointer, put it against
13745 the left screen edge.
6108b49c 13746
048addec 137472001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
96d276c3 13748
048addec
JD
13749 * Makefile.in (distclean): Remove .gdbinit if we are building
13750 outside the source tree.
5eea19a4 13751
048addec 137522001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5eea19a4 13753
048addec 13754 * w32.c (emacs_root_dir): New function.
5eea19a4 13755
048addec 13756 * msdos.c (emacs_root_dir): New function.
5eea19a4 13757
048addec
JD
13758 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
13759 of the current drive as the fallback for default_directory.
438e57dd 13760
048addec
JD
13761 * dired.c (file_name_completion): Run the elements of
13762 completion-ignored-extensions through ENCODE_FILE.
438e57dd 13763
048addec
JD
13764 * lisp.h (scmp): Remove prototype, since it's now a static
13765 function private to dired.c.
c88e5347 13766
048addec 137672001-12-18 Richard M. Stallman <rms@gnu.org>
c88e5347 13768
048addec
JD
13769 * dired.c (scmp): Function moved from minibuf.c.
13770 Delete multibyte handling--used only on encoded strings.
59ce1461 13771
048addec 13772 * minibuf.c (scmp): Function moved to dired.c.
59ce1461 13773
048addec 13774 * fns.c (merge): Add QUIT call.
59ce1461 13775
048addec 137762001-12-18 Dave Love <fx@gnu.org>
8727d588 13777
048addec
JD
13778 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
13779 language/georgian.el.
8727d588 13780
048addec 137812001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
cc63037e 13782
048addec
JD
13783 * Makefile.in (lisp, shortlisp): Synchronize with changes to
13784 lisp/Makefile.in:DONTCOMPILE.
cc63037e 13785
048addec 137862001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
cc63037e 13787
048addec
JD
13788 * xdisp.c (window_box_height): Do not return negative values.
13789 From Gerd Moellmann <gerd@gnu.org>.
cc63037e 13790
048addec 13791 * keyboard.c (head_table): Add missing braces around initializer.
cc63037e 13792
048addec 13793 * term.c (keys): Likewise.
deece6f5 13794
048addec 13795 * xfns.c (x_frame_parms, visual_classes): Likewise.
deece6f5 13796
048addec 137972001-12-17 Sam Steingold <sds@gnu.org>
1b944d9c 13798
048addec
JD
13799 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
13800 patch (COMPOSING_P, not COMPOSING).
28ff4293 13801
048addec 138022001-12-17 Richard M. Stallman <rms@gnu.org>
a395ef6a 13803
048addec 13804 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
a395ef6a 13805
048addec
JD
13806 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
13807 before calling decode_coding.
9b46de40 13808
048addec 13809 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
9b46de40 13810
048addec
JD
13811 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
13812 instead of only for COMPOSITION_DISABLED.
9b46de40 13813
048addec 138142001-12-16 Richard M. Stallman <rms@gnu.org>
aff37336 13815
048addec 13816 * alloc.c (pure_alloc): After overflow, allocate just a small block.
aff37336 13817
048addec 13818 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
b9937f07 13819
048addec
JD
13820 * buffer.h (struct buffer): New field `display_error_modiff'.
13821 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
b9937f07 13822
048addec 13823 * window.c (Frecenter): Clear display_error_modiff field.
2cd23960 13824
048addec
JD
13825 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
13826 Call redisplay_window, but not if display_error_modiff field says no.
13827 (redisplay_window_error): New function.
13828 (displayed_buffer): New variable.
13829 (redisplay_internal, redisplay_windows): Call the new functions
13830 instead of redisplay_window directly.
2cd23960 13831
048addec 138322001-12-15 Richard M. Stallman <rms@gnu.org>
2cd23960 13833
048addec 13834 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
2cd23960 13835
048addec 138362001-12-14 Andrew Innes <andrewi@gnu.org>
a4184c1c 13837
048addec 13838 * makefile.w32-in (EMACSLOADPATH): Define.
f9711de4 13839 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
048addec 13840 (bootstrap-temacs): Remove dependency on bootstrap-clean.
a4184c1c 13841
048addec 138422001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
f6fa0866 13843
048addec
JD
13844 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
13845 parameter have a numeric value all the time.
f6fa0866 13846
048addec 13847 * w32fns.c (x_report_frame_params): Likewise.
f4ca4b00 13848
048addec 138492001-12-12 Richard M. Stallman <rms@gnu.org>
f4ca4b00 13850
048addec 13851 * fileio.c (Fwrite_region): Doc fix.
f4e25f94 13852
048addec
JD
13853 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
13854 (redisplay_internal): Call clear_image_cache only for window terminals.
f4e25f94 13855
048addec 138562001-12-12 Gerd Moellmann <gerd@gnu.org>
91c153e2 13857
048addec
JD
13858 * xdisp.c (move_it_vertically_backward): Change heuristic
13859 for the case that we didn't move far enough initially.
91c153e2 13860
048addec
JD
13861 * window.c (Frecenter): Simplify computation in the case of window
13862 system frames and ARG < 0; use window_box_height.
65b7d3e7 13863
048addec 138642001-12-11 Richard M. Stallman <rms@gnu.org>
65b7d3e7 13865
048addec
JD
13866 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
13867 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
6b5f6311 13868
048addec 138692001-12-11 Andrew Innes <andrewi@gnu.org>
6b5f6311 13870
048addec
JD
13871 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
13872 arg is negative.
be676094 13873
048addec 138742001-12-11 Richard M. Stallman <rms@gnu.org>
be676094 13875
048addec
JD
13876 * m/hp800.h: Split the __hpux conditional into the parts
13877 that are right for GNU/Linux too and the parts that are not.
13878 Use the former if GNU_LINUX.
13879 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
032a857d 13880
048addec 13881 * s/gnu-linux.h (GNU_LINUX): Defined.
032a857d 13882
048addec 138832001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
032a857d 13884
048addec
JD
13885 * macros.c, msdos.c, w16select.c: Change doc-string comments to
13886 `new style' [w/`doc:' keyword].
032a857d 13887
048addec 138882001-12-10 Jason Rumney <jasonr@gnu.org>
b6270150 13889
048addec
JD
13890 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
13891 before using.
b6270150 13892
048addec 138932001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
792e5cbd 13894
048addec
JD
13895 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
13896 keyword].
98cbb9fa 13897
048addec 138982001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
98cbb9fa 13899
048addec 13900 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
98cbb9fa 13901
048addec 13902 * s/hpux10.h (srand48): Don't undefine.
98cbb9fa 13903
048addec 139042001-12-09 Jason Rumney <jasonr@gnu.org>
792e5cbd 13905
048addec
JD
13906 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
13907 Add comment to explain where the struct came from.
13908 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
13909 (add_menu_item): Process pop-up menus first to avoid memory leak.
13910 (add_menu_item, w32_menu_display_help): Use `help' field as
13911 Lisp_Object.
13912 (w32_free_submenu_strings): Only free owner-drawn strings.
fa336b91 13913
048addec 139142001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
fa336b91 13915
048addec 13916 * COPYING: Moved back.
fa336b91 13917
048addec
JD
13918 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
13919 Add parentheses around && within ||.
077907d4 13920
048addec 13921 * indent.c (compute_motion): Likewise.
aa2af83a 13922
048addec 13923 * intervals.c (merge_properties_sticky): Likewise.
60a653f1 13924
048addec
JD
13925 * coding.c (setup_coding_system, shrink_encoding_region)
13926 (Fdecode_sjis_char): Likewise.
60a653f1 13927
048addec 139282001-12-07 Andreas Schwab <schwab@suse.de>
60a653f1 13929
048addec
JD
13930 * xdisp.c (display_mode_element): Don't read past end of string if
13931 it ends with '%'.
60a653f1 13932
048addec
JD
13933 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
13934 can hold.
60a653f1 13935
048addec
JD
13936 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
13937 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
13938 type changed to Lisp_Object.
13939 (syms_of_data): DEFVAR_LISP them.
60a653f1 13940
048addec 139412001-12-07 Richard M. Stallman <rms@gnu.org>
60a653f1 13942
048addec
JD
13943 * callproc.c (init_callproc): Set Vdata_directory based on the source
13944 location whenever Emacs was run uninstalled.
60a653f1 13945
048addec 139462001-12-06 Paul Eggert <eggert@twinsun.com>
60a653f1 13947
048addec
JD
13948 * config.in (HAVE_WORKING_VFORK): New #undefs.
13949 * process.c (create_process):
13950 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
13951 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
13952 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
13953 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
13954 * m/intel386.h (HAVE_VFORK): Likewise.
13955 * m/mips-siemens.h (HAVE_VFORK): Likewise.
13956 * m/mips.h (HAVE_VFORK): Likewise.
13957 * s/freebsd.h (vfork): Remove #define.
13958 * s/lynxos.h (HAVE_VFORK): Remove #undef.
13959 * s/usg5-4-2.h: Fix comment about vfork.
60a653f1 13960
048addec 139612001-12-06 Richard M. Stallman <rms@gnu.org>
60a653f1 13962
048addec
JD
13963 * s/hpux10.h (random): Add undef.
13964 (HAVE_RANDOM): Define it just once.
60a653f1 13965
048addec 139662001-12-06 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 13967
048addec 13968 * eval.c: Undo last change: the standard syntax is not wanted.
60a653f1 13969
048addec 139702001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 13971
048addec
JD
13972 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
13973 scroll bars of the frame before deleting the frame itself. If the
13974 frame has a widget, delete the frame with XtDestroyWidget, and do
13975 not call XDestroyWindow before that.
60a653f1 13976
048addec 139772001-12-06 Kim F. Storm <storm@cua.dk>
60a653f1 13978
048addec 13979 * xfns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 13980
048addec 13981 * w32fns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 13982
048addec 139832001-12-05 Andrew Innes <andrewi@gnu.org>
60a653f1 13984
048addec
JD
13985 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
13986 excessively large.
60a653f1 13987
048addec
JD
13988 * insdel.c (make_gap_larger): New function.
13989 (make_gap_smaller): New function.
13990 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
13991 Call make_gap_smaller if arg is negative.
60a653f1 13992
048addec 139932001-12-04 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 13994
048addec
JD
13995 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
13996 Pass a dummy argument when calling interrupt_signal.
13997 (parse_menu_item): Mark disabled items before checking for empty def.
13998 (read_char_minibuf_menu_prompt): Make safety more visible.
13999 (read_key_sequence): Add a `first_unbound' variable.
14000 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
14001 unbound prefix as soon as we can detect it.
60a653f1 14002
048addec
JD
14003 * doc.c (Fsnarf_documentation): Add prototype.
14004 (get_doc_string): Handle negative arguments.
14005 (Fdocumentation): Use AREF and ASIZE.
14006 Move the calls to get_doc_string to a single place.
14007 Don't confuse an interactive-spec for a docstring reference.
14008 (Fdocumentation_property): Take advantage of the fact that
14009 get_doc_string now ignores the sign of the docstring position.
60a653f1 14010
048addec 14011 * eval.c: Use standard syntax for usage in docstrings.
60a653f1 14012
048addec 140132001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 14014
a64387ee 14015 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
60a653f1 14016
048addec 140172001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 14018
048addec
JD
14019 * xterm.c (x_draw_image_relief): Use predefined macro instead of
14020 constant when the value of `tool_bar_button_relief' is negative.
60a653f1 14021
048addec 140222001-12-02 Richard M. Stallman <rms@gnu.org>
60a653f1 14023
048addec
JD
14024 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
14025 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
60a653f1 14026
048addec 14027 * fileio.c (read_non_regular): Delete Fsignal call.
60a653f1 14028
048addec 140292001-12-01 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 14030
048addec 14031 * lisp.h (run_hook_list_with_args): Undo last change.
60a653f1 14032
048addec 140332001-12-01 Gerd Moellmann <gerd@gnu.org>
60a653f1 14034
048addec 14035 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
60a653f1 14036
048addec 140372001-12-01 Jason Rumney <jasonr@gnu.org>
60a653f1 14038
f63fd14e 14039 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
60a653f1 14040
048addec
JD
14041 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
14042 [!WM_MOUSELEAVE]: Define.
60a653f1 14043
048addec
JD
14044 * w32menu.c (current_popup_menu, get_menu_item_info):
14045 (set_menu_item_info): New vars.
14046 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
14047 (w32_menu_show): Set current_popup_menu.
14048 (add_menu_item): Allocate new strings for owner-drawn menu items
14049 and help strings.
14050 Use owner-draw for disabled menu items again.
14051 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
14052 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
60a653f1 14053
048addec
JD
14054 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
14055 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
14056 <WM_EXITMENULOOP>: Free menu strings.
14057 <WM_MOUSELEAVE>: Stop tracking mouse.
14058 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
60a653f1 14059
048addec
JD
14060 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
14061 and mouse face.
60a653f1 14062
048addec 140632001-12-01 Kim F. Storm <storm@cua.dk>
60a653f1 14064
048addec
JD
14065 The following changes add left-fringe and right-fringe
14066 frame parameters to adjust fringe widths, or remove one or
14067 both fringes.
60a653f1 14068
048addec
JD
14069 * frame.h (struct frame): Remove trunc_area_pixel_width and
14070 trunc_area_cols fields.
14071 (Qleft_fringe, Qright_fringe): Declare.
14072 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
60a653f1 14073
048addec
JD
14074 * frame.c (Qleft_fringe, Qright_fringe): New vars.
14075 (syms_of_frame): Initialize them.
60a653f1 14076
048addec
JD
14077 * window.c (coordinates_in_window): Handle separate left and right
14078 fringe widths.
60a653f1 14079
048addec
JD
14080 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
14081 and fringe_cols fields.
14082 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
14083 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
14084 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
14085 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
14086 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
14087 (x_compute_fringe_widths): Add prototype.
60a653f1 14088
048addec
JD
14089 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
14090 fill fringe evenly with small dashes.
f63fd14e 14091 (x_draw_fringe_bitmap): Clear background if necessary. Align and
048addec
JD
14092 clip the new ZV bitmap to avoid jitter between rows.
14093 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
14094 background. Don't draw fringe bitmaps if fringe width is zero.
14095 (x_compute_fringe_widths): New function.
14096 (x_new_font, x_set_window_size_1): Use it.
60a653f1 14097
048addec
JD
14098 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
14099 (x_set_frame_parameters): Process `font' parameter before other
14100 parameters as fringe widths depend on it.
14101 (x_set_fringe_width): New function.
14102 (x_figure_window_size): Use x_compute_fringe_widths.
14103 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
14104 parameters.
60a653f1 14105
048addec
JD
14106 * widget.c (set_frame_size): Use x_compute_fringe_widths.
14107 (EmacsFrameSetCharSize): Ditto.
60a653f1 14108
048addec
JD
14109 * w32term.h: Merged changes from xterm.h.
14110 * w32term.c: Merged changes from xterm.c.
14111 * w32fns.c: Merged changes from xfns.c.
60a653f1 14112
048addec 141132001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 14114
048addec 14115 * COPYING: Removed.
60a653f1 14116
048addec 141172001-11-29 Dave Love <fx@gnu.org>
60a653f1 14118
048addec
JD
14119 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
14120 extra extra slot.
14121 (detect_coding_mask): Fix call of detect_coding_iso2022.
60a653f1 14122
048addec 141232001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 14124
048addec
JD
14125 * fileio.c (file-name-coding-system)
14126 (default-file-name-coding-system): Doc fix (links to referenced
14127 variables added).
60a653f1 14128
048addec 141292001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 14130
048addec
JD
14131 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
14132 Add dummy uses of gcproN variables.
60a653f1 14133
048addec
JD
14134 * category.c (describe_category, describe_category_1)
14135 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
14136 (syms_of_category): Don't defsubr Sdescribe_categories.
60a653f1 14137
048addec 141382001-11-28 Richard M. Stallman <rms@gnu.org>
60a653f1 14139
048addec 14140 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
60a653f1 14141
048addec
JD
14142 * Makefile.in (lispdir): New variable, referring to build dir.
14143 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
60a653f1 14144
048addec 141452001-11-28 Andrew Innes <andrewi@gnu.org>
60a653f1 14146
048addec
JD
14147 * w32menu.c (w32_menu_display_help): Actually add the new argument
14148 OWNER.
60a653f1 14149
048addec 141502001-11-28 Jason Rumney <jasonr@gnu.org>
60a653f1 14151
048addec
JD
14152 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
14153 menu items. From David Ponce <dponce@wanadoo.fr>.
14154 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
14155 conditionally.
f63fd14e 14156 (w32_menu_display_help): New argument OWNER. Rewritten to store a
048addec 14157 help event in the owner frame's keyboard buffer.
60a653f1 14158
048addec
JD
14159 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
14160 (Fx_show_tip): Don't subtract last width from row width.
14161
14162 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
14163 (w32_read_socket): Use EQ to compare frames.
60a653f1 14164
048addec 141652001-11-28 Gerd Moellmann <gerd@gnu.org>
60a653f1 14166
048addec
JD
14167 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
14168 OVERLAPS_P.
60a653f1 14169
048addec 141702001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 14171
048addec
JD
14172 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
14173 `gcpro3' and `gcpro4'.
60a653f1 14174
048addec 14175 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
60a653f1 14176
048addec 141772001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 14178
048addec 14179 * ccl.c: Use AREF and ASIZE.
60a653f1 14180
048addec 141812001-11-27 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 14182
048addec
JD
14183 * lisp.h (run_hook_list_with_args): Remove.
14184 (LIST_END_P): Fix call to wrong_type_argument.
14185 (make_fixnum_or_float): Use EMACS_INT rather than int.
60a653f1 14186
048addec 141872001-11-26 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 14188
048addec
JD
14189 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
14190 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
60a653f1 14191
048addec
JD
14192 * eval.c: Use AREF and ASIZE.
14193 (Ffetch_bytecode): Add the file name to the error message.
60a653f1 14194
048addec
JD
14195 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
14196 which match the end of the file-name.
14197 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
14198 is not a valid env var, but leave it as is instead.
60a653f1 14199
048addec
JD
14200 * keymap.c (access_keymap): Handle t bindings like nil bindings.
14201 Make nil bindings in char-tables transparent.
14202 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
60a653f1 14203
048addec 142042001-11-26 Richard M. Stallman <rms@gnu.org>
60a653f1 14205
048addec
JD
14206 * textprop.c (set_text_properties_1): Allow START, END in either order.
14207 Do nothing if range is empty.
60a653f1 14208
048addec 14209 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
60a653f1 14210
048addec
JD
14211 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
14212 (clean): Not here.
60a653f1 14213
048addec 142142001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 14215
048addec
JD
14216 * textprop.c (set_text_properties_1): Clearly mark that the
14217 interval should not be empty.
60a653f1 14218
048addec
JD
14219 * intervals.c (graft_intervals_into_buffer):
14220 Don't call set_text_properties_1 on an empty interval.
60a653f1 14221
048addec 142222001-11-25 Richard M. Stallman <rms@gnu.org>
60a653f1 14223
048addec 14224 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
60a653f1 14225
048addec
JD
14226 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
14227 don't lose the data in it.
60a653f1 14228
048addec 142292001-11-25 Juanma Barranquero <lektu@terra.es>
60a653f1 14230
048addec 14231 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
60a653f1 14232
c62aec78 14233 * buffer.c (Fkill_buffer): Likewise.
60a653f1 14234
c62aec78 14235 * print.c (temp_output_buffer_setup): Likewise.
60a653f1 14236
048addec 142372001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 14238
048addec 14239 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
60a653f1 14240
048addec 142412001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 14242
048addec
JD
14243 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
14244 Niemitalo <kon@iki.fi>.
60a653f1 14245
048addec 142462001-11-25 Jason Rumney <jasonr@gnu.org>
60a653f1 14247
048addec 14248 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
60a653f1 14249
048addec
JD
14250 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
14251 (Fx_show_tip): Block input during frame creation.
14252 (Fx_show_tip, Fx_hide_tip): Enable.
60a653f1 14253
048addec 142542001-11-24 Richard M. Stallman <rms@gnu.org>
60a653f1 14255
048addec
JD
14256 * lread.c (Fload): Detect recursive load error for more than 3
14257 nestings of the same file.
14258 (Vrecursive_load_depth_limit): Variable deleted.
14259 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
60a653f1 14260
048addec 142612001-11-24 Jason Rumney <jasonr@gnu.org>
60a653f1 14262
048addec
JD
14263 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
14264 mouse position if either left or top is not specified.
60a653f1 14265
048addec
JD
14266 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
14267 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
14268 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
14269 (my_create_tip_window): Assign tip_window.
14270 (x_create_tip_frame): Use same defaults as X.
14271 (compute_tip_xy): Remove unused variable. Use full screen width.
f63fd14e 14272 (Fx_show_tip): Do not double height. Call ShowWindow directly.
60a653f1 14273
048addec
JD
14274 * w32term.c (x_after_update_window_line): Doc fix.
14275 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
14276 frames.
14277 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
60a653f1 14278
048addec
JD
14279 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
14280 for all Windowed systems.
60a653f1 14281
048addec 142822001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 14283
048addec
JD
14284 * msdos.c (IT_clear_screen): If the frame's faces are not yet
14285 realized, use the initial screen colors to clear the screen.
60a653f1 14286
048addec 142872001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 14288
048addec
JD
14289 * textprop.c (Fset_text_properties): Remove unused variables
14290 `unchanged', `prev_changed', `s' and `len'.
60a653f1 14291
048addec
JD
14292 * search.c (Freplace_match): Remove unused variable `inslen'.
14293
14294 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
14295
142962001-11-22 Jason Rumney <jasonr@gnu.org>
14297
14298 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
14299 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
14300 (my_create_tip_window): New function.
14301 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
14302 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
14303
143042001-11-20 Jason Rumney <jasonr@gnu.org>
14305
14306 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
14307 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
14308
14309 * w32fns.c (Vw32_system_coding_system): Remove.
14310 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
14311
143122001-11-19 Stefan Monnier <monnier@cs.yale.edu>
14313
14314 * fileio.c (Fwrite_region): Move choose_write_coding_system to
14315 after build_annotations.
14316
14317 * syntax.c (describe_syntax): Add dummy arg.
14318 (describe_syntax_1): Update call to describe_vector.
14319
14320 * category.c (describe_category): Add dummy arg.
14321 (describe_category_1): Update call to describe_vector.
14322
14323 * keymap.c (Fdescribe_vector): Add `describer' parameter.
14324 (describe_command, describe_translation): Add dummy second param.
14325 (describe_map): Call elt_describer with two arguments.
14326 (describe_vector_princ): Add `fun' parameter.
14327 Call it instead of the hardcoded `princ'.
14328 (describe_vector): Add arg `args'.
14329 Pass it as a new second argument to elt_describer.
60a653f1 14330
048addec 14331 * keymap.h (describe_vector): Update prototype.
60a653f1 14332
048addec
JD
14333 * frame.c: Don't include keymap.h any more.
14334 (keys_of_frame): Remove.
60a653f1 14335
048addec 14336 * lisp.h (keys_of_frame): Remove declaration.
60a653f1 14337
048addec 14338 * emacs.c (main): Don't call `keys_of_frame' any more.
60a653f1 14339
048addec 143402001-11-14 Andreas Schwab <schwab@suse.de>
60a653f1 14341
048addec
JD
14342 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
14343 if defined, 0 otherwise.
14344 (MAP_FAILED): Define if not defined and use it to test mmap failure.
14345 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
60a653f1 14346
048addec 143472001-11-19 Richard M. Stallman <rms@gnu.org>
60a653f1 14348
048addec 14349 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
60a653f1 14350
048addec 143512001-11-18 Jason Rumney <jasonr@gnu.org>
60a653f1 14352
048addec
JD
14353 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
14354 (x_draw_bar_cursor): If the background color of the glyph under
14355 the cursor equals the frame's cursor color, use the glyph's
14356 foreground color for drawing the bar cursor.
14357 (x_after_update_window_line): Clear internal border in different
14358 circumstances.
14359 (w32_set_vertical_scroll_bar): Check for width and height > 0.
14360 (w32_draw_relief_rect): Correct relief by 1 pixel.
14361 (x_set_glyph_string_background_width):
14362 Set extends_to_end_of_line_p if the row's fill_line_p is set and
14363 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
14364 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
14365 if cursor_in_non_selected_windows is false.
14366 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
14367 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
14368 Notice if cursor gets overwritten.
14369 (notice_overwritten_cursor): Renamed from
14370 note_overwritten_text_cursor. Rewritten to take glyph widths
14371 into account, and to take X positions as parameters.
14372 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
14373 around call to x_draw_glyphs.
14374 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
14375 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
14376 color to use for image glyph reliefs.
14377 (x_draw_image_relief): Accept zero tool_bar_button_relief.
14378 (glyph_rect): Remove unused variable `area'.
60a653f1 14379
048addec
JD
14380 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
14381 some items.
14382 (x_set_internal_border_width): Set frame garbaged when window
14383 doesn't exist yet.
14384 (Fx_create_frame): Accept zero tool_bar_button_relief.
14385 (x_clear_image_1, four_corners_best, image_background)
14386 (image_background_transparent): New functions.
14387 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
14388 (gs_format): Add `:background' entry.
14389 (lookup_image): Set IMG's background color if specified.
14390 (pbm_load, xbm_load_image, png_load): Set IMG's background field
14391 when appropriate.
14392 (x_clear_image_1): Reset `background_valid' and
14393 `background_transparent_valid' fields.
14394 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
14395 calculating it here. Set IMG's background_transparent field.
14396 (enum xpm_keyword_index): Add XPM_BACKGROUND.
14397 (enum png_keyword_index): Add PNG_BACKGROUND.
14398 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
14399 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
14400 (enum gif_keyword_index): Add GIF_BACKGROUND.
14401 (enum gs_keyword_index): Add GS_BACKGROUND.
14402 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
14403 Pre-calculate image background color where necessary.
14404 (x_create_x_image_and_pixmap, xbm_load, gs_load):
14405 Use display info's n_cbits entry for screen depth.
14406 (Fx_show_tip): Remove unused variables `buffer', `top',
14407 `left', `max_width' and `max_height'.
60a653f1 14408
048addec 14409 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
60a653f1 14410
048addec 144112001-11-18 Gerd Moellmann <gerd@gnu.org>
60a653f1 14412
048addec 14413 * puresize.h (BASE_PURESIZE): Increase to 750000.
60a653f1 14414
048addec 144152001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 14416
048addec 14417 * frame.c (Fframe_live_p): Doc fix.
60a653f1 14418
048addec 144192001-11-18 Richard M. Stallman <rms@gnu.org>
60a653f1 14420
048addec
JD
14421 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
14422 (message_dolog_marker3): New static variables hold three markers.
14423 (syms_of_xdisp): Initialize and staticpro them.
14424 (message_dolog): Use message_dolog_marker1..3 instead of
14425 allocating markers each time. Unchain them when done.
60a653f1 14426
048addec 144272001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 14428
048addec 14429 * doc.c (Fsnarf_documentation): Doc fix.
60a653f1 14430
048addec 144312001-11-17 Andreas Schwab <schwab@suse.de>
60a653f1 14432
048addec 14433 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
60a653f1 14434
048addec 144352001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 14436
048addec 14437 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
60a653f1 14438
048addec 144392001-11-17 Jason Rumney <jasonr@gnu.org>
60a653f1 14440
048addec 14441 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
60a653f1 14442
048addec 144432001-11-17 Gerd Moellmann <gerd@gnu.org>
60a653f1 14444
048addec
JD
14445 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
14446 with invalid position.
60a653f1 14447
048addec 144482001-11-16 Richard M. Stallman <rms@gnu.org>
60a653f1 14449
048addec 14450 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
60a653f1 14451
048addec
JD
14452 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
14453 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
14454 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
60a653f1 14455
048addec 14456 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
60a653f1 14457
048addec 144582001-11-16 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 14459
048addec
JD
14460 * fileio.c (build_annotations): Split off the tail.
14461 (build_annotations_2): New fun. Extracted from build_annotations.
14462 (Fwrite_region): Split the call to build_annotations into two
14463 calls to build_annotations and build_annotations_2.
077907d4 14464
048addec 144652001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1756e2fb 14466
048addec
JD
14467 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
14468 clear_waiting_for_input with argument.
1756e2fb 14469
048addec 14470 * xterm.h (x_update_cursor): Remove duplicated prototype.
06e8f738 14471
048addec 14472 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
06e8f738 14473
048addec 14474 * xterm.c (waiting_for_input): Remove unnecessary declaration.
fa336b91 14475
048addec 14476 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
fa336b91 14477
048addec 144782001-11-16 Stefan Monnier <monnier@cs.yale.edu>
fa336b91 14479
048addec
JD
14480 * fileio.c (choose_write_coding_system): New fun, extracted
14481 from Fwrite_region.
14482 (Fwrite_region): Use it.
fa336b91 14483
048addec
JD
14484 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
14485 (funcall_lambda, run_hook_with_args): Make static and add prototype.
14486 (ml_apply, find_handler_clause): Add prototype.
fa336b91 14487
048addec 144882001-11-16 Eli Zaretskii <eliz@gnu.org>
fa336b91 14489
048addec 14490 * config.in: Add #undef HAVE_COFF_H.
fa336b91 14491
048addec
JD
14492 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
14493 Required for ISC 4.1.
fa336b91 14494
048addec 144952001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
fa336b91 14496
048addec
JD
14497 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
14498 Andrew Wiseman <a.wiseman@btclick.com>.
fa336b91 14499
048addec 145002001-11-16 Kim F. Storm <storm@cua.dk>
fa336b91 14501
048addec
JD
14502 The following changes are made to clean up the various internal
14503 references to the fringes to actually use the term `fringe' for
14504 them. Previously, they were called `flags areas', `bitmap areas',
14505 `left/right side of windows', or implicitly as `flags' or
14506 `bitmaps':
fa336b91 14507
048addec 14508 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
f63fd14e 14509 Comments fixed. Use renamed symbols.
06e8f738 14510
f63fd14e 14511 * dispnew.c: Comment fix. Use renamed symbols.
06e8f738 14512
048addec
JD
14513 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
14514 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
14515 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
9ce647f4 14516
048addec 14517 * msdos.c: Comment fix.
9ce647f4 14518
048addec 14519 * w32fns.c: Use renamed symbols.
9b784ab8 14520
f63fd14e 14521 * w32term.c: Comment fixes. Use renamed symbols.
048addec
JD
14522 (fringe_bitmap_type): Renamed from bitmap_type.
14523 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
14524 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
14525 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
9f7e52b4 14526
f63fd14e 14527 * w32term.h: Comment fixes. Use renamed symbols.
048addec
JD
14528 (fringes_extra): Renamed from flags_areas_extra.
14529 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
14530 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
14531 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
14532 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
14533 (FRAME_X_LEFT_FRINGE_WIDTH):
14534 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
14535 (FRAME_X_RIGHT_FRINGE_WIDTH):
14536 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
9f7e52b4 14537
048addec 14538 * widget.c: Use renamed symbols.
9f7e52b4 14539
f63fd14e 14540 * window.c: Comment fixes. Use renamed symbols.
048addec 14541 (coordinates-in-window-p): Doc fix.
fa336b91 14542
f63fd14e 14543 * xdisp.c: Comment fixes. Use renamed symbols.
34e5d0af 14544
048addec 14545 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
9b784ab8 14546
048addec 14547 * xfns.c: Use renamed symbols.
89512fcd 14548
f63fd14e 14549 * xterm.c: Comment fixes. Use renamed symbols.
048addec
JD
14550 (fringe_bitmap_type): Renamed from bitmap_type.
14551 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
14552 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
14553 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
89512fcd 14554
f63fd14e 14555 * xterm.h: Comment fixes. Use renamed symbols.
048addec
JD
14556 (fringes_extra): Renamed from flags_areas_extra.
14557 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
14558 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
14559 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
14560 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
14561 (FRAME_X_LEFT_FRINGE_WIDTH):
14562 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
14563 (FRAME_X_RIGHT_FRINGE_WIDTH):
14564 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
14565
145662001-11-15 Jason Rumney <jasonr@gnu.org>
14567
14568 * w32menu.c (add-menu-item): Make help_echo and radio buttons
14569 work for most menu items. From David Ponce
14570 <david.ponce@wanadoo.fr>.
14571
145722001-11-15 Gerd Moellmann <gerd@gnu.org>
14573
14574 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
14575 Some x_set_* function expect to be called even if old and new
14576 value are equal.
14577
14578 * xdisp.c (build_desired_tool_bar_string): Accept zero
14579 tool_bar_button_relief.
14580
14581 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
14582
14583 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
14584
14585 * xterm.c (x_draw_bar_cursor): If the background color of the
14586 glyph under the cursor equals the frame's cursor color, use
14587 the glyph's foreground color for drawing the bar cursor.
14588
14589 * dispnew.c (direct_output_forward_char): Fix character/byte
14590 position comparison.
7d18891d 14591
048addec 145922001-11-15 Miles Bader <miles@gnu.org>
d2936d21 14593
048addec
JD
14594 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
14595 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
14596 Update arguments to find_field.
14597 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
14598 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
14599 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
14600 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
7d18891d 14601
048addec 146022001-11-14 Richard M. Stallman <rms@gnu.org>
7d18891d 14603
048addec 14604 * editfns.c (Fpropertize): Allow call with 1 arg.
7d18891d 14605
048addec
JD
14606 * dispextern.h (image_background, image_background_transparent):
14607 Conditionalize on HAVE_X_WINDOWS.
7d18891d 14608
048addec 146092001-11-13 Richard M. Stallman <rms@gnu.org>
7d18891d 14610
048addec 14611 * print.c (Fprin1_to_string): Doc fix.
7d18891d 14612
048addec 14613 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
7d18891d 14614
048addec 14615 * floatfns.c (Fceiling, Ffloor): Doc fixes.
7d18891d 14616
048addec 14617 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
7d18891d 14618
048addec 14619 * fileio.c (Ffile_accessible_directory_p): Doc fix.
7d18891d 14620
048addec 14621 * eval.c (syms_of_eval): Doc fix.
7d18891d 14622
048addec 14623 * coding.c (syms_of_coding): Doc fix.
7d18891d 14624
048addec 14625 * doc.c (Fsnarf_documentation): Doc fix.
7d18891d 14626
048addec 14627 * dispnew.c (syms_of_display): Doc fix.
9474c847 14628
048addec 14629 * category.c (Fget_unused_category): Doc fix.
9474c847 14630
048addec 14631 * buffer.c (syms_of_buffer): Doc fixes.
e3059a5d 14632
048addec 146332001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
e3059a5d 14634
048addec 14635 * print.c (prin1, print): Doc fix.
e3059a5d 14636
048addec 146372001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
b3700ae7 14638
048addec
JD
14639 * fontset.h: Remove declarations of variables
14640 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
b3700ae7 14641
048addec
JD
14642 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
14643 `Vclip_large_size_font'.
eae936e2 14644
048addec 146452001-11-13 Jason Rumney <jasonr@gnu.org>
4bb962be 14646
048addec 14647 * w32fns.c: Doc fix.
ddb67bdc 14648
048addec 146492001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3467c402 14650
048addec 14651 * xfaces.c (Fface_attributes_as_vector): Doc fix.
3467c402 14652
048addec 14653 * fns.c: Doc fix.
6e1b91d7 14654
048addec 14655 * emacs.c: Doc fix.
1c1d3d69 14656
048addec 14657 * coding.c: Doc fix.
1c1d3d69 14658
048addec
JD
14659 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
14660 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
14661 `new style' [w/`doc:' keyword].
b6f4c7ba 14662
048addec 146632001-11-12 Richard M. Stallman <rms@gnu.org>
b6f4c7ba 14664
048addec
JD
14665 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
14666 LeaveNotify events. Only FocusIn and FocusOut do that now.
14667 (x_display_and_set_cursor): Do display hollow cursors in active
14668 minibuffer windows when they are not selected.
b6f4c7ba 14669
048addec 146702001-11-12 Jason Rumney <jasonr@gnu.org>
a89f435d 14671
048addec 14672 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
f63fd14e
JB
14673 * w32term.c: Change doc-string comments to `new style'
14674 [w/`doc:' keyword]. Doc fixes.
a89f435d 14675
048addec
JD
14676 * w32fns.c: Don't define max.
14677 (Fx_open_connection): Only execute once.
a4cd0cd7 14678
048addec 146792001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
eafb659a 14680
048addec
JD
14681 * ccl.c: Change macros to use do-while block instead of if-else.
14682 Use braces to follow GNU Coding Standards.
eafb659a 14683
048addec 146842001-11-11 Richard M. Stallman <rms@gnu.org>
a4cd0cd7 14685
048addec 14686 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
a4cd0cd7 14687
048addec 14688 * lread.c (read_escape): Use end_of_file_error for reporting eof.
a4cd0cd7 14689
048addec
JD
14690 * insdel.c (replace_range): Use adjust_markers_for_replace
14691 instead of adjust_markers_for_delete and adjust_markers_for_insert.
a4cd0cd7 14692
048addec 14693 * intervals.h: Declare set_text_properties and set_text_properties_1.
a4cd0cd7 14694
048addec
JD
14695 * textprop.c (set_text_properties_1): New subroutine
14696 broken out of set_text_properties.
14697 (set_text_properties): Use set_text_properties_1.
91823618 14698
048addec
JD
14699 * intervals.c (graft_intervals_into_buffer):
14700 Use set_text_properties_1 to clear out properties.
91823618 14701
048addec
JD
14702 * search.c (Freplace_match): Use replace_range to insert
14703 and delete. Don't request property inheritance from
14704 surrounding text.
86928dfb 14705
048addec 147062001-11-10 Jason Rumney <jasonr@gnu.org>
86928dfb 14707
048addec 14708 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
f63fd14e 14709 vertical fonts. Allow them if face name is explicitly specified.
048addec 14710 Do not give up if we find a font that cannot be converted to an xlfd.
40ef1eda 14711
048addec 147122001-11-10 Gerd Moellmann <gerd@gnu.org>
ab8469eb 14713
048addec
JD
14714 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
14715 instead of malloc/free.
a78e0303 14716
048addec 147172001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
40ef1eda 14718
048addec
JD
14719 * xfaces.c (merge_face_vectors): Use braces to follow GNU
14720 Coding Standards.
14721 (Finternal_set_lisp_face_attribute): Likewise.
fabf4a91 14722
048addec 14723 * buffer.c (Fbury_buffer): Likewise.
0c99b139 14724
048addec 14725 * indent.c (current_column_1): Remove unused variable `prev_col'.
0c99b139 14726
048addec
JD
14727 * coding.c (encode_coding): Use precomputed value of `src'.
14728 (encode_coding): Remove unused variable `src_end'.
14729 (code_convert_region): Remove unused variables `count'.
830ddd77 14730
048addec 147312001-11-07 Jason Rumney <jasonr@gnu.org>
830ddd77 14732
048addec
JD
14733 * w32term.c (x_display_and_set_cursor): Do not move system caret
14734 if cursor_glyph is NULL.
55c6d645 14735
048addec 147362001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
55c6d645 14737
048addec 14738 * keymap.c (access_keymap): Fix compilation error.
5de38842 14739
048addec 147402001-11-07 Miles Bader <miles@gnu.org>
7a4564a4 14741
048addec 14742 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
5de38842 14743
048addec 147442001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4fa23df5 14745
048addec
JD
14746 * intervals.c (graft_intervals_into_buffer):
14747 Remove #ifdef'd-out code.
14748 (graft_intervals_into_buffer): Remove unused variable `middle'.
4fa23df5 14749
048addec
JD
14750 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
14751 code (eval-current-buffer).
14752 Change doc-string comments to `new style' [w/`doc:' keyword].
7a6a97d7 14753
048addec 147542001-11-06 Richard M. Stallman <rms@gnu.org>
c191d13c 14755
048addec 14756 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
7a6a97d7 14757
048addec 147582001-11-06 Stefan Monnier <monnier@cs.yale.edu>
44dc78e0 14759
048addec 14760 * lread.c (read1): Fix behavior with nested backquoting.
44dc78e0 14761
048addec
JD
14762 * keyboard.c (make_lispy_event): Check integerness and fix
14763 Lisp_Object/int mixup.
17893c65 14764
048addec 147652001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4d994a79 14766
048addec 14767 * fns.c (copy_hash_table): Remove unused variable `v'.
d5360cc7 14768
048addec
JD
14769 * fontset.c (fontset_font_pattern): Remove unused variable
14770 `family_registry'.
d5360cc7 14771
048addec 14772 * indent.c (current_column_1): Remove unused variable `prev_col'.
d5360cc7 14773
048addec 147742001-11-05 Richard M. Stallman <rms@gnu.org>
96238a5a 14775
048addec 14776 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
96238a5a 14777
048addec
JD
14778 * buffer.c (Fkill_buffer): Don't delete auto save file
14779 if buffer is modified.
d9d54213 14780
048addec 147812001-11-05 Andrew Innes <andrewi@gnu.org>
d9d54213 14782
048addec
JD
14783 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
14784 CHECK_NUMBER_CDR.
b116830b 14785
048addec 147862001-11-05 Richard M. Stallman <rms@gnu.org>
b116830b 14787
048addec 14788 * unexelf.c (unexec): Minor changes; clean up comments.
3297e2a1 14789
048addec 147902001-11-05 Sam Steingold <sds@gnu.org>
3297e2a1 14791
048addec 14792 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
6fb8339c 14793
048addec 147942001-11-05 Andreas Schwab <schwab@suse.de>
6fb8339c 14795
048addec 14796 * sound.c (sound_perror): Save errno from being clobbered.
7dd73b78 14797
048addec 147982001-11-05 Dale Hagglund <rdh@yottayotta.com>
7dd73b78 14799
048addec
JD
14800 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
14801 the program image directly.
982f6c7e 14802
048addec 148032001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d31053f9 14804
048addec 14805 * buffer.h (Fbuffer_local_value): Add prototype.
d31053f9 14806
048addec 148072001-11-04 Richard M. Stallman <rms@gnu.org>
d31053f9 14808
048addec
JD
14809 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
14810 and CHECK_BUFFER.
d31053f9 14811
048addec
JD
14812 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
14813 (record_char): Likewise.
d31053f9 14814
048addec
JD
14815 * keyboard.c (make_lispy_event): Don't insist a drag event must
14816 move to a different buffer position. Instead, check for moving at
14817 least double_click_fuzz.
982f6c7e 14818
048addec 14819 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
830047fd 14820
048addec 14821 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
b116830b 14822
048addec
JD
14823 * indent.c (current_column_1, Fmove_to_column): Separate the code
14824 for display-table glyphs from the code for buffer text, to fix
14825 bugs in the former.
830047fd 14826
048addec 148272001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
b116830b 14828
048addec
JD
14829 * buffer.c (Fbuffer_local_value): New function.
14830 (syms_of_buffer): Defsubr it.
2df5238c 14831
048addec
JD
14832 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
14833 value of `cursor-in-non-selected-windows'.
4e397688 14834
048addec
JD
14835 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
14836 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
14837 (syms_of_xdisp): Initialize it.
48b0f3ae 14838
048addec 148392001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2df5238c 14840
048addec 14841 * xfns.c (Fx_create_frame): Doc fix.
3ecaf7e5 14842
048addec
JD
14843 * coding.c: Change doc-string comments to `new style' [w/`doc:'
14844 keyword].
3ecaf7e5 14845
048addec
JD
14846 * eval.c (top_level_value, top_level_set): Remove commented and
14847 #ifdef'd-out code.
14848 (Fdefvar): Fix usage in doc-string.
3ecaf7e5 14849
048addec 148502001-11-03 Richard M. Stallman <rms@gnu.org>
3ecaf7e5 14851
048addec 14852 * xfns.c: Include unistd.h, if it exists.
8db2e33b 14853
048addec 14854 * editfns.c: Move the include of ctype.h after unistd.h.
8db2e33b 14855
048addec 14856 * gmalloc.c: Test BROKEN_PROTOTYPES.
aed29b97 14857
048addec 148582001-11-03 Ken Raeburn <raeburn@gnu.org>
aed29b97 14859
048addec
JD
14860 * lisp.h (CHECK_STRING_CAR): New macro.
14861 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
14862 treating XCAR and XCDR as lvalues.
14863 (openp): Use CHECK_STRING_CAR.
14864 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
aed29b97 14865
048addec 148662001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
6cb16f95 14867
048addec
JD
14868 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
14869 (SIGMASKTYPE): Define.
1b1acc13 14870
048addec 14871 * syssignal.h (sigunblock): Don't define if already defined.
020f9b38 14872
048addec 148732001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
020f9b38 14874
048addec
JD
14875 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
14876 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
14877 Fix typos in comments.
6cb16f95 14878
048addec
JD
14879 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
14880 and #ifdef'd-out code.
14881 Fix and reindent comments.
6cb16f95 14882
048addec 14883 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
6cb16f95 14884
048addec
JD
14885 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
14886 argument `i' in macros.
6cb16f95 14887
048addec
JD
14888 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
14889 `i' in macros.
7e9d3c2f 14890
048addec
JD
14891 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
14892 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
14893 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
14894 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
14895 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
14896 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
14897 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
14898 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
14899 in macros.
7e9d3c2f 14900
048addec
JD
14901 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
14902 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
14903 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
14904 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
14905 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
14906 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
14907 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
14908 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
14909 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
14910 (remove unused second argument).
7e9d3c2f 14911
048addec 149122001-11-02 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 14913
048addec
JD
14914 * syntax.c (describe_syntax): New wrapper.
14915 (Finternal_describe_syntax_value): Rename from describe_syntax.
14916 Don't insert space at front and \n at the end.
14917 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
e6bff182 14918
048addec
JD
14919 * regex.c (re_wctype): Try to fix some warnings.
14920 (regcomp, regexec): Don't forget the __restrict.
9ba48103 14921
048addec 149222001-11-02 Richard M. Stallman <rms@gnu.org>
9ba48103 14923
048addec 14924 * textprop.c (Fget_char_property): Doc fix.
9ba48103 14925
048addec 149262001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9ba48103 14927
048addec 14928 * process.c (Fstart_process): Add usage to doc-string.
c22e59e1 14929
048addec 14930 * data.c (Fsetq_default): Ditto.
c22e59e1 14931
048addec 14932 * callint.c (Finteractive): Ditto.
9271ed2c 14933
048addec 149342001-11-01 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 14935
048addec
JD
14936 * macros.c: Don't include keymap.h any more.
14937
149382001-11-01 Richard M. Stallman <rms@gnu.org>
14939
14940 * data.c (Fmake_local_variable): Doc fix.
14941
14942 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
14943 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
e6bff182 14944
048addec 14945 * keymap.c (Fdescribe_buffer_bindings): Print character property
9271ed2c
RS
14946 bindings along with or instead of the buffer local map.
14947 Make the overriding maps override what they should.
14948
f00691a3 149492001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8b8bd9c6
PJ
14950
14951 * window.c (grow_mini_window): Fix typo in comment.
14952
27188d11
GM
149532001-11-01 Gerd Moellmann <gerd@gnu.org>
14954
7b49b9d2
GM
14955 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
14956 (XTset_vertical_scroll_bar): Likewise.
14957
43f7c3ea
GM
14958 * xfns.c (x_build_heuristic_mask): Use four_corners_best
14959 instead of IMAGE_BACKGROUND.
c22e59e1 14960
b350c2e5
GM
14961 * xfns.c (four_corners_best): Reindent.
14962
c22e59e1 14963 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27188d11
GM
14964 Handle :box so that it is possible to specify sexprs.
14965
bf00d461
EZ
149662001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
14967
14968 * s/hpux11.h: New file.
14969
f00691a3 149702001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e10df59 14971
2b209b97
PJ
14972 * emacs.c (USAGE1): Show command line option --no-window-system
14973 instead of --no-windows in usage.
14974 (standard_args): Rename --no-windows to --no-window-system.
14975 (bug_reporting_address): Follow Emacs coding conventions.
14976
9dbc9081
PJ
14977 * eval.c (Fcommandp): Doc fix.
14978 Change doc-string comments to `new style' [w/`doc:' keyword].
14979
4e10df59
PJ
14980 * frame.c (Fframe_live_p): Doc fix.
14981
14982 * buffer.c (selective-display-ellipses): Doc fix.
14983
dd387b25
GM
149842001-10-31 Gerd Moellmann <gerd@gnu.org>
14985
fe957e65
GM
14986 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
14987
dd387b25
GM
14988 * xfaces.c (realize_x_face): If C is not a single-byte character,
14989 set the face's colors_copied_bitwise_p instead of the defaulted_p
14990 members which have a different meaning.
14991 (free_face_colors): Do nothing for a face whose colors have been
14992 copied bitwise.
14993
c22e59e1 14994 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
dd387b25 14995
f00691a3 149962001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2e1280f8 14997
687784e8
PJ
14998 * marker.c, mocklisp.c: Change doc-string comments to `new style'
14999 [w/`doc:' keyword].
2e1280f8 15000
b9d9a9b9
GM
150012001-10-31 Gerd Moellmann <gerd@gnu.org>
15002
15003 * fns.c (require_unwind): Return Lisp_Object.
15004
f00691a3 150052001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
48400103 15006
fa1361cb
PJ
15007 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
15008 (last-input-char): Revert doc-string to be the same as the
15009 doc-string of `last-input-event'.
15010
6c465a15 15011 * xdisp.c: Fix typos in comments.
48400103 15012
eafa3196
GM
150132001-10-31 Gerd Moellmann <gerd@gnu.org>
15014
15015 * window.c (grow_mini_window): Handle case that the root
15016 window is already smaller than the nominal mininum height.
15017
747d3f2a
SM
150182001-10-30 Stefan Monnier <monnier@cs.yale.edu>
15019
bf9bb76f
SM
15020 * emacs.c (main): Don't call keys_of_macros any more.
15021
15022 * lisp.h (keys_of_macros): Remove.
15023
15024 * macros.c (keys_of_macros): Remove.
15025
747d3f2a
SM
15026 * xfaces.c (Fface_attribute_relative_p): Declare args.
15027
5e905a57
JR
150282001-10-30 Jason Rumney <jasonr@gnu.org>
15029
15030 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
15031 (enum_font_cb2): Ignore fonts with vertical orientation.
15032
3a426197
RS
150332001-10-30 Richard M. Stallman <rms@gnu.org>
15034
15035 * keyboard.c (Finput_pending_p): Doc fix.
15036
a742d646
GM
150372001-10-30 Gerd Moellmann <gerd@gnu.org>
15038
259cf6bc
GM
15039 * xterm.c (x_after_update_window_line): Don't run the code
15040 clearing in borders for rows whose visible height is 0.
15041
3f99f948
GM
15042 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
15043 resized_p flag is set. If not set, use the much less flickering
15044 method previously used.
15045
15046 * dispnew.c (change_frame_size_1): Set frame's resized_p.
15047
15048 * frame.h (struct frame) <resized_p>: New member.
15049
b4a3be43
GM
15050 * lread.c (to_multibyte): Ensure read_buffer is at least twice
15051 as large as the number of bytes to convert.
747d3f2a 15052
a742d646
GM
15053 * lread.c (to_multibyte): New function.
15054 (read1): Use it.
15055
cacbb9e9
EZ
150562001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
15057
15058 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
15059
99cb6b2f
GM
150602001-10-30 Gerd Moellmann <gerd@gnu.org>
15061
327f42ee 15062 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
15063 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
15064 if the row's fill_line_p is set and drawing the last glyph with
15065 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 15066
99cb6b2f
GM
15067 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
15068
8e8223e2
SM
150692001-10-29 Stefan Monnier <monnier@cs.yale.edu>
15070
15071 * xmenu.c: Include coding.h and charset.h.
15072 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
15073 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
15074 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
15075 Explicitly set wv->help. Use `TRUE' rather than `True'.
15076 (menu_help_callback): Use empty_string.
15077
15078 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
15079 (Fx_popup_dialog): Explicitly init f.
15080 (w32_menu_display_help): Use empty_string.
15081
4d083a8f
RS
150822001-10-29 Richard M. Stallman <rms@gnu.org>
15083
b2304472
RS
15084 * fns.c (Frequire): Detect recursive try to require the same
15085 feature 3 or more levels deep, and get error.
15086 (require_unwind): New subroutine.
15087 (require_nesting_list): New variable.
15088 (syms_of_fns): Init and staticpro it.
15089
4d083a8f
RS
15090 * print.c (print_object): Clarify indication of insertion type.
15091
2fe41216
EZ
150922001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
15093
90480000
EZ
15094 * coding.c (syms_of_coding): Document that locale-coding-system is
15095 used for decoding input on X.
15096
2fe41216
EZ
15097 * window.c (Fscroll_left, Fscroll_right): Doc fix.
15098
f00691a3 150992001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
74e79967
PJ
15100
15101 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
15102 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
15103
60ebcfe8
GM
151042001-10-29 Gerd Moellmann <gerd@gnu.org>
15105
9a7bdceb
GM
15106 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
15107 use NO_CURSOR if cursor_in_non_selected_windows is false.
15108
3f08fcd2
GM
15109 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
15110 the slant attribute if FRAME is t.
15111
0ccfdad2
GM
15112 * xfns.c (x_set_internal_border_width): Set frame garbaged
15113 when X window doesn't exist yet.
15114
ef253080
GM
15115 * xterm.c (x_after_update_window_line): Clear internal border
15116 in different circumstances.
b116830b 15117
60ebcfe8
GM
15118 * xterm.c (XTread_socket) <KeyPress>: Don't use
15119 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
15120 <handa@etl.go.jp>.
15121
73d25f9c
EZ
151222001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
15123
15124 * m/ibms390.h: New file. From Adam Thornton
15125 <athornton@sinenomine.net>.
15126
cac1daf0
GM
151272001-10-28 Gerd Moellmann <gerd@gnu.org>
15128
053b3256 15129 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
b116830b 15130
cac1daf0
GM
15131 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
15132 a loop counter.
15133
f00691a3 151342001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13b1a09c 15135
f9711de4 15136 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
186486eb 15137
4707d2d0
PJ
15138 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
15139 keyword].
15140 Fix typos in comments.
b116830b 15141
d883731c
PJ
15142 * emacs.c (bug_reporting_address): New function.
15143 Use it when displaying usage message.
15144
04012254
PJ
15145 * minibuf.c (read_minibuf): Remove unused external declaration of
15146 variable `Qread_only'.
15147
13b1a09c
PJ
15148 * keymap.c (access_keymap): Remove unused variable `charset'.
15149
5bbf4378
MB
151502001-10-28 Miles Bader <miles@gnu.org>
15151
15152 * xfaces.c (merge_face_heights): Handle TO being relative as well.
15153 Remove #ifdef'd-out code.
15154 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
15155 (syms_of_xfaces): Initialize them.
15156
1ce1e4ee
JR
151572001-10-27 Jason Rumney <jasonr@gnu.org>
15158
15159 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
15160 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
15161 position using the system caret.
15162
15163 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
15164 (w32_system_caret_height, w32_system_caret_x)
15165 (w32_system_caret_y): New variables for tracking system caret.
15166 (w32_initialize): Initialize them.
c2d53558 15167 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 15168
c2d53558
SM
15169 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
15170 New messages types.
1ce1e4ee
JR
15171
15172 * w32term.c (note_mouse_highlight): Clear old help_echo.
15173
f00691a3 151742001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e30ce42 15175
bb4600a4
PJ
15176 * xterm.c: Fix typo in a comment.
15177
7db35a48
PJ
15178 * emacs.c: Fix typos in comments.
15179 Remove unnecessary spaces.
15180 Change doc-string comments to `new style' [w/`doc:' keyword].
15181 (USAGE2): Fix typos in usage string.
15182
a7248e4f
PJ
15183 * xterm.c: Fix typo in a comment.
15184
4e30ce42
PJ
15185 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
15186 emacs.c.
15187
62725a92
GM
151882001-10-27 Gerd Moellmann <gerd@gnu.org>
15189
798dbe1f 15190 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 15191 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
15192 farther backward when target_y was not reached.
15193
62725a92
GM
15194 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
15195 Display errno only if non-zero.
15196 (sound_warning): New function.
15197 (vox_configure): Don't treat failing to set sample rate as error.
15198 (various places): Improve error messages.
15199
d4e34d24
EZ
152002001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
15201
944e6f60
EZ
15202 * fileio.c (Faccess_file): Run the argument filename through
15203 Fexpand_file_name, before using it.
15204
d4e34d24
EZ
15205 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
15206 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
15207
38d2af0c
GM
152082001-10-26 Gerd Moellmann <gerd@gnu.org>
15209
da80a8d5
GM
15210 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
15211
38d2af0c
GM
15212 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
15213 Fix clearing in the case of scroll bars on the right.
c2d53558 15214
45de4a6f 152152001-10-26 Juanma Barranquero <lektu@terra.es>
56f508dd
EZ
15216
15217 * w32gui.h (XImage): Add a dummy typedef.
15218
fbd5ceb2
GM
152192001-10-26 Gerd Moellmann <gerd@gnu.org>
15220
c2d53558 15221 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 15222
b23236fb
EZ
152232001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
15224
15225 * frame.c (Fframe_parameter): Fix last change.
15226
5d991fc4
EZ
15227 * fileio.c: Revert last change (which removed old commented-out
15228 version of expand-file-name). Add a comment that explains why
15229 this old version should not be removed.
15230
879eadc3
GM
152312001-10-25 Gerd Moellmann <gerd@gnu.org>
15232
75700ff2
GM
15233 * frame.c (Fframe_parameter): Fix a bug whereby some
15234 ``artificial'' frame parameters, like `minibuffer' were not
15235 obtained by calling Fframe_parameters.
15236
dfe92a6a
GM
15237 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
15238 cursor differently.
15239
879eadc3
GM
15240 * xdisp.c (move_it_vertically_backward): Compute line height
15241 differently. Add heuristic to try to be more compatible to 20.x.
15242
e1010ebe
SM
152432001-10-25 Stefan Monnier <monnier@cs.yale.edu>
15244
d73a471b
SM
15245 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
15246
d6da5a06
GM
15247 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
15248 boolean.
e1010ebe 15249
f66bd220
MB
152502001-10-25 Miles Bader <miles@gnu.org>
15251
15252 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
15253 BG is a pointer to a structure, not a structure.
15254 (gif_format, png_format): Add missing commas.
15255
d436d538
RS
152562001-10-24 Richard M. Stallman <rms@gnu.org>
15257
15258 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 15259 (syms_of_xfaces): Defsubr it.
d436d538 15260
f00691a3 152612001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
075c507b
PJ
15262
15263 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
15264 variable `area'.
15265
f00691a3 152662001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d492b584 15267
c2d53558 15268 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 15269
e2a57b34
MB
152702001-10-25 Miles Bader <miles@gnu.org>
15271
15272 * dispextern.h (struct image): Add `background',
15273 `background_valid', and `background_transparent' fields.
15274 (image_background, image_background_transparent): New declarations.
15275 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
15276 * xfns.c (image_background, image_background_transparent)
15277 (four_corners_best): New functions.
c2d53558 15278 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
15279 (gs_format): Add `:background' entry.
15280 (lookup_image): Set IMG's background color if specified.
15281 (pbm_load, xbm_load_image, png_load): Set IMG's background field
15282 when appropriate.
15283 (x_clear_image_1): Reset `background_valid' and
15284 `background_transparent_valid' fields.
15285 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
15286 calculating it here. Set IMG's background_transparent field.
15287 (enum xpm_keyword_index): Add XPM_BACKGROUND.
15288 (enum png_keyword_index): Add PNG_BACKGROUND.
15289 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
15290 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
15291 (enum gif_keyword_index): Add GIF_BACKGROUND.
15292 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 15293 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
15294 Pre-calculate image background color where necessary.
15295 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
15296 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
15297 color to use for image glyph reliefs.
15298
b547b6e8
GM
152992001-10-24 Gerd Moellmann <gerd@gnu.org>
15300
d9e3b8c6
GM
15301 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
15302 in full-width rows.
c2d53558 15303
b547b6e8
GM
15304 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
15305 Fix clearing of area not covered by scroll bar.
15306
f00691a3 153072001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2beb36f9
PJ
15308
15309 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
15310 and `real_start'.
c2d53558 15311 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
15312 (glyph_rect): Remove unused variable `area'.
15313
76cb5e06
GM
153142001-10-24 Gerd Moellmann <gerd@gnu.org>
15315
bdbdebff 15316 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
15317
15318 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
15319 (row_containing_pos): Take additional argument DY.
15320 Treat rows ending in middle of char differently.
62e33982
GM
15321 (display_line): Handle tabs on window systems differently.
15322
15323 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
15324 with additional argument.
15325
15326 * dispextern.h (row_containing_pos): Adjust prototype.
15327
76cb5e06
GM
15328 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
15329 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
15330 (try_window_id, try_window_reusing_current_matrix)
15331 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
6c465a15 15332 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
76cb5e06 15333
f00691a3 153342001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
996fee11 15335
c9e60620
PJ
15336 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
15337 gnuemacs).
15338 (HAVE_BOXES): Fix typo in comment.
15339 (push_menu_pane): Fix typo in comment.
15340
3b552d56
PJ
15341 * xdisp.c: (display_prop_string_p): Remove unused local declaration
15342 of `Qwhen'.
15343 (single_display_prop_string_p): Remove unused local declarations
15344 of `Qwhen' and `Qmargin'.
15345 (string_buffer_position): Remove unused variable `around'.
15346 (store_frame_title): Remove unused variable `width'.
15347
15c565ac
PJ
15348 * window.c: Don't define max.
15349 (coordinates_in_window): Remove unused variable `uy'.
15350
a8818eb9
PJ
15351 * widget.c: Don't define max.
15352
996fee11
PJ
15353 * process.c: Don't define max.
15354 (create_process): Remove unused variable `buffer'.
15355
496e1a5b
GM
153562001-10-23 Gerd Moellmann <gerd@gnu.org>
15357
c2d53558 15358 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 15359
5905ae8b
EZ
153602001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
15361
15362 * xfaces.c (Finternal_set_lisp_face_attribute)
15363 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
15364 frame is on a windowed display.
15365
24db49fb
GM
153662001-10-23 Gerd Moellmann <gerd@gnu.org>
15367
c2d53558
SM
15368 * dispnew.c (sync_window_with_frame_matrix_rows):
15369 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
15370 of marginal areas.
15371
c2d53558 15372 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 15373
f0487f05
EZ
153742001-10-23 Andreas Schwab <schwab@suse.de>
15375
15376 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
15377 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
15378
f0a48a01
GM
153792001-10-23 Gerd Moellmann <gerd@gnu.org>
15380
c2d53558 15381 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
15382 REAL_END. Notice if cursor gets overwritten.
15383 (notice_overwritten_cursor): Take X positions as parameters.
15384 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
15385 around call to x_draw_glyphs.
15386
f00691a3 153872001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a50a10a0 15388
fc11dff0
PJ
15389 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
15390 instead of C) and usage.
a50a10a0 15391
fc11dff0
PJ
15392 * editfns.c (char-to-string): Fix argument names (use CHAR instead
15393 of C) and usage.
a50a10a0
PJ
15394
15395 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
15396 `left', `max_width' and `max_height'.
15397
8738febd
GM
153982001-10-23 Gerd Moellmann <gerd@gnu.org>
15399
15400 * xdisp.c (display_line): For a tab continued to the next line,
15401 set row's ends_in_middle_of_char_p.
15402
653c329b
GM
154032001-10-22 Gerd Moellmann <gerd@gnu.org>
15404
15405 * xdisp.c (display_line): Fix computation of continuation lines
15406 width for TABs.
15407
f00691a3 154082001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f958c5ac 15409
7ba51063
PJ
15410 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
15411 `Qlaplace'.
15412
f958c5ac
PJ
15413 * fileio.c: Remove unused code.
15414
eb360291
MB
154152001-10-22 Miles Bader <miles@gnu.org>
15416
15417 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
15418 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
15419 Remove `DOC_STRINGS_IN_COMMENTS' cases.
15420
98515cf0
JR
154212001-10-21 Jason Rumney <jasonr@gnu.org>
15422
15423 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
15424
93026d88
EZ
154252001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
15426
15427 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
15428 (Finsert_string): Avoid the multi-line string literals warning.
15429
c9a95b79
MB
154302001-10-22 Miles Bader <miles@gnu.org>
15431
15432 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
15433 (Fdocumentation): Don't use it.
15434 (syms_of_doc): Don't initialize it.
15435
15436 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
15437 * print.c (Fwith_output_to_temp_buffer): Likewise.
15438 * window.c (Fsave_window_excursion): Likewise.
c2d53558 15439 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 15440 (Fsave_restriction): Likewise.
c2d53558
SM
15441 * eval.c (Frun_hooks, Frun_hook_with_args)
15442 (Frun_hook_with_args_until_failure)
15443 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
15444 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
15445 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
15446 (Funwind_protect, Fcondition_case): Likewise.
15447 * coding.c (Ffind_operation_coding_system): Likewise.
15448 * keyboard.c (Ftrack_mouse): Likewise.
15449
a3b10252
MB
154502001-10-21 Miles Bader <miles@gnu.org>
15451
c2d53558 15452 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
15453 (Fmake_hash_table): Add usage: string to doc string.
15454 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 15455 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
15456 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
15457 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
15458 (Fml_prefix_argument_loop): Likewise.
15459
f00691a3 154602001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c6f73eec 15461
c2d53558 15462 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 15463
c6f73eec
PJ
15464 * sysdep.c (init_sys_modes): Change doc-string comments to `new
15465 style' [w/`doc:' keyword].
15466
15467 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
15468 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
15469 comments to `new style' [w/`doc:' keyword].
15470
3cf3436e
JR
154712001-10-21 Jason Rumney <jasonr@gnu.org>
15472
15473 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
15474
c169b8f1
JR
15475 * w32term.c (remember_mouse_glyph): New function.
15476 (w32_mouse_position): Use it.
15477 (note_mouse_movement): If the mouse moved off the glyph, remember
15478 its new position.
c2d53558 15479
4fdd691b
JR
15480 * w32term.h (struct w32_output): Correct spelling of x_compatible.
15481 (w32_display_info): Add mouse_face_overlay.
15482
c169b8f1
JR
15483 * w32term.c (notice_overwritten_cursor): Renamed from
15484 note_overwritten_text_cursor. Rewritten to take glyph widths into
15485 account.
15486 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
15487 (fast_find_string_pos): New function.
15488 (fast_find_position): Return the correct vpos. Add parameter
15489 STOP. In the final row, stop before glyphs having STOP as object.
15490 Don't consider glyphs that are not from a buffer.
15491 (fast_find_position) [0]: Add a presumably more correct version
15492 for after 21.1.
15493 (expose_window_tree, expose_frame): Don't compute intersections here.
15494 (expose_window): Do it here instead.
15495 (expose_window_tree, expose_window, expose_line): Return 1 when
15496 overwriting mouse-face.
15497 (expose_window): If W is the window currently being updated, mark
15498 the frame garbaged.
15499 (expose_frame): If mouse-face was overwritten, redo it.
15500 (x_use_underline_position_properties): New variable.
15501 (syms_of_xterm): DEFVAR_BOOL it.
15502 (x_draw_glyph_string): Add comment to use it in future.
15503 (x_draw_glyph_string): Restore clipping after drawing box.
15504 Fix a computation of the underline position.
15505 (w32_get_glyph_string_clip_rect): Minor cleanup.
15506 (x_fill_stretch_glyph_string): Remove an assertion.
15507 (x_produce_glyphs): Don't convert multibyte characters
15508 to unibyte characters in unibyte buffers.
15509 (cursor_in_mouse_face_p): New function.
15510 (x_draw_stretch_glyph_string): Use it to choose a different GC
15511 when drawing a cursor within highlighted text. Don't draw
15512 background again if it has already been drawn.
15513 (x_draw_glyph_string_box): Don't draw a full-width
15514 box just because the glyph row's full_width_p flag is set.
15515 (x_draw_glyphs): Fix computation of rightmost x for
15516 full-width rows.
15517 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
15518 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
f63fd14e 15519 change bottom shadow accordingly. Some cleanup.
c169b8f1
JR
15520 (x_update_window_end): Handle overwritten mouse face
15521 also for tool bar windows.
15522 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
15523 DRAW is DRAW_IMAGE_RAISED.
15524 (clear_mouse_face): Return 1 if text with mouse face was
2c568af5
SM
15525 actually redrawn. Make the function static.
15526 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
c169b8f1
JR
15527 optimize away highlighting if we pass over that same overlay again.
15528 (note_mouse_highlight): Call mouse_face_overlay_overlaps
15529 to detect a case where we have to highlight a different region
15530 despite not having left the currently highlighted region.
15531 Set mouse_face_overlay in the x_display_info. Avoid changing the
15532 mouse pointer shape when show_mouse_face has already done it, or
15533 there is no need. Handle mouse-face and help-echo in strings.
15534 (glyph_rect): New function.
15535 (w32_mouse_position): Use it to raise the threshold for mouse
15536 movement event generation.
15537 (w32_initialize_display_info): Initialize the x_display_info's
15538 mouse_face_overlay.
15539 (w32_set_vertical_scroll_bar): Don't clear a zero height
15540 or width area.
15541 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
15542 a widget to zero height.
15543
3cf3436e 15544 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 15545 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
15546 equivalents in menu_items.
15547 (w32_menu_show): Don't overwrite an item's name with its key
15548 description in case the description is a multibyte string.
15549 (single_submenu): Some cleanup.
15550
15551 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
15552 (postprocess_image): New function.
15553 (lookup_image): Call it for all image types except PostScript.
15554 (x_kill_gs_process): Call postprocess_image.
15555 (tiff_error_handler, tiff_warning_handler): New functions.
15556 (tiff_load): Install them as handlers.
15557 (x_kill_gs_process): Recognize if someone has cleared the image
15558 cache under us.
15559 (valid_image_p): Protect better against invalid image
15560 specifications. Previous code could signal an error.
15561 (Fx_hide_tip, Fshow_tip): Doc fix.
15562 (Fv_max_tooltip_size): New variable.
15563 (syns_of_xfns): DEFVAR_LISP it.
15564 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
f63fd14e 15565 window buffer to *tip* right after creating the frame. Set frame's
3cf3436e
JR
15566 window_width. Use a maximum tooltip size specified by
15567 Vx_max_tooltip_size, if that has valid contents.
15568 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
15569 Make sure the tooltip is completely visible.
15570 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
15571 (Fx_create_frame): Adjust the frame's height for presence
15572 of the tool bar before calling x_figure_window_size.
15573 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
15574 when the window gets smaller.
15575 (x_set_foreground_color): Set frame's cursor_pixel.
15576 (x_set_foreground_color, x_set_background_color): Cleaned up.
15577 (x_set_font): Handle case of x_new_fontset returning the same name
15578 as before, although there was a change in fontsets.
15579
386ca361
MB
155802001-10-21 Miles Bader <miles@gnu.org>
15581
c2d53558 15582 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
15583 (Flogxor): Add usage: string to doc string.
15584 * charset.c (Fstring): Likewise.
15585 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
15586 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
15587
f00691a3 155882001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14ff1ee0 15589
03be2694
PJ
15590 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
15591
15592 * alloc.c: Reindent DEFUNs with doc: keywords.
15593
15594 * abbrev.c (Finsert_abbrev_table_description): Reindent.
15595
14ff1ee0
PJ
15596 * frame.c: Change doc-string comments to `new style' [w/`doc:'
15597 keyword].
15598
2f147815 15599See ChangeLog.9 for earlier changes.
6922b018
KH
15600
15601;; Local Variables:
49b3bd82 15602;; coding: iso-2022-7bit
6922b018 15603;; End:
2a34a036 15604
2f147815 15605 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
2a34a036
GM
15606 Copying and distribution of this file, with or without modification,
15607 are permitted provided the copyright notice and this notice are preserved.
ab5796a9
MB
15608
15609;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4