Comment change.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
2b2d59d8
KS
12004-11-02 Kim F. Storm <storm@cua.dk>
2
3 * Makefile.in (callproc.o): Depend on blockinput.h atimer.h systime.h.
4
52004-11-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6
7 * callproc.c (Fcall_process): Block input around vfork.
8
ca28104d
KS
92004-11-02 Kim F. Storm <storm@cua.dk>
10
11 * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
12 (syms_of_eval): Defsubr it.
13
29bb7127
RS
142004-11-02 Richard M. Stallman <rms@gnu.org>
15
16 * insdel.c (replace_range_2): New function.
17
18 * casefiddle.c (casify_region): Handle changes in byte-length
19 using replace_range_2.
20
21 * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
22
b6189c3b 23 * xdisp.c (back_to_previous_visible_line_start):
29bb7127
RS
24 Subtract 1 from pos when checking previous newline for invisibility.
25
26 * window.c (window_scroll_pixel_based): Update preserve_y
27 for header line if any.
28 (Fscroll_left, Fscroll_right): Don't call interactive_p;
29 use a new second argument instead.
30
31 * eval.c (Fcall_interactive_p): New function.
32 (interactive_p): Don't test INTERACTIVE here.
33 (Finteractive_p): Doc fix.
34
35 * eval.c (Feval): Abort if INPUT_BLOCKED_P.
36
b6189c3b 372004-11-02 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
a3fe4aaf
JR
38
39 * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
b6189c3b 40 comparing font names.
a3fe4aaf 41
2a00cdb4
JD
422004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
43
f9d64bb3
JD
44 * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
45 Fx_file_dialog if only directories should be read.
46
47 * lisp.h: Fx_file_dialog takes 5 parameters.
48
49 * xfns.c (Fx_file_dialog): Both Motif and GTK version: Add
50 parameter only_dir_p.
51 In Motif version, don't put DEFAULT_FILENAME in filter part of the
52 dialog, just text field part. Do not add DEFAULT_FILENAME
53 to list of files if it isn't there.
54 In GTK version, pass only_dir_p parameter to xg_get_file_name.
55
56 * macfns.c (Fx_file_dialog): Add parameter only_dir_p. Check
57 only_dir_p instead of comparing prompt to "Dired". When using
58 a save dialog, add option kNavDontConfirmReplacement, change title
59 to "Enter name", change text for save button to "Ok".
60
61 * w32fns.c (Fx_file_dialog): Add parameter only_dir_p. Check
62 only_dir_p instead of comparing prompt to "Dired".
63
64 * gtkutil.c (xg_get_file_with_chooser)
65 (xg_get_file_with_selection): New functions, only defined ifdef
66 HAVE_GTK_FILE_CHOOSER_DIALOG_NEW and HAVE_GTK_FILE_SELECTION_NEW
67 respectively.
68 (xg_get_file_name): Add parameter only_dir_p.
69 Call xg_get_file_with_chooser or xg_get_file_with_selection
70 depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
71 (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
72
73 * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
74
2a00cdb4
JD
75 * config.in: Rebuild (added HAVE_GTK_FILE_*).
76
f6749d5d
KS
772004-11-01 Kim F. Storm <storm@cua.dk>
78
79 * process.c (connect_wait_mask, num_pending_connects): Only
80 declare and use them if NON_BLOCKING_CONNECT is defined.
bad49fc7 81 (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
f6749d5d
KS
82 (IF_NON_BLOCKING_CONNECT): New helper macro.
83 (wait_reading_process_output): Only declare and use local vars
84 Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
f6749d5d 85
1a99fe1a
JR
862004-11-01 Andy Petrusenco <Igrek@star-sw.com> (tiny change)
87
88 * w32term.c (x_scroll_run): Delete region objects after use.
89
fcdb28b4
JD
902004-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
91
495ef86b
JD
92 * xmenu.c: Add prototypes for forward function declarations.
93 (popup_get_selection): Remove parameter do_timers, remove call to
94 timer_check.
f6749d5d 95 (create_and_show_popup_menu, create_and_show_dialog): Remove
495ef86b
JD
96 parameter do_timers from call to popup_get_selection.
97
12e6566a
JD
98 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
99 tool_bar_items and assign the result to f->tool_bar_items if
100 not equal. Move BLOCK/UNBLOCK_INPUT from around call to
101 tool_bar_items to assignment of result.
102
fcdb28b4
JD
103 * atimer.c (alarm_signal_handler): Do not call set_alarm if
104 pending_atmers is non-zero.
105
1a1a0c4c
KS
1062004-10-31 Kim F. Storm <storm@cua.dk>
107
108 * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
109
a36f1680
JW
1102004-10-28 Will <will@glozer.net>
111
112 * macterm.c: allow user to assign key modifiers to the Mac Option
113 key via a 'mac-option-modifier' variable.
114
2d586478
SM
1152004-10-28 Stefan <monnier@iro.umontreal.ca>
116
117 * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
118 Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
119 (x_handle_selection_request, x_handle_selection_clear)
120 (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
121
4f71c13f
RS
1222004-10-28 Richard M. Stallman <rms@gnu.org>
123
124 * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
125
126 * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
127
068f3848
SM
1282004-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
129
130 * syntax.c (scan_sexps_forward): Give precedence to a 2-char
131 comment-starter over a 1-char one.
132
4660a9e3
RS
1332004-10-27 Richard M. Stallman <rms@gnu.org>
134
135 * xdisp.c (get_next_display_element): In mode lines,
136 treat newline and tab like other control characters.
137
138 * editfns.c (Fmessage): Doc fix.
139
140 * indent.c (vmotion): When moving up, check the newline before.
141 Make prevline an int, not a Lisp_Object.
142
233f3db6
KS
1432004-10-27 Kim F. Storm <storm@cua.dk>
144
145 * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
146 Only allocate info and discarded tables once.
147
148 * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
149 (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
150 (SAFE_FREE): Test it to determine if we need to unwind to free.
151 Remove size arg. All users changed.
152 (SAFE_FREE_LISP) Remove. All users changed to use SAFE_FREE.
153
1442465d
JD
1542004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
155
156 * gtkutil.c: Put empty line between comment and function body.
068f3848
SM
157 (xg_destroy_widgets): Rename from remove_from_container.
158 Just destroy all widgets in list. Argument wcont removed.
1442465d
JD
159 (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
160 instead of remove_from_container.
161 (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
162 (free_frame_tool_bar): Add comment.
163
164 * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
165 is not NULL before strcmp.
166
c8636435
KS
1672004-10-26 Kim F. Storm <storm@cua.dk>
168
169 * callint.c (Fcall_interactively): Add 'U' code to get the
170 up-event discarded by a previous 'k' or 'K' argument.
171
5629f29b
DK
1722004-10-26 David Kastrup <dak@gnu.org>
173
174 * buffer.c (syms_of_buffer): Fix a few typos.
175
4f2f546e
JD
1762004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
177
178 * xsmfns.c: Put empty line between comment and function body.
179 Use two spaces before comment end.
180
fc1062f5
KH
1812004-10-25 Kenichi Handa <handa@m17n.org>
182
183 * fontset.c (fontset_pattern_regexp): Optimize for the case that
184 PATTERN is full XLFD.
185
be13f5e5
KH
1862004-10-24 Kenichi Handa <handa@m17n.org>
187
188 * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
189
190 * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
191 (regex_compile): Return REG_ERANGEX if appropriate.
192
d0ee2ed3
KH
1932004-10-22 Kenichi Handa <handa@m17n.org>
194
195 * editfns.c (Ftranslate_region_internal): New function.
196 (syms_of_editfns): Defsubr it.
197
63ea8ea5
JD
1982004-10-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
199
200 * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
201
c27ed90a
JD
2022004-10-21 K\e,Aa\e(Broly L\e$,1 q\e(Brentey <lorentey@elte.hu>
203
068f3848
SM
204 * xterm.h (x_output): New member `xic_base_fontname'.
205 (FRAME_XIC_BASE_FONTNAME): New macro.
206 (xic_free_xfontset): Declare.
c27ed90a 207
068f3848
SM
208 * xfns.c (xic_create_xfontset): Share fontsets between frames
209 based on base_fontname.
210 (xic_free_xfontset): New function.
211 (free_frame_xic): Use it.
212 (xic_set_xfontset): Ditto.
c27ed90a 213
068f3848 214 * xterm.c (xim_destroy_callback): Ditto.
c27ed90a
JD
215
216
59508699
JR
2172004-10-20 B. Anyos <banyos@freemail.hu> (tiny change)
218
219 * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
220
dede2792
JD
2212004-10-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
222
3aca2078
JD
223 * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
224 XSync.
225
dede2792
JD
226 * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
227 New variables and constant.
228 (main): Calculate heap_bss_diff. If we are dumping and the
229 heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
230 and exec ourself again.
231 (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
232 print a warning.
233
234 * lastfile.c: Make my_endbss and my_endbss_static available on all
235 platforms.
236
237 * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
238 * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
239
1dc5ba01
LT
2402004-10-19 Luc Teirlinck <teirllm@auburn.edu>
241
242 * data.c (Flocal_variable_if_set_p): Doc fix.
243
950090be
JR
2442004-10-19 Jason Rumney <jasonr@gnu.org>
245
246 * w32.c (init_environment): Set emacs_dir correctly when running
247 emacs from the build directory.
248
8550b998
RS
2492004-10-19 Richard M. Stallman <rms@gnu.org>
250
251 * editfns.c (Fdelete_and_extract_region):
252 If region is empty, return null string.
253
08dedea6
JD
2542004-10-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
255
1dc5ba01 256 * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
08dedea6 257 and canon_width.
068f3848 258 (xg_frame_cleared): Remove.
08dedea6 259
068f3848
SM
260 * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
261 (xg_find_top_left_in_fixed): Remove.
08dedea6
JD
262 (xg_create_scroll_bar): Put an event box widget between
263 the scroll bar widget and the edit widget.
264 (xg_show_scroll_bar): Show the parent widget (the event box).
265 (xg_remove_scroll_bar): Destroy parent (the event box) also.
266 (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
267 Move the parent (the event box) widget inside the fixed widget.
268 Move window clear to xterm.c.
269
068f3848 270 * gtkutil.h (xg_frame_cleared): Remove.
1dc5ba01 271
08dedea6 272 * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
068f3848
SM
273 (x_scroll_bar_create, XTset_vertical_scroll_bar):
274 Remove arguments left and width to xg_update_scrollbar_pos.
08dedea6
JD
275 (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
276
8550b998 2772004-10-19 Kenichi Handa <handa@m17n.org>
e3e55463
KS
278
279 * xdisp.c (display_mode_element): Fix display of wide chars.
e3e55463 280
84338890
JD
2812004-10-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
282
283 * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
284 gdk_window_clear and move gdk_window_process_all_updates after
285 clear so events are sent to the X server in correct order.
286
6e1b0d8c
KH
2872004-10-18 Kenichi Handa <handa@m17n.org>
288
289 * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
290 comparing font names.
8550b998 291 (fs_query_fontset): Use fast_string_match for comparing fontset names.
6e1b0d8c
KH
292 (list_fontsets): Likewise.
293
294 * search.c (fast_string_match_ignore_case): New function.
295
296 * lisp.h (fast_string_match_ignore_case): Extern it.
297
345e75a8
KS
2982004-10-17 Kim F. Storm <storm@cua.dk>
299
300 * xdisp.c (overlay_arrow_at_row): Return overlay string rather
301 than bitmap if there is not left fringe.
302 (get_overlay_arrow_glyph_row): Also used on windows system.
303 (display_line): Display overlay string if no left fringe.
304
be13cbb7
JR
3052004-10-16 Jason Rumney <jasonr@gnu.org>
306
307 * w32fns.c (w32_font_match): Encode font name being matched.
308
c2e2ede7
RS
3092004-10-16 Richard M. Stallman <rms@gnu.org>
310
311 * window.c (Fspecial_display_p): Doc fix.
312
3584d95d
SM
3132004-10-15 Stefan <monnier@iro.umontreal.ca>
314
315 * doc.c (Fsubstitute_command_keys): Fix remap-handling.
316 Don't ignore menus, because where-is-internal already does it for us.
317
699a0392
KS
3182004-10-15 Kim F. Storm <storm@cua.dk>
319
b3c7a89b
KS
320 * xdisp.c (redisplay_window): Only update fringes and vertical
321 border on window frames.
699a0392 322
4e382b0f
AS
3232004-10-14 Andreas Schwab <schwab@suse.de>
324
325 * m/ia64.h (DATA_SEG_BITS): Don't define.
326
329a7be2
KS
3272004-10-14 Kim F. Storm <storm@cua.dk>
328
329 * xterm.h: Include Xutil.h after keysym.h to work around bug
dbb37962 330 in some X versions.
329a7be2 331
982241b1
SM
3322004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
333
334 * fns.c (map_char_table): Add missing gcpros.
335
9238467d
SM
3362004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
337
338 * keymap.c (get_keymap): An autoload form is not a keymap.
339
340 * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
341
4440e3ca
KS
3422004-10-13 Kim F. Storm <storm@cua.dk>
343
7cfdabde
KS
344 * callproc.c (Fcall_process): Simplify handling of display arg.
345 Resume `display_on_the_fly' once a coding system is determined.
346
4440e3ca
KS
347 * xdisp.c (redisplay_preserve_echo_area): Fix last change.
348
1c8dec6a
KS
3492004-10-12 Kim F. Storm <storm@cua.dk>
350
351 * xdisp.c (redisplay_preserve_echo_area): Flush display in case
352 caller, such as call-process, is not going to poll for input.
353 (calc_line_height_property): Handle case where it->object is nil.
354
355 * xterm.c (x_redisplay_interface): Fix flush_display_optional.
356
170b174c
KH
3572004-10-12 Kenichi Handa <handa@m17n.org>
358
9238467d
SM
359 * xdisp.c (get_next_display_element):
360 If unibyte_display_via_language_environment is zero, display 8-bit
170b174c
KH
361 chars in octal in unibyte buffer.
362
b583964c
KS
3632004-10-12 Kim F. Storm <storm@cua.dk>
364
365 * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
366 are no ordinary bindings.
367
29fabd8c
JD
3682004-10-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
369
9238467d 370 * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
29fabd8c 371
c3f4c690
ST
3722004-10-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
373
9238467d
SM
374 * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
375 (x_lower_frame): Add BLOCK_INPUT around SendBehind.
c3f4c690 376 (make_mac_frame): Add BLOCK_INPUT around the making of a
9238467d
SM
377 terminal frame.
378 (mac_initialize): Add BLOCK_INPUT around carbon initialization.
379 * macgui.h (mktime): Use emacs_mktime.
c3f4c690
ST
380 * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
381 Make a cancel file-open dialog be like C-g.
9238467d
SM
382 * mac.c (mktime): Use emacs_mktime.
383 (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
384 (Fmac_paste_function): Add better error handling for carbon cut/paste.
c3f4c690 385
9688f9eb
KS
3862004-10-10 Kim F. Storm <storm@cua.dk>
387
388 * keyboard.c (timer_resume_idle): New function to resume idle
389 timer without resetting timers on the idle list.
390 (read_char): Use timer_resume_idle. Remove local var last_idle_start.
391 (timer_start_idle, timer_stop_idle): Declare static.
392 (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
393
394 * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
395
f7f3a65f
ST
3962004-10-08 Steven Tamm <steventamm@mac.com>
397
9238467d 398 * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
f7f3a65f 399 * macterm.c (mac_check_for_quit_char): Remove warning for using
9238467d 400 NULL where 0 should be used.
f7f3a65f
ST
401 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
402 objc/malloc.h
9238467d 403 * mac.c: Include time.h for Tiger compatibility.
f7f3a65f 404
3c7d999a
KS
4052004-10-07 Kim F. Storm <storm@cua.dk>
406
407 * xdisp.c (redisplay_window): Fix flicker on vertical line between
408 windows. Update vertical line after drawing window fringes, but
409 only if actually drawing any bitmaps--or there is no fringe.
410
411 * xterm.c (x_update_window_end): Likewise.
412 * macterm.c (x_update_window_end): Likewise.
413 * w32term.c (x_update_window_end): Likewise.
414
415 * fringe.c (draw_window_fringes): Return value now indicates if
416 any fringe bitmaps were redrawn (or there are no fringes).
417
418 * dispextern.h (draw_window_fringes): Update prototype.
419
bf06c82f
ST
4202004-10-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
421
422 * macfns.c (mac_get_window_bounds): Add extern.
423 (x_real_positions): Use mac_get_window_bounds.
424
425 * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
426 xmenu.c (YAILOM).
3c7d999a 427
bf06c82f
ST
428 * macterm.c [!MAC_OSX]: Include Windows.h.
429 (front_emacs_window): Rename from mac_front_window. All uses
430 changed. Return the frontmost non-tooltip emacs window.
431 (mac_get_window_bounds): New function.
432 (x_calc_absolute_position): Use the difference of width and height
433 between the inner and outer window.
434 (x_set_offset): Specify window position by the coordinae of the
435 outer window. Adjust the position if the title bar is completely
436 outside the screen.
437 (app_is_suspended, app_sleep_time): Remove unused variables.
438 (do_app_resume, do_app_suspend): Remove their contents because
439 window-activate/deactivate events will do the job.
440 (do_zoom_window): Remove unused variables. Make compliant to the
441 standard way of zooming. Set f->left_pos and f->top_pos.
442 (XTread_socket): Don't use argument `expected'. Don't use
443 FrontWindow to determine the clicked window. Exclude unprocessed
444 mouseUp cases in the early stage. Add parentheses to fix operator
445 precedence.
446 (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
447
448
4cbbf6b7 4492004-10-05 Jan Dj\e,Ad\e(Brv. <jan.h.d@swipnet.se>
d8b43276
JD
450
451 * config.in: Regenerate.
452
453 * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
454 HAVE_EXECSHIELD.
455
b90ee8b5
JD
4562004-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
457
458 * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
459 a row if Alt or Meta has been found for that row. Also stop scanning
460 for Keysyms for that row.
461
904db1a2
KS
4622004-10-04 Kim F. Storm <storm@cua.dk>
463
0207b8ad
KS
464 * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
465 to list. Include overlay arrow bitmap in return value.
466
25f7220c
KS
467 * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
468 bars with fractional column width. If scroll bar separates two
469 windows, move it towards the window it belongs to. Only update
470 the padding area below the scroll bar widget when necessary,
471 i.e. when scroll bar widget is created, moved, or resized.
472
562020fe
KS
473 * xdisp.c (define_frame_cursor1): Do not change frame cursor
474 while tracking/dragging mouse.
475 (x_draw_vertical_border): Do not draw line if frame has scroll bars.
476
37e34af7
KS
477 * window.c (coordinates_in_window): Relax check for cursor
478 on vertial border between mode lines.
479 (Fset_window_fringes): Do not allow negative widths.
480 (Fset_window_scroll_bars): Likewise.
481
904db1a2
KS
482 * .gdbinit (pp): Shorthand for p ARG + pr.
483 (ff): New command: flush frame updates (X only).
484
38fe4f64
MA
4852004-10-03 Michael Albinus <michael.albinus@gmx.de>
486
487 * fileio.c (auto_save_1) Call Ffile_modes for remote files.
488
9de36315
KH
4892004-09-30 Kenichi Handa <handa@m17n.org>
490
07c381ad 491 * process.c (send_process): Free composition data.
9de36315 492
07c381ad 493 * fileio.c (Finsert_file_contents): Free composition data.
9de36315
KH
494
495 * coding.c (code_convert_region): Don't skip ASCIIs if there are
07c381ad
KH
496 compositions to encode.
497 (encode_coding_string): Likewise. Free composition data.
498
b6189c3b 4992004-09-30 Florian Weimer <fw@deneb.enyo.de>
07c381ad
KH
500
501 * coding.c (code_convert_region): Free composition data.
9de36315 502
f2a54fbc
KS
5032004-09-29 Kim F. Storm <storm@cua.dk>
504
dc5d6435
KS
505 * fringe.c: Remove limit on number of bitmaps.
506 (fringe_bitmaps, fringe_faces): Change to pointers.
507 (max_fringe_bitmaps): New var.
508 (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
509 (init_fringe): Allocate fringe_bitmaps and fringe_faces.
510
511 * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
512 (struct glyph_row): Reorder fringe_bitmap related fields.
513 (struct it): Likewise.
514
515 * w32term.c (fringe_bmp): Change to pointer.
516 (max_fringe_bmp): New var.
517 (w32_define_fringe_bitmap): Expand fringe_bmp.
518 (w32_draw_fringe_bitmap): Check max_fringe_bmp.
519 (w32_destroy_fringe_bitmap): Likewise.
520
5212004-09-29 Kim F. Storm <storm@cua.dk>
522
523 * fringe.c: Simplify last change.
f2a54fbc
KS
524 (lookup_fringe_bitmap): New function.
525 (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
526 (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
527 Keep standard bitmaps in Vfringe_bitmaps.
528 (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
529 (Fset_fringe_bitmap_face): Likewise.
530
531 * dispextern.h (lookup_fringe_bitmap): Add prototype.
532 (valid_fringe_bitmap_p): Remove prototype.
533
534 * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
535
841a8bca
KS
5362004-09-29 Kim F. Storm <storm@cua.dk>
537
1f2da365
KS
538 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
539 (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
540
841a8bca
KS
541 * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
542
543 * fringe.c (Vfringe_bitmaps): New variable.
544 (syms_of_fringe): DEFVAR_LISP it.
545 (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
546 Change arg to Lisp_Object and fail if not an integer.
547 (get_fringe_bitmap_name, resolve_fringe_bitmap)
548 (destroy_fringe_bitmap): New functions.
9238467d
SM
549 (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
550 Use destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and
841a8bca
KS
551 clear its fringe property.
552 (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
553 Fdestroy_fringe_bitmap.
554 (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
555 bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps
556 and set fringe property. Signal error if no free slots.
557 (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
558 (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
559
560 * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
561 symbols with a fringe property.
562
4d965590
KS
5632004-09-27 Kim F. Storm <storm@cua.dk>
564
565 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
566 Doc fix. Format may now be a symbol or alist, not a cons.
567
568 * fringe.c (update_window_fringes): Handle new formats of
569 indicate-buffer-boundaries (symbol or alist). No longer
570 allow a simple cons.
571 (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
572
e888c2b3
JD
5732004-09-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
574
9238467d 575 * config.in: Rebuild.
e888c2b3 576
83f1cb94
JD
5772004-09-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
578
579 * config.in: Rebuild.
580
dd3b1d60 581 * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
83f1cb94 582
2c51754c
SM
5832004-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
584
585 * xterm.c (x_term_init): Work around a bug in some X servers.
586
3df5f8aa
RS
5872004-09-18 Richard M. Stallman <rms@gnu.org>
588
557ca2c1
RS
589 * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
590
3df5f8aa
RS
591 * xdisp.c (try_window_reusing_current_matrix):
592 Handle the case where we reach the old displayed text,
593 out of sync with the old line boundary.
594
9238467d 5952004-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
4b70e2c9
SM
596
597 * fileio.c (Finsert_file_contents): Fix case of replacement in a
598 narrowed buffer.
599
bfa02563
KS
6002004-09-14 Kim F. Storm <storm@cua.dk>
601
a25fe164
KS
602 * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
603
bfa02563
KS
604 * xfaces.c (Qface_no_inherit): New var.
605 (syms_of_xfaces): Intern and staticpro it.
606 (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
607 (Finternal_copy_lisp_face, update_face_from_frame_parameter):
608 Don't increment face_change_count when face has non-nil
609 face-no-inherit property.
610
126f9c02
SM
6112004-09-13 Stefan Monnier <monnier@iro.umontreal.ca>
612
892a8eb5
SM
613 * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
614 (Fbyte_code): Remove dead code after `wrong_type_argument'.
615
126f9c02 616 * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
9238467d 617 before doing the mark_stack_check_gcpros since they're not on the stack.
126f9c02 618
c0ad3b38
KS
6192004-09-12 Kim F. Storm <storm@cua.dk>
620
621 * editfns.c (Fformat): Handle format strings with multiple text
622 properties. Reverse text property list from the format string,
623 so the positions are in increasing order.
624
844fc085
JD
6252004-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
626
627 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
628 x_uncatch_errors so that possible protocol errors are delivered.
629
b106731c
EZ
6302004-09-10 Eli Zaretskii <eliz@gnu.org>
631
21065c92
EZ
632 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
633 blockinput.h.
634 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
635 charset.h, and coding.h
9238467d 636 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
21065c92
EZ
637 (term.o): Depend on window.h and keymap.h.
638 (abbrev.o): Depend on syntax.h.
639 (callint.o): Depend on keymap.h.
640 (casefiddle.o): Depend on charset.h and keymap.h.
641 (category.o): Depend on keymap.h.
642 (coding.o): Depend on dispextern.h.
643 (cmds.o): Depend on keyboard.h and keymap.h.
644 (dispnew.o): Depend on indent.h and intervals.h.
645 (doc.o): Depend on keymap.h.
646 (editfns.o): Depend on frame.h.
647 (emacs.o): Depend on dispextern.h.
648 (fileio.o): Don't depend on ccl.h.
649 (filelock.o): Depend on charset.h and coding.h.
650 (frame.o): Depend on w32term.h and macterm.h.
651 (insdel.o): Depend on region-cache.h.
652 (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
653 (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
654 (search.o): Depend on $(INTERVALS_SRC).
655 (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
656 (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
657 xterm.h, w32term.h, and macterm.h.
658 (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
659 w32term.h, and macterm.h.
660 (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
661 region-cache.h, xterm.h, w32term.h, and macterm.h.
662 (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
663 (data.o): Depend on frame.h.
664 (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
665 (print.o): Depend on termchar.h and $(INTERVALS_SRC).
666 (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
667 (intervals.o): Depend on keymap.h.
668
9238467d
SM
669 * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
670 Add debugging print-out to termscript.
b106731c 671
64b7122d
RS
6722004-09-09 Richard M. Stallman <rms@gnu.org>
673
674 * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
675
5670531e
RS
6762004-09-08 Richard M. Stallman <rms@gnu.org>
677
6cb4a892
RS
678 * window.c (Fset_window_buffer): Doc fix.
679
5670531e
RS
680 * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
681
7e388eb7
JL
6822004-09-08 Dan Nicolaescu <dann@ics.uci.edu>
683
684 * minibuf.c (history_delete_duplicates): New variable.
685 (read_minibuf): Use it.
686 (syms_of_minibuf): Create the corresponding lisp variable.
687
370e3587
KS
6882004-09-08 Kim F. Storm <storm@cua.dk>
689
690 * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
691 overlay just before point.
692
f844ba4e
LT
6932004-09-07 Luc Teirlinck <teirllm@auburn.edu>
694
695 * buffer.h (struct buffer): Add auto_save_file_format field.
9238467d
SM
696 * buffer.c (reset_buffer, init_buffer_once):
697 Handle auto_save_file_format field.
f844ba4e
LT
698 (syms_of_buffer): Add DEFVAR_PER_BUFFER for
699 `buffer-auto-save-file-format'.
f844ba4e
LT
700 * fileio.c: Delete declaration for removed Vauto_save_file_format.
701 (build_annotations): Adapt to replacement of
702 `auto-save-file-format' with the new buffer-local variable
703 `buffer-auto-save-file-format'.
704 (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
705
f0f90717
JR
7062004-09-07 Jason Rumney <jasonr@gnu.org>
707
708 * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
709
9238467d
SM
710 * w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]:
711 Handle Unicode menu titles.
f0f90717 712
4e14f66c
KS
7132004-09-07 Kim F. Storm <storm@cua.dk>
714
715 * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor'
716 property from text property or overlay strings at point.
717
9238467d 7182004-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
1806714a
SM
719
720 * xmenu.c (update_submenu_strings): YAILOM.
721 (set_frame_menubar): Make sure last_i is initialized.
722
1f06d367
JR
7232004-09-03 Jason Rumney <jasonr@gnu.org>
724
1806714a 725 * w32menu.c (_widget_value): Add lname and lkey.
1f06d367
JR
726 (digest_single_submenu): Set lname and lkey in widget_value
727 instead of name and key.
728 (update_submenu_strings): New function.
729 (set_frame_menubar): Remove call to inhibit_garbage_collection,
730 call update_submenu_strings.
731
732 * w32menu.c (globals_of_w32menu): Check for Unicode API.
733 (digest_single_submenu, w32_menu_show): Encode menu strings as
734 UTF-8 if Unicode API is available.
735 (utf8to16): New function.
736 (add_menu_item): Use it when calling Unicode API.
1806714a 737
46540080
KS
7382004-09-03 Kim F. Storm <storm@cua.dk>
739
740 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
741 in overlay or text-property strings; set cursor on corresponding
742 glyph rather than at end of the string.
743
9277ba61 7442004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
46540080 745
9277ba61 746 * macfns.c (x_real_positions): Save the current window port and
1806714a
SM
747 set a new one before obtaining the global coordinate.
748 Use FRAME_MAC_WINDOW.
749 (x_set_name, x_set_title): Encode title to UTF8.
750 Use SetWindowTitleWithCFString.
9277ba61
ST
751 (Fx_server_version): Get correct OS version.
752
1806714a
SM
753 * macmenu.c (add_menu_item): Remove unused variable `i'.
754 Don't let separator items destroy refence constants of other menu items.
9277ba61
ST
755
756 * macterm.c (x_update_end): Move SetPortWindowPort to inside
757 BLOCK_INPUT.
758 (x_set_offset): Use FRAME_MAC_WINDOW.
759
760 * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
761 nontext_cursor if it is on a scroll bar.
762
763 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
764 Carbon support.
1806714a
SM
765 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
766 Use LIBS_CARBON.
9277ba61 767
b10daec7
JD
7682004-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
769
770 * xfns.c (x_set_name_internal): New function. Check if we shall call
771 xfree before ENCODE_UTF_8.
772 (x_set_name, x_set_title): Call x_set_name_internal.
773
f7e22385
JR
7742004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
775
776 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
777 reload it.
778
2bf436c3
JD
7792004-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
780
1806714a 781 * macmenu.c (_widget_value): Add lname and lkey.
16ceacc2
JD
782 (single_submenu): Set lname and lkey in widget_value
783 instead of name and key.
784 (update_submenu_strings): New function.
785 (set_frame_menubar): Remove call to inhibit_garbage_collection,
786 call update_submenu_strings.
787
2bf436c3
JD
788 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
789 instead of name and key.
790 (update_submenu_strings): New function.
791 (set_frame_menubar): Remove call to inhibit_garbage_collection,
ec867797 792 call update_submenu_strings.
2bf436c3
JD
793
794 * gtkutil.h (_widget_value): Added lname and lkey.
795
11715f92
ST
7962004-08-30 Steven Tamm <steventamm@mac.com>
797
798 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
799 by using different names for inner loop variables.
800
5500be54
JD
8012004-08-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
802
059cd329
JD
803 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
804 from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
805
5500be54
JD
806 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
807 tool bar items is 0.
808
383418e5
ST
8092004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
810
811 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
812 strings in menu items.
813 (single_submenu): Use ENCODE_MENU_STRING
814 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
815 button release isn't passed to event loop
816 (add_menu_item): Use SetMenuItemWithCFString
817
6eb3ee72
ST
8182004-08-26 Steven Tamm <steventamm@mac.com>
819
820 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
821 tool-bar/menu click
822 * macfns.c (Fx_file_dialog): Implemented using NavServices
823
10b43ac3
JD
8242004-08-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
825
2728b5d0
JD
826 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
827
10b43ac3
JD
828 * xfns.c (x_window_to_frame, x_any_window_to_frame)
829 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
830 (x_top_window_to_frame): Return 0 if wdesc is None.
831
2ee3b79e
RS
8322004-08-22 Richard M. Stallman <rms@gnu.org>
833
834 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
835 HAVE_TERMIOS]: If there's no char for this signal, drop through
836 and use system calls.
837
838 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
839
9a1ba2ea
KS
8402004-08-20 Kim F. Storm <storm@cua.dk>
841
842 * process.c (wait_reading_process_output): Rename from
843 wait_reading_process_input. All uses changed.
844 (wait_reading_process_output_1): Rename from
845 wait_reading_process_input_1. All uses changed.
846
847 * dispnew.c (Fsleep_for): Remove obsolete code.
848
295f3b30
KH
8492004-08-20 Kenichi Handa <handa@m17n.org>
850
851 * syntax.c (skip_chars): Fix for unibyte case.
852
27615979
SM
8532004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
854
855 * syntax.c (char_quoted): Mixup byte/char pos.
856 (back_comment): Fixup globals in all cases.
857
00267f94
JD
8582004-08-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
859
860 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
861 passing it to gtk_window_set_title.
862
2439909e
KS
8632004-08-19 Kim F. Storm <storm@cua.dk>
864
6ba0f14c
KS
865 * process.c (wait_reading_process_input): Clean up.
866 Add wait_for_cell, wait_proc, and just_wait_proc args
867 to avoid overloading `read_kbd' and `do_display' args.
868 Change read_kbd arg to int. All callers changed.
869
2439909e
KS
870 * process.c (process_send_signal): Use CDISABLE.
871
872 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
873
101c421e
KS
8742004-08-18 Kim F. Storm <storm@cua.dk>
875
876 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
877 forward to wait_reading_process_input via DO_DISPLAY arg.
878 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
879 object, only process output from that process; also inhibit
880 running timers if DO_DISPLAY==-2.
881
c438dc33
KS
8822004-08-17 Kim F. Storm <storm@cua.dk>
883
884 * process.c (process_send_signal): Fix last change--use
885 _POSIX_VDISABLE instead of CVDISABLE when available.
886
8afc13c6
RS
8872004-08-16 Richard M. Stallman <rms@gnu.org>
888
889 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
890 Set VQUIT and VINTR chars to the standard ones if they are unset.
891 [AIX]: Don't do that here. And don't force VINTR to standard
892 when SIGNALS_VIA_CHARACTERS.
893
c438dc33 894 * process.c (process_send_signal)
8afc13c6
RS
895 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
896 Do nothing if the character is CVDISABLE.
897
898 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
899
c438dc33 900 * intervals.c (move_if_not_intangible):
8afc13c6
RS
901 Force POSITION to be between BEGV and ZV.
902
6dad1714
JPW
9032004-08-14 John Paul Wallington <jpw@gnu.org>
904
905 * buffer.c (Frestore_buffer_modified_p): Doc fix.
906
907 * fileio.c (Fread_file_name): Doc fix.
908
909 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
910
2bd77330
LT
9112004-08-09 Luc Teirlinck <teirllm@auburn.edu>
912
913 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
914
c90e7e43
LT
9152004-08-08 Luc Teirlinck <teirllm@auburn.edu>
916
917 * keyboard.c: Declare Qdisabled_command_function instead of
8392e138 918 Qdisabled_command_hook.
c90e7e43 919 (Fcommand_execute): Use Qdisabled_command_function instead of
8392e138 920 Qdisabled_command_hook.
c90e7e43
LT
921 (syms_of_keyboard): Ditto.
922
81909a1a
LT
9232004-08-07 Luc Teirlinck <teirllm@auburn.edu>
924
925 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
926 (syms_of_keymap) <key-translation-map>: Doc fixes.
927
0cedd530
SM
9282004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
929
1725a7c9
SM
930 * window.c (window_list_1): YAILOM.
931
0cedd530
SM
932 * fileio.c (make_temp_name): Handle multibyte prefixes.
933
2515a131
LT
9342004-08-06 Luc Teirlinck <teirllm@auburn.edu>
935
936 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
937 Doc fix.
938
c8b20fb7
KH
9392004-08-03 Kenichi Handa <handa@m17n.org>
940
941 * coding.c (decode_coding_string): Adjust coding->consumed, and
942 etc. with shrinked_bytes.
943
fb8b092b
KS
9442004-08-03 Kim F. Storm <storm@cua.dk>
945
946 * indent.c (compute_motion): Fix check for full width window
947 in non-window case. Do not count left truncation glyph on
948 window systems.
949
df133612
LT
9502004-08-02 Luc Teirlinck <teirllm@auburn.edu>
951
952 * data.c (Finteractive_form): Doc fix.
953
0f7a93c1
KS
9542004-08-02 Kim F. Storm <storm@cua.dk>
955
956 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
957 properly accounting for continuation glyph on non-window systems.
958 (Fcompute_motion): Use actual window width if WIDTH is nil, and
959 actual window width/height if TOPOS is nil, properly accounting for
960 continuation glyphs on non-window systems, and optional header lines.
961 (vmotion): Let compute_motion calculate actual window width.
962
963 * window.c (window_scroll_line_based): Let compute_motion
964 calculate actual window width.
965
f491e1ed
KS
9662004-08-02 Kim F. Storm <storm@cua.dk>
967
968 * process.c (read_process_output): Use whole read buffer.
969 Don't trigger adaptive read buffering on errors.
970
83f64226
LT
9712004-07-31 Luc Teirlinck <teirllm@auburn.edu>
972
973 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
974
975 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
976
977 * callint.c (Fcall_interactively): Doc fix.
978
8afc13c6
RS
9792004-07-30 Richard M. Stallman <rms@gnu.org>
980
981 * abbrev.c (Fexpand_abbrev): Undo previous change.
982
7c111482
KS
9832004-07-30 Kim F. Storm <storm@cua.dk>
984
985 * editfns.c (Fformat): Allocate extra (dummy) element in info.
986
ee945d08
LT
9872004-07-28 Luc Teirlinck <teirllm@auburn.edu>
988
989 * eval.c (Fdefvar, Fdefconst): Doc fixes.
990
3f911c94
KS
9912004-07-27 Kim F. Storm <storm@cua.dk>
992
993 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
994 we have ensured that the glyph fits on the current line (or returned
995 MOVE_LINE_CONTINUED otherwise).
996
f29ff8c7
KS
9972004-07-26 Kim F. Storm <storm@cua.dk>
998
999 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
1000 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
1001 if target position is at end of display line but char is not a newline.
1002
81159bb9
RS
10032004-07-25 Richard M. Stallman <rms@gnu.org>
1004
ab431b61
RS
1005 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
1006 instead of ON_VERTICAL_BORDER, when on scroll bar.
1007 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
1008
1009 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
1010
f29ff8c7 1011 * window.c (Fcoordinates_in_window_p):
81159bb9
RS
1012 Take account of FRAME_INTERNAL_BORDER_WIDTH.
1013
1014 * alloc.c (check_cons_list): New function (contents commented out).
1015
fc820cc5
LT
10162004-07-24 Luc Teirlinck <teirllm@auburn.edu>
1017
1018 * xfaces.c (Fcolor_supported_p): Doc fix.
1019
1020 * frame.c (Fselect_frame, Fset_frame_selected_window)
1021 (Fframe_visible_p, Fraise_frame): Doc fixes.
1022
289978b5
LT
10232004-07-24 Richard M. Stallman <rms@gnu.org>
1024
7630911d
RS
1025 * keyboard.h (not_single_kboard_state): Declared.
1026
1027 * fileio.c (Fwrite_region): Doc fix.
1028
1029 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
1030
1031 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
1032 only when a real abbrev is present.
1033
289978b5
LT
1034 * xfns.c (x_icon_verify): New function.
1035 (Fx_create_frame): Use it.
1036
63cc10ae
KS
10372004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
1038
1039 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
1040
36f826d4
KS
10412004-07-21 Kim F. Storm <storm@cua.dk>
1042
1043 * window.h (struct glyph_matrix): New members nrows_scale_factor
1044 and ncols_scale_factor.
1045
1046 * window.c (make_window): Initialize nrows_scale_factor and
1047 ncols_scale_factor members.
1048
1049 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
1050 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
1051 (required_matrix_height): Apply nrows_scale_factor.
1052 (required_matrix_width): Apply ncols_scale_factor.
1053
1054 * xdisp.c (display_line): Increment nrows_scale_factor and set
1055 fonts_changed_p if past last allocated row.
1056 (append_glyph, append_composite_glyph, produce_image_glyph)
1057 (append_stretch_glyph): Increment ncols_scale_factor and set
1058 fonts_changed_p if current area is full.
1059
5fc1c546
JD
10602004-07-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1061
1062 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
1063
cb7516e5
LT
10642004-07-19 Luc Teirlinck <teirllm@auburn.edu>
1065
1066 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
1067 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
1068 (Fset_window_start, Fscroll_up, Fscroll_down)
1069 (Fother_window_for_scrolling, Fscroll_other_window)
1070 (Fsave_window_excursion, Fset_window_vscroll)
1071 (syms_of_window) <window-size-fixed>: Doc fixes.
1072
b6189c3b 10732004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
dda741ec
JR
1074
1075 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
1076 ENCODE_SYSTEM for filenames.
1077
bfcf6608
ST
10782004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1079
1080 * mac.c (sys_select): Block input around call to
1081 ReceiveNextEvent to prevent breakage. Correctly handle
1082 blocking on event queue only by calling ReceiveNextEvent
1083 instead of select (since GUI events aren't on an fd).
1084 (sys_read): Remove function
1085 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
1086
e082ac9d
ST
10872004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1088
1089 * mac.c (sys_select): Redo sys_select to use alarm-based
cb7516e5 1090 polling instead of 1 sec timeouts (like solaris).
e082ac9d 1091
cb7516e5 1092 * macterm.c (x_make_frame_visible): Comment in polling on
e082ac9d
ST
1093 frame creation.
1094
1095 * keyboard.c: Undef SIGIO on Carbon
1096
1097 * atimer.c (alarm_signal_handler): Call alarm handlers after
1098 scheduling.
1099
1100 * eval.c (Feval): Remove quit_char test
1101
1102 * process.c (wait_reading_process_input): Remove clearing
1103 stdin for select call on process input.
1104
4b9da0fb
LT
11052004-07-18 Luc Teirlinck <teirllm@auburn.edu>
1106
1204e81c
LT
1107 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
1108 capitalization error in docstring.
4b9da0fb 1109
26503ad2
JB
11102004-07-17 Juanma Barranquero <lektu@terra.es>
1111
1112 * keyboard.c (not_single_kboard_state): Do nothing unless
1113 MULTI_KBOARD is defined.
1114
3751eb00
RS
11152004-07-17 Richard M. Stallman <rms@gnu.org>
1116
1117 * window.c (coordinates_in_window): Inside the window but outside
1118 its box to the L or R, return ON_VERTICAL_BORDER.
1119 (window_list_1): Rotate the list to start with WINDOW.
1120
1121 * print.c (print_preprocess): Test for print_depth at limit
1122 before entering in being_printed.
1123
1124 * keyboard.c (not_single_kboard_state): New function.
1125 (stuff_buffered_input): Now no-op only if no SIGTSTP.
1126
1127 * frame.c (Fdelete_frame): If we're in single_bboard_state on
1128 this kboard, and we delete its last frame, go to any_kboard_state.
1129
1130 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
1131
b6189c3b 11322004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
62eb6ca9
JR
1133
1134 * w32fns.c (Fx_file_dialog): Encode strings in system coding
1135 system before passing them to OS functions for display.
1136
0f6af254
DK
11372004-07-15 David Kastrup <dak@gnu.org>
1138
f9253326
KS
1139 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
1140 Apparently fixes an abort condition.
0f6af254 1141
386c8f42
LT
11422004-07-14 Luc Teirlinck <teirllm@auburn.edu>
1143
1144 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
1145 instead of a cons.
1146
366511da
MB
11472004-07-14 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
1148
1149 * keyboard.c (echo_dash): Do nothing if there already is a dash
1150 at the end of the echo string.
1151
f85409d3
KS
11522004-07-12 Kim F. Storm <storm@cua.dk>
1153
1154 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
1155 if GC_MARK_STACK.
1156
0ba2e87b
LT
11572004-07-10 Luc Teirlinck <teirllm@auburn.edu>
1158
da38045d
LT
1159 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
1160
0ba2e87b
LT
1161 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
1162 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
1163 (Freplace_buffer_in_windows, Fset_window_buffer)
1164 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
1165 (syms_of_window): Expand docstring of `display-buffer-function'.
1166
5668fbb8
LT
11672004-07-09 Luc Teirlinck <teirllm@auburn.edu>
1168
1169 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
1170 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
1171 that time values of the type (HIGH . LOW) are considered obsolete.
1172
a085bf9d
LT
11732004-07-06 Luc Teirlinck <teirllm@auburn.edu>
1174
669de2fb
LT
1175 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
1176 docstring.
1177
bac66325 1178 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
a085bf9d 1179
8e975df9
JPW
11802004-07-06 John Paul Wallington <jpw@gnu.org>
1181
1182 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
1183
fa164e6a
JPW
1184 * fns.c (Fclear_string): Signal an error if STRING is not a string.
1185
2bac9bb1
JD
11862004-07-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1187
1188 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
1189 instead of CGMainDisplayID (only in OSX 10.2 and later).
1190
316ef0dc
JPW
11912004-07-04 John Paul Wallington <jpw@gnu.org>
1192
1193 * fileio.c (read_file_name_completion_ignore_case): New variable.
1194 (syms_of_fileio): Declare and initialise it.
1195 (Fread_file_name): Bind `completion-ignore-case' to respect it.
1196
2a1a35c6
EZ
11972004-07-03 Eli Zaretskii <eliz@gnu.org>
1198
1199 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
1200 for event.x and event.y.
1201
33a72331
KH
12022004-07-01 Kenichi Handa <handa@m17n.org>
1203
1204 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
1205 after getting a new string by pre-write-conversion.
1206
9238467d 12072004-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
07a6ab76
SM
1208
1209 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
1210 (x_calc_absolute_position): Remove unused var `child'.
1211
1212 * xfaces.c (x_supports_face_attributes_p)
1213 (Fdisplay_supports_face_attributes_p): YAILOM.
1214 (tty_supports_face_attributes_p): Remove unused var `i'.
1215
1216 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
1217 back_unibyte_ok.
1218
1219 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
1220
1221 * fontset.c (Fset_fontset_font): Remove unused vars `family' and `registry'.
1222
1223 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
1224
f96ec754
AS
12252004-06-30 Andreas Schwab <schwab@suse.de>
1226
1227 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
1228 (Finit_image_library): Pass LIBRARIES through to
1229 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
1230 (lookup_image_type): Pass Qnil as second argument to
1231 Finit_image_library.
1232
1233 * lisp.h: Declare Finit_image_library.
1234
59feca74 12352004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
c8d09ad8 1236
31983645
AS
1237 * macterm.c (do_window_activate, do_window_deactivate): Remove.
1238 (XTread_socket): Send mouse button events to the toolbox
1239 dispatcher even when the mouse is grabbed. Don't process window
1240 activate events for non-Emacs windows. Replace function calls to
1241 do_window_activate and do_window_deactivate with their contents.
1242 Reset mouse grabbing status when a window is deactivated.
59feca74 1243
c61278bb
ST
12442004-06-29 Steven Tamm <steventamm@mac.com>
1245
1246 * macterm.c (mac_get_emulated_btn)
1247 (mac_event_to_emacs_modifiers): Fix emulated mouse button
1248 support to correctly mask out modifiers.
1249
c3762cbd
DK
12502004-06-29 David Kastrup <dak@gnu.org>
1251
1252 * search.c (Fset_match_data): Allow buffer before end of list
1253 which can happen if set-match-data is using a pre-consed list.
1254
c61278bb 12552004-06-28 Steven Tamm <steventamm@mac.com>
e439b925
ST
1256
1257 * macterm.c (XTread_socket): Correctly set the frame position
1258 after the window is moved.
1259
74cdfe05
JD
12602004-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1261
1262 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
1263 gpix and gmask just before return to avoid memory leak.
03ecb80f
JD
1264 (xg_get_image_for_pixmap): Add workaround for monochrome displays
1265 so insensitive and activated icons look ok.
74cdfe05 1266
ef544dc8
JR
12672004-06-27 Jason Rumney <jasonr@gnu.org>
1268
1269 * w32fns.c (file_dialog_callback): Disable edit control if set
1270 to directories only on CDN_INITDONE message.
1271 (Fx_file_dialog): Default to directories only when prompt starts
1272 with "Dired".
1273
7b7990cc
KS
12742004-06-25 Kim F. Storm <storm@cua.dk>
1275
1276 * alloc.c (allocate_misc): Update total_free_markers.
1277 (free_misc): New function.
1278 (safe_alloca_unwind, free_marker): Use it.
1279
1280 * lisp.h (free_misc): Add prototype.
1281
1282 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
1283
d8c379f8
RS
12842004-06-24 Richard M. Stallman <rms@gnu.org>
1285
1286 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
1287 (syms_of_emacs): Lisp variables deleted.
1288
559cdd07
DK
12892004-06-23 David Kastrup <dak@gnu.org>
1290
94939b84
DK
1291 * search.c (Freplace_match): Adjust the match-data more thoroughly
1292 when replacing strings in the buffer.
1293 (Fmatch_data): When INTEGERS is non-nil and the last match was in
1294 a buffer, add the buffer as last element to the match data.
1295 (Fset_match_data): If an additional element of the match-data is a
1296 buffer, restore it to last_thing_searched.
c8d09ad8 1297 (save_search_regs): Save last_thing_searched as part of the match data.
559cdd07
DK
1298 (restore_match_data): Restore it again.
1299
dce417e7
LT
13002004-06-23 Luc Teirlinck <teirllm@auburn.edu>
1301
1302 * keymap.c (Ftext_char_description): Doc fix.
1303 * doc.c (Fsnarf_documentation): Doc fix.
1304
ef54b2d0
KS
13052004-06-22 Kim F. Storm <storm@cua.dk>
1306
b5bc4d05
KS
1307 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
1308
ef54b2d0
KS
1309 * lisp.h (struct Lisp_Save_Value): New member dogc.
1310 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
1311 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
1312 (SAFE_FREE_LISP): New macro.
1313
1314 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
1315 (make_save_value): Init new dogc member.
1316 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
1317
1318 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
1319 SAFE_FREE_LISP macros.
1320
3d33d993
KS
13212004-06-22 Kim F. Storm <storm@cua.dk>
1322
1323 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
1324 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
1325 in that memory area are unknown to GC. Add comments.
1326
1327 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
1328
5c917f98
KS
13292004-06-21 Kim F. Storm <storm@cua.dk>
1330
1331 * lisp.h (MAX_ALLOCA): Define here.
1332 (safe_alloca_unwind): Add prototype.
1333 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
1334
1335 * alloc.c (safe_alloca_unwind): New function.
1336
1337 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
1338
1339 * charset.c (Fstring): Use SAFE_ALLOCA.
1340
1341 * coding.c (MAX_ALLOCA): Remove define.
1342
1343 * data.c (MAX_ALLOCA): Remove define.
1344 (Faset): Use SAFE_ALLOCA.
1345
1346 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
1347
1348 * fns.c (string_make_multibyte, string_to_multibyte)
1349 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
1350 (MAX_ALLOCA): Remove define.
1351 (Fbase64_encode_region, Fbase64_encode_string)
1352 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
1353 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
1354 memory leak if encoding fails.
1355
1356 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
1357
9a09408e
EZ
13582004-06-21 Eli Zaretskii <eliz@gnu.org>
1359
1360 * print.c (Fwith_output_to_temp_buffer): Doc fix.
1361
376de739
RS
13622004-06-20 Richard M. Stallman <rms@gnu.org>
1363
1364 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
1365
1366 * search.c (match_limit): Cleaner err msg when no match data available.
1367
1368 * window.c (syms_of_window): Doc fix.
1369
1370 * keyboard.c (command_loop_1): Handle values `only' and `identity'
1371 for Vtransient_mark_mode.
1372
1373 * buffer.c (syms_of_buffer): Doc fix.
1374
acd81db9
DK
13752004-06-21 David Kastrup <dak@gnu.org>
1376
1377 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
1378 and unbinding of `case-fold-search' according to
1379 `completion-ignore-case' around calls of string-match and
1380 predicates, respectively. Should give satisfactory performance
1381 in all relevant cases.
1382
f303762d
JD
13832004-06-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1384
95911c74
JD
1385 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
1386 clip_x/y_origin.
1387
a6cb6b78
JD
1388 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
1389
f303762d
JD
1390 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
1391
1392 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
1393 on Mac OSX.
1394
bbdb2684
LT
13952004-06-16 Luc Teirlinck <teirllm@auburn.edu>
1396
1397 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
1398
5ea48b1c
KS
13992004-06-16 Kim F. Storm <storm@cua.dk>
1400
1401 * dispextern.h (Vimage_types): Remove extern.
1402
803aac3e
MB
14032004-06-16 Miles Bader <miles@gnu.org>
1404
1405 * image.c (lookup_image_type): Initialize image type if necessary.
1406
cdc97764
KS
14072004-06-15 Kim F. Storm <storm@cua.dk>
1408
c4a5739c
KS
1409 * xdisp.c (try_cursor_movement): Exclude header line from scroll
1410 margin at top of window.
1411 (try_window_reusing_current_matrix): Calculate proper cursor position
1412 after scrolling up with non-zero scroll margin, as the old cursor
1413 position corresponds to value of PT before executing this command.
1414 (try_window_id): Consider scroll margin at bottom of window too;
1415 otherwise we fail to scroll when hl-line-mode is enabled.
1416
cdc97764
KS
1417 * syntax.c (skip_chars): Only recognize [:class:] when it has the
1418 proper format and class is a lower-case word.
1419
5b166323
JD
14202004-06-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1421
1422 * gtkutil.c (xg_get_image_for_pixmap): New function.
c8d09ad8 1423 (xg_get_gdk_pixmap_and_mask): Remove.
5b166323
JD
1424 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
1425 xg_get_gdk_pixmap_and_mask.
cdc97764 1426
5b166323
JD
1427 * xterm.h (struct x_display_info): Typo in comment fixed.
1428
1ebd4f78
JB
14292004-06-14 Juanma Barranquero <lektu@terra.es>
1430
1431 * dispextern.h (Vimage_types): Make it conditional on
1432 HAVE_WINDOW_SYSTEM.
1433
1434 * image.c (Vimage_types): Move from xdisp.c.
1435 (Vimage_type_cache): New variable.
1436 (define_image_type): New argument indicating whether an image
1437 library was loaded; cache loaded status and return t on success,
1438 nil otherwise.
1439 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
1440 (w32_delayed_load): New function to load an image library from a
1441 list of possible filenames.
1442 (init_xpm_functions, init_png_functions, init_jpeg_functions)
1443 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
c8d09ad8 1444 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
1ebd4f78
JB
1445 (Finit_image_library): New function, extracted from `init_image'.
1446 Try to initialize an image library on demand and cache whether we
1447 were successful or not.
1448 (syms_of_image): Initialize `Vimage_types' and
1449 `Vimage_type_cache'. Add recognized image types to Vimage_types.
1450 Export `init-image-library'.
1451 (init_image): Remove initialization of all image types, except xbm
1452 and pbm.
1453
1454 * xdisp.c (Vimage_types): Delete (moved to image.c).
1455
904ee128
AS
14562004-06-14 Andreas Schwab <schwab@suse.de>
1457
1458 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
1459 Avoid calling specbind when completion-regexp-list is empty.
1460
092de21d
RS
14612004-06-13 Richard M. Stallman <rms@gnu.org>
1462
1463 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
1464 (re_wctype, re_iswctype, re_wctype_to_bit):
1465 Non-function definitions moved here from regex.c.
1ebd4f78 1466
092de21d
RS
1467 * regex.c (re_wctype, re_iswctype): Function defs longer static.
1468 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
1469 (re_wctype, re_iswctype, re_wctype_to_bit):
1470 Non-function definitions moved to regex.h.
1471
1472 * window.c (Fselect_window): Doc fix.
1473
1474 * syntax.c: Include regex.h.
1475 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
1476 If requested, make a list of classes, then check the scanned
1477 chars for membership in them.
1478 (in_classes): New function.
1479 Doc fix.
1480
1481 * keyboard.c (cmd_error): Don't call any_kboard_state
1482 if inside a recursive edit level.
1483
14842004-06-13 Lorentey K\e,Aa\e(Broly <lorentey@elte.hu>
1485
1486 * keyboard.c (command_loop): Call any_kboard_state before
1487 command_loop_2 when at top level.
1488
3ebc0939
AS
14892004-06-13 Andreas Schwab <schwab@suse.de>
1490
cea5d0d4
AS
1491 * print.c (print_object): Always use %ld for printing EMACS_INT.
1492
1493 * keyboard.c (cancel_hourglass_unwind): Return a value.
1494 (modify_event_symbol): Always use %ld for printing EMACS_INT.
1495 (Fexecute_extended_command): Likewise.
1496
1497 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
1498 avoid clashes.
1499 (SYNTAX): Likewise.
1500 (SYNTAX_WITH_FLAGS): Likewise.
1501 (SYNTAX_MATCH): Likewise.
1502
1503 * syntax.c (char_quoted): Avoid warning about undefined operation.
1504 (find_defun_start): Likewise.
1505 (scan_lists): Likewise.
1506 (INC_FROM): Likewise.
1507 (scan_sexps_forward): Likewise.
1508
be8c4ce4
AS
1509 * image.c: Include <ctype.h>.
1510
3ebc0939
AS
1511 * xfaces.c (face_attr_equal_p): Declare parameters.
1512
6fb41b5b
KH
15132004-06-13 Kenichi Handa <handa@m17n.org>
1514
1515 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
1516
fc3095ce
EZ
15172004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
1518
1519 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
1520
66189a40
KH
15212004-06-12 Kenichi Handa <handa@m17n.org>
1522
1523 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
1524 ccl_prog_stack_struct and update it.
1525 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
1526 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
1527 ccl->eof_ic on EOF.
1528 (ccl_debug_hook): New function.
1529 (struct ccl_prog_stack): New member eof_ic.
1530 (ccl_driver): Handle EOF in subrountine call correctly.
1531
15322004-06-11 Kenichi Handa <handa@m17n.org>
1533
1534 * coding.c (decode_coding_string): Check CODING_FINISH_INTERRUPT.
1535
1da71023
KS
15362004-06-11 Kim F. Storm <storm@cua.dk>
1537
1538 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
1539
e9efcef4
JB
15402004-06-11 Juanma Barranquero <lektu@terra.es>
1541
1542 * keyboard.c (Fposn_at_point): Doc fix.
1543
9b9ceb61
DK
15442004-06-11 David Kastrup <dak@gnu.org>
1545
1546 * search.c (match_limit): Don't flag an error if match-data
1547 exceeding the allocated search_regs.num_regs gets requested, just
1548 return Qnil.
1549
6e87ac8f
MB
15502004-06-08 Miles Bader <miles@gnu.org>
1551
1552 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
1553
0b0dea7b
JB
15542004-06-07 Juanma Barranquero <lektu@terra.es>
1555
1556 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
1557 (Fcurrent_time_string, Fcurrent_time_zone)
1558 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
1559
a0a23346
MB
15602004-06-07 Miles Bader <miles@gnu.org>
1561
08384afd 1562 * xfaces.c (struct named_merge_point): New type.
a0a23346
MB
1563 (push_named_merge_point): New function.
1564 (merge_named_face): New function.
1565 (merge_face_ref, face_at_buffer_position, face_at_string_position):
1566 Use `merge_named_face'.
1567 (merge_face_inheritance): Function removed.
c8d09ad8 1568 (merge_face_ref): Rename from `merge_face_vector_with_property'.
a0a23346
MB
1569 Add new `err_msgs' and `named_merge_points' args. Return error
1570 status. Only print error messages if ERR_MSGS is true. Don't try to
1571 do :inherit attribute validation.
1572 (merge_face_heights): Handle `unspecified' in both directions.
1573 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
1574 Call `merge_face_ref' instead of `merge_face_inheritance'.
1575 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
1576 (compute_char_face, face_at_buffer_position)
1577 (face_at_string_position): Call `merge_face_ref' instead of
1578 `merge_face_vector_with_property'.
1579
12d5b185
KH
15802004-06-07 Kenichi Handa <handa@m17n.org>
1581
1582 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
1583 the necessary places.
1584
2e2d7ee6
KS
15852004-06-07 Kim F. Storm <storm@cua.dk>
1586
1587 * process.c (Fdelete_process): Undo 2004-05-28 change.
1588 Instead, call status_notify also for network process.
1589 (status_message): Use process instead of status as arg.
1590 Give messages "deleted" or "connection broken by remote peer" for
1591 an exited network process.
1592 (status_notify): Change call to status_message.
1593 (read_process_output): Increase readmax to 4096. Do not increase
1594 buffer size for datagram channels (default is now large enough).
1595
fcf0d299
ST
15962004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
1597
1598 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
1599 problem due to newly defined variable.
1600
0722292b
MB
16012004-06-06 Miles Bader <miles@gnu.org>
1602
1603 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
1604 immediately if non-interactive or not initialized.
1605
ddfb8369
RS
16062004-06-05 Richard M. Stallman <rms@gnu.org>
1607
1608 * minibuf.c (Fcompleting_read): Doc fix.
1609
57015754
AS
16102004-06-05 Andreas Schwab <schwab@suse.de>
1611
1612 * macfns.c (x_create_tip_frame): Fix declaration after statement.
1613
23715ea6
JB
16142004-06-05 Juanma Barranquero <lektu@terra.es>
1615
1616 * keymap.c (Fdescribe_vector): Fix docstring.
1617 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
1618
8e330b22
MB
16192004-06-05 Miles Bader <miles@gnu.org>
1620
1621 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
1622 attributes have different values than the default face.
1623
9742a3a6
EZ
16242004-06-04 Eli Zaretskii <eliz@gnu.org>
1625
1626 * xfaces.c (x_supports_face_attributes_p): Make this function
1627 conditional on HAVE_WINDOW_SYSTEM.
c8d09ad8
SM
1628 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
1629 Don't call x_supports_face_attributes_p if it was not compiled in.
9742a3a6 1630
9717e36c
MB
16312004-06-04 Miles Bader <miles@gnu.org>
1632
1633 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
1634 from Ftty_supports_face_attributes_p.
1635 (x_supports_face_attributes_p): New function.
1636 (Ftty_supports_face_attributes_p): Function deleted.
1637 (Fdisplay_supports_face_attributes_p): New function.
1638 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
f9711de4 1639 (face_attr_equal_p): New function.
9717e36c
MB
1640 (lface_equal_p): Use it.
1641
52deb19f
JB
16422004-06-03 Juanma Barranquero <lektu@terra.es>
1643
1644 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
1645 (Vw32_color_map): Fix typo in docstring.
1646 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
1647 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
1648 Make argument names match their use in docstring.
1649
86d373e6
JB
16502004-06-02 Juanma Barranquero <lektu@terra.es>
1651
1652 Work around bugs/problems with MinGW builds of graphics libraries
1653 called from MSVC builds of Emacs.
1654
1655 * image.c (lookup_image): Make pointer to img static.
1656 (png_read_from_memory): Disable "global" optimization.
1657
2fb0ce67
SM
16582004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
1659
c8d09ad8
SM
1660 * eval.c (Fcondition_case): Fix usage. Simplify.
1661
2fb0ce67
SM
1662 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
1663
50bf7673
ST
16642004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1665
1666 * macfns.c: Don't include ccl.h.
1667 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
86d373e6
JB
1668 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
1669 TextUtils.h.
c8d09ad8 1670 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
50bf7673
ST
1671 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
1672 display height/width.
1673 (compute_tip_xy, Vx_max_tooltip_size): Declare.
1674 (unwind_create_tip_frame, compute_tip_xy): New functions.
1675 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
1676 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
1677 and last_show_tip_args.
2fb0ce67 1678
50bf7673
ST
1679 * macgui.h [!MAC_OSX]: Include Gestalt.h.
1680 (Cursor, No_Cursor): New defines.
c8d09ad8 1681 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
50bf7673
ST
1682 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
1683
1684 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
1685
1686 * macterm.c: Don't include Gestalt.h.
1687 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
1688 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
1689 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
1690 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
1691 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
1692 (construct_mouse_click, XTmouse_position)
1693 (x_scroll_bar_report_motion, x_calc_absolute_position)
1694 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
1695 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
1696 (note_mouse_movement): Clear the mouse face and reset the pointer
1697 shape when the pointer goes outside the frame without grabbing.
1698 (mac_front_window): New function.
1699 (mac_window_to_frame): New macro.
1700 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
1701 (do_window_activate, do_window_deactivate, do_app_resume)
1702 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
1703 (do_zoom_window, mac_do_receive_drag, XTread_socket)
1704 (mac_check_for_quit_char): Use mac_front_window and/or
1705 mac_window_to_frame.
1706 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
1707 scroll-bar click event.
1708 (mac_define_frame_cursor): Change the pointer shape.
c8d09ad8 1709 (x_free_frame_resources): Reset tip_window to NULL when it is disposed.
50bf7673 1710 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
c8d09ad8 1711 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
50bf7673
ST
1712 (do_window_update): Don't do anything if the updated window is the
1713 tooltip window.
1714 (do_mouse_moved): Handle mouse movement events here (previously in
1715 XTread_socket). Clear the mouse face if
1716 dpyinfo->mouse_face_hidden is set.
1717 (do_os_event, do_events): Remove (now in XTread_socket).
1718 (XTread_socket): Immediately return if interrupt_input_blocked.
c8d09ad8
SM
1719 Loop until all the events in the queue are processed.
1720 Rearrange codes for mouse grabbing. Add tooltip support. Include the
50bf7673
ST
1721 contents of do_os_event and do_events. Remove mouse movement
1722 handling (now in do_mouse_moved). Add the case where
1723 Vmouse_highlight has an integer value.
1724 (NewMacWindow): Remove.
1725 (make_mac_frame): Do what NewMacWindow previously did. Don't do
1726 excess initializations.
1727 (make_mac_terminal_frame): Previous initializations in
1728 make_mac_frame are moved here.
c8d09ad8
SM
1729 (mac_initialize_display_info):
1730 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
50bf7673
ST
1731
1732 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
1733 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
1734
08fd1251
RS
17352004-05-29 Richard M. Stallman <rms@gnu.org>
1736
1737 * lisp.h (truncate_undo_list): Update decl.
1738
1739 * alloc.c (undo_outer_limit): New variable.
1740 (syms_of_alloc): Defvar it.
1741 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
1742
1743 * undo.c (truncate_undo_list): New arg LIMITSIZE.
1744
1745 * alloc.c (lisp_align_malloc): Check for base == 0
1746 regardless of HAVE_POSIX_MEMALIGN.
1747 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
1748
227ef0ff
SM
17492004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
1750
1751 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
1752 (marker_blocks_pending_free): Remove.
1753 (Fgarbage_collect): Sweep after cleaning up undo-lists.
1754 Mark the undo lists after claning them up.
1755 Don't free block in marker_blocks_pending_free.
1756 (mark_buffer): Don't mark undo_list.
1757 (gc_sweep): Sweep hash-tables and strings first.
1758 Do free marker blocks that are empty.
1759
034a6113
SM
17602004-05-28 Jim Blandy <jimb@redhat.com>
1761
1762 * regex.c (print_partial_compiled_pattern): Add missing 'break'
1763 after 'case wordend'. For symbeg and symend, print to stderr,
1764 like the other cases.
1765
33594a8d
NF
17662004-05-28 Noah Friedman <friedman@splode.com>
1767
1768 * process.c (Fdelete_process): Do not call remove_process.
1769
ce50a847
SM
17702004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
1771
1772 * alloc.c (struct backtrace): Remove.
1773 (Fgarbage_collect): Use the new mark_backtrace.
1774
1775 * eval.c (mark_backtrace): New function.
1776
1777 * minibuf.c (run_exit_minibuf_hook): New function.
1778 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
1779 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
1780
1e8dae36
KS
17812004-05-27 Kim F. Storm <storm@cua.dk>
1782
1783 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
1784 over display properties, e.g. images, that replace buffer text.
1785
846faa3b
KS
17862004-05-25 Kim F. Storm <storm@cua.dk>
1787
1788 * alloc.c (marker_blocks_pending_free): New var.
1789 (gc_sweep): Store free marker blocks on that list.
1790 (Fgarbage_collect): Free them after undo-list cleanup.
1791
1792 * process.c (wait_reading_process_input): Check connect_wait_mask
1793 before actually accepting connection in case it has already been
1794 accepted due to recursion.
1795
b6189c3b 17962004-05-23 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
6239a668 1797
ce50a847
SM
1798 * coding.c (Fset_safe_terminal_coding_system_internal):
1799 Set suppress_error in safe_terminal_coding, not terminal_coding.
6239a668 1800
71d5a208
RS
18012004-05-22 Richard M. Stallman <rms@gnu.org>
1802
1803 * alloc.c (Fmake_string): Doc fix.
1804
1805 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
1806 and the alist pairs too.
1807
1808 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
1809
1810 * emacs.c (main): Update copyright year.
1811
1812 * fileio.c (Fread_file_name): Expand DIR if not absolute.
1813
1814 * insdel.c (del_range_2, replace_range): Don't write an anchor
1815 if the gap is empty.
1816
1817 * xdisp.c (try_scrolling): If scroll-up-aggressively or
1818 scroll-down-aggressively is small but positive, put point
1819 near the screen edge.
1820
f63fd14e
JB
18212004-05-22 Juanma Barranquero <lektu@terra.es>
1822
1823 * keymap.c (Fdefine_key): Doc fix.
1824
4d12067c
KS
18252004-05-22 Kim F. Storm <storm@cua.dk>
1826
1827 * alloc.c (struct backtrace): Add debug_on_exit member.
1828 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
1829 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
1830 the removed cons cells.
1831 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
1832 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
1833 any cons cells pointing to unallocated stings.
1834 Do not lisp_free any marker blocks, as there may still be pointers
1835 to them from buffer undo lists at this stage of GC.
1836
1837 * keyboard.c (struct backtrace): Add debug_on_exit member.
1838 (Fcommand_execute): Clear it.
1839
931285e2
LT
18402004-05-20 Luc Teirlinck <teirllm@auburn.edu>
1841
1842 * intervals.c (lookup_char_property): Do not prematurely return nil.
1843
669fa600
SM
18442004-05-19 Jim Blandy <jimb@redhat.com>
1845
1846 Add support for new '\_<' and '\_>' regexp operators, matching the
f63fd14e 1847 beginning and end of symbols.
4d12067c 1848
669fa600
SM
1849 * regex.c (enum syntaxcode): Add Ssymbol.
1850 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
1851 (re_opcode_t): New opcodes `symbeg' and `symend'.
1852 (print_partial_compiled_pattern): Print the new opcodes properly.
1853 (regex_compile): Parse the new operators.
ce50a847 1854 (analyse_first): Skip sym(beg|end) (they match only the empty string).
669fa600
SM
1855 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
1856 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
1857 (re_match_2_internal): Match symbeg and symend.
1858
1859 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
1860
0d8c2e5c
KS
18612004-05-19 Kim F. Storm <storm@cua.dk>
1862
1863 * .gdbinit (xsymbol): Fix last change.
1864
669fa600
SM
18652004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
1866
1867 * .gdbinit (xprintstr): New fun.
1868 (xstring, xprintsym): Use it.
1869
1870 * w32proc.c (create_child): Use INTMASK.
1871
1872 * alloc.c (Fgarbage_collect): Do all the marking before flushing
1873 unmarked elements of the undo list.
1874
9a6a4c40
DP
18752004-05-18 David Ponce <david@dponce.com>
1876
1877 * print.c (print): Reset print_depth before to call print_object.
1878
f3c4ec74
JR
18792004-05-18 Jason Rumney <jasonr@gnu.org>
1880
1881 * w32console.c: Prefix RIF functions with w32con_ to avoid
1882 namespace clash with functions in term.c and w32term.c.
1883
1884 * w32menu.c (add_menu_item, w32_menu_display_help)
1885 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
1886
0d8c2e5c 1887 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
f3c4ec74 1888
6be49c3a
EZ
18892004-05-18 Eli Zaretskii <eliz@gnu.org>
1890
4d0b9a0a
EZ
1891 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
1892
6be49c3a
EZ
1893 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
1894 with make_number.
1895 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
1896 with XINT.
1897
0bc90bba
KS
18982004-05-18 Kim F. Storm <storm@cua.dk>
1899
89d19988
KS
1900 * blockinput.h (INPUT_BLOCKED_P): New macros.
1901
1902 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
1903 (Ftop_level): Unblock input if blocked.
1904
0bc90bba
KS
1905 * buffer.h (GET_OVERLAYS_AT): New macro.
1906 * msdos.c (IT_note_mouse_highlight): Use it.
1907 * textprop.c (get_char_property_and_overlay): Use it.
1908 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
1909 * xfaces.c (face_at_buffer_position): Use it.
1910
1911 * print.c (print_object): Increase buf size.
1912
653bd0f6
JR
19132004-05-17 Jason Rumney <jasonr@gnu.org>
1914
1915 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
1916 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
1917 Lisp_Object using i member.
1918 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
1919 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
1920 consistently.
1921
1922 * w32proc.c (create_child): Use make_number instead of masking pid.
1923
1924 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
1925 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
1926 Use EQ to compare Lisp_Objects.
1927 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
1928
1929 * w32term.c (w32_num_mouse_buttons): Rename from
1930 Vw32_num_mouse_buttons and make it an int.
1931
1932 * w32.c (init_environment): Use it.
1933
1934 * w32fns.c (w32_wnd_proc): Likewise.
1935
1936 * w32proc.c (w32_pipe_read_delay): Rename from
1937 Vw32_pipe_read_delay and make it an int.
1938
1939 * w32.c (_sys_read_ahead): Use it.
1940
1941 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
1942
1943 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
1944
1945 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
1946 (key_event): Don't mix Lisp_Object and int.
1947
1948 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
1949
1950 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
1951 modifiers in language change event.
1952
54b53ba7
KS
19532004-05-17 Kim F. Storm <storm@cua.dk>
1954
1955 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
1956 Such objects may be freed markers which still exist on an undo list.
1957
6e86a75d
JB
19582004-05-16 Juanma Barranquero <lektu@terra.es>
1959
1960 * data.c (Fset_default): Make argument names match their use in
1961 docstring.
1962
fc80da24
AS
19632004-05-15 Andreas Schwab <schwab@suse.de>
1964
1965 * emacs.c (gdb_array_mark_flag): Define.
1966 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
1967
c1380aa6
EZ
19682004-05-15 Eli Zaretskii <eliz@gnu.org>
1969
1970 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
1971 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
1972 defined for the MS-DOS build.
1973
89458937
SM
19742004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
1975
1976 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
1977
08020f9a
KH
19782004-05-14 Kenichi Handa <handa@m17n.org>
1979
1980 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
1981
a433994a
ST
19822004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1983
1984 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
1985 section to frame.c section.
1986 (Fxw_display_color_p, Fx_file_dialog): Declare if
89458937 1987 HAVE_WINDOW_SYSTEM defined.
0d8c2e5c 1988
a433994a 1989 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
0d8c2e5c 1990
a433994a 1991 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
0d8c2e5c 1992
a433994a
ST
1993 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
1994 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
1995 (XTread_socket): Fix int/Lisp_Object mixup.
1996 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
0d8c2e5c 1997
a433994a
ST
1998 * macterm.h (struct frame, struct face, struct image)
1999 (display_x_get_resource, Fx_display_color_p)
89458937
SM
2000 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
2001 Add prototypes.
a433994a 2002
b51a51b9
KS
20032004-05-14 Kim F. Storm <storm@cua.dk>
2004
2005 * process.c (wait_reading_process_input): Make reentrant.
2006 Make Available and Connecting non-static. Save and restore value
2007 of waiting_for_user_input_p.
2008
2bde1dd8
KS
20092004-05-13 Kim F. Storm <storm@cua.dk>
2010
2011 * keyboard.c (mark_kboards): Don't mark x and y members
2012 that are overloaded in selection request events.
2013
a267ab4d
SM
20142004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
2015
2016 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
2017
eb15ce9e
GM
20182004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
2019
2020 * window.c (Fdisplay_buffer, Fsplit_window)
2021 (split-height-threshold): Doc fix.
2022
7fc92635
JB
20232004-05-13 Juanma Barranquero <lektu@terra.es>
2024
2025 * xfaces.c (Ftty_supports_face_attributes_p)
2026 (Finternal_copy_lisp_face): Fix typo in docstring.
2027 (Finternal_get_lisp_face_attribute): Fix docstring.
2028
1ec2a572
JD
20292004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2030
2031 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
2032
ae9292e0
ST
20332004-05-11 Steven Tamm <steventamm@mac.com>
2034
2035 * macfns.c (Fx_create_frame): Default to using tool-bar by
2036 setting tool-bar-lines to 1 in default-frame-alist.
2037
20382004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ea1aaa6f
ST
2039
2040 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
2041 (xpm_get_color_table_v, xpm_make_color_table_h)
2042 (xpm_put_color_table_h, xpm_get_color_table_h)
2043 (xpm_str_to_color_key, xpm_load_image, xpm_load)
2044 (syms_of_image): Support XPM on Carbon Emacs. Does not
a267ab4d 2045 depend on libXpm, but only supports XPM version 3 without extensions.
ea1aaa6f 2046
fe97e8df
ST
20472004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2048
a267ab4d 2049 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
fe97e8df
ST
2050 instead of FRAME_X_P
2051
b47e779e
KS
20522004-05-11 Kim F. Storm <storm@cua.dk>
2053
2054 * process.c (read_process_output): Grow decoding_buf when needed;
2055 this could cause a crash in allocate_string and compact_small_strings.
2056
cdc9b845
EZ
20572004-04-29 Jim Blandy <jimb@redhat.com>
2058
2059 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
2060 against proper opcode.
2061
aa7094ba
JB
20622004-05-10 Juanma Barranquero <lektu@terra.es>
2063
2064 * process.c (Fstart_process): Fix docstring.
2065
2066 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
2067 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
2068 (Fsplit_char, Fchar_charset): Make argument names match their use
2069 in docstring.
2070
e109331a
RS
20712004-05-10 Richard M. Stallman <rms@gnu.org>
2072
2073 * print.c (print_preprocess): Use being_printed, loop_count and
2074 halftail to detect overdeep nesting and cyclic cdr chains.
2075
9a28b921
AS
20762004-05-10 Andreas Schwab <schwab@suse.de>
2077
2078 * lisp.h: Declare Fmake_symbolic_link.
2079
2080 * fileio.c (Frename_file): Remove extra argument in call to
2081 Fmake_symbolic_link.
2082
e2c02c1a
KS
20832004-05-10 Kim F. Storm <storm@cua.dk>
2084
2085 * xdisp.c (calc_line_height_property): Use string position when
2086 object is a string.
2087
cfe9d13e
KH
20882004-05-10 Kenichi Handa <handa@m17n.org>
2089
a57e8159
KH
2090 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
2091 inhibit-modification-hooks to t temporarily before calling
2092 Ferase_buffer.
2093
2094 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
2095 inhibit-modification-hooks to t temporarily before calling
2096 Ferase_buffer.
2097
2098 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
2099 inhibit-modification-hooks to t temporarily before calling
2100 Ferase_buffer.
2101
cfe9d13e
KH
2102 * fns.c (count_combining): Delete it.
2103 (concat): Don't check combining bytes.
2104
ceb96489
JR
21052004-05-09 Jason Rumney <jasonr@gnu.org>
2106
2107 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
2108 (globals_of_w32fns): Set it.
2109
b6189c3b 21102004-05-09 Piet van Oostrum <piet@cs.uu.nl>
b1c661c7
JB
2111
2112 * data.c (Fquo): Simplify.
2113
28712a21
JB
21142004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
2115
2116 * data.c (Fquo): If any argument is float, do the computation in
2117 floating point.
2118
0f0af7a8
JB
21192004-05-08 Juanma Barranquero <lektu@terra.es>
2120
88214ef6
JB
2121 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
2122 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
2123 Fix spelling of Emacs on docstring.
2124 (Fset_process_coding_system, Fprocess_coding_system)
2125 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
2126 Make argument names match their use in docstring.
2127 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
2128 Fix docstring.
2129
0f0af7a8
JB
2130 * editfns.c (Finsert_buffer_substring): Make argument names match their
2131 use in docstring.
2132
2133 * syntax.c (Fmodify_syntax_entry): Fix docstring.
2134
2a316a84
ST
21352004-05-07 Steven Tamm <steventamm@mac.com>
2136
2137 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
2138 around call to ReceiveEvent to avoid certain crashes.
2139
21402004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
0d8c2e5c 2141
2a316a84
ST
2142 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
2143 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
2144 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
2145 Save/restore the current graphics port and device handle when
2146 drawing into an offscreen graphics world.
2147
2148 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
2149 (gif_load): Likewise.
2150
ab80314b
JB
21512004-05-07 Juanma Barranquero <lektu@terra.es>
2152
2153 * window.c (Fset_window_buffer): Fix docstring.
2154
70646bb5
TTN
21552004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
2156
2157 * emacs.c (main) [VMS]: Fix var ref.
2158
b6189c3b 21592004-05-06 Romain Francoise <romain@orebokech.com>
b03a4fdd
JB
2160
2161 * data.c (Fsetq_default): Fix docstring.
2162
279d3293
JR
21632004-05-06 Jason Rumney <jasonr@gnu.org>
2164
2165 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
2166 to avoid name clash.
2167
f72b5416
JD
21682004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2169
2170 * fileio.c (barf_or_query_if_file_exists): Use lstat.
2171 (Frename_file): Handle renaming of symlinks across file systems.
440c7d00 2172 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
f72b5416 2173
6ab66799
KS
21742004-05-04 Kim F. Storm <storm@cua.dk>
2175
2176 * xdisp.c (Qtotal): New var.
2177 (syms_of_xdisp): Intern and staticpro it.
2178 (calc_line_height_property): New arg total. Set it if
2179 line-spacing property has format (total . VALUE).
2180 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
2181 Handle total line-spacing property.
2182
ab2d724b
JD
21832004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2184
2185 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
2186 "under" scroll bar when size/position changes.
2187
238add5e
JR
21882004-05-03 Jason Rumney <jasonr@gnu.org>
2189
2190 * makefile.nt: Remove.
2191
1644f4e4
EZ
21922004-05-02 Eli Zaretskii <eliz@gnu.org>
2193
a267ab4d
SM
2194 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
2195 Avoid compiler warnings.
05fdbeb8 2196
1644f4e4
EZ
2197 * Makefile.in (region-cache.o): Depend on config.h.
2198
b6189c3b 21992004-05-02 Romain Francoise <romain@orebokech.com>
6cbc951e
SM
2200
2201 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
2202 with continuation lines, too.
2203
2b98b088
TTN
22042004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
2205
2206 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
2207
d9bf7950
SM
22082004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
2209
2210 * xdisp.c (calc_line_height_property): YAILOM (yet another
2211 int/Lisp_Object mixup).
2212
affa509c
EZ
22132004-05-01 Eli Zaretskii <eliz@gnu.org>
2214
2215 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
2216 undo bad effect of pack(4) in some versions of system headers.
2217
07c07cfe
JR
22182004-05-01 Jason Rumney <jasonr@gnu.org>
2219
2220 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
2221
e71caa4e
KS
22222004-04-30 Kim F. Storm <storm@cua.dk>
2223
2224 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
b2b55d03 2225 (syms_of_buffer) <cursor-type>: Doc fix.
e71caa4e
KS
2226
2227 * dispextern.h (struct it): Remove member use_default_face.
2228 Add members override_ascent, override_descent, override_boff.
2229
2230 * xdisp.c (init_iterator): Handle line-spacing float value.
2231 Initialize override_ascent member.
2232 (append_space_for_newline): Reset override_ascent.
2233 Remove use_default_face.
2234 (calc_line_height_property): New function to calculate value of
2235 line-height and line-spacing properties. Look at overlays, too.
2236 Set override_ascent, override_descent, override_boff members when
2237 using another face than the current face. Float values are now
2238 relative to the frame default font, by default; accept a cons
2239 of ratio and face name to specify value relative to a specific face.
2240 (x_produce_glyphs): Use calc_line_height_property.
2241 Use override_ascent etc. when set to handle different face heights.
2242 A negative line-spacing property value is interpreted as a total
2243 line height, rather than inter-line spacing.
2244 (note_mouse_highlight): Allocate room for 40 overlays initially.
2245
0fddae66
SM
22462004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
2247
2248 * data.c (Fsubr_name): New fun.
2249 (syms_of_data): Defsubr it.
2250
712d23dc
KS
22512004-04-29 Kim F. Storm <storm@cua.dk>
2252
2253 * xdisp.c (null_glyph_slice): New var.
2254 (append_glyph, append_composite_glyph, append_stretch_glyph):
2255 Use it to initialize glyph slice.
2256
033ad8c6
SM
22572004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
2258
2259 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
2260 (on_hot_spot_p): Make sure we always return a value.
2261 (Flookup_image_map): Remove unused var ix and iy.
2262 (note_mode_line_or_margin_highlight): Remove unused var `image'.
2263
93397360
EZ
22642004-04-27 Eli Zaretskii <eliz@gnu.org>
2265
2266 * msdos.c (init_environment): If one of the TMP... environment
2267 variables is set to a drive letter without a trailing slash,
2268 append a slash.
2269
0c54865e
EZ
22702004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
2271
2272 * editfns.c (lisp_time_argument): Provide externally.
2273
2274 * fileio.c (Fset_file_times): New function.
2275 (syms_of_fileio): Intern and staticpro it.
2276
d3b111bd
KS
22772004-04-27 Kim F. Storm <storm@cua.dk>
2278
07dc1231
KS
2279 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
2280 header line strings.
2281
360fe9d2
KS
2282 * dispextern.h (struct it): New member use_default_face.
2283
d3b111bd
KS
2284 * xdisp.c (Qline_height): New variable.
2285 (syms_of_xdisp): Intern and staticpro it.
2286 (append_space_for_newline): Partially undo 2004-04-25 change;
2287 add default_face_p arg, and restore callers.
2288 Clear it->use_default_face after use.
2289 (x_produce_glyphs): Set default font for ascii char if
2290 it->use_default_font is set. Change line-spacing property to set
2291 just extra line spacing. Handle new line-height property.
2292
0448588b
AS
22932004-04-26 Andreas Schwab <schwab@suse.de>
2294
2295 * print.c (print_object): Print non-ascii characters in bool
2296 vector representation as octal escapes.
2297
2298 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
2299 * print.c (print_object): Use it instead of BITS_PER_CHAR for
2300 bool vectors.
2301 * lread.c (read1): Likewise.
2302 * alloc.c (Fmake_bool_vector): Likewise.
2303 * data.c (Faref, Faset): Likewise.
2304 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
2305 (mapcar1): Likewise.
d3b111bd 2306
536d6baa
ST
23072004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
2308
2309 * lread.c (init_lread): Fixing typo HAVE_CARBON test logic
2310
ae11577a
MB
23112004-04-26 Miles Bader <miles@gnu.org>
2312
2313 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
2314
e198ba87
JB
23152004-04-26 Juanma Barranquero <lektu@terra.es>
2316
2317 * buffer.c (Fpop_to_buffer): Fix docstring.
2318
f3d5f92d 23192004-04-26 Steven Tamm <steventamm@mac.com>
e198ba87 2320
f3d5f92d
ST
2321 * lread.c (init_lread): Don't display missing lisp directory
2322 warnings with Carbon Emacs because self-contained bundled Emacs
e198ba87 2323 may be built without correct installation path.
f3d5f92d 2324
03e35edc
KS
23252004-04-25 Kim F. Storm <storm@cua.dk>
2326
9ff3aa31
KS
2327 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
2328
2329 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
2330
03e35edc
KS
2331 * xdisp.c (append_space_for_newline): Rename from append_space.
2332 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
2333 (x_produce_glyphs): Handle line-spacing property on newline char.
2334 If value is t, adjust ascent and descent to fit current row height.
2335 If value is an integer or float, set extra_line_spacing to integer
2336 value, or to float value x current line height.
2337
f24814e0
KH
23382004-04-23 Kenichi Handa <handa@m17n.org>
2339
2340 * fontset.c (Finternal_char_font): If POSITION is nil, return
2341 font for displaying CH with the default face.
2342
d814862a
JB
23432004-04-23 Juanma Barranquero <lektu@terra.es>
2344
2345 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
2346
063a45c5
SM
23472004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
2348
2349 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
2350 Don't make assumptions about the relative place of i and val.
2351 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
2352
ae7ab2d3
KS
23532004-04-21 Kim F. Storm <storm@cua.dk>
2354
2355 * dispextern.h (struct glyph_slice): New struct.
2356 (struct glyph): New member slice.
2357 (GLYPH_SLICE_EQUAL_P): New macro.
2358 (GLYPH_EQUAL_P): Use it.
2359 (struct glyph_string): New member slice.
2360 (struct it_slice): New struct.
2361 (struct it): New member slice, add member to stack too.
2362 New member constrain_row_ascent_descent_p.
2363 (image_ascent): Add prototype.
2364
2365 * dispnew.c (buffer_posn_from_coords): Return full image width
2366 and height even for image slices (posn is relative to full image).
2367 (marginal_area_string): Adjust x0,y0 for image slice.
2368
2369 * image.c (image_ascent): Add slice arg; calculate ascent for
2370 image slice (or full image).
2371
2372 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
2373 (syms_of_keyboard): Defsubr them.
2374
2375 * lisp.h (pos_visible_p): Fix prototype.
2376
c62aec78 2377 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
ae7ab2d3
KS
2378 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
2379 (x_draw_image_foreground, x_draw_image_relief)
2380 (x_draw_image_foreground_1, x_draw_image_glyph_string):
2381 Draw sliced images.
2382
2383 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
2384 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
2385 (x_draw_image_foreground, x_draw_image_relief)
2386 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
2387 Draw sliced images.
2388
2389 * w32term.h (image_ascent): Remove prototype.
2390
2391 * window.c (Fpos_visible_in_window_p): Return pixel position if
2392 PARTIALLY arg is non-nil. Simplify. Doc fix.
2393 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
2394 to return/set vscroll in pixels.
2395
2396 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
2397
2398 * xdisp.c (Qslice): New variable.
2399 (syms_of_xdisp): Intern and staticpro it.
2400 (pos_visible_p): Return pixel position in new x and y args.
2401 (init_iterator): Reset it->slice info.
2402 (handle_display_prop): Parse (slice ...) property.
2403 (push_it, pop_it): Save/restore slice info.
2404 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
2405 force repositioning of tall row if window is vscrolled, as that
2406 would reset vscroll.
2407 (append_space): Set it->constrain_row_ascent_descent_p to avoid
2408 increasing row height if row is non-empty.
2409 (fill_image_glyph_string): Copy slice info.
2410 (take_vertical_position_into_account): Simplify.
2411 (produce_image_glyph): Handle iterator slice info, setup glyph
2412 slice info. Do not force minimum line height.
2413 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
2414 do not increase height (ascent/descent) of non-empty row when
2415 adding normal character glyph; instead reduce glyph ascent/descent
2416 appropriately; if row is higher than current glyph, adjust glyph
2417 descent/ascent to reposition glyph within the existing row.
2418 Likewise, when char is newline, only set ascent/descent if row is
2419 currently empty.
2420 (note_mouse_highlight): Handle hotspots with sliced image.
2421
2422 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
2423 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
2424 (x_draw_image_foreground, x_draw_image_relief)
2425 (x_draw_image_foreground_1, x_draw_image_glyph_string):
2426 Draw sliced images.
2427
2428 * xterm.h (image_ascent): Remove prototype.
2429
d58f8753
SM
24302004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
2431
2432 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
2433
4ce2719d
JPW
24342004-04-20 John Paul Wallington <jpw@gnu.org>
2435
2436 * fns.c (Fassoc, Feql): Fix indentation.
2437
d58f8753 2438 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
4ce2719d 2439
95f8c3b9
JPW
24402004-04-19 John Paul Wallington <jpw@gnu.org>
2441
2442 * fns.c (Feql): New function.
d58f8753 2443 (syms_of_fns): Defsubr it.
95f8c3b9 2444
b7e85537
JR
24452004-04-18 Jason Rumney <jasonr@gnu.org>
2446
2447 * w32select.c (Fw32_set_clipboard_data): Get sequence number
2448 after closing the clipboard.
2449
5a72efd4
LT
24502004-04-16 Luc Teirlinck <teirllm@auburn.edu>
2451
2452 * buffer.c (Fbuffer_base_buffer): Doc fix.
2453
20dc8583
KS
24542004-04-17 Kim F. Storm <storm@cua.dk>
2455
60962ec4
KS
2456 * keymap.c (Fkey_description): Add optional PREFIX arg.
2457 Combine prefix with KEYS to make up the full key sequence to describe.
2458 Correlate meta_prefix_char and following (simple) key to describe
2459 as meta modifier. All callers changed.
2460 (describe_map): Rename arg `keys' to `prefix'. Remove local
2461 `elt_prefix' var. Use Fkey_description with prefix instead of
2462 elt_prefix combined with Fsingle_key_description.
2463 (describe_vector): Declare static. Replace arg `elt_prefix' with
2464 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
2465 if !KEYMAP_P. Use Fkey_description with prefix instead of
2466 Fsingle_key_description.
2467
2468 * keymap.h (Fkey_description): Fix prototype.
2469 (describe_vector): Remove prototype.
2470
409368b9
KS
2471 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
2472
20dc8583
KS
2473 * image.c (PNG_BG_COLOR_SHIFT): Remove.
2474 (png_load): Fix calculation of transparent background color on X
2475 and W32 platforms.
2476
75c5501b
JB
24772004-04-16 Juanma Barranquero <lektu@terra.es>
2478
2479 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
2480 not too large before computing how much to scroll.
2481
da879ae8
SM
24822004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
2483
2484 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
2485
d01ca4a8
LT
24862004-04-14 Luc Teirlinck <teirllm@auburn.edu>
2487
2488 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
2489 Add hyperlink to Elisp manual to the docstring.
2490
572943b3
SM
24912004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
2492
2493 * callint.c (fix_command): Use XDCR.
2494
5e30a0fb
NR
24952004-04-14 Nick Roberts <nick@nick.uklinux.net>
2496
2497 * window.c (Fget_lru_window): Doc fix.
2498
a27ddfaf
KS
24992004-04-14 Kim F. Storm <storm@cua.dk>
2500
2501 * editfns.c (Fformat): Fix allocation size of precision array.
2502
2503 * dispnew.c (update_window): Only set changed_p if
2504 scrolling_window actually did scroll.
2505 (scrolling_window): Only return 1 if we actually did scroll.
2506
2507 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
2508 height to glyph height when cursor row is not fully visible.
2509 (make_cursor_line_fully_visible): Add FORCE_P arg to return
2510 failure in case row is higher than window. Callers changed.
2511 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
2512 Try to scroll partially visible, higher-than-window cursor row.
2513 (redisplay_window): Always try to scroll partially visible,
2514 higher-than-window cursor row - both initially and again with
2515 centering_position = 0.
2516 Clear desired matrix before retrying with centering_position = 0.
2517
da879ae8
SM
25182004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
2519
2520 * syntax.c (scan_lists): Simplify backward string scan.
2521 Fix off-by-one boundary check for string and comment fences.
2522
5fc16e8e
SM
25232004-04-13 Joe Buehler <jbuehler@hekimian.com>
2524
2525 * sheap.c, unexcw.c: New files.
2526
c9aac8e6
LT
25272004-04-12 Luc Teirlinck <teirllm@auburn.edu>
2528
2529 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
2530 base buffer has been killed. Correct the error message if the
2531 base buffer does not exist.
2532
1e88a355
SM
25332004-04-12 Joe Buehler <jbuehler@hekimian.com>
2534
2535 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
2536 Cygwin itself. Add support for Xaw3d scrollbars.
2537
2538 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
2539
2540 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
2541
2542 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
2543 before Cygwin unexec.
2544
2545 * Makefile.in: Link changes for Cygwin unexec() support.
2546
8dbff9a0
AS
25472004-04-12 Andreas Schwab <schwab@suse.de>
2548
2549 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
2550
54dffe35
LT
25512004-04-11 Luc Teirlinck <teirllm@auburn.edu>
2552
2553 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
2554 IGNORE argument equals NAME. Doc fix.
2555
99a72bdf
MY
25562004-04-11 Masatake YAMATO <jet@gyve.org>
2557
1e88a355 2558 * buffer.c (fix_start_end_in_overlays): Make overlays
99a72bdf
MY
2559 empty if they are backwards.
2560
40899d7b
SM
25612004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
2562
2563 * xfaces.c (face_color_supported_p): Fix compilation without X11.
2564
f8f853de
SM
25652004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
2566
2567 * doc.c (Fsnarf_documentation): Ignore new file name entries.
2568
c953fe1b
KS
25692004-04-06 Kim F. Storm <storm@cua.dk>
2570
661e85c1
KS
2571 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
2572 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
2573
2574 * w32term.c (w32_read_socket): Set mouse_face_hidden after
2575 clearing highlight.
2576
2577 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
2578
2579 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
2580 clearing highlight.
2581
c953fe1b
KS
2582 * indent.c (vmotion): Do not reserve one column for continuation
2583 marks on window frames.
2584
c1994268
EZ
25852004-04-04 Eli Zaretskii <eliz@gnu.org>
2586
2587 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
2588 from GCC.
2589
9f691b0d
SM
25902004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
2591
2592 * .gdbinit-union: Remove.
2593
2594 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
2595 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
2596 ($nonvalbits): Remove.
2597 ($valmask): Set it by calling xreload to avoid redundancy.
2598
2599 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
2600 (gdb_emacs_intbits): Remove.
2601
7a8560d7
JD
26022004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2603
9f691b0d 2604 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
7a8560d7 2605
3c8111fc
KH
26062004-03-30 Kenichi Handa <handa@m17n.org>
2607
2608 * editfns.c (Fformat): Fix initialization of the array info.
2609
48a0bce4
KS
26102004-03-30 Kim F. Storm <storm@cua.dk>
2611
2612 * xterm.c (x_mouse_click_focus_ignore_position): New var.
2613 (syms_of_xterm): DEFVAR_BOOL it.
2614 (ignore_next_mouse_click_timeout): New var.
2615 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
2616 Use it to filter mouse clicks following focus event.
2617
1cd0066c
KS
26182004-03-29 David Ponce <david@dponce.com>
2619
2620 * callint.c (Fcall_interactively): Fix last change.
2621
adb3b353
SM
26222004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
2623
2624 * eval.c (Fcommandp): Simplify.
2625
2626 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
2627 Extend to handle all kinds of functions.
2628
2629 * lisp.h (Finteractive_form): Declare.
2630
2631 * callint.c (Fcall_interactively): Use it.
2632
6fc4c9c9
KS
26332004-03-26 Kim F. Storm <storm@cua.dk>
2634
2635 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
2636 to catch errors in calc_pixel_width_or_height during redisplay.
2637
abdb9b83
MY
26382004-03-26 Masatake YAMATO <jet@gyve.org>
2639
b17856dd 2640 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
abdb9b83 2641
b17856dd 2642 * lisp.h (fix_start_end_in_overlays): Likewise.
abdb9b83 2643
b17856dd 2644 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
abdb9b83 2645
b17856dd 2646 * editfns.c (Ftranspose_regions): Likewise.
abdb9b83 2647
e8a84b6c
JD
26482004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2649
b17856dd 2650 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
e8a84b6c 2651
36a3fd05
RS
26522004-03-19 Richard M. Stallman <rms@gnu.org>
2653
2654 * s/sol2-6.h: Delete previous change.
2655
ab24c127
KS
26562004-03-19 Kim F. Storm <storm@cua.dk>
2657
2658 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
2659 to_charpos corresponds to newline in right fringe. Use local
2660 BUFFER_POS_REACHED_P macro.
2661
992126de
JD
26622004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2663
2664 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
2665 to compile on non-window system.
2666
45dbfc84
KS
26672004-03-19 Kim F. Storm <storm@cua.dk>
2668
2669 * dispextern.h (calc_pixel_width_or_height): Add prototype.
2670
2671 * image.c (Qcenter): Move to xdisp.c.
2672
2673 * xdisp.c (Qcenter): Declare here.
adb3b353 2674 (syms_of_xdisp): Intern and staticpro it.
45dbfc84
KS
2675 (handle_single_display_prop): Allow space display property on all
2676 platforms.
2677 (display_mode_line): Set mode_line_p before displaying line.
2678 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
2679 handling. Remove complex cases for fringes and scroll-bars.
2680 Add left, right, and center alignment positions. Add text (area)
2681 width/height. Return width or height for image specs.
2682 (produce_stretch_glyph): Improve handling of :align-to. Is now
2683 relative to left of text area by default, but other base offsets
2684 can be specified -- also for text lines.
2685
2686 * term.c (produce_glyphs): Handle IT_STRETCH.
2687 (produce_stretch_glyph): New function to handle space width and
2688 align-to display properties on non-window systems.
2689
37264101
SM
26902004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
2691
2692 * fileio.c (Fread_file_name): Set completion-ignore-case for
2693 case-insensitive systems.
2694
73bc43da
MY
26952004-03-14 Masatake YAMATO <jet@gyve.org>
2696
2697 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
2698 when keymap and cursor are setup.
2699
9062aa89
ST
27002004-03-14 Steven Tamm <steventamm@mac.com>
2701
b17856dd 2702 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
9062aa89 2703
e4b1b5ab
KS
27042004-03-14 Kim F. Storm <storm@cua.dk>
2705
2706 * dispextern.h (x_find_image_file): Add prototype.
2707
2708 * image.c (x_find_image_file): Make extern.
2709
2710 * xfns.c (x_find_image_file): Remove prototype.
2711
a6eeaa81 27122004-03-13 Eli Zaretskii <eliz@gnu.org>
5109b06a 2713
37264101 2714 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
5109b06a 2715
37264101 2716 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
5109b06a 2717
e69cfac2
RS
27182004-03-12 Richard M. Stallman <rms@gnu.org>
2719
2720 * fns.c (internal_equal): New arg PROPS controls comparing
2721 text properties. All callers changed.
2722 (Fequal_including_properties): New function.
2723 (syms_of_fns): defsubr it.
2724
45034953
KS
27252004-03-12 Kim F. Storm <storm@cua.dk>
2726
2727 Fix image support on MAC. From YAMAMOTO Mitsuharu.
37264101 2728
45034953
KS
2729 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
2730 (image_background, image_background_transparent): Fix prototypes.
2731
37264101 2732 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
45034953
KS
2733
2734 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
2735 (x_query_font, x_find_ccl_program, x_set_window_size)
2736 (x_make_frame_visible, mac_initialize, XCreatePixmap)
2737 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
2738 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
2739
2740 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
2741 (x_query_font, x_find_ccl_program, x_set_window_size)
2742 (x_make_frame_visible, mac_initialize, XCreatePixmap)
2743 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
2744 (mac_draw_line_to_pixmap): Add prototypes.
2745
27462004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2747
2748 * macterm.c (XTread_socket): Fix mouse click on tool bar.
2749
a12d3d87
KS
27502004-03-11 Kim F. Storm <storm@cua.dk>
2751
d3ab1cf1
KS
2752 * dispextern.h: Move image related prototypes from xfns.c section
2753 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
2754 HAVE_X_WINDOWS.
37264101 2755
37de9f51 2756 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
37264101 2757 Move gtkutil.o to new GTK_OBJ list.
a12d3d87
KS
2758 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
2759 (GTK_OBJ) [USE_GTK]: New declaration.
2760 (obj): Add $(GTK_OBJ) to list.
2761
5243c06a 27622004-03-11 Steven Tamm <steventamm@mac.com>
5109b06a 2763
5243c06a
ST
2764 * image.c [MAC_OSX]: Include sys/stat.h
2765
2766 * macfns.c (syms_of_macfns): Remove definitions of things now
2767 defined in image.c
2768
c0f97789
KS
27692004-03-11 Kim F. Storm <storm@cua.dk>
2770
2771 The following changes consolidates the identical/similar image
2772 support code previously found in xfns.c, w32fns.c, and macfns.c
2773 into a new file image.c.
2774
2775 * makefile.w32-in (OBJ1): Add image.o.
2776 ($(BLD)/image.$(O)): Add dependencies.
2777
2778 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
2779 (image.o): Add dependencies.
37264101 2780
c0f97789
KS
2781 * image.c: New file with consolidated image support code.
2782 (COLOR_TABLE_SUPPORT): New define to control whether
2783 color table support is available (X only).
2784 (Bitmap_Record): Common name for x_bitmap_record,
2785 w32_bitmap_record, and mac_bitmap_record.
2786 (XImagePtr): Common name for pointer to XImage or equivalent.
2787 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
2788 to XImagePtr on X+MAC, and to HDC on W32.
2789 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
2790 (NO_PIXMAP): Common name for "None" or equivalent.
2791 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
2792 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
2793 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
37264101
SM
2794 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
2795 Define with suitable equivalents on W32 and MAC for code sharing.
c0f97789
KS
2796 (XDrawLine): Define on MAC for code sharing.
2797 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
2798 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
2799 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
2800 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
2801 (x_reference_bitmap, x_create_bitmap_from_data)
2802 (x_create_bitmap_from_file, x_destroy_bitmap)
2803 (x_destroy_all_bitmaps, x_create_bitmap_mask)
2804 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
2805 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
2806 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
2807 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
2808 (define_image_type, lookup_image_type, valid_image_p)
2809 (image_error, enum image_value_type, struct image_keyword)
2810 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
2811 (make_image, free_image, prepare_image_for_display, image_ascent)
2812 (four_corners_best, image_background, image_background_transparent)
2813 (x_clear_image_1, x_clear_image, x_alloc_image_color)
2814 (make_image_cache, free_image_cache, clear_image_cache)
2815 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
2816 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
2817 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
2818 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
2819 (init_image_func_pointer, image_load_quartz2d)
2820 (struct ct_color, init_color_table, free_color_table)
2821 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
2822 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
2823 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
2824 (x_disable_image, x_build_heuristic_mask)
2825 (XBM support, XPM support, PBM support, PNG support, JPEG support)
2826 (TIFF support, GIF support, Ghostscript support): Consolidate image
2827 code from xfns.c, w32fns.c, and macfns.c.
2828 (syms_of_image): Consolidate image related symbol setup here.
2829 (init_image): Consolidate image related initializations here.
37264101 2830
c0f97789
KS
2831 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
2832 and init_image. Remove call to init_xfns.
2833
37264101
SM
2834 * macterm.h (struct mac_bitmap_record): Add file member.
2835 Not currently used, but simplifies code sharing.
c0f97789
KS
2836
2837 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
2838 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
2839 (x_reference_bitmap, x_create_bitmap_from_data)
2840 (x_create_bitmap_from_file, x_destroy_bitmap)
2841 (x_destroy_all_bitmaps, x_create_bitmap_mask)
2842 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
2843 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
2844 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
2845 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
2846 (define_image_type, lookup_image_type, valid_image_p)
2847 (image_error, enum image_value_type, struct image_keyword)
2848 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
2849 (make_image, free_image, prepare_image_for_display, image_ascent)
2850 (four_corners_best, image_background, image_background_transparent)
2851 (x_clear_image_1, x_clear_image, x_alloc_image_color)
2852 (make_image_cache, free_image_cache, clear_image_cache)
2853 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
2854 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
2855 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
2856 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
2857 (init_image_func_pointer, image_load_quartz2d)
2858 (struct ct_color, init_color_table, free_color_table)
2859 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
2860 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
2861 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
2862 (x_disable_image, x_build_heuristic_mask)
2863 (XBM support, XPM support, PBM support, PNG support, JPEG support)
2864 (TIFF support, GIF support, Ghostscript support): Merge with image
2865 code from xfns.c and macfns.c into image.c.
2866 (syms_of_xfns): Move image related symbols to image.c.
2867 (init_external_image_libraries, init_xfns): Remove; initialization
2868 moved to init_image in image.c.
2869
2870 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
2871 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
2872 (x_reference_bitmap, x_create_bitmap_from_data)
2873 (x_create_bitmap_from_file, x_destroy_bitmap)
2874 (x_destroy_all_bitmaps, x_create_bitmap_mask)
2875 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
2876 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
2877 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
2878 (define_image_type, lookup_image_type, valid_image_p)
2879 (image_error, enum image_value_type, struct image_keyword)
2880 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
2881 (make_image, free_image, prepare_image_for_display, image_ascent)
2882 (four_corners_best, image_background, image_background_transparent)
2883 (x_clear_image_1, x_clear_image, x_alloc_image_color)
2884 (make_image_cache, free_image_cache, clear_image_cache)
2885 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
2886 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
2887 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
2888 (struct ct_color, init_color_table, free_color_table)
2889 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
2890 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
2891 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
2892 (x_disable_image, x_build_heuristic_mask)
2893 (XBM support, XPM support, PBM support, PNG support, JPEG support)
2894 (TIFF support, GIF support, Ghostscript support): Merge with image
2895 code from xfns.c and macfns.c into image.c.
2896 (syms_of_xfns): Move image related symbols to image.c.
2897 (init_external_image_libraries, init_xfns): Remove; initialization
2898 moved to init_image in image.c.
2899
2900 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
2901 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
2902 (x_reference_bitmap, x_create_bitmap_from_data)
2903 (x_create_bitmap_from_file, x_destroy_bitmap)
2904 (x_destroy_all_bitmaps, x_create_bitmap_mask)
2905 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
2906 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
2907 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
2908 (define_image_type, lookup_image_type, valid_image_p)
2909 (image_error, enum image_value_type, struct image_keyword)
2910 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
2911 (make_image, free_image, prepare_image_for_display, image_ascent)
2912 (four_corners_best, image_background, image_background_transparent)
2913 (x_clear_image_1, x_clear_image, x_alloc_image_color)
2914 (make_image_cache, free_image_cache, clear_image_cache)
2915 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
2916 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
2917 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
2918 (struct ct_color, init_color_table, free_color_table)
2919 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
2920 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
2921 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
2922 (x_disable_image, x_build_heuristic_mask)
2923 (XBM support, XPM support, PBM support, PNG support, JPEG support)
2924 (TIFF support, GIF support, Ghostscript support): Merge with
2925 w32fns.c and macfns.c image code into image.c.
2926 (syms_of_xfns): Move image related symbols to image.c.
2927 (init_xfns): Remove; initialization moved to init_image in image.c.
2928
2929 * lisp.h (syms_of_image, init_image): Add protoypes.
2930 (init_xfns): Remove prototype.
2931
2932 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
2933 (x_reference_bitmap, x_create_bitmap_from_data)
2934 (x_create_bitmap_from_file, x_destroy_bitmap)
2935 (x_create_bitmap_mask): Move prototypes from dispextern.h.
2936 (gamma_correct) [MAC_OS]: Add prototype.
2937
2938 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
2939 (x_reference_bitmap, x_create_bitmap_from_data)
2940 (x_create_bitmap_from_file, x_destroy_bitmap)
2941 (x_create_bitmap_mask): Move prototypes to dispextern.h.
2942
6eced09c
KH
29432004-03-09 Kenichi Handa <handa@etlken2>
2944
2945 * coding.c (decode_coding_emacs_mule): Handle insufficent source
2946 correctly.
2947
9a7e95f3
RS
29482004-03-04 Richard M. Stallman <rms@gnu.org>
2949
04a6e76b
RS
2950 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
2951
9a7e95f3
RS
2952 * window.c (Fdisplay_buffer): Doc fix.
2953
2954 * buffer.c (Fpop_to_buffer): Doc fix.
2955
6c2488df
KS
29562004-03-03 Kim F. Storm <storm@cua.dk>
2957
2958 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
2959
d8d95bc7
SM
29602004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
2961
2962 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
2963
357589bf
RS
29642004-03-02 Richard M. Stallman <rms@gnu.org>
2965
2966 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
2967
409949b5
KH
29682004-03-02 Kenichi Handa <handa@m17n.org>
2969
2970 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
2971
d24bc50f
KS
29722004-03-02 Kim F. Storm <storm@cua.dk>
2973
2974 * window.h (struct window): New member overlay_arrow_bitmap.
2975
2976 * window.c (make_window): Initialize overlay_arrow_bitmap.
2977
2978 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
2979 implement and integrate multiple overlay arrows with redisplay.
2980 (syms_of_xdisp): DEFVAR_LISP and initialize it.
2981 (last_arrow_position, last_arrow_string): Replace by properties.
2982 (Qlast_arrow_position, Qlast_arrow_string)
2983 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
2984 (syms_of_xdisp): Intern and staticpro them.
2985 (overlay_arrow_string_or_property, update_overlay_arrows)
2986 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
2987 (overlay_arrow_at_row): New functions for multiple overlay arrows.
2988 (redisplay_internal): Use them instead of directly accessing
2989 Voverlay_arrow_position etc. for multiple overlay arrows.
2990 (mark_window_display_accurate): Use update_overlay_arrows.
2991 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
2992 (try_window_id): Use overlay_arrows_changed_p.
2993 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
2994 (display_line): Use overlay_arrow_at_row to check multiple
2995 overlay arrows, and get relevant overlay-arrow-string and
d8d95bc7 2996 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
d24bc50f
KS
2997 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
2998 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
2999
3000 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
3001 (update_window_fringes): Remove unused code.
3002
c1464661
JR
30032004-03-01 Jason Rumney <jasonr@gnu.org>
3004
3005 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
3006
a64387ee
JB
30072004-03-01 Juanma Barranquero <lektu@terra.es>
3008
3009 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
3010
3011 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
3012
334faa08
JD
30132004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3014
3015 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
3016 how many colors can be displayed.
3017
bb62616f
KH
30182004-03-01 Kenichi Handa <handa@m17n.org>
3019
3020 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
3021 correctly.
3022
0fd16104
KS
30232004-02-28 Kim F. Storm <storm@cua.dk>
3024
3025 * dispnew.c (update_window): Update header line also if there are
3026 no other changes in window (move code after set_cursor label).
3027
3028 * lisp.h (mark_window_display_accurate): Remove prototype.
3029
3030 * window.c (window_loop, Fforce_window_update): Force mode line
3031 updates by setting prevent_redisplay_optimizations_p and
3032 update_mode_lines.
3033
b59dd9c8
JD
30342004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3035
d8d95bc7 3036 * xfns.c (x_window): Fix indentation.
b59dd9c8
JD
3037
3038 * xterm.c (x_calc_absolute_position): Call x_real_positions
3039 to get WM window sizes and use those to calculate position.
d8d95bc7 3040 (x_set_offset): Remove code commented out.
b59dd9c8 3041
a874691c
MB
30422004-02-28 Miles Bader <miles@gnu.org>
3043
3044 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
3045
3e0c6482
KS
30462004-02-28 Kim F. Storm <storm@cua.dk>
3047
3048 * keyboard.c (kbd_buffer_store_event_hold): New function to store
3049 an event into kbd fifo, but with special handling of quit event;
3050 a quit event is saved for later, and further events are discarded
3051 until the saved quit event has been processed.
3052 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
3053 (gen_help_event): Store help event in kbd fifo.
3054 (NREAD_INPUT_EVENTS): Remove.
3055 (read_avail_input): Adapt to new read_socket_hook interface.
3056 Remove allocation and initialization of local input_event buffer,
3057 as read_socket_hook stores events directly in fifo. Allocate and
3058 initialize local hold_quit event to handle postponed quit event
3059 (and store it if set by kbd_buffer_store_event_hold).
3060
3061 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
3062 (gen_help_event): Fix prototype.
3063
a64387ee 3064 * macterm.c (XTread_socket): Remove bufp_r and
3e0c6482 3065 numcharsp args. Add hold_quit arg.
f63fd14e 3066 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
3067 directly in fifo using kbd_buffer_store_event_hold.
3068
3069 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
3070 (read_input_waiting): Adapt to new read_socket_hook interface.
3071 Remove allocation and initialization of local input_event buffer,
3072 as read_socket_hook stores events directly in fifo. Allocate and
3073 initialize local hold_quit event to handle postponed quit event
3074 (and store it if set by kbd_buffer_store_event_hold).
3075
a64387ee 3076 * term.c (read_socket_hook): Fix arg list.
3e0c6482
KS
3077
3078 * termhooks.h (read_socket_hook): Fix prototype.
3079
3080 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
3081 numcharsp args. Add hold_quit arg.
f63fd14e 3082 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
3083 directly in fifo using kbd_buffer_store_event_hold.
3084
3085 * w32inevt.h (w32_console_mouse_position): Fix prototype.
3086
3087 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
f63fd14e
JB
3088 Add hold_quit arg. Rework to use just one, local, inev
3089 input_event. Store inev directly in fifo using
3e0c6482
KS
3090 kbd_buffer_store_event_hold. Update count in one place.
3091 Postpone call to gen_help_event until inev is stored; use new
3092 local do_help for this.
3093 Remove local emacs_event in handing of ButtonPress event; just use
3094 inev instead (so no reason to copy it later).
3095
3096 * xsmfns.c (x_session_check_input): Remove numchars arg.
3097
d8d95bc7
SM
3098 * xterm.c (x_focus_changed, x_detect_focus_change):
3099 Remove numchars arg. Always store event into bufp arg.
3100 Return nothing. Callers changed accordingly.
3e0c6482
KS
3101 (glyph_rect): Simplify.
3102 (STORE_KEYSYM_FOR_DEBUG): New macro.
3103 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
3104 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
3105 (current_hold_quit) [USE_GTK]: Add.
3106 (event_handler_gdk): Adapt to new handle_one_xevent.
3107 (handle_one_xevent): Remove bufp_r and numcharsp args.
f63fd14e
JB
3108 Add hold_quit arg. Rework to use just one, local, inev
3109 input_event. Store inev directly in fifo using
3e0c6482
KS
3110 kbd_buffer_store_event_hold. Update count in one place.
3111 Postpone call to gen_help_event until inev is stored; use new
3112 local do_help for this.
3113 Simplify handling of keysyms (consolidate common code). Fix bug
3114 where count was updated with nchars instead of nbytes.
3115 Remove local emacs_event in handing of ButtonPress event; just use
3116 inev instead (so no reason to copy it later).
3117 Remove `out' label. Rename label `ret' to `done'; add various
3118 `goto done' to clarify code flow in deeply nested blocks.
3119 (x_dispatch_event): Simplify as handle_one_xevent now calls
3120 kbd_buffer_store_event itself.
f63fd14e 3121 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
3e0c6482
KS
3122 arg. Call handle_one_xevent with new arglist. Store event from
3123 x_session_check_input in fifo.
3124 [USE_GTK]: Setup current_hold_quit.
3125 Decrement handling_signal before unblocking input.
3126 (x_initialize) [USE_GTK]: Initialize current_count.
3127
3128 * xterm.h (x_session_check_input): Fix prototype.
3129
e3564461 31302004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
a64387ee 3131
d8d95bc7 3132 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
a64387ee 3133
e3564461
ST
3134 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
3135 macgui.h).
a64387ee 3136
e3564461 3137 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
a64387ee 3138
e3564461
ST
3139 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
3140 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
3141 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
3142 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
3143 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
3144 (Bitmap): Remove typedef.
3145 (Pixmap): Change int to GWorldPtr.
3146
d8d95bc7 3147 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
a64387ee 3148
d8d95bc7
SM
3149 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
3150 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
3151 New #define to extract 16-bit depth color components from unsigned
e3564461
ST
3152 long representation.
3153 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
3154 colors used for masks.
3155 (struct mac_display_info): Add color_p. Remove n_cbits.
a64387ee 3156
e3564461
ST
3157 * macfns.c: Include sys/types.h and sys/stat.h.
3158 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
3159 Include QuickTime/QuickTime.h.
3160 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
3161 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
3162 functions defined in macterm.c.
3163 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
3164 (ZPixmap): New #define for compatibility with xfns.c.
3165 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
3166 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
d8d95bc7
SM
3167 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
3168 New functions.
e3564461 3169 (four_corners_best, x_create_x_image_and_pixmap)
d8d95bc7
SM
3170 (x_destroy_x_image, unwind_create_frame, x_disable_image)
3171 (x_edge_detection, init_color_table, colors_in_color_table)
e3564461
ST
3172 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
3173 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
3174 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
3175 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
3176 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
3177 long mixup.
3178 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
3179 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
3180 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
3181 (x_set_cursor_type, Fxw_color_values, valid_image_p)
3182 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
3183 (x_alloc_image_color, clear_image_cache, lookup_image)
3184 (x_find_image_file, xbm_read_bitmap_file_data)
3185 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
3186 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
3187 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
3188 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
3189 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
d8d95bc7 3190 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
e3564461
ST
3191 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
3192 #if 0.
3193 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
3194 #if 0. Free white_relief.gc and black_relief.gc.
d8d95bc7
SM
3195 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
3196 New functions (from xfns.c).
e3564461
ST
3197 (Fx_create_frame): Record unwind_create_frame.
3198 (Fxw_display_color_p): Use dpyinfo->color_p.
3199 (Fx_display_grayscale_p, Fx_display_planes): Don't use
3200 dpyinfo->n_cbits.
3201 (Fx_display_color_cells): Use dpyinfo->n_planes;
3202 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
3203 (Qheuristic, cross_disabled_images, emboss_matrix)
3204 (laplace_matrix): New variables (from xfns.c).
3205 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
3206 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
3207 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
d8d95bc7
SM
3208 (image_background_transparent): New function (from xfns.c).
3209 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
3210 (image_load_quicktime): Add declaration.
3211 [MAC_OSX] (image_load_quartz2d): Likewise.
3212 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
3213 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
d8d95bc7 3214 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
e3564461
ST
3215 (xbm_load_image_from_file, x_laplace_read_row)
3216 (x_laplace_write_row, pbm_read_file): Remove functions.
3217 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
3218 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
3219 (colors_in_color_table): Sync with xfns.c (although not used).
3220 (lookup_rgb_color): Don't lookup color table. Just do gamma
3221 correction.
3222 (COLOR_INTENSITY): New #define (from xfns.c).
d8d95bc7
SM
3223 (x_disable_image): New function (from xfns.c).
3224 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
3225 (x_build_heuristic_mask): Sync with xfns.c.
3226 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
3227 (HAVE_PBM): Remove #ifdef.
3228 (pbm_load): Sync with xfns.c. Set img->width and img->height
3229 before IMAGE_BACKGROUND.
d8d95bc7 3230 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
e3564461
ST
3231 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
3232 Don't enclose with #if HAVE_PNG.
3233 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
d8d95bc7
SM
3234 symbol _CGImageCreateWithPNGDataProvider is defined.
3235 Otherwise use image_load_quicktime.
e3564461 3236 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
d8d95bc7
SM
3237 [HAVE_PNG] (png_load): Sync with xfns.c.
3238 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
3239 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
3240 HAVE_JPEG.
3241 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
3242 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
3243 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
3244 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
3245 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
3246 (tiff_image_p, tiff_load): Don't enclose declarations with #if
3247 HAVE_TIFF.
3248 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
3249 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
3250 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
d8d95bc7
SM
3251 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
3252 New functions (from xfns.c).
e3564461 3253 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
d8d95bc7 3254 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
e3564461
ST
3255 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
3256 Don't enclose with #if HAVE_GIF.
3257 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
3258 animated gif. Otherwise use image_load_quicktime.
3259 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
3260 gif_DrawText to avoid conflict with QuickdrawText.h.
3261 [HAVE_GIF] (gif_load): Sync with xfns.c.
3262 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
3263 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
3264 Ghostscript is not supported yet).
3265 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
3266 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
3267 cross_disabled_images (from xfns.c). Remove #if 0 for supported
3268 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
3269 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
3270 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
d8d95bc7
SM
3271 HAVE_PNG. Call EnterMovies to support animated gifs.
3272 Call init_image_func_pointer to bind a symbol
e3564461 3273 _CGImageCreateWithPNGDataProvider if it is defined.
a64387ee 3274
d8d95bc7 3275 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
e3564461
ST
3276 (x_draw_bar_cursor): Sync declaration with xterm.c.
3277 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
3278 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
3279 graphics).
3280 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
3281 (mac_draw_line_to_pixmap, XCreatePixmap)
3282 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
d8d95bc7
SM
3283 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
3284 New functions.
3285 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
3286 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
3287 Cast bits to char *.
e3564461
ST
3288 (reflect_byte): New function (from w32fns.c).
3289 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
3290 due to byte alignment.
d8d95bc7
SM
3291 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
3292 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
e3564461
ST
3293 (XSetForeground): Remove static (now used in macfns.c).
3294 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
3295 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
3296 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
3297 (x_draw_glyph_string_box, x_draw_image_foreground)
3298 (x_draw_image_foreground_1, x_draw_image_glyph_string)
3299 (x_draw_stretch_glyph_string, x_draw_glyph_string)
3300 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
3301 Sync with xterm.c.
3302 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
3303 than the xterm.c version when a strictly horizontal or vertical
3304 line is drawn.
3305 (XTset_terminal_window): Add static.
3306 (x_make_frame_visible): Add UNBLOCK_INPUT.
3307 (x_free_frame_resources): New funcion (from xterm.c).
3308 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
3309 occurs in tool bar area.
d8d95bc7
SM
3310 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
3311 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
e3564461
ST
3312 Initialize image cache.
3313 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
3314 Enclose unused functions with #if 0.
3315 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
3316 (decode_mac_font_name): New function to apply code conversions
d8d95bc7 3317 from a mac font name to an XLFD font name according to its script code.
e3564461 3318 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
d8d95bc7 3319 font name to a mac font name according to REGISTRY and ENCODING fields.
e3564461
ST
3320 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
3321 whose name starts with `.'.
3322 (init_font_name_table): Use decode_mac_font_name. Add both
3323 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
3324 of a font is smJapanese.
3325 (mac_do_list_fonts): New function to list fonts that match a given
3326 pattern.
3327 (x_list_fonts, XLoadQueryFont): Use it.
3328 (XLoadQueryFont): Set rbearing field for each variable width
3329 character to avoid needless redraw.
3330 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
3331
446f5f3d
KS
33322004-02-26 Kim F. Storm <storm@cua.dk>
3333
af617d0f
KS
3334 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
3335 as read_socket_hook handler on X aborts if buffer is too small
3336 and W32 handler doesn't always check buffer limit.
3337
446f5f3d
KS
3338 * xdisp.c (handle_single_display_prop): Handle left-fringe and
3339 right-fringe similar to a display margin image. Specifically,
3340 the characters having the fringe prop are no longer shown, and
3341 we use IT_IMAGE/next_element_from_image with image_id = -1 to
3342 do this. Set fringe bitmap face_id in it->face_id.
3343 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
3344 still realize it->face (i.e. the fringe bitmap face).
3345
7d8a0b55
MB
33462004-02-25 Miles Bader <miles@gnu.org>
3347
3348 * xdisp.c (check_it): Check string/string_pos consistency.
3349 (init_iterator): Initialize string-related fields properly.
3350
33512004-02-11 Miles Bader <miles@gnu.org>
3352
3353 * xdisp.c (produce_image_glyph): Force negative descents to zero.
3354
33552004-02-10 Miles Bader <miles@gnu.org>
3356
3357 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
3358 BLOCK_INPUT can be nested, so it doesn't make much sense.
3359
a64387ee 33602004-02-24 Michael Mauger <mmaug@yahoo.com>
ce35edd1
JR
3361
3362 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
3363 (xbm_read_bitmap_data): Use unsigned char for image data.
3364
92f5fba2
LT
33652004-02-23 Luc Teirlinck <teirllm@auburn.edu>
3366
3367 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
3368
8565fb3d
JR
33692004-02-22 Jason Rumney <jasonr@gnu.org>
3370
3371 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
3372 correctly over other bitmaps.
3373
a6eeaa81 33742004-02-21 Eli Zaretskii <eliz@gnu.org>
f8125c39
EZ
3375
3376 * emacs.c (USAGE1): Split into two halves.
3377 (USAGE2): Second half of the old USAGE1.
d8d95bc7
SM
3378 (USAGE3): Rename from USAGE2.
3379 (USAGE4): Rename from USAGE3.
f8125c39 3380
4effffca
EZ
33812004-02-21 Juri Linkov <juri@jurta.org>
3382
3383 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
3384 Fix --multibyte. Move --help, --version to USAGE2. Add alias
3385 --file. Fix -f, -l. Sort options. Untabify.
3386 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
3387
923c1e6f
LT
33882004-02-19 Luc Teirlinck <teirllm@auburn.edu>
3389
3390 * category.c (Fdefine_category, Fcategory_docstring)
3391 (Fget_unused_category, Fset_category_table)
3392 (Fcategory_set_mnemonics): Doc fixes.
3393
b0e225fd
KS
33942004-02-20 Kim F. Storm <storm@cua.dk>
3395
3396 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
3397 The following changes are relative to the 2004-01-21 revision.
3398 (NREAD_INPUT_EVENTS): Define as max number of input events to read
3399 in one call to read_socket_hook. Value is 8.
3400 (read_avail_input): Separate and rework handling of read_socket_hook
3401 and non-read_socket_hook cases. Use smaller input_event buffer
d8d95bc7
SM
3402 in read_socket_hook case, and repeat if full buffer is read.
3403 Use new local variable 'discard' to skip input after C-g.
b0e225fd
KS
3404 In non-read_socket_hook case, just use a single input_event, and
3405 call kbd_buffer_store_event on the fly for each character.
3406
b15aa9f9
SM
34072004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
3408
3409 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
3410 Remove unused `gu' alternative.
3411
83c9aa95
AS
34122004-02-19 Andreas Schwab <schwab@suse.de>
3413
3414 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
3415 warning.
3416
cc808173
KS
34172004-02-18 Kim F. Storm <storm@cua.dk>
3418
3419 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
3420 Fix last change.
3421
ab90a54d
KS
34222004-02-17 Kim F. Storm <storm@cua.dk>
3423
b26f249f
KS
3424 * xdisp.c (fast_find_position): Fix return value of new version;
3425 it was inverted compared to the 21.1 version.
3426 (get_window_cursor_type): Don't look at glyph if NULL.
3427 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
0bf7d005 3428
ab90a54d
KS
3429 * keyboard.c: Rework previous change; it didn't consider that the
3430 buf array was allocated on the stack.
3431 (prev_read): Remove variable.
3432 (read_avail_input_buf): New static event buffer array.
b9568dfc 3433 (in_read_avail_input): New static variable to handle re-entrancy.
ab90a54d 3434 (read_avail_input): Change buf to pinter to read_avail_input_buf.
b9568dfc
KS
3435 Use in_read_avail_input to handle re-entrance; when re-entered,
3436 fully initialize and use tmp_buf array instead of read_avail_input_buf.
3437 Do not initialize read_avail_input_buf in full here; instead assume it
ab90a54d
KS
3438 is always cleared on entry. To ensure that, we clear (just) the
3439 entries that were used before we return.
3440 (init_keyboard): Initialize read_avail_input_buf here.
3441
b6189c3b 34422004-02-16 Jesper Harder <harder@ifa.au.dk>
4e039f3f
EZ
3443
3444 * cmds.c (Fend_of_line): Doc fix.
3445
7b5368c1
EZ
34462004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
3447
3448 * keyboard.c (prev_read): New static variable.
3449 (read_avail_input): Use it to zero out only those slots in buf[]
3450 that were used last time we were called.
3451
a6eeaa81 34522004-02-16 Eli Zaretskii <eliz@gnu.org>
ca4bc494
EZ
3453
3454 * Makefile.in (obj): Move fringe.o from here...
3455 (XOBJ, MAC_OBJ): ...to here.
3456
159c348e
SE
34572004-02-16 Stephen Eglen <stephen@gnu.org>
3458
3459 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
3460
d2f14999
SM
34612004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
3462
b15aa9f9
SM
3463 * data.c (Fbyteorder):
3464 * fringe.c (Fdefine_fringe_bitmap):
3465 * xdisp.c (handle_single_display_prop):
d2f14999
SM
3466 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
3467
8d50508a
JR
34682004-02-16 Jason Rumney <jasonr@gnu.org>
3469
3470 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
3471
dd4497dc
ST
34722004-02-15 Steven Tamm <steventamm@mac.com>
3473
3474 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
3475 controlling emulation of a three button mouse with option and
3476 command keys.
3477 (Qreverse, mac_get_enumlated_btn): Handle the emulation
b15aa9f9 3478 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
dd4497dc 3479
c9159cb3
KS
34802004-02-15 Kim F. Storm <storm@cua.dk>
3481
2cc52658
KS
3482 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
3483
c9159cb3
KS
3484 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
3485 Perform byte-swapping.
3486
12fde2dc
KS
34872004-02-14 Kim F. Storm <storm@cua.dk>
3488
3489 * dispextern.h (struct draw_fringe_bitmap_params): Change member
3490 bits from char to short to facilitate wider bitmaps.
3491 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
3492 member.
3493
3494 * fringe.c (struct fringe_bitmap): Change member bits from char to
3495 short to facilitate 16 bits wide bitmaps. Modify all standard
3496 bitmaps accordingly.
3497 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
3498 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
3499 (draw_fringe_bitmap): Ditto.
3500 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
3501 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
3502 handle up to 16 bits wide bitmaps.
3503 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
f21a7192 3504 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
12fde2dc
KS
3505
3506 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
3507 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
3508 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
3509
3510 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
3511 so it is no longer necessary to expand them here.
3512
3513 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
3514
9d7271e8
KS
35152004-02-12 Kim F. Storm <storm@cua.dk>
3516
3517 * window.c (Fwindow_fringes): Doc fix.
3518
706c1e4f
JD
35192004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3520
3521 * xselect.c (x_get_foreign_selection): Add new optional parameter
3522 time_stamp.
3523 (Fx_get_selection_internal): Ditto, pass time_stamp to
3524 x_get_foreign_selection.
3525
3526 * data.c (Fbyteorder): New function.
3527
c2d12b5d
JD
35282004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3529
3530 * atimer.c: Move include stdio.h to same place as in other files.
3531
3532 * region-cache.c: Ditto.
3533
3534 * sysdep.c: Ditto.
3535
3536 * xfaces.c: Ditto.
3537
4c1947b9
SS
35382004-02-09 Sam Steingold <sds@gnu.org>
3539
89458937 3540 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
4c1947b9 3541
82722af3
KS
35422004-02-09 Kim F. Storm <storm@cua.dk>
3543
3544 * fringe.c: New file. Move original fringe related declarations
3545 and code from dispextern.h and xdisp.c here.
3546 Rework code to support user defined fringe bitmaps, redefining
3547 standard bitmaps, ability to overlay user defined bitmap with
3548 overlay arrow bitmap, and add faces to bitmaps.
3549 (Voverflow_newline_into_fringe): Declare here.
3550 (enum fringe_bitmap_align): New enum.
3551 (..._bits): All bitmaps are now defined without bitswapping; that
3552 is now done in init_fringe_once (if necessary).
3553 (standard_bitmaps): New array with specifications for the
3554 standard fringe bitmaps.
3555 (fringe_faces): New array.
3556 (valid_fringe_bitmap_id_p): New function.
3557 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
3558 (draw_fringe_bitmap): New function which draws fringe bitmap,
3559 possibly overlaying bitmap with cursor in right fringe or the
3560 overlay arrow in the left fringe.
3561 (update_window_fringes): Do not handle overlay arrow here.
3562 Compare and copy fringe bitmap faces.
3563 (init_fringe_bitmap): New function.
3564 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
3565 define and destroy user defined fringe bitmaps.
3566 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
3567 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
3568 (syms_of_fringe): New function. Defsubr new DEFUNs.
3569 DEFVAR_LISP Voverflow_newline_into_fringe.
3570 (init_fringe_once, init_fringe): New functions.
3571 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
4c1947b9 3572
82722af3
KS
3573 * Makefile.in (obj): Add fringe.o.
3574 (fringe.o): New dependencies.
3575
3576 * dispextern.h (FRINGE_ID_BITS): New definition for number of
3577 bits allocated to hold a fringe number. Increase number of bits
3578 from 4 to 8 to allow user defined fringe bitmaps.
3579 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
3580 left_user_fringe_face_id, right_user_fringe_bitmap,
3581 right_user_fringe_face_id.
3582 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
3583 Move to new file fringe.c.
3584 (MAX_FRINGE_BITMAPS): Define here.
3585 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
3586 and overlay_p. Change member which to int.
3587 (struct redisplay_interface): New members define_fringe_bitmap
3588 and destroy_fringe_bitmap.
3589 (valid_fringe_bitmap_id_p): Add prototype.
3590 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
3591
3592 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
3593 arrows.
3594 (update_frame): Do flush_display if force_flush_display_p to
3595 ensure display (specifically fringes) are updated in a timely
3596 manner when resizing the frame by dragging the mouse.
3597 (update_window_line): Update row if overlay arrow changed.
3598 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
3599 or overlay arrow changed.
3600
3601 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
3602 syms_of_fringe, and init_fringe.
3603
3604 * frame.h (struct frame): New member force_flush_display_p.
3605
3606 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
3607 Add prototypes.
3608
a3993cc8 3609 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
a64387ee 3610 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
a3993cc8
KS
3611 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
3612 Use cursor color for displaying cursor in fringe.
82722af3
KS
3613 (x_redisplay_interface): Add null handlers for
3614 define_fringe_bitmap and destroy_fringe_bitmap functions.
3615
3616 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
3617 xterm.c to handle overlayed fringe bitmaps and to use cursor color
3618 for displaying cursor in fringe.
3619 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
3620 specific functions to define and destroy fringe bitmaps in fringe_bmp.
3621 (w32_redisplay_interface): Add them to redisplay_interface.
3622 (w32_term_init): Call w32_init_fringe instead of explicitly
3623 defining fringe bitmaps in fringe_bmp array.
3624 (x_delete_display): Call w32_reset_fringes instead of explicitly
3625 destroying fringe bitmaps in fringe_bmp array.
3626
3627 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
3628 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
3629 (continued_bits, continuation_bits, ov_bits, first_line_bits)
3630 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
3631 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
3632 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
3633 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
3634 Move fringe handling vars and code to new file fringe.c.
3635 (handle_display_prop): Handle left-fringe and right-fringe
3636 display properties; store user fringe bitmaps in iterator.
3637 (move_it_in_display_line_to): Handle cursor in fringe at eob.
3638 (clear_garbaged_frames): Set force_flush_display_p if resized.
3639 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
3640 (display_line): Handle cursor in fringe at eob.
3641 (display_line): Set row user fringe bitmaps from iterator.
3642
3643 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
3644 Use cursor color for displaying cursor in fringe.
3645 (x_redisplay_interface): Add null handlers for
3646 define_fringe_bitmap and destroy_fringe_bitmap functions.
3647
030400eb
JD
36482004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3649
3650 * macfns.c (Fx_change_window_property): Make doc string and
3651 parameters same as for X version.
3652
3653 * w32fns.c (Fx_change_window_property): Ditto.
3654
3af55251
KS
36552004-02-07 Kim F. Storm <storm@cua.dk>
3656
ec110e9e
KS
3657 * xdisp.c (hscroll_window_tree): Position cursor near to right
3658 margin in hscrolled window when jumping to end of line (rather
3659 than centering cursor).
3660
3af55251
KS
3661 * process.c (wait_reading_process_input): Don't do adaptive read
3662 buffering if waiting for a specific process.
3663
b0c138ce
LT
36642004-02-05 Luc Teirlinck <teirllm@auburn.edu>
3665
3666 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
3667 (Fread_minibuffer, Feval_minibuffer)
3668 (Fread_string, Fread_no_blanks_input)
3669 (Fcompleting_read): Doc fixes.
3670 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
3671 completion-regexp-list. Define Qcase_fold_search and staticpro it.
3672 (read_minibuf): Fix initial comment.
3673 (Ftry_completion, Fall_completions, Ftest_completion): Bind
e8eeaed8 3674 case-fold-search to the value of completion-ignore-case when
b0c138ce
LT
3675 checking completion-regexp-list.
3676 (Fdisplay_completion_list): Make it handle arguments that are
3677 symbols. Doc fix.
3678
9676f5ad 36792004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
64d1e373 3680
9676f5ad 3681 * xterm.h: Add declaration of free_frame_menubar.
64d1e373 3682
9676f5ad
JD
3683 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
3684 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
b0c138ce 3685 (Fx_change_window_property): Add declaration of parameters type and
9676f5ad 3686 format. Remove unused variable cons.
5b698285
JD
3687
3688 * xselect.c: Include stdio,h.
3689
fc1d15f6
KH
36902004-02-05 Kenichi Handa <handa@m17n.org>
3691
ebaff4af
KH
3692 * fns.c (Fset_char_table_range): Fix previous change.
3693
fc1d15f6
KH
3694 * buffer.c (Fset_buffer_multibyte): Fix docstring.
3695
9676f5ad
JD
36962004-02-04 Luc Teirlinck <teirllm@auburn.edu>
3697
3698 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
3699
da75761f
SM
37002004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
3701
3702 * keymap.c (Vmouse_events): Rename from Vmenu_events.
3703 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
3704
13c5d120
KH
37052004-02-04 Kenichi Handa <handa@m17n.org>
3706
3707 * fns.c (Fset_char_table_range): Handle charsets ascii,
3708 eight-bit-control, and eight-bit-graphic correctly.
3709
2883d842
JR
37102004-02-03 Jason Rumney <jasonr@gnu.org>
3711
3712 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
3713
3714 * w32fns.c (x_to_w32_font): Likewise.
3715
69eff41f
JD
37162004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3717
3718 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
3719 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
3720
3721 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
3722 ClientMessages.
3723
3724 * xselect.c: Include termhooks.h and X11/Xproto.h
3725 (x_check_property_data, x_fill_property_data)
3726 (x_property_data_to_lisp, mouse_position_for_drop)
3727 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
da75761f 3728 (Fx_send_client_event): Move here from xfns.c.
69eff41f
JD
3729 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
3730
da75761f 3731 * xfns.c (x-send-client-message): Move to xselect.c
69eff41f
JD
3732 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
3733 OUTER_P.
3734 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
3735 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
3736 if vector_ret_p is true.
3737 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
69eff41f 3738
a6eeaa81 37392004-02-02 Eli Zaretskii <eliz@gnu.org>
dcdbbb5d
EZ
3740
3741 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
3742 basename of FILE relative to it, not FILE itself.
3743
09721b31
KH
37442004-02-02 Kenichi Handa <handa@m17n.org>
3745
3746 * coding.c (coding_restore_composition): Check invalid
3747 composition data more rigidly.
3748
eb996101
LT
37492004-01-30 Luc Teirlinck <teirllm@auburn.edu>
3750
3751 * fileio.c (Fread_file_name_internal): Correctly handle the case
3752 where insert-default-directory is nil.
3753 (Fread_file_name): Always return an empty string if the user exits
3754 with an empty minibuffer. Adapt the docstring accordingly.
3755 (syms_of_fileio): Adapt the docstring of insert-default-directory
3756 to the change in Fread_file_name.
3757
a6eeaa81 37582004-01-29 Eli Zaretskii <eliz@gnu.org>
a0367d42
EZ
3759
3760 * alloca.c [!alloca]: Fix the prototype for xfree.
3761
13f52ed8
KH
37622004-01-29 Kenichi Handa <handa@m17n.org>
3763
3764 * fns.c (string_char_to_byte): Optimize for ASCII only string.
3765 (string_byte_to_char): Likewise.
3766
d57625a0
JR
37672004-01-28 Peter Runestig <peter@runestig.com>
3768
3769 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
3770
a64387ee 37712004-01-27 Steven Tamm <steventamm@mac.com>
911c78b4
ST
3772
3773 * unexmacosx.c (unexec_copy): Do not copy more than was
3774 requested to prevent overwriting during unexec.
3775
eb37b8fd
JD
37762004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3777
ce38070a
JD
3778 * process.c (sigchld_handler): Add comment about not calling malloc.
3779
eb37b8fd
JD
3780 * process.h: Add extern to synch_process_termsig.
3781
a64387ee 37822004-01-27 Steven Tamm <steventamm@mac.com>
21a3e657 3783
da75761f
SM
3784 * macterm.c (make_mac_frame, make_mac_terminal_frame):
3785 Move setting of scroll bars from make_mac_frame to
3786 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
21a3e657 3787
d62a265d
RS
37882004-01-26 Richard M. Stallman <rms@gnu.org>
3789
3790 * search.c (Freplace_match): Handle nonexistent
3791 back-references properly.
3792
37932004-01-03 Richard M. Stallman <rms@gnu.org>
3794
3795 * window.c (decode_any_window): New function.
3796 (Fwindow_height, Fwindow_width, Fwindow_edges)
3797 (Fwindow_pixel_edges, Fwindow_inside_edges)
3798 (Fwindow_inside_pixel_edges): Use decode_any_window.
3799
ff236419
JD
38002004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3801
3802 * process.h: synch_process_termsig new variable.
3803
3804 * callproc.c: Define synch_process_termsig.
3805 (Fcall_process): Initiate synch_process_termsig to zero and
3806 check if non-zero and get signal name after subprocess has ended.
3807
3808 * process.c (sigchld_handler): Set synch_process_termsig
3809 if terminated by a signal. synch_process_death setting removed.
3810
3811 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
3812
41b867ea
AS
38132004-01-26 Andreas Schwab <schwab@suse.de>
3814
3815 * print.c (print_preprocess): Declare size as EMACS_INT to not
3816 lose bits.
3817 (print_object): Likewise.
3818 * alloc.c (Fpurecopy): Likewise.
3819
a08084ff
LT
38202004-01-25 Luc Teirlinck <teirllm@auburn.edu>
3821
3822 * window.c (Fwindow_minibuffer_p): Doc fix.
3823
b19ac475
JY
38242004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
3825
3826 * editfns.c (Fformat): Make both passes accept the same set of flags.
3827
fe905025
KH
38282004-01-23 Kenichi Handa <handa@m17n.org>
3829
3830 * fns.c (Fmd5): If OBJECT is a buffer different from the current
3831 one, set buffer to OBJECT temporarily.
3832
438fc6c0
SM
38332004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
3834
455316e2
SM
3835 * keyboard.c (kbd_buffer_gcpro): Remove.
3836 (kbd_buffer_store_event, clear_event, Fdiscard_input)
3837 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
3838 Don't initialize and/or maintain the variable any more. It was made
3839 redundant by my commit of 2003-06-15.
3840
438fc6c0
SM
3841 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
3842
5335a4ee
JD
38432004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3844
3845 * lisp.h: Add undef DECL_ALIGN.
3846
dcdaeebc
SM
38472004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
3848
3849 * process.c (wait_reading_process_input) [SYNC_INPUT]:
3850 Check interrupt_input_pending explicitly.
3851
3852 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
3853
3854 * keyboard.c (handle_async_input): New fun,
3855 extracted from input_available_signal.
3856 (input_available_signal, reinvoke_input_signal): Use it.
3857
9076a823
SM
38582004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
3859
d7107586
SM
3860 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
3861
3862 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
3863 manipulation macros for when tags are in the lower bits.
3864 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
3865 (DECL_ALIGN): New macro.
3866 (DEFUN): Use it.
3867
3868 * lisp.h [ENABLE_CHECKING]: Don't force union type.
3869
3870 * s/darwin.h (__attribute__): Remove outdated workaround.
3871
3872 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
3873
3874 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
3875 Don't check range of malloc address.
3876 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
3877
9076a823
SM
3878 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
3879
3880 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
3881
ba029065
KH
38822004-01-19 Kenichi Handa <handa@m17n.org>
3883
3884 * fontset.c (fontset_font_pattern): Fix previous change.
3885
7af0e8d7
MB
38862004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
3887
3888 * xdisp.c (Voverflow_newline_into_fringe)
3889 (move_it_in_display_line_to, redisplay_internal)
3890 (update_window_fringes, redisplay_window, display_line, window):
3891 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
3892 that it compiles without a window-system.
3893 * dispnew.c (direct_output_for_insert, update_window): Likewise.
3894
77a9cf69
KS
38952004-01-16 Kim F. Storm <storm@cua.dk>
3896
3897 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
3898
a64387ee 3899 * buffer.c (init_buffer_once): Set buffer_defaults and
77a9cf69
KS
3900 buffer_local_flags for indicate_buffer_boundaries.
3901 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
3902 default- variable for it.
3903
3904 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
3905 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
d7107586 3906 New members exact_window_width_line_p and cursor_in_fringe_p for
77a9cf69
KS
3907 overflowing newlines into right fringe.
3908 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
3909 and indicate_bottom_line_p for buffer boundaries and scrolling.
3910 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
3911 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
3912 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
3913 and HOLLOW_SQUARE_BITMAP.
3914 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
3915 Add prototypes.
3916
3917 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
3918 instead of related indicator fields.
3919 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
3920 (direct_output_for_insert): Handle exact width lines like
3921 contined lines. Call update_window_fringes.
3922 (update_window): Call update_window_fringes.
3923 (scrolling_window): Don't skip desired rows with changed bitmaps.
3924 Check if fringe bitmaps changes when assigning scrolled rows.
3925
3926 * xdisp.c (Voverflow_newline_into_fringe): New variable.
3927 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
3928 (move_it_in_display_line_to): Overflow newline into fringe for
3929 rows that are exactly as wide as the window.
3930 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
3931 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
3932 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
3933 (fringe_bitmaps): Add new bitmaps.
3934 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
3935 Select proper bitmap for cursor in fringe when appropriate.
3936 Handle alignment of bitmap to top or bottom of row.
3937 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
3938 done by update_window_fringes.
3939 (update_window_fringes, draw_window_fringes): New functions.
3940 (redisplay_internal): Call update_window_fringes in case only
3941 cursor row is updated.
3942 (redisplay_window): Call update_window_fringes.
3943 Explicitly call draw_window_fringes if redisplay was done using
3944 the current matrix or the overlay arrow is in the window.
3945 (try_window_reusing_current_matrix): Mark scrolled rows for
3946 fringe update (to update buffer-boundaries / scrolling icons).
3947 (find_last_unchanged_at_beg_row): Handle exact width lines line
3948 continued lines.
3949 (display_line): Overflow newline into fringe for rows that are
3950 exactly as wide as the window. Don't append space for newline
d7107586 3951 in this case.
77a9cf69
KS
3952 (notice_overwritten_cursor): Explicitly clear cursor bitmap
3953 in fringe as if it had been overwritten.
3954 (erase_phys_cursor): Erase cursor bitmap in fringe.
d7107586 3955 (syms_of_xdisp): Mark show-trailing-whitespace and
77a9cf69
KS
3956 void-text-area-pointer as user options.
3957 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
d7107586 3958
77a9cf69
KS
3959 * xterm.c (x_update_window_end): Call draw_window_fringes.
3960 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
3961 in row instead of actually drawing fringe bitmaps.
3962 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
3963 (x_draw_window_cursor): Draw cursor in fringe.
3964
3965 * w32term.c (x_update_window_end): Call draw_window_fringes.
3966 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
3967 in row instead of actually drawing fringe bitmaps.
3968 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
3969 (w32_draw_window_cursor): Draw cursor in fringe.
3970
3971 * macterm.c (x_update_window_end): Call draw_window_fringes.
3972 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
3973 in row instead of actually drawing fringe bitmaps.
3974 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
3975 (mac_draw_window_cursor): Draw cursor in fringe.
3976
a633a954
JD
39772004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3978
3979 * xterm.c (handle_one_xevent): Don't handle characters that are part
3980 of an old style (XLookupString) compose sequence.
3981
80460525
KH
39822004-01-15 Kenichi Handa <handa@m17n.org>
3983
3984 * search.c (Freplace_match): Use make_multibyte_string or
3985 make_unibyte_string according to the buffer multibyteness.
3986
7fc34f85
SM
39872004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
3988
3989 * alloc.c (struct interval_block, struct string_block)
3990 (struct symbol_block, struct marker_block, live_string_p)
3991 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
3992 Better preserve alignment for objects in blocks.
3993 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
3994
3995 * lread.c (defvar_per_buffer): Remove dead declaration.
3996
3997 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
3998 space size.
3999
66070bd1
JD
40002004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4001
4002 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
4003 if a key press should pop down. Only pop down if a key is pressed
4004 outside the menu/dialog.
4005 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
4006 popup_get_selection.
4007 (create_and_show_dialog): Pass 1 for down_on_keypress to
4008 popup_get_selection.
4009
de7515d6
JD
40102004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4011
4012 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
4013 BLOCK/UNBLOCK_INPUT.
4014
160b1b50
JD
40152004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4016
4017 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
4018 specified.
4019
3a9f36e6
KH
40202004-01-08 Kenichi Handa <handa@m17n.org>
4021
4022 * editfns.c (Fformat): Fix '&' to '&&'.
4023
3803eb32
AS
40242004-01-08 Andreas Schwab <schwab@suse.de>
4025
4026 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
4027 size if PSEUDOVECTOR_FLAG is set.
4028
9da88f37
KH
40292004-01-07 Kenichi Handa <handa@m17n.org>
4030
74ac5074
KH
4031 * charset.c (Fdeclare_equiv_charset): Fix docstring.
4032
9da88f37
KH
4033 * fontset.c (fontset_ref_via_base): Fix previous change.
4034
05faee07
KS
40352004-01-07 Kim F. Storm <storm@cua.dk>
4036
4037 * process.c (read_process_output): Only activate adaptive
4038 buffering if we read less than 256 bytes at a time.
4039
634910c8
KS
40402004-01-06 Kim F. Storm <storm@cua.dk>
4041
4042 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
4043 object and image object. Return glyph width and height.
4044 (mode_line_string, marginal_area_string): Ditto.
4045
4046 * dispextern.h (buffer_posn_from_coords, mode_line_string)
4047 (marginal_area_string): Fix prototypes.
4048
4049 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
f63fd14e 4050 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
634910c8
KS
4051 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
4052
4053 * keyboard.c (make_lispy_position): Use modified mode_line_string,
4054 buffer_posn_from_coords, and marginal_area_string functions to
4055 include both string object and image object in the lispy position.
4056 Also add actual glyph width and height to position.
4057 (read_key_sequence): Use real buffer position from mouse
4058 event to find keymap property even when click is in marginal area.
4059
4060 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
4061 mode_line_string and marginal_area_string functions to handle
4062 both string object and image object properties.
d7107586 4063
57951c2e
AS
40642004-01-06 Andreas Schwab <schwab@suse.de>
4065
4066 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
4067 character.
4068
181e6a61
AS
40692004-01-02 Andreas Schwab <schwab@suse.de>
4070
d7107586
SM
4071 * macterm.c (emacs_options, x_initialized, same_x_server):
4072 Remove unused (and duplicated) definitions.
181e6a61 4073
31e0fbdd
KS
40742004-01-02 Kim F. Storm <storm@cua.dk>
4075
4076 * process.h (struct Lisp_Process): New members for adaptive read
4077 buffering: adaptive_read_buffering, read_output_delay, and
4078 read_output_skip.
4079
4080 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
4081 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
4082 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
4083 (process_output_delay_count, process_output_skip): New vars.
4084 (Vprocess_adaptive_read_buffering): New variable.
4085 (make_process): Initialize adaptive read buffering members.
4086 (Fstart_process): Set adaptive_read_buffering member.
4087 (deactivate_process): Cleanup adaptive read buffering.
4088 (wait_reading_process_input): Temporarily omit delayed
4089 subprocesses from the set of file descriptors to read from;
4090 adjust the select timeout if we skipped any subprocesses.
4091 (read_process_output): Increase adaptive read buffering delay if
4092 we read less than a full buffer; reduce delay when we read a
4093 full buffer.
4094 (send_process): Simplify using local Lisp_Process var.
4095 Reset adaptive read buffering delay after write.
4096 (init_process): Initialize process_output_delay_count and
4097 process_output_skip.
4098 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
4099
68c6a789
JR
41002004-01-01 Jason Rumney <jasonr@gnu.org>
4101
d7107586 4102 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
68c6a789 4103
3f70fe82
LT
41042003-12-30 Luc Teirlinck <teirllm@auburn.edu>
4105
4106 * print.c (Ferror_message_string): Add hyperlink in the docstring
4107 to the definition of `signal' in the Elisp manual.
4108 * eval.c (Fsignal): Ditto.
4109
b6189c3b 41102003-12-29 James Clark <jjc@jclark.com>
c2be49ed
EZ
4111
4112 * fns.c (internal_equal): Return t for two NaN arguments.
4113
7abd90ea
RS
41142003-12-29 Richard M. Stallman <rms@gnu.org>
4115
4116 * data.c (store_symval_forwarding): Handle setting
4117 default-fill-column, etc., by changing the value in
4118 buffers that use the default.
4119
4120 * minibuf.c (Fset_minibuffer_window): Doc fix.
4121
4122 * fileio.c (choose_write_coding_system): Ignore auto_saving
4123 if using the visited file for auto saves.
4124 (Fwrite_region): Don't update SAVE_MODIFF
4125 if auto-saving in visited file.
4126
3e7cfcdc
KH
41272003-12-29 Kenichi Handa <handa@m17n.org>
4128
4129 * dispextern.h (face_font_available_p): Extern it.
4130
4131 * fontset.c (Voverriding_fontspec_alist): New variable.
4132 (lookup_overriding_fontspec): New function.
d7107586 4133 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
3e7cfcdc
KH
4134 (fontset_font_pattern): Likewise.
4135 (regulalize_fontname): New function.
4136 (Fset_fontset_font): Call regulalize_fontname.
4137 (Fset_overriding_fontspec_internal): New function.
d7107586
SM
4138 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
4139 Defsubr Sset_overriding_fontspec_internal.
3e7cfcdc
KH
4140
4141 * xfaces.c (face_font_available_p): New function.
4142
7abd90ea
RS
41432003-12-28 Richard M. Stallman <rms@gnu.org>
4144
4145 * buffer.c (Fother_buffer): Don't crash if BUF is nil
4146 or if its name is nil.
4147
4148 * buffer.c (Fkill_buffer): Don't delete auto-save file
4149 if it's the same as the visited file.
4150
de1d1a40
LT
41512003-12-28 Luc Teirlinck <teirllm@auburn.edu>
4152
4153 * coding.c (Fcheck_coding_system): Doc fix.
4154
204fb75e
KS
41552003-12-28 Kim F. Storm <storm@cua.dk>
4156
4157 * Makefile.in (eval.o): Depend on dispextern.h.
4158
4159 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
4160 image glyph using image's ascent.
4161 (mode_line_string): Return image glyph as object clicked on.
4162 Adjust y0 for image glyph using image's ascent.
4163
4164 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
4165 (struct glyph): New members, ascent and descent. Used to save
4166 this glyph's ascent and descent, instead of having.
4167 (struct glyph): Declare member face_id using FACE_ID_BITS.
4168 (find_hot_spot): Add prototype.
4169
4170 * keyboard.c (Qimage): Remove extern (now in lisp.h).
4171 (QCmap): Declare extern.
4172 (make_lispy_position): When position is inside image hot-spot,
4173 use hot-spot element's id as posn element.
4174
4175 * lisp.h (IMAGEP): New macro to test for image object type.
4176 (Qimage): Declare extern.
4177
4178 * macfns.c (Qimage): Remove extern (now in lisp.h).
4179 (valid_image_p, parse_image_spec): Use IMAGEP macro.
4180
4181 * macterm.c (Qface, Qmouse_face): Remove unused externs.
4182
4183 * w32fns.c (Qimage): Remove extern (now in lisp.h).
4184 (valid_image_p, parse_image_spec): Use IMAGEP macro.
4185
4186 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
4187
4188 * w32term.c (Qface, Qmouse_face): Remove unused externs.
4189
4190 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
4191 pointer types.
4192 (Qrelative_width, Qalign_to): Remove unused variables.
4193 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
4194 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
4195 image maps.
d7107586 4196 (x_y_to_hpos_vpos): Return glyph relative coordinates through
204fb75e
KS
4197 new dx and dy args.
4198 Remove buffer_only_p arg (always 0). Simplify code accordingly.
4199 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
4200 than row's ascent and height, to get sensible height on tall rows.
4201 (build_desired_tool_bar_string): Remove Qimage extern.
4202 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
4203 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
4204 image glyph is alone on the last line.
4205 (append_glyph, append_composite_glyph, produce_image_glyph)
d7107586 4206 (append_stretch_glyph): Set glyph's ascent and descent.
204fb75e 4207 (on_hot_spot_p): New function to check if position is inside an
d7107586 4208 rectangular, circular, or polygon-shaped image hot-spot,
204fb75e
KS
4209 (find_hot_spot): New function to search for image hot-spot.
4210 (Flookup_image_map): New defun to search for image hot-spot.
4211 (define_frame_cursor1): New aux function to determine frame pointer.
4212 (note_mode_line_or_margin_highlight, note_mouse_highlight):
4213 Handle `pointer' text property and :pointer image property to
4214 control frame pointer shape. Detect image hot-spots for pointer
4215 and help_echo properties. Use define_frame_cursor1.
4216 (note_mouse_highlight): Use Vvoid_text_area_pointer.
f63fd14e 4217 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
204fb75e
KS
4218 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
4219
4220 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
4221
4222 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
4223 (Qimage): Remove extern (now in lisp.h).
4224 (valid_image_p, parse_image_spec): Use IMAGEP macro.
4225
4226 * xmenu.c (show_help_event): Remove unused code.
4227
4228 * xterm.c (Qface, Qmouse_face): Remove unused externs.
4229 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
4230 row's ascent and descent, to get a sensible height on tall rows.
4231
fc052137
LT
42322003-12-25 Luc Teirlinck <teirllm@auburn.edu>
4233
4234 * minibuf.c (Fcompleting_read): Undo previous change.
4235
a64387ee 42362003-12-25 Lars Hansen <larsh@math.ku.dk>
b9148500
LH
4237
4238 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
4239 Arguments GCPRO'ed in call to file name handler.
4240
56ffd194
TTN
42412003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
4242
4243 * termcap.c (tgetst1): Scan for "%pN"; if all
4244 N are continuous in [1,9], remove all "%pN".
4245
5202d23d
JD
42462003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4247
f26fab36
JD
4248 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
4249
5202d23d
JD
4250 * xfaces.c (lface_fully_specified_p): Take into account that
4251 MAC OS always have unspecified stipple.
4252
8babaa59
TTN
42532003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
4254
4255 * tparam.c (tparam1): Add handling for `%pN', which
4256 means use param N for the next substitution.
4257
2d176448
TTN
42582003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
4259
4260 * xfaces.c (Fcolor_gray_p): Fix omission bug:
4261 In case `frame' is nil, consult the selected frame.
4262 (Fcolor_supported_p): Likewise.
4263
adb0708c
LT
42642003-12-23 Luc Teirlinck <teirllm@auburn.edu>
4265
000eeb15
LT
4266 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
4267 Doc fixes.
0dc72b11
LT
4268
4269 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
4270 and an integer. Adapt the introductory comment accordingly.
adb0708c
LT
4271 (Fread_from_minibuffer): Delete code moved into read_minibuf.
4272 Doc fix.
4273 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
4274 read_minibuf.
4275 (Fcompleting_read): Delete code moved into read_minibuf.
d7107586 4276 (Ftest_completion): Make it handle obarrays and hash tables correctly.
adb0708c 4277
2e4d132b
KH
42782003-12-03 Kenichi Handa <handa@m17n.org>
4279
4280 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
4281 encoding sequence.
4282
3999c705
KH
42832003-12-01 Kenichi Handa <handa@m17n.org>
4284
4285 * composite.c (syms_of_composite): Don't make the compostion hash
4286 table week.
4287
d344ecbb
LT
42882003-11-30 Luc Teirlinck <teirllm@auburn.edu>
4289
4290 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
4291 * textprop.c (Fget_char_property_and_overlay): New function.
4292 (syms_of_textprop): Defsubr it.
4293
03d6484e
JD
42942003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4295
019b1f0e
JD
4296 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
4297 to compile on terminal configuration.
4298
03d6484e
JD
4299 * fileio.c (Fread_file_name): Check use_file_dialog also before
4300 calling Fx_file_dialog.
4301
4302 * fns.c: use_file_dialog: New variable.
4303 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
4304
442d3fd0
KS
43052003-11-29 Kim F. Storm <storm@cua.dk>
4306
4307 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
4308 (syms_of_msdos): Don't intern and staticpro them.
4309
0f6a07a8
KS
43102003-11-27 Kim F. Storm <storm@cua.dk>
4311
4312 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
4313 coordinates relative to glyph at posn. If glyph is an image,
4314 return that as object at posn. Callers changed.
4315 (mode_line_string, marginal_area_string): Calculate and return
4316 pixel coordinates relative to glyph. Callers changed.
4317
4318 * dispextern.h (buffer_posn_from_coords, mode_line_string)
4319 (marginal_area_string): Fix prototypes.
4320 (window_box_left_offset, window_box_right_offset): Add prototypes.
4321
4322 * frame.h (get_specified_cursor_type, get_window_cursor_type):
4323 Remove prototypes.
4324
4325 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
4326
4327 * keyboard.c (make_lispy_position): Add x and y coordinates
4328 relative to the current glyph as 7th element of position.
4329 If glyph is an image, return it in the object element.
4330 (read_key_sequence): Skip checks for keymap property in cases
4331 where POSN_STRING is not a string (e.g. an image).
4332
4333 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
4334 (Vshow_text_cursor_in_void): New variable.
4335 (glyph_to_pixel_coords): Don't use negative hpos.
4336 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
4337 (append_stretch_glyph): Change ascent arg to be actual value
f63fd14e 4338 in pixels rather than ratio to height. Callers changed.
0f6a07a8
KS
4339 (calc_pixel_width_or_height): New aux function, implementing
4340 pixel based artihmetic for glyph widths and heights.
4341 (produce_stretch_glyph): Use calc_pixel_width_or_height for
4342 :width, :height, :align-to, and :ascent, thus allowing these to
4343 be specified in pixels as well as multiples of characters.
4344 Don't produce stretch glyphs with zero width or height.
4345 (get_specified_cursor_type): Declare static.
4346 (get_window_cursor_type): Declare static. Add glyph arg to be
4347 able to know when cursor is on an image; always substitute
4348 hollow-box cursor for filled-box cursor on images, to avoid
4349 negative images and flicker when blinking the cursor.
4350 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
4351 (note_mode_line_or_margin_highlight): Use non-text cursor rather
4352 than vertical scroll-bar cursor in display margins.
4353 (note_mouse_highlight): Use non-text cursor rather than text
4354 cursor in fringes and over images in the text area.
4355 Use non-text cursor when mouse pointer is outside editable text,
4356 i.e. in the void after end-of-line or end-of-buffer; this was
4357 already done for W32, but is now standard for all systems --
4358 user can toggle show-text-cursor-in-void to get old behaviour.
4359 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
4360 Vdisplay_pixels_per_inch.
4361
00498bfc
AS
43622003-11-25 Andreas Schwab <schwab@suse.de>
4363
4364 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
4365 EMACS_INT to not lose bits.
4366 (Ffillarray): Don't set bits beyond the size of a bool vector.
4367
edaa824d
KS
43682003-11-25 Kim F. Storm <storm@cua.dk>
4369
4370 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
4371 define this defun on systems that cannot use stderr as lvalue.
4372
74d6f539
GM
43732003-11-24 Gerd Moellmann <gerd@gnu.org>
4374
4375 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
4376 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
4377 ld's default is incompatible with unexec.
4378
6a1ff3ba
KS
43792003-11-23 Kim F. Storm <storm@cua.dk>
4380
63dc7c6b
KS
4381 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
4382 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
4383 (Fforce_window_update): New defun.
4384 (syms_of_window): Defsubr it.
4385 (Fset_window_margins, Fset_window_fringes): Doc fix.
4386
6a1ff3ba
KS
4387 * print.c (Fredirect_debugging_output): New defun.
4388 (syms_of_print): Defsubr it.
4389
aef109b7
LT
43902003-11-22 Luc Teirlinck <teirllm@auburn.edu>
4391
4392 * fns.c (Fset_char_table_parent): Doc fix.
4393
6a1ff3ba 43942003-11-22 Kim F. Storm <storm@cua.dk>
63ccbe21
KS
4395
4396 * dispnew.c (buffer_posn_from_coords): Return actual row/column
4397 for glyph clicked on, rather than (unused) pixel positions.
4398 (mode_line_string, marginal_area_string): Change X and Y args to
4399 pointers for returning actual row/column for glyph clicked on.
4400 Simplify and optimize loops.
4401
aef109b7
LT
4402 * dispextern.h (mode_line_string, marginal_area_string):
4403 Update prototypes.
63ccbe21
KS
4404
4405 * keyboard.c (make_lispy_position): New function for generating
4406 mouse click positions from frame and pixel coordinates.
4407 Enhanced to return buffer position and actual row/column for
4408 events outside the text area using updated mode_line_string and
4409 marginal_area_string functions.
4410 Return left-fringe and right-fringe clicks as such, rather than
4411 clicks in text area.
4412 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
4413 pixel_to_glyph_coords, as we never use the results.
4414 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
4415 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
4416 Eliminate unused code in WHEEL_EVENT handling.
4417 (make_lispy_movement): Use make_lispy_position.
4418
4419 * window.c (coordinates_in_window): Remove redundant tests.
4420 Fix returned X pixel value for left-margin.
4421
4422 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
4423 mode_line_string and marginal_area_string parameters.
4424
a64387ee 44252003-11-22 Lars Hansen <larsh@math.ku.dk>
930a9995 4426
d7107586
SM
4427 * w32.c (struct the_group, getgrgid): Add.
4428 * mac.c (struct my_group, getgrgid): Add.
aef109b7 4429
3dbf3426
LT
44302003-11-21 Luc Teirlinck <teirllm@auburn.edu>
4431
4432 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
4433
cae8ddbb 44342003-11-21 Lars Hansen <larsh@math.ku.dk>
ded4064f 4435
d7107586
SM
4436 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
4437 include in call to file name handler. Optionally translate numeric
4438 UID and GID to strings. Update docstring.
4439 (directory_files_internal): Add parameter ID-FORMAT.
4440 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
4441 include in call to file name handler and call to
4442 directory_files_internal. Update Docstring.
4443 (Fdirectory_files): Add dummy parameter in call to
4444 directory_files_internal.
4445 * lisp.h (Qinteger): Add.
4446 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
4447 (Ffile_attributes): Add parameter.
4448 * data.c (Qinteger): Export.
cae8ddbb 4449
2550b848
LT
44502003-11-21 Luc Teirlinck <teirllm@auburn.edu>
4451
3dbf3426 4452 * fns.c (Freverse, Fnreverse): Doc fixes.
2550b848 4453
88380018
KS
44542003-11-19 Kim F. Storm <storm@cua.dk>
4455
4456 * xdisp.c (init_iterator): Initialize it->start to position
4457 before reseating (in case start position is invisible).
4458 (init_to_row_start): Set it->start to row-start.
4459 (redisplay_window): Accept optional_new_start if start position
4460 is invisible (in which case IT_CHARPOS overshoots PT).
4461 (display_line): Setup row->start from it->start (rather than
4462 it->current which is wrong if first char on line is invisible).
4463 When done, reseat it->start to it->current (= start of next row).
4464 (expose_area): Fix exposure of text area when first char (e.g. TAB)
4465 is only partially visible.
4466
4467 * dispextern.h (struct it): New member start.
4468
854c1a59
SM
44692003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
4470
455316e2
SM
4471 * alloc.c (make_float, Fcons): Clear the markbit at init time.
4472 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
4473 of block_index outside of the macro call.
4474 (Fgarbage_collect): Remove null code.
4475
4476 * m/amdx86-64.h: Don't redefine XPNTR.
4477
854c1a59
SM
4478 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
4479 of VALMASK.
4480
4481 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
4482 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
4483 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
4484
4485 * lisp.h (VALMASK): Only define for non-union type.
4486 (MARKBIT): Remove.
4487 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
4488 (XTYPE): Define unconditionally.
4489 (XSETTYPE): Remove one more remnant.
4490 (EQ): Define differently for the union and non-union cases.
4491 (INTMASK): New bit mask.
4492 (struct Lisp_Marker): Move down to prepare for upcoming patch.
4493 (GC_EQ): Delegate to EQ.
4494
4495 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
4496
a0c6ef2d
JD
44972003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4498
4499 * xterm.c (x_window_to_scroll_bar): Move check of display to
4500 where window_id is compared.
4501
859492c4
KS
45022003-11-17 Kim F. Storm <storm@cua.dk>
4503
4504 * dispextern.h (struct it): New member first_vpos.
4505
4506 * xdisp.c (start_display): Set it->first_vpos.
4507 (try_window_id): Use first_vpos to start display in first _text_
4508 line if no reusable lines at start of window with header line.
4509
810f2256
JD
45102003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4511
7c402969 4512 * w32fns.c (XPutPixel):
854c1a59
SM
4513 * w32bdf.c (w32_init_bdf_font):
4514 * sunfns.c (sel_read):
4515 * process.c (Fmake_network_process):
4516 * frame.c (store_frame_param):
4517 * fontset.c (Fset_fontset_font):
4518 * emacs.c (shut_down_emacs):
a64387ee 4519 * ccl.c (ccl_driver): Remove period at end of error message.
7c402969 4520
a32e9bfd
JD
4521 * config.in: Regenerate.
4522
810f2256
JD
4523 * xfns.c (x_window_to_frame, x_any_window_to_frame)
4524 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
4525 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
4526 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
4527 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
4528
4529 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
4530
4531 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
4532 (XTmouse_position, handle_one_xevent): Pass Display* to
4533 x_window_to_scroll_bar.
4534 (x_window_to_scroll_bar): Take a Display* argument.
4535 Check that display for frame is equal to Display* argument.
854c1a59 4536 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
810f2256
JD
4537 x_display_info_for_display instead. Use Display in xev instead
4538 of GDK_DISPLAY.
4539 (x_dispatch_event): Call x_display_info_for_display.
f63fd14e 4540 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
810f2256
JD
4541 (x_connection_closed): Call xg_display_close for GTK.
4542 (x_term_init): Call xg_display_open for additional displays.
4543 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
4544 for GTK.
4545
4546 * xmenu.c (single_menu_item, mouse_position_for_popup)
4547 (x_activate_menubar): Formatting adjustments.
4548
4549 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
4550 adjustments.
4551
4552 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
4553 (xg_display_close, xg_create_default_cursor)
4554 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
4555 handling.
854c1a59
SM
4556 (xg_left_ptr_cursor): Remove.
4557 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
810f2256
JD
4558 cursor here.
4559 (xg_win_to_widget): Take Display* argument, call
4560 gdk_xid_table_lookup_for_display.
4561 (xg_create_frame_widgets, xg_get_file_name, create_menus)
4562 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
4563 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
4564 in FRAME_X_DISPLAY_INFO.
4565 (xg_get_scroll_id_for_window): Take Display* argument.
4566 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
854c1a59 4567 (xg_initialize): Remove xg_left_ptr_cursor.
810f2256
JD
4568
4569 * gtkutil.h: xg_get_scroll_id_for_window, xg_win_to_widget takes
4570 Display* argument also. Declare xg_display_open,
4571 xg_display_close, xg_create_default_cursor.
4572
0b03cc78
JD
45732003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4574
4575 * xterm.c (x_detect_focus_change): Do not change focus frame for
4576 Enter/LeaveNotify if the current focus frame has explicit focus.
4577
77e688fa
KS
45782003-11-14 Kim F. Storm <storm@cua.dk>
4579
4580 * dispnew.c (update_text_area): Fix redisplay error when hscroll
4581 is active and first glyph is only partially visible.
854c1a59 4582
dd429b03
KH
45832003-11-13 Kenichi Handa <handa@m17n.org>
4584
4585 * xdisp.c (select_frame_for_redisplay): New function.
4586 (redisplay_internal): Record also selected_frame for
4587 unwind_redisplay. Call select_frame_for_redisplay before
4588 redrawing each frame.
4589 (unwind_redisplay): Argument changed to a cons.
4590
6d9266f4
LT
45912003-11-12 Luc Teirlinck <teirllm@auburn.edu>
4592
4593 * fns.c (Fstring_to_multibyte): Doc fix.
4594
80060eb3
KH
45952003-11-11 Kenichi Handa <handa@m17n.org>
4596
4597 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
4598
74305183
JD
45992003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4600
4601 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
4602 program specified positions.
4603
cfda993e
JD
46042003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4605
4606 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
4607
df211069
KH
46082003-11-08 Kenichi Handa <handa@m17n.org>
4609
4610 * Makefile.in (lisp): Add kannada.el.
4611 (shortlisp): Likewise.
4612
4307d534
KH
46132003-11-07 Kenichi Handa <handa@m17n.org>
4614
854c1a59
SM
4615 * coding.c (coding_allocate_composition_data):
4616 Reset coding->composing to COMPOSITION_NO.
4307d534
KH
4617 (coding_restore_composition): Detect invalid composition data.
4618 Give Fstring and Fvector a Lispy integer, not C int.
4619
854c1a59
SM
46202003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
4621
4622 * floatfns.c (Flogb): Don't use VALMASK.
4623
4624 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
4625 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
4626
4627 * lisp.h (XINT): Move the cast to clarify what is going on.
4628 (GCTYPEMASK, XSETTYPE): Remove.
4629 (XGCTYPE): Make it an alias of XTYPE.
4630
d04103a1
JD
46312003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4632
4633 * xterm.c (x_term_init): Fix formatting.
4634
da18b5ac
JD
46352003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4636
4637 * gtkutil.h: Declare xg_have_tear_offs, remove xg_keep_popup
4638 and xg_did_tearoff.
4639
4640 * gtkutil.c: Remove variable xg_did_tearoff.
4641 (xg_have_tear_offs): New function.
4642 (tearoff_remove): Just decrease xg_detached_menus.
4643 (tearoff_activate): Increase xg_detached_menus and call
4644 tearoff_remove when tearoff is removed.
854c1a59 4645 (xg_keep_popup): Remove function.
da18b5ac
JD
4646 (create_menus): Give add_tearoff_p as argument to recursive
4647 call to create_menus.
4648 (xg_create_widget): Use variables instead of multiple
4649 strcmp. Tell create_menus to create tear off only for
4650 menu bar menus.
4651 (xg_update_menubar): Change title for a detached menu also.
4652 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
4653 of deep_p.
4654 (xg_initialize): Initialize xg_detached_menus, remove
4655 initialization of xg_did_tearoff.
4656
4657 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
4658 xg_have_tear_offs returns non-zero.
4659 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
4660 call to xg_keep_popup.
4661
64d4923e
AC
46622003-11-01 Andrew Choi <akochoi@shaw.ca>
4663
4664 * macterm.c (XTread_socket): Handle menubar selection and grow
4665 window only for mouseDown events.
854c1a59 4666
6cc8bc07
JD
46672003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4668
4669 * xterm.c (x_term_init): For GTK part, increase x_initialized
4670 to check for more than one display. Use error instead of return 0.
4671
043131c4
AC
46722003-10-31 Andrew Choi <akochoi@shaw.ca>
4673
854c1a59 4674 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
043131c4
AC
4675 (copy_dysymtab): Call it.
4676
bdda99a1
LT
46772003-10-31 Luc Teirlinck <teirllm@auburn.edu>
4678
4679 * eval.c (Fdefvaralias): Doc fix.
4680
800f42ff 46812003-10-26 Luc Teirlinck <teirllm@auburn.edu>
0d11571e
LT
4682
4683 * data.c (Fsetplist): Doc fix.
4684
ef35b389
LK
46852003-10-14 Lute Kamstra <lute@gnu.org>
4686
4687 * window.c (Fset_window_fringes): Clarify docstring.
07107abc 4688
ef35b389 46892003-10-14 Kim F. Storm <storm@cua.dk>
854c1a59 4690
07107abc
KS
4691 * window.c (Fset_window_margins): Simplify arg checking.
4692
f7005886
RS
46932003-10-13 Richard M. Stallman <rms@gnu.org>
4694
4695 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
4696 (print_partial_compiled_pattern): Replace assert with a printout.
4697 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
4698
4699 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
4700
4701 * window.c (Fset_window_margins): Allow only integers as args.
4702 (syms_of_window) <special-display-buffer-names, special-display-regexps>:
4703 Doc fixes.
4704
9c0c2af5
LK
47052003-10-13 Lute Kamstra <lute@gnu.org>
4706
4707 * window.c (Fset_window_fringes): Elaborate docstring.
4708
3f080e4e
AC
47092003-10-12 Andrew Choi <akochoi@shaw.ca>
4710
854c1a59 4711 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
a4887377 4712
3f080e4e
AC
4713 * s/darwin.h (GC_MARK_STACK): Define.
4714
0aa513ed
JD
47152003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4716
4717 * window.c (shrink_windows): New function.
4718 (size_window): Call shrink_windows to calculate window sizes when
4719 shrinking frame with more than one window.
4720
6aa8858a
KS
47212003-10-12 Kim F. Storm <storm@cua.dk>
4722
4723 * xdisp.c (compute_fringe_widths): Doc fix.
4724
c2164d91
KH
47252003-10-08 Kenichi Handa <handa@m17n.org>
4726
854c1a59 4727 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
c2164d91 4728
f82ac129
KH
47292003-10-07 Kenichi Handa <handa@m17n.org>
4730
4731 * coding.c (Qcoding_system_define_form): New variable.
4732 (syms_of_coding): Intern and staticpro it.
4733 (Fcheck_coding_system): Try to autoload the definition of
4734 CODING-SYSTEM.
4735
9296c947
LT
47362003-10-05 Luc Teirlinck <teirllm@auburn.edu>
4737
4738 * fns.c (Frequire): Doc fix.
4739
c1f0671a
JD
47402003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4741
3d8c3826
JD
4742 * xfns.c (Fx_send_client_event): New function as a base for
4743 manipulating extended window manager hints.
6dc15d98 4744 (Fx_send_client_event): Remove unused variable s.
3d8c3826 4745
068ae0fd
JD
4746 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
4747 that function is removed.
4748
4749 * xterm.c (x_set_offset): Use move_offset_left/top instead of
4750 x/y_pixels_outer_diff.
4751 (x_check_expected_move): Calculate move_offset_left/top.
4752
4753 * xterm.h (struct x_output): New members: move_offset_top/left.
4754
854c1a59 4755 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
068ae0fd
JD
4756 call x_set_offset directly.
4757
4758 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
4759
96f09305
JD
4760 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
4761
4762 * xterm.c (x_delete_display): Free font names and font_encoder
4763 in dpyinfo->font_table.
4764
854c1a59
SM
4765 * xfns.c (Fx_close_connection): Only call XFreeFont here.
4766 Move xfree of font names to x_delete_display.
96f09305 4767
c1f0671a
JD
4768 * xterm.h (struct x_display_info): New member, wm_type.
4769 (struct x_output): New members, expected_top/left and
4770 check_expected_move.
4771
4772 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
4773 is received.
854c1a59
SM
4774 (handle_one_xevent): Rename x_check_expected_move from
4775 x_check_fullscreen_move.
c1f0671a
JD
4776 (x_set_offset): Only add WM decoration sizes to modified_top/left
4777 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
854c1a59 4778 (x_check_expected_move): Rename from x_check_fullscreen_move.
c1f0671a
JD
4779 Removed fullscreen specific code. Use check_expected_move,
4780 expected_left/top instead. Also, set wm_type.
4781 (x_term_init): Initialize wm_type to unknown.
4782
4783 * frame.c (x_fullscreen_move): Remove addition of WM decoration
4784 sizes to move_x/y.
4785
be2fdba9
KH
47862003-10-03 Kenichi Handa <handa@m17n.org>
4787
4788 * macterm.c (x_load_font): Clear all members of FONTP before start
4789 filling them.
4790
47912003-10-02 Kenichi Handa <handa@m17n.org>
4792
4793 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
4794 before calling find_ccl_program_func. Call find_ccl_program_func
4795 only when fontp->font_encoder is not NULL.
4796
4797 * xterm.c (x_load_font): Clear all members of FONTP before start
4798 filling them.
4799
26a6e439
JPW
48002003-10-03 John Paul Wallington <jpw@gnu.org>
4801
4802 * keymap.c (map_keymap): Don't abort when binding is a vector.
4803
0d4c2dc2
JR
48042003-10-02 Jason Rumney <jasonr@gnu.org>
4805
854c1a59
SM
4806 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
4807 Sync dependencies with Makefile.in.
a63cf46f
JR
4808 (alloca.o): Remove.
4809
0d4c2dc2
JR
4810 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
4811 filling them.
4812
4813 * w32bdf.c (w32_load_bdf_font): Likewise.
4814
ab8f7d5c
RS
48152003-09-30 Richard M. Stallman <rms@gnu.org>
4816
4817 * term.c (set_tty_color_mode): Calculate current_mode_spec
4818 regardless of value of VAL.
4819
854c1a59 4820 * intervals.c (graft_intervals_into_buffer):
ab8f7d5c
RS
4821 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
4822 Handle over_used when splitting UNDER.
4823
a64387ee 48242003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ab8f7d5c
RS
4825
4826 * regex.c (regex_compile): Free the stack when returning from function.
4827
3413f972
KH
48282003-09-28 Kenichi Handa <handa@m17n.org>
4829
4830 * fontset.c (Finternal_char_font): Change return value to
4831 cons (FONT-NAME . GLYPH-CODE).
4832
a6eeaa81 48332003-09-28 Eli Zaretskii <eliz@gnu.org>
40409f05
EZ
4834
4835 * term.c (tty_setup_colors): Treat any negative argument as -1.
4836
f98ddc99
KH
48372003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
4838
4839 * process.c (send_process): Delete unused temp_buf.
4840
66c8f1a8
DL
48412003-09-26 Dave Love <fx@gnu.org>
4842
4843 * xterm.c (x_bitmap_mask): Declare.
4844
ca716c26
DL
48452003-09-25 Dave Love <fx@gnu.org>
4846
4847 * Makefile.in (fns.o): Depend on md5.h.
4848
fbe57420
KS
48492003-09-25 Kim F. Storm <storm@cua.dk>
4850
4851 * window.c (set_window_buffer): Fix redisplay problems when
4852 switching between buffers with different display margin widths.
4853
ef6ae4ff
KS
48542003-09-23 Kim F. Storm <storm@cua.dk>
4855
4856 * process.c (set_socket_option): Fix :bindtodevice option.
4857 (Fset_network_process_option): Update process contact list when
4858 setting option succeeds.
4859 (Fmake_network_process): Doc fix.
4860
68e03c1c
DL
48612003-09-23 Dave Love <fx@gnu.org>
4862
7146d1c1 4863 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
68e03c1c 4864
a6eeaa81 48652003-09-22 Eli Zaretskii <eliz@gnu.org>
2f809aae
EZ
4866
4867 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
4868 color mode is an integer number (it could be -1).
4869
8fe7d8c8
RS
48702003-09-22 Richard M. Stallman <rms@gnu.org>
4871
4872 * intervals.c (graft_intervals_into_buffer): Correct the main loop
4873 in the case where OVER is longer than UNDER.
4874
2f71b5ea
MY
48752003-09-22 Masatake YAMATO <jet@gyve.org>
4876
7146d1c1 4877 * window.c (Fset_window_scroll_bars): Validate the value of
2f71b5ea 4878 `vertical_type'.
7146d1c1 4879
0c4da023
KS
48802003-09-21 Kim F. Storm <storm@cua.dk>
4881
4882 * frame.c (Vdefault_frame_scroll_bars): New variable.
4883 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
4884 (syms_of_frame): DEFVAR_LISP it, and initialize according to
4885 window-system default scroll bar position.
4886
b648413b
KS
4887 * window.c (Fwindow_scroll_bars): Doc fix.
4888
8f5b9e34
JD
48892003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4890
854c1a59 4891 * xterm.c (x_set_offset): Take window manager decorations into account.
8f5b9e34 4892
b0f23edf
RS
48932003-09-19 Richard M. Stallman <rms@gnu.org>
4894
4895 * atimer.h: Don't include lisp.h.
4896 (P_): Define it here (as well as elsewhere).
4897
4898 * print.c (Fprin1_to_string): Move the PRINTPREPARE
4899 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
4900
4901 * data.c (Fvariable_binding_locus): New function.
4902 (syms_of_data): defsubr it.
4903 (Flocal_variable_p): Delete duplicate call to indirect_variable.
4904
e1283999
DL
49052003-09-18 Dave Love <fx@gnu.org>
4906
ad5f3636
DL
4907 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
4908
e1283999
DL
4909 * process.c (Fnetwork_interface_info): Fix type error.
4910 (Fnetwork_interface_list): Doc fix.
4911 (read_process_output, read_process_output): Delete unused var.
4912
b8c7fd71
KS
49132003-09-17 Kim F. Storm <storm@cua.dk>
4914
4915 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
4916 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
4917 (Fnetwork_interface_info): Check that ifreq struct has required
4918 fields before accessing them; this requires that those fields are
4919 defined as macros, which may be too restrictive on some platforms,
4920 but it is better than failing on other platforms.
4921 (syms_of_process): Only defsubr above fns when included.
4922
11e0a411
DL
49232003-09-17 Dave Love <fx@gnu.org>
4924
4925 * unexalpha.c: Don't include varargs.h.
4926
e9c50801
KS
49272003-09-17 Kim F. Storm <storm@cua.dk>
4928
4929 * process.c (Fset_process_sentinel): Add sentinel to childp plist
4930 for network process.
4931 (socket_options): Add `:' prefix to option names. Add optbit field.
4932 (set_socket_option): Remove no_error arg and special handling of s < 0.
4933 Return 1<<optbit for known option, 0 for unknown.
4934 Do not interpret 0 as false for boolean option (only nil).
4935 Pass failed option and value to report_file_error.
7146d1c1 4936 (Fset_network_process_options): Replace by Fset_network_process_option.
e9c50801
KS
4937 (Fset_network_process_option): New function to set just one option.
4938 (Fmake_network_process): Allow :coding arg to be a cons.
4939 Allow :server arg to be an integer specifying backlog size.
4940 Remove :options arg, and allow options to be specified directly
4941 as :KEY, VALUE pairs. Parse these options before binding socket.
4942 As before, :reuseaddr t is default for a server process, but this
4943 can now be disabled by specifying :reuseaddr nil.
4944 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
4945 (init_process): Availability of network options is now checked with
4946 simpler syntax (featurep 'make-network-process :OPTION); use loop to
4947 setup features.
4948 (syms_of_process): Fix defsubr's for the replaced functions.
4949
a0fc3644
DL
49502003-09-16 Dave Love <fx@gnu.org>
4951
4952 * Makefile.in: Depend on coding.h.
4953
6df2a645
KS
49542003-09-14 Kim F. Storm <storm@cua.dk>
4955
4956 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
4957 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
4958 (syms_of_process): Defsubr them.
4959
4960 * config.in: Regenerate.
7146d1c1
SM
4961
49622003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4963
4964 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
4965 * m/news-r6.h (XUNMARK): Remove.
4966 * m/mips.h (XUNMARK): Remove.
4967 * m/mips-siemens.h (XUNMARK): Remove.
4968 * m/iris4d.h (XUNMARK): Remove.
4969 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
4970
0930c1a1
SM
49712003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
4972
31003b9e
SM
4973 * lisp.h (VALBITS): Don't remove 1 for the markbit.
4974 (union Lisp_Object): Use unsigned int for types. Remove markbit.
4975 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
4976 (XTYPE): Use unsigned right-shift.
4977 (XMARKBIT, XMARK, XUNMARK): Remove.
4978
0930c1a1
SM
4979 * alloc.c (init_intervals, init_symbol, init_marker):
4980 Don't preallocate anything.
4981 (Fgarbage_collect, mark_object): Ignore the markbit.
4982
4983 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
4984
19bb0fcd 49852003-09-08 Lute Kamstra <lute@gnu.org>
5df034de
LK
4986
4987 * xdisp.c (pint2hrstr): New function.
4988 (decode_mode_spec): Add `%i' and `%I' specs.
4989 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
4990 for `mode-line-format'.
4991
03bb6a06
AS
49922003-09-07 Andreas Schwab <schwab@suse.de>
4993
4994 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
4995 avoid warning.
4996
a6eeaa81 49972003-09-07 Eli Zaretskii <eliz@gnu.org>
2063d89c 4998
0930c1a1 4999 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
2063d89c 5000
ed159bbf
KS
50012003-09-03 Kim F. Storm <storm@cua.dk>
5002
5003 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
5004 change (superseded by 2002-08-30 change); the default blink-off
5005 cursor is now again "no cursor".
5006
fe64a394
JR
50072003-09-01 Jason Rumney <jasonr@gnu.org>
5008
5009 * makefile.w32-in (alloca.o): Remove.
5010 (coding.o): Depend on intervals.h
5011 (emacs.o, bytecode.o): Depend on window.h
5012
c0175e24
DL
50132003-09-01 Dave Love <fx@gnu.org>
5014
5015 * Makefile.in (alloca.o): Remove commands.
5016 (coding.o): Depend on intervals.h composite.h window.h.
5017 (emacs.o): Depend on window.h keyboard.h keymap.h.
5018 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
5019 (bytecode.o): Depend on window.h.
5020
a24d4cb2
JR
50212003-08-31 Jason Rumney <jasonr@gnu.org>
5022
4bc2315e
JR
5023 * w32term.c (w32_per_char_metric): Allow cached metrics to be
5024 returned even when font_type is unknown.
5025
a24d4cb2
JR
5026 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
5027
9d35adc7
JD
50282003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5029
5030 * xterm.c (x_term_init): Initialize new fields in x_display_info.
5031
5032 * xterm.h (struct x_display_info): Add red/green/blue_bits and
5033 *_offset.
5034
5035 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
5036 calculate pixel value.
5037
6f68b035
GM
50382003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
5039
0930c1a1
SM
5040 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
5041 Don't tell redisplay display is accurate when it's actually been
5042 paused for pending input.
6f68b035 5043
4828b4d7
RS
50442003-08-29 Richard M. Stallman <rms@gnu.org>
5045
5046 * dispnew.c (adjust_glyph_matrix): Call window_box
5047 whenever W is nonzero.
5048
5049 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
5050 (Fkill_local_variable, Fmake_variable_frame_local)
0930c1a1 5051 (Flocal_variable_p, Flocal_variable_if_set_p):
4828b4d7
RS
5052 Use indirect_variable to trace thru variable aliases.
5053
5054 * config.in: Updated.
5055
5056 * callint.c (Fcall_interactively): Save and restore
5057 Vthis_command, Vthis_original_command, real_this_command,
5058 and current_kboard->Vlast_command.
5059
5060 * abbrev.c (Fexpand_abbrev): Insert before deleting.
5061
e019878d
GM
50622003-08-29 Gerd Moellmann <gerd@gnu.org>
5063
5064 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
5065
85478bc6
KH
50662003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
5067
0930c1a1 5068 * coding.c (decode_coding_iso2022): Initialize local variable c2.
85478bc6
KH
5069 (decode_coding_sjis_big5): Likewise.
5070
07ce82d3
JR
50712003-08-27 Jason Rumney <jasonr@gnu.org>
5072
d3703de3
JR
5073 * w32.c (sys_pipe): Protect against file descriptor overflow.
5074
ee4a01d1
JR
5075 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
5076
07ce82d3
JR
5077 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
5078
a64387ee 50792003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
72d19c66
LK
5080
5081 * xfns.c (Vgtk_version_string): New variable.
5082 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
5083
a6eeaa81 50842003-08-24 Eli Zaretskii <eliz@gnu.org>
5459e42a 5085
0930c1a1 5086 * term.c (term_init): Remove `const' from buffer_size's declaration.
3d8714e7 5087
5459e42a
EZ
5088 * Makefile.in (msdos.o): Depend on intervals.h.
5089
0930c1a1 5090 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
5459e42a 5091
231d6cfb
JD
50922003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5093
5094 * xterm.h (struct x_display_info): New fields: client_leader_window
5095 and Xatom_wm_client_leader.
5096
5097 * xterm.c (x_initialize): Move call to x_session_initialize to ...
5098 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
5099
5100 * xsmfns.c (create_client_leader_window): New function.
5101 (x_session_initialize): Call create_client_leader_window, take
5102 dpyinfo as argument.
5103
5104 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
5105
5106 * Makefile.in (xsmfns.o): Add more depenedencies.
5107
afa88464
DL
51082003-08-21 Dave Love <fx@gnu.org>
5109
5110 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
5111
f730033e
KH
51122003-08-21 Kenichi Handa <handa@m17n.org>
5113
5114 * term.c (term_init): Fix previous change; don't rely on the
5115 length of `buffer' if TERMINFO is defined.
5116
6dca786c
DL
51172003-08-20 Dave Love <fx@gnu.org>
5118
5119 * atimer.h: Include lisp.h.
5120
5121 * lisp.h (EMACS_LISP_H): New.
5122 (popup_activated_flag): Don't declare.
5123
5124 * alloca.c: Some merging with gnulib. Change logic and doc
5125 concerning (x)malloc/(x)free -- no longer Emacs-specific.
5126 [DO_BLOCK_INPUT]: Don't include lisp.h.
5127 (xmalloc, xfree): Declare.
5128 (malloc): Don't declare.
5129
0930c1a1 5130 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
6dca786c
DL
5131 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
5132 atimer.h, blockinput.h.
5133
5134 * alloc.c (lisp_align_malloc): Change type of `aligned'.
5135
5136 * alloca.s: Removed.
5137
3a06a6d9
RS
51382003-08-19 Gerd Moellmann <gerd@gnu.org>
5139
5140 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
5141 use -lncurses.
5142
5143 * term.c (term_init): Use a buffer of size 4096 for tgetent since
5144 FreeBSD returns something longer than 2044. Abort if the end of
5145 the buffer is overwritten.
5146
27eeee55
MB
51472003-08-19 Miles Bader <miles@gnu.org>
5148
5149 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
5150
2f297815
GM
51512003-08-19 Gerd Moellmann <gerd@gnu.org>
5152
f4446bbf
GM
5153 * alloc.c (lisp_align_malloc): Check for memory full when
5154 allocating ablocks, which also avoids freeing a pointer into an
5155 ablocks structure.
5156
5157 * puresize.h (BASE_PURESIZE): Increase to 1100000.
5158
0930c1a1 5159 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
2f297815 5160
0e7d7aae
RS
51612003-08-16 Richard M. Stallman <rms@gnu.org>
5162
5163 * editfns.c (Fencode_time): Doc fix.
5164
51652003-08-16 David Ponce <david@dponce.com>
5166
5167 * fileio.c (Fwrite_region): Fix conditional expression to issue
5168 the right message.
5169
b6189c3b 51702003-08-16 Juri Linkov <juri@jurta.org>
0e7d7aae
RS
5171
5172 * syntax.c (Fforward_word): Argument changed to optional.
0930c1a1 5173 Set default value to 1.
0e7d7aae 5174
5d551295
KH
51752003-08-15 Kenichi Handa <handa@m17n.org>
5176
5177 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
5178 what autoscaled.
5179 (best_matching_font): Once we find a better scalable font, set
5180 non_scalable_has_exact_height_p to 1.
5181 (try_font_list): Call try_alternative_families to try any family
5182 with the given registry.
5183
1661e56b
AS
51842003-08-09 Andreas Schwab <schwab@suse.de>
5185
f29181dc
AS
5186 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
5187
1661e56b
AS
5188 * print.c (print_string): Fix printing of multibyte string with
5189 nontrivial printcharfun.
5190
465aa50a
JD
51912003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5192
5193 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
5194
5195 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
5196
e430e5ba
KH
51972003-07-31 Kenichi Handa <handa@m17n.org>
5198
5199 * process.c (read_process_output): Return the actually read bytes
5200 instead of the result of decoding.
5201
97e7188e
KH
52022003-07-31 Kenichi Handa <handa@m17n.org>
5203
5204 * xterm.h (struct x_bitmap_record): New member have_mask.
5205
5206 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
5207 to 0.
5208 (x_create_bitmap_from_file): Likewise.
5209 (x_destroy_bitmap): Check have_mask member before freeing a mask.
5210 (x_destroy_all_bitmaps): Likewise.
5211 (x_create_bitmap_mask): Set have_mask member to 1.
5212
b53094d6
RS
52132003-07-30 Richard M. Stallman <rms@gnu.org>
5214
5215 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
5216
631f2082
JD
52172003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5218
5219 * gtkutil.c (xg_mark_data): Update calls to mark_object.
5220
c855f2ca
RS
52212003-07-29 Richard M. Stallman <rms@gnu.org>
5222
5223 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
5224 Conditionalize XIM code on HAVE_XIM.
5225
5226 * fns.c (Fclear_string): New function.
5227 (syms_of_fns): defsubr it.
5228
b6189c3b 52292003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
17e6d491 5230
0930c1a1 5231 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
17e6d491 5232
29ea8ae9
SM
52332003-07-22 Stefan Monnier <monnier@cs.yale.edu>
5234
5235 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
5236
5237 * buffer.c (delete_all_overlays): New function.
5238 * buffer.h (delete_all_overlays): Declare.
5239 * coding.c (run_pre_post_conversion_on_str):
5240 * print.c (temp_output_buffer_setup):
5241 * fileio.c (Finsert_file_contents):
5242 * minibuf.c (get_minibuffer): Use it.
5243
1dd7ccf2
AC
52442003-07-22 Andrew Choi <akochoi@shaw.ca>
5245
5246 * unexmacosx.c (unexec_regions_sort_compare):
5247 (unexec_regions_merge): New functions. Sort and merge unexec
5248 regions before dumping them.
5249
f57bd967
DL
52502003-07-22 Dave Love <fx@gnu.org>
5251
5252 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
5253
7cdee936
SM
52542003-07-21 Stefan Monnier <monnier@cs.yale.edu>
5255
5256 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
5257 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
5258 MARKBIT as the gcmarkbit for strings.
5259
e50886d3
RS
52602003-07-21 Richard M. Stallman <rms@gnu.org>
5261
5262 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
5263
29ea8ae9 5264 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
e50886d3
RS
5265 (syms_of_fns): Corresponding change.
5266
5267 * alloc.c (syms_of_alloc): Doc fixes.
5268
52692003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
5270
5271 * s/netbsd.h: Use -Wl syntax.
5272
fdc39b59
RS
52732003-07-17 Richard M. Stallman <rms@gnu.org>
5274
5275 * xterm.c (xim_initialize): Redo 6/24 change.
5276
9c53385f
SM
52772003-07-15 Stefan Monnier <monnier@cs.yale.edu>
5278
5279 * buffer.c (copy_overlays): Use EMACS_INT for positions.
5280 (Fswitch_to_buffer): Don't signal an error when switching to the same
5281 buffer in a dedicated window.
5282
5283 * alloc.c: Use bitmaps for cons, as was done for floats.
5284 (init_float, init_cons): Let the normal code allocate the first block.
5285 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
5286 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
5287 New macros.
5288 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
5289 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
5290 (live_cons_p): Check the pointer is not past the `conses' array.
5291 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
5292 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
5293 (survives_gc_p): Use CONS_MARKED_P and simplify.
5294 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
5295
dde13196
PE
52962003-07-13 Paul Eggert <eggert@twinsun.com>
5297
5298 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
5299 puts it into BSS instead, at least on Solaris 8 and 9.
5300 This is a valid optimization, and it may occur on other platforms,
5301 so Emacs should not assume that initializing a static variable to
5302 zero puts it into data.
5303 * alloc.c (pure, staticvec):
5304 Initialize these arrays to nonzero, so that they're not
5305 put into BSS by that optimization.
5306
a801bc34
SM
53072003-07-13 Stefan Monnier <monnier@cs.yale.edu>
5308
5309 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
5310 (lisp_align_malloc): Use posix_memalign is available.
5311 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
5312 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
5313 for consistency. Update users.
5314
0c8b2afa
RS
53152003-07-13 Richard M. Stallman <rms@gnu.org>
5316
5317 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
5318
668c2ab0
JB
53192003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
5320
5321 * xterm.c (x_bitmap_icon,x_wm_set_icon_pixmap): Modify to add mask,
5322 and use the Gtk+ function gtk_window_icon_from_file if available.
5323
5324 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
5325 handle mask of bitmaps.
5326 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
5327 mask property.
5328 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
5329
5330 * xterm.h (xg_set_icon): New function.
5331
800bebe3
RS
53322003-07-12 Paul Eggert <eggert@twinsun.com>
5333
5334 * unexelf.c (unexec): Consider a section to precede the .bss
5335 section if its addresses overlap that of .bss.
5336
69e38995
RS
53372003-07-12 Richard M. Stallman <rms@gnu.org>
5338
5339 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
5340
5341 * config.in (HAVE_CRTIN): Add #undef.
5342 (INLINE): Really inline only if OPTIMIZE is defined.
5343
5344 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
5345 END_FILES_1.
5346 (START_FILES_1, END_FILES_1): New macros (conditional).
a801bc34 5347 (LD_SWITCH_SYSTEM_TEMACS): Define.
69e38995
RS
5348
5349 * s/openbsd.h: Don't include bsd4-3.h.
a801bc34
SM
5350 (TERMINFO): Define.
5351 (LIBS_TERMCAP): Define.
5352 (LD_SWITCH_SYSTEM): Define (two definitions).
69e38995
RS
5353
5354 * xfns.c: Include libpng/png.h instead of png.h.
5355
f1d0c238
AS
53562003-07-11 Andreas Schwab <schwab@suse.de>
5357
5358 * buffer.c (modify_overlay): Update prototype.
5359 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
5360 Likewise.
5361
5f6bf5fe
SM
53622003-07-09 Stefan Monnier <monnier@cs.yale.edu>
5363
5364 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
5365 (struct interval): Move to intervals.h.
5366 (struct Lisp_Marker): Use EMACS_INT for position info.
5367 (forward_point): Remove prototype of defunct function.
5368 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
5369 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
5370 (syms_of_textprop, set_text_properties): Remove prototypes that are
5371 already in intervals.h.
5372
5373 * intervals.h (struct interval): Move from lisp.h.
5374 Use EMACS_INT for position and size info.
5375
5376 * coding.c: Include intervals.h for Fset_text_properties.
5377
5378 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
5379 position and length information.
5380
2765b457
SM
53812003-07-09 Stefan Monnier <monnier@cs.yale.edu>
5382
5383 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
5384 position and length information.
5385
2410d73a
SM
53862003-07-09 Stefan Monnier <monnier@cs.yale.edu>
5387
5388 Change overlays_after and overlays_before so the overlays themselves
5389 are linked into lists, rather than using cons cells. After all each
5390 Lisp_Misc already occupies 5 words, so we can add a `next' field to
5391 Lisp_Overlay for free and save up one cons cell per overlay (not
5392 to mention one indirection when traversing the list of overlay).
5393
5394 * lisp.h (struct Lisp_Overlay): New field `next'.
5395
5396 * buffer.h (struct buffer): Change overlays_before and overlays_after
5397 from Lisp lists of overlays to pointers to overlays.
5398
5399 * buffer.c (overlay_strings, recenter_overlay_lists):
5400 Fix typo in eassert in last commit.
5401 (unchain_overlay): New function.
5402 (add_overlay_mod_hooklist): Use AREF.
5403 (copy_overlays, reset_buffer, overlays_at, overlays_in)
5404 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
5405 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
5406 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
5407 (report_overlay_modification, evaporate_overlays, init_buffer_once):
5408 Adjust to new type of overlays_(before|after).
5409
5410 * alloc.c (mark_object): Mark the new `next' field of overlays.
5411 (mark_buffer): Manually mark the overlays_(after|before) fields.
5412
5413 * coding.c (run_pre_post_conversion_on_str):
5414 * editfns.c (overlays_around):
5415 * xdisp.c (load_overlay_strings):
5416 * fileio.c (Finsert_file_contents):
5417 * indent.c (current_column):
5418 * insdel.c (signal_before_change, signal_after_change):
5419 * intervals.c (set_point_both):
5420 * print.c (temp_output_buffer_setup): Use new type for
5421 overlays_(before|after).
5422
04812929
SM
54232003-07-08 Stefan Monnier <monnier@cs.yale.edu>
5424
5425 * buffer.c (report_overlay_modification): Don't run hooks while
5426 traversing the list of overlays.
5427
5428 * buffer.h (struct buffer): Use an int for overlay_center.
5429 (overlays_at, evaporate_overlays, recenter_overlay_lists)
5430 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
5431
5432 * buffer.c (reset_buffer, recenter_overlay_lists)
5433 (adjust_overlays_for_insert, adjust_overlays_for_delete)
5434 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
5435 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
5436 (overlays_at, evaporate_overlays, recenter_overlay_lists)
5437 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
5438
5439 * xdisp.c (fast_find_position): Remove unused var.
5440
5441 * cmds.c (Qexpand_abbrev): New sym.
5442 (syms_of_cmds): Initialize it.
5443 (internal_self_insert): Use it to call expand-abbrev.
5444
2e7ecf15
KS
54452003-07-09 Kim F. Storm <storm@cua.dk>
5446
f9711de4 5447 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
2e7ecf15 5448 was configured with --without-xim.
42f81f64 5449 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
2e7ecf15 5450
c6de56a0
RS
54512003-07-07 Richard M. Stallman <rms@gnu.org>
5452
5453 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
5454
5455 * alloc.c (Fgarbage_collect): Doc fix.
5456
b6189c3b 54572003-07-07 Nozomu Ando <nand@mac.com>
b93fb365
KH
5458
5459 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
5460
bfe1a3f7
SM
54612003-07-06 Stefan Monnier <monnier@cs.yale.edu>
5462
04812929
SM
5463 * minibuf.c (read_minibuf): UNGCPRO before returning.
5464 (Ftry_completion, Fall_completions): Doc fix.
5465
bfe1a3f7
SM
5466 * alloc.c (live_float_p): Check that p is not past the `floats' array,
5467 now that `floats' is not the last element of the struct any more.
5468
ee79d1aa
JR
54692003-07-06 Jason Rumney <jasonr@gnu.org>
5470
5471 * w32term.h (ClipboardSequence_Proc): New type.
5472
5473 * w32fns.c (clipboard_sequence_fn): New variable.
5474 (globals_of_w32fns): Initialize it.
5475
5476 * w32select.c (last_clipboard_sequence_number): New variable.
5477 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
5478 number if possible.
5479
49723c04
SM
54802003-07-06 Stefan Monnier <monnier@cs.yale.edu>
5481
4698665f
SM
5482 * m/amdx86-64.h (MARKBIT):
5483 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
5484 MARKBIT and ARRAY_MARK_FLAG any more.
5485
5486 * m/hp800.h (XSETMARKBIT):
5487 * m/sr2k.h (XSETMARKBIT):
5488 * lisp.h (XSETMARKBIT): Remove unused macro.
5489
49723c04
SM
5490 * lisp.h (mark_object): Change prototype.
5491
5492 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
5493 (last_marked): Change accordingly.
5494 (mark_interval, mark_maybe_object, mark_maybe_pointer)
5495 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
5496 (mark_buffer): Update calls to mark_object.
5497
5498 * bytecode.c (mark_byte_stack):
5499 * fns.c (sweep_weak_table):
5500 * keyboard.c (mark_kboards): Update calls to mark_object.
5501
1d660eca
JR
55022003-07-06 Jason Rumney <jasonr@gnu.org>
5503
5504 * alloc.c (struct ablock): Only include padding when there is some.
5505
618b5ae4
SM
55062003-07-04 Stefan Monnier <monnier@cs.yale.edu>
5507
5508 * alloc.c (ALIGN): Add casts to simplify usage.
5509 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
5510 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
5511 (struct ablock, struct ablocks): New types.
5512 (free_ablock): New global var.
5513 (lisp_align_malloc, lisp_align_free): New functions.
5514 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
5515 (struct float_block): Reorder and add gcmarkbits.
5516 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
5517 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
5518 (init_float, make_float): Use lisp_align_malloc.
5519 (free_float, live_float_p): Don't use `type' any more.
5520 (make_float): Use FLOAT_UNMARK to access to mark bit.
5521 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
5522 Use FLOAT_MARKED_P to access the mark bit.
5523 (pure_alloc): Simplify use of ALIGN.
5524 (mark_object): Use FLOAT_MARK to access the mark bit.
5525 (gc_sweep): Use new macros to access the float's mark bit.
5526 (init_alloc_once): Init free_ablock.
5527
5528 * lisp.h (struct Lisp_Float): Remove unused field `type'.
5529
3ef06d12
SM
55302003-06-27 Stefan Monnier <monnier@cs.yale.edu>
5531
5532 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
5533 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
5534 (allocate_buffer): Move.
5535 (string_bytes): Don't mask markbit of `size_byte'.
5536 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
5537 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
5538 Use the `size' field of buffers (rather than the `name' field) for
5539 the mark bit, as is done for all other vectorlike objects.
5540 Use the new macros to access the mark bit of vectorlike objects.
5541
e81043aa
RS
55422003-06-26 Richard M. Stallman <rms@gnu.org>
5543
5544 * puresize.h (BASE_PURESIZE): Increment base size.
5545
5546 * xdisp.c (fast_find_position): Enable Gerd's new definition.
5547
5548 * xterm.c (xim_initialize): Undo previous change.
5549
2d0834cc
SM
55502003-06-26 Stefan Monnier <monnier@cs.yale.edu>
5551
5552 * alloc.c (survives_gc_p): Simplify.
5553
5554 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
5555
5556 * window.c (Fset_window_dedicated_p): Simplify.
5557 (display_buffer_1): Don't raise the win from which minibuf was entered.
5558 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
5559 (Fminibuffer_selected_window): Simplify.
5560
5561 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
5562
5563 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
5564 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
5565
5566 * insdel.c (check_markers, adjust_markers_for_delete)
5567 (adjust_markers_for_insert, adjust_markers_for_replace)
5568 (prepare_to_modify_buffer, RESTORE_VALUE):
5569 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
5570 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
5571 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
5572 * alloc.c (Fmake_marker, free_marker, gc_sweep):
5573 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
5574 * editfns.c (save_excursion_restore, transpose_markers):
5575 * window.c (delete_window):
5576 * xdisp.c (message_dolog): Update for new types.
5577
d54ae3d8
JD
55782003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5579
a5f696ac
JD
5580 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
5581 (realize_default_face): Use default_face_done_p for the force_p
2d0834cc 5582 argument to set_lface_from_font_name. Set default_face_done_p to one.
a5f696ac
JD
5583
5584 * frame.c (make_frame): Initialize default_face_done_p.
5585
5586 * frame.h (struct frame): Add default_face_done_p.
5587
d54ae3d8
JD
5588 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
5589 will be defined.
5590
2336fe58
SM
55912003-06-25 Stefan Monnier <monnier@cs.yale.edu>
5592
5593 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
5594 Initialize the new field `gcmarkbit'.
5595 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
5596 (mark_interval_tree): Don't mark the tree separately from the nodes.
5597 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
5598 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
5599 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
5600
5601 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
5602 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
5603 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
5604 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
5605 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
5606
bcea31c2
DL
56072003-06-24 Dave Love <fx@gnu.org>
5608
5609 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
5610
5611 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
5612 from gnulib.
5613
2601f59e
RS
56142003-06-21 Richard M. Stallman <rms@gnu.org>
5615
5616 * fileio.c (Fwrite_region): Alternate messages
5617 for append and partial write.
5618
5619 * keyboard.c (read_key_sequence): When converting upcase fn key to
5620 downcase, update fkey and keytran so `backspace' gets translated.
5621
5622 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
5623
5624 * process.c (wait_reading_process_input): Don't signal SIGIO
5625 in batch mode.
5626
b5d2c621
KH
56272003-06-17 Kenichi Handa <handa@m17n.org>
5628
5629 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
5630 composite.h.
5631
5632 * xselect.c: Don't include charset.h, coding.h, composite.h.
5633 (Qforeign_selection): New variable.
5634 (syms_of_xselect): Intern and static it.
5635 (selection_data_to_lisp_data): Return a unibyte string made from
5636 data with `foreign-selection' text property.
5637
6793bc63
SM
56382003-06-15 Stefan Monnier <monnier@cs.yale.edu>
5639
5640 * termhooks.h (EVENT_INIT): New macro.
5641
5642 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
5643
5644 * alloc.c (mark_kboards): Move to keyboard.c.
5645
5646 * keyboard.c (record_asynch_buffer_change, read_avail_input):
5647 * xterm.c (x_dispatch_event):
5648 * xmenu.c (find_and_call_menu_selection):
5649 * xdisp.c (handle_tool_bar_click):
5650 * w32menu.c (menubar_selection_callback):
5651 * sysdep.c (kbd_input_ast, read_input_waiting):
5652 * msdos.c (dos_rawgetc):
5653 * macterm.c (mac_check_for_quit_char):
5654 * macmenu.c (menubar_selection_callback):
5655 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
5656 data to kbd_buffer_store_event.
5657
b3ea810c
KS
56582003-06-15 Kim F. Storm <storm@cua.dk>
5659
5660 * xdisp.c (x_fix_overlapping_area): Always use area relative X
6793bc63 5661 to fix redisplay problem with tall characters (such as \e,AC\e(B).
b3ea810c 5662
b8f75eda
KG
56632003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
5664
5665 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
5666
ba92ce48
KH
56672003-06-12 Kenichi Handa <handa@m17n.org>
5668
5669 * fileio.c (Fwrite_region): Save and restore restriction.
5670
b80263be
DL
56712003-06-12 Dave Love <fx@gnu.org>
5672
5673 * alloca.c (alloca): Declare arg as size_t.
5674
6793bc63
SM
5675 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
5676 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
b80263be 5677
b23c0a83
DL
56782003-06-11 Dave Love <fx@gnu.org>
5679
5680 * search.c (shrink_regexp_cache): Use xrealloc.
5681 (syms_of_search): Use xmalloc.
5682
700e47c2
KS
56832003-06-10 Kim F. Storm <storm@cua.dk>
5684
5685 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
5686 Adjust phys_cursor.x to be relative to window box, rather than
5687 text area before checking -- to ensure cursor is redrawn when
5688 exposing window.
5689 Note: This also fixes a similar (older) bug if display margins
5690 are present.
5691
f11aa0b2
KH
56922003-06-06 Kenichi Handa <handa@m17n.org>
5693
5694 * coding.c (encoding_buffer_size): If coding->type is
5695 coding_type_ccl, double magnification on CRLF encoding.
5696
3d143690
JR
56972003-06-06 Jason Rumney <jasonr@gnu.org>
5698
5699 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
5700 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
5701
5702 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
5703 Mac too.
5704
f16205ca
DL
57052003-06-05 Dave Love <fx@gnu.org>
5706
b23c0a83
DL
5707 * strftime.c: Merge changes from gnulib.
5708
f16205ca
DL
5709 * mktime.c (__mktime_internal): Merge changes from gnulib
5710 involving year 69 and dst2.
5711
5712 Changes to merge with gnulib version and be consistent with the
5713 autoconf test:
5714
6793bc63
SM
5715 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
5716 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
f16205ca
DL
5717 [HAVE_LOCALE_H]: Include locale.h.
5718 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
5719
9b87a0bc
KS
57202003-06-05 Kim F. Storm <storm@cua.dk>
5721
5722 * window.c (coordinates_in_window): Convert X and Y to window
5723 relative coordinates inside mode-line and header-line parts.
5724 Convert X and Y to margin area relative coordinates inside left
5725 and right display margin parts.
5726
5a8a15ec
JR
57272003-06-05 Jason Rumney <jasonr@gnu.org>
5728
5729 * w32fns.c (add_system_logical_colors_to_map): New function.
5730 (Fx_open_connection): Use it.
5731
01ed8ff1
SM
57322003-06-04 Stefan Monnier <monnier@cs.yale.edu>
5733
5734 * process.c (allocate_pty): Revert part of the previous patch.
5735 (Faccept_process_output): Simplify.
5736
b427b65d
JR
57372003-06-04 Jason Rumney <jasonr@gnu.org>
5738
5739 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
5740
5741 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
5742 (lispy_mouse_wheel_names): Remove.
5743 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
5744 Always define drag_and_drop_syms.
5745
5746 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
5747 WHEEL_EVENT events.
5748
914a8c47
SM
57492003-06-03 Stefan Monnier <monnier@cs.yale.edu>
5750
01ed8ff1
SM
5751 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
5752
914a8c47
SM
5753 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
5754
adcb132c
JD
57552003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5756
5757 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
5758 menu item label.
5759
be781fa7
RS
57602003-06-03 Richard M. Stallman <rms@gnu.org>
5761
5762 * window.c (Fwindow_edges): Doc fix.
5763 (Fwindow_pixel_edges, Fwindow_inside_edges)
5764 (Fwindow_inside_pixel_edges): New functions.
5765 (syms_of_window): defsubr them.
5766
5767 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
5768 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
5769
914a8c47
SM
57702003-06-02 Stefan Monnier <monnier@cs.yale.edu>
5771
5772 * dispnew.c (Fsit_for): Don't lie about the number of args.
5773
5b07197a
DL
57742003-06-02 Dave Love <fx@gnu.org>
5775
5776 * callproc.c: Use HAVE_FCNTL_H, not USG5.
5777 (syms_of_callproc) <process-environment>: Doc fix.
5778
5779 * doc.c: Use HAVE_FCNTL_H, not USG5.
5780
5781 * xfaces.c (font_rescale_ratio): Fix for K&R.
5782
5783 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
5784
5785 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
5786
5787 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
5788
5789 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
5790 (xg_create_frame_widgets): Use ENCODE_UTF_8.
5791
d7107586 5792 * xterm.c (Qutf_8): Move to coding.c
5b07197a
DL
5793
5794 * xmenu.c (ENCODE_MENU_STRING): New.
5795 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
5796 Use it.
5797
5798 * coding.h (ENCODE_UTF_8): New.
5799 (Qutf_8): Declare.
5800
5801 * coding.c (Qutf_8): New.
5802 (syms_of_coding): Intern it.
5803
5804 * fns.c: Doc fixes.
5805
7335b336
KH
58062003-06-02 Kenichi Handa <handa@m17n.org>
5807
5808 * buffer.c (Fset_buffer_multibyte): Fix previous change.
5809
914a8c47
SM
58102003-06-01 Stefan Monnier <monnier@cs.yale.edu>
5811
5812 * lread.c (openp): Make sure STR is a string.
5813
9862c135
JR
58142003-06-01 David Ponce <david@dponce.com>
5815
5816 * termhooks.h (enum event_kind): Added new WHEEL_EVENT event.
5817 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
5818
5819 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
5820 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
5821 (discard_mouse_events): Discard WHEEL_EVENT events too.
5822 (lispy_wheel_names, wheel_syms): New.
5823 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
5824 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX
5825 defined.
914a8c47 5826 (make_lispy_event): Add WHEEL_EVENT handler.
9862c135
JR
5827
5828 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
5829 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
5830 WHEEL_EVENT events.
5831
f984e73e
JPW
58322003-05-31 John Paul Wallington <jpw@gnu.org>
5833
5834 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
5835 timer are in lisp/emacs-lisp.
5836
1efcd78f
KH
58372003-05-31 Kenichi Handa <handa@m17n.org>
5838
458c8af4
KH
5839 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
5840 region when a buffer is changed to unibyte.
5841
1efcd78f
KH
5842 * charset.h (VALID_LEADING_CODE_P): New macro.
5843 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
5844
778e2804
KH
5845 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
5846 is nonzero, accept multibyte form of eight-bit-control chars.
5847 (decode_composition_emacs_mule): Likewise.
5848 (decode_coding_emacs_mule): Likewise.
5849 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
5850 multibyte form of eight-bit-control chars.
5851
5852 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
5853 (Finsert_file_contents): If coding-system-for-read is bound to
5854 Qauto_save_coding, use the coding system emacs-mule with special
5855 setting for recovering a file.
5856 (choose_write_coding_system): On auto saving, use the coding
5857 system emacs-mule with special setting for auto saving.
5858 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
5859
034060e4
KH
58602003-05-30 Kenichi Handa <handa@m17n.org>
5861
5862 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
5863 properly before calling ccl_driver.
5864
778e2804 5865 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
034060e4
KH
5866
5867 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is
5868 nonzero.
5869 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
5870 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
5871
595f5aa5
GM
58722003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
5873
5874 * xfaces.c (realize_default_face): Do not abort if lface is
5875 non-existent - reverts change from 2003-05-19.
5876
103e0180
KH
58772003-05-29 Kenichi Handa <handa@m17n.org>
5878
5879 * coding.c (decode_coding_iso2022): Pay attention to the byte
5880 sequence of CTEXT extended segment, and retain those bytes as is.
5881
58822003-05-28 Kenichi Handa <handa@m17n.org>
5883
5884 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjusted for the name change
5885 of CODING_REPLACEMENT_CHARACTER.
5886 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
5887 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
5888 check this flag on encoding.
5889 (encode_coding_sjis_big5): Check
5890 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
5891 (Fset_terminal_coding_system_internal): Set
5892 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
5893 instead of setting CODING_FLAG_ISO_SAFE flag in
5894 terminal_coding.flags.
5895
5896 * coding.h (CODING_REPLACEMENT_CHARACTER): Renamed from
5897 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
5898 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
5899
ff6a3bfb 59002003-05-28 Richard M. Stallman <rms@gnu.org>
45f266dc 5901
ff6a3bfb
RS
5902 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
5903
5904 * eval.c (unbind_to): Move init of this_binding to separate statement.
45f266dc 5905
1963c428
KS
59062003-05-28 Kim F. Storm <storm@cua.dk>
5907
5908 * xdisp.c (expose_window): Fix error in calculation of
5909 window relative coordinates of area to redisplay.
5910
2b5d4601
JR
59112003-05-27 Jason Rumney <jasonr@gnu.org>
5912
5913 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
5914
1c64a4a2
JB
59152003-05-27 David Ponce <david@dponce.com>
5916
5917 Handle W32 mouse wheel events as mouse click events, like in X.
5918
5919 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
5920 MOUSE_WHEEL_EVENT anymore.
5921
5922 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
5923 Scrolling down/up the mouse wheel is respectively mapped to mouse
5924 button 4 and 5.
5925 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
5926 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
5927 WM_MOUSEWHEEL events.
5928
2d031b89
AS
59292003-05-27 Andreas Schwab <schwab@suse.de>
5930
20464fdf
AS
5931 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
5932
2d031b89
AS
5933 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
5934 partially visible line.
5935
5936 * alloc.c (Fgarbage_collect): Fix last change.
5937
97bc76d4
JPW
59382003-05-26 John Paul Wallington <jpw@gnu.org>
5939
5940 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
5941
56613f06
SM
59422003-05-25 Stefan Monnier <monnier@cs.yale.edu>
5943
5944 * window.c (Fset_window_buffer): Add type of `keep_margins'.
5945 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
5946
5947 * window.h (window_box_text_cols): Declare.
5948
5949 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
5950 (x_draw_vertical_border): Remove unused var `f'.
5951
5952 * xfaces.c (build_scalable_font_name): Remove `unused var
5953 pixel_size' warning.
5954
5955 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
5956
5957 * unexelf.c (unexec): Remove `unused var n' warning.
5958
5959 * strftime.c (my_strftime_localtime_r): Remove `defined but
5960 unused' warning.
5961
5962 * process.c (allocate_pty): Remove `unused var stb' and
5963 `cp might be used uninitialized' warnings.
5964
5965 * dispnew.c (mode_line_string): Remove unused var `f'.
5966
5967 * coding.c (find_safe_codings): Remove unused var `i'.
5968
5969 * bytecode.c (Fbyte_code): Remove `unused val' warning.
5970
5971 * buffer.c (Fkill_buffer): Remove unused var `list'.
5972
5973 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
5974
93421a1f
JD
59752003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5976
5977 * frame.c (make_frame): Condition want_fullscreen with
5978 HAVE_WINDOW_SYSTEM.
5979
c4b8aebc
JB
59802003-05-25 Juanma Barranquero <lektu@terra.es>
5981
5982 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
5983 (Fwindow_scroll_bars): Fix typo in docstring.
5984
0416870b
KS
59852003-05-24 Kim F. Storm <storm@cua.dk>
5986
5987 The following changes serve several purposes:
5988
5989 1) Swap the position of fringes and display margins in windows, i.e.
5990 the fringes are now displayed between the margins and the text area
5991 (by default).
5992
5993 2) Allow fringe and scroll bar parameters to be set per-buffer and
5994 per-window (like display margins). Such settings are now stored
5995 in window configurations, preserved when frames are resized, and
9018a88e 5996 copied when windows are split vertically or horizontally.
0416870b
KS
5997 Several bugs related to display margins have been fixed.
5998
5999 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
9018a88e 6000
0416870b
KS
6001 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
6002 rather than FRAME_WIDTH (FRAME_FONT (f)).
6003
6004 5) Introduce a consistent naming of variables, members and macros
6005 depending on whether their value is measured in pixels or in
6006 canonical columns/lines. Pixel dimensions are named *_width and
6007 *_height, while canonical columns/lines are named *_cols and
6008 *_lines. Pixel positions are named *_x and *_y, while column/line
6009 positions are named *_col and *_line.
6010
6011 6) Consolidate more of the X, W32, and MAC gui code by moving
6012 common data into struct frame, and generalize it for the non-gui
6013 case by using suitable defaults.
6014
6015 7) Cleanup and consolidate the macros controlling frame and window
6016 layout into frame.h and window.h, and generalize the use of the
6017 various window_box_* functions (enhanced to handle the new fringe
6018 position and the per-window fringe and scroll bar settings).
6019
6020 * frame.h (struct frame): Rename members height to text_lines,
6021 width to text_cols, window_height to total_lines, window_width to
6022 total_cols, new_height to new_text_lines, new_width to
6023 new_text_cols. All uses changed.
6024 (struct frame): New members which consolidate common members of
6025 x_output, w32_output, and mac_output structures: left_pos,
6026 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
6027 win_gravity, size_hint_flags, border_width, internal_border_width,
6028 line_height, fringe_cols, left_fringe_width, right_fringe_width,
6029 want_fullscreen. All uses changed.
6030 (struct frame): New member column_width contaning the canonical
6031 column width, analogue to line_height. All uses changed.
6032 (struct frame): Rename members scroll_bar_pixel_width to
6033 config_scroll_bar_width, and scroll_bar_cols to
6034 config_scroll_bar_cols. All uses changed.
6035 (struct frame): New member scroll_bar_actual_width which
6036 consolidates and renames the vertical_scroll_bar_extra member of
6037 x_output, w32_output, and mac_output structures. All uses changed.
6038 (FRAME_PIXEL_HEIGHT): Renamed from PIXEL_HEIGHT and moved
6039 from x/w32/macterm.h files. All uses changed. Also change code
6040 which referred to f->output_data...->pixel_height.
6041 (FRAME_PIXEL_WIDTH): Renamed from PIXEL_WIDTH and moved
f63fd14e 6042 from x/w32/macterm.h files. All uses changed. Also change code
0416870b
KS
6043 which referred to f->output_data...->pixel_width.
6044 (FRAME_LINES): Renamed from FRAME_HEIGHT. All uses changed.
6045 Also change code which referred to f->height.
6046 (FRAME_COLS): Renamed from FRAME_WIDTH. All uses changed.
6047 Also change code which referred to f->width.
6048 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
6049 to update new_text_lines and new_text_cols members directly.
6050 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Renamed from
6051 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
6052 (FRAME_CONFIG_SCROLL_BAR_COLS): Renamed from
6053 FRAME_SCROLL_BAR_COLS. All uses changed.
6054 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
6055 Renamed from FRAME_LEFT_SCROLL_BAR_WIDTH and
6056 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
6057 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
6058 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
6059 (FRAME_TOTAL_COLS): Renamed from FRAME_WINDOW_WIDTH.
6060 (SET_FRAME_COLS): Renamed from SET_FRAME_WIDTH.
6061 (FRAME_TOTAL_COLS_ARG): Renamed from FRAME_WINDOW_WIDTH_ARG.
6062 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
6063 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
6064 (FRAME_LINE_HEIGHT): Renamed from CANON_Y_UNIT. Unconditionally
6065 return line_height member (it now has proper value also for
6066 non-window frames).
6067 (FRAME_COLUMN_WIDTH): Renamed from CANON_X_UNIT. Unconditionally
6068 return new column_width member (rather than the default font width).
6069 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
6070 (FRAME_RIGHT_FRINGE_WIDTH): Renamed from FRAME_X_... and moved
6071 from x/w32/macterm.h files. Unconditionally return corresponding
6072 member of frame structure (they now have proper values also for
6073 non-window frames).
6074 (FRAME_TOTAL_FRINGE_WIDTH): Renamed from FRAME_FRINGE_WIDTH.
6075 Calculate return value from left and right widths.
6076 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
6077 internal_border_width member (has proper value for non-window frame).
6078 (FRAME_PIXEL_X_FROM_CANON_X): Renamed from PIXEL_X_FROM_CANON_X.
6079 (FRAME_PIXEL_Y_FROM_CANON_Y): Renamed from PIXEL_Y_FROM_CANON_Y.
6080 (FRAME_CANON_X_FROM_PIXEL_X): Renamed from CANON_X_FROM_PIXEL_X.
6081 (FRAME_CANON_Y_FROM_PIXEL_Y): Renamed from CANON_Y_FROM_PIXEL_Y.
6082 (FRAME_LINE_TO_PIXEL_Y): Renamed from CHAR_TO_PIXEL_ROW,
6083 consolidated from xterm.h, macterm.h, and w32term.h.
6084 (FRAME_COL_TO_PIXEL_X): Renamed from CHAR_TO_PIXEL_COL,
6085 consolidated from xterm.h, macterm.h, and w32term.h.
6086 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Renamed from
6087 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
6088 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Renamed from
6089 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
6090 (FRAME_PIXEL_Y_TO_LINE): Renamed from PIXEL_TO_CHAR_ROW
6091 consolidated from x/mac/w32term.h.
6092 (FRAME_PIXEL_X_TO_COL): Renamed from PIXEL_TO_CHAR_COL
6093 consolidated from x/mac/w32term.h.
6094 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Renamed from
6095 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
6096 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Renamed from
6097 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
6098
6099 * window.h (struct window): Rename members left to left_col,
6100 top to top_line, height to total_lines, width to total_cols,
6101 left_margin_width to left_margin_cols, right_margin_width to
6102 right_margin_cols, orig_height to orig_total_lines, orig_top to
6103 orig_top_line. All uses changed.
6104 (struct window): New members left_fringe_width, right_fringe_width,
6105 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
6106 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
6107 New macros primarily used to simplify other macros.
6108 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
6109 referred to XINT (w->width).
6110 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
6111 referred to XINT (w->height).
6112 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
6113 referred to XINT (w->width) * canon_x_unit.
6114 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
6115 referred to XINT (w->height) * canon_y_unit.
6116 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
6117 referred to XINT (w->left).
6118 (WINDOW_RIGHT_EDGE_COL): Renamed from WINDOW_RIGHT_EDGE. Change
6119 all uses and code that referred to XINT (w->left) + XINT (w->width).
6120 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
6121 referred to XINT (w->top).
6122 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
6123 referred to XINT (w->top) + XINT (w->height).
6124 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
6125 referred to XINT (w->left) * canon_x_unit.
6126 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
6127 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
6128 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
6129 referred to XINT (w->top) * canon_y_unit.
6130 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
6131 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
6132 (WINDOW_LEFTMOST_P): New macro.
6133 (WINDOW_BOX_LEFT_EDGE_COL): Renamed from WINDOW_LEFT_MARGIN.
6134 All uses changed.
6135 (WINDOW_BOX_RIGHT_EDGE_COL): Renamed from WINDOW_RIGHT_MARGIN.
6136 All uses changed.
6137 (WINDOW_BOX_LEFT_EDGE_X): Renamed from
6138 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
6139 Do not exclude left fringe width.
6140 (WINDOW_BOX_RIGHT_EDGE_X): Renamed from
6141 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
6142 Do not exclude fringe widths.
6143 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
6144 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
6145 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
6146 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
6147 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
6148 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
6149 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
6150 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
6151 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
6152 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
6153 New macros. Change code which referenced corresponding
6154 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
6155 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
6156 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
6157 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
6158 allow per-window scroll-bar settings.
6159 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
6160 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
6161 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
6162 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
6163 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
6164 FRAME_SCROLL_BAR_WIDTH.
6165 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
9018a88e 6166 (WINDOW_SCROLL_BAR_AREA_X): New macros.
0416870b
KS
6167 (WINDOW_HEADER_LINE_HEIGHT): Renamed from
6168 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
6169 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Renamed from
6170 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
6171 (WINDOW_BOX_TEXT_HEIGHT): Renamed from
6172 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
6173 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
6174 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
6175 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Moved here from dispextern.h.
6176 (WINDOW_LEFT_MARGIN_WIDTH): Renamed from
6177 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
6178 (WINDOW_RIGHT_MARGIN_WIDTH): Renamed from
6179 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
6180 (window_from_coordinates): Update prototype.
6181 (Fset_window_buffer): Update EXFUN.
6182 (set_window_buffer): Update prototype.
9018a88e 6183
0416870b 6184 * dispextern.h (struct glyph_matrix): Rename members window_left_x
9018a88e 6185 to window_left_col, window_top_y to window_top_line. All uses
0416870b
KS
6186 changed.
6187 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
6188 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
6189 internal_border_width is now set to 0 for non-window frames.
6190 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
6191 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
6192 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
6193 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
6194 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
6195 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
6196 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
6197 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
6198 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
9018a88e 6199 Move to window.h and renamed [see window.h changes].
0416870b
KS
6200 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
6201 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
9018a88e
SM
6202 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
6203 Use WINDOW_TOTAL_LINES.
0416870b
KS
6204 (frame_update_line_height): Remove prototype.
6205
6206 * buffer.h (struct buffer): Rename members measured in columns:
6207 left_margin_width to left_margin_cols, right_margin_width to
6208 right_margin_cols. All uses changed.
6209 New members left_fringe_width, right_fringe_width,
6210 fringes_outside_margins for per-buffer fringe settings.
6211 New members scroll_bar_width and vertical_scroll_bar_type for
6212 per-buffer scroll bar settings.
6213
6214 * buffer.c (init_buffer_once): Set buffer_defaults and
6215 buffer_local_flags for new buffer-local variables
6216 left_fringe_width, right_fringe_width, fringes_outside_margins,
6217 scroll_bar_width, and vertical_scroll_bar_type.
6218 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
6219 default-* variables for them.
6220
6221 * dispnew.c: Make (many) trivial substitutions for renamed and
6222 new macros in dispextern.h, frame.h and window.h.
6223 (mode_line_string): No need to adjust width for mode lines, as it
6224 is already adjusted by the caller.
6225 (marginal_area_string): Handle fringes inside/outside margins.
9018a88e 6226
0416870b
KS
6227 * frame.c: Make (many) trivial substitutions for renamed and
6228 new macros in dispextern.h, frame.h and window.h.
6229 (make_frame): Initialize left_fringe_width, right_fringe_width,
6230 fringe_cols, scroll_bar_actual_width, border_width,
6231 internal_border_width, column_width, line_height, x_pixels_diff,
6232 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
6233 members with values suitable for a non-window frames.
6234
6235 * gtkutil.c: Make (many) trivial substitutions for renamed and
6236 new macros in dispextern.h, frame.h and window.h.
9018a88e 6237
0416870b
KS
6238 * indent.c: Make (few) trivial substitutions for renamed and
6239 new macros in dispextern.h, frame.h and window.h.
6240
6241 * keyboard.c: Make (many) trivial substitutions for renamed and
6242 new macros in dispextern.h, frame.h and window.h.
6243 (make_lispy_event): Use window positions returned from
6244 window_from_coordinates when constructing the lisp event for
6245 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
6246 (incorrect) values locally.
6247 (make_lispy_movement): Use window positions returned from
6248 window_from_coordinates when constructing the lisp event, rather
6249 than calculating (incorrect) values locally.
6250
6251 * scroll.c: Make (some) trivial substitutions for renamed and
6252 new macros in dispextern.h, frame.h and window.h.
6253
6254 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
6255 scroll-bars.
6256
6257 * sysdep.c: Make (few) trivial substitutions for renamed and
6258 new macros in dispextern.h, frame.h and window.h.
6259
6260 * term.c: Make (some) trivial substitutions for renamed and
6261 new macros in dispextern.h, frame.h and window.h.
6262
6263 * widget.c: Make (few) trivial substitutions for renamed and
6264 new macros in dispextern.h, frame.h and window.h.
6265
6266 * window.c: Make (many) trivial substitutions for renamed and
6267 new macros in dispextern.h, frame.h and window.h.
6268 (make_window): Initialize new members
6269 left_margin_cols, right_margin_cols, left_fringe_width,
6270 right_fringe_width, fringes_outside_margins, scroll_bar_width,
6271 and vertical_scroll_bar_type.
6272 (coordinates_in_window): Adapted to new fringe/margin positions
9018a88e 6273 and per-window fringes and scroll-bars.
0416870b 6274 Fix bug related to incorrectly adjusting coordinates by
9018a88e 6275 frame's internal_border_width (the effect normally negible since
0416870b
KS
6276 the internal_border_width is typically 0 or 1 pixel, but very
6277 noticeable for an internal_border_width of e.g. 25 pixels).
6278 Upon successful return (other than ON_NOTHING), the coordinates
6279 are now always properly converted to window relative for the
6280 given display element.
6281 (window_from_coordinates): Add new parameters wx and wy to
6282 return the window relative x and y position in the returned
6283 window and part. A null arg means, don't return the position.
6284 All callers changed.
6285 (adjust_window_margins): New function which may reduce the width
6286 of the display margins if a window's text area is too small after
6287 resizing or splitting windows.
6288 (size_window): Fix bug that did not account for display margin
6289 widths when checking the minimum width of a window; use
6290 adjust_window_margins.
6291 (set_window_buffer): Call Fset_window_fringes and
6292 Fset_window_scroll_bars to setup per-window elements.
6293 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
6294 existing display margin, fringe widths, and scroll bar settings
9018a88e
SM
6295 (e.g. after splitting a window or resizing the frame).
6296 All callers changed.
0416870b
KS
6297 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
6298 (Fsplit_window): Duplicate original window's display margin,
6299 fringe, and scroll-bar settings; then call Fset_window_buffer with
6300 KEEP_MARGINS non-nil. This fixes a bug which caused a split
6301 window to only preserve the display margins in one of the windows.
c4b8aebc 6302 When splitting horizontally, call adjust_window_margins on both
0416870b 6303 windows to ensure that the text area of the new windows is non too
f9711de4 6304 narrow. This fixes a bug which could cause Emacs to trap if the
0416870b
KS
6305 width of the split window was less than the width of the display
6306 margins.
9018a88e
SM
6307 (window_box_text_cols): Renamed from window_internal_width.
6308 All uses changed. Adapt to per-window fringes and scroll bars.
0416870b
KS
6309 Fix bug that caused vertical separator to be subtracted also on
6310 window frames. Fix another bug that did not reduce the returned
6311 value by the columns used for display margins.
6312 (window_scroll_line_based): Fix bug related to scrolling too much
6313 when display margins are present (implicitly fixed by the fix to
6314 window_box_text_cols).
6315 (scroll_left, scroll_right): Fix bug related to scrolling too far
6316 by default when display margins are present (implicitly fixed by
6317 the fix to window_box_text_cols).
6318 (struct saved_window): Rename members left to left_col, top to
6319 top_line, width to total_cols, height to total_lines, orig_top to
6320 orig_top_line, orig_height to orig_total_lines. All uses changed.
6321 New members left_margin_cols, right_margin_cols,
6322 left_fringe_width, right_fringe_width, fringes_outside_margins,
6323 scroll_bar_width, and vertical_scroll_bar_type for saving
6324 per-window display elements.
6325 (Fset_window_configuration): Restore display margins, fringes,
6326 and scroll bar settings. This fixes a bug which caused display
6327 margins to be discarded when saving and restoring a window
6328 configuration.
6329 (save_window_save): Save display margins, fringes, and scroll bar
6330 settings. This fixes a bug which caused display margins to be
6331 discarded when saving and restoring a window configuration.
6332 (Fset_window_margins): Do nothing if display margins are not
6333 really changed. Otherwise, call adjust_window_margins to ensure
6334 the text area doesn't get too narrow. This fixes a bug which
f9711de4 6335 could cause Emacs to trap if setting display margins wider than
0416870b
KS
6336 the width of the window.
6337 (Fset_window_fringes): New defun to allow user to specifically set
6338 this window's fringe widths and position vs. display margins.
6339 (Fwindow_fringes): New defun to return window's actual fringe
6340 settings.
6341 (Fset_window_scroll_bars): New defun to allow user to specifically
6342 set this window's scroll bar width and position.
6343 (Fwindow_scroll_bars): New defun to return window's actual scroll
6344 bar settings.
6345 (compare_window_configurations): Also compare display margins,
6346 fringes, and scroll bar settings.
6347 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
6348
6349 * xdisp.c: Make (many) trivial substitutions for renamed and
6350 new macros in dispextern.h, frame.h and window.h.
6351 (window_box_width): Adapt to per-window fringes and scroll bars,
f63fd14e 6352 and new fringe vs. display margin position. Note that returned
0416870b
KS
6353 value is no longer guaranteed to be a whole multiple of the frame
6354 column width, since per-window fringes may now be any width.
6355 (window_box_left_offset): New function like window_box_left, but
6356 value is relative to left border of window (rather than frame).
6357 (window_box_right_offset): New function like window_box_right,
6358 but value is relative to left border of window.
6359 (window_box_left): Adapt to per-window fringes and scroll bars,
6360 and new fringe vs. display margin position. Simplify by using
6361 WINDOW_LEFT_EDGE_X and window_box_left_offset.
6362 (window_box): Allow null args for unnecessary return values;
6363 change/simplify relevant callers.
6364 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
9018a88e
SM
6365 and new fringe vs. display margin position.
6366 Use window_box_left_offset and window_box_right_offset
0416870b 6367 (get_glyph_string_clip_rect): Adapt to per-window fringes and
9018a88e
SM
6368 scroll bars, and new fringe vs. display margin position.
6369 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
0416870b
KS
6370 (draw_fringe_bitmap): Rework to handle per-window fringes and new
6371 fringe vs. display margin position.
6372 (hscroll_window_tree): Use window_box_width instead of window_box.
a64387ee
JB
6373 (redisplay_window): Adapt to per-window scroll bars.
6374 (draw_glyphs): Rework to handle per-window fringes and scroll
9018a88e
SM
6375 bars, and new fringe vs. display margin position.
6376 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
a64387ee 6377 (x_clear_end_of_line): Adapt to per-window fringes and scroll
0416870b
KS
6378 bars, and new fringe vs. display margin position. Fix bug which
6379 increased total width of full_width rows by width of scroll bars
6380 although window's total width already includes that.
6381 (x_fix_overlapping_area): Simplify using window_box_left_offset.
6382 (expose_area): Simplify using window_box_left_offset.
6383 (x_draw_vertical_border): Handle per-window scroll bar settings,
6384 mixing windows with left, right and no scroll bars.
6385
6386 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
6387 where it's used in x_list_fonts (for clarity).
6388 (frame_update_line_height): Remove unused function; functionality
6389 is now done directly when setting the default font in x_set_font.
6390
6391 * xfns.c: Make (many) trivial substitutions for renamed and
6392 new macros in dispextern.h, frame.h and window.h.
6393
6394 * xmenu.c: Make (some) trivial substitutions for renamed and
6395 new macros in dispextern.h, frame.h and window.h.
6396
6397 * xterm.h (struct x_output): Move members left_pos, top_pos,
6398 border_width, pixel_height, pixel_width, line_height,
6399 internal_border_width, vertical_scroll_bar_extra,
6400 left_fringe_width, right_fringe_width, fringe_cols,
6401 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
6402 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
6403 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
6404 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
6405 (PIXEL_WIDTH, PIXEL_HEIGHT)
6406 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
6407 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to
6408 frame.h and renamed [see frame.h changes].
6409 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
6410 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
6411 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h
6412 and renamed [see frame.h changes].
9018a88e 6413
0416870b
KS
6414 * xterm.c: Make (several) trivial substitutions for renamed and
6415 new macros in dispextern.h, frame.h and window.h.
6416 (x_draw_glyph_string_box): Adapt to per-window fringes and
6417 scroll-bars.
6418 (scroll_run): Adapt to new fringe position.
6419 (glyph_rect): Use window coordinates returned from
6420 window_from_coordinates rather than frame_to_window_pixel_xy.
6421 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
6422 scroll-bars.
6423 (handle_one_xevent): Simplify a USE_GTK conditional.
6424 (x_clip_to_row): Remove superfluous whole_line_p arg and code
6425 (fringes are now inside margins, i.e. always in the clipping area).
6426 All callers changed.
6427 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
6428 directly, then call compute_fringe_widths. Don't call
6429 frame_update_line_height.
6430
6431 * w32term.h (struct w32_output): Move members left_pos, top_pos,
6432 border_width, pixel_height, pixel_width, line_height,
6433 internal_border_width, vertical_scroll_bar_extra,
6434 left_fringe_width, right_fringe_width, fringe_cols,
6435 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
6436 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
6437 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
6438 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
6439 (PIXEL_WIDTH, PIXEL_HEIGHT)
6440 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
6441 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to
6442 frame.h and renamed [see frame.h changes].
6443 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
6444 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
6445 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h
6446 and renamed [see frame.h changes].
9018a88e 6447
0416870b
KS
6448 * w32term.c: Make (several) trivial substitutions for renamed and
6449 new macros in dispextern.h, frame.h and window.h.
6450 (x_draw_glyph_string_box): Adapt to per-window fringes and
6451 scroll-bars.
6452 (glyph_rect): Use window coordinates returned from
6453 window_from_coordinates rather than frame_to_window_pixel_xy.
6454 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
6455 scroll-bars.
6456 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
6457 (fringes are now inside margins, i.e. always in the clipping area).
6458 All callers changed.
6459 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
6460 directly, then call compute_fringe_widths. Don't call
6461 frame_update_line_height.
6462
6463 * w32console.c: Make (few) trivial substitutions for renamed and
6464 new macros in dispextern.h, frame.h and window.h.
6465
6466 * w32fns.c: Make (many) trivial substitutions for renamed and
6467 new macros in dispextern.h, frame.h and window.h.
6468
6469 * w32menu.c: Make (few) trivial substitutions for renamed and
6470 new macros in dispextern.h, frame.h and window.h.
6471
6472 * macterm.h (struct mac_output): Move members left_pos, top_pos,
6473 border_width, pixel_height, pixel_width, line_height,
6474 internal_border_width, vertical_scroll_bar_extra,
6475 left_fringe_width, right_fringe_width, fringe_cols,
6476 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
6477 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
6478 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
6479 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
6480 (PIXEL_WIDTH, PIXEL_HEIGHT)
6481 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
6482 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to
6483 frame.h and renamed [see frame.h changes].
6484 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
6485 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
6486 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h
6487 and renamed [see frame.h changes].
9018a88e 6488
0416870b
KS
6489 * macterm.c: Make (several) trivial substitutions for renamed and
6490 new macros in dispextern.h, frame.h and window.h.
6491 (x_draw_glyph_string_box): Adapt to per-window fringes and
6492 scroll-bars.
6493 (glyph_rect): Use window coordinates returned from
6494 window_from_coordinates rather than frame_to_window_pixel_xy.
6495 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
6496 scroll-bars.
6497 (x_clip_to_row): Remove superfluous whole_line_p arg and code
6498 (fringes are now inside margins, i.e. always in the clipping area).
6499 All callers changed.
6500 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
6501 directly, then call compute_fringe_widths. Don't call
6502 frame_update_line_height.
6503
6504 * macfns.c: Make (several) trivial substitutions for renamed and
6505 new macros in dispextern.h, frame.h and window.h.
9018a88e 6506 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
0416870b
KS
6507
6508 * macmenu.c: Make (few) trivial substitutions for renamed and
6509 new macros in dispextern.h, frame.h and window.h.
6510
6511 * msdos.h (struct x_output): Remove members left_pos, top_pos,
6512 and line_height, and use corresponding new members in struct
6513 frame. All uses changed.
6514 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
6515 superseeded by corresponding macros in frame.h.
6516
6517 * msdos.c: Make (several) trivial substitutions for renamed and
6518 new macros in dispextern.h, frame.h and window.h.
6519 (IT_note_mouse_highlight): Use updated window coordinates returned
9018a88e 6520 by window_from_coordinates, rather than adjusting them locally.
0416870b
KS
6521 (internal_terminal_init): No need to initialize line_height here;
6522 it now defaults to 1.
6523
9018a88e
SM
65242003-05-24 Stefan Monnier <monnier@cs.yale.edu>
6525
6526 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
6527 dropping `down' events.
6528
016bd3c0
AS
65292003-05-24 Andreas Schwab <schwab@suse.de>
6530
6531 * coding.c (find_safe_codings): Fix last change.
6532
4dacadcc
TTN
65332003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
6534
6535 * xfns.c (x_window): Fix typo from 2003-05-21 change.
6536
319830ce
SM
65372003-05-23 Stefan Monnier <monnier@cs.yale.edu>
6538
9018a88e
SM
6539 * xdisp.c (display_mode_element): Increase max depth.
6540 Simplify the error handling code. Use a different error string
6541 for the case where we hit the depth limit.
6542
319830ce
SM
6543 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
6544
6545 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
6546
65472003-05-21 Stefan Monnier <monnier@cs.yale.edu>
6548
6549 * intervals.c (get_local_map): Don't get char-property of previous
6550 point any more: get_pos_property already does it and better.
6551
c67de8ba
DL
65522003-05-21 Dave Love <fx@gnu.org>
6553
6554 [Merged from unicode branch.]
6555
6556 * xfns.c (x_window, x_window): Use use_xim.
6557
6558 * xterm.c (use_xim): Initialize.
6559 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
6560 (x_term_init): Maybe set use_xim.
6561
6562 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
6563
edd3ff1d
JR
65642003-05-21 Jason Rumney <jasonr@gnu.org>
6565
6566 * unexw32.c (_start): Remove _fmode initialization.
6567
6568 * emacs.c (main) [WINDOWSNT]: Move it here.
6569
463f55ee
DL
65702003-05-20 Dave Love <fx@gnu.org>
6571
6572 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
6573
af253914
RS
65742003-05-19 Richard M. Stallman <rms@gnu.org>
6575
6576 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
6577 as value for QCfont attribute.
6578 (realize_default_face): lface should already exist; crash if not.
6579 Specify 0 for FORCE_P when calling set_lface_from_font_name.
6580
6581 * frame.c (Fignore_event): Doc fix.
6582
1d211019
KH
65832003-05-19 Kenichi Handa <handa@m17n.org>
6584
6585 * coding.c (decode_coding_string): Handle post-read-conversion
6586 even if the coding doesn't require decoding.
6587
4dd68254
RS
65882003-05-18 Richard M. Stallman <rms@gnu.org>
6589
6590 * callproc.c (Fcall_process_region): Doc fix.
6591
14d87dc9
SM
65922003-05-17 Stefan Monnier <monnier@cs.yale.edu>
6593
deca5d96
SM
6594 * lread.c (Fload): Print a message if package is obsolete.
6595
14d87dc9
SM
6596 * window.c (Fselect_window): Add optional `norecord' arg.
6597 (select_window_1): Fold into Fselect_window.
6598 (select_window_norecord): New function.
6599 (temp_output_buffer_show): Use it. Preserve current buffer.
6600
6601 * window.h (Fselect_window): Update declaration.
6602
6603 * window.c (delete_window, Fother_window, Fset_window_configuration):
6604 * minibuf.c (read_minibuf):
6605 * macterm.c (x_new_focus_frame):
6606 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
6607 * callint.c (Fcall_interactively):
6608 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
6609
6610 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
6611
78f52183
DK
66122003-05-17 David Kastrup <dak@gnu.org>
6613
6614 * process.c (read_process_output): Back out change from 2003-03-09.
6615
14d87dc9
SM
66162003-05-17 Stefan Monnier <monnier@cs.yale.edu>
6617
6618 * editfns.c (get_pos_property): Don't assume that `object' = nil.
6619
6620 * textprop.c (text_property_stickiness): New arg `buffer'.
6621
6622 * intervals.h (text_property_stickiness): New arg `buffer'.
6623 (get_pos_property): Declare.
6624
6625 * intervals.c (get_local_map): Use get_pos_property, to obey
6626 stickiness and empty overlays.
6627 (create_root_interval, graft_intervals_into_buffer): Use BEG.
6628 (merge_properties, intervals_equal, merge_properties_sticky):
6629 Use XCAR, XCDR.
6630 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
6631
1fd1cc2f
RS
66322003-05-17 Richard M. Stallman <rms@gnu.org>
6633
4f9f637a
RS
6634 * minibuf.c (read_minibuf): If buffer is empty, record the default
6635 in the history.
6636 (Fminibuffer_complete_word): When deleting the overlap, take account
6637 of its real position.
6638
6639 * fns.c (map_char_table): Fix previous change.
6640
1fd1cc2f
RS
6641 * syntax.c (find_defun_start):
6642 When open_paren_in_column_0_is_defun_start,
6643 return beginning of buffer.
6644
6645 * lisp.h (map_char_table): Declare added arg.
6646
6647 * fns.c (map_char_table): New arg TABLE gets the master table.
6648 All calls changed.
6649 Process default and inheritance, resorting to Faref if necessary.
6650
6651 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
6652 (Faccessible_keymaps): Pass new arg to map_char_table.
6653
6654 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
6655
6656 * casetab.c (set_case_table): Pass new arg to map_char_table.
6657
6658 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
6659
6660 * lisp.h (specbinding_func): New typedef.
6661 (struct specbinding): Use specbinding_func, to put the `volatile'
6662 in the right place.
6663
6664 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
6665 to avoid GCC warning.
14d87dc9 6666
b6189c3b 66672003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org>
b4bd27c5 6668
14d87dc9 6669 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
b4bd27c5 6670
35fb885d
SM
66712003-05-15 Stefan Monnier <monnier@cs.yale.edu>
6672
6673 * keyboard.c (apply_modifiers): Don't fill the other cache.
6674
9a274fbd
SM
66752003-05-14 Stefan Monnier <monnier@cs.yale.edu>
6676
c55b5fad
SM
6677 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
6678
9a274fbd
SM
6679 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
6680 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
6681 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
6682 (Fset_window_configuration, Fcurrent_window_configuration)
6683 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
6684 (Fpos_visible_in_window_p, mark_window_cursors_off)
6685 (window_internal_height, window_internal_width, Frecenter)
6686 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
6687 (replace_buffer_in_all_windows, init_window_once, init_window)
6688 (syms_of_window, keys_of_window): Move from lisp.h.
6689 * lisp.h: Move window.c declarations to window.h.
6690
6691 * bytecode.c: Include window.h.
6692 * emacs.c: Include window.h.
6693
14d87dc9 6694 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
9a274fbd
SM
6695 (keyremap): Add `parent' field.
6696 (keyremap_step): Use it. Remove `parent' argument.
6697 (read_key_sequence): Setup and use the new `parent' field.
6698
fd93e331
SM
66992003-05-11 Stefan Monnier <monnier@cs.yale.edu>
6700
6701 * keyboard.c (adjust_point_for_property): Ensure termination.
6702
1c4001a1
SM
67032003-05-10 Stefan Monnier <monnier@cs.yale.edu>
6704
6705 * keyboard.c (follow_key): Remove dead variable `did_meta'.
6706 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
6707 duplicated handling of function-key-map and key-translation-map
6708 in read_key_sequence.
6709 (read_key_sequence): Use them.
6710
6711 * keyboard.c (adjust_point_for_property): Try harder to move point
6712 to the non-sticky end of an invisible property.
6713
6714 * xdisp.c (single_display_prop_intangible_p): Make `space' display
6715 property intangible as well.
6716
780379b1
AS
67172003-05-10 Andreas Schwab <schwab@suse.de>
6718
6719 * xmenu.c (single_menu_item): Change last parameter to void* to
6720 avoid warning.
6721
ca2de342
RS
67222003-05-09 Richard M. Stallman <rms@gnu.org>
6723
6724 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
6725 Bind Qinhibit_modification_hooks to t so there will be no GC.
6726 Rename local `tem' to `save_deactivate_mark'.
6727
6728 * eval.c (specpdl_ptr): Declare volatile.
6729 (unbind_to): Copy the whole binding and decrement specpdl_ptr
6730 before doing the work of unbinding it.
6731
6732 * lisp.h (struct specbinding): Declare elements volatile.
6733 (specpdl_ptr): Declare volatile.
6734
6735 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
6736
6737 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
6738 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
6739
347003be
DL
67402003-05-08 Dave Love <fx@gnu.org>
6741
6742 * coding.c (Vlast_coding_system_used): Doc fix.
6743
5adcec23
JR
67442003-05-07 Jason Rumney <jasonr@gnu.org>
6745
6746 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
6747 when system does not support them.
6748
5fe3b8a4
SM
67492003-05-05 Stefan Monnier <monnier@cs.yale.edu>
6750
6751 * fileio.c (Qwrite_region_annotate_functions): New var.
6752 (build_annotations): Use it to process the global part of the hook.
6753 (syms_of_fileio): Init and staticpro it.
6754
6755 * keyboard.c (safe_run_hooks_error): Display a message instead of
6756 silently ignoring the error.
6757
67582003-05-03 Stefan Monnier <monnier@cs.yale.edu>
6759
6760 * keyboard.c (input_available_signal): Mark static.
6761 (menu_bar_items): Use map_keymap.
6762 (menu_bar_one_keymap): Remove.
6763 (menu_bar_item): Adjust arglist (for use in map_keymap).
6764 Properly hide a second binding when not both are keymaps.
6765
6766 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
6767 (single_keymap_panes): Use it and map_keymap.
6768 (single_menu_item): Use skp as well.
6769
6770 * keymap.h (map_keymap_function_t): New type.
6771 (map_keymap): Declare.
6772
6773 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
6774 (map_keymap_call, Fmap_keymap): New functions.
6775 (syms_of_keymap): Defsubr map-keymap.
6776
4b1b4443
JD
67772003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6778
6779 * gtkutil.c (create_dialog, make_widget_for_menu_item)
6780 (make_menu_item, create_menus, xg_update_menu_item): Don't call
6781 ..._with_mnemonic functions for menu items.
6782
1f816871
KH
67832003-05-01 Kenichi Handa <handa@m17n.org>
6784
6785 * coding.c (coding_system_accept_latin_extra_p): Delete this
6786 function.
6787 (find_safe_codings): Pay attention to
6788 the property tranlsation-table-for-encode of each codings.
6789 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
6790
5ed6ba5b
SM
67912003-05-01 Stefan Monnier <monnier@cs.yale.edu>
6792
6793 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
6794
32c06229
SM
67952003-04-30 Stefan Monnier <monnier@cs.yale.edu>
6796
6797 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
6798
6799 * lisp.h (CHECK): Wrap args in parenthesis.
6800 (specbind): Fix doc: symbol = Qnil is not supported any more.
6801
6802 * bytecode.c (Fbyte_code) <unwind-protect>:
6803 Use Fprogn rather than 0 and Qnil.
6804
6805 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
6806 `double', and `triple' modifiers as well.
6807
ed3c3314
RS
68082003-04-30 Richard M. Stallman <rms@gnu.org>
6809
6810 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
6811
6812 * alloc.c (abort_on_gc): New variable.
6813 (Fgarbage_collect): Abort if abort_on_gc is set.
6814
6815 * lisp.h (abort_on_gc): Add decl.
6816
6817 * eval.c (Fsignal): Clear abort_on_gc.
6818
6819 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
32c06229 6820 Reinit FORMAT_START and END before second scan.
ed3c3314
RS
6821
6822 * xdisp.c (move_it_vertically_backward): Do the final big else
6823 even if nlines is 0.
6824
6825 * xdisp.c (redisplay_internal): Finish the per-frame loop
6826 even if redisplay is suspended by input.
6827
0b325c12
AC
68282003-04-24 Andrew Choi <akochoi@shaw.ca>
6829
6830 * macterm.c (x_list_fonts): Return all fonts that match if
6831 maxnames = -1.
6832
4e837cd0
KH
68332003-04-25 Kenichi Handa <handa@m17n.org>
6834
6835 * syntax.c (skip_chars): Fix previous change.
6836
9af7511a
KH
68372003-04-24 Kenichi Handa <handa@m17n.org>
6838
6839 * syntax.c (skip_chars): Make the code faster by using the common
6840 technique of *p, *stop, and *endp.
6841
e3b2c21f
JD
68422003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6843
6844 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
32c06229 6845 tool_bar_items so GTK tool bar expose callback does not access items
e3b2c21f
JD
6846 being updated.
6847
32c06229
SM
68482003-04-19 Stefan Monnier <monnier@cs.yale.edu>
6849
6850 * eval.c (Fapply): Undo last change and add a comment about why.
6851
c6464167
MB
68522003-04-18 Miles Bader <miles@gnu.org>
6853
6854 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
6855 pickier PARSE_MULTIBYTE_SEQ.
6856
e509f168
SM
68572003-04-17 Stefan Monnier <monnier@cs.yale.edu>
6858
6859 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
6860 Use XCDR, XCAR, CONSP.
6861 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
6862 (Fapply): Remove unnecessary GCPRO.
6863
6864 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
6865
6866 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
6867
6868 * buffer.h: Don't hardcode BEG==1.
6869
6870 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
6871
5ceea398
RS
68722003-04-16 Richard M. Stallman <rms@gnu.org>
6873
6874 * xdisp.c (try_window, try_window_reusing_current_matrix):
6875 When at end of window, set window_end_pos to Z-ZV.
6876
6877 * buffer.c (Foverlay_recenter): Doc fix.
6878
e509f168
SM
68792003-04-14 Stefan Monnier <monnier@cs.yale.edu>
6880
6881 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
6882
d243e605
AC
68832003-04-14 Andrew Choi <akochoi@shaw.ca>
6884
6885 * macterm.c (mac_check_for_quit_char): Don't check more often than
6886 once a second.
6887
6901b111
SM
68882003-04-11 Stefan Monnier <monnier@cs.yale.edu>
6889
6890 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
6891 specially, so that they can't hide an implicit switch-frame event.
6892 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
6893 (head_table): Use switch-frame as event_kind for select-window.
6894 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
6895
6896 * editfns.c (Fformat): Lisp_Object/int mixup.
6897 (format2): Remove unused var numargs.
6898
e301806f 68992003-04-11 Kenichi Handa <handa@m17n.org>
aa95b710 6900
6901b111 6901 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
aa95b710
KH
6902 (Qafter_insert_file_set_coding): New variable.
6903 (syms_of_fileio): Initialize and staticpro it. Delete declaration
6904 for after-insert-file-adjust-coding-function.
6905 (Finsert_file_contents): Call Qafter_insert_file_set_coding
6906 instead of Vafter_insert_file_adjust_coding_function.
6907
38914424
KH
69082003-04-11 Kenichi Handa <handa@m17n.org>
6909
6910 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
6911
6912 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
6913 string. Callers changed.
6914
69152003-04-10 Kenichi Handa <handa@m17n.org>
a288d979 6916
6901b111 6917 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
a288d979 6918 (syms_of_fileio): Declare it as a lisp variable.
6901b111
SM
6919 (Finsert_file_contents):
6920 Call Vafter_insert_file_adjust_coding_function before calling
a288d979
KH
6921 decode-format.
6922
f979dc05
JD
69232003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6924
6925 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
6926 get GtkAdjustment as widget now is a GtkRange.
6927
6928 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
6929 GtkRange to avoid memory leak.
6930
f8c6b4c2 69312003-04-09 Kenichi Handa <handa@m17n.org>
cb98871c 6932
50ebc53d
KH
6933 * xfaces.c (Vface_font_rescale_alist): New variable.
6934 (struct font_name): New member rescale_ratio.
6935 (font_rescale_ratio): New function.
6901b111 6936 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
50ebc53d
KH
6937 (better_font_p): On comparing point sized, pay attention to
6938 recale_ratio member of fonts.
6939 (build_scalable_font_name): Reflect font->rescale_ratio in the
6940 font name.
6901b111 6941 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
50ebc53d 6942
cb98871c
KH
6943 * lread.c (read1): Before calling index, check if the 2nd
6944 arguemnt is in ASCII range.
6945
4773b8ca
RS
69462003-04-08 Richard M. Stallman <rms@gnu.org>
6947
b0ada147
RS
6948 * fileio.c (Ffile_symlink_p): Doc fix.
6949
6950 * editfns.c (Fformat): Translate positions of text properties
6951 in the format string to apply them to the result.
6952
4773b8ca
RS
6953 * fileio.c (Finsert_file_contents): Doc fix.
6954 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
6955
69562003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
6901b111 6957
4773b8ca
RS
6958 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
6959
e8f25745 69602003-04-08 Steven Tamm <steventamm@mac.com>
b0ada147 6961
e8f25745
ST
6962 * mac.c (init_mac_osx_environment): Switch libexec and bin so
6963 that self-contained application finds libexec files.
6964
f8c6b4c2 69652003-04-08 Kenichi Handa <handa@m17n.org>
2310d84c 6966
6901b111
SM
6967 * coding.c (code_convert_region_unwind):
6968 Set Vlast_coding_system_used to the argument.
2310d84c
KH
6969 (code_convert_region): If post-read-conversion function changed
6970 the value of last-coding-sytem, keep the new value in
6971 coding->symbol so that it won't be overridden.
6972 (run_pre_post_conversion_on_str): Likewise.
7c086845
KH
6973 (coding_system_accept_latin_extra_p): New function.
6974 (find_safe_codings): Pay attention to characters registered in
6975 latin-extra-code-table.
2310d84c 6976
39c9a034
TTN
69772003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
6978
6979 * Makefile.in (md5.o): Add missing dependency info.
6980
eb67c5d6
RS
69812003-04-06 Richard M. Stallman <rms@gnu.org>
6982
6983 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
6984
6985 * marker.c (verify_bytepos): New function.
6986
6987 * intervals.c (set_intervals_multibyte_1): When becoming
6988 multibyte, adjust right and left child sizes to a whole set of
6989 characters. If an interval gets zero total-length, delete it.
6990 If an interval consists of just its children, delete one of them.
6991
6992 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
6993 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
39c9a034 6994
eb67c5d6
RS
6995 * alloc.c: (VALIDATE_LISP_STORAGE): Macro deleted.
6996 All calls deleted.
6997 (lisp_malloc): Do the work here directly.
6998
b1f81fc5
JB
69992003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
7000
7001 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
7002 char tables.
7003
70042003-04-04 Kenichi Handa <handa@m17n.org>
aa8b70ae
KH
7005
7006 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
7007 destructively change "%S" to "%s".
7008
774666fb
MB
70092003-04-03 Miles Bader <miles@gnu.org>
7010
7011 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
7012 always set.
7013
19c37f01
DL
70142003-04-01 Dave Love <fx@gnu.org>
7015
7016 * xfns.c (xpm_lookup_color): Grok "opaque".
7017
2f4b24c3
AC
70182003-03-31 Andrew Choi <akochoi@shaw.ca>
7019
7020 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
7021 parent window ID.
7022
7023 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
7024
7025 * macterm.h (struct mac_output): Define x_pixels_diff and
7026 y_pixels_diff.
b1f81fc5 7027
9443fcf6
JB
70282003-03-31 Juanma Barranquero <lektu@terra.es>
7029
7030 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
7031 blockinput.h and files included from it.
7032
e072891b
KS
70332003-03-31 Kim F. Storm <storm@cua.dk>
7034
7035 The following changes consolidates the common code related to
7036 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
7037 files into frame.c.
9443fcf6 7038
e072891b
KS
7039 * frame.c: Include blockinput.h.
7040 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
7041 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
7042 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
7043 related vars here.
7044 (struct frame_parm_table, frame_parms): New table for describing
7045 frame parameters and their associated Q-variable.
7046 The order of the parameters corresponds to the sequence of the
7047 frame_parm_handlers table in redisplay_interface.
7048 (x_fullscreen_move, x_set_frame_parameters)
7049 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
7050 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
7051 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
7052 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
7053 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
7054 Generic functions for processing of frame parameters.
7055 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
7056 (display_x_get_resource, x_get_resource_string): Functions for
7057 generic access to X resources.
7058 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
7059 (x_default_parameter, Fx_parse_geometry): Functions for generic
7060 access to frame parameters.
6901b111
SM
7061 (x_figure_window_size): Generic calculation of frame size.
7062 Fixed to add space needed for tool bar. Also setup size_hint_flags.
e072891b
KS
7063 (syms_of_frame): Intern and staticpro frame parameter variables.
7064 Defvar_lisp Vx_resource_class and Vx_resource_name here.
7065 Defsubr Sx_get_resource and Sx_parse_geometry.
9443fcf6 7066
e072891b
KS
7067 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
7068 parameter related vars defined in frame.c.
7069 (EMACS_CLASS): Define here.
7070 (enum FULLSCREEN_*): Define here.
7071 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
7072 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
7073 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
7074 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
7075 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
7076 (x_set_visibility, x_set_autoraise, x_set_autolower)
7077 (x_set_unsplittable, x_set_vertical_scroll_bars)
7078 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
7079 (x_figure_window_size): Add prototypes.
7080
7081 * dispextern.h (frame_parm_handler): New typedef.
7082 (struct redisplay_interface): New member frame_parm_handlers.
7083 (enum resource_types): Move declaration here.
7084 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
7085 (x_default_parameter): Add prototypes.
7086
7087 * window.c: Remove extern decl for frame parameter vars.
7088 (change_window_heights): New generic function;
7089 replaces x_change_window_heights. All users changed.
7090
7091 * window.h (change_window_heights): Add prototype.
7092
7093 * xfaces.c: Remove extern decl for frame parameter vars.
7094
7095 * xterm.h (EMACS_CLASS): Remove. Use generic define.
7096 (struct w32_display_info): Fix type of xrdb member.
7097 (enum FULLSCREEN_*): Remove.
7098 Remove prototypes for generic functions (in frame.h).
7099
7100 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
7101 parameters now defined in frame.h and frame.c.
f63fd14e 7102 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
7103 (enum x_frame_parms): Remove (bogus, unused enum).
7104 (check_x_display_info): Make non-static (for frame.c).
7105 (struct x_frame_parm_table, x_frame_parms): Remove.
7106 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
7107 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
7108 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
7109 (x_change_window_heights, x_set_autoraise, x_set_autolower)
7110 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
7111 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
7112 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
7113 Remove. Use generic functions instead.
7114 (enum resource_types): Remove.
7115 (x_set_scroll_bar_default_width): New global function (for frame.c).
7116 (Fx_create_frame): Depend on x_figure_window_size to add space for
7117 toolbar and setup size_hint_flags.
7118 (x_frame_parm_handlers): New table for redisplay_interface.
7119 (syms_of_xfns): Don't intern/staticpro removed vars.
9443fcf6 7120
e072891b 7121 * xterm.c: Remove unnecessary extern declarations.
f63fd14e 7122 (x_fullscreen_adjust): Remove. Use generic instead.
e072891b
KS
7123 (x_redisplay_interface): Add x_frame_parm_handlers member.
7124
7125 * w32gui.h (XrmDatabase): New (dummy) typedef.
7126
7127 * w32term.h (EMACS_CLASS): Remove. Use generic define.
7128 (struct w32_display_info): Fix type of xrdb member.
7129 (enum FULLSCREEN_*): Remove.
7130 (x_fullscreen_adjust): Remove prototype.
7131
7132 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
7133 parameters now defined in frame.h and frame.c.
f63fd14e 7134 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
7135 (enum x_frame_parms): Remove (bogus, unused enum).
7136 (check_x_display_info): Make non-static (for frame.c).
7137 (struct x_frame_parm_table, x_frame_parms): Remove.
7138 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
7139 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
7140 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
7141 (x_change_window_heights, x_set_autoraise, x_set_autolower)
7142 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
7143 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
7144 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
7145 Remove. Use generic functions instead.
7146 (enum resource_types): Remove.
7147 (x_set_scroll_bar_default_width): New global function (for frame.c).
7148 (Fx_create_frame): Depend on x_figure_window_size to add space for
7149 toolbar and setup size_hint_flags.
7150 (w32_frame_parm_handlers): New table for redisplay_interface.
7151 (syms_of_w32fns): Don't intern/staticpro removed vars.
9443fcf6 7152
e072891b
KS
7153 * w32term.c: Remove unnecessary extern declarations.
7154 (x_fullscreen_adjust): Remove. Use generic instead.
7155 (x_redisplay_interface): Add w32_frame_parm_handlers member.
7156
7157 * w32reg.c (x_get_string_resource): Use XrmDatabase.
7158
7159 * macgui.h (XrmDatabase): New (dummy) typedef.
7160
7161 * macterm.h (EMACS_CLASS): Remove.
7162 (struct mac_display_info): Add xrdb member.
7163 (struct mac_output): Add want_fullscreen member.
7164
7165 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
7166 parameters now defined in frame.h and frame.c.
f63fd14e 7167 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
7168 (check_x_display_info): Make non-static (for frame.c).
7169 (struct x_frame_parm_table, x_frame_parms): Remove.
7170 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
7171 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
7172 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
7173 (x_change_window_heights, x_set_autoraise, x_set_autolower)
7174 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
7175 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
7176 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
7177 Remove. Use generic functions instead.
7178 (enum resource_types): Remove.
7179 (x_set_scroll_bar_default_width): New global function (for frame.c).
7180 (mac_frame_parm_handlers): New table for redisplay_interface.
7181 (syms_of_macfns): Don't intern/staticpro removed vars.
9443fcf6 7182
e072891b
KS
7183 * macterm.c: Remove unnecessary extern declarations.
7184 (x_redisplay_interface): Add mac_frame_parm_handlers member.
7185
3e6a560b
KS
7186 * Makefile.in (frame.o): Add dependency on blockinput.h and files
7187 included from it (atimer.h and systime.h).
7188
7b7b454e
AS
71892003-03-30 Andreas Schwab <schwab@suse.de>
7190
7191 * xdisp.c (x_insert_glyphs): Fix swapped width and height
7192 parameters for shift_glyphs_for_insert.
7193
7194 * macterm.c (x_redisplay_interface): Add missing entry for
7195 draw_vertical_window_border.
7196
beb402de
KG
71972003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
7198
7199 * fileio.c (Fexpand_file_name): In the no-handler case, after
7200 expanding, look again for a handler and invoke it. This is needed
7201 for filenames like "/foo/../user@host:/bar/../baz" -- the first
7202 expansion produces "/user@host:/bar/../baz" which needs to be
7203 expanded again for the finame result "/user@host:/baz".
7204
b676f356
JD
72052003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7206
7207 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
7208 of area to be redrawn for better performance.
7209
3c671a56
SM
72102003-03-28 Stefan Monnier <monnier@cs.yale.edu>
7211
7212 * xterm.c (take_vertical_position_into_account): Remove.
7213 (xt_action_hook): Call set_vertical_scroll_bar if needed.
7214 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
7215 (xm_scroll_callback, x_create_toolkit_scroll_bar)
7216 (x_set_toolkit_scroll_bar_thumb): Simplify.
7217 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
7218 (XTread_socket): Remove unused var.
7219 (x_make_frame_invisible): Replace goto with else.
7220
7221 * xdisp.c (set_vertical_scroll_bar): New fun.
7222 (redisplay_window): Use it.
7223
84f2e615
RS
72242003-03-26 Richard M. Stallman <rms@gnu.org>
7225
7226 * xdisp.c (update_tool_bar): Recompute tool bar if
7227 update_mode_lines is set. Set w->update_mode_line
7228 only if the tool bar contents actually change.
7229 (update_menu_bar): Undo previous change.
7230
70b6104c
JD
72312003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7232
5fd6f727
JD
7233 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
7234 (xg_frame_set_char_size): Calculate scroll bar width before frame
7235 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
7236 (xg_separator_p): Check for all documented separator types.
7237 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
7238 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
7239
70b6104c
JD
7240 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
7241 so tool bar gets updated.
7242
d9b36d19
SM
72432003-03-26 Stefan Monnier <monnier@cs.yale.edu>
7244
7245 * data.c (store_symval_forwarding): Re-instate part of the code
7246 that was deleted with too much enthusiasm.
7247
72482003-03-25 Stefan Monnier <monnier@cs.yale.edu>
7249
7250 * data.c (store_symval_forwarding): Delete special read-only
7251 hack for type == -1, since we now use ->constant instead.
7252 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
7253
7254 * buffer.c (overlays_in): Declare static.
7255 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
7256 `constant' field rather than the variable's `type' field.
7257
365fa1b3
AC
72582003-03-24 Andrew Choi <akochoi@shaw.ca>
7259
7260 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
7261
7262 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
7263
7264 * fns.c [MAC_OSX]: Do not redefine vector.
7265
7266 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
7267
7268 * macgui.h: Remove definition of No_Cursor.
7269
d9b36d19 7270 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
365fa1b3
AC
7271
7272 * xdisp.c: Define No_Cursor.
7273 (x_write_glyphs, notice_overwritten_cursor)
7274 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
7275 (note_mouse_highlight): Remove Mac-specific code.
7276 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
d9b36d19 7277
c0bcce6f
JPW
72782003-03-24 John Paul Wallington <jpw@gnu.org>
7279
7280 * xdisp.c (redisplay_window): If mini window's buffer is not
7281 empty, then redisplay it like other windows.
7282
a526b96c
KS
72832003-03-23 Kim F. Storm <storm@cua.dk>
7284
7285 * w32term.c (w32_draw_window_cursor): Fix last change.
7286
37ab321e
KH
72872003-03-23 Kenichi Handa <handa@m17n.org>
7288
a526b96c
KS
7289 * alloc.c (make_string_from_bytes, make_specified_string):
7290 Add `const' for the arg CONTENTS.
37ab321e
KH
7291
7292 * lisp.h (make_string_from_bytes, make_specified_string):
7293 Prototypes adjusted.
7294
7863d625
JD
72952003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7296
a526b96c 7297 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
fd4c9408 7298
7863d625
JD
7299 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
7300 (XG_SB_RANGE): New define.
7301
7302 * gtkutil.c (xg_fixed_handle_expose): New function.
7303 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
7304 expose events.
7305 (xg_update_scrollbar_pos): Take two more arguments, left and width
7306 of scroll bar including borders.
7307 Clear left and right part outside scroll bar separately as some
7308 themes have bars that are not an even number of pixels.
d9b36d19 7309 Don't set reallocate_redraws, don't call
7863d625
JD
7310 gdk_window_process_all_updates.
7311 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
7312 so no need to change it. Calculate size and value with XG_SB_RANGE.
7313
d9b36d19
SM
7314 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
7315 Pass left and width of scroll bar including borders to
7863d625
JD
7316 xg_update_scrollbar_pos.
7317
af0ad939
TTN
73182003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
7319
7320 * Makefile.in: Make sure space precedes end-of-line backslashes.
7321
b22139fd
KS
73222003-03-22 Kim F. Storm <storm@cua.dk>
7323
7324 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
7325 Add generic versions here. Remove system specific versions
7326 defined elsewhere.
7327
7328 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
7329 Add prototypes.
7330
6e6410cf
KS
7331 * xterm.h (STORE_NATIVE_RECT): New macro.
7332
5c9cc435
KS
73332003-03-21 Kim F. Storm <storm@cua.dk>
7334
00c64fab
SM
7335 * xdisp.c (get_glyph_string_clip_rect):
7336 Use FRAME_INTERNAL_BORDER_WIDTH.
5c9cc435
KS
7337
7338 * dispextern.h (struct redisplay_interface): Add active_p
7339 argument to draw_window_cursor member. All uses changed.
7340
acd37560
KS
73412003-03-21 Kim F. Storm <storm@cua.dk>
7342
7343 The following changes consolidate code related to writing and
7344 inserting glyphs, exposing frame, the tool bar, the mouse face,
7345 the output cursor, and help echo from xterm.c, w32term.c and
7346 macterm.c into xdisp.c. It also generalizes the use of the
7347 window_part enum instead of using numeric values throughout.
af0ad939 7348
acd37560
KS
7349 * xdisp.c: Consolidate gui-independent code here.
7350 Include keymap.h.
7351 (Qhelp_echo): Import.
7352 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
7353 (help_echo_string, help_echo_window, help_echo_object)
7354 (previous_help_echo_string, help_echo_pos): Declare here.
7355 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
7356 (estimate_mode_line_height): Define here. Handle windowing
7357 systems directly (without using estimate_mode_line_height_hook).
7358 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
7359 (update_window_cursor, update_cursor_in_window_tree)
7360 (fast_find_position, fast_find_string_pos)
7361 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
7362 (expose_area, expose_line, expose_overlaps, expose_window)
7363 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
7364 declared static as they are only used locally in xdisp.c.
7365 (draw_glyphs): Rename from x_draw_glyphs and make static.
7366 (tool_bar_item_info, notice_overwritten_cursor): Make static.
7367 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
7368 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
af0ad939 7369 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
acd37560
KS
7370 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
7371 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
7372 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
7373 (note_mouse_highlight, x_clear_window_mouse_face)
7374 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
7375 (x_intersect_rectangles): New generic functions for use by xdisp.c
7376 and GUI front-ends.
7377 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
7378 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
7379
7380 * dispextern.h (Display_Info): Generic typedef for *_display_info.
7381 (NativeRectangle): Generic typedef for rectangle type.
7382 (enum window_part): Move here from window.c.
7383 (struct redisplay_interface): New members flush_display_optional,
7384 define_frame_cursor, clear_frame_area, draw_window_cursor,
7385 draw_vertical_window_border, shift_glyphs_for_insert.
7386 Rename member clear_mouse_face to clear_window_mouse_face.
7387 (estimate_mode_line_height_hook): Remove hook.
7388 (auto_raise_tool_bar_buttons_p): Don't declare extern.
7389 (tool_bar_item_info): Remove prototype.
7390 (help_echo_string, help_echo_window, help_echo_object)
7391 (previous_help_echo_string, help_echo_pos)
7392 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
7393 (x_stretch_cursor_p, output_cursor): Declare extern.
7394 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
7395 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
7396 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
7397 (display_and_set_cursor, set_output_cursor, x_cursor_to)
7398 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
7399 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
7400 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
7401 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
7402 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
7403 Add prototypes.
7404 (mode_line_string, marginal_area_string): Fix prototypes.
7405
7406 * window.c (enum window_part): Move to dispextern.h.
7407 (coordinates_in_window): Use enum window_part member names
7408 instead of numbers to describe return value.
7409 (struct check_window_data): Change part member to window_part.
7410 (check_window_containing): Return window_part unaltered.
7411 (window_from_coordinates): Change part arg from int to enum
7412 window_part. Allow part arg to be null. All users changed.
7413
7414 * window.h (window_from_coordinates): Fix prototype.
7415
7416 * term.c (estimate_mode_line_height): Move to xdisp.c.
7417
7418 * keyboard.c (make_lispy_event): Use enum window_part.
7419
7420 * dispnew.c (mode_line_string, marginal_area_string): Use enum
7421 window_part instead of int in arg list. Users changed.
7422
7423 * xterm.h (No_Cursor): Declare as None for X.
7424 (struct mac_output): Replace member cross_cursor by hand_cursor.
af0ad939 7425
acd37560
KS
7426 * xterm.c: Remove consolidated defines and code.
7427 (BETWEEN): Remove unused macro.
7428 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
7429 (x_define_frame_cursor, x_clear_frame_area)
7430 (x_draw_window_cursor): New X-specific functions for RIF.
7431 (x_redisplay_interface): Add new members.
7432
7433 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
7434
7435 * w32term.h (struct w32_output): Remove cross_cursor member.
7436
7437 * w32term.c: Remove consolidated defines and code.
7438 (BETWEEN): Remove unused macro.
7439 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
7440 (w32_define_frame_cursor, w32_clear_frame_area)
7441 (w32_draw_window_cursor): New W32-specific functions for RIF.
7442 (w32_redisplay_interface): Add new members.
7443
a64387ee 7444 * w32gui.h (No_Cursor): Define as 0 for W32.
acd37560
KS
7445 (XRectangle): Add X compatible rectangle type.
7446 (NativeRectangle): Declare as RECT for W32.
7447 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
7448
7449 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
7450
7451 * w32console.c: Remove consolidated defines and code.
af0ad939 7452
acd37560
KS
7453 * msdos.h (Display_Info): Add generic typedef.
7454
7455 * msdos.c: Remove consolidated defines and code.
7456 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
7457
7458 * macterm.h (struct mac_output): Replace member cross_cursor by
7459 hand_cursor.
7460 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
7461
7462 * macterm.c: Remove consolidated defines and code.
7463 (BETWEEN): Remove unused macro.
7464 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
7465 (mac_define_frame_cursor, mac_clear_frame_area)
7466 (mac_draw_window_cursor): New Mac-specific functions for RIF.
7467 (x_redisplay_interface): Add new members.
7468
7469 * macgui.h (No_Cursor): Define as 0 for Mac.
7470 (XRectangle): Add X compatible rectangle type.
7471 (NativeRectangle): Declare as Rect for Mac.
7472 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
7473
204ccab1
KS
7474 * macfns.c (x_set_mouse_color): Setup hand_cursor.
7475 (x_set_cursor_color): Use x_display_and_set_cursor.
acd37560 7476
9443fcf6 7477 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
acd37560
KS
7478 included from it. Add dependency on keymap.h.
7479
7480 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
7481
8ba01a70 74822003-03-21 Kenichi Handa <handa@m17n.org>
3f817c73
KH
7483
7484 * fileio.c (Fexpand_file_name): Fix previous change.
7485
8ba01a70 74862003-03-19 Kenichi Handa <handa@m17n.org>
4f497b0a
KH
7487
7488 * fileio.c (Ffile_name_directory): Reconstruct file name by
7489 make_specified_string.
7490 (Ffile_name_nondirectory, Ffile_name_as_directory)
7491 (Fdirectory_file_name, Fexpand_file_name)
7492 (Fsubstitute_in_file_name): Likewise.
7493 (Fread_file_name): Compare decoded homedir with DIR and
7494 DEFAULT_FILENAME.
7495
7496 * alloc.c (make_specified_string): If NCHARS is negative, count
7497 the number of characters.
7498
19536747
JD
74992003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7500
de38ae5a
JD
7501 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
7502 all widgets.
7503
19536747
JD
7504 * gtkutil.h: Removed xg_ignore_next_thumb.
7505
37ab321e 75062003-03-18 Kenichi Handa <handa@m17n.org>
cb0d4562
KH
7507
7508 * coding.c (Vchar_coding_system_table): Remove this variable.
7509 (Vcoding_system_safe_chars): New variable.
7510 (intersection): Remove this function.
7511 (find_safe_codings): Don't use Vchar_coding_system_table, but try
7512 all codings in SAFE_CODINGS.
00c64fab 7513 (Ffind_coding_systems_region_internal): Adjust for the change of
cb0d4562
KH
7514 find_safe_codings. Get generic coding systems from
7515 Vcoding_system_safe_chars.
7516 (Fdefine_coding_system_internal): New function.
7517 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
7518 Initialize and staticpro Vcoding_system_safe_chars.
7519
17097258
JD
75202003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7521
2a2071c3
JD
7522 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
7523 equal old values before updating.
7524
17097258
JD
7525 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
7526
7527 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
7528
75292003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7530
7531 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
7532 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
7533 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
7534 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
7535 (xg_create_scroll_bar): Pass bar to button event callback.
7536 (xg_find_top_left_in_fixed): New function.
7537 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
7538 whole scroll bar area. Get old position with
7539 xg_find_top_left_in_fixed, calculate and only clear needed areas.
7540 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
7541 dragging is in progress. Calculate whole as for Motif.
7542 Remove code that saved last values. Call gtk_range functions to
7543 set scroll bar sizes.
7544
7545 * gtkutil.h: Removed xg_ignore_next_thumb.
7546
8cb9dfbf
JB
75472003-03-17 Juanma Barranquero <lektu@terra.es>
7548
7549 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
7550 and files included from it.
7551
00c64fab
SM
75522003-03-18 Stefan Monnier <monnier@cs.yale.edu>
7553
7554 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
7555 multiple occurrences of the same keymap under different prefixes.
7556 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
7557
c45bb3b2
JR
75582003-03-16 Jason Rumney <jasonr@gnu.org>
7559
7560 * w32gui.h: Use HDC for Display.
7561
7562 * w32term.c (w32_encode_char): Prevent double-byte chars from
7563 crashing Emacs.
7564
7565 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
7566 as binary.
7567
2a6d0874
JB
75682003-03-16 Juanma Barranquero <lektu@terra.es>
7569
7570 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
7571
03eb5fab
KS
75722003-03-16 Kim F. Storm <storm@cua.dk>
7573
7574 The following changes consolidate some of the gui-independent
7575 parts of the processing and drawing of "glyph strings" from
7576 xterm.c, w32term.c, and macterm.c into xdisp.c.
2a6d0874 7577
03eb5fab
KS
7578 * dispextern.h (struct glyph): Reduce face_id member from 22 to
7579 21 bits (this reduces number of faces from 4M to 2M).
7580 Replace W32 specific w32_font_type member (2 bits) by generic
7581 font_type member (3 bits) for portability.
7582 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
7583 (enum draw_glyphs_face): Define here.
7584 (struct glyph_string): Define here. Merge W32 and X versions.
7585 (struct redisplay_interface): New members per_char_metric,
7586 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
7587 (VCENTER_BASELINE_OFFSET): Define here.
7588 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
7589 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
7590
7591 * xdisp.c: Consolidate gui-independent "glyph string" code here.
7592 (dump_glyph_string): Moved here.
7593 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
7594 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
7595 (fill_composite_glyph_string, fill_glyph_string)
7596 (fill_image_glyph_string, fill_stretch_glyph_string)
7597 (left_overwritten, left_overwriting, right_overwritten)
7598 (right_overwriting, get_char_face_and_encoding)
7599 (set_glyph_string_background_width, compute_overhangs_and_x)
7600 (append_glyph, append_composite_glyph, produce_image_glyph)
7601 (take_vertical_position_into_account, append_stretch_glyph)
7602 (produce_stretch_glyph): New generic functions (based on X version).
7603 Call platform specific functions through rif.
7604 (INIT_GLYPH_STRING): New macro, hides W32 details.
7605 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
7606 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
7607 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
7608 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
7609 (notice_overwritten_cursor):
7610 Generic functions exported to platform modules. Users changed.
7611
7612 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
7613 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
7614 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
fad49844 7615 New macros for consolidated code.
2a6d0874 7616
03eb5fab
KS
7617 * xterm.c: Remove consolidated defines and code.
7618 (x_per_char_metric, x_encode_char)
7619 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
7620 (x_redisplay_interface): Add new members.
7621
7622 * w32gui.h (Display): Add dummy typedef for consolidation.
7623 (XChar2b): Define alias for wchar_t for consolidation.
7624 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
7625
7626 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
2a6d0874 7627 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
03eb5fab
KS
7628 New macros for consolidation.
7629
fad49844 7630 * w32term.c: Remove consolidated defines and code.
03eb5fab
KS
7631 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
7632 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
7633 (w32_per_char_metric): Change font_type arg to int for RIF.
7634 (w32_encode_char): Return int according to RIF requirements.
7635 (w32_compute_glyph_string_overhangs): Adapt to RIF.
7636 (w32_get_glyph_overhangs): New function for RIF. Uses generic
7637 x_get_glyph_overhangs.
7638 (w32_redisplay_interface): Add new members.
7639
7640 * macgui.h (XChar2b): Move typedef here for consolidation.
7641 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
7642
7643 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
7644 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
7645 consolidation.
7646
7647 * macterm.c: Remove consolidated defines and code.
7648 (mac_per_char_metric): New function for RIF.
00c64fab 7649 (mac_encode_char): Adapt to new RIF requirements.
03eb5fab
KS
7650 (mac_compute_glyph_string_overhangs): Adapt for RIF.
7651 (x_redisplay_interface): Add new members.
7652
00c64fab
SM
76532003-03-15 Stefan Monnier <monnier@cs.yale.edu>
7654
7655 * keymap.c (Vmenu_events): New var.
7656 (syms_of_keymap): Initialize it.
7657 (where_is_internal): Check more carefully what is a menu event.
7658
225c7a07
RS
76592003-03-14 Richard M. Stallman <rms@gnu.org>
7660
7661 * lread.c (read1): After #!, exit loop on eof.
7662
cea9be54
JD
76632003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7664
9ea0e54d
JD
7665 * gtkutil.h: Add declaration for xg_frame_cleared.
7666
0cb35f4e
JD
7667 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
7668
cea9be54
JD
7669 * gtkutil.c (struct xg_last_sb_pos): New structure.
7670 (handle_fixed_child): New function.
7671 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
7672 and force a redraw on them.
7673 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
7674 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
7675 so we can avoid unneeded redraws.
7676 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
7677 and force a redraw on the scroll bar.
7678 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
7679 if xg_last_sb_pos shows the positions are up to date.
0cb35f4e 7680 (xg_frame_cleared): New function.
cea9be54 7681
20b853f3
KH
76822003-03-13 Kenichi Handa <handa@m17n.org>
7683
7684 * coding.c (Fdetect_coding_region): Fix docstring.
7685 (Fdetect_coding_string): Fix docstring.
7686
7a555aff
AS
76872003-03-13 Andreas Schwab <schwab@suse.de>
7688
25cc0080
AS
7689 * gtkutil.c: Add prototype for create_menus.
7690
30225431
AS
7691 * data.c (long_to_cons): Fix type of top.
7692
7693 * xselect.c (selection_data_to_lisp_data): Use int instead of
7694 long for an integer of size 4.
7695
7a555aff 7696 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
30225431 7697 (xg_tool_bar_help_callback): Likewise.
7a555aff 7698
a3e4741f
AS
76992003-03-12 Andreas Schwab <schwab@suse.de>
7700
7701 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
7702
9668be7c
KS
77032003-03-12 Kim F. Storm <storm@cua.dk>
7704
03eb5fab 7705 The following changes consolidate the fringe handling from
9668be7c 7706 xterm.c, w32term.c, and macterm.c into xdisp.c.
00a88f32 7707
9668be7c
KS
7708 * xdisp.c: Consolidate fringe handling code here.
7709 (left_bits, right_bits, continued_bits, continuation_bits)
7710 (ov_bits, zv_bits): Define fringe bitmaps.
7711 (fringe_bitmaps): New array holding fringe bitmaps.
7712 (draw_fringe_bitmap): Draw a specific bitmap; call display
7713 specific drawing routine via rif->draw_fringe_bitmap.
7714 (draw_row_fringe_bitmaps): Generic replacement for
7715 x_draw_row_fringe_bitmaps; all callers changed.
7716 (compute_fringe_widths): Generic replacement for
7717 x_compute_fringe_widths; all callers changed.
7718
7719 * dispextern.h (enum fringe_bitmap_type): Define here.
7720 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
7721 (fringe_bitmaps): Declare extern.
7722 (struct redisplay_interface): New member draw_fringe_bitmap.
7723 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
7724
7725 * xterm.c: Remove generic fringe code.
7726 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
7727 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
7728
7729 * w32term.c: Remove generic fringe code.
7730 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
7731 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
00a88f32 7732
9668be7c
KS
7733 * macterm.c: Remove generic fringe code.
7734 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
7735 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
7736
00a88f32
SM
77372003-03-11 Stefan Monnier <monnier@cs.yale.edu>
7738
7739 * print.c (Fprin1_to_string): Return unibyte string if possible.
7740
1d1de695
DK
77412003-03-09 David Kastrup <dak@gnu.org>
7742
7743 * process.c (read_process_output): We have allocated enough space
7744 for readmax and carryover, so actually use the alloted space.
7745
257f40f2
JD
77462003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7747
7748 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
7749 toolkit scrollbar click.
7750
7751 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
7752 for USE_GTK.
7753 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
7754 also.
7755 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
7756 scrollbar and control is pressed, call x_scroll_bar_handle_click.
00a88f32 7757
257f40f2
JD
7758 * gtkutil.h: Declare xg_get_scroll_id_for_window.
7759
7760 * gtkutil.c (xg_get_scroll_id_for_window): New function.
7761 (xg_tool_bar_item_expose_callback): New function.
7762 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
7763 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
7764 on the tool bar widget.
7765 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
7766 to expose on the tool bar item widgets.
7767
15213141
JD
77682003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7769
26b74a0b 7770 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
00a88f32 7771 struct image* when deciding to update (struct image* may have been
26b74a0b
JD
7772 deleted from the image cache).
7773
15213141
JD
7774 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
7775 the event isn't for a frame (i.e. for dialogs).
7776
20b853f3 77772003-03-07 Kenichi Handa <handa@m17n.org>
cb681b34
KH
7778
7779 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
7780 composition components reaches the limit, terminate composing.
7781 (COMPOSITION_OK): New macro.
00a88f32 7782 (detect_coding_iso2022): Use it if an escape sequence for
cb681b34
KH
7783 composition is found.
7784 (coding_restore_composition): Adjust the number of composition
7785 components if it is not sane.
7786
c9029fe5
JB
77872003-03-06 Juanma Barranquero <lektu@terra.es>
7788
7789 * w32term.h (struct w32_display_info): Add xrdb member to support
7790 passing resources via -xrm on Windows.
7791
7792 * w32term.c (w32_make_rdb): New function.
7793 (w32_term_init): Use it to initialize xrdb member of w32_display_info
7794 struct. Delete leftover code.
7795
7796 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
7797 for resources passed on the command line.
7798
7799 * w32reg.c (w32_get_rdb_resource): New function.
7800 (x_get_string_resource): Use it, so resources passed with -xrm
7801 supercede the ones in the registry.
7802
9d00001f
JD
78032003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7804
7805 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
7806 instead of x_top_window_to_frame.
7807
ca2417b9
JD
78082003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7809
7810 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
7811 when restarting Emacs.
7812
5b20caf0
RS
78132003-03-03 Richard M. Stallman <rms@gnu.org>
7814
7815 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
7816 to run kill-buffer-query-functions.
7817 (Qkill_buffer_query_functions): New var.
7818 (syms_of_buffer): Init and staticpro it.
7819
58e91b77
JD
78202003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7821
7822 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
7823
932357b4
KS
78242003-02-25 Kim F. Storm <storm@cua.dk>
7825
7826 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
7827 If centering point failed to make whole line visible and vscroll
7828 is non-zero, disable vscroll and try centering point again.
7829
7830 * lread.c (read1): Accept `single space' syntax like (? x).
7831
bb8db7e1
JD
78322003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7833
7834 * keyboard.c (cancel_hourglass_unwind): Surround with
7835 #ifdef HAVE_X_WINDOWS
7836
47d77aab
KH
78372003-02-25 Kenichi Handa <handa@m17n.org>
7838
7839 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
7840 process only when "subprocesses" is defined.
7841
6a097c0c
SM
78422003-02-24 Stefan Monnier <monnier@cs.yale.edu>
7843
7844 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
7845
0b063c27
JB
78462003-02-24 Juanma Barranquero <lektu@terra.es>
7847
d1135afc
JB
7848 * callint.c (fix_command): Declare as static void and move before
7849 Fcall_interactively.
7850
0b063c27
JB
7851 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
7852 (syms_of_xdisp): Don't initialize Qwhen.
7853
0af912f0
JD
78542003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7855
7856 * keyboard.c (cancel_hourglass_unwind): New function.
7857 (command_loop_1): Cancel hourglass with unwind-protect.
7858
120d0a23
RS
78592003-02-23 Richard M. Stallman <rms@gnu.org>
7860
7861 * callint.c (fix_command): New subroutine, from Fcall_interactively.
7862 Detect (when ... (region-beginning)) etc.
7863 (Fcall_interactively): Call fix_command.
7864 (Qif, Qwhen): New variables.
7865 (syms_of_callint): Init and staticpro them.
0b063c27 7866
120d0a23
RS
7867 * regex.c (print_partial_compiled_pattern): Output to stderr.
7868
4ece81a6
KG
78692003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
7870
7871 * dired.c (directory_files_internal): Don't expand directory.
7872 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
7873 instead. From Lars Hansen <larsh@math.ku.dk>.
7874
e52bd6b7
SM
78752003-02-22 Stefan Monnier <monnier@cs.yale.edu>
7876
7877 * fns.c (string_to_multibyte): Remove unused var i.
7878 (Flanginfo): Fix int/Lisp_Object mixup.
7879 (void_call2): New fun.
7880 (Fmap_char_table): Use it in place of call2.
7881
7882 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
7883
7884 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
7885
7886 * keymap.c (copy_keymap_1): Make it static.
7887
7888 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
7889
c33ef7c4
JB
78902003-02-22 David Ponce <david@dponce.com>
7891
7892 * lread.c (Fload): Don't check STRING_MULTIBYTE.
7893
16782258
JD
78942003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7895
7896 * process.h: Removed subtty field from struct Lisp_Process.
7897
7898 * process.c (create_process): Remove setting of subtty.
7899 (emacs_get_tty_pgrp): New function.
e52bd6b7
SM
7900 (Fprocess_running_child_p, process_send_signal):
7901 Call emacs_get_tty_pgrp instead of ioctl.
16782258
JD
7902 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
7903
3abeca61
KG
79042003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
7905
7906 * keymap.c (Fdefine_key): Doc fix.
7907
92a8ce63
JB
79082003-02-21 Juanma Barranquero <lektu@terra.es>
7909
7910 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
7911
7912 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
7913 POLLING_PROBLEM_IN_SELECT.
7914
7915 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
7916 Delete #undef of POLLING_PROBLEM_IN_SELECT.
7917
7918 * s/hpux10-20.h: New file.
7919
e52bd6b7
SM
7920 * process.c (wait_reading_process_input):
7921 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
92a8ce63 7922
20f1ef2e
KH
79232003-02-20 Kenichi Handa <handa@m17n.org>
7924
32d0a9dc
KH
7925 * fontset.c (check_fontset_name): If NAME is nil, return the
7926 default fontset.
7927 (override_font_info): New function.
e52bd6b7 7928 (Fset_fontset_font): Document that NAME nil means the default fontset.
32d0a9dc
KH
7929 (Ffontset_info): If FONTSET is not the default fontset, merge
7930 FONTSET onto the copy of the default fontset, and work on that
7931 copy. Document that NAME nil means the default fontset.
7932 (Ffontset_font): Document that NAME nil means the default fontset.
7933
20f1ef2e
KH
7934 * process.c (setup_process_coding_systems): If the process's
7935 in/out descriptor is -1, do nothing.
7936
77d1daf2
AS
79372003-02-19 Andreas Schwab <schwab@suse.de>
7938
e52bd6b7
SM
7939 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
7940 Add prototypes.
77d1daf2 7941
f9a45bb3
KH
79422003-02-19 Kenichi Handa <handa@m17n.org>
7943
7944 * xfaces.c (try_alternative_families): Try all scalable fonts if
7945 Vscalable_fonts_allowed is not Qt.
7946
72ecb43c
JD
79472003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7948
7949 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
7950
ee5be7c3
JD
79512003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7952
7953 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
7954 names.
7955
7956 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
e52bd6b7 7957 (sorted_font_list): Move allocation of struct font_name to
ee5be7c3
JD
7958 x_face_list_fonts.
7959 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
7960 (Fx_list_fonts): Set maxnames to -1 to get all font names.
7961
4cd519a7
KS
79622003-02-18 Kim F. Storm <storm@cua.dk>
7963
068f9882
KS
7964 * lread.c (read1): Fix last change.
7965 "`" is not always special. Allow "?" after a character constant.
4cd519a7 7966
7290a344
AC
79672003-02-18 Andrew Choi <akochoi@shaw.ca>
7968
7969 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
7970
1f7fa69b
AS
79712003-02-18 Andreas Schwab <schwab@suse.de>
7972
7973 * window.c (window_scroll_pixel_based): Move outside a
7974 multi-glyph character before setting new window start.
7975
7976 * xdisp.c (in_display_vector_p): New function.
7977 * dispextern.h (in_display_vector_p): Declare.
7978
23e21195
KS
79792003-02-18 Kim F. Storm <storm@cua.dk>
7980
7981 * lread.c (read1): Fix and relax read syntax.
7982 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
7983 Only recognize "," after dotted-pair dot if inside backquote.
7984 Never include "`" or "," (inside backquote) in a symbol.
7985 Allow dotted-pair dot after a character constant.
7986 Allow "`" and "," (inside backquote) after a character constant.
92a8ce63 7987
f098b121
JD
79882003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7989
7990 * gtkutil.c (xg_tool_bar_expose_callback): New function.
7991 (xg_create_tool_bar): Force style of tool bar to be horizontal with
7992 icons. Set name of tool bar to emacs-toolbar.
7993 (update_frame_tool_bar): Connect expose event to
7994 xg_tool_bar_expose_callback.
7995
63020c46
RS
79962003-02-17 Richard M. Stallman <rms@gnu.org>
7997
7998 * keyboard.c (this_command_key_count_reset): New variable.
7999 Initiatize to 0 where this_command_key_count is set.
8000 (read_char): Save and restore this_command_key_count_reset
8001 around input method code.
8002 (read_char): If this_command_key_count_reset, echo reread commands.
8003 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
8004
fb4452cc
KH
80052003-02-17 Kenichi Handa <handa@m17n.org>
8006
8007 * fns.c (string_to_multibyte): Always return a multibyte string.
8008
bd11cc09
JR
80092003-02-16 Jason Rumney <jasonr@gnu.org>
8010
e52bd6b7
SM
8011 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
8012 Negative max_fonts parameter means list all.
bd11cc09 8013
4cdf4bde
DL
80142003-02-14 Dave Love <fx@gnu.org>
8015
8016 * fns.c (Flanginfo): Doc fix.
8017
023b93f6
KS
80182003-02-13 Kim F. Storm <storm@cua.dk>
8019
37cd4238
KS
8020 * lread.c (read_escape): Interpret \s as a SPACE character, except
8021 for \s-X in a character constant which still is the super modifier.
8022 (read1): Signal an `invalid read syntax' error if a character
8023 constant is immediately followed by a digit or symbol character.
8024
140a6b7e
KS
8025 * search.c (Fmatch_data): Doc fix. Explicitly state that
8026 match-data is undefined if last search failed.
8027
023b93f6
KS
8028 * keymap.c (Fcommand_remapping): Renamed from Fremap_command.
8029 All uses changed.
8030
7d5c86e5
JB
80312003-02-12 Juanma Barranquero <lektu@terra.es>
8032
8033 * eval.c (Fdefmacro): Fix typo.
8034
295fff2c
KS
80352003-02-12 Kim F. Storm <storm@cua.dk>
8036
8037 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
8038 macro is a string, convert meta modifiers in string when copying
8039 the string into a vector.
8040
60f3202d
KS
80412003-02-11 Kim F. Storm <storm@cua.dk>
8042
8043 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
8044
61cb0b53
KH
80452003-02-11 Kenichi Handa <handa@m17n.org>
8046
8047 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
8048
7392e23c
KS
80492003-02-10 Kim F. Storm <storm@cua.dk>
8050
8051 * process.c: Doc fixes.
8052 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
8053
ce4254bd
KH
80542003-02-10 Kenichi Handa <handa@m17n.org>
8055
9c7a329a
KH
8056 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
8057
ce4254bd
KH
8058 * process.c (QCfilter_multibyte): New variable.
8059 (setup_process_coding_systems): New function.
e52bd6b7
SM
8060 (Fset_process_buffer, Fset_process_filter):
8061 Call setup_process_coding_systems.
ce4254bd
KH
8062 (Fstart_process): Initialize the member `filter_multibyte' of
8063 struct Lisp_Process.
8064 (create_process): Call setup_process_coding_systems.
8065 (Fmake_network_process): New keyward `:filter-multibyte'.
8066 Initialize the member `filter_multibyte' of struct Lisp_Process.
8067 Call setup_process_coding_systems.
8068 (server_accept_connection): Call setup_process_coding_systems.
8069 (read_process_output): If the process has a filter, decide the
8070 multibyteness of a string to given to the filter by
8071 `filter_multibyte' member of the process. If the process doesn't
8072 have a filter and the result of conversion is unibyte, use
8073 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
8074 multibyte form.
8075 (Fset_process_coding_system): Call setup_process_coding_systems.
8076 (Fset_process_filter_multibyte): New function.
8077 (Fprocess_filter_multibyte_p): New function.
8078 (syms_of_process): Intern and staticpro QCfilter_multibyte.
8079 Defsubr Sset_process_filter_multibyte and
8080 Sprocess_filter_multibyte_p.
8081
8082 * process.h (struct Lisp_Process): New member filter_multibyte.
8083
8084 * lisp.h (setup_process_coding_systems): Add prototype.
8085
8086 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
8087 process, update coding systems for the process.
8088
b08d5f59
KH
80892003-02-09 Kenichi Handa <handa@m17n.org>
8090
8091 * fns.c (string_to_multibyte): New function.
8092 (Fstring_to_multibyte): New function.
8093 (syms_of_fns): Defsubr it.
8094
0dfd93c0
AS
80952003-02-08 Andreas Schwab <schwab@suse.de>
8096
8097 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
8098 instead of the substitution.
8099
7b76ca1c
JD
81002003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8101
8102 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
8103
8104 * xmenu.c (menu_position_func): Adjust menu popup position so that
8105 the menu is fully visible.
7b76ca1c 8106
2436a4e4
JD
81072003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8108
8109 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
e52bd6b7
SM
8110 (x_make_frame_invisible, x_wm_set_icon_position):
8111 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
2436a4e4
JD
8112
8113 * xfns.c (x_set_name, x_set_title): Ditto.
8114
37d1e680
RS
81152003-02-04 Richard M. Stallman <rms@gnu.org>
8116
8117 * keyboard.c (echo_now): Update before_command_echo_length.
8118 (Freset_this_command_lengths): Reset this_command_key_count etc.
8119 immediately rather than arranging to do it later.
8120 (before_command_key_count_1, before_command_echo_length_1)
8121 (before_command_restore_flag): Vars deleted.
8122 (add_command_key): Don't handle before_command_restore_flag.
8123 (read_char, record_menu_key): Don't update before_command_key_count or
8124 before_command_echo_length.
8125 (read_char): Don't handle before_command_restore_flag.
8126
8127 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
8128 in direct-output clauses if it wouldn't be called in the ordinary case.
8129
578846a3
KS
81302003-02-04 Kim F. Storm <storm@cua.dk>
8131
8132 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
8133
49853a4d
JD
81342003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8135
8136 * gtkutil.c (remove_from_container): Copying list is not needed.
8137 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
8138 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
8139 on list returned from gtk_container_get_children to avoid memory leak.
8140
8b53dc06
JR
81412003-02-01 Jason Rumney <jasonr@gnu.org>
8142
5d54d177
JR
8143 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
8144 local malloc.
8145 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
8146 definitions in xpm.h.
8147 (init_xpm_functions): New function.
f63fd14e 8148 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
5d54d177
JR
8149 (init_external_image_libraries): Try to load libXpm.dll.
8150
8b53dc06
JR
8151 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
8152 timestamp.
8153
b222e415
DL
81542003-01-31 Dave Love <fx@gnu.org>
8155
8156 * syntax.c (Fskip_chars_forward)
8157 (open-paren-in-column-0-is-defun-start): Doc fix.
8158
c60ee5e7
JB
81592003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
8160
8161 * fileio.c: Support // at start of name for Cygwin (just added proper
8162 preprocessor tests).
8163
8164 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
8165
8166 * Makefile.in: Use @EXEEXT@ for Cygwin.
8167
8168 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
8169
8170 * s/cygwin.h: Added for Cygwin port.
8171
53b37591
JB
81722003-01-31 Juanma Barranquero <lektu@terra.es>
8173
8174 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
8175 when including gif_lib.h.
fe929957 8176 (init_gif_functions, init_tiff_functions): New functions.
f63fd14e
JB
8177 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
8178 Windows. Disable color table lookups. Call library functions
53b37591 8179 through pointers determined at runtime.
fe929957
JB
8180 (init_external_image_libraries): Try to load libungif.dll and
8181 libtiff.dll.
53b37591 8182
45415a8f
KH
81832003-01-31 Kenichi Handa <handa@m17n.org>
8184
8185 * xdisp.c (SKIP_GLYPHS): New macro.
e52bd6b7 8186 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
45415a8f 8187
a97e4138
JD
81882003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8189
e52bd6b7 8190 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
a97e4138 8191
6eed9bed
DL
81922003-01-30 Dave Love <fx@gnu.org>
8193
8194 * alloc.c (Vgc_elapsed, gcs_done): New variables.
8195 (Fgarbage_collect): Use them.
8196 (init_alloc, syms_of_alloc): Set them up.
8197
100dcd40
JB
81982003-01-30 Juanma Barranquero <lektu@terra.es>
8199
8200 * w32fns.c (init_external_image_libraries): Add missing operator.
8201
fbd852af
JR
82022003-01-29 Jason Rumney <jasonr@gnu.org>
8203
8204 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
8205 an alternative name for jpeg.dll.
8206
8a2d8020
KH
82072003-01-29 Kenichi Handa <handa@m17n.org>
8208
8209 * xdisp.c (set_cursor_from_row): Pay attention to string display
8210 properties.
8211
058c18c7
AC
82122003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
8213
8214 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
8215 <escape>.
8216 (keycode_to_xkeysym_table): Reformat and add more comments.
8217 (XTread_socket): Drop special case for backspace.
8218
385f11cf
AC
82192003-01-28 Andrew Choi <akochoi@shaw.ca>
8220
8221 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
8222 values in old-style RGB specs.
8223
c922a224
JB
82242003-01-27 Juanma Barranquero <lektu@terra.es>
8225
8226 * w32fns.c (init_external_image_libraries): Try alternate names for the
8227 jpeg dll.
8228
0a1d6de0
JD
82292003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8230
8231 * gtkutil.c (create_dialog, xg_separator_p)
8232 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
8233 before calling strcmp or strlen.
8234
a97e4138 82352003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1d1885fc
JD
8236
8237 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
8238 and handle image load failure.
8239
28908312
JR
82402003-01-26 Jason Rumney <jasonr@gnu.org>
8241
8242 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
8243 New functions.
f63fd14e
JB
8244 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
8245 Disable color table lookups. Call jpeg library functions
28908312
JR
8246 through pointers determined at runtime.
8247 (init_external_image_libraries): Try to load jpeg.dll.
8248
84e47416
RS
82492003-01-25 Richard M. Stallman <rms@gnu.org>
8250
8251 * lisp.h: Declare format2 instead of format1.
8252
8253 * fileio.c (barf_or_query_if_file_exists):
8254 Call format2 instead of format1.
8255
8256 * editfns.c (format2): New function, replaces format1
8257 but takes exactly two Lisp Objects as format args.
8258
8259 * buffer.c (Fkill_buffer): Call format2 instead of format1.
8260
a97e4138 82612003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1fcfb866
JD
8262
8263 * xterm.h: Change to return value of x_dispatch_event to int.
8264
8265 * xterm.c (x_filter_event): New function.
8266 (event_handler_gdk, XTread_socket): Call x_filter_event.
8267 (x_dispatch_event): Change to return value of finish.
8268 (event_handler_gdk): Use return value from x_dispatch_event.
8269
8270 * xfns.c (x_window): Call create_frame_xic for GTK version to
8271 initialize input methods.
8272
8273 * gtkutil.h: Add (void) prototypes.
8274
8275 * gtkutil.c (create_menus): Remove code that puts the help menu to
8276 the right.
8277
54eefef1
JR
82782003-01-25 Jason Rumney <jasonr@gnu.org>
8279
8280 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
8281 [HAVE_PNG]: Sync with xfns.c version.
f63fd14e
JB
8282 (png_load): Adjust colors for Windows. Use Windows
8283 bitmaps. Disable color table lookups.
c262430d
JR
8284 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
8285 (init_png_functions): New function.
8286 (png_read_from_memory, png_load): Call png library functions
8287 through pointers determined at runtime.
8288 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
8289 (init_external_image_libraries): New function.
8290 (init_xfns): Call it.
54eefef1 8291
1a9e275b
AS
82922003-01-24 Andreas Schwab <schwab@suse.de>
8293
8294 * minibuf.c (Fminibuffer_message): Verify type of parameter.
8295
a97e4138 82962003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
81e302ef
JD
8297
8298 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
8299 of static initializer.
8300
422eec7e
DL
83012003-01-24 Dave Love <fx@gnu.org>
8302
8303 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
8304 architectures.
8305
8306 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
8307 Use __alignof__.
8308
2a026b04
KH
83092003-01-24 Kenichi Handa <handa@m17n.org>
8310
8311 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
e52bd6b7 8312 It it is nonzero, don't pretend that an invisible area doesn't exist.
2a026b04
KH
8313 (command_loop_1): Call adjust_point_for_property with proper
8314 second arg.
8315
a18bb28d
JR
83162003-01-22 Jason Rumney <jasonr@gnu.org>
8317
8318 Sync changes with xterm.c and xfns.c.
8319
8320 * w32term.c (x_draw_glyph_string_foreground)
8321 (x_draw_composite_glyph_string_foreground): Implement overstriking.
8322
8323 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
8324 phys_cursor's hpos is overwritten. This is still not completely
8325 correct, as it doesn't really make sense to use hpos at all to
8326 get the cursor glyph (as that is relative to the width of the
8327 characters on the line, which may have changed during the update).
8328
8329 * w32term.c (notice_overwritten_cursor): Handle the special case
8330 of the cursor being in the first blank non-text line at the
8331 end of a window.
8332
8333 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
8334 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
8335 Compute from the x position returned by x_draw_glyphs.
8336
8337 (x_display_and_set_cursor): Don't set phys_cursor_width here,
8338 except for NO_CURSOR and system caret, to make phys_cursor_width
8339 contain what its name suggests.
8340 (notice_overwritten_cursor): Consider the cursor image erased if
8341 the output area intersects the cursor image in y-direction.
8342
6a097c0c
SM
8343 * w32term.c (note_mode_line_or_margin_highlight): Rename from
8344 note_mode_line_highlight and extend.
a18bb28d
JR
8345
8346 * w32term.c (last_window): New variable.
8347 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
8348 (note_mouse_movement): Remove reimplemented code in #if 0.
8349
8350 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
8351 not update_mode_lines, and always set it to 1.
8352
ac6e47ef
JR
83532003-01-21 Jason Rumney <jasonr@gnu.org>
8354
8355 * w32fns.c (IDC_HAND): Define it if system headers don't.
8356
83572003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
8358
8359 * w32term.h (struct w32_output): New member hand_cursor.
8360 (WM_EMACS_SETCURSOR): New message definition.
8361
8362 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
8363 function w32_define_cursor.
8364 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
8365 position, change member name output_data.x to output_data.w32 and
8366 add function w32_define_cursor.
8367 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
8368 and change member name output_data.x to output_data.w32.
e52bd6b7
SM
8369 (w32_initialize_display_info):
8370 Setup dpyinfo->vertical_scroll_bar_cursor.
ac6e47ef
JR
8371
8372 * w32fns.c (Vx_hand_shape): New variable.
8373 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
8374 WM_EMACS_SETCURSOR.
8375 (x-create-frame): Setup Cursor types.
8376
ceb39a17
JB
83772003-01-21 David Ponce <david@dponce.com>
8378
ac6e47ef 8379 * w32term.c (w32_encode_char): For DIM=1 charset, set
f63fd14e 8380 ccl->reg[2] to -1 before calling ccl_driver. (Sync. with xterm.c
ac6e47ef 8381 x_encode_char change by Kenichi Handa <handa@m17n.org> on
ceb39a17 8382 2002-09-30.)
ac6e47ef
JR
8383 (w32_draw_relief_rect): Declare all args.
8384 (w32_define_cursor): New.
8385
8386 * w32fns.c (w32_load_cursor): New function.
8387 (w32_init_class): Use it.
8388 (x_put_x_image): Declare all args.
8389
b6189c3b 83902003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk>
46cf0bed
JB
8391
8392 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
8393
a97e4138 83942003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e8794476
JD
8395
8396 * gtkutil.c: Must include stdio.h before termhooks.h
8397
83fc9c63
DL
83982003-01-21 Dave Love <fx@gnu.org>
8399
8400 * alloc.c (Fgc_status): Print zombie list.
8401 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
8402 Fix assignment of zombies.
8403 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
8404 Don't take car of non-cons.
8405
8406 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
8407
8408 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
8409
fe04b8c8
JR
84102003-01-20 David Ponce <david@dponce.com>
8411
8412 * w32menu.c (digest_single_submenu): Declare all args.
8413
8414 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
8415 changes in xmenu.c:
8416
8417 (parse_single_submenu): Use individual keymap's prompt
8418 string as pane name, if there is one.
8419 (set_frame_menubar): Save menu_items_n_panes from each call to
8420 parse_single_submenu and use it when calling digest_single_submenu.
8421
539e69a9
ST
84222003-01-20 Steven Tamm <steventamm@mac.com>
8423
8424 * macterm.c (XTread_socket): Checks for valid, visible window
8425 before sending a scroll-wheel event.
8426
675d000f
RS
84272003-01-20 Richard M. Stallman <rms@gnu.org>
8428
8429 * xdisp.c (redisplay_window): If mini window's buffer is not
8430 a minibuffer, then redisplay it like other windows.
8431
a97e4138 84322003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22174d10
JD
8433
8434 * gtkutil.c (xg_create_frame_widgets): Check if there is an
8435 external tool bar before setting tool bar height.
8436
048addec
JD
84372003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8438
8439 * xterm.c (handle_one_xevent): Surround popup_activated
8440 with #ifdef:s for non-toolkit version.
8441
8442 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
8443 (gtkutil.o): New file.
8444 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
8445 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
8446
8447 * gtkutil.c: New file for GTK version.
8448
8449 * gtkutil.h: New file for GTK version.
8450
8451 * xterm.h: Add xt_or_gtk_widget.
8452 Include gtk files for USE_GTK.
8453 (struct x_output): Add toolbar_height.
8454 (struct x_output): Add GTK widgets and Gdk size_hints.
8455 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
8456 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
8457 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
8458
8459 * xterm.c: Include gtkutil.h for USE_GTK.
8460 Declare extern void free_frame_menubar for USE_GTK.
8461 (note_mouse_highlight): Check popup_activated for USE_GTK.
8462 (xt_action_hook): Don't compile if USE_GTK.
8463 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
8464 (xg_scroll_callback): New function.
8465 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
8466 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
8467 for USE_GTK.
8468 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
8469 xg_show_scroll_bar for USE_GTK.
8470 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
8471 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
8472 (event_handler_gdk): New function for USE_GTK.
8473 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
8474 (handle_one_xevent): Make sure widget is mapped before
8475 calling x_real_positions for USE_GTK.
8476 (XTread_socket): Add GTK event loop for USE_GTK.
8477 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
8478 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
8479 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
8480 (x_iconify_frame): Add code for USE_GTK.
8481 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
8482 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
8483 is in gtkutil.c.
8484 (x_term_init): Add initialization for GTK.
8485 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
8486
8487 * xmenu.c: Include gtkutil.h for USE_GTK.
8488 (Fx_popup_menu): Use current position if x and y is NIL.
6bdb309a
SM
8489 (single_menu_item, single_menu_item, Fx_popup_dialog):
8490 Check for USE_GTK.
048addec
JD
8491 (popup_widget_loop): New function for USE_GTK.
8492 (x_activate_menubar): Add code for USE_GTK.
8493 (popup_activate_callback, popup_deactivate_callback)
6bdb309a
SM
8494 (menu_highlight_callback, menubar_selection_callback):
8495 Add USE_GTK versions.
048addec
JD
8496 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
8497 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
8498 (free_frame_menubar): Only compile if not USE_GTK. GTK version
8499 is in gtkutil.c.
8500 (popup_selection_callback): New version for USE_GTK.
8501 (create_and_show_popup_menu): New fuction, one USE_GTK version and
6bdb309a 8502 one USE_X_TOOLKIT version.
048addec
JD
8503 (xmenu_show): Call create_and_show_popup_menu.
8504 (dialog_selection_callback): New version for USE_GTK.
8505 (create_and_show_dialog): New fuction, one USE_GTK version and
6bdb309a 8506 one USE_X_TOOLKIT version.
048addec
JD
8507 (xdialog_show): Call create_and_show_dialog.
8508
8509 * xfns.c: Include gtkutil for USE_GTK.
8510 (x_window_to_frame, x_any_window_to_frame)
8511 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
8512 (x_top_window_to_frame): Add code for USE_GTK.
8513 (x_set_background_color): Call xg_set_background_color for GTK.
8514 (x_set_menu_bar_lines): Check for USE_GTK.
8515 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
8516 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
8517 (x_window): Call xg_create_frame_widgets for USE_GTK.
8518 (Fx_create_frame): Check for USE_GTK
8519 (Fx_file_dialog): New implementation for USE_GTK.
8520
8521 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
8522 (update_menu_bar): Add check for USE_GTK.
8523 (update_tool_bar): Add check for USE_GTK and external tool bar.
8524 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
8525 (redisplay_internal): Add check for USE_GTK and popup_activated.
8526 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
8527 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
8528 (display_menu_bar): Add check for USE_GTK
8529
8530 * lisp.h: Declare Vx_resource_name extern.
8531
a64387ee 8532 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
048addec
JD
8533 for USE_GTK.
8534 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
8535
8536 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
8537 (FRAME_EXTERNAL_TOOL_BAR): New macro.
8538 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
8539
8540 * fileio.c (Fread_file_name): Add check for USE_GTK.
8541
6bdb309a
SM
8542 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
8543 Add check for USE_GTK.
048addec
JD
8544
8545 * config.in: Added HAVE_GTK
8546
8547 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
8548
85492003-01-18 Stefan Monnier <monnier@cs.yale.edu>
8550
8551 * charset.h (Funibyte_char_to_multibyte): Export.
8552
85532003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8554
8555 * xmenu.c (mouse_position_for_popup): New function.
8556 (Fx_popup_menu): Call mouse_position_for_popup for X and
8557 mouse_position_hook for others.
8558
85592003-01-17 Kim F. Storm <storm@cua.dk>
8560
8561 * editfns.c (Finsert): Mention `string-make-multibyte' and
8562 `string-as-multibyte' in doc string.
8563
85642003-01-17 Kenichi Handa <handa@m17n.org>
8565
8566 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
3c02a6f5 8567
048addec
JD
8568 * editfns.c (Fformat): Convert an unibyte char argument that is
8569 formatted by "%c" to multibyte if the total result must be a
8570 multibyte string.
cd7df9c0 8571
048addec 85722003-01-16 Kim F. Storm <storm@cua.dk>
cd7df9c0 8573
048addec
JD
8574 * process.c (set-process-filter): Document unibyte/multibyte-ness
8575 of string argument.
56210ecd 8576
048addec 85772003-01-16 Kenichi Handa <handa@m17n.org>
56210ecd 8578
048addec 8579 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
56210ecd 8580
048addec
JD
8581 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
8582 (re_search_2): Likewise.
6df8b9fe 8583
048addec 85842003-01-15 Kenichi Handa <handa@m17n.org>
6df8b9fe 8585
048addec
JD
8586 * xdisp.c (message_dolog): Fix bug of the case that *Message*
8587 buffer is unibyte.
292ddc31 8588
048addec 85892003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
292ddc31 8590
048addec 8591 * fns.c (Fsubstring): Clarify doc string.
292ddc31 8592
048addec
JD
8593 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
8594 (Fprevious_char_property_change)
8595 (Fnext_single_char_property_change)
8596 (Fprevious_single_char_property_change, Fnext_property_change)
8597 (Fnext_single_property_change, Fprevious_property_change)
8598 (Fprevious_single_property_change, Fadd_text_properties)
8599 (Fput_text_property, Fset_text_properties)
8600 (Fremove_text_properties, Fremove_list_of_text_properties)
8601 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
63e4e4c6 8602
048addec 86032003-01-14 Kim F. Storm <storm@cua.dk>
63e4e4c6 8604
048addec
JD
8605 * process.h (struct Lisp_Process): New member plist replaces old
8606 member private_vars. All uses changed.
63e4e4c6 8607
048addec 8608 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
6bdb309a 8609 (QCplist): Rename from QCvars. Change all uses.
048addec 8610 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
6bdb309a 8611 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
048addec 8612 (syms_of_process): Intern, staticpro, defsubr these.
6bdb309a 8613 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
7ed16567 8614
048addec 86152003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
7ed16567 8616
6bdb309a 8617 * m/delta.h: Remove (obsolete).
e833850f 8618
048addec 86192003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
e833850f 8620
048addec
JD
8621 * fileio.c (Fdelete_directory, Fdelete_file): Document the
8622 behaviour in front of symlinks.
8623 (Fdelete_file): Raise an error on directories.
817cb127 8624
048addec 86252003-01-13 Dave Love <fx@gnu.org>
817cb127 8626
048addec 8627 * fns.c (Freverse): Use QUIT.
3e8cf2ea 8628
048addec 86292003-01-13 Richard M. Stallman <rms@gnu.org>
3e8cf2ea 8630
048addec
JD
8631 * minibuf.c (minibuffer_completion_contents):
8632 Error if point is inside prompt.
3e8cf2ea 8633
048addec
JD
8634 * keyboard.c (command_loop_1): Don't redisplay directly
8635 if there's a post-command-hook.
3e8cf2ea 8636
048addec
JD
8637 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
8638 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
2c10f029 8639
048addec 86402003-01-12 Kim F. Storm <storm@cua.dk>
94e8ffca 8641
048addec 8642 * process.h (struct Lisp_Process): New member private_vars.
94e8ffca 8643
048addec
JD
8644 * process.c (QCvars): New variable.
8645 (syms_of_process): Intern and staticpro it.
8646 (Fset_process_contact): Removed function.
8647 (Fprocess_variable, Fset_process_variable): New functions.
8648 (syms_of_process): Defsubr them.
8649 (Fstart_process): Initialize private_vars plist to nil.
8650 (Fmake_network_process): New arg :vars to setup the private
8651 variables for new network process.
8652 (server_accept_connection): Copy server's private variables to
8653 client process.
2c10f029 8654
048addec
JD
8655 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
8656 crashes). Code rewritten and simplified. Now directly aligns the
8657 pointer and recalculates pure_bytes_used, rather than aligning the
8658 size and adjusting the pointer.
b8a76c6c 8659
048addec 86602003-01-11 Kim F. Storm <storm@cua.dk>
b8a76c6c 8661
048addec
JD
8662 * process.c (Fset_process_contact): New function.
8663 (syms_of_process): defsubr it.
8664 (make-network-process): Update doc.
3a8d0899 8665
048addec 86662003-01-10 Andreas Schwab <schwab@suse.de>
3a8d0899 8667
048addec
JD
8668 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
8669 Reported by Berthold Gunreben <b.gunreben@web.de>.
4abc7470 8670
048addec 86712003-01-10 Dave Love <fx@gnu.org>
4abc7470 8672
048addec 8673 * composite.c (syms_of_composite): Make composition_hash_table weak.
b809d662 8674
048addec 86752003-01-09 Kim F. Storm <storm@cua.dk>
b809d662 8676
048addec
JD
8677 * process.c (Fmake_network_process): Convert new port number
8678 to host byte order for `:service t' case. From Mario Lang.
bf338245 8679
048addec 86802003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
bf338245 8681
048addec
JD
8682 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
8683 instead of XtAppProcessEvent.
bf338245 8684
048addec
JD
8685 * xterm.c (handle_one_xevent): New function.
8686 (x_dispatch_event): New function.
8687 (XTread_socket): Call handle_one_xevent.
bf338245 8688
048addec 8689 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
e833850f 8690
048addec
JD
8691 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
8692 call XQueryPointer to get coordinates.
8693 (popup_get_selection): Do not set popup_activated_flag to zero,
8694 let popup_deactivate_callback do that. Needed for Motif.
8695 Call x_dispatch_event instead of XtDispatchEvent.
8696 (xmenu_show): Calculate root coordinate from frame top/left position.
c4af2bce 8697
048addec 86982003-01-08 Kim F. Storm <storm@cua.dk>
c4af2bce 8699
6bdb309a 8700 * process.c (server_accept_connection): Fix recording of new
048addec
JD
8701 connection's local address in :local property of contact info.
8702 (Fmake_network_process): Record local network address for new
8703 client processes in :local property of contact info.
6bdb309a 8704 (format-network-address): Add arg OMIT-PORT. Change callers.
00e3ab56 8705
048addec 87062003-01-07 Dave Love <fx@gnu.org>
00e3ab56 8707
048addec 8708 * Makefile.in (fns.o): Depend on coding.h.
f387e1fd 8709
048addec 87102003-01-07 Markus Rost <rost@math.ohio-state.edu>
f387e1fd 8711
048addec 8712 * minibuf.c (Fread_variable): Doc fix.
f387e1fd 8713
048addec
JD
8714 * eval.c (Fuser_variable_p): Doc change. For custom variables,
8715 use the same test as for custom-variable-p.
8c6d74c6 8716
048addec 87172003-01-05 Richard M. Stallman <rms@gnu.org>
e833850f 8718
048addec
JD
8719 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
8720 Count LAST_LINE_MISFIT in scroll margin for end of window.
8721 Move label too_near_end before setting SCROLL_MARGIN_POS.
8722 Set LAST_LINE_MISFIT before jumping there.
8c6d74c6 8723
048addec
JD
8724 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
8725 scroll_conservatively case. If scrolling that much doesn't change
8726 STARTP, move it down one line.
e833850f 8727
048addec
JD
8728 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
8729 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
8c6d74c6 8730
048addec
JD
8731 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
8732 selected frame.
8c6d74c6 8733
048addec
JD
8734 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
8735 (syms_of_keymap): staticpro them.
8736 (Fapropos_internal): Initialize them and clear them out.
8737 Don't GCPRO them.
8c6d74c6 8738
048addec
JD
8739 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
8740 Doc fixes.
8c6d74c6 8741
048addec
JD
8742 * lisp.h: New misc type Lisp_Save_Value.
8743 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
8744 (XSAVE_VALUE): New macro.
8745 (struct Lisp_Save_Value): New data type.
8746 (union Lisp_Misc): Add u_save_value alternative.
8747 (make_save_value): Declared.
8c6d74c6 8748
048addec 8749 * alloc.c (make_save_value): New function.
8c6d74c6 8750
048addec
JD
8751 * xterm.c (x_catch_errors): Save dpy using make_save_value.
8752 (x_catch_errors_unwind): Call XSync.
8c6d74c6 8753
048addec 87542003-01-01 Richard M. Stallman <rms@gnu.org>
8c6d74c6 8755
048addec 8756 * window.c (window_scroll_pixel_based): Partially undo last change.
8c6d74c6 8757
048addec
JD
8758 * keyboard.c (command_loop_1): Call adjust_point_for_property
8759 in direct action cases for Qforward_char and Qbackward_char.
8760 Set already_adjusted so it won't be done twice.
8c6d74c6 8761
b6189c3b 87622002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk>
8c6d74c6 8763
048addec
JD
8764 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
8765 type definition of size_t.
8c609cff 8766
048addec 87672003-01-02 Steven Tamm <steventamm@mac.com>
8c609cff 8768
048addec
JD
8769 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
8770 distinguish Carbon GUI builds from X11 builds on darwin.
b37113a1 8771
048addec 87722002-12-30 Steven Tamm <steventamm@mac.com>
b37113a1 8773
048addec
JD
8774 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
8775 to default to t.
fa634a5e 8776
048addec 87772002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
fa634a5e 8778
048addec 8779 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
ce0669d4 8780
048addec 87812002-12-28 Steven Tamm <steventamm@mac.com>
ce0669d4 8782
048addec
JD
8783 * Makefile.in (macosx-bundle): Fixes to Mac OS X/Carbon port to
8784 allow building in a different directory than source. Uses some
8785 GNU Make extensions, but there is no other make on Mac OS X.
2308af15 8786
048addec 87872002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
2308af15 8788
048addec
JD
8789 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
8790 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
8791 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
8792 (Fstring_to_number): Mention the returned value in the doc strings.
2155ecf3 8793
048addec 87942002-12-23 Richard M. Stallman <rms@gnu.org>
2155ecf3 8795
048addec
JD
8796 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
8797 <scroll-down-aggressively>: Doc fix.
2155ecf3 8798
048addec
JD
8799 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
8800 string as pane name, if there is one.
8801 (set_frame_menubar): Save menu_items_n_panes from each call to
8802 parse_single_submenu and use it when calling digest_single_submenu.
2155ecf3 8803
048addec
JD
8804 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
8805 Don't try to make last line fully visible if it is past end of window.
61f1d295 8806
048addec 88072002-12-22 Steven Tamm <steventamm@mac.com>
61f1d295 8808
048addec
JD
8809 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
8810 (mac_menu_show): Add support for hierarchical popup menus.
8811 (add_menu_item): Remove indentation support.
8812 (fill_submenu, fill_menu): Create hierarchical menus
8813 instead of using indentation.
0b17a217 8814
048addec 88152002-12-22 Richard M. Stallman <rms@gnu.org>
0b17a217 8816
048addec
JD
8817 * xdisp.c (try_cursor_movement): Don't call try_window here.
8818 (redisplay_window): Never redisplay minibuffer when inactive.
0b17a217 8819
048addec 8820 * window.c (select_window_1): Undo 9/21 change.
402e4f8b 8821
048addec 88222002-12-22 Steven Tamm <steventamm@mac.com>
402e4f8b 8823
048addec
JD
8824 * macterm.c (XTread_socket): Call KeyTranslate for control and
8825 meta to deal correctly shifted non-alpha characters, like C-S-5
8826 being treated like C-%. Does not look for shift key to deal
8827 with masking off control-key with mac-reverse-ctrl-meta.
f02cac82 8828
048addec 88292002-12-21 Richard M. Stallman <rms@gnu.org>
f02cac82 8830
048addec
JD
8831 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
8832 If it is non-nil, run timers. Use an unwind-protect to requeue
8833 the events that were read ahead.
8834 (popup_get_selection_unwind): New subroutine.
8835 (popup_get_selection_queue): File-scope variable now holds that queue.
8836 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
8837 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
8838 Use an unwind-protect to pop down the dialog box.
8839 (xdialog_show_unwind): New subroutine implements that.
f02cac82 8840
048addec
JD
8841 * xdisp.c (row_containing_pos): Change exit test using last_y.
8842 (try_window_id): Abort if row_containing_pos returns null.
f02cac82 8843
048addec
JD
8844 * lread.c (load_error_handler): New function.
8845 (Fload): Handle errors in Fsubstitute_in_file_name.
8846 Don't expect Fsignal to return.
f02cac82 8847
048addec
JD
8848 * eval.c: Errors and throws work right with interrupt blocking.
8849 (struct catchtag): New elt interrupt_input_blocked.
8850 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
8851 (internal_catch, Fcondition_case, internal_condition_case)
8852 (internal_condition_case_1, internal_condition_case_2): Save it.
8853 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
f02cac82 8854
048addec 8855 * editfns.c (Fformat): Add parens.
f02cac82 8856
048addec
JD
8857 * dired.c (file_name_completion): Fix that change.
8858 Delete special quit-handling code; just use QUIT.
f02cac82 8859
b6189c3b 88602002-12-21 Tak Ota <Takaaki.Ota@am.sony.com>
f02cac82 8861
048addec
JD
8862 * dired.c (file_name_completion): Close directory on error
8863 just as in directory_files_internal.
1a590729 8864
048addec 88652002-12-19 David Kastrup <David.Kastrup@t-online.de>
1a590729 8866
048addec
JD
8867 * window.c (Fset_window_configuration): Set old_point to correct
8868 value when new_current_buffer == current_buffer.
f02cac82 8869
048addec 88702002-12-17 Ben Key <bkey1@tampabay.rr.com>
2308af15 8871
048addec
JD
8872 Revisited my earlier fix for the following entry in etc/PROBLEMS:
8873 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
8874 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
9785d95b 8875
048addec
JD
8876 These changes were in part based upon suggestions made by Peter
8877 'Luna' Runestig [peter@runestig.com].
9785d95b 8878
048addec
JD
8879 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token,
8880 g_b_init_get_token_information, g_b_init_lookup_account_sid,
6bdb309a 8881 g_b_init_get_sid_identifier_authority ): Add several static
048addec 8882 global variables.
9785d95b 8883
048addec
JD
8884 * w32.c (globals_of_w32): New function. Used to initialize those
8885 global variables that must always be initialized on startup even
8886 when the global variable initialized is non zero. Its primary
8887 purpose at this time is to set the global variables
8888 g_b_init_is_windows_9x, g_b_init_open_process_token,
8889 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
8890 g_b_init_get_sid_identifier_authority to 0 on startup.
8891 Called from main.
9785d95b 8892
048addec
JD
8893 * w32.c (is_windows_9x): Perform initialization only if
8894 g_b_init_is_windows_9x is equal to 0. On initialization set
8895 g_b_init_is_windows_9x equal to 1.
2308af15 8896
048addec
JD
8897 * w32.c (open_process_token): Perform initialization only if
8898 g_b_init_open_process_token is equal to 0. On initialization set
8899 g_b_init_open_process_token equal to 1.
2308af15 8900
048addec
JD
8901 * w32.c (get_token_information): Perform initialization only if
8902 g_b_init_get_token_information is equal to 0. On initialization
8903 set g_b_init_get_token_information equal to 1.
9785d95b 8904
048addec
JD
8905 * w32.c (lookup_account_sid): Perform initialization only if
8906 g_b_init_lookup_account_sid is equal to 0. On initialization
8907 set g_b_init_lookup_account_sid equal to 1.
9785d95b 8908
048addec
JD
8909 * w32.c (get_sid_identifier_authority): Perform initialization
8910 only if g_b_init_get_sid_identifier_authority is equal to 0.
8911 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
9785d95b 8912
f63fd14e 8913 * w32fns.c (globals_of_w32fns): New function. Used to initialize
048addec
JD
8914 those global variables that must always be initialized on startup
8915 even when the global variable initialized is non zero.
8916 Its primary purpose at this time is to initialize the global variable
8917 track_mouse_event_fn.
9785d95b 8918
a64387ee 8919 * w32fns.c (w32_wnd_proc): Remove initialization of
048addec 8920 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
9785d95b 8921
048addec 8922 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
9785d95b 8923
f63fd14e 8924 * w32menu.c (globals_of_w32menu): New function. Used to
048addec
JD
8925 initialize those global variables that must always be initialized
8926 on startup even when the global variable initialized is non zero.
8927 Its primary purpose at this time is to initialize the global
8928 variables get_menu_item_info and set_menu_item_info.
9785d95b 8929
048addec
JD
8930 * w32menu.c (initialize_frame_menubar): Remove initialization of
8931 get_menu_item_info and set_menu_item_info.
9785d95b 8932
048addec 8933 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
9785d95b 8934
048addec
JD
8935 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
8936 Declare them.
9785d95b 8937
048addec
JD
8938 * emacs.c (main): Call globals_of_w32 prior to calling
8939 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
8940 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
8941 is defined.
9785d95b 8942
048addec
JD
8943 * w32term.c (x_update_window_begin): Fix Windows API error
8944 detected by BoundsChecker. Test to determine if
8945 w32_system_caret_hwnd is NULL prior to attempting to use
8946 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
2308af15 8947
048addec
JD
8948 * w32term.c (x_update_window_end): Fix Windows API error
8949 detected by BoundsChecker. Test to determine if
8950 w32_system_caret_hwnd is NULL prior to attempting to use
8951 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
b6da19ef 8952
048addec 89532002-12-17 Kenichi Handa <handa@m17n.org>
b6da19ef 8954
048addec
JD
8955 * coding.c (coding_system_require_warning): New variable.
8956 (syms_of_coding): DEFVAR it.
b6da19ef 8957
048addec 8958 * coding.h (coding_system_require_warning): Extern it.
b6da19ef 8959
048addec
JD
8960 * fileio.c (choose_write_coding_system): Even if
8961 Vcoding_system_for_write is non-nil, if
8962 coding_system_require_warning is nonzero, call
8963 Vselect_safe_coding_system_function.
bfcf6dbe 8964
048addec 89652002-12-17 Markus Rost <rost@math.ohio-state.edu>
bfcf6dbe 8966
048addec
JD
8967 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
8968 (lisp): Add font-core.
2c568af5 8969
048addec 89702002-12-13 Stefan Monnier <monnier@cs.yale.edu>
2c568af5 8971
048addec
JD
8972 * textprop.c (text_read_only): New arg `propval'.
8973 (get_char_property_and_overlay): Remove unused var `next_overlay'.
8974 (verify_interval_modification): Use text_read_only's new arg.
b8c6225c 8975
048addec 89762002-12-13 Kenichi Handa <handa@m17n.org>
b8c6225c 8977
048addec 8978 * coding.c (Funencodable_char_position): Set pend correctly.
706ddb8f 8979
048addec 89802002-12-12 Jason Rumney <jasonr@gnu.org>
706ddb8f 8981
048addec
JD
8982 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
8983 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
8984 Be more careful about when help_events are generated.
96720f09 8985
048addec 89862002-12-12 Steven Tamm <steventamm@mac.com>
96720f09 8987
048addec
JD
8988 * macterm.c (mac_check_for_quit_char): Correctly set the
8989 modifiers of the event to 0.
8990 * mac.c (sys_select): Duplicate rfds before calling select to
8991 ensure that rfds survive the while loop.
e5ae1c49 8992
048addec 89932002-12-11 Kim F. Storm <storm@cua.dk>
e5ae1c49 8994
048addec
JD
8995 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
8996 row_containing_pos returned NULL.
2eb46b2d 8997
048addec 89982002-12-10 Steven Tamm <steventamm@mac.com>
2eb46b2d 8999
6bdb309a 9000 * mac.c (sys_read): Fix sys_read to not call select if IO is
048addec 9001 non-blocking.
6bdb309a 9002 (sys_select): Fix sys_select to not use a timeout larger than
048addec 9003 the one given.
b11f1d8a 9004
048addec 90052002-12-10 Juanma Barranquero <lektu@terra.es>
b11f1d8a 9006
048addec 9007 * editfns.c (Fformat): Use alloca, not _alloca.
d8528226 9008
048addec 90092002-12-09 Richard M. Stallman <rms@gnu.org>
d8528226 9010
048addec
JD
9011 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
9012 as the last thing.
a4ac5b17 9013
048addec 90142002-12-09 Dave Love <fx@gnu.org>
a4ac5b17 9015
048addec 9016 * s/sol2-8.h: Removed. (Not necessary.)
ac42d7b9 9017
048addec 90182002-12-09 Matthew Swift <swift@alum.mit.edu>
ac42d7b9 9019
048addec
JD
9020 * editfns.c (Fformat): Handle precision in string conversion
9021 specifiers like libc functions do (ie, print at most that many
9022 characters).
85cce843 9023
048addec 90242002-12-08 Richard M. Stallman <rms@gnu.org>
85cce843 9025
048addec
JD
9026 * xdisp.c (row_containing_pos): Check more carefully
9027 whether charpos is really in the row before returning it.
0d4d26a7 9028
048addec 90292002-12-07 Steven Tamm <steventamm@mac.com>
0d4d26a7 9030
048addec 9031 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
b11f1d8a 9032
048addec
JD
9033 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
9034 each stack frame. This may change as it could be time consuming.
0d4d26a7 9035
048addec
JD
9036 * macterm.c (mac_check_for_quit_char, quit_char_comp)
9037 (init_quit_char_handler, mac_determine_quit_char_modifiers)
6bdb309a 9038 (mac_initialize): Add code to check for pressing of quit_char
048addec 9039 in the OS event queue.
b11f1d8a 9040
048addec
JD
9041 * mac.c (sys_select): Call mac_check_for_quit_char every second
9042 while blocking on select.
0d4d26a7 9043
048addec
JD
9044 * mac.c (sys_read): Use sys_select to test for input first
9045 before calling read, to allow C-g to break.
9252f7bc 9046
048addec 90472002-12-07 Richard M. Stallman <rms@gnu.org>
9252f7bc 9048
048addec 9049 * minibuf.c (Fcompleting_read): Doc fix.
9252f7bc 9050
048addec 9051 * lread.c (syms_of_lread) <load-history>: Doc fix.
9252f7bc 9052
048addec 9053 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
9252f7bc 9054
048addec
JD
9055 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
9056 autoload.
9252f7bc 9057
048addec 9058 * data.c (Fdefalias): Record in load-history redefining an autoload.
9252f7bc 9059
048addec 9060 * alloca.c: Undo ifdef change accidentally made on 12-04.
bfa261c0 9061
048addec 90622002-12-06 Francesco Potorti` <pot@gnu.org>
bfa261c0 9063
048addec 9064 * xfns.c (png_load): Avoid double gamma correction for PNG images.
c5992177 9065
048addec 90662002-12-04 Richard M. Stallman <rms@gnu.org>
c5992177 9067
048addec 9068 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 9069
048addec 9070 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 9071
048addec 9072 * alloca.c: Don't use #error.
02d588e2 9073
048addec 90742002-12-03 Dave Love <fx@gnu.org>
02d588e2 9075
048addec
JD
9076 * buffer.c (Qucs_set_table_for_input): New.
9077 (Fget_buffer_create): Use it.
9078 (Qset_buffer_major_mode_hook): Deleted.
9079 (Fset_buffer_major_mode): Revert previous change.
9080 (init_buffer_once): Intern ucs-set-table-for-input.
9081 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
9082 Add &Qucs_set_table_for_input.
451e2697 9083
048addec 90842002-12-03 Andreas Schwab <schwab@suse.de>
451e2697 9085
048addec
JD
9086 * callint.c (Fcall_interactively): Use next_event only if less
9087 than key_count.
72742a99 9088
048addec 90892002-12-02 Andrew Choi <akochoi@shaw.ca>
72742a99 9090
048addec
JD
9091 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
9092 names to 255 characters.
72742a99 9093
048addec
JD
9094 * macterm.c (XTread_socket): If all frames have been collapsed,
9095 expand the first one before handling drag-and-drop events.
72742a99 9096
048addec
JD
9097 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
9098 which is detected by autoconf.
40e6ff95 9099
048addec 91002002-12-01 Steven Tamm <steventamm@mac.com>
40e6ff95 9101
048addec
JD
9102 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
9103 offset in two hints table to allow prebinding to be redone and
9104 allow the executable to be stripped.
c02138c6 9105
048addec 91062002-11-29 Dave Love <fx@gnu.org>
c02138c6 9107
048addec
JD
9108 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
9109 already provided.
0e47bbf7 9110
048addec 91112002-11-29 Richard M. Stallman <rms@gnu.org>
0e47bbf7 9112
048addec
JD
9113 * xdisp.c (start_display): Check more intelligently for
9114 whether the line is continued.
9115 (move_it_vertically_backward): Clear it->continuation_lines_width.
44129dcb 9116
048addec 91172002-11-28 Dave Love <fx@gnu.org>
44129dcb 9118
048addec
JD
9119 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
9120 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
f707342d 9121
048addec 91222002-11-27 Steven Tamm <steventamm@mac.com>
f707342d 9123
048addec
JD
9124 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
9125 more descriptive error output from lread.c:Fload upon most require
9126 cycles during boostrapping.
1637fd2c 9127
048addec 91282002-11-27 Jason Rumney <jasonr@gnu.org>
1637fd2c 9129
048addec
JD
9130 * fileio.c (Finsert_file_contents): Give a more appropriate error
9131 for files bigger than 2Gb when off_t is 32 bit.
1637fd2c 9132
048addec
JD
9133 * dired.c (Ffile_attributes): Don't return negative file sizes for
9134 files bigger than 2Gb when off_t is 32 bit.
540c2788 9135
048addec 91362002-11-27 Dave Love <fx@gnu.org>
6b2fd6ea 9137
048addec 9138 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6b2fd6ea 9139
048addec
JD
9140 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
9141 Test GETPGRP_VOID instead.
9142 [BSD_TERMIOS]: Remove definitions (never used).
6b2fd6ea 9143
048addec
JD
9144 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
9145 Don't define.
9146 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
540c2788 9147
048addec 9148 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
8cc03716 9149
048addec 91502002-11-25 Jason Rumney <jasonr@gnu.org>
8cc03716 9151
048addec
JD
9152 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
9153 supported.
4042a81a 9154
048addec 91552002-11-25 Dave Love <fx@gnu.org>
4042a81a 9156
048addec 9157 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
4042a81a 9158
048addec 9159 * Makefile.in (TEMACS_LDFLAGS): Update last change.
be4ee72f 9160
048addec 91612002-11-25 Andreas Schwab <schwab@suse.de>
be4ee72f 9162
048addec 9163 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
82122254 9164
048addec 91652002-11-24 Steven Tamm <steventamm@mac.com>
82122254 9166
048addec
JD
9167 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
9168 determine the size of pointers alloced in unexed space instead
9169 of using possibly invalid emacs_zone pointers. This fixes the
9170 binary incompatibility problems caused by updates to libSystem.B.
c1ee53bc 9171
048addec 91722002-11-24 Richard M. Stallman <rms@gnu.org>
c1ee53bc 9173
048addec 9174 * search.c (Fstring_match): Doc fix.
c1ee53bc 9175
048addec
JD
9176 * callint.c (Fcall_interactively): If a command fails because
9177 `*' detects a read-only buffer, but RECORD_FLAG is set,
9178 record it anyway if the args don't actually do tty input.
5598c32e 9179
048addec 91802002-11-22 Dave Love <fx@gnu.org>
5598c32e 9181
048addec 9182 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
5598c32e 9183
048addec
JD
9184 * keyboard.c (interrupt_signal): Provide forward declaration.
9185 (kbd_buffer_store_event): Don't declare interrupt_signal.
5598c32e 9186
048addec 9187 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
97b14e22 9188
048addec 91892002-11-21 Richard M. Stallman <rms@gnu.org>
97b14e22 9190
048addec
JD
9191 * eval.c (interactive_p): Skip any number of bytecode
9192 and special form frames, in any order.
516eea8e 9193
048addec 91942002-11-20 Jason Rumney <jasonr@gnu.org>
516eea8e 9195
048addec
JD
9196 * w32fns.c (convert_mono_to_color_image): New function.
9197 (xbm_load, xbm_load_image): Use it when foreground or background
9198 is explicitly set.
04dbfa08 9199
048addec 92002002-11-19 Dave Love <fx@gnu.org>
04dbfa08 9201
048addec 9202 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
b4aebae3 9203
048addec 92042002-11-18 Jason Rumney <jasonr@gnu.org>
b4aebae3 9205
048addec
JD
9206 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
9207 (XPutPixel): Swap blue and red.
9208 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
9209 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
9210 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
9211 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
1998560a 9212
048addec 92132002-11-18 Dave Love <fx@gnu.org>
d824beee 9214
048addec 9215 * m/orion105.h (HAVE_ALLOCA): Don't define.
d824beee 9216
048addec 9217 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
d824beee 9218
048addec 9219 * m/intel386.h: Don't include alloca.h or define alloca.
d824beee 9220
048addec
JD
9221 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
9222 malloc, realloc, calloc.
d824beee 9223
048addec
JD
9224 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
9225 (bcmp): Don't define.
d824beee 9226
048addec 9227 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
d824beee 9228
048addec 9229 * m/amdahl.h: Don't define LIB_STANDARD.
d824beee 9230
048addec 9231 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
d824beee 9232
048addec 9233 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
d824beee 9234
048addec
JD
9235 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
9236 Don't include alloca.h.
d824beee 9237
048addec 9238 * s/aix3-2.h (HAVE_FSYNC): Don't define.
1998560a 9239
048addec 9240 * regex.c (_GNU_SOURCE): Don't define.
1998560a 9241
048addec 9242 * process.c (_GNU_SOURCE): Don't define.
1998560a 9243
048addec 9244 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
8704a6ab 9245
048addec 92462002-11-18 Markus Rost <rost@math.ohio-state.edu>
8704a6ab 9247
048addec 9248 * s/sol2-8.h: Include sol2-6.h.
6ae2cd57 9249
048addec 92502002-11-18 Miles Bader <miles@gnu.org>
6ae2cd57 9251
048addec
JD
9252 * dispextern.h (struct face): Add `overstrike' field.
9253 * xterm.c (x_draw_glyph_string_foreground)
9254 (x_draw_composite_glyph_string_foreground): Implement overstriking.
9255 * xfaces.c (load_face_font): Set `face->overstrike' based on
9256 result from choose_face_font.
9257 (best_matching_font, choose_face_font): Add `needs_overstrike'
9258 argument, and use it to return whether overstriking is desirable
9259 for this face/font combo.
9260 (set_font_frame_param: Pass new argument to choose_face_font.
6ae2cd57 9261
048addec 92622002-11-17 Ben Key <BKey1@tampabay.rr.com>
3582b6a3 9263
048addec
JD
9264 This change is my fix for the following entry in etc/PROBLEMS:
9265 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
9266 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
f60ae425 9267
048addec
JD
9268 * w32.c: Added wrapper functions around the win32 API functions
9269 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
9270 GetSidIdentifierAuthority. These wrapper functions serve two
9271 purposes:
9272 1. They ensure that the wrapped function can never be called
9273 when Emacs is running on an operating system on which they are
9274 not supported (Microsoft Windows 95 / 98 / ME).
9275 2. They call the wrapped functions via function pointers rather
9276 than calling them directly. This avoids taking advantage of the
9277 undocumented fact that although these functions are not supported
9278 in the 9x branch of Microsoft Windows, the functions do exist in
9279 the version of advapi32.dll that is found in the 9x branch of
9280 Microsoft Windows.
f60ae425 9281
6bdb309a 9282 * w32.c (init_user_info): Replace the calls to the win32 API
048addec
JD
9283 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
9284 and GetSidIdentifierAuthority with calls to the newly added
9285 wrapper functions.
f60ae425 9286
048addec
JD
9287 * w32.h: Added extern declarations for the following functions:
9288 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
9289 syms_of_w32menu, and void syms_of_fontset.
f60ae425 9290
6bdb309a 9291 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
048addec
JD
9292 function pointer track_mouse_event_fn in the handler for the
9293 WM_SETFOCUS message.
3582b6a3 9294
6bdb309a 9295 * w32menu.c (initialize_frame_menubar): Add code to
048addec
JD
9296 reinitialize the function pointers set_menu_item_info and
9297 get_menu_item_info.
f60ae425 9298
048addec 92992002-11-17 Ben Key <BKey1@tampabay.rr.com>
f60ae425 9300
048addec
JD
9301 * sound.c: Added a partial implementation of play-sound-internal
9302 for Microsoft Windows. Added various #ifdef / #else / #endif
9303 code blocks to separate the code that will compile under
9304 Microsoft Windows from the code that is specific to Gnu/Linux.
9305 Moved several blocks of code around to make this separation of code
9306 into Windows compatible and Gnu/Linux compatible code blocks easier.
f60ae425 9307
048addec 9308 * makefile.w32-in: Include sound.c and link with WinMM.lib.
a0f0878d 9309
048addec
JD
9310 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
9311 added support for play-sound-internal under Windows would be
9312 included in the build of Emacs.
517f42a0 9313
048addec 93142002-11-16 Jason Rumney <jasonr@gnu.org>
517f42a0 9315
048addec 9316 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
517f42a0 9317
048addec 9318 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
a0f0878d 9319
048addec 93202002-11-15 Stefan Monnier <monnier@cs.yale.edu>
a0f0878d 9321
048addec
JD
9322 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
9323 (adjust_point_for_property): Move out of display and invisible even if
9324 we were already inside before (in case a property was added while
9325 we weren't looking). Be more careful when handling invisible props.
9326 Skip invisible text as if it really wasn't there at all.
aab83f91 9327
048addec 93282002-11-15 Jason Rumney <jasonr@gnu.org>
aab83f91 9329
048addec
JD
9330 * w32term.c (x_draw_image_foreground)
9331 (w32_draw_image_foreground_1): Use standard copy and invert
9332 operations to draw images.
aab83f91 9333
048addec
JD
9334 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
9335 depth of 1.
9336 (xbm_read_bitmap_data): Invert bits as xbm is read in.
9337 (XPutPixel): Don't invert bits here.
a4478a76 9338
048addec 93392002-11-15 Jason Rumney <jasonr@gnu.org>
a4478a76 9340
048addec
JD
9341 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
9342 (w32_draw_image_foreground_1): Handle image masks.
9343 (x_draw_image_glyph_string): Don't BitBlt transparently.
a4478a76 9344
048addec
JD
9345 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
9346 (x_from_xcolors): Adjust RGB values for W32.
9347 (image_background, image_background_transparent)
9348 (postprocess_image, x_to_xcolors, x_disable_image)
9349 (x_build_heuristic_mask): Adapt for W32 and enable.
9350 (x_create_x_image_and_pixmap): Mark images with palettes as such.
9351 (xbm_load): Remove unused variable.
03670a65 9352
048addec 93532002-11-14 Richard M. Stallman <rms@gnu.org>
03670a65 9354
048addec 9355 * buffer.c (syms_of_buffer): Doc fix.
59daa29a 9356
048addec 93572002-11-14 Dave Love <fx@gnu.org>
59daa29a 9358
048addec 9359 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
59daa29a 9360
048addec
JD
9361 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
9362 * xmenu.c (unuse_menu_items, digest_single_submenu):
9363 * xfns.c (x_put_x_image):
9364 * xdisp.c (message2_nolog, set_message):
9365 * undo.c (record_point):
9366 * terminfo.c (tparam):
9367 * syntax.c (scan_sexps_forward):
9368 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
9369 * composite.c (update_compositions):
9370 * cm.c (calccost, cmgoto):
9371 * charset.c (c_string_width): Declare all args (per C99).
59daa29a 9372
048addec 9373 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
59daa29a 9374
048addec
JD
9375 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
9376 Don't declare.
59daa29a 9377
048addec 9378 * emacs.c (main) [!VMS]: Avoid third arg.
59daa29a 9379
048addec
JD
9380 * fns.c (Fcopy_sequence): Doc fix.
9381 (Fmap_char_table): Cast `call2'.
3947677c 9382
048addec
JD
93832002-11-14 Francesco Potorti` <pot@gnu.org>
9384
9385 * s/sol2-8.h: New file.
9386
93872002-11-14 Kim F. Storm <storm@cua.dk>
9388
9389 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
9390 dependency on `risky-local-variable' and the :propertize form.
9391
93922002-11-12 Stefan Monnier <monnier@cs.yale.edu>
9393
9394 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
9395
9396 * syntax.c (scan_sexps_forward): Undo last patch.
9397 Use a more obvious fix: check eob before updating the syntax table.
9398
93992002-11-09 Stefan Monnier <monnier@cs.yale.edu>
9400
9401 * syntax.c (scan_sexps_forward): Update syntax table before reading
9402 a char rather than after so we don't update the table past eob.
9403
94042002-11-09 Dave Love <fx@gnu.org>
9405
9406 * buffer.c (Fset_buffer_major_mode): Fix last change.
9407
9408 * regex.c (regexec): Fix pmatch declaration.
9409
9410 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
9411
9412 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
9413 to self-inserting characters.
9414 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
9415
9416 * coding.c (Vtranslation_table_for_input): New.
9417 (syms_of_coding): DEFVAR it.
9418
94192002-11-08 Juanma Barranquero <lektu@terra.es>
9420
9421 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
9422 window.
9423
94242002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9425
6bdb309a 9426 * process.c (Fformat_network_address): Remove unused locals p,
048addec
JD
9427 cp, and i.
9428
94292002-11-06 Dave Love <fx@gnu.org>
9430
9431 * buffer.c (Qset_buffer_major_mode_hook): New.
9432 (Fset_buffer_major_mode): Use it.
9433
94342002-11-06 Richard M. Stallman <rms@gnu.org>
9435
9436 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
9437 and stop_polling.
9438
9439 * process.c (wait_reading_process_input):
9440 Test POLLING_PROBLEM_IN_SELECT, not hpux.
9441 Avoid initialization for auto Lisp_Object var.
9442
9443 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
9444
9445 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
9446
94472002-11-05 Richard M. Stallman <rms@gnu.org>
9448
9449 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
9450
9451 * callint.c (Fcall_interactively): New local filter_specs.
9452 (Fcall_interactively): Check for progn as well as let.
9453 Add a gcpro.
9454 (Qprogn): New variable.
9455 (syms_of_callint): Staticpro and init Qprogn.
9456
94572002-11-04 John Paul Wallington <jpw@shootybangbang.com>
9458
9459 * lread.c (Feval_buffer): Doc fix.
9460
94612002-11-04 Dave Love <fx@gnu.org>
9462
9463 * keyboard.c (read_char): Always translate iff
9464 Vkeyboard_translate_table is a char table and c is valid.
9465
9466 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
9467 and fix C types.
9468
94692002-11-03 Stefan Monnier <monnier@cs.yale.edu>
9470
9471 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
9472
9473 * editfns.c (get_pos_property): Don't hardcode Qfield.
9474
9475 * keyboard.c (adjust_point_for_property): Handle `display' prop on
9476 overlays. Also handle `invisible' prop.
9477
94782002-11-02 Stefan Monnier <monnier@cs.yale.edu>
9479
9480 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
9481 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
9482
94832002-11-01 Andreas Schwab <schwab@suse.de>
9484
9485 * editfns.c (Fmessage): Revert last change to properly handle %%.
9486
94872002-11-01 Stefan Monnier <monnier@cs.yale.edu>
9488
9489 * xmenu.c (unuse_menu_items): New fun.
9490 (menu_items_inuse): New var.
9491 (syms_of_xmenu): Initialize it.
9492 (init_menu_items): Use it to detect re-entrance.
9493 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
9494 (Fx_popup_menu): Remove spurious XSETFRAME.
9495
9496 * editfns.c (find_field): Make an exception for nil fields.
9497
94982002-11-01 Dave Love <fx@gnu.org>
9499
9500 * m/gec63.h: Deleted.
9501
95022002-10-31 Dave Love <fx@gnu.org>
9503
9504 * xterm.c (XTread_socket): Fix last change.
9505 (xaw_scroll_callback): Cast call_data to long to avoid warning.
9506
95072002-10-31 Stefan Monnier <monnier@cs.yale.edu>
9508
9509 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
9510
95112002-10-30 Stefan Monnier <monnier@cs.yale.edu>
9512
9513 * editfns.c (overlays_around, get_pos_property): New funs.
9514 (find_field): Use them.
9515 Also be careful not to modify POS before its last use.
9516 (Fmessage): Don't Fformat if there's nothing to format.
9517
95182002-10-30 Dave Love <fx@gnu.org>
9519
9520 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
9521 [HAVE_PTY_H]; Include pty.h.
9522
9523 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
9524
9525 * xterm.c (Qeql): Declare.
9526 (Vx_keysym_table): New.
9527 (syms_of_xterm): Initialize it.
9528 (XTread_socket): Use it. Deal with ASCII keysyms.
9529 (XSetIMValues) [HAVE_X11R6]: Prototype.
9530
9531 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
9532 (lispy_kana_keys): Comment out.
9533 (make_lispy_event) [XK_kana_A]: Comment out.
9534 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
9535 Fix sprintf call.
9536
9537 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
9538 regexp.h change).
9539 (TERMINFO, LIBS_TERMCAP): Define.
9540
9541 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
9542 (bcmp): Define conditional on HAVE_BCMP.
9543 (NO_SIOCTL_H): Don't define.
9544 (TIOCSIGSEND): Don't make conditional on IRIX6.
9545
9546 * s/sol2-5.h: Don't include strings.h.
9547 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
9548
9549 * s/irix6-0.h (IRIX6): Don't define.
9550 (bcopy, bcmp, bzero): Don't undef.
9551
9552 * s/irix6-5.h: Don't include strings.h.
9553 (IRIX6): Don't define.
9554 (bcopy, bcmp, bzero): Don't undef.
9555
9556 * syntax.c (Fforward_comment): Doc fix.
9557
95582002-10-29 Kim F. Storm <storm@cua.dk>
9559
9560 * process.c (Fsignal_process): Allow PROCESS to be specified by
9561 name in addition to pid (as integer or string).
9562
95632002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
9564
9565 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
9566 environments.
9567
95682002-10-27 Kim F. Storm <storm@cua.dk>
9569
9570 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
9571
9572 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
9573
9574 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
9575
9576 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
9577
95782002-10-26 Richard M. Stallman <rms@gnu.org>
9579
9580 * editfns.c (Fformat): Detect invalid format letters for floats.
9581
95822002-10-25 Kenichi Handa <handa@m17n.org>
9583
9584 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
9585 (x_set_title): Likewise.
9586
95872002-10-25 Juanma Barranquero <lektu@terra.es>
9588
9589 * macgui.h:
9590 * w32gui.h: Remove definition of XColor.
9591
9592 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
9593
95942002-10-24 Kim F. Storm <storm@cua.dk>
9595
9596 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
9597 Callers changed (supply dummy arg).
9598
9599 * lisp.h (get_window_cursor_type): Update prototype.
9600
9601 * w32term.c (x_display_and_set_cursor): Get active_cursor from
9602 get_window_cursor_type to track system caret.
9603
96042002-10-24 Kim F. Storm <storm@cua.dk>
9605
9606 * process.c (Fformat_network_address): New function.
9607 (syms_of_process): Defsubr it.
9608 (list_processes_1): Use it to format :local/:remote address if
f9711de4 9609 service/host is not set; before Emacs would crash in that case.
048addec
JD
9610 (Fmake_network_process): Don't use Ffind_operation_coding_system
9611 to setup coding system if host or service is not set.
9612
96132002-10-23 Juanma Barranquero <lektu@terra.es>
9614
9615 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
9616
9617 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
9618 COLORREF.
9619
9620 * macgui.h:
9621 * w32gui.h: Add definition of XColor.
9622
9623 * macfns.c:
9624 * w32fns.c:
9625 * xfaces.c: Remove definition of XColor.
9626
96272002-10-22 Stefan Monnier <monnier@cs.yale.edu>
9628
9629 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
9630
9631 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
9632 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
9633 window if it is dedicated.
9634 (Fshrink_window): Add preserve_before as was done for enlarge_window.
9635 (Vspecial_display_function): Update docstring.
9636
9637 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
9638 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
9639 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
9640
96412002-10-21 Stefan Monnier <monnier@cs.yale.edu>
9642
9643 * casefiddle.c (casify_region): Don't treat a prefix char as part
9644 of a word when at the beginning.
9645
96462002-10-17 Juanma Barranquero <lektu@terra.es>
9647
9648 * lread.c (syms_of_lread): Fix typos.
9649
96502002-10-17 Dave Love <fx@gnu.org>
9651
9652 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
9653
96542002-10-16 Richard M. Stallman <rms@gnu.org>
9655
9656 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
9657
96582002-10-14 Juanma Barranquero <lektu@terra.es>
9659
9660 * w16select.c (syms_of_win16select): Fix docstring for
9661 `selection-coding-system'.
9662
9663 * w32select.c (syms_of_w32select): Likewise.
9664
96652002-10-14 Stefan Monnier <monnier@cs.yale.edu>
9666
9667 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
9668 a backslash-quoted char.
9669 (scan_lists, scan_sexps_forward): Pacify the compiler.
9670
96712002-10-13 Richard M. Stallman <rms@gnu.org>
9672
9673 * window.c (window_scroll): Set immediate_quit.
9674
9675 * print.c (print): When backquote form is the car of a list,
9676 output in old style. Use old_backquote_output to output all
9677 comma forms inside it in old style too.
9678
9679 * buffer.h (struct buffer): Move `undo_list' down below `name'.
9680
96812002-10-11 Markus Rost <rost@math.ohio-state.edu>
9682
9683 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
9684 batch mode).
9685
9686 * lread.c (Fload): Doc fix (load-suffixes).
9687
96882002-10-10 Steven Tamm <steventamm@mac.com>
9689
9690 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
9691 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
9692 Also switch the default to Qnil from Qt.
9693
96942002-10-08 Kenichi Handa <handa@m17n.org>
9695
9696 * coding.c (code_convert_region): When we need more GAP for
9697 conversion, pay attention to the case that coding->produced is not
9698 greater than coding->consumed.
9699
97002002-10-07 Richard M. Stallman <rms@gnu.org>
9701
9702 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
9703
97042002-10-06 Andrew Choi <akochoi@shaw.ca>
9705
9706 * macmenu.c (mac_menu_show): Add j to count menu items; match
9707 menu_item_selection to it to find selected item.
9708
97092002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9710
9711 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
9712 cases. The correct fix is to pass ReparentNotify to Xt.
9713 The shell widget interprets ConfigureNotify differently depending
9714 on if it has been reparented or not.
9715
97162002-10-05 Markus Rost <rost@math.ohio-state.edu>
9717
9718 * editfns.c (Fformat_time_string): Doc fix.
9719
97202002-10-05 John Paul Wallington <jpw@shootybangbang.com>
9721
9722 * fns.c (Flength): Doc fix.
9723
97242002-10-04 Stefan Monnier <monnier@cs.yale.edu>
9725
9726 * keyboard.c (keyremap): New struct.
9727 (read_key_sequence): Use it: globally replace keytran_foo with
9728 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
9729 keytran_next and fkey_next to just `next'.
9730
97312002-10-04 Steven Tamm <steventamm@mac.com>
9732
9733 * macterm.c (keycode_to_xkeysym_table): Change return to be
9734 treated like an X keysym.
9735
97362002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9737
9738 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
9739 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
9740 This is to also handle x/y changes that occur because of a resize.
9741
97422002-10-02 John Paul Wallington <jpw@shootybangbang.com>
9743
9744 * frame.c (Vdelete_frame_functions): New variable.
9745 (syms_of_frame): Initialize and defvar it.
9746 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
9747 it when frame's `tooltip' parameter is non-nil.
9748
9749 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
9750
9751 * w32fns.c (x_create_tip_frame): Likewise.
9752
9753 * macfns.c (x_create_tip_frame): Likewise.
9754
97552002-09-30 Kenichi Handa <handa@m17n.org>
9756
9757 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
9758 -1 before calling ccl_driver.
9759
9760 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
9761 Only when it is non-nil, handle composition sequence.
9762 (setup_coding_system) <0>: Don't force composition handling.
9763
9764 * Makefile.in (lisp, shortlisp): Add utf-16.elc
9765
97662002-09-29 Richard M. Stallman <rms@gnu.org>
9767
9768 * search.c (Freplace_match): Adjust match data for the substitution
9769 just made in the buffer.
9770
9771 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
9772 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
9773
97742002-09-27 Richard M. Stallman <rms@gnu.org>
9775
9776 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
9777 (read_char): Use them. Do all exits thru the end of the function.
9778
97792002-09-27 Kenichi Handa <handa@etl.go.jp>
9780
9781 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
9782 is nil.
9783
97842002-09-26 Richard M. Stallman <rms@gnu.org>
9785
9786 * regex.h (__restrict_arr): Don't define if already defined.
9787
9788 * coding.c (run_pre_post_conversion_on_str):
9789 Save and restore Vdeactivate_mark.
9790
97912002-09-26 John Paul Wallington <jpw@shootybangbang.com>
9792
9793 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
9794
97952002-09-26 Kenichi Handa <handa@etl.go.jp>
9796
9797 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
9798 nonzero, try face's family at first. Otherwise try FAMILY at first.
9799 (choose_face_font): If C is a single byte char or latin-1, call
9800 try_font_list with PREFER_FACE_FAMILY 1.
9801
98022002-09-21 Richard M. Stallman <rms@gnu.org>
9803
9804 * window.c (select_window_1): Don't select frame.
9805 Set frame's selected window only when frame itself is selected.
9806 (Fselect_window): Doc fix.
9807
98082002-09-18 Kim F. Storm <storm@cua.dk>
9809
9810 * process.c (make-network-process): Doc fix (there is no
9811 network-server-log-function hook).
9812
98132002-09-18 Richard M. Stallman <rms@gnu.org>
9814
9815 * print.c (print): Clear out the unused parts of Vprint_number_table.
9816 (syms_of_print): Doc fix for `print-number-table'.
9817
9818 * unexelf.c (unexec): Undo previous change.
9819
98202002-09-17 Andreas Schwab <schwab@suse.de>
9821
9822 * m/alpha.h [LINUX]: Don't define DATA_START.
9823
98242002-09-16 Dave Love <fx@gnu.org>
9825
9826 * unexelf.c (unexec): Deal with .got, reinstating change from
9827 25-08-1999.
9828
98292002-09-13 Richard M. Stallman <rms@gnu.org>
9830
9831 * s/sol2-6.h (UNEXEC): Comment out definition.
9832
9833 * unexsol.c (unexec): Don't downcase first letter of error msg.
9834
9835 * xfaces.c (Fcolor_supported_p): Just one arg is required.
9836
98372002-09-12 Markus Rost <rost@math.ohio-state.edu>
9838
9839 * unexsol.c: Include buffer.h, charset.h, coding.h.
9840
98412002-09-11 Richard M. Stallman <rms@gnu.org>
9842
9843 * unexsol.c: Don't use report_file_error; do it by hand
9844 using dlerror.
9845
9846 * process.c (wait_reading_process_input, both versions):
9847 Before calling turn_on_atimers, call stop_polling.
9848
9849 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
9850
9851 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
9852 we go to too_near_end, call clear_glyph_matrix.
9853 (redisplay_window): After make_cursor_line_fully_visible,
9854 call clear_glyph_matrix and bypass `goto done'.
9855
9856 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
9857 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
9858
98592002-09-10 Richard M. Stallman <rms@gnu.org>
9860
9861 * fileio.c (Fdo_auto_save): Catch error making directory.
9862 Only call push_message if we need to.
9863 At the same time, make an unwind-protect to pop it.
9864 Rename local message_p to old_message_p.
9865 (do_auto_save_make_dir, do_auto_save_eh): New functions.
9866 (do_auto_save_unwind): Don't call pop_message.
9867
9868 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
9869
9870 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
9871
9872 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
9873
9874 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
9875
98762002-09-10 Stefan Monnier <monnier@cs.yale.edu>
9877
9878 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
9879 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
9880 (re_match_2_internal): Be more careful with infinite loops.
9881
98822002-09-10 Kim F. Storm <storm@cua.dk>
9883
9884 * macros.c (end_kbd_macro): New function.
9885 (Fend_kbd_macro): Use it.
9886
9887 * macros.h (end_kbd_macro): Declare extern.
9888
9889 * keyboard.c (Fdiscard_input): If defining keyboard macro,
9890 end and save it instead of discarding it.
9891
98922002-09-09 Markus Rost <rost@math.ohio-state.edu>
9893
9894 * s/sol2-6.h: Fix typo. Add comment.
9895
98962002-09-09 Richard M. Stallman <rms@gnu.org>
9897
9898 * regex.c (regnum_t): Use signed int, not unsigned int.
9899
9900 * s/sol2-6.h: New file.
9901
9902 * s/sol2-5.h (UNEXEC): Definition deleted.
9903
99042002-09-08 Kim F. Storm <storm@cua.dk>
9905
9906 * macros.c (executing_macro_index): Change type to EMACS_INT.
9907 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
9908
9909 * macros.h (executing_macro_index): Change type to EMACS_INT.
9910
99112002-09-06 Richard M. Stallman <rms@gnu.org>
9912
9913 * casetab.c (set_case_table): Make canon table point to eqv table.
9914
99152002-09-06 Juanma Barranquero <lektu@terra.es>
9916
9917 * coding.c (syms_of_coding): Fix spacing.
9918
9919 * composite.c (Fcompose_region_internal)
9920 (Fcompose_string_internal): Likewise.
9921
9922 * data.c (Flsh): Likewise.
9923
9924 * fontset.c (Fset_fontset_font): Likewise.
9925
9926 * macfns.c (Fx_server_max_request_size): Likewise.
9927
9928 * w16select.c (syms_of_win16select): Likewise.
9929
9930 * w32select.c (syms_of_w32select): Likewise.
9931
9932 * xselect.c (syms_of_xselect): Likewise.
9933
99342002-09-05 Richard M. Stallman <rms@gnu.org>
9935
9936 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
9937 call EXTEND_RANGE_TABLE and return a proper value.
9938 (set_image_of_range): Don't call set_image_of_range_1
9939 if no TRANSLATE or if range includes all of Latin-1.
9940 Only call it for the Latin-1 part of the range.
9941 For other cases, make two separate ranges,
9942 one for the original specified characters and one for
9943 their case-conversions.
9944
99452002-09-04 Richard M. Stallman <rms@gnu.org>
9946
9947 * s/sol2-5.h (UNEXEC): Use unexsol.o.
9948
9949 * window.c (displayed_window_lines): Correct for one-off bug
9950 in HEIGHT on non-window displays.
9951
9952 * regex.c (set_image_of_range_1): New function.
9953 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
9954 Return a value to indicate running out of memory.
9955 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
9956 (extend_range_table_work_area): New subroutine.
9957 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
9958 Different calling conventions, and used from set_image_of_range{,_1}.
9959 (IMMEDIATE_QUIT_CHECK): Definitions moved.
9960
99612002-09-04 Juanma Barranquero <lektu@terra.es>
9962
9963 * makefile.w32-in: All dependencies updated.
9964
99652002-09-01 Richard M. Stallman <rms@gnu.org>
9966
9967 * unexsol.c: New file.
9968
9969 * xfns.c (Qbox): Declare external, don't define.
9970
9971 * xdisp.c (redisplay_window) <force-start case>:
9972 If point is on semi-visible last line, reposition
9973 it at previous line.
9974
9975 * alloc.c (display_malloc_warning): Use display-warning.
9976 (malloc_warning_1): Function deleted.
9977
9978 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
9979
9980 * lread.c (read1): Handle #! by skipping the line.
9981
99822002-08-31 Richard M. Stallman <rms@gnu.org>
9983
9984 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
9985 Don't include LDFLAGS.
9986 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
9987
99882002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
9989
9990 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
9991 member of x_display_info unless we compile for some window system.
9992
99932002-08-31 Kim F. Storm <storm@cua.dk>
9994
9995 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
9996 (get_window_cursor_type): Don't use them.
9997 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
9998
99992002-08-30 Kenichi Handa <handa@etl.go.jp>
10000
10001 * xdisp.c (get_next_display_element): Fix previous change.
10002
100032002-08-30 Andrew Choi <akochoi@shaw.ca>
10004
10005 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
10006 (expose_window): Use it to fix the display of overlapping
10007 rows (merge code from xterm.c).
10008
10009 * macfns.c (Qbox): Add extern declaration.
10010
100112002-08-30 Juanma Barranquero <lektu@terra.es>
10012
10013 * w32fns.c (Qbox): Make extern.
10014 (syms_of_w32fns): Remove initialization of Qbox.
10015
100162002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
10017
10018 * xfns.c (Fx_open_connection): Fix error message.
10019
100202002-08-30 Kim F. Storm <storm@cua.dk>
10021
10022 The following changes consolidates the handling of the cursor
10023 type in xdisp.c, moving duplicate code and functionality from
10024 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
10025
10026 * frame.h (enum text_cursor_kinds): Consolidated here.
10027 Added DEFAULT_CURSOR value.
10028 (struct frame) <desired_cursor, cursor_width>
10029 <blink_off_cursor, blink_off_cursor_width>: New fields.
10030 Consolidated from output_x, output_w32 and output_mac structs.
10031 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
10032 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
10033
10034 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
10035 Variables consolidated here.
10036 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
10037 (Vcursor_in_non_selected_windows): Renamed from
10038 cursor_in_non_selected_windows and changed to Lisp_Object.
10039 (syms_of_xdisp): Define and staticpro new and moved variables.
10040 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
10041 consolidated here. Recognize Qhollow setting.
10042 (set_frame_cursor_types): New function to set frame cursor types
10043 based on the frame parameters.
10044 (get_window_cursor_type): New function to calculate new cursor
10045 type and width for the specified window. Based on duplicated
10046 code consolidated here.
10047 Enhancements: cursor-in-non-selected-windows may be a cursor type,
10048 check buffer-local alternate-cursor-type and blink-cursor-alist
10049 before using built-in blink off methods.
10050
10051 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
10052
10053 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
10054 (get_specified_cursor_type, get_window_cursor_type)
10055 (set_frame_cursor_types): Added prototypes.
10056
10057 * macfns.c (x_specified_cursor_type): Removed.
10058 (x_set_cursor_type): Use set_frame_cursor_types.
10059 (Qbar, Qbox): Removed.
10060 (syms_of_macfns): Don't intern or staticpro them.
10061
10062 * macterm.c (x_specified_cursor_type): Remove prototype.
10063 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
10064 (x_display_and_set_cursor): Use get_window_cursor_type.
10065 Remove unused local variables cursor_non_selected, active_cursor.
10066 Redraw cursor if hbar cursor width changes.
10067 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
10068
10069 * macterm.h (enum text_cursor_kinds): Removed.
10070 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
10071 <blink_off_cursor, blink_off_cursor_width>: Members removed.
10072 (FRAME_DESIRED_CURSOR): Macro removed.
10073
10074 * w32fns.c (Vblink_cursor_alist): Removed.
10075 (Qbar, Qhbar, Qbox, Qhollow): Removed.
10076 (syms_of_w32fns): Don't intern, staticpro, or define them.
10077 (x_specified_cursor_type): Removed.
10078 (x_set_cursor_type): Use set_frame_cursor_types.
10079
10080 * w32term.c (x_specified_cursor_type): Remove prototype.
10081 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
10082 (x_display_and_set_cursor): Use get_window_cursor_type.
10083 Remove unused local variables cursor_off_state.
10084 Redraw cursor if hbar cursor width changes.
10085 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
10086
10087 * w32term.h (enum text_cursor_kinds): Removed.
10088 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
10089 <blink_off_cursor, blink_off_cursor_width>: Members removed.
10090 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
10091 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
10092 (struct w32_display_info) <x_highlight_frame>: Renamed member from
10093 w32_highlight_frame.
10094
10095 * xfns.c (Vblink_cursor_alist): Removed.
10096 (Qbar, Qhbar, Qbox, Qhollow): Removed.
10097 (syms_of_xfns): Don't intern, staticpro, or define them.
10098 (x_specified_cursor_type): Removed.
10099 (x_set_cursor_type): Use set_frame_cursor_types.
10100
10101 * xterm.c (x_specified_cursor_type): Remove prototype.
10102 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
10103 (x_display_and_set_cursor): Use get_window_cursor_type.
10104 Remove unused local variables cursor_off_state.
10105 Redraw cursor if hbar cursor width changes.
10106
10107 * xterm.h (enum text_cursor_kinds): Removed.
10108 (struct output_x) <current_cursor, desired_cursor, cursor_width>
10109 <blink_off_cursor, blink_off_cursor_width>: Members removed.
10110 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
10111 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
10112 (x_specified_cursor_type): Remove prototype.
10113
101142002-08-28 Richard M. Stallman <rms@gnu.org>
10115
10116 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
10117 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
10118 (Vblink_cursor_alist): New variable.
10119 (syms_of_w32fns): Initialize and defvar it.
10120 (x_specified_cursor_type): Recognize Qbox for filled box.
10121 Exceptions are hollow boxes.
10122 (Qbox, Qhollow): New variables.
10123 (syms_of_w32fns): Initialize and staticpro them.
10124
10125 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
10126 New macros.
10127 (struct w32_output): New fields blink_off_cursor,
10128 blink_off_cursor_width.
10129 (FRAME_CURSOR_WIDTH): New macro.
10130
10131 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
10132 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
10133
10134 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
10135 for bar cursor.
10136
10137 * w32term.c (expose_overlaps): New function.
10138 (expose_window): Use it to fix the display of overlapping rows.
10139
101402002-08-28 Simon Josefsson <jas@extundo.com>
10141
10142 * xfns.c (Fx_open_connection): Improve help when X connection
10143 fails, xhost is insecure and xauth is better.
10144
101452002-08-28 Juanma Barranquero <lektu@terra.es>
10146
10147 * makefile.w32-in: Add missing dependencies on w32term.h and
10148 composite.h.
10149
10150 * emacs.c (USAGE1): Add missing newline.
10151
101522002-08-27 Andrew Choi <akochoi@shaw.ca>
10153
10154 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
10155
101562002-08-27 Richard M. Stallman <rms@gnu.org>
10157
10158 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
10159 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
10160 (Vblink_cursor_alist): New variable.
10161 (syms_of_xfns): Initialize and defvar it.
10162 (x_specified_cursor_type): Recognize Qbox for filled box.
10163 Exceptions are hollow boxes.
10164 (Qbox, Qhollow): New variables.
10165 (syms_of_xfns): Initialize and staticpro them.
10166
10167 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
10168 New macros.
10169 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
10170
10171 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
10172 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
10173
10174 * emacs.c (main): Handle --script.
10175 (USAGE1): Mention --script.
10176 (standard_args): Define sort order for --script.
10177
101782002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
10179
10180 * xdisp.c (redisplay_updating_p): Variable removed.
10181 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
10182 New variables.
10183 (init_iterator): Don't free realized faces if
10184 inhibit_free_realized_faces is set.
10185 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
10186 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
10187 initialize Qinhibit_free_realized_faces.
10188
10189 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
10190 when iterator is adding glyphs to a glyph matrix.
10191
101922002-08-27 Kenichi Handa <handa@etl.go.jp>
10193
10194 * xdisp.c (get_next_display_element): In unibyte case, don't use
10195 octal form for such eight-bit characters that can be converted to
10196 multibyte char.
10197
101982002-08-26 Kim F. Storm <storm@cua.dk>
10199
b6189c3b
KS
10200 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
10201 foreground and background colors. From Joe Buehler.
048addec
JD
10202
102032002-08-26 Miles Bader <miles@gnu.org>
10204
10205 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
10206
102072002-08-25 Andrew Choi <akochoi@shaw.ca>
10208
10209 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
10210 defined instead of MAC_OSX.
10211
10212 * s/darwin.h (select): Define select to sys_select only if
10213 HAVE_CARBON is defined.
10214 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
10215 (DONT_REOPEN_PTY): #def it.
10216
10217 * macterm.c (XTread_socket): Remove code to call
10218 SendEventToEventTarget for keys with command modifiers when
10219 mac_command_key_is_meta is nil.
10220
102212002-08-24 Andreas Schwab <schwab@suse.de>
10222
10223 * eval.c (Fdefvar): Fix last change.
10224
102252002-08-23 Richard M. Stallman <rms@gnu.org>
10226
10227 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
10228 Record variables in load history as (defvar . VAR).
10229 (Fdefvar): Don't record in load history if no initial value.
10230 (Qdefvar): New variable.
10231 (syms_of_eval): Init and staticpro it.
10232
10233 * lread.c (syms_of_lread): Doc fix.
10234 (build_load_history): Use Fmember to see if a definition
10235 is already in the Vload_history element.
10236
10237 * process.c (Fstart_process): Remove /: from program name.
10238
10239 * emacs.c (decode_env_path): Don't add /: if file name handler
10240 has a `safe-magic' property.
10241
10242 * callproc.c (Fcall_process): Remove /: from program name.
10243
102442002-08-23 Stefan Monnier <monnier@cs.yale.edu>
10245
10246 * regex.c (PATFETCH): Remove the translating fetch.
10247 (PATFETCH_RAW): Rename to PATFETCH.
10248 (set_image_of_range): New fun.
10249 (SET_RANGE_TABLE_WORK_AREA): Use it.
10250 (regex_compile): Don't translate the pattern chars so eagerly.
10251 Only do it when inserting an `exactn' bytecode or when handling
10252 a char-range.
10253 (mutually_exclusive_p): Avoid empty statement.
10254
102552002-08-22 Kim F. Storm <storm@cua.dk>
10256
10257 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
10258 end up on a partially visible line; this reverts a specific part
10259 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
10260 display error which has been reported several times now.
10261 However it introduces the problem that changes was supposed to fix.
10262 See my comments in the source if you want to debug this further.
10263
102642002-08-20 Kenichi Handa <handa@etl.go.jp>
10265
10266 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
10267
102682002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
10269
10270 * msdos.c (croak): Add `void' to definition.
10271
c1380aa6 10272 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
048addec
JD
10273 Don't define them, they are defined in msdos.c.
10274
10275 * mem-limits.h [MSDOS]: Declare etext.
10276
10277 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
10278 `const' since CORRECT_DIR_SEPS modifies its target.
10279
102802002-08-19 Kim F. Storm <storm@cua.dk>
10281
2fb0ce67 10282 * keyboard.c (Fclear_this_command_keys): Add optional arg
048addec
JD
10283 KEEP-RECORD to avoid clearing lossage when we just want to clear
10284 the current key sequence (kmacro needs this).
10285
102862002-08-19 Kenichi Handa <handa@localhost>
10287
10288 * composite.c (run_composition_function): Call FUNC if it is fboundp.
10289
10290 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
10291 cons, return Qnil.
10292
102932002-08-17 Richard M. Stallman <rms@gnu.org>
10294
10295 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
10296
10297 * sysdep.c [!VMS]: Include sys/files.h.
10298
10299 * editfns.c (save_restriction_restore): Defend from unchained marker.
10300
10301 * buffer.c (overlays_at): Handle extending vec uniformly.
10302 (overlays_in): Handle extending vec from length 0 as in overlays_at.
10303
103042002-08-15 Andrew Choi <akochoi@shaw.ca>
10305
10306 * mac.c (init_mac_osx_environment): New function.
10307
10308 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
10309
103102002-08-14 Kim F. Storm <storm@cua.dk>
10311
10312 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
10313 executing macro before appending to it (when used from Lisp).
10314 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
10315 which is called prior to each iteration of macro (for kmacro.el).
10316 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
10317
10318 * lisp.h (Fexecute_kbd_macro): Update prototype.
10319
10320 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
10321
103222002-08-14 Kenichi Handa <handa@etl.go.jp>
10323
10324 * xselect.c (QUTF8_STRING): New variable.
10325 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
10326 (x_atom_to_symbol): Likewise.
10327 (x_get_local_selection): New argument local_request. If it is
10328 nonzero, call handler_fn with the second arg nil.
10329 (x_handle_selection_request): Call x_get_local_selection with
10330 local_request 0.
10331 (lisp_data_to_selection_data): Don't encode the string here.
10332 (Fx_get_selection_internal): Call x_get_local_selection with
10333 local_request 1.
10334 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
10335
10336 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
10337
10338 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
10339
103402002-08-13 Richard M. Stallman <rms@gnu.org>
10341
10342 * minibuf.c (Fminibufferp): New function.
10343 (syms_of_minibuf): Defsubr it.
10344 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
10345
103462002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
10347
10348 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
10349
103502002-08-12 Richard M. Stallman <rms@gnu.org>
10351
10352 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
10353 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
10354 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
10355 already.
10356
10357 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
10358
103592002-08-11 Andrew Choi <akochoi@shaw.ca>
10360
10361 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
10362 (Vmac_pass_command_to_system): New variable.
10363 (Vmac_pass_control_to_system): New variable.
10364 (do_mouse_moved): Check wp with is_emacs_window.
10365 (XTread_socket): Check window_ptr with is_emacs_window.
10366 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
10367 events back to Mac Toolbox for processing, depending on values of
10368 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
10369 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
10370 Vmac_pass_control_to_system.
10371
103722002-08-10 Kenichi Handa <handa@etl.go.jp>
10373
10374 * coding.c (unencodable_char_position): New function.
10375 (Funencodable_char_position): New function.
10376 (syms_of_coding): Defsubr Funencodable_char_position.
10377
103782002-08-10 Andrew Choi <akochoi@shaw.ca>
10379
10380 * mac.c (sys_select) [MAC_OSX]: New function.
10381
10382 * macterm.c (MakeMeTheFrontProcess): New function.
10383 (mac_initialize): Call MakeMeTheFrontProcess.
10384
10385 * s/darwin.h: Define select to sys_select.
10386
103872002-08-09 Richard M. Stallman <rms@gnu.org>
10388
10389 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
10390
103912002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
10392
10393 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
10394 end of the buffer.
10395
103962002-08-08 Ken Raeburn <raeburn@mit.edu>
10397
10398 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
10399
10400 * puresize.h (BASE_PURESIZE): Increase to 910000.
10401
104022002-08-08 Kenichi Handa <handa@etl.go.jp>
10403
10404 * coding.c (Ffind_operation_coding_system): For write-region, if
10405 VISIT is a filename, make it the target.
10406
104072002-08-07 Richard M. Stallman <rms@gnu.org>
10408
10409 * alloc.c (mark_object): Detect long lists for debugging.
10410 (mark_object_loop_halt): New variable.
10411
10412 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
10413
10414 * data.c (Fmake_variable_frame_local): Doc fix.
10415
104162002-08-01 David Ponce <david@dponce.com>
10417
10418 * w32menu.c (local_heap, local_alloc, local_free): New macros.
10419 (malloc_widget_value, free_widget_value)
10420 (w32_free_submenu_strings): Use them.
10421
10422 (push_submenu_start, push_submenu_end, push_left_right_boundary)
10423 (push_menu_pane, push_menu_item, single_keymap_panes)
10424 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
10425 (single_submenu, set_frame_menubar)
10426 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
10427
10428 (Fx_popup_menu): Don't show pop up menu until preceding one is
10429 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
10430
10431 * w32menu.c: Changes adapted from xmenu.c
10432 (set_frame_menubar): First parse all submenus,
10433 then make widget_value trees from them.
10434 Don't allocate any widget_value objects
10435 until we are done with the parsing.
10436 (parse_single_submenu): New function.
10437 (digest_single_submenu): New function.
10438 (single_submenu): Function deleted, replaced by those two.
10439
104402002-08-04 Andrew Choi <akochoi@shaw.ca>
10441
10442 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
10443 returns a valid window pointer before proceeding for keyDown and
10444 autoKey events.
10445
104462002-08-03 Andrew Choi <akochoi@shaw.ca>
10447
10448 * macterm.c (USE_CARBON_EVENTS): New macro.
10449 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
10450 (x_iconify_frame): Call CollapseWindow.
10451 (Vmac_reverse_ctrl_meta): New variable.
10452 (Vmac_wheel_button_is_mouse_2): New variable.
10453 (init_mac_drag_n_drop): New function.
10454 (mac_do_receive_drag): New function.
10455 (mac_handle_service_event): New function.
10456 (init_service_handler): New function.
10457 (mac_to_emacs_modifiers): New function.
10458 (mac_event_to_emacs_modifiers): New function.
10459 (mac_get_mouse_btn): New function.
10460 (mac_convert_event_ref): New function.
10461 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
10462 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
10463 mac_get_mouse_btn.
10464 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
10465
10466 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
10467 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
10468 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
10469 TOOL_BAR_EVENT for MAC_OS as well.
10470 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
10471 as for WINDOWS_NT.
10472 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
10473
10474 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
10475
104762002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
10477
10478 * xdisp.c (forward_to_next_line_start): Fix a condition that
10479 lead to a newline being skipped.
10480
104812002-08-02 Andrew Choi <akochoi@shaw.ca>
10482
10483 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
10484
104852002-08-01 Richard M. Stallman <rms@gnu.org>
10486
10487 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
10488
104892002-07-31 Andrew Choi <akochoi@shaw.ca>
10490
10491 * macfns.c: #undef init_process before #define-ing it.
10492
10493 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
10494 HAVE_CARBON is defined.
10495
104962002-07-31 Richard M. Stallman <rms@gnu.org>
10497
10498 * xmenu.c (set_frame_menubar): First parse all submenus,
10499 then make widget_value trees from them.
10500 Don't allocate any widget_value objects
10501 until we are done with the parsing.
10502 (parse_single_submenu): New function.
10503 (digest_single_submenu): New function.
10504 (single_submenu): Function deleted, replaced by those two.
10505
105062002-07-30 Juanma Barranquero <lektu@terra.es>
10507
10508 * w32proc.c (syms_of_ntproc): Fix docstring of
10509 `w32-get-true-file-attributes'.
10510
105112002-07-28 Richard M. Stallman <rms@gnu.org>
10512
10513 * s/hpux8.h (HPUX8): Define this before including hpux.h.
10514 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
10515
10516 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
10517
10518 * keyboard.c (make_lispy_event):
10519 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
10520 Explicitly clear up_modifier in event->modifiers.
10521
105222002-07-27 Richard M. Stallman <rms@gnu.org>
10523
10524 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
10525
10526 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
10527 for bar cursor.
10528
105292002-07-26 Kenichi Handa <handa@etl.go.jp>
10530
10531 * coding.c (detect_coding_iso2022): While checking a byte sequence
10532 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
10533 it in the normal loop.
10534
105352002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
10536
10537 * xterm.c (expose_overlaps): New function.
10538 (expose_window): Use it to fix the display of overlapping rows.
10539
10540 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
10541
105422002-07-23 Ken Raeburn <raeburn@gnu.org>
10543
10544 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
10545 since it only depends on XUINT.
10546
10547 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
10548 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
10549 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
10550 Macros deleted.
3947677c 10551
77d1daf2
AS
10552 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
10553 its value over other approaches.
10554 * sysdep.c (start_of_data): Don't define the function if a macro
10555 form has been defined.
8a8e19a3 10556
048addec
JD
105572002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
10558
10559 * xdisp.c (redisplay_updating_p): New variable.
10560 (init_iterator): Don't free realized faces when
10561 redisplay_updating_p is set.
10562 (redisplay_internal): Set redisplay_updating_p while updating
10563 the display.
10564
105652002-07-23 Richard M. Stallman <rms@gnu.org>
10566
10567 * editfns.c (Fmessage): Treat "" like nil.
10568
105692002-07-23 Kenichi Handa <handa@etl.go.jp>
10570
10571 * xdisp.c (face_before_or_after_it_pos):
10572 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
10573
105742002-07-22 Juanma Barranquero <lektu@terra.es>
10575
10576 * callproc.c (init_callproc) [DOS_NT]:
10577 Initialize Vshared_game_score_directory to nil.
10578 (syms_of_callproc) [DOS_NT]: Likewise.
10579
105802002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
10581
10582 * xdisp.c (display_line): Replace an abort with xassert.
10583
105842002-07-21 Richard M. Stallman <rms@gnu.org>
10585
10586 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
10587 and END_UNCHANGED when setting buffer_unchanged_p.
10588 Use current_matrix_up_to_date_p to decide whether to use
10589 try_cursor_movement.
10590
10591 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
10592
10593 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
10594
10595 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
10596 Set to nil if dir does not exist.
10597 (syms_of_callproc): Init unconditionally and simply.
10598
10599 * buffer.c (Fbuffer_list): Doc fix.
10600
106012002-07-21 Ken Raeburn <raeburn@gnu.org>
10602
10603 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
10604
10605 * buffer.c (mmap_realloc): When shrinking, make sure number of
10606 pages to unmap is rounded towards zero.
10607
10608 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
10609 (XSETINT): Deleted.
10610
10611 * m/att3b.h (XINT): Don't define.
10612 (VALBITS, VALMASK, XTYPE): Deleted.
10613 (DATA_SEG_BITS): Define.
10614 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
10615 ARRAY_MARK_FLAG): Deleted.
10616 (DATA_SEG_BITS): Define.
10617 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
10618 (DATA_SEG_BITS): Define.
10619
106202002-07-20 Richard M. Stallman <rms@gnu.org>
10621
10622 * print.c (print_error_message): New args CONTEXT and CALLER.
10623 Calls changed.
10624
10625 * lisp.h (print_error_message): Declare new args.
10626
10627 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
10628 and CONTEXT to print_error_message, don't print them here.
10629 For a Quit, don't use Vsignaling_function.
10630 Call message_log_maybe_newline.
10631
10632 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
10633
106342002-07-20 Kim F. Storm <storm@cua.dk>
10635
10636 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
10637
106382002-07-19 Ken Raeburn <raeburn@gnu.org>
10639
10640 * bytecode.c (struct byte_stack): Pointers into byte string now
10641 point to const.
10642 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
10643 const.
10644 * charset.h (BCOPY_SHORT): Source pointer now points to const.
10645 * coding.c (encode_eol, detect_coding, detect_eol):
10646 (decode_coding, encode_coding, detect_coding_system):
10647 Source strings now treated as const.
10648 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
10649 modify Lisp string contents.
10650 * coding.h (decode_coding, encode_coding, detect_coding,
10651 detect_eol): Declarations updated.
10652 * composite.c (compose_chars_in_text): Treat Lisp string contents
10653 as const.
10654 * dispnew.c (safe_bcopy): Source pointer now points to const.
10655 * lisp.h (STRING_COPYIN): New macro.
10656 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
10657 (internal_with_output_to_temp_buffer): Declarations updated.
10658 * print.c (temp_output_buffer_setup):
10659 (internal_with_output_to_temp_buffer): Buffer name argument is now
10660 pointer to const.
10661 * sound.c (struct sound_device): Function pointer field "write"
10662 buffer argument now points to const.
10663 (vox_write): Buffer argument points to const.
10664 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
10665 contents as const.
10666 * sysdep.c (emacs_write): Buffer pointer now const.
10667 * term.c (encode_terminal_code): Buffer pointer now const.
10668 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
10669 (x_face_list_fonts, x_update_menu_appearance):
10670 (hash_string_case_insensitive): Treat Lisp string contents as const.
10671
106722002-07-19 Juanma Barranquero <lektu@terra.es>
10673
048addec
JD
10674 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
10675
10676 * fileio.c (syms_of_fileio): Likewise.
c62aec78
JB
10677 (Ffile_name_as_directory): Fix argument name in docstring.
10678 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
048addec
JD
10679
106802002-07-18 Richard M. Stallman <rms@gnu.org>
10681
10682 * data.c (Fdefalias): Doc fix.
10683
106842002-07-17 Dave Love <fx@gnu.org>
10685
10686 * intervals.h (text_property_stickiness): Use P_.
10687
10688 * ccl.c: Remove `emacs' conditionals.
10689 (ccl_backtrace_table): Fix size spec.
10690 (ccl_driver): Fix type errors.
10691
106922002-07-16 Ken Raeburn <raeburn@gnu.org>
10693
10694 * alloc.c (xstrdup, make_string, make_unibyte_string)
10695 (make_multibyte_string, build_string): String pointer args now
10696 point to const.
10697 * charset.c (find_charset_in_text, c_string_width):
10698 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
10699 * fileio.c (report_file_error):
10700 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
10701 (count_combining_before, count_combining_after, insert_1_both):
10702 (insert, insert_and_inherit, insert_string):
10703 (insert_before_markers, insert_before_markers_and_inherit):
10704 * lread.c (intern, oblookup, hash_string):
10705 * minibuf.c (temp_echo_area_glyphs):
10706 * search.c (fast_c_string_match_ignore_case):
10707 * sysdep.c (emacs_open, set_file_times):
10708 * xfaces.c (xstricmp):
10709 * xdisp.c (store_frame_title, string_char_and_length):
10710 (message_dolog, message2, message2_nolog, set_message): Likewise.
10711 (set_message_1): Cast message string argument to const pointer.
10712 * editfns.c (general_insert_function): Insertion function now
10713 takes pointer to const for input data.
10714 * charset.h (find_charset_in_text, c_string_width):
10715 (parse_str_as_multibyte): Declarations updated.
10716 * dispextern.h (xstricmp): Declaration updated.
10717 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
10718 (count_size_as_multibyte, count_combining_before):
10719 (count_combining_after, insert_1, insert_1_both, message_dolog):
10720 (insert, insert_and_inherit, insert_before_markers)
10721 (insert_before_markers_and_inherit, set_message, message2):
10722 (message2_dolog, build_string, make_string, make_unibyte_string):
10723 (make_multibyte_string, intern, oblookup, report_file_error):
10724 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
10725 (emacs_open, xstrdup): Declarations updated.
10726 * systime.h (set_file_times): Declaration updated.
10727
10728 * charset.c (find_charset_in_text, lisp_string_width): Use const
10729 for pointer to lisp string data.
10730 * charset.h (FETCH_STRING_CHAR_ADVANCE):
10731 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
10732 * coding.c (Ffind_coding_systems_region_interval):
10733 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
10734 (Fmake_directory_internal, Fdelete_directory):
10735 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
10736 * fontset.c (font_family_registry, fs_query_fontset):
10737 (list_fontsets):
10738 * frame.c (Fframe_parameter):
10739 * keyboard.c (cmd_error_internal):
10740 * keymap.c (Fdescribe_buffer_bindings):
10741 * lread.c (complete_filename_p, openp):
10742 * minibuf.c (Fminibuffer_complete_word):
10743 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
10744 (face_before_or_after_it_pos, next_element_from_string):
10745 (get_overlay_arrow_glyph_row, display_mode_element):
10746 (decode_mode_spec_coding):
10747 * xterm.c (same_x_server): Likewise.
10748
10749 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
10750 settings of non-existent fields.
10751
10752 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
10753 copy a lisp value.
10754
10755 * lread.c (Fintern_soft): Use string macros instead of
10756 Lisp_String fields.
10757 * keyboard.c (echo_char, parse_modifiers_uncached):
10758 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
10759 * textprop.c (validate_interval_range, interval_of): Likewise.
10760
10761 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
10762
10763 * charset.h (FETCH_STRING_CHAR_ADVANCE)
10764 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
10765 XSTRING()->size_byte.
10766
10767 * lisp.h (SDATA, SREF): Produce rvalue.
10768 (SSET): New macro.
10769 * alloc.c (make_event_array): Use SSET for storing into a string.
10770 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
10771 a string.
10772 * casefiddle.c (casify_object): Use SSET.
10773 * charset.h (FETCH_STRING_CHAR_ADVANCE)
10774 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
10775 address of string contents.
10776 * data.c (Faref): Use SDATA.
10777 (Faset): Use SDATA, SSET.
10778 * dired.c (directory_files_internal): Use SSET.
10779 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
10780 (Fread_file_name): Use SREF, SSET.
10781 * fns.c (concat): Use SSET.
10782 (concat, Fdelete): Use SDATA.
10783 * insdel.c (insert_from_string_1): Use SDATA.
10784 * keyboard.c (Fevent_convert_list): Use SREF.
10785 * lread.c (Fload): Use SDATA, SSET.
10786 * macfns.c (validate_x_resource_name): Use SSET.
10787 * process.c (status_message): Use SSET.
10788 * search.c (wordify): Use SDATA.
10789 (Freplace_match): Use SREF.
10790 * w32fns.c (validate_x_resource_name): Use SSET.
10791 * xfns.c (validate_x_resource_name): Use SSET.
10792 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
10793
107942002-07-16 Richard M. Stallman <rms@gnu.org>
10795
10796 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
10797
10798 * xdisp.c (reconsider_clip_changes):
10799 Don't test prevent_redisplay_optimizations_p.
10800 (redisplay_internal): Test prevent_redisplay_optimizations_p
10801 along with clip_changed in some cases.
10802 (try_window_id): Likewise.
10803 (redisplay_window): New local var buffer_unchanged_p.
10804
10805 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
10806
10807 * process.c (create_process): Test USG_SUBTTY_WORKS.
10808 (process_send_signal): Clean up handling of GID.
10809 Detect errors in ioctls meant to set GID.
10810
10811 * window.c (temp_output_buffer_show):
10812 Don't set prevent_redisplay_optimizations_p.
10813
108142002-07-15 Juanma Barranquero <lektu@terra.es>
10815
10816 * eval.c (Fdefvaralias): Add docstring argument.
10817
108182002-07-15 Ken Raeburn <raeburn@gnu.org>
10819
10820 * lisp.h (STRING_INTERVALS): Produce rvalue.
10821 (STRING_SET_INTERVALS): New macro.
10822 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
10823 * fns.c (Fstring_as_multibyte): Likewise.
10824 * intervals.c (balance_possible_root_interval, delete_interval)
10825 (create_root_interval, copy_intervals_to_string): Likewise.
10826 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
10827 instead of 0.
10828
108292002-07-14 Ken Raeburn <raeburn@gnu.org>
10830
10831 * lisp.h (STRING_SET_CHARS): New macro.
10832 (SCHARS, SBYTES): Produce rvalues.
10833 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
10834 * fns.c (concat): Likewise.
10835 * lread.c (read_vector): Likewise.
10836
10837 * lisp.h (SMBP): Deleted. All uses changed to STRING_MULTIBYTE.
10838 (STRING_SET_UNIBYTE): New macro.
10839 (SET_STRING_BYTES): Deleted. Callers (all of which supplied a
10840 length of -1) changed to use STRING_SET_UNIBYTE.
10841 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
10842 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
10843 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
10844 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
10845 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
10846 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
10847 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
10848 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
10849 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
10850 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
10851 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
10852 STRING_BYTES or indirection changed to SCHARS, SBYTES,
10853 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
10854 unchanged for now.
10855
108562002-07-13 Kim F. Storm <storm@cua.dk>
10857
10858 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
10859
108602002-07-12 Richard M. Stallman <rms@gnu.org>
10861
10862 * fileio.c (Fwrite_region): Doc fix.
10863
10864 * print.c (print_error_message): Don't handle Vsignaling_function here.
10865
10866 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
10867 (command_loop_1): Avoid certain actions after memory-full error.
10868
10869 * eval.c (Fsignal): Don't call cancel_hourglass.
10870 For a memory-full error, don't call Vsignal_hook_function
10871 and don't set Vsignaling_function.
10872
10873 * process.c (process_send_signal): Add abort call.
10874
108752002-07-11 Markus Rost <rost@math.ohio-state.edu>
10876
10877 * keymap.c (Fkey_binding): Fix typo.
10878
108792002-07-11 Richard M. Stallman <rms@gnu.org>
10880
10881 * alloc.c (Vmemory_full): New variable.
10882 (Vmemory_signal_data): Renamed from memory_signal_data.
10883 Uses changed.
10884 (syms_of_alloc): Defvar them.
10885 (memory_full, buffer_memory_full): Set Vmemory_full.
10886
10887 * lisp.h (Vmemory_full): Add declaration.
10888 (current_column, indented_beyond_p): Change declaration.
10889
10890 * indent.c (last_known_column): Declare as double, not float.
10891 (current_column, current_column_1, string_display_width)
10892 (position_indentation): Return `double'.
10893 (indented_beyond_p): Arg `column' is `double'. Callers changed.
10894
10895 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
10896 (back_to_previous_visible_line_start)
10897 (reseat_at_next_visible_line_start, next_element_from_buffer):
10898 Use `double', not `float', when calling indented_beyond_p.
10899
10900 * s/hpux11.h (BROKEN_SA_RESTART): Defined.
10901
10902 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
10903
109042002-07-11 Juanma Barranquero <lektu@terra.es>
10905
10906 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
f9711de4
JB
10907 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
10908 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
10909 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
10910 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
10911 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
048addec
JD
10912
109132002-07-10 Juanma Barranquero <lektu@terra.es>
10914
d814862a
JB
10915 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
10916 All callers changed.
048addec
JD
10917
109182002-07-09 Stefan Monnier <monnier@cs.yale.edu>
10919
10920 * data.c (Fdefalias): Add an optional `docstring' argument.
10921 (set_internal, Fsetq_default): Use XCAR/XCDR.
10922
10923 * composite.c (HASH_VALUE, HASH_KEY):
10924 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
10925
109262002-07-09 Kenichi Handa <handa@etl.go.jp>
10927
10928 * callproc.c (Fcall_process): Fix previous change.
10929
109302002-07-07 Stefan Monnier <monnier@cs.yale.edu>
10931
10932 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
10933 Add support for hash-tables.
10934 (Ftry_completion): Return t even if the string appears multiple times.
10935
10936 * fns.c (Fnconc): Use XCDR.
10937 (Fprovide): Use CONSP and XCDR.
10938 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
10939 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
10940 (Fmake_hash_table): Accept `:size nil'.
10941 (Fmakehash): Delete: moved to subr.el.
10942 (syms_of_fns): Don't defsubr makehash.
10943
10944 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
10945 (HASH_TABLE_SIZE): Move from fns.c.
10946
109472002-07-07 Richard M. Stallman <rms@gnu.org>
10948
10949 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
10950 Instead just return 0 when there is something to be done.
10951 (try_scrolling): If make_cursor_line_fully_visible returns 0,
10952 retry scrolling as if cursor were off the bottom.
10953 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
10954 return CURSOR_MOVEMENT_MUST_SCROLL.
10955 (redisplay_window): If make_cursor_line_fully_visible returns 0,
10956 go to try_to_scroll.
10957
10958 * buffer.c (Fbuffer_local_value): Store current value into its binding
10959 so we get the up-to-date value for the binding that is loaded.
10960
10961 * eval.c (Fdefmacro): Doc fix.
10962
109632002-07-05 Dave Love <fx@gnu.org>
10964
10965 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
10966 correctly.
10967
10968 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
10969 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
10970 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
10971 CCL_LookupCharConstTbl.
10972 (syms_of_ccl): Defvar translation-hash-table-vector.
10973
109742002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10975
10976 * xdisp.c: Remove unused variable `face'.
10977
109782002-07-04 Juanma Barranquero <lektu@terra.es>
10979
10980 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
10981 obsolescence information.
10982
109832002-07-03 Andrew Choi <akochoi@shaw.ca>
10984
10985 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
10986 pattern. Search cache first.
10987 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
10988 for Japanese font.
10989 (XLoadQueryFont): Use it.
10990
109912002-07-02 Richard M. Stallman <rms@gnu.org>
10992
10993 * keymap.c (Fdefine_key): Doc fix.
10994
10995 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
10996
109972002-07-02 Juanma Barranquero <lektu@terra.es>
10998
10999 * keymap.c (syms_of_keymap): Fix typo.
11000
110012002-07-01 Andrew Choi <akochoi@shaw.ca>
11002
11003 * s/darwin.h: Define POSIX_SIGNALS.
11004
11005 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
11006 and FSRefMakePath to convert FSSpec returned with Apple Event to
11007 Posix pathname.
11008 (mac_initialize) [TARGET_API_MAC_CARBON]:
11009 Call init_required_apple_events and disable the `Quit' menu item
11010 provided automatically by the Carbon Toolbox.
11011
110122002-07-01 Dave Love <fx@gnu.org>
11013
11014 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
11015 for K&R.
11016
11017 * xterm.c: Fix prototype for K&R.
11018
11019 * term.c (costs_set): Declare static, non-initialized for pcc.
11020
110212002-07-01 Richard M. Stallman <rms@gnu.org>
11022
11023 * keyboard.c (timer_last_idleness_start_time): New variable.
11024 (timer_start_idle): Set that.
11025 (read_key_sequence): Use that to reset timer_idleness_start_time
11026 to previous value.
11027
11028 * window.c (Frecenter): With arg, set optional_new_start.
11029
11030 * xdisp.c (redisplay_internal): Make optional_new_start really work.
11031
11032 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
11033 buffer for completion.
11034
110352002-06-29 Ken Raeburn <raeburn@gnu.org>
11036
11037 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
11038
110392002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11040
11041 * keyboard.c (readable_filtered_events): New function that filters
11042 FOCUS_IN_EVENT depending on parameter.
11043 (readable_events): Calls readable_filtered_events, not filtering
11044 FOCUS_IN_EVENT.
11045 (get_filtered_input_pending): New function, filtering parameter passed
11046 to readable_filtered_events.
11047 (get_input_pending): Calls get_filtered_input_pending, not filtering
11048 FOCUS_IN_EVENT.
11049 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
11050 FOCUS_IN_EVENT.
11051
11052 * xterm.h (struct x_output): Add focus_state.
11053
11054 * xterm.c (x_focus_changed): New function.
11055 (x_detect_focus_change): New function.
11056 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
11057 EnterNotify and LeaveNotify to track X focus changes.
11058
110592002-06-28 Andreas Schwab <schwab@suse.de>
11060
11061 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
11062
110632002-06-27 Kim F. Storm <storm@cua.dk>
11064
11065 * xdisp.c: (mode_line_string_list, mode_line_string_face)
11066 (mode_line_string_face_prop): New variables.
11067 (store_mode_line_string): New function.
11068 (display_mode_element): Use store_mode_line_string to
11069 add mode-line string elements to mode_line_string_list
11070 when mode_line_string_list is non-nil.
11071 (Fformat_mode_line): Now returns propertized string by
11072 default. New arg NO-PROPS to ignore properties.
11073 (decode_mode_spec): Only add two dashes for %- in propertized
11074 mode-line string.
11075 (syms_of_xdisp): Init and staticpro mode_line_string_list.
11076
110772002-06-27 Stefan Monnier <monnier@cs.yale.edu>
11078
11079 * minibuf.c (minibuffer_completion_contents): Add return type.
11080
110812002-06-27 Juanma Barranquero <lektu@terra.es>
11082
11083 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
11084
110852002-06-26 Juanma Barranquero <lektu@terra.es>
11086
11087 * fileio.c (read_file_name_cleanup): Add missing return.
11088
110892002-06-26 Richard M. Stallman <rms@gnu.org>
11090
11091 * window.c (Frecenter): Don't set force_start flag.
11092
11093 * minibuf.c (do_completion, Fminibuffer_complete_word)
11094 (Fminibuffer_completion_help): Complete just the text before point.
11095 (minibuffer_completion_contents): New function.
11096
11097 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
11098
11099 * frame.c (frames_bury_buffer): Function deleted.
11100
111012002-06-25 Miles Bader <miles@gnu.org>
11102
11103 * callint.c (Fcall_interactively): When checking to see if doprnt hit
11104 the end of callint_message, allow for a terminating '\0'.
11105
111062002-06-24 Juanma Barranquero <lektu@terra.es>
11107
11108 * w32select.c: Include composite.h
11109
11110 * w16select.c: Likewise.
11111
111122002-06-24 Kenichi Handa <handa@etl.go.jp>
11113
11114 * callproc.c (Fcall_process): If code detection is necessary,
11115 call detect_coding directly here.
11116
11117 * coding.c (detect_eol): Preserve coding->cmp_data.
11118
11119 * w16select.c (Fw16_get_clipboard_data):
11120 * w32fns.c (w32_to_x_font):
11121 * w32select.c (Fw32_get_clipboard_data):
11122 * xselect.c (selection_data_to_lisp_data):
11123 * xterm.c (XTread_socket): Disable composition handling.
11124
111252002-06-24 Stefan Monnier <monnier@cs.yale.edu>
11126
11127 * print.c (temp_output_buffer_setup): Kill all local variables.
11128
111292002-06-22 Stefan Monnier <monnier@cs.yale.edu>
11130
11131 * lread.c (Fread): Remove redundant and imprecise declaration.
11132
11133 * xfns.c (check_x_display_info): Use check_x_frame.
11134
11135 * .gdbinit (xprintsym): Use the new `xname' field.
11136 (xsymbol): Use it.
11137
111382002-06-22 Jason Rumney <jasonr@gnu.org>
11139
11140 * w32fns.c (file_dialog_callback): New function.
11141 (Fx_file_dialog): Allow selecting directories as well as files.
11142
111432002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11144
11145 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
f63fd14e 11146 OpenBSD. Add support for mipseb-*-netbsd* machines.
048addec
JD
11147
111482002-06-17 Andrew Choi <akochoi@shaw.ca>
11149
11150 * macterm.c (mac_scroll_area): Set foreground and backcolor to
11151 black and white before scrolling. Restore frame background and
11152 foreground color after scrolling.
11153 (do_window_update): Call XClearWindow before calling expose_frame.
11154 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
11155 FRAME_FOREGROUND_PIXEL of frame.
11156
11157 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
11158 test Mac command key as <ALT> key.
11159
111602002-06-17 Stefan Monnier <monnier@cs.yale.edu>
11161
11162 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
11163
11164 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
11165 Lookup keys in function-key-map immediately so that key-translation-map
11166 can be applied earlier.
11167 Remove function_key_possible and key_translation_possible, replaced
11168 by checking `keytran_start < t'.
11169
11170 * .gdbinit (xsymbol): Use the new `xname' field.
11171
111722002-06-17 Andrew Choi <akochoi@shaw.ca>
11173
11174 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
11175 test Mac command key as <ALT> key.
11176
11177 * mac.c (do_applescript): Call initialize_applescript if necessary
11178 when first called. Dispose of result_desc only when there is no error.
11179 (Fdo_applescript): Use %d format specifier instead of %ld.
11180
111812002-06-16 Andrew Choi <akochoi@shaw.ca>
11182
11183 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
11184 of FrontWindow for cases keyDown and autoKey.
11185
11186 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
11187 Vdefault_fontset to Monaco with mac-roman coding.
11188
11189 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
11190 init_process before and after inclusion of Carbon/Carbon.h, resp.
11191
11192 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
11193 cursor_gc.
11194 (add_font_name_table_entry): New function.
11195 (init_font_name_table): Use add_font_name_table_entry; add italic,
11196 bold, and bold-italic entries for truetype fonts.
11197
11198 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
11199 for Mac too.
11200 (try_font_list) [MAC_OS]: If no font matches given registry, try
11201 fonts with any registry matching face_family.
11202 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
11203
11204 * s/darwin.h: If autoconf detects the Ncurses library, define
11205 LIBS_TERMCAP to -lncurses to use it.
11206
112072002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
11208
11209 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
11210
112112002-06-15 Richard M. Stallman <rms@gnu.org>
11212
11213 * window.c (Fset_window_configuration): Explicitly preserve
11214 the point value that new_current_buffer had at the start.
11215
112162002-06-14 Juanma Barranquero <lektu@terra.es>
11217
11218 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
11219 Fix typos.
11220
112212002-06-14 Kim F. Storm <storm@cua.dk>
11222
11223 * insdel.c (insert_1_both, insert_from_string_1)
11224 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
11225 insert happened in the end_unchanged region. Otherwise, the
11226 redisplay may be confused and duplicate the last line in the
11227 buffer [seen after save-buffer when require-final-newline==t].
11228
112292002-06-13 Jason Rumney <jasonr@gnu.org>
11230
11231 * w32.c (init_environment): Remove EMACSLOCKDIR.
11232 (stat): Swap _S_IFDIR and _S_IFREG.
11233
112342002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11235
11236 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
11237 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
11238 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
11239 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
11240 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
11241 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
11242 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
11243 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
11244 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
11245 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
11246 SELECTION_REQUEST_EVENT, selection_clear_event to
11247 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
11248 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
11249 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
11250 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
11251 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
11252 no_event to NO_EVENT.
11253
112542002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11255
11256 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
11257
112582002-06-12 Stefan Monnier <monnier@cs.yale.edu>
11259
11260 * intervals.c (textget): Don't forget to `return'.
11261 (lookup_char_property): Use XCAR/XCDR.
11262
112632002-06-12 Juanma Barranquero <lektu@terra.es>
11264
11265 * xdisp.c (Fformat_mode_line): Fix typo.
11266
112672002-06-12 Kim F. Storm <storm@cua.dk>
11268
11269 * xdisp.c (Fformat_mode_line): New function.
11270 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
11271 (store_frame_title_char, store_frame_title): Use unconditionally.
11272 (init_xdisp): Defsubr Fformat_mode_line.
11273 Initialize frame_title_buf etc. unconditionally.
11274
112752002-06-11 Stefan Monnier <monnier@cs.yale.edu>
11276
11277 * keyboard.c (read_key_sequence):
11278 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
11279 things through those maps after downcasing events.
11280 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
11281 applies after function-key-map.
11282 Make sure that keytran can be done in the middle in the sequence.
11283 Be careful not to throw away events past the one we downcase.
11284
11285 * lread.c (read_integer): Remove unused var `tem'.
11286 (read1): Fix int/Lisp_Object mixup.
11287
11288 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
11289
112902002-06-11 Richard M. Stallman <rms@gnu.org>
11291
11292 * keyboard.c (readable_events): Ignore any number of
11293 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
11294
112952002-06-09 Miles Bader <miles@gnu.org>
11296
11297 * xfaces.c (Ftty_supports_face_attributes_p): New function.
11298 (parse_rgb_list, tty_lookup_color): New functions.
11299 (tty_defined_color): Use `tty_lookup_color' to do all the work.
11300 (color_distance, Fcolor_distance): New functions.
11301 (TTY_SAME_COLOR_THRESHOLD): New macro.
11302 (Qtty_color_standard_values): New variable.
11303 (syms_of_xfaces): Initialize new vars & functions.
11304
113052002-06-08 Colin Walters <walters@verbum.org>
11306
11307 * textprop.c (Vchar_property_alias_alist): New variable.
11308 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
11309
11310 * intervals.c (lookup_char_property): New function for looking up
11311 overlay and text properties, created from textget.
11312 (textget): Use it.
11313
11314 * intervals.h (lookup_char_property): Declare.
11315 (Vchar_property_alias_alist): Declare.
11316
11317 * buffer.c (Foverlay_get): Use lookup_char_property.
11318
113192002-06-07 Sam Steingold <sds@gnu.org>
11320
11321 * xselect.c (lisp_data_to_selection_data): Fix last change:
11322 *data_ret is not a Lisp string, while unibyte_string is.
11323
113242002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
11325
11326 * xselect.c (lisp_data_to_selection_data): Fix last change:
11327 set size_ret.
11328
113292002-06-07 Andreas Schwab <schwab@suse.de>
11330
11331 * m/amdx86-64.h: New file.
11332
113332002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
11334
11335 * fns.c (Fstring_make_unibyte): Doc fix.
11336
11337 * xselect.c (lisp_data_to_selection_data): If the requested type
11338 is STRING, call string_make_unibyte to encode the selected text
11339 as a string.
11340
11341 * window.c (Fset_window_hscroll): Doc fix.
11342
113432002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11344
11345 * fileio.c (choose_write_coding_system):
11346 Call select-safe-coding-system properly.
11347
113482002-06-03 Richard M. Stallman <rms@gnu.org>
11349
11350 * xdisp.c (message_with_string): Error if STRING is not a string.
11351
11352 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
11353
11354 * fileio.c (choose_write_coding_system): Pass FILE arg to
11355 Vselect_safe_coding_system_function.
11356
113572002-06-03 Ken Raeburn <raeburn@gnu.org>
11358
11359 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
11360
113612002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
11362
11363 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
11364 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
11365 * keymap.c (describe_command): Likewise.
11366 * minibuf.c (read_minibuf): Likewise.
11367
11368 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
11369 Cast `current_column' return value to int.
11370 (back_to_previous_visible_line_start)
11371 (reseat_at_next_visible_line_start, next_element_from_buffer):
11372 Cast `indented_beyond_p' 3rd arg to float.
11373
11374 * indent.c (last_known_column): Now a float.
11375 (current_column_1, position_indentation, current_column)
11376 (string_display_width): Return float.
11377 (Fcurrent_column): Cast `current_column' return value to int.
11378 (Fcurrent_indentation): Cast `position_indentation' retval to int.
11379 (indented_beyond_p): Third arg now a float.
11380 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
11381
11382 * lisp.h (current_column): Now returns float.
11383 (indented_beyond_p): 3rd arg now a float.
11384
113852002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
11386
11387 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
11388 is Qcompound_text_with_extensions.
11389
11390 * xselect.c (lisp_data_to_selection_data): Always set selection
11391 type as string if x_encode_text returns streingp non-NULL.
11392
11393 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
11394
113952002-05-30 Richard M. Stallman <rms@gnu.org>
11396
11397 * window.c (Fset_window_configuration): Correct the handling
11398 of point in current buffer, to work with multiple windows.
11399
114002002-05-29 Colin Walters <walters@verbum.org>
11401
11402 * lread.c (Fread_from_string): Don't depend on order of evaluation
11403 for C function parameters.
11404
114052002-05-28 Richard M. Stallman <rms@gnu.org>
11406
11407 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
11408 way for blinked-off state and for a nonselected window.
11409
11410 * window.c (window_scroll_pixel_based): Don't call Fbolp;
11411 instead, see if the new start pos is at beginning of line.
11412
11413 * fileio.c (Fwrite_region): If START is a string, don't
11414 make any annotations.
11415
11416 * eval.c (syms_of_eval): Doc fix.
11417
114182002-05-28 Colin Walters <walters@debian.org>
11419
11420 * emacs.c (USAGE1): Add --no-splash.
11421 (standard_args): Ditto.
11422
114232002-05-28 Colin Walters <walters@gnu.org>
11424
11425 * lread.c (readchar_count): New variable.
11426 (readchar): Increment it.
11427 (unreadchar): Decrement it.
11428 (read_multibyte): Decrement it.
11429 (Vread_with_symbol_positions): New variable.
11430 (Vread_symbol_positions_list): New variable.
11431 (read_internal_start): New function, created from Fread and
11432 Fread_from_string. Handle Vread_symbol_positions_list and
11433 Vread_with_symbol_positions.
11434 (readevalloop, Fread, Fread_from_string): Use it.
11435 (read1): Use readchar_count to add symbol positions to
11436 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
11437 (syms_of_lread): DEFVAR_LISP and initialize them.
11438
11439 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
11440 (substitute_object_recurse, substitute_object_in_subtree)
11441 (substitute_in_interval): Prototype.
11442 (read_multibyte): Return c if it's less than zero.
11443
114442002-05-28 Kim F. Storm <storm@cua.dk>
11445
11446 * fileio.c (Fread_file_name_internal): Added brute-force
11447 speed up for using predicate file-directory-p.
11448
114492002-05-28 Kim F. Storm <storm@cua.dk>
11450
11451 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
11452 New variables.
11453 (syms_of_fileio): DEFVAR_LISP them.
11454 (read_file_name_cleanup): New unwind function.
11455 (Fread_file_name_internal): Only return completions satifying
11456 Vread_file_name_predicate. Temporarily unwind protect and rebind
11457 default-directory while checking completions against the predicate.
11458 (Fread_file_name): Added PREDICATE argument. Specbind it to
11459 Vread_file_name_predicate during completion.
11460 Call Vread_file_name_function to read the file name if non-nil.
11461
11462 * lisp.h (Fread_file_name): Now has 6 args.
11463
11464 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
11465 predicate for Fread_file_name when reading directory name.
11466 Supply Qnil for predicate in other calls to Fread_file_name.
11467
114682002-05-26 Miles Bader <miles@gnu.org>
11469
11470 * term.c (tty_capable_p): New function.
11471 * dispextern.h (tty_capable_p): New function declaration.
11472 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
11473 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
11474
114752002-05-23 Stefan Monnier <monnier@cs.yale.edu>
11476
11477 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
11478 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
11479 (Vwrite_region_annotate_functions): Docstring fix.
11480
114812002-05-23 Kim F. Storm <storm@cua.dk>
11482
11483 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
11484 phys_cursor's hpos is overwritten. This is still not completely
11485 correct, as it doesn't really make sense to use hpos at all to
11486 get the cursor glyph (as that is relative to the width of the
11487 characters on the line, which may have changed during the update).
11488
114892002-05-22 Jason Rumney <jasonr@gnu.org>
11490
11491 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
11492 Lisp_Object.
11493 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
11494 Use modified enumfont_t struct.
11495
11496 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
11497
11498 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
11499 Handle the `hbar' cursor type.
11500 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
11501
11502 * w32fns.c (Qhbar): New variable.
11503 (x_specified_cursor_type): Use it.
11504
115052002-05-21 Ken Raeburn <raeburn@gnu.org>
11506
11507 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
11508 now, when the address is needed.
11509
115102002-05-21 Colin Walters <walters@gnu.org>
11511
11512 * Makefile.in (shortlisp): Add font-core.el.
11513
115142002-05-20 Richard M. Stallman <rms@gnu.org>
11515
11516 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
11517
11518 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
11519 equivalent key bindings here.
11520
115212002-05-20 Ken Raeburn <raeburn@gnu.org>
11522
11523 Change symbol structure to contain a lisp object for the symbol
11524 name:
11525 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
11526 object field named "xname".
11527 (SYMBOL_NAME): New macro.
11528 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
11529 name field.
11530 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
11531 (mark_object, gc_sweep): Use symbol xname field and XSTRING
11532 instead of name field.
11533 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
11534 SYMBOL_NAME instead of XSYMBOL and name field.
11535 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
11536 instead of XSYMBOL and name field.
11537 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
11538 and SYMBOL_NAME instead of XSYMBOL and name field.
11539 * coding.c (Fread_coding_system, code_convert_region1)
11540 (code_convert_string1, code_convert_string_norecord)
11541 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
11542 XSYMBOL and name field.
11543 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
11544 (Fmake_variable_buffer_local, Fmake_local_variable)
11545 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
11546 of XSYMBOL and name field.
11547 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
11548 XSYMBOL and name field.
11549 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
11550 instead of XSYMBOL and name field.
11551 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
11552 XSYMBOL and name field.
11553 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
11554 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
11555 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
11556 instead of XSYMBOL and name field.
11557 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
11558 (parse_modifiers, apply_modifiers, Fevent_convert_list)
11559 (parse_solitary_modifier, Fexecute_extended_command):
11560 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
11561 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
11562 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
11563 of XSYMBOL and name field.
11564 (describe_command, describe_translation): Use SYMBOL_NAME and
11565 assignment instead of XSYMBOL and name field and XSETSTRING.
11566 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
11567 instead of XSYMBOL and name field.
11568 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
11569 name field and XSETSTRING.
11570 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
11571 of XSYMBOL and name field.
11572 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
11573 assignment instead of XSYMBOL and name field and XSETSTRING.
11574 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
11575 XSTRING instead of XSYMBOL and name field.
11576 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
11577 and XSTRING instead of XSYMBOL and name field.
11578 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
11579 and XSTRING instead of XSYMBOL and name field.
11580 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
11581 XSTRING instead of XSYMBOL and name field.
11582 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
11583 of XSYMBOL and name field.
11584 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
11585 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
11586
115872002-05-19 Ken Raeburn <raeburn@gnu.org>
11588
11589 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
11590 and XCDR real rvalues in most configurations.
11591
11592 * buffer.c (fix_overlays_in_range, fix_overlays_before):
11593 Don't take the address of the cdr part of a cons cell; instead, track
11594 the parent cell and call XSETCDR, or set the variable for the head
11595 of the list if we haven't started down the list yet.
11596
115972002-05-19 Richard M. Stallman <rms@gnu.org>
11598
11599 * doc.c (reread_doc_file): Don't ask for confirmation.
11600
116012002-05-18 Jason Rumney <jasonr@gnu.org>
11602
11603 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
11604 (xbm_load_image): Use it.
11605 (xbm_load): Ditto.
11606 (xbm_read_bitmap_data): Reverted to xfns.c version.
11607 From David Ponce <david@dponce.com>.
11608
116092002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
11610
11611 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
11612 2.02 and later.
11613
116142002-05-16 Juanma Barranquero <lektu@terra.es>
11615
11616 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
11617
116182002-05-15 Stefan Monnier <monnier@cs.yale.edu>
11619
11620 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
11621 meaningful test.
11622 (read_char_minibuf_menu_prompt): Fix typo.
11623
116242002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
11625
11626 * eval.c (Fcommandp): Doc fix.
11627
116282002-05-13 Stefan Monnier <monnier@cs.yale.edu>
11629
11630 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
11631 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
11632 (Fset_keymap_parent): Gcpro a bit more.
11633 (access_keymap): Gcpro around meta_map call and around the main loop.
11634 (get_keyelt): Gcpro when following indirect references.
11635 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
11636 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
11637 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
11638 Remove useless ad-hoc remap code.
11639
116402002-05-13 Richard M. Stallman <rms@gnu.org>
11641
11642 * search.c (search_buffer): Give up boyer moore search if inverse
11643 translation change charset_base.
11644
116452002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
11646
11647 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
11648 characters is carried over from the previous block of text, adjust
11649 coding->produced to account for the extra character.
11650
116512002-05-11 Andreas Schwab <schwab@suse.de>
11652
11653 * coding.c (intersection): Keep the elements of the returned list
11654 in the same order as in the first list.
11655
116562002-05-11 Kim F. Storm <storm@cua.dk>
11657
11658 * keymap.c (current_minor_maps): Fixed resizing of cmm_maps;
11659 only update cmm_size if realloc actually succeeds.
11660 Testing with initial size of 2 elements revealed that using
11661 realloc on GNU/Linux would cause a random trap in xmalloc
11662 later on, so I rewrote the code to use malloc/bcopy/free instead
11663 of realloc.
11664
116652002-05-10 Jason Rumney <jasonr@gnu.org>
11666
11667 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
11668
116692002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
11670
11671 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
11672 parens, to ensure correct evaluation order.
11673
116742002-05-10 Kim F. Storm <storm@cua.dk>
11675
11676 * keymap.c (Vemulation_mode_map_alists): New variable.
11677 (syms_of_keymap): DEFVAR_LISP it.
11678 (current_minor_maps): Process keymap alists in that list before
11679 minor-mode-overriding-map-alist and minor-mode-map-alist.
11680
116812002-05-09 Richard M. Stallman <rms@gnu.org>
11682
11683 * search.c (Freplace_match): Doc fix.
11684
116852002-05-09 Kim F. Storm <storm@cua.dk>
11686
11687 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
11688 Enlarge cursor rectangle drawn around image with non-zero relief.
11689
11690 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
11691 Enlarge cursor rectangle drawn around image with non-zero relief.
11692
11693 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
11694 Enlarge cursor rectangle drawn around image with non-zero relief.
11695
116962002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
11697
11698 * xselect.c (lisp_data_to_selection_data): Don't set selection
11699 type if comes from the Lisp object's car. If the selection
11700 contains a pure ASCII text, always return QSTRING as its type.
11701
117022002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11703
11704 * mac.c (mac-cut-function): Doc fix.
11705
117062002-05-05 Richard M. Stallman <rms@gnu.org>
11707
11708 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
11709
117102002-05-04 Jason Rumney <jasonr@gnu.org>
11711
11712 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
11713 for event-click-count.
11714
11715 * process.c (init_process): Only add server subfeature if we can
11716 use non-blocking I/O.
11717
117182002-05-04 Andrew Choi <akochoi@shaw.ca>
11719
11720 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
11721 repeatedly.
11722
117232002-05-03 Jason Rumney <jasonr@gnu.org>
11724
11725 * process.c (Fmake_network_process): Only support server sockets
11726 when we can make them non-blocking.
11727
11728 * s/ms-w32.h (HAVE_SELECT): Define.
11729
11730 * w32.h (FILE_NDELAY): New flag.
11731
11732 * w32.c (sys_getpeername, fcntl): New functions.
11733 (_sys_read_ahead): Temporarily block on non-blocking sockets.
11734
11735 * w32proc.c: include sys/file.h.
11736
117372002-05-03 Colin Walters <walters@verbum.org>
11738
11739 * callproc.c (Vgame_score_directory): Renamed to
11740 Vshared_game_score_directory.
11741
117422002-04-30 Richard M. Stallman <rms@gnu.org>
11743
11744 * s/gnu.h [emacs]: Include stdio.h.
11745 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
11746
11747 * eval.c (do_autoload): Error if called while preparing to dump.
11748
11749 * fns.c (Frequire): Error if need to load while preparing to dump.
11750
117512002-04-28 Colin Walters <walters@verbum.org>
11752
11753 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
11754 Default to "~/.emacs.d/games".
11755
117562002-04-29 Stefan Monnier <monnier@cs.yale.edu>
11757
11758 * lread.c (openp): Change arg exec_only to predicate.
11759 (build_load_history): Use XCAR/XCDR.
11760 (Flocate_file_internal): New fun.
11761 (syms_of_lread): Defsubr it.
11762 (Fload): Update call to openp.
11763
11764 * lisp.h (openp): Update prototype.
11765
11766 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
11767 * w32proc.c (sys_spawnve):
11768 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
11769 * w32.c (check_windows_init_file):
11770 * sound.c (Fplay_sound_internal):
11771 * process.c (Fstart_process):
11772 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
11773 * mac.c (run_mac_command):
11774 * emacs.c (init_cmdargs):
11775 * callproc.c (Fcall_process): Update call to openp.
11776
11777 * textprop.c (remove_properties): Don't use XCAR without CONSP.
11778
11779 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
11780
117812002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11782
11783 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
11784 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
11785
117862002-04-28 Richard M. Stallman <rms@gnu.org>
11787
11788 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
11789
11790 * eval.c (Fcommandp): New arg for_call_interactively.
11791 * lisp.h (Fcommandp): Declare new arg.
11792
117932002-04-28 Jason Rumney <jasonr@gnu.org>
11794
11795 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
11796
11797 * w32.c (stat, fstat): Use file index information to generate
11798 inodes for directories where available.
11799
118002002-04-26 Andrew Choi <akochoi@shaw.ca>
11801
11802 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
11803 [HAVE_CARBON]: Include Mac object files.
11804
11805 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
11806 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
11807 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
11808 MAC_OSX, and MAC_OS instead of macintosh.
11809
11810 * editfns.c [MAC_OS8]: Include stdio.h.
11811
11812 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
11813
11814 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
11815 Apple Monaco.
11816
11817 * process.c: Declare QCfamily and QCfilter as extern.
11818 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
11819 calling select.
11820
11821 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
11822
11823 * tparam.c [MAC_OSX]: Don't define BC and UP.
11824
11825 * config.in [HAVE_CARBON]: Add.
11826
11827 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
11828 Move here from mac/src and mac/inc.
11829
11830 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
11831
118322002-04-26 Gerd Moellmann <gerd@gnu.org>
11833
11834 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
11835 Compute phys_cursor_width from the x position returned
11836 by x_draw_glyhs, which is cheaper.
11837 (x_display_and_set_cursor): Compute the buffer-local value
11838 of `cursor-in-non-selected-windows' only when needed.
11839
118402002-04-25 Gerd Moellmann <gerd@gnu.org>
11841
11842 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
11843 cursor on a stretch glyph has a width that depends on
11844 x_stretch_cursor_p.
11845
118462002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11847
11848 * abbrev.c (abbrev-start-location): Doc fix.
11849
11850 * indent.c (Fvertical_motion): Fix last change.
11851
118522002-04-25 Gerd Moellmann <gerd@gnu.org>
11853
11854 * indent.c (Fvertical_motion): Move to the start of the line
11855 containing PT before moving up or down.
11856
118572002-04-24 Gerd Moellmann <gerd@gnu.org>
11858
11859 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
11860 case of writing a whole row, more or less analogous to the case of
11861 writing only parts of a row.
11862
11863 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
11864 0 for NO_CURSOR.
11865
11866 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
11867
118682002-04-23 Colin Walters <walters@verbum.org>
11869
11870 * buffer.c (syms_of_buffer): Doc fix.
11871
118722002-04-23 Gerd Moellmann <gerd@gnu.org>
11873
11874 * xterm.c (notice_overwritten_cursor): Handle the special case
11875 of the cursor being in the first blank non-text line at the
11876 end of a window.
11877
11878 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
11879 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
11880 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
11881 bar cursors only, to make phys_cursor_width contain what its name
11882 suggests.
11883 (notice_overwritten_cursor): Consider the cursor image erased if
11884 the output area intersects the cursor image in y-direction.
11885
118862002-04-23 Simon Marshall <simon@gnu.org>
11887
11888 * xfns.c (x_set_mouse_color): Change default for cross_cursor
11889 to XC_hand2.
11890
118912002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11892
11893 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
11894
118952002-04-22 Kim F. Storm <storm@cua.dk>
11896
11897 * textprop.c (remove_properties): Fixed trap for malformed plist.
11898
118992002-04-22 Richard M. Stallman <rms@gnu.org>
11900
11901 * cmds.c (Fend_of_line): Handle intangible text in mid line.
11902
11903 * window.c (make_window): Initialize height_fixed_p,
11904 last_cursor_off_p, and p->cursor_off_p slots.
11905
119062002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11907
11908 * fns.c (use-dialog-box): Doc fix.
11909
119102002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11911
11912 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
11913 variables `row', `i' and `area'.
11914 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
11915 toolkit library.
11916
119172002-04-19 Stefan Monnier <monnier@cs.yale.edu>
11918
11919 * xfaces.c (clear_font_table): Don't free the default font of
11920 a frame even if it's on another display.
11921 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
11922 that could be Qt.
11923
119242002-04-19 Juanma Barranquero <lektu@terra.es>
11925
11926 * indent.c (Fmove_to_column): Remove unused local variable
11927 `next_boundary_byte'.
11928 (current_column_1): Likewise.
11929
119302002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
11931
11932 * msdos.c (Qhbar): New variable.
11933 (syms_of_msdos): Intern and staticpro it.
11934 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
11935 cursor type.
11936
119372002-04-19 Dave Lambert <dlambert@acm.org>
11938
11939 Theses change implement an underscore-like (`hbar') cursor.
11940
11941 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
11942
11943 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
11944 Handle the `hbar' cursor type.
11945 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
11946
11947 * xfns.c (Qhbar): New variable.
11948 (syms_of_xfns): Intern and staticpro it.
11949 (x_specified_cursor_type): Handle `hbar' cursor.
11950
11951 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
11952 not defined.
11953
119542002-04-18 Richard M. Stallman <rms@gnu.org>
11955
11956 * textprop.c (remove_properties): New arg LIST allows scanning
11957 either a list or a plist.
11958 (interval_has_some_properties_list): New function, like
11959 interval_has_some_properties using list instead of plist.
11960 All callers changed.
11961 (Fremove_list_of_text_properties): New function.
11962 (syms_of_textprop): Defsubr it.
11963
119642002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
11965
11966 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
11967
119682002-04-17 Juanma Barranquero <lektu@terra.es>
11969
11970 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
11971
119722002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
11973
11974 * window.c (coordinates_in_window): Don't report on margin area
11975 if its width is zero.
11976
119772002-04-16 Jason Rumney <jasonr@gnu.org>
11978
11979 * w32fns.c (Fx_file_dialog): Decode file name before using.
11980
11981 * w32term.c (construct_drag_n_drop): Likewise.
11982
119832002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
11984
11985 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
11986 store load-history in pure space.
11987
11988 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
11989
119902002-04-16 Stefan Monnier <monnier@cs.yale.edu>
11991
11992 * xterm.c (Qlatin_1, Qutf_8): New vars.
11993 (syms_of_xterm): Initialize them.
11994 (XTread_socket): Eliminate incorrect optimization that tried to avoid
11995 decoding the output of X*LookupString.
11996 Always use latin-1 to decode the output of XLookupString.
11997 Try Xutf8LookupString if XmbLookupString failed.
11998
11999 * region-cache.c (new_region_cache): Use BEG.
12000
120012002-04-16 Gerd Moellmann <gerd@gnu.org>
12002
12003 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
12004 configuration files.
12005 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
12006 returns 0.
12007
120082002-04-15 Andreas Schwab <schwab@suse.de>
12009
12010 * config.in: Regenerated using autoheader.
12011
12012 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
12013 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
12014 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
12015 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
12016 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
12017 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
12018 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
12019 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
12020 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
12021 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
12022 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
12023 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
12024 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
12025 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
12026 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
12027 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
12028 STACK_DIRECTION, now set by autoconf.
12029
120302002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12031
12032 * dispnew.c (marginal_area_string): Sort arguments.
12033
12034 * dispextern.h (marginal_area_string): Add prototype.
12035
120362002-04-13 Richard M. Stallman <rms@gnu.org>
12037
12038 * fileio.c (Finsert_file_contents):
12039 Don't call temp_output_buffer_setup--do just part, by hand.
12040
12041 * coding.c (run_pre_post_conversion_on_str):
12042 Don't call temp_output_buffer_setup--do just part, by hand.
12043
12044 * keyboard.c (command_loop_1): Don't call start_hourglass
12045 or cancel_hourglass when executing a macro.
12046
12047 * marker.c (count_markers): New function.
12048
12049 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
12050 grow without limit. Move recently used elements to the front.
12051
120522002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
12053
12054 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
12055
120562002-04-12 Gerd Moellmann <gerd@gnu.org>
12057
12058 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
12059 rows marginal areas.
12060 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
12061 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
12062
12063 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
12064
120652002-04-12 Dave Love <fx@gnu.org>
12066
12067 * dispnew.c (marginal_area_string): New.
12068
12069 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
12070 (Qleft_margin, Qright_margin): Declare.
12071 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
12072
12073 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
12074 note_mode_line_highlight and extended.
12075
12076 * keyboard.c (Qleft_margin, Qright_margin): Declare.
12077 (make_lispy_event): Deal with mouse events in margins.
12078
120792002-04-12 Stefan Monnier <monnier@cs.yale.edu>
12080
12081 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
12082
12083 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
12084 than deactivating the mark if tmm is set to `lambda'.
12085 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
12086 Use a single event for HELP_EVENT.
12087 (Fexecute_extended_command): Save last_point_position.
12088
120892002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12090
12091 * lisp.h (Fpropertize): Add prototype.
12092
12093 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
12094
120952002-04-10 Colin Walters <walters@verbum.org>
12096
12097 * config.in: Add HAVE_SHARED_GAME_DIR.
12098
12099 * callproc.c: (Vgame_score_directory): New variable.
12100 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
12101
121022002-04-10 Richard M. Stallman <rms@gnu.org>
12103
12104 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
12105
121062002-04-09 Stefan Monnier <monnier@cs.yale.edu>
12107
12108 * minibuf.c (read_minibuf): Use empty_string.
12109 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
12110 Short-circuit the search as soon as it "failed".
12111 (Fall_completions): Allow lambda forms and lists of strings for alist.
12112 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
12113 when require_match is nil.
12114 (Ftest_completion): Rename from `test_completion' and export to elisp.
12115 Call the predicate also when alist is a list.
12116 Obey Vcompletion_regexp_list.
12117 (do_completion, Fminibuffer_complete_and_exit): Use it.
12118 (Fassoc_string): Rename from `assoc_for_completion'.
12119 Allow list of strings as well and export to elisp.
12120
121212002-04-08 Stefan Monnier <monnier@cs.yale.edu>
12122
12123 * puresize.h (BASE_PURESIZE): Increase to 900KB.
12124
121252002-04-08 Juanma Barranquero <lektu@terra.es>
12126
12127 * w32.c (sys_accept): Don't hide variable `s'.
12128
121292002-04-05 Gerd Moellmann <gerd@gnu.org>
12130
12131 * callint.c (Fcall_interactively): Use INTEGERP instead of
12132 NUMBERP for checking Vhistory_length.
12133
121342002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12135
12136 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
12137 Doc fix to reflect it.
12138
121392002-04-04 Richard M. Stallman <rms@gnu.org>
12140
12141 * xdisp.c (display_mode_element): New arg RISKY.
12142 Disregard text props found or specified within a variable
12143 that isn't marked risky-local-variable.
12144 (Qrisky_local_variable): New variable.
12145 (syms_of_xdisp): Init and staticpro it.
12146
121472002-04-04 Stefan Monnier <monnier@cs.yale.edu>
12148
12149 * undo.c (record_point): New fun.
12150 (record_delete, record_insert): Use it.
12151
121522002-04-03 Juanma Barranquero <lektu@terra.es>
12153
12154 * doc.c (Fdocumentation): Add missing parentheses.
12155 (Fdocumentation_property): Likewise.
12156
121572002-04-03 Stefan Monnier <monnier@cs.yale.edu>
12158
12159 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
12160 data is 0, just return nil.
12161
121622002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
12163
12164 * msdos.c (syms_of_msdos): Fix last change with
12165 mouse_autoselect_window.
12166
121672002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12168
12169 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
12170 mouse_autoselect_window.
12171
121722002-04-02 Stefan Monnier <monnier@cs.yale.edu>
12173
12174 * keyboard.c (make_lispy_event): Handle unknown keysyms together
12175 with system-specific keysyms. Use it also for unknown function keys.
12176
12177 * doc.c (reread_doc_file): Return whether reload was attempted.
12178 (Fdocumentation, Fdocumentation_property): Don't try to reload
12179 if the doc is 0 and only ask once.
12180
12181 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
12182
121832002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
12184
12185 * keyboard.c (read_char): If the event was Qselect_window,
12186 restore timer_idleness_start_time to its previous value.
12187
12188 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
12189
121902002-04-01 Stefan Monnier <monnier@cs.yale.edu>
12191
12192 * region-cache.c (new_region_cache): Use BEG.
12193
12194 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
12195 Use BEG and BEG_BYTE.
12196
12197 * doc.c (get_doc_string): Return nil if the location is wrong.
12198 (reread_doc_file): New fun.
12199 (Fdocumentation, Fdocumentation_property):
12200 Call it if get_doc_string fails.
12201 (Fsnarf_documentation): Make it work for a dumped Emacs.
12202
12203 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
12204 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
12205
12206 * charset.c (Fstring): Allow 0 arguments.
12207
12208 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
12209
12210 * process.c (DATAGRAM_CONN_P, list_processes_1)
12211 (Fprocess_datagram_address, Fset_process_datagram_address)
12212 (Fset_network_process_options, server_accept_connection):
12213 Fix some int/Lisp_Object confusions (thank you union types).
12214
122152002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12216
12217 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
12218
12219 * w32term.c: Likewise.
12220 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
12221
12222 * keyboard.c (Qselect_window): New symbol.
12223 (head_table): Use it.
12224 (keys_of_keyboard): Bound select-window event to handle-select-window.
12225 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
12226
12227 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
12228 (last_window): New variable.
12229 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
12230 (note_mouse_movement): Remove reimplemented code in #if 0.
12231 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
12232 Emacs windows.
12233
12234 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
12235
122362002-03-31 Gerd Moellmann <gerd@gnu.org>
12237
12238 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
12239 Callers changed.
12240
122412002-03-30 Richard M. Stallman <rms@gnu.org>
12242
12243 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
12244 loop whenever it stops making progress.
12245
12246 * widget.c (set_frame_size): Don't call change_frame_size.
12247
122482002-03-30 Gerd Moellmann <gerd@gnu.org>
12249
12250 * dispnew.c (direct_output_for_insert):
12251 Call mark_window_display_accurate.
12252
122532002-03-29 Jason Rumney <jasonr@gnu.org>
12254
12255 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
12256
122572002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
12258
12259 * Makefile.in (lread.o): Depend on coding.h.
12260
12261 * lread.c (openp, Fload): Encode the file name before passing it
12262 to `stat', `access', and `emacs_open'.
12263 (openp): GCPRO the encoded file name. Don't recompute Lisp
12264 strings unnecessarily.
12265
122662002-03-29 Kim F. Storm <storm@cua.dk>
12267
12268 * fns.c (Flax_plist_put): Doc fix.
12269
122702002-03-28 Miles Bader <miles@gnu.org>
12271
12272 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
12273
122742002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12275
12276 * process.c (set-network-process-options): Add usage.
12277 (make-network-process): Doc fix.
12278
122792002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
12280
12281 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
12282
122832002-03-26 Richard M. Stallman <rms@gnu.org>
12284
12285 * fns.c (Fsubstring_no_properties): New function.
12286 (Flax_plist_get, Flax_plist_put): New functions.
12287 (syms_of_fns): defsubr them.
12288
12289 * xdisp.c (update_menu_bar): Test only update_mode_lines;
12290 don't test or alter w->update_mode_line.
12291
12292 * window.c (Fdisplay_buffer): Doc fix.
12293
122942002-03-24 Richard M. Stallman <rms@gnu.org>
12295
12296 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
12297
122982002-03-24 Gerd Moellmann <gerd@gnu.org>
12299
12300 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
12301 (Fdefmacro): Handle `(declare ...)'.
12302 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
12303 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
12304
123052002-03-24 Jason Rumney <jasonr@gnu.org>
12306
12307 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
12308 (xbm_file_p): Add prototypes.
12309 (xbm_format, xbm_image_p): Sync with xfns.c.
12310 (reflect_byte): New function.
12311 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
12312 (xbm_load_image): Create bitmaps with a depth of 1.
12313 (init_xfns): Enable XBM images.
12314
123152002-03-23 Jason Rumney <jasonr@gnu.org>
12316
12317 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
12318 correctly. Do not pass up_modifier to keyboard buffer.
12319
12320 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
12321
123222002-03-22 Stefan Monnier <monnier@cs.yale.edu>
12323
12324 * Makefile.in (bootstrapclean): New target.
12325 (bootstrap-temacs, bootstrap-doc): Remove.
12326 (bootstrap-emacs): Use a bog-standard `temacs'.
12327 Don't bother to build a DOC file.
12328
12329 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
12330
12331 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
12332 in temacs even if !CANNOT_DUMP.
12333 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
12334
12335 * alloc.c (check_pure_size): Only output a warning.
12336
123372002-03-22 Jason Rumney <jasonr@gnu.org>
12338
12339 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
12340 supported.
12341
12342 * w32term.c (zv_bits): Declare as short, for word alignment.
12343 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
12344 (syms_of_w32term): Define x-use-underline-position-properties.
12345
12346 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
12347 (clear_image_cache): Block input, fix logic, clear matrices in
12348 all frames that share this cache.
12349
123502002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
12351
12352 * emacs.c (main): Update the Copyright year in the blurb printed
12353 by "emacs --version".
12354
12355 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
12356
12357 * xterm.c (XTread_socket): If XK_ISO_Lock and
12358 XK_ISO_Last_Group_Lock are defined, handle keysyms between
12359 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
12360
123612002-03-21 Kim F. Storm <storm@cua.dk>
12362
12363 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
12364 menu-bar bindings in keymap and local-map properties _are_ used.
12365 But try keymap property first in accordance with 2002-01-03 patch.
12366 Added comment describing why this is not always reliable.
12367 (tool_bar_items): Ditto for tool-bar.
12368
123692002-03-21 Jason Rumney <jasonr@gnu.org>
12370
12371 * w32fns.c (x_clear_image_1): Disable color table code.
12372
123732002-03-21 Kim F. Storm <storm@cua.dk>
12374
12375 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
12376 removed the wrong version of the DEFUN macro; fixed it.
12377
12378 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
12379 Fmember rather than Fmemq).
12380 (Fprovide): Check that subfeatures is a list.
12381
12382 * process.c (QCfeature, QCdatagram): Removed variables.
12383 (QCtype, Qdatagram): New variables.
12384 (network_process_featurep): Removed function.
12385 (Fmake_network_process): Removed :feature check.
12386 Use :type 'datagram instead of :datagram t to create a datagram
12387 socket. This allows us to add other connection types (e.g. raw
12388 sockets) later in a consistent manner.
12389 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
12390 supported subfeatures for feature make-network-process.
12391 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
12392 Intern and staticpro QCtype and Qdatagram.
12393 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
12394
12395 * xfns.c: (QCtype): Remove duplicate declaration and
12396 initialization (is now declared in process.c).
12397
12398 * w32fns.c: (QCtype): Remove duplicate declaration and
12399 initialization (is now declared in process.c).
12400
124012002-03-21 Richard M. Stallman <rms@gnu.org>
12402
12403 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
12404 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
12405 when jumping to `fail' to avoid undoing reg changes in the
12406 last iteration of the loop.
12407 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
12408
12409 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
12410 Depend on process.h.
12411
124122002-03-20 Jason Rumney <jasonr@gnu.org>
12413
12414 Most of the following changes are still conditional on HAVE_IMAGES
12415 which is not set by default on Windows.
12416
12417 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
12418
12419 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
12420 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
12421 (four_corners_best, x_clear_image_1, x_clear_image)
12422 (x_alloc_image_color, postprocess_image)
12423 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
12424 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
12425 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
12426
12427 * w32gui.h (struct XImage): Define.
12428
12429 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
12430 extract mouse co-ordinates.
12431
124322002-03-20 Jason Rumney <jasonr@gnu.org>
12433
12434 * w32.c (init_winsock): Dynamically load new server and UDP
12435 socket functions.
12436 (socket_to_fd): New function.
12437 (sys_socket): Use it.
12438 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
12439 (sys_recvfrom, sys_sendto): New wrapper functions.
12440
12441 * process.c (QCfamily, QCfilter): Remove duplicate declaration
12442 and initialization.
12443
12444 * makefile.w32-in (LIBS): Remove $(WSOCK32).
12445
124462002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
12447
12448 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
12449 Don't use "sun" as a variable, it's a predefined constant on Sun
12450 machines.
12451
124522002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12453
12454 * bytecode.c (Fbyte_code): Revert last change.
12455
124562002-03-19 Kim F. Storm <storm@cua.dk>
12457
12458 * makefile.w32-in (LIBS): Add $(WSOCK32).
12459 From David Ponce <dponce@voila.fr>.
12460
124612002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12462
12463 * process.c (wait_reading_process_input): Move variables `pname'
12464 and `pnamelen' down where they are used.
12465
12466 * bytecode.c (Fbyte_code): Discard unused computed value to
12467 prevent gcc warning.
12468
12469 * lisp.h (Fplist_member): Add prototype.
12470
124712002-03-18 Kim F. Storm <storm@cua.dk>
12472
12473 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
12474 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
12475
12476 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
12477 Remove explicit GNU_LINUX settings for datagram support.
12478
124792002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12480
12481 * process.c (Fmake_network_process): Remove unused variable `sa'.
12482 Doc fix. Add usage:.
12483 (set_socket_options): Remove unused variables `optnum' and `opttype'.
12484
124852002-03-17 Richard M. Stallman <rms@gnu.org>
12486
12487 * xdisp.c (cursor_type_changed): New variable.
12488 (redisplay_internal): Redisplay all windows if cursor_type_changed.
12489 Clear it when clearing windows_or_buffers_changed.
12490 (try_cursor_movement, redisplay_window, try_window_id)
12491 (try_window_reusing_current_matrix): Test cursor_type_changed
12492 along with windows_or_buffers_changed.
12493
12494 * window.h (cursor_type_changed): New variable.
12495
12496 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
12497 not update_mode_lines, and always set it to 1.
12498
12499 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
12500 if no frames needed redrawing.
12501
125022002-03-17 Kim F. Storm <storm@cua.dk>
12503
12504 The following changes add support for network server processes,
12505 datagram connections, and local (unix) sockets.
12506
12507 * process.h (struct Lisp_Process): New member log.
12508 Doc fix: Member command used to indicate stopped network process.
12509 Doc fix: Member childp contains plist for network process.
12510 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
12511
12512 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
12513 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
12514 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
12515 New variables.
12516 (NETCONN1_P): New macro.
12517 (DATAGRAM_SOCKETS): New conditional symbol.
12518 (datagram_address): New array.
12519 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
12520 (status_message): Use concat3.
12521 (Fprocess_status): Add `listen' status to doc string. Return `stop'
12522 for a stopped network process.
12523 (Fset_process_buffer): Update contact plist for network process.
12524 (Fset_process_filter): Ditto. Don't enable input for stopped
12525 network processes. Server must listen, even if filter is t.
12526 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
12527 New functions.
12528 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
12529 (Fprocess_contact): Added KEY argument. Handle datagrams.
12530 (list_processes_1): Optionally show only processes with the query
12531 on exit flag set. Dynamically adjust column widths. Omit tty
12532 column if not needed. Report stopped network processes.
12533 Identify server and datagram network processes.
12534 (Flist_processes): New optional arg `query-only'.
12535 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
12536 (conv_lisp_to_sockaddr, set_socket_options)
12537 (network_process_featurep, unwind_request_sigio): New helper functions.
12538 (Fprocess_datagram_address, Fset_process_datagram_address):
12539 (Fset_network_process_options): New lisp functions.
12540 (Fopen_network_stream): Removed. Now defined in simple.el.
12541 (Fmake_network_process): New lisp function. Code is based on previous
12542 Fopen_network_stream, but heavily reworked with new property list based
12543 argument list, support for datagrams, server processes, and local
12544 sockets in addition to old client-only functionality.
12545 (server_accept_connection): New function.
12546 (wait_reading_process_input): Use it to handle incoming connects.
12547 Do not enable input on a new connection if process is stopped.
f63fd14e 12548 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
048addec
JD
12549 (send_process): Handle datagram sockets.
12550 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
12551 network process is indicated by setting command field to t .
12552 (Fprocess_send_eof): No-op if datagram connection.
12553 (Fstatus_notify): Don't read input for a stream server socket or a
12554 stopped network process.
12555 (init_process): Initialize datagram_address array.
12556 (syms_of_process): Intern and staticpro new variables, defsubr new
12557 functions.
12558
125592002-03-16 Jason Rumney <jasonr@gnu.org>
12560
12561 * w32fns.c (w32_to_all_x_charsets): Return correct type in
12562 startup case.
12563
125642002-03-16 Richard M. Stallman <rms@gnu.org>
12565
12566 * xdisp.c (redisplay_internal, redisplay_windows):
12567 Use list_of_error to call internal_condition_case_1.
12568 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
12569 so as to catch all errors with no possibility of debugger redisplay.
12570 (list_of_error): New variable.
12571 (syms_of_xdisp): Init and staticpro it.
12572
12573 * print.c (print_object): Delete `\ ' from printed rep of frame.
12574
125752002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
12576
12577 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
12578 until its implementation is fixed.
12579
125802002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12581
12582 * xfns.c (png_load): Remove unused variable `gamma_str'.
12583
125842002-03-14 Richard M. Stallman <rms@gnu.org>
12585
12586 * xfns.c (x_real_positions): Handle failure in XQueryTree.
12587
125882002-03-14 Miles Bader <miles@gnu.org>
12589
12590 * intervals.c (adjust_for_invis_intang): New function.
12591 (set_point_both): Use `adjust_for_invis_intang' to do most of the
12592 work for dealing with invisible+intangible regions. Do so before
12593 and after both forward and backward movements, to handle both
12594 front-sticky and rear-sticky cases.
12595 * textprop.c (text_property_stickiness): Function moved here from
12596 `editfns.c'.
12597 * intervals.h (text_property_stickiness): New declaration.
12598 * editfns.c (char_property_eq): Function removed.
12599 (text_property_stickiness): Function moved to `textprop.c'.
12600
126012002-03-13 Jason Rumney <jasonr@gnu.org>
12602
12603 * config.in: Add STRFTIME_NO_POSIX2.
12604
12605 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
12606 and %OX when underlying strftime does not.
12607
126082002-03-13 Stefan Monnier <monnier@cs.yale.edu>
12609
12610 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
12611 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
12612 line) to avoid annoying flicker.
12613 (xm_scroll_callback): Get rid of the now unnecessary kludge.
12614 (XTread_socket): Mark it static.
12615
12616 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
12617
126182002-03-13 Kim F. Storm <storm@cua.dk>
12619
12620 * puresize.h (BASE_PURESIZE): Increase to 775000.
12621
126222002-03-12 Juanma Barranquero <lektu@terra.es>
12623
12624 * editfns.c (syms_of_editfns): Fix typo.
12625
126262002-03-12 Gerd Moellmann <gerd@gnu.org>
12627
12628 * xsmfns.c: Include stdio.h because termhooks.h needs it.
12629 Include termopt.h for interrupt_input.
12630
126312002-03-11 Andreas Schwab <schwab@suse.de>
12632
12633 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
12634
126352002-03-11 Gerd Moellmann <gerd@gnu.org>
12636
12637 * xterm.c (note_mouse_movement): Put code for
12638 x_autoselect_window_p in #if 0.
12639
12640 * lread.c (Fload): Don't assume that message_with_string uses the
12641 string it is given like a C string.
12642
126432002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12644
12645 * xterm.h (x_session_check_input, x_session_initialize): Declared.
12646
12647 * xterm.c: (XTread_socket): Add call to x_session_check_input and
12648 x_session_have_connection.
12649 (x_initialize): Add call to x_session_initialize.
12650
12651 * termhooks.h (enum event_kind): Add save_session_event.
12652
12653 * keyboard.c: Add Emacs event save_session_event.
12654
12655 * emacs.c (main): Add call to syms_of_xsmfns.
12656
12657 * lisp.h: Declare syms_of_xsmfns as extern.
12658
12659 * config.in: Add HAVE_X_SM.
12660
12661 * Makefile.in (LIBXT): Add -lSM -lICE
12662 if HAVE_X_SM and not USE_X_TOOLKIT.
12663 (XOBJ): New file xsmfns.c added.
12664
12665 * xsmfns.c: New file for X session management.
12666
126672002-03-09 Jason Rumney <jasonr@gnu.org>
12668
12669 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
12670 read-only when setting modified time.
12671
126722002-03-08 Gerd Moellmann <gerd@gnu.org>
12673
12674 * xdisp.c (move_it_vertically_backward): At the end of the function,
12675 when moving forward by lines, treat terminal frames specially.
12676
12677 * keyboard.c (echo_char): Make sure to add a separator between
12678 keys even if echo_dash hasn't been called.
12679
12680 * xdisp.c: Use new string macros.
12681 (update_echo_area): Pass number of bytes to message3 instead of
12682 number of chars.
12683 (set_message_1): Don't access a string's size_byte directly.
12684 (decode_mode_spec_coding): Use number of bytes of eoltype string
12685 instead number of chars.
12686
12687 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
12688
126892002-03-08 Juanma Barranquero <lektu@terra.es>
12690
12691 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
12692 24-bit.
12693
126942002-03-06 Jason Rumney <jasonr@gnu.org>
12695
12696 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
12697
126982002-03-06 Gerd Moellmann <gerd@gnu.org>
12699
12700 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
12701 (cancel_echoing, echo_length, echo_truncate): Changed to
12702 work with new kboard definition.
12703 (echo_now): Use message3_nolog instead of message2_nolog.
12704
12705 * alloc.c (mark_kboards): Mark echo_string.
12706
12707 * keyboard.h (ECHOBUFSIZE): Removed.
12708 (struct kboard): Member echoptr removed, member echobuf renamed
12709 to echo_string.
12710
12711 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
12712 message3 instead of message2 to display the message using STRING's
12713 text properties.
12714
127152002-03-05 Andreas Schwab <schwab@suse.de>
12716
12717 * xdisp.c (hscroll_margin): Change to EMACS_INT.
12718
127192002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
12720
12721 * frame.c (default-frame-alist): Explain that setting it doesn't
12722 affect existing frames.
12723
127242002-03-05 Stefan Monnier <monnier@cs.yale.edu>
12725
12726 * indent.c (skip_invisible): Fix my brain fart.
12727
12728 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
12729
127302002-03-04 Stefan Monnier <monnier@cs.yale.edu>
12731
12732 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
12733 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
12734 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
12735 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
12736 and variables to use EMACS_INT instead of just int.
12737
12738 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
12739
127402002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
12741
12742 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
12743 environment, pass it down with corrected value.
12744
127452002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12746
12747 * lread.c (read_filtered_event): Do not call start_hourglass
12748 before returning.
12749
127502002-03-04 Juanma Barranquero <lektu@terra.es>
12751
12752 * w32term.c (x_display_and_set_cursor): Fix typo.
12753
127542002-03-03 Richard M. Stallman <rms@gnu.org>
12755
12756 * fileio.c (Fmake_temp_name): Doc fix.
12757
127582002-03-03 Gary Wong <gtw@gnu.org>
12759
12760 * termcap.c [!emacs]: Replace ospeed for building standalone
12761 libtermcap, for binary compatibility.
12762
12763 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
12764
127652002-03-03 Richard M. Stallman <rms@gnu.org>
12766
12767 * xrdb.c (file_p): Rename arg `path' to `filename'.
12768
12769 * abbrev.c (Fexpand_abbrev): Increment plist as use count
12770 only if it is an integer.
12771
12772 * xfns.c (png_load): Set screen_gamma based on f->gamma.
12773 If png_get_sRGB gives an answer, call png_set_gamma
12774 using the default image gamma value.
12775
12776 * lread.c (read1): When reading from a file, default string to
12777 multibyte only if it has some multibyte characters.
12778
12779 * print.c (print_object): Output multibyte chars 128...255
12780 using \x even if ! print_escape_multibyte.
12781
12782 * xdisp.c (display_mode_element): Move the places where
12783 bytepos, charpos, this, and lisp_string are set.
12784 Use lisp_string to set bytepos.
12785
12786 * xdisp.c (redisplay_internal):
12787 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
12788
12789 * xdisp.c (display_mode_element): Merge properties specified with
12790 :propertize onto those that come with the string.
12791
127922002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
12793
12794 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
12795 automatic-hscrolling. Users changed.
12796 <hscroll-margin>: Renamed from automatic-hscroll-margin.
12797 Users changed.
12798 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
12799
128002002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
12801
12802 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
12803
128042002-03-02 Kim F. Storm <storm@cua.dk>
12805
12806 * window.c (Fminibuffer_selected_window): New function.
12807 (syms_of_window): Defsubr it.
12808
128092002-03-01 Kim F. Storm <storm@cua.dk>
12810
12811 * window.h (struct window): New member phys_cursor_width.
12812
12813 * window.c (make_window, replace_window): Init phys_cursor_width.
12814
12815 * xterm.c (x_display_and_set_cursor): Blink box cursor using
12816 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
12817
12818 * w32term.c (x_display_and_set_cursor): Blink box cursor using
12819 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
12820
12821 * lisp.h (GCPRO6): New macro.
12822
12823 * process.c (Fopen_network_stream): Use GCPRO6.
12824
128252002-03-01 Kim F. Storm <storm@cua.dk>
12826
12827 * process.c (Qconnect, Qfailed): New variables.
12828 (syms_of_process): Intern and staticpro them.
12829 (Fprocess_status): Document connect and failed return values.
12830 [NON_BLOCKING_CONNECT]: New conditional.
12831 (connect_wait_mask, num_pending_connects): New variables.
12832 (status_message): Convert Qfailed status.
12833 (Fopen_network_stream): Added support for non-blocking connect.
12834 New optional args: filter, sentinel, non_blocking. Doc updated.
12835 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
12836 (deactivate_process): Handle pending non-blocking connect.
12837 (wait_reading_process_input): Poll for status of non-blocking
12838 connects. Exec sentinel directly when connect succeeds.
12839 (status_notify): Don't read process output if not yet connected.
12840
128412002-02-28 Kim F. Storm <storm@cua.dk>
12842
12843 * window.c: (minibuf_selected_window): Renamed from
12844 Vminibuf_selected_window. Users changed.
12845 (syms_of_window): Staticpro it.
12846
128472002-02-26 Kim F. Storm <storm@cua.dk>
12848
12849 The following changes add a new Vminibuf_selected_window variable
12850 which is similar to Vminibuf_scroll_window, but which is only set
12851 on entry to the minibuffer (from a non-minibuffer window):
12852
12853 * window.c: (Vminibuf_selected_window): New variable.
12854 (struct save_window_data): New member minibuf_selected_window.
12855 (Fset_window_configuration): Restore Vminibuf_selected_window.
12856 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
12857 Set minibuf_scroll_window member to nil if minibuf_level is 0.
12858 (compare_window_configurations): Compare minibuf_selected_window.
12859
12860 * window.h: (Vminibuf_selected_window): Declare extern.
12861
12862 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
12863 entry to minibuffer or on entry from a non-minibuffer window.
12864
12865 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
12866 Vminibuf_selected_window instead of Vminibuf_scroll_window.
12867
12868 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
12869 instead of Vminibuf_scroll_window when deciding in which window
12870 the region should be highlighted. Consequently, the region remains
12871 highlighteded even when a completion buffer is also displayed.
12872
128732002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
12874
12875 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
12876
12877 * xselect.c (Qcompound_text_with_extensions): Renamed from
12878 Qcompound_text_no_extensions.
12879 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
12880
128812002-02-26 Juanma Barranquero <lektu@terra.es>
12882
12883 * w32proc.c (syms_of_ntproc): Doc fix.
12884
128852002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12886
12887 * intervals.h: Include "dispextern.h" unconditionally.
12888
128892002-02-24 Jason Rumney <jasonr@gnu.org>
12890
12891 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
12892 and disp-table.elc.
12893 (lisp): Add emacs-lisp/backquote.elc.
12894
128952002-02-24 Kim F. Storm <storm@cua.dk>
12896
12897 * keymap.c (Flookup_key): Fixed problem in 2001-12-28 patch:
12898 The validation of the event type was too strict as it didn't
12899 allow string events; buffer names are used in bindings for
12900 menu-bar-select-buffer (see `menu-bar-update-buffers').
12901
129022002-02-23 Kim F. Storm <storm@cua.dk>
12903
12904 The following changes rework my patch of 2002-02-06 which
12905 added command remapping by entering the commands directly into
12906 the keymaps. Now, command remapping uses an explicit `remap'
12907 prefix in the keymaps, i.e. [remap COMMAND].
12908
12909 * keymap.c (Qremap, remap_command_vector): New variables.
12910 (is_command_symbol): Removed function.
12911 (Fdefine_key): No longer accept a symbol for KEY.
12912 Added validation of [remap COMMAND] argument for KEY.
12913 The DEF is no longer required to be a symbol when remapping a command.
12914 (Fremap_command): New function to remap command through keymaps.
12915 (Flookup_key): Perform command remapping initiated by
12916 Fremap_command directly for speed.
12917 (Fkey_binding): Use Fremap_command for command remapping.
12918 (where_is_internal): Handle new command remapping representation.
12919 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
12920 staticpro them. Defsubr Fremap_command.
12921
12922 * keymap.h (Fremap_command): Declare extern.
12923 (is_command_symbol): Remove extern.
12924
12925 * keyboard.c (command_loop_1): Use Fremap_command for command
12926 remapping; now try command remapping for all symbols.
12927
129282002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
12929
12930 * coding.h (run_pre_post_conversion_on_str): Add prototype.
12931
129322002-02-23 Jason Rumney <jasonr@gnu.org>
12933
12934 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
12935 on the string before encoding it.
12936 (Fw32_get_clipboard_data): Run post-read-conversion on the string
12937 after decoding it.
12938
12939 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
12940
129412002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12942
12943 * w32term.c (enter_timestamp): Remove unused static variable to
12944 prevent warning.
12945
12946 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
12947
129482002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
12949
12950 * w16select.c (Fw16_get_clipboard_data): Fix last change.
12951
12952 * xselect.c (selection_data_to_lisp_data): Fix last change.
12953
129542002-02-22 Jason Rumney <jasonr@gnu.org>
12955
12956 * w32term.h (struct w32_output): New member menu_command_in_progress.
12957
12958 * w32menu.c (menubar_selection_callback): Free the menu and
12959 clear the menu_command_in_progress flag.
12960
12961 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
12962 (menu_free_timer): New variable.
12963 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
12964 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
12965 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
12966 menu command is in progress.
12967 <WM_COMMAND>: Set the menu_command_in_progress flag.
12968 Kill any menu_free_timer that is running.
12969
12970 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
12971 Call ExtTextOutA rather than ExtTextOut.
12972
129732002-02-22 Eli Zaretskii <eliz@gnu.org>
12974
12975 * puresize.h (BASE_PURESIZE): Increase to 755000.
12976
129772002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
12978
12979 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
12980 on the string before encoding it.
12981 (Fw16_get_clipboard_data): Run post-read-conversion on the string
12982 after decoding it.
12983
129842002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
12985
12986 Support for ICCCM Extended Segments in X selections:
12987
12988 * xselect.c <Qcompound_text_no_extensions>: New variable.
12989 (syms_of_xselect): Intern and staticpro it.
12990 (selection_data_to_lisp_data): Run post-read-conversion on decoded
12991 selection text.
12992 (lisp_data_to_selection_data): If next-selection-coding-system is
12993 compound-text-no-extensions, set the type of selection to be
12994 compound-text.
12995
12996 * xterm.h (x_encode_text): Update prototype.
12997
12998 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
12999 callers changed. If SELECTIONP is non-zero, run the
13000 pre-write-conversion function before encoding the selection text.
13001
130022002-02-21 Kim F. Storm <storm@cua.dk>
13003
13004 * frame.c (syms_of_frame): Change mouse-highlight default to t.
13005
13006 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
13007 Correct composing of language-change event.
13008
130092002-02-20 Kim F. Storm <storm@cua.dk>
13010
13011 * keyboard.c (menu_bar_items): Don't include keymap or local-map
13012 bindings at PT when building menu (the menu is not updated often
13013 enough for this to work reliable).
13014 (tool_bar_items): Likewise.
13015 (current_active_maps): Removed unused (and buggy) function.
13016
130172002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13018
13019 * xfns.c (gif_load): Use correct width and height for GIF images.
13020
130212002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
13022
13023 * floatfns.c (Fatan): Accept an optional second arg and call
13024 atan2 if passed 2 args.
13025
130262002-02-18 Jason Rumney <jasonr@gnu.org>
13027
13028 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
13029
130302002-02-17 Jason Rumney <jasonr@gnu.org>
13031
13032 * w32term.c (x_autoselect_window_p): New variable.
13033 (syms_of_w32term): DEFVAR_BOOL and initialize it.
13034 (note_mouse_movement): Use it.
13035
13036 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
13037
13038 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
13039
13040 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
13041 New variables.
13042 (syms_of_w32fns): Intern and staticpro them.
13043 (x_frame_parms) <"fullscreen">: New parameter.
13044 (x_fullscreen_move, x_set_fullscreen): New functions.
13045 (x_set_frame_parameters): Support Qfullscreen.
13046 (x_real_positions): Save x/y_pixels_diff frame params.
13047 (x_figure_window_size): Support full-screen frames.
13048 (Fx_create_frame): Default the fullscreen parameter.
13049
13050 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
13051 (x_fullscreen_adjust): New functions.
13052 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
13053 fullscreen. Call x_check_fullscreen_move, and set the
13054 want_fullscreen member of output_data.w32
13055 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
13056
13057 * w32term.h: New enum for FULLSCREEN_* constants.
13058 (struct w32_output): New members want_fullscreen, x_pixels_diff,
13059 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
13060 (x-fullscreen-adjust): New prototype.
13061
130622002-02-17 Kim F. Storm <storm@cua.dk>
13063
13064 * frame.c: (Vmouse_highlight): New variable.
13065 (syms_of_frame): DEFVAR_LISP it.
13066
13067 * frame.h: (Vmouse_highlight): Declare extern.
8a8e19a3 13068
048addec 13069 * xterm.h (struct x_display_info): Add mouse_face_hidden.
8a8e19a3 13070
048addec
JD
13071 * xterm.c (disable_mouse_highlight): Removed variable.
13072 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
13073 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
13074 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
13075 and on after keyboard input.
13076 (x_term_init): Initialize mouse_face_hidden.
8a8e19a3 13077
048addec 13078 * msdos.h (struct display_info): Add mouse_face_hidden.
8a8e19a3 13079
048addec
JD
13080 * msdos.c (disable_mouse_highlight): Removed variable.
13081 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
13082 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
13083 (internal_terminal_init): Initialize mouse_face_hidden.
13084 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
13085 and on after keyboard input.
4f1b1854 13086
048addec 13087 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
4f1b1854 13088
048addec
JD
13089 * w32term.c (disable_mouse_highlight): Removed variable.
13090 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
13091 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
13092 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
13093 and on after keyboard input.
13094 (w32_initialize_display_info): Initialize mouse_face_hidden.
4f1b1854 13095
048addec 130962002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
4f1b1854 13097
048addec
JD
13098 * msdos.c (last_mouse_window): New variable.
13099 (dos_rawgetc): Fix last change--if the mouse is in the same window
13100 as recorded in last_mouse_window, don't select this window.
5cb6905d 13101
048addec 13102 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
5cb6905d 13103
048addec
JD
13104 * msdos.c (x_autoselect_window_p): New variable.
13105 (syms_of_msdos): Defvar it.
13106 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
13107 which the last mouse movement occured, unless it is already selected.
437dfb9f 13108
048addec
JD
13109 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
13110 New variables.
13111 (syms_of_xdisp): DEVFAR them.
13112 (hscroll_window_tree): Use automatic_hscroll_margin and
13113 Vautomatic_hscroll_step to compute the amount of window scrolling.
437dfb9f 13114
048addec 131152002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9f696a00 13116
048addec
JD
13117 * xterm.c (x-autoselect-window): New variable.
13118 (note_mouse_movement): Use it.
9f696a00 13119
048addec 13120 * keyboard.c: Do not include "systime.h" twice.
d57966d7 13121
048addec 131222002-02-15 Andreas Schwab <schwab@suse.de>
d57966d7 13123
bfa02563 13124 * puresize.h (PURESIZE_RATIO): Increase to 9/5.
d57966d7 13125
048addec 13126 * alloc.c (NSTATICS): Increase to 1280.
74779f52 13127
048addec 131282002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
74779f52 13129
048addec 13130 * alloc.c (NSTATICS): Bump to 1026.
a474d59c 13131
048addec
JD
13132 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
13133 (Vx_super_keysym): New variables.
13134 (syms_of_xterm): DEFVAR_LISP them.
13135 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
13136 variables to determine which keys to use for the various modifiers.
a474d59c 13137
048addec 131382002-02-13 Kim F. Storm <storm@cua.dk>
fbb70ad9 13139
048addec
JD
13140 * window.c: (Vmode_line_in_non_selected_windows): Removed.
13141 (mode_line_in_non_selected_windows): New variable.
13142 (syms_of_window): DEFVAR_BOOL it.
fbb70ad9 13143
048addec
JD
13144 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
13145 Use mode_line_in_non_selected_windows.
13146 (mode_line_in_non_selected_windows): Declare extern.
13147 (Vmode_line_in_non_selected_windows): Removed extern.
2d10309f 13148
048addec 131492002-02-13 Richard M. Stallman <rms@gnu.org>
2d10309f 13150
048addec
JD
13151 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
13152 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
13153 (Fclear_this_command_keys): Doc fixes.
2d10309f 13154
048addec
JD
13155 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
13156 (update_face_from_frame_parameter): Increment face_change_count
13157 and windows_or_buffers_changed to force redisplay using changed faces.
7f2cddf3 13158
048addec
JD
13159 * xdisp.c (QCpropertize): New variable.
13160 (mode_line_proptrans_alist): New variable.
13161 (display_mode_element): New arg PROPS; all calls changed.
13162 Implement this, for strings.
13163 Handle literal output of strings by sharing the
13164 main-line code for strings, using local var `literal'.
13165 Handle :propertize feature.
13166 (syms_of_xdisp): Initialze and staticpro QCpropertize and
13167 mode_line_proptrans_alist.
0b1e6b54 13168
048addec 131692002-02-11 Kim F. Storm <storm@cua.dk>
7f2cddf3 13170
048addec
JD
13171 * window.c: (Vmode_line_in_non_selected_windows): New variable.
13172 (syms_of_window): DEFVAR_LISP it.
7f2cddf3 13173
048addec
JD
13174 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
13175 (CURRENT_MODE_LINE_FACE_ID): Use it.
13176 (Vmode_line_in_non_selected_windows): Declare extern.
e17144de 13177
048addec
JD
13178 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
13179 to get mode line face.
e17144de 13180
048addec 131812002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 13182
048addec
JD
13183 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
13184 variables; cus-start.el doesn't need them anymore.
44368f8f 13185
048addec 131862002-02-09 Kim F. Storm <storm@cua.dk>
f884b6f4 13187
048addec
JD
13188 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
13189 reduction. This fixes a display problem where stray newlines were
13190 inserted in the window (corrected by C-l). Clarified code (IMHO).
6637c996 13191
048addec 131922002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 13193
048addec 13194 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
6637c996 13195
048addec 13196 * xdisp.c (display_mode_lines): Fix last change.
453c5510 13197
048addec 131982002-02-09 Jason Rumney <jasonr@gnu.org>
453c5510 13199
048addec
JD
13200 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
13201 match each other.
13202 (w32_load_system_font): Prevent Cleartype fonts from loading.
13203 (Fx_show_tip): Ensure tip frames are above other topmost windows.
d1d070e3 13204
048addec 132052002-02-09 Kim F. Storm <storm@cua.dk>
d1d070e3 13206
048addec
JD
13207 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
13208 (CURRENT_MODE_LINE_HEIGHT): Use it.
13209 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 13210
048addec
JD
13211 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
13212 (pos_visible_p, handle_face_prop): Likewise.
13213 (display_mode_lines): Likewise, but for the real selected window.
13214 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 13215
048addec
JD
13216 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
13217 in non-selected windows.
13218 (realize_basic_faces): Realize it.
13219 (syms_of_term): Intern and staticpro it.
308dd672 13220
048addec 132212002-02-08 Kim F. Storm <storm@cua.dk>
edde72f6 13222
048addec
JD
13223 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
13224 Changed mail addresses to emacs-devel@gnu.org.
308dd672 13225
048addec 132262002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
3c1e6b46 13227
048addec
JD
13228 * fileio.c (Fsubstitute_in_file_name): If the file name includes
13229 ~user, and there's no such user, don't discard everything before ~user.
03950b5b 13230
048addec 13231 * floatfns.c (Fround): Doc fix.
3c1e6b46 13232
048addec 132332002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c1e11810 13234
048addec 13235 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
c1e11810 13236
048addec 132372002-02-07 Stefan Monnier <monnier@cs.yale.edu>
1996baee 13238
048addec 13239 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
1996baee 13240
048addec 132412002-02-07 Kim F. Storm <storm@cua.dk>
0065bb74 13242
048addec
JD
13243 * keymap.c (where_is_internal): Only check whether definition is
13244 remapped if it fulfills is_command_symbol.
0065bb74 13245
048addec 132462002-02-07 Andreas Schwab <schwab@suse.de>
0065bb74 13247
048addec 13248 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
b5cb6072 13249
048addec 13250 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
b5cb6072 13251
048addec 132522002-02-06 Kim F. Storm <storm@cua.dk>
15fff01d 13253
048addec
JD
13254 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
13255 defining command remapping. Doc updated.
13256 (Flookup_key): Remap command through keymap if KEY is a symbol.
13257 (is_command_symbol): New function.
13258 (Fkey_binding): Use it. New optional argument NO-REMAP.
13259 Doc updated. Callers changed. Perform command remapping via
13260 recursive call unless that arg is non-nil.
13261 (where_is_internal): New argument no_remap. Callers changed.
13262 Call recursively to find original key bindings for a remapped
13263 comand unless that arg is non-nil.
13264 (Fwhere_is_internal): New optional argument NO-REMAP.
13265 Doc updated. Callers changed. Pass arg to where_is_internal.
0065bb74 13266
048addec
JD
13267 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
13268 (is_command_symbol): Added prototype.
0d8466cc 13269
048addec
JD
13270 * keyboard.c (Vthis_original_command): New variable.
13271 (syms_of_keyboard): DEFVAR_LISP it.
13272 (command_loop_1): Set it, and perform command remapping.
15fff01d 13273
048addec 132742002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2fae9111 13275
048addec 13276 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
2d6c1fc0 13277
048addec 132782002-02-06 Jason Rumney <jasonr@gnu.org>
07025a55 13279
048addec 13280 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
07025a55 13281
048addec 132822002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
07025a55 13283
048addec 13284 * charset.c (get_charset_id): Use if-else instead of ?:.
3a232704 13285
048addec 132862002-02-06 Richard M. Stallman <rms@gnu.org>
539e92ad 13287
048addec 13288 * filelock.c (S_ISLNK): Define if not defined.
3a232704 13289
048addec 132902002-02-03 Richard M. Stallman <rms@gnu.org>
0cb8bb48 13291
048addec 13292 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
539e92ad 13293
048addec
JD
13294 * lread.c (read1): Redesign strategy for force_multibyte and
13295 force_singlebyte. Now is_multibyte records whether read_buffer
13296 is multibyte. Encountering any multibyte character makes it so.
4e02881b 13297
048addec 132982002-02-02 Stefan Monnier <monnier@cs.yale.edu>
4e02881b 13299
048addec
JD
13300 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
13301 with the same sequence, map that sequence to f10 rather than f0.
1ab964d7 13302
048addec 133032002-02-03 Andreas Schwab <schwab@suse.de>
1ab964d7 13304
048addec
JD
13305 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
13306 latter never being defined on GNU/Linux.
749f499f 13307
048addec 133082002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
749f499f 13309
048addec
JD
13310 * xfaces.c (realize_default_face): Don't set the weight and slant of
13311 the default face to Qnormal, unless these attributes are unspecified.
b5d9aaba 13312
048addec 133132002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3a232704 13314
048addec
JD
13315 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
13316 Call cancel_hourglass unconditionally.
d0fd26dd 13317
048addec
JD
13318 * eval.c (Fsignal): Remove duplicated declaration of
13319 the variable `display_hourglass_p'.
b4c45162 13320
048addec 133212002-01-31 Richard M. Stallman <rms@gnu.org>
d0fd26dd 13322
048addec 13323 * editfns.c (region_limit): Nicer error message.
c95eaa61 13324
048addec
JD
13325 * coding.c (decode_composition_emacs_mule):
13326 Give up if NCOMPONENT gets too large to index `component'.
c95eaa61 13327
048addec
JD
13328 * callint.c (check_mark): New arg to specify clearer error message.
13329 Callers changed.
c95eaa61 13330
048addec 133312002-01-27 Richard M. Stallman <rms@gnu.org>
c95eaa61 13332
048addec 13333 * minibuf.c (Fcompleting_read): Doc fix.
c95eaa61 13334
048addec 133352002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c95eaa61 13336
048addec
JD
13337 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
13338 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
13339 Fix doc-strings.
c95eaa61 13340
048addec 133412002-01-26 Richard M. Stallman <rms@gnu.org>
c95eaa61 13342
048addec 13343 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
c95eaa61 13344
048addec
JD
13345 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
13346 and scroll_up_aggressively.
c95eaa61 13347
048addec 133482002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
31877e0a 13349
048addec 13350 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
31877e0a 13351
048addec 133522002-01-25 Stefan Monnier <monnier@cs.yale.edu>
e2c3786a 13353
048addec
JD
13354 * textprop.c (Fnext_property_change, Fnext_single_property_change)
13355 (Fprevious_property_change, Fprevious_single_property_change):
13356 Stay within the narrowed-buffer boundaries.
e2c3786a 13357
048addec 133582002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
c513fc03 13359
048addec
JD
13360 * term.c (Ftty_display_color_cells): New function.
13361 (syms_of_term): Defsubr it.
13362 (Ftty_display_color_cells, Ftty_display_color_p): Change the
13363 argument name to DISPLAY. Doc fix.
bf794306 13364
048addec
JD
13365 * dispextern.h: Add prototype for set_tty_color_mode and
13366 tty_setup_colors.
bf794306 13367
048addec 133682002-01-24 Jason Rumney <jasonr@gnu.org>
bf794306 13369
048addec
JD
13370 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
13371 If region left to draw is not what was expected, mark the frame as
13372 garbaged.
62582985 13373
048addec
JD
13374 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
13375 Combine the regions returned by BeginPaint and GetUpdateRect.
c513fc03 13376
048addec 133772002-01-23 Jason Rumney <jasonr@gnu.org>
3509a04c 13378
048addec
JD
13379 * w32term.c (x_update_window_begin): Only hide caret if
13380 w32_use_visible_system_caret is set.
13381 (x_update_window_end): Only show caret if
13382 w32_use_visible_system_caret is set.
13383 (syms_of_w32term): Handle SystemParametersInfo call failing.
3509a04c 13384
048addec 13385 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
3509a04c 13386
048addec 133872002-01-22 Richard M. Stallman <rms@gnu.org>
3509a04c 13388
048addec
JD
13389 * unexelf.c (unexec): Define n so as to cause compilation error
13390 for the code where people have often written n instead of nn.
1e9a6186 13391
048addec 13392 * .gdbinit (hookpost-run): Defined.
1e9a6186 13393
048addec 133942002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e4e34e31 13395
048addec 13396 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
e4e34e31 13397
048addec 133982002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4521d1fc 13399
048addec
JD
13400 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
13401 if fullscreen is being set.
7c75be36 13402
048addec 134032002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4521d1fc 13404
048addec
JD
13405 * minibuf.c (Fminibuffer_contents)
13406 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
13407 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
4521d1fc 13408
048addec 134092002-01-21 Richard M. Stallman <rms@gnu.org>
4521d1fc 13410
048addec 13411 * window.c (check_frame_size): Fix minimum height calculation.
93dec019 13412
048addec 134132002-01-20 Ken Raeburn <raeburn@gnu.org>
93dec019 13414
048addec
JD
13415 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
13416 height before comparison.
13417 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
905cc05a 13418
048addec 134192002-01-20 Jason Rumney <jasonr@gnu.org>
2ed06289 13420
048addec
JD
13421 * w32term.c (w32_system_caret_width): Remove.
13422 (w32_use_visible_system_caret): New user flag.
13423 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
13424 Windows reports a screen reader running.
13425 (x_update_window_begin): Hide the system caret.
13426 (x_update_window_end): Show the system caret.
13427 (x_display_and_set_cursor): Don't draw a cursor when
13428 w32_use_visible_system_caret is set. Do not adjust width.
0e79d667 13429
048addec
JD
13430 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
13431 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
13432 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
13433 the user requests it. Use system default width when creating.
13434 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
0e79d667 13435
048addec
JD
13436 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
13437 New window messages.
905cc05a 13438
048addec 134392002-01-20 Richard M. Stallman <rms@gnu.org>
82a7ab23 13440
048addec 13441 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
d75bec6a 13442
048addec 134432002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
52dcb476 13444
048addec 13445 * doprnt.c (doprnt1): Fix typos in error call.
82a7ab23 13446
048addec 134472002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
82a7ab23 13448
048addec 13449 * unexelf.c (unexec) [__sgi]: Support the .got sections.
82a7ab23 13450
048addec 134512002-01-20 Jason Rumney <jasonr@gnu.org>
4d0fa4f3 13452
048addec
JD
13453 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
13454 that Windows returns. If a double check fails, try to guess how
13455 ExtTextOut is going to act.
4d0fa4f3 13456
048addec
JD
13457 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
13458 in place of stricmp.
13459 (w32_list_synthesized_fonts): Removed.
13460 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
13461 (struct enumfont_t): New element; list.
13462 (enum_font_cb2): List all style and charset variations of a font.
13463 (Fw32_select_font): New optional argument; include_proportional.
13464 Exclude vertical fonts. Exclude proportional fonts unless
13465 include_proportional is non-nil.
13466 (w32_enable_synthesized_fonts): Change to a boolean.
13467 (Fw32_send_sys_command): Doc fix.
493faf20 13468
048addec 134692002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
493faf20 13470
048addec
JD
13471 * dispnew.c (update_frame): Move the variable `tem' to the block
13472 where it is used.
4971e491 13473
048addec 134742002-01-19 Jason Rumney <jasonr@gnu.org>
4971e491 13475
048addec
JD
13476 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
13477 call to face-set-after-frame-default.
4971e491 13478
048addec 134792002-01-18 Richard M. Stallman <rms@gnu.org>
d911a0fa 13480
048addec
JD
13481 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
13482 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
d911a0fa 13483
048addec 134842002-01-17 Richard M. Stallman <rms@gnu.org>
d911a0fa 13485
048addec
JD
13486 * window.c (enlarge_window): When exceeding size of parent,
13487 directly delete all the siblings instead of trying to resize it.
201c831a 13488
048addec 134892002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
201c831a 13490
048addec 13491 * term.c (set_tty_color_mode): Remove unused variable `tem'.
201c831a 13492
048addec 134932002-01-16 Henrik Enberg <henrik@enberg.org>
34e39c95 13494
048addec 13495 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
34e39c95 13496
048addec 134972002-01-16 Kim F. Storm <storm@cua.dk>
d77fbc16 13498
048addec
JD
13499 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
13500 is invisible. This can happen if cursor is on top line of a
13501 window, and we switch to a buffer with a header line.
d77fbc16 13502
048addec 13503 * w32term.c (x_erase_phys_cursor): Ditto.
61e3b944 13504
048addec 135052002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
61e3b944 13506
048addec
JD
13507 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
13508 `dont_resize' only when used.
61e3b944 13509
048addec 13510 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
70da46c3 13511
048addec 135122002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
70da46c3 13513
048addec
JD
13514 * xdisp.c (display_mode_element): When computing charpos, depend
13515 on multibyteness of elt, not the text in field.
8af01033 13516
048addec 135172002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8af01033 13518
048addec
JD
13519 * buffer.c (Fkill_all_local_variables):
13520 Increment `update_mode_lines' only once.
7363986a 13521
048addec 135222002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7363986a 13523
048addec
JD
13524 * lisp.h (adjust_after_replace_noundo)
13525 (Fupdate_coding_systems_internal): Add prototypes.
d9e6c4b1 13526
048addec 13527 * sound.c (Fplay_sound): Initialize header_size also for :data case.
d20fc48a 13528
048addec 135292002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
d9e6c4b1 13530
048addec
JD
13531 Support for the --color command-line argument and tty-color-mode
13532 frame parameter:
f1a85b89 13533
048addec
JD
13534 * term.c (tty_default_color_capabilities, tty_setup_colors)
13535 (set_tty_color_mode): New functions.
13536 (term_init): Call tty_default_color_capabilities.
13537 (Qtty_color_mode_alist): New variable.
13538 (syms_of_term): Intern and staticpro it.
f1a85b89 13539
048addec
JD
13540 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
13541 frames.
13542 (do_switch_frame): For termcap frames, switch the tty
13543 color mode as specified by the frame's parameters.
13544 (Qtty_color_mode): New variable.
13545 (syms_of_frame): Intern and staticpro it.
3a62677f 13546
048addec
JD
13547 * emacs.c (USAGE2): Add the --color option.
13548 (standard_args): Ditto.
72244db2 13549
048addec
JD
135502002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13551
13552 * xterm.h (struct x_output): New members want_fullscreen,
13553 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
13554 y_pixels_outer_diff.
13555 New enum for FULLSCREEN_* constants.
13556 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
13557 is NULL.
13558 (x_fullscreen_adjust): Add prototype.
3a62677f 13559
048addec
JD
13560 * emacs.c (USAGE2): Add the new full-screen arguments.
13561 (standard_args): Ditto.
3a62677f 13562
048addec
JD
13563 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
13564 New variables.
13565 (syms_of_xfns): Intern and staticpro them.
13566 (x_frame_parms) <"fullscreen">: New parameter.
13567 (x_fullscreen_move, x_set_fullscreen): New functions.
13568 (x_set_frame_parameters): Support for Qfullscreen.
13569 (x_real_positions): More accurate computation of the frame position.
13570 (x_figure_window_size): Support full-screen frames.
13571 (Fx_create_frame): Default the fullscreen parameter.
3a62677f 13572
048addec
JD
13573 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
13574 (XTread_socket) <Expose>: Call x_check_fullscreen.
13575 <ConfigureNotify>: Don't resize to fullscreen.
13576 Call x_check_fullscreen_move, and set the want_fullscreen member of
13577 output_data.x.
3a62677f 13578
048addec 135792002-01-13 Jason Rumney <jasonr@gnu.org>
9d113d9d 13580
048addec
JD
13581 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
13582 for mice with more than 3 buttons.
b8523839 13583
048addec
JD
13584 * w32term.c (parse_button): New parameter xbutton. Callers changed.
13585 (w32_read_socket): Handle new "XBUTTON" messages.
9464dea4 13586
048addec
JD
13587 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
13588 (syms_of_w32fns): DEFVAR_BOOL it.
13589 (w32_wnd_proc): Handle new "XBUTTON" messages.
9d113d9d 13590
048addec 135912002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
70ec1377 13592
048addec 13593 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
70ec1377 13594
048addec 135952002-01-13 Andreas Schwab <schwab@suse.de>
92f7dd37 13596
048addec 13597 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
92f7dd37 13598
048addec 135992002-01-12 Andreas Schwab <schwab@suse.de>
c93674bb 13600
048addec
JD
13601 * .gdbinit (xbuffer): Remove address operator since data is now a
13602 pointer.
c93674bb 13603
048addec 136042002-01-11 Richard M. Stallman <rms@gnu.org>
59b59892 13605
048addec 13606 * insdel.c (adjust_after_replace_noundo): New function.
59b59892 13607
048addec 13608 * coding.c (code_convert_region): Don't copy old text if undo disabled.
c6ea2775 13609
048addec 136102002-01-09 Jason Rumney <jasonr@gnu.org>
c6ea2775 13611
048addec
JD
13612 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
13613 when checking for multiple frames.
91175673 13614
048addec 136152002-01-08 Richard M. Stallman <rms@gnu.org>
91175673 13616
048addec
JD
13617 * window.c (delete_window): Rewrite the code for changing the
13618 selected window to handle the case where WINDOW is not a leaf.
91175673 13619
048addec 136202002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
e0fead5d 13621
048addec
JD
13622 * process.c (send_process): Set src_multibyte to 1 after the call
13623 top setup_coding_system, not before the call.
e0fead5d 13624
048addec 136252002-01-07 Jason Rumney <jasonr@gnu.org>
e0fead5d 13626
048addec
JD
13627 * xmenu.c (set_frame_menubar, xmenu_show):
13628 (xdialog_show): Initialize wv->help to Qnil.
c186cdb3 13629
048addec
JD
13630 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
13631 (w32_dialog_show): Initialize wv->help to Qnil.
c186cdb3 13632
048addec 136332002-01-06 Jason Rumney <jasonr@gnu.org>
c186cdb3 13634
048addec 13635 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
c186cdb3 13636
048addec 13637 * w32menu.c (w32_menu_display_help): Revert last change.
58cfce98 13638
048addec 13639 * xmenu.c (menu_highlight_callback): Revert last change.
58cfce98 13640
048addec 136412002-01-06 Andreas Schwab <schwab@suse.de>
62854fe2 13642
048addec
JD
13643 * insdel.c (make_gap_larger): Make sure buffer size does not
13644 overflow range of int.
62854fe2 13645
048addec 136462002-01-05 Jason Rumney <jasonr@gnu.org>
656f46bb 13647
048addec
JD
13648 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
13649 OVERLAPS_P.
656f46bb 13650
048addec 13651 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
656f46bb 13652
048addec
JD
13653 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
13654 to the left or to the right of the pointer, put it against
13655 the left screen edge.
13656 (x_frame_parms): Add missing braces around initializer.
036e218d 13657
048addec
JD
13658 * w32term.c (x_setup_relief_colors): Don't compute an image's
13659 background color if it doesn't have a Pixmap.
13660 (notice_overwritten_cursor): Don't depend on
13661 output_cursor and updated_area. Compare pixel coordinates with
13662 window's cursor pixel coordinates.
13663 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
13664 Call notice_overwritten_cursor with new arg list.
13665 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
13666 unconditionally.
13667 (x_draw_image_relief): Use predefined macro instead of
13668 constant when the value of `tool_bar_button_relief' is negative.
036e218d 13669
048addec 13670 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
7ddb2c16 13671
048addec 136722002-01-04 Richard M. Stallman <rms@gnu.org>
7ddb2c16 13673
048addec 13674 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
ace9b298 13675
048addec 136762002-01-03 Richard M. Stallman <rms@gnu.org>
90647b07 13677
048addec
JD
13678 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
13679 (Fkey_binding): Try the `keymap' property map first.
13680 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
13681 minor mode bindings.
90647b07 13682
048addec 136832002-01-03 Kim F. Storm <storm@cua.dk>
ace9b298 13684
048addec 13685 * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
ace9b298 13686
048addec 136872002-01-02 Richard M. Stallman <rms@gnu.org>
ace9b298 13688
048addec
JD
13689 * keyboard.c (read_key_sequence): Handle the keymap property
13690 before minor mode maps.
9fbc32aa 13691
048addec
JD
13692 * editfns.c (Fformat): Update thissize from field_width
13693 based on the actual width, in the string case.
036e218d 13694
048addec 136952002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fbc32aa 13696
048addec
JD
13697 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
13698 when used as truth value to prevent gcc warnings.
9fbc32aa 13699
048addec
JD
13700 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
13701 * w32proc.c: Include <config.h>.
9fbc32aa 13702
048addec 137032002-01-01 Andreas Schwab <schwab@suse.de>
9fbc32aa 13704
048addec
JD
13705 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
13706 not EMACS_INT, to make them compatible with DEFVAR_INT.
13707 * lisp.h (max_specpdl_size): Adjust declaration.
9fbc32aa 13708
048addec 137092002-01-01 Richard M. Stallman <rms@gnu.org>
9fbc32aa 13710
048addec
JD
13711 * print.c (print_object): Test print_escape_nonascii only for
13712 unibyte strings.
13713 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
13714 when outputting to a multibyte buffer.
9fbc32aa 13715
048addec 137162001-12-29 Richard M. Stallman <rms@gnu.org>
9fbc32aa 13717
048addec
JD
13718 * print.c (print_object): In multibyte string, use hex escapes.
13719 Use octal only for unibyte strings.
13720 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
0142178a 13721
048addec
JD
13722 * lread.c (read_escape): New arg BYTEREP for reporting whether
13723 escape forces unibyte or multibyte.
13724 (read1): When reading a string, take note of that info.
0142178a 13725
048addec 137262001-12-29 Ken Raeburn <raeburn@gnu.org>
d4824a5d 13727
048addec
JD
13728 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
13729 comparison to test lisp value returned by Fget.
d4824a5d 13730
048addec 137312001-12-29 Richard M. Stallman <rms@gnu.org>
b1356234 13732
048addec 13733 * lisp.h (max_specpdl_size): Add declaration.
b1356234 13734
048addec 13735 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
3ce081f5 13736
048addec
JD
13737 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
13738 Handle modifier bits. Correct typo in error message.
99e380ee 13739
048addec 137402001-12-28 Richard M. Stallman <rms@gnu.org>
3ce081f5 13741
048addec
JD
13742 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
13743 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
13744 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
13745 Update calls to Fdefine_abbrev.
13746 (write_abbrev): Update for changed data format.
13747 Don't list "system" abbrevs.
13748 (Fexpand_abbrev): Update use count with new data format.
13749 (describe_abbrev): Update for changed data format.
13750 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
66458f32 13751
048addec 13752 * config.in (HAVE_MBSINIT): Add #undef.
66458f32 13753
048addec 13754 * strftime.c (mbsinit): Define as no-op if not available.
66458f32 13755
048addec
JD
13756 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
13757 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
59a86c99 13758
048addec
JD
13759 * keymap.c (Flookup_key): Error message if key has wrong data type.
13760 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
13761 (exclude_key): New variable.
59a86c99 13762
048addec 137632001-12-28 Gerd Moellmann <gerd@gnu.org>
eb77a5f4 13764
048addec
JD
13765 * xterm.c (x_setup_relief_colors): Don't compute an image's
13766 background color if it doesn't have a Pixmap.
eb77a5f4 13767
048addec
JD
13768 * xterm.c (notice_overwritten_cursor): Don't depend on
13769 output_cursor and updated_area. Compare pixel coordinates with
13770 window's cursor pixel coordinates.
13771 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
13772 Call notice_overwritten_cursor with new arg list.
13773 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
13774 unconditionally.
eb77a5f4 13775
048addec
JD
13776 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
13777 height of the cursor line to the amount to scroll.
eb77a5f4 13778
048addec 137792001-12-27 Richard M. Stallman <rms@gnu.org>
bb313871 13780
048addec
JD
13781 * intervals.c (set_point_both): The position after an invisible,
13782 intangible character is not an acceptable stopping point.
bb313871 13783
048addec 137842001-12-27 Ken Raeburn <raeburn@gnu.org>
55b43a63 13785
048addec
JD
13786 * window.c (enlarge_window): In new preserve_before code, convert
13787 CURBEG from lisp object to integer before doing arithmetic.
6052529b 13788
048addec 137892001-12-27 Richard M. Stallman <rms@gnu.org>
3ce081f5 13790
048addec 13791 * bytecode.c (Fbyte_code): Undo previous change.
3ce081f5 13792
048addec 137932001-12-26 Kim F. Storm <storm@cua.dk>
3ce081f5 13794
048addec
JD
13795 * keyboard.c (record_char): Ignore duplicate help-echo events only
13796 separated by mouse-movement. When tracking mouse, only record
13797 first and last mouse-movement event in same window.
13798 Don't record mouse-movement events in keyboard macros.
3ce081f5 13799
048addec 138002001-12-25 Richard M. Stallman <rms@gnu.org>
55b43a63 13801
048addec
JD
13802 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
13803 (Fenlarge_window): New arg PRESERVE_BEFORE.
111ed14e 13804
048addec
JD
13805 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
13806 instead of Fstring_as_unibyte.
9fabb2f5 13807
048addec 138082001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fabb2f5 13809
048addec 13810 The following changes remove mocklisp support:
9fabb2f5 13811
048addec 13812 * mocklisp.h, mocklisp.c: Files removed.
111ed14e 13813
048addec
JD
13814 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
13815 `Qmocklisp' and `Qmocklisp_arguments'.
13816 Remove prototype of syms_of_mocklisp.
2fa0eedf 13817
048addec 13818 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
d1420435 13819
048addec
JD
13820 * callint.c: Do not include mocklisp.h.
13821 (Fcall_interactively): Do not test for mocklisp case.
2fa0eedf 13822
048addec
JD
13823 * eval.c: Remove variables `Qmocklisp_arguments',
13824 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
13825 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
13826 Do not test for mocklisp case.
13827 (Fwhile): Remove unused variable `tem'.
13828 (syms_of_eval): Remove variable `moclisp-arguments'.
ebcbef4e 13829
048addec 13830 * data.c (wrong_type_argument): Remove mocklisp case.
5c131048 13831
048addec 13832 * doc.c (Fdocumentation): Remove mocklisp case.
5c131048 13833
048addec 13834 * emacs.c (main): Do not call syms_of_mocklisp.
5c131048 13835
048addec 138362001-12-21 Richard M. Stallman <rms@gnu.org>
96d276c3 13837
048addec
JD
13838 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
13839 to the left or to the right of the pointer, put it against
13840 the left screen edge.
6108b49c 13841
048addec 138422001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
96d276c3 13843
048addec
JD
13844 * Makefile.in (distclean): Remove .gdbinit if we are building
13845 outside the source tree.
5eea19a4 13846
048addec 138472001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5eea19a4 13848
048addec 13849 * w32.c (emacs_root_dir): New function.
5eea19a4 13850
048addec 13851 * msdos.c (emacs_root_dir): New function.
5eea19a4 13852
048addec
JD
13853 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
13854 of the current drive as the fallback for default_directory.
438e57dd 13855
048addec
JD
13856 * dired.c (file_name_completion): Run the elements of
13857 completion-ignored-extensions through ENCODE_FILE.
438e57dd 13858
048addec
JD
13859 * lisp.h (scmp): Remove prototype, since it's now a static
13860 function private to dired.c.
c88e5347 13861
048addec 138622001-12-18 Richard M. Stallman <rms@gnu.org>
c88e5347 13863
048addec
JD
13864 * dired.c (scmp): Function moved from minibuf.c.
13865 Delete multibyte handling--used only on encoded strings.
59ce1461 13866
048addec 13867 * minibuf.c (scmp): Function moved to dired.c.
59ce1461 13868
048addec 13869 * fns.c (merge): Add QUIT call.
59ce1461 13870
048addec 138712001-12-18 Dave Love <fx@gnu.org>
8727d588 13872
048addec
JD
13873 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
13874 language/georgian.el.
8727d588 13875
048addec 138762001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
cc63037e 13877
048addec
JD
13878 * Makefile.in (lisp, shortlisp): Synchronize with changes to
13879 lisp/Makefile.in:DONTCOMPILE.
cc63037e 13880
048addec 138812001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
cc63037e 13882
048addec
JD
13883 * xdisp.c (window_box_height): Do not return negative values.
13884 From Gerd Moellmann <gerd@gnu.org>.
cc63037e 13885
048addec 13886 * keyboard.c (head_table): Add missing braces around initializer.
cc63037e 13887
048addec 13888 * term.c (keys): Likewise.
deece6f5 13889
048addec 13890 * xfns.c (x_frame_parms, visual_classes): Likewise.
deece6f5 13891
048addec 138922001-12-17 Sam Steingold <sds@gnu.org>
1b944d9c 13893
048addec
JD
13894 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
13895 patch (COMPOSING_P, not COMPOSING).
28ff4293 13896
048addec 138972001-12-17 Richard M. Stallman <rms@gnu.org>
a395ef6a 13898
048addec 13899 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
a395ef6a 13900
048addec
JD
13901 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
13902 before calling decode_coding.
9b46de40 13903
048addec 13904 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
9b46de40 13905
048addec
JD
13906 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
13907 instead of only for COMPOSITION_DISABLED.
9b46de40 13908
048addec 139092001-12-16 Richard M. Stallman <rms@gnu.org>
aff37336 13910
048addec 13911 * alloc.c (pure_alloc): After overflow, allocate just a small block.
aff37336 13912
048addec 13913 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
b9937f07 13914
048addec
JD
13915 * buffer.h (struct buffer): New field `display_error_modiff'.
13916 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
b9937f07 13917
048addec 13918 * window.c (Frecenter): Clear display_error_modiff field.
2cd23960 13919
048addec
JD
13920 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
13921 Call redisplay_window, but not if display_error_modiff field says no.
13922 (redisplay_window_error): New function.
13923 (displayed_buffer): New variable.
13924 (redisplay_internal, redisplay_windows): Call the new functions
13925 instead of redisplay_window directly.
2cd23960 13926
048addec 139272001-12-15 Richard M. Stallman <rms@gnu.org>
2cd23960 13928
048addec 13929 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
2cd23960 13930
048addec 139312001-12-14 Andrew Innes <andrewi@gnu.org>
a4184c1c 13932
048addec 13933 * makefile.w32-in (EMACSLOADPATH): Define.
f9711de4 13934 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
048addec 13935 (bootstrap-temacs): Remove dependency on bootstrap-clean.
a4184c1c 13936
048addec 139372001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
f6fa0866 13938
048addec
JD
13939 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
13940 parameter have a numeric value all the time.
f6fa0866 13941
048addec 13942 * w32fns.c (x_report_frame_params): Likewise.
f4ca4b00 13943
048addec 139442001-12-12 Richard M. Stallman <rms@gnu.org>
f4ca4b00 13945
048addec 13946 * fileio.c (Fwrite_region): Doc fix.
f4e25f94 13947
048addec
JD
13948 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
13949 (redisplay_internal): Call clear_image_cache only for window terminals.
f4e25f94 13950
048addec 139512001-12-12 Gerd Moellmann <gerd@gnu.org>
91c153e2 13952
048addec
JD
13953 * xdisp.c (move_it_vertically_backward): Change heuristic
13954 for the case that we didn't move far enough initially.
91c153e2 13955
048addec
JD
13956 * window.c (Frecenter): Simplify computation in the case of window
13957 system frames and ARG < 0; use window_box_height.
65b7d3e7 13958
048addec 139592001-12-11 Richard M. Stallman <rms@gnu.org>
65b7d3e7 13960
048addec
JD
13961 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
13962 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
6b5f6311 13963
048addec 139642001-12-11 Andrew Innes <andrewi@gnu.org>
6b5f6311 13965
048addec
JD
13966 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
13967 arg is negative.
be676094 13968
048addec 139692001-12-11 Richard M. Stallman <rms@gnu.org>
be676094 13970
048addec
JD
13971 * m/hp800.h: Split the __hpux conditional into the parts
13972 that are right for GNU/Linux too and the parts that are not.
13973 Use the former if GNU_LINUX.
13974 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
032a857d 13975
048addec 13976 * s/gnu-linux.h (GNU_LINUX): Defined.
032a857d 13977
048addec 139782001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
032a857d 13979
048addec
JD
13980 * macros.c, msdos.c, w16select.c: Change doc-string comments to
13981 `new style' [w/`doc:' keyword].
032a857d 13982
048addec 139832001-12-10 Jason Rumney <jasonr@gnu.org>
b6270150 13984
048addec
JD
13985 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
13986 before using.
b6270150 13987
048addec 139882001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
792e5cbd 13989
048addec
JD
13990 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
13991 keyword].
98cbb9fa 13992
048addec 139932001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
98cbb9fa 13994
048addec 13995 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
98cbb9fa 13996
048addec 13997 * s/hpux10.h (srand48): Don't undefine.
98cbb9fa 13998
048addec 139992001-12-09 Jason Rumney <jasonr@gnu.org>
792e5cbd 14000
048addec
JD
14001 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
14002 Add comment to explain where the struct came from.
14003 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
14004 (add_menu_item): Process pop-up menus first to avoid memory leak.
14005 (add_menu_item, w32_menu_display_help): Use `help' field as
14006 Lisp_Object.
14007 (w32_free_submenu_strings): Only free owner-drawn strings.
fa336b91 14008
048addec 140092001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
fa336b91 14010
048addec 14011 * COPYING: Moved back.
fa336b91 14012
048addec
JD
14013 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
14014 Add parentheses around && within ||.
077907d4 14015
048addec 14016 * indent.c (compute_motion): Likewise.
aa2af83a 14017
048addec 14018 * intervals.c (merge_properties_sticky): Likewise.
60a653f1 14019
048addec
JD
14020 * coding.c (setup_coding_system, shrink_encoding_region)
14021 (Fdecode_sjis_char): Likewise.
60a653f1 14022
048addec 140232001-12-07 Andreas Schwab <schwab@suse.de>
60a653f1 14024
048addec
JD
14025 * xdisp.c (display_mode_element): Don't read past end of string if
14026 it ends with '%'.
60a653f1 14027
048addec
JD
14028 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
14029 can hold.
60a653f1 14030
048addec
JD
14031 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
14032 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
14033 type changed to Lisp_Object.
14034 (syms_of_data): DEFVAR_LISP them.
60a653f1 14035
048addec 140362001-12-07 Richard M. Stallman <rms@gnu.org>
60a653f1 14037
048addec
JD
14038 * callproc.c (init_callproc): Set Vdata_directory based on the source
14039 location whenever Emacs was run uninstalled.
60a653f1 14040
048addec 140412001-12-06 Paul Eggert <eggert@twinsun.com>
60a653f1 14042
048addec
JD
14043 * config.in (HAVE_WORKING_VFORK): New #undefs.
14044 * process.c (create_process):
14045 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
14046 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
14047 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
14048 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
14049 * m/intel386.h (HAVE_VFORK): Likewise.
14050 * m/mips-siemens.h (HAVE_VFORK): Likewise.
14051 * m/mips.h (HAVE_VFORK): Likewise.
14052 * s/freebsd.h (vfork): Remove #define.
14053 * s/lynxos.h (HAVE_VFORK): Remove #undef.
14054 * s/usg5-4-2.h: Fix comment about vfork.
60a653f1 14055
048addec 140562001-12-06 Richard M. Stallman <rms@gnu.org>
60a653f1 14057
048addec
JD
14058 * s/hpux10.h (random): Add undef.
14059 (HAVE_RANDOM): Define it just once.
60a653f1 14060
048addec 140612001-12-06 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 14062
048addec 14063 * eval.c: Undo last change: the standard syntax is not wanted.
60a653f1 14064
048addec 140652001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 14066
048addec
JD
14067 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
14068 scroll bars of the frame before deleting the frame itself. If the
14069 frame has a widget, delete the frame with XtDestroyWidget, and do
14070 not call XDestroyWindow before that.
60a653f1 14071
048addec 140722001-12-06 Kim F. Storm <storm@cua.dk>
60a653f1 14073
048addec 14074 * xfns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 14075
048addec 14076 * w32fns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 14077
048addec 140782001-12-05 Andrew Innes <andrewi@gnu.org>
60a653f1 14079
048addec
JD
14080 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
14081 excessively large.
60a653f1 14082
048addec
JD
14083 * insdel.c (make_gap_larger): New function.
14084 (make_gap_smaller): New function.
14085 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
14086 Call make_gap_smaller if arg is negative.
60a653f1 14087
048addec 140882001-12-04 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 14089
048addec
JD
14090 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
14091 Pass a dummy argument when calling interrupt_signal.
14092 (parse_menu_item): Mark disabled items before checking for empty def.
14093 (read_char_minibuf_menu_prompt): Make safety more visible.
14094 (read_key_sequence): Add a `first_unbound' variable.
14095 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
14096 unbound prefix as soon as we can detect it.
60a653f1 14097
048addec
JD
14098 * doc.c (Fsnarf_documentation): Add prototype.
14099 (get_doc_string): Handle negative arguments.
14100 (Fdocumentation): Use AREF and ASIZE.
14101 Move the calls to get_doc_string to a single place.
14102 Don't confuse an interactive-spec for a docstring reference.
14103 (Fdocumentation_property): Take advantage of the fact that
14104 get_doc_string now ignores the sign of the docstring position.
60a653f1 14105
048addec 14106 * eval.c: Use standard syntax for usage in docstrings.
60a653f1 14107
048addec 141082001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 14109
a64387ee 14110 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
60a653f1 14111
048addec 141122001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 14113
048addec
JD
14114 * xterm.c (x_draw_image_relief): Use predefined macro instead of
14115 constant when the value of `tool_bar_button_relief' is negative.
60a653f1 14116
048addec 141172001-12-02 Richard M. Stallman <rms@gnu.org>
60a653f1 14118
048addec
JD
14119 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
14120 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
60a653f1 14121
048addec 14122 * fileio.c (read_non_regular): Delete Fsignal call.
60a653f1 14123
048addec 141242001-12-01 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 14125
048addec 14126 * lisp.h (run_hook_list_with_args): Undo last change.
60a653f1 14127
048addec 141282001-12-01 Gerd Moellmann <gerd@gnu.org>
60a653f1 14129
048addec 14130 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
60a653f1 14131
048addec 141322001-12-01 Jason Rumney <jasonr@gnu.org>
60a653f1 14133
f63fd14e 14134 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
60a653f1 14135
048addec
JD
14136 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
14137 [!WM_MOUSELEAVE]: Define.
60a653f1 14138
048addec
JD
14139 * w32menu.c (current_popup_menu, get_menu_item_info):
14140 (set_menu_item_info): New vars.
14141 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
14142 (w32_menu_show): Set current_popup_menu.
14143 (add_menu_item): Allocate new strings for owner-drawn menu items
14144 and help strings.
14145 Use owner-draw for disabled menu items again.
14146 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
14147 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
60a653f1 14148
048addec
JD
14149 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
14150 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
14151 <WM_EXITMENULOOP>: Free menu strings.
14152 <WM_MOUSELEAVE>: Stop tracking mouse.
14153 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
60a653f1 14154
048addec
JD
14155 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
14156 and mouse face.
60a653f1 14157
048addec 141582001-12-01 Kim F. Storm <storm@cua.dk>
60a653f1 14159
048addec
JD
14160 The following changes add left-fringe and right-fringe
14161 frame parameters to adjust fringe widths, or remove one or
14162 both fringes.
60a653f1 14163
048addec
JD
14164 * frame.h (struct frame): Remove trunc_area_pixel_width and
14165 trunc_area_cols fields.
14166 (Qleft_fringe, Qright_fringe): Declare.
14167 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
60a653f1 14168
048addec
JD
14169 * frame.c (Qleft_fringe, Qright_fringe): New vars.
14170 (syms_of_frame): Initialize them.
60a653f1 14171
048addec
JD
14172 * window.c (coordinates_in_window): Handle separate left and right
14173 fringe widths.
60a653f1 14174
048addec
JD
14175 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
14176 and fringe_cols fields.
14177 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
14178 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
14179 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
14180 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
14181 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
14182 (x_compute_fringe_widths): Add prototype.
60a653f1 14183
048addec
JD
14184 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
14185 fill fringe evenly with small dashes.
f63fd14e 14186 (x_draw_fringe_bitmap): Clear background if necessary. Align and
048addec
JD
14187 clip the new ZV bitmap to avoid jitter between rows.
14188 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
14189 background. Don't draw fringe bitmaps if fringe width is zero.
14190 (x_compute_fringe_widths): New function.
14191 (x_new_font, x_set_window_size_1): Use it.
60a653f1 14192
048addec
JD
14193 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
14194 (x_set_frame_parameters): Process `font' parameter before other
14195 parameters as fringe widths depend on it.
14196 (x_set_fringe_width): New function.
14197 (x_figure_window_size): Use x_compute_fringe_widths.
14198 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
14199 parameters.
60a653f1 14200
048addec
JD
14201 * widget.c (set_frame_size): Use x_compute_fringe_widths.
14202 (EmacsFrameSetCharSize): Ditto.
60a653f1 14203
048addec
JD
14204 * w32term.h: Merged changes from xterm.h.
14205 * w32term.c: Merged changes from xterm.c.
14206 * w32fns.c: Merged changes from xfns.c.
60a653f1 14207
048addec 142082001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 14209
048addec 14210 * COPYING: Removed.
60a653f1 14211
048addec 142122001-11-29 Dave Love <fx@gnu.org>
60a653f1 14213
048addec
JD
14214 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
14215 extra extra slot.
14216 (detect_coding_mask): Fix call of detect_coding_iso2022.
60a653f1 14217
048addec 142182001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 14219
048addec
JD
14220 * fileio.c (file-name-coding-system)
14221 (default-file-name-coding-system): Doc fix (links to referenced
14222 variables added).
60a653f1 14223
048addec 142242001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 14225
048addec
JD
14226 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
14227 Add dummy uses of gcproN variables.
60a653f1 14228
048addec
JD
14229 * category.c (describe_category, describe_category_1)
14230 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
14231 (syms_of_category): Don't defsubr Sdescribe_categories.
60a653f1 14232
048addec 142332001-11-28 Richard M. Stallman <rms@gnu.org>
60a653f1 14234
048addec 14235 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
60a653f1 14236
048addec
JD
14237 * Makefile.in (lispdir): New variable, referring to build dir.
14238 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
60a653f1 14239
048addec 142402001-11-28 Andrew Innes <andrewi@gnu.org>
60a653f1 14241
048addec
JD
14242 * w32menu.c (w32_menu_display_help): Actually add the new argument
14243 OWNER.
60a653f1 14244
048addec 142452001-11-28 Jason Rumney <jasonr@gnu.org>
60a653f1 14246
048addec
JD
14247 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
14248 menu items. From David Ponce <dponce@wanadoo.fr>.
14249 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
14250 conditionally.
f63fd14e 14251 (w32_menu_display_help): New argument OWNER. Rewritten to store a
048addec 14252 help event in the owner frame's keyboard buffer.
60a653f1 14253
048addec
JD
14254 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
14255 (Fx_show_tip): Don't subtract last width from row width.
14256
14257 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
14258 (w32_read_socket): Use EQ to compare frames.
60a653f1 14259
048addec 142602001-11-28 Gerd Moellmann <gerd@gnu.org>
60a653f1 14261
048addec
JD
14262 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
14263 OVERLAPS_P.
60a653f1 14264
048addec 142652001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 14266
048addec
JD
14267 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
14268 `gcpro3' and `gcpro4'.
60a653f1 14269
048addec 14270 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
60a653f1 14271
048addec 142722001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 14273
048addec 14274 * ccl.c: Use AREF and ASIZE.
60a653f1 14275
048addec 142762001-11-27 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 14277
048addec
JD
14278 * lisp.h (run_hook_list_with_args): Remove.
14279 (LIST_END_P): Fix call to wrong_type_argument.
14280 (make_fixnum_or_float): Use EMACS_INT rather than int.
60a653f1 14281
048addec 142822001-11-26 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 14283
048addec
JD
14284 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
14285 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
60a653f1 14286
048addec
JD
14287 * eval.c: Use AREF and ASIZE.
14288 (Ffetch_bytecode): Add the file name to the error message.
60a653f1 14289
048addec
JD
14290 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
14291 which match the end of the file-name.
14292 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
14293 is not a valid env var, but leave it as is instead.
60a653f1 14294
048addec
JD
14295 * keymap.c (access_keymap): Handle t bindings like nil bindings.
14296 Make nil bindings in char-tables transparent.
14297 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
60a653f1 14298
048addec 142992001-11-26 Richard M. Stallman <rms@gnu.org>
60a653f1 14300
048addec
JD
14301 * textprop.c (set_text_properties_1): Allow START, END in either order.
14302 Do nothing if range is empty.
60a653f1 14303
048addec 14304 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
60a653f1 14305
048addec
JD
14306 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
14307 (clean): Not here.
60a653f1 14308
048addec 143092001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 14310
048addec
JD
14311 * textprop.c (set_text_properties_1): Clearly mark that the
14312 interval should not be empty.
60a653f1 14313
048addec
JD
14314 * intervals.c (graft_intervals_into_buffer):
14315 Don't call set_text_properties_1 on an empty interval.
60a653f1 14316
048addec 143172001-11-25 Richard M. Stallman <rms@gnu.org>
60a653f1 14318
048addec 14319 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
60a653f1 14320
048addec
JD
14321 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
14322 don't lose the data in it.
60a653f1 14323
048addec 143242001-11-25 Juanma Barranquero <lektu@terra.es>
60a653f1 14325
048addec 14326 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
60a653f1 14327
c62aec78 14328 * buffer.c (Fkill_buffer): Likewise.
60a653f1 14329
c62aec78 14330 * print.c (temp_output_buffer_setup): Likewise.
60a653f1 14331
048addec 143322001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 14333
048addec 14334 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
60a653f1 14335
048addec 143362001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 14337
048addec
JD
14338 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
14339 Niemitalo <kon@iki.fi>.
60a653f1 14340
048addec 143412001-11-25 Jason Rumney <jasonr@gnu.org>
60a653f1 14342
048addec 14343 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
60a653f1 14344
048addec
JD
14345 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
14346 (Fx_show_tip): Block input during frame creation.
14347 (Fx_show_tip, Fx_hide_tip): Enable.
60a653f1 14348
048addec 143492001-11-24 Richard M. Stallman <rms@gnu.org>
60a653f1 14350
048addec
JD
14351 * lread.c (Fload): Detect recursive load error for more than 3
14352 nestings of the same file.
14353 (Vrecursive_load_depth_limit): Variable deleted.
14354 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
60a653f1 14355
048addec 143562001-11-24 Jason Rumney <jasonr@gnu.org>
60a653f1 14357
048addec
JD
14358 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
14359 mouse position if either left or top is not specified.
60a653f1 14360
048addec
JD
14361 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
14362 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
14363 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
14364 (my_create_tip_window): Assign tip_window.
14365 (x_create_tip_frame): Use same defaults as X.
14366 (compute_tip_xy): Remove unused variable. Use full screen width.
f63fd14e 14367 (Fx_show_tip): Do not double height. Call ShowWindow directly.
60a653f1 14368
048addec
JD
14369 * w32term.c (x_after_update_window_line): Doc fix.
14370 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
14371 frames.
14372 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
60a653f1 14373
048addec
JD
14374 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
14375 for all Windowed systems.
60a653f1 14376
048addec 143772001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 14378
048addec
JD
14379 * msdos.c (IT_clear_screen): If the frame's faces are not yet
14380 realized, use the initial screen colors to clear the screen.
60a653f1 14381
048addec 143822001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 14383
048addec
JD
14384 * textprop.c (Fset_text_properties): Remove unused variables
14385 `unchanged', `prev_changed', `s' and `len'.
60a653f1 14386
048addec
JD
14387 * search.c (Freplace_match): Remove unused variable `inslen'.
14388
14389 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
14390
143912001-11-22 Jason Rumney <jasonr@gnu.org>
14392
14393 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
14394 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
14395 (my_create_tip_window): New function.
14396 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
14397 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
14398
143992001-11-20 Jason Rumney <jasonr@gnu.org>
14400
14401 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
14402 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
14403
14404 * w32fns.c (Vw32_system_coding_system): Remove.
14405 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
14406
144072001-11-19 Stefan Monnier <monnier@cs.yale.edu>
14408
14409 * fileio.c (Fwrite_region): Move choose_write_coding_system to
14410 after build_annotations.
14411
14412 * syntax.c (describe_syntax): Add dummy arg.
14413 (describe_syntax_1): Update call to describe_vector.
14414
14415 * category.c (describe_category): Add dummy arg.
14416 (describe_category_1): Update call to describe_vector.
14417
14418 * keymap.c (Fdescribe_vector): Add `describer' parameter.
14419 (describe_command, describe_translation): Add dummy second param.
14420 (describe_map): Call elt_describer with two arguments.
14421 (describe_vector_princ): Add `fun' parameter.
14422 Call it instead of the hardcoded `princ'.
14423 (describe_vector): Add arg `args'.
14424 Pass it as a new second argument to elt_describer.
60a653f1 14425
048addec 14426 * keymap.h (describe_vector): Update prototype.
60a653f1 14427
048addec
JD
14428 * frame.c: Don't include keymap.h any more.
14429 (keys_of_frame): Remove.
60a653f1 14430
048addec 14431 * lisp.h (keys_of_frame): Remove declaration.
60a653f1 14432
048addec 14433 * emacs.c (main): Don't call `keys_of_frame' any more.
60a653f1 14434
048addec 144352001-11-14 Andreas Schwab <schwab@suse.de>
60a653f1 14436
048addec
JD
14437 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
14438 if defined, 0 otherwise.
14439 (MAP_FAILED): Define if not defined and use it to test mmap failure.
14440 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
60a653f1 14441
048addec 144422001-11-19 Richard M. Stallman <rms@gnu.org>
60a653f1 14443
048addec 14444 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
60a653f1 14445
048addec 144462001-11-18 Jason Rumney <jasonr@gnu.org>
60a653f1 14447
048addec
JD
14448 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
14449 (x_draw_bar_cursor): If the background color of the glyph under
14450 the cursor equals the frame's cursor color, use the glyph's
14451 foreground color for drawing the bar cursor.
14452 (x_after_update_window_line): Clear internal border in different
14453 circumstances.
14454 (w32_set_vertical_scroll_bar): Check for width and height > 0.
14455 (w32_draw_relief_rect): Correct relief by 1 pixel.
14456 (x_set_glyph_string_background_width):
14457 Set extends_to_end_of_line_p if the row's fill_line_p is set and
14458 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
14459 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
14460 if cursor_in_non_selected_windows is false.
14461 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
14462 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
14463 Notice if cursor gets overwritten.
14464 (notice_overwritten_cursor): Renamed from
14465 note_overwritten_text_cursor. Rewritten to take glyph widths
14466 into account, and to take X positions as parameters.
14467 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
14468 around call to x_draw_glyphs.
14469 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
14470 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
14471 color to use for image glyph reliefs.
14472 (x_draw_image_relief): Accept zero tool_bar_button_relief.
14473 (glyph_rect): Remove unused variable `area'.
60a653f1 14474
048addec
JD
14475 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
14476 some items.
14477 (x_set_internal_border_width): Set frame garbaged when window
14478 doesn't exist yet.
14479 (Fx_create_frame): Accept zero tool_bar_button_relief.
14480 (x_clear_image_1, four_corners_best, image_background)
14481 (image_background_transparent): New functions.
14482 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
14483 (gs_format): Add `:background' entry.
14484 (lookup_image): Set IMG's background color if specified.
14485 (pbm_load, xbm_load_image, png_load): Set IMG's background field
14486 when appropriate.
14487 (x_clear_image_1): Reset `background_valid' and
14488 `background_transparent_valid' fields.
14489 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
14490 calculating it here. Set IMG's background_transparent field.
14491 (enum xpm_keyword_index): Add XPM_BACKGROUND.
14492 (enum png_keyword_index): Add PNG_BACKGROUND.
14493 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
14494 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
14495 (enum gif_keyword_index): Add GIF_BACKGROUND.
14496 (enum gs_keyword_index): Add GS_BACKGROUND.
14497 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
14498 Pre-calculate image background color where necessary.
14499 (x_create_x_image_and_pixmap, xbm_load, gs_load):
14500 Use display info's n_cbits entry for screen depth.
14501 (Fx_show_tip): Remove unused variables `buffer', `top',
14502 `left', `max_width' and `max_height'.
60a653f1 14503
048addec 14504 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
60a653f1 14505
048addec 145062001-11-18 Gerd Moellmann <gerd@gnu.org>
60a653f1 14507
048addec 14508 * puresize.h (BASE_PURESIZE): Increase to 750000.
60a653f1 14509
048addec 145102001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 14511
048addec 14512 * frame.c (Fframe_live_p): Doc fix.
60a653f1 14513
048addec 145142001-11-18 Richard M. Stallman <rms@gnu.org>
60a653f1 14515
048addec
JD
14516 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
14517 (message_dolog_marker3): New static variables hold three markers.
14518 (syms_of_xdisp): Initialize and staticpro them.
14519 (message_dolog): Use message_dolog_marker1..3 instead of
14520 allocating markers each time. Unchain them when done.
60a653f1 14521
048addec 145222001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 14523
048addec 14524 * doc.c (Fsnarf_documentation): Doc fix.
60a653f1 14525
048addec 145262001-11-17 Andreas Schwab <schwab@suse.de>
60a653f1 14527
048addec 14528 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
60a653f1 14529
048addec 145302001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 14531
048addec 14532 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
60a653f1 14533
048addec 145342001-11-17 Jason Rumney <jasonr@gnu.org>
60a653f1 14535
048addec 14536 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
60a653f1 14537
048addec 145382001-11-17 Gerd Moellmann <gerd@gnu.org>
60a653f1 14539
048addec
JD
14540 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
14541 with invalid position.
60a653f1 14542
048addec 145432001-11-16 Richard M. Stallman <rms@gnu.org>
60a653f1 14544
048addec 14545 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
60a653f1 14546
048addec
JD
14547 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
14548 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
14549 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
60a653f1 14550
048addec 14551 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
60a653f1 14552
048addec 145532001-11-16 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 14554
048addec
JD
14555 * fileio.c (build_annotations): Split off the tail.
14556 (build_annotations_2): New fun. Extracted from build_annotations.
14557 (Fwrite_region): Split the call to build_annotations into two
14558 calls to build_annotations and build_annotations_2.
077907d4 14559
048addec 145602001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1756e2fb 14561
048addec
JD
14562 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
14563 clear_waiting_for_input with argument.
1756e2fb 14564
048addec 14565 * xterm.h (x_update_cursor): Remove duplicated prototype.
06e8f738 14566
048addec 14567 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
06e8f738 14568
048addec 14569 * xterm.c (waiting_for_input): Remove unnecessary declaration.
fa336b91 14570
048addec 14571 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
fa336b91 14572
048addec 145732001-11-16 Stefan Monnier <monnier@cs.yale.edu>
fa336b91 14574
048addec
JD
14575 * fileio.c (choose_write_coding_system): New fun, extracted
14576 from Fwrite_region.
14577 (Fwrite_region): Use it.
fa336b91 14578
048addec
JD
14579 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
14580 (funcall_lambda, run_hook_with_args): Make static and add prototype.
14581 (ml_apply, find_handler_clause): Add prototype.
fa336b91 14582
048addec 145832001-11-16 Eli Zaretskii <eliz@gnu.org>
fa336b91 14584
048addec 14585 * config.in: Add #undef HAVE_COFF_H.
fa336b91 14586
048addec
JD
14587 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
14588 Required for ISC 4.1.
fa336b91 14589
048addec 145902001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
fa336b91 14591
048addec
JD
14592 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
14593 Andrew Wiseman <a.wiseman@btclick.com>.
fa336b91 14594
048addec 145952001-11-16 Kim F. Storm <storm@cua.dk>
fa336b91 14596
048addec
JD
14597 The following changes are made to clean up the various internal
14598 references to the fringes to actually use the term `fringe' for
14599 them. Previously, they were called `flags areas', `bitmap areas',
14600 `left/right side of windows', or implicitly as `flags' or
14601 `bitmaps':
fa336b91 14602
048addec 14603 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
f63fd14e 14604 Comments fixed. Use renamed symbols.
06e8f738 14605
f63fd14e 14606 * dispnew.c: Comment fix. Use renamed symbols.
06e8f738 14607
048addec
JD
14608 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
14609 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
14610 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
9ce647f4 14611
048addec 14612 * msdos.c: Comment fix.
9ce647f4 14613
048addec 14614 * w32fns.c: Use renamed symbols.
9b784ab8 14615
f63fd14e 14616 * w32term.c: Comment fixes. Use renamed symbols.
048addec
JD
14617 (fringe_bitmap_type): Renamed from bitmap_type.
14618 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
14619 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
14620 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
9f7e52b4 14621
f63fd14e 14622 * w32term.h: Comment fixes. Use renamed symbols.
048addec
JD
14623 (fringes_extra): Renamed from flags_areas_extra.
14624 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
14625 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
14626 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
14627 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
14628 (FRAME_X_LEFT_FRINGE_WIDTH):
14629 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
14630 (FRAME_X_RIGHT_FRINGE_WIDTH):
14631 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
9f7e52b4 14632
048addec 14633 * widget.c: Use renamed symbols.
9f7e52b4 14634
f63fd14e 14635 * window.c: Comment fixes. Use renamed symbols.
048addec 14636 (coordinates-in-window-p): Doc fix.
fa336b91 14637
f63fd14e 14638 * xdisp.c: Comment fixes. Use renamed symbols.
34e5d0af 14639
048addec 14640 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
9b784ab8 14641
048addec 14642 * xfns.c: Use renamed symbols.
89512fcd 14643
f63fd14e 14644 * xterm.c: Comment fixes. Use renamed symbols.
048addec
JD
14645 (fringe_bitmap_type): Renamed from bitmap_type.
14646 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
14647 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
14648 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
89512fcd 14649
f63fd14e 14650 * xterm.h: Comment fixes. Use renamed symbols.
048addec
JD
14651 (fringes_extra): Renamed from flags_areas_extra.
14652 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
14653 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
14654 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
14655 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
14656 (FRAME_X_LEFT_FRINGE_WIDTH):
14657 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
14658 (FRAME_X_RIGHT_FRINGE_WIDTH):
14659 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
14660
146612001-11-15 Jason Rumney <jasonr@gnu.org>
14662
14663 * w32menu.c (add-menu-item): Make help_echo and radio buttons
14664 work for most menu items. From David Ponce
14665 <david.ponce@wanadoo.fr>.
14666
146672001-11-15 Gerd Moellmann <gerd@gnu.org>
14668
14669 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
14670 Some x_set_* function expect to be called even if old and new
14671 value are equal.
14672
14673 * xdisp.c (build_desired_tool_bar_string): Accept zero
14674 tool_bar_button_relief.
14675
14676 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
14677
14678 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
14679
14680 * xterm.c (x_draw_bar_cursor): If the background color of the
14681 glyph under the cursor equals the frame's cursor color, use
14682 the glyph's foreground color for drawing the bar cursor.
14683
14684 * dispnew.c (direct_output_forward_char): Fix character/byte
14685 position comparison.
7d18891d 14686
048addec 146872001-11-15 Miles Bader <miles@gnu.org>
d2936d21 14688
048addec
JD
14689 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
14690 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
14691 Update arguments to find_field.
14692 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
14693 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
14694 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
14695 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
7d18891d 14696
048addec 146972001-11-14 Richard M. Stallman <rms@gnu.org>
7d18891d 14698
048addec 14699 * editfns.c (Fpropertize): Allow call with 1 arg.
7d18891d 14700
048addec
JD
14701 * dispextern.h (image_background, image_background_transparent):
14702 Conditionalize on HAVE_X_WINDOWS.
7d18891d 14703
048addec 147042001-11-13 Richard M. Stallman <rms@gnu.org>
7d18891d 14705
048addec 14706 * print.c (Fprin1_to_string): Doc fix.
7d18891d 14707
048addec 14708 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
7d18891d 14709
048addec 14710 * floatfns.c (Fceiling, Ffloor): Doc fixes.
7d18891d 14711
048addec 14712 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
7d18891d 14713
048addec 14714 * fileio.c (Ffile_accessible_directory_p): Doc fix.
7d18891d 14715
048addec 14716 * eval.c (syms_of_eval): Doc fix.
7d18891d 14717
048addec 14718 * coding.c (syms_of_coding): Doc fix.
7d18891d 14719
048addec 14720 * doc.c (Fsnarf_documentation): Doc fix.
7d18891d 14721
048addec 14722 * dispnew.c (syms_of_display): Doc fix.
9474c847 14723
048addec 14724 * category.c (Fget_unused_category): Doc fix.
9474c847 14725
048addec 14726 * buffer.c (syms_of_buffer): Doc fixes.
e3059a5d 14727
048addec 147282001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
e3059a5d 14729
048addec 14730 * print.c (prin1, print): Doc fix.
e3059a5d 14731
048addec 147322001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
b3700ae7 14733
048addec
JD
14734 * fontset.h: Remove declarations of variables
14735 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
b3700ae7 14736
048addec
JD
14737 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
14738 `Vclip_large_size_font'.
eae936e2 14739
048addec 147402001-11-13 Jason Rumney <jasonr@gnu.org>
4bb962be 14741
048addec 14742 * w32fns.c: Doc fix.
ddb67bdc 14743
048addec 147442001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3467c402 14745
048addec 14746 * xfaces.c (Fface_attributes_as_vector): Doc fix.
3467c402 14747
048addec 14748 * fns.c: Doc fix.
6e1b91d7 14749
048addec 14750 * emacs.c: Doc fix.
1c1d3d69 14751
048addec 14752 * coding.c: Doc fix.
1c1d3d69 14753
048addec
JD
14754 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
14755 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
14756 `new style' [w/`doc:' keyword].
b6f4c7ba 14757
048addec 147582001-11-12 Richard M. Stallman <rms@gnu.org>
b6f4c7ba 14759
048addec
JD
14760 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
14761 LeaveNotify events. Only FocusIn and FocusOut do that now.
14762 (x_display_and_set_cursor): Do display hollow cursors in active
14763 minibuffer windows when they are not selected.
b6f4c7ba 14764
048addec 147652001-11-12 Jason Rumney <jasonr@gnu.org>
a89f435d 14766
048addec 14767 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
f63fd14e
JB
14768 * w32term.c: Change doc-string comments to `new style'
14769 [w/`doc:' keyword]. Doc fixes.
a89f435d 14770
048addec
JD
14771 * w32fns.c: Don't define max.
14772 (Fx_open_connection): Only execute once.
a4cd0cd7 14773
048addec 147742001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
eafb659a 14775
048addec
JD
14776 * ccl.c: Change macros to use do-while block instead of if-else.
14777 Use braces to follow GNU Coding Standards.
eafb659a 14778
048addec 147792001-11-11 Richard M. Stallman <rms@gnu.org>
a4cd0cd7 14780
048addec 14781 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
a4cd0cd7 14782
048addec 14783 * lread.c (read_escape): Use end_of_file_error for reporting eof.
a4cd0cd7 14784
048addec
JD
14785 * insdel.c (replace_range): Use adjust_markers_for_replace
14786 instead of adjust_markers_for_delete and adjust_markers_for_insert.
a4cd0cd7 14787
048addec 14788 * intervals.h: Declare set_text_properties and set_text_properties_1.
a4cd0cd7 14789
048addec
JD
14790 * textprop.c (set_text_properties_1): New subroutine
14791 broken out of set_text_properties.
14792 (set_text_properties): Use set_text_properties_1.
91823618 14793
048addec
JD
14794 * intervals.c (graft_intervals_into_buffer):
14795 Use set_text_properties_1 to clear out properties.
91823618 14796
048addec
JD
14797 * search.c (Freplace_match): Use replace_range to insert
14798 and delete. Don't request property inheritance from
14799 surrounding text.
86928dfb 14800
048addec 148012001-11-10 Jason Rumney <jasonr@gnu.org>
86928dfb 14802
048addec 14803 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
f63fd14e 14804 vertical fonts. Allow them if face name is explicitly specified.
048addec 14805 Do not give up if we find a font that cannot be converted to an xlfd.
40ef1eda 14806
048addec 148072001-11-10 Gerd Moellmann <gerd@gnu.org>
ab8469eb 14808
048addec
JD
14809 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
14810 instead of malloc/free.
a78e0303 14811
048addec 148122001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
40ef1eda 14813
048addec
JD
14814 * xfaces.c (merge_face_vectors): Use braces to follow GNU
14815 Coding Standards.
14816 (Finternal_set_lisp_face_attribute): Likewise.
fabf4a91 14817
048addec 14818 * buffer.c (Fbury_buffer): Likewise.
0c99b139 14819
048addec 14820 * indent.c (current_column_1): Remove unused variable `prev_col'.
0c99b139 14821
048addec
JD
14822 * coding.c (encode_coding): Use precomputed value of `src'.
14823 (encode_coding): Remove unused variable `src_end'.
14824 (code_convert_region): Remove unused variables `count'.
830ddd77 14825
048addec 148262001-11-07 Jason Rumney <jasonr@gnu.org>
830ddd77 14827
048addec
JD
14828 * w32term.c (x_display_and_set_cursor): Do not move system caret
14829 if cursor_glyph is NULL.
55c6d645 14830
048addec 148312001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
55c6d645 14832
048addec 14833 * keymap.c (access_keymap): Fix compilation error.
5de38842 14834
048addec 148352001-11-07 Miles Bader <miles@gnu.org>
7a4564a4 14836
048addec 14837 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
5de38842 14838
048addec 148392001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4fa23df5 14840
048addec
JD
14841 * intervals.c (graft_intervals_into_buffer):
14842 Remove #ifdef'd-out code.
14843 (graft_intervals_into_buffer): Remove unused variable `middle'.
4fa23df5 14844
048addec
JD
14845 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
14846 code (eval-current-buffer).
14847 Change doc-string comments to `new style' [w/`doc:' keyword].
7a6a97d7 14848
048addec 148492001-11-06 Richard M. Stallman <rms@gnu.org>
c191d13c 14850
048addec 14851 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
7a6a97d7 14852
048addec 148532001-11-06 Stefan Monnier <monnier@cs.yale.edu>
44dc78e0 14854
048addec 14855 * lread.c (read1): Fix behavior with nested backquoting.
44dc78e0 14856
048addec
JD
14857 * keyboard.c (make_lispy_event): Check integerness and fix
14858 Lisp_Object/int mixup.
17893c65 14859
048addec 148602001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4d994a79 14861
048addec 14862 * fns.c (copy_hash_table): Remove unused variable `v'.
d5360cc7 14863
048addec
JD
14864 * fontset.c (fontset_font_pattern): Remove unused variable
14865 `family_registry'.
d5360cc7 14866
048addec 14867 * indent.c (current_column_1): Remove unused variable `prev_col'.
d5360cc7 14868
048addec 148692001-11-05 Richard M. Stallman <rms@gnu.org>
96238a5a 14870
048addec 14871 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
96238a5a 14872
048addec
JD
14873 * buffer.c (Fkill_buffer): Don't delete auto save file
14874 if buffer is modified.
d9d54213 14875
048addec 148762001-11-05 Andrew Innes <andrewi@gnu.org>
d9d54213 14877
048addec
JD
14878 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
14879 CHECK_NUMBER_CDR.
b116830b 14880
048addec 148812001-11-05 Richard M. Stallman <rms@gnu.org>
b116830b 14882
048addec 14883 * unexelf.c (unexec): Minor changes; clean up comments.
3297e2a1 14884
048addec 148852001-11-05 Sam Steingold <sds@gnu.org>
3297e2a1 14886
048addec 14887 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
6fb8339c 14888
048addec 148892001-11-05 Andreas Schwab <schwab@suse.de>
6fb8339c 14890
048addec 14891 * sound.c (sound_perror): Save errno from being clobbered.
7dd73b78 14892
048addec 148932001-11-05 Dale Hagglund <rdh@yottayotta.com>
7dd73b78 14894
048addec
JD
14895 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
14896 the program image directly.
982f6c7e 14897
048addec 148982001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d31053f9 14899
048addec 14900 * buffer.h (Fbuffer_local_value): Add prototype.
d31053f9 14901
048addec 149022001-11-04 Richard M. Stallman <rms@gnu.org>
d31053f9 14903
048addec
JD
14904 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
14905 and CHECK_BUFFER.
d31053f9 14906
048addec
JD
14907 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
14908 (record_char): Likewise.
d31053f9 14909
048addec
JD
14910 * keyboard.c (make_lispy_event): Don't insist a drag event must
14911 move to a different buffer position. Instead, check for moving at
14912 least double_click_fuzz.
982f6c7e 14913
048addec 14914 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
830047fd 14915
048addec 14916 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
b116830b 14917
048addec
JD
14918 * indent.c (current_column_1, Fmove_to_column): Separate the code
14919 for display-table glyphs from the code for buffer text, to fix
14920 bugs in the former.
830047fd 14921
048addec 149222001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
b116830b 14923
048addec
JD
14924 * buffer.c (Fbuffer_local_value): New function.
14925 (syms_of_buffer): Defsubr it.
2df5238c 14926
048addec
JD
14927 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
14928 value of `cursor-in-non-selected-windows'.
4e397688 14929
048addec
JD
14930 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
14931 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
14932 (syms_of_xdisp): Initialize it.
48b0f3ae 14933
048addec 149342001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2df5238c 14935
048addec 14936 * xfns.c (Fx_create_frame): Doc fix.
3ecaf7e5 14937
048addec
JD
14938 * coding.c: Change doc-string comments to `new style' [w/`doc:'
14939 keyword].
3ecaf7e5 14940
048addec
JD
14941 * eval.c (top_level_value, top_level_set): Remove commented and
14942 #ifdef'd-out code.
14943 (Fdefvar): Fix usage in doc-string.
3ecaf7e5 14944
048addec 149452001-11-03 Richard M. Stallman <rms@gnu.org>
3ecaf7e5 14946
048addec 14947 * xfns.c: Include unistd.h, if it exists.
8db2e33b 14948
048addec 14949 * editfns.c: Move the include of ctype.h after unistd.h.
8db2e33b 14950
048addec 14951 * gmalloc.c: Test BROKEN_PROTOTYPES.
aed29b97 14952
048addec 149532001-11-03 Ken Raeburn <raeburn@gnu.org>
aed29b97 14954
048addec
JD
14955 * lisp.h (CHECK_STRING_CAR): New macro.
14956 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
14957 treating XCAR and XCDR as lvalues.
14958 (openp): Use CHECK_STRING_CAR.
14959 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
aed29b97 14960
048addec 149612001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
6cb16f95 14962
048addec
JD
14963 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
14964 (SIGMASKTYPE): Define.
1b1acc13 14965
048addec 14966 * syssignal.h (sigunblock): Don't define if already defined.
020f9b38 14967
048addec 149682001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
020f9b38 14969
048addec
JD
14970 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
14971 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
14972 Fix typos in comments.
6cb16f95 14973
048addec
JD
14974 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
14975 and #ifdef'd-out code.
14976 Fix and reindent comments.
6cb16f95 14977
048addec 14978 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
6cb16f95 14979
048addec
JD
14980 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
14981 argument `i' in macros.
6cb16f95 14982
048addec
JD
14983 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
14984 `i' in macros.
7e9d3c2f 14985
048addec
JD
14986 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
14987 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
14988 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
14989 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
14990 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
14991 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
14992 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
14993 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
14994 in macros.
7e9d3c2f 14995
048addec
JD
14996 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
14997 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
14998 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
14999 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
15000 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
15001 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
15002 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
15003 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
15004 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
15005 (remove unused second argument).
7e9d3c2f 15006
048addec 150072001-11-02 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 15008
048addec
JD
15009 * syntax.c (describe_syntax): New wrapper.
15010 (Finternal_describe_syntax_value): Rename from describe_syntax.
15011 Don't insert space at front and \n at the end.
15012 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
e6bff182 15013
048addec
JD
15014 * regex.c (re_wctype): Try to fix some warnings.
15015 (regcomp, regexec): Don't forget the __restrict.
9ba48103 15016
048addec 150172001-11-02 Richard M. Stallman <rms@gnu.org>
9ba48103 15018
048addec 15019 * textprop.c (Fget_char_property): Doc fix.
9ba48103 15020
048addec 150212001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9ba48103 15022
048addec 15023 * process.c (Fstart_process): Add usage to doc-string.
c22e59e1 15024
048addec 15025 * data.c (Fsetq_default): Ditto.
c22e59e1 15026
048addec 15027 * callint.c (Finteractive): Ditto.
9271ed2c 15028
048addec 150292001-11-01 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 15030
048addec
JD
15031 * macros.c: Don't include keymap.h any more.
15032
150332001-11-01 Richard M. Stallman <rms@gnu.org>
15034
15035 * data.c (Fmake_local_variable): Doc fix.
15036
15037 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
15038 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
e6bff182 15039
048addec 15040 * keymap.c (Fdescribe_buffer_bindings): Print character property
9271ed2c
RS
15041 bindings along with or instead of the buffer local map.
15042 Make the overriding maps override what they should.
15043
f00691a3 150442001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8b8bd9c6
PJ
15045
15046 * window.c (grow_mini_window): Fix typo in comment.
15047
27188d11
GM
150482001-11-01 Gerd Moellmann <gerd@gnu.org>
15049
7b49b9d2
GM
15050 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
15051 (XTset_vertical_scroll_bar): Likewise.
15052
43f7c3ea
GM
15053 * xfns.c (x_build_heuristic_mask): Use four_corners_best
15054 instead of IMAGE_BACKGROUND.
c22e59e1 15055
b350c2e5
GM
15056 * xfns.c (four_corners_best): Reindent.
15057
c22e59e1 15058 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27188d11
GM
15059 Handle :box so that it is possible to specify sexprs.
15060
bf00d461
EZ
150612001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
15062
15063 * s/hpux11.h: New file.
15064
f00691a3 150652001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e10df59 15066
2b209b97
PJ
15067 * emacs.c (USAGE1): Show command line option --no-window-system
15068 instead of --no-windows in usage.
15069 (standard_args): Rename --no-windows to --no-window-system.
15070 (bug_reporting_address): Follow Emacs coding conventions.
15071
9dbc9081
PJ
15072 * eval.c (Fcommandp): Doc fix.
15073 Change doc-string comments to `new style' [w/`doc:' keyword].
15074
4e10df59
PJ
15075 * frame.c (Fframe_live_p): Doc fix.
15076
15077 * buffer.c (selective-display-ellipses): Doc fix.
15078
dd387b25
GM
150792001-10-31 Gerd Moellmann <gerd@gnu.org>
15080
fe957e65
GM
15081 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
15082
dd387b25
GM
15083 * xfaces.c (realize_x_face): If C is not a single-byte character,
15084 set the face's colors_copied_bitwise_p instead of the defaulted_p
15085 members which have a different meaning.
15086 (free_face_colors): Do nothing for a face whose colors have been
15087 copied bitwise.
15088
c22e59e1 15089 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
dd387b25 15090
f00691a3 150912001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2e1280f8 15092
687784e8
PJ
15093 * marker.c, mocklisp.c: Change doc-string comments to `new style'
15094 [w/`doc:' keyword].
2e1280f8 15095
b9d9a9b9
GM
150962001-10-31 Gerd Moellmann <gerd@gnu.org>
15097
15098 * fns.c (require_unwind): Return Lisp_Object.
15099
f00691a3 151002001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
48400103 15101
fa1361cb
PJ
15102 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
15103 (last-input-char): Revert doc-string to be the same as the
15104 doc-string of `last-input-event'.
15105
6c465a15 15106 * xdisp.c: Fix typos in comments.
48400103 15107
eafa3196
GM
151082001-10-31 Gerd Moellmann <gerd@gnu.org>
15109
15110 * window.c (grow_mini_window): Handle case that the root
15111 window is already smaller than the nominal mininum height.
15112
747d3f2a
SM
151132001-10-30 Stefan Monnier <monnier@cs.yale.edu>
15114
bf9bb76f
SM
15115 * emacs.c (main): Don't call keys_of_macros any more.
15116
15117 * lisp.h (keys_of_macros): Remove.
15118
15119 * macros.c (keys_of_macros): Remove.
15120
747d3f2a
SM
15121 * xfaces.c (Fface_attribute_relative_p): Declare args.
15122
5e905a57
JR
151232001-10-30 Jason Rumney <jasonr@gnu.org>
15124
15125 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
15126 (enum_font_cb2): Ignore fonts with vertical orientation.
15127
3a426197
RS
151282001-10-30 Richard M. Stallman <rms@gnu.org>
15129
15130 * keyboard.c (Finput_pending_p): Doc fix.
15131
a742d646
GM
151322001-10-30 Gerd Moellmann <gerd@gnu.org>
15133
259cf6bc
GM
15134 * xterm.c (x_after_update_window_line): Don't run the code
15135 clearing in borders for rows whose visible height is 0.
15136
3f99f948
GM
15137 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
15138 resized_p flag is set. If not set, use the much less flickering
15139 method previously used.
15140
15141 * dispnew.c (change_frame_size_1): Set frame's resized_p.
15142
15143 * frame.h (struct frame) <resized_p>: New member.
15144
b4a3be43
GM
15145 * lread.c (to_multibyte): Ensure read_buffer is at least twice
15146 as large as the number of bytes to convert.
747d3f2a 15147
a742d646
GM
15148 * lread.c (to_multibyte): New function.
15149 (read1): Use it.
15150
cacbb9e9
EZ
151512001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
15152
15153 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
15154
99cb6b2f
GM
151552001-10-30 Gerd Moellmann <gerd@gnu.org>
15156
327f42ee 15157 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
15158 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
15159 if the row's fill_line_p is set and drawing the last glyph with
15160 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 15161
99cb6b2f
GM
15162 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
15163
8e8223e2
SM
151642001-10-29 Stefan Monnier <monnier@cs.yale.edu>
15165
15166 * xmenu.c: Include coding.h and charset.h.
15167 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
15168 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
15169 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
15170 Explicitly set wv->help. Use `TRUE' rather than `True'.
15171 (menu_help_callback): Use empty_string.
15172
15173 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
15174 (Fx_popup_dialog): Explicitly init f.
15175 (w32_menu_display_help): Use empty_string.
15176
4d083a8f
RS
151772001-10-29 Richard M. Stallman <rms@gnu.org>
15178
b2304472
RS
15179 * fns.c (Frequire): Detect recursive try to require the same
15180 feature 3 or more levels deep, and get error.
15181 (require_unwind): New subroutine.
15182 (require_nesting_list): New variable.
15183 (syms_of_fns): Init and staticpro it.
15184
4d083a8f
RS
15185 * print.c (print_object): Clarify indication of insertion type.
15186
2fe41216
EZ
151872001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
15188
90480000
EZ
15189 * coding.c (syms_of_coding): Document that locale-coding-system is
15190 used for decoding input on X.
15191
2fe41216
EZ
15192 * window.c (Fscroll_left, Fscroll_right): Doc fix.
15193
f00691a3 151942001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
74e79967
PJ
15195
15196 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
15197 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
15198
60ebcfe8
GM
151992001-10-29 Gerd Moellmann <gerd@gnu.org>
15200
9a7bdceb
GM
15201 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
15202 use NO_CURSOR if cursor_in_non_selected_windows is false.
15203
3f08fcd2
GM
15204 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
15205 the slant attribute if FRAME is t.
15206
0ccfdad2
GM
15207 * xfns.c (x_set_internal_border_width): Set frame garbaged
15208 when X window doesn't exist yet.
15209
ef253080
GM
15210 * xterm.c (x_after_update_window_line): Clear internal border
15211 in different circumstances.
b116830b 15212
60ebcfe8
GM
15213 * xterm.c (XTread_socket) <KeyPress>: Don't use
15214 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
15215 <handa@etl.go.jp>.
15216
73d25f9c
EZ
152172001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
15218
15219 * m/ibms390.h: New file. From Adam Thornton
15220 <athornton@sinenomine.net>.
15221
cac1daf0
GM
152222001-10-28 Gerd Moellmann <gerd@gnu.org>
15223
053b3256 15224 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
b116830b 15225
cac1daf0
GM
15226 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
15227 a loop counter.
15228
f00691a3 152292001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13b1a09c 15230
f9711de4 15231 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
186486eb 15232
4707d2d0
PJ
15233 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
15234 keyword].
15235 Fix typos in comments.
b116830b 15236
d883731c
PJ
15237 * emacs.c (bug_reporting_address): New function.
15238 Use it when displaying usage message.
15239
04012254
PJ
15240 * minibuf.c (read_minibuf): Remove unused external declaration of
15241 variable `Qread_only'.
15242
13b1a09c
PJ
15243 * keymap.c (access_keymap): Remove unused variable `charset'.
15244
5bbf4378
MB
152452001-10-28 Miles Bader <miles@gnu.org>
15246
15247 * xfaces.c (merge_face_heights): Handle TO being relative as well.
15248 Remove #ifdef'd-out code.
15249 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
15250 (syms_of_xfaces): Initialize them.
15251
1ce1e4ee
JR
152522001-10-27 Jason Rumney <jasonr@gnu.org>
15253
15254 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
15255 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
15256 position using the system caret.
15257
15258 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
15259 (w32_system_caret_height, w32_system_caret_x)
15260 (w32_system_caret_y): New variables for tracking system caret.
15261 (w32_initialize): Initialize them.
c2d53558 15262 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 15263
c2d53558
SM
15264 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
15265 New messages types.
1ce1e4ee
JR
15266
15267 * w32term.c (note_mouse_highlight): Clear old help_echo.
15268
f00691a3 152692001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e30ce42 15270
bb4600a4
PJ
15271 * xterm.c: Fix typo in a comment.
15272
7db35a48
PJ
15273 * emacs.c: Fix typos in comments.
15274 Remove unnecessary spaces.
15275 Change doc-string comments to `new style' [w/`doc:' keyword].
15276 (USAGE2): Fix typos in usage string.
15277
a7248e4f
PJ
15278 * xterm.c: Fix typo in a comment.
15279
4e30ce42
PJ
15280 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
15281 emacs.c.
15282
62725a92
GM
152832001-10-27 Gerd Moellmann <gerd@gnu.org>
15284
798dbe1f 15285 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 15286 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
15287 farther backward when target_y was not reached.
15288
62725a92
GM
15289 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
15290 Display errno only if non-zero.
15291 (sound_warning): New function.
15292 (vox_configure): Don't treat failing to set sample rate as error.
15293 (various places): Improve error messages.
15294
d4e34d24
EZ
152952001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
15296
944e6f60
EZ
15297 * fileio.c (Faccess_file): Run the argument filename through
15298 Fexpand_file_name, before using it.
15299
d4e34d24
EZ
15300 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
15301 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
15302
38d2af0c
GM
153032001-10-26 Gerd Moellmann <gerd@gnu.org>
15304
da80a8d5
GM
15305 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
15306
38d2af0c
GM
15307 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
15308 Fix clearing in the case of scroll bars on the right.
c2d53558 15309
45de4a6f 153102001-10-26 Juanma Barranquero <lektu@terra.es>
56f508dd
EZ
15311
15312 * w32gui.h (XImage): Add a dummy typedef.
15313
fbd5ceb2
GM
153142001-10-26 Gerd Moellmann <gerd@gnu.org>
15315
c2d53558 15316 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 15317
b23236fb
EZ
153182001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
15319
15320 * frame.c (Fframe_parameter): Fix last change.
15321
5d991fc4
EZ
15322 * fileio.c: Revert last change (which removed old commented-out
15323 version of expand-file-name). Add a comment that explains why
15324 this old version should not be removed.
15325
879eadc3
GM
153262001-10-25 Gerd Moellmann <gerd@gnu.org>
15327
75700ff2
GM
15328 * frame.c (Fframe_parameter): Fix a bug whereby some
15329 ``artificial'' frame parameters, like `minibuffer' were not
15330 obtained by calling Fframe_parameters.
15331
dfe92a6a
GM
15332 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
15333 cursor differently.
15334
879eadc3
GM
15335 * xdisp.c (move_it_vertically_backward): Compute line height
15336 differently. Add heuristic to try to be more compatible to 20.x.
15337
e1010ebe
SM
153382001-10-25 Stefan Monnier <monnier@cs.yale.edu>
15339
d73a471b
SM
15340 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
15341
d6da5a06
GM
15342 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
15343 boolean.
e1010ebe 15344
f66bd220
MB
153452001-10-25 Miles Bader <miles@gnu.org>
15346
15347 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
15348 BG is a pointer to a structure, not a structure.
15349 (gif_format, png_format): Add missing commas.
15350
d436d538
RS
153512001-10-24 Richard M. Stallman <rms@gnu.org>
15352
15353 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 15354 (syms_of_xfaces): Defsubr it.
d436d538 15355
f00691a3 153562001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
075c507b
PJ
15357
15358 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
15359 variable `area'.
15360
f00691a3 153612001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d492b584 15362
c2d53558 15363 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 15364
e2a57b34
MB
153652001-10-25 Miles Bader <miles@gnu.org>
15366
15367 * dispextern.h (struct image): Add `background',
15368 `background_valid', and `background_transparent' fields.
15369 (image_background, image_background_transparent): New declarations.
15370 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
15371 * xfns.c (image_background, image_background_transparent)
15372 (four_corners_best): New functions.
c2d53558 15373 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
15374 (gs_format): Add `:background' entry.
15375 (lookup_image): Set IMG's background color if specified.
15376 (pbm_load, xbm_load_image, png_load): Set IMG's background field
15377 when appropriate.
15378 (x_clear_image_1): Reset `background_valid' and
15379 `background_transparent_valid' fields.
15380 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
15381 calculating it here. Set IMG's background_transparent field.
15382 (enum xpm_keyword_index): Add XPM_BACKGROUND.
15383 (enum png_keyword_index): Add PNG_BACKGROUND.
15384 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
15385 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
15386 (enum gif_keyword_index): Add GIF_BACKGROUND.
15387 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 15388 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
15389 Pre-calculate image background color where necessary.
15390 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
15391 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
15392 color to use for image glyph reliefs.
15393
b547b6e8
GM
153942001-10-24 Gerd Moellmann <gerd@gnu.org>
15395
d9e3b8c6
GM
15396 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
15397 in full-width rows.
c2d53558 15398
b547b6e8
GM
15399 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
15400 Fix clearing of area not covered by scroll bar.
15401
f00691a3 154022001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2beb36f9
PJ
15403
15404 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
15405 and `real_start'.
c2d53558 15406 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
15407 (glyph_rect): Remove unused variable `area'.
15408
76cb5e06
GM
154092001-10-24 Gerd Moellmann <gerd@gnu.org>
15410
bdbdebff 15411 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
15412
15413 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
15414 (row_containing_pos): Take additional argument DY.
15415 Treat rows ending in middle of char differently.
62e33982
GM
15416 (display_line): Handle tabs on window systems differently.
15417
15418 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
15419 with additional argument.
15420
15421 * dispextern.h (row_containing_pos): Adjust prototype.
15422
76cb5e06
GM
15423 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
15424 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
15425 (try_window_id, try_window_reusing_current_matrix)
15426 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
6c465a15 15427 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
76cb5e06 15428
f00691a3 154292001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
996fee11 15430
c9e60620
PJ
15431 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
15432 gnuemacs).
15433 (HAVE_BOXES): Fix typo in comment.
15434 (push_menu_pane): Fix typo in comment.
15435
3b552d56
PJ
15436 * xdisp.c: (display_prop_string_p): Remove unused local declaration
15437 of `Qwhen'.
15438 (single_display_prop_string_p): Remove unused local declarations
15439 of `Qwhen' and `Qmargin'.
15440 (string_buffer_position): Remove unused variable `around'.
15441 (store_frame_title): Remove unused variable `width'.
15442
15c565ac
PJ
15443 * window.c: Don't define max.
15444 (coordinates_in_window): Remove unused variable `uy'.
15445
a8818eb9
PJ
15446 * widget.c: Don't define max.
15447
996fee11
PJ
15448 * process.c: Don't define max.
15449 (create_process): Remove unused variable `buffer'.
15450
496e1a5b
GM
154512001-10-23 Gerd Moellmann <gerd@gnu.org>
15452
c2d53558 15453 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 15454
5905ae8b
EZ
154552001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
15456
15457 * xfaces.c (Finternal_set_lisp_face_attribute)
15458 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
15459 frame is on a windowed display.
15460
24db49fb
GM
154612001-10-23 Gerd Moellmann <gerd@gnu.org>
15462
c2d53558
SM
15463 * dispnew.c (sync_window_with_frame_matrix_rows):
15464 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
15465 of marginal areas.
15466
c2d53558 15467 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 15468
f0487f05
EZ
154692001-10-23 Andreas Schwab <schwab@suse.de>
15470
15471 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
15472 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
15473
f0a48a01
GM
154742001-10-23 Gerd Moellmann <gerd@gnu.org>
15475
c2d53558 15476 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
15477 REAL_END. Notice if cursor gets overwritten.
15478 (notice_overwritten_cursor): Take X positions as parameters.
15479 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
15480 around call to x_draw_glyphs.
15481
f00691a3 154822001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a50a10a0 15483
fc11dff0
PJ
15484 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
15485 instead of C) and usage.
a50a10a0 15486
fc11dff0
PJ
15487 * editfns.c (char-to-string): Fix argument names (use CHAR instead
15488 of C) and usage.
a50a10a0
PJ
15489
15490 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
15491 `left', `max_width' and `max_height'.
15492
8738febd
GM
154932001-10-23 Gerd Moellmann <gerd@gnu.org>
15494
15495 * xdisp.c (display_line): For a tab continued to the next line,
15496 set row's ends_in_middle_of_char_p.
15497
653c329b
GM
154982001-10-22 Gerd Moellmann <gerd@gnu.org>
15499
15500 * xdisp.c (display_line): Fix computation of continuation lines
15501 width for TABs.
15502
f00691a3 155032001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f958c5ac 15504
7ba51063
PJ
15505 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
15506 `Qlaplace'.
15507
f958c5ac
PJ
15508 * fileio.c: Remove unused code.
15509
eb360291
MB
155102001-10-22 Miles Bader <miles@gnu.org>
15511
15512 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
15513 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
15514 Remove `DOC_STRINGS_IN_COMMENTS' cases.
15515
98515cf0
JR
155162001-10-21 Jason Rumney <jasonr@gnu.org>
15517
15518 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
15519
93026d88
EZ
155202001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
15521
15522 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
15523 (Finsert_string): Avoid the multi-line string literals warning.
15524
c9a95b79
MB
155252001-10-22 Miles Bader <miles@gnu.org>
15526
15527 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
15528 (Fdocumentation): Don't use it.
15529 (syms_of_doc): Don't initialize it.
15530
15531 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
15532 * print.c (Fwith_output_to_temp_buffer): Likewise.
15533 * window.c (Fsave_window_excursion): Likewise.
c2d53558 15534 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 15535 (Fsave_restriction): Likewise.
c2d53558
SM
15536 * eval.c (Frun_hooks, Frun_hook_with_args)
15537 (Frun_hook_with_args_until_failure)
15538 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
15539 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
15540 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
15541 (Funwind_protect, Fcondition_case): Likewise.
15542 * coding.c (Ffind_operation_coding_system): Likewise.
15543 * keyboard.c (Ftrack_mouse): Likewise.
15544
a3b10252
MB
155452001-10-21 Miles Bader <miles@gnu.org>
15546
c2d53558 15547 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
15548 (Fmake_hash_table): Add usage: string to doc string.
15549 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 15550 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
15551 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
15552 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
15553 (Fml_prefix_argument_loop): Likewise.
15554
f00691a3 155552001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c6f73eec 15556
c2d53558 15557 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 15558
c6f73eec
PJ
15559 * sysdep.c (init_sys_modes): Change doc-string comments to `new
15560 style' [w/`doc:' keyword].
15561
15562 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
15563 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
15564 comments to `new style' [w/`doc:' keyword].
15565
3cf3436e
JR
155662001-10-21 Jason Rumney <jasonr@gnu.org>
15567
15568 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
15569
c169b8f1
JR
15570 * w32term.c (remember_mouse_glyph): New function.
15571 (w32_mouse_position): Use it.
15572 (note_mouse_movement): If the mouse moved off the glyph, remember
15573 its new position.
c2d53558 15574
4fdd691b
JR
15575 * w32term.h (struct w32_output): Correct spelling of x_compatible.
15576 (w32_display_info): Add mouse_face_overlay.
15577
c169b8f1
JR
15578 * w32term.c (notice_overwritten_cursor): Renamed from
15579 note_overwritten_text_cursor. Rewritten to take glyph widths into
15580 account.
15581 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
15582 (fast_find_string_pos): New function.
15583 (fast_find_position): Return the correct vpos. Add parameter
15584 STOP. In the final row, stop before glyphs having STOP as object.
15585 Don't consider glyphs that are not from a buffer.
15586 (fast_find_position) [0]: Add a presumably more correct version
15587 for after 21.1.
15588 (expose_window_tree, expose_frame): Don't compute intersections here.
15589 (expose_window): Do it here instead.
15590 (expose_window_tree, expose_window, expose_line): Return 1 when
15591 overwriting mouse-face.
15592 (expose_window): If W is the window currently being updated, mark
15593 the frame garbaged.
15594 (expose_frame): If mouse-face was overwritten, redo it.
15595 (x_use_underline_position_properties): New variable.
15596 (syms_of_xterm): DEFVAR_BOOL it.
15597 (x_draw_glyph_string): Add comment to use it in future.
15598 (x_draw_glyph_string): Restore clipping after drawing box.
15599 Fix a computation of the underline position.
15600 (w32_get_glyph_string_clip_rect): Minor cleanup.
15601 (x_fill_stretch_glyph_string): Remove an assertion.
15602 (x_produce_glyphs): Don't convert multibyte characters
15603 to unibyte characters in unibyte buffers.
15604 (cursor_in_mouse_face_p): New function.
15605 (x_draw_stretch_glyph_string): Use it to choose a different GC
15606 when drawing a cursor within highlighted text. Don't draw
15607 background again if it has already been drawn.
15608 (x_draw_glyph_string_box): Don't draw a full-width
15609 box just because the glyph row's full_width_p flag is set.
15610 (x_draw_glyphs): Fix computation of rightmost x for
15611 full-width rows.
15612 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
15613 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
f63fd14e 15614 change bottom shadow accordingly. Some cleanup.
c169b8f1
JR
15615 (x_update_window_end): Handle overwritten mouse face
15616 also for tool bar windows.
15617 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
15618 DRAW is DRAW_IMAGE_RAISED.
15619 (clear_mouse_face): Return 1 if text with mouse face was
2c568af5
SM
15620 actually redrawn. Make the function static.
15621 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
c169b8f1
JR
15622 optimize away highlighting if we pass over that same overlay again.
15623 (note_mouse_highlight): Call mouse_face_overlay_overlaps
15624 to detect a case where we have to highlight a different region
15625 despite not having left the currently highlighted region.
15626 Set mouse_face_overlay in the x_display_info. Avoid changing the
15627 mouse pointer shape when show_mouse_face has already done it, or
15628 there is no need. Handle mouse-face and help-echo in strings.
15629 (glyph_rect): New function.
15630 (w32_mouse_position): Use it to raise the threshold for mouse
15631 movement event generation.
15632 (w32_initialize_display_info): Initialize the x_display_info's
15633 mouse_face_overlay.
15634 (w32_set_vertical_scroll_bar): Don't clear a zero height
15635 or width area.
15636 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
15637 a widget to zero height.
15638
3cf3436e 15639 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 15640 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
15641 equivalents in menu_items.
15642 (w32_menu_show): Don't overwrite an item's name with its key
15643 description in case the description is a multibyte string.
15644 (single_submenu): Some cleanup.
15645
15646 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
15647 (postprocess_image): New function.
15648 (lookup_image): Call it for all image types except PostScript.
15649 (x_kill_gs_process): Call postprocess_image.
15650 (tiff_error_handler, tiff_warning_handler): New functions.
15651 (tiff_load): Install them as handlers.
15652 (x_kill_gs_process): Recognize if someone has cleared the image
15653 cache under us.
15654 (valid_image_p): Protect better against invalid image
15655 specifications. Previous code could signal an error.
15656 (Fx_hide_tip, Fshow_tip): Doc fix.
15657 (Fv_max_tooltip_size): New variable.
15658 (syns_of_xfns): DEFVAR_LISP it.
15659 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
f63fd14e 15660 window buffer to *tip* right after creating the frame. Set frame's
3cf3436e
JR
15661 window_width. Use a maximum tooltip size specified by
15662 Vx_max_tooltip_size, if that has valid contents.
15663 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
15664 Make sure the tooltip is completely visible.
15665 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
15666 (Fx_create_frame): Adjust the frame's height for presence
15667 of the tool bar before calling x_figure_window_size.
15668 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
15669 when the window gets smaller.
15670 (x_set_foreground_color): Set frame's cursor_pixel.
15671 (x_set_foreground_color, x_set_background_color): Cleaned up.
15672 (x_set_font): Handle case of x_new_fontset returning the same name
15673 as before, although there was a change in fontsets.
15674
386ca361
MB
156752001-10-21 Miles Bader <miles@gnu.org>
15676
c2d53558 15677 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
15678 (Flogxor): Add usage: string to doc string.
15679 * charset.c (Fstring): Likewise.
15680 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
15681 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
15682
f00691a3 156832001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14ff1ee0 15684
03be2694
PJ
15685 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
15686
15687 * alloc.c: Reindent DEFUNs with doc: keywords.
15688
15689 * abbrev.c (Finsert_abbrev_table_description): Reindent.
15690
14ff1ee0
PJ
15691 * frame.c: Change doc-string comments to `new style' [w/`doc:'
15692 keyword].
15693
2f147815 15694See ChangeLog.9 for earlier changes.
6922b018
KH
15695
15696;; Local Variables:
49b3bd82 15697;; coding: iso-2022-7bit
6922b018 15698;; End:
2a34a036 15699
2f147815 15700 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
2a34a036
GM
15701 Copying and distribution of this file, with or without modification,
15702 are permitted provided the copyright notice and this notice are preserved.
ab5796a9
MB
15703
15704;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4