*** empty log message ***
[bpt/emacs.git] / src / ChangeLog
CommitLineData
f7e22385
JR
12004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
2
3 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
4 reload it.
5
2bf436c3
JD
62004-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7
16ceacc2
JD
8 * macmenu.c (_widget_value): Added lname and lkey.
9 (single_submenu): Set lname and lkey in widget_value
10 instead of name and key.
11 (update_submenu_strings): New function.
12 (set_frame_menubar): Remove call to inhibit_garbage_collection,
13 call update_submenu_strings.
14
2bf436c3
JD
15 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
16 instead of name and key.
17 (update_submenu_strings): New function.
18 (set_frame_menubar): Remove call to inhibit_garbage_collection,
ec867797 19 call update_submenu_strings.
2bf436c3
JD
20
21 * gtkutil.h (_widget_value): Added lname and lkey.
22
11715f92
ST
232004-08-30 Steven Tamm <steventamm@mac.com>
24
25 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
26 by using different names for inner loop variables.
27
5500be54
JD
282004-08-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
29
059cd329
JD
30 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
31 from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
32
5500be54
JD
33 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
34 tool bar items is 0.
35
383418e5
ST
362004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
37
38 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
39 strings in menu items.
40 (single_submenu): Use ENCODE_MENU_STRING
41 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
42 button release isn't passed to event loop
43 (add_menu_item): Use SetMenuItemWithCFString
44
6eb3ee72
ST
452004-08-26 Steven Tamm <steventamm@mac.com>
46
47 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
48 tool-bar/menu click
49 * macfns.c (Fx_file_dialog): Implemented using NavServices
50
10b43ac3
JD
512004-08-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
52
2728b5d0
JD
53 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
54
10b43ac3
JD
55 * xfns.c (x_window_to_frame, x_any_window_to_frame)
56 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
57 (x_top_window_to_frame): Return 0 if wdesc is None.
58
2ee3b79e
RS
592004-08-22 Richard M. Stallman <rms@gnu.org>
60
61 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
62 HAVE_TERMIOS]: If there's no char for this signal, drop through
63 and use system calls.
64
65 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
66
9a1ba2ea
KS
672004-08-20 Kim F. Storm <storm@cua.dk>
68
69 * process.c (wait_reading_process_output): Rename from
70 wait_reading_process_input. All uses changed.
71 (wait_reading_process_output_1): Rename from
72 wait_reading_process_input_1. All uses changed.
73
74 * dispnew.c (Fsleep_for): Remove obsolete code.
75
295f3b30
KH
762004-08-20 Kenichi Handa <handa@m17n.org>
77
78 * syntax.c (skip_chars): Fix for unibyte case.
79
27615979
SM
802004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
81
82 * syntax.c (char_quoted): Mixup byte/char pos.
83 (back_comment): Fixup globals in all cases.
84
00267f94
JD
852004-08-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
86
87 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
88 passing it to gtk_window_set_title.
89
2439909e
KS
902004-08-19 Kim F. Storm <storm@cua.dk>
91
6ba0f14c
KS
92 * process.c (wait_reading_process_input): Clean up.
93 Add wait_for_cell, wait_proc, and just_wait_proc args
94 to avoid overloading `read_kbd' and `do_display' args.
95 Change read_kbd arg to int. All callers changed.
96
2439909e
KS
97 * process.c (process_send_signal): Use CDISABLE.
98
99 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
100
101c421e
KS
1012004-08-18 Kim F. Storm <storm@cua.dk>
102
103 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
104 forward to wait_reading_process_input via DO_DISPLAY arg.
105 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
106 object, only process output from that process; also inhibit
107 running timers if DO_DISPLAY==-2.
108
c438dc33
KS
1092004-08-17 Kim F. Storm <storm@cua.dk>
110
111 * process.c (process_send_signal): Fix last change--use
112 _POSIX_VDISABLE instead of CVDISABLE when available.
113
8afc13c6
RS
1142004-08-16 Richard M. Stallman <rms@gnu.org>
115
116 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
117 Set VQUIT and VINTR chars to the standard ones if they are unset.
118 [AIX]: Don't do that here. And don't force VINTR to standard
119 when SIGNALS_VIA_CHARACTERS.
120
c438dc33 121 * process.c (process_send_signal)
8afc13c6
RS
122 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
123 Do nothing if the character is CVDISABLE.
124
125 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
126
c438dc33 127 * intervals.c (move_if_not_intangible):
8afc13c6
RS
128 Force POSITION to be between BEGV and ZV.
129
6dad1714
JPW
1302004-08-14 John Paul Wallington <jpw@gnu.org>
131
132 * buffer.c (Frestore_buffer_modified_p): Doc fix.
133
134 * fileio.c (Fread_file_name): Doc fix.
135
136 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
137
2bd77330
LT
1382004-08-09 Luc Teirlinck <teirllm@auburn.edu>
139
140 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
141
c90e7e43
LT
1422004-08-08 Luc Teirlinck <teirllm@auburn.edu>
143
144 * keyboard.c: Declare Qdisabled_command_function instead of
8392e138 145 Qdisabled_command_hook.
c90e7e43 146 (Fcommand_execute): Use Qdisabled_command_function instead of
8392e138 147 Qdisabled_command_hook.
c90e7e43
LT
148 (syms_of_keyboard): Ditto.
149
81909a1a
LT
1502004-08-07 Luc Teirlinck <teirllm@auburn.edu>
151
152 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
153 (syms_of_keymap) <key-translation-map>: Doc fixes.
154
0cedd530
SM
1552004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
156
1725a7c9
SM
157 * window.c (window_list_1): YAILOM.
158
0cedd530
SM
159 * fileio.c (make_temp_name): Handle multibyte prefixes.
160
2515a131
LT
1612004-08-06 Luc Teirlinck <teirllm@auburn.edu>
162
163 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
164 Doc fix.
165
c8b20fb7
KH
1662004-08-03 Kenichi Handa <handa@m17n.org>
167
168 * coding.c (decode_coding_string): Adjust coding->consumed, and
169 etc. with shrinked_bytes.
170
fb8b092b
KS
1712004-08-03 Kim F. Storm <storm@cua.dk>
172
173 * indent.c (compute_motion): Fix check for full width window
174 in non-window case. Do not count left truncation glyph on
175 window systems.
176
df133612
LT
1772004-08-02 Luc Teirlinck <teirllm@auburn.edu>
178
179 * data.c (Finteractive_form): Doc fix.
180
0f7a93c1
KS
1812004-08-02 Kim F. Storm <storm@cua.dk>
182
183 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
184 properly accounting for continuation glyph on non-window systems.
185 (Fcompute_motion): Use actual window width if WIDTH is nil, and
186 actual window width/height if TOPOS is nil, properly accounting for
187 continuation glyphs on non-window systems, and optional header lines.
188 (vmotion): Let compute_motion calculate actual window width.
189
190 * window.c (window_scroll_line_based): Let compute_motion
191 calculate actual window width.
192
f491e1ed
KS
1932004-08-02 Kim F. Storm <storm@cua.dk>
194
195 * process.c (read_process_output): Use whole read buffer.
196 Don't trigger adaptive read buffering on errors.
197
83f64226
LT
1982004-07-31 Luc Teirlinck <teirllm@auburn.edu>
199
200 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
201
202 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
203
204 * callint.c (Fcall_interactively): Doc fix.
205
8afc13c6
RS
2062004-07-30 Richard M. Stallman <rms@gnu.org>
207
208 * abbrev.c (Fexpand_abbrev): Undo previous change.
209
7c111482
KS
2102004-07-30 Kim F. Storm <storm@cua.dk>
211
212 * editfns.c (Fformat): Allocate extra (dummy) element in info.
213
ee945d08
LT
2142004-07-28 Luc Teirlinck <teirllm@auburn.edu>
215
216 * eval.c (Fdefvar, Fdefconst): Doc fixes.
217
3f911c94
KS
2182004-07-27 Kim F. Storm <storm@cua.dk>
219
220 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
221 we have ensured that the glyph fits on the current line (or returned
222 MOVE_LINE_CONTINUED otherwise).
223
f29ff8c7
KS
2242004-07-26 Kim F. Storm <storm@cua.dk>
225
226 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
227 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
228 if target position is at end of display line but char is not a newline.
229
81159bb9
RS
2302004-07-25 Richard M. Stallman <rms@gnu.org>
231
ab431b61
RS
232 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
233 instead of ON_VERTICAL_BORDER, when on scroll bar.
234 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
235
236 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
237
f29ff8c7 238 * window.c (Fcoordinates_in_window_p):
81159bb9
RS
239 Take account of FRAME_INTERNAL_BORDER_WIDTH.
240
241 * alloc.c (check_cons_list): New function (contents commented out).
242
fc820cc5
LT
2432004-07-24 Luc Teirlinck <teirllm@auburn.edu>
244
245 * xfaces.c (Fcolor_supported_p): Doc fix.
246
247 * frame.c (Fselect_frame, Fset_frame_selected_window)
248 (Fframe_visible_p, Fraise_frame): Doc fixes.
249
289978b5
LT
2502004-07-24 Richard M. Stallman <rms@gnu.org>
251
7630911d
RS
252 * keyboard.h (not_single_kboard_state): Declared.
253
254 * fileio.c (Fwrite_region): Doc fix.
255
256 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
257
258 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
259 only when a real abbrev is present.
260
289978b5
LT
261 * xfns.c (x_icon_verify): New function.
262 (Fx_create_frame): Use it.
263
63cc10ae
KS
2642004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
265
266 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
267
36f826d4
KS
2682004-07-21 Kim F. Storm <storm@cua.dk>
269
270 * window.h (struct glyph_matrix): New members nrows_scale_factor
271 and ncols_scale_factor.
272
273 * window.c (make_window): Initialize nrows_scale_factor and
274 ncols_scale_factor members.
275
276 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
277 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
278 (required_matrix_height): Apply nrows_scale_factor.
279 (required_matrix_width): Apply ncols_scale_factor.
280
281 * xdisp.c (display_line): Increment nrows_scale_factor and set
282 fonts_changed_p if past last allocated row.
283 (append_glyph, append_composite_glyph, produce_image_glyph)
284 (append_stretch_glyph): Increment ncols_scale_factor and set
285 fonts_changed_p if current area is full.
286
5fc1c546
JD
2872004-07-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
288
289 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
290
cb7516e5
LT
2912004-07-19 Luc Teirlinck <teirllm@auburn.edu>
292
293 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
294 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
295 (Fset_window_start, Fscroll_up, Fscroll_down)
296 (Fother_window_for_scrolling, Fscroll_other_window)
297 (Fsave_window_excursion, Fset_window_vscroll)
298 (syms_of_window) <window-size-fixed>: Doc fixes.
299
dda741ec
JR
3002004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp> (tiny change)
301
302 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
303 ENCODE_SYSTEM for filenames.
304
bfcf6608
ST
3052004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
306
307 * mac.c (sys_select): Block input around call to
308 ReceiveNextEvent to prevent breakage. Correctly handle
309 blocking on event queue only by calling ReceiveNextEvent
310 instead of select (since GUI events aren't on an fd).
311 (sys_read): Remove function
312 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
313
e082ac9d
ST
3142004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
315
316 * mac.c (sys_select): Redo sys_select to use alarm-based
cb7516e5 317 polling instead of 1 sec timeouts (like solaris).
e082ac9d 318
cb7516e5 319 * macterm.c (x_make_frame_visible): Comment in polling on
e082ac9d
ST
320 frame creation.
321
322 * keyboard.c: Undef SIGIO on Carbon
323
324 * atimer.c (alarm_signal_handler): Call alarm handlers after
325 scheduling.
326
327 * eval.c (Feval): Remove quit_char test
328
329 * process.c (wait_reading_process_input): Remove clearing
330 stdin for select call on process input.
331
4b9da0fb
LT
3322004-07-18 Luc Teirlinck <teirllm@auburn.edu>
333
1204e81c
LT
334 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
335 capitalization error in docstring.
4b9da0fb 336
26503ad2
JB
3372004-07-17 Juanma Barranquero <lektu@terra.es>
338
339 * keyboard.c (not_single_kboard_state): Do nothing unless
340 MULTI_KBOARD is defined.
341
3751eb00
RS
3422004-07-17 Richard M. Stallman <rms@gnu.org>
343
344 * window.c (coordinates_in_window): Inside the window but outside
345 its box to the L or R, return ON_VERTICAL_BORDER.
346 (window_list_1): Rotate the list to start with WINDOW.
347
348 * print.c (print_preprocess): Test for print_depth at limit
349 before entering in being_printed.
350
351 * keyboard.c (not_single_kboard_state): New function.
352 (stuff_buffered_input): Now no-op only if no SIGTSTP.
353
354 * frame.c (Fdelete_frame): If we're in single_bboard_state on
355 this kboard, and we delete its last frame, go to any_kboard_state.
356
357 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
358
62eb6ca9
JR
3592004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp> (tiny change)
360
361 * w32fns.c (Fx_file_dialog): Encode strings in system coding
362 system before passing them to OS functions for display.
363
0f6af254
DK
3642004-07-15 David Kastrup <dak@gnu.org>
365
f9253326
KS
366 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
367 Apparently fixes an abort condition.
0f6af254 368
386c8f42
LT
3692004-07-14 Luc Teirlinck <teirllm@auburn.edu>
370
371 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
372 instead of a cons.
373
366511da
MB
3742004-07-14 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
375
376 * keyboard.c (echo_dash): Do nothing if there already is a dash
377 at the end of the echo string.
378
f85409d3
KS
3792004-07-12 Kim F. Storm <storm@cua.dk>
380
381 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
382 if GC_MARK_STACK.
383
0ba2e87b
LT
3842004-07-10 Luc Teirlinck <teirllm@auburn.edu>
385
da38045d
LT
386 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
387
0ba2e87b
LT
388 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
389 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
390 (Freplace_buffer_in_windows, Fset_window_buffer)
391 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
392 (syms_of_window): Expand docstring of `display-buffer-function'.
393
5668fbb8
LT
3942004-07-09 Luc Teirlinck <teirllm@auburn.edu>
395
396 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
397 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
398 that time values of the type (HIGH . LOW) are considered obsolete.
399
a085bf9d
LT
4002004-07-06 Luc Teirlinck <teirllm@auburn.edu>
401
669de2fb
LT
402 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
403 docstring.
404
bac66325 405 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
a085bf9d 406
8e975df9
JPW
4072004-07-06 John Paul Wallington <jpw@gnu.org>
408
409 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
410
fa164e6a
JPW
411 * fns.c (Fclear_string): Signal an error if STRING is not a string.
412
2bac9bb1
JD
4132004-07-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
414
415 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
416 instead of CGMainDisplayID (only in OSX 10.2 and later).
417
316ef0dc
JPW
4182004-07-04 John Paul Wallington <jpw@gnu.org>
419
420 * fileio.c (read_file_name_completion_ignore_case): New variable.
421 (syms_of_fileio): Declare and initialise it.
422 (Fread_file_name): Bind `completion-ignore-case' to respect it.
423
2a1a35c6
EZ
4242004-07-03 Eli Zaretskii <eliz@gnu.org>
425
426 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
427 for event.x and event.y.
428
33a72331
KH
4292004-07-01 Kenichi Handa <handa@m17n.org>
430
431 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
432 after getting a new string by pre-write-conversion.
433
07a6ab76
SM
4342004-06-30 Stefan <monnier@iro.umontreal.ca>
435
436 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
437 (x_calc_absolute_position): Remove unused var `child'.
438
439 * xfaces.c (x_supports_face_attributes_p)
440 (Fdisplay_supports_face_attributes_p): YAILOM.
441 (tty_supports_face_attributes_p): Remove unused var `i'.
442
443 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
444 back_unibyte_ok.
445
446 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
447
448 * fontset.c (Fset_fontset_font): Remove unused vars `family' and `registry'.
449
450 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
451
f96ec754
AS
4522004-06-30 Andreas Schwab <schwab@suse.de>
453
454 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
455 (Finit_image_library): Pass LIBRARIES through to
456 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
457 (lookup_image_type): Pass Qnil as second argument to
458 Finit_image_library.
459
460 * lisp.h: Declare Finit_image_library.
461
59feca74 4622004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
c8d09ad8 463
31983645
AS
464 * macterm.c (do_window_activate, do_window_deactivate): Remove.
465 (XTread_socket): Send mouse button events to the toolbox
466 dispatcher even when the mouse is grabbed. Don't process window
467 activate events for non-Emacs windows. Replace function calls to
468 do_window_activate and do_window_deactivate with their contents.
469 Reset mouse grabbing status when a window is deactivated.
59feca74 470
c61278bb
ST
4712004-06-29 Steven Tamm <steventamm@mac.com>
472
473 * macterm.c (mac_get_emulated_btn)
474 (mac_event_to_emacs_modifiers): Fix emulated mouse button
475 support to correctly mask out modifiers.
476
c3762cbd
DK
4772004-06-29 David Kastrup <dak@gnu.org>
478
479 * search.c (Fset_match_data): Allow buffer before end of list
480 which can happen if set-match-data is using a pre-consed list.
481
c61278bb 4822004-06-28 Steven Tamm <steventamm@mac.com>
e439b925
ST
483
484 * macterm.c (XTread_socket): Correctly set the frame position
485 after the window is moved.
486
74cdfe05
JD
4872004-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
488
489 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
490 gpix and gmask just before return to avoid memory leak.
03ecb80f
JD
491 (xg_get_image_for_pixmap): Add workaround for monochrome displays
492 so insensitive and activated icons look ok.
74cdfe05 493
ef544dc8
JR
4942004-06-27 Jason Rumney <jasonr@gnu.org>
495
496 * w32fns.c (file_dialog_callback): Disable edit control if set
497 to directories only on CDN_INITDONE message.
498 (Fx_file_dialog): Default to directories only when prompt starts
499 with "Dired".
500
7b7990cc
KS
5012004-06-25 Kim F. Storm <storm@cua.dk>
502
503 * alloc.c (allocate_misc): Update total_free_markers.
504 (free_misc): New function.
505 (safe_alloca_unwind, free_marker): Use it.
506
507 * lisp.h (free_misc): Add prototype.
508
509 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
510
d8c379f8
RS
5112004-06-24 Richard M. Stallman <rms@gnu.org>
512
513 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
514 (syms_of_emacs): Lisp variables deleted.
515
559cdd07
DK
5162004-06-23 David Kastrup <dak@gnu.org>
517
94939b84
DK
518 * search.c (Freplace_match): Adjust the match-data more thoroughly
519 when replacing strings in the buffer.
520 (Fmatch_data): When INTEGERS is non-nil and the last match was in
521 a buffer, add the buffer as last element to the match data.
522 (Fset_match_data): If an additional element of the match-data is a
523 buffer, restore it to last_thing_searched.
c8d09ad8 524 (save_search_regs): Save last_thing_searched as part of the match data.
559cdd07
DK
525 (restore_match_data): Restore it again.
526
dce417e7
LT
5272004-06-23 Luc Teirlinck <teirllm@auburn.edu>
528
529 * keymap.c (Ftext_char_description): Doc fix.
530 * doc.c (Fsnarf_documentation): Doc fix.
531
ef54b2d0
KS
5322004-06-22 Kim F. Storm <storm@cua.dk>
533
b5bc4d05
KS
534 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
535
ef54b2d0
KS
536 * lisp.h (struct Lisp_Save_Value): New member dogc.
537 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
538 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
539 (SAFE_FREE_LISP): New macro.
540
541 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
542 (make_save_value): Init new dogc member.
543 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
544
545 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
546 SAFE_FREE_LISP macros.
547
3d33d993
KS
5482004-06-22 Kim F. Storm <storm@cua.dk>
549
550 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
551 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
552 in that memory area are unknown to GC. Add comments.
553
554 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
555
5c917f98
KS
5562004-06-21 Kim F. Storm <storm@cua.dk>
557
558 * lisp.h (MAX_ALLOCA): Define here.
559 (safe_alloca_unwind): Add prototype.
560 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
561
562 * alloc.c (safe_alloca_unwind): New function.
563
564 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
565
566 * charset.c (Fstring): Use SAFE_ALLOCA.
567
568 * coding.c (MAX_ALLOCA): Remove define.
569
570 * data.c (MAX_ALLOCA): Remove define.
571 (Faset): Use SAFE_ALLOCA.
572
573 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
574
575 * fns.c (string_make_multibyte, string_to_multibyte)
576 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
577 (MAX_ALLOCA): Remove define.
578 (Fbase64_encode_region, Fbase64_encode_string)
579 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
580 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
581 memory leak if encoding fails.
582
583 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
584
9a09408e
EZ
5852004-06-21 Eli Zaretskii <eliz@gnu.org>
586
587 * print.c (Fwith_output_to_temp_buffer): Doc fix.
588
376de739
RS
5892004-06-20 Richard M. Stallman <rms@gnu.org>
590
591 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
592
593 * search.c (match_limit): Cleaner err msg when no match data available.
594
595 * window.c (syms_of_window): Doc fix.
596
597 * keyboard.c (command_loop_1): Handle values `only' and `identity'
598 for Vtransient_mark_mode.
599
600 * buffer.c (syms_of_buffer): Doc fix.
601
acd81db9
DK
6022004-06-21 David Kastrup <dak@gnu.org>
603
604 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
605 and unbinding of `case-fold-search' according to
606 `completion-ignore-case' around calls of string-match and
607 predicates, respectively. Should give satisfactory performance
608 in all relevant cases.
609
f303762d
JD
6102004-06-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
611
95911c74
JD
612 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
613 clip_x/y_origin.
614
a6cb6b78
JD
615 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
616
f303762d
JD
617 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
618
619 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
620 on Mac OSX.
621
bbdb2684
LT
6222004-06-16 Luc Teirlinck <teirllm@auburn.edu>
623
624 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
625
5ea48b1c
KS
6262004-06-16 Kim F. Storm <storm@cua.dk>
627
628 * dispextern.h (Vimage_types): Remove extern.
629
803aac3e
MB
6302004-06-16 Miles Bader <miles@gnu.org>
631
632 * image.c (lookup_image_type): Initialize image type if necessary.
633
cdc97764
KS
6342004-06-15 Kim F. Storm <storm@cua.dk>
635
c4a5739c
KS
636 * xdisp.c (try_cursor_movement): Exclude header line from scroll
637 margin at top of window.
638 (try_window_reusing_current_matrix): Calculate proper cursor position
639 after scrolling up with non-zero scroll margin, as the old cursor
640 position corresponds to value of PT before executing this command.
641 (try_window_id): Consider scroll margin at bottom of window too;
642 otherwise we fail to scroll when hl-line-mode is enabled.
643
cdc97764
KS
644 * syntax.c (skip_chars): Only recognize [:class:] when it has the
645 proper format and class is a lower-case word.
646
5b166323
JD
6472004-06-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
648
649 * gtkutil.c (xg_get_image_for_pixmap): New function.
c8d09ad8 650 (xg_get_gdk_pixmap_and_mask): Remove.
5b166323
JD
651 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
652 xg_get_gdk_pixmap_and_mask.
cdc97764 653
5b166323
JD
654 * xterm.h (struct x_display_info): Typo in comment fixed.
655
1ebd4f78
JB
6562004-06-14 Juanma Barranquero <lektu@terra.es>
657
658 * dispextern.h (Vimage_types): Make it conditional on
659 HAVE_WINDOW_SYSTEM.
660
661 * image.c (Vimage_types): Move from xdisp.c.
662 (Vimage_type_cache): New variable.
663 (define_image_type): New argument indicating whether an image
664 library was loaded; cache loaded status and return t on success,
665 nil otherwise.
666 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
667 (w32_delayed_load): New function to load an image library from a
668 list of possible filenames.
669 (init_xpm_functions, init_png_functions, init_jpeg_functions)
670 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
c8d09ad8 671 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
1ebd4f78
JB
672 (Finit_image_library): New function, extracted from `init_image'.
673 Try to initialize an image library on demand and cache whether we
674 were successful or not.
675 (syms_of_image): Initialize `Vimage_types' and
676 `Vimage_type_cache'. Add recognized image types to Vimage_types.
677 Export `init-image-library'.
678 (init_image): Remove initialization of all image types, except xbm
679 and pbm.
680
681 * xdisp.c (Vimage_types): Delete (moved to image.c).
682
904ee128
AS
6832004-06-14 Andreas Schwab <schwab@suse.de>
684
685 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
686 Avoid calling specbind when completion-regexp-list is empty.
687
092de21d
RS
6882004-06-13 Richard M. Stallman <rms@gnu.org>
689
690 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
691 (re_wctype, re_iswctype, re_wctype_to_bit):
692 Non-function definitions moved here from regex.c.
1ebd4f78 693
092de21d
RS
694 * regex.c (re_wctype, re_iswctype): Function defs longer static.
695 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
696 (re_wctype, re_iswctype, re_wctype_to_bit):
697 Non-function definitions moved to regex.h.
698
699 * window.c (Fselect_window): Doc fix.
700
701 * syntax.c: Include regex.h.
702 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
703 If requested, make a list of classes, then check the scanned
704 chars for membership in them.
705 (in_classes): New function.
706 Doc fix.
707
708 * keyboard.c (cmd_error): Don't call any_kboard_state
709 if inside a recursive edit level.
710
7112004-06-13 Lorentey K\e,Aa\e(Broly <lorentey@elte.hu>
712
713 * keyboard.c (command_loop): Call any_kboard_state before
714 command_loop_2 when at top level.
715
3ebc0939
AS
7162004-06-13 Andreas Schwab <schwab@suse.de>
717
cea5d0d4
AS
718 * print.c (print_object): Always use %ld for printing EMACS_INT.
719
720 * keyboard.c (cancel_hourglass_unwind): Return a value.
721 (modify_event_symbol): Always use %ld for printing EMACS_INT.
722 (Fexecute_extended_command): Likewise.
723
724 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
725 avoid clashes.
726 (SYNTAX): Likewise.
727 (SYNTAX_WITH_FLAGS): Likewise.
728 (SYNTAX_MATCH): Likewise.
729
730 * syntax.c (char_quoted): Avoid warning about undefined operation.
731 (find_defun_start): Likewise.
732 (scan_lists): Likewise.
733 (INC_FROM): Likewise.
734 (scan_sexps_forward): Likewise.
735
be8c4ce4
AS
736 * image.c: Include <ctype.h>.
737
3ebc0939
AS
738 * xfaces.c (face_attr_equal_p): Declare parameters.
739
6fb41b5b
KH
7402004-06-13 Kenichi Handa <handa@m17n.org>
741
742 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
743
fc3095ce
EZ
7442004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
745
746 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
747
66189a40
KH
7482004-06-12 Kenichi Handa <handa@m17n.org>
749
750 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
751 ccl_prog_stack_struct and update it.
752 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
753 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
754 ccl->eof_ic on EOF.
755 (ccl_debug_hook): New function.
756 (struct ccl_prog_stack): New member eof_ic.
757 (ccl_driver): Handle EOF in subrountine call correctly.
758
7592004-06-11 Kenichi Handa <handa@m17n.org>
760
761 * coding.c (decode_coding_string): Check CODING_FINISH_INTERRUPT.
762
1da71023
KS
7632004-06-11 Kim F. Storm <storm@cua.dk>
764
765 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
766
e9efcef4
JB
7672004-06-11 Juanma Barranquero <lektu@terra.es>
768
769 * keyboard.c (Fposn_at_point): Doc fix.
770
9b9ceb61
DK
7712004-06-11 David Kastrup <dak@gnu.org>
772
773 * search.c (match_limit): Don't flag an error if match-data
774 exceeding the allocated search_regs.num_regs gets requested, just
775 return Qnil.
776
6e87ac8f
MB
7772004-06-08 Miles Bader <miles@gnu.org>
778
779 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
780
0b0dea7b
JB
7812004-06-07 Juanma Barranquero <lektu@terra.es>
782
783 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
784 (Fcurrent_time_string, Fcurrent_time_zone)
785 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
786
a0a23346
MB
7872004-06-07 Miles Bader <miles@gnu.org>
788
08384afd 789 * xfaces.c (struct named_merge_point): New type.
a0a23346
MB
790 (push_named_merge_point): New function.
791 (merge_named_face): New function.
792 (merge_face_ref, face_at_buffer_position, face_at_string_position):
793 Use `merge_named_face'.
794 (merge_face_inheritance): Function removed.
c8d09ad8 795 (merge_face_ref): Rename from `merge_face_vector_with_property'.
a0a23346
MB
796 Add new `err_msgs' and `named_merge_points' args. Return error
797 status. Only print error messages if ERR_MSGS is true. Don't try to
798 do :inherit attribute validation.
799 (merge_face_heights): Handle `unspecified' in both directions.
800 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
801 Call `merge_face_ref' instead of `merge_face_inheritance'.
802 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
803 (compute_char_face, face_at_buffer_position)
804 (face_at_string_position): Call `merge_face_ref' instead of
805 `merge_face_vector_with_property'.
806
12d5b185
KH
8072004-06-07 Kenichi Handa <handa@m17n.org>
808
809 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
810 the necessary places.
811
2e2d7ee6
KS
8122004-06-07 Kim F. Storm <storm@cua.dk>
813
814 * process.c (Fdelete_process): Undo 2004-05-28 change.
815 Instead, call status_notify also for network process.
816 (status_message): Use process instead of status as arg.
817 Give messages "deleted" or "connection broken by remote peer" for
818 an exited network process.
819 (status_notify): Change call to status_message.
820 (read_process_output): Increase readmax to 4096. Do not increase
821 buffer size for datagram channels (default is now large enough).
822
fcf0d299
ST
8232004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
824
825 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
826 problem due to newly defined variable.
827
0722292b
MB
8282004-06-06 Miles Bader <miles@gnu.org>
829
830 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
831 immediately if non-interactive or not initialized.
832
ddfb8369
RS
8332004-06-05 Richard M. Stallman <rms@gnu.org>
834
835 * minibuf.c (Fcompleting_read): Doc fix.
836
57015754
AS
8372004-06-05 Andreas Schwab <schwab@suse.de>
838
839 * macfns.c (x_create_tip_frame): Fix declaration after statement.
840
23715ea6
JB
8412004-06-05 Juanma Barranquero <lektu@terra.es>
842
843 * keymap.c (Fdescribe_vector): Fix docstring.
844 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
845
8e330b22
MB
8462004-06-05 Miles Bader <miles@gnu.org>
847
848 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
849 attributes have different values than the default face.
850
9742a3a6
EZ
8512004-06-04 Eli Zaretskii <eliz@gnu.org>
852
853 * xfaces.c (x_supports_face_attributes_p): Make this function
854 conditional on HAVE_WINDOW_SYSTEM.
c8d09ad8
SM
855 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
856 Don't call x_supports_face_attributes_p if it was not compiled in.
9742a3a6 857
9717e36c
MB
8582004-06-04 Miles Bader <miles@gnu.org>
859
860 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
861 from Ftty_supports_face_attributes_p.
862 (x_supports_face_attributes_p): New function.
863 (Ftty_supports_face_attributes_p): Function deleted.
864 (Fdisplay_supports_face_attributes_p): New function.
865 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
f9711de4 866 (face_attr_equal_p): New function.
9717e36c
MB
867 (lface_equal_p): Use it.
868
52deb19f
JB
8692004-06-03 Juanma Barranquero <lektu@terra.es>
870
871 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
872 (Vw32_color_map): Fix typo in docstring.
873 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
874 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
875 Make argument names match their use in docstring.
876
86d373e6
JB
8772004-06-02 Juanma Barranquero <lektu@terra.es>
878
879 Work around bugs/problems with MinGW builds of graphics libraries
880 called from MSVC builds of Emacs.
881
882 * image.c (lookup_image): Make pointer to img static.
883 (png_read_from_memory): Disable "global" optimization.
884
2fb0ce67
SM
8852004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
886
c8d09ad8
SM
887 * eval.c (Fcondition_case): Fix usage. Simplify.
888
2fb0ce67
SM
889 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
890
50bf7673
ST
8912004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
892
893 * macfns.c: Don't include ccl.h.
894 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
86d373e6
JB
895 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
896 TextUtils.h.
c8d09ad8 897 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
50bf7673
ST
898 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
899 display height/width.
900 (compute_tip_xy, Vx_max_tooltip_size): Declare.
901 (unwind_create_tip_frame, compute_tip_xy): New functions.
902 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
903 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
904 and last_show_tip_args.
2fb0ce67 905
50bf7673
ST
906 * macgui.h [!MAC_OSX]: Include Gestalt.h.
907 (Cursor, No_Cursor): New defines.
c8d09ad8 908 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
50bf7673
ST
909 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
910
911 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
912
913 * macterm.c: Don't include Gestalt.h.
914 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
915 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
916 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
917 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
918 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
919 (construct_mouse_click, XTmouse_position)
920 (x_scroll_bar_report_motion, x_calc_absolute_position)
921 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
922 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
923 (note_mouse_movement): Clear the mouse face and reset the pointer
924 shape when the pointer goes outside the frame without grabbing.
925 (mac_front_window): New function.
926 (mac_window_to_frame): New macro.
927 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
928 (do_window_activate, do_window_deactivate, do_app_resume)
929 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
930 (do_zoom_window, mac_do_receive_drag, XTread_socket)
931 (mac_check_for_quit_char): Use mac_front_window and/or
932 mac_window_to_frame.
933 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
934 scroll-bar click event.
935 (mac_define_frame_cursor): Change the pointer shape.
c8d09ad8 936 (x_free_frame_resources): Reset tip_window to NULL when it is disposed.
50bf7673 937 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
c8d09ad8 938 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
50bf7673
ST
939 (do_window_update): Don't do anything if the updated window is the
940 tooltip window.
941 (do_mouse_moved): Handle mouse movement events here (previously in
942 XTread_socket). Clear the mouse face if
943 dpyinfo->mouse_face_hidden is set.
944 (do_os_event, do_events): Remove (now in XTread_socket).
945 (XTread_socket): Immediately return if interrupt_input_blocked.
c8d09ad8
SM
946 Loop until all the events in the queue are processed.
947 Rearrange codes for mouse grabbing. Add tooltip support. Include the
50bf7673
ST
948 contents of do_os_event and do_events. Remove mouse movement
949 handling (now in do_mouse_moved). Add the case where
950 Vmouse_highlight has an integer value.
951 (NewMacWindow): Remove.
952 (make_mac_frame): Do what NewMacWindow previously did. Don't do
953 excess initializations.
954 (make_mac_terminal_frame): Previous initializations in
955 make_mac_frame are moved here.
c8d09ad8
SM
956 (mac_initialize_display_info):
957 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
50bf7673
ST
958
959 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
960 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
961
08fd1251
RS
9622004-05-29 Richard M. Stallman <rms@gnu.org>
963
964 * lisp.h (truncate_undo_list): Update decl.
965
966 * alloc.c (undo_outer_limit): New variable.
967 (syms_of_alloc): Defvar it.
968 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
969
970 * undo.c (truncate_undo_list): New arg LIMITSIZE.
971
972 * alloc.c (lisp_align_malloc): Check for base == 0
973 regardless of HAVE_POSIX_MEMALIGN.
974 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
975
227ef0ff
SM
9762004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
977
978 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
979 (marker_blocks_pending_free): Remove.
980 (Fgarbage_collect): Sweep after cleaning up undo-lists.
981 Mark the undo lists after claning them up.
982 Don't free block in marker_blocks_pending_free.
983 (mark_buffer): Don't mark undo_list.
984 (gc_sweep): Sweep hash-tables and strings first.
985 Do free marker blocks that are empty.
986
034a6113
SM
9872004-05-28 Jim Blandy <jimb@redhat.com>
988
989 * regex.c (print_partial_compiled_pattern): Add missing 'break'
990 after 'case wordend'. For symbeg and symend, print to stderr,
991 like the other cases.
992
33594a8d
NF
9932004-05-28 Noah Friedman <friedman@splode.com>
994
995 * process.c (Fdelete_process): Do not call remove_process.
996
ce50a847
SM
9972004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
998
999 * alloc.c (struct backtrace): Remove.
1000 (Fgarbage_collect): Use the new mark_backtrace.
1001
1002 * eval.c (mark_backtrace): New function.
1003
1004 * minibuf.c (run_exit_minibuf_hook): New function.
1005 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
1006 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
1007
1e8dae36
KS
10082004-05-27 Kim F. Storm <storm@cua.dk>
1009
1010 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
1011 over display properties, e.g. images, that replace buffer text.
1012
846faa3b
KS
10132004-05-25 Kim F. Storm <storm@cua.dk>
1014
1015 * alloc.c (marker_blocks_pending_free): New var.
1016 (gc_sweep): Store free marker blocks on that list.
1017 (Fgarbage_collect): Free them after undo-list cleanup.
1018
1019 * process.c (wait_reading_process_input): Check connect_wait_mask
1020 before actually accepting connection in case it has already been
1021 accepted due to recursion.
1022
6239a668
KH
10232004-05-23 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu> (tiny change)
1024
ce50a847
SM
1025 * coding.c (Fset_safe_terminal_coding_system_internal):
1026 Set suppress_error in safe_terminal_coding, not terminal_coding.
6239a668 1027
71d5a208
RS
10282004-05-22 Richard M. Stallman <rms@gnu.org>
1029
1030 * alloc.c (Fmake_string): Doc fix.
1031
1032 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
1033 and the alist pairs too.
1034
1035 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
1036
1037 * emacs.c (main): Update copyright year.
1038
1039 * fileio.c (Fread_file_name): Expand DIR if not absolute.
1040
1041 * insdel.c (del_range_2, replace_range): Don't write an anchor
1042 if the gap is empty.
1043
1044 * xdisp.c (try_scrolling): If scroll-up-aggressively or
1045 scroll-down-aggressively is small but positive, put point
1046 near the screen edge.
1047
f63fd14e
JB
10482004-05-22 Juanma Barranquero <lektu@terra.es>
1049
1050 * keymap.c (Fdefine_key): Doc fix.
1051
4d12067c
KS
10522004-05-22 Kim F. Storm <storm@cua.dk>
1053
1054 * alloc.c (struct backtrace): Add debug_on_exit member.
1055 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
1056 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
1057 the removed cons cells.
1058 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
1059 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
1060 any cons cells pointing to unallocated stings.
1061 Do not lisp_free any marker blocks, as there may still be pointers
1062 to them from buffer undo lists at this stage of GC.
1063
1064 * keyboard.c (struct backtrace): Add debug_on_exit member.
1065 (Fcommand_execute): Clear it.
1066
931285e2
LT
10672004-05-20 Luc Teirlinck <teirllm@auburn.edu>
1068
1069 * intervals.c (lookup_char_property): Do not prematurely return nil.
1070
669fa600
SM
10712004-05-19 Jim Blandy <jimb@redhat.com>
1072
1073 Add support for new '\_<' and '\_>' regexp operators, matching the
f63fd14e 1074 beginning and end of symbols.
4d12067c 1075
669fa600
SM
1076 * regex.c (enum syntaxcode): Add Ssymbol.
1077 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
1078 (re_opcode_t): New opcodes `symbeg' and `symend'.
1079 (print_partial_compiled_pattern): Print the new opcodes properly.
1080 (regex_compile): Parse the new operators.
ce50a847 1081 (analyse_first): Skip sym(beg|end) (they match only the empty string).
669fa600
SM
1082 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
1083 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
1084 (re_match_2_internal): Match symbeg and symend.
1085
1086 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
1087
0d8c2e5c
KS
10882004-05-19 Kim F. Storm <storm@cua.dk>
1089
1090 * .gdbinit (xsymbol): Fix last change.
1091
669fa600
SM
10922004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
1093
1094 * .gdbinit (xprintstr): New fun.
1095 (xstring, xprintsym): Use it.
1096
1097 * w32proc.c (create_child): Use INTMASK.
1098
1099 * alloc.c (Fgarbage_collect): Do all the marking before flushing
1100 unmarked elements of the undo list.
1101
9a6a4c40
DP
11022004-05-18 David Ponce <david@dponce.com>
1103
1104 * print.c (print): Reset print_depth before to call print_object.
1105
f3c4ec74
JR
11062004-05-18 Jason Rumney <jasonr@gnu.org>
1107
1108 * w32console.c: Prefix RIF functions with w32con_ to avoid
1109 namespace clash with functions in term.c and w32term.c.
1110
1111 * w32menu.c (add_menu_item, w32_menu_display_help)
1112 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
1113
0d8c2e5c 1114 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
f3c4ec74 1115
6be49c3a
EZ
11162004-05-18 Eli Zaretskii <eliz@gnu.org>
1117
4d0b9a0a
EZ
1118 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
1119
6be49c3a
EZ
1120 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
1121 with make_number.
1122 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
1123 with XINT.
1124
0bc90bba
KS
11252004-05-18 Kim F. Storm <storm@cua.dk>
1126
89d19988
KS
1127 * blockinput.h (INPUT_BLOCKED_P): New macros.
1128
1129 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
1130 (Ftop_level): Unblock input if blocked.
1131
0bc90bba
KS
1132 * buffer.h (GET_OVERLAYS_AT): New macro.
1133 * msdos.c (IT_note_mouse_highlight): Use it.
1134 * textprop.c (get_char_property_and_overlay): Use it.
1135 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
1136 * xfaces.c (face_at_buffer_position): Use it.
1137
1138 * print.c (print_object): Increase buf size.
1139
653bd0f6
JR
11402004-05-17 Jason Rumney <jasonr@gnu.org>
1141
1142 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
1143 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
1144 Lisp_Object using i member.
1145 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
1146 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
1147 consistently.
1148
1149 * w32proc.c (create_child): Use make_number instead of masking pid.
1150
1151 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
1152 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
1153 Use EQ to compare Lisp_Objects.
1154 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
1155
1156 * w32term.c (w32_num_mouse_buttons): Rename from
1157 Vw32_num_mouse_buttons and make it an int.
1158
1159 * w32.c (init_environment): Use it.
1160
1161 * w32fns.c (w32_wnd_proc): Likewise.
1162
1163 * w32proc.c (w32_pipe_read_delay): Rename from
1164 Vw32_pipe_read_delay and make it an int.
1165
1166 * w32.c (_sys_read_ahead): Use it.
1167
1168 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
1169
1170 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
1171
1172 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
1173 (key_event): Don't mix Lisp_Object and int.
1174
1175 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
1176
1177 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
1178 modifiers in language change event.
1179
54b53ba7
KS
11802004-05-17 Kim F. Storm <storm@cua.dk>
1181
1182 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
1183 Such objects may be freed markers which still exist on an undo list.
1184
6e86a75d
JB
11852004-05-16 Juanma Barranquero <lektu@terra.es>
1186
1187 * data.c (Fset_default): Make argument names match their use in
1188 docstring.
1189
fc80da24
AS
11902004-05-15 Andreas Schwab <schwab@suse.de>
1191
1192 * emacs.c (gdb_array_mark_flag): Define.
1193 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
1194
c1380aa6
EZ
11952004-05-15 Eli Zaretskii <eliz@gnu.org>
1196
1197 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
1198 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
1199 defined for the MS-DOS build.
1200
89458937
SM
12012004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
1202
1203 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
1204
08020f9a
KH
12052004-05-14 Kenichi Handa <handa@m17n.org>
1206
1207 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
1208
a433994a
ST
12092004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1210
1211 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
1212 section to frame.c section.
1213 (Fxw_display_color_p, Fx_file_dialog): Declare if
89458937 1214 HAVE_WINDOW_SYSTEM defined.
0d8c2e5c 1215
a433994a 1216 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
0d8c2e5c 1217
a433994a 1218 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
0d8c2e5c 1219
a433994a
ST
1220 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
1221 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
1222 (XTread_socket): Fix int/Lisp_Object mixup.
1223 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
0d8c2e5c 1224
a433994a
ST
1225 * macterm.h (struct frame, struct face, struct image)
1226 (display_x_get_resource, Fx_display_color_p)
89458937
SM
1227 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
1228 Add prototypes.
a433994a 1229
b51a51b9
KS
12302004-05-14 Kim F. Storm <storm@cua.dk>
1231
1232 * process.c (wait_reading_process_input): Make reentrant.
1233 Make Available and Connecting non-static. Save and restore value
1234 of waiting_for_user_input_p.
1235
2bde1dd8
KS
12362004-05-13 Kim F. Storm <storm@cua.dk>
1237
1238 * keyboard.c (mark_kboards): Don't mark x and y members
1239 that are overloaded in selection request events.
1240
a267ab4d
SM
12412004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
1242
1243 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
1244
eb15ce9e
GM
12452004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
1246
1247 * window.c (Fdisplay_buffer, Fsplit_window)
1248 (split-height-threshold): Doc fix.
1249
7fc92635
JB
12502004-05-13 Juanma Barranquero <lektu@terra.es>
1251
1252 * xfaces.c (Ftty_supports_face_attributes_p)
1253 (Finternal_copy_lisp_face): Fix typo in docstring.
1254 (Finternal_get_lisp_face_attribute): Fix docstring.
1255
1ec2a572
JD
12562004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1257
1258 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
1259
ae9292e0
ST
12602004-05-11 Steven Tamm <steventamm@mac.com>
1261
1262 * macfns.c (Fx_create_frame): Default to using tool-bar by
1263 setting tool-bar-lines to 1 in default-frame-alist.
1264
12652004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ea1aaa6f
ST
1266
1267 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
1268 (xpm_get_color_table_v, xpm_make_color_table_h)
1269 (xpm_put_color_table_h, xpm_get_color_table_h)
1270 (xpm_str_to_color_key, xpm_load_image, xpm_load)
1271 (syms_of_image): Support XPM on Carbon Emacs. Does not
a267ab4d 1272 depend on libXpm, but only supports XPM version 3 without extensions.
ea1aaa6f 1273
fe97e8df
ST
12742004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1275
a267ab4d 1276 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
fe97e8df
ST
1277 instead of FRAME_X_P
1278
b47e779e
KS
12792004-05-11 Kim F. Storm <storm@cua.dk>
1280
1281 * process.c (read_process_output): Grow decoding_buf when needed;
1282 this could cause a crash in allocate_string and compact_small_strings.
1283
cdc9b845
EZ
12842004-04-29 Jim Blandy <jimb@redhat.com>
1285
1286 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
1287 against proper opcode.
1288
aa7094ba
JB
12892004-05-10 Juanma Barranquero <lektu@terra.es>
1290
1291 * process.c (Fstart_process): Fix docstring.
1292
1293 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
1294 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
1295 (Fsplit_char, Fchar_charset): Make argument names match their use
1296 in docstring.
1297
e109331a
RS
12982004-05-10 Richard M. Stallman <rms@gnu.org>
1299
1300 * print.c (print_preprocess): Use being_printed, loop_count and
1301 halftail to detect overdeep nesting and cyclic cdr chains.
1302
9a28b921
AS
13032004-05-10 Andreas Schwab <schwab@suse.de>
1304
1305 * lisp.h: Declare Fmake_symbolic_link.
1306
1307 * fileio.c (Frename_file): Remove extra argument in call to
1308 Fmake_symbolic_link.
1309
e2c02c1a
KS
13102004-05-10 Kim F. Storm <storm@cua.dk>
1311
1312 * xdisp.c (calc_line_height_property): Use string position when
1313 object is a string.
1314
cfe9d13e
KH
13152004-05-10 Kenichi Handa <handa@m17n.org>
1316
a57e8159
KH
1317 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
1318 inhibit-modification-hooks to t temporarily before calling
1319 Ferase_buffer.
1320
1321 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
1322 inhibit-modification-hooks to t temporarily before calling
1323 Ferase_buffer.
1324
1325 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
1326 inhibit-modification-hooks to t temporarily before calling
1327 Ferase_buffer.
1328
cfe9d13e
KH
1329 * fns.c (count_combining): Delete it.
1330 (concat): Don't check combining bytes.
1331
ceb96489
JR
13322004-05-09 Jason Rumney <jasonr@gnu.org>
1333
1334 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
1335 (globals_of_w32fns): Set it.
1336
b1c661c7
JB
13372004-05-09 Piet van Oostrum <piet@cs.uu.nl> (tiny change)
1338
1339 * data.c (Fquo): Simplify.
1340
28712a21
JB
13412004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
1342
1343 * data.c (Fquo): If any argument is float, do the computation in
1344 floating point.
1345
0f0af7a8
JB
13462004-05-08 Juanma Barranquero <lektu@terra.es>
1347
88214ef6
JB
1348 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
1349 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
1350 Fix spelling of Emacs on docstring.
1351 (Fset_process_coding_system, Fprocess_coding_system)
1352 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
1353 Make argument names match their use in docstring.
1354 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
1355 Fix docstring.
1356
0f0af7a8
JB
1357 * editfns.c (Finsert_buffer_substring): Make argument names match their
1358 use in docstring.
1359
1360 * syntax.c (Fmodify_syntax_entry): Fix docstring.
1361
2a316a84
ST
13622004-05-07 Steven Tamm <steventamm@mac.com>
1363
1364 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
1365 around call to ReceiveEvent to avoid certain crashes.
1366
13672004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
0d8c2e5c 1368
2a316a84
ST
1369 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
1370 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
1371 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
1372 Save/restore the current graphics port and device handle when
1373 drawing into an offscreen graphics world.
1374
1375 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
1376 (gif_load): Likewise.
1377
ab80314b
JB
13782004-05-07 Juanma Barranquero <lektu@terra.es>
1379
1380 * window.c (Fset_window_buffer): Fix docstring.
1381
70646bb5
TTN
13822004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
1383
1384 * emacs.c (main) [VMS]: Fix var ref.
1385
b03a4fdd
JB
13862004-05-06 Romain Francoise <romain@orebokech.com> (tiny change)
1387
1388 * data.c (Fsetq_default): Fix docstring.
1389
279d3293
JR
13902004-05-06 Jason Rumney <jasonr@gnu.org>
1391
1392 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
1393 to avoid name clash.
1394
f72b5416
JD
13952004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1396
1397 * fileio.c (barf_or_query_if_file_exists): Use lstat.
1398 (Frename_file): Handle renaming of symlinks across file systems.
440c7d00 1399 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
f72b5416 1400
6ab66799
KS
14012004-05-04 Kim F. Storm <storm@cua.dk>
1402
1403 * xdisp.c (Qtotal): New var.
1404 (syms_of_xdisp): Intern and staticpro it.
1405 (calc_line_height_property): New arg total. Set it if
1406 line-spacing property has format (total . VALUE).
1407 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
1408 Handle total line-spacing property.
1409
ab2d724b
JD
14102004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1411
1412 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
1413 "under" scroll bar when size/position changes.
1414
238add5e
JR
14152004-05-03 Jason Rumney <jasonr@gnu.org>
1416
1417 * makefile.nt: Remove.
1418
1644f4e4
EZ
14192004-05-02 Eli Zaretskii <eliz@gnu.org>
1420
a267ab4d
SM
1421 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
1422 Avoid compiler warnings.
05fdbeb8 1423
1644f4e4
EZ
1424 * Makefile.in (region-cache.o): Depend on config.h.
1425
6cbc951e
SM
14262004-05-02 Romain Francoise <romain@orebokech.com> (tiny change)
1427
1428 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
1429 with continuation lines, too.
1430
2b98b088
TTN
14312004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
1432
1433 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
1434
d9bf7950
SM
14352004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
1436
1437 * xdisp.c (calc_line_height_property): YAILOM (yet another
1438 int/Lisp_Object mixup).
1439
affa509c
EZ
14402004-05-01 Eli Zaretskii <eliz@gnu.org>
1441
1442 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
1443 undo bad effect of pack(4) in some versions of system headers.
1444
07c07cfe
JR
14452004-05-01 Jason Rumney <jasonr@gnu.org>
1446
1447 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
1448
e71caa4e
KS
14492004-04-30 Kim F. Storm <storm@cua.dk>
1450
1451 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
b2b55d03 1452 (syms_of_buffer) <cursor-type>: Doc fix.
e71caa4e
KS
1453
1454 * dispextern.h (struct it): Remove member use_default_face.
1455 Add members override_ascent, override_descent, override_boff.
1456
1457 * xdisp.c (init_iterator): Handle line-spacing float value.
1458 Initialize override_ascent member.
1459 (append_space_for_newline): Reset override_ascent.
1460 Remove use_default_face.
1461 (calc_line_height_property): New function to calculate value of
1462 line-height and line-spacing properties. Look at overlays, too.
1463 Set override_ascent, override_descent, override_boff members when
1464 using another face than the current face. Float values are now
1465 relative to the frame default font, by default; accept a cons
1466 of ratio and face name to specify value relative to a specific face.
1467 (x_produce_glyphs): Use calc_line_height_property.
1468 Use override_ascent etc. when set to handle different face heights.
1469 A negative line-spacing property value is interpreted as a total
1470 line height, rather than inter-line spacing.
1471 (note_mouse_highlight): Allocate room for 40 overlays initially.
1472
0fddae66
SM
14732004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
1474
1475 * data.c (Fsubr_name): New fun.
1476 (syms_of_data): Defsubr it.
1477
712d23dc
KS
14782004-04-29 Kim F. Storm <storm@cua.dk>
1479
1480 * xdisp.c (null_glyph_slice): New var.
1481 (append_glyph, append_composite_glyph, append_stretch_glyph):
1482 Use it to initialize glyph slice.
1483
033ad8c6
SM
14842004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
1485
1486 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
1487 (on_hot_spot_p): Make sure we always return a value.
1488 (Flookup_image_map): Remove unused var ix and iy.
1489 (note_mode_line_or_margin_highlight): Remove unused var `image'.
1490
93397360
EZ
14912004-04-27 Eli Zaretskii <eliz@gnu.org>
1492
1493 * msdos.c (init_environment): If one of the TMP... environment
1494 variables is set to a drive letter without a trailing slash,
1495 append a slash.
1496
0c54865e
EZ
14972004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
1498
1499 * editfns.c (lisp_time_argument): Provide externally.
1500
1501 * fileio.c (Fset_file_times): New function.
1502 (syms_of_fileio): Intern and staticpro it.
1503
d3b111bd
KS
15042004-04-27 Kim F. Storm <storm@cua.dk>
1505
07dc1231
KS
1506 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
1507 header line strings.
1508
360fe9d2
KS
1509 * dispextern.h (struct it): New member use_default_face.
1510
d3b111bd
KS
1511 * xdisp.c (Qline_height): New variable.
1512 (syms_of_xdisp): Intern and staticpro it.
1513 (append_space_for_newline): Partially undo 2004-04-25 change;
1514 add default_face_p arg, and restore callers.
1515 Clear it->use_default_face after use.
1516 (x_produce_glyphs): Set default font for ascii char if
1517 it->use_default_font is set. Change line-spacing property to set
1518 just extra line spacing. Handle new line-height property.
1519
0448588b
AS
15202004-04-26 Andreas Schwab <schwab@suse.de>
1521
1522 * print.c (print_object): Print non-ascii characters in bool
1523 vector representation as octal escapes.
1524
1525 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
1526 * print.c (print_object): Use it instead of BITS_PER_CHAR for
1527 bool vectors.
1528 * lread.c (read1): Likewise.
1529 * alloc.c (Fmake_bool_vector): Likewise.
1530 * data.c (Faref, Faset): Likewise.
1531 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
1532 (mapcar1): Likewise.
d3b111bd 1533
536d6baa
ST
15342004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
1535
1536 * lread.c (init_lread): Fixing typo HAVE_CARBON test logic
1537
ae11577a
MB
15382004-04-26 Miles Bader <miles@gnu.org>
1539
1540 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
1541
e198ba87
JB
15422004-04-26 Juanma Barranquero <lektu@terra.es>
1543
1544 * buffer.c (Fpop_to_buffer): Fix docstring.
1545
f3d5f92d 15462004-04-26 Steven Tamm <steventamm@mac.com>
e198ba87 1547
f3d5f92d
ST
1548 * lread.c (init_lread): Don't display missing lisp directory
1549 warnings with Carbon Emacs because self-contained bundled Emacs
e198ba87 1550 may be built without correct installation path.
f3d5f92d 1551
03e35edc
KS
15522004-04-25 Kim F. Storm <storm@cua.dk>
1553
9ff3aa31
KS
1554 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
1555
1556 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
1557
03e35edc
KS
1558 * xdisp.c (append_space_for_newline): Rename from append_space.
1559 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
1560 (x_produce_glyphs): Handle line-spacing property on newline char.
1561 If value is t, adjust ascent and descent to fit current row height.
1562 If value is an integer or float, set extra_line_spacing to integer
1563 value, or to float value x current line height.
1564
f24814e0
KH
15652004-04-23 Kenichi Handa <handa@m17n.org>
1566
1567 * fontset.c (Finternal_char_font): If POSITION is nil, return
1568 font for displaying CH with the default face.
1569
d814862a
JB
15702004-04-23 Juanma Barranquero <lektu@terra.es>
1571
1572 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
1573
063a45c5
SM
15742004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
1575
1576 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
1577 Don't make assumptions about the relative place of i and val.
1578 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
1579
ae7ab2d3
KS
15802004-04-21 Kim F. Storm <storm@cua.dk>
1581
1582 * dispextern.h (struct glyph_slice): New struct.
1583 (struct glyph): New member slice.
1584 (GLYPH_SLICE_EQUAL_P): New macro.
1585 (GLYPH_EQUAL_P): Use it.
1586 (struct glyph_string): New member slice.
1587 (struct it_slice): New struct.
1588 (struct it): New member slice, add member to stack too.
1589 New member constrain_row_ascent_descent_p.
1590 (image_ascent): Add prototype.
1591
1592 * dispnew.c (buffer_posn_from_coords): Return full image width
1593 and height even for image slices (posn is relative to full image).
1594 (marginal_area_string): Adjust x0,y0 for image slice.
1595
1596 * image.c (image_ascent): Add slice arg; calculate ascent for
1597 image slice (or full image).
1598
1599 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
1600 (syms_of_keyboard): Defsubr them.
1601
1602 * lisp.h (pos_visible_p): Fix prototype.
1603
c62aec78 1604 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
ae7ab2d3
KS
1605 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
1606 (x_draw_image_foreground, x_draw_image_relief)
1607 (x_draw_image_foreground_1, x_draw_image_glyph_string):
1608 Draw sliced images.
1609
1610 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
1611 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
1612 (x_draw_image_foreground, x_draw_image_relief)
1613 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
1614 Draw sliced images.
1615
1616 * w32term.h (image_ascent): Remove prototype.
1617
1618 * window.c (Fpos_visible_in_window_p): Return pixel position if
1619 PARTIALLY arg is non-nil. Simplify. Doc fix.
1620 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
1621 to return/set vscroll in pixels.
1622
1623 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
1624
1625 * xdisp.c (Qslice): New variable.
1626 (syms_of_xdisp): Intern and staticpro it.
1627 (pos_visible_p): Return pixel position in new x and y args.
1628 (init_iterator): Reset it->slice info.
1629 (handle_display_prop): Parse (slice ...) property.
1630 (push_it, pop_it): Save/restore slice info.
1631 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
1632 force repositioning of tall row if window is vscrolled, as that
1633 would reset vscroll.
1634 (append_space): Set it->constrain_row_ascent_descent_p to avoid
1635 increasing row height if row is non-empty.
1636 (fill_image_glyph_string): Copy slice info.
1637 (take_vertical_position_into_account): Simplify.
1638 (produce_image_glyph): Handle iterator slice info, setup glyph
1639 slice info. Do not force minimum line height.
1640 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
1641 do not increase height (ascent/descent) of non-empty row when
1642 adding normal character glyph; instead reduce glyph ascent/descent
1643 appropriately; if row is higher than current glyph, adjust glyph
1644 descent/ascent to reposition glyph within the existing row.
1645 Likewise, when char is newline, only set ascent/descent if row is
1646 currently empty.
1647 (note_mouse_highlight): Handle hotspots with sliced image.
1648
1649 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
1650 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
1651 (x_draw_image_foreground, x_draw_image_relief)
1652 (x_draw_image_foreground_1, x_draw_image_glyph_string):
1653 Draw sliced images.
1654
1655 * xterm.h (image_ascent): Remove prototype.
1656
d58f8753
SM
16572004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
1658
1659 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
1660
4ce2719d
JPW
16612004-04-20 John Paul Wallington <jpw@gnu.org>
1662
1663 * fns.c (Fassoc, Feql): Fix indentation.
1664
d58f8753 1665 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
4ce2719d 1666
95f8c3b9
JPW
16672004-04-19 John Paul Wallington <jpw@gnu.org>
1668
1669 * fns.c (Feql): New function.
d58f8753 1670 (syms_of_fns): Defsubr it.
95f8c3b9 1671
b7e85537
JR
16722004-04-18 Jason Rumney <jasonr@gnu.org>
1673
1674 * w32select.c (Fw32_set_clipboard_data): Get sequence number
1675 after closing the clipboard.
1676
5a72efd4
LT
16772004-04-16 Luc Teirlinck <teirllm@auburn.edu>
1678
1679 * buffer.c (Fbuffer_base_buffer): Doc fix.
1680
20dc8583
KS
16812004-04-17 Kim F. Storm <storm@cua.dk>
1682
60962ec4
KS
1683 * keymap.c (Fkey_description): Add optional PREFIX arg.
1684 Combine prefix with KEYS to make up the full key sequence to describe.
1685 Correlate meta_prefix_char and following (simple) key to describe
1686 as meta modifier. All callers changed.
1687 (describe_map): Rename arg `keys' to `prefix'. Remove local
1688 `elt_prefix' var. Use Fkey_description with prefix instead of
1689 elt_prefix combined with Fsingle_key_description.
1690 (describe_vector): Declare static. Replace arg `elt_prefix' with
1691 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
1692 if !KEYMAP_P. Use Fkey_description with prefix instead of
1693 Fsingle_key_description.
1694
1695 * keymap.h (Fkey_description): Fix prototype.
1696 (describe_vector): Remove prototype.
1697
409368b9
KS
1698 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
1699
20dc8583
KS
1700 * image.c (PNG_BG_COLOR_SHIFT): Remove.
1701 (png_load): Fix calculation of transparent background color on X
1702 and W32 platforms.
1703
75c5501b
JB
17042004-04-16 Juanma Barranquero <lektu@terra.es>
1705
1706 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
1707 not too large before computing how much to scroll.
1708
da879ae8
SM
17092004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
1710
1711 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
1712
d01ca4a8
LT
17132004-04-14 Luc Teirlinck <teirllm@auburn.edu>
1714
1715 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
1716 Add hyperlink to Elisp manual to the docstring.
1717
572943b3
SM
17182004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
1719
1720 * callint.c (fix_command): Use XDCR.
1721
5e30a0fb
NR
17222004-04-14 Nick Roberts <nick@nick.uklinux.net>
1723
1724 * window.c (Fget_lru_window): Doc fix.
1725
a27ddfaf
KS
17262004-04-14 Kim F. Storm <storm@cua.dk>
1727
1728 * editfns.c (Fformat): Fix allocation size of precision array.
1729
1730 * dispnew.c (update_window): Only set changed_p if
1731 scrolling_window actually did scroll.
1732 (scrolling_window): Only return 1 if we actually did scroll.
1733
1734 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
1735 height to glyph height when cursor row is not fully visible.
1736 (make_cursor_line_fully_visible): Add FORCE_P arg to return
1737 failure in case row is higher than window. Callers changed.
1738 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
1739 Try to scroll partially visible, higher-than-window cursor row.
1740 (redisplay_window): Always try to scroll partially visible,
1741 higher-than-window cursor row - both initially and again with
1742 centering_position = 0.
1743 Clear desired matrix before retrying with centering_position = 0.
1744
da879ae8
SM
17452004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
1746
1747 * syntax.c (scan_lists): Simplify backward string scan.
1748 Fix off-by-one boundary check for string and comment fences.
1749
5fc16e8e
SM
17502004-04-13 Joe Buehler <jbuehler@hekimian.com>
1751
1752 * sheap.c, unexcw.c: New files.
1753
c9aac8e6
LT
17542004-04-12 Luc Teirlinck <teirllm@auburn.edu>
1755
1756 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
1757 base buffer has been killed. Correct the error message if the
1758 base buffer does not exist.
1759
1e88a355
SM
17602004-04-12 Joe Buehler <jbuehler@hekimian.com>
1761
1762 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
1763 Cygwin itself. Add support for Xaw3d scrollbars.
1764
1765 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
1766
1767 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
1768
1769 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
1770 before Cygwin unexec.
1771
1772 * Makefile.in: Link changes for Cygwin unexec() support.
1773
8dbff9a0
AS
17742004-04-12 Andreas Schwab <schwab@suse.de>
1775
1776 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
1777
54dffe35
LT
17782004-04-11 Luc Teirlinck <teirllm@auburn.edu>
1779
1780 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
1781 IGNORE argument equals NAME. Doc fix.
1782
99a72bdf
MY
17832004-04-11 Masatake YAMATO <jet@gyve.org>
1784
1e88a355 1785 * buffer.c (fix_start_end_in_overlays): Make overlays
99a72bdf
MY
1786 empty if they are backwards.
1787
40899d7b
SM
17882004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
1789
1790 * xfaces.c (face_color_supported_p): Fix compilation without X11.
1791
f8f853de
SM
17922004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
1793
1794 * doc.c (Fsnarf_documentation): Ignore new file name entries.
1795
c953fe1b
KS
17962004-04-06 Kim F. Storm <storm@cua.dk>
1797
661e85c1
KS
1798 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
1799 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
1800
1801 * w32term.c (w32_read_socket): Set mouse_face_hidden after
1802 clearing highlight.
1803
1804 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
1805
1806 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
1807 clearing highlight.
1808
c953fe1b
KS
1809 * indent.c (vmotion): Do not reserve one column for continuation
1810 marks on window frames.
1811
c1994268
EZ
18122004-04-04 Eli Zaretskii <eliz@gnu.org>
1813
1814 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
1815 from GCC.
1816
9f691b0d
SM
18172004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
1818
1819 * .gdbinit-union: Remove.
1820
1821 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
1822 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
1823 ($nonvalbits): Remove.
1824 ($valmask): Set it by calling xreload to avoid redundancy.
1825
1826 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
1827 (gdb_emacs_intbits): Remove.
1828
7a8560d7
JD
18292004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1830
9f691b0d 1831 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
7a8560d7 1832
3c8111fc
KH
18332004-03-30 Kenichi Handa <handa@m17n.org>
1834
1835 * editfns.c (Fformat): Fix initialization of the array info.
1836
48a0bce4
KS
18372004-03-30 Kim F. Storm <storm@cua.dk>
1838
1839 * xterm.c (x_mouse_click_focus_ignore_position): New var.
1840 (syms_of_xterm): DEFVAR_BOOL it.
1841 (ignore_next_mouse_click_timeout): New var.
1842 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
1843 Use it to filter mouse clicks following focus event.
1844
1cd0066c
KS
18452004-03-29 David Ponce <david@dponce.com>
1846
1847 * callint.c (Fcall_interactively): Fix last change.
1848
adb3b353
SM
18492004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
1850
1851 * eval.c (Fcommandp): Simplify.
1852
1853 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
1854 Extend to handle all kinds of functions.
1855
1856 * lisp.h (Finteractive_form): Declare.
1857
1858 * callint.c (Fcall_interactively): Use it.
1859
6fc4c9c9
KS
18602004-03-26 Kim F. Storm <storm@cua.dk>
1861
1862 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
1863 to catch errors in calc_pixel_width_or_height during redisplay.
1864
abdb9b83
MY
18652004-03-26 Masatake YAMATO <jet@gyve.org>
1866
b17856dd 1867 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
abdb9b83 1868
b17856dd 1869 * lisp.h (fix_start_end_in_overlays): Likewise.
abdb9b83 1870
b17856dd 1871 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
abdb9b83 1872
b17856dd 1873 * editfns.c (Ftranspose_regions): Likewise.
abdb9b83 1874
e8a84b6c
JD
18752004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1876
b17856dd 1877 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
e8a84b6c 1878
36a3fd05
RS
18792004-03-19 Richard M. Stallman <rms@gnu.org>
1880
1881 * s/sol2-6.h: Delete previous change.
1882
ab24c127
KS
18832004-03-19 Kim F. Storm <storm@cua.dk>
1884
1885 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
1886 to_charpos corresponds to newline in right fringe. Use local
1887 BUFFER_POS_REACHED_P macro.
1888
992126de
JD
18892004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1890
1891 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
1892 to compile on non-window system.
1893
45dbfc84
KS
18942004-03-19 Kim F. Storm <storm@cua.dk>
1895
1896 * dispextern.h (calc_pixel_width_or_height): Add prototype.
1897
1898 * image.c (Qcenter): Move to xdisp.c.
1899
1900 * xdisp.c (Qcenter): Declare here.
adb3b353 1901 (syms_of_xdisp): Intern and staticpro it.
45dbfc84
KS
1902 (handle_single_display_prop): Allow space display property on all
1903 platforms.
1904 (display_mode_line): Set mode_line_p before displaying line.
1905 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
1906 handling. Remove complex cases for fringes and scroll-bars.
1907 Add left, right, and center alignment positions. Add text (area)
1908 width/height. Return width or height for image specs.
1909 (produce_stretch_glyph): Improve handling of :align-to. Is now
1910 relative to left of text area by default, but other base offsets
1911 can be specified -- also for text lines.
1912
1913 * term.c (produce_glyphs): Handle IT_STRETCH.
1914 (produce_stretch_glyph): New function to handle space width and
1915 align-to display properties on non-window systems.
1916
37264101
SM
19172004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
1918
1919 * fileio.c (Fread_file_name): Set completion-ignore-case for
1920 case-insensitive systems.
1921
73bc43da
MY
19222004-03-14 Masatake YAMATO <jet@gyve.org>
1923
1924 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
1925 when keymap and cursor are setup.
1926
9062aa89
ST
19272004-03-14 Steven Tamm <steventamm@mac.com>
1928
b17856dd 1929 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
9062aa89 1930
e4b1b5ab
KS
19312004-03-14 Kim F. Storm <storm@cua.dk>
1932
1933 * dispextern.h (x_find_image_file): Add prototype.
1934
1935 * image.c (x_find_image_file): Make extern.
1936
1937 * xfns.c (x_find_image_file): Remove prototype.
1938
a6eeaa81 19392004-03-13 Eli Zaretskii <eliz@gnu.org>
5109b06a 1940
37264101 1941 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
5109b06a 1942
37264101 1943 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
5109b06a 1944
e69cfac2
RS
19452004-03-12 Richard M. Stallman <rms@gnu.org>
1946
1947 * fns.c (internal_equal): New arg PROPS controls comparing
1948 text properties. All callers changed.
1949 (Fequal_including_properties): New function.
1950 (syms_of_fns): defsubr it.
1951
45034953
KS
19522004-03-12 Kim F. Storm <storm@cua.dk>
1953
1954 Fix image support on MAC. From YAMAMOTO Mitsuharu.
37264101 1955
45034953
KS
1956 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
1957 (image_background, image_background_transparent): Fix prototypes.
1958
37264101 1959 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
45034953
KS
1960
1961 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
1962 (x_query_font, x_find_ccl_program, x_set_window_size)
1963 (x_make_frame_visible, mac_initialize, XCreatePixmap)
1964 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
1965 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
1966
1967 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
1968 (x_query_font, x_find_ccl_program, x_set_window_size)
1969 (x_make_frame_visible, mac_initialize, XCreatePixmap)
1970 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
1971 (mac_draw_line_to_pixmap): Add prototypes.
1972
19732004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1974
1975 * macterm.c (XTread_socket): Fix mouse click on tool bar.
1976
a12d3d87
KS
19772004-03-11 Kim F. Storm <storm@cua.dk>
1978
d3ab1cf1
KS
1979 * dispextern.h: Move image related prototypes from xfns.c section
1980 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
1981 HAVE_X_WINDOWS.
37264101 1982
37de9f51 1983 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
37264101 1984 Move gtkutil.o to new GTK_OBJ list.
a12d3d87
KS
1985 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
1986 (GTK_OBJ) [USE_GTK]: New declaration.
1987 (obj): Add $(GTK_OBJ) to list.
1988
5243c06a 19892004-03-11 Steven Tamm <steventamm@mac.com>
5109b06a 1990
5243c06a
ST
1991 * image.c [MAC_OSX]: Include sys/stat.h
1992
1993 * macfns.c (syms_of_macfns): Remove definitions of things now
1994 defined in image.c
1995
c0f97789
KS
19962004-03-11 Kim F. Storm <storm@cua.dk>
1997
1998 The following changes consolidates the identical/similar image
1999 support code previously found in xfns.c, w32fns.c, and macfns.c
2000 into a new file image.c.
2001
2002 * makefile.w32-in (OBJ1): Add image.o.
2003 ($(BLD)/image.$(O)): Add dependencies.
2004
2005 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
2006 (image.o): Add dependencies.
37264101 2007
c0f97789
KS
2008 * image.c: New file with consolidated image support code.
2009 (COLOR_TABLE_SUPPORT): New define to control whether
2010 color table support is available (X only).
2011 (Bitmap_Record): Common name for x_bitmap_record,
2012 w32_bitmap_record, and mac_bitmap_record.
2013 (XImagePtr): Common name for pointer to XImage or equivalent.
2014 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
2015 to XImagePtr on X+MAC, and to HDC on W32.
2016 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
2017 (NO_PIXMAP): Common name for "None" or equivalent.
2018 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
2019 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
2020 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
37264101
SM
2021 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
2022 Define with suitable equivalents on W32 and MAC for code sharing.
c0f97789
KS
2023 (XDrawLine): Define on MAC for code sharing.
2024 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
2025 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
2026 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
2027 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
2028 (x_reference_bitmap, x_create_bitmap_from_data)
2029 (x_create_bitmap_from_file, x_destroy_bitmap)
2030 (x_destroy_all_bitmaps, x_create_bitmap_mask)
2031 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
2032 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
2033 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
2034 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
2035 (define_image_type, lookup_image_type, valid_image_p)
2036 (image_error, enum image_value_type, struct image_keyword)
2037 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
2038 (make_image, free_image, prepare_image_for_display, image_ascent)
2039 (four_corners_best, image_background, image_background_transparent)
2040 (x_clear_image_1, x_clear_image, x_alloc_image_color)
2041 (make_image_cache, free_image_cache, clear_image_cache)
2042 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
2043 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
2044 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
2045 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
2046 (init_image_func_pointer, image_load_quartz2d)
2047 (struct ct_color, init_color_table, free_color_table)
2048 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
2049 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
2050 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
2051 (x_disable_image, x_build_heuristic_mask)
2052 (XBM support, XPM support, PBM support, PNG support, JPEG support)
2053 (TIFF support, GIF support, Ghostscript support): Consolidate image
2054 code from xfns.c, w32fns.c, and macfns.c.
2055 (syms_of_image): Consolidate image related symbol setup here.
2056 (init_image): Consolidate image related initializations here.
37264101 2057
c0f97789
KS
2058 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
2059 and init_image. Remove call to init_xfns.
2060
37264101
SM
2061 * macterm.h (struct mac_bitmap_record): Add file member.
2062 Not currently used, but simplifies code sharing.
c0f97789
KS
2063
2064 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
2065 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
2066 (x_reference_bitmap, x_create_bitmap_from_data)
2067 (x_create_bitmap_from_file, x_destroy_bitmap)
2068 (x_destroy_all_bitmaps, x_create_bitmap_mask)
2069 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
2070 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
2071 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
2072 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
2073 (define_image_type, lookup_image_type, valid_image_p)
2074 (image_error, enum image_value_type, struct image_keyword)
2075 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
2076 (make_image, free_image, prepare_image_for_display, image_ascent)
2077 (four_corners_best, image_background, image_background_transparent)
2078 (x_clear_image_1, x_clear_image, x_alloc_image_color)
2079 (make_image_cache, free_image_cache, clear_image_cache)
2080 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
2081 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
2082 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
2083 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
2084 (init_image_func_pointer, image_load_quartz2d)
2085 (struct ct_color, init_color_table, free_color_table)
2086 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
2087 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
2088 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
2089 (x_disable_image, x_build_heuristic_mask)
2090 (XBM support, XPM support, PBM support, PNG support, JPEG support)
2091 (TIFF support, GIF support, Ghostscript support): Merge with image
2092 code from xfns.c and macfns.c into image.c.
2093 (syms_of_xfns): Move image related symbols to image.c.
2094 (init_external_image_libraries, init_xfns): Remove; initialization
2095 moved to init_image in image.c.
2096
2097 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
2098 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
2099 (x_reference_bitmap, x_create_bitmap_from_data)
2100 (x_create_bitmap_from_file, x_destroy_bitmap)
2101 (x_destroy_all_bitmaps, x_create_bitmap_mask)
2102 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
2103 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
2104 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
2105 (define_image_type, lookup_image_type, valid_image_p)
2106 (image_error, enum image_value_type, struct image_keyword)
2107 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
2108 (make_image, free_image, prepare_image_for_display, image_ascent)
2109 (four_corners_best, image_background, image_background_transparent)
2110 (x_clear_image_1, x_clear_image, x_alloc_image_color)
2111 (make_image_cache, free_image_cache, clear_image_cache)
2112 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
2113 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
2114 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
2115 (struct ct_color, init_color_table, free_color_table)
2116 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
2117 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
2118 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
2119 (x_disable_image, x_build_heuristic_mask)
2120 (XBM support, XPM support, PBM support, PNG support, JPEG support)
2121 (TIFF support, GIF support, Ghostscript support): Merge with image
2122 code from xfns.c and macfns.c into image.c.
2123 (syms_of_xfns): Move image related symbols to image.c.
2124 (init_external_image_libraries, init_xfns): Remove; initialization
2125 moved to init_image in image.c.
2126
2127 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
2128 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
2129 (x_reference_bitmap, x_create_bitmap_from_data)
2130 (x_create_bitmap_from_file, x_destroy_bitmap)
2131 (x_destroy_all_bitmaps, x_create_bitmap_mask)
2132 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
2133 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
2134 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
2135 (define_image_type, lookup_image_type, valid_image_p)
2136 (image_error, enum image_value_type, struct image_keyword)
2137 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
2138 (make_image, free_image, prepare_image_for_display, image_ascent)
2139 (four_corners_best, image_background, image_background_transparent)
2140 (x_clear_image_1, x_clear_image, x_alloc_image_color)
2141 (make_image_cache, free_image_cache, clear_image_cache)
2142 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
2143 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
2144 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
2145 (struct ct_color, init_color_table, free_color_table)
2146 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
2147 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
2148 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
2149 (x_disable_image, x_build_heuristic_mask)
2150 (XBM support, XPM support, PBM support, PNG support, JPEG support)
2151 (TIFF support, GIF support, Ghostscript support): Merge with
2152 w32fns.c and macfns.c image code into image.c.
2153 (syms_of_xfns): Move image related symbols to image.c.
2154 (init_xfns): Remove; initialization moved to init_image in image.c.
2155
2156 * lisp.h (syms_of_image, init_image): Add protoypes.
2157 (init_xfns): Remove prototype.
2158
2159 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
2160 (x_reference_bitmap, x_create_bitmap_from_data)
2161 (x_create_bitmap_from_file, x_destroy_bitmap)
2162 (x_create_bitmap_mask): Move prototypes from dispextern.h.
2163 (gamma_correct) [MAC_OS]: Add prototype.
2164
2165 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
2166 (x_reference_bitmap, x_create_bitmap_from_data)
2167 (x_create_bitmap_from_file, x_destroy_bitmap)
2168 (x_create_bitmap_mask): Move prototypes to dispextern.h.
2169
6eced09c
KH
21702004-03-09 Kenichi Handa <handa@etlken2>
2171
2172 * coding.c (decode_coding_emacs_mule): Handle insufficent source
2173 correctly.
2174
9a7e95f3
RS
21752004-03-04 Richard M. Stallman <rms@gnu.org>
2176
04a6e76b
RS
2177 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
2178
9a7e95f3
RS
2179 * window.c (Fdisplay_buffer): Doc fix.
2180
2181 * buffer.c (Fpop_to_buffer): Doc fix.
2182
6c2488df
KS
21832004-03-03 Kim F. Storm <storm@cua.dk>
2184
2185 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
2186
d8d95bc7
SM
21872004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
2188
2189 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
2190
357589bf
RS
21912004-03-02 Richard M. Stallman <rms@gnu.org>
2192
2193 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
2194
409949b5
KH
21952004-03-02 Kenichi Handa <handa@m17n.org>
2196
2197 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
2198
d24bc50f
KS
21992004-03-02 Kim F. Storm <storm@cua.dk>
2200
2201 * window.h (struct window): New member overlay_arrow_bitmap.
2202
2203 * window.c (make_window): Initialize overlay_arrow_bitmap.
2204
2205 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
2206 implement and integrate multiple overlay arrows with redisplay.
2207 (syms_of_xdisp): DEFVAR_LISP and initialize it.
2208 (last_arrow_position, last_arrow_string): Replace by properties.
2209 (Qlast_arrow_position, Qlast_arrow_string)
2210 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
2211 (syms_of_xdisp): Intern and staticpro them.
2212 (overlay_arrow_string_or_property, update_overlay_arrows)
2213 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
2214 (overlay_arrow_at_row): New functions for multiple overlay arrows.
2215 (redisplay_internal): Use them instead of directly accessing
2216 Voverlay_arrow_position etc. for multiple overlay arrows.
2217 (mark_window_display_accurate): Use update_overlay_arrows.
2218 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
2219 (try_window_id): Use overlay_arrows_changed_p.
2220 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
2221 (display_line): Use overlay_arrow_at_row to check multiple
2222 overlay arrows, and get relevant overlay-arrow-string and
d8d95bc7 2223 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
d24bc50f
KS
2224 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
2225 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
2226
2227 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
2228 (update_window_fringes): Remove unused code.
2229
c1464661
JR
22302004-03-01 Jason Rumney <jasonr@gnu.org>
2231
2232 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
2233
a64387ee
JB
22342004-03-01 Juanma Barranquero <lektu@terra.es>
2235
2236 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
2237
2238 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
2239
334faa08
JD
22402004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2241
2242 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
2243 how many colors can be displayed.
2244
bb62616f
KH
22452004-03-01 Kenichi Handa <handa@m17n.org>
2246
2247 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
2248 correctly.
2249
0fd16104
KS
22502004-02-28 Kim F. Storm <storm@cua.dk>
2251
2252 * dispnew.c (update_window): Update header line also if there are
2253 no other changes in window (move code after set_cursor label).
2254
2255 * lisp.h (mark_window_display_accurate): Remove prototype.
2256
2257 * window.c (window_loop, Fforce_window_update): Force mode line
2258 updates by setting prevent_redisplay_optimizations_p and
2259 update_mode_lines.
2260
b59dd9c8
JD
22612004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2262
d8d95bc7 2263 * xfns.c (x_window): Fix indentation.
b59dd9c8
JD
2264
2265 * xterm.c (x_calc_absolute_position): Call x_real_positions
2266 to get WM window sizes and use those to calculate position.
d8d95bc7 2267 (x_set_offset): Remove code commented out.
b59dd9c8 2268
a874691c
MB
22692004-02-28 Miles Bader <miles@gnu.org>
2270
2271 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
2272
3e0c6482
KS
22732004-02-28 Kim F. Storm <storm@cua.dk>
2274
2275 * keyboard.c (kbd_buffer_store_event_hold): New function to store
2276 an event into kbd fifo, but with special handling of quit event;
2277 a quit event is saved for later, and further events are discarded
2278 until the saved quit event has been processed.
2279 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
2280 (gen_help_event): Store help event in kbd fifo.
2281 (NREAD_INPUT_EVENTS): Remove.
2282 (read_avail_input): Adapt to new read_socket_hook interface.
2283 Remove allocation and initialization of local input_event buffer,
2284 as read_socket_hook stores events directly in fifo. Allocate and
2285 initialize local hold_quit event to handle postponed quit event
2286 (and store it if set by kbd_buffer_store_event_hold).
2287
2288 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
2289 (gen_help_event): Fix prototype.
2290
a64387ee 2291 * macterm.c (XTread_socket): Remove bufp_r and
3e0c6482 2292 numcharsp args. Add hold_quit arg.
f63fd14e 2293 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
2294 directly in fifo using kbd_buffer_store_event_hold.
2295
2296 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
2297 (read_input_waiting): Adapt to new read_socket_hook interface.
2298 Remove allocation and initialization of local input_event buffer,
2299 as read_socket_hook stores events directly in fifo. Allocate and
2300 initialize local hold_quit event to handle postponed quit event
2301 (and store it if set by kbd_buffer_store_event_hold).
2302
a64387ee 2303 * term.c (read_socket_hook): Fix arg list.
3e0c6482
KS
2304
2305 * termhooks.h (read_socket_hook): Fix prototype.
2306
2307 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
2308 numcharsp args. Add hold_quit arg.
f63fd14e 2309 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
2310 directly in fifo using kbd_buffer_store_event_hold.
2311
2312 * w32inevt.h (w32_console_mouse_position): Fix prototype.
2313
2314 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
f63fd14e
JB
2315 Add hold_quit arg. Rework to use just one, local, inev
2316 input_event. Store inev directly in fifo using
3e0c6482
KS
2317 kbd_buffer_store_event_hold. Update count in one place.
2318 Postpone call to gen_help_event until inev is stored; use new
2319 local do_help for this.
2320 Remove local emacs_event in handing of ButtonPress event; just use
2321 inev instead (so no reason to copy it later).
2322
2323 * xsmfns.c (x_session_check_input): Remove numchars arg.
2324
d8d95bc7
SM
2325 * xterm.c (x_focus_changed, x_detect_focus_change):
2326 Remove numchars arg. Always store event into bufp arg.
2327 Return nothing. Callers changed accordingly.
3e0c6482
KS
2328 (glyph_rect): Simplify.
2329 (STORE_KEYSYM_FOR_DEBUG): New macro.
2330 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
2331 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
2332 (current_hold_quit) [USE_GTK]: Add.
2333 (event_handler_gdk): Adapt to new handle_one_xevent.
2334 (handle_one_xevent): Remove bufp_r and numcharsp args.
f63fd14e
JB
2335 Add hold_quit arg. Rework to use just one, local, inev
2336 input_event. Store inev directly in fifo using
3e0c6482
KS
2337 kbd_buffer_store_event_hold. Update count in one place.
2338 Postpone call to gen_help_event until inev is stored; use new
2339 local do_help for this.
2340 Simplify handling of keysyms (consolidate common code). Fix bug
2341 where count was updated with nchars instead of nbytes.
2342 Remove local emacs_event in handing of ButtonPress event; just use
2343 inev instead (so no reason to copy it later).
2344 Remove `out' label. Rename label `ret' to `done'; add various
2345 `goto done' to clarify code flow in deeply nested blocks.
2346 (x_dispatch_event): Simplify as handle_one_xevent now calls
2347 kbd_buffer_store_event itself.
f63fd14e 2348 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
3e0c6482
KS
2349 arg. Call handle_one_xevent with new arglist. Store event from
2350 x_session_check_input in fifo.
2351 [USE_GTK]: Setup current_hold_quit.
2352 Decrement handling_signal before unblocking input.
2353 (x_initialize) [USE_GTK]: Initialize current_count.
2354
2355 * xterm.h (x_session_check_input): Fix prototype.
2356
e3564461 23572004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
a64387ee 2358
d8d95bc7 2359 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
a64387ee 2360
e3564461
ST
2361 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
2362 macgui.h).
a64387ee 2363
e3564461 2364 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
a64387ee 2365
e3564461
ST
2366 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
2367 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
2368 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
2369 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
2370 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
2371 (Bitmap): Remove typedef.
2372 (Pixmap): Change int to GWorldPtr.
2373
d8d95bc7 2374 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
a64387ee 2375
d8d95bc7
SM
2376 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
2377 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
2378 New #define to extract 16-bit depth color components from unsigned
e3564461
ST
2379 long representation.
2380 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
2381 colors used for masks.
2382 (struct mac_display_info): Add color_p. Remove n_cbits.
a64387ee 2383
e3564461
ST
2384 * macfns.c: Include sys/types.h and sys/stat.h.
2385 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
2386 Include QuickTime/QuickTime.h.
2387 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
2388 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
2389 functions defined in macterm.c.
2390 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
2391 (ZPixmap): New #define for compatibility with xfns.c.
2392 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
2393 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
d8d95bc7
SM
2394 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
2395 New functions.
e3564461 2396 (four_corners_best, x_create_x_image_and_pixmap)
d8d95bc7
SM
2397 (x_destroy_x_image, unwind_create_frame, x_disable_image)
2398 (x_edge_detection, init_color_table, colors_in_color_table)
e3564461
ST
2399 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
2400 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
2401 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
2402 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
2403 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
2404 long mixup.
2405 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
2406 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
2407 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
2408 (x_set_cursor_type, Fxw_color_values, valid_image_p)
2409 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
2410 (x_alloc_image_color, clear_image_cache, lookup_image)
2411 (x_find_image_file, xbm_read_bitmap_file_data)
2412 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
2413 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
2414 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
2415 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
2416 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
d8d95bc7 2417 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
e3564461
ST
2418 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
2419 #if 0.
2420 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
2421 #if 0. Free white_relief.gc and black_relief.gc.
d8d95bc7
SM
2422 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
2423 New functions (from xfns.c).
e3564461
ST
2424 (Fx_create_frame): Record unwind_create_frame.
2425 (Fxw_display_color_p): Use dpyinfo->color_p.
2426 (Fx_display_grayscale_p, Fx_display_planes): Don't use
2427 dpyinfo->n_cbits.
2428 (Fx_display_color_cells): Use dpyinfo->n_planes;
2429 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
2430 (Qheuristic, cross_disabled_images, emboss_matrix)
2431 (laplace_matrix): New variables (from xfns.c).
2432 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
2433 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
2434 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
d8d95bc7
SM
2435 (image_background_transparent): New function (from xfns.c).
2436 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
2437 (image_load_quicktime): Add declaration.
2438 [MAC_OSX] (image_load_quartz2d): Likewise.
2439 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
2440 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
d8d95bc7 2441 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
e3564461
ST
2442 (xbm_load_image_from_file, x_laplace_read_row)
2443 (x_laplace_write_row, pbm_read_file): Remove functions.
2444 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
2445 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
2446 (colors_in_color_table): Sync with xfns.c (although not used).
2447 (lookup_rgb_color): Don't lookup color table. Just do gamma
2448 correction.
2449 (COLOR_INTENSITY): New #define (from xfns.c).
d8d95bc7
SM
2450 (x_disable_image): New function (from xfns.c).
2451 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
2452 (x_build_heuristic_mask): Sync with xfns.c.
2453 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
2454 (HAVE_PBM): Remove #ifdef.
2455 (pbm_load): Sync with xfns.c. Set img->width and img->height
2456 before IMAGE_BACKGROUND.
d8d95bc7 2457 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
e3564461
ST
2458 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
2459 Don't enclose with #if HAVE_PNG.
2460 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
d8d95bc7
SM
2461 symbol _CGImageCreateWithPNGDataProvider is defined.
2462 Otherwise use image_load_quicktime.
e3564461 2463 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
d8d95bc7
SM
2464 [HAVE_PNG] (png_load): Sync with xfns.c.
2465 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
2466 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
2467 HAVE_JPEG.
2468 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
2469 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
2470 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
2471 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
2472 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
2473 (tiff_image_p, tiff_load): Don't enclose declarations with #if
2474 HAVE_TIFF.
2475 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
2476 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
2477 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
d8d95bc7
SM
2478 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
2479 New functions (from xfns.c).
e3564461 2480 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
d8d95bc7 2481 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
e3564461
ST
2482 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
2483 Don't enclose with #if HAVE_GIF.
2484 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
2485 animated gif. Otherwise use image_load_quicktime.
2486 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
2487 gif_DrawText to avoid conflict with QuickdrawText.h.
2488 [HAVE_GIF] (gif_load): Sync with xfns.c.
2489 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
2490 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
2491 Ghostscript is not supported yet).
2492 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
2493 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
2494 cross_disabled_images (from xfns.c). Remove #if 0 for supported
2495 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
2496 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
2497 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
d8d95bc7
SM
2498 HAVE_PNG. Call EnterMovies to support animated gifs.
2499 Call init_image_func_pointer to bind a symbol
e3564461 2500 _CGImageCreateWithPNGDataProvider if it is defined.
a64387ee 2501
d8d95bc7 2502 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
e3564461
ST
2503 (x_draw_bar_cursor): Sync declaration with xterm.c.
2504 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
2505 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
2506 graphics).
2507 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
2508 (mac_draw_line_to_pixmap, XCreatePixmap)
2509 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
d8d95bc7
SM
2510 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
2511 New functions.
2512 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
2513 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
2514 Cast bits to char *.
e3564461
ST
2515 (reflect_byte): New function (from w32fns.c).
2516 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
2517 due to byte alignment.
d8d95bc7
SM
2518 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
2519 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
e3564461
ST
2520 (XSetForeground): Remove static (now used in macfns.c).
2521 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
2522 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
2523 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
2524 (x_draw_glyph_string_box, x_draw_image_foreground)
2525 (x_draw_image_foreground_1, x_draw_image_glyph_string)
2526 (x_draw_stretch_glyph_string, x_draw_glyph_string)
2527 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
2528 Sync with xterm.c.
2529 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
2530 than the xterm.c version when a strictly horizontal or vertical
2531 line is drawn.
2532 (XTset_terminal_window): Add static.
2533 (x_make_frame_visible): Add UNBLOCK_INPUT.
2534 (x_free_frame_resources): New funcion (from xterm.c).
2535 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
2536 occurs in tool bar area.
d8d95bc7
SM
2537 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
2538 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
e3564461
ST
2539 Initialize image cache.
2540 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
2541 Enclose unused functions with #if 0.
2542 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
2543 (decode_mac_font_name): New function to apply code conversions
d8d95bc7 2544 from a mac font name to an XLFD font name according to its script code.
e3564461 2545 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
d8d95bc7 2546 font name to a mac font name according to REGISTRY and ENCODING fields.
e3564461
ST
2547 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
2548 whose name starts with `.'.
2549 (init_font_name_table): Use decode_mac_font_name. Add both
2550 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
2551 of a font is smJapanese.
2552 (mac_do_list_fonts): New function to list fonts that match a given
2553 pattern.
2554 (x_list_fonts, XLoadQueryFont): Use it.
2555 (XLoadQueryFont): Set rbearing field for each variable width
2556 character to avoid needless redraw.
2557 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
2558
446f5f3d
KS
25592004-02-26 Kim F. Storm <storm@cua.dk>
2560
af617d0f
KS
2561 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
2562 as read_socket_hook handler on X aborts if buffer is too small
2563 and W32 handler doesn't always check buffer limit.
2564
446f5f3d
KS
2565 * xdisp.c (handle_single_display_prop): Handle left-fringe and
2566 right-fringe similar to a display margin image. Specifically,
2567 the characters having the fringe prop are no longer shown, and
2568 we use IT_IMAGE/next_element_from_image with image_id = -1 to
2569 do this. Set fringe bitmap face_id in it->face_id.
2570 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
2571 still realize it->face (i.e. the fringe bitmap face).
2572
7d8a0b55
MB
25732004-02-25 Miles Bader <miles@gnu.org>
2574
2575 * xdisp.c (check_it): Check string/string_pos consistency.
2576 (init_iterator): Initialize string-related fields properly.
2577
25782004-02-11 Miles Bader <miles@gnu.org>
2579
2580 * xdisp.c (produce_image_glyph): Force negative descents to zero.
2581
25822004-02-10 Miles Bader <miles@gnu.org>
2583
2584 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
2585 BLOCK_INPUT can be nested, so it doesn't make much sense.
2586
a64387ee 25872004-02-24 Michael Mauger <mmaug@yahoo.com>
ce35edd1
JR
2588
2589 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
2590 (xbm_read_bitmap_data): Use unsigned char for image data.
2591
92f5fba2
LT
25922004-02-23 Luc Teirlinck <teirllm@auburn.edu>
2593
2594 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
2595
8565fb3d
JR
25962004-02-22 Jason Rumney <jasonr@gnu.org>
2597
2598 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
2599 correctly over other bitmaps.
2600
a6eeaa81 26012004-02-21 Eli Zaretskii <eliz@gnu.org>
f8125c39
EZ
2602
2603 * emacs.c (USAGE1): Split into two halves.
2604 (USAGE2): Second half of the old USAGE1.
d8d95bc7
SM
2605 (USAGE3): Rename from USAGE2.
2606 (USAGE4): Rename from USAGE3.
f8125c39 2607
4effffca
EZ
26082004-02-21 Juri Linkov <juri@jurta.org>
2609
2610 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
2611 Fix --multibyte. Move --help, --version to USAGE2. Add alias
2612 --file. Fix -f, -l. Sort options. Untabify.
2613 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
2614
923c1e6f
LT
26152004-02-19 Luc Teirlinck <teirllm@auburn.edu>
2616
2617 * category.c (Fdefine_category, Fcategory_docstring)
2618 (Fget_unused_category, Fset_category_table)
2619 (Fcategory_set_mnemonics): Doc fixes.
2620
b0e225fd
KS
26212004-02-20 Kim F. Storm <storm@cua.dk>
2622
2623 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
2624 The following changes are relative to the 2004-01-21 revision.
2625 (NREAD_INPUT_EVENTS): Define as max number of input events to read
2626 in one call to read_socket_hook. Value is 8.
2627 (read_avail_input): Separate and rework handling of read_socket_hook
2628 and non-read_socket_hook cases. Use smaller input_event buffer
d8d95bc7
SM
2629 in read_socket_hook case, and repeat if full buffer is read.
2630 Use new local variable 'discard' to skip input after C-g.
b0e225fd
KS
2631 In non-read_socket_hook case, just use a single input_event, and
2632 call kbd_buffer_store_event on the fly for each character.
2633
b15aa9f9
SM
26342004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
2635
2636 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
2637 Remove unused `gu' alternative.
2638
83c9aa95
AS
26392004-02-19 Andreas Schwab <schwab@suse.de>
2640
2641 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
2642 warning.
2643
cc808173
KS
26442004-02-18 Kim F. Storm <storm@cua.dk>
2645
2646 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
2647 Fix last change.
2648
ab90a54d
KS
26492004-02-17 Kim F. Storm <storm@cua.dk>
2650
b26f249f
KS
2651 * xdisp.c (fast_find_position): Fix return value of new version;
2652 it was inverted compared to the 21.1 version.
2653 (get_window_cursor_type): Don't look at glyph if NULL.
2654 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
0bf7d005 2655
ab90a54d
KS
2656 * keyboard.c: Rework previous change; it didn't consider that the
2657 buf array was allocated on the stack.
2658 (prev_read): Remove variable.
2659 (read_avail_input_buf): New static event buffer array.
b9568dfc 2660 (in_read_avail_input): New static variable to handle re-entrancy.
ab90a54d 2661 (read_avail_input): Change buf to pinter to read_avail_input_buf.
b9568dfc
KS
2662 Use in_read_avail_input to handle re-entrance; when re-entered,
2663 fully initialize and use tmp_buf array instead of read_avail_input_buf.
2664 Do not initialize read_avail_input_buf in full here; instead assume it
ab90a54d
KS
2665 is always cleared on entry. To ensure that, we clear (just) the
2666 entries that were used before we return.
2667 (init_keyboard): Initialize read_avail_input_buf here.
2668
4e039f3f
EZ
26692004-02-16 Jesper Harder <harder@ifa.au.dk> (tiny change)
2670
2671 * cmds.c (Fend_of_line): Doc fix.
2672
7b5368c1
EZ
26732004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
2674
2675 * keyboard.c (prev_read): New static variable.
2676 (read_avail_input): Use it to zero out only those slots in buf[]
2677 that were used last time we were called.
2678
a6eeaa81 26792004-02-16 Eli Zaretskii <eliz@gnu.org>
ca4bc494
EZ
2680
2681 * Makefile.in (obj): Move fringe.o from here...
2682 (XOBJ, MAC_OBJ): ...to here.
2683
159c348e
SE
26842004-02-16 Stephen Eglen <stephen@gnu.org>
2685
2686 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
2687
d2f14999
SM
26882004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
2689
b15aa9f9
SM
2690 * data.c (Fbyteorder):
2691 * fringe.c (Fdefine_fringe_bitmap):
2692 * xdisp.c (handle_single_display_prop):
d2f14999
SM
2693 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
2694
8d50508a
JR
26952004-02-16 Jason Rumney <jasonr@gnu.org>
2696
2697 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
2698
dd4497dc
ST
26992004-02-15 Steven Tamm <steventamm@mac.com>
2700
2701 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
2702 controlling emulation of a three button mouse with option and
2703 command keys.
2704 (Qreverse, mac_get_enumlated_btn): Handle the emulation
b15aa9f9 2705 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
dd4497dc 2706
c9159cb3
KS
27072004-02-15 Kim F. Storm <storm@cua.dk>
2708
2cc52658
KS
2709 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
2710
c9159cb3
KS
2711 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
2712 Perform byte-swapping.
2713
12fde2dc
KS
27142004-02-14 Kim F. Storm <storm@cua.dk>
2715
2716 * dispextern.h (struct draw_fringe_bitmap_params): Change member
2717 bits from char to short to facilitate wider bitmaps.
2718 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
2719 member.
2720
2721 * fringe.c (struct fringe_bitmap): Change member bits from char to
2722 short to facilitate 16 bits wide bitmaps. Modify all standard
2723 bitmaps accordingly.
2724 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
2725 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
2726 (draw_fringe_bitmap): Ditto.
2727 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
2728 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
2729 handle up to 16 bits wide bitmaps.
2730 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
f21a7192 2731 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
12fde2dc
KS
2732
2733 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
2734 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
2735 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
2736
2737 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
2738 so it is no longer necessary to expand them here.
2739
2740 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
2741
9d7271e8
KS
27422004-02-12 Kim F. Storm <storm@cua.dk>
2743
2744 * window.c (Fwindow_fringes): Doc fix.
2745
706c1e4f
JD
27462004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2747
2748 * xselect.c (x_get_foreign_selection): Add new optional parameter
2749 time_stamp.
2750 (Fx_get_selection_internal): Ditto, pass time_stamp to
2751 x_get_foreign_selection.
2752
2753 * data.c (Fbyteorder): New function.
2754
c2d12b5d
JD
27552004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2756
2757 * atimer.c: Move include stdio.h to same place as in other files.
2758
2759 * region-cache.c: Ditto.
2760
2761 * sysdep.c: Ditto.
2762
2763 * xfaces.c: Ditto.
2764
4c1947b9
SS
27652004-02-09 Sam Steingold <sds@gnu.org>
2766
89458937 2767 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
4c1947b9 2768
82722af3
KS
27692004-02-09 Kim F. Storm <storm@cua.dk>
2770
2771 * fringe.c: New file. Move original fringe related declarations
2772 and code from dispextern.h and xdisp.c here.
2773 Rework code to support user defined fringe bitmaps, redefining
2774 standard bitmaps, ability to overlay user defined bitmap with
2775 overlay arrow bitmap, and add faces to bitmaps.
2776 (Voverflow_newline_into_fringe): Declare here.
2777 (enum fringe_bitmap_align): New enum.
2778 (..._bits): All bitmaps are now defined without bitswapping; that
2779 is now done in init_fringe_once (if necessary).
2780 (standard_bitmaps): New array with specifications for the
2781 standard fringe bitmaps.
2782 (fringe_faces): New array.
2783 (valid_fringe_bitmap_id_p): New function.
2784 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
2785 (draw_fringe_bitmap): New function which draws fringe bitmap,
2786 possibly overlaying bitmap with cursor in right fringe or the
2787 overlay arrow in the left fringe.
2788 (update_window_fringes): Do not handle overlay arrow here.
2789 Compare and copy fringe bitmap faces.
2790 (init_fringe_bitmap): New function.
2791 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
2792 define and destroy user defined fringe bitmaps.
2793 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
2794 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
2795 (syms_of_fringe): New function. Defsubr new DEFUNs.
2796 DEFVAR_LISP Voverflow_newline_into_fringe.
2797 (init_fringe_once, init_fringe): New functions.
2798 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
4c1947b9 2799
82722af3
KS
2800 * Makefile.in (obj): Add fringe.o.
2801 (fringe.o): New dependencies.
2802
2803 * dispextern.h (FRINGE_ID_BITS): New definition for number of
2804 bits allocated to hold a fringe number. Increase number of bits
2805 from 4 to 8 to allow user defined fringe bitmaps.
2806 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
2807 left_user_fringe_face_id, right_user_fringe_bitmap,
2808 right_user_fringe_face_id.
2809 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
2810 Move to new file fringe.c.
2811 (MAX_FRINGE_BITMAPS): Define here.
2812 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
2813 and overlay_p. Change member which to int.
2814 (struct redisplay_interface): New members define_fringe_bitmap
2815 and destroy_fringe_bitmap.
2816 (valid_fringe_bitmap_id_p): Add prototype.
2817 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
2818
2819 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
2820 arrows.
2821 (update_frame): Do flush_display if force_flush_display_p to
2822 ensure display (specifically fringes) are updated in a timely
2823 manner when resizing the frame by dragging the mouse.
2824 (update_window_line): Update row if overlay arrow changed.
2825 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
2826 or overlay arrow changed.
2827
2828 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
2829 syms_of_fringe, and init_fringe.
2830
2831 * frame.h (struct frame): New member force_flush_display_p.
2832
2833 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
2834 Add prototypes.
2835
a3993cc8 2836 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
a64387ee 2837 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
a3993cc8
KS
2838 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
2839 Use cursor color for displaying cursor in fringe.
82722af3
KS
2840 (x_redisplay_interface): Add null handlers for
2841 define_fringe_bitmap and destroy_fringe_bitmap functions.
2842
2843 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
2844 xterm.c to handle overlayed fringe bitmaps and to use cursor color
2845 for displaying cursor in fringe.
2846 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
2847 specific functions to define and destroy fringe bitmaps in fringe_bmp.
2848 (w32_redisplay_interface): Add them to redisplay_interface.
2849 (w32_term_init): Call w32_init_fringe instead of explicitly
2850 defining fringe bitmaps in fringe_bmp array.
2851 (x_delete_display): Call w32_reset_fringes instead of explicitly
2852 destroying fringe bitmaps in fringe_bmp array.
2853
2854 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
2855 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
2856 (continued_bits, continuation_bits, ov_bits, first_line_bits)
2857 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
2858 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
2859 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
2860 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
2861 Move fringe handling vars and code to new file fringe.c.
2862 (handle_display_prop): Handle left-fringe and right-fringe
2863 display properties; store user fringe bitmaps in iterator.
2864 (move_it_in_display_line_to): Handle cursor in fringe at eob.
2865 (clear_garbaged_frames): Set force_flush_display_p if resized.
2866 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
2867 (display_line): Handle cursor in fringe at eob.
2868 (display_line): Set row user fringe bitmaps from iterator.
2869
2870 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
2871 Use cursor color for displaying cursor in fringe.
2872 (x_redisplay_interface): Add null handlers for
2873 define_fringe_bitmap and destroy_fringe_bitmap functions.
2874
030400eb
JD
28752004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2876
2877 * macfns.c (Fx_change_window_property): Make doc string and
2878 parameters same as for X version.
2879
2880 * w32fns.c (Fx_change_window_property): Ditto.
2881
3af55251
KS
28822004-02-07 Kim F. Storm <storm@cua.dk>
2883
ec110e9e
KS
2884 * xdisp.c (hscroll_window_tree): Position cursor near to right
2885 margin in hscrolled window when jumping to end of line (rather
2886 than centering cursor).
2887
3af55251
KS
2888 * process.c (wait_reading_process_input): Don't do adaptive read
2889 buffering if waiting for a specific process.
2890
b0c138ce
LT
28912004-02-05 Luc Teirlinck <teirllm@auburn.edu>
2892
2893 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
2894 (Fread_minibuffer, Feval_minibuffer)
2895 (Fread_string, Fread_no_blanks_input)
2896 (Fcompleting_read): Doc fixes.
2897 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
2898 completion-regexp-list. Define Qcase_fold_search and staticpro it.
2899 (read_minibuf): Fix initial comment.
2900 (Ftry_completion, Fall_completions, Ftest_completion): Bind
e8eeaed8 2901 case-fold-search to the value of completion-ignore-case when
b0c138ce
LT
2902 checking completion-regexp-list.
2903 (Fdisplay_completion_list): Make it handle arguments that are
2904 symbols. Doc fix.
2905
9676f5ad 29062004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
64d1e373 2907
9676f5ad 2908 * xterm.h: Add declaration of free_frame_menubar.
64d1e373 2909
9676f5ad
JD
2910 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
2911 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
b0c138ce 2912 (Fx_change_window_property): Add declaration of parameters type and
9676f5ad 2913 format. Remove unused variable cons.
5b698285
JD
2914
2915 * xselect.c: Include stdio,h.
2916
fc1d15f6
KH
29172004-02-05 Kenichi Handa <handa@m17n.org>
2918
ebaff4af
KH
2919 * fns.c (Fset_char_table_range): Fix previous change.
2920
fc1d15f6
KH
2921 * buffer.c (Fset_buffer_multibyte): Fix docstring.
2922
9676f5ad
JD
29232004-02-04 Luc Teirlinck <teirllm@auburn.edu>
2924
2925 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
2926
da75761f
SM
29272004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
2928
2929 * keymap.c (Vmouse_events): Rename from Vmenu_events.
2930 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
2931
13c5d120
KH
29322004-02-04 Kenichi Handa <handa@m17n.org>
2933
2934 * fns.c (Fset_char_table_range): Handle charsets ascii,
2935 eight-bit-control, and eight-bit-graphic correctly.
2936
2883d842
JR
29372004-02-03 Jason Rumney <jasonr@gnu.org>
2938
2939 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
2940
2941 * w32fns.c (x_to_w32_font): Likewise.
2942
69eff41f
JD
29432004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2944
2945 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
2946 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
2947
2948 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
2949 ClientMessages.
2950
2951 * xselect.c: Include termhooks.h and X11/Xproto.h
2952 (x_check_property_data, x_fill_property_data)
2953 (x_property_data_to_lisp, mouse_position_for_drop)
2954 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
da75761f 2955 (Fx_send_client_event): Move here from xfns.c.
69eff41f
JD
2956 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
2957
da75761f 2958 * xfns.c (x-send-client-message): Move to xselect.c
69eff41f
JD
2959 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
2960 OUTER_P.
2961 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
2962 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
2963 if vector_ret_p is true.
2964 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
69eff41f 2965
a6eeaa81 29662004-02-02 Eli Zaretskii <eliz@gnu.org>
dcdbbb5d
EZ
2967
2968 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
2969 basename of FILE relative to it, not FILE itself.
2970
09721b31
KH
29712004-02-02 Kenichi Handa <handa@m17n.org>
2972
2973 * coding.c (coding_restore_composition): Check invalid
2974 composition data more rigidly.
2975
eb996101
LT
29762004-01-30 Luc Teirlinck <teirllm@auburn.edu>
2977
2978 * fileio.c (Fread_file_name_internal): Correctly handle the case
2979 where insert-default-directory is nil.
2980 (Fread_file_name): Always return an empty string if the user exits
2981 with an empty minibuffer. Adapt the docstring accordingly.
2982 (syms_of_fileio): Adapt the docstring of insert-default-directory
2983 to the change in Fread_file_name.
2984
a6eeaa81 29852004-01-29 Eli Zaretskii <eliz@gnu.org>
a0367d42
EZ
2986
2987 * alloca.c [!alloca]: Fix the prototype for xfree.
2988
13f52ed8
KH
29892004-01-29 Kenichi Handa <handa@m17n.org>
2990
2991 * fns.c (string_char_to_byte): Optimize for ASCII only string.
2992 (string_byte_to_char): Likewise.
2993
d57625a0
JR
29942004-01-28 Peter Runestig <peter@runestig.com>
2995
2996 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
2997
a64387ee 29982004-01-27 Steven Tamm <steventamm@mac.com>
911c78b4
ST
2999
3000 * unexmacosx.c (unexec_copy): Do not copy more than was
3001 requested to prevent overwriting during unexec.
3002
eb37b8fd
JD
30032004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3004
ce38070a
JD
3005 * process.c (sigchld_handler): Add comment about not calling malloc.
3006
eb37b8fd
JD
3007 * process.h: Add extern to synch_process_termsig.
3008
a64387ee 30092004-01-27 Steven Tamm <steventamm@mac.com>
21a3e657 3010
da75761f
SM
3011 * macterm.c (make_mac_frame, make_mac_terminal_frame):
3012 Move setting of scroll bars from make_mac_frame to
3013 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
21a3e657 3014
d62a265d
RS
30152004-01-26 Richard M. Stallman <rms@gnu.org>
3016
3017 * search.c (Freplace_match): Handle nonexistent
3018 back-references properly.
3019
30202004-01-03 Richard M. Stallman <rms@gnu.org>
3021
3022 * window.c (decode_any_window): New function.
3023 (Fwindow_height, Fwindow_width, Fwindow_edges)
3024 (Fwindow_pixel_edges, Fwindow_inside_edges)
3025 (Fwindow_inside_pixel_edges): Use decode_any_window.
3026
ff236419
JD
30272004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3028
3029 * process.h: synch_process_termsig new variable.
3030
3031 * callproc.c: Define synch_process_termsig.
3032 (Fcall_process): Initiate synch_process_termsig to zero and
3033 check if non-zero and get signal name after subprocess has ended.
3034
3035 * process.c (sigchld_handler): Set synch_process_termsig
3036 if terminated by a signal. synch_process_death setting removed.
3037
3038 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
3039
41b867ea
AS
30402004-01-26 Andreas Schwab <schwab@suse.de>
3041
3042 * print.c (print_preprocess): Declare size as EMACS_INT to not
3043 lose bits.
3044 (print_object): Likewise.
3045 * alloc.c (Fpurecopy): Likewise.
3046
a08084ff
LT
30472004-01-25 Luc Teirlinck <teirllm@auburn.edu>
3048
3049 * window.c (Fwindow_minibuffer_p): Doc fix.
3050
b19ac475
JY
30512004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
3052
3053 * editfns.c (Fformat): Make both passes accept the same set of flags.
3054
fe905025
KH
30552004-01-23 Kenichi Handa <handa@m17n.org>
3056
3057 * fns.c (Fmd5): If OBJECT is a buffer different from the current
3058 one, set buffer to OBJECT temporarily.
3059
438fc6c0
SM
30602004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
3061
455316e2
SM
3062 * keyboard.c (kbd_buffer_gcpro): Remove.
3063 (kbd_buffer_store_event, clear_event, Fdiscard_input)
3064 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
3065 Don't initialize and/or maintain the variable any more. It was made
3066 redundant by my commit of 2003-06-15.
3067
438fc6c0
SM
3068 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
3069
5335a4ee
JD
30702004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3071
3072 * lisp.h: Add undef DECL_ALIGN.
3073
dcdaeebc
SM
30742004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
3075
3076 * process.c (wait_reading_process_input) [SYNC_INPUT]:
3077 Check interrupt_input_pending explicitly.
3078
3079 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
3080
3081 * keyboard.c (handle_async_input): New fun,
3082 extracted from input_available_signal.
3083 (input_available_signal, reinvoke_input_signal): Use it.
3084
9076a823
SM
30852004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
3086
d7107586
SM
3087 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
3088
3089 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
3090 manipulation macros for when tags are in the lower bits.
3091 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
3092 (DECL_ALIGN): New macro.
3093 (DEFUN): Use it.
3094
3095 * lisp.h [ENABLE_CHECKING]: Don't force union type.
3096
3097 * s/darwin.h (__attribute__): Remove outdated workaround.
3098
3099 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
3100
3101 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
3102 Don't check range of malloc address.
3103 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
3104
9076a823
SM
3105 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
3106
3107 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
3108
ba029065
KH
31092004-01-19 Kenichi Handa <handa@m17n.org>
3110
3111 * fontset.c (fontset_font_pattern): Fix previous change.
3112
7af0e8d7
MB
31132004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
3114
3115 * xdisp.c (Voverflow_newline_into_fringe)
3116 (move_it_in_display_line_to, redisplay_internal)
3117 (update_window_fringes, redisplay_window, display_line, window):
3118 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
3119 that it compiles without a window-system.
3120 * dispnew.c (direct_output_for_insert, update_window): Likewise.
3121
77a9cf69
KS
31222004-01-16 Kim F. Storm <storm@cua.dk>
3123
3124 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
3125
a64387ee 3126 * buffer.c (init_buffer_once): Set buffer_defaults and
77a9cf69
KS
3127 buffer_local_flags for indicate_buffer_boundaries.
3128 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
3129 default- variable for it.
3130
3131 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
3132 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
d7107586 3133 New members exact_window_width_line_p and cursor_in_fringe_p for
77a9cf69
KS
3134 overflowing newlines into right fringe.
3135 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
3136 and indicate_bottom_line_p for buffer boundaries and scrolling.
3137 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
3138 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
3139 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
3140 and HOLLOW_SQUARE_BITMAP.
3141 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
3142 Add prototypes.
3143
3144 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
3145 instead of related indicator fields.
3146 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
3147 (direct_output_for_insert): Handle exact width lines like
3148 contined lines. Call update_window_fringes.
3149 (update_window): Call update_window_fringes.
3150 (scrolling_window): Don't skip desired rows with changed bitmaps.
3151 Check if fringe bitmaps changes when assigning scrolled rows.
3152
3153 * xdisp.c (Voverflow_newline_into_fringe): New variable.
3154 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
3155 (move_it_in_display_line_to): Overflow newline into fringe for
3156 rows that are exactly as wide as the window.
3157 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
3158 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
3159 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
3160 (fringe_bitmaps): Add new bitmaps.
3161 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
3162 Select proper bitmap for cursor in fringe when appropriate.
3163 Handle alignment of bitmap to top or bottom of row.
3164 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
3165 done by update_window_fringes.
3166 (update_window_fringes, draw_window_fringes): New functions.
3167 (redisplay_internal): Call update_window_fringes in case only
3168 cursor row is updated.
3169 (redisplay_window): Call update_window_fringes.
3170 Explicitly call draw_window_fringes if redisplay was done using
3171 the current matrix or the overlay arrow is in the window.
3172 (try_window_reusing_current_matrix): Mark scrolled rows for
3173 fringe update (to update buffer-boundaries / scrolling icons).
3174 (find_last_unchanged_at_beg_row): Handle exact width lines line
3175 continued lines.
3176 (display_line): Overflow newline into fringe for rows that are
3177 exactly as wide as the window. Don't append space for newline
d7107586 3178 in this case.
77a9cf69
KS
3179 (notice_overwritten_cursor): Explicitly clear cursor bitmap
3180 in fringe as if it had been overwritten.
3181 (erase_phys_cursor): Erase cursor bitmap in fringe.
d7107586 3182 (syms_of_xdisp): Mark show-trailing-whitespace and
77a9cf69
KS
3183 void-text-area-pointer as user options.
3184 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
d7107586 3185
77a9cf69
KS
3186 * xterm.c (x_update_window_end): Call draw_window_fringes.
3187 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
3188 in row instead of actually drawing fringe bitmaps.
3189 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
3190 (x_draw_window_cursor): Draw cursor in fringe.
3191
3192 * w32term.c (x_update_window_end): Call draw_window_fringes.
3193 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
3194 in row instead of actually drawing fringe bitmaps.
3195 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
3196 (w32_draw_window_cursor): Draw cursor in fringe.
3197
3198 * macterm.c (x_update_window_end): Call draw_window_fringes.
3199 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
3200 in row instead of actually drawing fringe bitmaps.
3201 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
3202 (mac_draw_window_cursor): Draw cursor in fringe.
3203
a633a954
JD
32042004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3205
3206 * xterm.c (handle_one_xevent): Don't handle characters that are part
3207 of an old style (XLookupString) compose sequence.
3208
80460525
KH
32092004-01-15 Kenichi Handa <handa@m17n.org>
3210
3211 * search.c (Freplace_match): Use make_multibyte_string or
3212 make_unibyte_string according to the buffer multibyteness.
3213
7fc34f85
SM
32142004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
3215
3216 * alloc.c (struct interval_block, struct string_block)
3217 (struct symbol_block, struct marker_block, live_string_p)
3218 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
3219 Better preserve alignment for objects in blocks.
3220 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
3221
3222 * lread.c (defvar_per_buffer): Remove dead declaration.
3223
3224 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
3225 space size.
3226
66070bd1
JD
32272004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3228
3229 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
3230 if a key press should pop down. Only pop down if a key is pressed
3231 outside the menu/dialog.
3232 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
3233 popup_get_selection.
3234 (create_and_show_dialog): Pass 1 for down_on_keypress to
3235 popup_get_selection.
3236
de7515d6
JD
32372004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3238
3239 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
3240 BLOCK/UNBLOCK_INPUT.
3241
160b1b50
JD
32422004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3243
3244 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
3245 specified.
3246
3a9f36e6
KH
32472004-01-08 Kenichi Handa <handa@m17n.org>
3248
3249 * editfns.c (Fformat): Fix '&' to '&&'.
3250
3803eb32
AS
32512004-01-08 Andreas Schwab <schwab@suse.de>
3252
3253 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
3254 size if PSEUDOVECTOR_FLAG is set.
3255
9da88f37
KH
32562004-01-07 Kenichi Handa <handa@m17n.org>
3257
74ac5074
KH
3258 * charset.c (Fdeclare_equiv_charset): Fix docstring.
3259
9da88f37
KH
3260 * fontset.c (fontset_ref_via_base): Fix previous change.
3261
05faee07
KS
32622004-01-07 Kim F. Storm <storm@cua.dk>
3263
3264 * process.c (read_process_output): Only activate adaptive
3265 buffering if we read less than 256 bytes at a time.
3266
634910c8
KS
32672004-01-06 Kim F. Storm <storm@cua.dk>
3268
3269 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
3270 object and image object. Return glyph width and height.
3271 (mode_line_string, marginal_area_string): Ditto.
3272
3273 * dispextern.h (buffer_posn_from_coords, mode_line_string)
3274 (marginal_area_string): Fix prototypes.
3275
3276 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
f63fd14e 3277 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
634910c8
KS
3278 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
3279
3280 * keyboard.c (make_lispy_position): Use modified mode_line_string,
3281 buffer_posn_from_coords, and marginal_area_string functions to
3282 include both string object and image object in the lispy position.
3283 Also add actual glyph width and height to position.
3284 (read_key_sequence): Use real buffer position from mouse
3285 event to find keymap property even when click is in marginal area.
3286
3287 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
3288 mode_line_string and marginal_area_string functions to handle
3289 both string object and image object properties.
d7107586 3290
57951c2e
AS
32912004-01-06 Andreas Schwab <schwab@suse.de>
3292
3293 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
3294 character.
3295
181e6a61
AS
32962004-01-02 Andreas Schwab <schwab@suse.de>
3297
d7107586
SM
3298 * macterm.c (emacs_options, x_initialized, same_x_server):
3299 Remove unused (and duplicated) definitions.
181e6a61 3300
31e0fbdd
KS
33012004-01-02 Kim F. Storm <storm@cua.dk>
3302
3303 * process.h (struct Lisp_Process): New members for adaptive read
3304 buffering: adaptive_read_buffering, read_output_delay, and
3305 read_output_skip.
3306
3307 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
3308 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
3309 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
3310 (process_output_delay_count, process_output_skip): New vars.
3311 (Vprocess_adaptive_read_buffering): New variable.
3312 (make_process): Initialize adaptive read buffering members.
3313 (Fstart_process): Set adaptive_read_buffering member.
3314 (deactivate_process): Cleanup adaptive read buffering.
3315 (wait_reading_process_input): Temporarily omit delayed
3316 subprocesses from the set of file descriptors to read from;
3317 adjust the select timeout if we skipped any subprocesses.
3318 (read_process_output): Increase adaptive read buffering delay if
3319 we read less than a full buffer; reduce delay when we read a
3320 full buffer.
3321 (send_process): Simplify using local Lisp_Process var.
3322 Reset adaptive read buffering delay after write.
3323 (init_process): Initialize process_output_delay_count and
3324 process_output_skip.
3325 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
3326
68c6a789
JR
33272004-01-01 Jason Rumney <jasonr@gnu.org>
3328
d7107586 3329 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
68c6a789 3330
3f70fe82
LT
33312003-12-30 Luc Teirlinck <teirllm@auburn.edu>
3332
3333 * print.c (Ferror_message_string): Add hyperlink in the docstring
3334 to the definition of `signal' in the Elisp manual.
3335 * eval.c (Fsignal): Ditto.
3336
a64387ee 33372003-12-29 James Clark <jjc@jclark.com> (tiny change)
c2be49ed
EZ
3338
3339 * fns.c (internal_equal): Return t for two NaN arguments.
3340
7abd90ea
RS
33412003-12-29 Richard M. Stallman <rms@gnu.org>
3342
3343 * data.c (store_symval_forwarding): Handle setting
3344 default-fill-column, etc., by changing the value in
3345 buffers that use the default.
3346
3347 * minibuf.c (Fset_minibuffer_window): Doc fix.
3348
3349 * fileio.c (choose_write_coding_system): Ignore auto_saving
3350 if using the visited file for auto saves.
3351 (Fwrite_region): Don't update SAVE_MODIFF
3352 if auto-saving in visited file.
3353
3e7cfcdc
KH
33542003-12-29 Kenichi Handa <handa@m17n.org>
3355
3356 * dispextern.h (face_font_available_p): Extern it.
3357
3358 * fontset.c (Voverriding_fontspec_alist): New variable.
3359 (lookup_overriding_fontspec): New function.
d7107586 3360 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
3e7cfcdc
KH
3361 (fontset_font_pattern): Likewise.
3362 (regulalize_fontname): New function.
3363 (Fset_fontset_font): Call regulalize_fontname.
3364 (Fset_overriding_fontspec_internal): New function.
d7107586
SM
3365 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
3366 Defsubr Sset_overriding_fontspec_internal.
3e7cfcdc
KH
3367
3368 * xfaces.c (face_font_available_p): New function.
3369
7abd90ea
RS
33702003-12-28 Richard M. Stallman <rms@gnu.org>
3371
3372 * buffer.c (Fother_buffer): Don't crash if BUF is nil
3373 or if its name is nil.
3374
3375 * buffer.c (Fkill_buffer): Don't delete auto-save file
3376 if it's the same as the visited file.
3377
de1d1a40
LT
33782003-12-28 Luc Teirlinck <teirllm@auburn.edu>
3379
3380 * coding.c (Fcheck_coding_system): Doc fix.
3381
204fb75e
KS
33822003-12-28 Kim F. Storm <storm@cua.dk>
3383
3384 * Makefile.in (eval.o): Depend on dispextern.h.
3385
3386 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
3387 image glyph using image's ascent.
3388 (mode_line_string): Return image glyph as object clicked on.
3389 Adjust y0 for image glyph using image's ascent.
3390
3391 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
3392 (struct glyph): New members, ascent and descent. Used to save
3393 this glyph's ascent and descent, instead of having.
3394 (struct glyph): Declare member face_id using FACE_ID_BITS.
3395 (find_hot_spot): Add prototype.
3396
3397 * keyboard.c (Qimage): Remove extern (now in lisp.h).
3398 (QCmap): Declare extern.
3399 (make_lispy_position): When position is inside image hot-spot,
3400 use hot-spot element's id as posn element.
3401
3402 * lisp.h (IMAGEP): New macro to test for image object type.
3403 (Qimage): Declare extern.
3404
3405 * macfns.c (Qimage): Remove extern (now in lisp.h).
3406 (valid_image_p, parse_image_spec): Use IMAGEP macro.
3407
3408 * macterm.c (Qface, Qmouse_face): Remove unused externs.
3409
3410 * w32fns.c (Qimage): Remove extern (now in lisp.h).
3411 (valid_image_p, parse_image_spec): Use IMAGEP macro.
3412
3413 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
3414
3415 * w32term.c (Qface, Qmouse_face): Remove unused externs.
3416
3417 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
3418 pointer types.
3419 (Qrelative_width, Qalign_to): Remove unused variables.
3420 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
3421 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
3422 image maps.
d7107586 3423 (x_y_to_hpos_vpos): Return glyph relative coordinates through
204fb75e
KS
3424 new dx and dy args.
3425 Remove buffer_only_p arg (always 0). Simplify code accordingly.
3426 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
3427 than row's ascent and height, to get sensible height on tall rows.
3428 (build_desired_tool_bar_string): Remove Qimage extern.
3429 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
3430 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
3431 image glyph is alone on the last line.
3432 (append_glyph, append_composite_glyph, produce_image_glyph)
d7107586 3433 (append_stretch_glyph): Set glyph's ascent and descent.
204fb75e 3434 (on_hot_spot_p): New function to check if position is inside an
d7107586 3435 rectangular, circular, or polygon-shaped image hot-spot,
204fb75e
KS
3436 (find_hot_spot): New function to search for image hot-spot.
3437 (Flookup_image_map): New defun to search for image hot-spot.
3438 (define_frame_cursor1): New aux function to determine frame pointer.
3439 (note_mode_line_or_margin_highlight, note_mouse_highlight):
3440 Handle `pointer' text property and :pointer image property to
3441 control frame pointer shape. Detect image hot-spots for pointer
3442 and help_echo properties. Use define_frame_cursor1.
3443 (note_mouse_highlight): Use Vvoid_text_area_pointer.
f63fd14e 3444 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
204fb75e
KS
3445 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
3446
3447 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
3448
3449 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
3450 (Qimage): Remove extern (now in lisp.h).
3451 (valid_image_p, parse_image_spec): Use IMAGEP macro.
3452
3453 * xmenu.c (show_help_event): Remove unused code.
3454
3455 * xterm.c (Qface, Qmouse_face): Remove unused externs.
3456 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
3457 row's ascent and descent, to get a sensible height on tall rows.
3458
fc052137
LT
34592003-12-25 Luc Teirlinck <teirllm@auburn.edu>
3460
3461 * minibuf.c (Fcompleting_read): Undo previous change.
3462
a64387ee 34632003-12-25 Lars Hansen <larsh@math.ku.dk>
b9148500
LH
3464
3465 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
3466 Arguments GCPRO'ed in call to file name handler.
3467
56ffd194
TTN
34682003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
3469
3470 * termcap.c (tgetst1): Scan for "%pN"; if all
3471 N are continuous in [1,9], remove all "%pN".
3472
5202d23d
JD
34732003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3474
f26fab36
JD
3475 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
3476
5202d23d
JD
3477 * xfaces.c (lface_fully_specified_p): Take into account that
3478 MAC OS always have unspecified stipple.
3479
8babaa59
TTN
34802003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
3481
3482 * tparam.c (tparam1): Add handling for `%pN', which
3483 means use param N for the next substitution.
3484
2d176448
TTN
34852003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
3486
3487 * xfaces.c (Fcolor_gray_p): Fix omission bug:
3488 In case `frame' is nil, consult the selected frame.
3489 (Fcolor_supported_p): Likewise.
3490
adb0708c
LT
34912003-12-23 Luc Teirlinck <teirllm@auburn.edu>
3492
000eeb15
LT
3493 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
3494 Doc fixes.
0dc72b11
LT
3495
3496 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
3497 and an integer. Adapt the introductory comment accordingly.
adb0708c
LT
3498 (Fread_from_minibuffer): Delete code moved into read_minibuf.
3499 Doc fix.
3500 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
3501 read_minibuf.
3502 (Fcompleting_read): Delete code moved into read_minibuf.
d7107586 3503 (Ftest_completion): Make it handle obarrays and hash tables correctly.
adb0708c 3504
2e4d132b
KH
35052003-12-03 Kenichi Handa <handa@m17n.org>
3506
3507 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
3508 encoding sequence.
3509
3999c705
KH
35102003-12-01 Kenichi Handa <handa@m17n.org>
3511
3512 * composite.c (syms_of_composite): Don't make the compostion hash
3513 table week.
3514
d344ecbb
LT
35152003-11-30 Luc Teirlinck <teirllm@auburn.edu>
3516
3517 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
3518 * textprop.c (Fget_char_property_and_overlay): New function.
3519 (syms_of_textprop): Defsubr it.
3520
03d6484e
JD
35212003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3522
019b1f0e
JD
3523 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
3524 to compile on terminal configuration.
3525
03d6484e
JD
3526 * fileio.c (Fread_file_name): Check use_file_dialog also before
3527 calling Fx_file_dialog.
3528
3529 * fns.c: use_file_dialog: New variable.
3530 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
3531
442d3fd0
KS
35322003-11-29 Kim F. Storm <storm@cua.dk>
3533
3534 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
3535 (syms_of_msdos): Don't intern and staticpro them.
3536
0f6a07a8
KS
35372003-11-27 Kim F. Storm <storm@cua.dk>
3538
3539 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
3540 coordinates relative to glyph at posn. If glyph is an image,
3541 return that as object at posn. Callers changed.
3542 (mode_line_string, marginal_area_string): Calculate and return
3543 pixel coordinates relative to glyph. Callers changed.
3544
3545 * dispextern.h (buffer_posn_from_coords, mode_line_string)
3546 (marginal_area_string): Fix prototypes.
3547 (window_box_left_offset, window_box_right_offset): Add prototypes.
3548
3549 * frame.h (get_specified_cursor_type, get_window_cursor_type):
3550 Remove prototypes.
3551
3552 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
3553
3554 * keyboard.c (make_lispy_position): Add x and y coordinates
3555 relative to the current glyph as 7th element of position.
3556 If glyph is an image, return it in the object element.
3557 (read_key_sequence): Skip checks for keymap property in cases
3558 where POSN_STRING is not a string (e.g. an image).
3559
3560 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
3561 (Vshow_text_cursor_in_void): New variable.
3562 (glyph_to_pixel_coords): Don't use negative hpos.
3563 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
3564 (append_stretch_glyph): Change ascent arg to be actual value
f63fd14e 3565 in pixels rather than ratio to height. Callers changed.
0f6a07a8
KS
3566 (calc_pixel_width_or_height): New aux function, implementing
3567 pixel based artihmetic for glyph widths and heights.
3568 (produce_stretch_glyph): Use calc_pixel_width_or_height for
3569 :width, :height, :align-to, and :ascent, thus allowing these to
3570 be specified in pixels as well as multiples of characters.
3571 Don't produce stretch glyphs with zero width or height.
3572 (get_specified_cursor_type): Declare static.
3573 (get_window_cursor_type): Declare static. Add glyph arg to be
3574 able to know when cursor is on an image; always substitute
3575 hollow-box cursor for filled-box cursor on images, to avoid
3576 negative images and flicker when blinking the cursor.
3577 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
3578 (note_mode_line_or_margin_highlight): Use non-text cursor rather
3579 than vertical scroll-bar cursor in display margins.
3580 (note_mouse_highlight): Use non-text cursor rather than text
3581 cursor in fringes and over images in the text area.
3582 Use non-text cursor when mouse pointer is outside editable text,
3583 i.e. in the void after end-of-line or end-of-buffer; this was
3584 already done for W32, but is now standard for all systems --
3585 user can toggle show-text-cursor-in-void to get old behaviour.
3586 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
3587 Vdisplay_pixels_per_inch.
3588
00498bfc
AS
35892003-11-25 Andreas Schwab <schwab@suse.de>
3590
3591 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
3592 EMACS_INT to not lose bits.
3593 (Ffillarray): Don't set bits beyond the size of a bool vector.
3594
edaa824d
KS
35952003-11-25 Kim F. Storm <storm@cua.dk>
3596
3597 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
3598 define this defun on systems that cannot use stderr as lvalue.
3599
74d6f539
GM
36002003-11-24 Gerd Moellmann <gerd@gnu.org>
3601
3602 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
3603 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
3604 ld's default is incompatible with unexec.
3605
6a1ff3ba
KS
36062003-11-23 Kim F. Storm <storm@cua.dk>
3607
63dc7c6b
KS
3608 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
3609 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
3610 (Fforce_window_update): New defun.
3611 (syms_of_window): Defsubr it.
3612 (Fset_window_margins, Fset_window_fringes): Doc fix.
3613
6a1ff3ba
KS
3614 * print.c (Fredirect_debugging_output): New defun.
3615 (syms_of_print): Defsubr it.
3616
aef109b7
LT
36172003-11-22 Luc Teirlinck <teirllm@auburn.edu>
3618
3619 * fns.c (Fset_char_table_parent): Doc fix.
3620
6a1ff3ba 36212003-11-22 Kim F. Storm <storm@cua.dk>
63ccbe21
KS
3622
3623 * dispnew.c (buffer_posn_from_coords): Return actual row/column
3624 for glyph clicked on, rather than (unused) pixel positions.
3625 (mode_line_string, marginal_area_string): Change X and Y args to
3626 pointers for returning actual row/column for glyph clicked on.
3627 Simplify and optimize loops.
3628
aef109b7
LT
3629 * dispextern.h (mode_line_string, marginal_area_string):
3630 Update prototypes.
63ccbe21
KS
3631
3632 * keyboard.c (make_lispy_position): New function for generating
3633 mouse click positions from frame and pixel coordinates.
3634 Enhanced to return buffer position and actual row/column for
3635 events outside the text area using updated mode_line_string and
3636 marginal_area_string functions.
3637 Return left-fringe and right-fringe clicks as such, rather than
3638 clicks in text area.
3639 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
3640 pixel_to_glyph_coords, as we never use the results.
3641 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
3642 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
3643 Eliminate unused code in WHEEL_EVENT handling.
3644 (make_lispy_movement): Use make_lispy_position.
3645
3646 * window.c (coordinates_in_window): Remove redundant tests.
3647 Fix returned X pixel value for left-margin.
3648
3649 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
3650 mode_line_string and marginal_area_string parameters.
3651
a64387ee 36522003-11-22 Lars Hansen <larsh@math.ku.dk>
930a9995 3653
d7107586
SM
3654 * w32.c (struct the_group, getgrgid): Add.
3655 * mac.c (struct my_group, getgrgid): Add.
aef109b7 3656
3dbf3426
LT
36572003-11-21 Luc Teirlinck <teirllm@auburn.edu>
3658
3659 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
3660
cae8ddbb 36612003-11-21 Lars Hansen <larsh@math.ku.dk>
ded4064f 3662
d7107586
SM
3663 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
3664 include in call to file name handler. Optionally translate numeric
3665 UID and GID to strings. Update docstring.
3666 (directory_files_internal): Add parameter ID-FORMAT.
3667 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
3668 include in call to file name handler and call to
3669 directory_files_internal. Update Docstring.
3670 (Fdirectory_files): Add dummy parameter in call to
3671 directory_files_internal.
3672 * lisp.h (Qinteger): Add.
3673 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
3674 (Ffile_attributes): Add parameter.
3675 * data.c (Qinteger): Export.
cae8ddbb 3676
2550b848
LT
36772003-11-21 Luc Teirlinck <teirllm@auburn.edu>
3678
3dbf3426 3679 * fns.c (Freverse, Fnreverse): Doc fixes.
2550b848 3680
88380018
KS
36812003-11-19 Kim F. Storm <storm@cua.dk>
3682
3683 * xdisp.c (init_iterator): Initialize it->start to position
3684 before reseating (in case start position is invisible).
3685 (init_to_row_start): Set it->start to row-start.
3686 (redisplay_window): Accept optional_new_start if start position
3687 is invisible (in which case IT_CHARPOS overshoots PT).
3688 (display_line): Setup row->start from it->start (rather than
3689 it->current which is wrong if first char on line is invisible).
3690 When done, reseat it->start to it->current (= start of next row).
3691 (expose_area): Fix exposure of text area when first char (e.g. TAB)
3692 is only partially visible.
3693
3694 * dispextern.h (struct it): New member start.
3695
854c1a59
SM
36962003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
3697
455316e2
SM
3698 * alloc.c (make_float, Fcons): Clear the markbit at init time.
3699 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
3700 of block_index outside of the macro call.
3701 (Fgarbage_collect): Remove null code.
3702
3703 * m/amdx86-64.h: Don't redefine XPNTR.
3704
854c1a59
SM
3705 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
3706 of VALMASK.
3707
3708 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
3709 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
3710 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
3711
3712 * lisp.h (VALMASK): Only define for non-union type.
3713 (MARKBIT): Remove.
3714 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
3715 (XTYPE): Define unconditionally.
3716 (XSETTYPE): Remove one more remnant.
3717 (EQ): Define differently for the union and non-union cases.
3718 (INTMASK): New bit mask.
3719 (struct Lisp_Marker): Move down to prepare for upcoming patch.
3720 (GC_EQ): Delegate to EQ.
3721
3722 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
3723
a0c6ef2d
JD
37242003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3725
3726 * xterm.c (x_window_to_scroll_bar): Move check of display to
3727 where window_id is compared.
3728
859492c4
KS
37292003-11-17 Kim F. Storm <storm@cua.dk>
3730
3731 * dispextern.h (struct it): New member first_vpos.
3732
3733 * xdisp.c (start_display): Set it->first_vpos.
3734 (try_window_id): Use first_vpos to start display in first _text_
3735 line if no reusable lines at start of window with header line.
3736
810f2256
JD
37372003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3738
7c402969 3739 * w32fns.c (XPutPixel):
854c1a59
SM
3740 * w32bdf.c (w32_init_bdf_font):
3741 * sunfns.c (sel_read):
3742 * process.c (Fmake_network_process):
3743 * frame.c (store_frame_param):
3744 * fontset.c (Fset_fontset_font):
3745 * emacs.c (shut_down_emacs):
a64387ee 3746 * ccl.c (ccl_driver): Remove period at end of error message.
7c402969 3747
a32e9bfd
JD
3748 * config.in: Regenerate.
3749
810f2256
JD
3750 * xfns.c (x_window_to_frame, x_any_window_to_frame)
3751 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
3752 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
3753 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
3754 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
3755
3756 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
3757
3758 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
3759 (XTmouse_position, handle_one_xevent): Pass Display* to
3760 x_window_to_scroll_bar.
3761 (x_window_to_scroll_bar): Take a Display* argument.
3762 Check that display for frame is equal to Display* argument.
854c1a59 3763 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
810f2256
JD
3764 x_display_info_for_display instead. Use Display in xev instead
3765 of GDK_DISPLAY.
3766 (x_dispatch_event): Call x_display_info_for_display.
f63fd14e 3767 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
810f2256
JD
3768 (x_connection_closed): Call xg_display_close for GTK.
3769 (x_term_init): Call xg_display_open for additional displays.
3770 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
3771 for GTK.
3772
3773 * xmenu.c (single_menu_item, mouse_position_for_popup)
3774 (x_activate_menubar): Formatting adjustments.
3775
3776 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
3777 adjustments.
3778
3779 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
3780 (xg_display_close, xg_create_default_cursor)
3781 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
3782 handling.
854c1a59
SM
3783 (xg_left_ptr_cursor): Remove.
3784 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
810f2256
JD
3785 cursor here.
3786 (xg_win_to_widget): Take Display* argument, call
3787 gdk_xid_table_lookup_for_display.
3788 (xg_create_frame_widgets, xg_get_file_name, create_menus)
3789 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
3790 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
3791 in FRAME_X_DISPLAY_INFO.
3792 (xg_get_scroll_id_for_window): Take Display* argument.
3793 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
854c1a59 3794 (xg_initialize): Remove xg_left_ptr_cursor.
810f2256
JD
3795
3796 * gtkutil.h: xg_get_scroll_id_for_window, xg_win_to_widget takes
3797 Display* argument also. Declare xg_display_open,
3798 xg_display_close, xg_create_default_cursor.
3799
0b03cc78
JD
38002003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3801
3802 * xterm.c (x_detect_focus_change): Do not change focus frame for
3803 Enter/LeaveNotify if the current focus frame has explicit focus.
3804
77e688fa
KS
38052003-11-14 Kim F. Storm <storm@cua.dk>
3806
3807 * dispnew.c (update_text_area): Fix redisplay error when hscroll
3808 is active and first glyph is only partially visible.
854c1a59 3809
dd429b03
KH
38102003-11-13 Kenichi Handa <handa@m17n.org>
3811
3812 * xdisp.c (select_frame_for_redisplay): New function.
3813 (redisplay_internal): Record also selected_frame for
3814 unwind_redisplay. Call select_frame_for_redisplay before
3815 redrawing each frame.
3816 (unwind_redisplay): Argument changed to a cons.
3817
6d9266f4
LT
38182003-11-12 Luc Teirlinck <teirllm@auburn.edu>
3819
3820 * fns.c (Fstring_to_multibyte): Doc fix.
3821
80060eb3
KH
38222003-11-11 Kenichi Handa <handa@m17n.org>
3823
3824 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
3825
74305183
JD
38262003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3827
3828 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
3829 program specified positions.
3830
cfda993e
JD
38312003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3832
3833 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
3834
df211069
KH
38352003-11-08 Kenichi Handa <handa@m17n.org>
3836
3837 * Makefile.in (lisp): Add kannada.el.
3838 (shortlisp): Likewise.
3839
4307d534
KH
38402003-11-07 Kenichi Handa <handa@m17n.org>
3841
854c1a59
SM
3842 * coding.c (coding_allocate_composition_data):
3843 Reset coding->composing to COMPOSITION_NO.
4307d534
KH
3844 (coding_restore_composition): Detect invalid composition data.
3845 Give Fstring and Fvector a Lispy integer, not C int.
3846
854c1a59
SM
38472003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
3848
3849 * floatfns.c (Flogb): Don't use VALMASK.
3850
3851 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
3852 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
3853
3854 * lisp.h (XINT): Move the cast to clarify what is going on.
3855 (GCTYPEMASK, XSETTYPE): Remove.
3856 (XGCTYPE): Make it an alias of XTYPE.
3857
d04103a1
JD
38582003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3859
3860 * xterm.c (x_term_init): Fix formatting.
3861
da18b5ac
JD
38622003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3863
3864 * gtkutil.h: Declare xg_have_tear_offs, remove xg_keep_popup
3865 and xg_did_tearoff.
3866
3867 * gtkutil.c: Remove variable xg_did_tearoff.
3868 (xg_have_tear_offs): New function.
3869 (tearoff_remove): Just decrease xg_detached_menus.
3870 (tearoff_activate): Increase xg_detached_menus and call
3871 tearoff_remove when tearoff is removed.
854c1a59 3872 (xg_keep_popup): Remove function.
da18b5ac
JD
3873 (create_menus): Give add_tearoff_p as argument to recursive
3874 call to create_menus.
3875 (xg_create_widget): Use variables instead of multiple
3876 strcmp. Tell create_menus to create tear off only for
3877 menu bar menus.
3878 (xg_update_menubar): Change title for a detached menu also.
3879 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
3880 of deep_p.
3881 (xg_initialize): Initialize xg_detached_menus, remove
3882 initialization of xg_did_tearoff.
3883
3884 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
3885 xg_have_tear_offs returns non-zero.
3886 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
3887 call to xg_keep_popup.
3888
64d4923e
AC
38892003-11-01 Andrew Choi <akochoi@shaw.ca>
3890
3891 * macterm.c (XTread_socket): Handle menubar selection and grow
3892 window only for mouseDown events.
854c1a59 3893
6cc8bc07
JD
38942003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3895
3896 * xterm.c (x_term_init): For GTK part, increase x_initialized
3897 to check for more than one display. Use error instead of return 0.
3898
043131c4
AC
38992003-10-31 Andrew Choi <akochoi@shaw.ca>
3900
854c1a59 3901 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
043131c4
AC
3902 (copy_dysymtab): Call it.
3903
bdda99a1
LT
39042003-10-31 Luc Teirlinck <teirllm@auburn.edu>
3905
3906 * eval.c (Fdefvaralias): Doc fix.
3907
800f42ff 39082003-10-26 Luc Teirlinck <teirllm@auburn.edu>
0d11571e
LT
3909
3910 * data.c (Fsetplist): Doc fix.
3911
ef35b389
LK
39122003-10-14 Lute Kamstra <lute@gnu.org>
3913
3914 * window.c (Fset_window_fringes): Clarify docstring.
07107abc 3915
ef35b389 39162003-10-14 Kim F. Storm <storm@cua.dk>
854c1a59 3917
07107abc
KS
3918 * window.c (Fset_window_margins): Simplify arg checking.
3919
f7005886
RS
39202003-10-13 Richard M. Stallman <rms@gnu.org>
3921
3922 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
3923 (print_partial_compiled_pattern): Replace assert with a printout.
3924 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
3925
3926 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
3927
3928 * window.c (Fset_window_margins): Allow only integers as args.
3929 (syms_of_window) <special-display-buffer-names, special-display-regexps>:
3930 Doc fixes.
3931
9c0c2af5
LK
39322003-10-13 Lute Kamstra <lute@gnu.org>
3933
3934 * window.c (Fset_window_fringes): Elaborate docstring.
3935
3f080e4e
AC
39362003-10-12 Andrew Choi <akochoi@shaw.ca>
3937
854c1a59 3938 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
a4887377 3939
3f080e4e
AC
3940 * s/darwin.h (GC_MARK_STACK): Define.
3941
0aa513ed
JD
39422003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3943
3944 * window.c (shrink_windows): New function.
3945 (size_window): Call shrink_windows to calculate window sizes when
3946 shrinking frame with more than one window.
3947
6aa8858a
KS
39482003-10-12 Kim F. Storm <storm@cua.dk>
3949
3950 * xdisp.c (compute_fringe_widths): Doc fix.
3951
c2164d91
KH
39522003-10-08 Kenichi Handa <handa@m17n.org>
3953
854c1a59 3954 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
c2164d91 3955
f82ac129
KH
39562003-10-07 Kenichi Handa <handa@m17n.org>
3957
3958 * coding.c (Qcoding_system_define_form): New variable.
3959 (syms_of_coding): Intern and staticpro it.
3960 (Fcheck_coding_system): Try to autoload the definition of
3961 CODING-SYSTEM.
3962
9296c947
LT
39632003-10-05 Luc Teirlinck <teirllm@auburn.edu>
3964
3965 * fns.c (Frequire): Doc fix.
3966
c1f0671a
JD
39672003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3968
3d8c3826
JD
3969 * xfns.c (Fx_send_client_event): New function as a base for
3970 manipulating extended window manager hints.
6dc15d98 3971 (Fx_send_client_event): Remove unused variable s.
3d8c3826 3972
068ae0fd
JD
3973 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
3974 that function is removed.
3975
3976 * xterm.c (x_set_offset): Use move_offset_left/top instead of
3977 x/y_pixels_outer_diff.
3978 (x_check_expected_move): Calculate move_offset_left/top.
3979
3980 * xterm.h (struct x_output): New members: move_offset_top/left.
3981
854c1a59 3982 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
068ae0fd
JD
3983 call x_set_offset directly.
3984
3985 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
3986
96f09305
JD
3987 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
3988
3989 * xterm.c (x_delete_display): Free font names and font_encoder
3990 in dpyinfo->font_table.
3991
854c1a59
SM
3992 * xfns.c (Fx_close_connection): Only call XFreeFont here.
3993 Move xfree of font names to x_delete_display.
96f09305 3994
c1f0671a
JD
3995 * xterm.h (struct x_display_info): New member, wm_type.
3996 (struct x_output): New members, expected_top/left and
3997 check_expected_move.
3998
3999 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
4000 is received.
854c1a59
SM
4001 (handle_one_xevent): Rename x_check_expected_move from
4002 x_check_fullscreen_move.
c1f0671a
JD
4003 (x_set_offset): Only add WM decoration sizes to modified_top/left
4004 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
854c1a59 4005 (x_check_expected_move): Rename from x_check_fullscreen_move.
c1f0671a
JD
4006 Removed fullscreen specific code. Use check_expected_move,
4007 expected_left/top instead. Also, set wm_type.
4008 (x_term_init): Initialize wm_type to unknown.
4009
4010 * frame.c (x_fullscreen_move): Remove addition of WM decoration
4011 sizes to move_x/y.
4012
be2fdba9
KH
40132003-10-03 Kenichi Handa <handa@m17n.org>
4014
4015 * macterm.c (x_load_font): Clear all members of FONTP before start
4016 filling them.
4017
40182003-10-02 Kenichi Handa <handa@m17n.org>
4019
4020 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
4021 before calling find_ccl_program_func. Call find_ccl_program_func
4022 only when fontp->font_encoder is not NULL.
4023
4024 * xterm.c (x_load_font): Clear all members of FONTP before start
4025 filling them.
4026
26a6e439
JPW
40272003-10-03 John Paul Wallington <jpw@gnu.org>
4028
4029 * keymap.c (map_keymap): Don't abort when binding is a vector.
4030
0d4c2dc2
JR
40312003-10-02 Jason Rumney <jasonr@gnu.org>
4032
854c1a59
SM
4033 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
4034 Sync dependencies with Makefile.in.
a63cf46f
JR
4035 (alloca.o): Remove.
4036
0d4c2dc2
JR
4037 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
4038 filling them.
4039
4040 * w32bdf.c (w32_load_bdf_font): Likewise.
4041
ab8f7d5c
RS
40422003-09-30 Richard M. Stallman <rms@gnu.org>
4043
4044 * term.c (set_tty_color_mode): Calculate current_mode_spec
4045 regardless of value of VAL.
4046
854c1a59 4047 * intervals.c (graft_intervals_into_buffer):
ab8f7d5c
RS
4048 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
4049 Handle over_used when splitting UNDER.
4050
a64387ee 40512003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ab8f7d5c
RS
4052
4053 * regex.c (regex_compile): Free the stack when returning from function.
4054
3413f972
KH
40552003-09-28 Kenichi Handa <handa@m17n.org>
4056
4057 * fontset.c (Finternal_char_font): Change return value to
4058 cons (FONT-NAME . GLYPH-CODE).
4059
a6eeaa81 40602003-09-28 Eli Zaretskii <eliz@gnu.org>
40409f05
EZ
4061
4062 * term.c (tty_setup_colors): Treat any negative argument as -1.
4063
f98ddc99
KH
40642003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
4065
4066 * process.c (send_process): Delete unused temp_buf.
4067
66c8f1a8
DL
40682003-09-26 Dave Love <fx@gnu.org>
4069
4070 * xterm.c (x_bitmap_mask): Declare.
4071
ca716c26
DL
40722003-09-25 Dave Love <fx@gnu.org>
4073
4074 * Makefile.in (fns.o): Depend on md5.h.
4075
fbe57420
KS
40762003-09-25 Kim F. Storm <storm@cua.dk>
4077
4078 * window.c (set_window_buffer): Fix redisplay problems when
4079 switching between buffers with different display margin widths.
4080
ef6ae4ff
KS
40812003-09-23 Kim F. Storm <storm@cua.dk>
4082
4083 * process.c (set_socket_option): Fix :bindtodevice option.
4084 (Fset_network_process_option): Update process contact list when
4085 setting option succeeds.
4086 (Fmake_network_process): Doc fix.
4087
68e03c1c
DL
40882003-09-23 Dave Love <fx@gnu.org>
4089
7146d1c1 4090 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
68e03c1c 4091
a6eeaa81 40922003-09-22 Eli Zaretskii <eliz@gnu.org>
2f809aae
EZ
4093
4094 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
4095 color mode is an integer number (it could be -1).
4096
8fe7d8c8
RS
40972003-09-22 Richard M. Stallman <rms@gnu.org>
4098
4099 * intervals.c (graft_intervals_into_buffer): Correct the main loop
4100 in the case where OVER is longer than UNDER.
4101
2f71b5ea
MY
41022003-09-22 Masatake YAMATO <jet@gyve.org>
4103
7146d1c1 4104 * window.c (Fset_window_scroll_bars): Validate the value of
2f71b5ea 4105 `vertical_type'.
7146d1c1 4106
0c4da023
KS
41072003-09-21 Kim F. Storm <storm@cua.dk>
4108
4109 * frame.c (Vdefault_frame_scroll_bars): New variable.
4110 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
4111 (syms_of_frame): DEFVAR_LISP it, and initialize according to
4112 window-system default scroll bar position.
4113
b648413b
KS
4114 * window.c (Fwindow_scroll_bars): Doc fix.
4115
8f5b9e34
JD
41162003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4117
854c1a59 4118 * xterm.c (x_set_offset): Take window manager decorations into account.
8f5b9e34 4119
b0f23edf
RS
41202003-09-19 Richard M. Stallman <rms@gnu.org>
4121
4122 * atimer.h: Don't include lisp.h.
4123 (P_): Define it here (as well as elsewhere).
4124
4125 * print.c (Fprin1_to_string): Move the PRINTPREPARE
4126 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
4127
4128 * data.c (Fvariable_binding_locus): New function.
4129 (syms_of_data): defsubr it.
4130 (Flocal_variable_p): Delete duplicate call to indirect_variable.
4131
e1283999
DL
41322003-09-18 Dave Love <fx@gnu.org>
4133
ad5f3636
DL
4134 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
4135
e1283999
DL
4136 * process.c (Fnetwork_interface_info): Fix type error.
4137 (Fnetwork_interface_list): Doc fix.
4138 (read_process_output, read_process_output): Delete unused var.
4139
b8c7fd71
KS
41402003-09-17 Kim F. Storm <storm@cua.dk>
4141
4142 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
4143 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
4144 (Fnetwork_interface_info): Check that ifreq struct has required
4145 fields before accessing them; this requires that those fields are
4146 defined as macros, which may be too restrictive on some platforms,
4147 but it is better than failing on other platforms.
4148 (syms_of_process): Only defsubr above fns when included.
4149
11e0a411
DL
41502003-09-17 Dave Love <fx@gnu.org>
4151
4152 * unexalpha.c: Don't include varargs.h.
4153
e9c50801
KS
41542003-09-17 Kim F. Storm <storm@cua.dk>
4155
4156 * process.c (Fset_process_sentinel): Add sentinel to childp plist
4157 for network process.
4158 (socket_options): Add `:' prefix to option names. Add optbit field.
4159 (set_socket_option): Remove no_error arg and special handling of s < 0.
4160 Return 1<<optbit for known option, 0 for unknown.
4161 Do not interpret 0 as false for boolean option (only nil).
4162 Pass failed option and value to report_file_error.
7146d1c1 4163 (Fset_network_process_options): Replace by Fset_network_process_option.
e9c50801
KS
4164 (Fset_network_process_option): New function to set just one option.
4165 (Fmake_network_process): Allow :coding arg to be a cons.
4166 Allow :server arg to be an integer specifying backlog size.
4167 Remove :options arg, and allow options to be specified directly
4168 as :KEY, VALUE pairs. Parse these options before binding socket.
4169 As before, :reuseaddr t is default for a server process, but this
4170 can now be disabled by specifying :reuseaddr nil.
4171 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
4172 (init_process): Availability of network options is now checked with
4173 simpler syntax (featurep 'make-network-process :OPTION); use loop to
4174 setup features.
4175 (syms_of_process): Fix defsubr's for the replaced functions.
4176
a0fc3644
DL
41772003-09-16 Dave Love <fx@gnu.org>
4178
4179 * Makefile.in: Depend on coding.h.
4180
6df2a645
KS
41812003-09-14 Kim F. Storm <storm@cua.dk>
4182
4183 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
4184 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
4185 (syms_of_process): Defsubr them.
4186
4187 * config.in: Regenerate.
7146d1c1
SM
4188
41892003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4190
4191 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
4192 * m/news-r6.h (XUNMARK): Remove.
4193 * m/mips.h (XUNMARK): Remove.
4194 * m/mips-siemens.h (XUNMARK): Remove.
4195 * m/iris4d.h (XUNMARK): Remove.
4196 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
4197
0930c1a1
SM
41982003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
4199
31003b9e
SM
4200 * lisp.h (VALBITS): Don't remove 1 for the markbit.
4201 (union Lisp_Object): Use unsigned int for types. Remove markbit.
4202 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
4203 (XTYPE): Use unsigned right-shift.
4204 (XMARKBIT, XMARK, XUNMARK): Remove.
4205
0930c1a1
SM
4206 * alloc.c (init_intervals, init_symbol, init_marker):
4207 Don't preallocate anything.
4208 (Fgarbage_collect, mark_object): Ignore the markbit.
4209
4210 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
4211
19bb0fcd 42122003-09-08 Lute Kamstra <lute@gnu.org>
5df034de
LK
4213
4214 * xdisp.c (pint2hrstr): New function.
4215 (decode_mode_spec): Add `%i' and `%I' specs.
4216 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
4217 for `mode-line-format'.
4218
03bb6a06
AS
42192003-09-07 Andreas Schwab <schwab@suse.de>
4220
4221 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
4222 avoid warning.
4223
a6eeaa81 42242003-09-07 Eli Zaretskii <eliz@gnu.org>
2063d89c 4225
0930c1a1 4226 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
2063d89c 4227
ed159bbf
KS
42282003-09-03 Kim F. Storm <storm@cua.dk>
4229
4230 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
4231 change (superseded by 2002-08-30 change); the default blink-off
4232 cursor is now again "no cursor".
4233
fe64a394
JR
42342003-09-01 Jason Rumney <jasonr@gnu.org>
4235
4236 * makefile.w32-in (alloca.o): Remove.
4237 (coding.o): Depend on intervals.h
4238 (emacs.o, bytecode.o): Depend on window.h
4239
c0175e24
DL
42402003-09-01 Dave Love <fx@gnu.org>
4241
4242 * Makefile.in (alloca.o): Remove commands.
4243 (coding.o): Depend on intervals.h composite.h window.h.
4244 (emacs.o): Depend on window.h keyboard.h keymap.h.
4245 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
4246 (bytecode.o): Depend on window.h.
4247
a24d4cb2
JR
42482003-08-31 Jason Rumney <jasonr@gnu.org>
4249
4bc2315e
JR
4250 * w32term.c (w32_per_char_metric): Allow cached metrics to be
4251 returned even when font_type is unknown.
4252
a24d4cb2
JR
4253 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
4254
9d35adc7
JD
42552003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4256
4257 * xterm.c (x_term_init): Initialize new fields in x_display_info.
4258
4259 * xterm.h (struct x_display_info): Add red/green/blue_bits and
4260 *_offset.
4261
4262 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
4263 calculate pixel value.
4264
6f68b035
GM
42652003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
4266
0930c1a1
SM
4267 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
4268 Don't tell redisplay display is accurate when it's actually been
4269 paused for pending input.
6f68b035 4270
4828b4d7
RS
42712003-08-29 Richard M. Stallman <rms@gnu.org>
4272
4273 * dispnew.c (adjust_glyph_matrix): Call window_box
4274 whenever W is nonzero.
4275
4276 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
4277 (Fkill_local_variable, Fmake_variable_frame_local)
0930c1a1 4278 (Flocal_variable_p, Flocal_variable_if_set_p):
4828b4d7
RS
4279 Use indirect_variable to trace thru variable aliases.
4280
4281 * config.in: Updated.
4282
4283 * callint.c (Fcall_interactively): Save and restore
4284 Vthis_command, Vthis_original_command, real_this_command,
4285 and current_kboard->Vlast_command.
4286
4287 * abbrev.c (Fexpand_abbrev): Insert before deleting.
4288
e019878d
GM
42892003-08-29 Gerd Moellmann <gerd@gnu.org>
4290
4291 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
4292
85478bc6
KH
42932003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
4294
0930c1a1 4295 * coding.c (decode_coding_iso2022): Initialize local variable c2.
85478bc6
KH
4296 (decode_coding_sjis_big5): Likewise.
4297
07ce82d3
JR
42982003-08-27 Jason Rumney <jasonr@gnu.org>
4299
d3703de3
JR
4300 * w32.c (sys_pipe): Protect against file descriptor overflow.
4301
ee4a01d1
JR
4302 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
4303
07ce82d3
JR
4304 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
4305
a64387ee 43062003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
72d19c66
LK
4307
4308 * xfns.c (Vgtk_version_string): New variable.
4309 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
4310
a6eeaa81 43112003-08-24 Eli Zaretskii <eliz@gnu.org>
5459e42a 4312
0930c1a1 4313 * term.c (term_init): Remove `const' from buffer_size's declaration.
3d8714e7 4314
5459e42a
EZ
4315 * Makefile.in (msdos.o): Depend on intervals.h.
4316
0930c1a1 4317 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
5459e42a 4318
231d6cfb
JD
43192003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4320
4321 * xterm.h (struct x_display_info): New fields: client_leader_window
4322 and Xatom_wm_client_leader.
4323
4324 * xterm.c (x_initialize): Move call to x_session_initialize to ...
4325 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
4326
4327 * xsmfns.c (create_client_leader_window): New function.
4328 (x_session_initialize): Call create_client_leader_window, take
4329 dpyinfo as argument.
4330
4331 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
4332
4333 * Makefile.in (xsmfns.o): Add more depenedencies.
4334
afa88464
DL
43352003-08-21 Dave Love <fx@gnu.org>
4336
4337 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
4338
f730033e
KH
43392003-08-21 Kenichi Handa <handa@m17n.org>
4340
4341 * term.c (term_init): Fix previous change; don't rely on the
4342 length of `buffer' if TERMINFO is defined.
4343
6dca786c
DL
43442003-08-20 Dave Love <fx@gnu.org>
4345
4346 * atimer.h: Include lisp.h.
4347
4348 * lisp.h (EMACS_LISP_H): New.
4349 (popup_activated_flag): Don't declare.
4350
4351 * alloca.c: Some merging with gnulib. Change logic and doc
4352 concerning (x)malloc/(x)free -- no longer Emacs-specific.
4353 [DO_BLOCK_INPUT]: Don't include lisp.h.
4354 (xmalloc, xfree): Declare.
4355 (malloc): Don't declare.
4356
0930c1a1 4357 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
6dca786c
DL
4358 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
4359 atimer.h, blockinput.h.
4360
4361 * alloc.c (lisp_align_malloc): Change type of `aligned'.
4362
4363 * alloca.s: Removed.
4364
3a06a6d9
RS
43652003-08-19 Gerd Moellmann <gerd@gnu.org>
4366
4367 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
4368 use -lncurses.
4369
4370 * term.c (term_init): Use a buffer of size 4096 for tgetent since
4371 FreeBSD returns something longer than 2044. Abort if the end of
4372 the buffer is overwritten.
4373
27eeee55
MB
43742003-08-19 Miles Bader <miles@gnu.org>
4375
4376 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
4377
2f297815
GM
43782003-08-19 Gerd Moellmann <gerd@gnu.org>
4379
f4446bbf
GM
4380 * alloc.c (lisp_align_malloc): Check for memory full when
4381 allocating ablocks, which also avoids freeing a pointer into an
4382 ablocks structure.
4383
4384 * puresize.h (BASE_PURESIZE): Increase to 1100000.
4385
0930c1a1 4386 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
2f297815 4387
0e7d7aae
RS
43882003-08-16 Richard M. Stallman <rms@gnu.org>
4389
4390 * editfns.c (Fencode_time): Doc fix.
4391
43922003-08-16 David Ponce <david@dponce.com>
4393
4394 * fileio.c (Fwrite_region): Fix conditional expression to issue
4395 the right message.
4396
43972003-08-16 Juri Linkov <juri@jurta.org> (tiny change)
4398
4399 * syntax.c (Fforward_word): Argument changed to optional.
0930c1a1 4400 Set default value to 1.
0e7d7aae 4401
5d551295
KH
44022003-08-15 Kenichi Handa <handa@m17n.org>
4403
4404 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
4405 what autoscaled.
4406 (best_matching_font): Once we find a better scalable font, set
4407 non_scalable_has_exact_height_p to 1.
4408 (try_font_list): Call try_alternative_families to try any family
4409 with the given registry.
4410
1661e56b
AS
44112003-08-09 Andreas Schwab <schwab@suse.de>
4412
f29181dc
AS
4413 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
4414
1661e56b
AS
4415 * print.c (print_string): Fix printing of multibyte string with
4416 nontrivial printcharfun.
4417
465aa50a
JD
44182003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4419
4420 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
4421
4422 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
4423
e430e5ba
KH
44242003-07-31 Kenichi Handa <handa@m17n.org>
4425
4426 * process.c (read_process_output): Return the actually read bytes
4427 instead of the result of decoding.
4428
97e7188e
KH
44292003-07-31 Kenichi Handa <handa@m17n.org>
4430
4431 * xterm.h (struct x_bitmap_record): New member have_mask.
4432
4433 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
4434 to 0.
4435 (x_create_bitmap_from_file): Likewise.
4436 (x_destroy_bitmap): Check have_mask member before freeing a mask.
4437 (x_destroy_all_bitmaps): Likewise.
4438 (x_create_bitmap_mask): Set have_mask member to 1.
4439
b53094d6
RS
44402003-07-30 Richard M. Stallman <rms@gnu.org>
4441
4442 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
4443
631f2082
JD
44442003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4445
4446 * gtkutil.c (xg_mark_data): Update calls to mark_object.
4447
c855f2ca
RS
44482003-07-29 Richard M. Stallman <rms@gnu.org>
4449
4450 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
4451 Conditionalize XIM code on HAVE_XIM.
4452
4453 * fns.c (Fclear_string): New function.
4454 (syms_of_fns): defsubr it.
4455
17e6d491
KH
44562003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp> (tiny change)
4457
0930c1a1 4458 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
17e6d491 4459
29ea8ae9
SM
44602003-07-22 Stefan Monnier <monnier@cs.yale.edu>
4461
4462 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
4463
4464 * buffer.c (delete_all_overlays): New function.
4465 * buffer.h (delete_all_overlays): Declare.
4466 * coding.c (run_pre_post_conversion_on_str):
4467 * print.c (temp_output_buffer_setup):
4468 * fileio.c (Finsert_file_contents):
4469 * minibuf.c (get_minibuffer): Use it.
4470
1dd7ccf2
AC
44712003-07-22 Andrew Choi <akochoi@shaw.ca>
4472
4473 * unexmacosx.c (unexec_regions_sort_compare):
4474 (unexec_regions_merge): New functions. Sort and merge unexec
4475 regions before dumping them.
4476
f57bd967
DL
44772003-07-22 Dave Love <fx@gnu.org>
4478
4479 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
4480
7cdee936
SM
44812003-07-21 Stefan Monnier <monnier@cs.yale.edu>
4482
4483 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
4484 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
4485 MARKBIT as the gcmarkbit for strings.
4486
e50886d3
RS
44872003-07-21 Richard M. Stallman <rms@gnu.org>
4488
4489 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
4490
29ea8ae9 4491 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
e50886d3
RS
4492 (syms_of_fns): Corresponding change.
4493
4494 * alloc.c (syms_of_alloc): Doc fixes.
4495
44962003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
4497
4498 * s/netbsd.h: Use -Wl syntax.
4499
fdc39b59
RS
45002003-07-17 Richard M. Stallman <rms@gnu.org>
4501
4502 * xterm.c (xim_initialize): Redo 6/24 change.
4503
9c53385f
SM
45042003-07-15 Stefan Monnier <monnier@cs.yale.edu>
4505
4506 * buffer.c (copy_overlays): Use EMACS_INT for positions.
4507 (Fswitch_to_buffer): Don't signal an error when switching to the same
4508 buffer in a dedicated window.
4509
4510 * alloc.c: Use bitmaps for cons, as was done for floats.
4511 (init_float, init_cons): Let the normal code allocate the first block.
4512 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
4513 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
4514 New macros.
4515 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
4516 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
4517 (live_cons_p): Check the pointer is not past the `conses' array.
4518 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
4519 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
4520 (survives_gc_p): Use CONS_MARKED_P and simplify.
4521 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
4522
dde13196
PE
45232003-07-13 Paul Eggert <eggert@twinsun.com>
4524
4525 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
4526 puts it into BSS instead, at least on Solaris 8 and 9.
4527 This is a valid optimization, and it may occur on other platforms,
4528 so Emacs should not assume that initializing a static variable to
4529 zero puts it into data.
4530 * alloc.c (pure, staticvec):
4531 Initialize these arrays to nonzero, so that they're not
4532 put into BSS by that optimization.
4533
a801bc34
SM
45342003-07-13 Stefan Monnier <monnier@cs.yale.edu>
4535
4536 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
4537 (lisp_align_malloc): Use posix_memalign is available.
4538 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
4539 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
4540 for consistency. Update users.
4541
0c8b2afa
RS
45422003-07-13 Richard M. Stallman <rms@gnu.org>
4543
4544 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
4545
668c2ab0
JB
45462003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
4547
4548 * xterm.c (x_bitmap_icon,x_wm_set_icon_pixmap): Modify to add mask,
4549 and use the Gtk+ function gtk_window_icon_from_file if available.
4550
4551 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
4552 handle mask of bitmaps.
4553 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
4554 mask property.
4555 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
4556
4557 * xterm.h (xg_set_icon): New function.
4558
800bebe3
RS
45592003-07-12 Paul Eggert <eggert@twinsun.com>
4560
4561 * unexelf.c (unexec): Consider a section to precede the .bss
4562 section if its addresses overlap that of .bss.
4563
69e38995
RS
45642003-07-12 Richard M. Stallman <rms@gnu.org>
4565
4566 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
4567
4568 * config.in (HAVE_CRTIN): Add #undef.
4569 (INLINE): Really inline only if OPTIMIZE is defined.
4570
4571 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
4572 END_FILES_1.
4573 (START_FILES_1, END_FILES_1): New macros (conditional).
a801bc34 4574 (LD_SWITCH_SYSTEM_TEMACS): Define.
69e38995
RS
4575
4576 * s/openbsd.h: Don't include bsd4-3.h.
a801bc34
SM
4577 (TERMINFO): Define.
4578 (LIBS_TERMCAP): Define.
4579 (LD_SWITCH_SYSTEM): Define (two definitions).
69e38995
RS
4580
4581 * xfns.c: Include libpng/png.h instead of png.h.
4582
f1d0c238
AS
45832003-07-11 Andreas Schwab <schwab@suse.de>
4584
4585 * buffer.c (modify_overlay): Update prototype.
4586 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
4587 Likewise.
4588
5f6bf5fe
SM
45892003-07-09 Stefan Monnier <monnier@cs.yale.edu>
4590
4591 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
4592 (struct interval): Move to intervals.h.
4593 (struct Lisp_Marker): Use EMACS_INT for position info.
4594 (forward_point): Remove prototype of defunct function.
4595 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
4596 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
4597 (syms_of_textprop, set_text_properties): Remove prototypes that are
4598 already in intervals.h.
4599
4600 * intervals.h (struct interval): Move from lisp.h.
4601 Use EMACS_INT for position and size info.
4602
4603 * coding.c: Include intervals.h for Fset_text_properties.
4604
4605 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
4606 position and length information.
4607
2765b457
SM
46082003-07-09 Stefan Monnier <monnier@cs.yale.edu>
4609
4610 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
4611 position and length information.
4612
2410d73a
SM
46132003-07-09 Stefan Monnier <monnier@cs.yale.edu>
4614
4615 Change overlays_after and overlays_before so the overlays themselves
4616 are linked into lists, rather than using cons cells. After all each
4617 Lisp_Misc already occupies 5 words, so we can add a `next' field to
4618 Lisp_Overlay for free and save up one cons cell per overlay (not
4619 to mention one indirection when traversing the list of overlay).
4620
4621 * lisp.h (struct Lisp_Overlay): New field `next'.
4622
4623 * buffer.h (struct buffer): Change overlays_before and overlays_after
4624 from Lisp lists of overlays to pointers to overlays.
4625
4626 * buffer.c (overlay_strings, recenter_overlay_lists):
4627 Fix typo in eassert in last commit.
4628 (unchain_overlay): New function.
4629 (add_overlay_mod_hooklist): Use AREF.
4630 (copy_overlays, reset_buffer, overlays_at, overlays_in)
4631 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
4632 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
4633 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
4634 (report_overlay_modification, evaporate_overlays, init_buffer_once):
4635 Adjust to new type of overlays_(before|after).
4636
4637 * alloc.c (mark_object): Mark the new `next' field of overlays.
4638 (mark_buffer): Manually mark the overlays_(after|before) fields.
4639
4640 * coding.c (run_pre_post_conversion_on_str):
4641 * editfns.c (overlays_around):
4642 * xdisp.c (load_overlay_strings):
4643 * fileio.c (Finsert_file_contents):
4644 * indent.c (current_column):
4645 * insdel.c (signal_before_change, signal_after_change):
4646 * intervals.c (set_point_both):
4647 * print.c (temp_output_buffer_setup): Use new type for
4648 overlays_(before|after).
4649
04812929
SM
46502003-07-08 Stefan Monnier <monnier@cs.yale.edu>
4651
4652 * buffer.c (report_overlay_modification): Don't run hooks while
4653 traversing the list of overlays.
4654
4655 * buffer.h (struct buffer): Use an int for overlay_center.
4656 (overlays_at, evaporate_overlays, recenter_overlay_lists)
4657 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
4658
4659 * buffer.c (reset_buffer, recenter_overlay_lists)
4660 (adjust_overlays_for_insert, adjust_overlays_for_delete)
4661 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
4662 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
4663 (overlays_at, evaporate_overlays, recenter_overlay_lists)
4664 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
4665
4666 * xdisp.c (fast_find_position): Remove unused var.
4667
4668 * cmds.c (Qexpand_abbrev): New sym.
4669 (syms_of_cmds): Initialize it.
4670 (internal_self_insert): Use it to call expand-abbrev.
4671
2e7ecf15
KS
46722003-07-09 Kim F. Storm <storm@cua.dk>
4673
f9711de4 4674 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
2e7ecf15 4675 was configured with --without-xim.
42f81f64 4676 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
2e7ecf15 4677
c6de56a0
RS
46782003-07-07 Richard M. Stallman <rms@gnu.org>
4679
4680 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
4681
4682 * alloc.c (Fgarbage_collect): Doc fix.
4683
b93fb365
KH
46842003-07-07 Nozomu Ando <nand@mac.com> (tiny change)
4685
4686 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
4687
bfe1a3f7
SM
46882003-07-06 Stefan Monnier <monnier@cs.yale.edu>
4689
04812929
SM
4690 * minibuf.c (read_minibuf): UNGCPRO before returning.
4691 (Ftry_completion, Fall_completions): Doc fix.
4692
bfe1a3f7
SM
4693 * alloc.c (live_float_p): Check that p is not past the `floats' array,
4694 now that `floats' is not the last element of the struct any more.
4695
ee79d1aa
JR
46962003-07-06 Jason Rumney <jasonr@gnu.org>
4697
4698 * w32term.h (ClipboardSequence_Proc): New type.
4699
4700 * w32fns.c (clipboard_sequence_fn): New variable.
4701 (globals_of_w32fns): Initialize it.
4702
4703 * w32select.c (last_clipboard_sequence_number): New variable.
4704 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
4705 number if possible.
4706
49723c04
SM
47072003-07-06 Stefan Monnier <monnier@cs.yale.edu>
4708
4698665f
SM
4709 * m/amdx86-64.h (MARKBIT):
4710 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
4711 MARKBIT and ARRAY_MARK_FLAG any more.
4712
4713 * m/hp800.h (XSETMARKBIT):
4714 * m/sr2k.h (XSETMARKBIT):
4715 * lisp.h (XSETMARKBIT): Remove unused macro.
4716
49723c04
SM
4717 * lisp.h (mark_object): Change prototype.
4718
4719 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
4720 (last_marked): Change accordingly.
4721 (mark_interval, mark_maybe_object, mark_maybe_pointer)
4722 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
4723 (mark_buffer): Update calls to mark_object.
4724
4725 * bytecode.c (mark_byte_stack):
4726 * fns.c (sweep_weak_table):
4727 * keyboard.c (mark_kboards): Update calls to mark_object.
4728
1d660eca
JR
47292003-07-06 Jason Rumney <jasonr@gnu.org>
4730
4731 * alloc.c (struct ablock): Only include padding when there is some.
4732
618b5ae4
SM
47332003-07-04 Stefan Monnier <monnier@cs.yale.edu>
4734
4735 * alloc.c (ALIGN): Add casts to simplify usage.
4736 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
4737 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
4738 (struct ablock, struct ablocks): New types.
4739 (free_ablock): New global var.
4740 (lisp_align_malloc, lisp_align_free): New functions.
4741 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
4742 (struct float_block): Reorder and add gcmarkbits.
4743 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
4744 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
4745 (init_float, make_float): Use lisp_align_malloc.
4746 (free_float, live_float_p): Don't use `type' any more.
4747 (make_float): Use FLOAT_UNMARK to access to mark bit.
4748 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
4749 Use FLOAT_MARKED_P to access the mark bit.
4750 (pure_alloc): Simplify use of ALIGN.
4751 (mark_object): Use FLOAT_MARK to access the mark bit.
4752 (gc_sweep): Use new macros to access the float's mark bit.
4753 (init_alloc_once): Init free_ablock.
4754
4755 * lisp.h (struct Lisp_Float): Remove unused field `type'.
4756
3ef06d12
SM
47572003-06-27 Stefan Monnier <monnier@cs.yale.edu>
4758
4759 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
4760 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
4761 (allocate_buffer): Move.
4762 (string_bytes): Don't mask markbit of `size_byte'.
4763 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
4764 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
4765 Use the `size' field of buffers (rather than the `name' field) for
4766 the mark bit, as is done for all other vectorlike objects.
4767 Use the new macros to access the mark bit of vectorlike objects.
4768
e81043aa
RS
47692003-06-26 Richard M. Stallman <rms@gnu.org>
4770
4771 * puresize.h (BASE_PURESIZE): Increment base size.
4772
4773 * xdisp.c (fast_find_position): Enable Gerd's new definition.
4774
4775 * xterm.c (xim_initialize): Undo previous change.
4776
2d0834cc
SM
47772003-06-26 Stefan Monnier <monnier@cs.yale.edu>
4778
4779 * alloc.c (survives_gc_p): Simplify.
4780
4781 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
4782
4783 * window.c (Fset_window_dedicated_p): Simplify.
4784 (display_buffer_1): Don't raise the win from which minibuf was entered.
4785 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
4786 (Fminibuffer_selected_window): Simplify.
4787
4788 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
4789
4790 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
4791 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
4792
4793 * insdel.c (check_markers, adjust_markers_for_delete)
4794 (adjust_markers_for_insert, adjust_markers_for_replace)
4795 (prepare_to_modify_buffer, RESTORE_VALUE):
4796 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
4797 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
4798 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
4799 * alloc.c (Fmake_marker, free_marker, gc_sweep):
4800 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
4801 * editfns.c (save_excursion_restore, transpose_markers):
4802 * window.c (delete_window):
4803 * xdisp.c (message_dolog): Update for new types.
4804
d54ae3d8
JD
48052003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4806
a5f696ac
JD
4807 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
4808 (realize_default_face): Use default_face_done_p for the force_p
2d0834cc 4809 argument to set_lface_from_font_name. Set default_face_done_p to one.
a5f696ac
JD
4810
4811 * frame.c (make_frame): Initialize default_face_done_p.
4812
4813 * frame.h (struct frame): Add default_face_done_p.
4814
d54ae3d8
JD
4815 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
4816 will be defined.
4817
2336fe58
SM
48182003-06-25 Stefan Monnier <monnier@cs.yale.edu>
4819
4820 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
4821 Initialize the new field `gcmarkbit'.
4822 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
4823 (mark_interval_tree): Don't mark the tree separately from the nodes.
4824 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
4825 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
4826 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
4827
4828 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
4829 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
4830 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
4831 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
4832 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
4833
bcea31c2
DL
48342003-06-24 Dave Love <fx@gnu.org>
4835
4836 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
4837
4838 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
4839 from gnulib.
4840
2601f59e
RS
48412003-06-21 Richard M. Stallman <rms@gnu.org>
4842
4843 * fileio.c (Fwrite_region): Alternate messages
4844 for append and partial write.
4845
4846 * keyboard.c (read_key_sequence): When converting upcase fn key to
4847 downcase, update fkey and keytran so `backspace' gets translated.
4848
4849 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
4850
4851 * process.c (wait_reading_process_input): Don't signal SIGIO
4852 in batch mode.
4853
b5d2c621
KH
48542003-06-17 Kenichi Handa <handa@m17n.org>
4855
4856 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
4857 composite.h.
4858
4859 * xselect.c: Don't include charset.h, coding.h, composite.h.
4860 (Qforeign_selection): New variable.
4861 (syms_of_xselect): Intern and static it.
4862 (selection_data_to_lisp_data): Return a unibyte string made from
4863 data with `foreign-selection' text property.
4864
6793bc63
SM
48652003-06-15 Stefan Monnier <monnier@cs.yale.edu>
4866
4867 * termhooks.h (EVENT_INIT): New macro.
4868
4869 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
4870
4871 * alloc.c (mark_kboards): Move to keyboard.c.
4872
4873 * keyboard.c (record_asynch_buffer_change, read_avail_input):
4874 * xterm.c (x_dispatch_event):
4875 * xmenu.c (find_and_call_menu_selection):
4876 * xdisp.c (handle_tool_bar_click):
4877 * w32menu.c (menubar_selection_callback):
4878 * sysdep.c (kbd_input_ast, read_input_waiting):
4879 * msdos.c (dos_rawgetc):
4880 * macterm.c (mac_check_for_quit_char):
4881 * macmenu.c (menubar_selection_callback):
4882 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
4883 data to kbd_buffer_store_event.
4884
b3ea810c
KS
48852003-06-15 Kim F. Storm <storm@cua.dk>
4886
4887 * xdisp.c (x_fix_overlapping_area): Always use area relative X
6793bc63 4888 to fix redisplay problem with tall characters (such as \e,AC\e(B).
b3ea810c 4889
b8f75eda
KG
48902003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
4891
4892 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
4893
ba92ce48
KH
48942003-06-12 Kenichi Handa <handa@m17n.org>
4895
4896 * fileio.c (Fwrite_region): Save and restore restriction.
4897
b80263be
DL
48982003-06-12 Dave Love <fx@gnu.org>
4899
4900 * alloca.c (alloca): Declare arg as size_t.
4901
6793bc63
SM
4902 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
4903 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
b80263be 4904
b23c0a83
DL
49052003-06-11 Dave Love <fx@gnu.org>
4906
4907 * search.c (shrink_regexp_cache): Use xrealloc.
4908 (syms_of_search): Use xmalloc.
4909
700e47c2
KS
49102003-06-10 Kim F. Storm <storm@cua.dk>
4911
4912 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
4913 Adjust phys_cursor.x to be relative to window box, rather than
4914 text area before checking -- to ensure cursor is redrawn when
4915 exposing window.
4916 Note: This also fixes a similar (older) bug if display margins
4917 are present.
4918
f11aa0b2
KH
49192003-06-06 Kenichi Handa <handa@m17n.org>
4920
4921 * coding.c (encoding_buffer_size): If coding->type is
4922 coding_type_ccl, double magnification on CRLF encoding.
4923
3d143690
JR
49242003-06-06 Jason Rumney <jasonr@gnu.org>
4925
4926 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
4927 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
4928
4929 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
4930 Mac too.
4931
f16205ca
DL
49322003-06-05 Dave Love <fx@gnu.org>
4933
b23c0a83
DL
4934 * strftime.c: Merge changes from gnulib.
4935
f16205ca
DL
4936 * mktime.c (__mktime_internal): Merge changes from gnulib
4937 involving year 69 and dst2.
4938
4939 Changes to merge with gnulib version and be consistent with the
4940 autoconf test:
4941
6793bc63
SM
4942 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
4943 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
f16205ca
DL
4944 [HAVE_LOCALE_H]: Include locale.h.
4945 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
4946
9b87a0bc
KS
49472003-06-05 Kim F. Storm <storm@cua.dk>
4948
4949 * window.c (coordinates_in_window): Convert X and Y to window
4950 relative coordinates inside mode-line and header-line parts.
4951 Convert X and Y to margin area relative coordinates inside left
4952 and right display margin parts.
4953
5a8a15ec
JR
49542003-06-05 Jason Rumney <jasonr@gnu.org>
4955
4956 * w32fns.c (add_system_logical_colors_to_map): New function.
4957 (Fx_open_connection): Use it.
4958
01ed8ff1
SM
49592003-06-04 Stefan Monnier <monnier@cs.yale.edu>
4960
4961 * process.c (allocate_pty): Revert part of the previous patch.
4962 (Faccept_process_output): Simplify.
4963
b427b65d
JR
49642003-06-04 Jason Rumney <jasonr@gnu.org>
4965
4966 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
4967
4968 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
4969 (lispy_mouse_wheel_names): Remove.
4970 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
4971 Always define drag_and_drop_syms.
4972
4973 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
4974 WHEEL_EVENT events.
4975
914a8c47
SM
49762003-06-03 Stefan Monnier <monnier@cs.yale.edu>
4977
01ed8ff1
SM
4978 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
4979
914a8c47
SM
4980 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
4981
adcb132c
JD
49822003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4983
4984 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
4985 menu item label.
4986
be781fa7
RS
49872003-06-03 Richard M. Stallman <rms@gnu.org>
4988
4989 * window.c (Fwindow_edges): Doc fix.
4990 (Fwindow_pixel_edges, Fwindow_inside_edges)
4991 (Fwindow_inside_pixel_edges): New functions.
4992 (syms_of_window): defsubr them.
4993
4994 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
4995 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
4996
914a8c47
SM
49972003-06-02 Stefan Monnier <monnier@cs.yale.edu>
4998
4999 * dispnew.c (Fsit_for): Don't lie about the number of args.
5000
5b07197a
DL
50012003-06-02 Dave Love <fx@gnu.org>
5002
5003 * callproc.c: Use HAVE_FCNTL_H, not USG5.
5004 (syms_of_callproc) <process-environment>: Doc fix.
5005
5006 * doc.c: Use HAVE_FCNTL_H, not USG5.
5007
5008 * xfaces.c (font_rescale_ratio): Fix for K&R.
5009
5010 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
5011
5012 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
5013
5014 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
5015
5016 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
5017 (xg_create_frame_widgets): Use ENCODE_UTF_8.
5018
d7107586 5019 * xterm.c (Qutf_8): Move to coding.c
5b07197a
DL
5020
5021 * xmenu.c (ENCODE_MENU_STRING): New.
5022 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
5023 Use it.
5024
5025 * coding.h (ENCODE_UTF_8): New.
5026 (Qutf_8): Declare.
5027
5028 * coding.c (Qutf_8): New.
5029 (syms_of_coding): Intern it.
5030
5031 * fns.c: Doc fixes.
5032
7335b336
KH
50332003-06-02 Kenichi Handa <handa@m17n.org>
5034
5035 * buffer.c (Fset_buffer_multibyte): Fix previous change.
5036
914a8c47
SM
50372003-06-01 Stefan Monnier <monnier@cs.yale.edu>
5038
5039 * lread.c (openp): Make sure STR is a string.
5040
9862c135
JR
50412003-06-01 David Ponce <david@dponce.com>
5042
5043 * termhooks.h (enum event_kind): Added new WHEEL_EVENT event.
5044 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
5045
5046 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
5047 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
5048 (discard_mouse_events): Discard WHEEL_EVENT events too.
5049 (lispy_wheel_names, wheel_syms): New.
5050 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
5051 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX
5052 defined.
914a8c47 5053 (make_lispy_event): Add WHEEL_EVENT handler.
9862c135
JR
5054
5055 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
5056 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
5057 WHEEL_EVENT events.
5058
f984e73e
JPW
50592003-05-31 John Paul Wallington <jpw@gnu.org>
5060
5061 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
5062 timer are in lisp/emacs-lisp.
5063
1efcd78f
KH
50642003-05-31 Kenichi Handa <handa@m17n.org>
5065
458c8af4
KH
5066 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
5067 region when a buffer is changed to unibyte.
5068
1efcd78f
KH
5069 * charset.h (VALID_LEADING_CODE_P): New macro.
5070 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
5071
778e2804
KH
5072 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
5073 is nonzero, accept multibyte form of eight-bit-control chars.
5074 (decode_composition_emacs_mule): Likewise.
5075 (decode_coding_emacs_mule): Likewise.
5076 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
5077 multibyte form of eight-bit-control chars.
5078
5079 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
5080 (Finsert_file_contents): If coding-system-for-read is bound to
5081 Qauto_save_coding, use the coding system emacs-mule with special
5082 setting for recovering a file.
5083 (choose_write_coding_system): On auto saving, use the coding
5084 system emacs-mule with special setting for auto saving.
5085 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
5086
034060e4
KH
50872003-05-30 Kenichi Handa <handa@m17n.org>
5088
5089 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
5090 properly before calling ccl_driver.
5091
778e2804 5092 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
034060e4
KH
5093
5094 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is
5095 nonzero.
5096 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
5097 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
5098
595f5aa5
GM
50992003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
5100
5101 * xfaces.c (realize_default_face): Do not abort if lface is
5102 non-existent - reverts change from 2003-05-19.
5103
103e0180
KH
51042003-05-29 Kenichi Handa <handa@m17n.org>
5105
5106 * coding.c (decode_coding_iso2022): Pay attention to the byte
5107 sequence of CTEXT extended segment, and retain those bytes as is.
5108
51092003-05-28 Kenichi Handa <handa@m17n.org>
5110
5111 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjusted for the name change
5112 of CODING_REPLACEMENT_CHARACTER.
5113 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
5114 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
5115 check this flag on encoding.
5116 (encode_coding_sjis_big5): Check
5117 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
5118 (Fset_terminal_coding_system_internal): Set
5119 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
5120 instead of setting CODING_FLAG_ISO_SAFE flag in
5121 terminal_coding.flags.
5122
5123 * coding.h (CODING_REPLACEMENT_CHARACTER): Renamed from
5124 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
5125 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
5126
ff6a3bfb 51272003-05-28 Richard M. Stallman <rms@gnu.org>
45f266dc 5128
ff6a3bfb
RS
5129 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
5130
5131 * eval.c (unbind_to): Move init of this_binding to separate statement.
45f266dc 5132
1963c428
KS
51332003-05-28 Kim F. Storm <storm@cua.dk>
5134
5135 * xdisp.c (expose_window): Fix error in calculation of
5136 window relative coordinates of area to redisplay.
5137
2b5d4601
JR
51382003-05-27 Jason Rumney <jasonr@gnu.org>
5139
5140 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
5141
1c64a4a2
JB
51422003-05-27 David Ponce <david@dponce.com>
5143
5144 Handle W32 mouse wheel events as mouse click events, like in X.
5145
5146 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
5147 MOUSE_WHEEL_EVENT anymore.
5148
5149 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
5150 Scrolling down/up the mouse wheel is respectively mapped to mouse
5151 button 4 and 5.
5152 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
5153 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
5154 WM_MOUSEWHEEL events.
5155
2d031b89
AS
51562003-05-27 Andreas Schwab <schwab@suse.de>
5157
20464fdf
AS
5158 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
5159
2d031b89
AS
5160 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
5161 partially visible line.
5162
5163 * alloc.c (Fgarbage_collect): Fix last change.
5164
97bc76d4
JPW
51652003-05-26 John Paul Wallington <jpw@gnu.org>
5166
5167 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
5168
56613f06
SM
51692003-05-25 Stefan Monnier <monnier@cs.yale.edu>
5170
5171 * window.c (Fset_window_buffer): Add type of `keep_margins'.
5172 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
5173
5174 * window.h (window_box_text_cols): Declare.
5175
5176 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
5177 (x_draw_vertical_border): Remove unused var `f'.
5178
5179 * xfaces.c (build_scalable_font_name): Remove `unused var
5180 pixel_size' warning.
5181
5182 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
5183
5184 * unexelf.c (unexec): Remove `unused var n' warning.
5185
5186 * strftime.c (my_strftime_localtime_r): Remove `defined but
5187 unused' warning.
5188
5189 * process.c (allocate_pty): Remove `unused var stb' and
5190 `cp might be used uninitialized' warnings.
5191
5192 * dispnew.c (mode_line_string): Remove unused var `f'.
5193
5194 * coding.c (find_safe_codings): Remove unused var `i'.
5195
5196 * bytecode.c (Fbyte_code): Remove `unused val' warning.
5197
5198 * buffer.c (Fkill_buffer): Remove unused var `list'.
5199
5200 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
5201
93421a1f
JD
52022003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5203
5204 * frame.c (make_frame): Condition want_fullscreen with
5205 HAVE_WINDOW_SYSTEM.
5206
c4b8aebc
JB
52072003-05-25 Juanma Barranquero <lektu@terra.es>
5208
5209 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
5210 (Fwindow_scroll_bars): Fix typo in docstring.
5211
0416870b
KS
52122003-05-24 Kim F. Storm <storm@cua.dk>
5213
5214 The following changes serve several purposes:
5215
5216 1) Swap the position of fringes and display margins in windows, i.e.
5217 the fringes are now displayed between the margins and the text area
5218 (by default).
5219
5220 2) Allow fringe and scroll bar parameters to be set per-buffer and
5221 per-window (like display margins). Such settings are now stored
5222 in window configurations, preserved when frames are resized, and
9018a88e 5223 copied when windows are split vertically or horizontally.
0416870b
KS
5224 Several bugs related to display margins have been fixed.
5225
5226 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
9018a88e 5227
0416870b
KS
5228 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
5229 rather than FRAME_WIDTH (FRAME_FONT (f)).
5230
5231 5) Introduce a consistent naming of variables, members and macros
5232 depending on whether their value is measured in pixels or in
5233 canonical columns/lines. Pixel dimensions are named *_width and
5234 *_height, while canonical columns/lines are named *_cols and
5235 *_lines. Pixel positions are named *_x and *_y, while column/line
5236 positions are named *_col and *_line.
5237
5238 6) Consolidate more of the X, W32, and MAC gui code by moving
5239 common data into struct frame, and generalize it for the non-gui
5240 case by using suitable defaults.
5241
5242 7) Cleanup and consolidate the macros controlling frame and window
5243 layout into frame.h and window.h, and generalize the use of the
5244 various window_box_* functions (enhanced to handle the new fringe
5245 position and the per-window fringe and scroll bar settings).
5246
5247 * frame.h (struct frame): Rename members height to text_lines,
5248 width to text_cols, window_height to total_lines, window_width to
5249 total_cols, new_height to new_text_lines, new_width to
5250 new_text_cols. All uses changed.
5251 (struct frame): New members which consolidate common members of
5252 x_output, w32_output, and mac_output structures: left_pos,
5253 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
5254 win_gravity, size_hint_flags, border_width, internal_border_width,
5255 line_height, fringe_cols, left_fringe_width, right_fringe_width,
5256 want_fullscreen. All uses changed.
5257 (struct frame): New member column_width contaning the canonical
5258 column width, analogue to line_height. All uses changed.
5259 (struct frame): Rename members scroll_bar_pixel_width to
5260 config_scroll_bar_width, and scroll_bar_cols to
5261 config_scroll_bar_cols. All uses changed.
5262 (struct frame): New member scroll_bar_actual_width which
5263 consolidates and renames the vertical_scroll_bar_extra member of
5264 x_output, w32_output, and mac_output structures. All uses changed.
5265 (FRAME_PIXEL_HEIGHT): Renamed from PIXEL_HEIGHT and moved
5266 from x/w32/macterm.h files. All uses changed. Also change code
5267 which referred to f->output_data...->pixel_height.
5268 (FRAME_PIXEL_WIDTH): Renamed from PIXEL_WIDTH and moved
f63fd14e 5269 from x/w32/macterm.h files. All uses changed. Also change code
0416870b
KS
5270 which referred to f->output_data...->pixel_width.
5271 (FRAME_LINES): Renamed from FRAME_HEIGHT. All uses changed.
5272 Also change code which referred to f->height.
5273 (FRAME_COLS): Renamed from FRAME_WIDTH. All uses changed.
5274 Also change code which referred to f->width.
5275 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
5276 to update new_text_lines and new_text_cols members directly.
5277 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Renamed from
5278 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
5279 (FRAME_CONFIG_SCROLL_BAR_COLS): Renamed from
5280 FRAME_SCROLL_BAR_COLS. All uses changed.
5281 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
5282 Renamed from FRAME_LEFT_SCROLL_BAR_WIDTH and
5283 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
5284 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
5285 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
5286 (FRAME_TOTAL_COLS): Renamed from FRAME_WINDOW_WIDTH.
5287 (SET_FRAME_COLS): Renamed from SET_FRAME_WIDTH.
5288 (FRAME_TOTAL_COLS_ARG): Renamed from FRAME_WINDOW_WIDTH_ARG.
5289 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
5290 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
5291 (FRAME_LINE_HEIGHT): Renamed from CANON_Y_UNIT. Unconditionally
5292 return line_height member (it now has proper value also for
5293 non-window frames).
5294 (FRAME_COLUMN_WIDTH): Renamed from CANON_X_UNIT. Unconditionally
5295 return new column_width member (rather than the default font width).
5296 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
5297 (FRAME_RIGHT_FRINGE_WIDTH): Renamed from FRAME_X_... and moved
5298 from x/w32/macterm.h files. Unconditionally return corresponding
5299 member of frame structure (they now have proper values also for
5300 non-window frames).
5301 (FRAME_TOTAL_FRINGE_WIDTH): Renamed from FRAME_FRINGE_WIDTH.
5302 Calculate return value from left and right widths.
5303 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
5304 internal_border_width member (has proper value for non-window frame).
5305 (FRAME_PIXEL_X_FROM_CANON_X): Renamed from PIXEL_X_FROM_CANON_X.
5306 (FRAME_PIXEL_Y_FROM_CANON_Y): Renamed from PIXEL_Y_FROM_CANON_Y.
5307 (FRAME_CANON_X_FROM_PIXEL_X): Renamed from CANON_X_FROM_PIXEL_X.
5308 (FRAME_CANON_Y_FROM_PIXEL_Y): Renamed from CANON_Y_FROM_PIXEL_Y.
5309 (FRAME_LINE_TO_PIXEL_Y): Renamed from CHAR_TO_PIXEL_ROW,
5310 consolidated from xterm.h, macterm.h, and w32term.h.
5311 (FRAME_COL_TO_PIXEL_X): Renamed from CHAR_TO_PIXEL_COL,
5312 consolidated from xterm.h, macterm.h, and w32term.h.
5313 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Renamed from
5314 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
5315 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Renamed from
5316 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
5317 (FRAME_PIXEL_Y_TO_LINE): Renamed from PIXEL_TO_CHAR_ROW
5318 consolidated from x/mac/w32term.h.
5319 (FRAME_PIXEL_X_TO_COL): Renamed from PIXEL_TO_CHAR_COL
5320 consolidated from x/mac/w32term.h.
5321 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Renamed from
5322 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
5323 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Renamed from
5324 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
5325
5326 * window.h (struct window): Rename members left to left_col,
5327 top to top_line, height to total_lines, width to total_cols,
5328 left_margin_width to left_margin_cols, right_margin_width to
5329 right_margin_cols, orig_height to orig_total_lines, orig_top to
5330 orig_top_line. All uses changed.
5331 (struct window): New members left_fringe_width, right_fringe_width,
5332 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
5333 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
5334 New macros primarily used to simplify other macros.
5335 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
5336 referred to XINT (w->width).
5337 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
5338 referred to XINT (w->height).
5339 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
5340 referred to XINT (w->width) * canon_x_unit.
5341 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
5342 referred to XINT (w->height) * canon_y_unit.
5343 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
5344 referred to XINT (w->left).
5345 (WINDOW_RIGHT_EDGE_COL): Renamed from WINDOW_RIGHT_EDGE. Change
5346 all uses and code that referred to XINT (w->left) + XINT (w->width).
5347 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
5348 referred to XINT (w->top).
5349 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
5350 referred to XINT (w->top) + XINT (w->height).
5351 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
5352 referred to XINT (w->left) * canon_x_unit.
5353 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
5354 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
5355 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
5356 referred to XINT (w->top) * canon_y_unit.
5357 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
5358 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
5359 (WINDOW_LEFTMOST_P): New macro.
5360 (WINDOW_BOX_LEFT_EDGE_COL): Renamed from WINDOW_LEFT_MARGIN.
5361 All uses changed.
5362 (WINDOW_BOX_RIGHT_EDGE_COL): Renamed from WINDOW_RIGHT_MARGIN.
5363 All uses changed.
5364 (WINDOW_BOX_LEFT_EDGE_X): Renamed from
5365 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
5366 Do not exclude left fringe width.
5367 (WINDOW_BOX_RIGHT_EDGE_X): Renamed from
5368 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
5369 Do not exclude fringe widths.
5370 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
5371 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
5372 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
5373 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
5374 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
5375 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
5376 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
5377 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
5378 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
5379 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
5380 New macros. Change code which referenced corresponding
5381 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
5382 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
5383 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
5384 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
5385 allow per-window scroll-bar settings.
5386 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
5387 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
5388 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
5389 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
5390 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
5391 FRAME_SCROLL_BAR_WIDTH.
5392 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
9018a88e 5393 (WINDOW_SCROLL_BAR_AREA_X): New macros.
0416870b
KS
5394 (WINDOW_HEADER_LINE_HEIGHT): Renamed from
5395 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
5396 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Renamed from
5397 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
5398 (WINDOW_BOX_TEXT_HEIGHT): Renamed from
5399 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
5400 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
5401 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
5402 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Moved here from dispextern.h.
5403 (WINDOW_LEFT_MARGIN_WIDTH): Renamed from
5404 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
5405 (WINDOW_RIGHT_MARGIN_WIDTH): Renamed from
5406 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
5407 (window_from_coordinates): Update prototype.
5408 (Fset_window_buffer): Update EXFUN.
5409 (set_window_buffer): Update prototype.
9018a88e 5410
0416870b 5411 * dispextern.h (struct glyph_matrix): Rename members window_left_x
9018a88e 5412 to window_left_col, window_top_y to window_top_line. All uses
0416870b
KS
5413 changed.
5414 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
5415 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
5416 internal_border_width is now set to 0 for non-window frames.
5417 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
5418 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
5419 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
5420 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
5421 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
5422 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
5423 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
5424 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
5425 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
9018a88e 5426 Move to window.h and renamed [see window.h changes].
0416870b
KS
5427 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
5428 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
9018a88e
SM
5429 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
5430 Use WINDOW_TOTAL_LINES.
0416870b
KS
5431 (frame_update_line_height): Remove prototype.
5432
5433 * buffer.h (struct buffer): Rename members measured in columns:
5434 left_margin_width to left_margin_cols, right_margin_width to
5435 right_margin_cols. All uses changed.
5436 New members left_fringe_width, right_fringe_width,
5437 fringes_outside_margins for per-buffer fringe settings.
5438 New members scroll_bar_width and vertical_scroll_bar_type for
5439 per-buffer scroll bar settings.
5440
5441 * buffer.c (init_buffer_once): Set buffer_defaults and
5442 buffer_local_flags for new buffer-local variables
5443 left_fringe_width, right_fringe_width, fringes_outside_margins,
5444 scroll_bar_width, and vertical_scroll_bar_type.
5445 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
5446 default-* variables for them.
5447
5448 * dispnew.c: Make (many) trivial substitutions for renamed and
5449 new macros in dispextern.h, frame.h and window.h.
5450 (mode_line_string): No need to adjust width for mode lines, as it
5451 is already adjusted by the caller.
5452 (marginal_area_string): Handle fringes inside/outside margins.
9018a88e 5453
0416870b
KS
5454 * frame.c: Make (many) trivial substitutions for renamed and
5455 new macros in dispextern.h, frame.h and window.h.
5456 (make_frame): Initialize left_fringe_width, right_fringe_width,
5457 fringe_cols, scroll_bar_actual_width, border_width,
5458 internal_border_width, column_width, line_height, x_pixels_diff,
5459 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
5460 members with values suitable for a non-window frames.
5461
5462 * gtkutil.c: Make (many) trivial substitutions for renamed and
5463 new macros in dispextern.h, frame.h and window.h.
9018a88e 5464
0416870b
KS
5465 * indent.c: Make (few) trivial substitutions for renamed and
5466 new macros in dispextern.h, frame.h and window.h.
5467
5468 * keyboard.c: Make (many) trivial substitutions for renamed and
5469 new macros in dispextern.h, frame.h and window.h.
5470 (make_lispy_event): Use window positions returned from
5471 window_from_coordinates when constructing the lisp event for
5472 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
5473 (incorrect) values locally.
5474 (make_lispy_movement): Use window positions returned from
5475 window_from_coordinates when constructing the lisp event, rather
5476 than calculating (incorrect) values locally.
5477
5478 * scroll.c: Make (some) trivial substitutions for renamed and
5479 new macros in dispextern.h, frame.h and window.h.
5480
5481 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
5482 scroll-bars.
5483
5484 * sysdep.c: Make (few) trivial substitutions for renamed and
5485 new macros in dispextern.h, frame.h and window.h.
5486
5487 * term.c: Make (some) trivial substitutions for renamed and
5488 new macros in dispextern.h, frame.h and window.h.
5489
5490 * widget.c: Make (few) trivial substitutions for renamed and
5491 new macros in dispextern.h, frame.h and window.h.
5492
5493 * window.c: Make (many) trivial substitutions for renamed and
5494 new macros in dispextern.h, frame.h and window.h.
5495 (make_window): Initialize new members
5496 left_margin_cols, right_margin_cols, left_fringe_width,
5497 right_fringe_width, fringes_outside_margins, scroll_bar_width,
5498 and vertical_scroll_bar_type.
5499 (coordinates_in_window): Adapted to new fringe/margin positions
9018a88e 5500 and per-window fringes and scroll-bars.
0416870b 5501 Fix bug related to incorrectly adjusting coordinates by
9018a88e 5502 frame's internal_border_width (the effect normally negible since
0416870b
KS
5503 the internal_border_width is typically 0 or 1 pixel, but very
5504 noticeable for an internal_border_width of e.g. 25 pixels).
5505 Upon successful return (other than ON_NOTHING), the coordinates
5506 are now always properly converted to window relative for the
5507 given display element.
5508 (window_from_coordinates): Add new parameters wx and wy to
5509 return the window relative x and y position in the returned
5510 window and part. A null arg means, don't return the position.
5511 All callers changed.
5512 (adjust_window_margins): New function which may reduce the width
5513 of the display margins if a window's text area is too small after
5514 resizing or splitting windows.
5515 (size_window): Fix bug that did not account for display margin
5516 widths when checking the minimum width of a window; use
5517 adjust_window_margins.
5518 (set_window_buffer): Call Fset_window_fringes and
5519 Fset_window_scroll_bars to setup per-window elements.
5520 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
5521 existing display margin, fringe widths, and scroll bar settings
9018a88e
SM
5522 (e.g. after splitting a window or resizing the frame).
5523 All callers changed.
0416870b
KS
5524 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
5525 (Fsplit_window): Duplicate original window's display margin,
5526 fringe, and scroll-bar settings; then call Fset_window_buffer with
5527 KEEP_MARGINS non-nil. This fixes a bug which caused a split
5528 window to only preserve the display margins in one of the windows.
c4b8aebc 5529 When splitting horizontally, call adjust_window_margins on both
0416870b 5530 windows to ensure that the text area of the new windows is non too
f9711de4 5531 narrow. This fixes a bug which could cause Emacs to trap if the
0416870b
KS
5532 width of the split window was less than the width of the display
5533 margins.
9018a88e
SM
5534 (window_box_text_cols): Renamed from window_internal_width.
5535 All uses changed. Adapt to per-window fringes and scroll bars.
0416870b
KS
5536 Fix bug that caused vertical separator to be subtracted also on
5537 window frames. Fix another bug that did not reduce the returned
5538 value by the columns used for display margins.
5539 (window_scroll_line_based): Fix bug related to scrolling too much
5540 when display margins are present (implicitly fixed by the fix to
5541 window_box_text_cols).
5542 (scroll_left, scroll_right): Fix bug related to scrolling too far
5543 by default when display margins are present (implicitly fixed by
5544 the fix to window_box_text_cols).
5545 (struct saved_window): Rename members left to left_col, top to
5546 top_line, width to total_cols, height to total_lines, orig_top to
5547 orig_top_line, orig_height to orig_total_lines. All uses changed.
5548 New members left_margin_cols, right_margin_cols,
5549 left_fringe_width, right_fringe_width, fringes_outside_margins,
5550 scroll_bar_width, and vertical_scroll_bar_type for saving
5551 per-window display elements.
5552 (Fset_window_configuration): Restore display margins, fringes,
5553 and scroll bar settings. This fixes a bug which caused display
5554 margins to be discarded when saving and restoring a window
5555 configuration.
5556 (save_window_save): Save display margins, fringes, and scroll bar
5557 settings. This fixes a bug which caused display margins to be
5558 discarded when saving and restoring a window configuration.
5559 (Fset_window_margins): Do nothing if display margins are not
5560 really changed. Otherwise, call adjust_window_margins to ensure
5561 the text area doesn't get too narrow. This fixes a bug which
f9711de4 5562 could cause Emacs to trap if setting display margins wider than
0416870b
KS
5563 the width of the window.
5564 (Fset_window_fringes): New defun to allow user to specifically set
5565 this window's fringe widths and position vs. display margins.
5566 (Fwindow_fringes): New defun to return window's actual fringe
5567 settings.
5568 (Fset_window_scroll_bars): New defun to allow user to specifically
5569 set this window's scroll bar width and position.
5570 (Fwindow_scroll_bars): New defun to return window's actual scroll
5571 bar settings.
5572 (compare_window_configurations): Also compare display margins,
5573 fringes, and scroll bar settings.
5574 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
5575
5576 * xdisp.c: Make (many) trivial substitutions for renamed and
5577 new macros in dispextern.h, frame.h and window.h.
5578 (window_box_width): Adapt to per-window fringes and scroll bars,
f63fd14e 5579 and new fringe vs. display margin position. Note that returned
0416870b
KS
5580 value is no longer guaranteed to be a whole multiple of the frame
5581 column width, since per-window fringes may now be any width.
5582 (window_box_left_offset): New function like window_box_left, but
5583 value is relative to left border of window (rather than frame).
5584 (window_box_right_offset): New function like window_box_right,
5585 but value is relative to left border of window.
5586 (window_box_left): Adapt to per-window fringes and scroll bars,
5587 and new fringe vs. display margin position. Simplify by using
5588 WINDOW_LEFT_EDGE_X and window_box_left_offset.
5589 (window_box): Allow null args for unnecessary return values;
5590 change/simplify relevant callers.
5591 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
9018a88e
SM
5592 and new fringe vs. display margin position.
5593 Use window_box_left_offset and window_box_right_offset
0416870b 5594 (get_glyph_string_clip_rect): Adapt to per-window fringes and
9018a88e
SM
5595 scroll bars, and new fringe vs. display margin position.
5596 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
0416870b
KS
5597 (draw_fringe_bitmap): Rework to handle per-window fringes and new
5598 fringe vs. display margin position.
5599 (hscroll_window_tree): Use window_box_width instead of window_box.
a64387ee
JB
5600 (redisplay_window): Adapt to per-window scroll bars.
5601 (draw_glyphs): Rework to handle per-window fringes and scroll
9018a88e
SM
5602 bars, and new fringe vs. display margin position.
5603 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
a64387ee 5604 (x_clear_end_of_line): Adapt to per-window fringes and scroll
0416870b
KS
5605 bars, and new fringe vs. display margin position. Fix bug which
5606 increased total width of full_width rows by width of scroll bars
5607 although window's total width already includes that.
5608 (x_fix_overlapping_area): Simplify using window_box_left_offset.
5609 (expose_area): Simplify using window_box_left_offset.
5610 (x_draw_vertical_border): Handle per-window scroll bar settings,
5611 mixing windows with left, right and no scroll bars.
5612
5613 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
5614 where it's used in x_list_fonts (for clarity).
5615 (frame_update_line_height): Remove unused function; functionality
5616 is now done directly when setting the default font in x_set_font.
5617
5618 * xfns.c: Make (many) trivial substitutions for renamed and
5619 new macros in dispextern.h, frame.h and window.h.
5620
5621 * xmenu.c: Make (some) trivial substitutions for renamed and
5622 new macros in dispextern.h, frame.h and window.h.
5623
5624 * xterm.h (struct x_output): Move members left_pos, top_pos,
5625 border_width, pixel_height, pixel_width, line_height,
5626 internal_border_width, vertical_scroll_bar_extra,
5627 left_fringe_width, right_fringe_width, fringe_cols,
5628 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
5629 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
5630 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
5631 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
5632 (PIXEL_WIDTH, PIXEL_HEIGHT)
5633 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
5634 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to
5635 frame.h and renamed [see frame.h changes].
5636 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
5637 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
5638 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h
5639 and renamed [see frame.h changes].
9018a88e 5640
0416870b
KS
5641 * xterm.c: Make (several) trivial substitutions for renamed and
5642 new macros in dispextern.h, frame.h and window.h.
5643 (x_draw_glyph_string_box): Adapt to per-window fringes and
5644 scroll-bars.
5645 (scroll_run): Adapt to new fringe position.
5646 (glyph_rect): Use window coordinates returned from
5647 window_from_coordinates rather than frame_to_window_pixel_xy.
5648 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
5649 scroll-bars.
5650 (handle_one_xevent): Simplify a USE_GTK conditional.
5651 (x_clip_to_row): Remove superfluous whole_line_p arg and code
5652 (fringes are now inside margins, i.e. always in the clipping area).
5653 All callers changed.
5654 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
5655 directly, then call compute_fringe_widths. Don't call
5656 frame_update_line_height.
5657
5658 * w32term.h (struct w32_output): Move members left_pos, top_pos,
5659 border_width, pixel_height, pixel_width, line_height,
5660 internal_border_width, vertical_scroll_bar_extra,
5661 left_fringe_width, right_fringe_width, fringe_cols,
5662 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
5663 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
5664 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
5665 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
5666 (PIXEL_WIDTH, PIXEL_HEIGHT)
5667 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
5668 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to
5669 frame.h and renamed [see frame.h changes].
5670 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
5671 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
5672 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h
5673 and renamed [see frame.h changes].
9018a88e 5674
0416870b
KS
5675 * w32term.c: Make (several) trivial substitutions for renamed and
5676 new macros in dispextern.h, frame.h and window.h.
5677 (x_draw_glyph_string_box): Adapt to per-window fringes and
5678 scroll-bars.
5679 (glyph_rect): Use window coordinates returned from
5680 window_from_coordinates rather than frame_to_window_pixel_xy.
5681 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
5682 scroll-bars.
5683 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
5684 (fringes are now inside margins, i.e. always in the clipping area).
5685 All callers changed.
5686 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
5687 directly, then call compute_fringe_widths. Don't call
5688 frame_update_line_height.
5689
5690 * w32console.c: Make (few) trivial substitutions for renamed and
5691 new macros in dispextern.h, frame.h and window.h.
5692
5693 * w32fns.c: Make (many) trivial substitutions for renamed and
5694 new macros in dispextern.h, frame.h and window.h.
5695
5696 * w32menu.c: Make (few) trivial substitutions for renamed and
5697 new macros in dispextern.h, frame.h and window.h.
5698
5699 * macterm.h (struct mac_output): Move members left_pos, top_pos,
5700 border_width, pixel_height, pixel_width, line_height,
5701 internal_border_width, vertical_scroll_bar_extra,
5702 left_fringe_width, right_fringe_width, fringe_cols,
5703 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
5704 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
5705 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
5706 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
5707 (PIXEL_WIDTH, PIXEL_HEIGHT)
5708 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
5709 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to
5710 frame.h and renamed [see frame.h changes].
5711 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
5712 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
5713 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h
5714 and renamed [see frame.h changes].
9018a88e 5715
0416870b
KS
5716 * macterm.c: Make (several) trivial substitutions for renamed and
5717 new macros in dispextern.h, frame.h and window.h.
5718 (x_draw_glyph_string_box): Adapt to per-window fringes and
5719 scroll-bars.
5720 (glyph_rect): Use window coordinates returned from
5721 window_from_coordinates rather than frame_to_window_pixel_xy.
5722 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
5723 scroll-bars.
5724 (x_clip_to_row): Remove superfluous whole_line_p arg and code
5725 (fringes are now inside margins, i.e. always in the clipping area).
5726 All callers changed.
5727 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
5728 directly, then call compute_fringe_widths. Don't call
5729 frame_update_line_height.
5730
5731 * macfns.c: Make (several) trivial substitutions for renamed and
5732 new macros in dispextern.h, frame.h and window.h.
9018a88e 5733 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
0416870b
KS
5734
5735 * macmenu.c: Make (few) trivial substitutions for renamed and
5736 new macros in dispextern.h, frame.h and window.h.
5737
5738 * msdos.h (struct x_output): Remove members left_pos, top_pos,
5739 and line_height, and use corresponding new members in struct
5740 frame. All uses changed.
5741 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
5742 superseeded by corresponding macros in frame.h.
5743
5744 * msdos.c: Make (several) trivial substitutions for renamed and
5745 new macros in dispextern.h, frame.h and window.h.
5746 (IT_note_mouse_highlight): Use updated window coordinates returned
9018a88e 5747 by window_from_coordinates, rather than adjusting them locally.
0416870b
KS
5748 (internal_terminal_init): No need to initialize line_height here;
5749 it now defaults to 1.
5750
9018a88e
SM
57512003-05-24 Stefan Monnier <monnier@cs.yale.edu>
5752
5753 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
5754 dropping `down' events.
5755
016bd3c0
AS
57562003-05-24 Andreas Schwab <schwab@suse.de>
5757
5758 * coding.c (find_safe_codings): Fix last change.
5759
4dacadcc
TTN
57602003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
5761
5762 * xfns.c (x_window): Fix typo from 2003-05-21 change.
5763
319830ce
SM
57642003-05-23 Stefan Monnier <monnier@cs.yale.edu>
5765
9018a88e
SM
5766 * xdisp.c (display_mode_element): Increase max depth.
5767 Simplify the error handling code. Use a different error string
5768 for the case where we hit the depth limit.
5769
319830ce
SM
5770 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
5771
5772 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
5773
57742003-05-21 Stefan Monnier <monnier@cs.yale.edu>
5775
5776 * intervals.c (get_local_map): Don't get char-property of previous
5777 point any more: get_pos_property already does it and better.
5778
c67de8ba
DL
57792003-05-21 Dave Love <fx@gnu.org>
5780
5781 [Merged from unicode branch.]
5782
5783 * xfns.c (x_window, x_window): Use use_xim.
5784
5785 * xterm.c (use_xim): Initialize.
5786 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
5787 (x_term_init): Maybe set use_xim.
5788
5789 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
5790
edd3ff1d
JR
57912003-05-21 Jason Rumney <jasonr@gnu.org>
5792
5793 * unexw32.c (_start): Remove _fmode initialization.
5794
5795 * emacs.c (main) [WINDOWSNT]: Move it here.
5796
463f55ee
DL
57972003-05-20 Dave Love <fx@gnu.org>
5798
5799 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
5800
af253914
RS
58012003-05-19 Richard M. Stallman <rms@gnu.org>
5802
5803 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
5804 as value for QCfont attribute.
5805 (realize_default_face): lface should already exist; crash if not.
5806 Specify 0 for FORCE_P when calling set_lface_from_font_name.
5807
5808 * frame.c (Fignore_event): Doc fix.
5809
1d211019
KH
58102003-05-19 Kenichi Handa <handa@m17n.org>
5811
5812 * coding.c (decode_coding_string): Handle post-read-conversion
5813 even if the coding doesn't require decoding.
5814
4dd68254
RS
58152003-05-18 Richard M. Stallman <rms@gnu.org>
5816
5817 * callproc.c (Fcall_process_region): Doc fix.
5818
14d87dc9
SM
58192003-05-17 Stefan Monnier <monnier@cs.yale.edu>
5820
deca5d96
SM
5821 * lread.c (Fload): Print a message if package is obsolete.
5822
14d87dc9
SM
5823 * window.c (Fselect_window): Add optional `norecord' arg.
5824 (select_window_1): Fold into Fselect_window.
5825 (select_window_norecord): New function.
5826 (temp_output_buffer_show): Use it. Preserve current buffer.
5827
5828 * window.h (Fselect_window): Update declaration.
5829
5830 * window.c (delete_window, Fother_window, Fset_window_configuration):
5831 * minibuf.c (read_minibuf):
5832 * macterm.c (x_new_focus_frame):
5833 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
5834 * callint.c (Fcall_interactively):
5835 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
5836
5837 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
5838
78f52183
DK
58392003-05-17 David Kastrup <dak@gnu.org>
5840
5841 * process.c (read_process_output): Back out change from 2003-03-09.
5842
14d87dc9
SM
58432003-05-17 Stefan Monnier <monnier@cs.yale.edu>
5844
5845 * editfns.c (get_pos_property): Don't assume that `object' = nil.
5846
5847 * textprop.c (text_property_stickiness): New arg `buffer'.
5848
5849 * intervals.h (text_property_stickiness): New arg `buffer'.
5850 (get_pos_property): Declare.
5851
5852 * intervals.c (get_local_map): Use get_pos_property, to obey
5853 stickiness and empty overlays.
5854 (create_root_interval, graft_intervals_into_buffer): Use BEG.
5855 (merge_properties, intervals_equal, merge_properties_sticky):
5856 Use XCAR, XCDR.
5857 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
5858
1fd1cc2f
RS
58592003-05-17 Richard M. Stallman <rms@gnu.org>
5860
4f9f637a
RS
5861 * minibuf.c (read_minibuf): If buffer is empty, record the default
5862 in the history.
5863 (Fminibuffer_complete_word): When deleting the overlap, take account
5864 of its real position.
5865
5866 * fns.c (map_char_table): Fix previous change.
5867
1fd1cc2f
RS
5868 * syntax.c (find_defun_start):
5869 When open_paren_in_column_0_is_defun_start,
5870 return beginning of buffer.
5871
5872 * lisp.h (map_char_table): Declare added arg.
5873
5874 * fns.c (map_char_table): New arg TABLE gets the master table.
5875 All calls changed.
5876 Process default and inheritance, resorting to Faref if necessary.
5877
5878 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
5879 (Faccessible_keymaps): Pass new arg to map_char_table.
5880
5881 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
5882
5883 * casetab.c (set_case_table): Pass new arg to map_char_table.
5884
5885 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
5886
5887 * lisp.h (specbinding_func): New typedef.
5888 (struct specbinding): Use specbinding_func, to put the `volatile'
5889 in the right place.
5890
5891 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
5892 to avoid GCC warning.
14d87dc9 5893
b4bd27c5
RS
58942003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org> (tiny change)
5895
14d87dc9 5896 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
b4bd27c5 5897
35fb885d
SM
58982003-05-15 Stefan Monnier <monnier@cs.yale.edu>
5899
5900 * keyboard.c (apply_modifiers): Don't fill the other cache.
5901
9a274fbd
SM
59022003-05-14 Stefan Monnier <monnier@cs.yale.edu>
5903
c55b5fad
SM
5904 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
5905
9a274fbd
SM
5906 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
5907 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
5908 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
5909 (Fset_window_configuration, Fcurrent_window_configuration)
5910 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
5911 (Fpos_visible_in_window_p, mark_window_cursors_off)
5912 (window_internal_height, window_internal_width, Frecenter)
5913 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
5914 (replace_buffer_in_all_windows, init_window_once, init_window)
5915 (syms_of_window, keys_of_window): Move from lisp.h.
5916 * lisp.h: Move window.c declarations to window.h.
5917
5918 * bytecode.c: Include window.h.
5919 * emacs.c: Include window.h.
5920
14d87dc9 5921 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
9a274fbd
SM
5922 (keyremap): Add `parent' field.
5923 (keyremap_step): Use it. Remove `parent' argument.
5924 (read_key_sequence): Setup and use the new `parent' field.
5925
fd93e331
SM
59262003-05-11 Stefan Monnier <monnier@cs.yale.edu>
5927
5928 * keyboard.c (adjust_point_for_property): Ensure termination.
5929
1c4001a1
SM
59302003-05-10 Stefan Monnier <monnier@cs.yale.edu>
5931
5932 * keyboard.c (follow_key): Remove dead variable `did_meta'.
5933 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
5934 duplicated handling of function-key-map and key-translation-map
5935 in read_key_sequence.
5936 (read_key_sequence): Use them.
5937
5938 * keyboard.c (adjust_point_for_property): Try harder to move point
5939 to the non-sticky end of an invisible property.
5940
5941 * xdisp.c (single_display_prop_intangible_p): Make `space' display
5942 property intangible as well.
5943
780379b1
AS
59442003-05-10 Andreas Schwab <schwab@suse.de>
5945
5946 * xmenu.c (single_menu_item): Change last parameter to void* to
5947 avoid warning.
5948
ca2de342
RS
59492003-05-09 Richard M. Stallman <rms@gnu.org>
5950
5951 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
5952 Bind Qinhibit_modification_hooks to t so there will be no GC.
5953 Rename local `tem' to `save_deactivate_mark'.
5954
5955 * eval.c (specpdl_ptr): Declare volatile.
5956 (unbind_to): Copy the whole binding and decrement specpdl_ptr
5957 before doing the work of unbinding it.
5958
5959 * lisp.h (struct specbinding): Declare elements volatile.
5960 (specpdl_ptr): Declare volatile.
5961
5962 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
5963
5964 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
5965 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
5966
347003be
DL
59672003-05-08 Dave Love <fx@gnu.org>
5968
5969 * coding.c (Vlast_coding_system_used): Doc fix.
5970
5adcec23
JR
59712003-05-07 Jason Rumney <jasonr@gnu.org>
5972
5973 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
5974 when system does not support them.
5975
5fe3b8a4
SM
59762003-05-05 Stefan Monnier <monnier@cs.yale.edu>
5977
5978 * fileio.c (Qwrite_region_annotate_functions): New var.
5979 (build_annotations): Use it to process the global part of the hook.
5980 (syms_of_fileio): Init and staticpro it.
5981
5982 * keyboard.c (safe_run_hooks_error): Display a message instead of
5983 silently ignoring the error.
5984
59852003-05-03 Stefan Monnier <monnier@cs.yale.edu>
5986
5987 * keyboard.c (input_available_signal): Mark static.
5988 (menu_bar_items): Use map_keymap.
5989 (menu_bar_one_keymap): Remove.
5990 (menu_bar_item): Adjust arglist (for use in map_keymap).
5991 Properly hide a second binding when not both are keymaps.
5992
5993 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
5994 (single_keymap_panes): Use it and map_keymap.
5995 (single_menu_item): Use skp as well.
5996
5997 * keymap.h (map_keymap_function_t): New type.
5998 (map_keymap): Declare.
5999
6000 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
6001 (map_keymap_call, Fmap_keymap): New functions.
6002 (syms_of_keymap): Defsubr map-keymap.
6003
4b1b4443
JD
60042003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6005
6006 * gtkutil.c (create_dialog, make_widget_for_menu_item)
6007 (make_menu_item, create_menus, xg_update_menu_item): Don't call
6008 ..._with_mnemonic functions for menu items.
6009
1f816871
KH
60102003-05-01 Kenichi Handa <handa@m17n.org>
6011
6012 * coding.c (coding_system_accept_latin_extra_p): Delete this
6013 function.
6014 (find_safe_codings): Pay attention to
6015 the property tranlsation-table-for-encode of each codings.
6016 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
6017
5ed6ba5b
SM
60182003-05-01 Stefan Monnier <monnier@cs.yale.edu>
6019
6020 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
6021
32c06229
SM
60222003-04-30 Stefan Monnier <monnier@cs.yale.edu>
6023
6024 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
6025
6026 * lisp.h (CHECK): Wrap args in parenthesis.
6027 (specbind): Fix doc: symbol = Qnil is not supported any more.
6028
6029 * bytecode.c (Fbyte_code) <unwind-protect>:
6030 Use Fprogn rather than 0 and Qnil.
6031
6032 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
6033 `double', and `triple' modifiers as well.
6034
ed3c3314
RS
60352003-04-30 Richard M. Stallman <rms@gnu.org>
6036
6037 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
6038
6039 * alloc.c (abort_on_gc): New variable.
6040 (Fgarbage_collect): Abort if abort_on_gc is set.
6041
6042 * lisp.h (abort_on_gc): Add decl.
6043
6044 * eval.c (Fsignal): Clear abort_on_gc.
6045
6046 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
32c06229 6047 Reinit FORMAT_START and END before second scan.
ed3c3314
RS
6048
6049 * xdisp.c (move_it_vertically_backward): Do the final big else
6050 even if nlines is 0.
6051
6052 * xdisp.c (redisplay_internal): Finish the per-frame loop
6053 even if redisplay is suspended by input.
6054
0b325c12
AC
60552003-04-24 Andrew Choi <akochoi@shaw.ca>
6056
6057 * macterm.c (x_list_fonts): Return all fonts that match if
6058 maxnames = -1.
6059
4e837cd0
KH
60602003-04-25 Kenichi Handa <handa@m17n.org>
6061
6062 * syntax.c (skip_chars): Fix previous change.
6063
9af7511a
KH
60642003-04-24 Kenichi Handa <handa@m17n.org>
6065
6066 * syntax.c (skip_chars): Make the code faster by using the common
6067 technique of *p, *stop, and *endp.
6068
e3b2c21f
JD
60692003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6070
6071 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
32c06229 6072 tool_bar_items so GTK tool bar expose callback does not access items
e3b2c21f
JD
6073 being updated.
6074
32c06229
SM
60752003-04-19 Stefan Monnier <monnier@cs.yale.edu>
6076
6077 * eval.c (Fapply): Undo last change and add a comment about why.
6078
c6464167
MB
60792003-04-18 Miles Bader <miles@gnu.org>
6080
6081 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
6082 pickier PARSE_MULTIBYTE_SEQ.
6083
e509f168
SM
60842003-04-17 Stefan Monnier <monnier@cs.yale.edu>
6085
6086 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
6087 Use XCDR, XCAR, CONSP.
6088 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
6089 (Fapply): Remove unnecessary GCPRO.
6090
6091 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
6092
6093 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
6094
6095 * buffer.h: Don't hardcode BEG==1.
6096
6097 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
6098
5ceea398
RS
60992003-04-16 Richard M. Stallman <rms@gnu.org>
6100
6101 * xdisp.c (try_window, try_window_reusing_current_matrix):
6102 When at end of window, set window_end_pos to Z-ZV.
6103
6104 * buffer.c (Foverlay_recenter): Doc fix.
6105
e509f168
SM
61062003-04-14 Stefan Monnier <monnier@cs.yale.edu>
6107
6108 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
6109
d243e605
AC
61102003-04-14 Andrew Choi <akochoi@shaw.ca>
6111
6112 * macterm.c (mac_check_for_quit_char): Don't check more often than
6113 once a second.
6114
6901b111
SM
61152003-04-11 Stefan Monnier <monnier@cs.yale.edu>
6116
6117 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
6118 specially, so that they can't hide an implicit switch-frame event.
6119 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
6120 (head_table): Use switch-frame as event_kind for select-window.
6121 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
6122
6123 * editfns.c (Fformat): Lisp_Object/int mixup.
6124 (format2): Remove unused var numargs.
6125
e301806f 61262003-04-11 Kenichi Handa <handa@m17n.org>
aa95b710 6127
6901b111 6128 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
aa95b710
KH
6129 (Qafter_insert_file_set_coding): New variable.
6130 (syms_of_fileio): Initialize and staticpro it. Delete declaration
6131 for after-insert-file-adjust-coding-function.
6132 (Finsert_file_contents): Call Qafter_insert_file_set_coding
6133 instead of Vafter_insert_file_adjust_coding_function.
6134
38914424
KH
61352003-04-11 Kenichi Handa <handa@m17n.org>
6136
6137 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
6138
6139 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
6140 string. Callers changed.
6141
61422003-04-10 Kenichi Handa <handa@m17n.org>
a288d979 6143
6901b111 6144 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
a288d979 6145 (syms_of_fileio): Declare it as a lisp variable.
6901b111
SM
6146 (Finsert_file_contents):
6147 Call Vafter_insert_file_adjust_coding_function before calling
a288d979
KH
6148 decode-format.
6149
f979dc05
JD
61502003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6151
6152 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
6153 get GtkAdjustment as widget now is a GtkRange.
6154
6155 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
6156 GtkRange to avoid memory leak.
6157
f8c6b4c2 61582003-04-09 Kenichi Handa <handa@m17n.org>
cb98871c 6159
50ebc53d
KH
6160 * xfaces.c (Vface_font_rescale_alist): New variable.
6161 (struct font_name): New member rescale_ratio.
6162 (font_rescale_ratio): New function.
6901b111 6163 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
50ebc53d
KH
6164 (better_font_p): On comparing point sized, pay attention to
6165 recale_ratio member of fonts.
6166 (build_scalable_font_name): Reflect font->rescale_ratio in the
6167 font name.
6901b111 6168 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
50ebc53d 6169
cb98871c
KH
6170 * lread.c (read1): Before calling index, check if the 2nd
6171 arguemnt is in ASCII range.
6172
4773b8ca
RS
61732003-04-08 Richard M. Stallman <rms@gnu.org>
6174
b0ada147
RS
6175 * fileio.c (Ffile_symlink_p): Doc fix.
6176
6177 * editfns.c (Fformat): Translate positions of text properties
6178 in the format string to apply them to the result.
6179
4773b8ca
RS
6180 * fileio.c (Finsert_file_contents): Doc fix.
6181 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
6182
61832003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
6901b111 6184
4773b8ca
RS
6185 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
6186
e8f25745 61872003-04-08 Steven Tamm <steventamm@mac.com>
b0ada147 6188
e8f25745
ST
6189 * mac.c (init_mac_osx_environment): Switch libexec and bin so
6190 that self-contained application finds libexec files.
6191
f8c6b4c2 61922003-04-08 Kenichi Handa <handa@m17n.org>
2310d84c 6193
6901b111
SM
6194 * coding.c (code_convert_region_unwind):
6195 Set Vlast_coding_system_used to the argument.
2310d84c
KH
6196 (code_convert_region): If post-read-conversion function changed
6197 the value of last-coding-sytem, keep the new value in
6198 coding->symbol so that it won't be overridden.
6199 (run_pre_post_conversion_on_str): Likewise.
7c086845
KH
6200 (coding_system_accept_latin_extra_p): New function.
6201 (find_safe_codings): Pay attention to characters registered in
6202 latin-extra-code-table.
2310d84c 6203
39c9a034
TTN
62042003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
6205
6206 * Makefile.in (md5.o): Add missing dependency info.
6207
eb67c5d6
RS
62082003-04-06 Richard M. Stallman <rms@gnu.org>
6209
6210 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
6211
6212 * marker.c (verify_bytepos): New function.
6213
6214 * intervals.c (set_intervals_multibyte_1): When becoming
6215 multibyte, adjust right and left child sizes to a whole set of
6216 characters. If an interval gets zero total-length, delete it.
6217 If an interval consists of just its children, delete one of them.
6218
6219 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
6220 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
39c9a034 6221
eb67c5d6
RS
6222 * alloc.c: (VALIDATE_LISP_STORAGE): Macro deleted.
6223 All calls deleted.
6224 (lisp_malloc): Do the work here directly.
6225
b1f81fc5
JB
62262003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
6227
6228 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
6229 char tables.
6230
62312003-04-04 Kenichi Handa <handa@m17n.org>
aa8b70ae
KH
6232
6233 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
6234 destructively change "%S" to "%s".
6235
774666fb
MB
62362003-04-03 Miles Bader <miles@gnu.org>
6237
6238 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
6239 always set.
6240
19c37f01
DL
62412003-04-01 Dave Love <fx@gnu.org>
6242
6243 * xfns.c (xpm_lookup_color): Grok "opaque".
6244
2f4b24c3
AC
62452003-03-31 Andrew Choi <akochoi@shaw.ca>
6246
6247 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
6248 parent window ID.
6249
6250 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
6251
6252 * macterm.h (struct mac_output): Define x_pixels_diff and
6253 y_pixels_diff.
b1f81fc5 6254
9443fcf6
JB
62552003-03-31 Juanma Barranquero <lektu@terra.es>
6256
6257 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
6258 blockinput.h and files included from it.
6259
e072891b
KS
62602003-03-31 Kim F. Storm <storm@cua.dk>
6261
6262 The following changes consolidates the common code related to
6263 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
6264 files into frame.c.
9443fcf6 6265
e072891b
KS
6266 * frame.c: Include blockinput.h.
6267 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
6268 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
6269 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
6270 related vars here.
6271 (struct frame_parm_table, frame_parms): New table for describing
6272 frame parameters and their associated Q-variable.
6273 The order of the parameters corresponds to the sequence of the
6274 frame_parm_handlers table in redisplay_interface.
6275 (x_fullscreen_move, x_set_frame_parameters)
6276 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
6277 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
6278 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
6279 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
6280 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
6281 Generic functions for processing of frame parameters.
6282 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
6283 (display_x_get_resource, x_get_resource_string): Functions for
6284 generic access to X resources.
6285 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
6286 (x_default_parameter, Fx_parse_geometry): Functions for generic
6287 access to frame parameters.
6901b111
SM
6288 (x_figure_window_size): Generic calculation of frame size.
6289 Fixed to add space needed for tool bar. Also setup size_hint_flags.
e072891b
KS
6290 (syms_of_frame): Intern and staticpro frame parameter variables.
6291 Defvar_lisp Vx_resource_class and Vx_resource_name here.
6292 Defsubr Sx_get_resource and Sx_parse_geometry.
9443fcf6 6293
e072891b
KS
6294 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
6295 parameter related vars defined in frame.c.
6296 (EMACS_CLASS): Define here.
6297 (enum FULLSCREEN_*): Define here.
6298 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
6299 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
6300 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
6301 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
6302 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
6303 (x_set_visibility, x_set_autoraise, x_set_autolower)
6304 (x_set_unsplittable, x_set_vertical_scroll_bars)
6305 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
6306 (x_figure_window_size): Add prototypes.
6307
6308 * dispextern.h (frame_parm_handler): New typedef.
6309 (struct redisplay_interface): New member frame_parm_handlers.
6310 (enum resource_types): Move declaration here.
6311 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
6312 (x_default_parameter): Add prototypes.
6313
6314 * window.c: Remove extern decl for frame parameter vars.
6315 (change_window_heights): New generic function;
6316 replaces x_change_window_heights. All users changed.
6317
6318 * window.h (change_window_heights): Add prototype.
6319
6320 * xfaces.c: Remove extern decl for frame parameter vars.
6321
6322 * xterm.h (EMACS_CLASS): Remove. Use generic define.
6323 (struct w32_display_info): Fix type of xrdb member.
6324 (enum FULLSCREEN_*): Remove.
6325 Remove prototypes for generic functions (in frame.h).
6326
6327 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
6328 parameters now defined in frame.h and frame.c.
f63fd14e 6329 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
6330 (enum x_frame_parms): Remove (bogus, unused enum).
6331 (check_x_display_info): Make non-static (for frame.c).
6332 (struct x_frame_parm_table, x_frame_parms): Remove.
6333 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
6334 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
6335 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
6336 (x_change_window_heights, x_set_autoraise, x_set_autolower)
6337 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
6338 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
6339 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
6340 Remove. Use generic functions instead.
6341 (enum resource_types): Remove.
6342 (x_set_scroll_bar_default_width): New global function (for frame.c).
6343 (Fx_create_frame): Depend on x_figure_window_size to add space for
6344 toolbar and setup size_hint_flags.
6345 (x_frame_parm_handlers): New table for redisplay_interface.
6346 (syms_of_xfns): Don't intern/staticpro removed vars.
9443fcf6 6347
e072891b 6348 * xterm.c: Remove unnecessary extern declarations.
f63fd14e 6349 (x_fullscreen_adjust): Remove. Use generic instead.
e072891b
KS
6350 (x_redisplay_interface): Add x_frame_parm_handlers member.
6351
6352 * w32gui.h (XrmDatabase): New (dummy) typedef.
6353
6354 * w32term.h (EMACS_CLASS): Remove. Use generic define.
6355 (struct w32_display_info): Fix type of xrdb member.
6356 (enum FULLSCREEN_*): Remove.
6357 (x_fullscreen_adjust): Remove prototype.
6358
6359 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
6360 parameters now defined in frame.h and frame.c.
f63fd14e 6361 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
6362 (enum x_frame_parms): Remove (bogus, unused enum).
6363 (check_x_display_info): Make non-static (for frame.c).
6364 (struct x_frame_parm_table, x_frame_parms): Remove.
6365 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
6366 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
6367 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
6368 (x_change_window_heights, x_set_autoraise, x_set_autolower)
6369 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
6370 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
6371 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
6372 Remove. Use generic functions instead.
6373 (enum resource_types): Remove.
6374 (x_set_scroll_bar_default_width): New global function (for frame.c).
6375 (Fx_create_frame): Depend on x_figure_window_size to add space for
6376 toolbar and setup size_hint_flags.
6377 (w32_frame_parm_handlers): New table for redisplay_interface.
6378 (syms_of_w32fns): Don't intern/staticpro removed vars.
9443fcf6 6379
e072891b
KS
6380 * w32term.c: Remove unnecessary extern declarations.
6381 (x_fullscreen_adjust): Remove. Use generic instead.
6382 (x_redisplay_interface): Add w32_frame_parm_handlers member.
6383
6384 * w32reg.c (x_get_string_resource): Use XrmDatabase.
6385
6386 * macgui.h (XrmDatabase): New (dummy) typedef.
6387
6388 * macterm.h (EMACS_CLASS): Remove.
6389 (struct mac_display_info): Add xrdb member.
6390 (struct mac_output): Add want_fullscreen member.
6391
6392 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
6393 parameters now defined in frame.h and frame.c.
f63fd14e 6394 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
6395 (check_x_display_info): Make non-static (for frame.c).
6396 (struct x_frame_parm_table, x_frame_parms): Remove.
6397 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
6398 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
6399 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
6400 (x_change_window_heights, x_set_autoraise, x_set_autolower)
6401 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
6402 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
6403 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
6404 Remove. Use generic functions instead.
6405 (enum resource_types): Remove.
6406 (x_set_scroll_bar_default_width): New global function (for frame.c).
6407 (mac_frame_parm_handlers): New table for redisplay_interface.
6408 (syms_of_macfns): Don't intern/staticpro removed vars.
9443fcf6 6409
e072891b
KS
6410 * macterm.c: Remove unnecessary extern declarations.
6411 (x_redisplay_interface): Add mac_frame_parm_handlers member.
6412
3e6a560b
KS
6413 * Makefile.in (frame.o): Add dependency on blockinput.h and files
6414 included from it (atimer.h and systime.h).
6415
7b7b454e
AS
64162003-03-30 Andreas Schwab <schwab@suse.de>
6417
6418 * xdisp.c (x_insert_glyphs): Fix swapped width and height
6419 parameters for shift_glyphs_for_insert.
6420
6421 * macterm.c (x_redisplay_interface): Add missing entry for
6422 draw_vertical_window_border.
6423
beb402de
KG
64242003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
6425
6426 * fileio.c (Fexpand_file_name): In the no-handler case, after
6427 expanding, look again for a handler and invoke it. This is needed
6428 for filenames like "/foo/../user@host:/bar/../baz" -- the first
6429 expansion produces "/user@host:/bar/../baz" which needs to be
6430 expanded again for the finame result "/user@host:/baz".
6431
b676f356
JD
64322003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6433
6434 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
6435 of area to be redrawn for better performance.
6436
3c671a56
SM
64372003-03-28 Stefan Monnier <monnier@cs.yale.edu>
6438
6439 * xterm.c (take_vertical_position_into_account): Remove.
6440 (xt_action_hook): Call set_vertical_scroll_bar if needed.
6441 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
6442 (xm_scroll_callback, x_create_toolkit_scroll_bar)
6443 (x_set_toolkit_scroll_bar_thumb): Simplify.
6444 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
6445 (XTread_socket): Remove unused var.
6446 (x_make_frame_invisible): Replace goto with else.
6447
6448 * xdisp.c (set_vertical_scroll_bar): New fun.
6449 (redisplay_window): Use it.
6450
84f2e615
RS
64512003-03-26 Richard M. Stallman <rms@gnu.org>
6452
6453 * xdisp.c (update_tool_bar): Recompute tool bar if
6454 update_mode_lines is set. Set w->update_mode_line
6455 only if the tool bar contents actually change.
6456 (update_menu_bar): Undo previous change.
6457
70b6104c
JD
64582003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6459
5fd6f727
JD
6460 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
6461 (xg_frame_set_char_size): Calculate scroll bar width before frame
6462 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
6463 (xg_separator_p): Check for all documented separator types.
6464 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
6465 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
6466
70b6104c
JD
6467 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
6468 so tool bar gets updated.
6469
d9b36d19
SM
64702003-03-26 Stefan Monnier <monnier@cs.yale.edu>
6471
6472 * data.c (store_symval_forwarding): Re-instate part of the code
6473 that was deleted with too much enthusiasm.
6474
64752003-03-25 Stefan Monnier <monnier@cs.yale.edu>
6476
6477 * data.c (store_symval_forwarding): Delete special read-only
6478 hack for type == -1, since we now use ->constant instead.
6479 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
6480
6481 * buffer.c (overlays_in): Declare static.
6482 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
6483 `constant' field rather than the variable's `type' field.
6484
365fa1b3
AC
64852003-03-24 Andrew Choi <akochoi@shaw.ca>
6486
6487 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
6488
6489 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
6490
6491 * fns.c [MAC_OSX]: Do not redefine vector.
6492
6493 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
6494
6495 * macgui.h: Remove definition of No_Cursor.
6496
d9b36d19 6497 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
365fa1b3
AC
6498
6499 * xdisp.c: Define No_Cursor.
6500 (x_write_glyphs, notice_overwritten_cursor)
6501 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
6502 (note_mouse_highlight): Remove Mac-specific code.
6503 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
d9b36d19 6504
c0bcce6f
JPW
65052003-03-24 John Paul Wallington <jpw@gnu.org>
6506
6507 * xdisp.c (redisplay_window): If mini window's buffer is not
6508 empty, then redisplay it like other windows.
6509
a526b96c
KS
65102003-03-23 Kim F. Storm <storm@cua.dk>
6511
6512 * w32term.c (w32_draw_window_cursor): Fix last change.
6513
37ab321e
KH
65142003-03-23 Kenichi Handa <handa@m17n.org>
6515
a526b96c
KS
6516 * alloc.c (make_string_from_bytes, make_specified_string):
6517 Add `const' for the arg CONTENTS.
37ab321e
KH
6518
6519 * lisp.h (make_string_from_bytes, make_specified_string):
6520 Prototypes adjusted.
6521
7863d625
JD
65222003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6523
a526b96c 6524 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
fd4c9408 6525
7863d625
JD
6526 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
6527 (XG_SB_RANGE): New define.
6528
6529 * gtkutil.c (xg_fixed_handle_expose): New function.
6530 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
6531 expose events.
6532 (xg_update_scrollbar_pos): Take two more arguments, left and width
6533 of scroll bar including borders.
6534 Clear left and right part outside scroll bar separately as some
6535 themes have bars that are not an even number of pixels.
d9b36d19 6536 Don't set reallocate_redraws, don't call
7863d625
JD
6537 gdk_window_process_all_updates.
6538 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
6539 so no need to change it. Calculate size and value with XG_SB_RANGE.
6540
d9b36d19
SM
6541 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
6542 Pass left and width of scroll bar including borders to
7863d625
JD
6543 xg_update_scrollbar_pos.
6544
af0ad939
TTN
65452003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
6546
6547 * Makefile.in: Make sure space precedes end-of-line backslashes.
6548
b22139fd
KS
65492003-03-22 Kim F. Storm <storm@cua.dk>
6550
6551 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
6552 Add generic versions here. Remove system specific versions
6553 defined elsewhere.
6554
6555 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
6556 Add prototypes.
6557
6e6410cf
KS
6558 * xterm.h (STORE_NATIVE_RECT): New macro.
6559
5c9cc435
KS
65602003-03-21 Kim F. Storm <storm@cua.dk>
6561
00c64fab
SM
6562 * xdisp.c (get_glyph_string_clip_rect):
6563 Use FRAME_INTERNAL_BORDER_WIDTH.
5c9cc435
KS
6564
6565 * dispextern.h (struct redisplay_interface): Add active_p
6566 argument to draw_window_cursor member. All uses changed.
6567
acd37560
KS
65682003-03-21 Kim F. Storm <storm@cua.dk>
6569
6570 The following changes consolidate code related to writing and
6571 inserting glyphs, exposing frame, the tool bar, the mouse face,
6572 the output cursor, and help echo from xterm.c, w32term.c and
6573 macterm.c into xdisp.c. It also generalizes the use of the
6574 window_part enum instead of using numeric values throughout.
af0ad939 6575
acd37560
KS
6576 * xdisp.c: Consolidate gui-independent code here.
6577 Include keymap.h.
6578 (Qhelp_echo): Import.
6579 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
6580 (help_echo_string, help_echo_window, help_echo_object)
6581 (previous_help_echo_string, help_echo_pos): Declare here.
6582 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
6583 (estimate_mode_line_height): Define here. Handle windowing
6584 systems directly (without using estimate_mode_line_height_hook).
6585 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
6586 (update_window_cursor, update_cursor_in_window_tree)
6587 (fast_find_position, fast_find_string_pos)
6588 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
6589 (expose_area, expose_line, expose_overlaps, expose_window)
6590 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
6591 declared static as they are only used locally in xdisp.c.
6592 (draw_glyphs): Rename from x_draw_glyphs and make static.
6593 (tool_bar_item_info, notice_overwritten_cursor): Make static.
6594 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
6595 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
af0ad939 6596 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
acd37560
KS
6597 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
6598 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
6599 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
6600 (note_mouse_highlight, x_clear_window_mouse_face)
6601 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
6602 (x_intersect_rectangles): New generic functions for use by xdisp.c
6603 and GUI front-ends.
6604 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
6605 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
6606
6607 * dispextern.h (Display_Info): Generic typedef for *_display_info.
6608 (NativeRectangle): Generic typedef for rectangle type.
6609 (enum window_part): Move here from window.c.
6610 (struct redisplay_interface): New members flush_display_optional,
6611 define_frame_cursor, clear_frame_area, draw_window_cursor,
6612 draw_vertical_window_border, shift_glyphs_for_insert.
6613 Rename member clear_mouse_face to clear_window_mouse_face.
6614 (estimate_mode_line_height_hook): Remove hook.
6615 (auto_raise_tool_bar_buttons_p): Don't declare extern.
6616 (tool_bar_item_info): Remove prototype.
6617 (help_echo_string, help_echo_window, help_echo_object)
6618 (previous_help_echo_string, help_echo_pos)
6619 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
6620 (x_stretch_cursor_p, output_cursor): Declare extern.
6621 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
6622 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
6623 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
6624 (display_and_set_cursor, set_output_cursor, x_cursor_to)
6625 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
6626 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
6627 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
6628 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
6629 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
6630 Add prototypes.
6631 (mode_line_string, marginal_area_string): Fix prototypes.
6632
6633 * window.c (enum window_part): Move to dispextern.h.
6634 (coordinates_in_window): Use enum window_part member names
6635 instead of numbers to describe return value.
6636 (struct check_window_data): Change part member to window_part.
6637 (check_window_containing): Return window_part unaltered.
6638 (window_from_coordinates): Change part arg from int to enum
6639 window_part. Allow part arg to be null. All users changed.
6640
6641 * window.h (window_from_coordinates): Fix prototype.
6642
6643 * term.c (estimate_mode_line_height): Move to xdisp.c.
6644
6645 * keyboard.c (make_lispy_event): Use enum window_part.
6646
6647 * dispnew.c (mode_line_string, marginal_area_string): Use enum
6648 window_part instead of int in arg list. Users changed.
6649
6650 * xterm.h (No_Cursor): Declare as None for X.
6651 (struct mac_output): Replace member cross_cursor by hand_cursor.
af0ad939 6652
acd37560
KS
6653 * xterm.c: Remove consolidated defines and code.
6654 (BETWEEN): Remove unused macro.
6655 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
6656 (x_define_frame_cursor, x_clear_frame_area)
6657 (x_draw_window_cursor): New X-specific functions for RIF.
6658 (x_redisplay_interface): Add new members.
6659
6660 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
6661
6662 * w32term.h (struct w32_output): Remove cross_cursor member.
6663
6664 * w32term.c: Remove consolidated defines and code.
6665 (BETWEEN): Remove unused macro.
6666 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
6667 (w32_define_frame_cursor, w32_clear_frame_area)
6668 (w32_draw_window_cursor): New W32-specific functions for RIF.
6669 (w32_redisplay_interface): Add new members.
6670
a64387ee 6671 * w32gui.h (No_Cursor): Define as 0 for W32.
acd37560
KS
6672 (XRectangle): Add X compatible rectangle type.
6673 (NativeRectangle): Declare as RECT for W32.
6674 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
6675
6676 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
6677
6678 * w32console.c: Remove consolidated defines and code.
af0ad939 6679
acd37560
KS
6680 * msdos.h (Display_Info): Add generic typedef.
6681
6682 * msdos.c: Remove consolidated defines and code.
6683 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
6684
6685 * macterm.h (struct mac_output): Replace member cross_cursor by
6686 hand_cursor.
6687 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
6688
6689 * macterm.c: Remove consolidated defines and code.
6690 (BETWEEN): Remove unused macro.
6691 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
6692 (mac_define_frame_cursor, mac_clear_frame_area)
6693 (mac_draw_window_cursor): New Mac-specific functions for RIF.
6694 (x_redisplay_interface): Add new members.
6695
6696 * macgui.h (No_Cursor): Define as 0 for Mac.
6697 (XRectangle): Add X compatible rectangle type.
6698 (NativeRectangle): Declare as Rect for Mac.
6699 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
6700
204ccab1
KS
6701 * macfns.c (x_set_mouse_color): Setup hand_cursor.
6702 (x_set_cursor_color): Use x_display_and_set_cursor.
acd37560 6703
9443fcf6 6704 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
acd37560
KS
6705 included from it. Add dependency on keymap.h.
6706
6707 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
6708
8ba01a70 67092003-03-21 Kenichi Handa <handa@m17n.org>
3f817c73
KH
6710
6711 * fileio.c (Fexpand_file_name): Fix previous change.
6712
8ba01a70 67132003-03-19 Kenichi Handa <handa@m17n.org>
4f497b0a
KH
6714
6715 * fileio.c (Ffile_name_directory): Reconstruct file name by
6716 make_specified_string.
6717 (Ffile_name_nondirectory, Ffile_name_as_directory)
6718 (Fdirectory_file_name, Fexpand_file_name)
6719 (Fsubstitute_in_file_name): Likewise.
6720 (Fread_file_name): Compare decoded homedir with DIR and
6721 DEFAULT_FILENAME.
6722
6723 * alloc.c (make_specified_string): If NCHARS is negative, count
6724 the number of characters.
6725
19536747
JD
67262003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6727
de38ae5a
JD
6728 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
6729 all widgets.
6730
19536747
JD
6731 * gtkutil.h: Removed xg_ignore_next_thumb.
6732
37ab321e 67332003-03-18 Kenichi Handa <handa@m17n.org>
cb0d4562
KH
6734
6735 * coding.c (Vchar_coding_system_table): Remove this variable.
6736 (Vcoding_system_safe_chars): New variable.
6737 (intersection): Remove this function.
6738 (find_safe_codings): Don't use Vchar_coding_system_table, but try
6739 all codings in SAFE_CODINGS.
00c64fab 6740 (Ffind_coding_systems_region_internal): Adjust for the change of
cb0d4562
KH
6741 find_safe_codings. Get generic coding systems from
6742 Vcoding_system_safe_chars.
6743 (Fdefine_coding_system_internal): New function.
6744 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
6745 Initialize and staticpro Vcoding_system_safe_chars.
6746
17097258
JD
67472003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6748
2a2071c3
JD
6749 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
6750 equal old values before updating.
6751
17097258
JD
6752 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
6753
6754 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
6755
67562003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6757
6758 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
6759 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
6760 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
6761 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
6762 (xg_create_scroll_bar): Pass bar to button event callback.
6763 (xg_find_top_left_in_fixed): New function.
6764 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
6765 whole scroll bar area. Get old position with
6766 xg_find_top_left_in_fixed, calculate and only clear needed areas.
6767 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
6768 dragging is in progress. Calculate whole as for Motif.
6769 Remove code that saved last values. Call gtk_range functions to
6770 set scroll bar sizes.
6771
6772 * gtkutil.h: Removed xg_ignore_next_thumb.
6773
8cb9dfbf
JB
67742003-03-17 Juanma Barranquero <lektu@terra.es>
6775
6776 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
6777 and files included from it.
6778
00c64fab
SM
67792003-03-18 Stefan Monnier <monnier@cs.yale.edu>
6780
6781 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
6782 multiple occurrences of the same keymap under different prefixes.
6783 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
6784
c45bb3b2
JR
67852003-03-16 Jason Rumney <jasonr@gnu.org>
6786
6787 * w32gui.h: Use HDC for Display.
6788
6789 * w32term.c (w32_encode_char): Prevent double-byte chars from
6790 crashing Emacs.
6791
6792 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
6793 as binary.
6794
2a6d0874
JB
67952003-03-16 Juanma Barranquero <lektu@terra.es>
6796
6797 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
6798
03eb5fab
KS
67992003-03-16 Kim F. Storm <storm@cua.dk>
6800
6801 The following changes consolidate some of the gui-independent
6802 parts of the processing and drawing of "glyph strings" from
6803 xterm.c, w32term.c, and macterm.c into xdisp.c.
2a6d0874 6804
03eb5fab
KS
6805 * dispextern.h (struct glyph): Reduce face_id member from 22 to
6806 21 bits (this reduces number of faces from 4M to 2M).
6807 Replace W32 specific w32_font_type member (2 bits) by generic
6808 font_type member (3 bits) for portability.
6809 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
6810 (enum draw_glyphs_face): Define here.
6811 (struct glyph_string): Define here. Merge W32 and X versions.
6812 (struct redisplay_interface): New members per_char_metric,
6813 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
6814 (VCENTER_BASELINE_OFFSET): Define here.
6815 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
6816 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
6817
6818 * xdisp.c: Consolidate gui-independent "glyph string" code here.
6819 (dump_glyph_string): Moved here.
6820 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
6821 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
6822 (fill_composite_glyph_string, fill_glyph_string)
6823 (fill_image_glyph_string, fill_stretch_glyph_string)
6824 (left_overwritten, left_overwriting, right_overwritten)
6825 (right_overwriting, get_char_face_and_encoding)
6826 (set_glyph_string_background_width, compute_overhangs_and_x)
6827 (append_glyph, append_composite_glyph, produce_image_glyph)
6828 (take_vertical_position_into_account, append_stretch_glyph)
6829 (produce_stretch_glyph): New generic functions (based on X version).
6830 Call platform specific functions through rif.
6831 (INIT_GLYPH_STRING): New macro, hides W32 details.
6832 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
6833 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
6834 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
6835 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
6836 (notice_overwritten_cursor):
6837 Generic functions exported to platform modules. Users changed.
6838
6839 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
6840 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
6841 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
fad49844 6842 New macros for consolidated code.
2a6d0874 6843
03eb5fab
KS
6844 * xterm.c: Remove consolidated defines and code.
6845 (x_per_char_metric, x_encode_char)
6846 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
6847 (x_redisplay_interface): Add new members.
6848
6849 * w32gui.h (Display): Add dummy typedef for consolidation.
6850 (XChar2b): Define alias for wchar_t for consolidation.
6851 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
6852
6853 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
2a6d0874 6854 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
03eb5fab
KS
6855 New macros for consolidation.
6856
fad49844 6857 * w32term.c: Remove consolidated defines and code.
03eb5fab
KS
6858 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
6859 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
6860 (w32_per_char_metric): Change font_type arg to int for RIF.
6861 (w32_encode_char): Return int according to RIF requirements.
6862 (w32_compute_glyph_string_overhangs): Adapt to RIF.
6863 (w32_get_glyph_overhangs): New function for RIF. Uses generic
6864 x_get_glyph_overhangs.
6865 (w32_redisplay_interface): Add new members.
6866
6867 * macgui.h (XChar2b): Move typedef here for consolidation.
6868 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
6869
6870 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
6871 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
6872 consolidation.
6873
6874 * macterm.c: Remove consolidated defines and code.
6875 (mac_per_char_metric): New function for RIF.
00c64fab 6876 (mac_encode_char): Adapt to new RIF requirements.
03eb5fab
KS
6877 (mac_compute_glyph_string_overhangs): Adapt for RIF.
6878 (x_redisplay_interface): Add new members.
6879
00c64fab
SM
68802003-03-15 Stefan Monnier <monnier@cs.yale.edu>
6881
6882 * keymap.c (Vmenu_events): New var.
6883 (syms_of_keymap): Initialize it.
6884 (where_is_internal): Check more carefully what is a menu event.
6885
225c7a07
RS
68862003-03-14 Richard M. Stallman <rms@gnu.org>
6887
6888 * lread.c (read1): After #!, exit loop on eof.
6889
cea9be54
JD
68902003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6891
9ea0e54d
JD
6892 * gtkutil.h: Add declaration for xg_frame_cleared.
6893
0cb35f4e
JD
6894 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
6895
cea9be54
JD
6896 * gtkutil.c (struct xg_last_sb_pos): New structure.
6897 (handle_fixed_child): New function.
6898 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
6899 and force a redraw on them.
6900 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
6901 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
6902 so we can avoid unneeded redraws.
6903 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
6904 and force a redraw on the scroll bar.
6905 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
6906 if xg_last_sb_pos shows the positions are up to date.
0cb35f4e 6907 (xg_frame_cleared): New function.
cea9be54 6908
20b853f3
KH
69092003-03-13 Kenichi Handa <handa@m17n.org>
6910
6911 * coding.c (Fdetect_coding_region): Fix docstring.
6912 (Fdetect_coding_string): Fix docstring.
6913
7a555aff
AS
69142003-03-13 Andreas Schwab <schwab@suse.de>
6915
25cc0080
AS
6916 * gtkutil.c: Add prototype for create_menus.
6917
30225431
AS
6918 * data.c (long_to_cons): Fix type of top.
6919
6920 * xselect.c (selection_data_to_lisp_data): Use int instead of
6921 long for an integer of size 4.
6922
7a555aff 6923 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
30225431 6924 (xg_tool_bar_help_callback): Likewise.
7a555aff 6925
a3e4741f
AS
69262003-03-12 Andreas Schwab <schwab@suse.de>
6927
6928 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
6929
9668be7c
KS
69302003-03-12 Kim F. Storm <storm@cua.dk>
6931
03eb5fab 6932 The following changes consolidate the fringe handling from
9668be7c 6933 xterm.c, w32term.c, and macterm.c into xdisp.c.
00a88f32 6934
9668be7c
KS
6935 * xdisp.c: Consolidate fringe handling code here.
6936 (left_bits, right_bits, continued_bits, continuation_bits)
6937 (ov_bits, zv_bits): Define fringe bitmaps.
6938 (fringe_bitmaps): New array holding fringe bitmaps.
6939 (draw_fringe_bitmap): Draw a specific bitmap; call display
6940 specific drawing routine via rif->draw_fringe_bitmap.
6941 (draw_row_fringe_bitmaps): Generic replacement for
6942 x_draw_row_fringe_bitmaps; all callers changed.
6943 (compute_fringe_widths): Generic replacement for
6944 x_compute_fringe_widths; all callers changed.
6945
6946 * dispextern.h (enum fringe_bitmap_type): Define here.
6947 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
6948 (fringe_bitmaps): Declare extern.
6949 (struct redisplay_interface): New member draw_fringe_bitmap.
6950 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
6951
6952 * xterm.c: Remove generic fringe code.
6953 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
6954 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
6955
6956 * w32term.c: Remove generic fringe code.
6957 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
6958 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
00a88f32 6959
9668be7c
KS
6960 * macterm.c: Remove generic fringe code.
6961 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
6962 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
6963
00a88f32
SM
69642003-03-11 Stefan Monnier <monnier@cs.yale.edu>
6965
6966 * print.c (Fprin1_to_string): Return unibyte string if possible.
6967
1d1de695
DK
69682003-03-09 David Kastrup <dak@gnu.org>
6969
6970 * process.c (read_process_output): We have allocated enough space
6971 for readmax and carryover, so actually use the alloted space.
6972
257f40f2
JD
69732003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6974
6975 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
6976 toolkit scrollbar click.
6977
6978 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
6979 for USE_GTK.
6980 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
6981 also.
6982 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
6983 scrollbar and control is pressed, call x_scroll_bar_handle_click.
00a88f32 6984
257f40f2
JD
6985 * gtkutil.h: Declare xg_get_scroll_id_for_window.
6986
6987 * gtkutil.c (xg_get_scroll_id_for_window): New function.
6988 (xg_tool_bar_item_expose_callback): New function.
6989 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
6990 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
6991 on the tool bar widget.
6992 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
6993 to expose on the tool bar item widgets.
6994
15213141
JD
69952003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6996
26b74a0b 6997 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
00a88f32 6998 struct image* when deciding to update (struct image* may have been
26b74a0b
JD
6999 deleted from the image cache).
7000
15213141
JD
7001 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
7002 the event isn't for a frame (i.e. for dialogs).
7003
20b853f3 70042003-03-07 Kenichi Handa <handa@m17n.org>
cb681b34
KH
7005
7006 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
7007 composition components reaches the limit, terminate composing.
7008 (COMPOSITION_OK): New macro.
00a88f32 7009 (detect_coding_iso2022): Use it if an escape sequence for
cb681b34
KH
7010 composition is found.
7011 (coding_restore_composition): Adjust the number of composition
7012 components if it is not sane.
7013
c9029fe5
JB
70142003-03-06 Juanma Barranquero <lektu@terra.es>
7015
7016 * w32term.h (struct w32_display_info): Add xrdb member to support
7017 passing resources via -xrm on Windows.
7018
7019 * w32term.c (w32_make_rdb): New function.
7020 (w32_term_init): Use it to initialize xrdb member of w32_display_info
7021 struct. Delete leftover code.
7022
7023 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
7024 for resources passed on the command line.
7025
7026 * w32reg.c (w32_get_rdb_resource): New function.
7027 (x_get_string_resource): Use it, so resources passed with -xrm
7028 supercede the ones in the registry.
7029
9d00001f
JD
70302003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7031
7032 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
7033 instead of x_top_window_to_frame.
7034
ca2417b9
JD
70352003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7036
7037 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
7038 when restarting Emacs.
7039
5b20caf0
RS
70402003-03-03 Richard M. Stallman <rms@gnu.org>
7041
7042 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
7043 to run kill-buffer-query-functions.
7044 (Qkill_buffer_query_functions): New var.
7045 (syms_of_buffer): Init and staticpro it.
7046
58e91b77
JD
70472003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7048
7049 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
7050
932357b4
KS
70512003-02-25 Kim F. Storm <storm@cua.dk>
7052
7053 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
7054 If centering point failed to make whole line visible and vscroll
7055 is non-zero, disable vscroll and try centering point again.
7056
7057 * lread.c (read1): Accept `single space' syntax like (? x).
7058
bb8db7e1
JD
70592003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7060
7061 * keyboard.c (cancel_hourglass_unwind): Surround with
7062 #ifdef HAVE_X_WINDOWS
7063
47d77aab
KH
70642003-02-25 Kenichi Handa <handa@m17n.org>
7065
7066 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
7067 process only when "subprocesses" is defined.
7068
6a097c0c
SM
70692003-02-24 Stefan Monnier <monnier@cs.yale.edu>
7070
7071 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
7072
0b063c27
JB
70732003-02-24 Juanma Barranquero <lektu@terra.es>
7074
d1135afc
JB
7075 * callint.c (fix_command): Declare as static void and move before
7076 Fcall_interactively.
7077
0b063c27
JB
7078 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
7079 (syms_of_xdisp): Don't initialize Qwhen.
7080
0af912f0
JD
70812003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7082
7083 * keyboard.c (cancel_hourglass_unwind): New function.
7084 (command_loop_1): Cancel hourglass with unwind-protect.
7085
120d0a23
RS
70862003-02-23 Richard M. Stallman <rms@gnu.org>
7087
7088 * callint.c (fix_command): New subroutine, from Fcall_interactively.
7089 Detect (when ... (region-beginning)) etc.
7090 (Fcall_interactively): Call fix_command.
7091 (Qif, Qwhen): New variables.
7092 (syms_of_callint): Init and staticpro them.
0b063c27 7093
120d0a23
RS
7094 * regex.c (print_partial_compiled_pattern): Output to stderr.
7095
4ece81a6
KG
70962003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
7097
7098 * dired.c (directory_files_internal): Don't expand directory.
7099 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
7100 instead. From Lars Hansen <larsh@math.ku.dk>.
7101
e52bd6b7
SM
71022003-02-22 Stefan Monnier <monnier@cs.yale.edu>
7103
7104 * fns.c (string_to_multibyte): Remove unused var i.
7105 (Flanginfo): Fix int/Lisp_Object mixup.
7106 (void_call2): New fun.
7107 (Fmap_char_table): Use it in place of call2.
7108
7109 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
7110
7111 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
7112
7113 * keymap.c (copy_keymap_1): Make it static.
7114
7115 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
7116
c33ef7c4
JB
71172003-02-22 David Ponce <david@dponce.com>
7118
7119 * lread.c (Fload): Don't check STRING_MULTIBYTE.
7120
16782258
JD
71212003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7122
7123 * process.h: Removed subtty field from struct Lisp_Process.
7124
7125 * process.c (create_process): Remove setting of subtty.
7126 (emacs_get_tty_pgrp): New function.
e52bd6b7
SM
7127 (Fprocess_running_child_p, process_send_signal):
7128 Call emacs_get_tty_pgrp instead of ioctl.
16782258
JD
7129 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
7130
3abeca61
KG
71312003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
7132
7133 * keymap.c (Fdefine_key): Doc fix.
7134
92a8ce63
JB
71352003-02-21 Juanma Barranquero <lektu@terra.es>
7136
7137 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
7138
7139 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
7140 POLLING_PROBLEM_IN_SELECT.
7141
7142 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
7143 Delete #undef of POLLING_PROBLEM_IN_SELECT.
7144
7145 * s/hpux10-20.h: New file.
7146
e52bd6b7
SM
7147 * process.c (wait_reading_process_input):
7148 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
92a8ce63 7149
20f1ef2e
KH
71502003-02-20 Kenichi Handa <handa@m17n.org>
7151
32d0a9dc
KH
7152 * fontset.c (check_fontset_name): If NAME is nil, return the
7153 default fontset.
7154 (override_font_info): New function.
e52bd6b7 7155 (Fset_fontset_font): Document that NAME nil means the default fontset.
32d0a9dc
KH
7156 (Ffontset_info): If FONTSET is not the default fontset, merge
7157 FONTSET onto the copy of the default fontset, and work on that
7158 copy. Document that NAME nil means the default fontset.
7159 (Ffontset_font): Document that NAME nil means the default fontset.
7160
20f1ef2e
KH
7161 * process.c (setup_process_coding_systems): If the process's
7162 in/out descriptor is -1, do nothing.
7163
77d1daf2
AS
71642003-02-19 Andreas Schwab <schwab@suse.de>
7165
e52bd6b7
SM
7166 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
7167 Add prototypes.
77d1daf2 7168
f9a45bb3
KH
71692003-02-19 Kenichi Handa <handa@m17n.org>
7170
7171 * xfaces.c (try_alternative_families): Try all scalable fonts if
7172 Vscalable_fonts_allowed is not Qt.
7173
72ecb43c
JD
71742003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7175
7176 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
7177
ee5be7c3
JD
71782003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7179
7180 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
7181 names.
7182
7183 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
e52bd6b7 7184 (sorted_font_list): Move allocation of struct font_name to
ee5be7c3
JD
7185 x_face_list_fonts.
7186 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
7187 (Fx_list_fonts): Set maxnames to -1 to get all font names.
7188
4cd519a7
KS
71892003-02-18 Kim F. Storm <storm@cua.dk>
7190
068f9882
KS
7191 * lread.c (read1): Fix last change.
7192 "`" is not always special. Allow "?" after a character constant.
4cd519a7 7193
7290a344
AC
71942003-02-18 Andrew Choi <akochoi@shaw.ca>
7195
7196 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
7197
1f7fa69b
AS
71982003-02-18 Andreas Schwab <schwab@suse.de>
7199
7200 * window.c (window_scroll_pixel_based): Move outside a
7201 multi-glyph character before setting new window start.
7202
7203 * xdisp.c (in_display_vector_p): New function.
7204 * dispextern.h (in_display_vector_p): Declare.
7205
23e21195
KS
72062003-02-18 Kim F. Storm <storm@cua.dk>
7207
7208 * lread.c (read1): Fix and relax read syntax.
7209 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
7210 Only recognize "," after dotted-pair dot if inside backquote.
7211 Never include "`" or "," (inside backquote) in a symbol.
7212 Allow dotted-pair dot after a character constant.
7213 Allow "`" and "," (inside backquote) after a character constant.
92a8ce63 7214
f098b121
JD
72152003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7216
7217 * gtkutil.c (xg_tool_bar_expose_callback): New function.
7218 (xg_create_tool_bar): Force style of tool bar to be horizontal with
7219 icons. Set name of tool bar to emacs-toolbar.
7220 (update_frame_tool_bar): Connect expose event to
7221 xg_tool_bar_expose_callback.
7222
63020c46
RS
72232003-02-17 Richard M. Stallman <rms@gnu.org>
7224
7225 * keyboard.c (this_command_key_count_reset): New variable.
7226 Initiatize to 0 where this_command_key_count is set.
7227 (read_char): Save and restore this_command_key_count_reset
7228 around input method code.
7229 (read_char): If this_command_key_count_reset, echo reread commands.
7230 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
7231
fb4452cc
KH
72322003-02-17 Kenichi Handa <handa@m17n.org>
7233
7234 * fns.c (string_to_multibyte): Always return a multibyte string.
7235
bd11cc09
JR
72362003-02-16 Jason Rumney <jasonr@gnu.org>
7237
e52bd6b7
SM
7238 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
7239 Negative max_fonts parameter means list all.
bd11cc09 7240
4cdf4bde
DL
72412003-02-14 Dave Love <fx@gnu.org>
7242
7243 * fns.c (Flanginfo): Doc fix.
7244
023b93f6
KS
72452003-02-13 Kim F. Storm <storm@cua.dk>
7246
37cd4238
KS
7247 * lread.c (read_escape): Interpret \s as a SPACE character, except
7248 for \s-X in a character constant which still is the super modifier.
7249 (read1): Signal an `invalid read syntax' error if a character
7250 constant is immediately followed by a digit or symbol character.
7251
140a6b7e
KS
7252 * search.c (Fmatch_data): Doc fix. Explicitly state that
7253 match-data is undefined if last search failed.
7254
023b93f6
KS
7255 * keymap.c (Fcommand_remapping): Renamed from Fremap_command.
7256 All uses changed.
7257
7d5c86e5
JB
72582003-02-12 Juanma Barranquero <lektu@terra.es>
7259
7260 * eval.c (Fdefmacro): Fix typo.
7261
295fff2c
KS
72622003-02-12 Kim F. Storm <storm@cua.dk>
7263
7264 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
7265 macro is a string, convert meta modifiers in string when copying
7266 the string into a vector.
7267
60f3202d
KS
72682003-02-11 Kim F. Storm <storm@cua.dk>
7269
7270 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
7271
61cb0b53
KH
72722003-02-11 Kenichi Handa <handa@m17n.org>
7273
7274 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
7275
7392e23c
KS
72762003-02-10 Kim F. Storm <storm@cua.dk>
7277
7278 * process.c: Doc fixes.
7279 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
7280
ce4254bd
KH
72812003-02-10 Kenichi Handa <handa@m17n.org>
7282
9c7a329a
KH
7283 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
7284
ce4254bd
KH
7285 * process.c (QCfilter_multibyte): New variable.
7286 (setup_process_coding_systems): New function.
e52bd6b7
SM
7287 (Fset_process_buffer, Fset_process_filter):
7288 Call setup_process_coding_systems.
ce4254bd
KH
7289 (Fstart_process): Initialize the member `filter_multibyte' of
7290 struct Lisp_Process.
7291 (create_process): Call setup_process_coding_systems.
7292 (Fmake_network_process): New keyward `:filter-multibyte'.
7293 Initialize the member `filter_multibyte' of struct Lisp_Process.
7294 Call setup_process_coding_systems.
7295 (server_accept_connection): Call setup_process_coding_systems.
7296 (read_process_output): If the process has a filter, decide the
7297 multibyteness of a string to given to the filter by
7298 `filter_multibyte' member of the process. If the process doesn't
7299 have a filter and the result of conversion is unibyte, use
7300 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
7301 multibyte form.
7302 (Fset_process_coding_system): Call setup_process_coding_systems.
7303 (Fset_process_filter_multibyte): New function.
7304 (Fprocess_filter_multibyte_p): New function.
7305 (syms_of_process): Intern and staticpro QCfilter_multibyte.
7306 Defsubr Sset_process_filter_multibyte and
7307 Sprocess_filter_multibyte_p.
7308
7309 * process.h (struct Lisp_Process): New member filter_multibyte.
7310
7311 * lisp.h (setup_process_coding_systems): Add prototype.
7312
7313 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
7314 process, update coding systems for the process.
7315
b08d5f59
KH
73162003-02-09 Kenichi Handa <handa@m17n.org>
7317
7318 * fns.c (string_to_multibyte): New function.
7319 (Fstring_to_multibyte): New function.
7320 (syms_of_fns): Defsubr it.
7321
0dfd93c0
AS
73222003-02-08 Andreas Schwab <schwab@suse.de>
7323
7324 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
7325 instead of the substitution.
7326
7b76ca1c
JD
73272003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7328
7329 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
7330
7331 * xmenu.c (menu_position_func): Adjust menu popup position so that
7332 the menu is fully visible.
7b76ca1c 7333
2436a4e4
JD
73342003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7335
7336 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
e52bd6b7
SM
7337 (x_make_frame_invisible, x_wm_set_icon_position):
7338 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
2436a4e4
JD
7339
7340 * xfns.c (x_set_name, x_set_title): Ditto.
7341
37d1e680
RS
73422003-02-04 Richard M. Stallman <rms@gnu.org>
7343
7344 * keyboard.c (echo_now): Update before_command_echo_length.
7345 (Freset_this_command_lengths): Reset this_command_key_count etc.
7346 immediately rather than arranging to do it later.
7347 (before_command_key_count_1, before_command_echo_length_1)
7348 (before_command_restore_flag): Vars deleted.
7349 (add_command_key): Don't handle before_command_restore_flag.
7350 (read_char, record_menu_key): Don't update before_command_key_count or
7351 before_command_echo_length.
7352 (read_char): Don't handle before_command_restore_flag.
7353
7354 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
7355 in direct-output clauses if it wouldn't be called in the ordinary case.
7356
578846a3
KS
73572003-02-04 Kim F. Storm <storm@cua.dk>
7358
7359 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
7360
49853a4d
JD
73612003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7362
7363 * gtkutil.c (remove_from_container): Copying list is not needed.
7364 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
7365 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
7366 on list returned from gtk_container_get_children to avoid memory leak.
7367
8b53dc06
JR
73682003-02-01 Jason Rumney <jasonr@gnu.org>
7369
5d54d177
JR
7370 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
7371 local malloc.
7372 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
7373 definitions in xpm.h.
7374 (init_xpm_functions): New function.
f63fd14e 7375 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
5d54d177
JR
7376 (init_external_image_libraries): Try to load libXpm.dll.
7377
8b53dc06
JR
7378 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
7379 timestamp.
7380
b222e415
DL
73812003-01-31 Dave Love <fx@gnu.org>
7382
7383 * syntax.c (Fskip_chars_forward)
7384 (open-paren-in-column-0-is-defun-start): Doc fix.
7385
c60ee5e7
JB
73862003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
7387
7388 * fileio.c: Support // at start of name for Cygwin (just added proper
7389 preprocessor tests).
7390
7391 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
7392
7393 * Makefile.in: Use @EXEEXT@ for Cygwin.
7394
7395 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
7396
7397 * s/cygwin.h: Added for Cygwin port.
7398
53b37591
JB
73992003-01-31 Juanma Barranquero <lektu@terra.es>
7400
7401 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
7402 when including gif_lib.h.
fe929957 7403 (init_gif_functions, init_tiff_functions): New functions.
f63fd14e
JB
7404 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
7405 Windows. Disable color table lookups. Call library functions
53b37591 7406 through pointers determined at runtime.
fe929957
JB
7407 (init_external_image_libraries): Try to load libungif.dll and
7408 libtiff.dll.
53b37591 7409
45415a8f
KH
74102003-01-31 Kenichi Handa <handa@m17n.org>
7411
7412 * xdisp.c (SKIP_GLYPHS): New macro.
e52bd6b7 7413 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
45415a8f 7414
a97e4138
JD
74152003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7416
e52bd6b7 7417 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
a97e4138 7418
6eed9bed
DL
74192003-01-30 Dave Love <fx@gnu.org>
7420
7421 * alloc.c (Vgc_elapsed, gcs_done): New variables.
7422 (Fgarbage_collect): Use them.
7423 (init_alloc, syms_of_alloc): Set them up.
7424
100dcd40
JB
74252003-01-30 Juanma Barranquero <lektu@terra.es>
7426
7427 * w32fns.c (init_external_image_libraries): Add missing operator.
7428
fbd852af
JR
74292003-01-29 Jason Rumney <jasonr@gnu.org>
7430
7431 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
7432 an alternative name for jpeg.dll.
7433
8a2d8020
KH
74342003-01-29 Kenichi Handa <handa@m17n.org>
7435
7436 * xdisp.c (set_cursor_from_row): Pay attention to string display
7437 properties.
7438
058c18c7
AC
74392003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
7440
7441 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
7442 <escape>.
7443 (keycode_to_xkeysym_table): Reformat and add more comments.
7444 (XTread_socket): Drop special case for backspace.
7445
385f11cf
AC
74462003-01-28 Andrew Choi <akochoi@shaw.ca>
7447
7448 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
7449 values in old-style RGB specs.
7450
c922a224
JB
74512003-01-27 Juanma Barranquero <lektu@terra.es>
7452
7453 * w32fns.c (init_external_image_libraries): Try alternate names for the
7454 jpeg dll.
7455
0a1d6de0
JD
74562003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7457
7458 * gtkutil.c (create_dialog, xg_separator_p)
7459 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
7460 before calling strcmp or strlen.
7461
a97e4138 74622003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1d1885fc
JD
7463
7464 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
7465 and handle image load failure.
7466
28908312
JR
74672003-01-26 Jason Rumney <jasonr@gnu.org>
7468
7469 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
7470 New functions.
f63fd14e
JB
7471 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
7472 Disable color table lookups. Call jpeg library functions
28908312
JR
7473 through pointers determined at runtime.
7474 (init_external_image_libraries): Try to load jpeg.dll.
7475
84e47416
RS
74762003-01-25 Richard M. Stallman <rms@gnu.org>
7477
7478 * lisp.h: Declare format2 instead of format1.
7479
7480 * fileio.c (barf_or_query_if_file_exists):
7481 Call format2 instead of format1.
7482
7483 * editfns.c (format2): New function, replaces format1
7484 but takes exactly two Lisp Objects as format args.
7485
7486 * buffer.c (Fkill_buffer): Call format2 instead of format1.
7487
a97e4138 74882003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1fcfb866
JD
7489
7490 * xterm.h: Change to return value of x_dispatch_event to int.
7491
7492 * xterm.c (x_filter_event): New function.
7493 (event_handler_gdk, XTread_socket): Call x_filter_event.
7494 (x_dispatch_event): Change to return value of finish.
7495 (event_handler_gdk): Use return value from x_dispatch_event.
7496
7497 * xfns.c (x_window): Call create_frame_xic for GTK version to
7498 initialize input methods.
7499
7500 * gtkutil.h: Add (void) prototypes.
7501
7502 * gtkutil.c (create_menus): Remove code that puts the help menu to
7503 the right.
7504
54eefef1
JR
75052003-01-25 Jason Rumney <jasonr@gnu.org>
7506
7507 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
7508 [HAVE_PNG]: Sync with xfns.c version.
f63fd14e
JB
7509 (png_load): Adjust colors for Windows. Use Windows
7510 bitmaps. Disable color table lookups.
c262430d
JR
7511 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
7512 (init_png_functions): New function.
7513 (png_read_from_memory, png_load): Call png library functions
7514 through pointers determined at runtime.
7515 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
7516 (init_external_image_libraries): New function.
7517 (init_xfns): Call it.
54eefef1 7518
1a9e275b
AS
75192003-01-24 Andreas Schwab <schwab@suse.de>
7520
7521 * minibuf.c (Fminibuffer_message): Verify type of parameter.
7522
a97e4138 75232003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
81e302ef
JD
7524
7525 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
7526 of static initializer.
7527
422eec7e
DL
75282003-01-24 Dave Love <fx@gnu.org>
7529
7530 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
7531 architectures.
7532
7533 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
7534 Use __alignof__.
7535
2a026b04
KH
75362003-01-24 Kenichi Handa <handa@m17n.org>
7537
7538 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
e52bd6b7 7539 It it is nonzero, don't pretend that an invisible area doesn't exist.
2a026b04
KH
7540 (command_loop_1): Call adjust_point_for_property with proper
7541 second arg.
7542
a18bb28d
JR
75432003-01-22 Jason Rumney <jasonr@gnu.org>
7544
7545 Sync changes with xterm.c and xfns.c.
7546
7547 * w32term.c (x_draw_glyph_string_foreground)
7548 (x_draw_composite_glyph_string_foreground): Implement overstriking.
7549
7550 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
7551 phys_cursor's hpos is overwritten. This is still not completely
7552 correct, as it doesn't really make sense to use hpos at all to
7553 get the cursor glyph (as that is relative to the width of the
7554 characters on the line, which may have changed during the update).
7555
7556 * w32term.c (notice_overwritten_cursor): Handle the special case
7557 of the cursor being in the first blank non-text line at the
7558 end of a window.
7559
7560 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
7561 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
7562 Compute from the x position returned by x_draw_glyphs.
7563
7564 (x_display_and_set_cursor): Don't set phys_cursor_width here,
7565 except for NO_CURSOR and system caret, to make phys_cursor_width
7566 contain what its name suggests.
7567 (notice_overwritten_cursor): Consider the cursor image erased if
7568 the output area intersects the cursor image in y-direction.
7569
6a097c0c
SM
7570 * w32term.c (note_mode_line_or_margin_highlight): Rename from
7571 note_mode_line_highlight and extend.
a18bb28d
JR
7572
7573 * w32term.c (last_window): New variable.
7574 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
7575 (note_mouse_movement): Remove reimplemented code in #if 0.
7576
7577 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
7578 not update_mode_lines, and always set it to 1.
7579
ac6e47ef
JR
75802003-01-21 Jason Rumney <jasonr@gnu.org>
7581
7582 * w32fns.c (IDC_HAND): Define it if system headers don't.
7583
75842003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
7585
7586 * w32term.h (struct w32_output): New member hand_cursor.
7587 (WM_EMACS_SETCURSOR): New message definition.
7588
7589 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
7590 function w32_define_cursor.
7591 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
7592 position, change member name output_data.x to output_data.w32 and
7593 add function w32_define_cursor.
7594 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
7595 and change member name output_data.x to output_data.w32.
e52bd6b7
SM
7596 (w32_initialize_display_info):
7597 Setup dpyinfo->vertical_scroll_bar_cursor.
ac6e47ef
JR
7598
7599 * w32fns.c (Vx_hand_shape): New variable.
7600 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
7601 WM_EMACS_SETCURSOR.
7602 (x-create-frame): Setup Cursor types.
7603
ceb39a17
JB
76042003-01-21 David Ponce <david@dponce.com>
7605
ac6e47ef 7606 * w32term.c (w32_encode_char): For DIM=1 charset, set
f63fd14e 7607 ccl->reg[2] to -1 before calling ccl_driver. (Sync. with xterm.c
ac6e47ef 7608 x_encode_char change by Kenichi Handa <handa@m17n.org> on
ceb39a17 7609 2002-09-30.)
ac6e47ef
JR
7610 (w32_draw_relief_rect): Declare all args.
7611 (w32_define_cursor): New.
7612
7613 * w32fns.c (w32_load_cursor): New function.
7614 (w32_init_class): Use it.
7615 (x_put_x_image): Declare all args.
7616
46cf0bed
JB
76172003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk> (tiny change)
7618
7619 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
7620
a97e4138 76212003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e8794476
JD
7622
7623 * gtkutil.c: Must include stdio.h before termhooks.h
7624
83fc9c63
DL
76252003-01-21 Dave Love <fx@gnu.org>
7626
7627 * alloc.c (Fgc_status): Print zombie list.
7628 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
7629 Fix assignment of zombies.
7630 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
7631 Don't take car of non-cons.
7632
7633 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
7634
7635 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
7636
fe04b8c8
JR
76372003-01-20 David Ponce <david@dponce.com>
7638
7639 * w32menu.c (digest_single_submenu): Declare all args.
7640
7641 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
7642 changes in xmenu.c:
7643
7644 (parse_single_submenu): Use individual keymap's prompt
7645 string as pane name, if there is one.
7646 (set_frame_menubar): Save menu_items_n_panes from each call to
7647 parse_single_submenu and use it when calling digest_single_submenu.
7648
539e69a9
ST
76492003-01-20 Steven Tamm <steventamm@mac.com>
7650
7651 * macterm.c (XTread_socket): Checks for valid, visible window
7652 before sending a scroll-wheel event.
7653
675d000f
RS
76542003-01-20 Richard M. Stallman <rms@gnu.org>
7655
7656 * xdisp.c (redisplay_window): If mini window's buffer is not
7657 a minibuffer, then redisplay it like other windows.
7658
a97e4138 76592003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22174d10
JD
7660
7661 * gtkutil.c (xg_create_frame_widgets): Check if there is an
7662 external tool bar before setting tool bar height.
7663
048addec
JD
76642003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7665
7666 * xterm.c (handle_one_xevent): Surround popup_activated
7667 with #ifdef:s for non-toolkit version.
7668
7669 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
7670 (gtkutil.o): New file.
7671 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
7672 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
7673
7674 * gtkutil.c: New file for GTK version.
7675
7676 * gtkutil.h: New file for GTK version.
7677
7678 * xterm.h: Add xt_or_gtk_widget.
7679 Include gtk files for USE_GTK.
7680 (struct x_output): Add toolbar_height.
7681 (struct x_output): Add GTK widgets and Gdk size_hints.
7682 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
7683 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
7684 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
7685
7686 * xterm.c: Include gtkutil.h for USE_GTK.
7687 Declare extern void free_frame_menubar for USE_GTK.
7688 (note_mouse_highlight): Check popup_activated for USE_GTK.
7689 (xt_action_hook): Don't compile if USE_GTK.
7690 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
7691 (xg_scroll_callback): New function.
7692 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
7693 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
7694 for USE_GTK.
7695 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
7696 xg_show_scroll_bar for USE_GTK.
7697 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
7698 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
7699 (event_handler_gdk): New function for USE_GTK.
7700 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
7701 (handle_one_xevent): Make sure widget is mapped before
7702 calling x_real_positions for USE_GTK.
7703 (XTread_socket): Add GTK event loop for USE_GTK.
7704 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
7705 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
7706 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
7707 (x_iconify_frame): Add code for USE_GTK.
7708 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
7709 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
7710 is in gtkutil.c.
7711 (x_term_init): Add initialization for GTK.
7712 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
7713
7714 * xmenu.c: Include gtkutil.h for USE_GTK.
7715 (Fx_popup_menu): Use current position if x and y is NIL.
6bdb309a
SM
7716 (single_menu_item, single_menu_item, Fx_popup_dialog):
7717 Check for USE_GTK.
048addec
JD
7718 (popup_widget_loop): New function for USE_GTK.
7719 (x_activate_menubar): Add code for USE_GTK.
7720 (popup_activate_callback, popup_deactivate_callback)
6bdb309a
SM
7721 (menu_highlight_callback, menubar_selection_callback):
7722 Add USE_GTK versions.
048addec
JD
7723 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
7724 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
7725 (free_frame_menubar): Only compile if not USE_GTK. GTK version
7726 is in gtkutil.c.
7727 (popup_selection_callback): New version for USE_GTK.
7728 (create_and_show_popup_menu): New fuction, one USE_GTK version and
6bdb309a 7729 one USE_X_TOOLKIT version.
048addec
JD
7730 (xmenu_show): Call create_and_show_popup_menu.
7731 (dialog_selection_callback): New version for USE_GTK.
7732 (create_and_show_dialog): New fuction, one USE_GTK version and
6bdb309a 7733 one USE_X_TOOLKIT version.
048addec
JD
7734 (xdialog_show): Call create_and_show_dialog.
7735
7736 * xfns.c: Include gtkutil for USE_GTK.
7737 (x_window_to_frame, x_any_window_to_frame)
7738 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
7739 (x_top_window_to_frame): Add code for USE_GTK.
7740 (x_set_background_color): Call xg_set_background_color for GTK.
7741 (x_set_menu_bar_lines): Check for USE_GTK.
7742 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
7743 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
7744 (x_window): Call xg_create_frame_widgets for USE_GTK.
7745 (Fx_create_frame): Check for USE_GTK
7746 (Fx_file_dialog): New implementation for USE_GTK.
7747
7748 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
7749 (update_menu_bar): Add check for USE_GTK.
7750 (update_tool_bar): Add check for USE_GTK and external tool bar.
7751 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
7752 (redisplay_internal): Add check for USE_GTK and popup_activated.
7753 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
7754 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
7755 (display_menu_bar): Add check for USE_GTK
7756
7757 * lisp.h: Declare Vx_resource_name extern.
7758
a64387ee 7759 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
048addec
JD
7760 for USE_GTK.
7761 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
7762
7763 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
7764 (FRAME_EXTERNAL_TOOL_BAR): New macro.
7765 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
7766
7767 * fileio.c (Fread_file_name): Add check for USE_GTK.
7768
6bdb309a
SM
7769 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
7770 Add check for USE_GTK.
048addec
JD
7771
7772 * config.in: Added HAVE_GTK
7773
7774 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
7775
77762003-01-18 Stefan Monnier <monnier@cs.yale.edu>
7777
7778 * charset.h (Funibyte_char_to_multibyte): Export.
7779
77802003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7781
7782 * xmenu.c (mouse_position_for_popup): New function.
7783 (Fx_popup_menu): Call mouse_position_for_popup for X and
7784 mouse_position_hook for others.
7785
77862003-01-17 Kim F. Storm <storm@cua.dk>
7787
7788 * editfns.c (Finsert): Mention `string-make-multibyte' and
7789 `string-as-multibyte' in doc string.
7790
77912003-01-17 Kenichi Handa <handa@m17n.org>
7792
7793 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
3c02a6f5 7794
048addec
JD
7795 * editfns.c (Fformat): Convert an unibyte char argument that is
7796 formatted by "%c" to multibyte if the total result must be a
7797 multibyte string.
cd7df9c0 7798
048addec 77992003-01-16 Kim F. Storm <storm@cua.dk>
cd7df9c0 7800
048addec
JD
7801 * process.c (set-process-filter): Document unibyte/multibyte-ness
7802 of string argument.
56210ecd 7803
048addec 78042003-01-16 Kenichi Handa <handa@m17n.org>
56210ecd 7805
048addec 7806 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
56210ecd 7807
048addec
JD
7808 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
7809 (re_search_2): Likewise.
6df8b9fe 7810
048addec 78112003-01-15 Kenichi Handa <handa@m17n.org>
6df8b9fe 7812
048addec
JD
7813 * xdisp.c (message_dolog): Fix bug of the case that *Message*
7814 buffer is unibyte.
292ddc31 7815
048addec 78162003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
292ddc31 7817
048addec 7818 * fns.c (Fsubstring): Clarify doc string.
292ddc31 7819
048addec
JD
7820 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
7821 (Fprevious_char_property_change)
7822 (Fnext_single_char_property_change)
7823 (Fprevious_single_char_property_change, Fnext_property_change)
7824 (Fnext_single_property_change, Fprevious_property_change)
7825 (Fprevious_single_property_change, Fadd_text_properties)
7826 (Fput_text_property, Fset_text_properties)
7827 (Fremove_text_properties, Fremove_list_of_text_properties)
7828 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
63e4e4c6 7829
048addec 78302003-01-14 Kim F. Storm <storm@cua.dk>
63e4e4c6 7831
048addec
JD
7832 * process.h (struct Lisp_Process): New member plist replaces old
7833 member private_vars. All uses changed.
63e4e4c6 7834
048addec 7835 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
6bdb309a 7836 (QCplist): Rename from QCvars. Change all uses.
048addec 7837 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
6bdb309a 7838 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
048addec 7839 (syms_of_process): Intern, staticpro, defsubr these.
6bdb309a 7840 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
7ed16567 7841
048addec 78422003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
7ed16567 7843
6bdb309a 7844 * m/delta.h: Remove (obsolete).
e833850f 7845
048addec 78462003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
e833850f 7847
048addec
JD
7848 * fileio.c (Fdelete_directory, Fdelete_file): Document the
7849 behaviour in front of symlinks.
7850 (Fdelete_file): Raise an error on directories.
817cb127 7851
048addec 78522003-01-13 Dave Love <fx@gnu.org>
817cb127 7853
048addec 7854 * fns.c (Freverse): Use QUIT.
3e8cf2ea 7855
048addec 78562003-01-13 Richard M. Stallman <rms@gnu.org>
3e8cf2ea 7857
048addec
JD
7858 * minibuf.c (minibuffer_completion_contents):
7859 Error if point is inside prompt.
3e8cf2ea 7860
048addec
JD
7861 * keyboard.c (command_loop_1): Don't redisplay directly
7862 if there's a post-command-hook.
3e8cf2ea 7863
048addec
JD
7864 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
7865 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
2c10f029 7866
048addec 78672003-01-12 Kim F. Storm <storm@cua.dk>
94e8ffca 7868
048addec 7869 * process.h (struct Lisp_Process): New member private_vars.
94e8ffca 7870
048addec
JD
7871 * process.c (QCvars): New variable.
7872 (syms_of_process): Intern and staticpro it.
7873 (Fset_process_contact): Removed function.
7874 (Fprocess_variable, Fset_process_variable): New functions.
7875 (syms_of_process): Defsubr them.
7876 (Fstart_process): Initialize private_vars plist to nil.
7877 (Fmake_network_process): New arg :vars to setup the private
7878 variables for new network process.
7879 (server_accept_connection): Copy server's private variables to
7880 client process.
2c10f029 7881
048addec
JD
7882 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
7883 crashes). Code rewritten and simplified. Now directly aligns the
7884 pointer and recalculates pure_bytes_used, rather than aligning the
7885 size and adjusting the pointer.
b8a76c6c 7886
048addec 78872003-01-11 Kim F. Storm <storm@cua.dk>
b8a76c6c 7888
048addec
JD
7889 * process.c (Fset_process_contact): New function.
7890 (syms_of_process): defsubr it.
7891 (make-network-process): Update doc.
3a8d0899 7892
048addec 78932003-01-10 Andreas Schwab <schwab@suse.de>
3a8d0899 7894
048addec
JD
7895 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
7896 Reported by Berthold Gunreben <b.gunreben@web.de>.
4abc7470 7897
048addec 78982003-01-10 Dave Love <fx@gnu.org>
4abc7470 7899
048addec 7900 * composite.c (syms_of_composite): Make composition_hash_table weak.
b809d662 7901
048addec 79022003-01-09 Kim F. Storm <storm@cua.dk>
b809d662 7903
048addec
JD
7904 * process.c (Fmake_network_process): Convert new port number
7905 to host byte order for `:service t' case. From Mario Lang.
bf338245 7906
048addec 79072003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
bf338245 7908
048addec
JD
7909 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
7910 instead of XtAppProcessEvent.
bf338245 7911
048addec
JD
7912 * xterm.c (handle_one_xevent): New function.
7913 (x_dispatch_event): New function.
7914 (XTread_socket): Call handle_one_xevent.
bf338245 7915
048addec 7916 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
e833850f 7917
048addec
JD
7918 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
7919 call XQueryPointer to get coordinates.
7920 (popup_get_selection): Do not set popup_activated_flag to zero,
7921 let popup_deactivate_callback do that. Needed for Motif.
7922 Call x_dispatch_event instead of XtDispatchEvent.
7923 (xmenu_show): Calculate root coordinate from frame top/left position.
c4af2bce 7924
048addec 79252003-01-08 Kim F. Storm <storm@cua.dk>
c4af2bce 7926
6bdb309a 7927 * process.c (server_accept_connection): Fix recording of new
048addec
JD
7928 connection's local address in :local property of contact info.
7929 (Fmake_network_process): Record local network address for new
7930 client processes in :local property of contact info.
6bdb309a 7931 (format-network-address): Add arg OMIT-PORT. Change callers.
00e3ab56 7932
048addec 79332003-01-07 Dave Love <fx@gnu.org>
00e3ab56 7934
048addec 7935 * Makefile.in (fns.o): Depend on coding.h.
f387e1fd 7936
048addec 79372003-01-07 Markus Rost <rost@math.ohio-state.edu>
f387e1fd 7938
048addec 7939 * minibuf.c (Fread_variable): Doc fix.
f387e1fd 7940
048addec
JD
7941 * eval.c (Fuser_variable_p): Doc change. For custom variables,
7942 use the same test as for custom-variable-p.
8c6d74c6 7943
048addec 79442003-01-05 Richard M. Stallman <rms@gnu.org>
e833850f 7945
048addec
JD
7946 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
7947 Count LAST_LINE_MISFIT in scroll margin for end of window.
7948 Move label too_near_end before setting SCROLL_MARGIN_POS.
7949 Set LAST_LINE_MISFIT before jumping there.
8c6d74c6 7950
048addec
JD
7951 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
7952 scroll_conservatively case. If scrolling that much doesn't change
7953 STARTP, move it down one line.
e833850f 7954
048addec
JD
7955 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
7956 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
8c6d74c6 7957
048addec
JD
7958 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
7959 selected frame.
8c6d74c6 7960
048addec
JD
7961 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
7962 (syms_of_keymap): staticpro them.
7963 (Fapropos_internal): Initialize them and clear them out.
7964 Don't GCPRO them.
8c6d74c6 7965
048addec
JD
7966 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
7967 Doc fixes.
8c6d74c6 7968
048addec
JD
7969 * lisp.h: New misc type Lisp_Save_Value.
7970 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
7971 (XSAVE_VALUE): New macro.
7972 (struct Lisp_Save_Value): New data type.
7973 (union Lisp_Misc): Add u_save_value alternative.
7974 (make_save_value): Declared.
8c6d74c6 7975
048addec 7976 * alloc.c (make_save_value): New function.
8c6d74c6 7977
048addec
JD
7978 * xterm.c (x_catch_errors): Save dpy using make_save_value.
7979 (x_catch_errors_unwind): Call XSync.
8c6d74c6 7980
048addec 79812003-01-01 Richard M. Stallman <rms@gnu.org>
8c6d74c6 7982
048addec 7983 * window.c (window_scroll_pixel_based): Partially undo last change.
8c6d74c6 7984
048addec
JD
7985 * keyboard.c (command_loop_1): Call adjust_point_for_property
7986 in direct action cases for Qforward_char and Qbackward_char.
7987 Set already_adjusted so it won't be done twice.
8c6d74c6 7988
048addec 79892002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk> (tiny change)
8c6d74c6 7990
048addec
JD
7991 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
7992 type definition of size_t.
8c609cff 7993
048addec 79942003-01-02 Steven Tamm <steventamm@mac.com>
8c609cff 7995
048addec
JD
7996 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
7997 distinguish Carbon GUI builds from X11 builds on darwin.
b37113a1 7998
048addec 79992002-12-30 Steven Tamm <steventamm@mac.com>
b37113a1 8000
048addec
JD
8001 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
8002 to default to t.
fa634a5e 8003
048addec 80042002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
fa634a5e 8005
048addec 8006 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
ce0669d4 8007
048addec 80082002-12-28 Steven Tamm <steventamm@mac.com>
ce0669d4 8009
048addec
JD
8010 * Makefile.in (macosx-bundle): Fixes to Mac OS X/Carbon port to
8011 allow building in a different directory than source. Uses some
8012 GNU Make extensions, but there is no other make on Mac OS X.
2308af15 8013
048addec 80142002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
2308af15 8015
048addec
JD
8016 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
8017 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
8018 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
8019 (Fstring_to_number): Mention the returned value in the doc strings.
2155ecf3 8020
048addec 80212002-12-23 Richard M. Stallman <rms@gnu.org>
2155ecf3 8022
048addec
JD
8023 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
8024 <scroll-down-aggressively>: Doc fix.
2155ecf3 8025
048addec
JD
8026 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
8027 string as pane name, if there is one.
8028 (set_frame_menubar): Save menu_items_n_panes from each call to
8029 parse_single_submenu and use it when calling digest_single_submenu.
2155ecf3 8030
048addec
JD
8031 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
8032 Don't try to make last line fully visible if it is past end of window.
61f1d295 8033
048addec 80342002-12-22 Steven Tamm <steventamm@mac.com>
61f1d295 8035
048addec
JD
8036 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
8037 (mac_menu_show): Add support for hierarchical popup menus.
8038 (add_menu_item): Remove indentation support.
8039 (fill_submenu, fill_menu): Create hierarchical menus
8040 instead of using indentation.
0b17a217 8041
048addec 80422002-12-22 Richard M. Stallman <rms@gnu.org>
0b17a217 8043
048addec
JD
8044 * xdisp.c (try_cursor_movement): Don't call try_window here.
8045 (redisplay_window): Never redisplay minibuffer when inactive.
0b17a217 8046
048addec 8047 * window.c (select_window_1): Undo 9/21 change.
402e4f8b 8048
048addec 80492002-12-22 Steven Tamm <steventamm@mac.com>
402e4f8b 8050
048addec
JD
8051 * macterm.c (XTread_socket): Call KeyTranslate for control and
8052 meta to deal correctly shifted non-alpha characters, like C-S-5
8053 being treated like C-%. Does not look for shift key to deal
8054 with masking off control-key with mac-reverse-ctrl-meta.
f02cac82 8055
048addec 80562002-12-21 Richard M. Stallman <rms@gnu.org>
f02cac82 8057
048addec
JD
8058 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
8059 If it is non-nil, run timers. Use an unwind-protect to requeue
8060 the events that were read ahead.
8061 (popup_get_selection_unwind): New subroutine.
8062 (popup_get_selection_queue): File-scope variable now holds that queue.
8063 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
8064 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
8065 Use an unwind-protect to pop down the dialog box.
8066 (xdialog_show_unwind): New subroutine implements that.
f02cac82 8067
048addec
JD
8068 * xdisp.c (row_containing_pos): Change exit test using last_y.
8069 (try_window_id): Abort if row_containing_pos returns null.
f02cac82 8070
048addec
JD
8071 * lread.c (load_error_handler): New function.
8072 (Fload): Handle errors in Fsubstitute_in_file_name.
8073 Don't expect Fsignal to return.
f02cac82 8074
048addec
JD
8075 * eval.c: Errors and throws work right with interrupt blocking.
8076 (struct catchtag): New elt interrupt_input_blocked.
8077 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
8078 (internal_catch, Fcondition_case, internal_condition_case)
8079 (internal_condition_case_1, internal_condition_case_2): Save it.
8080 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
f02cac82 8081
048addec 8082 * editfns.c (Fformat): Add parens.
f02cac82 8083
048addec
JD
8084 * dired.c (file_name_completion): Fix that change.
8085 Delete special quit-handling code; just use QUIT.
f02cac82 8086
048addec 80872002-12-21 Tak Ota <Takaaki.Ota@am.sony.com> (tiny change)
f02cac82 8088
048addec
JD
8089 * dired.c (file_name_completion): Close directory on error
8090 just as in directory_files_internal.
1a590729 8091
048addec 80922002-12-19 David Kastrup <David.Kastrup@t-online.de>
1a590729 8093
048addec
JD
8094 * window.c (Fset_window_configuration): Set old_point to correct
8095 value when new_current_buffer == current_buffer.
f02cac82 8096
048addec 80972002-12-17 Ben Key <bkey1@tampabay.rr.com>
2308af15 8098
048addec
JD
8099 Revisited my earlier fix for the following entry in etc/PROBLEMS:
8100 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
8101 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
9785d95b 8102
048addec
JD
8103 These changes were in part based upon suggestions made by Peter
8104 'Luna' Runestig [peter@runestig.com].
9785d95b 8105
048addec
JD
8106 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token,
8107 g_b_init_get_token_information, g_b_init_lookup_account_sid,
6bdb309a 8108 g_b_init_get_sid_identifier_authority ): Add several static
048addec 8109 global variables.
9785d95b 8110
048addec
JD
8111 * w32.c (globals_of_w32): New function. Used to initialize those
8112 global variables that must always be initialized on startup even
8113 when the global variable initialized is non zero. Its primary
8114 purpose at this time is to set the global variables
8115 g_b_init_is_windows_9x, g_b_init_open_process_token,
8116 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
8117 g_b_init_get_sid_identifier_authority to 0 on startup.
8118 Called from main.
9785d95b 8119
048addec
JD
8120 * w32.c (is_windows_9x): Perform initialization only if
8121 g_b_init_is_windows_9x is equal to 0. On initialization set
8122 g_b_init_is_windows_9x equal to 1.
2308af15 8123
048addec
JD
8124 * w32.c (open_process_token): Perform initialization only if
8125 g_b_init_open_process_token is equal to 0. On initialization set
8126 g_b_init_open_process_token equal to 1.
2308af15 8127
048addec
JD
8128 * w32.c (get_token_information): Perform initialization only if
8129 g_b_init_get_token_information is equal to 0. On initialization
8130 set g_b_init_get_token_information equal to 1.
9785d95b 8131
048addec
JD
8132 * w32.c (lookup_account_sid): Perform initialization only if
8133 g_b_init_lookup_account_sid is equal to 0. On initialization
8134 set g_b_init_lookup_account_sid equal to 1.
9785d95b 8135
048addec
JD
8136 * w32.c (get_sid_identifier_authority): Perform initialization
8137 only if g_b_init_get_sid_identifier_authority is equal to 0.
8138 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
9785d95b 8139
f63fd14e 8140 * w32fns.c (globals_of_w32fns): New function. Used to initialize
048addec
JD
8141 those global variables that must always be initialized on startup
8142 even when the global variable initialized is non zero.
8143 Its primary purpose at this time is to initialize the global variable
8144 track_mouse_event_fn.
9785d95b 8145
a64387ee 8146 * w32fns.c (w32_wnd_proc): Remove initialization of
048addec 8147 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
9785d95b 8148
048addec 8149 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
9785d95b 8150
f63fd14e 8151 * w32menu.c (globals_of_w32menu): New function. Used to
048addec
JD
8152 initialize those global variables that must always be initialized
8153 on startup even when the global variable initialized is non zero.
8154 Its primary purpose at this time is to initialize the global
8155 variables get_menu_item_info and set_menu_item_info.
9785d95b 8156
048addec
JD
8157 * w32menu.c (initialize_frame_menubar): Remove initialization of
8158 get_menu_item_info and set_menu_item_info.
9785d95b 8159
048addec 8160 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
9785d95b 8161
048addec
JD
8162 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
8163 Declare them.
9785d95b 8164
048addec
JD
8165 * emacs.c (main): Call globals_of_w32 prior to calling
8166 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
8167 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
8168 is defined.
9785d95b 8169
048addec
JD
8170 * w32term.c (x_update_window_begin): Fix Windows API error
8171 detected by BoundsChecker. Test to determine if
8172 w32_system_caret_hwnd is NULL prior to attempting to use
8173 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
2308af15 8174
048addec
JD
8175 * w32term.c (x_update_window_end): Fix Windows API error
8176 detected by BoundsChecker. Test to determine if
8177 w32_system_caret_hwnd is NULL prior to attempting to use
8178 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
b6da19ef 8179
048addec 81802002-12-17 Kenichi Handa <handa@m17n.org>
b6da19ef 8181
048addec
JD
8182 * coding.c (coding_system_require_warning): New variable.
8183 (syms_of_coding): DEFVAR it.
b6da19ef 8184
048addec 8185 * coding.h (coding_system_require_warning): Extern it.
b6da19ef 8186
048addec
JD
8187 * fileio.c (choose_write_coding_system): Even if
8188 Vcoding_system_for_write is non-nil, if
8189 coding_system_require_warning is nonzero, call
8190 Vselect_safe_coding_system_function.
bfcf6dbe 8191
048addec 81922002-12-17 Markus Rost <rost@math.ohio-state.edu>
bfcf6dbe 8193
048addec
JD
8194 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
8195 (lisp): Add font-core.
2c568af5 8196
048addec 81972002-12-13 Stefan Monnier <monnier@cs.yale.edu>
2c568af5 8198
048addec
JD
8199 * textprop.c (text_read_only): New arg `propval'.
8200 (get_char_property_and_overlay): Remove unused var `next_overlay'.
8201 (verify_interval_modification): Use text_read_only's new arg.
b8c6225c 8202
048addec 82032002-12-13 Kenichi Handa <handa@m17n.org>
b8c6225c 8204
048addec 8205 * coding.c (Funencodable_char_position): Set pend correctly.
706ddb8f 8206
048addec 82072002-12-12 Jason Rumney <jasonr@gnu.org>
706ddb8f 8208
048addec
JD
8209 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
8210 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
8211 Be more careful about when help_events are generated.
96720f09 8212
048addec 82132002-12-12 Steven Tamm <steventamm@mac.com>
96720f09 8214
048addec
JD
8215 * macterm.c (mac_check_for_quit_char): Correctly set the
8216 modifiers of the event to 0.
8217 * mac.c (sys_select): Duplicate rfds before calling select to
8218 ensure that rfds survive the while loop.
e5ae1c49 8219
048addec 82202002-12-11 Kim F. Storm <storm@cua.dk>
e5ae1c49 8221
048addec
JD
8222 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
8223 row_containing_pos returned NULL.
2eb46b2d 8224
048addec 82252002-12-10 Steven Tamm <steventamm@mac.com>
2eb46b2d 8226
6bdb309a 8227 * mac.c (sys_read): Fix sys_read to not call select if IO is
048addec 8228 non-blocking.
6bdb309a 8229 (sys_select): Fix sys_select to not use a timeout larger than
048addec 8230 the one given.
b11f1d8a 8231
048addec 82322002-12-10 Juanma Barranquero <lektu@terra.es>
b11f1d8a 8233
048addec 8234 * editfns.c (Fformat): Use alloca, not _alloca.
d8528226 8235
048addec 82362002-12-09 Richard M. Stallman <rms@gnu.org>
d8528226 8237
048addec
JD
8238 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
8239 as the last thing.
a4ac5b17 8240
048addec 82412002-12-09 Dave Love <fx@gnu.org>
a4ac5b17 8242
048addec 8243 * s/sol2-8.h: Removed. (Not necessary.)
ac42d7b9 8244
048addec 82452002-12-09 Matthew Swift <swift@alum.mit.edu>
ac42d7b9 8246
048addec
JD
8247 * editfns.c (Fformat): Handle precision in string conversion
8248 specifiers like libc functions do (ie, print at most that many
8249 characters).
85cce843 8250
048addec 82512002-12-08 Richard M. Stallman <rms@gnu.org>
85cce843 8252
048addec
JD
8253 * xdisp.c (row_containing_pos): Check more carefully
8254 whether charpos is really in the row before returning it.
0d4d26a7 8255
048addec 82562002-12-07 Steven Tamm <steventamm@mac.com>
0d4d26a7 8257
048addec 8258 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
b11f1d8a 8259
048addec
JD
8260 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
8261 each stack frame. This may change as it could be time consuming.
0d4d26a7 8262
048addec
JD
8263 * macterm.c (mac_check_for_quit_char, quit_char_comp)
8264 (init_quit_char_handler, mac_determine_quit_char_modifiers)
6bdb309a 8265 (mac_initialize): Add code to check for pressing of quit_char
048addec 8266 in the OS event queue.
b11f1d8a 8267
048addec
JD
8268 * mac.c (sys_select): Call mac_check_for_quit_char every second
8269 while blocking on select.
0d4d26a7 8270
048addec
JD
8271 * mac.c (sys_read): Use sys_select to test for input first
8272 before calling read, to allow C-g to break.
9252f7bc 8273
048addec 82742002-12-07 Richard M. Stallman <rms@gnu.org>
9252f7bc 8275
048addec 8276 * minibuf.c (Fcompleting_read): Doc fix.
9252f7bc 8277
048addec 8278 * lread.c (syms_of_lread) <load-history>: Doc fix.
9252f7bc 8279
048addec 8280 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
9252f7bc 8281
048addec
JD
8282 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
8283 autoload.
9252f7bc 8284
048addec 8285 * data.c (Fdefalias): Record in load-history redefining an autoload.
9252f7bc 8286
048addec 8287 * alloca.c: Undo ifdef change accidentally made on 12-04.
bfa261c0 8288
048addec 82892002-12-06 Francesco Potorti` <pot@gnu.org>
bfa261c0 8290
048addec 8291 * xfns.c (png_load): Avoid double gamma correction for PNG images.
c5992177 8292
048addec 82932002-12-04 Richard M. Stallman <rms@gnu.org>
c5992177 8294
048addec 8295 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 8296
048addec 8297 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 8298
048addec 8299 * alloca.c: Don't use #error.
02d588e2 8300
048addec 83012002-12-03 Dave Love <fx@gnu.org>
02d588e2 8302
048addec
JD
8303 * buffer.c (Qucs_set_table_for_input): New.
8304 (Fget_buffer_create): Use it.
8305 (Qset_buffer_major_mode_hook): Deleted.
8306 (Fset_buffer_major_mode): Revert previous change.
8307 (init_buffer_once): Intern ucs-set-table-for-input.
8308 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
8309 Add &Qucs_set_table_for_input.
451e2697 8310
048addec 83112002-12-03 Andreas Schwab <schwab@suse.de>
451e2697 8312
048addec
JD
8313 * callint.c (Fcall_interactively): Use next_event only if less
8314 than key_count.
72742a99 8315
048addec 83162002-12-02 Andrew Choi <akochoi@shaw.ca>
72742a99 8317
048addec
JD
8318 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
8319 names to 255 characters.
72742a99 8320
048addec
JD
8321 * macterm.c (XTread_socket): If all frames have been collapsed,
8322 expand the first one before handling drag-and-drop events.
72742a99 8323
048addec
JD
8324 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
8325 which is detected by autoconf.
40e6ff95 8326
048addec 83272002-12-01 Steven Tamm <steventamm@mac.com>
40e6ff95 8328
048addec
JD
8329 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
8330 offset in two hints table to allow prebinding to be redone and
8331 allow the executable to be stripped.
c02138c6 8332
048addec 83332002-11-29 Dave Love <fx@gnu.org>
c02138c6 8334
048addec
JD
8335 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
8336 already provided.
0e47bbf7 8337
048addec 83382002-11-29 Richard M. Stallman <rms@gnu.org>
0e47bbf7 8339
048addec
JD
8340 * xdisp.c (start_display): Check more intelligently for
8341 whether the line is continued.
8342 (move_it_vertically_backward): Clear it->continuation_lines_width.
44129dcb 8343
048addec 83442002-11-28 Dave Love <fx@gnu.org>
44129dcb 8345
048addec
JD
8346 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
8347 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
f707342d 8348
048addec 83492002-11-27 Steven Tamm <steventamm@mac.com>
f707342d 8350
048addec
JD
8351 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
8352 more descriptive error output from lread.c:Fload upon most require
8353 cycles during boostrapping.
1637fd2c 8354
048addec 83552002-11-27 Jason Rumney <jasonr@gnu.org>
1637fd2c 8356
048addec
JD
8357 * fileio.c (Finsert_file_contents): Give a more appropriate error
8358 for files bigger than 2Gb when off_t is 32 bit.
1637fd2c 8359
048addec
JD
8360 * dired.c (Ffile_attributes): Don't return negative file sizes for
8361 files bigger than 2Gb when off_t is 32 bit.
540c2788 8362
048addec 83632002-11-27 Dave Love <fx@gnu.org>
6b2fd6ea 8364
048addec 8365 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6b2fd6ea 8366
048addec
JD
8367 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
8368 Test GETPGRP_VOID instead.
8369 [BSD_TERMIOS]: Remove definitions (never used).
6b2fd6ea 8370
048addec
JD
8371 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
8372 Don't define.
8373 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
540c2788 8374
048addec 8375 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
8cc03716 8376
048addec 83772002-11-25 Jason Rumney <jasonr@gnu.org>
8cc03716 8378
048addec
JD
8379 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
8380 supported.
4042a81a 8381
048addec 83822002-11-25 Dave Love <fx@gnu.org>
4042a81a 8383
048addec 8384 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
4042a81a 8385
048addec 8386 * Makefile.in (TEMACS_LDFLAGS): Update last change.
be4ee72f 8387
048addec 83882002-11-25 Andreas Schwab <schwab@suse.de>
be4ee72f 8389
048addec 8390 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
82122254 8391
048addec 83922002-11-24 Steven Tamm <steventamm@mac.com>
82122254 8393
048addec
JD
8394 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
8395 determine the size of pointers alloced in unexed space instead
8396 of using possibly invalid emacs_zone pointers. This fixes the
8397 binary incompatibility problems caused by updates to libSystem.B.
c1ee53bc 8398
048addec 83992002-11-24 Richard M. Stallman <rms@gnu.org>
c1ee53bc 8400
048addec 8401 * search.c (Fstring_match): Doc fix.
c1ee53bc 8402
048addec
JD
8403 * callint.c (Fcall_interactively): If a command fails because
8404 `*' detects a read-only buffer, but RECORD_FLAG is set,
8405 record it anyway if the args don't actually do tty input.
5598c32e 8406
048addec 84072002-11-22 Dave Love <fx@gnu.org>
5598c32e 8408
048addec 8409 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
5598c32e 8410
048addec
JD
8411 * keyboard.c (interrupt_signal): Provide forward declaration.
8412 (kbd_buffer_store_event): Don't declare interrupt_signal.
5598c32e 8413
048addec 8414 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
97b14e22 8415
048addec 84162002-11-21 Richard M. Stallman <rms@gnu.org>
97b14e22 8417
048addec
JD
8418 * eval.c (interactive_p): Skip any number of bytecode
8419 and special form frames, in any order.
516eea8e 8420
048addec 84212002-11-20 Jason Rumney <jasonr@gnu.org>
516eea8e 8422
048addec
JD
8423 * w32fns.c (convert_mono_to_color_image): New function.
8424 (xbm_load, xbm_load_image): Use it when foreground or background
8425 is explicitly set.
04dbfa08 8426
048addec 84272002-11-19 Dave Love <fx@gnu.org>
04dbfa08 8428
048addec 8429 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
b4aebae3 8430
048addec 84312002-11-18 Jason Rumney <jasonr@gnu.org>
b4aebae3 8432
048addec
JD
8433 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
8434 (XPutPixel): Swap blue and red.
8435 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
8436 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
8437 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
8438 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
1998560a 8439
048addec 84402002-11-18 Dave Love <fx@gnu.org>
d824beee 8441
048addec 8442 * m/orion105.h (HAVE_ALLOCA): Don't define.
d824beee 8443
048addec 8444 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
d824beee 8445
048addec 8446 * m/intel386.h: Don't include alloca.h or define alloca.
d824beee 8447
048addec
JD
8448 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
8449 malloc, realloc, calloc.
d824beee 8450
048addec
JD
8451 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
8452 (bcmp): Don't define.
d824beee 8453
048addec 8454 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
d824beee 8455
048addec 8456 * m/amdahl.h: Don't define LIB_STANDARD.
d824beee 8457
048addec 8458 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
d824beee 8459
048addec 8460 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
d824beee 8461
048addec
JD
8462 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
8463 Don't include alloca.h.
d824beee 8464
048addec 8465 * s/aix3-2.h (HAVE_FSYNC): Don't define.
1998560a 8466
048addec 8467 * regex.c (_GNU_SOURCE): Don't define.
1998560a 8468
048addec 8469 * process.c (_GNU_SOURCE): Don't define.
1998560a 8470
048addec 8471 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
8704a6ab 8472
048addec 84732002-11-18 Markus Rost <rost@math.ohio-state.edu>
8704a6ab 8474
048addec 8475 * s/sol2-8.h: Include sol2-6.h.
6ae2cd57 8476
048addec 84772002-11-18 Miles Bader <miles@gnu.org>
6ae2cd57 8478
048addec
JD
8479 * dispextern.h (struct face): Add `overstrike' field.
8480 * xterm.c (x_draw_glyph_string_foreground)
8481 (x_draw_composite_glyph_string_foreground): Implement overstriking.
8482 * xfaces.c (load_face_font): Set `face->overstrike' based on
8483 result from choose_face_font.
8484 (best_matching_font, choose_face_font): Add `needs_overstrike'
8485 argument, and use it to return whether overstriking is desirable
8486 for this face/font combo.
8487 (set_font_frame_param: Pass new argument to choose_face_font.
6ae2cd57 8488
048addec 84892002-11-17 Ben Key <BKey1@tampabay.rr.com>
3582b6a3 8490
048addec
JD
8491 This change is my fix for the following entry in etc/PROBLEMS:
8492 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
8493 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
f60ae425 8494
048addec
JD
8495 * w32.c: Added wrapper functions around the win32 API functions
8496 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
8497 GetSidIdentifierAuthority. These wrapper functions serve two
8498 purposes:
8499 1. They ensure that the wrapped function can never be called
8500 when Emacs is running on an operating system on which they are
8501 not supported (Microsoft Windows 95 / 98 / ME).
8502 2. They call the wrapped functions via function pointers rather
8503 than calling them directly. This avoids taking advantage of the
8504 undocumented fact that although these functions are not supported
8505 in the 9x branch of Microsoft Windows, the functions do exist in
8506 the version of advapi32.dll that is found in the 9x branch of
8507 Microsoft Windows.
f60ae425 8508
6bdb309a 8509 * w32.c (init_user_info): Replace the calls to the win32 API
048addec
JD
8510 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
8511 and GetSidIdentifierAuthority with calls to the newly added
8512 wrapper functions.
f60ae425 8513
048addec
JD
8514 * w32.h: Added extern declarations for the following functions:
8515 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
8516 syms_of_w32menu, and void syms_of_fontset.
f60ae425 8517
6bdb309a 8518 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
048addec
JD
8519 function pointer track_mouse_event_fn in the handler for the
8520 WM_SETFOCUS message.
3582b6a3 8521
6bdb309a 8522 * w32menu.c (initialize_frame_menubar): Add code to
048addec
JD
8523 reinitialize the function pointers set_menu_item_info and
8524 get_menu_item_info.
f60ae425 8525
048addec 85262002-11-17 Ben Key <BKey1@tampabay.rr.com>
f60ae425 8527
048addec
JD
8528 * sound.c: Added a partial implementation of play-sound-internal
8529 for Microsoft Windows. Added various #ifdef / #else / #endif
8530 code blocks to separate the code that will compile under
8531 Microsoft Windows from the code that is specific to Gnu/Linux.
8532 Moved several blocks of code around to make this separation of code
8533 into Windows compatible and Gnu/Linux compatible code blocks easier.
f60ae425 8534
048addec 8535 * makefile.w32-in: Include sound.c and link with WinMM.lib.
a0f0878d 8536
048addec
JD
8537 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
8538 added support for play-sound-internal under Windows would be
8539 included in the build of Emacs.
517f42a0 8540
048addec 85412002-11-16 Jason Rumney <jasonr@gnu.org>
517f42a0 8542
048addec 8543 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
517f42a0 8544
048addec 8545 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
a0f0878d 8546
048addec 85472002-11-15 Stefan Monnier <monnier@cs.yale.edu>
a0f0878d 8548
048addec
JD
8549 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
8550 (adjust_point_for_property): Move out of display and invisible even if
8551 we were already inside before (in case a property was added while
8552 we weren't looking). Be more careful when handling invisible props.
8553 Skip invisible text as if it really wasn't there at all.
aab83f91 8554
048addec 85552002-11-15 Jason Rumney <jasonr@gnu.org>
aab83f91 8556
048addec
JD
8557 * w32term.c (x_draw_image_foreground)
8558 (w32_draw_image_foreground_1): Use standard copy and invert
8559 operations to draw images.
aab83f91 8560
048addec
JD
8561 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
8562 depth of 1.
8563 (xbm_read_bitmap_data): Invert bits as xbm is read in.
8564 (XPutPixel): Don't invert bits here.
a4478a76 8565
048addec 85662002-11-15 Jason Rumney <jasonr@gnu.org>
a4478a76 8567
048addec
JD
8568 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
8569 (w32_draw_image_foreground_1): Handle image masks.
8570 (x_draw_image_glyph_string): Don't BitBlt transparently.
a4478a76 8571
048addec
JD
8572 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
8573 (x_from_xcolors): Adjust RGB values for W32.
8574 (image_background, image_background_transparent)
8575 (postprocess_image, x_to_xcolors, x_disable_image)
8576 (x_build_heuristic_mask): Adapt for W32 and enable.
8577 (x_create_x_image_and_pixmap): Mark images with palettes as such.
8578 (xbm_load): Remove unused variable.
03670a65 8579
048addec 85802002-11-14 Richard M. Stallman <rms@gnu.org>
03670a65 8581
048addec 8582 * buffer.c (syms_of_buffer): Doc fix.
59daa29a 8583
048addec 85842002-11-14 Dave Love <fx@gnu.org>
59daa29a 8585
048addec 8586 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
59daa29a 8587
048addec
JD
8588 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
8589 * xmenu.c (unuse_menu_items, digest_single_submenu):
8590 * xfns.c (x_put_x_image):
8591 * xdisp.c (message2_nolog, set_message):
8592 * undo.c (record_point):
8593 * terminfo.c (tparam):
8594 * syntax.c (scan_sexps_forward):
8595 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
8596 * composite.c (update_compositions):
8597 * cm.c (calccost, cmgoto):
8598 * charset.c (c_string_width): Declare all args (per C99).
59daa29a 8599
048addec 8600 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
59daa29a 8601
048addec
JD
8602 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
8603 Don't declare.
59daa29a 8604
048addec 8605 * emacs.c (main) [!VMS]: Avoid third arg.
59daa29a 8606
048addec
JD
8607 * fns.c (Fcopy_sequence): Doc fix.
8608 (Fmap_char_table): Cast `call2'.
3947677c 8609
048addec
JD
86102002-11-14 Francesco Potorti` <pot@gnu.org>
8611
8612 * s/sol2-8.h: New file.
8613
86142002-11-14 Kim F. Storm <storm@cua.dk>
8615
8616 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
8617 dependency on `risky-local-variable' and the :propertize form.
8618
86192002-11-12 Stefan Monnier <monnier@cs.yale.edu>
8620
8621 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
8622
8623 * syntax.c (scan_sexps_forward): Undo last patch.
8624 Use a more obvious fix: check eob before updating the syntax table.
8625
86262002-11-09 Stefan Monnier <monnier@cs.yale.edu>
8627
8628 * syntax.c (scan_sexps_forward): Update syntax table before reading
8629 a char rather than after so we don't update the table past eob.
8630
86312002-11-09 Dave Love <fx@gnu.org>
8632
8633 * buffer.c (Fset_buffer_major_mode): Fix last change.
8634
8635 * regex.c (regexec): Fix pmatch declaration.
8636
8637 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
8638
8639 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
8640 to self-inserting characters.
8641 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
8642
8643 * coding.c (Vtranslation_table_for_input): New.
8644 (syms_of_coding): DEFVAR it.
8645
86462002-11-08 Juanma Barranquero <lektu@terra.es>
8647
8648 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
8649 window.
8650
86512002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8652
6bdb309a 8653 * process.c (Fformat_network_address): Remove unused locals p,
048addec
JD
8654 cp, and i.
8655
86562002-11-06 Dave Love <fx@gnu.org>
8657
8658 * buffer.c (Qset_buffer_major_mode_hook): New.
8659 (Fset_buffer_major_mode): Use it.
8660
86612002-11-06 Richard M. Stallman <rms@gnu.org>
8662
8663 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
8664 and stop_polling.
8665
8666 * process.c (wait_reading_process_input):
8667 Test POLLING_PROBLEM_IN_SELECT, not hpux.
8668 Avoid initialization for auto Lisp_Object var.
8669
8670 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
8671
8672 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
8673
86742002-11-05 Richard M. Stallman <rms@gnu.org>
8675
8676 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
8677
8678 * callint.c (Fcall_interactively): New local filter_specs.
8679 (Fcall_interactively): Check for progn as well as let.
8680 Add a gcpro.
8681 (Qprogn): New variable.
8682 (syms_of_callint): Staticpro and init Qprogn.
8683
86842002-11-04 John Paul Wallington <jpw@shootybangbang.com>
8685
8686 * lread.c (Feval_buffer): Doc fix.
8687
86882002-11-04 Dave Love <fx@gnu.org>
8689
8690 * keyboard.c (read_char): Always translate iff
8691 Vkeyboard_translate_table is a char table and c is valid.
8692
8693 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
8694 and fix C types.
8695
86962002-11-03 Stefan Monnier <monnier@cs.yale.edu>
8697
8698 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
8699
8700 * editfns.c (get_pos_property): Don't hardcode Qfield.
8701
8702 * keyboard.c (adjust_point_for_property): Handle `display' prop on
8703 overlays. Also handle `invisible' prop.
8704
87052002-11-02 Stefan Monnier <monnier@cs.yale.edu>
8706
8707 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
8708 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
8709
87102002-11-01 Andreas Schwab <schwab@suse.de>
8711
8712 * editfns.c (Fmessage): Revert last change to properly handle %%.
8713
87142002-11-01 Stefan Monnier <monnier@cs.yale.edu>
8715
8716 * xmenu.c (unuse_menu_items): New fun.
8717 (menu_items_inuse): New var.
8718 (syms_of_xmenu): Initialize it.
8719 (init_menu_items): Use it to detect re-entrance.
8720 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
8721 (Fx_popup_menu): Remove spurious XSETFRAME.
8722
8723 * editfns.c (find_field): Make an exception for nil fields.
8724
87252002-11-01 Dave Love <fx@gnu.org>
8726
8727 * m/gec63.h: Deleted.
8728
87292002-10-31 Dave Love <fx@gnu.org>
8730
8731 * xterm.c (XTread_socket): Fix last change.
8732 (xaw_scroll_callback): Cast call_data to long to avoid warning.
8733
87342002-10-31 Stefan Monnier <monnier@cs.yale.edu>
8735
8736 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
8737
87382002-10-30 Stefan Monnier <monnier@cs.yale.edu>
8739
8740 * editfns.c (overlays_around, get_pos_property): New funs.
8741 (find_field): Use them.
8742 Also be careful not to modify POS before its last use.
8743 (Fmessage): Don't Fformat if there's nothing to format.
8744
87452002-10-30 Dave Love <fx@gnu.org>
8746
8747 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
8748 [HAVE_PTY_H]; Include pty.h.
8749
8750 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
8751
8752 * xterm.c (Qeql): Declare.
8753 (Vx_keysym_table): New.
8754 (syms_of_xterm): Initialize it.
8755 (XTread_socket): Use it. Deal with ASCII keysyms.
8756 (XSetIMValues) [HAVE_X11R6]: Prototype.
8757
8758 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
8759 (lispy_kana_keys): Comment out.
8760 (make_lispy_event) [XK_kana_A]: Comment out.
8761 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
8762 Fix sprintf call.
8763
8764 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
8765 regexp.h change).
8766 (TERMINFO, LIBS_TERMCAP): Define.
8767
8768 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
8769 (bcmp): Define conditional on HAVE_BCMP.
8770 (NO_SIOCTL_H): Don't define.
8771 (TIOCSIGSEND): Don't make conditional on IRIX6.
8772
8773 * s/sol2-5.h: Don't include strings.h.
8774 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
8775
8776 * s/irix6-0.h (IRIX6): Don't define.
8777 (bcopy, bcmp, bzero): Don't undef.
8778
8779 * s/irix6-5.h: Don't include strings.h.
8780 (IRIX6): Don't define.
8781 (bcopy, bcmp, bzero): Don't undef.
8782
8783 * syntax.c (Fforward_comment): Doc fix.
8784
87852002-10-29 Kim F. Storm <storm@cua.dk>
8786
8787 * process.c (Fsignal_process): Allow PROCESS to be specified by
8788 name in addition to pid (as integer or string).
8789
87902002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
8791
8792 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
8793 environments.
8794
87952002-10-27 Kim F. Storm <storm@cua.dk>
8796
8797 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
8798
8799 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
8800
8801 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
8802
8803 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
8804
88052002-10-26 Richard M. Stallman <rms@gnu.org>
8806
8807 * editfns.c (Fformat): Detect invalid format letters for floats.
8808
88092002-10-25 Kenichi Handa <handa@m17n.org>
8810
8811 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
8812 (x_set_title): Likewise.
8813
88142002-10-25 Juanma Barranquero <lektu@terra.es>
8815
8816 * macgui.h:
8817 * w32gui.h: Remove definition of XColor.
8818
8819 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
8820
88212002-10-24 Kim F. Storm <storm@cua.dk>
8822
8823 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
8824 Callers changed (supply dummy arg).
8825
8826 * lisp.h (get_window_cursor_type): Update prototype.
8827
8828 * w32term.c (x_display_and_set_cursor): Get active_cursor from
8829 get_window_cursor_type to track system caret.
8830
88312002-10-24 Kim F. Storm <storm@cua.dk>
8832
8833 * process.c (Fformat_network_address): New function.
8834 (syms_of_process): Defsubr it.
8835 (list_processes_1): Use it to format :local/:remote address if
f9711de4 8836 service/host is not set; before Emacs would crash in that case.
048addec
JD
8837 (Fmake_network_process): Don't use Ffind_operation_coding_system
8838 to setup coding system if host or service is not set.
8839
88402002-10-23 Juanma Barranquero <lektu@terra.es>
8841
8842 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
8843
8844 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
8845 COLORREF.
8846
8847 * macgui.h:
8848 * w32gui.h: Add definition of XColor.
8849
8850 * macfns.c:
8851 * w32fns.c:
8852 * xfaces.c: Remove definition of XColor.
8853
88542002-10-22 Stefan Monnier <monnier@cs.yale.edu>
8855
8856 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
8857
8858 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
8859 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
8860 window if it is dedicated.
8861 (Fshrink_window): Add preserve_before as was done for enlarge_window.
8862 (Vspecial_display_function): Update docstring.
8863
8864 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
8865 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
8866 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
8867
88682002-10-21 Stefan Monnier <monnier@cs.yale.edu>
8869
8870 * casefiddle.c (casify_region): Don't treat a prefix char as part
8871 of a word when at the beginning.
8872
88732002-10-17 Juanma Barranquero <lektu@terra.es>
8874
8875 * lread.c (syms_of_lread): Fix typos.
8876
88772002-10-17 Dave Love <fx@gnu.org>
8878
8879 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
8880
88812002-10-16 Richard M. Stallman <rms@gnu.org>
8882
8883 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
8884
88852002-10-14 Juanma Barranquero <lektu@terra.es>
8886
8887 * w16select.c (syms_of_win16select): Fix docstring for
8888 `selection-coding-system'.
8889
8890 * w32select.c (syms_of_w32select): Likewise.
8891
88922002-10-14 Stefan Monnier <monnier@cs.yale.edu>
8893
8894 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
8895 a backslash-quoted char.
8896 (scan_lists, scan_sexps_forward): Pacify the compiler.
8897
88982002-10-13 Richard M. Stallman <rms@gnu.org>
8899
8900 * window.c (window_scroll): Set immediate_quit.
8901
8902 * print.c (print): When backquote form is the car of a list,
8903 output in old style. Use old_backquote_output to output all
8904 comma forms inside it in old style too.
8905
8906 * buffer.h (struct buffer): Move `undo_list' down below `name'.
8907
89082002-10-11 Markus Rost <rost@math.ohio-state.edu>
8909
8910 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
8911 batch mode).
8912
8913 * lread.c (Fload): Doc fix (load-suffixes).
8914
89152002-10-10 Steven Tamm <steventamm@mac.com>
8916
8917 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
8918 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
8919 Also switch the default to Qnil from Qt.
8920
89212002-10-08 Kenichi Handa <handa@m17n.org>
8922
8923 * coding.c (code_convert_region): When we need more GAP for
8924 conversion, pay attention to the case that coding->produced is not
8925 greater than coding->consumed.
8926
89272002-10-07 Richard M. Stallman <rms@gnu.org>
8928
8929 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
8930
89312002-10-06 Andrew Choi <akochoi@shaw.ca>
8932
8933 * macmenu.c (mac_menu_show): Add j to count menu items; match
8934 menu_item_selection to it to find selected item.
8935
89362002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8937
8938 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
8939 cases. The correct fix is to pass ReparentNotify to Xt.
8940 The shell widget interprets ConfigureNotify differently depending
8941 on if it has been reparented or not.
8942
89432002-10-05 Markus Rost <rost@math.ohio-state.edu>
8944
8945 * editfns.c (Fformat_time_string): Doc fix.
8946
89472002-10-05 John Paul Wallington <jpw@shootybangbang.com>
8948
8949 * fns.c (Flength): Doc fix.
8950
89512002-10-04 Stefan Monnier <monnier@cs.yale.edu>
8952
8953 * keyboard.c (keyremap): New struct.
8954 (read_key_sequence): Use it: globally replace keytran_foo with
8955 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
8956 keytran_next and fkey_next to just `next'.
8957
89582002-10-04 Steven Tamm <steventamm@mac.com>
8959
8960 * macterm.c (keycode_to_xkeysym_table): Change return to be
8961 treated like an X keysym.
8962
89632002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8964
8965 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
8966 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
8967 This is to also handle x/y changes that occur because of a resize.
8968
89692002-10-02 John Paul Wallington <jpw@shootybangbang.com>
8970
8971 * frame.c (Vdelete_frame_functions): New variable.
8972 (syms_of_frame): Initialize and defvar it.
8973 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
8974 it when frame's `tooltip' parameter is non-nil.
8975
8976 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
8977
8978 * w32fns.c (x_create_tip_frame): Likewise.
8979
8980 * macfns.c (x_create_tip_frame): Likewise.
8981
89822002-09-30 Kenichi Handa <handa@m17n.org>
8983
8984 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
8985 -1 before calling ccl_driver.
8986
8987 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
8988 Only when it is non-nil, handle composition sequence.
8989 (setup_coding_system) <0>: Don't force composition handling.
8990
8991 * Makefile.in (lisp, shortlisp): Add utf-16.elc
8992
89932002-09-29 Richard M. Stallman <rms@gnu.org>
8994
8995 * search.c (Freplace_match): Adjust match data for the substitution
8996 just made in the buffer.
8997
8998 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
8999 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
9000
90012002-09-27 Richard M. Stallman <rms@gnu.org>
9002
9003 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
9004 (read_char): Use them. Do all exits thru the end of the function.
9005
90062002-09-27 Kenichi Handa <handa@etl.go.jp>
9007
9008 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
9009 is nil.
9010
90112002-09-26 Richard M. Stallman <rms@gnu.org>
9012
9013 * regex.h (__restrict_arr): Don't define if already defined.
9014
9015 * coding.c (run_pre_post_conversion_on_str):
9016 Save and restore Vdeactivate_mark.
9017
90182002-09-26 John Paul Wallington <jpw@shootybangbang.com>
9019
9020 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
9021
90222002-09-26 Kenichi Handa <handa@etl.go.jp>
9023
9024 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
9025 nonzero, try face's family at first. Otherwise try FAMILY at first.
9026 (choose_face_font): If C is a single byte char or latin-1, call
9027 try_font_list with PREFER_FACE_FAMILY 1.
9028
90292002-09-21 Richard M. Stallman <rms@gnu.org>
9030
9031 * window.c (select_window_1): Don't select frame.
9032 Set frame's selected window only when frame itself is selected.
9033 (Fselect_window): Doc fix.
9034
90352002-09-18 Kim F. Storm <storm@cua.dk>
9036
9037 * process.c (make-network-process): Doc fix (there is no
9038 network-server-log-function hook).
9039
90402002-09-18 Richard M. Stallman <rms@gnu.org>
9041
9042 * print.c (print): Clear out the unused parts of Vprint_number_table.
9043 (syms_of_print): Doc fix for `print-number-table'.
9044
9045 * unexelf.c (unexec): Undo previous change.
9046
90472002-09-17 Andreas Schwab <schwab@suse.de>
9048
9049 * m/alpha.h [LINUX]: Don't define DATA_START.
9050
90512002-09-16 Dave Love <fx@gnu.org>
9052
9053 * unexelf.c (unexec): Deal with .got, reinstating change from
9054 25-08-1999.
9055
90562002-09-13 Richard M. Stallman <rms@gnu.org>
9057
9058 * s/sol2-6.h (UNEXEC): Comment out definition.
9059
9060 * unexsol.c (unexec): Don't downcase first letter of error msg.
9061
9062 * xfaces.c (Fcolor_supported_p): Just one arg is required.
9063
90642002-09-12 Markus Rost <rost@math.ohio-state.edu>
9065
9066 * unexsol.c: Include buffer.h, charset.h, coding.h.
9067
90682002-09-11 Richard M. Stallman <rms@gnu.org>
9069
9070 * unexsol.c: Don't use report_file_error; do it by hand
9071 using dlerror.
9072
9073 * process.c (wait_reading_process_input, both versions):
9074 Before calling turn_on_atimers, call stop_polling.
9075
9076 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
9077
9078 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
9079 we go to too_near_end, call clear_glyph_matrix.
9080 (redisplay_window): After make_cursor_line_fully_visible,
9081 call clear_glyph_matrix and bypass `goto done'.
9082
9083 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
9084 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
9085
90862002-09-10 Richard M. Stallman <rms@gnu.org>
9087
9088 * fileio.c (Fdo_auto_save): Catch error making directory.
9089 Only call push_message if we need to.
9090 At the same time, make an unwind-protect to pop it.
9091 Rename local message_p to old_message_p.
9092 (do_auto_save_make_dir, do_auto_save_eh): New functions.
9093 (do_auto_save_unwind): Don't call pop_message.
9094
9095 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
9096
9097 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
9098
9099 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
9100
9101 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
9102
91032002-09-10 Stefan Monnier <monnier@cs.yale.edu>
9104
9105 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
9106 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
9107 (re_match_2_internal): Be more careful with infinite loops.
9108
91092002-09-10 Kim F. Storm <storm@cua.dk>
9110
9111 * macros.c (end_kbd_macro): New function.
9112 (Fend_kbd_macro): Use it.
9113
9114 * macros.h (end_kbd_macro): Declare extern.
9115
9116 * keyboard.c (Fdiscard_input): If defining keyboard macro,
9117 end and save it instead of discarding it.
9118
91192002-09-09 Markus Rost <rost@math.ohio-state.edu>
9120
9121 * s/sol2-6.h: Fix typo. Add comment.
9122
91232002-09-09 Richard M. Stallman <rms@gnu.org>
9124
9125 * regex.c (regnum_t): Use signed int, not unsigned int.
9126
9127 * s/sol2-6.h: New file.
9128
9129 * s/sol2-5.h (UNEXEC): Definition deleted.
9130
91312002-09-08 Kim F. Storm <storm@cua.dk>
9132
9133 * macros.c (executing_macro_index): Change type to EMACS_INT.
9134 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
9135
9136 * macros.h (executing_macro_index): Change type to EMACS_INT.
9137
91382002-09-06 Richard M. Stallman <rms@gnu.org>
9139
9140 * casetab.c (set_case_table): Make canon table point to eqv table.
9141
91422002-09-06 Juanma Barranquero <lektu@terra.es>
9143
9144 * coding.c (syms_of_coding): Fix spacing.
9145
9146 * composite.c (Fcompose_region_internal)
9147 (Fcompose_string_internal): Likewise.
9148
9149 * data.c (Flsh): Likewise.
9150
9151 * fontset.c (Fset_fontset_font): Likewise.
9152
9153 * macfns.c (Fx_server_max_request_size): Likewise.
9154
9155 * w16select.c (syms_of_win16select): Likewise.
9156
9157 * w32select.c (syms_of_w32select): Likewise.
9158
9159 * xselect.c (syms_of_xselect): Likewise.
9160
91612002-09-05 Richard M. Stallman <rms@gnu.org>
9162
9163 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
9164 call EXTEND_RANGE_TABLE and return a proper value.
9165 (set_image_of_range): Don't call set_image_of_range_1
9166 if no TRANSLATE or if range includes all of Latin-1.
9167 Only call it for the Latin-1 part of the range.
9168 For other cases, make two separate ranges,
9169 one for the original specified characters and one for
9170 their case-conversions.
9171
91722002-09-04 Richard M. Stallman <rms@gnu.org>
9173
9174 * s/sol2-5.h (UNEXEC): Use unexsol.o.
9175
9176 * window.c (displayed_window_lines): Correct for one-off bug
9177 in HEIGHT on non-window displays.
9178
9179 * regex.c (set_image_of_range_1): New function.
9180 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
9181 Return a value to indicate running out of memory.
9182 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
9183 (extend_range_table_work_area): New subroutine.
9184 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
9185 Different calling conventions, and used from set_image_of_range{,_1}.
9186 (IMMEDIATE_QUIT_CHECK): Definitions moved.
9187
91882002-09-04 Juanma Barranquero <lektu@terra.es>
9189
9190 * makefile.w32-in: All dependencies updated.
9191
91922002-09-01 Richard M. Stallman <rms@gnu.org>
9193
9194 * unexsol.c: New file.
9195
9196 * xfns.c (Qbox): Declare external, don't define.
9197
9198 * xdisp.c (redisplay_window) <force-start case>:
9199 If point is on semi-visible last line, reposition
9200 it at previous line.
9201
9202 * alloc.c (display_malloc_warning): Use display-warning.
9203 (malloc_warning_1): Function deleted.
9204
9205 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
9206
9207 * lread.c (read1): Handle #! by skipping the line.
9208
92092002-08-31 Richard M. Stallman <rms@gnu.org>
9210
9211 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
9212 Don't include LDFLAGS.
9213 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
9214
92152002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
9216
9217 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
9218 member of x_display_info unless we compile for some window system.
9219
92202002-08-31 Kim F. Storm <storm@cua.dk>
9221
9222 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
9223 (get_window_cursor_type): Don't use them.
9224 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
9225
92262002-08-30 Kenichi Handa <handa@etl.go.jp>
9227
9228 * xdisp.c (get_next_display_element): Fix previous change.
9229
92302002-08-30 Andrew Choi <akochoi@shaw.ca>
9231
9232 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
9233 (expose_window): Use it to fix the display of overlapping
9234 rows (merge code from xterm.c).
9235
9236 * macfns.c (Qbox): Add extern declaration.
9237
92382002-08-30 Juanma Barranquero <lektu@terra.es>
9239
9240 * w32fns.c (Qbox): Make extern.
9241 (syms_of_w32fns): Remove initialization of Qbox.
9242
92432002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
9244
9245 * xfns.c (Fx_open_connection): Fix error message.
9246
92472002-08-30 Kim F. Storm <storm@cua.dk>
9248
9249 The following changes consolidates the handling of the cursor
9250 type in xdisp.c, moving duplicate code and functionality from
9251 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
9252
9253 * frame.h (enum text_cursor_kinds): Consolidated here.
9254 Added DEFAULT_CURSOR value.
9255 (struct frame) <desired_cursor, cursor_width>
9256 <blink_off_cursor, blink_off_cursor_width>: New fields.
9257 Consolidated from output_x, output_w32 and output_mac structs.
9258 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
9259 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
9260
9261 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
9262 Variables consolidated here.
9263 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
9264 (Vcursor_in_non_selected_windows): Renamed from
9265 cursor_in_non_selected_windows and changed to Lisp_Object.
9266 (syms_of_xdisp): Define and staticpro new and moved variables.
9267 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
9268 consolidated here. Recognize Qhollow setting.
9269 (set_frame_cursor_types): New function to set frame cursor types
9270 based on the frame parameters.
9271 (get_window_cursor_type): New function to calculate new cursor
9272 type and width for the specified window. Based on duplicated
9273 code consolidated here.
9274 Enhancements: cursor-in-non-selected-windows may be a cursor type,
9275 check buffer-local alternate-cursor-type and blink-cursor-alist
9276 before using built-in blink off methods.
9277
9278 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
9279
9280 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
9281 (get_specified_cursor_type, get_window_cursor_type)
9282 (set_frame_cursor_types): Added prototypes.
9283
9284 * macfns.c (x_specified_cursor_type): Removed.
9285 (x_set_cursor_type): Use set_frame_cursor_types.
9286 (Qbar, Qbox): Removed.
9287 (syms_of_macfns): Don't intern or staticpro them.
9288
9289 * macterm.c (x_specified_cursor_type): Remove prototype.
9290 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
9291 (x_display_and_set_cursor): Use get_window_cursor_type.
9292 Remove unused local variables cursor_non_selected, active_cursor.
9293 Redraw cursor if hbar cursor width changes.
9294 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
9295
9296 * macterm.h (enum text_cursor_kinds): Removed.
9297 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
9298 <blink_off_cursor, blink_off_cursor_width>: Members removed.
9299 (FRAME_DESIRED_CURSOR): Macro removed.
9300
9301 * w32fns.c (Vblink_cursor_alist): Removed.
9302 (Qbar, Qhbar, Qbox, Qhollow): Removed.
9303 (syms_of_w32fns): Don't intern, staticpro, or define them.
9304 (x_specified_cursor_type): Removed.
9305 (x_set_cursor_type): Use set_frame_cursor_types.
9306
9307 * w32term.c (x_specified_cursor_type): Remove prototype.
9308 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
9309 (x_display_and_set_cursor): Use get_window_cursor_type.
9310 Remove unused local variables cursor_off_state.
9311 Redraw cursor if hbar cursor width changes.
9312 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
9313
9314 * w32term.h (enum text_cursor_kinds): Removed.
9315 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
9316 <blink_off_cursor, blink_off_cursor_width>: Members removed.
9317 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
9318 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
9319 (struct w32_display_info) <x_highlight_frame>: Renamed member from
9320 w32_highlight_frame.
9321
9322 * xfns.c (Vblink_cursor_alist): Removed.
9323 (Qbar, Qhbar, Qbox, Qhollow): Removed.
9324 (syms_of_xfns): Don't intern, staticpro, or define them.
9325 (x_specified_cursor_type): Removed.
9326 (x_set_cursor_type): Use set_frame_cursor_types.
9327
9328 * xterm.c (x_specified_cursor_type): Remove prototype.
9329 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
9330 (x_display_and_set_cursor): Use get_window_cursor_type.
9331 Remove unused local variables cursor_off_state.
9332 Redraw cursor if hbar cursor width changes.
9333
9334 * xterm.h (enum text_cursor_kinds): Removed.
9335 (struct output_x) <current_cursor, desired_cursor, cursor_width>
9336 <blink_off_cursor, blink_off_cursor_width>: Members removed.
9337 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
9338 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
9339 (x_specified_cursor_type): Remove prototype.
9340
93412002-08-28 Richard M. Stallman <rms@gnu.org>
9342
9343 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
9344 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
9345 (Vblink_cursor_alist): New variable.
9346 (syms_of_w32fns): Initialize and defvar it.
9347 (x_specified_cursor_type): Recognize Qbox for filled box.
9348 Exceptions are hollow boxes.
9349 (Qbox, Qhollow): New variables.
9350 (syms_of_w32fns): Initialize and staticpro them.
9351
9352 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
9353 New macros.
9354 (struct w32_output): New fields blink_off_cursor,
9355 blink_off_cursor_width.
9356 (FRAME_CURSOR_WIDTH): New macro.
9357
9358 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
9359 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
9360
9361 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
9362 for bar cursor.
9363
9364 * w32term.c (expose_overlaps): New function.
9365 (expose_window): Use it to fix the display of overlapping rows.
9366
93672002-08-28 Simon Josefsson <jas@extundo.com>
9368
9369 * xfns.c (Fx_open_connection): Improve help when X connection
9370 fails, xhost is insecure and xauth is better.
9371
93722002-08-28 Juanma Barranquero <lektu@terra.es>
9373
9374 * makefile.w32-in: Add missing dependencies on w32term.h and
9375 composite.h.
9376
9377 * emacs.c (USAGE1): Add missing newline.
9378
93792002-08-27 Andrew Choi <akochoi@shaw.ca>
9380
9381 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
9382
93832002-08-27 Richard M. Stallman <rms@gnu.org>
9384
9385 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
9386 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
9387 (Vblink_cursor_alist): New variable.
9388 (syms_of_xfns): Initialize and defvar it.
9389 (x_specified_cursor_type): Recognize Qbox for filled box.
9390 Exceptions are hollow boxes.
9391 (Qbox, Qhollow): New variables.
9392 (syms_of_xfns): Initialize and staticpro them.
9393
9394 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
9395 New macros.
9396 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
9397
9398 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
9399 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
9400
9401 * emacs.c (main): Handle --script.
9402 (USAGE1): Mention --script.
9403 (standard_args): Define sort order for --script.
9404
94052002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
9406
9407 * xdisp.c (redisplay_updating_p): Variable removed.
9408 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
9409 New variables.
9410 (init_iterator): Don't free realized faces if
9411 inhibit_free_realized_faces is set.
9412 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
9413 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
9414 initialize Qinhibit_free_realized_faces.
9415
9416 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
9417 when iterator is adding glyphs to a glyph matrix.
9418
94192002-08-27 Kenichi Handa <handa@etl.go.jp>
9420
9421 * xdisp.c (get_next_display_element): In unibyte case, don't use
9422 octal form for such eight-bit characters that can be converted to
9423 multibyte char.
9424
94252002-08-26 Kim F. Storm <storm@cua.dk>
9426
9427 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize foreground
9428 and background colors. From Joe Buehler (tiny change).
9429
94302002-08-26 Miles Bader <miles@gnu.org>
9431
9432 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
9433
94342002-08-25 Andrew Choi <akochoi@shaw.ca>
9435
9436 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
9437 defined instead of MAC_OSX.
9438
9439 * s/darwin.h (select): Define select to sys_select only if
9440 HAVE_CARBON is defined.
9441 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
9442 (DONT_REOPEN_PTY): #def it.
9443
9444 * macterm.c (XTread_socket): Remove code to call
9445 SendEventToEventTarget for keys with command modifiers when
9446 mac_command_key_is_meta is nil.
9447
94482002-08-24 Andreas Schwab <schwab@suse.de>
9449
9450 * eval.c (Fdefvar): Fix last change.
9451
94522002-08-23 Richard M. Stallman <rms@gnu.org>
9453
9454 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
9455 Record variables in load history as (defvar . VAR).
9456 (Fdefvar): Don't record in load history if no initial value.
9457 (Qdefvar): New variable.
9458 (syms_of_eval): Init and staticpro it.
9459
9460 * lread.c (syms_of_lread): Doc fix.
9461 (build_load_history): Use Fmember to see if a definition
9462 is already in the Vload_history element.
9463
9464 * process.c (Fstart_process): Remove /: from program name.
9465
9466 * emacs.c (decode_env_path): Don't add /: if file name handler
9467 has a `safe-magic' property.
9468
9469 * callproc.c (Fcall_process): Remove /: from program name.
9470
94712002-08-23 Stefan Monnier <monnier@cs.yale.edu>
9472
9473 * regex.c (PATFETCH): Remove the translating fetch.
9474 (PATFETCH_RAW): Rename to PATFETCH.
9475 (set_image_of_range): New fun.
9476 (SET_RANGE_TABLE_WORK_AREA): Use it.
9477 (regex_compile): Don't translate the pattern chars so eagerly.
9478 Only do it when inserting an `exactn' bytecode or when handling
9479 a char-range.
9480 (mutually_exclusive_p): Avoid empty statement.
9481
94822002-08-22 Kim F. Storm <storm@cua.dk>
9483
9484 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
9485 end up on a partially visible line; this reverts a specific part
9486 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
9487 display error which has been reported several times now.
9488 However it introduces the problem that changes was supposed to fix.
9489 See my comments in the source if you want to debug this further.
9490
94912002-08-20 Kenichi Handa <handa@etl.go.jp>
9492
9493 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
9494
94952002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
9496
9497 * msdos.c (croak): Add `void' to definition.
9498
c1380aa6 9499 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
048addec
JD
9500 Don't define them, they are defined in msdos.c.
9501
9502 * mem-limits.h [MSDOS]: Declare etext.
9503
9504 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
9505 `const' since CORRECT_DIR_SEPS modifies its target.
9506
95072002-08-19 Kim F. Storm <storm@cua.dk>
9508
2fb0ce67 9509 * keyboard.c (Fclear_this_command_keys): Add optional arg
048addec
JD
9510 KEEP-RECORD to avoid clearing lossage when we just want to clear
9511 the current key sequence (kmacro needs this).
9512
95132002-08-19 Kenichi Handa <handa@localhost>
9514
9515 * composite.c (run_composition_function): Call FUNC if it is fboundp.
9516
9517 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
9518 cons, return Qnil.
9519
95202002-08-17 Richard M. Stallman <rms@gnu.org>
9521
9522 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
9523
9524 * sysdep.c [!VMS]: Include sys/files.h.
9525
9526 * editfns.c (save_restriction_restore): Defend from unchained marker.
9527
9528 * buffer.c (overlays_at): Handle extending vec uniformly.
9529 (overlays_in): Handle extending vec from length 0 as in overlays_at.
9530
95312002-08-15 Andrew Choi <akochoi@shaw.ca>
9532
9533 * mac.c (init_mac_osx_environment): New function.
9534
9535 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
9536
95372002-08-14 Kim F. Storm <storm@cua.dk>
9538
9539 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
9540 executing macro before appending to it (when used from Lisp).
9541 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
9542 which is called prior to each iteration of macro (for kmacro.el).
9543 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
9544
9545 * lisp.h (Fexecute_kbd_macro): Update prototype.
9546
9547 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
9548
95492002-08-14 Kenichi Handa <handa@etl.go.jp>
9550
9551 * xselect.c (QUTF8_STRING): New variable.
9552 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
9553 (x_atom_to_symbol): Likewise.
9554 (x_get_local_selection): New argument local_request. If it is
9555 nonzero, call handler_fn with the second arg nil.
9556 (x_handle_selection_request): Call x_get_local_selection with
9557 local_request 0.
9558 (lisp_data_to_selection_data): Don't encode the string here.
9559 (Fx_get_selection_internal): Call x_get_local_selection with
9560 local_request 1.
9561 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
9562
9563 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
9564
9565 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
9566
95672002-08-13 Richard M. Stallman <rms@gnu.org>
9568
9569 * minibuf.c (Fminibufferp): New function.
9570 (syms_of_minibuf): Defsubr it.
9571 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
9572
95732002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
9574
9575 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
9576
95772002-08-12 Richard M. Stallman <rms@gnu.org>
9578
9579 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
9580 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
9581 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
9582 already.
9583
9584 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
9585
95862002-08-11 Andrew Choi <akochoi@shaw.ca>
9587
9588 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
9589 (Vmac_pass_command_to_system): New variable.
9590 (Vmac_pass_control_to_system): New variable.
9591 (do_mouse_moved): Check wp with is_emacs_window.
9592 (XTread_socket): Check window_ptr with is_emacs_window.
9593 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
9594 events back to Mac Toolbox for processing, depending on values of
9595 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
9596 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
9597 Vmac_pass_control_to_system.
9598
95992002-08-10 Kenichi Handa <handa@etl.go.jp>
9600
9601 * coding.c (unencodable_char_position): New function.
9602 (Funencodable_char_position): New function.
9603 (syms_of_coding): Defsubr Funencodable_char_position.
9604
96052002-08-10 Andrew Choi <akochoi@shaw.ca>
9606
9607 * mac.c (sys_select) [MAC_OSX]: New function.
9608
9609 * macterm.c (MakeMeTheFrontProcess): New function.
9610 (mac_initialize): Call MakeMeTheFrontProcess.
9611
9612 * s/darwin.h: Define select to sys_select.
9613
96142002-08-09 Richard M. Stallman <rms@gnu.org>
9615
9616 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
9617
96182002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
9619
9620 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
9621 end of the buffer.
9622
96232002-08-08 Ken Raeburn <raeburn@mit.edu>
9624
9625 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
9626
9627 * puresize.h (BASE_PURESIZE): Increase to 910000.
9628
96292002-08-08 Kenichi Handa <handa@etl.go.jp>
9630
9631 * coding.c (Ffind_operation_coding_system): For write-region, if
9632 VISIT is a filename, make it the target.
9633
96342002-08-07 Richard M. Stallman <rms@gnu.org>
9635
9636 * alloc.c (mark_object): Detect long lists for debugging.
9637 (mark_object_loop_halt): New variable.
9638
9639 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
9640
9641 * data.c (Fmake_variable_frame_local): Doc fix.
9642
96432002-08-01 David Ponce <david@dponce.com>
9644
9645 * w32menu.c (local_heap, local_alloc, local_free): New macros.
9646 (malloc_widget_value, free_widget_value)
9647 (w32_free_submenu_strings): Use them.
9648
9649 (push_submenu_start, push_submenu_end, push_left_right_boundary)
9650 (push_menu_pane, push_menu_item, single_keymap_panes)
9651 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
9652 (single_submenu, set_frame_menubar)
9653 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
9654
9655 (Fx_popup_menu): Don't show pop up menu until preceding one is
9656 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
9657
9658 * w32menu.c: Changes adapted from xmenu.c
9659 (set_frame_menubar): First parse all submenus,
9660 then make widget_value trees from them.
9661 Don't allocate any widget_value objects
9662 until we are done with the parsing.
9663 (parse_single_submenu): New function.
9664 (digest_single_submenu): New function.
9665 (single_submenu): Function deleted, replaced by those two.
9666
96672002-08-04 Andrew Choi <akochoi@shaw.ca>
9668
9669 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
9670 returns a valid window pointer before proceeding for keyDown and
9671 autoKey events.
9672
96732002-08-03 Andrew Choi <akochoi@shaw.ca>
9674
9675 * macterm.c (USE_CARBON_EVENTS): New macro.
9676 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
9677 (x_iconify_frame): Call CollapseWindow.
9678 (Vmac_reverse_ctrl_meta): New variable.
9679 (Vmac_wheel_button_is_mouse_2): New variable.
9680 (init_mac_drag_n_drop): New function.
9681 (mac_do_receive_drag): New function.
9682 (mac_handle_service_event): New function.
9683 (init_service_handler): New function.
9684 (mac_to_emacs_modifiers): New function.
9685 (mac_event_to_emacs_modifiers): New function.
9686 (mac_get_mouse_btn): New function.
9687 (mac_convert_event_ref): New function.
9688 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
9689 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
9690 mac_get_mouse_btn.
9691 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
9692
9693 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
9694 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
9695 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
9696 TOOL_BAR_EVENT for MAC_OS as well.
9697 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
9698 as for WINDOWS_NT.
9699 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
9700
9701 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
9702
97032002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
9704
9705 * xdisp.c (forward_to_next_line_start): Fix a condition that
9706 lead to a newline being skipped.
9707
97082002-08-02 Andrew Choi <akochoi@shaw.ca>
9709
9710 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
9711
97122002-08-01 Richard M. Stallman <rms@gnu.org>
9713
9714 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
9715
97162002-07-31 Andrew Choi <akochoi@shaw.ca>
9717
9718 * macfns.c: #undef init_process before #define-ing it.
9719
9720 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
9721 HAVE_CARBON is defined.
9722
97232002-07-31 Richard M. Stallman <rms@gnu.org>
9724
9725 * xmenu.c (set_frame_menubar): First parse all submenus,
9726 then make widget_value trees from them.
9727 Don't allocate any widget_value objects
9728 until we are done with the parsing.
9729 (parse_single_submenu): New function.
9730 (digest_single_submenu): New function.
9731 (single_submenu): Function deleted, replaced by those two.
9732
97332002-07-30 Juanma Barranquero <lektu@terra.es>
9734
9735 * w32proc.c (syms_of_ntproc): Fix docstring of
9736 `w32-get-true-file-attributes'.
9737
97382002-07-28 Richard M. Stallman <rms@gnu.org>
9739
9740 * s/hpux8.h (HPUX8): Define this before including hpux.h.
9741 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
9742
9743 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
9744
9745 * keyboard.c (make_lispy_event):
9746 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
9747 Explicitly clear up_modifier in event->modifiers.
9748
97492002-07-27 Richard M. Stallman <rms@gnu.org>
9750
9751 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
9752
9753 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
9754 for bar cursor.
9755
97562002-07-26 Kenichi Handa <handa@etl.go.jp>
9757
9758 * coding.c (detect_coding_iso2022): While checking a byte sequence
9759 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
9760 it in the normal loop.
9761
97622002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
9763
9764 * xterm.c (expose_overlaps): New function.
9765 (expose_window): Use it to fix the display of overlapping rows.
9766
9767 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
9768
97692002-07-23 Ken Raeburn <raeburn@gnu.org>
9770
9771 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
9772 since it only depends on XUINT.
9773
9774 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
9775 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
9776 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
9777 Macros deleted.
3947677c 9778
77d1daf2
AS
9779 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
9780 its value over other approaches.
9781 * sysdep.c (start_of_data): Don't define the function if a macro
9782 form has been defined.
8a8e19a3 9783
048addec
JD
97842002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
9785
9786 * xdisp.c (redisplay_updating_p): New variable.
9787 (init_iterator): Don't free realized faces when
9788 redisplay_updating_p is set.
9789 (redisplay_internal): Set redisplay_updating_p while updating
9790 the display.
9791
97922002-07-23 Richard M. Stallman <rms@gnu.org>
9793
9794 * editfns.c (Fmessage): Treat "" like nil.
9795
97962002-07-23 Kenichi Handa <handa@etl.go.jp>
9797
9798 * xdisp.c (face_before_or_after_it_pos):
9799 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
9800
98012002-07-22 Juanma Barranquero <lektu@terra.es>
9802
9803 * callproc.c (init_callproc) [DOS_NT]:
9804 Initialize Vshared_game_score_directory to nil.
9805 (syms_of_callproc) [DOS_NT]: Likewise.
9806
98072002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
9808
9809 * xdisp.c (display_line): Replace an abort with xassert.
9810
98112002-07-21 Richard M. Stallman <rms@gnu.org>
9812
9813 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
9814 and END_UNCHANGED when setting buffer_unchanged_p.
9815 Use current_matrix_up_to_date_p to decide whether to use
9816 try_cursor_movement.
9817
9818 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
9819
9820 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
9821
9822 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
9823 Set to nil if dir does not exist.
9824 (syms_of_callproc): Init unconditionally and simply.
9825
9826 * buffer.c (Fbuffer_list): Doc fix.
9827
98282002-07-21 Ken Raeburn <raeburn@gnu.org>
9829
9830 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
9831
9832 * buffer.c (mmap_realloc): When shrinking, make sure number of
9833 pages to unmap is rounded towards zero.
9834
9835 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
9836 (XSETINT): Deleted.
9837
9838 * m/att3b.h (XINT): Don't define.
9839 (VALBITS, VALMASK, XTYPE): Deleted.
9840 (DATA_SEG_BITS): Define.
9841 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
9842 ARRAY_MARK_FLAG): Deleted.
9843 (DATA_SEG_BITS): Define.
9844 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
9845 (DATA_SEG_BITS): Define.
9846
98472002-07-20 Richard M. Stallman <rms@gnu.org>
9848
9849 * print.c (print_error_message): New args CONTEXT and CALLER.
9850 Calls changed.
9851
9852 * lisp.h (print_error_message): Declare new args.
9853
9854 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
9855 and CONTEXT to print_error_message, don't print them here.
9856 For a Quit, don't use Vsignaling_function.
9857 Call message_log_maybe_newline.
9858
9859 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
9860
98612002-07-20 Kim F. Storm <storm@cua.dk>
9862
9863 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
9864
98652002-07-19 Ken Raeburn <raeburn@gnu.org>
9866
9867 * bytecode.c (struct byte_stack): Pointers into byte string now
9868 point to const.
9869 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
9870 const.
9871 * charset.h (BCOPY_SHORT): Source pointer now points to const.
9872 * coding.c (encode_eol, detect_coding, detect_eol):
9873 (decode_coding, encode_coding, detect_coding_system):
9874 Source strings now treated as const.
9875 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
9876 modify Lisp string contents.
9877 * coding.h (decode_coding, encode_coding, detect_coding,
9878 detect_eol): Declarations updated.
9879 * composite.c (compose_chars_in_text): Treat Lisp string contents
9880 as const.
9881 * dispnew.c (safe_bcopy): Source pointer now points to const.
9882 * lisp.h (STRING_COPYIN): New macro.
9883 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
9884 (internal_with_output_to_temp_buffer): Declarations updated.
9885 * print.c (temp_output_buffer_setup):
9886 (internal_with_output_to_temp_buffer): Buffer name argument is now
9887 pointer to const.
9888 * sound.c (struct sound_device): Function pointer field "write"
9889 buffer argument now points to const.
9890 (vox_write): Buffer argument points to const.
9891 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
9892 contents as const.
9893 * sysdep.c (emacs_write): Buffer pointer now const.
9894 * term.c (encode_terminal_code): Buffer pointer now const.
9895 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
9896 (x_face_list_fonts, x_update_menu_appearance):
9897 (hash_string_case_insensitive): Treat Lisp string contents as const.
9898
98992002-07-19 Juanma Barranquero <lektu@terra.es>
9900
048addec
JD
9901 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
9902
9903 * fileio.c (syms_of_fileio): Likewise.
c62aec78
JB
9904 (Ffile_name_as_directory): Fix argument name in docstring.
9905 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
048addec
JD
9906
99072002-07-18 Richard M. Stallman <rms@gnu.org>
9908
9909 * data.c (Fdefalias): Doc fix.
9910
99112002-07-17 Dave Love <fx@gnu.org>
9912
9913 * intervals.h (text_property_stickiness): Use P_.
9914
9915 * ccl.c: Remove `emacs' conditionals.
9916 (ccl_backtrace_table): Fix size spec.
9917 (ccl_driver): Fix type errors.
9918
99192002-07-16 Ken Raeburn <raeburn@gnu.org>
9920
9921 * alloc.c (xstrdup, make_string, make_unibyte_string)
9922 (make_multibyte_string, build_string): String pointer args now
9923 point to const.
9924 * charset.c (find_charset_in_text, c_string_width):
9925 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
9926 * fileio.c (report_file_error):
9927 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
9928 (count_combining_before, count_combining_after, insert_1_both):
9929 (insert, insert_and_inherit, insert_string):
9930 (insert_before_markers, insert_before_markers_and_inherit):
9931 * lread.c (intern, oblookup, hash_string):
9932 * minibuf.c (temp_echo_area_glyphs):
9933 * search.c (fast_c_string_match_ignore_case):
9934 * sysdep.c (emacs_open, set_file_times):
9935 * xfaces.c (xstricmp):
9936 * xdisp.c (store_frame_title, string_char_and_length):
9937 (message_dolog, message2, message2_nolog, set_message): Likewise.
9938 (set_message_1): Cast message string argument to const pointer.
9939 * editfns.c (general_insert_function): Insertion function now
9940 takes pointer to const for input data.
9941 * charset.h (find_charset_in_text, c_string_width):
9942 (parse_str_as_multibyte): Declarations updated.
9943 * dispextern.h (xstricmp): Declaration updated.
9944 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
9945 (count_size_as_multibyte, count_combining_before):
9946 (count_combining_after, insert_1, insert_1_both, message_dolog):
9947 (insert, insert_and_inherit, insert_before_markers)
9948 (insert_before_markers_and_inherit, set_message, message2):
9949 (message2_dolog, build_string, make_string, make_unibyte_string):
9950 (make_multibyte_string, intern, oblookup, report_file_error):
9951 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
9952 (emacs_open, xstrdup): Declarations updated.
9953 * systime.h (set_file_times): Declaration updated.
9954
9955 * charset.c (find_charset_in_text, lisp_string_width): Use const
9956 for pointer to lisp string data.
9957 * charset.h (FETCH_STRING_CHAR_ADVANCE):
9958 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
9959 * coding.c (Ffind_coding_systems_region_interval):
9960 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
9961 (Fmake_directory_internal, Fdelete_directory):
9962 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
9963 * fontset.c (font_family_registry, fs_query_fontset):
9964 (list_fontsets):
9965 * frame.c (Fframe_parameter):
9966 * keyboard.c (cmd_error_internal):
9967 * keymap.c (Fdescribe_buffer_bindings):
9968 * lread.c (complete_filename_p, openp):
9969 * minibuf.c (Fminibuffer_complete_word):
9970 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
9971 (face_before_or_after_it_pos, next_element_from_string):
9972 (get_overlay_arrow_glyph_row, display_mode_element):
9973 (decode_mode_spec_coding):
9974 * xterm.c (same_x_server): Likewise.
9975
9976 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
9977 settings of non-existent fields.
9978
9979 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
9980 copy a lisp value.
9981
9982 * lread.c (Fintern_soft): Use string macros instead of
9983 Lisp_String fields.
9984 * keyboard.c (echo_char, parse_modifiers_uncached):
9985 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
9986 * textprop.c (validate_interval_range, interval_of): Likewise.
9987
9988 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
9989
9990 * charset.h (FETCH_STRING_CHAR_ADVANCE)
9991 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
9992 XSTRING()->size_byte.
9993
9994 * lisp.h (SDATA, SREF): Produce rvalue.
9995 (SSET): New macro.
9996 * alloc.c (make_event_array): Use SSET for storing into a string.
9997 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
9998 a string.
9999 * casefiddle.c (casify_object): Use SSET.
10000 * charset.h (FETCH_STRING_CHAR_ADVANCE)
10001 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
10002 address of string contents.
10003 * data.c (Faref): Use SDATA.
10004 (Faset): Use SDATA, SSET.
10005 * dired.c (directory_files_internal): Use SSET.
10006 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
10007 (Fread_file_name): Use SREF, SSET.
10008 * fns.c (concat): Use SSET.
10009 (concat, Fdelete): Use SDATA.
10010 * insdel.c (insert_from_string_1): Use SDATA.
10011 * keyboard.c (Fevent_convert_list): Use SREF.
10012 * lread.c (Fload): Use SDATA, SSET.
10013 * macfns.c (validate_x_resource_name): Use SSET.
10014 * process.c (status_message): Use SSET.
10015 * search.c (wordify): Use SDATA.
10016 (Freplace_match): Use SREF.
10017 * w32fns.c (validate_x_resource_name): Use SSET.
10018 * xfns.c (validate_x_resource_name): Use SSET.
10019 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
10020
100212002-07-16 Richard M. Stallman <rms@gnu.org>
10022
10023 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
10024
10025 * xdisp.c (reconsider_clip_changes):
10026 Don't test prevent_redisplay_optimizations_p.
10027 (redisplay_internal): Test prevent_redisplay_optimizations_p
10028 along with clip_changed in some cases.
10029 (try_window_id): Likewise.
10030 (redisplay_window): New local var buffer_unchanged_p.
10031
10032 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
10033
10034 * process.c (create_process): Test USG_SUBTTY_WORKS.
10035 (process_send_signal): Clean up handling of GID.
10036 Detect errors in ioctls meant to set GID.
10037
10038 * window.c (temp_output_buffer_show):
10039 Don't set prevent_redisplay_optimizations_p.
10040
100412002-07-15 Juanma Barranquero <lektu@terra.es>
10042
10043 * eval.c (Fdefvaralias): Add docstring argument.
10044
100452002-07-15 Ken Raeburn <raeburn@gnu.org>
10046
10047 * lisp.h (STRING_INTERVALS): Produce rvalue.
10048 (STRING_SET_INTERVALS): New macro.
10049 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
10050 * fns.c (Fstring_as_multibyte): Likewise.
10051 * intervals.c (balance_possible_root_interval, delete_interval)
10052 (create_root_interval, copy_intervals_to_string): Likewise.
10053 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
10054 instead of 0.
10055
100562002-07-14 Ken Raeburn <raeburn@gnu.org>
10057
10058 * lisp.h (STRING_SET_CHARS): New macro.
10059 (SCHARS, SBYTES): Produce rvalues.
10060 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
10061 * fns.c (concat): Likewise.
10062 * lread.c (read_vector): Likewise.
10063
10064 * lisp.h (SMBP): Deleted. All uses changed to STRING_MULTIBYTE.
10065 (STRING_SET_UNIBYTE): New macro.
10066 (SET_STRING_BYTES): Deleted. Callers (all of which supplied a
10067 length of -1) changed to use STRING_SET_UNIBYTE.
10068 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
10069 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
10070 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
10071 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
10072 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
10073 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
10074 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
10075 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
10076 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
10077 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
10078 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
10079 STRING_BYTES or indirection changed to SCHARS, SBYTES,
10080 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
10081 unchanged for now.
10082
100832002-07-13 Kim F. Storm <storm@cua.dk>
10084
10085 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
10086
100872002-07-12 Richard M. Stallman <rms@gnu.org>
10088
10089 * fileio.c (Fwrite_region): Doc fix.
10090
10091 * print.c (print_error_message): Don't handle Vsignaling_function here.
10092
10093 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
10094 (command_loop_1): Avoid certain actions after memory-full error.
10095
10096 * eval.c (Fsignal): Don't call cancel_hourglass.
10097 For a memory-full error, don't call Vsignal_hook_function
10098 and don't set Vsignaling_function.
10099
10100 * process.c (process_send_signal): Add abort call.
10101
101022002-07-11 Markus Rost <rost@math.ohio-state.edu>
10103
10104 * keymap.c (Fkey_binding): Fix typo.
10105
101062002-07-11 Richard M. Stallman <rms@gnu.org>
10107
10108 * alloc.c (Vmemory_full): New variable.
10109 (Vmemory_signal_data): Renamed from memory_signal_data.
10110 Uses changed.
10111 (syms_of_alloc): Defvar them.
10112 (memory_full, buffer_memory_full): Set Vmemory_full.
10113
10114 * lisp.h (Vmemory_full): Add declaration.
10115 (current_column, indented_beyond_p): Change declaration.
10116
10117 * indent.c (last_known_column): Declare as double, not float.
10118 (current_column, current_column_1, string_display_width)
10119 (position_indentation): Return `double'.
10120 (indented_beyond_p): Arg `column' is `double'. Callers changed.
10121
10122 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
10123 (back_to_previous_visible_line_start)
10124 (reseat_at_next_visible_line_start, next_element_from_buffer):
10125 Use `double', not `float', when calling indented_beyond_p.
10126
10127 * s/hpux11.h (BROKEN_SA_RESTART): Defined.
10128
10129 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
10130
101312002-07-11 Juanma Barranquero <lektu@terra.es>
10132
10133 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
f9711de4
JB
10134 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
10135 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
10136 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
10137 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
10138 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
048addec
JD
10139
101402002-07-10 Juanma Barranquero <lektu@terra.es>
10141
d814862a
JB
10142 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
10143 All callers changed.
048addec
JD
10144
101452002-07-09 Stefan Monnier <monnier@cs.yale.edu>
10146
10147 * data.c (Fdefalias): Add an optional `docstring' argument.
10148 (set_internal, Fsetq_default): Use XCAR/XCDR.
10149
10150 * composite.c (HASH_VALUE, HASH_KEY):
10151 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
10152
101532002-07-09 Kenichi Handa <handa@etl.go.jp>
10154
10155 * callproc.c (Fcall_process): Fix previous change.
10156
101572002-07-07 Stefan Monnier <monnier@cs.yale.edu>
10158
10159 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
10160 Add support for hash-tables.
10161 (Ftry_completion): Return t even if the string appears multiple times.
10162
10163 * fns.c (Fnconc): Use XCDR.
10164 (Fprovide): Use CONSP and XCDR.
10165 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
10166 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
10167 (Fmake_hash_table): Accept `:size nil'.
10168 (Fmakehash): Delete: moved to subr.el.
10169 (syms_of_fns): Don't defsubr makehash.
10170
10171 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
10172 (HASH_TABLE_SIZE): Move from fns.c.
10173
101742002-07-07 Richard M. Stallman <rms@gnu.org>
10175
10176 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
10177 Instead just return 0 when there is something to be done.
10178 (try_scrolling): If make_cursor_line_fully_visible returns 0,
10179 retry scrolling as if cursor were off the bottom.
10180 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
10181 return CURSOR_MOVEMENT_MUST_SCROLL.
10182 (redisplay_window): If make_cursor_line_fully_visible returns 0,
10183 go to try_to_scroll.
10184
10185 * buffer.c (Fbuffer_local_value): Store current value into its binding
10186 so we get the up-to-date value for the binding that is loaded.
10187
10188 * eval.c (Fdefmacro): Doc fix.
10189
101902002-07-05 Dave Love <fx@gnu.org>
10191
10192 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
10193 correctly.
10194
10195 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
10196 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
10197 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
10198 CCL_LookupCharConstTbl.
10199 (syms_of_ccl): Defvar translation-hash-table-vector.
10200
102012002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10202
10203 * xdisp.c: Remove unused variable `face'.
10204
102052002-07-04 Juanma Barranquero <lektu@terra.es>
10206
10207 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
10208 obsolescence information.
10209
102102002-07-03 Andrew Choi <akochoi@shaw.ca>
10211
10212 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
10213 pattern. Search cache first.
10214 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
10215 for Japanese font.
10216 (XLoadQueryFont): Use it.
10217
102182002-07-02 Richard M. Stallman <rms@gnu.org>
10219
10220 * keymap.c (Fdefine_key): Doc fix.
10221
10222 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
10223
102242002-07-02 Juanma Barranquero <lektu@terra.es>
10225
10226 * keymap.c (syms_of_keymap): Fix typo.
10227
102282002-07-01 Andrew Choi <akochoi@shaw.ca>
10229
10230 * s/darwin.h: Define POSIX_SIGNALS.
10231
10232 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
10233 and FSRefMakePath to convert FSSpec returned with Apple Event to
10234 Posix pathname.
10235 (mac_initialize) [TARGET_API_MAC_CARBON]:
10236 Call init_required_apple_events and disable the `Quit' menu item
10237 provided automatically by the Carbon Toolbox.
10238
102392002-07-01 Dave Love <fx@gnu.org>
10240
10241 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
10242 for K&R.
10243
10244 * xterm.c: Fix prototype for K&R.
10245
10246 * term.c (costs_set): Declare static, non-initialized for pcc.
10247
102482002-07-01 Richard M. Stallman <rms@gnu.org>
10249
10250 * keyboard.c (timer_last_idleness_start_time): New variable.
10251 (timer_start_idle): Set that.
10252 (read_key_sequence): Use that to reset timer_idleness_start_time
10253 to previous value.
10254
10255 * window.c (Frecenter): With arg, set optional_new_start.
10256
10257 * xdisp.c (redisplay_internal): Make optional_new_start really work.
10258
10259 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
10260 buffer for completion.
10261
102622002-06-29 Ken Raeburn <raeburn@gnu.org>
10263
10264 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
10265
102662002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10267
10268 * keyboard.c (readable_filtered_events): New function that filters
10269 FOCUS_IN_EVENT depending on parameter.
10270 (readable_events): Calls readable_filtered_events, not filtering
10271 FOCUS_IN_EVENT.
10272 (get_filtered_input_pending): New function, filtering parameter passed
10273 to readable_filtered_events.
10274 (get_input_pending): Calls get_filtered_input_pending, not filtering
10275 FOCUS_IN_EVENT.
10276 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
10277 FOCUS_IN_EVENT.
10278
10279 * xterm.h (struct x_output): Add focus_state.
10280
10281 * xterm.c (x_focus_changed): New function.
10282 (x_detect_focus_change): New function.
10283 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
10284 EnterNotify and LeaveNotify to track X focus changes.
10285
102862002-06-28 Andreas Schwab <schwab@suse.de>
10287
10288 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
10289
102902002-06-27 Kim F. Storm <storm@cua.dk>
10291
10292 * xdisp.c: (mode_line_string_list, mode_line_string_face)
10293 (mode_line_string_face_prop): New variables.
10294 (store_mode_line_string): New function.
10295 (display_mode_element): Use store_mode_line_string to
10296 add mode-line string elements to mode_line_string_list
10297 when mode_line_string_list is non-nil.
10298 (Fformat_mode_line): Now returns propertized string by
10299 default. New arg NO-PROPS to ignore properties.
10300 (decode_mode_spec): Only add two dashes for %- in propertized
10301 mode-line string.
10302 (syms_of_xdisp): Init and staticpro mode_line_string_list.
10303
103042002-06-27 Stefan Monnier <monnier@cs.yale.edu>
10305
10306 * minibuf.c (minibuffer_completion_contents): Add return type.
10307
103082002-06-27 Juanma Barranquero <lektu@terra.es>
10309
10310 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
10311
103122002-06-26 Juanma Barranquero <lektu@terra.es>
10313
10314 * fileio.c (read_file_name_cleanup): Add missing return.
10315
103162002-06-26 Richard M. Stallman <rms@gnu.org>
10317
10318 * window.c (Frecenter): Don't set force_start flag.
10319
10320 * minibuf.c (do_completion, Fminibuffer_complete_word)
10321 (Fminibuffer_completion_help): Complete just the text before point.
10322 (minibuffer_completion_contents): New function.
10323
10324 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
10325
10326 * frame.c (frames_bury_buffer): Function deleted.
10327
103282002-06-25 Miles Bader <miles@gnu.org>
10329
10330 * callint.c (Fcall_interactively): When checking to see if doprnt hit
10331 the end of callint_message, allow for a terminating '\0'.
10332
103332002-06-24 Juanma Barranquero <lektu@terra.es>
10334
10335 * w32select.c: Include composite.h
10336
10337 * w16select.c: Likewise.
10338
103392002-06-24 Kenichi Handa <handa@etl.go.jp>
10340
10341 * callproc.c (Fcall_process): If code detection is necessary,
10342 call detect_coding directly here.
10343
10344 * coding.c (detect_eol): Preserve coding->cmp_data.
10345
10346 * w16select.c (Fw16_get_clipboard_data):
10347 * w32fns.c (w32_to_x_font):
10348 * w32select.c (Fw32_get_clipboard_data):
10349 * xselect.c (selection_data_to_lisp_data):
10350 * xterm.c (XTread_socket): Disable composition handling.
10351
103522002-06-24 Stefan Monnier <monnier@cs.yale.edu>
10353
10354 * print.c (temp_output_buffer_setup): Kill all local variables.
10355
103562002-06-22 Stefan Monnier <monnier@cs.yale.edu>
10357
10358 * lread.c (Fread): Remove redundant and imprecise declaration.
10359
10360 * xfns.c (check_x_display_info): Use check_x_frame.
10361
10362 * .gdbinit (xprintsym): Use the new `xname' field.
10363 (xsymbol): Use it.
10364
103652002-06-22 Jason Rumney <jasonr@gnu.org>
10366
10367 * w32fns.c (file_dialog_callback): New function.
10368 (Fx_file_dialog): Allow selecting directories as well as files.
10369
103702002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10371
10372 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
f63fd14e 10373 OpenBSD. Add support for mipseb-*-netbsd* machines.
048addec
JD
10374
103752002-06-17 Andrew Choi <akochoi@shaw.ca>
10376
10377 * macterm.c (mac_scroll_area): Set foreground and backcolor to
10378 black and white before scrolling. Restore frame background and
10379 foreground color after scrolling.
10380 (do_window_update): Call XClearWindow before calling expose_frame.
10381 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
10382 FRAME_FOREGROUND_PIXEL of frame.
10383
10384 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
10385 test Mac command key as <ALT> key.
10386
103872002-06-17 Stefan Monnier <monnier@cs.yale.edu>
10388
10389 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
10390
10391 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
10392 Lookup keys in function-key-map immediately so that key-translation-map
10393 can be applied earlier.
10394 Remove function_key_possible and key_translation_possible, replaced
10395 by checking `keytran_start < t'.
10396
10397 * .gdbinit (xsymbol): Use the new `xname' field.
10398
103992002-06-17 Andrew Choi <akochoi@shaw.ca>
10400
10401 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
10402 test Mac command key as <ALT> key.
10403
10404 * mac.c (do_applescript): Call initialize_applescript if necessary
10405 when first called. Dispose of result_desc only when there is no error.
10406 (Fdo_applescript): Use %d format specifier instead of %ld.
10407
104082002-06-16 Andrew Choi <akochoi@shaw.ca>
10409
10410 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
10411 of FrontWindow for cases keyDown and autoKey.
10412
10413 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
10414 Vdefault_fontset to Monaco with mac-roman coding.
10415
10416 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
10417 init_process before and after inclusion of Carbon/Carbon.h, resp.
10418
10419 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
10420 cursor_gc.
10421 (add_font_name_table_entry): New function.
10422 (init_font_name_table): Use add_font_name_table_entry; add italic,
10423 bold, and bold-italic entries for truetype fonts.
10424
10425 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
10426 for Mac too.
10427 (try_font_list) [MAC_OS]: If no font matches given registry, try
10428 fonts with any registry matching face_family.
10429 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
10430
10431 * s/darwin.h: If autoconf detects the Ncurses library, define
10432 LIBS_TERMCAP to -lncurses to use it.
10433
104342002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
10435
10436 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
10437
104382002-06-15 Richard M. Stallman <rms@gnu.org>
10439
10440 * window.c (Fset_window_configuration): Explicitly preserve
10441 the point value that new_current_buffer had at the start.
10442
104432002-06-14 Juanma Barranquero <lektu@terra.es>
10444
10445 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
10446 Fix typos.
10447
104482002-06-14 Kim F. Storm <storm@cua.dk>
10449
10450 * insdel.c (insert_1_both, insert_from_string_1)
10451 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
10452 insert happened in the end_unchanged region. Otherwise, the
10453 redisplay may be confused and duplicate the last line in the
10454 buffer [seen after save-buffer when require-final-newline==t].
10455
104562002-06-13 Jason Rumney <jasonr@gnu.org>
10457
10458 * w32.c (init_environment): Remove EMACSLOCKDIR.
10459 (stat): Swap _S_IFDIR and _S_IFREG.
10460
104612002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10462
10463 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
10464 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
10465 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
10466 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
10467 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
10468 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
10469 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
10470 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
10471 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
10472 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
10473 SELECTION_REQUEST_EVENT, selection_clear_event to
10474 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
10475 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
10476 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
10477 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
10478 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
10479 no_event to NO_EVENT.
10480
104812002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10482
10483 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
10484
104852002-06-12 Stefan Monnier <monnier@cs.yale.edu>
10486
10487 * intervals.c (textget): Don't forget to `return'.
10488 (lookup_char_property): Use XCAR/XCDR.
10489
104902002-06-12 Juanma Barranquero <lektu@terra.es>
10491
10492 * xdisp.c (Fformat_mode_line): Fix typo.
10493
104942002-06-12 Kim F. Storm <storm@cua.dk>
10495
10496 * xdisp.c (Fformat_mode_line): New function.
10497 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
10498 (store_frame_title_char, store_frame_title): Use unconditionally.
10499 (init_xdisp): Defsubr Fformat_mode_line.
10500 Initialize frame_title_buf etc. unconditionally.
10501
105022002-06-11 Stefan Monnier <monnier@cs.yale.edu>
10503
10504 * keyboard.c (read_key_sequence):
10505 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
10506 things through those maps after downcasing events.
10507 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
10508 applies after function-key-map.
10509 Make sure that keytran can be done in the middle in the sequence.
10510 Be careful not to throw away events past the one we downcase.
10511
10512 * lread.c (read_integer): Remove unused var `tem'.
10513 (read1): Fix int/Lisp_Object mixup.
10514
10515 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
10516
105172002-06-11 Richard M. Stallman <rms@gnu.org>
10518
10519 * keyboard.c (readable_events): Ignore any number of
10520 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
10521
105222002-06-09 Miles Bader <miles@gnu.org>
10523
10524 * xfaces.c (Ftty_supports_face_attributes_p): New function.
10525 (parse_rgb_list, tty_lookup_color): New functions.
10526 (tty_defined_color): Use `tty_lookup_color' to do all the work.
10527 (color_distance, Fcolor_distance): New functions.
10528 (TTY_SAME_COLOR_THRESHOLD): New macro.
10529 (Qtty_color_standard_values): New variable.
10530 (syms_of_xfaces): Initialize new vars & functions.
10531
105322002-06-08 Colin Walters <walters@verbum.org>
10533
10534 * textprop.c (Vchar_property_alias_alist): New variable.
10535 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
10536
10537 * intervals.c (lookup_char_property): New function for looking up
10538 overlay and text properties, created from textget.
10539 (textget): Use it.
10540
10541 * intervals.h (lookup_char_property): Declare.
10542 (Vchar_property_alias_alist): Declare.
10543
10544 * buffer.c (Foverlay_get): Use lookup_char_property.
10545
105462002-06-07 Sam Steingold <sds@gnu.org>
10547
10548 * xselect.c (lisp_data_to_selection_data): Fix last change:
10549 *data_ret is not a Lisp string, while unibyte_string is.
10550
105512002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
10552
10553 * xselect.c (lisp_data_to_selection_data): Fix last change:
10554 set size_ret.
10555
105562002-06-07 Andreas Schwab <schwab@suse.de>
10557
10558 * m/amdx86-64.h: New file.
10559
105602002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
10561
10562 * fns.c (Fstring_make_unibyte): Doc fix.
10563
10564 * xselect.c (lisp_data_to_selection_data): If the requested type
10565 is STRING, call string_make_unibyte to encode the selected text
10566 as a string.
10567
10568 * window.c (Fset_window_hscroll): Doc fix.
10569
105702002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10571
10572 * fileio.c (choose_write_coding_system):
10573 Call select-safe-coding-system properly.
10574
105752002-06-03 Richard M. Stallman <rms@gnu.org>
10576
10577 * xdisp.c (message_with_string): Error if STRING is not a string.
10578
10579 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
10580
10581 * fileio.c (choose_write_coding_system): Pass FILE arg to
10582 Vselect_safe_coding_system_function.
10583
105842002-06-03 Ken Raeburn <raeburn@gnu.org>
10585
10586 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
10587
105882002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
10589
10590 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
10591 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
10592 * keymap.c (describe_command): Likewise.
10593 * minibuf.c (read_minibuf): Likewise.
10594
10595 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
10596 Cast `current_column' return value to int.
10597 (back_to_previous_visible_line_start)
10598 (reseat_at_next_visible_line_start, next_element_from_buffer):
10599 Cast `indented_beyond_p' 3rd arg to float.
10600
10601 * indent.c (last_known_column): Now a float.
10602 (current_column_1, position_indentation, current_column)
10603 (string_display_width): Return float.
10604 (Fcurrent_column): Cast `current_column' return value to int.
10605 (Fcurrent_indentation): Cast `position_indentation' retval to int.
10606 (indented_beyond_p): Third arg now a float.
10607 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
10608
10609 * lisp.h (current_column): Now returns float.
10610 (indented_beyond_p): 3rd arg now a float.
10611
106122002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
10613
10614 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
10615 is Qcompound_text_with_extensions.
10616
10617 * xselect.c (lisp_data_to_selection_data): Always set selection
10618 type as string if x_encode_text returns streingp non-NULL.
10619
10620 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
10621
106222002-05-30 Richard M. Stallman <rms@gnu.org>
10623
10624 * window.c (Fset_window_configuration): Correct the handling
10625 of point in current buffer, to work with multiple windows.
10626
106272002-05-29 Colin Walters <walters@verbum.org>
10628
10629 * lread.c (Fread_from_string): Don't depend on order of evaluation
10630 for C function parameters.
10631
106322002-05-28 Richard M. Stallman <rms@gnu.org>
10633
10634 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
10635 way for blinked-off state and for a nonselected window.
10636
10637 * window.c (window_scroll_pixel_based): Don't call Fbolp;
10638 instead, see if the new start pos is at beginning of line.
10639
10640 * fileio.c (Fwrite_region): If START is a string, don't
10641 make any annotations.
10642
10643 * eval.c (syms_of_eval): Doc fix.
10644
106452002-05-28 Colin Walters <walters@debian.org>
10646
10647 * emacs.c (USAGE1): Add --no-splash.
10648 (standard_args): Ditto.
10649
106502002-05-28 Colin Walters <walters@gnu.org>
10651
10652 * lread.c (readchar_count): New variable.
10653 (readchar): Increment it.
10654 (unreadchar): Decrement it.
10655 (read_multibyte): Decrement it.
10656 (Vread_with_symbol_positions): New variable.
10657 (Vread_symbol_positions_list): New variable.
10658 (read_internal_start): New function, created from Fread and
10659 Fread_from_string. Handle Vread_symbol_positions_list and
10660 Vread_with_symbol_positions.
10661 (readevalloop, Fread, Fread_from_string): Use it.
10662 (read1): Use readchar_count to add symbol positions to
10663 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
10664 (syms_of_lread): DEFVAR_LISP and initialize them.
10665
10666 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
10667 (substitute_object_recurse, substitute_object_in_subtree)
10668 (substitute_in_interval): Prototype.
10669 (read_multibyte): Return c if it's less than zero.
10670
106712002-05-28 Kim F. Storm <storm@cua.dk>
10672
10673 * fileio.c (Fread_file_name_internal): Added brute-force
10674 speed up for using predicate file-directory-p.
10675
106762002-05-28 Kim F. Storm <storm@cua.dk>
10677
10678 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
10679 New variables.
10680 (syms_of_fileio): DEFVAR_LISP them.
10681 (read_file_name_cleanup): New unwind function.
10682 (Fread_file_name_internal): Only return completions satifying
10683 Vread_file_name_predicate. Temporarily unwind protect and rebind
10684 default-directory while checking completions against the predicate.
10685 (Fread_file_name): Added PREDICATE argument. Specbind it to
10686 Vread_file_name_predicate during completion.
10687 Call Vread_file_name_function to read the file name if non-nil.
10688
10689 * lisp.h (Fread_file_name): Now has 6 args.
10690
10691 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
10692 predicate for Fread_file_name when reading directory name.
10693 Supply Qnil for predicate in other calls to Fread_file_name.
10694
106952002-05-26 Miles Bader <miles@gnu.org>
10696
10697 * term.c (tty_capable_p): New function.
10698 * dispextern.h (tty_capable_p): New function declaration.
10699 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
10700 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
10701
107022002-05-23 Stefan Monnier <monnier@cs.yale.edu>
10703
10704 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
10705 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
10706 (Vwrite_region_annotate_functions): Docstring fix.
10707
107082002-05-23 Kim F. Storm <storm@cua.dk>
10709
10710 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
10711 phys_cursor's hpos is overwritten. This is still not completely
10712 correct, as it doesn't really make sense to use hpos at all to
10713 get the cursor glyph (as that is relative to the width of the
10714 characters on the line, which may have changed during the update).
10715
107162002-05-22 Jason Rumney <jasonr@gnu.org>
10717
10718 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
10719 Lisp_Object.
10720 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
10721 Use modified enumfont_t struct.
10722
10723 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
10724
10725 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
10726 Handle the `hbar' cursor type.
10727 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
10728
10729 * w32fns.c (Qhbar): New variable.
10730 (x_specified_cursor_type): Use it.
10731
107322002-05-21 Ken Raeburn <raeburn@gnu.org>
10733
10734 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
10735 now, when the address is needed.
10736
107372002-05-21 Colin Walters <walters@gnu.org>
10738
10739 * Makefile.in (shortlisp): Add font-core.el.
10740
107412002-05-20 Richard M. Stallman <rms@gnu.org>
10742
10743 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
10744
10745 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
10746 equivalent key bindings here.
10747
107482002-05-20 Ken Raeburn <raeburn@gnu.org>
10749
10750 Change symbol structure to contain a lisp object for the symbol
10751 name:
10752 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
10753 object field named "xname".
10754 (SYMBOL_NAME): New macro.
10755 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
10756 name field.
10757 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
10758 (mark_object, gc_sweep): Use symbol xname field and XSTRING
10759 instead of name field.
10760 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
10761 SYMBOL_NAME instead of XSYMBOL and name field.
10762 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
10763 instead of XSYMBOL and name field.
10764 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
10765 and SYMBOL_NAME instead of XSYMBOL and name field.
10766 * coding.c (Fread_coding_system, code_convert_region1)
10767 (code_convert_string1, code_convert_string_norecord)
10768 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
10769 XSYMBOL and name field.
10770 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
10771 (Fmake_variable_buffer_local, Fmake_local_variable)
10772 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
10773 of XSYMBOL and name field.
10774 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
10775 XSYMBOL and name field.
10776 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
10777 instead of XSYMBOL and name field.
10778 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
10779 XSYMBOL and name field.
10780 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
10781 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
10782 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
10783 instead of XSYMBOL and name field.
10784 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
10785 (parse_modifiers, apply_modifiers, Fevent_convert_list)
10786 (parse_solitary_modifier, Fexecute_extended_command):
10787 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
10788 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
10789 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
10790 of XSYMBOL and name field.
10791 (describe_command, describe_translation): Use SYMBOL_NAME and
10792 assignment instead of XSYMBOL and name field and XSETSTRING.
10793 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
10794 instead of XSYMBOL and name field.
10795 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
10796 name field and XSETSTRING.
10797 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
10798 of XSYMBOL and name field.
10799 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
10800 assignment instead of XSYMBOL and name field and XSETSTRING.
10801 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
10802 XSTRING instead of XSYMBOL and name field.
10803 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
10804 and XSTRING instead of XSYMBOL and name field.
10805 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
10806 and XSTRING instead of XSYMBOL and name field.
10807 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
10808 XSTRING instead of XSYMBOL and name field.
10809 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
10810 of XSYMBOL and name field.
10811 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
10812 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
10813
108142002-05-19 Ken Raeburn <raeburn@gnu.org>
10815
10816 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
10817 and XCDR real rvalues in most configurations.
10818
10819 * buffer.c (fix_overlays_in_range, fix_overlays_before):
10820 Don't take the address of the cdr part of a cons cell; instead, track
10821 the parent cell and call XSETCDR, or set the variable for the head
10822 of the list if we haven't started down the list yet.
10823
108242002-05-19 Richard M. Stallman <rms@gnu.org>
10825
10826 * doc.c (reread_doc_file): Don't ask for confirmation.
10827
108282002-05-18 Jason Rumney <jasonr@gnu.org>
10829
10830 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
10831 (xbm_load_image): Use it.
10832 (xbm_load): Ditto.
10833 (xbm_read_bitmap_data): Reverted to xfns.c version.
10834 From David Ponce <david@dponce.com>.
10835
108362002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
10837
10838 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
10839 2.02 and later.
10840
108412002-05-16 Juanma Barranquero <lektu@terra.es>
10842
10843 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
10844
108452002-05-15 Stefan Monnier <monnier@cs.yale.edu>
10846
10847 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
10848 meaningful test.
10849 (read_char_minibuf_menu_prompt): Fix typo.
10850
108512002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
10852
10853 * eval.c (Fcommandp): Doc fix.
10854
108552002-05-13 Stefan Monnier <monnier@cs.yale.edu>
10856
10857 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
10858 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
10859 (Fset_keymap_parent): Gcpro a bit more.
10860 (access_keymap): Gcpro around meta_map call and around the main loop.
10861 (get_keyelt): Gcpro when following indirect references.
10862 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
10863 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
10864 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
10865 Remove useless ad-hoc remap code.
10866
108672002-05-13 Richard M. Stallman <rms@gnu.org>
10868
10869 * search.c (search_buffer): Give up boyer moore search if inverse
10870 translation change charset_base.
10871
108722002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
10873
10874 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
10875 characters is carried over from the previous block of text, adjust
10876 coding->produced to account for the extra character.
10877
108782002-05-11 Andreas Schwab <schwab@suse.de>
10879
10880 * coding.c (intersection): Keep the elements of the returned list
10881 in the same order as in the first list.
10882
108832002-05-11 Kim F. Storm <storm@cua.dk>
10884
10885 * keymap.c (current_minor_maps): Fixed resizing of cmm_maps;
10886 only update cmm_size if realloc actually succeeds.
10887 Testing with initial size of 2 elements revealed that using
10888 realloc on GNU/Linux would cause a random trap in xmalloc
10889 later on, so I rewrote the code to use malloc/bcopy/free instead
10890 of realloc.
10891
108922002-05-10 Jason Rumney <jasonr@gnu.org>
10893
10894 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
10895
108962002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
10897
10898 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
10899 parens, to ensure correct evaluation order.
10900
109012002-05-10 Kim F. Storm <storm@cua.dk>
10902
10903 * keymap.c (Vemulation_mode_map_alists): New variable.
10904 (syms_of_keymap): DEFVAR_LISP it.
10905 (current_minor_maps): Process keymap alists in that list before
10906 minor-mode-overriding-map-alist and minor-mode-map-alist.
10907
109082002-05-09 Richard M. Stallman <rms@gnu.org>
10909
10910 * search.c (Freplace_match): Doc fix.
10911
109122002-05-09 Kim F. Storm <storm@cua.dk>
10913
10914 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
10915 Enlarge cursor rectangle drawn around image with non-zero relief.
10916
10917 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
10918 Enlarge cursor rectangle drawn around image with non-zero relief.
10919
10920 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
10921 Enlarge cursor rectangle drawn around image with non-zero relief.
10922
109232002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
10924
10925 * xselect.c (lisp_data_to_selection_data): Don't set selection
10926 type if comes from the Lisp object's car. If the selection
10927 contains a pure ASCII text, always return QSTRING as its type.
10928
109292002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10930
10931 * mac.c (mac-cut-function): Doc fix.
10932
109332002-05-05 Richard M. Stallman <rms@gnu.org>
10934
10935 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
10936
109372002-05-04 Jason Rumney <jasonr@gnu.org>
10938
10939 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
10940 for event-click-count.
10941
10942 * process.c (init_process): Only add server subfeature if we can
10943 use non-blocking I/O.
10944
109452002-05-04 Andrew Choi <akochoi@shaw.ca>
10946
10947 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
10948 repeatedly.
10949
109502002-05-03 Jason Rumney <jasonr@gnu.org>
10951
10952 * process.c (Fmake_network_process): Only support server sockets
10953 when we can make them non-blocking.
10954
10955 * s/ms-w32.h (HAVE_SELECT): Define.
10956
10957 * w32.h (FILE_NDELAY): New flag.
10958
10959 * w32.c (sys_getpeername, fcntl): New functions.
10960 (_sys_read_ahead): Temporarily block on non-blocking sockets.
10961
10962 * w32proc.c: include sys/file.h.
10963
109642002-05-03 Colin Walters <walters@verbum.org>
10965
10966 * callproc.c (Vgame_score_directory): Renamed to
10967 Vshared_game_score_directory.
10968
109692002-04-30 Richard M. Stallman <rms@gnu.org>
10970
10971 * s/gnu.h [emacs]: Include stdio.h.
10972 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
10973
10974 * eval.c (do_autoload): Error if called while preparing to dump.
10975
10976 * fns.c (Frequire): Error if need to load while preparing to dump.
10977
109782002-04-28 Colin Walters <walters@verbum.org>
10979
10980 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
10981 Default to "~/.emacs.d/games".
10982
109832002-04-29 Stefan Monnier <monnier@cs.yale.edu>
10984
10985 * lread.c (openp): Change arg exec_only to predicate.
10986 (build_load_history): Use XCAR/XCDR.
10987 (Flocate_file_internal): New fun.
10988 (syms_of_lread): Defsubr it.
10989 (Fload): Update call to openp.
10990
10991 * lisp.h (openp): Update prototype.
10992
10993 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
10994 * w32proc.c (sys_spawnve):
10995 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
10996 * w32.c (check_windows_init_file):
10997 * sound.c (Fplay_sound_internal):
10998 * process.c (Fstart_process):
10999 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
11000 * mac.c (run_mac_command):
11001 * emacs.c (init_cmdargs):
11002 * callproc.c (Fcall_process): Update call to openp.
11003
11004 * textprop.c (remove_properties): Don't use XCAR without CONSP.
11005
11006 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
11007
110082002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11009
11010 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
11011 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
11012
110132002-04-28 Richard M. Stallman <rms@gnu.org>
11014
11015 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
11016
11017 * eval.c (Fcommandp): New arg for_call_interactively.
11018 * lisp.h (Fcommandp): Declare new arg.
11019
110202002-04-28 Jason Rumney <jasonr@gnu.org>
11021
11022 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
11023
11024 * w32.c (stat, fstat): Use file index information to generate
11025 inodes for directories where available.
11026
110272002-04-26 Andrew Choi <akochoi@shaw.ca>
11028
11029 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
11030 [HAVE_CARBON]: Include Mac object files.
11031
11032 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
11033 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
11034 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
11035 MAC_OSX, and MAC_OS instead of macintosh.
11036
11037 * editfns.c [MAC_OS8]: Include stdio.h.
11038
11039 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
11040
11041 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
11042 Apple Monaco.
11043
11044 * process.c: Declare QCfamily and QCfilter as extern.
11045 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
11046 calling select.
11047
11048 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
11049
11050 * tparam.c [MAC_OSX]: Don't define BC and UP.
11051
11052 * config.in [HAVE_CARBON]: Add.
11053
11054 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
11055 Move here from mac/src and mac/inc.
11056
11057 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
11058
110592002-04-26 Gerd Moellmann <gerd@gnu.org>
11060
11061 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
11062 Compute phys_cursor_width from the x position returned
11063 by x_draw_glyhs, which is cheaper.
11064 (x_display_and_set_cursor): Compute the buffer-local value
11065 of `cursor-in-non-selected-windows' only when needed.
11066
110672002-04-25 Gerd Moellmann <gerd@gnu.org>
11068
11069 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
11070 cursor on a stretch glyph has a width that depends on
11071 x_stretch_cursor_p.
11072
110732002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11074
11075 * abbrev.c (abbrev-start-location): Doc fix.
11076
11077 * indent.c (Fvertical_motion): Fix last change.
11078
110792002-04-25 Gerd Moellmann <gerd@gnu.org>
11080
11081 * indent.c (Fvertical_motion): Move to the start of the line
11082 containing PT before moving up or down.
11083
110842002-04-24 Gerd Moellmann <gerd@gnu.org>
11085
11086 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
11087 case of writing a whole row, more or less analogous to the case of
11088 writing only parts of a row.
11089
11090 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
11091 0 for NO_CURSOR.
11092
11093 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
11094
110952002-04-23 Colin Walters <walters@verbum.org>
11096
11097 * buffer.c (syms_of_buffer): Doc fix.
11098
110992002-04-23 Gerd Moellmann <gerd@gnu.org>
11100
11101 * xterm.c (notice_overwritten_cursor): Handle the special case
11102 of the cursor being in the first blank non-text line at the
11103 end of a window.
11104
11105 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
11106 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
11107 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
11108 bar cursors only, to make phys_cursor_width contain what its name
11109 suggests.
11110 (notice_overwritten_cursor): Consider the cursor image erased if
11111 the output area intersects the cursor image in y-direction.
11112
111132002-04-23 Simon Marshall <simon@gnu.org>
11114
11115 * xfns.c (x_set_mouse_color): Change default for cross_cursor
11116 to XC_hand2.
11117
111182002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11119
11120 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
11121
111222002-04-22 Kim F. Storm <storm@cua.dk>
11123
11124 * textprop.c (remove_properties): Fixed trap for malformed plist.
11125
111262002-04-22 Richard M. Stallman <rms@gnu.org>
11127
11128 * cmds.c (Fend_of_line): Handle intangible text in mid line.
11129
11130 * window.c (make_window): Initialize height_fixed_p,
11131 last_cursor_off_p, and p->cursor_off_p slots.
11132
111332002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11134
11135 * fns.c (use-dialog-box): Doc fix.
11136
111372002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11138
11139 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
11140 variables `row', `i' and `area'.
11141 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
11142 toolkit library.
11143
111442002-04-19 Stefan Monnier <monnier@cs.yale.edu>
11145
11146 * xfaces.c (clear_font_table): Don't free the default font of
11147 a frame even if it's on another display.
11148 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
11149 that could be Qt.
11150
111512002-04-19 Juanma Barranquero <lektu@terra.es>
11152
11153 * indent.c (Fmove_to_column): Remove unused local variable
11154 `next_boundary_byte'.
11155 (current_column_1): Likewise.
11156
111572002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
11158
11159 * msdos.c (Qhbar): New variable.
11160 (syms_of_msdos): Intern and staticpro it.
11161 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
11162 cursor type.
11163
111642002-04-19 Dave Lambert <dlambert@acm.org>
11165
11166 Theses change implement an underscore-like (`hbar') cursor.
11167
11168 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
11169
11170 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
11171 Handle the `hbar' cursor type.
11172 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
11173
11174 * xfns.c (Qhbar): New variable.
11175 (syms_of_xfns): Intern and staticpro it.
11176 (x_specified_cursor_type): Handle `hbar' cursor.
11177
11178 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
11179 not defined.
11180
111812002-04-18 Richard M. Stallman <rms@gnu.org>
11182
11183 * textprop.c (remove_properties): New arg LIST allows scanning
11184 either a list or a plist.
11185 (interval_has_some_properties_list): New function, like
11186 interval_has_some_properties using list instead of plist.
11187 All callers changed.
11188 (Fremove_list_of_text_properties): New function.
11189 (syms_of_textprop): Defsubr it.
11190
111912002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
11192
11193 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
11194
111952002-04-17 Juanma Barranquero <lektu@terra.es>
11196
11197 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
11198
111992002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
11200
11201 * window.c (coordinates_in_window): Don't report on margin area
11202 if its width is zero.
11203
112042002-04-16 Jason Rumney <jasonr@gnu.org>
11205
11206 * w32fns.c (Fx_file_dialog): Decode file name before using.
11207
11208 * w32term.c (construct_drag_n_drop): Likewise.
11209
112102002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
11211
11212 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
11213 store load-history in pure space.
11214
11215 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
11216
112172002-04-16 Stefan Monnier <monnier@cs.yale.edu>
11218
11219 * xterm.c (Qlatin_1, Qutf_8): New vars.
11220 (syms_of_xterm): Initialize them.
11221 (XTread_socket): Eliminate incorrect optimization that tried to avoid
11222 decoding the output of X*LookupString.
11223 Always use latin-1 to decode the output of XLookupString.
11224 Try Xutf8LookupString if XmbLookupString failed.
11225
11226 * region-cache.c (new_region_cache): Use BEG.
11227
112282002-04-16 Gerd Moellmann <gerd@gnu.org>
11229
11230 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
11231 configuration files.
11232 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
11233 returns 0.
11234
112352002-04-15 Andreas Schwab <schwab@suse.de>
11236
11237 * config.in: Regenerated using autoheader.
11238
11239 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
11240 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
11241 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
11242 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
11243 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
11244 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
11245 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
11246 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
11247 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
11248 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
11249 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
11250 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
11251 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
11252 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
11253 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
11254 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
11255 STACK_DIRECTION, now set by autoconf.
11256
112572002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11258
11259 * dispnew.c (marginal_area_string): Sort arguments.
11260
11261 * dispextern.h (marginal_area_string): Add prototype.
11262
112632002-04-13 Richard M. Stallman <rms@gnu.org>
11264
11265 * fileio.c (Finsert_file_contents):
11266 Don't call temp_output_buffer_setup--do just part, by hand.
11267
11268 * coding.c (run_pre_post_conversion_on_str):
11269 Don't call temp_output_buffer_setup--do just part, by hand.
11270
11271 * keyboard.c (command_loop_1): Don't call start_hourglass
11272 or cancel_hourglass when executing a macro.
11273
11274 * marker.c (count_markers): New function.
11275
11276 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
11277 grow without limit. Move recently used elements to the front.
11278
112792002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
11280
11281 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
11282
112832002-04-12 Gerd Moellmann <gerd@gnu.org>
11284
11285 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
11286 rows marginal areas.
11287 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
11288 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
11289
11290 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
11291
112922002-04-12 Dave Love <fx@gnu.org>
11293
11294 * dispnew.c (marginal_area_string): New.
11295
11296 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
11297 (Qleft_margin, Qright_margin): Declare.
11298 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
11299
11300 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
11301 note_mode_line_highlight and extended.
11302
11303 * keyboard.c (Qleft_margin, Qright_margin): Declare.
11304 (make_lispy_event): Deal with mouse events in margins.
11305
113062002-04-12 Stefan Monnier <monnier@cs.yale.edu>
11307
11308 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
11309
11310 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
11311 than deactivating the mark if tmm is set to `lambda'.
11312 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
11313 Use a single event for HELP_EVENT.
11314 (Fexecute_extended_command): Save last_point_position.
11315
113162002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11317
11318 * lisp.h (Fpropertize): Add prototype.
11319
11320 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
11321
113222002-04-10 Colin Walters <walters@verbum.org>
11323
11324 * config.in: Add HAVE_SHARED_GAME_DIR.
11325
11326 * callproc.c: (Vgame_score_directory): New variable.
11327 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
11328
113292002-04-10 Richard M. Stallman <rms@gnu.org>
11330
11331 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
11332
113332002-04-09 Stefan Monnier <monnier@cs.yale.edu>
11334
11335 * minibuf.c (read_minibuf): Use empty_string.
11336 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
11337 Short-circuit the search as soon as it "failed".
11338 (Fall_completions): Allow lambda forms and lists of strings for alist.
11339 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
11340 when require_match is nil.
11341 (Ftest_completion): Rename from `test_completion' and export to elisp.
11342 Call the predicate also when alist is a list.
11343 Obey Vcompletion_regexp_list.
11344 (do_completion, Fminibuffer_complete_and_exit): Use it.
11345 (Fassoc_string): Rename from `assoc_for_completion'.
11346 Allow list of strings as well and export to elisp.
11347
113482002-04-08 Stefan Monnier <monnier@cs.yale.edu>
11349
11350 * puresize.h (BASE_PURESIZE): Increase to 900KB.
11351
113522002-04-08 Juanma Barranquero <lektu@terra.es>
11353
11354 * w32.c (sys_accept): Don't hide variable `s'.
11355
113562002-04-05 Gerd Moellmann <gerd@gnu.org>
11357
11358 * callint.c (Fcall_interactively): Use INTEGERP instead of
11359 NUMBERP for checking Vhistory_length.
11360
113612002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11362
11363 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
11364 Doc fix to reflect it.
11365
113662002-04-04 Richard M. Stallman <rms@gnu.org>
11367
11368 * xdisp.c (display_mode_element): New arg RISKY.
11369 Disregard text props found or specified within a variable
11370 that isn't marked risky-local-variable.
11371 (Qrisky_local_variable): New variable.
11372 (syms_of_xdisp): Init and staticpro it.
11373
113742002-04-04 Stefan Monnier <monnier@cs.yale.edu>
11375
11376 * undo.c (record_point): New fun.
11377 (record_delete, record_insert): Use it.
11378
113792002-04-03 Juanma Barranquero <lektu@terra.es>
11380
11381 * doc.c (Fdocumentation): Add missing parentheses.
11382 (Fdocumentation_property): Likewise.
11383
113842002-04-03 Stefan Monnier <monnier@cs.yale.edu>
11385
11386 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
11387 data is 0, just return nil.
11388
113892002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
11390
11391 * msdos.c (syms_of_msdos): Fix last change with
11392 mouse_autoselect_window.
11393
113942002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11395
11396 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
11397 mouse_autoselect_window.
11398
113992002-04-02 Stefan Monnier <monnier@cs.yale.edu>
11400
11401 * keyboard.c (make_lispy_event): Handle unknown keysyms together
11402 with system-specific keysyms. Use it also for unknown function keys.
11403
11404 * doc.c (reread_doc_file): Return whether reload was attempted.
11405 (Fdocumentation, Fdocumentation_property): Don't try to reload
11406 if the doc is 0 and only ask once.
11407
11408 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
11409
114102002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
11411
11412 * keyboard.c (read_char): If the event was Qselect_window,
11413 restore timer_idleness_start_time to its previous value.
11414
11415 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
11416
114172002-04-01 Stefan Monnier <monnier@cs.yale.edu>
11418
11419 * region-cache.c (new_region_cache): Use BEG.
11420
11421 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
11422 Use BEG and BEG_BYTE.
11423
11424 * doc.c (get_doc_string): Return nil if the location is wrong.
11425 (reread_doc_file): New fun.
11426 (Fdocumentation, Fdocumentation_property):
11427 Call it if get_doc_string fails.
11428 (Fsnarf_documentation): Make it work for a dumped Emacs.
11429
11430 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
11431 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
11432
11433 * charset.c (Fstring): Allow 0 arguments.
11434
11435 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
11436
11437 * process.c (DATAGRAM_CONN_P, list_processes_1)
11438 (Fprocess_datagram_address, Fset_process_datagram_address)
11439 (Fset_network_process_options, server_accept_connection):
11440 Fix some int/Lisp_Object confusions (thank you union types).
11441
114422002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11443
11444 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
11445
11446 * w32term.c: Likewise.
11447 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
11448
11449 * keyboard.c (Qselect_window): New symbol.
11450 (head_table): Use it.
11451 (keys_of_keyboard): Bound select-window event to handle-select-window.
11452 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
11453
11454 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
11455 (last_window): New variable.
11456 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
11457 (note_mouse_movement): Remove reimplemented code in #if 0.
11458 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
11459 Emacs windows.
11460
11461 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
11462
114632002-03-31 Gerd Moellmann <gerd@gnu.org>
11464
11465 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
11466 Callers changed.
11467
114682002-03-30 Richard M. Stallman <rms@gnu.org>
11469
11470 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
11471 loop whenever it stops making progress.
11472
11473 * widget.c (set_frame_size): Don't call change_frame_size.
11474
114752002-03-30 Gerd Moellmann <gerd@gnu.org>
11476
11477 * dispnew.c (direct_output_for_insert):
11478 Call mark_window_display_accurate.
11479
114802002-03-29 Jason Rumney <jasonr@gnu.org>
11481
11482 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
11483
114842002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
11485
11486 * Makefile.in (lread.o): Depend on coding.h.
11487
11488 * lread.c (openp, Fload): Encode the file name before passing it
11489 to `stat', `access', and `emacs_open'.
11490 (openp): GCPRO the encoded file name. Don't recompute Lisp
11491 strings unnecessarily.
11492
114932002-03-29 Kim F. Storm <storm@cua.dk>
11494
11495 * fns.c (Flax_plist_put): Doc fix.
11496
114972002-03-28 Miles Bader <miles@gnu.org>
11498
11499 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
11500
115012002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11502
11503 * process.c (set-network-process-options): Add usage.
11504 (make-network-process): Doc fix.
11505
115062002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
11507
11508 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
11509
115102002-03-26 Richard M. Stallman <rms@gnu.org>
11511
11512 * fns.c (Fsubstring_no_properties): New function.
11513 (Flax_plist_get, Flax_plist_put): New functions.
11514 (syms_of_fns): defsubr them.
11515
11516 * xdisp.c (update_menu_bar): Test only update_mode_lines;
11517 don't test or alter w->update_mode_line.
11518
11519 * window.c (Fdisplay_buffer): Doc fix.
11520
115212002-03-24 Richard M. Stallman <rms@gnu.org>
11522
11523 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
11524
115252002-03-24 Gerd Moellmann <gerd@gnu.org>
11526
11527 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
11528 (Fdefmacro): Handle `(declare ...)'.
11529 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
11530 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
11531
115322002-03-24 Jason Rumney <jasonr@gnu.org>
11533
11534 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
11535 (xbm_file_p): Add prototypes.
11536 (xbm_format, xbm_image_p): Sync with xfns.c.
11537 (reflect_byte): New function.
11538 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
11539 (xbm_load_image): Create bitmaps with a depth of 1.
11540 (init_xfns): Enable XBM images.
11541
115422002-03-23 Jason Rumney <jasonr@gnu.org>
11543
11544 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
11545 correctly. Do not pass up_modifier to keyboard buffer.
11546
11547 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
11548
115492002-03-22 Stefan Monnier <monnier@cs.yale.edu>
11550
11551 * Makefile.in (bootstrapclean): New target.
11552 (bootstrap-temacs, bootstrap-doc): Remove.
11553 (bootstrap-emacs): Use a bog-standard `temacs'.
11554 Don't bother to build a DOC file.
11555
11556 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
11557
11558 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
11559 in temacs even if !CANNOT_DUMP.
11560 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
11561
11562 * alloc.c (check_pure_size): Only output a warning.
11563
115642002-03-22 Jason Rumney <jasonr@gnu.org>
11565
11566 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
11567 supported.
11568
11569 * w32term.c (zv_bits): Declare as short, for word alignment.
11570 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
11571 (syms_of_w32term): Define x-use-underline-position-properties.
11572
11573 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
11574 (clear_image_cache): Block input, fix logic, clear matrices in
11575 all frames that share this cache.
11576
115772002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
11578
11579 * emacs.c (main): Update the Copyright year in the blurb printed
11580 by "emacs --version".
11581
11582 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
11583
11584 * xterm.c (XTread_socket): If XK_ISO_Lock and
11585 XK_ISO_Last_Group_Lock are defined, handle keysyms between
11586 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
11587
115882002-03-21 Kim F. Storm <storm@cua.dk>
11589
11590 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
11591 menu-bar bindings in keymap and local-map properties _are_ used.
11592 But try keymap property first in accordance with 2002-01-03 patch.
11593 Added comment describing why this is not always reliable.
11594 (tool_bar_items): Ditto for tool-bar.
11595
115962002-03-21 Jason Rumney <jasonr@gnu.org>
11597
11598 * w32fns.c (x_clear_image_1): Disable color table code.
11599
116002002-03-21 Kim F. Storm <storm@cua.dk>
11601
11602 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
11603 removed the wrong version of the DEFUN macro; fixed it.
11604
11605 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
11606 Fmember rather than Fmemq).
11607 (Fprovide): Check that subfeatures is a list.
11608
11609 * process.c (QCfeature, QCdatagram): Removed variables.
11610 (QCtype, Qdatagram): New variables.
11611 (network_process_featurep): Removed function.
11612 (Fmake_network_process): Removed :feature check.
11613 Use :type 'datagram instead of :datagram t to create a datagram
11614 socket. This allows us to add other connection types (e.g. raw
11615 sockets) later in a consistent manner.
11616 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
11617 supported subfeatures for feature make-network-process.
11618 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
11619 Intern and staticpro QCtype and Qdatagram.
11620 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
11621
11622 * xfns.c: (QCtype): Remove duplicate declaration and
11623 initialization (is now declared in process.c).
11624
11625 * w32fns.c: (QCtype): Remove duplicate declaration and
11626 initialization (is now declared in process.c).
11627
116282002-03-21 Richard M. Stallman <rms@gnu.org>
11629
11630 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
11631 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
11632 when jumping to `fail' to avoid undoing reg changes in the
11633 last iteration of the loop.
11634 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
11635
11636 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
11637 Depend on process.h.
11638
116392002-03-20 Jason Rumney <jasonr@gnu.org>
11640
11641 Most of the following changes are still conditional on HAVE_IMAGES
11642 which is not set by default on Windows.
11643
11644 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
11645
11646 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
11647 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
11648 (four_corners_best, x_clear_image_1, x_clear_image)
11649 (x_alloc_image_color, postprocess_image)
11650 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
11651 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
11652 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
11653
11654 * w32gui.h (struct XImage): Define.
11655
11656 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
11657 extract mouse co-ordinates.
11658
116592002-03-20 Jason Rumney <jasonr@gnu.org>
11660
11661 * w32.c (init_winsock): Dynamically load new server and UDP
11662 socket functions.
11663 (socket_to_fd): New function.
11664 (sys_socket): Use it.
11665 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
11666 (sys_recvfrom, sys_sendto): New wrapper functions.
11667
11668 * process.c (QCfamily, QCfilter): Remove duplicate declaration
11669 and initialization.
11670
11671 * makefile.w32-in (LIBS): Remove $(WSOCK32).
11672
116732002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
11674
11675 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
11676 Don't use "sun" as a variable, it's a predefined constant on Sun
11677 machines.
11678
116792002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11680
11681 * bytecode.c (Fbyte_code): Revert last change.
11682
116832002-03-19 Kim F. Storm <storm@cua.dk>
11684
11685 * makefile.w32-in (LIBS): Add $(WSOCK32).
11686 From David Ponce <dponce@voila.fr>.
11687
116882002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11689
11690 * process.c (wait_reading_process_input): Move variables `pname'
11691 and `pnamelen' down where they are used.
11692
11693 * bytecode.c (Fbyte_code): Discard unused computed value to
11694 prevent gcc warning.
11695
11696 * lisp.h (Fplist_member): Add prototype.
11697
116982002-03-18 Kim F. Storm <storm@cua.dk>
11699
11700 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
11701 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
11702
11703 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
11704 Remove explicit GNU_LINUX settings for datagram support.
11705
117062002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11707
11708 * process.c (Fmake_network_process): Remove unused variable `sa'.
11709 Doc fix. Add usage:.
11710 (set_socket_options): Remove unused variables `optnum' and `opttype'.
11711
117122002-03-17 Richard M. Stallman <rms@gnu.org>
11713
11714 * xdisp.c (cursor_type_changed): New variable.
11715 (redisplay_internal): Redisplay all windows if cursor_type_changed.
11716 Clear it when clearing windows_or_buffers_changed.
11717 (try_cursor_movement, redisplay_window, try_window_id)
11718 (try_window_reusing_current_matrix): Test cursor_type_changed
11719 along with windows_or_buffers_changed.
11720
11721 * window.h (cursor_type_changed): New variable.
11722
11723 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
11724 not update_mode_lines, and always set it to 1.
11725
11726 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
11727 if no frames needed redrawing.
11728
117292002-03-17 Kim F. Storm <storm@cua.dk>
11730
11731 The following changes add support for network server processes,
11732 datagram connections, and local (unix) sockets.
11733
11734 * process.h (struct Lisp_Process): New member log.
11735 Doc fix: Member command used to indicate stopped network process.
11736 Doc fix: Member childp contains plist for network process.
11737 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
11738
11739 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
11740 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
11741 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
11742 New variables.
11743 (NETCONN1_P): New macro.
11744 (DATAGRAM_SOCKETS): New conditional symbol.
11745 (datagram_address): New array.
11746 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
11747 (status_message): Use concat3.
11748 (Fprocess_status): Add `listen' status to doc string. Return `stop'
11749 for a stopped network process.
11750 (Fset_process_buffer): Update contact plist for network process.
11751 (Fset_process_filter): Ditto. Don't enable input for stopped
11752 network processes. Server must listen, even if filter is t.
11753 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
11754 New functions.
11755 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
11756 (Fprocess_contact): Added KEY argument. Handle datagrams.
11757 (list_processes_1): Optionally show only processes with the query
11758 on exit flag set. Dynamically adjust column widths. Omit tty
11759 column if not needed. Report stopped network processes.
11760 Identify server and datagram network processes.
11761 (Flist_processes): New optional arg `query-only'.
11762 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
11763 (conv_lisp_to_sockaddr, set_socket_options)
11764 (network_process_featurep, unwind_request_sigio): New helper functions.
11765 (Fprocess_datagram_address, Fset_process_datagram_address):
11766 (Fset_network_process_options): New lisp functions.
11767 (Fopen_network_stream): Removed. Now defined in simple.el.
11768 (Fmake_network_process): New lisp function. Code is based on previous
11769 Fopen_network_stream, but heavily reworked with new property list based
11770 argument list, support for datagrams, server processes, and local
11771 sockets in addition to old client-only functionality.
11772 (server_accept_connection): New function.
11773 (wait_reading_process_input): Use it to handle incoming connects.
11774 Do not enable input on a new connection if process is stopped.
f63fd14e 11775 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
048addec
JD
11776 (send_process): Handle datagram sockets.
11777 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
11778 network process is indicated by setting command field to t .
11779 (Fprocess_send_eof): No-op if datagram connection.
11780 (Fstatus_notify): Don't read input for a stream server socket or a
11781 stopped network process.
11782 (init_process): Initialize datagram_address array.
11783 (syms_of_process): Intern and staticpro new variables, defsubr new
11784 functions.
11785
117862002-03-16 Jason Rumney <jasonr@gnu.org>
11787
11788 * w32fns.c (w32_to_all_x_charsets): Return correct type in
11789 startup case.
11790
117912002-03-16 Richard M. Stallman <rms@gnu.org>
11792
11793 * xdisp.c (redisplay_internal, redisplay_windows):
11794 Use list_of_error to call internal_condition_case_1.
11795 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
11796 so as to catch all errors with no possibility of debugger redisplay.
11797 (list_of_error): New variable.
11798 (syms_of_xdisp): Init and staticpro it.
11799
11800 * print.c (print_object): Delete `\ ' from printed rep of frame.
11801
118022002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
11803
11804 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
11805 until its implementation is fixed.
11806
118072002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11808
11809 * xfns.c (png_load): Remove unused variable `gamma_str'.
11810
118112002-03-14 Richard M. Stallman <rms@gnu.org>
11812
11813 * xfns.c (x_real_positions): Handle failure in XQueryTree.
11814
118152002-03-14 Miles Bader <miles@gnu.org>
11816
11817 * intervals.c (adjust_for_invis_intang): New function.
11818 (set_point_both): Use `adjust_for_invis_intang' to do most of the
11819 work for dealing with invisible+intangible regions. Do so before
11820 and after both forward and backward movements, to handle both
11821 front-sticky and rear-sticky cases.
11822 * textprop.c (text_property_stickiness): Function moved here from
11823 `editfns.c'.
11824 * intervals.h (text_property_stickiness): New declaration.
11825 * editfns.c (char_property_eq): Function removed.
11826 (text_property_stickiness): Function moved to `textprop.c'.
11827
118282002-03-13 Jason Rumney <jasonr@gnu.org>
11829
11830 * config.in: Add STRFTIME_NO_POSIX2.
11831
11832 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
11833 and %OX when underlying strftime does not.
11834
118352002-03-13 Stefan Monnier <monnier@cs.yale.edu>
11836
11837 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
11838 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
11839 line) to avoid annoying flicker.
11840 (xm_scroll_callback): Get rid of the now unnecessary kludge.
11841 (XTread_socket): Mark it static.
11842
11843 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
11844
118452002-03-13 Kim F. Storm <storm@cua.dk>
11846
11847 * puresize.h (BASE_PURESIZE): Increase to 775000.
11848
118492002-03-12 Juanma Barranquero <lektu@terra.es>
11850
11851 * editfns.c (syms_of_editfns): Fix typo.
11852
118532002-03-12 Gerd Moellmann <gerd@gnu.org>
11854
11855 * xsmfns.c: Include stdio.h because termhooks.h needs it.
11856 Include termopt.h for interrupt_input.
11857
118582002-03-11 Andreas Schwab <schwab@suse.de>
11859
11860 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
11861
118622002-03-11 Gerd Moellmann <gerd@gnu.org>
11863
11864 * xterm.c (note_mouse_movement): Put code for
11865 x_autoselect_window_p in #if 0.
11866
11867 * lread.c (Fload): Don't assume that message_with_string uses the
11868 string it is given like a C string.
11869
118702002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11871
11872 * xterm.h (x_session_check_input, x_session_initialize): Declared.
11873
11874 * xterm.c: (XTread_socket): Add call to x_session_check_input and
11875 x_session_have_connection.
11876 (x_initialize): Add call to x_session_initialize.
11877
11878 * termhooks.h (enum event_kind): Add save_session_event.
11879
11880 * keyboard.c: Add Emacs event save_session_event.
11881
11882 * emacs.c (main): Add call to syms_of_xsmfns.
11883
11884 * lisp.h: Declare syms_of_xsmfns as extern.
11885
11886 * config.in: Add HAVE_X_SM.
11887
11888 * Makefile.in (LIBXT): Add -lSM -lICE
11889 if HAVE_X_SM and not USE_X_TOOLKIT.
11890 (XOBJ): New file xsmfns.c added.
11891
11892 * xsmfns.c: New file for X session management.
11893
118942002-03-09 Jason Rumney <jasonr@gnu.org>
11895
11896 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
11897 read-only when setting modified time.
11898
118992002-03-08 Gerd Moellmann <gerd@gnu.org>
11900
11901 * xdisp.c (move_it_vertically_backward): At the end of the function,
11902 when moving forward by lines, treat terminal frames specially.
11903
11904 * keyboard.c (echo_char): Make sure to add a separator between
11905 keys even if echo_dash hasn't been called.
11906
11907 * xdisp.c: Use new string macros.
11908 (update_echo_area): Pass number of bytes to message3 instead of
11909 number of chars.
11910 (set_message_1): Don't access a string's size_byte directly.
11911 (decode_mode_spec_coding): Use number of bytes of eoltype string
11912 instead number of chars.
11913
11914 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
11915
119162002-03-08 Juanma Barranquero <lektu@terra.es>
11917
11918 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
11919 24-bit.
11920
119212002-03-06 Jason Rumney <jasonr@gnu.org>
11922
11923 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
11924
119252002-03-06 Gerd Moellmann <gerd@gnu.org>
11926
11927 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
11928 (cancel_echoing, echo_length, echo_truncate): Changed to
11929 work with new kboard definition.
11930 (echo_now): Use message3_nolog instead of message2_nolog.
11931
11932 * alloc.c (mark_kboards): Mark echo_string.
11933
11934 * keyboard.h (ECHOBUFSIZE): Removed.
11935 (struct kboard): Member echoptr removed, member echobuf renamed
11936 to echo_string.
11937
11938 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
11939 message3 instead of message2 to display the message using STRING's
11940 text properties.
11941
119422002-03-05 Andreas Schwab <schwab@suse.de>
11943
11944 * xdisp.c (hscroll_margin): Change to EMACS_INT.
11945
119462002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
11947
11948 * frame.c (default-frame-alist): Explain that setting it doesn't
11949 affect existing frames.
11950
119512002-03-05 Stefan Monnier <monnier@cs.yale.edu>
11952
11953 * indent.c (skip_invisible): Fix my brain fart.
11954
11955 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
11956
119572002-03-04 Stefan Monnier <monnier@cs.yale.edu>
11958
11959 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
11960 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
11961 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
11962 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
11963 and variables to use EMACS_INT instead of just int.
11964
11965 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
11966
119672002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
11968
11969 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
11970 environment, pass it down with corrected value.
11971
119722002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11973
11974 * lread.c (read_filtered_event): Do not call start_hourglass
11975 before returning.
11976
119772002-03-04 Juanma Barranquero <lektu@terra.es>
11978
11979 * w32term.c (x_display_and_set_cursor): Fix typo.
11980
119812002-03-03 Richard M. Stallman <rms@gnu.org>
11982
11983 * fileio.c (Fmake_temp_name): Doc fix.
11984
119852002-03-03 Gary Wong <gtw@gnu.org>
11986
11987 * termcap.c [!emacs]: Replace ospeed for building standalone
11988 libtermcap, for binary compatibility.
11989
11990 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
11991
119922002-03-03 Richard M. Stallman <rms@gnu.org>
11993
11994 * xrdb.c (file_p): Rename arg `path' to `filename'.
11995
11996 * abbrev.c (Fexpand_abbrev): Increment plist as use count
11997 only if it is an integer.
11998
11999 * xfns.c (png_load): Set screen_gamma based on f->gamma.
12000 If png_get_sRGB gives an answer, call png_set_gamma
12001 using the default image gamma value.
12002
12003 * lread.c (read1): When reading from a file, default string to
12004 multibyte only if it has some multibyte characters.
12005
12006 * print.c (print_object): Output multibyte chars 128...255
12007 using \x even if ! print_escape_multibyte.
12008
12009 * xdisp.c (display_mode_element): Move the places where
12010 bytepos, charpos, this, and lisp_string are set.
12011 Use lisp_string to set bytepos.
12012
12013 * xdisp.c (redisplay_internal):
12014 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
12015
12016 * xdisp.c (display_mode_element): Merge properties specified with
12017 :propertize onto those that come with the string.
12018
120192002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
12020
12021 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
12022 automatic-hscrolling. Users changed.
12023 <hscroll-margin>: Renamed from automatic-hscroll-margin.
12024 Users changed.
12025 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
12026
120272002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
12028
12029 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
12030
120312002-03-02 Kim F. Storm <storm@cua.dk>
12032
12033 * window.c (Fminibuffer_selected_window): New function.
12034 (syms_of_window): Defsubr it.
12035
120362002-03-01 Kim F. Storm <storm@cua.dk>
12037
12038 * window.h (struct window): New member phys_cursor_width.
12039
12040 * window.c (make_window, replace_window): Init phys_cursor_width.
12041
12042 * xterm.c (x_display_and_set_cursor): Blink box cursor using
12043 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
12044
12045 * w32term.c (x_display_and_set_cursor): Blink box cursor using
12046 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
12047
12048 * lisp.h (GCPRO6): New macro.
12049
12050 * process.c (Fopen_network_stream): Use GCPRO6.
12051
120522002-03-01 Kim F. Storm <storm@cua.dk>
12053
12054 * process.c (Qconnect, Qfailed): New variables.
12055 (syms_of_process): Intern and staticpro them.
12056 (Fprocess_status): Document connect and failed return values.
12057 [NON_BLOCKING_CONNECT]: New conditional.
12058 (connect_wait_mask, num_pending_connects): New variables.
12059 (status_message): Convert Qfailed status.
12060 (Fopen_network_stream): Added support for non-blocking connect.
12061 New optional args: filter, sentinel, non_blocking. Doc updated.
12062 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
12063 (deactivate_process): Handle pending non-blocking connect.
12064 (wait_reading_process_input): Poll for status of non-blocking
12065 connects. Exec sentinel directly when connect succeeds.
12066 (status_notify): Don't read process output if not yet connected.
12067
120682002-02-28 Kim F. Storm <storm@cua.dk>
12069
12070 * window.c: (minibuf_selected_window): Renamed from
12071 Vminibuf_selected_window. Users changed.
12072 (syms_of_window): Staticpro it.
12073
120742002-02-26 Kim F. Storm <storm@cua.dk>
12075
12076 The following changes add a new Vminibuf_selected_window variable
12077 which is similar to Vminibuf_scroll_window, but which is only set
12078 on entry to the minibuffer (from a non-minibuffer window):
12079
12080 * window.c: (Vminibuf_selected_window): New variable.
12081 (struct save_window_data): New member minibuf_selected_window.
12082 (Fset_window_configuration): Restore Vminibuf_selected_window.
12083 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
12084 Set minibuf_scroll_window member to nil if minibuf_level is 0.
12085 (compare_window_configurations): Compare minibuf_selected_window.
12086
12087 * window.h: (Vminibuf_selected_window): Declare extern.
12088
12089 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
12090 entry to minibuffer or on entry from a non-minibuffer window.
12091
12092 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
12093 Vminibuf_selected_window instead of Vminibuf_scroll_window.
12094
12095 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
12096 instead of Vminibuf_scroll_window when deciding in which window
12097 the region should be highlighted. Consequently, the region remains
12098 highlighteded even when a completion buffer is also displayed.
12099
121002002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
12101
12102 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
12103
12104 * xselect.c (Qcompound_text_with_extensions): Renamed from
12105 Qcompound_text_no_extensions.
12106 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
12107
121082002-02-26 Juanma Barranquero <lektu@terra.es>
12109
12110 * w32proc.c (syms_of_ntproc): Doc fix.
12111
121122002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12113
12114 * intervals.h: Include "dispextern.h" unconditionally.
12115
121162002-02-24 Jason Rumney <jasonr@gnu.org>
12117
12118 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
12119 and disp-table.elc.
12120 (lisp): Add emacs-lisp/backquote.elc.
12121
121222002-02-24 Kim F. Storm <storm@cua.dk>
12123
12124 * keymap.c (Flookup_key): Fixed problem in 2001-12-28 patch:
12125 The validation of the event type was too strict as it didn't
12126 allow string events; buffer names are used in bindings for
12127 menu-bar-select-buffer (see `menu-bar-update-buffers').
12128
121292002-02-23 Kim F. Storm <storm@cua.dk>
12130
12131 The following changes rework my patch of 2002-02-06 which
12132 added command remapping by entering the commands directly into
12133 the keymaps. Now, command remapping uses an explicit `remap'
12134 prefix in the keymaps, i.e. [remap COMMAND].
12135
12136 * keymap.c (Qremap, remap_command_vector): New variables.
12137 (is_command_symbol): Removed function.
12138 (Fdefine_key): No longer accept a symbol for KEY.
12139 Added validation of [remap COMMAND] argument for KEY.
12140 The DEF is no longer required to be a symbol when remapping a command.
12141 (Fremap_command): New function to remap command through keymaps.
12142 (Flookup_key): Perform command remapping initiated by
12143 Fremap_command directly for speed.
12144 (Fkey_binding): Use Fremap_command for command remapping.
12145 (where_is_internal): Handle new command remapping representation.
12146 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
12147 staticpro them. Defsubr Fremap_command.
12148
12149 * keymap.h (Fremap_command): Declare extern.
12150 (is_command_symbol): Remove extern.
12151
12152 * keyboard.c (command_loop_1): Use Fremap_command for command
12153 remapping; now try command remapping for all symbols.
12154
121552002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
12156
12157 * coding.h (run_pre_post_conversion_on_str): Add prototype.
12158
121592002-02-23 Jason Rumney <jasonr@gnu.org>
12160
12161 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
12162 on the string before encoding it.
12163 (Fw32_get_clipboard_data): Run post-read-conversion on the string
12164 after decoding it.
12165
12166 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
12167
121682002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12169
12170 * w32term.c (enter_timestamp): Remove unused static variable to
12171 prevent warning.
12172
12173 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
12174
121752002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
12176
12177 * w16select.c (Fw16_get_clipboard_data): Fix last change.
12178
12179 * xselect.c (selection_data_to_lisp_data): Fix last change.
12180
121812002-02-22 Jason Rumney <jasonr@gnu.org>
12182
12183 * w32term.h (struct w32_output): New member menu_command_in_progress.
12184
12185 * w32menu.c (menubar_selection_callback): Free the menu and
12186 clear the menu_command_in_progress flag.
12187
12188 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
12189 (menu_free_timer): New variable.
12190 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
12191 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
12192 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
12193 menu command is in progress.
12194 <WM_COMMAND>: Set the menu_command_in_progress flag.
12195 Kill any menu_free_timer that is running.
12196
12197 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
12198 Call ExtTextOutA rather than ExtTextOut.
12199
122002002-02-22 Eli Zaretskii <eliz@gnu.org>
12201
12202 * puresize.h (BASE_PURESIZE): Increase to 755000.
12203
122042002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
12205
12206 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
12207 on the string before encoding it.
12208 (Fw16_get_clipboard_data): Run post-read-conversion on the string
12209 after decoding it.
12210
122112002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
12212
12213 Support for ICCCM Extended Segments in X selections:
12214
12215 * xselect.c <Qcompound_text_no_extensions>: New variable.
12216 (syms_of_xselect): Intern and staticpro it.
12217 (selection_data_to_lisp_data): Run post-read-conversion on decoded
12218 selection text.
12219 (lisp_data_to_selection_data): If next-selection-coding-system is
12220 compound-text-no-extensions, set the type of selection to be
12221 compound-text.
12222
12223 * xterm.h (x_encode_text): Update prototype.
12224
12225 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
12226 callers changed. If SELECTIONP is non-zero, run the
12227 pre-write-conversion function before encoding the selection text.
12228
122292002-02-21 Kim F. Storm <storm@cua.dk>
12230
12231 * frame.c (syms_of_frame): Change mouse-highlight default to t.
12232
12233 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
12234 Correct composing of language-change event.
12235
122362002-02-20 Kim F. Storm <storm@cua.dk>
12237
12238 * keyboard.c (menu_bar_items): Don't include keymap or local-map
12239 bindings at PT when building menu (the menu is not updated often
12240 enough for this to work reliable).
12241 (tool_bar_items): Likewise.
12242 (current_active_maps): Removed unused (and buggy) function.
12243
122442002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12245
12246 * xfns.c (gif_load): Use correct width and height for GIF images.
12247
122482002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
12249
12250 * floatfns.c (Fatan): Accept an optional second arg and call
12251 atan2 if passed 2 args.
12252
122532002-02-18 Jason Rumney <jasonr@gnu.org>
12254
12255 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
12256
122572002-02-17 Jason Rumney <jasonr@gnu.org>
12258
12259 * w32term.c (x_autoselect_window_p): New variable.
12260 (syms_of_w32term): DEFVAR_BOOL and initialize it.
12261 (note_mouse_movement): Use it.
12262
12263 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
12264
12265 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
12266
12267 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
12268 New variables.
12269 (syms_of_w32fns): Intern and staticpro them.
12270 (x_frame_parms) <"fullscreen">: New parameter.
12271 (x_fullscreen_move, x_set_fullscreen): New functions.
12272 (x_set_frame_parameters): Support Qfullscreen.
12273 (x_real_positions): Save x/y_pixels_diff frame params.
12274 (x_figure_window_size): Support full-screen frames.
12275 (Fx_create_frame): Default the fullscreen parameter.
12276
12277 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
12278 (x_fullscreen_adjust): New functions.
12279 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
12280 fullscreen. Call x_check_fullscreen_move, and set the
12281 want_fullscreen member of output_data.w32
12282 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
12283
12284 * w32term.h: New enum for FULLSCREEN_* constants.
12285 (struct w32_output): New members want_fullscreen, x_pixels_diff,
12286 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
12287 (x-fullscreen-adjust): New prototype.
12288
122892002-02-17 Kim F. Storm <storm@cua.dk>
12290
12291 * frame.c: (Vmouse_highlight): New variable.
12292 (syms_of_frame): DEFVAR_LISP it.
12293
12294 * frame.h: (Vmouse_highlight): Declare extern.
8a8e19a3 12295
048addec 12296 * xterm.h (struct x_display_info): Add mouse_face_hidden.
8a8e19a3 12297
048addec
JD
12298 * xterm.c (disable_mouse_highlight): Removed variable.
12299 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
12300 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
12301 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
12302 and on after keyboard input.
12303 (x_term_init): Initialize mouse_face_hidden.
8a8e19a3 12304
048addec 12305 * msdos.h (struct display_info): Add mouse_face_hidden.
8a8e19a3 12306
048addec
JD
12307 * msdos.c (disable_mouse_highlight): Removed variable.
12308 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
12309 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
12310 (internal_terminal_init): Initialize mouse_face_hidden.
12311 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
12312 and on after keyboard input.
4f1b1854 12313
048addec 12314 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
4f1b1854 12315
048addec
JD
12316 * w32term.c (disable_mouse_highlight): Removed variable.
12317 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
12318 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
12319 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
12320 and on after keyboard input.
12321 (w32_initialize_display_info): Initialize mouse_face_hidden.
4f1b1854 12322
048addec 123232002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
4f1b1854 12324
048addec
JD
12325 * msdos.c (last_mouse_window): New variable.
12326 (dos_rawgetc): Fix last change--if the mouse is in the same window
12327 as recorded in last_mouse_window, don't select this window.
5cb6905d 12328
048addec 12329 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
5cb6905d 12330
048addec
JD
12331 * msdos.c (x_autoselect_window_p): New variable.
12332 (syms_of_msdos): Defvar it.
12333 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
12334 which the last mouse movement occured, unless it is already selected.
437dfb9f 12335
048addec
JD
12336 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
12337 New variables.
12338 (syms_of_xdisp): DEVFAR them.
12339 (hscroll_window_tree): Use automatic_hscroll_margin and
12340 Vautomatic_hscroll_step to compute the amount of window scrolling.
437dfb9f 12341
048addec 123422002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9f696a00 12343
048addec
JD
12344 * xterm.c (x-autoselect-window): New variable.
12345 (note_mouse_movement): Use it.
9f696a00 12346
048addec 12347 * keyboard.c: Do not include "systime.h" twice.
d57966d7 12348
048addec 123492002-02-15 Andreas Schwab <schwab@suse.de>
d57966d7 12350
048addec 12351 * puresize.h (BASE_PURESIZE): Increase to 9/5.
d57966d7 12352
048addec 12353 * alloc.c (NSTATICS): Increase to 1280.
74779f52 12354
048addec 123552002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
74779f52 12356
048addec 12357 * alloc.c (NSTATICS): Bump to 1026.
a474d59c 12358
048addec
JD
12359 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
12360 (Vx_super_keysym): New variables.
12361 (syms_of_xterm): DEFVAR_LISP them.
12362 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
12363 variables to determine which keys to use for the various modifiers.
a474d59c 12364
048addec 123652002-02-13 Kim F. Storm <storm@cua.dk>
fbb70ad9 12366
048addec
JD
12367 * window.c: (Vmode_line_in_non_selected_windows): Removed.
12368 (mode_line_in_non_selected_windows): New variable.
12369 (syms_of_window): DEFVAR_BOOL it.
fbb70ad9 12370
048addec
JD
12371 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
12372 Use mode_line_in_non_selected_windows.
12373 (mode_line_in_non_selected_windows): Declare extern.
12374 (Vmode_line_in_non_selected_windows): Removed extern.
2d10309f 12375
048addec 123762002-02-13 Richard M. Stallman <rms@gnu.org>
2d10309f 12377
048addec
JD
12378 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
12379 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
12380 (Fclear_this_command_keys): Doc fixes.
2d10309f 12381
048addec
JD
12382 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
12383 (update_face_from_frame_parameter): Increment face_change_count
12384 and windows_or_buffers_changed to force redisplay using changed faces.
7f2cddf3 12385
048addec
JD
12386 * xdisp.c (QCpropertize): New variable.
12387 (mode_line_proptrans_alist): New variable.
12388 (display_mode_element): New arg PROPS; all calls changed.
12389 Implement this, for strings.
12390 Handle literal output of strings by sharing the
12391 main-line code for strings, using local var `literal'.
12392 Handle :propertize feature.
12393 (syms_of_xdisp): Initialze and staticpro QCpropertize and
12394 mode_line_proptrans_alist.
0b1e6b54 12395
048addec 123962002-02-11 Kim F. Storm <storm@cua.dk>
7f2cddf3 12397
048addec
JD
12398 * window.c: (Vmode_line_in_non_selected_windows): New variable.
12399 (syms_of_window): DEFVAR_LISP it.
7f2cddf3 12400
048addec
JD
12401 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
12402 (CURRENT_MODE_LINE_FACE_ID): Use it.
12403 (Vmode_line_in_non_selected_windows): Declare extern.
e17144de 12404
048addec
JD
12405 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
12406 to get mode line face.
e17144de 12407
048addec 124082002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 12409
048addec
JD
12410 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
12411 variables; cus-start.el doesn't need them anymore.
44368f8f 12412
048addec 124132002-02-09 Kim F. Storm <storm@cua.dk>
f884b6f4 12414
048addec
JD
12415 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
12416 reduction. This fixes a display problem where stray newlines were
12417 inserted in the window (corrected by C-l). Clarified code (IMHO).
6637c996 12418
048addec 124192002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 12420
048addec 12421 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
6637c996 12422
048addec 12423 * xdisp.c (display_mode_lines): Fix last change.
453c5510 12424
048addec 124252002-02-09 Jason Rumney <jasonr@gnu.org>
453c5510 12426
048addec
JD
12427 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
12428 match each other.
12429 (w32_load_system_font): Prevent Cleartype fonts from loading.
12430 (Fx_show_tip): Ensure tip frames are above other topmost windows.
d1d070e3 12431
048addec 124322002-02-09 Kim F. Storm <storm@cua.dk>
d1d070e3 12433
048addec
JD
12434 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
12435 (CURRENT_MODE_LINE_HEIGHT): Use it.
12436 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 12437
048addec
JD
12438 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
12439 (pos_visible_p, handle_face_prop): Likewise.
12440 (display_mode_lines): Likewise, but for the real selected window.
12441 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 12442
048addec
JD
12443 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
12444 in non-selected windows.
12445 (realize_basic_faces): Realize it.
12446 (syms_of_term): Intern and staticpro it.
308dd672 12447
048addec 124482002-02-08 Kim F. Storm <storm@cua.dk>
edde72f6 12449
048addec
JD
12450 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
12451 Changed mail addresses to emacs-devel@gnu.org.
308dd672 12452
048addec 124532002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
3c1e6b46 12454
048addec
JD
12455 * fileio.c (Fsubstitute_in_file_name): If the file name includes
12456 ~user, and there's no such user, don't discard everything before ~user.
03950b5b 12457
048addec 12458 * floatfns.c (Fround): Doc fix.
3c1e6b46 12459
048addec 124602002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c1e11810 12461
048addec 12462 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
c1e11810 12463
048addec 124642002-02-07 Stefan Monnier <monnier@cs.yale.edu>
1996baee 12465
048addec 12466 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
1996baee 12467
048addec 124682002-02-07 Kim F. Storm <storm@cua.dk>
0065bb74 12469
048addec
JD
12470 * keymap.c (where_is_internal): Only check whether definition is
12471 remapped if it fulfills is_command_symbol.
0065bb74 12472
048addec 124732002-02-07 Andreas Schwab <schwab@suse.de>
0065bb74 12474
048addec 12475 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
b5cb6072 12476
048addec 12477 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
b5cb6072 12478
048addec 124792002-02-06 Kim F. Storm <storm@cua.dk>
15fff01d 12480
048addec
JD
12481 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
12482 defining command remapping. Doc updated.
12483 (Flookup_key): Remap command through keymap if KEY is a symbol.
12484 (is_command_symbol): New function.
12485 (Fkey_binding): Use it. New optional argument NO-REMAP.
12486 Doc updated. Callers changed. Perform command remapping via
12487 recursive call unless that arg is non-nil.
12488 (where_is_internal): New argument no_remap. Callers changed.
12489 Call recursively to find original key bindings for a remapped
12490 comand unless that arg is non-nil.
12491 (Fwhere_is_internal): New optional argument NO-REMAP.
12492 Doc updated. Callers changed. Pass arg to where_is_internal.
0065bb74 12493
048addec
JD
12494 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
12495 (is_command_symbol): Added prototype.
0d8466cc 12496
048addec
JD
12497 * keyboard.c (Vthis_original_command): New variable.
12498 (syms_of_keyboard): DEFVAR_LISP it.
12499 (command_loop_1): Set it, and perform command remapping.
15fff01d 12500
048addec 125012002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2fae9111 12502
048addec 12503 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
2d6c1fc0 12504
048addec 125052002-02-06 Jason Rumney <jasonr@gnu.org>
07025a55 12506
048addec 12507 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
07025a55 12508
048addec 125092002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
07025a55 12510
048addec 12511 * charset.c (get_charset_id): Use if-else instead of ?:.
3a232704 12512
048addec 125132002-02-06 Richard M. Stallman <rms@gnu.org>
539e92ad 12514
048addec 12515 * filelock.c (S_ISLNK): Define if not defined.
3a232704 12516
048addec 125172002-02-03 Richard M. Stallman <rms@gnu.org>
0cb8bb48 12518
048addec 12519 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
539e92ad 12520
048addec
JD
12521 * lread.c (read1): Redesign strategy for force_multibyte and
12522 force_singlebyte. Now is_multibyte records whether read_buffer
12523 is multibyte. Encountering any multibyte character makes it so.
4e02881b 12524
048addec 125252002-02-02 Stefan Monnier <monnier@cs.yale.edu>
4e02881b 12526
048addec
JD
12527 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
12528 with the same sequence, map that sequence to f10 rather than f0.
1ab964d7 12529
048addec 125302002-02-03 Andreas Schwab <schwab@suse.de>
1ab964d7 12531
048addec
JD
12532 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
12533 latter never being defined on GNU/Linux.
749f499f 12534
048addec 125352002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
749f499f 12536
048addec
JD
12537 * xfaces.c (realize_default_face): Don't set the weight and slant of
12538 the default face to Qnormal, unless these attributes are unspecified.
b5d9aaba 12539
048addec 125402002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3a232704 12541
048addec
JD
12542 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
12543 Call cancel_hourglass unconditionally.
d0fd26dd 12544
048addec
JD
12545 * eval.c (Fsignal): Remove duplicated declaration of
12546 the variable `display_hourglass_p'.
b4c45162 12547
048addec 125482002-01-31 Richard M. Stallman <rms@gnu.org>
d0fd26dd 12549
048addec 12550 * editfns.c (region_limit): Nicer error message.
c95eaa61 12551
048addec
JD
12552 * coding.c (decode_composition_emacs_mule):
12553 Give up if NCOMPONENT gets too large to index `component'.
c95eaa61 12554
048addec
JD
12555 * callint.c (check_mark): New arg to specify clearer error message.
12556 Callers changed.
c95eaa61 12557
048addec 125582002-01-27 Richard M. Stallman <rms@gnu.org>
c95eaa61 12559
048addec 12560 * minibuf.c (Fcompleting_read): Doc fix.
c95eaa61 12561
048addec 125622002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c95eaa61 12563
048addec
JD
12564 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
12565 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
12566 Fix doc-strings.
c95eaa61 12567
048addec 125682002-01-26 Richard M. Stallman <rms@gnu.org>
c95eaa61 12569
048addec 12570 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
c95eaa61 12571
048addec
JD
12572 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
12573 and scroll_up_aggressively.
c95eaa61 12574
048addec 125752002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
31877e0a 12576
048addec 12577 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
31877e0a 12578
048addec 125792002-01-25 Stefan Monnier <monnier@cs.yale.edu>
e2c3786a 12580
048addec
JD
12581 * textprop.c (Fnext_property_change, Fnext_single_property_change)
12582 (Fprevious_property_change, Fprevious_single_property_change):
12583 Stay within the narrowed-buffer boundaries.
e2c3786a 12584
048addec 125852002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
c513fc03 12586
048addec
JD
12587 * term.c (Ftty_display_color_cells): New function.
12588 (syms_of_term): Defsubr it.
12589 (Ftty_display_color_cells, Ftty_display_color_p): Change the
12590 argument name to DISPLAY. Doc fix.
bf794306 12591
048addec
JD
12592 * dispextern.h: Add prototype for set_tty_color_mode and
12593 tty_setup_colors.
bf794306 12594
048addec 125952002-01-24 Jason Rumney <jasonr@gnu.org>
bf794306 12596
048addec
JD
12597 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
12598 If region left to draw is not what was expected, mark the frame as
12599 garbaged.
62582985 12600
048addec
JD
12601 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
12602 Combine the regions returned by BeginPaint and GetUpdateRect.
c513fc03 12603
048addec 126042002-01-23 Jason Rumney <jasonr@gnu.org>
3509a04c 12605
048addec
JD
12606 * w32term.c (x_update_window_begin): Only hide caret if
12607 w32_use_visible_system_caret is set.
12608 (x_update_window_end): Only show caret if
12609 w32_use_visible_system_caret is set.
12610 (syms_of_w32term): Handle SystemParametersInfo call failing.
3509a04c 12611
048addec 12612 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
3509a04c 12613
048addec 126142002-01-22 Richard M. Stallman <rms@gnu.org>
3509a04c 12615
048addec
JD
12616 * unexelf.c (unexec): Define n so as to cause compilation error
12617 for the code where people have often written n instead of nn.
1e9a6186 12618
048addec 12619 * .gdbinit (hookpost-run): Defined.
1e9a6186 12620
048addec 126212002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e4e34e31 12622
048addec 12623 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
e4e34e31 12624
048addec 126252002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4521d1fc 12626
048addec
JD
12627 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
12628 if fullscreen is being set.
7c75be36 12629
048addec 126302002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4521d1fc 12631
048addec
JD
12632 * minibuf.c (Fminibuffer_contents)
12633 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
12634 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
4521d1fc 12635
048addec 126362002-01-21 Richard M. Stallman <rms@gnu.org>
4521d1fc 12637
048addec 12638 * window.c (check_frame_size): Fix minimum height calculation.
93dec019 12639
048addec 126402002-01-20 Ken Raeburn <raeburn@gnu.org>
93dec019 12641
048addec
JD
12642 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
12643 height before comparison.
12644 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
905cc05a 12645
048addec 126462002-01-20 Jason Rumney <jasonr@gnu.org>
2ed06289 12647
048addec
JD
12648 * w32term.c (w32_system_caret_width): Remove.
12649 (w32_use_visible_system_caret): New user flag.
12650 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
12651 Windows reports a screen reader running.
12652 (x_update_window_begin): Hide the system caret.
12653 (x_update_window_end): Show the system caret.
12654 (x_display_and_set_cursor): Don't draw a cursor when
12655 w32_use_visible_system_caret is set. Do not adjust width.
0e79d667 12656
048addec
JD
12657 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
12658 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
12659 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
12660 the user requests it. Use system default width when creating.
12661 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
0e79d667 12662
048addec
JD
12663 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
12664 New window messages.
905cc05a 12665
048addec 126662002-01-20 Richard M. Stallman <rms@gnu.org>
82a7ab23 12667
048addec 12668 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
d75bec6a 12669
048addec 126702002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
52dcb476 12671
048addec 12672 * doprnt.c (doprnt1): Fix typos in error call.
82a7ab23 12673
048addec 126742002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
82a7ab23 12675
048addec 12676 * unexelf.c (unexec) [__sgi]: Support the .got sections.
82a7ab23 12677
048addec 126782002-01-20 Jason Rumney <jasonr@gnu.org>
4d0fa4f3 12679
048addec
JD
12680 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
12681 that Windows returns. If a double check fails, try to guess how
12682 ExtTextOut is going to act.
4d0fa4f3 12683
048addec
JD
12684 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
12685 in place of stricmp.
12686 (w32_list_synthesized_fonts): Removed.
12687 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
12688 (struct enumfont_t): New element; list.
12689 (enum_font_cb2): List all style and charset variations of a font.
12690 (Fw32_select_font): New optional argument; include_proportional.
12691 Exclude vertical fonts. Exclude proportional fonts unless
12692 include_proportional is non-nil.
12693 (w32_enable_synthesized_fonts): Change to a boolean.
12694 (Fw32_send_sys_command): Doc fix.
493faf20 12695
048addec 126962002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
493faf20 12697
048addec
JD
12698 * dispnew.c (update_frame): Move the variable `tem' to the block
12699 where it is used.
4971e491 12700
048addec 127012002-01-19 Jason Rumney <jasonr@gnu.org>
4971e491 12702
048addec
JD
12703 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
12704 call to face-set-after-frame-default.
4971e491 12705
048addec 127062002-01-18 Richard M. Stallman <rms@gnu.org>
d911a0fa 12707
048addec
JD
12708 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
12709 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
d911a0fa 12710
048addec 127112002-01-17 Richard M. Stallman <rms@gnu.org>
d911a0fa 12712
048addec
JD
12713 * window.c (enlarge_window): When exceeding size of parent,
12714 directly delete all the siblings instead of trying to resize it.
201c831a 12715
048addec 127162002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
201c831a 12717
048addec 12718 * term.c (set_tty_color_mode): Remove unused variable `tem'.
201c831a 12719
048addec 127202002-01-16 Henrik Enberg <henrik@enberg.org>
34e39c95 12721
048addec 12722 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
34e39c95 12723
048addec 127242002-01-16 Kim F. Storm <storm@cua.dk>
d77fbc16 12725
048addec
JD
12726 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
12727 is invisible. This can happen if cursor is on top line of a
12728 window, and we switch to a buffer with a header line.
d77fbc16 12729
048addec 12730 * w32term.c (x_erase_phys_cursor): Ditto.
61e3b944 12731
048addec 127322002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
61e3b944 12733
048addec
JD
12734 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
12735 `dont_resize' only when used.
61e3b944 12736
048addec 12737 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
70da46c3 12738
048addec 127392002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
70da46c3 12740
048addec
JD
12741 * xdisp.c (display_mode_element): When computing charpos, depend
12742 on multibyteness of elt, not the text in field.
8af01033 12743
048addec 127442002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8af01033 12745
048addec
JD
12746 * buffer.c (Fkill_all_local_variables):
12747 Increment `update_mode_lines' only once.
7363986a 12748
048addec 127492002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7363986a 12750
048addec
JD
12751 * lisp.h (adjust_after_replace_noundo)
12752 (Fupdate_coding_systems_internal): Add prototypes.
d9e6c4b1 12753
048addec 12754 * sound.c (Fplay_sound): Initialize header_size also for :data case.
d20fc48a 12755
048addec 127562002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
d9e6c4b1 12757
048addec
JD
12758 Support for the --color command-line argument and tty-color-mode
12759 frame parameter:
f1a85b89 12760
048addec
JD
12761 * term.c (tty_default_color_capabilities, tty_setup_colors)
12762 (set_tty_color_mode): New functions.
12763 (term_init): Call tty_default_color_capabilities.
12764 (Qtty_color_mode_alist): New variable.
12765 (syms_of_term): Intern and staticpro it.
f1a85b89 12766
048addec
JD
12767 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
12768 frames.
12769 (do_switch_frame): For termcap frames, switch the tty
12770 color mode as specified by the frame's parameters.
12771 (Qtty_color_mode): New variable.
12772 (syms_of_frame): Intern and staticpro it.
3a62677f 12773
048addec
JD
12774 * emacs.c (USAGE2): Add the --color option.
12775 (standard_args): Ditto.
72244db2 12776
048addec
JD
127772002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12778
12779 * xterm.h (struct x_output): New members want_fullscreen,
12780 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
12781 y_pixels_outer_diff.
12782 New enum for FULLSCREEN_* constants.
12783 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
12784 is NULL.
12785 (x_fullscreen_adjust): Add prototype.
3a62677f 12786
048addec
JD
12787 * emacs.c (USAGE2): Add the new full-screen arguments.
12788 (standard_args): Ditto.
3a62677f 12789
048addec
JD
12790 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
12791 New variables.
12792 (syms_of_xfns): Intern and staticpro them.
12793 (x_frame_parms) <"fullscreen">: New parameter.
12794 (x_fullscreen_move, x_set_fullscreen): New functions.
12795 (x_set_frame_parameters): Support for Qfullscreen.
12796 (x_real_positions): More accurate computation of the frame position.
12797 (x_figure_window_size): Support full-screen frames.
12798 (Fx_create_frame): Default the fullscreen parameter.
3a62677f 12799
048addec
JD
12800 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
12801 (XTread_socket) <Expose>: Call x_check_fullscreen.
12802 <ConfigureNotify>: Don't resize to fullscreen.
12803 Call x_check_fullscreen_move, and set the want_fullscreen member of
12804 output_data.x.
3a62677f 12805
048addec 128062002-01-13 Jason Rumney <jasonr@gnu.org>
9d113d9d 12807
048addec
JD
12808 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
12809 for mice with more than 3 buttons.
b8523839 12810
048addec
JD
12811 * w32term.c (parse_button): New parameter xbutton. Callers changed.
12812 (w32_read_socket): Handle new "XBUTTON" messages.
9464dea4 12813
048addec
JD
12814 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
12815 (syms_of_w32fns): DEFVAR_BOOL it.
12816 (w32_wnd_proc): Handle new "XBUTTON" messages.
9d113d9d 12817
048addec 128182002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
70ec1377 12819
048addec 12820 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
70ec1377 12821
048addec 128222002-01-13 Andreas Schwab <schwab@suse.de>
92f7dd37 12823
048addec 12824 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
92f7dd37 12825
048addec 128262002-01-12 Andreas Schwab <schwab@suse.de>
c93674bb 12827
048addec
JD
12828 * .gdbinit (xbuffer): Remove address operator since data is now a
12829 pointer.
c93674bb 12830
048addec 128312002-01-11 Richard M. Stallman <rms@gnu.org>
59b59892 12832
048addec 12833 * insdel.c (adjust_after_replace_noundo): New function.
59b59892 12834
048addec 12835 * coding.c (code_convert_region): Don't copy old text if undo disabled.
c6ea2775 12836
048addec 128372002-01-09 Jason Rumney <jasonr@gnu.org>
c6ea2775 12838
048addec
JD
12839 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
12840 when checking for multiple frames.
91175673 12841
048addec 128422002-01-08 Richard M. Stallman <rms@gnu.org>
91175673 12843
048addec
JD
12844 * window.c (delete_window): Rewrite the code for changing the
12845 selected window to handle the case where WINDOW is not a leaf.
91175673 12846
048addec 128472002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
e0fead5d 12848
048addec
JD
12849 * process.c (send_process): Set src_multibyte to 1 after the call
12850 top setup_coding_system, not before the call.
e0fead5d 12851
048addec 128522002-01-07 Jason Rumney <jasonr@gnu.org>
e0fead5d 12853
048addec
JD
12854 * xmenu.c (set_frame_menubar, xmenu_show):
12855 (xdialog_show): Initialize wv->help to Qnil.
c186cdb3 12856
048addec
JD
12857 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
12858 (w32_dialog_show): Initialize wv->help to Qnil.
c186cdb3 12859
048addec 128602002-01-06 Jason Rumney <jasonr@gnu.org>
c186cdb3 12861
048addec 12862 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
c186cdb3 12863
048addec 12864 * w32menu.c (w32_menu_display_help): Revert last change.
58cfce98 12865
048addec 12866 * xmenu.c (menu_highlight_callback): Revert last change.
58cfce98 12867
048addec 128682002-01-06 Andreas Schwab <schwab@suse.de>
62854fe2 12869
048addec
JD
12870 * insdel.c (make_gap_larger): Make sure buffer size does not
12871 overflow range of int.
62854fe2 12872
048addec 128732002-01-05 Jason Rumney <jasonr@gnu.org>
656f46bb 12874
048addec
JD
12875 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
12876 OVERLAPS_P.
656f46bb 12877
048addec 12878 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
656f46bb 12879
048addec
JD
12880 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
12881 to the left or to the right of the pointer, put it against
12882 the left screen edge.
12883 (x_frame_parms): Add missing braces around initializer.
036e218d 12884
048addec
JD
12885 * w32term.c (x_setup_relief_colors): Don't compute an image's
12886 background color if it doesn't have a Pixmap.
12887 (notice_overwritten_cursor): Don't depend on
12888 output_cursor and updated_area. Compare pixel coordinates with
12889 window's cursor pixel coordinates.
12890 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
12891 Call notice_overwritten_cursor with new arg list.
12892 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
12893 unconditionally.
12894 (x_draw_image_relief): Use predefined macro instead of
12895 constant when the value of `tool_bar_button_relief' is negative.
036e218d 12896
048addec 12897 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
7ddb2c16 12898
048addec 128992002-01-04 Richard M. Stallman <rms@gnu.org>
7ddb2c16 12900
048addec 12901 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
ace9b298 12902
048addec 129032002-01-03 Richard M. Stallman <rms@gnu.org>
90647b07 12904
048addec
JD
12905 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
12906 (Fkey_binding): Try the `keymap' property map first.
12907 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
12908 minor mode bindings.
90647b07 12909
048addec 129102002-01-03 Kim F. Storm <storm@cua.dk>
ace9b298 12911
048addec 12912 * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
ace9b298 12913
048addec 129142002-01-02 Richard M. Stallman <rms@gnu.org>
ace9b298 12915
048addec
JD
12916 * keyboard.c (read_key_sequence): Handle the keymap property
12917 before minor mode maps.
9fbc32aa 12918
048addec
JD
12919 * editfns.c (Fformat): Update thissize from field_width
12920 based on the actual width, in the string case.
036e218d 12921
048addec 129222002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fbc32aa 12923
048addec
JD
12924 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
12925 when used as truth value to prevent gcc warnings.
9fbc32aa 12926
048addec
JD
12927 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
12928 * w32proc.c: Include <config.h>.
9fbc32aa 12929
048addec 129302002-01-01 Andreas Schwab <schwab@suse.de>
9fbc32aa 12931
048addec
JD
12932 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
12933 not EMACS_INT, to make them compatible with DEFVAR_INT.
12934 * lisp.h (max_specpdl_size): Adjust declaration.
9fbc32aa 12935
048addec 129362002-01-01 Richard M. Stallman <rms@gnu.org>
9fbc32aa 12937
048addec
JD
12938 * print.c (print_object): Test print_escape_nonascii only for
12939 unibyte strings.
12940 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
12941 when outputting to a multibyte buffer.
9fbc32aa 12942
048addec 129432001-12-29 Richard M. Stallman <rms@gnu.org>
9fbc32aa 12944
048addec
JD
12945 * print.c (print_object): In multibyte string, use hex escapes.
12946 Use octal only for unibyte strings.
12947 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
0142178a 12948
048addec
JD
12949 * lread.c (read_escape): New arg BYTEREP for reporting whether
12950 escape forces unibyte or multibyte.
12951 (read1): When reading a string, take note of that info.
0142178a 12952
048addec 129532001-12-29 Ken Raeburn <raeburn@gnu.org>
d4824a5d 12954
048addec
JD
12955 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
12956 comparison to test lisp value returned by Fget.
d4824a5d 12957
048addec 129582001-12-29 Richard M. Stallman <rms@gnu.org>
b1356234 12959
048addec 12960 * lisp.h (max_specpdl_size): Add declaration.
b1356234 12961
048addec 12962 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
3ce081f5 12963
048addec
JD
12964 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
12965 Handle modifier bits. Correct typo in error message.
99e380ee 12966
048addec 129672001-12-28 Richard M. Stallman <rms@gnu.org>
3ce081f5 12968
048addec
JD
12969 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
12970 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
12971 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
12972 Update calls to Fdefine_abbrev.
12973 (write_abbrev): Update for changed data format.
12974 Don't list "system" abbrevs.
12975 (Fexpand_abbrev): Update use count with new data format.
12976 (describe_abbrev): Update for changed data format.
12977 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
66458f32 12978
048addec 12979 * config.in (HAVE_MBSINIT): Add #undef.
66458f32 12980
048addec 12981 * strftime.c (mbsinit): Define as no-op if not available.
66458f32 12982
048addec
JD
12983 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
12984 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
59a86c99 12985
048addec
JD
12986 * keymap.c (Flookup_key): Error message if key has wrong data type.
12987 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
12988 (exclude_key): New variable.
59a86c99 12989
048addec 129902001-12-28 Gerd Moellmann <gerd@gnu.org>
eb77a5f4 12991
048addec
JD
12992 * xterm.c (x_setup_relief_colors): Don't compute an image's
12993 background color if it doesn't have a Pixmap.
eb77a5f4 12994
048addec
JD
12995 * xterm.c (notice_overwritten_cursor): Don't depend on
12996 output_cursor and updated_area. Compare pixel coordinates with
12997 window's cursor pixel coordinates.
12998 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
12999 Call notice_overwritten_cursor with new arg list.
13000 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
13001 unconditionally.
eb77a5f4 13002
048addec
JD
13003 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
13004 height of the cursor line to the amount to scroll.
eb77a5f4 13005
048addec 130062001-12-27 Richard M. Stallman <rms@gnu.org>
bb313871 13007
048addec
JD
13008 * intervals.c (set_point_both): The position after an invisible,
13009 intangible character is not an acceptable stopping point.
bb313871 13010
048addec 130112001-12-27 Ken Raeburn <raeburn@gnu.org>
55b43a63 13012
048addec
JD
13013 * window.c (enlarge_window): In new preserve_before code, convert
13014 CURBEG from lisp object to integer before doing arithmetic.
6052529b 13015
048addec 130162001-12-27 Richard M. Stallman <rms@gnu.org>
3ce081f5 13017
048addec 13018 * bytecode.c (Fbyte_code): Undo previous change.
3ce081f5 13019
048addec 130202001-12-26 Kim F. Storm <storm@cua.dk>
3ce081f5 13021
048addec
JD
13022 * keyboard.c (record_char): Ignore duplicate help-echo events only
13023 separated by mouse-movement. When tracking mouse, only record
13024 first and last mouse-movement event in same window.
13025 Don't record mouse-movement events in keyboard macros.
3ce081f5 13026
048addec 130272001-12-25 Richard M. Stallman <rms@gnu.org>
55b43a63 13028
048addec
JD
13029 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
13030 (Fenlarge_window): New arg PRESERVE_BEFORE.
111ed14e 13031
048addec
JD
13032 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
13033 instead of Fstring_as_unibyte.
9fabb2f5 13034
048addec 130352001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fabb2f5 13036
048addec 13037 The following changes remove mocklisp support:
9fabb2f5 13038
048addec 13039 * mocklisp.h, mocklisp.c: Files removed.
111ed14e 13040
048addec
JD
13041 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
13042 `Qmocklisp' and `Qmocklisp_arguments'.
13043 Remove prototype of syms_of_mocklisp.
2fa0eedf 13044
048addec 13045 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
d1420435 13046
048addec
JD
13047 * callint.c: Do not include mocklisp.h.
13048 (Fcall_interactively): Do not test for mocklisp case.
2fa0eedf 13049
048addec
JD
13050 * eval.c: Remove variables `Qmocklisp_arguments',
13051 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
13052 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
13053 Do not test for mocklisp case.
13054 (Fwhile): Remove unused variable `tem'.
13055 (syms_of_eval): Remove variable `moclisp-arguments'.
ebcbef4e 13056
048addec 13057 * data.c (wrong_type_argument): Remove mocklisp case.
5c131048 13058
048addec 13059 * doc.c (Fdocumentation): Remove mocklisp case.
5c131048 13060
048addec 13061 * emacs.c (main): Do not call syms_of_mocklisp.
5c131048 13062
048addec 130632001-12-21 Richard M. Stallman <rms@gnu.org>
96d276c3 13064
048addec
JD
13065 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
13066 to the left or to the right of the pointer, put it against
13067 the left screen edge.
6108b49c 13068
048addec 130692001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
96d276c3 13070
048addec
JD
13071 * Makefile.in (distclean): Remove .gdbinit if we are building
13072 outside the source tree.
5eea19a4 13073
048addec 130742001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5eea19a4 13075
048addec 13076 * w32.c (emacs_root_dir): New function.
5eea19a4 13077
048addec 13078 * msdos.c (emacs_root_dir): New function.
5eea19a4 13079
048addec
JD
13080 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
13081 of the current drive as the fallback for default_directory.
438e57dd 13082
048addec
JD
13083 * dired.c (file_name_completion): Run the elements of
13084 completion-ignored-extensions through ENCODE_FILE.
438e57dd 13085
048addec
JD
13086 * lisp.h (scmp): Remove prototype, since it's now a static
13087 function private to dired.c.
c88e5347 13088
048addec 130892001-12-18 Richard M. Stallman <rms@gnu.org>
c88e5347 13090
048addec
JD
13091 * dired.c (scmp): Function moved from minibuf.c.
13092 Delete multibyte handling--used only on encoded strings.
59ce1461 13093
048addec 13094 * minibuf.c (scmp): Function moved to dired.c.
59ce1461 13095
048addec 13096 * fns.c (merge): Add QUIT call.
59ce1461 13097
048addec 130982001-12-18 Dave Love <fx@gnu.org>
8727d588 13099
048addec
JD
13100 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
13101 language/georgian.el.
8727d588 13102
048addec 131032001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
cc63037e 13104
048addec
JD
13105 * Makefile.in (lisp, shortlisp): Synchronize with changes to
13106 lisp/Makefile.in:DONTCOMPILE.
cc63037e 13107
048addec 131082001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
cc63037e 13109
048addec
JD
13110 * xdisp.c (window_box_height): Do not return negative values.
13111 From Gerd Moellmann <gerd@gnu.org>.
cc63037e 13112
048addec 13113 * keyboard.c (head_table): Add missing braces around initializer.
cc63037e 13114
048addec 13115 * term.c (keys): Likewise.
deece6f5 13116
048addec 13117 * xfns.c (x_frame_parms, visual_classes): Likewise.
deece6f5 13118
048addec 131192001-12-17 Sam Steingold <sds@gnu.org>
1b944d9c 13120
048addec
JD
13121 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
13122 patch (COMPOSING_P, not COMPOSING).
28ff4293 13123
048addec 131242001-12-17 Richard M. Stallman <rms@gnu.org>
a395ef6a 13125
048addec 13126 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
a395ef6a 13127
048addec
JD
13128 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
13129 before calling decode_coding.
9b46de40 13130
048addec 13131 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
9b46de40 13132
048addec
JD
13133 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
13134 instead of only for COMPOSITION_DISABLED.
9b46de40 13135
048addec 131362001-12-16 Richard M. Stallman <rms@gnu.org>
aff37336 13137
048addec 13138 * alloc.c (pure_alloc): After overflow, allocate just a small block.
aff37336 13139
048addec 13140 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
b9937f07 13141
048addec
JD
13142 * buffer.h (struct buffer): New field `display_error_modiff'.
13143 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
b9937f07 13144
048addec 13145 * window.c (Frecenter): Clear display_error_modiff field.
2cd23960 13146
048addec
JD
13147 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
13148 Call redisplay_window, but not if display_error_modiff field says no.
13149 (redisplay_window_error): New function.
13150 (displayed_buffer): New variable.
13151 (redisplay_internal, redisplay_windows): Call the new functions
13152 instead of redisplay_window directly.
2cd23960 13153
048addec 131542001-12-15 Richard M. Stallman <rms@gnu.org>
2cd23960 13155
048addec 13156 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
2cd23960 13157
048addec 131582001-12-14 Andrew Innes <andrewi@gnu.org>
a4184c1c 13159
048addec 13160 * makefile.w32-in (EMACSLOADPATH): Define.
f9711de4 13161 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
048addec 13162 (bootstrap-temacs): Remove dependency on bootstrap-clean.
a4184c1c 13163
048addec 131642001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
f6fa0866 13165
048addec
JD
13166 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
13167 parameter have a numeric value all the time.
f6fa0866 13168
048addec 13169 * w32fns.c (x_report_frame_params): Likewise.
f4ca4b00 13170
048addec 131712001-12-12 Richard M. Stallman <rms@gnu.org>
f4ca4b00 13172
048addec 13173 * fileio.c (Fwrite_region): Doc fix.
f4e25f94 13174
048addec
JD
13175 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
13176 (redisplay_internal): Call clear_image_cache only for window terminals.
f4e25f94 13177
048addec 131782001-12-12 Gerd Moellmann <gerd@gnu.org>
91c153e2 13179
048addec
JD
13180 * xdisp.c (move_it_vertically_backward): Change heuristic
13181 for the case that we didn't move far enough initially.
91c153e2 13182
048addec
JD
13183 * window.c (Frecenter): Simplify computation in the case of window
13184 system frames and ARG < 0; use window_box_height.
65b7d3e7 13185
048addec 131862001-12-11 Richard M. Stallman <rms@gnu.org>
65b7d3e7 13187
048addec
JD
13188 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
13189 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
6b5f6311 13190
048addec 131912001-12-11 Andrew Innes <andrewi@gnu.org>
6b5f6311 13192
048addec
JD
13193 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
13194 arg is negative.
be676094 13195
048addec 131962001-12-11 Richard M. Stallman <rms@gnu.org>
be676094 13197
048addec
JD
13198 * m/hp800.h: Split the __hpux conditional into the parts
13199 that are right for GNU/Linux too and the parts that are not.
13200 Use the former if GNU_LINUX.
13201 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
032a857d 13202
048addec 13203 * s/gnu-linux.h (GNU_LINUX): Defined.
032a857d 13204
048addec 132052001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
032a857d 13206
048addec
JD
13207 * macros.c, msdos.c, w16select.c: Change doc-string comments to
13208 `new style' [w/`doc:' keyword].
032a857d 13209
048addec 132102001-12-10 Jason Rumney <jasonr@gnu.org>
b6270150 13211
048addec
JD
13212 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
13213 before using.
b6270150 13214
048addec 132152001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
792e5cbd 13216
048addec
JD
13217 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
13218 keyword].
98cbb9fa 13219
048addec 132202001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
98cbb9fa 13221
048addec 13222 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
98cbb9fa 13223
048addec 13224 * s/hpux10.h (srand48): Don't undefine.
98cbb9fa 13225
048addec 132262001-12-09 Jason Rumney <jasonr@gnu.org>
792e5cbd 13227
048addec
JD
13228 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
13229 Add comment to explain where the struct came from.
13230 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
13231 (add_menu_item): Process pop-up menus first to avoid memory leak.
13232 (add_menu_item, w32_menu_display_help): Use `help' field as
13233 Lisp_Object.
13234 (w32_free_submenu_strings): Only free owner-drawn strings.
fa336b91 13235
048addec 132362001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
fa336b91 13237
048addec 13238 * COPYING: Moved back.
fa336b91 13239
048addec
JD
13240 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
13241 Add parentheses around && within ||.
077907d4 13242
048addec 13243 * indent.c (compute_motion): Likewise.
aa2af83a 13244
048addec 13245 * intervals.c (merge_properties_sticky): Likewise.
60a653f1 13246
048addec
JD
13247 * coding.c (setup_coding_system, shrink_encoding_region)
13248 (Fdecode_sjis_char): Likewise.
60a653f1 13249
048addec 132502001-12-07 Andreas Schwab <schwab@suse.de>
60a653f1 13251
048addec
JD
13252 * xdisp.c (display_mode_element): Don't read past end of string if
13253 it ends with '%'.
60a653f1 13254
048addec
JD
13255 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
13256 can hold.
60a653f1 13257
048addec
JD
13258 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
13259 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
13260 type changed to Lisp_Object.
13261 (syms_of_data): DEFVAR_LISP them.
60a653f1 13262
048addec 132632001-12-07 Richard M. Stallman <rms@gnu.org>
60a653f1 13264
048addec
JD
13265 * callproc.c (init_callproc): Set Vdata_directory based on the source
13266 location whenever Emacs was run uninstalled.
60a653f1 13267
048addec 132682001-12-06 Paul Eggert <eggert@twinsun.com>
60a653f1 13269
048addec
JD
13270 * config.in (HAVE_WORKING_VFORK): New #undefs.
13271 * process.c (create_process):
13272 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
13273 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
13274 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
13275 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
13276 * m/intel386.h (HAVE_VFORK): Likewise.
13277 * m/mips-siemens.h (HAVE_VFORK): Likewise.
13278 * m/mips.h (HAVE_VFORK): Likewise.
13279 * s/freebsd.h (vfork): Remove #define.
13280 * s/lynxos.h (HAVE_VFORK): Remove #undef.
13281 * s/usg5-4-2.h: Fix comment about vfork.
60a653f1 13282
048addec 132832001-12-06 Richard M. Stallman <rms@gnu.org>
60a653f1 13284
048addec
JD
13285 * s/hpux10.h (random): Add undef.
13286 (HAVE_RANDOM): Define it just once.
60a653f1 13287
048addec 132882001-12-06 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 13289
048addec 13290 * eval.c: Undo last change: the standard syntax is not wanted.
60a653f1 13291
048addec 132922001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 13293
048addec
JD
13294 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
13295 scroll bars of the frame before deleting the frame itself. If the
13296 frame has a widget, delete the frame with XtDestroyWidget, and do
13297 not call XDestroyWindow before that.
60a653f1 13298
048addec 132992001-12-06 Kim F. Storm <storm@cua.dk>
60a653f1 13300
048addec 13301 * xfns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 13302
048addec 13303 * w32fns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 13304
048addec 133052001-12-05 Andrew Innes <andrewi@gnu.org>
60a653f1 13306
048addec
JD
13307 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
13308 excessively large.
60a653f1 13309
048addec
JD
13310 * insdel.c (make_gap_larger): New function.
13311 (make_gap_smaller): New function.
13312 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
13313 Call make_gap_smaller if arg is negative.
60a653f1 13314
048addec 133152001-12-04 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 13316
048addec
JD
13317 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
13318 Pass a dummy argument when calling interrupt_signal.
13319 (parse_menu_item): Mark disabled items before checking for empty def.
13320 (read_char_minibuf_menu_prompt): Make safety more visible.
13321 (read_key_sequence): Add a `first_unbound' variable.
13322 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
13323 unbound prefix as soon as we can detect it.
60a653f1 13324
048addec
JD
13325 * doc.c (Fsnarf_documentation): Add prototype.
13326 (get_doc_string): Handle negative arguments.
13327 (Fdocumentation): Use AREF and ASIZE.
13328 Move the calls to get_doc_string to a single place.
13329 Don't confuse an interactive-spec for a docstring reference.
13330 (Fdocumentation_property): Take advantage of the fact that
13331 get_doc_string now ignores the sign of the docstring position.
60a653f1 13332
048addec 13333 * eval.c: Use standard syntax for usage in docstrings.
60a653f1 13334
048addec 133352001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 13336
a64387ee 13337 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
60a653f1 13338
048addec 133392001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 13340
048addec
JD
13341 * xterm.c (x_draw_image_relief): Use predefined macro instead of
13342 constant when the value of `tool_bar_button_relief' is negative.
60a653f1 13343
048addec 133442001-12-02 Richard M. Stallman <rms@gnu.org>
60a653f1 13345
048addec
JD
13346 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
13347 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
60a653f1 13348
048addec 13349 * fileio.c (read_non_regular): Delete Fsignal call.
60a653f1 13350
048addec 133512001-12-01 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 13352
048addec 13353 * lisp.h (run_hook_list_with_args): Undo last change.
60a653f1 13354
048addec 133552001-12-01 Gerd Moellmann <gerd@gnu.org>
60a653f1 13356
048addec 13357 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
60a653f1 13358
048addec 133592001-12-01 Jason Rumney <jasonr@gnu.org>
60a653f1 13360
f63fd14e 13361 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
60a653f1 13362
048addec
JD
13363 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
13364 [!WM_MOUSELEAVE]: Define.
60a653f1 13365
048addec
JD
13366 * w32menu.c (current_popup_menu, get_menu_item_info):
13367 (set_menu_item_info): New vars.
13368 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
13369 (w32_menu_show): Set current_popup_menu.
13370 (add_menu_item): Allocate new strings for owner-drawn menu items
13371 and help strings.
13372 Use owner-draw for disabled menu items again.
13373 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
13374 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
60a653f1 13375
048addec
JD
13376 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
13377 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
13378 <WM_EXITMENULOOP>: Free menu strings.
13379 <WM_MOUSELEAVE>: Stop tracking mouse.
13380 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
60a653f1 13381
048addec
JD
13382 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
13383 and mouse face.
60a653f1 13384
048addec 133852001-12-01 Kim F. Storm <storm@cua.dk>
60a653f1 13386
048addec
JD
13387 The following changes add left-fringe and right-fringe
13388 frame parameters to adjust fringe widths, or remove one or
13389 both fringes.
60a653f1 13390
048addec
JD
13391 * frame.h (struct frame): Remove trunc_area_pixel_width and
13392 trunc_area_cols fields.
13393 (Qleft_fringe, Qright_fringe): Declare.
13394 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
60a653f1 13395
048addec
JD
13396 * frame.c (Qleft_fringe, Qright_fringe): New vars.
13397 (syms_of_frame): Initialize them.
60a653f1 13398
048addec
JD
13399 * window.c (coordinates_in_window): Handle separate left and right
13400 fringe widths.
60a653f1 13401
048addec
JD
13402 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
13403 and fringe_cols fields.
13404 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
13405 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
13406 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
13407 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
13408 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
13409 (x_compute_fringe_widths): Add prototype.
60a653f1 13410
048addec
JD
13411 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
13412 fill fringe evenly with small dashes.
f63fd14e 13413 (x_draw_fringe_bitmap): Clear background if necessary. Align and
048addec
JD
13414 clip the new ZV bitmap to avoid jitter between rows.
13415 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
13416 background. Don't draw fringe bitmaps if fringe width is zero.
13417 (x_compute_fringe_widths): New function.
13418 (x_new_font, x_set_window_size_1): Use it.
60a653f1 13419
048addec
JD
13420 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
13421 (x_set_frame_parameters): Process `font' parameter before other
13422 parameters as fringe widths depend on it.
13423 (x_set_fringe_width): New function.
13424 (x_figure_window_size): Use x_compute_fringe_widths.
13425 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
13426 parameters.
60a653f1 13427
048addec
JD
13428 * widget.c (set_frame_size): Use x_compute_fringe_widths.
13429 (EmacsFrameSetCharSize): Ditto.
60a653f1 13430
048addec
JD
13431 * w32term.h: Merged changes from xterm.h.
13432 * w32term.c: Merged changes from xterm.c.
13433 * w32fns.c: Merged changes from xfns.c.
60a653f1 13434
048addec 134352001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 13436
048addec 13437 * COPYING: Removed.
60a653f1 13438
048addec 134392001-11-29 Dave Love <fx@gnu.org>
60a653f1 13440
048addec
JD
13441 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
13442 extra extra slot.
13443 (detect_coding_mask): Fix call of detect_coding_iso2022.
60a653f1 13444
048addec 134452001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 13446
048addec
JD
13447 * fileio.c (file-name-coding-system)
13448 (default-file-name-coding-system): Doc fix (links to referenced
13449 variables added).
60a653f1 13450
048addec 134512001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 13452
048addec
JD
13453 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
13454 Add dummy uses of gcproN variables.
60a653f1 13455
048addec
JD
13456 * category.c (describe_category, describe_category_1)
13457 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
13458 (syms_of_category): Don't defsubr Sdescribe_categories.
60a653f1 13459
048addec 134602001-11-28 Richard M. Stallman <rms@gnu.org>
60a653f1 13461
048addec 13462 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
60a653f1 13463
048addec
JD
13464 * Makefile.in (lispdir): New variable, referring to build dir.
13465 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
60a653f1 13466
048addec 134672001-11-28 Andrew Innes <andrewi@gnu.org>
60a653f1 13468
048addec
JD
13469 * w32menu.c (w32_menu_display_help): Actually add the new argument
13470 OWNER.
60a653f1 13471
048addec 134722001-11-28 Jason Rumney <jasonr@gnu.org>
60a653f1 13473
048addec
JD
13474 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
13475 menu items. From David Ponce <dponce@wanadoo.fr>.
13476 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
13477 conditionally.
f63fd14e 13478 (w32_menu_display_help): New argument OWNER. Rewritten to store a
048addec 13479 help event in the owner frame's keyboard buffer.
60a653f1 13480
048addec
JD
13481 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
13482 (Fx_show_tip): Don't subtract last width from row width.
13483
13484 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
13485 (w32_read_socket): Use EQ to compare frames.
60a653f1 13486
048addec 134872001-11-28 Gerd Moellmann <gerd@gnu.org>
60a653f1 13488
048addec
JD
13489 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
13490 OVERLAPS_P.
60a653f1 13491
048addec 134922001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 13493
048addec
JD
13494 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
13495 `gcpro3' and `gcpro4'.
60a653f1 13496
048addec 13497 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
60a653f1 13498
048addec 134992001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 13500
048addec 13501 * ccl.c: Use AREF and ASIZE.
60a653f1 13502
048addec 135032001-11-27 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 13504
048addec
JD
13505 * lisp.h (run_hook_list_with_args): Remove.
13506 (LIST_END_P): Fix call to wrong_type_argument.
13507 (make_fixnum_or_float): Use EMACS_INT rather than int.
60a653f1 13508
048addec 135092001-11-26 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 13510
048addec
JD
13511 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
13512 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
60a653f1 13513
048addec
JD
13514 * eval.c: Use AREF and ASIZE.
13515 (Ffetch_bytecode): Add the file name to the error message.
60a653f1 13516
048addec
JD
13517 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
13518 which match the end of the file-name.
13519 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
13520 is not a valid env var, but leave it as is instead.
60a653f1 13521
048addec
JD
13522 * keymap.c (access_keymap): Handle t bindings like nil bindings.
13523 Make nil bindings in char-tables transparent.
13524 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
60a653f1 13525
048addec 135262001-11-26 Richard M. Stallman <rms@gnu.org>
60a653f1 13527
048addec
JD
13528 * textprop.c (set_text_properties_1): Allow START, END in either order.
13529 Do nothing if range is empty.
60a653f1 13530
048addec 13531 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
60a653f1 13532
048addec
JD
13533 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
13534 (clean): Not here.
60a653f1 13535
048addec 135362001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 13537
048addec
JD
13538 * textprop.c (set_text_properties_1): Clearly mark that the
13539 interval should not be empty.
60a653f1 13540
048addec
JD
13541 * intervals.c (graft_intervals_into_buffer):
13542 Don't call set_text_properties_1 on an empty interval.
60a653f1 13543
048addec 135442001-11-25 Richard M. Stallman <rms@gnu.org>
60a653f1 13545
048addec 13546 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
60a653f1 13547
048addec
JD
13548 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
13549 don't lose the data in it.
60a653f1 13550
048addec 135512001-11-25 Juanma Barranquero <lektu@terra.es>
60a653f1 13552
048addec 13553 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
60a653f1 13554
c62aec78 13555 * buffer.c (Fkill_buffer): Likewise.
60a653f1 13556
c62aec78 13557 * print.c (temp_output_buffer_setup): Likewise.
60a653f1 13558
048addec 135592001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 13560
048addec 13561 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
60a653f1 13562
048addec 135632001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 13564
048addec
JD
13565 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
13566 Niemitalo <kon@iki.fi>.
60a653f1 13567
048addec 135682001-11-25 Jason Rumney <jasonr@gnu.org>
60a653f1 13569
048addec 13570 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
60a653f1 13571
048addec
JD
13572 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
13573 (Fx_show_tip): Block input during frame creation.
13574 (Fx_show_tip, Fx_hide_tip): Enable.
60a653f1 13575
048addec 135762001-11-24 Richard M. Stallman <rms@gnu.org>
60a653f1 13577
048addec
JD
13578 * lread.c (Fload): Detect recursive load error for more than 3
13579 nestings of the same file.
13580 (Vrecursive_load_depth_limit): Variable deleted.
13581 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
60a653f1 13582
048addec 135832001-11-24 Jason Rumney <jasonr@gnu.org>
60a653f1 13584
048addec
JD
13585 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
13586 mouse position if either left or top is not specified.
60a653f1 13587
048addec
JD
13588 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
13589 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
13590 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
13591 (my_create_tip_window): Assign tip_window.
13592 (x_create_tip_frame): Use same defaults as X.
13593 (compute_tip_xy): Remove unused variable. Use full screen width.
f63fd14e 13594 (Fx_show_tip): Do not double height. Call ShowWindow directly.
60a653f1 13595
048addec
JD
13596 * w32term.c (x_after_update_window_line): Doc fix.
13597 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
13598 frames.
13599 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
60a653f1 13600
048addec
JD
13601 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
13602 for all Windowed systems.
60a653f1 13603
048addec 136042001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 13605
048addec
JD
13606 * msdos.c (IT_clear_screen): If the frame's faces are not yet
13607 realized, use the initial screen colors to clear the screen.
60a653f1 13608
048addec 136092001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 13610
048addec
JD
13611 * textprop.c (Fset_text_properties): Remove unused variables
13612 `unchanged', `prev_changed', `s' and `len'.
60a653f1 13613
048addec
JD
13614 * search.c (Freplace_match): Remove unused variable `inslen'.
13615
13616 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
13617
136182001-11-22 Jason Rumney <jasonr@gnu.org>
13619
13620 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
13621 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
13622 (my_create_tip_window): New function.
13623 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
13624 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
13625
136262001-11-20 Jason Rumney <jasonr@gnu.org>
13627
13628 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
13629 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
13630
13631 * w32fns.c (Vw32_system_coding_system): Remove.
13632 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
13633
136342001-11-19 Stefan Monnier <monnier@cs.yale.edu>
13635
13636 * fileio.c (Fwrite_region): Move choose_write_coding_system to
13637 after build_annotations.
13638
13639 * syntax.c (describe_syntax): Add dummy arg.
13640 (describe_syntax_1): Update call to describe_vector.
13641
13642 * category.c (describe_category): Add dummy arg.
13643 (describe_category_1): Update call to describe_vector.
13644
13645 * keymap.c (Fdescribe_vector): Add `describer' parameter.
13646 (describe_command, describe_translation): Add dummy second param.
13647 (describe_map): Call elt_describer with two arguments.
13648 (describe_vector_princ): Add `fun' parameter.
13649 Call it instead of the hardcoded `princ'.
13650 (describe_vector): Add arg `args'.
13651 Pass it as a new second argument to elt_describer.
60a653f1 13652
048addec 13653 * keymap.h (describe_vector): Update prototype.
60a653f1 13654
048addec
JD
13655 * frame.c: Don't include keymap.h any more.
13656 (keys_of_frame): Remove.
60a653f1 13657
048addec 13658 * lisp.h (keys_of_frame): Remove declaration.
60a653f1 13659
048addec 13660 * emacs.c (main): Don't call `keys_of_frame' any more.
60a653f1 13661
048addec 136622001-11-14 Andreas Schwab <schwab@suse.de>
60a653f1 13663
048addec
JD
13664 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
13665 if defined, 0 otherwise.
13666 (MAP_FAILED): Define if not defined and use it to test mmap failure.
13667 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
60a653f1 13668
048addec 136692001-11-19 Richard M. Stallman <rms@gnu.org>
60a653f1 13670
048addec 13671 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
60a653f1 13672
048addec 136732001-11-18 Jason Rumney <jasonr@gnu.org>
60a653f1 13674
048addec
JD
13675 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
13676 (x_draw_bar_cursor): If the background color of the glyph under
13677 the cursor equals the frame's cursor color, use the glyph's
13678 foreground color for drawing the bar cursor.
13679 (x_after_update_window_line): Clear internal border in different
13680 circumstances.
13681 (w32_set_vertical_scroll_bar): Check for width and height > 0.
13682 (w32_draw_relief_rect): Correct relief by 1 pixel.
13683 (x_set_glyph_string_background_width):
13684 Set extends_to_end_of_line_p if the row's fill_line_p is set and
13685 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
13686 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
13687 if cursor_in_non_selected_windows is false.
13688 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
13689 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
13690 Notice if cursor gets overwritten.
13691 (notice_overwritten_cursor): Renamed from
13692 note_overwritten_text_cursor. Rewritten to take glyph widths
13693 into account, and to take X positions as parameters.
13694 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
13695 around call to x_draw_glyphs.
13696 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
13697 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
13698 color to use for image glyph reliefs.
13699 (x_draw_image_relief): Accept zero tool_bar_button_relief.
13700 (glyph_rect): Remove unused variable `area'.
60a653f1 13701
048addec
JD
13702 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
13703 some items.
13704 (x_set_internal_border_width): Set frame garbaged when window
13705 doesn't exist yet.
13706 (Fx_create_frame): Accept zero tool_bar_button_relief.
13707 (x_clear_image_1, four_corners_best, image_background)
13708 (image_background_transparent): New functions.
13709 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
13710 (gs_format): Add `:background' entry.
13711 (lookup_image): Set IMG's background color if specified.
13712 (pbm_load, xbm_load_image, png_load): Set IMG's background field
13713 when appropriate.
13714 (x_clear_image_1): Reset `background_valid' and
13715 `background_transparent_valid' fields.
13716 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
13717 calculating it here. Set IMG's background_transparent field.
13718 (enum xpm_keyword_index): Add XPM_BACKGROUND.
13719 (enum png_keyword_index): Add PNG_BACKGROUND.
13720 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
13721 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
13722 (enum gif_keyword_index): Add GIF_BACKGROUND.
13723 (enum gs_keyword_index): Add GS_BACKGROUND.
13724 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
13725 Pre-calculate image background color where necessary.
13726 (x_create_x_image_and_pixmap, xbm_load, gs_load):
13727 Use display info's n_cbits entry for screen depth.
13728 (Fx_show_tip): Remove unused variables `buffer', `top',
13729 `left', `max_width' and `max_height'.
60a653f1 13730
048addec 13731 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
60a653f1 13732
048addec 137332001-11-18 Gerd Moellmann <gerd@gnu.org>
60a653f1 13734
048addec 13735 * puresize.h (BASE_PURESIZE): Increase to 750000.
60a653f1 13736
048addec 137372001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 13738
048addec 13739 * frame.c (Fframe_live_p): Doc fix.
60a653f1 13740
048addec 137412001-11-18 Richard M. Stallman <rms@gnu.org>
60a653f1 13742
048addec
JD
13743 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
13744 (message_dolog_marker3): New static variables hold three markers.
13745 (syms_of_xdisp): Initialize and staticpro them.
13746 (message_dolog): Use message_dolog_marker1..3 instead of
13747 allocating markers each time. Unchain them when done.
60a653f1 13748
048addec 137492001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 13750
048addec 13751 * doc.c (Fsnarf_documentation): Doc fix.
60a653f1 13752
048addec 137532001-11-17 Andreas Schwab <schwab@suse.de>
60a653f1 13754
048addec 13755 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
60a653f1 13756
048addec 137572001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 13758
048addec 13759 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
60a653f1 13760
048addec 137612001-11-17 Jason Rumney <jasonr@gnu.org>
60a653f1 13762
048addec 13763 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
60a653f1 13764
048addec 137652001-11-17 Gerd Moellmann <gerd@gnu.org>
60a653f1 13766
048addec
JD
13767 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
13768 with invalid position.
60a653f1 13769
048addec 137702001-11-16 Richard M. Stallman <rms@gnu.org>
60a653f1 13771
048addec 13772 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
60a653f1 13773
048addec
JD
13774 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
13775 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
13776 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
60a653f1 13777
048addec 13778 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
60a653f1 13779
048addec 137802001-11-16 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 13781
048addec
JD
13782 * fileio.c (build_annotations): Split off the tail.
13783 (build_annotations_2): New fun. Extracted from build_annotations.
13784 (Fwrite_region): Split the call to build_annotations into two
13785 calls to build_annotations and build_annotations_2.
077907d4 13786
048addec 137872001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1756e2fb 13788
048addec
JD
13789 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
13790 clear_waiting_for_input with argument.
1756e2fb 13791
048addec 13792 * xterm.h (x_update_cursor): Remove duplicated prototype.
06e8f738 13793
048addec 13794 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
06e8f738 13795
048addec 13796 * xterm.c (waiting_for_input): Remove unnecessary declaration.
fa336b91 13797
048addec 13798 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
fa336b91 13799
048addec 138002001-11-16 Stefan Monnier <monnier@cs.yale.edu>
fa336b91 13801
048addec
JD
13802 * fileio.c (choose_write_coding_system): New fun, extracted
13803 from Fwrite_region.
13804 (Fwrite_region): Use it.
fa336b91 13805
048addec
JD
13806 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
13807 (funcall_lambda, run_hook_with_args): Make static and add prototype.
13808 (ml_apply, find_handler_clause): Add prototype.
fa336b91 13809
048addec 138102001-11-16 Eli Zaretskii <eliz@gnu.org>
fa336b91 13811
048addec 13812 * config.in: Add #undef HAVE_COFF_H.
fa336b91 13813
048addec
JD
13814 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
13815 Required for ISC 4.1.
fa336b91 13816
048addec 138172001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
fa336b91 13818
048addec
JD
13819 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
13820 Andrew Wiseman <a.wiseman@btclick.com>.
fa336b91 13821
048addec 138222001-11-16 Kim F. Storm <storm@cua.dk>
fa336b91 13823
048addec
JD
13824 The following changes are made to clean up the various internal
13825 references to the fringes to actually use the term `fringe' for
13826 them. Previously, they were called `flags areas', `bitmap areas',
13827 `left/right side of windows', or implicitly as `flags' or
13828 `bitmaps':
fa336b91 13829
048addec 13830 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
f63fd14e 13831 Comments fixed. Use renamed symbols.
06e8f738 13832
f63fd14e 13833 * dispnew.c: Comment fix. Use renamed symbols.
06e8f738 13834
048addec
JD
13835 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
13836 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
13837 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
9ce647f4 13838
048addec 13839 * msdos.c: Comment fix.
9ce647f4 13840
048addec 13841 * w32fns.c: Use renamed symbols.
9b784ab8 13842
f63fd14e 13843 * w32term.c: Comment fixes. Use renamed symbols.
048addec
JD
13844 (fringe_bitmap_type): Renamed from bitmap_type.
13845 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
13846 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
13847 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
9f7e52b4 13848
f63fd14e 13849 * w32term.h: Comment fixes. Use renamed symbols.
048addec
JD
13850 (fringes_extra): Renamed from flags_areas_extra.
13851 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
13852 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
13853 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
13854 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
13855 (FRAME_X_LEFT_FRINGE_WIDTH):
13856 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
13857 (FRAME_X_RIGHT_FRINGE_WIDTH):
13858 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
9f7e52b4 13859
048addec 13860 * widget.c: Use renamed symbols.
9f7e52b4 13861
f63fd14e 13862 * window.c: Comment fixes. Use renamed symbols.
048addec 13863 (coordinates-in-window-p): Doc fix.
fa336b91 13864
f63fd14e 13865 * xdisp.c: Comment fixes. Use renamed symbols.
34e5d0af 13866
048addec 13867 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
9b784ab8 13868
048addec 13869 * xfns.c: Use renamed symbols.
89512fcd 13870
f63fd14e 13871 * xterm.c: Comment fixes. Use renamed symbols.
048addec
JD
13872 (fringe_bitmap_type): Renamed from bitmap_type.
13873 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
13874 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
13875 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
89512fcd 13876
f63fd14e 13877 * xterm.h: Comment fixes. Use renamed symbols.
048addec
JD
13878 (fringes_extra): Renamed from flags_areas_extra.
13879 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
13880 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
13881 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
13882 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
13883 (FRAME_X_LEFT_FRINGE_WIDTH):
13884 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
13885 (FRAME_X_RIGHT_FRINGE_WIDTH):
13886 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
13887
138882001-11-15 Jason Rumney <jasonr@gnu.org>
13889
13890 * w32menu.c (add-menu-item): Make help_echo and radio buttons
13891 work for most menu items. From David Ponce
13892 <david.ponce@wanadoo.fr>.
13893
138942001-11-15 Gerd Moellmann <gerd@gnu.org>
13895
13896 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
13897 Some x_set_* function expect to be called even if old and new
13898 value are equal.
13899
13900 * xdisp.c (build_desired_tool_bar_string): Accept zero
13901 tool_bar_button_relief.
13902
13903 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
13904
13905 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
13906
13907 * xterm.c (x_draw_bar_cursor): If the background color of the
13908 glyph under the cursor equals the frame's cursor color, use
13909 the glyph's foreground color for drawing the bar cursor.
13910
13911 * dispnew.c (direct_output_forward_char): Fix character/byte
13912 position comparison.
7d18891d 13913
048addec 139142001-11-15 Miles Bader <miles@gnu.org>
d2936d21 13915
048addec
JD
13916 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
13917 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
13918 Update arguments to find_field.
13919 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
13920 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
13921 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
13922 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
7d18891d 13923
048addec 139242001-11-14 Richard M. Stallman <rms@gnu.org>
7d18891d 13925
048addec 13926 * editfns.c (Fpropertize): Allow call with 1 arg.
7d18891d 13927
048addec
JD
13928 * dispextern.h (image_background, image_background_transparent):
13929 Conditionalize on HAVE_X_WINDOWS.
7d18891d 13930
048addec 139312001-11-13 Richard M. Stallman <rms@gnu.org>
7d18891d 13932
048addec 13933 * print.c (Fprin1_to_string): Doc fix.
7d18891d 13934
048addec 13935 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
7d18891d 13936
048addec 13937 * floatfns.c (Fceiling, Ffloor): Doc fixes.
7d18891d 13938
048addec 13939 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
7d18891d 13940
048addec 13941 * fileio.c (Ffile_accessible_directory_p): Doc fix.
7d18891d 13942
048addec 13943 * eval.c (syms_of_eval): Doc fix.
7d18891d 13944
048addec 13945 * coding.c (syms_of_coding): Doc fix.
7d18891d 13946
048addec 13947 * doc.c (Fsnarf_documentation): Doc fix.
7d18891d 13948
048addec 13949 * dispnew.c (syms_of_display): Doc fix.
9474c847 13950
048addec 13951 * category.c (Fget_unused_category): Doc fix.
9474c847 13952
048addec 13953 * buffer.c (syms_of_buffer): Doc fixes.
e3059a5d 13954
048addec 139552001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
e3059a5d 13956
048addec 13957 * print.c (prin1, print): Doc fix.
e3059a5d 13958
048addec 139592001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
b3700ae7 13960
048addec
JD
13961 * fontset.h: Remove declarations of variables
13962 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
b3700ae7 13963
048addec
JD
13964 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
13965 `Vclip_large_size_font'.
eae936e2 13966
048addec 139672001-11-13 Jason Rumney <jasonr@gnu.org>
4bb962be 13968
048addec 13969 * w32fns.c: Doc fix.
ddb67bdc 13970
048addec 139712001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3467c402 13972
048addec 13973 * xfaces.c (Fface_attributes_as_vector): Doc fix.
3467c402 13974
048addec 13975 * fns.c: Doc fix.
6e1b91d7 13976
048addec 13977 * emacs.c: Doc fix.
1c1d3d69 13978
048addec 13979 * coding.c: Doc fix.
1c1d3d69 13980
048addec
JD
13981 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
13982 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
13983 `new style' [w/`doc:' keyword].
b6f4c7ba 13984
048addec 139852001-11-12 Richard M. Stallman <rms@gnu.org>
b6f4c7ba 13986
048addec
JD
13987 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
13988 LeaveNotify events. Only FocusIn and FocusOut do that now.
13989 (x_display_and_set_cursor): Do display hollow cursors in active
13990 minibuffer windows when they are not selected.
b6f4c7ba 13991
048addec 139922001-11-12 Jason Rumney <jasonr@gnu.org>
a89f435d 13993
048addec 13994 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
f63fd14e
JB
13995 * w32term.c: Change doc-string comments to `new style'
13996 [w/`doc:' keyword]. Doc fixes.
a89f435d 13997
048addec
JD
13998 * w32fns.c: Don't define max.
13999 (Fx_open_connection): Only execute once.
a4cd0cd7 14000
048addec 140012001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
eafb659a 14002
048addec
JD
14003 * ccl.c: Change macros to use do-while block instead of if-else.
14004 Use braces to follow GNU Coding Standards.
eafb659a 14005
048addec 140062001-11-11 Richard M. Stallman <rms@gnu.org>
a4cd0cd7 14007
048addec 14008 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
a4cd0cd7 14009
048addec 14010 * lread.c (read_escape): Use end_of_file_error for reporting eof.
a4cd0cd7 14011
048addec
JD
14012 * insdel.c (replace_range): Use adjust_markers_for_replace
14013 instead of adjust_markers_for_delete and adjust_markers_for_insert.
a4cd0cd7 14014
048addec 14015 * intervals.h: Declare set_text_properties and set_text_properties_1.
a4cd0cd7 14016
048addec
JD
14017 * textprop.c (set_text_properties_1): New subroutine
14018 broken out of set_text_properties.
14019 (set_text_properties): Use set_text_properties_1.
91823618 14020
048addec
JD
14021 * intervals.c (graft_intervals_into_buffer):
14022 Use set_text_properties_1 to clear out properties.
91823618 14023
048addec
JD
14024 * search.c (Freplace_match): Use replace_range to insert
14025 and delete. Don't request property inheritance from
14026 surrounding text.
86928dfb 14027
048addec 140282001-11-10 Jason Rumney <jasonr@gnu.org>
86928dfb 14029
048addec 14030 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
f63fd14e 14031 vertical fonts. Allow them if face name is explicitly specified.
048addec 14032 Do not give up if we find a font that cannot be converted to an xlfd.
40ef1eda 14033
048addec 140342001-11-10 Gerd Moellmann <gerd@gnu.org>
ab8469eb 14035
048addec
JD
14036 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
14037 instead of malloc/free.
a78e0303 14038
048addec 140392001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
40ef1eda 14040
048addec
JD
14041 * xfaces.c (merge_face_vectors): Use braces to follow GNU
14042 Coding Standards.
14043 (Finternal_set_lisp_face_attribute): Likewise.
fabf4a91 14044
048addec 14045 * buffer.c (Fbury_buffer): Likewise.
0c99b139 14046
048addec 14047 * indent.c (current_column_1): Remove unused variable `prev_col'.
0c99b139 14048
048addec
JD
14049 * coding.c (encode_coding): Use precomputed value of `src'.
14050 (encode_coding): Remove unused variable `src_end'.
14051 (code_convert_region): Remove unused variables `count'.
830ddd77 14052
048addec 140532001-11-07 Jason Rumney <jasonr@gnu.org>
830ddd77 14054
048addec
JD
14055 * w32term.c (x_display_and_set_cursor): Do not move system caret
14056 if cursor_glyph is NULL.
55c6d645 14057
048addec 140582001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
55c6d645 14059
048addec 14060 * keymap.c (access_keymap): Fix compilation error.
5de38842 14061
048addec 140622001-11-07 Miles Bader <miles@gnu.org>
7a4564a4 14063
048addec 14064 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
5de38842 14065
048addec 140662001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4fa23df5 14067
048addec
JD
14068 * intervals.c (graft_intervals_into_buffer):
14069 Remove #ifdef'd-out code.
14070 (graft_intervals_into_buffer): Remove unused variable `middle'.
4fa23df5 14071
048addec
JD
14072 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
14073 code (eval-current-buffer).
14074 Change doc-string comments to `new style' [w/`doc:' keyword].
7a6a97d7 14075
048addec 140762001-11-06 Richard M. Stallman <rms@gnu.org>
c191d13c 14077
048addec 14078 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
7a6a97d7 14079
048addec 140802001-11-06 Stefan Monnier <monnier@cs.yale.edu>
44dc78e0 14081
048addec 14082 * lread.c (read1): Fix behavior with nested backquoting.
44dc78e0 14083
048addec
JD
14084 * keyboard.c (make_lispy_event): Check integerness and fix
14085 Lisp_Object/int mixup.
17893c65 14086
048addec 140872001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4d994a79 14088
048addec 14089 * fns.c (copy_hash_table): Remove unused variable `v'.
d5360cc7 14090
048addec
JD
14091 * fontset.c (fontset_font_pattern): Remove unused variable
14092 `family_registry'.
d5360cc7 14093
048addec 14094 * indent.c (current_column_1): Remove unused variable `prev_col'.
d5360cc7 14095
048addec 140962001-11-05 Richard M. Stallman <rms@gnu.org>
96238a5a 14097
048addec 14098 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
96238a5a 14099
048addec
JD
14100 * buffer.c (Fkill_buffer): Don't delete auto save file
14101 if buffer is modified.
d9d54213 14102
048addec 141032001-11-05 Andrew Innes <andrewi@gnu.org>
d9d54213 14104
048addec
JD
14105 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
14106 CHECK_NUMBER_CDR.
b116830b 14107
048addec 141082001-11-05 Richard M. Stallman <rms@gnu.org>
b116830b 14109
048addec 14110 * unexelf.c (unexec): Minor changes; clean up comments.
3297e2a1 14111
048addec 141122001-11-05 Sam Steingold <sds@gnu.org>
3297e2a1 14113
048addec 14114 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
6fb8339c 14115
048addec 141162001-11-05 Andreas Schwab <schwab@suse.de>
6fb8339c 14117
048addec 14118 * sound.c (sound_perror): Save errno from being clobbered.
7dd73b78 14119
048addec 141202001-11-05 Dale Hagglund <rdh@yottayotta.com>
7dd73b78 14121
048addec
JD
14122 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
14123 the program image directly.
982f6c7e 14124
048addec 141252001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d31053f9 14126
048addec 14127 * buffer.h (Fbuffer_local_value): Add prototype.
d31053f9 14128
048addec 141292001-11-04 Richard M. Stallman <rms@gnu.org>
d31053f9 14130
048addec
JD
14131 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
14132 and CHECK_BUFFER.
d31053f9 14133
048addec
JD
14134 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
14135 (record_char): Likewise.
d31053f9 14136
048addec
JD
14137 * keyboard.c (make_lispy_event): Don't insist a drag event must
14138 move to a different buffer position. Instead, check for moving at
14139 least double_click_fuzz.
982f6c7e 14140
048addec 14141 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
830047fd 14142
048addec 14143 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
b116830b 14144
048addec
JD
14145 * indent.c (current_column_1, Fmove_to_column): Separate the code
14146 for display-table glyphs from the code for buffer text, to fix
14147 bugs in the former.
830047fd 14148
048addec 141492001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
b116830b 14150
048addec
JD
14151 * buffer.c (Fbuffer_local_value): New function.
14152 (syms_of_buffer): Defsubr it.
2df5238c 14153
048addec
JD
14154 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
14155 value of `cursor-in-non-selected-windows'.
4e397688 14156
048addec
JD
14157 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
14158 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
14159 (syms_of_xdisp): Initialize it.
48b0f3ae 14160
048addec 141612001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2df5238c 14162
048addec 14163 * xfns.c (Fx_create_frame): Doc fix.
3ecaf7e5 14164
048addec
JD
14165 * coding.c: Change doc-string comments to `new style' [w/`doc:'
14166 keyword].
3ecaf7e5 14167
048addec
JD
14168 * eval.c (top_level_value, top_level_set): Remove commented and
14169 #ifdef'd-out code.
14170 (Fdefvar): Fix usage in doc-string.
3ecaf7e5 14171
048addec 141722001-11-03 Richard M. Stallman <rms@gnu.org>
3ecaf7e5 14173
048addec 14174 * xfns.c: Include unistd.h, if it exists.
8db2e33b 14175
048addec 14176 * editfns.c: Move the include of ctype.h after unistd.h.
8db2e33b 14177
048addec 14178 * gmalloc.c: Test BROKEN_PROTOTYPES.
aed29b97 14179
048addec 141802001-11-03 Ken Raeburn <raeburn@gnu.org>
aed29b97 14181
048addec
JD
14182 * lisp.h (CHECK_STRING_CAR): New macro.
14183 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
14184 treating XCAR and XCDR as lvalues.
14185 (openp): Use CHECK_STRING_CAR.
14186 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
aed29b97 14187
048addec 141882001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
6cb16f95 14189
048addec
JD
14190 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
14191 (SIGMASKTYPE): Define.
1b1acc13 14192
048addec 14193 * syssignal.h (sigunblock): Don't define if already defined.
020f9b38 14194
048addec 141952001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
020f9b38 14196
048addec
JD
14197 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
14198 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
14199 Fix typos in comments.
6cb16f95 14200
048addec
JD
14201 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
14202 and #ifdef'd-out code.
14203 Fix and reindent comments.
6cb16f95 14204
048addec 14205 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
6cb16f95 14206
048addec
JD
14207 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
14208 argument `i' in macros.
6cb16f95 14209
048addec
JD
14210 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
14211 `i' in macros.
7e9d3c2f 14212
048addec
JD
14213 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
14214 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
14215 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
14216 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
14217 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
14218 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
14219 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
14220 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
14221 in macros.
7e9d3c2f 14222
048addec
JD
14223 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
14224 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
14225 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
14226 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
14227 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
14228 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
14229 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
14230 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
14231 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
14232 (remove unused second argument).
7e9d3c2f 14233
048addec 142342001-11-02 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 14235
048addec
JD
14236 * syntax.c (describe_syntax): New wrapper.
14237 (Finternal_describe_syntax_value): Rename from describe_syntax.
14238 Don't insert space at front and \n at the end.
14239 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
e6bff182 14240
048addec
JD
14241 * regex.c (re_wctype): Try to fix some warnings.
14242 (regcomp, regexec): Don't forget the __restrict.
9ba48103 14243
048addec 142442001-11-02 Richard M. Stallman <rms@gnu.org>
9ba48103 14245
048addec 14246 * textprop.c (Fget_char_property): Doc fix.
9ba48103 14247
048addec 142482001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9ba48103 14249
048addec 14250 * process.c (Fstart_process): Add usage to doc-string.
c22e59e1 14251
048addec 14252 * data.c (Fsetq_default): Ditto.
c22e59e1 14253
048addec 14254 * callint.c (Finteractive): Ditto.
9271ed2c 14255
048addec 142562001-11-01 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 14257
048addec
JD
14258 * macros.c: Don't include keymap.h any more.
14259
142602001-11-01 Richard M. Stallman <rms@gnu.org>
14261
14262 * data.c (Fmake_local_variable): Doc fix.
14263
14264 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
14265 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
e6bff182 14266
048addec 14267 * keymap.c (Fdescribe_buffer_bindings): Print character property
9271ed2c
RS
14268 bindings along with or instead of the buffer local map.
14269 Make the overriding maps override what they should.
14270
f00691a3 142712001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8b8bd9c6
PJ
14272
14273 * window.c (grow_mini_window): Fix typo in comment.
14274
27188d11
GM
142752001-11-01 Gerd Moellmann <gerd@gnu.org>
14276
7b49b9d2
GM
14277 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
14278 (XTset_vertical_scroll_bar): Likewise.
14279
43f7c3ea
GM
14280 * xfns.c (x_build_heuristic_mask): Use four_corners_best
14281 instead of IMAGE_BACKGROUND.
c22e59e1 14282
b350c2e5
GM
14283 * xfns.c (four_corners_best): Reindent.
14284
c22e59e1 14285 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27188d11
GM
14286 Handle :box so that it is possible to specify sexprs.
14287
bf00d461
EZ
142882001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
14289
14290 * s/hpux11.h: New file.
14291
f00691a3 142922001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e10df59 14293
2b209b97
PJ
14294 * emacs.c (USAGE1): Show command line option --no-window-system
14295 instead of --no-windows in usage.
14296 (standard_args): Rename --no-windows to --no-window-system.
14297 (bug_reporting_address): Follow Emacs coding conventions.
14298
9dbc9081
PJ
14299 * eval.c (Fcommandp): Doc fix.
14300 Change doc-string comments to `new style' [w/`doc:' keyword].
14301
4e10df59
PJ
14302 * frame.c (Fframe_live_p): Doc fix.
14303
14304 * buffer.c (selective-display-ellipses): Doc fix.
14305
dd387b25
GM
143062001-10-31 Gerd Moellmann <gerd@gnu.org>
14307
fe957e65
GM
14308 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
14309
dd387b25
GM
14310 * xfaces.c (realize_x_face): If C is not a single-byte character,
14311 set the face's colors_copied_bitwise_p instead of the defaulted_p
14312 members which have a different meaning.
14313 (free_face_colors): Do nothing for a face whose colors have been
14314 copied bitwise.
14315
c22e59e1 14316 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
dd387b25 14317
f00691a3 143182001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2e1280f8 14319
687784e8
PJ
14320 * marker.c, mocklisp.c: Change doc-string comments to `new style'
14321 [w/`doc:' keyword].
2e1280f8 14322
b9d9a9b9
GM
143232001-10-31 Gerd Moellmann <gerd@gnu.org>
14324
14325 * fns.c (require_unwind): Return Lisp_Object.
14326
f00691a3 143272001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
48400103 14328
fa1361cb
PJ
14329 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
14330 (last-input-char): Revert doc-string to be the same as the
14331 doc-string of `last-input-event'.
14332
6c465a15 14333 * xdisp.c: Fix typos in comments.
48400103 14334
eafa3196
GM
143352001-10-31 Gerd Moellmann <gerd@gnu.org>
14336
14337 * window.c (grow_mini_window): Handle case that the root
14338 window is already smaller than the nominal mininum height.
14339
747d3f2a
SM
143402001-10-30 Stefan Monnier <monnier@cs.yale.edu>
14341
bf9bb76f
SM
14342 * emacs.c (main): Don't call keys_of_macros any more.
14343
14344 * lisp.h (keys_of_macros): Remove.
14345
14346 * macros.c (keys_of_macros): Remove.
14347
747d3f2a
SM
14348 * xfaces.c (Fface_attribute_relative_p): Declare args.
14349
5e905a57
JR
143502001-10-30 Jason Rumney <jasonr@gnu.org>
14351
14352 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
14353 (enum_font_cb2): Ignore fonts with vertical orientation.
14354
3a426197
RS
143552001-10-30 Richard M. Stallman <rms@gnu.org>
14356
14357 * keyboard.c (Finput_pending_p): Doc fix.
14358
a742d646
GM
143592001-10-30 Gerd Moellmann <gerd@gnu.org>
14360
259cf6bc
GM
14361 * xterm.c (x_after_update_window_line): Don't run the code
14362 clearing in borders for rows whose visible height is 0.
14363
3f99f948
GM
14364 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
14365 resized_p flag is set. If not set, use the much less flickering
14366 method previously used.
14367
14368 * dispnew.c (change_frame_size_1): Set frame's resized_p.
14369
14370 * frame.h (struct frame) <resized_p>: New member.
14371
b4a3be43
GM
14372 * lread.c (to_multibyte): Ensure read_buffer is at least twice
14373 as large as the number of bytes to convert.
747d3f2a 14374
a742d646
GM
14375 * lread.c (to_multibyte): New function.
14376 (read1): Use it.
14377
cacbb9e9
EZ
143782001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
14379
14380 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
14381
99cb6b2f
GM
143822001-10-30 Gerd Moellmann <gerd@gnu.org>
14383
327f42ee 14384 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
14385 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
14386 if the row's fill_line_p is set and drawing the last glyph with
14387 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 14388
99cb6b2f
GM
14389 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
14390
8e8223e2
SM
143912001-10-29 Stefan Monnier <monnier@cs.yale.edu>
14392
14393 * xmenu.c: Include coding.h and charset.h.
14394 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
14395 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
14396 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
14397 Explicitly set wv->help. Use `TRUE' rather than `True'.
14398 (menu_help_callback): Use empty_string.
14399
14400 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
14401 (Fx_popup_dialog): Explicitly init f.
14402 (w32_menu_display_help): Use empty_string.
14403
4d083a8f
RS
144042001-10-29 Richard M. Stallman <rms@gnu.org>
14405
b2304472
RS
14406 * fns.c (Frequire): Detect recursive try to require the same
14407 feature 3 or more levels deep, and get error.
14408 (require_unwind): New subroutine.
14409 (require_nesting_list): New variable.
14410 (syms_of_fns): Init and staticpro it.
14411
4d083a8f
RS
14412 * print.c (print_object): Clarify indication of insertion type.
14413
2fe41216
EZ
144142001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
14415
90480000
EZ
14416 * coding.c (syms_of_coding): Document that locale-coding-system is
14417 used for decoding input on X.
14418
2fe41216
EZ
14419 * window.c (Fscroll_left, Fscroll_right): Doc fix.
14420
f00691a3 144212001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
74e79967
PJ
14422
14423 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
14424 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
14425
60ebcfe8
GM
144262001-10-29 Gerd Moellmann <gerd@gnu.org>
14427
9a7bdceb
GM
14428 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
14429 use NO_CURSOR if cursor_in_non_selected_windows is false.
14430
3f08fcd2
GM
14431 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
14432 the slant attribute if FRAME is t.
14433
0ccfdad2
GM
14434 * xfns.c (x_set_internal_border_width): Set frame garbaged
14435 when X window doesn't exist yet.
14436
ef253080
GM
14437 * xterm.c (x_after_update_window_line): Clear internal border
14438 in different circumstances.
b116830b 14439
60ebcfe8
GM
14440 * xterm.c (XTread_socket) <KeyPress>: Don't use
14441 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
14442 <handa@etl.go.jp>.
14443
73d25f9c
EZ
144442001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
14445
14446 * m/ibms390.h: New file. From Adam Thornton
14447 <athornton@sinenomine.net>.
14448
cac1daf0
GM
144492001-10-28 Gerd Moellmann <gerd@gnu.org>
14450
053b3256 14451 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
b116830b 14452
cac1daf0
GM
14453 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
14454 a loop counter.
14455
f00691a3 144562001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13b1a09c 14457
f9711de4 14458 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
186486eb 14459
4707d2d0
PJ
14460 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
14461 keyword].
14462 Fix typos in comments.
b116830b 14463
d883731c
PJ
14464 * emacs.c (bug_reporting_address): New function.
14465 Use it when displaying usage message.
14466
04012254
PJ
14467 * minibuf.c (read_minibuf): Remove unused external declaration of
14468 variable `Qread_only'.
14469
13b1a09c
PJ
14470 * keymap.c (access_keymap): Remove unused variable `charset'.
14471
5bbf4378
MB
144722001-10-28 Miles Bader <miles@gnu.org>
14473
14474 * xfaces.c (merge_face_heights): Handle TO being relative as well.
14475 Remove #ifdef'd-out code.
14476 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
14477 (syms_of_xfaces): Initialize them.
14478
1ce1e4ee
JR
144792001-10-27 Jason Rumney <jasonr@gnu.org>
14480
14481 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
14482 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
14483 position using the system caret.
14484
14485 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
14486 (w32_system_caret_height, w32_system_caret_x)
14487 (w32_system_caret_y): New variables for tracking system caret.
14488 (w32_initialize): Initialize them.
c2d53558 14489 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 14490
c2d53558
SM
14491 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
14492 New messages types.
1ce1e4ee
JR
14493
14494 * w32term.c (note_mouse_highlight): Clear old help_echo.
14495
f00691a3 144962001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e30ce42 14497
bb4600a4
PJ
14498 * xterm.c: Fix typo in a comment.
14499
7db35a48
PJ
14500 * emacs.c: Fix typos in comments.
14501 Remove unnecessary spaces.
14502 Change doc-string comments to `new style' [w/`doc:' keyword].
14503 (USAGE2): Fix typos in usage string.
14504
a7248e4f
PJ
14505 * xterm.c: Fix typo in a comment.
14506
4e30ce42
PJ
14507 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
14508 emacs.c.
14509
62725a92
GM
145102001-10-27 Gerd Moellmann <gerd@gnu.org>
14511
798dbe1f 14512 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 14513 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
14514 farther backward when target_y was not reached.
14515
62725a92
GM
14516 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
14517 Display errno only if non-zero.
14518 (sound_warning): New function.
14519 (vox_configure): Don't treat failing to set sample rate as error.
14520 (various places): Improve error messages.
14521
d4e34d24
EZ
145222001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
14523
944e6f60
EZ
14524 * fileio.c (Faccess_file): Run the argument filename through
14525 Fexpand_file_name, before using it.
14526
d4e34d24
EZ
14527 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
14528 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
14529
38d2af0c
GM
145302001-10-26 Gerd Moellmann <gerd@gnu.org>
14531
da80a8d5
GM
14532 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
14533
38d2af0c
GM
14534 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
14535 Fix clearing in the case of scroll bars on the right.
c2d53558 14536
45de4a6f 145372001-10-26 Juanma Barranquero <lektu@terra.es>
56f508dd
EZ
14538
14539 * w32gui.h (XImage): Add a dummy typedef.
14540
fbd5ceb2
GM
145412001-10-26 Gerd Moellmann <gerd@gnu.org>
14542
c2d53558 14543 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 14544
b23236fb
EZ
145452001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
14546
14547 * frame.c (Fframe_parameter): Fix last change.
14548
5d991fc4
EZ
14549 * fileio.c: Revert last change (which removed old commented-out
14550 version of expand-file-name). Add a comment that explains why
14551 this old version should not be removed.
14552
879eadc3
GM
145532001-10-25 Gerd Moellmann <gerd@gnu.org>
14554
75700ff2
GM
14555 * frame.c (Fframe_parameter): Fix a bug whereby some
14556 ``artificial'' frame parameters, like `minibuffer' were not
14557 obtained by calling Fframe_parameters.
14558
dfe92a6a
GM
14559 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
14560 cursor differently.
14561
879eadc3
GM
14562 * xdisp.c (move_it_vertically_backward): Compute line height
14563 differently. Add heuristic to try to be more compatible to 20.x.
14564
e1010ebe
SM
145652001-10-25 Stefan Monnier <monnier@cs.yale.edu>
14566
d73a471b
SM
14567 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
14568
d6da5a06
GM
14569 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
14570 boolean.
e1010ebe 14571
f66bd220
MB
145722001-10-25 Miles Bader <miles@gnu.org>
14573
14574 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
14575 BG is a pointer to a structure, not a structure.
14576 (gif_format, png_format): Add missing commas.
14577
d436d538
RS
145782001-10-24 Richard M. Stallman <rms@gnu.org>
14579
14580 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 14581 (syms_of_xfaces): Defsubr it.
d436d538 14582
f00691a3 145832001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
075c507b
PJ
14584
14585 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
14586 variable `area'.
14587
f00691a3 145882001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d492b584 14589
c2d53558 14590 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 14591
e2a57b34
MB
145922001-10-25 Miles Bader <miles@gnu.org>
14593
14594 * dispextern.h (struct image): Add `background',
14595 `background_valid', and `background_transparent' fields.
14596 (image_background, image_background_transparent): New declarations.
14597 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
14598 * xfns.c (image_background, image_background_transparent)
14599 (four_corners_best): New functions.
c2d53558 14600 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
14601 (gs_format): Add `:background' entry.
14602 (lookup_image): Set IMG's background color if specified.
14603 (pbm_load, xbm_load_image, png_load): Set IMG's background field
14604 when appropriate.
14605 (x_clear_image_1): Reset `background_valid' and
14606 `background_transparent_valid' fields.
14607 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
14608 calculating it here. Set IMG's background_transparent field.
14609 (enum xpm_keyword_index): Add XPM_BACKGROUND.
14610 (enum png_keyword_index): Add PNG_BACKGROUND.
14611 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
14612 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
14613 (enum gif_keyword_index): Add GIF_BACKGROUND.
14614 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 14615 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
14616 Pre-calculate image background color where necessary.
14617 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
14618 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
14619 color to use for image glyph reliefs.
14620
b547b6e8
GM
146212001-10-24 Gerd Moellmann <gerd@gnu.org>
14622
d9e3b8c6
GM
14623 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
14624 in full-width rows.
c2d53558 14625
b547b6e8
GM
14626 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
14627 Fix clearing of area not covered by scroll bar.
14628
f00691a3 146292001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2beb36f9
PJ
14630
14631 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
14632 and `real_start'.
c2d53558 14633 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
14634 (glyph_rect): Remove unused variable `area'.
14635
76cb5e06
GM
146362001-10-24 Gerd Moellmann <gerd@gnu.org>
14637
bdbdebff 14638 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
14639
14640 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
14641 (row_containing_pos): Take additional argument DY.
14642 Treat rows ending in middle of char differently.
62e33982
GM
14643 (display_line): Handle tabs on window systems differently.
14644
14645 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
14646 with additional argument.
14647
14648 * dispextern.h (row_containing_pos): Adjust prototype.
14649
76cb5e06
GM
14650 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
14651 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
14652 (try_window_id, try_window_reusing_current_matrix)
14653 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
6c465a15 14654 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
76cb5e06 14655
f00691a3 146562001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
996fee11 14657
c9e60620
PJ
14658 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
14659 gnuemacs).
14660 (HAVE_BOXES): Fix typo in comment.
14661 (push_menu_pane): Fix typo in comment.
14662
3b552d56
PJ
14663 * xdisp.c: (display_prop_string_p): Remove unused local declaration
14664 of `Qwhen'.
14665 (single_display_prop_string_p): Remove unused local declarations
14666 of `Qwhen' and `Qmargin'.
14667 (string_buffer_position): Remove unused variable `around'.
14668 (store_frame_title): Remove unused variable `width'.
14669
15c565ac
PJ
14670 * window.c: Don't define max.
14671 (coordinates_in_window): Remove unused variable `uy'.
14672
a8818eb9
PJ
14673 * widget.c: Don't define max.
14674
996fee11
PJ
14675 * process.c: Don't define max.
14676 (create_process): Remove unused variable `buffer'.
14677
496e1a5b
GM
146782001-10-23 Gerd Moellmann <gerd@gnu.org>
14679
c2d53558 14680 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 14681
5905ae8b
EZ
146822001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
14683
14684 * xfaces.c (Finternal_set_lisp_face_attribute)
14685 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
14686 frame is on a windowed display.
14687
24db49fb
GM
146882001-10-23 Gerd Moellmann <gerd@gnu.org>
14689
c2d53558
SM
14690 * dispnew.c (sync_window_with_frame_matrix_rows):
14691 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
14692 of marginal areas.
14693
c2d53558 14694 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 14695
f0487f05
EZ
146962001-10-23 Andreas Schwab <schwab@suse.de>
14697
14698 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
14699 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
14700
f0a48a01
GM
147012001-10-23 Gerd Moellmann <gerd@gnu.org>
14702
c2d53558 14703 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
14704 REAL_END. Notice if cursor gets overwritten.
14705 (notice_overwritten_cursor): Take X positions as parameters.
14706 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
14707 around call to x_draw_glyphs.
14708
f00691a3 147092001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a50a10a0 14710
fc11dff0
PJ
14711 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
14712 instead of C) and usage.
a50a10a0 14713
fc11dff0
PJ
14714 * editfns.c (char-to-string): Fix argument names (use CHAR instead
14715 of C) and usage.
a50a10a0
PJ
14716
14717 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
14718 `left', `max_width' and `max_height'.
14719
8738febd
GM
147202001-10-23 Gerd Moellmann <gerd@gnu.org>
14721
14722 * xdisp.c (display_line): For a tab continued to the next line,
14723 set row's ends_in_middle_of_char_p.
14724
653c329b
GM
147252001-10-22 Gerd Moellmann <gerd@gnu.org>
14726
14727 * xdisp.c (display_line): Fix computation of continuation lines
14728 width for TABs.
14729
f00691a3 147302001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f958c5ac 14731
7ba51063
PJ
14732 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
14733 `Qlaplace'.
14734
f958c5ac
PJ
14735 * fileio.c: Remove unused code.
14736
eb360291
MB
147372001-10-22 Miles Bader <miles@gnu.org>
14738
14739 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
14740 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
14741 Remove `DOC_STRINGS_IN_COMMENTS' cases.
14742
98515cf0
JR
147432001-10-21 Jason Rumney <jasonr@gnu.org>
14744
14745 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
14746
93026d88
EZ
147472001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
14748
14749 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
14750 (Finsert_string): Avoid the multi-line string literals warning.
14751
c9a95b79
MB
147522001-10-22 Miles Bader <miles@gnu.org>
14753
14754 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
14755 (Fdocumentation): Don't use it.
14756 (syms_of_doc): Don't initialize it.
14757
14758 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
14759 * print.c (Fwith_output_to_temp_buffer): Likewise.
14760 * window.c (Fsave_window_excursion): Likewise.
c2d53558 14761 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 14762 (Fsave_restriction): Likewise.
c2d53558
SM
14763 * eval.c (Frun_hooks, Frun_hook_with_args)
14764 (Frun_hook_with_args_until_failure)
14765 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
14766 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
14767 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
14768 (Funwind_protect, Fcondition_case): Likewise.
14769 * coding.c (Ffind_operation_coding_system): Likewise.
14770 * keyboard.c (Ftrack_mouse): Likewise.
14771
a3b10252
MB
147722001-10-21 Miles Bader <miles@gnu.org>
14773
c2d53558 14774 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
14775 (Fmake_hash_table): Add usage: string to doc string.
14776 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 14777 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
14778 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
14779 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
14780 (Fml_prefix_argument_loop): Likewise.
14781
f00691a3 147822001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c6f73eec 14783
c2d53558 14784 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 14785
c6f73eec
PJ
14786 * sysdep.c (init_sys_modes): Change doc-string comments to `new
14787 style' [w/`doc:' keyword].
14788
14789 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
14790 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
14791 comments to `new style' [w/`doc:' keyword].
14792
3cf3436e
JR
147932001-10-21 Jason Rumney <jasonr@gnu.org>
14794
14795 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
14796
c169b8f1
JR
14797 * w32term.c (remember_mouse_glyph): New function.
14798 (w32_mouse_position): Use it.
14799 (note_mouse_movement): If the mouse moved off the glyph, remember
14800 its new position.
c2d53558 14801
4fdd691b
JR
14802 * w32term.h (struct w32_output): Correct spelling of x_compatible.
14803 (w32_display_info): Add mouse_face_overlay.
14804
c169b8f1
JR
14805 * w32term.c (notice_overwritten_cursor): Renamed from
14806 note_overwritten_text_cursor. Rewritten to take glyph widths into
14807 account.
14808 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
14809 (fast_find_string_pos): New function.
14810 (fast_find_position): Return the correct vpos. Add parameter
14811 STOP. In the final row, stop before glyphs having STOP as object.
14812 Don't consider glyphs that are not from a buffer.
14813 (fast_find_position) [0]: Add a presumably more correct version
14814 for after 21.1.
14815 (expose_window_tree, expose_frame): Don't compute intersections here.
14816 (expose_window): Do it here instead.
14817 (expose_window_tree, expose_window, expose_line): Return 1 when
14818 overwriting mouse-face.
14819 (expose_window): If W is the window currently being updated, mark
14820 the frame garbaged.
14821 (expose_frame): If mouse-face was overwritten, redo it.
14822 (x_use_underline_position_properties): New variable.
14823 (syms_of_xterm): DEFVAR_BOOL it.
14824 (x_draw_glyph_string): Add comment to use it in future.
14825 (x_draw_glyph_string): Restore clipping after drawing box.
14826 Fix a computation of the underline position.
14827 (w32_get_glyph_string_clip_rect): Minor cleanup.
14828 (x_fill_stretch_glyph_string): Remove an assertion.
14829 (x_produce_glyphs): Don't convert multibyte characters
14830 to unibyte characters in unibyte buffers.
14831 (cursor_in_mouse_face_p): New function.
14832 (x_draw_stretch_glyph_string): Use it to choose a different GC
14833 when drawing a cursor within highlighted text. Don't draw
14834 background again if it has already been drawn.
14835 (x_draw_glyph_string_box): Don't draw a full-width
14836 box just because the glyph row's full_width_p flag is set.
14837 (x_draw_glyphs): Fix computation of rightmost x for
14838 full-width rows.
14839 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
14840 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
f63fd14e 14841 change bottom shadow accordingly. Some cleanup.
c169b8f1
JR
14842 (x_update_window_end): Handle overwritten mouse face
14843 also for tool bar windows.
14844 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
14845 DRAW is DRAW_IMAGE_RAISED.
14846 (clear_mouse_face): Return 1 if text with mouse face was
2c568af5
SM
14847 actually redrawn. Make the function static.
14848 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
c169b8f1
JR
14849 optimize away highlighting if we pass over that same overlay again.
14850 (note_mouse_highlight): Call mouse_face_overlay_overlaps
14851 to detect a case where we have to highlight a different region
14852 despite not having left the currently highlighted region.
14853 Set mouse_face_overlay in the x_display_info. Avoid changing the
14854 mouse pointer shape when show_mouse_face has already done it, or
14855 there is no need. Handle mouse-face and help-echo in strings.
14856 (glyph_rect): New function.
14857 (w32_mouse_position): Use it to raise the threshold for mouse
14858 movement event generation.
14859 (w32_initialize_display_info): Initialize the x_display_info's
14860 mouse_face_overlay.
14861 (w32_set_vertical_scroll_bar): Don't clear a zero height
14862 or width area.
14863 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
14864 a widget to zero height.
14865
3cf3436e 14866 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 14867 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
14868 equivalents in menu_items.
14869 (w32_menu_show): Don't overwrite an item's name with its key
14870 description in case the description is a multibyte string.
14871 (single_submenu): Some cleanup.
14872
14873 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
14874 (postprocess_image): New function.
14875 (lookup_image): Call it for all image types except PostScript.
14876 (x_kill_gs_process): Call postprocess_image.
14877 (tiff_error_handler, tiff_warning_handler): New functions.
14878 (tiff_load): Install them as handlers.
14879 (x_kill_gs_process): Recognize if someone has cleared the image
14880 cache under us.
14881 (valid_image_p): Protect better against invalid image
14882 specifications. Previous code could signal an error.
14883 (Fx_hide_tip, Fshow_tip): Doc fix.
14884 (Fv_max_tooltip_size): New variable.
14885 (syns_of_xfns): DEFVAR_LISP it.
14886 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
f63fd14e 14887 window buffer to *tip* right after creating the frame. Set frame's
3cf3436e
JR
14888 window_width. Use a maximum tooltip size specified by
14889 Vx_max_tooltip_size, if that has valid contents.
14890 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
14891 Make sure the tooltip is completely visible.
14892 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
14893 (Fx_create_frame): Adjust the frame's height for presence
14894 of the tool bar before calling x_figure_window_size.
14895 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
14896 when the window gets smaller.
14897 (x_set_foreground_color): Set frame's cursor_pixel.
14898 (x_set_foreground_color, x_set_background_color): Cleaned up.
14899 (x_set_font): Handle case of x_new_fontset returning the same name
14900 as before, although there was a change in fontsets.
14901
386ca361
MB
149022001-10-21 Miles Bader <miles@gnu.org>
14903
c2d53558 14904 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
14905 (Flogxor): Add usage: string to doc string.
14906 * charset.c (Fstring): Likewise.
14907 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
14908 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
14909
f00691a3 149102001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14ff1ee0 14911
03be2694
PJ
14912 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
14913
14914 * alloc.c: Reindent DEFUNs with doc: keywords.
14915
14916 * abbrev.c (Finsert_abbrev_table_description): Reindent.
14917
14ff1ee0
PJ
14918 * frame.c: Change doc-string comments to `new style' [w/`doc:'
14919 keyword].
14920
2f147815 14921See ChangeLog.9 for earlier changes.
6922b018
KH
14922
14923;; Local Variables:
49b3bd82 14924;; coding: iso-2022-7bit
6922b018 14925;; End:
2a34a036 14926
2f147815 14927 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
2a34a036
GM
14928 Copying and distribution of this file, with or without modification,
14929 are permitted provided the copyright notice and this notice are preserved.
ab5796a9
MB
14930
14931;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4