(elp-results-symname-map): New keymap.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
101c421e
KS
12004-08-18 Kim F. Storm <storm@cua.dk>
2
3 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
4 forward to wait_reading_process_input via DO_DISPLAY arg.
5 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
6 object, only process output from that process; also inhibit
7 running timers if DO_DISPLAY==-2.
8
c438dc33
KS
92004-08-17 Kim F. Storm <storm@cua.dk>
10
11 * process.c (process_send_signal): Fix last change--use
12 _POSIX_VDISABLE instead of CVDISABLE when available.
13
8afc13c6
RS
142004-08-16 Richard M. Stallman <rms@gnu.org>
15
16 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
17 Set VQUIT and VINTR chars to the standard ones if they are unset.
18 [AIX]: Don't do that here. And don't force VINTR to standard
19 when SIGNALS_VIA_CHARACTERS.
20
c438dc33 21 * process.c (process_send_signal)
8afc13c6
RS
22 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
23 Do nothing if the character is CVDISABLE.
24
25 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
26
c438dc33 27 * intervals.c (move_if_not_intangible):
8afc13c6
RS
28 Force POSITION to be between BEGV and ZV.
29
6dad1714
JPW
302004-08-14 John Paul Wallington <jpw@gnu.org>
31
32 * buffer.c (Frestore_buffer_modified_p): Doc fix.
33
34 * fileio.c (Fread_file_name): Doc fix.
35
36 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
37
2bd77330
LT
382004-08-09 Luc Teirlinck <teirllm@auburn.edu>
39
40 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
41
c90e7e43
LT
422004-08-08 Luc Teirlinck <teirllm@auburn.edu>
43
44 * keyboard.c: Declare Qdisabled_command_function instead of
8392e138 45 Qdisabled_command_hook.
c90e7e43 46 (Fcommand_execute): Use Qdisabled_command_function instead of
8392e138 47 Qdisabled_command_hook.
c90e7e43
LT
48 (syms_of_keyboard): Ditto.
49
81909a1a
LT
502004-08-07 Luc Teirlinck <teirllm@auburn.edu>
51
52 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
53 (syms_of_keymap) <key-translation-map>: Doc fixes.
54
0cedd530
SM
552004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
56
1725a7c9
SM
57 * window.c (window_list_1): YAILOM.
58
0cedd530
SM
59 * fileio.c (make_temp_name): Handle multibyte prefixes.
60
2515a131
LT
612004-08-06 Luc Teirlinck <teirllm@auburn.edu>
62
63 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
64 Doc fix.
65
c8b20fb7
KH
662004-08-03 Kenichi Handa <handa@m17n.org>
67
68 * coding.c (decode_coding_string): Adjust coding->consumed, and
69 etc. with shrinked_bytes.
70
fb8b092b
KS
712004-08-03 Kim F. Storm <storm@cua.dk>
72
73 * indent.c (compute_motion): Fix check for full width window
74 in non-window case. Do not count left truncation glyph on
75 window systems.
76
df133612
LT
772004-08-02 Luc Teirlinck <teirllm@auburn.edu>
78
79 * data.c (Finteractive_form): Doc fix.
80
0f7a93c1
KS
812004-08-02 Kim F. Storm <storm@cua.dk>
82
83 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
84 properly accounting for continuation glyph on non-window systems.
85 (Fcompute_motion): Use actual window width if WIDTH is nil, and
86 actual window width/height if TOPOS is nil, properly accounting for
87 continuation glyphs on non-window systems, and optional header lines.
88 (vmotion): Let compute_motion calculate actual window width.
89
90 * window.c (window_scroll_line_based): Let compute_motion
91 calculate actual window width.
92
f491e1ed
KS
932004-08-02 Kim F. Storm <storm@cua.dk>
94
95 * process.c (read_process_output): Use whole read buffer.
96 Don't trigger adaptive read buffering on errors.
97
83f64226
LT
982004-07-31 Luc Teirlinck <teirllm@auburn.edu>
99
100 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
101
102 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
103
104 * callint.c (Fcall_interactively): Doc fix.
105
8afc13c6
RS
1062004-07-30 Richard M. Stallman <rms@gnu.org>
107
108 * abbrev.c (Fexpand_abbrev): Undo previous change.
109
7c111482
KS
1102004-07-30 Kim F. Storm <storm@cua.dk>
111
112 * editfns.c (Fformat): Allocate extra (dummy) element in info.
113
ee945d08
LT
1142004-07-28 Luc Teirlinck <teirllm@auburn.edu>
115
116 * eval.c (Fdefvar, Fdefconst): Doc fixes.
117
3f911c94
KS
1182004-07-27 Kim F. Storm <storm@cua.dk>
119
120 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
121 we have ensured that the glyph fits on the current line (or returned
122 MOVE_LINE_CONTINUED otherwise).
123
f29ff8c7
KS
1242004-07-26 Kim F. Storm <storm@cua.dk>
125
126 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
127 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
128 if target position is at end of display line but char is not a newline.
129
81159bb9
RS
1302004-07-25 Richard M. Stallman <rms@gnu.org>
131
ab431b61
RS
132 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
133 instead of ON_VERTICAL_BORDER, when on scroll bar.
134 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
135
136 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
137
f29ff8c7 138 * window.c (Fcoordinates_in_window_p):
81159bb9
RS
139 Take account of FRAME_INTERNAL_BORDER_WIDTH.
140
141 * alloc.c (check_cons_list): New function (contents commented out).
142
fc820cc5
LT
1432004-07-24 Luc Teirlinck <teirllm@auburn.edu>
144
145 * xfaces.c (Fcolor_supported_p): Doc fix.
146
147 * frame.c (Fselect_frame, Fset_frame_selected_window)
148 (Fframe_visible_p, Fraise_frame): Doc fixes.
149
289978b5
LT
1502004-07-24 Richard M. Stallman <rms@gnu.org>
151
7630911d
RS
152 * keyboard.h (not_single_kboard_state): Declared.
153
154 * fileio.c (Fwrite_region): Doc fix.
155
156 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
157
158 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
159 only when a real abbrev is present.
160
289978b5
LT
161 * xfns.c (x_icon_verify): New function.
162 (Fx_create_frame): Use it.
163
63cc10ae
KS
1642004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
165
166 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
167
36f826d4
KS
1682004-07-21 Kim F. Storm <storm@cua.dk>
169
170 * window.h (struct glyph_matrix): New members nrows_scale_factor
171 and ncols_scale_factor.
172
173 * window.c (make_window): Initialize nrows_scale_factor and
174 ncols_scale_factor members.
175
176 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
177 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
178 (required_matrix_height): Apply nrows_scale_factor.
179 (required_matrix_width): Apply ncols_scale_factor.
180
181 * xdisp.c (display_line): Increment nrows_scale_factor and set
182 fonts_changed_p if past last allocated row.
183 (append_glyph, append_composite_glyph, produce_image_glyph)
184 (append_stretch_glyph): Increment ncols_scale_factor and set
185 fonts_changed_p if current area is full.
186
5fc1c546
JD
1872004-07-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
188
189 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
190
cb7516e5
LT
1912004-07-19 Luc Teirlinck <teirllm@auburn.edu>
192
193 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
194 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
195 (Fset_window_start, Fscroll_up, Fscroll_down)
196 (Fother_window_for_scrolling, Fscroll_other_window)
197 (Fsave_window_excursion, Fset_window_vscroll)
198 (syms_of_window) <window-size-fixed>: Doc fixes.
199
dda741ec
JR
2002004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp> (tiny change)
201
202 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
203 ENCODE_SYSTEM for filenames.
204
bfcf6608
ST
2052004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
206
207 * mac.c (sys_select): Block input around call to
208 ReceiveNextEvent to prevent breakage. Correctly handle
209 blocking on event queue only by calling ReceiveNextEvent
210 instead of select (since GUI events aren't on an fd).
211 (sys_read): Remove function
212 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
213
e082ac9d
ST
2142004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
215
216 * mac.c (sys_select): Redo sys_select to use alarm-based
cb7516e5 217 polling instead of 1 sec timeouts (like solaris).
e082ac9d 218
cb7516e5 219 * macterm.c (x_make_frame_visible): Comment in polling on
e082ac9d
ST
220 frame creation.
221
222 * keyboard.c: Undef SIGIO on Carbon
223
224 * atimer.c (alarm_signal_handler): Call alarm handlers after
225 scheduling.
226
227 * eval.c (Feval): Remove quit_char test
228
229 * process.c (wait_reading_process_input): Remove clearing
230 stdin for select call on process input.
231
4b9da0fb
LT
2322004-07-18 Luc Teirlinck <teirllm@auburn.edu>
233
1204e81c
LT
234 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
235 capitalization error in docstring.
4b9da0fb 236
26503ad2
JB
2372004-07-17 Juanma Barranquero <lektu@terra.es>
238
239 * keyboard.c (not_single_kboard_state): Do nothing unless
240 MULTI_KBOARD is defined.
241
3751eb00
RS
2422004-07-17 Richard M. Stallman <rms@gnu.org>
243
244 * window.c (coordinates_in_window): Inside the window but outside
245 its box to the L or R, return ON_VERTICAL_BORDER.
246 (window_list_1): Rotate the list to start with WINDOW.
247
248 * print.c (print_preprocess): Test for print_depth at limit
249 before entering in being_printed.
250
251 * keyboard.c (not_single_kboard_state): New function.
252 (stuff_buffered_input): Now no-op only if no SIGTSTP.
253
254 * frame.c (Fdelete_frame): If we're in single_bboard_state on
255 this kboard, and we delete its last frame, go to any_kboard_state.
256
257 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
258
62eb6ca9
JR
2592004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp> (tiny change)
260
261 * w32fns.c (Fx_file_dialog): Encode strings in system coding
262 system before passing them to OS functions for display.
263
0f6af254
DK
2642004-07-15 David Kastrup <dak@gnu.org>
265
f9253326
KS
266 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
267 Apparently fixes an abort condition.
0f6af254 268
386c8f42
LT
2692004-07-14 Luc Teirlinck <teirllm@auburn.edu>
270
271 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
272 instead of a cons.
273
366511da
MB
2742004-07-14 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
275
276 * keyboard.c (echo_dash): Do nothing if there already is a dash
277 at the end of the echo string.
278
f85409d3
KS
2792004-07-12 Kim F. Storm <storm@cua.dk>
280
281 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
282 if GC_MARK_STACK.
283
0ba2e87b
LT
2842004-07-10 Luc Teirlinck <teirllm@auburn.edu>
285
da38045d
LT
286 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
287
0ba2e87b
LT
288 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
289 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
290 (Freplace_buffer_in_windows, Fset_window_buffer)
291 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
292 (syms_of_window): Expand docstring of `display-buffer-function'.
293
5668fbb8
LT
2942004-07-09 Luc Teirlinck <teirllm@auburn.edu>
295
296 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
297 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
298 that time values of the type (HIGH . LOW) are considered obsolete.
299
a085bf9d
LT
3002004-07-06 Luc Teirlinck <teirllm@auburn.edu>
301
669de2fb
LT
302 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
303 docstring.
304
bac66325 305 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
a085bf9d 306
8e975df9
JPW
3072004-07-06 John Paul Wallington <jpw@gnu.org>
308
309 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
310
fa164e6a
JPW
311 * fns.c (Fclear_string): Signal an error if STRING is not a string.
312
2bac9bb1
JD
3132004-07-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
314
315 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
316 instead of CGMainDisplayID (only in OSX 10.2 and later).
317
316ef0dc
JPW
3182004-07-04 John Paul Wallington <jpw@gnu.org>
319
320 * fileio.c (read_file_name_completion_ignore_case): New variable.
321 (syms_of_fileio): Declare and initialise it.
322 (Fread_file_name): Bind `completion-ignore-case' to respect it.
323
2a1a35c6
EZ
3242004-07-03 Eli Zaretskii <eliz@gnu.org>
325
326 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
327 for event.x and event.y.
328
33a72331
KH
3292004-07-01 Kenichi Handa <handa@m17n.org>
330
331 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
332 after getting a new string by pre-write-conversion.
333
07a6ab76
SM
3342004-06-30 Stefan <monnier@iro.umontreal.ca>
335
336 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
337 (x_calc_absolute_position): Remove unused var `child'.
338
339 * xfaces.c (x_supports_face_attributes_p)
340 (Fdisplay_supports_face_attributes_p): YAILOM.
341 (tty_supports_face_attributes_p): Remove unused var `i'.
342
343 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
344 back_unibyte_ok.
345
346 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
347
348 * fontset.c (Fset_fontset_font): Remove unused vars `family' and `registry'.
349
350 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
351
f96ec754
AS
3522004-06-30 Andreas Schwab <schwab@suse.de>
353
354 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
355 (Finit_image_library): Pass LIBRARIES through to
356 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
357 (lookup_image_type): Pass Qnil as second argument to
358 Finit_image_library.
359
360 * lisp.h: Declare Finit_image_library.
361
59feca74 3622004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
c8d09ad8 363
31983645
AS
364 * macterm.c (do_window_activate, do_window_deactivate): Remove.
365 (XTread_socket): Send mouse button events to the toolbox
366 dispatcher even when the mouse is grabbed. Don't process window
367 activate events for non-Emacs windows. Replace function calls to
368 do_window_activate and do_window_deactivate with their contents.
369 Reset mouse grabbing status when a window is deactivated.
59feca74 370
c61278bb
ST
3712004-06-29 Steven Tamm <steventamm@mac.com>
372
373 * macterm.c (mac_get_emulated_btn)
374 (mac_event_to_emacs_modifiers): Fix emulated mouse button
375 support to correctly mask out modifiers.
376
c3762cbd
DK
3772004-06-29 David Kastrup <dak@gnu.org>
378
379 * search.c (Fset_match_data): Allow buffer before end of list
380 which can happen if set-match-data is using a pre-consed list.
381
c61278bb 3822004-06-28 Steven Tamm <steventamm@mac.com>
e439b925
ST
383
384 * macterm.c (XTread_socket): Correctly set the frame position
385 after the window is moved.
386
74cdfe05
JD
3872004-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
388
389 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
390 gpix and gmask just before return to avoid memory leak.
03ecb80f
JD
391 (xg_get_image_for_pixmap): Add workaround for monochrome displays
392 so insensitive and activated icons look ok.
74cdfe05 393
ef544dc8
JR
3942004-06-27 Jason Rumney <jasonr@gnu.org>
395
396 * w32fns.c (file_dialog_callback): Disable edit control if set
397 to directories only on CDN_INITDONE message.
398 (Fx_file_dialog): Default to directories only when prompt starts
399 with "Dired".
400
7b7990cc
KS
4012004-06-25 Kim F. Storm <storm@cua.dk>
402
403 * alloc.c (allocate_misc): Update total_free_markers.
404 (free_misc): New function.
405 (safe_alloca_unwind, free_marker): Use it.
406
407 * lisp.h (free_misc): Add prototype.
408
409 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
410
d8c379f8
RS
4112004-06-24 Richard M. Stallman <rms@gnu.org>
412
413 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
414 (syms_of_emacs): Lisp variables deleted.
415
559cdd07
DK
4162004-06-23 David Kastrup <dak@gnu.org>
417
94939b84
DK
418 * search.c (Freplace_match): Adjust the match-data more thoroughly
419 when replacing strings in the buffer.
420 (Fmatch_data): When INTEGERS is non-nil and the last match was in
421 a buffer, add the buffer as last element to the match data.
422 (Fset_match_data): If an additional element of the match-data is a
423 buffer, restore it to last_thing_searched.
c8d09ad8 424 (save_search_regs): Save last_thing_searched as part of the match data.
559cdd07
DK
425 (restore_match_data): Restore it again.
426
dce417e7
LT
4272004-06-23 Luc Teirlinck <teirllm@auburn.edu>
428
429 * keymap.c (Ftext_char_description): Doc fix.
430 * doc.c (Fsnarf_documentation): Doc fix.
431
ef54b2d0
KS
4322004-06-22 Kim F. Storm <storm@cua.dk>
433
b5bc4d05
KS
434 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
435
ef54b2d0
KS
436 * lisp.h (struct Lisp_Save_Value): New member dogc.
437 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
438 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
439 (SAFE_FREE_LISP): New macro.
440
441 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
442 (make_save_value): Init new dogc member.
443 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
444
445 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
446 SAFE_FREE_LISP macros.
447
3d33d993
KS
4482004-06-22 Kim F. Storm <storm@cua.dk>
449
450 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
451 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
452 in that memory area are unknown to GC. Add comments.
453
454 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
455
5c917f98
KS
4562004-06-21 Kim F. Storm <storm@cua.dk>
457
458 * lisp.h (MAX_ALLOCA): Define here.
459 (safe_alloca_unwind): Add prototype.
460 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
461
462 * alloc.c (safe_alloca_unwind): New function.
463
464 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
465
466 * charset.c (Fstring): Use SAFE_ALLOCA.
467
468 * coding.c (MAX_ALLOCA): Remove define.
469
470 * data.c (MAX_ALLOCA): Remove define.
471 (Faset): Use SAFE_ALLOCA.
472
473 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
474
475 * fns.c (string_make_multibyte, string_to_multibyte)
476 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
477 (MAX_ALLOCA): Remove define.
478 (Fbase64_encode_region, Fbase64_encode_string)
479 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
480 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
481 memory leak if encoding fails.
482
483 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
484
9a09408e
EZ
4852004-06-21 Eli Zaretskii <eliz@gnu.org>
486
487 * print.c (Fwith_output_to_temp_buffer): Doc fix.
488
376de739
RS
4892004-06-20 Richard M. Stallman <rms@gnu.org>
490
491 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
492
493 * search.c (match_limit): Cleaner err msg when no match data available.
494
495 * window.c (syms_of_window): Doc fix.
496
497 * keyboard.c (command_loop_1): Handle values `only' and `identity'
498 for Vtransient_mark_mode.
499
500 * buffer.c (syms_of_buffer): Doc fix.
501
acd81db9
DK
5022004-06-21 David Kastrup <dak@gnu.org>
503
504 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
505 and unbinding of `case-fold-search' according to
506 `completion-ignore-case' around calls of string-match and
507 predicates, respectively. Should give satisfactory performance
508 in all relevant cases.
509
f303762d
JD
5102004-06-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
511
95911c74
JD
512 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
513 clip_x/y_origin.
514
a6cb6b78
JD
515 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
516
f303762d
JD
517 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
518
519 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
520 on Mac OSX.
521
bbdb2684
LT
5222004-06-16 Luc Teirlinck <teirllm@auburn.edu>
523
524 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
525
5ea48b1c
KS
5262004-06-16 Kim F. Storm <storm@cua.dk>
527
528 * dispextern.h (Vimage_types): Remove extern.
529
803aac3e
MB
5302004-06-16 Miles Bader <miles@gnu.org>
531
532 * image.c (lookup_image_type): Initialize image type if necessary.
533
cdc97764
KS
5342004-06-15 Kim F. Storm <storm@cua.dk>
535
c4a5739c
KS
536 * xdisp.c (try_cursor_movement): Exclude header line from scroll
537 margin at top of window.
538 (try_window_reusing_current_matrix): Calculate proper cursor position
539 after scrolling up with non-zero scroll margin, as the old cursor
540 position corresponds to value of PT before executing this command.
541 (try_window_id): Consider scroll margin at bottom of window too;
542 otherwise we fail to scroll when hl-line-mode is enabled.
543
cdc97764
KS
544 * syntax.c (skip_chars): Only recognize [:class:] when it has the
545 proper format and class is a lower-case word.
546
5b166323
JD
5472004-06-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
548
549 * gtkutil.c (xg_get_image_for_pixmap): New function.
c8d09ad8 550 (xg_get_gdk_pixmap_and_mask): Remove.
5b166323
JD
551 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
552 xg_get_gdk_pixmap_and_mask.
cdc97764 553
5b166323
JD
554 * xterm.h (struct x_display_info): Typo in comment fixed.
555
1ebd4f78
JB
5562004-06-14 Juanma Barranquero <lektu@terra.es>
557
558 * dispextern.h (Vimage_types): Make it conditional on
559 HAVE_WINDOW_SYSTEM.
560
561 * image.c (Vimage_types): Move from xdisp.c.
562 (Vimage_type_cache): New variable.
563 (define_image_type): New argument indicating whether an image
564 library was loaded; cache loaded status and return t on success,
565 nil otherwise.
566 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
567 (w32_delayed_load): New function to load an image library from a
568 list of possible filenames.
569 (init_xpm_functions, init_png_functions, init_jpeg_functions)
570 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
c8d09ad8 571 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
1ebd4f78
JB
572 (Finit_image_library): New function, extracted from `init_image'.
573 Try to initialize an image library on demand and cache whether we
574 were successful or not.
575 (syms_of_image): Initialize `Vimage_types' and
576 `Vimage_type_cache'. Add recognized image types to Vimage_types.
577 Export `init-image-library'.
578 (init_image): Remove initialization of all image types, except xbm
579 and pbm.
580
581 * xdisp.c (Vimage_types): Delete (moved to image.c).
582
904ee128
AS
5832004-06-14 Andreas Schwab <schwab@suse.de>
584
585 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
586 Avoid calling specbind when completion-regexp-list is empty.
587
092de21d
RS
5882004-06-13 Richard M. Stallman <rms@gnu.org>
589
590 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
591 (re_wctype, re_iswctype, re_wctype_to_bit):
592 Non-function definitions moved here from regex.c.
1ebd4f78 593
092de21d
RS
594 * regex.c (re_wctype, re_iswctype): Function defs longer static.
595 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
596 (re_wctype, re_iswctype, re_wctype_to_bit):
597 Non-function definitions moved to regex.h.
598
599 * window.c (Fselect_window): Doc fix.
600
601 * syntax.c: Include regex.h.
602 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
603 If requested, make a list of classes, then check the scanned
604 chars for membership in them.
605 (in_classes): New function.
606 Doc fix.
607
608 * keyboard.c (cmd_error): Don't call any_kboard_state
609 if inside a recursive edit level.
610
6112004-06-13 Lorentey K\e,Aa\e(Broly <lorentey@elte.hu>
612
613 * keyboard.c (command_loop): Call any_kboard_state before
614 command_loop_2 when at top level.
615
3ebc0939
AS
6162004-06-13 Andreas Schwab <schwab@suse.de>
617
cea5d0d4
AS
618 * print.c (print_object): Always use %ld for printing EMACS_INT.
619
620 * keyboard.c (cancel_hourglass_unwind): Return a value.
621 (modify_event_symbol): Always use %ld for printing EMACS_INT.
622 (Fexecute_extended_command): Likewise.
623
624 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
625 avoid clashes.
626 (SYNTAX): Likewise.
627 (SYNTAX_WITH_FLAGS): Likewise.
628 (SYNTAX_MATCH): Likewise.
629
630 * syntax.c (char_quoted): Avoid warning about undefined operation.
631 (find_defun_start): Likewise.
632 (scan_lists): Likewise.
633 (INC_FROM): Likewise.
634 (scan_sexps_forward): Likewise.
635
be8c4ce4
AS
636 * image.c: Include <ctype.h>.
637
3ebc0939
AS
638 * xfaces.c (face_attr_equal_p): Declare parameters.
639
6fb41b5b
KH
6402004-06-13 Kenichi Handa <handa@m17n.org>
641
642 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
643
fc3095ce
EZ
6442004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
645
646 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
647
66189a40
KH
6482004-06-12 Kenichi Handa <handa@m17n.org>
649
650 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
651 ccl_prog_stack_struct and update it.
652 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
653 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
654 ccl->eof_ic on EOF.
655 (ccl_debug_hook): New function.
656 (struct ccl_prog_stack): New member eof_ic.
657 (ccl_driver): Handle EOF in subrountine call correctly.
658
6592004-06-11 Kenichi Handa <handa@m17n.org>
660
661 * coding.c (decode_coding_string): Check CODING_FINISH_INTERRUPT.
662
1da71023
KS
6632004-06-11 Kim F. Storm <storm@cua.dk>
664
665 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
666
e9efcef4
JB
6672004-06-11 Juanma Barranquero <lektu@terra.es>
668
669 * keyboard.c (Fposn_at_point): Doc fix.
670
9b9ceb61
DK
6712004-06-11 David Kastrup <dak@gnu.org>
672
673 * search.c (match_limit): Don't flag an error if match-data
674 exceeding the allocated search_regs.num_regs gets requested, just
675 return Qnil.
676
6e87ac8f
MB
6772004-06-08 Miles Bader <miles@gnu.org>
678
679 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
680
0b0dea7b
JB
6812004-06-07 Juanma Barranquero <lektu@terra.es>
682
683 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
684 (Fcurrent_time_string, Fcurrent_time_zone)
685 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
686
a0a23346
MB
6872004-06-07 Miles Bader <miles@gnu.org>
688
08384afd 689 * xfaces.c (struct named_merge_point): New type.
a0a23346
MB
690 (push_named_merge_point): New function.
691 (merge_named_face): New function.
692 (merge_face_ref, face_at_buffer_position, face_at_string_position):
693 Use `merge_named_face'.
694 (merge_face_inheritance): Function removed.
c8d09ad8 695 (merge_face_ref): Rename from `merge_face_vector_with_property'.
a0a23346
MB
696 Add new `err_msgs' and `named_merge_points' args. Return error
697 status. Only print error messages if ERR_MSGS is true. Don't try to
698 do :inherit attribute validation.
699 (merge_face_heights): Handle `unspecified' in both directions.
700 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
701 Call `merge_face_ref' instead of `merge_face_inheritance'.
702 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
703 (compute_char_face, face_at_buffer_position)
704 (face_at_string_position): Call `merge_face_ref' instead of
705 `merge_face_vector_with_property'.
706
12d5b185
KH
7072004-06-07 Kenichi Handa <handa@m17n.org>
708
709 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
710 the necessary places.
711
2e2d7ee6
KS
7122004-06-07 Kim F. Storm <storm@cua.dk>
713
714 * process.c (Fdelete_process): Undo 2004-05-28 change.
715 Instead, call status_notify also for network process.
716 (status_message): Use process instead of status as arg.
717 Give messages "deleted" or "connection broken by remote peer" for
718 an exited network process.
719 (status_notify): Change call to status_message.
720 (read_process_output): Increase readmax to 4096. Do not increase
721 buffer size for datagram channels (default is now large enough).
722
fcf0d299
ST
7232004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
724
725 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
726 problem due to newly defined variable.
727
0722292b
MB
7282004-06-06 Miles Bader <miles@gnu.org>
729
730 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
731 immediately if non-interactive or not initialized.
732
ddfb8369
RS
7332004-06-05 Richard M. Stallman <rms@gnu.org>
734
735 * minibuf.c (Fcompleting_read): Doc fix.
736
57015754
AS
7372004-06-05 Andreas Schwab <schwab@suse.de>
738
739 * macfns.c (x_create_tip_frame): Fix declaration after statement.
740
23715ea6
JB
7412004-06-05 Juanma Barranquero <lektu@terra.es>
742
743 * keymap.c (Fdescribe_vector): Fix docstring.
744 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
745
8e330b22
MB
7462004-06-05 Miles Bader <miles@gnu.org>
747
748 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
749 attributes have different values than the default face.
750
9742a3a6
EZ
7512004-06-04 Eli Zaretskii <eliz@gnu.org>
752
753 * xfaces.c (x_supports_face_attributes_p): Make this function
754 conditional on HAVE_WINDOW_SYSTEM.
c8d09ad8
SM
755 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
756 Don't call x_supports_face_attributes_p if it was not compiled in.
9742a3a6 757
9717e36c
MB
7582004-06-04 Miles Bader <miles@gnu.org>
759
760 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
761 from Ftty_supports_face_attributes_p.
762 (x_supports_face_attributes_p): New function.
763 (Ftty_supports_face_attributes_p): Function deleted.
764 (Fdisplay_supports_face_attributes_p): New function.
765 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
f9711de4 766 (face_attr_equal_p): New function.
9717e36c
MB
767 (lface_equal_p): Use it.
768
52deb19f
JB
7692004-06-03 Juanma Barranquero <lektu@terra.es>
770
771 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
772 (Vw32_color_map): Fix typo in docstring.
773 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
774 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
775 Make argument names match their use in docstring.
776
86d373e6
JB
7772004-06-02 Juanma Barranquero <lektu@terra.es>
778
779 Work around bugs/problems with MinGW builds of graphics libraries
780 called from MSVC builds of Emacs.
781
782 * image.c (lookup_image): Make pointer to img static.
783 (png_read_from_memory): Disable "global" optimization.
784
2fb0ce67
SM
7852004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
786
c8d09ad8
SM
787 * eval.c (Fcondition_case): Fix usage. Simplify.
788
2fb0ce67
SM
789 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
790
50bf7673
ST
7912004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
792
793 * macfns.c: Don't include ccl.h.
794 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
86d373e6
JB
795 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
796 TextUtils.h.
c8d09ad8 797 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
50bf7673
ST
798 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
799 display height/width.
800 (compute_tip_xy, Vx_max_tooltip_size): Declare.
801 (unwind_create_tip_frame, compute_tip_xy): New functions.
802 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
803 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
804 and last_show_tip_args.
2fb0ce67 805
50bf7673
ST
806 * macgui.h [!MAC_OSX]: Include Gestalt.h.
807 (Cursor, No_Cursor): New defines.
c8d09ad8 808 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
50bf7673
ST
809 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
810
811 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
812
813 * macterm.c: Don't include Gestalt.h.
814 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
815 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
816 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
817 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
818 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
819 (construct_mouse_click, XTmouse_position)
820 (x_scroll_bar_report_motion, x_calc_absolute_position)
821 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
822 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
823 (note_mouse_movement): Clear the mouse face and reset the pointer
824 shape when the pointer goes outside the frame without grabbing.
825 (mac_front_window): New function.
826 (mac_window_to_frame): New macro.
827 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
828 (do_window_activate, do_window_deactivate, do_app_resume)
829 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
830 (do_zoom_window, mac_do_receive_drag, XTread_socket)
831 (mac_check_for_quit_char): Use mac_front_window and/or
832 mac_window_to_frame.
833 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
834 scroll-bar click event.
835 (mac_define_frame_cursor): Change the pointer shape.
c8d09ad8 836 (x_free_frame_resources): Reset tip_window to NULL when it is disposed.
50bf7673 837 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
c8d09ad8 838 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
50bf7673
ST
839 (do_window_update): Don't do anything if the updated window is the
840 tooltip window.
841 (do_mouse_moved): Handle mouse movement events here (previously in
842 XTread_socket). Clear the mouse face if
843 dpyinfo->mouse_face_hidden is set.
844 (do_os_event, do_events): Remove (now in XTread_socket).
845 (XTread_socket): Immediately return if interrupt_input_blocked.
c8d09ad8
SM
846 Loop until all the events in the queue are processed.
847 Rearrange codes for mouse grabbing. Add tooltip support. Include the
50bf7673
ST
848 contents of do_os_event and do_events. Remove mouse movement
849 handling (now in do_mouse_moved). Add the case where
850 Vmouse_highlight has an integer value.
851 (NewMacWindow): Remove.
852 (make_mac_frame): Do what NewMacWindow previously did. Don't do
853 excess initializations.
854 (make_mac_terminal_frame): Previous initializations in
855 make_mac_frame are moved here.
c8d09ad8
SM
856 (mac_initialize_display_info):
857 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
50bf7673
ST
858
859 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
860 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
861
08fd1251
RS
8622004-05-29 Richard M. Stallman <rms@gnu.org>
863
864 * lisp.h (truncate_undo_list): Update decl.
865
866 * alloc.c (undo_outer_limit): New variable.
867 (syms_of_alloc): Defvar it.
868 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
869
870 * undo.c (truncate_undo_list): New arg LIMITSIZE.
871
872 * alloc.c (lisp_align_malloc): Check for base == 0
873 regardless of HAVE_POSIX_MEMALIGN.
874 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
875
227ef0ff
SM
8762004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
877
878 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
879 (marker_blocks_pending_free): Remove.
880 (Fgarbage_collect): Sweep after cleaning up undo-lists.
881 Mark the undo lists after claning them up.
882 Don't free block in marker_blocks_pending_free.
883 (mark_buffer): Don't mark undo_list.
884 (gc_sweep): Sweep hash-tables and strings first.
885 Do free marker blocks that are empty.
886
034a6113
SM
8872004-05-28 Jim Blandy <jimb@redhat.com>
888
889 * regex.c (print_partial_compiled_pattern): Add missing 'break'
890 after 'case wordend'. For symbeg and symend, print to stderr,
891 like the other cases.
892
33594a8d
NF
8932004-05-28 Noah Friedman <friedman@splode.com>
894
895 * process.c (Fdelete_process): Do not call remove_process.
896
ce50a847
SM
8972004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
898
899 * alloc.c (struct backtrace): Remove.
900 (Fgarbage_collect): Use the new mark_backtrace.
901
902 * eval.c (mark_backtrace): New function.
903
904 * minibuf.c (run_exit_minibuf_hook): New function.
905 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
906 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
907
1e8dae36
KS
9082004-05-27 Kim F. Storm <storm@cua.dk>
909
910 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
911 over display properties, e.g. images, that replace buffer text.
912
846faa3b
KS
9132004-05-25 Kim F. Storm <storm@cua.dk>
914
915 * alloc.c (marker_blocks_pending_free): New var.
916 (gc_sweep): Store free marker blocks on that list.
917 (Fgarbage_collect): Free them after undo-list cleanup.
918
919 * process.c (wait_reading_process_input): Check connect_wait_mask
920 before actually accepting connection in case it has already been
921 accepted due to recursion.
922
6239a668
KH
9232004-05-23 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu> (tiny change)
924
ce50a847
SM
925 * coding.c (Fset_safe_terminal_coding_system_internal):
926 Set suppress_error in safe_terminal_coding, not terminal_coding.
6239a668 927
71d5a208
RS
9282004-05-22 Richard M. Stallman <rms@gnu.org>
929
930 * alloc.c (Fmake_string): Doc fix.
931
932 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
933 and the alist pairs too.
934
935 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
936
937 * emacs.c (main): Update copyright year.
938
939 * fileio.c (Fread_file_name): Expand DIR if not absolute.
940
941 * insdel.c (del_range_2, replace_range): Don't write an anchor
942 if the gap is empty.
943
944 * xdisp.c (try_scrolling): If scroll-up-aggressively or
945 scroll-down-aggressively is small but positive, put point
946 near the screen edge.
947
f63fd14e
JB
9482004-05-22 Juanma Barranquero <lektu@terra.es>
949
950 * keymap.c (Fdefine_key): Doc fix.
951
4d12067c
KS
9522004-05-22 Kim F. Storm <storm@cua.dk>
953
954 * alloc.c (struct backtrace): Add debug_on_exit member.
955 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
956 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
957 the removed cons cells.
958 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
959 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
960 any cons cells pointing to unallocated stings.
961 Do not lisp_free any marker blocks, as there may still be pointers
962 to them from buffer undo lists at this stage of GC.
963
964 * keyboard.c (struct backtrace): Add debug_on_exit member.
965 (Fcommand_execute): Clear it.
966
931285e2
LT
9672004-05-20 Luc Teirlinck <teirllm@auburn.edu>
968
969 * intervals.c (lookup_char_property): Do not prematurely return nil.
970
669fa600
SM
9712004-05-19 Jim Blandy <jimb@redhat.com>
972
973 Add support for new '\_<' and '\_>' regexp operators, matching the
f63fd14e 974 beginning and end of symbols.
4d12067c 975
669fa600
SM
976 * regex.c (enum syntaxcode): Add Ssymbol.
977 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
978 (re_opcode_t): New opcodes `symbeg' and `symend'.
979 (print_partial_compiled_pattern): Print the new opcodes properly.
980 (regex_compile): Parse the new operators.
ce50a847 981 (analyse_first): Skip sym(beg|end) (they match only the empty string).
669fa600
SM
982 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
983 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
984 (re_match_2_internal): Match symbeg and symend.
985
986 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
987
0d8c2e5c
KS
9882004-05-19 Kim F. Storm <storm@cua.dk>
989
990 * .gdbinit (xsymbol): Fix last change.
991
669fa600
SM
9922004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
993
994 * .gdbinit (xprintstr): New fun.
995 (xstring, xprintsym): Use it.
996
997 * w32proc.c (create_child): Use INTMASK.
998
999 * alloc.c (Fgarbage_collect): Do all the marking before flushing
1000 unmarked elements of the undo list.
1001
9a6a4c40
DP
10022004-05-18 David Ponce <david@dponce.com>
1003
1004 * print.c (print): Reset print_depth before to call print_object.
1005
f3c4ec74
JR
10062004-05-18 Jason Rumney <jasonr@gnu.org>
1007
1008 * w32console.c: Prefix RIF functions with w32con_ to avoid
1009 namespace clash with functions in term.c and w32term.c.
1010
1011 * w32menu.c (add_menu_item, w32_menu_display_help)
1012 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
1013
0d8c2e5c 1014 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
f3c4ec74 1015
6be49c3a
EZ
10162004-05-18 Eli Zaretskii <eliz@gnu.org>
1017
4d0b9a0a
EZ
1018 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
1019
6be49c3a
EZ
1020 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
1021 with make_number.
1022 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
1023 with XINT.
1024
0bc90bba
KS
10252004-05-18 Kim F. Storm <storm@cua.dk>
1026
89d19988
KS
1027 * blockinput.h (INPUT_BLOCKED_P): New macros.
1028
1029 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
1030 (Ftop_level): Unblock input if blocked.
1031
0bc90bba
KS
1032 * buffer.h (GET_OVERLAYS_AT): New macro.
1033 * msdos.c (IT_note_mouse_highlight): Use it.
1034 * textprop.c (get_char_property_and_overlay): Use it.
1035 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
1036 * xfaces.c (face_at_buffer_position): Use it.
1037
1038 * print.c (print_object): Increase buf size.
1039
653bd0f6
JR
10402004-05-17 Jason Rumney <jasonr@gnu.org>
1041
1042 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
1043 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
1044 Lisp_Object using i member.
1045 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
1046 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
1047 consistently.
1048
1049 * w32proc.c (create_child): Use make_number instead of masking pid.
1050
1051 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
1052 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
1053 Use EQ to compare Lisp_Objects.
1054 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
1055
1056 * w32term.c (w32_num_mouse_buttons): Rename from
1057 Vw32_num_mouse_buttons and make it an int.
1058
1059 * w32.c (init_environment): Use it.
1060
1061 * w32fns.c (w32_wnd_proc): Likewise.
1062
1063 * w32proc.c (w32_pipe_read_delay): Rename from
1064 Vw32_pipe_read_delay and make it an int.
1065
1066 * w32.c (_sys_read_ahead): Use it.
1067
1068 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
1069
1070 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
1071
1072 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
1073 (key_event): Don't mix Lisp_Object and int.
1074
1075 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
1076
1077 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
1078 modifiers in language change event.
1079
54b53ba7
KS
10802004-05-17 Kim F. Storm <storm@cua.dk>
1081
1082 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
1083 Such objects may be freed markers which still exist on an undo list.
1084
6e86a75d
JB
10852004-05-16 Juanma Barranquero <lektu@terra.es>
1086
1087 * data.c (Fset_default): Make argument names match their use in
1088 docstring.
1089
fc80da24
AS
10902004-05-15 Andreas Schwab <schwab@suse.de>
1091
1092 * emacs.c (gdb_array_mark_flag): Define.
1093 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
1094
c1380aa6
EZ
10952004-05-15 Eli Zaretskii <eliz@gnu.org>
1096
1097 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
1098 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
1099 defined for the MS-DOS build.
1100
89458937
SM
11012004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
1102
1103 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
1104
08020f9a
KH
11052004-05-14 Kenichi Handa <handa@m17n.org>
1106
1107 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
1108
a433994a
ST
11092004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1110
1111 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
1112 section to frame.c section.
1113 (Fxw_display_color_p, Fx_file_dialog): Declare if
89458937 1114 HAVE_WINDOW_SYSTEM defined.
0d8c2e5c 1115
a433994a 1116 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
0d8c2e5c 1117
a433994a 1118 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
0d8c2e5c 1119
a433994a
ST
1120 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
1121 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
1122 (XTread_socket): Fix int/Lisp_Object mixup.
1123 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
0d8c2e5c 1124
a433994a
ST
1125 * macterm.h (struct frame, struct face, struct image)
1126 (display_x_get_resource, Fx_display_color_p)
89458937
SM
1127 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
1128 Add prototypes.
a433994a 1129
b51a51b9
KS
11302004-05-14 Kim F. Storm <storm@cua.dk>
1131
1132 * process.c (wait_reading_process_input): Make reentrant.
1133 Make Available and Connecting non-static. Save and restore value
1134 of waiting_for_user_input_p.
1135
2bde1dd8
KS
11362004-05-13 Kim F. Storm <storm@cua.dk>
1137
1138 * keyboard.c (mark_kboards): Don't mark x and y members
1139 that are overloaded in selection request events.
1140
a267ab4d
SM
11412004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
1142
1143 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
1144
eb15ce9e
GM
11452004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
1146
1147 * window.c (Fdisplay_buffer, Fsplit_window)
1148 (split-height-threshold): Doc fix.
1149
7fc92635
JB
11502004-05-13 Juanma Barranquero <lektu@terra.es>
1151
1152 * xfaces.c (Ftty_supports_face_attributes_p)
1153 (Finternal_copy_lisp_face): Fix typo in docstring.
1154 (Finternal_get_lisp_face_attribute): Fix docstring.
1155
1ec2a572
JD
11562004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1157
1158 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
1159
ae9292e0
ST
11602004-05-11 Steven Tamm <steventamm@mac.com>
1161
1162 * macfns.c (Fx_create_frame): Default to using tool-bar by
1163 setting tool-bar-lines to 1 in default-frame-alist.
1164
11652004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ea1aaa6f
ST
1166
1167 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
1168 (xpm_get_color_table_v, xpm_make_color_table_h)
1169 (xpm_put_color_table_h, xpm_get_color_table_h)
1170 (xpm_str_to_color_key, xpm_load_image, xpm_load)
1171 (syms_of_image): Support XPM on Carbon Emacs. Does not
a267ab4d 1172 depend on libXpm, but only supports XPM version 3 without extensions.
ea1aaa6f 1173
fe97e8df
ST
11742004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1175
a267ab4d 1176 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
fe97e8df
ST
1177 instead of FRAME_X_P
1178
b47e779e
KS
11792004-05-11 Kim F. Storm <storm@cua.dk>
1180
1181 * process.c (read_process_output): Grow decoding_buf when needed;
1182 this could cause a crash in allocate_string and compact_small_strings.
1183
cdc9b845
EZ
11842004-04-29 Jim Blandy <jimb@redhat.com>
1185
1186 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
1187 against proper opcode.
1188
aa7094ba
JB
11892004-05-10 Juanma Barranquero <lektu@terra.es>
1190
1191 * process.c (Fstart_process): Fix docstring.
1192
1193 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
1194 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
1195 (Fsplit_char, Fchar_charset): Make argument names match their use
1196 in docstring.
1197
e109331a
RS
11982004-05-10 Richard M. Stallman <rms@gnu.org>
1199
1200 * print.c (print_preprocess): Use being_printed, loop_count and
1201 halftail to detect overdeep nesting and cyclic cdr chains.
1202
9a28b921
AS
12032004-05-10 Andreas Schwab <schwab@suse.de>
1204
1205 * lisp.h: Declare Fmake_symbolic_link.
1206
1207 * fileio.c (Frename_file): Remove extra argument in call to
1208 Fmake_symbolic_link.
1209
e2c02c1a
KS
12102004-05-10 Kim F. Storm <storm@cua.dk>
1211
1212 * xdisp.c (calc_line_height_property): Use string position when
1213 object is a string.
1214
cfe9d13e
KH
12152004-05-10 Kenichi Handa <handa@m17n.org>
1216
a57e8159
KH
1217 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
1218 inhibit-modification-hooks to t temporarily before calling
1219 Ferase_buffer.
1220
1221 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
1222 inhibit-modification-hooks to t temporarily before calling
1223 Ferase_buffer.
1224
1225 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
1226 inhibit-modification-hooks to t temporarily before calling
1227 Ferase_buffer.
1228
cfe9d13e
KH
1229 * fns.c (count_combining): Delete it.
1230 (concat): Don't check combining bytes.
1231
ceb96489
JR
12322004-05-09 Jason Rumney <jasonr@gnu.org>
1233
1234 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
1235 (globals_of_w32fns): Set it.
1236
b1c661c7
JB
12372004-05-09 Piet van Oostrum <piet@cs.uu.nl> (tiny change)
1238
1239 * data.c (Fquo): Simplify.
1240
28712a21
JB
12412004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
1242
1243 * data.c (Fquo): If any argument is float, do the computation in
1244 floating point.
1245
0f0af7a8
JB
12462004-05-08 Juanma Barranquero <lektu@terra.es>
1247
88214ef6
JB
1248 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
1249 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
1250 Fix spelling of Emacs on docstring.
1251 (Fset_process_coding_system, Fprocess_coding_system)
1252 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
1253 Make argument names match their use in docstring.
1254 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
1255 Fix docstring.
1256
0f0af7a8
JB
1257 * editfns.c (Finsert_buffer_substring): Make argument names match their
1258 use in docstring.
1259
1260 * syntax.c (Fmodify_syntax_entry): Fix docstring.
1261
2a316a84
ST
12622004-05-07 Steven Tamm <steventamm@mac.com>
1263
1264 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
1265 around call to ReceiveEvent to avoid certain crashes.
1266
12672004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
0d8c2e5c 1268
2a316a84
ST
1269 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
1270 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
1271 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
1272 Save/restore the current graphics port and device handle when
1273 drawing into an offscreen graphics world.
1274
1275 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
1276 (gif_load): Likewise.
1277
ab80314b
JB
12782004-05-07 Juanma Barranquero <lektu@terra.es>
1279
1280 * window.c (Fset_window_buffer): Fix docstring.
1281
70646bb5
TTN
12822004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
1283
1284 * emacs.c (main) [VMS]: Fix var ref.
1285
b03a4fdd
JB
12862004-05-06 Romain Francoise <romain@orebokech.com> (tiny change)
1287
1288 * data.c (Fsetq_default): Fix docstring.
1289
279d3293
JR
12902004-05-06 Jason Rumney <jasonr@gnu.org>
1291
1292 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
1293 to avoid name clash.
1294
f72b5416
JD
12952004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1296
1297 * fileio.c (barf_or_query_if_file_exists): Use lstat.
1298 (Frename_file): Handle renaming of symlinks across file systems.
440c7d00 1299 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
f72b5416 1300
6ab66799
KS
13012004-05-04 Kim F. Storm <storm@cua.dk>
1302
1303 * xdisp.c (Qtotal): New var.
1304 (syms_of_xdisp): Intern and staticpro it.
1305 (calc_line_height_property): New arg total. Set it if
1306 line-spacing property has format (total . VALUE).
1307 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
1308 Handle total line-spacing property.
1309
ab2d724b
JD
13102004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1311
1312 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
1313 "under" scroll bar when size/position changes.
1314
238add5e
JR
13152004-05-03 Jason Rumney <jasonr@gnu.org>
1316
1317 * makefile.nt: Remove.
1318
1644f4e4
EZ
13192004-05-02 Eli Zaretskii <eliz@gnu.org>
1320
a267ab4d
SM
1321 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
1322 Avoid compiler warnings.
05fdbeb8 1323
1644f4e4
EZ
1324 * Makefile.in (region-cache.o): Depend on config.h.
1325
6cbc951e
SM
13262004-05-02 Romain Francoise <romain@orebokech.com> (tiny change)
1327
1328 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
1329 with continuation lines, too.
1330
2b98b088
TTN
13312004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
1332
1333 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
1334
d9bf7950
SM
13352004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
1336
1337 * xdisp.c (calc_line_height_property): YAILOM (yet another
1338 int/Lisp_Object mixup).
1339
affa509c
EZ
13402004-05-01 Eli Zaretskii <eliz@gnu.org>
1341
1342 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
1343 undo bad effect of pack(4) in some versions of system headers.
1344
07c07cfe
JR
13452004-05-01 Jason Rumney <jasonr@gnu.org>
1346
1347 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
1348
e71caa4e
KS
13492004-04-30 Kim F. Storm <storm@cua.dk>
1350
1351 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
b2b55d03 1352 (syms_of_buffer) <cursor-type>: Doc fix.
e71caa4e
KS
1353
1354 * dispextern.h (struct it): Remove member use_default_face.
1355 Add members override_ascent, override_descent, override_boff.
1356
1357 * xdisp.c (init_iterator): Handle line-spacing float value.
1358 Initialize override_ascent member.
1359 (append_space_for_newline): Reset override_ascent.
1360 Remove use_default_face.
1361 (calc_line_height_property): New function to calculate value of
1362 line-height and line-spacing properties. Look at overlays, too.
1363 Set override_ascent, override_descent, override_boff members when
1364 using another face than the current face. Float values are now
1365 relative to the frame default font, by default; accept a cons
1366 of ratio and face name to specify value relative to a specific face.
1367 (x_produce_glyphs): Use calc_line_height_property.
1368 Use override_ascent etc. when set to handle different face heights.
1369 A negative line-spacing property value is interpreted as a total
1370 line height, rather than inter-line spacing.
1371 (note_mouse_highlight): Allocate room for 40 overlays initially.
1372
0fddae66
SM
13732004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
1374
1375 * data.c (Fsubr_name): New fun.
1376 (syms_of_data): Defsubr it.
1377
712d23dc
KS
13782004-04-29 Kim F. Storm <storm@cua.dk>
1379
1380 * xdisp.c (null_glyph_slice): New var.
1381 (append_glyph, append_composite_glyph, append_stretch_glyph):
1382 Use it to initialize glyph slice.
1383
033ad8c6
SM
13842004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
1385
1386 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
1387 (on_hot_spot_p): Make sure we always return a value.
1388 (Flookup_image_map): Remove unused var ix and iy.
1389 (note_mode_line_or_margin_highlight): Remove unused var `image'.
1390
93397360
EZ
13912004-04-27 Eli Zaretskii <eliz@gnu.org>
1392
1393 * msdos.c (init_environment): If one of the TMP... environment
1394 variables is set to a drive letter without a trailing slash,
1395 append a slash.
1396
0c54865e
EZ
13972004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
1398
1399 * editfns.c (lisp_time_argument): Provide externally.
1400
1401 * fileio.c (Fset_file_times): New function.
1402 (syms_of_fileio): Intern and staticpro it.
1403
d3b111bd
KS
14042004-04-27 Kim F. Storm <storm@cua.dk>
1405
07dc1231
KS
1406 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
1407 header line strings.
1408
360fe9d2
KS
1409 * dispextern.h (struct it): New member use_default_face.
1410
d3b111bd
KS
1411 * xdisp.c (Qline_height): New variable.
1412 (syms_of_xdisp): Intern and staticpro it.
1413 (append_space_for_newline): Partially undo 2004-04-25 change;
1414 add default_face_p arg, and restore callers.
1415 Clear it->use_default_face after use.
1416 (x_produce_glyphs): Set default font for ascii char if
1417 it->use_default_font is set. Change line-spacing property to set
1418 just extra line spacing. Handle new line-height property.
1419
0448588b
AS
14202004-04-26 Andreas Schwab <schwab@suse.de>
1421
1422 * print.c (print_object): Print non-ascii characters in bool
1423 vector representation as octal escapes.
1424
1425 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
1426 * print.c (print_object): Use it instead of BITS_PER_CHAR for
1427 bool vectors.
1428 * lread.c (read1): Likewise.
1429 * alloc.c (Fmake_bool_vector): Likewise.
1430 * data.c (Faref, Faset): Likewise.
1431 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
1432 (mapcar1): Likewise.
d3b111bd 1433
536d6baa
ST
14342004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
1435
1436 * lread.c (init_lread): Fixing typo HAVE_CARBON test logic
1437
ae11577a
MB
14382004-04-26 Miles Bader <miles@gnu.org>
1439
1440 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
1441
e198ba87
JB
14422004-04-26 Juanma Barranquero <lektu@terra.es>
1443
1444 * buffer.c (Fpop_to_buffer): Fix docstring.
1445
f3d5f92d 14462004-04-26 Steven Tamm <steventamm@mac.com>
e198ba87 1447
f3d5f92d
ST
1448 * lread.c (init_lread): Don't display missing lisp directory
1449 warnings with Carbon Emacs because self-contained bundled Emacs
e198ba87 1450 may be built without correct installation path.
f3d5f92d 1451
03e35edc
KS
14522004-04-25 Kim F. Storm <storm@cua.dk>
1453
9ff3aa31
KS
1454 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
1455
1456 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
1457
03e35edc
KS
1458 * xdisp.c (append_space_for_newline): Rename from append_space.
1459 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
1460 (x_produce_glyphs): Handle line-spacing property on newline char.
1461 If value is t, adjust ascent and descent to fit current row height.
1462 If value is an integer or float, set extra_line_spacing to integer
1463 value, or to float value x current line height.
1464
f24814e0
KH
14652004-04-23 Kenichi Handa <handa@m17n.org>
1466
1467 * fontset.c (Finternal_char_font): If POSITION is nil, return
1468 font for displaying CH with the default face.
1469
d814862a
JB
14702004-04-23 Juanma Barranquero <lektu@terra.es>
1471
1472 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
1473
063a45c5
SM
14742004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
1475
1476 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
1477 Don't make assumptions about the relative place of i and val.
1478 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
1479
ae7ab2d3
KS
14802004-04-21 Kim F. Storm <storm@cua.dk>
1481
1482 * dispextern.h (struct glyph_slice): New struct.
1483 (struct glyph): New member slice.
1484 (GLYPH_SLICE_EQUAL_P): New macro.
1485 (GLYPH_EQUAL_P): Use it.
1486 (struct glyph_string): New member slice.
1487 (struct it_slice): New struct.
1488 (struct it): New member slice, add member to stack too.
1489 New member constrain_row_ascent_descent_p.
1490 (image_ascent): Add prototype.
1491
1492 * dispnew.c (buffer_posn_from_coords): Return full image width
1493 and height even for image slices (posn is relative to full image).
1494 (marginal_area_string): Adjust x0,y0 for image slice.
1495
1496 * image.c (image_ascent): Add slice arg; calculate ascent for
1497 image slice (or full image).
1498
1499 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
1500 (syms_of_keyboard): Defsubr them.
1501
1502 * lisp.h (pos_visible_p): Fix prototype.
1503
c62aec78 1504 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
ae7ab2d3
KS
1505 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
1506 (x_draw_image_foreground, x_draw_image_relief)
1507 (x_draw_image_foreground_1, x_draw_image_glyph_string):
1508 Draw sliced images.
1509
1510 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
1511 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
1512 (x_draw_image_foreground, x_draw_image_relief)
1513 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
1514 Draw sliced images.
1515
1516 * w32term.h (image_ascent): Remove prototype.
1517
1518 * window.c (Fpos_visible_in_window_p): Return pixel position if
1519 PARTIALLY arg is non-nil. Simplify. Doc fix.
1520 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
1521 to return/set vscroll in pixels.
1522
1523 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
1524
1525 * xdisp.c (Qslice): New variable.
1526 (syms_of_xdisp): Intern and staticpro it.
1527 (pos_visible_p): Return pixel position in new x and y args.
1528 (init_iterator): Reset it->slice info.
1529 (handle_display_prop): Parse (slice ...) property.
1530 (push_it, pop_it): Save/restore slice info.
1531 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
1532 force repositioning of tall row if window is vscrolled, as that
1533 would reset vscroll.
1534 (append_space): Set it->constrain_row_ascent_descent_p to avoid
1535 increasing row height if row is non-empty.
1536 (fill_image_glyph_string): Copy slice info.
1537 (take_vertical_position_into_account): Simplify.
1538 (produce_image_glyph): Handle iterator slice info, setup glyph
1539 slice info. Do not force minimum line height.
1540 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
1541 do not increase height (ascent/descent) of non-empty row when
1542 adding normal character glyph; instead reduce glyph ascent/descent
1543 appropriately; if row is higher than current glyph, adjust glyph
1544 descent/ascent to reposition glyph within the existing row.
1545 Likewise, when char is newline, only set ascent/descent if row is
1546 currently empty.
1547 (note_mouse_highlight): Handle hotspots with sliced image.
1548
1549 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
1550 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
1551 (x_draw_image_foreground, x_draw_image_relief)
1552 (x_draw_image_foreground_1, x_draw_image_glyph_string):
1553 Draw sliced images.
1554
1555 * xterm.h (image_ascent): Remove prototype.
1556
d58f8753
SM
15572004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
1558
1559 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
1560
4ce2719d
JPW
15612004-04-20 John Paul Wallington <jpw@gnu.org>
1562
1563 * fns.c (Fassoc, Feql): Fix indentation.
1564
d58f8753 1565 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
4ce2719d 1566
95f8c3b9
JPW
15672004-04-19 John Paul Wallington <jpw@gnu.org>
1568
1569 * fns.c (Feql): New function.
d58f8753 1570 (syms_of_fns): Defsubr it.
95f8c3b9 1571
b7e85537
JR
15722004-04-18 Jason Rumney <jasonr@gnu.org>
1573
1574 * w32select.c (Fw32_set_clipboard_data): Get sequence number
1575 after closing the clipboard.
1576
5a72efd4
LT
15772004-04-16 Luc Teirlinck <teirllm@auburn.edu>
1578
1579 * buffer.c (Fbuffer_base_buffer): Doc fix.
1580
20dc8583
KS
15812004-04-17 Kim F. Storm <storm@cua.dk>
1582
60962ec4
KS
1583 * keymap.c (Fkey_description): Add optional PREFIX arg.
1584 Combine prefix with KEYS to make up the full key sequence to describe.
1585 Correlate meta_prefix_char and following (simple) key to describe
1586 as meta modifier. All callers changed.
1587 (describe_map): Rename arg `keys' to `prefix'. Remove local
1588 `elt_prefix' var. Use Fkey_description with prefix instead of
1589 elt_prefix combined with Fsingle_key_description.
1590 (describe_vector): Declare static. Replace arg `elt_prefix' with
1591 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
1592 if !KEYMAP_P. Use Fkey_description with prefix instead of
1593 Fsingle_key_description.
1594
1595 * keymap.h (Fkey_description): Fix prototype.
1596 (describe_vector): Remove prototype.
1597
409368b9
KS
1598 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
1599
20dc8583
KS
1600 * image.c (PNG_BG_COLOR_SHIFT): Remove.
1601 (png_load): Fix calculation of transparent background color on X
1602 and W32 platforms.
1603
75c5501b
JB
16042004-04-16 Juanma Barranquero <lektu@terra.es>
1605
1606 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
1607 not too large before computing how much to scroll.
1608
da879ae8
SM
16092004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
1610
1611 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
1612
d01ca4a8
LT
16132004-04-14 Luc Teirlinck <teirllm@auburn.edu>
1614
1615 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
1616 Add hyperlink to Elisp manual to the docstring.
1617
572943b3
SM
16182004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
1619
1620 * callint.c (fix_command): Use XDCR.
1621
5e30a0fb
NR
16222004-04-14 Nick Roberts <nick@nick.uklinux.net>
1623
1624 * window.c (Fget_lru_window): Doc fix.
1625
a27ddfaf
KS
16262004-04-14 Kim F. Storm <storm@cua.dk>
1627
1628 * editfns.c (Fformat): Fix allocation size of precision array.
1629
1630 * dispnew.c (update_window): Only set changed_p if
1631 scrolling_window actually did scroll.
1632 (scrolling_window): Only return 1 if we actually did scroll.
1633
1634 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
1635 height to glyph height when cursor row is not fully visible.
1636 (make_cursor_line_fully_visible): Add FORCE_P arg to return
1637 failure in case row is higher than window. Callers changed.
1638 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
1639 Try to scroll partially visible, higher-than-window cursor row.
1640 (redisplay_window): Always try to scroll partially visible,
1641 higher-than-window cursor row - both initially and again with
1642 centering_position = 0.
1643 Clear desired matrix before retrying with centering_position = 0.
1644
da879ae8
SM
16452004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
1646
1647 * syntax.c (scan_lists): Simplify backward string scan.
1648 Fix off-by-one boundary check for string and comment fences.
1649
5fc16e8e
SM
16502004-04-13 Joe Buehler <jbuehler@hekimian.com>
1651
1652 * sheap.c, unexcw.c: New files.
1653
c9aac8e6
LT
16542004-04-12 Luc Teirlinck <teirllm@auburn.edu>
1655
1656 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
1657 base buffer has been killed. Correct the error message if the
1658 base buffer does not exist.
1659
1e88a355
SM
16602004-04-12 Joe Buehler <jbuehler@hekimian.com>
1661
1662 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
1663 Cygwin itself. Add support for Xaw3d scrollbars.
1664
1665 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
1666
1667 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
1668
1669 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
1670 before Cygwin unexec.
1671
1672 * Makefile.in: Link changes for Cygwin unexec() support.
1673
8dbff9a0
AS
16742004-04-12 Andreas Schwab <schwab@suse.de>
1675
1676 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
1677
54dffe35
LT
16782004-04-11 Luc Teirlinck <teirllm@auburn.edu>
1679
1680 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
1681 IGNORE argument equals NAME. Doc fix.
1682
99a72bdf
MY
16832004-04-11 Masatake YAMATO <jet@gyve.org>
1684
1e88a355 1685 * buffer.c (fix_start_end_in_overlays): Make overlays
99a72bdf
MY
1686 empty if they are backwards.
1687
40899d7b
SM
16882004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
1689
1690 * xfaces.c (face_color_supported_p): Fix compilation without X11.
1691
f8f853de
SM
16922004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
1693
1694 * doc.c (Fsnarf_documentation): Ignore new file name entries.
1695
c953fe1b
KS
16962004-04-06 Kim F. Storm <storm@cua.dk>
1697
661e85c1
KS
1698 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
1699 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
1700
1701 * w32term.c (w32_read_socket): Set mouse_face_hidden after
1702 clearing highlight.
1703
1704 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
1705
1706 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
1707 clearing highlight.
1708
c953fe1b
KS
1709 * indent.c (vmotion): Do not reserve one column for continuation
1710 marks on window frames.
1711
c1994268
EZ
17122004-04-04 Eli Zaretskii <eliz@gnu.org>
1713
1714 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
1715 from GCC.
1716
9f691b0d
SM
17172004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
1718
1719 * .gdbinit-union: Remove.
1720
1721 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
1722 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
1723 ($nonvalbits): Remove.
1724 ($valmask): Set it by calling xreload to avoid redundancy.
1725
1726 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
1727 (gdb_emacs_intbits): Remove.
1728
7a8560d7
JD
17292004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1730
9f691b0d 1731 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
7a8560d7 1732
3c8111fc
KH
17332004-03-30 Kenichi Handa <handa@m17n.org>
1734
1735 * editfns.c (Fformat): Fix initialization of the array info.
1736
48a0bce4
KS
17372004-03-30 Kim F. Storm <storm@cua.dk>
1738
1739 * xterm.c (x_mouse_click_focus_ignore_position): New var.
1740 (syms_of_xterm): DEFVAR_BOOL it.
1741 (ignore_next_mouse_click_timeout): New var.
1742 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
1743 Use it to filter mouse clicks following focus event.
1744
1cd0066c
KS
17452004-03-29 David Ponce <david@dponce.com>
1746
1747 * callint.c (Fcall_interactively): Fix last change.
1748
adb3b353
SM
17492004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
1750
1751 * eval.c (Fcommandp): Simplify.
1752
1753 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
1754 Extend to handle all kinds of functions.
1755
1756 * lisp.h (Finteractive_form): Declare.
1757
1758 * callint.c (Fcall_interactively): Use it.
1759
6fc4c9c9
KS
17602004-03-26 Kim F. Storm <storm@cua.dk>
1761
1762 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
1763 to catch errors in calc_pixel_width_or_height during redisplay.
1764
abdb9b83
MY
17652004-03-26 Masatake YAMATO <jet@gyve.org>
1766
b17856dd 1767 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
abdb9b83 1768
b17856dd 1769 * lisp.h (fix_start_end_in_overlays): Likewise.
abdb9b83 1770
b17856dd 1771 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
abdb9b83 1772
b17856dd 1773 * editfns.c (Ftranspose_regions): Likewise.
abdb9b83 1774
e8a84b6c
JD
17752004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1776
b17856dd 1777 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
e8a84b6c 1778
36a3fd05
RS
17792004-03-19 Richard M. Stallman <rms@gnu.org>
1780
1781 * s/sol2-6.h: Delete previous change.
1782
ab24c127
KS
17832004-03-19 Kim F. Storm <storm@cua.dk>
1784
1785 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
1786 to_charpos corresponds to newline in right fringe. Use local
1787 BUFFER_POS_REACHED_P macro.
1788
992126de
JD
17892004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1790
1791 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
1792 to compile on non-window system.
1793
45dbfc84
KS
17942004-03-19 Kim F. Storm <storm@cua.dk>
1795
1796 * dispextern.h (calc_pixel_width_or_height): Add prototype.
1797
1798 * image.c (Qcenter): Move to xdisp.c.
1799
1800 * xdisp.c (Qcenter): Declare here.
adb3b353 1801 (syms_of_xdisp): Intern and staticpro it.
45dbfc84
KS
1802 (handle_single_display_prop): Allow space display property on all
1803 platforms.
1804 (display_mode_line): Set mode_line_p before displaying line.
1805 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
1806 handling. Remove complex cases for fringes and scroll-bars.
1807 Add left, right, and center alignment positions. Add text (area)
1808 width/height. Return width or height for image specs.
1809 (produce_stretch_glyph): Improve handling of :align-to. Is now
1810 relative to left of text area by default, but other base offsets
1811 can be specified -- also for text lines.
1812
1813 * term.c (produce_glyphs): Handle IT_STRETCH.
1814 (produce_stretch_glyph): New function to handle space width and
1815 align-to display properties on non-window systems.
1816
37264101
SM
18172004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
1818
1819 * fileio.c (Fread_file_name): Set completion-ignore-case for
1820 case-insensitive systems.
1821
73bc43da
MY
18222004-03-14 Masatake YAMATO <jet@gyve.org>
1823
1824 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
1825 when keymap and cursor are setup.
1826
9062aa89
ST
18272004-03-14 Steven Tamm <steventamm@mac.com>
1828
b17856dd 1829 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
9062aa89 1830
e4b1b5ab
KS
18312004-03-14 Kim F. Storm <storm@cua.dk>
1832
1833 * dispextern.h (x_find_image_file): Add prototype.
1834
1835 * image.c (x_find_image_file): Make extern.
1836
1837 * xfns.c (x_find_image_file): Remove prototype.
1838
a6eeaa81 18392004-03-13 Eli Zaretskii <eliz@gnu.org>
5109b06a 1840
37264101 1841 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
5109b06a 1842
37264101 1843 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
5109b06a 1844
e69cfac2
RS
18452004-03-12 Richard M. Stallman <rms@gnu.org>
1846
1847 * fns.c (internal_equal): New arg PROPS controls comparing
1848 text properties. All callers changed.
1849 (Fequal_including_properties): New function.
1850 (syms_of_fns): defsubr it.
1851
45034953
KS
18522004-03-12 Kim F. Storm <storm@cua.dk>
1853
1854 Fix image support on MAC. From YAMAMOTO Mitsuharu.
37264101 1855
45034953
KS
1856 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
1857 (image_background, image_background_transparent): Fix prototypes.
1858
37264101 1859 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
45034953
KS
1860
1861 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
1862 (x_query_font, x_find_ccl_program, x_set_window_size)
1863 (x_make_frame_visible, mac_initialize, XCreatePixmap)
1864 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
1865 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
1866
1867 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
1868 (x_query_font, x_find_ccl_program, x_set_window_size)
1869 (x_make_frame_visible, mac_initialize, XCreatePixmap)
1870 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
1871 (mac_draw_line_to_pixmap): Add prototypes.
1872
18732004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1874
1875 * macterm.c (XTread_socket): Fix mouse click on tool bar.
1876
a12d3d87
KS
18772004-03-11 Kim F. Storm <storm@cua.dk>
1878
d3ab1cf1
KS
1879 * dispextern.h: Move image related prototypes from xfns.c section
1880 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
1881 HAVE_X_WINDOWS.
37264101 1882
37de9f51 1883 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
37264101 1884 Move gtkutil.o to new GTK_OBJ list.
a12d3d87
KS
1885 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
1886 (GTK_OBJ) [USE_GTK]: New declaration.
1887 (obj): Add $(GTK_OBJ) to list.
1888
5243c06a 18892004-03-11 Steven Tamm <steventamm@mac.com>
5109b06a 1890
5243c06a
ST
1891 * image.c [MAC_OSX]: Include sys/stat.h
1892
1893 * macfns.c (syms_of_macfns): Remove definitions of things now
1894 defined in image.c
1895
c0f97789
KS
18962004-03-11 Kim F. Storm <storm@cua.dk>
1897
1898 The following changes consolidates the identical/similar image
1899 support code previously found in xfns.c, w32fns.c, and macfns.c
1900 into a new file image.c.
1901
1902 * makefile.w32-in (OBJ1): Add image.o.
1903 ($(BLD)/image.$(O)): Add dependencies.
1904
1905 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
1906 (image.o): Add dependencies.
37264101 1907
c0f97789
KS
1908 * image.c: New file with consolidated image support code.
1909 (COLOR_TABLE_SUPPORT): New define to control whether
1910 color table support is available (X only).
1911 (Bitmap_Record): Common name for x_bitmap_record,
1912 w32_bitmap_record, and mac_bitmap_record.
1913 (XImagePtr): Common name for pointer to XImage or equivalent.
1914 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
1915 to XImagePtr on X+MAC, and to HDC on W32.
1916 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
1917 (NO_PIXMAP): Common name for "None" or equivalent.
1918 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
1919 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
1920 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
37264101
SM
1921 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
1922 Define with suitable equivalents on W32 and MAC for code sharing.
c0f97789
KS
1923 (XDrawLine): Define on MAC for code sharing.
1924 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
1925 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
1926 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
1927 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
1928 (x_reference_bitmap, x_create_bitmap_from_data)
1929 (x_create_bitmap_from_file, x_destroy_bitmap)
1930 (x_destroy_all_bitmaps, x_create_bitmap_mask)
1931 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
1932 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
1933 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
1934 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
1935 (define_image_type, lookup_image_type, valid_image_p)
1936 (image_error, enum image_value_type, struct image_keyword)
1937 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
1938 (make_image, free_image, prepare_image_for_display, image_ascent)
1939 (four_corners_best, image_background, image_background_transparent)
1940 (x_clear_image_1, x_clear_image, x_alloc_image_color)
1941 (make_image_cache, free_image_cache, clear_image_cache)
1942 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
1943 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
1944 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
1945 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
1946 (init_image_func_pointer, image_load_quartz2d)
1947 (struct ct_color, init_color_table, free_color_table)
1948 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
1949 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
1950 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
1951 (x_disable_image, x_build_heuristic_mask)
1952 (XBM support, XPM support, PBM support, PNG support, JPEG support)
1953 (TIFF support, GIF support, Ghostscript support): Consolidate image
1954 code from xfns.c, w32fns.c, and macfns.c.
1955 (syms_of_image): Consolidate image related symbol setup here.
1956 (init_image): Consolidate image related initializations here.
37264101 1957
c0f97789
KS
1958 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
1959 and init_image. Remove call to init_xfns.
1960
37264101
SM
1961 * macterm.h (struct mac_bitmap_record): Add file member.
1962 Not currently used, but simplifies code sharing.
c0f97789
KS
1963
1964 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
1965 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
1966 (x_reference_bitmap, x_create_bitmap_from_data)
1967 (x_create_bitmap_from_file, x_destroy_bitmap)
1968 (x_destroy_all_bitmaps, x_create_bitmap_mask)
1969 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
1970 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
1971 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
1972 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
1973 (define_image_type, lookup_image_type, valid_image_p)
1974 (image_error, enum image_value_type, struct image_keyword)
1975 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
1976 (make_image, free_image, prepare_image_for_display, image_ascent)
1977 (four_corners_best, image_background, image_background_transparent)
1978 (x_clear_image_1, x_clear_image, x_alloc_image_color)
1979 (make_image_cache, free_image_cache, clear_image_cache)
1980 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
1981 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
1982 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
1983 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
1984 (init_image_func_pointer, image_load_quartz2d)
1985 (struct ct_color, init_color_table, free_color_table)
1986 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
1987 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
1988 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
1989 (x_disable_image, x_build_heuristic_mask)
1990 (XBM support, XPM support, PBM support, PNG support, JPEG support)
1991 (TIFF support, GIF support, Ghostscript support): Merge with image
1992 code from xfns.c and macfns.c into image.c.
1993 (syms_of_xfns): Move image related symbols to image.c.
1994 (init_external_image_libraries, init_xfns): Remove; initialization
1995 moved to init_image in image.c.
1996
1997 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
1998 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
1999 (x_reference_bitmap, x_create_bitmap_from_data)
2000 (x_create_bitmap_from_file, x_destroy_bitmap)
2001 (x_destroy_all_bitmaps, x_create_bitmap_mask)
2002 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
2003 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
2004 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
2005 (define_image_type, lookup_image_type, valid_image_p)
2006 (image_error, enum image_value_type, struct image_keyword)
2007 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
2008 (make_image, free_image, prepare_image_for_display, image_ascent)
2009 (four_corners_best, image_background, image_background_transparent)
2010 (x_clear_image_1, x_clear_image, x_alloc_image_color)
2011 (make_image_cache, free_image_cache, clear_image_cache)
2012 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
2013 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
2014 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
2015 (struct ct_color, init_color_table, free_color_table)
2016 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
2017 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
2018 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
2019 (x_disable_image, x_build_heuristic_mask)
2020 (XBM support, XPM support, PBM support, PNG support, JPEG support)
2021 (TIFF support, GIF support, Ghostscript support): Merge with image
2022 code from xfns.c and macfns.c into image.c.
2023 (syms_of_xfns): Move image related symbols to image.c.
2024 (init_external_image_libraries, init_xfns): Remove; initialization
2025 moved to init_image in image.c.
2026
2027 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
2028 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
2029 (x_reference_bitmap, x_create_bitmap_from_data)
2030 (x_create_bitmap_from_file, x_destroy_bitmap)
2031 (x_destroy_all_bitmaps, x_create_bitmap_mask)
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 (struct ct_color, init_color_table, free_color_table)
2046 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
2047 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
2048 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
2049 (x_disable_image, x_build_heuristic_mask)
2050 (XBM support, XPM support, PBM support, PNG support, JPEG support)
2051 (TIFF support, GIF support, Ghostscript support): Merge with
2052 w32fns.c and macfns.c image code into image.c.
2053 (syms_of_xfns): Move image related symbols to image.c.
2054 (init_xfns): Remove; initialization moved to init_image in image.c.
2055
2056 * lisp.h (syms_of_image, init_image): Add protoypes.
2057 (init_xfns): Remove prototype.
2058
2059 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
2060 (x_reference_bitmap, x_create_bitmap_from_data)
2061 (x_create_bitmap_from_file, x_destroy_bitmap)
2062 (x_create_bitmap_mask): Move prototypes from dispextern.h.
2063 (gamma_correct) [MAC_OS]: Add prototype.
2064
2065 * xterm.h (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_create_bitmap_mask): Move prototypes to dispextern.h.
2069
6eced09c
KH
20702004-03-09 Kenichi Handa <handa@etlken2>
2071
2072 * coding.c (decode_coding_emacs_mule): Handle insufficent source
2073 correctly.
2074
9a7e95f3
RS
20752004-03-04 Richard M. Stallman <rms@gnu.org>
2076
04a6e76b
RS
2077 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
2078
9a7e95f3
RS
2079 * window.c (Fdisplay_buffer): Doc fix.
2080
2081 * buffer.c (Fpop_to_buffer): Doc fix.
2082
6c2488df
KS
20832004-03-03 Kim F. Storm <storm@cua.dk>
2084
2085 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
2086
d8d95bc7
SM
20872004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
2088
2089 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
2090
357589bf
RS
20912004-03-02 Richard M. Stallman <rms@gnu.org>
2092
2093 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
2094
409949b5
KH
20952004-03-02 Kenichi Handa <handa@m17n.org>
2096
2097 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
2098
d24bc50f
KS
20992004-03-02 Kim F. Storm <storm@cua.dk>
2100
2101 * window.h (struct window): New member overlay_arrow_bitmap.
2102
2103 * window.c (make_window): Initialize overlay_arrow_bitmap.
2104
2105 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
2106 implement and integrate multiple overlay arrows with redisplay.
2107 (syms_of_xdisp): DEFVAR_LISP and initialize it.
2108 (last_arrow_position, last_arrow_string): Replace by properties.
2109 (Qlast_arrow_position, Qlast_arrow_string)
2110 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
2111 (syms_of_xdisp): Intern and staticpro them.
2112 (overlay_arrow_string_or_property, update_overlay_arrows)
2113 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
2114 (overlay_arrow_at_row): New functions for multiple overlay arrows.
2115 (redisplay_internal): Use them instead of directly accessing
2116 Voverlay_arrow_position etc. for multiple overlay arrows.
2117 (mark_window_display_accurate): Use update_overlay_arrows.
2118 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
2119 (try_window_id): Use overlay_arrows_changed_p.
2120 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
2121 (display_line): Use overlay_arrow_at_row to check multiple
2122 overlay arrows, and get relevant overlay-arrow-string and
d8d95bc7 2123 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
d24bc50f
KS
2124 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
2125 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
2126
2127 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
2128 (update_window_fringes): Remove unused code.
2129
c1464661
JR
21302004-03-01 Jason Rumney <jasonr@gnu.org>
2131
2132 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
2133
a64387ee
JB
21342004-03-01 Juanma Barranquero <lektu@terra.es>
2135
2136 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
2137
2138 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
2139
334faa08
JD
21402004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2141
2142 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
2143 how many colors can be displayed.
2144
bb62616f
KH
21452004-03-01 Kenichi Handa <handa@m17n.org>
2146
2147 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
2148 correctly.
2149
0fd16104
KS
21502004-02-28 Kim F. Storm <storm@cua.dk>
2151
2152 * dispnew.c (update_window): Update header line also if there are
2153 no other changes in window (move code after set_cursor label).
2154
2155 * lisp.h (mark_window_display_accurate): Remove prototype.
2156
2157 * window.c (window_loop, Fforce_window_update): Force mode line
2158 updates by setting prevent_redisplay_optimizations_p and
2159 update_mode_lines.
2160
b59dd9c8
JD
21612004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2162
d8d95bc7 2163 * xfns.c (x_window): Fix indentation.
b59dd9c8
JD
2164
2165 * xterm.c (x_calc_absolute_position): Call x_real_positions
2166 to get WM window sizes and use those to calculate position.
d8d95bc7 2167 (x_set_offset): Remove code commented out.
b59dd9c8 2168
a874691c
MB
21692004-02-28 Miles Bader <miles@gnu.org>
2170
2171 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
2172
3e0c6482
KS
21732004-02-28 Kim F. Storm <storm@cua.dk>
2174
2175 * keyboard.c (kbd_buffer_store_event_hold): New function to store
2176 an event into kbd fifo, but with special handling of quit event;
2177 a quit event is saved for later, and further events are discarded
2178 until the saved quit event has been processed.
2179 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
2180 (gen_help_event): Store help event in kbd fifo.
2181 (NREAD_INPUT_EVENTS): Remove.
2182 (read_avail_input): Adapt to new read_socket_hook interface.
2183 Remove allocation and initialization of local input_event buffer,
2184 as read_socket_hook stores events directly in fifo. Allocate and
2185 initialize local hold_quit event to handle postponed quit event
2186 (and store it if set by kbd_buffer_store_event_hold).
2187
2188 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
2189 (gen_help_event): Fix prototype.
2190
a64387ee 2191 * macterm.c (XTread_socket): Remove bufp_r and
3e0c6482 2192 numcharsp args. Add hold_quit arg.
f63fd14e 2193 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
2194 directly in fifo using kbd_buffer_store_event_hold.
2195
2196 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
2197 (read_input_waiting): Adapt to new read_socket_hook interface.
2198 Remove allocation and initialization of local input_event buffer,
2199 as read_socket_hook stores events directly in fifo. Allocate and
2200 initialize local hold_quit event to handle postponed quit event
2201 (and store it if set by kbd_buffer_store_event_hold).
2202
a64387ee 2203 * term.c (read_socket_hook): Fix arg list.
3e0c6482
KS
2204
2205 * termhooks.h (read_socket_hook): Fix prototype.
2206
2207 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
2208 numcharsp args. Add hold_quit arg.
f63fd14e 2209 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
2210 directly in fifo using kbd_buffer_store_event_hold.
2211
2212 * w32inevt.h (w32_console_mouse_position): Fix prototype.
2213
2214 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
f63fd14e
JB
2215 Add hold_quit arg. Rework to use just one, local, inev
2216 input_event. Store inev directly in fifo using
3e0c6482
KS
2217 kbd_buffer_store_event_hold. Update count in one place.
2218 Postpone call to gen_help_event until inev is stored; use new
2219 local do_help for this.
2220 Remove local emacs_event in handing of ButtonPress event; just use
2221 inev instead (so no reason to copy it later).
2222
2223 * xsmfns.c (x_session_check_input): Remove numchars arg.
2224
d8d95bc7
SM
2225 * xterm.c (x_focus_changed, x_detect_focus_change):
2226 Remove numchars arg. Always store event into bufp arg.
2227 Return nothing. Callers changed accordingly.
3e0c6482
KS
2228 (glyph_rect): Simplify.
2229 (STORE_KEYSYM_FOR_DEBUG): New macro.
2230 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
2231 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
2232 (current_hold_quit) [USE_GTK]: Add.
2233 (event_handler_gdk): Adapt to new handle_one_xevent.
2234 (handle_one_xevent): Remove bufp_r and numcharsp args.
f63fd14e
JB
2235 Add hold_quit arg. Rework to use just one, local, inev
2236 input_event. Store inev directly in fifo using
3e0c6482
KS
2237 kbd_buffer_store_event_hold. Update count in one place.
2238 Postpone call to gen_help_event until inev is stored; use new
2239 local do_help for this.
2240 Simplify handling of keysyms (consolidate common code). Fix bug
2241 where count was updated with nchars instead of nbytes.
2242 Remove local emacs_event in handing of ButtonPress event; just use
2243 inev instead (so no reason to copy it later).
2244 Remove `out' label. Rename label `ret' to `done'; add various
2245 `goto done' to clarify code flow in deeply nested blocks.
2246 (x_dispatch_event): Simplify as handle_one_xevent now calls
2247 kbd_buffer_store_event itself.
f63fd14e 2248 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
3e0c6482
KS
2249 arg. Call handle_one_xevent with new arglist. Store event from
2250 x_session_check_input in fifo.
2251 [USE_GTK]: Setup current_hold_quit.
2252 Decrement handling_signal before unblocking input.
2253 (x_initialize) [USE_GTK]: Initialize current_count.
2254
2255 * xterm.h (x_session_check_input): Fix prototype.
2256
e3564461 22572004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
a64387ee 2258
d8d95bc7 2259 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
a64387ee 2260
e3564461
ST
2261 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
2262 macgui.h).
a64387ee 2263
e3564461 2264 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
a64387ee 2265
e3564461
ST
2266 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
2267 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
2268 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
2269 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
2270 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
2271 (Bitmap): Remove typedef.
2272 (Pixmap): Change int to GWorldPtr.
2273
d8d95bc7 2274 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
a64387ee 2275
d8d95bc7
SM
2276 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
2277 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
2278 New #define to extract 16-bit depth color components from unsigned
e3564461
ST
2279 long representation.
2280 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
2281 colors used for masks.
2282 (struct mac_display_info): Add color_p. Remove n_cbits.
a64387ee 2283
e3564461
ST
2284 * macfns.c: Include sys/types.h and sys/stat.h.
2285 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
2286 Include QuickTime/QuickTime.h.
2287 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
2288 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
2289 functions defined in macterm.c.
2290 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
2291 (ZPixmap): New #define for compatibility with xfns.c.
2292 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
2293 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
d8d95bc7
SM
2294 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
2295 New functions.
e3564461 2296 (four_corners_best, x_create_x_image_and_pixmap)
d8d95bc7
SM
2297 (x_destroy_x_image, unwind_create_frame, x_disable_image)
2298 (x_edge_detection, init_color_table, colors_in_color_table)
e3564461
ST
2299 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
2300 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
2301 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
2302 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
2303 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
2304 long mixup.
2305 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
2306 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
2307 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
2308 (x_set_cursor_type, Fxw_color_values, valid_image_p)
2309 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
2310 (x_alloc_image_color, clear_image_cache, lookup_image)
2311 (x_find_image_file, xbm_read_bitmap_file_data)
2312 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
2313 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
2314 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
2315 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
2316 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
d8d95bc7 2317 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
e3564461
ST
2318 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
2319 #if 0.
2320 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
2321 #if 0. Free white_relief.gc and black_relief.gc.
d8d95bc7
SM
2322 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
2323 New functions (from xfns.c).
e3564461
ST
2324 (Fx_create_frame): Record unwind_create_frame.
2325 (Fxw_display_color_p): Use dpyinfo->color_p.
2326 (Fx_display_grayscale_p, Fx_display_planes): Don't use
2327 dpyinfo->n_cbits.
2328 (Fx_display_color_cells): Use dpyinfo->n_planes;
2329 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
2330 (Qheuristic, cross_disabled_images, emboss_matrix)
2331 (laplace_matrix): New variables (from xfns.c).
2332 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
2333 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
2334 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
d8d95bc7
SM
2335 (image_background_transparent): New function (from xfns.c).
2336 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
2337 (image_load_quicktime): Add declaration.
2338 [MAC_OSX] (image_load_quartz2d): Likewise.
2339 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
2340 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
d8d95bc7 2341 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
e3564461
ST
2342 (xbm_load_image_from_file, x_laplace_read_row)
2343 (x_laplace_write_row, pbm_read_file): Remove functions.
2344 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
2345 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
2346 (colors_in_color_table): Sync with xfns.c (although not used).
2347 (lookup_rgb_color): Don't lookup color table. Just do gamma
2348 correction.
2349 (COLOR_INTENSITY): New #define (from xfns.c).
d8d95bc7
SM
2350 (x_disable_image): New function (from xfns.c).
2351 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
2352 (x_build_heuristic_mask): Sync with xfns.c.
2353 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
2354 (HAVE_PBM): Remove #ifdef.
2355 (pbm_load): Sync with xfns.c. Set img->width and img->height
2356 before IMAGE_BACKGROUND.
d8d95bc7 2357 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
e3564461
ST
2358 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
2359 Don't enclose with #if HAVE_PNG.
2360 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
d8d95bc7
SM
2361 symbol _CGImageCreateWithPNGDataProvider is defined.
2362 Otherwise use image_load_quicktime.
e3564461 2363 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
d8d95bc7
SM
2364 [HAVE_PNG] (png_load): Sync with xfns.c.
2365 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
2366 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
2367 HAVE_JPEG.
2368 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
2369 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
2370 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
2371 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
2372 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
2373 (tiff_image_p, tiff_load): Don't enclose declarations with #if
2374 HAVE_TIFF.
2375 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
2376 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
2377 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
d8d95bc7
SM
2378 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
2379 New functions (from xfns.c).
e3564461 2380 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
d8d95bc7 2381 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
e3564461
ST
2382 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
2383 Don't enclose with #if HAVE_GIF.
2384 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
2385 animated gif. Otherwise use image_load_quicktime.
2386 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
2387 gif_DrawText to avoid conflict with QuickdrawText.h.
2388 [HAVE_GIF] (gif_load): Sync with xfns.c.
2389 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
2390 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
2391 Ghostscript is not supported yet).
2392 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
2393 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
2394 cross_disabled_images (from xfns.c). Remove #if 0 for supported
2395 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
2396 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
2397 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
d8d95bc7
SM
2398 HAVE_PNG. Call EnterMovies to support animated gifs.
2399 Call init_image_func_pointer to bind a symbol
e3564461 2400 _CGImageCreateWithPNGDataProvider if it is defined.
a64387ee 2401
d8d95bc7 2402 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
e3564461
ST
2403 (x_draw_bar_cursor): Sync declaration with xterm.c.
2404 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
2405 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
2406 graphics).
2407 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
2408 (mac_draw_line_to_pixmap, XCreatePixmap)
2409 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
d8d95bc7
SM
2410 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
2411 New functions.
2412 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
2413 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
2414 Cast bits to char *.
e3564461
ST
2415 (reflect_byte): New function (from w32fns.c).
2416 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
2417 due to byte alignment.
d8d95bc7
SM
2418 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
2419 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
e3564461
ST
2420 (XSetForeground): Remove static (now used in macfns.c).
2421 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
2422 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
2423 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
2424 (x_draw_glyph_string_box, x_draw_image_foreground)
2425 (x_draw_image_foreground_1, x_draw_image_glyph_string)
2426 (x_draw_stretch_glyph_string, x_draw_glyph_string)
2427 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
2428 Sync with xterm.c.
2429 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
2430 than the xterm.c version when a strictly horizontal or vertical
2431 line is drawn.
2432 (XTset_terminal_window): Add static.
2433 (x_make_frame_visible): Add UNBLOCK_INPUT.
2434 (x_free_frame_resources): New funcion (from xterm.c).
2435 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
2436 occurs in tool bar area.
d8d95bc7
SM
2437 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
2438 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
e3564461
ST
2439 Initialize image cache.
2440 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
2441 Enclose unused functions with #if 0.
2442 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
2443 (decode_mac_font_name): New function to apply code conversions
d8d95bc7 2444 from a mac font name to an XLFD font name according to its script code.
e3564461 2445 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
d8d95bc7 2446 font name to a mac font name according to REGISTRY and ENCODING fields.
e3564461
ST
2447 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
2448 whose name starts with `.'.
2449 (init_font_name_table): Use decode_mac_font_name. Add both
2450 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
2451 of a font is smJapanese.
2452 (mac_do_list_fonts): New function to list fonts that match a given
2453 pattern.
2454 (x_list_fonts, XLoadQueryFont): Use it.
2455 (XLoadQueryFont): Set rbearing field for each variable width
2456 character to avoid needless redraw.
2457 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
2458
446f5f3d
KS
24592004-02-26 Kim F. Storm <storm@cua.dk>
2460
af617d0f
KS
2461 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
2462 as read_socket_hook handler on X aborts if buffer is too small
2463 and W32 handler doesn't always check buffer limit.
2464
446f5f3d
KS
2465 * xdisp.c (handle_single_display_prop): Handle left-fringe and
2466 right-fringe similar to a display margin image. Specifically,
2467 the characters having the fringe prop are no longer shown, and
2468 we use IT_IMAGE/next_element_from_image with image_id = -1 to
2469 do this. Set fringe bitmap face_id in it->face_id.
2470 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
2471 still realize it->face (i.e. the fringe bitmap face).
2472
7d8a0b55
MB
24732004-02-25 Miles Bader <miles@gnu.org>
2474
2475 * xdisp.c (check_it): Check string/string_pos consistency.
2476 (init_iterator): Initialize string-related fields properly.
2477
24782004-02-11 Miles Bader <miles@gnu.org>
2479
2480 * xdisp.c (produce_image_glyph): Force negative descents to zero.
2481
24822004-02-10 Miles Bader <miles@gnu.org>
2483
2484 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
2485 BLOCK_INPUT can be nested, so it doesn't make much sense.
2486
a64387ee 24872004-02-24 Michael Mauger <mmaug@yahoo.com>
ce35edd1
JR
2488
2489 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
2490 (xbm_read_bitmap_data): Use unsigned char for image data.
2491
92f5fba2
LT
24922004-02-23 Luc Teirlinck <teirllm@auburn.edu>
2493
2494 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
2495
8565fb3d
JR
24962004-02-22 Jason Rumney <jasonr@gnu.org>
2497
2498 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
2499 correctly over other bitmaps.
2500
a6eeaa81 25012004-02-21 Eli Zaretskii <eliz@gnu.org>
f8125c39
EZ
2502
2503 * emacs.c (USAGE1): Split into two halves.
2504 (USAGE2): Second half of the old USAGE1.
d8d95bc7
SM
2505 (USAGE3): Rename from USAGE2.
2506 (USAGE4): Rename from USAGE3.
f8125c39 2507
4effffca
EZ
25082004-02-21 Juri Linkov <juri@jurta.org>
2509
2510 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
2511 Fix --multibyte. Move --help, --version to USAGE2. Add alias
2512 --file. Fix -f, -l. Sort options. Untabify.
2513 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
2514
923c1e6f
LT
25152004-02-19 Luc Teirlinck <teirllm@auburn.edu>
2516
2517 * category.c (Fdefine_category, Fcategory_docstring)
2518 (Fget_unused_category, Fset_category_table)
2519 (Fcategory_set_mnemonics): Doc fixes.
2520
b0e225fd
KS
25212004-02-20 Kim F. Storm <storm@cua.dk>
2522
2523 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
2524 The following changes are relative to the 2004-01-21 revision.
2525 (NREAD_INPUT_EVENTS): Define as max number of input events to read
2526 in one call to read_socket_hook. Value is 8.
2527 (read_avail_input): Separate and rework handling of read_socket_hook
2528 and non-read_socket_hook cases. Use smaller input_event buffer
d8d95bc7
SM
2529 in read_socket_hook case, and repeat if full buffer is read.
2530 Use new local variable 'discard' to skip input after C-g.
b0e225fd
KS
2531 In non-read_socket_hook case, just use a single input_event, and
2532 call kbd_buffer_store_event on the fly for each character.
2533
b15aa9f9
SM
25342004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
2535
2536 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
2537 Remove unused `gu' alternative.
2538
83c9aa95
AS
25392004-02-19 Andreas Schwab <schwab@suse.de>
2540
2541 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
2542 warning.
2543
cc808173
KS
25442004-02-18 Kim F. Storm <storm@cua.dk>
2545
2546 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
2547 Fix last change.
2548
ab90a54d
KS
25492004-02-17 Kim F. Storm <storm@cua.dk>
2550
b26f249f
KS
2551 * xdisp.c (fast_find_position): Fix return value of new version;
2552 it was inverted compared to the 21.1 version.
2553 (get_window_cursor_type): Don't look at glyph if NULL.
2554 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
0bf7d005 2555
ab90a54d
KS
2556 * keyboard.c: Rework previous change; it didn't consider that the
2557 buf array was allocated on the stack.
2558 (prev_read): Remove variable.
2559 (read_avail_input_buf): New static event buffer array.
b9568dfc 2560 (in_read_avail_input): New static variable to handle re-entrancy.
ab90a54d 2561 (read_avail_input): Change buf to pinter to read_avail_input_buf.
b9568dfc
KS
2562 Use in_read_avail_input to handle re-entrance; when re-entered,
2563 fully initialize and use tmp_buf array instead of read_avail_input_buf.
2564 Do not initialize read_avail_input_buf in full here; instead assume it
ab90a54d
KS
2565 is always cleared on entry. To ensure that, we clear (just) the
2566 entries that were used before we return.
2567 (init_keyboard): Initialize read_avail_input_buf here.
2568
4e039f3f
EZ
25692004-02-16 Jesper Harder <harder@ifa.au.dk> (tiny change)
2570
2571 * cmds.c (Fend_of_line): Doc fix.
2572
7b5368c1
EZ
25732004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
2574
2575 * keyboard.c (prev_read): New static variable.
2576 (read_avail_input): Use it to zero out only those slots in buf[]
2577 that were used last time we were called.
2578
a6eeaa81 25792004-02-16 Eli Zaretskii <eliz@gnu.org>
ca4bc494
EZ
2580
2581 * Makefile.in (obj): Move fringe.o from here...
2582 (XOBJ, MAC_OBJ): ...to here.
2583
159c348e
SE
25842004-02-16 Stephen Eglen <stephen@gnu.org>
2585
2586 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
2587
d2f14999
SM
25882004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
2589
b15aa9f9
SM
2590 * data.c (Fbyteorder):
2591 * fringe.c (Fdefine_fringe_bitmap):
2592 * xdisp.c (handle_single_display_prop):
d2f14999
SM
2593 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
2594
8d50508a
JR
25952004-02-16 Jason Rumney <jasonr@gnu.org>
2596
2597 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
2598
dd4497dc
ST
25992004-02-15 Steven Tamm <steventamm@mac.com>
2600
2601 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
2602 controlling emulation of a three button mouse with option and
2603 command keys.
2604 (Qreverse, mac_get_enumlated_btn): Handle the emulation
b15aa9f9 2605 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
dd4497dc 2606
c9159cb3
KS
26072004-02-15 Kim F. Storm <storm@cua.dk>
2608
2cc52658
KS
2609 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
2610
c9159cb3
KS
2611 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
2612 Perform byte-swapping.
2613
12fde2dc
KS
26142004-02-14 Kim F. Storm <storm@cua.dk>
2615
2616 * dispextern.h (struct draw_fringe_bitmap_params): Change member
2617 bits from char to short to facilitate wider bitmaps.
2618 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
2619 member.
2620
2621 * fringe.c (struct fringe_bitmap): Change member bits from char to
2622 short to facilitate 16 bits wide bitmaps. Modify all standard
2623 bitmaps accordingly.
2624 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
2625 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
2626 (draw_fringe_bitmap): Ditto.
2627 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
2628 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
2629 handle up to 16 bits wide bitmaps.
2630 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
f21a7192 2631 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
12fde2dc
KS
2632
2633 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
2634 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
2635 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
2636
2637 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
2638 so it is no longer necessary to expand them here.
2639
2640 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
2641
9d7271e8
KS
26422004-02-12 Kim F. Storm <storm@cua.dk>
2643
2644 * window.c (Fwindow_fringes): Doc fix.
2645
706c1e4f
JD
26462004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2647
2648 * xselect.c (x_get_foreign_selection): Add new optional parameter
2649 time_stamp.
2650 (Fx_get_selection_internal): Ditto, pass time_stamp to
2651 x_get_foreign_selection.
2652
2653 * data.c (Fbyteorder): New function.
2654
c2d12b5d
JD
26552004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2656
2657 * atimer.c: Move include stdio.h to same place as in other files.
2658
2659 * region-cache.c: Ditto.
2660
2661 * sysdep.c: Ditto.
2662
2663 * xfaces.c: Ditto.
2664
4c1947b9
SS
26652004-02-09 Sam Steingold <sds@gnu.org>
2666
89458937 2667 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
4c1947b9 2668
82722af3
KS
26692004-02-09 Kim F. Storm <storm@cua.dk>
2670
2671 * fringe.c: New file. Move original fringe related declarations
2672 and code from dispextern.h and xdisp.c here.
2673 Rework code to support user defined fringe bitmaps, redefining
2674 standard bitmaps, ability to overlay user defined bitmap with
2675 overlay arrow bitmap, and add faces to bitmaps.
2676 (Voverflow_newline_into_fringe): Declare here.
2677 (enum fringe_bitmap_align): New enum.
2678 (..._bits): All bitmaps are now defined without bitswapping; that
2679 is now done in init_fringe_once (if necessary).
2680 (standard_bitmaps): New array with specifications for the
2681 standard fringe bitmaps.
2682 (fringe_faces): New array.
2683 (valid_fringe_bitmap_id_p): New function.
2684 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
2685 (draw_fringe_bitmap): New function which draws fringe bitmap,
2686 possibly overlaying bitmap with cursor in right fringe or the
2687 overlay arrow in the left fringe.
2688 (update_window_fringes): Do not handle overlay arrow here.
2689 Compare and copy fringe bitmap faces.
2690 (init_fringe_bitmap): New function.
2691 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
2692 define and destroy user defined fringe bitmaps.
2693 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
2694 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
2695 (syms_of_fringe): New function. Defsubr new DEFUNs.
2696 DEFVAR_LISP Voverflow_newline_into_fringe.
2697 (init_fringe_once, init_fringe): New functions.
2698 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
4c1947b9 2699
82722af3
KS
2700 * Makefile.in (obj): Add fringe.o.
2701 (fringe.o): New dependencies.
2702
2703 * dispextern.h (FRINGE_ID_BITS): New definition for number of
2704 bits allocated to hold a fringe number. Increase number of bits
2705 from 4 to 8 to allow user defined fringe bitmaps.
2706 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
2707 left_user_fringe_face_id, right_user_fringe_bitmap,
2708 right_user_fringe_face_id.
2709 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
2710 Move to new file fringe.c.
2711 (MAX_FRINGE_BITMAPS): Define here.
2712 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
2713 and overlay_p. Change member which to int.
2714 (struct redisplay_interface): New members define_fringe_bitmap
2715 and destroy_fringe_bitmap.
2716 (valid_fringe_bitmap_id_p): Add prototype.
2717 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
2718
2719 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
2720 arrows.
2721 (update_frame): Do flush_display if force_flush_display_p to
2722 ensure display (specifically fringes) are updated in a timely
2723 manner when resizing the frame by dragging the mouse.
2724 (update_window_line): Update row if overlay arrow changed.
2725 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
2726 or overlay arrow changed.
2727
2728 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
2729 syms_of_fringe, and init_fringe.
2730
2731 * frame.h (struct frame): New member force_flush_display_p.
2732
2733 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
2734 Add prototypes.
2735
a3993cc8 2736 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
a64387ee 2737 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
a3993cc8
KS
2738 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
2739 Use cursor color for displaying cursor in fringe.
82722af3
KS
2740 (x_redisplay_interface): Add null handlers for
2741 define_fringe_bitmap and destroy_fringe_bitmap functions.
2742
2743 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
2744 xterm.c to handle overlayed fringe bitmaps and to use cursor color
2745 for displaying cursor in fringe.
2746 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
2747 specific functions to define and destroy fringe bitmaps in fringe_bmp.
2748 (w32_redisplay_interface): Add them to redisplay_interface.
2749 (w32_term_init): Call w32_init_fringe instead of explicitly
2750 defining fringe bitmaps in fringe_bmp array.
2751 (x_delete_display): Call w32_reset_fringes instead of explicitly
2752 destroying fringe bitmaps in fringe_bmp array.
2753
2754 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
2755 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
2756 (continued_bits, continuation_bits, ov_bits, first_line_bits)
2757 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
2758 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
2759 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
2760 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
2761 Move fringe handling vars and code to new file fringe.c.
2762 (handle_display_prop): Handle left-fringe and right-fringe
2763 display properties; store user fringe bitmaps in iterator.
2764 (move_it_in_display_line_to): Handle cursor in fringe at eob.
2765 (clear_garbaged_frames): Set force_flush_display_p if resized.
2766 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
2767 (display_line): Handle cursor in fringe at eob.
2768 (display_line): Set row user fringe bitmaps from iterator.
2769
2770 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
2771 Use cursor color for displaying cursor in fringe.
2772 (x_redisplay_interface): Add null handlers for
2773 define_fringe_bitmap and destroy_fringe_bitmap functions.
2774
030400eb
JD
27752004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2776
2777 * macfns.c (Fx_change_window_property): Make doc string and
2778 parameters same as for X version.
2779
2780 * w32fns.c (Fx_change_window_property): Ditto.
2781
3af55251
KS
27822004-02-07 Kim F. Storm <storm@cua.dk>
2783
ec110e9e
KS
2784 * xdisp.c (hscroll_window_tree): Position cursor near to right
2785 margin in hscrolled window when jumping to end of line (rather
2786 than centering cursor).
2787
3af55251
KS
2788 * process.c (wait_reading_process_input): Don't do adaptive read
2789 buffering if waiting for a specific process.
2790
b0c138ce
LT
27912004-02-05 Luc Teirlinck <teirllm@auburn.edu>
2792
2793 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
2794 (Fread_minibuffer, Feval_minibuffer)
2795 (Fread_string, Fread_no_blanks_input)
2796 (Fcompleting_read): Doc fixes.
2797 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
2798 completion-regexp-list. Define Qcase_fold_search and staticpro it.
2799 (read_minibuf): Fix initial comment.
2800 (Ftry_completion, Fall_completions, Ftest_completion): Bind
e8eeaed8 2801 case-fold-search to the value of completion-ignore-case when
b0c138ce
LT
2802 checking completion-regexp-list.
2803 (Fdisplay_completion_list): Make it handle arguments that are
2804 symbols. Doc fix.
2805
9676f5ad 28062004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
64d1e373 2807
9676f5ad 2808 * xterm.h: Add declaration of free_frame_menubar.
64d1e373 2809
9676f5ad
JD
2810 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
2811 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
b0c138ce 2812 (Fx_change_window_property): Add declaration of parameters type and
9676f5ad 2813 format. Remove unused variable cons.
5b698285
JD
2814
2815 * xselect.c: Include stdio,h.
2816
fc1d15f6
KH
28172004-02-05 Kenichi Handa <handa@m17n.org>
2818
ebaff4af
KH
2819 * fns.c (Fset_char_table_range): Fix previous change.
2820
fc1d15f6
KH
2821 * buffer.c (Fset_buffer_multibyte): Fix docstring.
2822
9676f5ad
JD
28232004-02-04 Luc Teirlinck <teirllm@auburn.edu>
2824
2825 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
2826
da75761f
SM
28272004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
2828
2829 * keymap.c (Vmouse_events): Rename from Vmenu_events.
2830 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
2831
13c5d120
KH
28322004-02-04 Kenichi Handa <handa@m17n.org>
2833
2834 * fns.c (Fset_char_table_range): Handle charsets ascii,
2835 eight-bit-control, and eight-bit-graphic correctly.
2836
2883d842
JR
28372004-02-03 Jason Rumney <jasonr@gnu.org>
2838
2839 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
2840
2841 * w32fns.c (x_to_w32_font): Likewise.
2842
69eff41f
JD
28432004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2844
2845 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
2846 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
2847
2848 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
2849 ClientMessages.
2850
2851 * xselect.c: Include termhooks.h and X11/Xproto.h
2852 (x_check_property_data, x_fill_property_data)
2853 (x_property_data_to_lisp, mouse_position_for_drop)
2854 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
da75761f 2855 (Fx_send_client_event): Move here from xfns.c.
69eff41f
JD
2856 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
2857
da75761f 2858 * xfns.c (x-send-client-message): Move to xselect.c
69eff41f
JD
2859 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
2860 OUTER_P.
2861 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
2862 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
2863 if vector_ret_p is true.
2864 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
69eff41f 2865
a6eeaa81 28662004-02-02 Eli Zaretskii <eliz@gnu.org>
dcdbbb5d
EZ
2867
2868 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
2869 basename of FILE relative to it, not FILE itself.
2870
09721b31
KH
28712004-02-02 Kenichi Handa <handa@m17n.org>
2872
2873 * coding.c (coding_restore_composition): Check invalid
2874 composition data more rigidly.
2875
eb996101
LT
28762004-01-30 Luc Teirlinck <teirllm@auburn.edu>
2877
2878 * fileio.c (Fread_file_name_internal): Correctly handle the case
2879 where insert-default-directory is nil.
2880 (Fread_file_name): Always return an empty string if the user exits
2881 with an empty minibuffer. Adapt the docstring accordingly.
2882 (syms_of_fileio): Adapt the docstring of insert-default-directory
2883 to the change in Fread_file_name.
2884
a6eeaa81 28852004-01-29 Eli Zaretskii <eliz@gnu.org>
a0367d42
EZ
2886
2887 * alloca.c [!alloca]: Fix the prototype for xfree.
2888
13f52ed8
KH
28892004-01-29 Kenichi Handa <handa@m17n.org>
2890
2891 * fns.c (string_char_to_byte): Optimize for ASCII only string.
2892 (string_byte_to_char): Likewise.
2893
d57625a0
JR
28942004-01-28 Peter Runestig <peter@runestig.com>
2895
2896 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
2897
a64387ee 28982004-01-27 Steven Tamm <steventamm@mac.com>
911c78b4
ST
2899
2900 * unexmacosx.c (unexec_copy): Do not copy more than was
2901 requested to prevent overwriting during unexec.
2902
eb37b8fd
JD
29032004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2904
ce38070a
JD
2905 * process.c (sigchld_handler): Add comment about not calling malloc.
2906
eb37b8fd
JD
2907 * process.h: Add extern to synch_process_termsig.
2908
a64387ee 29092004-01-27 Steven Tamm <steventamm@mac.com>
21a3e657 2910
da75761f
SM
2911 * macterm.c (make_mac_frame, make_mac_terminal_frame):
2912 Move setting of scroll bars from make_mac_frame to
2913 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
21a3e657 2914
d62a265d
RS
29152004-01-26 Richard M. Stallman <rms@gnu.org>
2916
2917 * search.c (Freplace_match): Handle nonexistent
2918 back-references properly.
2919
29202004-01-03 Richard M. Stallman <rms@gnu.org>
2921
2922 * window.c (decode_any_window): New function.
2923 (Fwindow_height, Fwindow_width, Fwindow_edges)
2924 (Fwindow_pixel_edges, Fwindow_inside_edges)
2925 (Fwindow_inside_pixel_edges): Use decode_any_window.
2926
ff236419
JD
29272004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2928
2929 * process.h: synch_process_termsig new variable.
2930
2931 * callproc.c: Define synch_process_termsig.
2932 (Fcall_process): Initiate synch_process_termsig to zero and
2933 check if non-zero and get signal name after subprocess has ended.
2934
2935 * process.c (sigchld_handler): Set synch_process_termsig
2936 if terminated by a signal. synch_process_death setting removed.
2937
2938 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
2939
41b867ea
AS
29402004-01-26 Andreas Schwab <schwab@suse.de>
2941
2942 * print.c (print_preprocess): Declare size as EMACS_INT to not
2943 lose bits.
2944 (print_object): Likewise.
2945 * alloc.c (Fpurecopy): Likewise.
2946
a08084ff
LT
29472004-01-25 Luc Teirlinck <teirllm@auburn.edu>
2948
2949 * window.c (Fwindow_minibuffer_p): Doc fix.
2950
b19ac475
JY
29512004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
2952
2953 * editfns.c (Fformat): Make both passes accept the same set of flags.
2954
fe905025
KH
29552004-01-23 Kenichi Handa <handa@m17n.org>
2956
2957 * fns.c (Fmd5): If OBJECT is a buffer different from the current
2958 one, set buffer to OBJECT temporarily.
2959
438fc6c0
SM
29602004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
2961
455316e2
SM
2962 * keyboard.c (kbd_buffer_gcpro): Remove.
2963 (kbd_buffer_store_event, clear_event, Fdiscard_input)
2964 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
2965 Don't initialize and/or maintain the variable any more. It was made
2966 redundant by my commit of 2003-06-15.
2967
438fc6c0
SM
2968 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
2969
5335a4ee
JD
29702004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2971
2972 * lisp.h: Add undef DECL_ALIGN.
2973
dcdaeebc
SM
29742004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
2975
2976 * process.c (wait_reading_process_input) [SYNC_INPUT]:
2977 Check interrupt_input_pending explicitly.
2978
2979 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
2980
2981 * keyboard.c (handle_async_input): New fun,
2982 extracted from input_available_signal.
2983 (input_available_signal, reinvoke_input_signal): Use it.
2984
9076a823
SM
29852004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
2986
d7107586
SM
2987 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
2988
2989 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
2990 manipulation macros for when tags are in the lower bits.
2991 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
2992 (DECL_ALIGN): New macro.
2993 (DEFUN): Use it.
2994
2995 * lisp.h [ENABLE_CHECKING]: Don't force union type.
2996
2997 * s/darwin.h (__attribute__): Remove outdated workaround.
2998
2999 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
3000
3001 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
3002 Don't check range of malloc address.
3003 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
3004
9076a823
SM
3005 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
3006
3007 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
3008
ba029065
KH
30092004-01-19 Kenichi Handa <handa@m17n.org>
3010
3011 * fontset.c (fontset_font_pattern): Fix previous change.
3012
7af0e8d7
MB
30132004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
3014
3015 * xdisp.c (Voverflow_newline_into_fringe)
3016 (move_it_in_display_line_to, redisplay_internal)
3017 (update_window_fringes, redisplay_window, display_line, window):
3018 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
3019 that it compiles without a window-system.
3020 * dispnew.c (direct_output_for_insert, update_window): Likewise.
3021
77a9cf69
KS
30222004-01-16 Kim F. Storm <storm@cua.dk>
3023
3024 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
3025
a64387ee 3026 * buffer.c (init_buffer_once): Set buffer_defaults and
77a9cf69
KS
3027 buffer_local_flags for indicate_buffer_boundaries.
3028 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
3029 default- variable for it.
3030
3031 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
3032 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
d7107586 3033 New members exact_window_width_line_p and cursor_in_fringe_p for
77a9cf69
KS
3034 overflowing newlines into right fringe.
3035 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
3036 and indicate_bottom_line_p for buffer boundaries and scrolling.
3037 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
3038 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
3039 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
3040 and HOLLOW_SQUARE_BITMAP.
3041 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
3042 Add prototypes.
3043
3044 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
3045 instead of related indicator fields.
3046 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
3047 (direct_output_for_insert): Handle exact width lines like
3048 contined lines. Call update_window_fringes.
3049 (update_window): Call update_window_fringes.
3050 (scrolling_window): Don't skip desired rows with changed bitmaps.
3051 Check if fringe bitmaps changes when assigning scrolled rows.
3052
3053 * xdisp.c (Voverflow_newline_into_fringe): New variable.
3054 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
3055 (move_it_in_display_line_to): Overflow newline into fringe for
3056 rows that are exactly as wide as the window.
3057 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
3058 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
3059 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
3060 (fringe_bitmaps): Add new bitmaps.
3061 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
3062 Select proper bitmap for cursor in fringe when appropriate.
3063 Handle alignment of bitmap to top or bottom of row.
3064 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
3065 done by update_window_fringes.
3066 (update_window_fringes, draw_window_fringes): New functions.
3067 (redisplay_internal): Call update_window_fringes in case only
3068 cursor row is updated.
3069 (redisplay_window): Call update_window_fringes.
3070 Explicitly call draw_window_fringes if redisplay was done using
3071 the current matrix or the overlay arrow is in the window.
3072 (try_window_reusing_current_matrix): Mark scrolled rows for
3073 fringe update (to update buffer-boundaries / scrolling icons).
3074 (find_last_unchanged_at_beg_row): Handle exact width lines line
3075 continued lines.
3076 (display_line): Overflow newline into fringe for rows that are
3077 exactly as wide as the window. Don't append space for newline
d7107586 3078 in this case.
77a9cf69
KS
3079 (notice_overwritten_cursor): Explicitly clear cursor bitmap
3080 in fringe as if it had been overwritten.
3081 (erase_phys_cursor): Erase cursor bitmap in fringe.
d7107586 3082 (syms_of_xdisp): Mark show-trailing-whitespace and
77a9cf69
KS
3083 void-text-area-pointer as user options.
3084 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
d7107586 3085
77a9cf69
KS
3086 * xterm.c (x_update_window_end): Call draw_window_fringes.
3087 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
3088 in row instead of actually drawing fringe bitmaps.
3089 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
3090 (x_draw_window_cursor): Draw cursor in fringe.
3091
3092 * w32term.c (x_update_window_end): Call draw_window_fringes.
3093 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
3094 in row instead of actually drawing fringe bitmaps.
3095 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
3096 (w32_draw_window_cursor): Draw cursor in fringe.
3097
3098 * macterm.c (x_update_window_end): Call draw_window_fringes.
3099 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
3100 in row instead of actually drawing fringe bitmaps.
3101 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
3102 (mac_draw_window_cursor): Draw cursor in fringe.
3103
a633a954
JD
31042004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3105
3106 * xterm.c (handle_one_xevent): Don't handle characters that are part
3107 of an old style (XLookupString) compose sequence.
3108
80460525
KH
31092004-01-15 Kenichi Handa <handa@m17n.org>
3110
3111 * search.c (Freplace_match): Use make_multibyte_string or
3112 make_unibyte_string according to the buffer multibyteness.
3113
7fc34f85
SM
31142004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
3115
3116 * alloc.c (struct interval_block, struct string_block)
3117 (struct symbol_block, struct marker_block, live_string_p)
3118 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
3119 Better preserve alignment for objects in blocks.
3120 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
3121
3122 * lread.c (defvar_per_buffer): Remove dead declaration.
3123
3124 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
3125 space size.
3126
66070bd1
JD
31272004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3128
3129 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
3130 if a key press should pop down. Only pop down if a key is pressed
3131 outside the menu/dialog.
3132 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
3133 popup_get_selection.
3134 (create_and_show_dialog): Pass 1 for down_on_keypress to
3135 popup_get_selection.
3136
de7515d6
JD
31372004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3138
3139 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
3140 BLOCK/UNBLOCK_INPUT.
3141
160b1b50
JD
31422004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3143
3144 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
3145 specified.
3146
3a9f36e6
KH
31472004-01-08 Kenichi Handa <handa@m17n.org>
3148
3149 * editfns.c (Fformat): Fix '&' to '&&'.
3150
3803eb32
AS
31512004-01-08 Andreas Schwab <schwab@suse.de>
3152
3153 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
3154 size if PSEUDOVECTOR_FLAG is set.
3155
9da88f37
KH
31562004-01-07 Kenichi Handa <handa@m17n.org>
3157
74ac5074
KH
3158 * charset.c (Fdeclare_equiv_charset): Fix docstring.
3159
9da88f37
KH
3160 * fontset.c (fontset_ref_via_base): Fix previous change.
3161
05faee07
KS
31622004-01-07 Kim F. Storm <storm@cua.dk>
3163
3164 * process.c (read_process_output): Only activate adaptive
3165 buffering if we read less than 256 bytes at a time.
3166
634910c8
KS
31672004-01-06 Kim F. Storm <storm@cua.dk>
3168
3169 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
3170 object and image object. Return glyph width and height.
3171 (mode_line_string, marginal_area_string): Ditto.
3172
3173 * dispextern.h (buffer_posn_from_coords, mode_line_string)
3174 (marginal_area_string): Fix prototypes.
3175
3176 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
f63fd14e 3177 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
634910c8
KS
3178 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
3179
3180 * keyboard.c (make_lispy_position): Use modified mode_line_string,
3181 buffer_posn_from_coords, and marginal_area_string functions to
3182 include both string object and image object in the lispy position.
3183 Also add actual glyph width and height to position.
3184 (read_key_sequence): Use real buffer position from mouse
3185 event to find keymap property even when click is in marginal area.
3186
3187 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
3188 mode_line_string and marginal_area_string functions to handle
3189 both string object and image object properties.
d7107586 3190
57951c2e
AS
31912004-01-06 Andreas Schwab <schwab@suse.de>
3192
3193 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
3194 character.
3195
181e6a61
AS
31962004-01-02 Andreas Schwab <schwab@suse.de>
3197
d7107586
SM
3198 * macterm.c (emacs_options, x_initialized, same_x_server):
3199 Remove unused (and duplicated) definitions.
181e6a61 3200
31e0fbdd
KS
32012004-01-02 Kim F. Storm <storm@cua.dk>
3202
3203 * process.h (struct Lisp_Process): New members for adaptive read
3204 buffering: adaptive_read_buffering, read_output_delay, and
3205 read_output_skip.
3206
3207 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
3208 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
3209 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
3210 (process_output_delay_count, process_output_skip): New vars.
3211 (Vprocess_adaptive_read_buffering): New variable.
3212 (make_process): Initialize adaptive read buffering members.
3213 (Fstart_process): Set adaptive_read_buffering member.
3214 (deactivate_process): Cleanup adaptive read buffering.
3215 (wait_reading_process_input): Temporarily omit delayed
3216 subprocesses from the set of file descriptors to read from;
3217 adjust the select timeout if we skipped any subprocesses.
3218 (read_process_output): Increase adaptive read buffering delay if
3219 we read less than a full buffer; reduce delay when we read a
3220 full buffer.
3221 (send_process): Simplify using local Lisp_Process var.
3222 Reset adaptive read buffering delay after write.
3223 (init_process): Initialize process_output_delay_count and
3224 process_output_skip.
3225 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
3226
68c6a789
JR
32272004-01-01 Jason Rumney <jasonr@gnu.org>
3228
d7107586 3229 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
68c6a789 3230
3f70fe82
LT
32312003-12-30 Luc Teirlinck <teirllm@auburn.edu>
3232
3233 * print.c (Ferror_message_string): Add hyperlink in the docstring
3234 to the definition of `signal' in the Elisp manual.
3235 * eval.c (Fsignal): Ditto.
3236
a64387ee 32372003-12-29 James Clark <jjc@jclark.com> (tiny change)
c2be49ed
EZ
3238
3239 * fns.c (internal_equal): Return t for two NaN arguments.
3240
7abd90ea
RS
32412003-12-29 Richard M. Stallman <rms@gnu.org>
3242
3243 * data.c (store_symval_forwarding): Handle setting
3244 default-fill-column, etc., by changing the value in
3245 buffers that use the default.
3246
3247 * minibuf.c (Fset_minibuffer_window): Doc fix.
3248
3249 * fileio.c (choose_write_coding_system): Ignore auto_saving
3250 if using the visited file for auto saves.
3251 (Fwrite_region): Don't update SAVE_MODIFF
3252 if auto-saving in visited file.
3253
3e7cfcdc
KH
32542003-12-29 Kenichi Handa <handa@m17n.org>
3255
3256 * dispextern.h (face_font_available_p): Extern it.
3257
3258 * fontset.c (Voverriding_fontspec_alist): New variable.
3259 (lookup_overriding_fontspec): New function.
d7107586 3260 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
3e7cfcdc
KH
3261 (fontset_font_pattern): Likewise.
3262 (regulalize_fontname): New function.
3263 (Fset_fontset_font): Call regulalize_fontname.
3264 (Fset_overriding_fontspec_internal): New function.
d7107586
SM
3265 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
3266 Defsubr Sset_overriding_fontspec_internal.
3e7cfcdc
KH
3267
3268 * xfaces.c (face_font_available_p): New function.
3269
7abd90ea
RS
32702003-12-28 Richard M. Stallman <rms@gnu.org>
3271
3272 * buffer.c (Fother_buffer): Don't crash if BUF is nil
3273 or if its name is nil.
3274
3275 * buffer.c (Fkill_buffer): Don't delete auto-save file
3276 if it's the same as the visited file.
3277
de1d1a40
LT
32782003-12-28 Luc Teirlinck <teirllm@auburn.edu>
3279
3280 * coding.c (Fcheck_coding_system): Doc fix.
3281
204fb75e
KS
32822003-12-28 Kim F. Storm <storm@cua.dk>
3283
3284 * Makefile.in (eval.o): Depend on dispextern.h.
3285
3286 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
3287 image glyph using image's ascent.
3288 (mode_line_string): Return image glyph as object clicked on.
3289 Adjust y0 for image glyph using image's ascent.
3290
3291 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
3292 (struct glyph): New members, ascent and descent. Used to save
3293 this glyph's ascent and descent, instead of having.
3294 (struct glyph): Declare member face_id using FACE_ID_BITS.
3295 (find_hot_spot): Add prototype.
3296
3297 * keyboard.c (Qimage): Remove extern (now in lisp.h).
3298 (QCmap): Declare extern.
3299 (make_lispy_position): When position is inside image hot-spot,
3300 use hot-spot element's id as posn element.
3301
3302 * lisp.h (IMAGEP): New macro to test for image object type.
3303 (Qimage): Declare extern.
3304
3305 * macfns.c (Qimage): Remove extern (now in lisp.h).
3306 (valid_image_p, parse_image_spec): Use IMAGEP macro.
3307
3308 * macterm.c (Qface, Qmouse_face): Remove unused externs.
3309
3310 * w32fns.c (Qimage): Remove extern (now in lisp.h).
3311 (valid_image_p, parse_image_spec): Use IMAGEP macro.
3312
3313 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
3314
3315 * w32term.c (Qface, Qmouse_face): Remove unused externs.
3316
3317 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
3318 pointer types.
3319 (Qrelative_width, Qalign_to): Remove unused variables.
3320 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
3321 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
3322 image maps.
d7107586 3323 (x_y_to_hpos_vpos): Return glyph relative coordinates through
204fb75e
KS
3324 new dx and dy args.
3325 Remove buffer_only_p arg (always 0). Simplify code accordingly.
3326 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
3327 than row's ascent and height, to get sensible height on tall rows.
3328 (build_desired_tool_bar_string): Remove Qimage extern.
3329 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
3330 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
3331 image glyph is alone on the last line.
3332 (append_glyph, append_composite_glyph, produce_image_glyph)
d7107586 3333 (append_stretch_glyph): Set glyph's ascent and descent.
204fb75e 3334 (on_hot_spot_p): New function to check if position is inside an
d7107586 3335 rectangular, circular, or polygon-shaped image hot-spot,
204fb75e
KS
3336 (find_hot_spot): New function to search for image hot-spot.
3337 (Flookup_image_map): New defun to search for image hot-spot.
3338 (define_frame_cursor1): New aux function to determine frame pointer.
3339 (note_mode_line_or_margin_highlight, note_mouse_highlight):
3340 Handle `pointer' text property and :pointer image property to
3341 control frame pointer shape. Detect image hot-spots for pointer
3342 and help_echo properties. Use define_frame_cursor1.
3343 (note_mouse_highlight): Use Vvoid_text_area_pointer.
f63fd14e 3344 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
204fb75e
KS
3345 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
3346
3347 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
3348
3349 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
3350 (Qimage): Remove extern (now in lisp.h).
3351 (valid_image_p, parse_image_spec): Use IMAGEP macro.
3352
3353 * xmenu.c (show_help_event): Remove unused code.
3354
3355 * xterm.c (Qface, Qmouse_face): Remove unused externs.
3356 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
3357 row's ascent and descent, to get a sensible height on tall rows.
3358
fc052137
LT
33592003-12-25 Luc Teirlinck <teirllm@auburn.edu>
3360
3361 * minibuf.c (Fcompleting_read): Undo previous change.
3362
a64387ee 33632003-12-25 Lars Hansen <larsh@math.ku.dk>
b9148500
LH
3364
3365 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
3366 Arguments GCPRO'ed in call to file name handler.
3367
56ffd194
TTN
33682003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
3369
3370 * termcap.c (tgetst1): Scan for "%pN"; if all
3371 N are continuous in [1,9], remove all "%pN".
3372
5202d23d
JD
33732003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3374
f26fab36
JD
3375 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
3376
5202d23d
JD
3377 * xfaces.c (lface_fully_specified_p): Take into account that
3378 MAC OS always have unspecified stipple.
3379
8babaa59
TTN
33802003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
3381
3382 * tparam.c (tparam1): Add handling for `%pN', which
3383 means use param N for the next substitution.
3384
2d176448
TTN
33852003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
3386
3387 * xfaces.c (Fcolor_gray_p): Fix omission bug:
3388 In case `frame' is nil, consult the selected frame.
3389 (Fcolor_supported_p): Likewise.
3390
adb0708c
LT
33912003-12-23 Luc Teirlinck <teirllm@auburn.edu>
3392
000eeb15
LT
3393 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
3394 Doc fixes.
0dc72b11
LT
3395
3396 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
3397 and an integer. Adapt the introductory comment accordingly.
adb0708c
LT
3398 (Fread_from_minibuffer): Delete code moved into read_minibuf.
3399 Doc fix.
3400 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
3401 read_minibuf.
3402 (Fcompleting_read): Delete code moved into read_minibuf.
d7107586 3403 (Ftest_completion): Make it handle obarrays and hash tables correctly.
adb0708c 3404
2e4d132b
KH
34052003-12-03 Kenichi Handa <handa@m17n.org>
3406
3407 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
3408 encoding sequence.
3409
3999c705
KH
34102003-12-01 Kenichi Handa <handa@m17n.org>
3411
3412 * composite.c (syms_of_composite): Don't make the compostion hash
3413 table week.
3414
d344ecbb
LT
34152003-11-30 Luc Teirlinck <teirllm@auburn.edu>
3416
3417 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
3418 * textprop.c (Fget_char_property_and_overlay): New function.
3419 (syms_of_textprop): Defsubr it.
3420
03d6484e
JD
34212003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3422
019b1f0e
JD
3423 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
3424 to compile on terminal configuration.
3425
03d6484e
JD
3426 * fileio.c (Fread_file_name): Check use_file_dialog also before
3427 calling Fx_file_dialog.
3428
3429 * fns.c: use_file_dialog: New variable.
3430 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
3431
442d3fd0
KS
34322003-11-29 Kim F. Storm <storm@cua.dk>
3433
3434 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
3435 (syms_of_msdos): Don't intern and staticpro them.
3436
0f6a07a8
KS
34372003-11-27 Kim F. Storm <storm@cua.dk>
3438
3439 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
3440 coordinates relative to glyph at posn. If glyph is an image,
3441 return that as object at posn. Callers changed.
3442 (mode_line_string, marginal_area_string): Calculate and return
3443 pixel coordinates relative to glyph. Callers changed.
3444
3445 * dispextern.h (buffer_posn_from_coords, mode_line_string)
3446 (marginal_area_string): Fix prototypes.
3447 (window_box_left_offset, window_box_right_offset): Add prototypes.
3448
3449 * frame.h (get_specified_cursor_type, get_window_cursor_type):
3450 Remove prototypes.
3451
3452 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
3453
3454 * keyboard.c (make_lispy_position): Add x and y coordinates
3455 relative to the current glyph as 7th element of position.
3456 If glyph is an image, return it in the object element.
3457 (read_key_sequence): Skip checks for keymap property in cases
3458 where POSN_STRING is not a string (e.g. an image).
3459
3460 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
3461 (Vshow_text_cursor_in_void): New variable.
3462 (glyph_to_pixel_coords): Don't use negative hpos.
3463 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
3464 (append_stretch_glyph): Change ascent arg to be actual value
f63fd14e 3465 in pixels rather than ratio to height. Callers changed.
0f6a07a8
KS
3466 (calc_pixel_width_or_height): New aux function, implementing
3467 pixel based artihmetic for glyph widths and heights.
3468 (produce_stretch_glyph): Use calc_pixel_width_or_height for
3469 :width, :height, :align-to, and :ascent, thus allowing these to
3470 be specified in pixels as well as multiples of characters.
3471 Don't produce stretch glyphs with zero width or height.
3472 (get_specified_cursor_type): Declare static.
3473 (get_window_cursor_type): Declare static. Add glyph arg to be
3474 able to know when cursor is on an image; always substitute
3475 hollow-box cursor for filled-box cursor on images, to avoid
3476 negative images and flicker when blinking the cursor.
3477 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
3478 (note_mode_line_or_margin_highlight): Use non-text cursor rather
3479 than vertical scroll-bar cursor in display margins.
3480 (note_mouse_highlight): Use non-text cursor rather than text
3481 cursor in fringes and over images in the text area.
3482 Use non-text cursor when mouse pointer is outside editable text,
3483 i.e. in the void after end-of-line or end-of-buffer; this was
3484 already done for W32, but is now standard for all systems --
3485 user can toggle show-text-cursor-in-void to get old behaviour.
3486 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
3487 Vdisplay_pixels_per_inch.
3488
00498bfc
AS
34892003-11-25 Andreas Schwab <schwab@suse.de>
3490
3491 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
3492 EMACS_INT to not lose bits.
3493 (Ffillarray): Don't set bits beyond the size of a bool vector.
3494
edaa824d
KS
34952003-11-25 Kim F. Storm <storm@cua.dk>
3496
3497 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
3498 define this defun on systems that cannot use stderr as lvalue.
3499
74d6f539
GM
35002003-11-24 Gerd Moellmann <gerd@gnu.org>
3501
3502 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
3503 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
3504 ld's default is incompatible with unexec.
3505
6a1ff3ba
KS
35062003-11-23 Kim F. Storm <storm@cua.dk>
3507
63dc7c6b
KS
3508 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
3509 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
3510 (Fforce_window_update): New defun.
3511 (syms_of_window): Defsubr it.
3512 (Fset_window_margins, Fset_window_fringes): Doc fix.
3513
6a1ff3ba
KS
3514 * print.c (Fredirect_debugging_output): New defun.
3515 (syms_of_print): Defsubr it.
3516
aef109b7
LT
35172003-11-22 Luc Teirlinck <teirllm@auburn.edu>
3518
3519 * fns.c (Fset_char_table_parent): Doc fix.
3520
6a1ff3ba 35212003-11-22 Kim F. Storm <storm@cua.dk>
63ccbe21
KS
3522
3523 * dispnew.c (buffer_posn_from_coords): Return actual row/column
3524 for glyph clicked on, rather than (unused) pixel positions.
3525 (mode_line_string, marginal_area_string): Change X and Y args to
3526 pointers for returning actual row/column for glyph clicked on.
3527 Simplify and optimize loops.
3528
aef109b7
LT
3529 * dispextern.h (mode_line_string, marginal_area_string):
3530 Update prototypes.
63ccbe21
KS
3531
3532 * keyboard.c (make_lispy_position): New function for generating
3533 mouse click positions from frame and pixel coordinates.
3534 Enhanced to return buffer position and actual row/column for
3535 events outside the text area using updated mode_line_string and
3536 marginal_area_string functions.
3537 Return left-fringe and right-fringe clicks as such, rather than
3538 clicks in text area.
3539 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
3540 pixel_to_glyph_coords, as we never use the results.
3541 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
3542 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
3543 Eliminate unused code in WHEEL_EVENT handling.
3544 (make_lispy_movement): Use make_lispy_position.
3545
3546 * window.c (coordinates_in_window): Remove redundant tests.
3547 Fix returned X pixel value for left-margin.
3548
3549 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
3550 mode_line_string and marginal_area_string parameters.
3551
a64387ee 35522003-11-22 Lars Hansen <larsh@math.ku.dk>
930a9995 3553
d7107586
SM
3554 * w32.c (struct the_group, getgrgid): Add.
3555 * mac.c (struct my_group, getgrgid): Add.
aef109b7 3556
3dbf3426
LT
35572003-11-21 Luc Teirlinck <teirllm@auburn.edu>
3558
3559 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
3560
cae8ddbb 35612003-11-21 Lars Hansen <larsh@math.ku.dk>
ded4064f 3562
d7107586
SM
3563 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
3564 include in call to file name handler. Optionally translate numeric
3565 UID and GID to strings. Update docstring.
3566 (directory_files_internal): Add parameter ID-FORMAT.
3567 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
3568 include in call to file name handler and call to
3569 directory_files_internal. Update Docstring.
3570 (Fdirectory_files): Add dummy parameter in call to
3571 directory_files_internal.
3572 * lisp.h (Qinteger): Add.
3573 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
3574 (Ffile_attributes): Add parameter.
3575 * data.c (Qinteger): Export.
cae8ddbb 3576
2550b848
LT
35772003-11-21 Luc Teirlinck <teirllm@auburn.edu>
3578
3dbf3426 3579 * fns.c (Freverse, Fnreverse): Doc fixes.
2550b848 3580
88380018
KS
35812003-11-19 Kim F. Storm <storm@cua.dk>
3582
3583 * xdisp.c (init_iterator): Initialize it->start to position
3584 before reseating (in case start position is invisible).
3585 (init_to_row_start): Set it->start to row-start.
3586 (redisplay_window): Accept optional_new_start if start position
3587 is invisible (in which case IT_CHARPOS overshoots PT).
3588 (display_line): Setup row->start from it->start (rather than
3589 it->current which is wrong if first char on line is invisible).
3590 When done, reseat it->start to it->current (= start of next row).
3591 (expose_area): Fix exposure of text area when first char (e.g. TAB)
3592 is only partially visible.
3593
3594 * dispextern.h (struct it): New member start.
3595
854c1a59
SM
35962003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
3597
455316e2
SM
3598 * alloc.c (make_float, Fcons): Clear the markbit at init time.
3599 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
3600 of block_index outside of the macro call.
3601 (Fgarbage_collect): Remove null code.
3602
3603 * m/amdx86-64.h: Don't redefine XPNTR.
3604
854c1a59
SM
3605 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
3606 of VALMASK.
3607
3608 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
3609 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
3610 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
3611
3612 * lisp.h (VALMASK): Only define for non-union type.
3613 (MARKBIT): Remove.
3614 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
3615 (XTYPE): Define unconditionally.
3616 (XSETTYPE): Remove one more remnant.
3617 (EQ): Define differently for the union and non-union cases.
3618 (INTMASK): New bit mask.
3619 (struct Lisp_Marker): Move down to prepare for upcoming patch.
3620 (GC_EQ): Delegate to EQ.
3621
3622 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
3623
a0c6ef2d
JD
36242003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3625
3626 * xterm.c (x_window_to_scroll_bar): Move check of display to
3627 where window_id is compared.
3628
859492c4
KS
36292003-11-17 Kim F. Storm <storm@cua.dk>
3630
3631 * dispextern.h (struct it): New member first_vpos.
3632
3633 * xdisp.c (start_display): Set it->first_vpos.
3634 (try_window_id): Use first_vpos to start display in first _text_
3635 line if no reusable lines at start of window with header line.
3636
810f2256
JD
36372003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3638
7c402969 3639 * w32fns.c (XPutPixel):
854c1a59
SM
3640 * w32bdf.c (w32_init_bdf_font):
3641 * sunfns.c (sel_read):
3642 * process.c (Fmake_network_process):
3643 * frame.c (store_frame_param):
3644 * fontset.c (Fset_fontset_font):
3645 * emacs.c (shut_down_emacs):
a64387ee 3646 * ccl.c (ccl_driver): Remove period at end of error message.
7c402969 3647
a32e9bfd
JD
3648 * config.in: Regenerate.
3649
810f2256
JD
3650 * xfns.c (x_window_to_frame, x_any_window_to_frame)
3651 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
3652 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
3653 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
3654 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
3655
3656 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
3657
3658 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
3659 (XTmouse_position, handle_one_xevent): Pass Display* to
3660 x_window_to_scroll_bar.
3661 (x_window_to_scroll_bar): Take a Display* argument.
3662 Check that display for frame is equal to Display* argument.
854c1a59 3663 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
810f2256
JD
3664 x_display_info_for_display instead. Use Display in xev instead
3665 of GDK_DISPLAY.
3666 (x_dispatch_event): Call x_display_info_for_display.
f63fd14e 3667 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
810f2256
JD
3668 (x_connection_closed): Call xg_display_close for GTK.
3669 (x_term_init): Call xg_display_open for additional displays.
3670 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
3671 for GTK.
3672
3673 * xmenu.c (single_menu_item, mouse_position_for_popup)
3674 (x_activate_menubar): Formatting adjustments.
3675
3676 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
3677 adjustments.
3678
3679 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
3680 (xg_display_close, xg_create_default_cursor)
3681 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
3682 handling.
854c1a59
SM
3683 (xg_left_ptr_cursor): Remove.
3684 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
810f2256
JD
3685 cursor here.
3686 (xg_win_to_widget): Take Display* argument, call
3687 gdk_xid_table_lookup_for_display.
3688 (xg_create_frame_widgets, xg_get_file_name, create_menus)
3689 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
3690 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
3691 in FRAME_X_DISPLAY_INFO.
3692 (xg_get_scroll_id_for_window): Take Display* argument.
3693 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
854c1a59 3694 (xg_initialize): Remove xg_left_ptr_cursor.
810f2256
JD
3695
3696 * gtkutil.h: xg_get_scroll_id_for_window, xg_win_to_widget takes
3697 Display* argument also. Declare xg_display_open,
3698 xg_display_close, xg_create_default_cursor.
3699
0b03cc78
JD
37002003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3701
3702 * xterm.c (x_detect_focus_change): Do not change focus frame for
3703 Enter/LeaveNotify if the current focus frame has explicit focus.
3704
77e688fa
KS
37052003-11-14 Kim F. Storm <storm@cua.dk>
3706
3707 * dispnew.c (update_text_area): Fix redisplay error when hscroll
3708 is active and first glyph is only partially visible.
854c1a59 3709
dd429b03
KH
37102003-11-13 Kenichi Handa <handa@m17n.org>
3711
3712 * xdisp.c (select_frame_for_redisplay): New function.
3713 (redisplay_internal): Record also selected_frame for
3714 unwind_redisplay. Call select_frame_for_redisplay before
3715 redrawing each frame.
3716 (unwind_redisplay): Argument changed to a cons.
3717
6d9266f4
LT
37182003-11-12 Luc Teirlinck <teirllm@auburn.edu>
3719
3720 * fns.c (Fstring_to_multibyte): Doc fix.
3721
80060eb3
KH
37222003-11-11 Kenichi Handa <handa@m17n.org>
3723
3724 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
3725
74305183
JD
37262003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3727
3728 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
3729 program specified positions.
3730
cfda993e
JD
37312003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3732
3733 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
3734
df211069
KH
37352003-11-08 Kenichi Handa <handa@m17n.org>
3736
3737 * Makefile.in (lisp): Add kannada.el.
3738 (shortlisp): Likewise.
3739
4307d534
KH
37402003-11-07 Kenichi Handa <handa@m17n.org>
3741
854c1a59
SM
3742 * coding.c (coding_allocate_composition_data):
3743 Reset coding->composing to COMPOSITION_NO.
4307d534
KH
3744 (coding_restore_composition): Detect invalid composition data.
3745 Give Fstring and Fvector a Lispy integer, not C int.
3746
854c1a59
SM
37472003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
3748
3749 * floatfns.c (Flogb): Don't use VALMASK.
3750
3751 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
3752 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
3753
3754 * lisp.h (XINT): Move the cast to clarify what is going on.
3755 (GCTYPEMASK, XSETTYPE): Remove.
3756 (XGCTYPE): Make it an alias of XTYPE.
3757
d04103a1
JD
37582003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3759
3760 * xterm.c (x_term_init): Fix formatting.
3761
da18b5ac
JD
37622003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3763
3764 * gtkutil.h: Declare xg_have_tear_offs, remove xg_keep_popup
3765 and xg_did_tearoff.
3766
3767 * gtkutil.c: Remove variable xg_did_tearoff.
3768 (xg_have_tear_offs): New function.
3769 (tearoff_remove): Just decrease xg_detached_menus.
3770 (tearoff_activate): Increase xg_detached_menus and call
3771 tearoff_remove when tearoff is removed.
854c1a59 3772 (xg_keep_popup): Remove function.
da18b5ac
JD
3773 (create_menus): Give add_tearoff_p as argument to recursive
3774 call to create_menus.
3775 (xg_create_widget): Use variables instead of multiple
3776 strcmp. Tell create_menus to create tear off only for
3777 menu bar menus.
3778 (xg_update_menubar): Change title for a detached menu also.
3779 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
3780 of deep_p.
3781 (xg_initialize): Initialize xg_detached_menus, remove
3782 initialization of xg_did_tearoff.
3783
3784 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
3785 xg_have_tear_offs returns non-zero.
3786 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
3787 call to xg_keep_popup.
3788
64d4923e
AC
37892003-11-01 Andrew Choi <akochoi@shaw.ca>
3790
3791 * macterm.c (XTread_socket): Handle menubar selection and grow
3792 window only for mouseDown events.
854c1a59 3793
6cc8bc07
JD
37942003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3795
3796 * xterm.c (x_term_init): For GTK part, increase x_initialized
3797 to check for more than one display. Use error instead of return 0.
3798
043131c4
AC
37992003-10-31 Andrew Choi <akochoi@shaw.ca>
3800
854c1a59 3801 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
043131c4
AC
3802 (copy_dysymtab): Call it.
3803
bdda99a1
LT
38042003-10-31 Luc Teirlinck <teirllm@auburn.edu>
3805
3806 * eval.c (Fdefvaralias): Doc fix.
3807
800f42ff 38082003-10-26 Luc Teirlinck <teirllm@auburn.edu>
0d11571e
LT
3809
3810 * data.c (Fsetplist): Doc fix.
3811
ef35b389
LK
38122003-10-14 Lute Kamstra <lute@gnu.org>
3813
3814 * window.c (Fset_window_fringes): Clarify docstring.
07107abc 3815
ef35b389 38162003-10-14 Kim F. Storm <storm@cua.dk>
854c1a59 3817
07107abc
KS
3818 * window.c (Fset_window_margins): Simplify arg checking.
3819
f7005886
RS
38202003-10-13 Richard M. Stallman <rms@gnu.org>
3821
3822 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
3823 (print_partial_compiled_pattern): Replace assert with a printout.
3824 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
3825
3826 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
3827
3828 * window.c (Fset_window_margins): Allow only integers as args.
3829 (syms_of_window) <special-display-buffer-names, special-display-regexps>:
3830 Doc fixes.
3831
9c0c2af5
LK
38322003-10-13 Lute Kamstra <lute@gnu.org>
3833
3834 * window.c (Fset_window_fringes): Elaborate docstring.
3835
3f080e4e
AC
38362003-10-12 Andrew Choi <akochoi@shaw.ca>
3837
854c1a59 3838 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
a4887377 3839
3f080e4e
AC
3840 * s/darwin.h (GC_MARK_STACK): Define.
3841
0aa513ed
JD
38422003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3843
3844 * window.c (shrink_windows): New function.
3845 (size_window): Call shrink_windows to calculate window sizes when
3846 shrinking frame with more than one window.
3847
6aa8858a
KS
38482003-10-12 Kim F. Storm <storm@cua.dk>
3849
3850 * xdisp.c (compute_fringe_widths): Doc fix.
3851
c2164d91
KH
38522003-10-08 Kenichi Handa <handa@m17n.org>
3853
854c1a59 3854 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
c2164d91 3855
f82ac129
KH
38562003-10-07 Kenichi Handa <handa@m17n.org>
3857
3858 * coding.c (Qcoding_system_define_form): New variable.
3859 (syms_of_coding): Intern and staticpro it.
3860 (Fcheck_coding_system): Try to autoload the definition of
3861 CODING-SYSTEM.
3862
9296c947
LT
38632003-10-05 Luc Teirlinck <teirllm@auburn.edu>
3864
3865 * fns.c (Frequire): Doc fix.
3866
c1f0671a
JD
38672003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3868
3d8c3826
JD
3869 * xfns.c (Fx_send_client_event): New function as a base for
3870 manipulating extended window manager hints.
6dc15d98 3871 (Fx_send_client_event): Remove unused variable s.
3d8c3826 3872
068ae0fd
JD
3873 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
3874 that function is removed.
3875
3876 * xterm.c (x_set_offset): Use move_offset_left/top instead of
3877 x/y_pixels_outer_diff.
3878 (x_check_expected_move): Calculate move_offset_left/top.
3879
3880 * xterm.h (struct x_output): New members: move_offset_top/left.
3881
854c1a59 3882 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
068ae0fd
JD
3883 call x_set_offset directly.
3884
3885 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
3886
96f09305
JD
3887 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
3888
3889 * xterm.c (x_delete_display): Free font names and font_encoder
3890 in dpyinfo->font_table.
3891
854c1a59
SM
3892 * xfns.c (Fx_close_connection): Only call XFreeFont here.
3893 Move xfree of font names to x_delete_display.
96f09305 3894
c1f0671a
JD
3895 * xterm.h (struct x_display_info): New member, wm_type.
3896 (struct x_output): New members, expected_top/left and
3897 check_expected_move.
3898
3899 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
3900 is received.
854c1a59
SM
3901 (handle_one_xevent): Rename x_check_expected_move from
3902 x_check_fullscreen_move.
c1f0671a
JD
3903 (x_set_offset): Only add WM decoration sizes to modified_top/left
3904 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
854c1a59 3905 (x_check_expected_move): Rename from x_check_fullscreen_move.
c1f0671a
JD
3906 Removed fullscreen specific code. Use check_expected_move,
3907 expected_left/top instead. Also, set wm_type.
3908 (x_term_init): Initialize wm_type to unknown.
3909
3910 * frame.c (x_fullscreen_move): Remove addition of WM decoration
3911 sizes to move_x/y.
3912
be2fdba9
KH
39132003-10-03 Kenichi Handa <handa@m17n.org>
3914
3915 * macterm.c (x_load_font): Clear all members of FONTP before start
3916 filling them.
3917
39182003-10-02 Kenichi Handa <handa@m17n.org>
3919
3920 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
3921 before calling find_ccl_program_func. Call find_ccl_program_func
3922 only when fontp->font_encoder is not NULL.
3923
3924 * xterm.c (x_load_font): Clear all members of FONTP before start
3925 filling them.
3926
26a6e439
JPW
39272003-10-03 John Paul Wallington <jpw@gnu.org>
3928
3929 * keymap.c (map_keymap): Don't abort when binding is a vector.
3930
0d4c2dc2
JR
39312003-10-02 Jason Rumney <jasonr@gnu.org>
3932
854c1a59
SM
3933 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
3934 Sync dependencies with Makefile.in.
a63cf46f
JR
3935 (alloca.o): Remove.
3936
0d4c2dc2
JR
3937 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
3938 filling them.
3939
3940 * w32bdf.c (w32_load_bdf_font): Likewise.
3941
ab8f7d5c
RS
39422003-09-30 Richard M. Stallman <rms@gnu.org>
3943
3944 * term.c (set_tty_color_mode): Calculate current_mode_spec
3945 regardless of value of VAL.
3946
854c1a59 3947 * intervals.c (graft_intervals_into_buffer):
ab8f7d5c
RS
3948 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
3949 Handle over_used when splitting UNDER.
3950
a64387ee 39512003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ab8f7d5c
RS
3952
3953 * regex.c (regex_compile): Free the stack when returning from function.
3954
3413f972
KH
39552003-09-28 Kenichi Handa <handa@m17n.org>
3956
3957 * fontset.c (Finternal_char_font): Change return value to
3958 cons (FONT-NAME . GLYPH-CODE).
3959
a6eeaa81 39602003-09-28 Eli Zaretskii <eliz@gnu.org>
40409f05
EZ
3961
3962 * term.c (tty_setup_colors): Treat any negative argument as -1.
3963
f98ddc99
KH
39642003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
3965
3966 * process.c (send_process): Delete unused temp_buf.
3967
66c8f1a8
DL
39682003-09-26 Dave Love <fx@gnu.org>
3969
3970 * xterm.c (x_bitmap_mask): Declare.
3971
ca716c26
DL
39722003-09-25 Dave Love <fx@gnu.org>
3973
3974 * Makefile.in (fns.o): Depend on md5.h.
3975
fbe57420
KS
39762003-09-25 Kim F. Storm <storm@cua.dk>
3977
3978 * window.c (set_window_buffer): Fix redisplay problems when
3979 switching between buffers with different display margin widths.
3980
ef6ae4ff
KS
39812003-09-23 Kim F. Storm <storm@cua.dk>
3982
3983 * process.c (set_socket_option): Fix :bindtodevice option.
3984 (Fset_network_process_option): Update process contact list when
3985 setting option succeeds.
3986 (Fmake_network_process): Doc fix.
3987
68e03c1c
DL
39882003-09-23 Dave Love <fx@gnu.org>
3989
7146d1c1 3990 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
68e03c1c 3991
a6eeaa81 39922003-09-22 Eli Zaretskii <eliz@gnu.org>
2f809aae
EZ
3993
3994 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
3995 color mode is an integer number (it could be -1).
3996
8fe7d8c8
RS
39972003-09-22 Richard M. Stallman <rms@gnu.org>
3998
3999 * intervals.c (graft_intervals_into_buffer): Correct the main loop
4000 in the case where OVER is longer than UNDER.
4001
2f71b5ea
MY
40022003-09-22 Masatake YAMATO <jet@gyve.org>
4003
7146d1c1 4004 * window.c (Fset_window_scroll_bars): Validate the value of
2f71b5ea 4005 `vertical_type'.
7146d1c1 4006
0c4da023
KS
40072003-09-21 Kim F. Storm <storm@cua.dk>
4008
4009 * frame.c (Vdefault_frame_scroll_bars): New variable.
4010 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
4011 (syms_of_frame): DEFVAR_LISP it, and initialize according to
4012 window-system default scroll bar position.
4013
b648413b
KS
4014 * window.c (Fwindow_scroll_bars): Doc fix.
4015
8f5b9e34
JD
40162003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4017
854c1a59 4018 * xterm.c (x_set_offset): Take window manager decorations into account.
8f5b9e34 4019
b0f23edf
RS
40202003-09-19 Richard M. Stallman <rms@gnu.org>
4021
4022 * atimer.h: Don't include lisp.h.
4023 (P_): Define it here (as well as elsewhere).
4024
4025 * print.c (Fprin1_to_string): Move the PRINTPREPARE
4026 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
4027
4028 * data.c (Fvariable_binding_locus): New function.
4029 (syms_of_data): defsubr it.
4030 (Flocal_variable_p): Delete duplicate call to indirect_variable.
4031
e1283999
DL
40322003-09-18 Dave Love <fx@gnu.org>
4033
ad5f3636
DL
4034 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
4035
e1283999
DL
4036 * process.c (Fnetwork_interface_info): Fix type error.
4037 (Fnetwork_interface_list): Doc fix.
4038 (read_process_output, read_process_output): Delete unused var.
4039
b8c7fd71
KS
40402003-09-17 Kim F. Storm <storm@cua.dk>
4041
4042 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
4043 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
4044 (Fnetwork_interface_info): Check that ifreq struct has required
4045 fields before accessing them; this requires that those fields are
4046 defined as macros, which may be too restrictive on some platforms,
4047 but it is better than failing on other platforms.
4048 (syms_of_process): Only defsubr above fns when included.
4049
11e0a411
DL
40502003-09-17 Dave Love <fx@gnu.org>
4051
4052 * unexalpha.c: Don't include varargs.h.
4053
e9c50801
KS
40542003-09-17 Kim F. Storm <storm@cua.dk>
4055
4056 * process.c (Fset_process_sentinel): Add sentinel to childp plist
4057 for network process.
4058 (socket_options): Add `:' prefix to option names. Add optbit field.
4059 (set_socket_option): Remove no_error arg and special handling of s < 0.
4060 Return 1<<optbit for known option, 0 for unknown.
4061 Do not interpret 0 as false for boolean option (only nil).
4062 Pass failed option and value to report_file_error.
7146d1c1 4063 (Fset_network_process_options): Replace by Fset_network_process_option.
e9c50801
KS
4064 (Fset_network_process_option): New function to set just one option.
4065 (Fmake_network_process): Allow :coding arg to be a cons.
4066 Allow :server arg to be an integer specifying backlog size.
4067 Remove :options arg, and allow options to be specified directly
4068 as :KEY, VALUE pairs. Parse these options before binding socket.
4069 As before, :reuseaddr t is default for a server process, but this
4070 can now be disabled by specifying :reuseaddr nil.
4071 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
4072 (init_process): Availability of network options is now checked with
4073 simpler syntax (featurep 'make-network-process :OPTION); use loop to
4074 setup features.
4075 (syms_of_process): Fix defsubr's for the replaced functions.
4076
a0fc3644
DL
40772003-09-16 Dave Love <fx@gnu.org>
4078
4079 * Makefile.in: Depend on coding.h.
4080
6df2a645
KS
40812003-09-14 Kim F. Storm <storm@cua.dk>
4082
4083 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
4084 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
4085 (syms_of_process): Defsubr them.
4086
4087 * config.in: Regenerate.
7146d1c1
SM
4088
40892003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4090
4091 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
4092 * m/news-r6.h (XUNMARK): Remove.
4093 * m/mips.h (XUNMARK): Remove.
4094 * m/mips-siemens.h (XUNMARK): Remove.
4095 * m/iris4d.h (XUNMARK): Remove.
4096 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
4097
0930c1a1
SM
40982003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
4099
31003b9e
SM
4100 * lisp.h (VALBITS): Don't remove 1 for the markbit.
4101 (union Lisp_Object): Use unsigned int for types. Remove markbit.
4102 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
4103 (XTYPE): Use unsigned right-shift.
4104 (XMARKBIT, XMARK, XUNMARK): Remove.
4105
0930c1a1
SM
4106 * alloc.c (init_intervals, init_symbol, init_marker):
4107 Don't preallocate anything.
4108 (Fgarbage_collect, mark_object): Ignore the markbit.
4109
4110 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
4111
19bb0fcd 41122003-09-08 Lute Kamstra <lute@gnu.org>
5df034de
LK
4113
4114 * xdisp.c (pint2hrstr): New function.
4115 (decode_mode_spec): Add `%i' and `%I' specs.
4116 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
4117 for `mode-line-format'.
4118
03bb6a06
AS
41192003-09-07 Andreas Schwab <schwab@suse.de>
4120
4121 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
4122 avoid warning.
4123
a6eeaa81 41242003-09-07 Eli Zaretskii <eliz@gnu.org>
2063d89c 4125
0930c1a1 4126 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
2063d89c 4127
ed159bbf
KS
41282003-09-03 Kim F. Storm <storm@cua.dk>
4129
4130 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
4131 change (superseded by 2002-08-30 change); the default blink-off
4132 cursor is now again "no cursor".
4133
fe64a394
JR
41342003-09-01 Jason Rumney <jasonr@gnu.org>
4135
4136 * makefile.w32-in (alloca.o): Remove.
4137 (coding.o): Depend on intervals.h
4138 (emacs.o, bytecode.o): Depend on window.h
4139
c0175e24
DL
41402003-09-01 Dave Love <fx@gnu.org>
4141
4142 * Makefile.in (alloca.o): Remove commands.
4143 (coding.o): Depend on intervals.h composite.h window.h.
4144 (emacs.o): Depend on window.h keyboard.h keymap.h.
4145 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
4146 (bytecode.o): Depend on window.h.
4147
a24d4cb2
JR
41482003-08-31 Jason Rumney <jasonr@gnu.org>
4149
4bc2315e
JR
4150 * w32term.c (w32_per_char_metric): Allow cached metrics to be
4151 returned even when font_type is unknown.
4152
a24d4cb2
JR
4153 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
4154
9d35adc7
JD
41552003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4156
4157 * xterm.c (x_term_init): Initialize new fields in x_display_info.
4158
4159 * xterm.h (struct x_display_info): Add red/green/blue_bits and
4160 *_offset.
4161
4162 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
4163 calculate pixel value.
4164
6f68b035
GM
41652003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
4166
0930c1a1
SM
4167 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
4168 Don't tell redisplay display is accurate when it's actually been
4169 paused for pending input.
6f68b035 4170
4828b4d7
RS
41712003-08-29 Richard M. Stallman <rms@gnu.org>
4172
4173 * dispnew.c (adjust_glyph_matrix): Call window_box
4174 whenever W is nonzero.
4175
4176 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
4177 (Fkill_local_variable, Fmake_variable_frame_local)
0930c1a1 4178 (Flocal_variable_p, Flocal_variable_if_set_p):
4828b4d7
RS
4179 Use indirect_variable to trace thru variable aliases.
4180
4181 * config.in: Updated.
4182
4183 * callint.c (Fcall_interactively): Save and restore
4184 Vthis_command, Vthis_original_command, real_this_command,
4185 and current_kboard->Vlast_command.
4186
4187 * abbrev.c (Fexpand_abbrev): Insert before deleting.
4188
e019878d
GM
41892003-08-29 Gerd Moellmann <gerd@gnu.org>
4190
4191 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
4192
85478bc6
KH
41932003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
4194
0930c1a1 4195 * coding.c (decode_coding_iso2022): Initialize local variable c2.
85478bc6
KH
4196 (decode_coding_sjis_big5): Likewise.
4197
07ce82d3
JR
41982003-08-27 Jason Rumney <jasonr@gnu.org>
4199
d3703de3
JR
4200 * w32.c (sys_pipe): Protect against file descriptor overflow.
4201
ee4a01d1
JR
4202 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
4203
07ce82d3
JR
4204 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
4205
a64387ee 42062003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
72d19c66
LK
4207
4208 * xfns.c (Vgtk_version_string): New variable.
4209 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
4210
a6eeaa81 42112003-08-24 Eli Zaretskii <eliz@gnu.org>
5459e42a 4212
0930c1a1 4213 * term.c (term_init): Remove `const' from buffer_size's declaration.
3d8714e7 4214
5459e42a
EZ
4215 * Makefile.in (msdos.o): Depend on intervals.h.
4216
0930c1a1 4217 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
5459e42a 4218
231d6cfb
JD
42192003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4220
4221 * xterm.h (struct x_display_info): New fields: client_leader_window
4222 and Xatom_wm_client_leader.
4223
4224 * xterm.c (x_initialize): Move call to x_session_initialize to ...
4225 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
4226
4227 * xsmfns.c (create_client_leader_window): New function.
4228 (x_session_initialize): Call create_client_leader_window, take
4229 dpyinfo as argument.
4230
4231 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
4232
4233 * Makefile.in (xsmfns.o): Add more depenedencies.
4234
afa88464
DL
42352003-08-21 Dave Love <fx@gnu.org>
4236
4237 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
4238
f730033e
KH
42392003-08-21 Kenichi Handa <handa@m17n.org>
4240
4241 * term.c (term_init): Fix previous change; don't rely on the
4242 length of `buffer' if TERMINFO is defined.
4243
6dca786c
DL
42442003-08-20 Dave Love <fx@gnu.org>
4245
4246 * atimer.h: Include lisp.h.
4247
4248 * lisp.h (EMACS_LISP_H): New.
4249 (popup_activated_flag): Don't declare.
4250
4251 * alloca.c: Some merging with gnulib. Change logic and doc
4252 concerning (x)malloc/(x)free -- no longer Emacs-specific.
4253 [DO_BLOCK_INPUT]: Don't include lisp.h.
4254 (xmalloc, xfree): Declare.
4255 (malloc): Don't declare.
4256
0930c1a1 4257 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
6dca786c
DL
4258 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
4259 atimer.h, blockinput.h.
4260
4261 * alloc.c (lisp_align_malloc): Change type of `aligned'.
4262
4263 * alloca.s: Removed.
4264
3a06a6d9
RS
42652003-08-19 Gerd Moellmann <gerd@gnu.org>
4266
4267 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
4268 use -lncurses.
4269
4270 * term.c (term_init): Use a buffer of size 4096 for tgetent since
4271 FreeBSD returns something longer than 2044. Abort if the end of
4272 the buffer is overwritten.
4273
27eeee55
MB
42742003-08-19 Miles Bader <miles@gnu.org>
4275
4276 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
4277
2f297815
GM
42782003-08-19 Gerd Moellmann <gerd@gnu.org>
4279
f4446bbf
GM
4280 * alloc.c (lisp_align_malloc): Check for memory full when
4281 allocating ablocks, which also avoids freeing a pointer into an
4282 ablocks structure.
4283
4284 * puresize.h (BASE_PURESIZE): Increase to 1100000.
4285
0930c1a1 4286 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
2f297815 4287
0e7d7aae
RS
42882003-08-16 Richard M. Stallman <rms@gnu.org>
4289
4290 * editfns.c (Fencode_time): Doc fix.
4291
42922003-08-16 David Ponce <david@dponce.com>
4293
4294 * fileio.c (Fwrite_region): Fix conditional expression to issue
4295 the right message.
4296
42972003-08-16 Juri Linkov <juri@jurta.org> (tiny change)
4298
4299 * syntax.c (Fforward_word): Argument changed to optional.
0930c1a1 4300 Set default value to 1.
0e7d7aae 4301
5d551295
KH
43022003-08-15 Kenichi Handa <handa@m17n.org>
4303
4304 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
4305 what autoscaled.
4306 (best_matching_font): Once we find a better scalable font, set
4307 non_scalable_has_exact_height_p to 1.
4308 (try_font_list): Call try_alternative_families to try any family
4309 with the given registry.
4310
1661e56b
AS
43112003-08-09 Andreas Schwab <schwab@suse.de>
4312
f29181dc
AS
4313 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
4314
1661e56b
AS
4315 * print.c (print_string): Fix printing of multibyte string with
4316 nontrivial printcharfun.
4317
465aa50a
JD
43182003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4319
4320 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
4321
4322 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
4323
e430e5ba
KH
43242003-07-31 Kenichi Handa <handa@m17n.org>
4325
4326 * process.c (read_process_output): Return the actually read bytes
4327 instead of the result of decoding.
4328
97e7188e
KH
43292003-07-31 Kenichi Handa <handa@m17n.org>
4330
4331 * xterm.h (struct x_bitmap_record): New member have_mask.
4332
4333 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
4334 to 0.
4335 (x_create_bitmap_from_file): Likewise.
4336 (x_destroy_bitmap): Check have_mask member before freeing a mask.
4337 (x_destroy_all_bitmaps): Likewise.
4338 (x_create_bitmap_mask): Set have_mask member to 1.
4339
b53094d6
RS
43402003-07-30 Richard M. Stallman <rms@gnu.org>
4341
4342 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
4343
631f2082
JD
43442003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4345
4346 * gtkutil.c (xg_mark_data): Update calls to mark_object.
4347
c855f2ca
RS
43482003-07-29 Richard M. Stallman <rms@gnu.org>
4349
4350 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
4351 Conditionalize XIM code on HAVE_XIM.
4352
4353 * fns.c (Fclear_string): New function.
4354 (syms_of_fns): defsubr it.
4355
17e6d491
KH
43562003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp> (tiny change)
4357
0930c1a1 4358 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
17e6d491 4359
29ea8ae9
SM
43602003-07-22 Stefan Monnier <monnier@cs.yale.edu>
4361
4362 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
4363
4364 * buffer.c (delete_all_overlays): New function.
4365 * buffer.h (delete_all_overlays): Declare.
4366 * coding.c (run_pre_post_conversion_on_str):
4367 * print.c (temp_output_buffer_setup):
4368 * fileio.c (Finsert_file_contents):
4369 * minibuf.c (get_minibuffer): Use it.
4370
1dd7ccf2
AC
43712003-07-22 Andrew Choi <akochoi@shaw.ca>
4372
4373 * unexmacosx.c (unexec_regions_sort_compare):
4374 (unexec_regions_merge): New functions. Sort and merge unexec
4375 regions before dumping them.
4376
f57bd967
DL
43772003-07-22 Dave Love <fx@gnu.org>
4378
4379 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
4380
7cdee936
SM
43812003-07-21 Stefan Monnier <monnier@cs.yale.edu>
4382
4383 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
4384 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
4385 MARKBIT as the gcmarkbit for strings.
4386
e50886d3
RS
43872003-07-21 Richard M. Stallman <rms@gnu.org>
4388
4389 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
4390
29ea8ae9 4391 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
e50886d3
RS
4392 (syms_of_fns): Corresponding change.
4393
4394 * alloc.c (syms_of_alloc): Doc fixes.
4395
43962003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
4397
4398 * s/netbsd.h: Use -Wl syntax.
4399
fdc39b59
RS
44002003-07-17 Richard M. Stallman <rms@gnu.org>
4401
4402 * xterm.c (xim_initialize): Redo 6/24 change.
4403
9c53385f
SM
44042003-07-15 Stefan Monnier <monnier@cs.yale.edu>
4405
4406 * buffer.c (copy_overlays): Use EMACS_INT for positions.
4407 (Fswitch_to_buffer): Don't signal an error when switching to the same
4408 buffer in a dedicated window.
4409
4410 * alloc.c: Use bitmaps for cons, as was done for floats.
4411 (init_float, init_cons): Let the normal code allocate the first block.
4412 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
4413 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
4414 New macros.
4415 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
4416 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
4417 (live_cons_p): Check the pointer is not past the `conses' array.
4418 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
4419 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
4420 (survives_gc_p): Use CONS_MARKED_P and simplify.
4421 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
4422
dde13196
PE
44232003-07-13 Paul Eggert <eggert@twinsun.com>
4424
4425 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
4426 puts it into BSS instead, at least on Solaris 8 and 9.
4427 This is a valid optimization, and it may occur on other platforms,
4428 so Emacs should not assume that initializing a static variable to
4429 zero puts it into data.
4430 * alloc.c (pure, staticvec):
4431 Initialize these arrays to nonzero, so that they're not
4432 put into BSS by that optimization.
4433
a801bc34
SM
44342003-07-13 Stefan Monnier <monnier@cs.yale.edu>
4435
4436 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
4437 (lisp_align_malloc): Use posix_memalign is available.
4438 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
4439 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
4440 for consistency. Update users.
4441
0c8b2afa
RS
44422003-07-13 Richard M. Stallman <rms@gnu.org>
4443
4444 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
4445
668c2ab0
JB
44462003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
4447
4448 * xterm.c (x_bitmap_icon,x_wm_set_icon_pixmap): Modify to add mask,
4449 and use the Gtk+ function gtk_window_icon_from_file if available.
4450
4451 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
4452 handle mask of bitmaps.
4453 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
4454 mask property.
4455 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
4456
4457 * xterm.h (xg_set_icon): New function.
4458
800bebe3
RS
44592003-07-12 Paul Eggert <eggert@twinsun.com>
4460
4461 * unexelf.c (unexec): Consider a section to precede the .bss
4462 section if its addresses overlap that of .bss.
4463
69e38995
RS
44642003-07-12 Richard M. Stallman <rms@gnu.org>
4465
4466 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
4467
4468 * config.in (HAVE_CRTIN): Add #undef.
4469 (INLINE): Really inline only if OPTIMIZE is defined.
4470
4471 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
4472 END_FILES_1.
4473 (START_FILES_1, END_FILES_1): New macros (conditional).
a801bc34 4474 (LD_SWITCH_SYSTEM_TEMACS): Define.
69e38995
RS
4475
4476 * s/openbsd.h: Don't include bsd4-3.h.
a801bc34
SM
4477 (TERMINFO): Define.
4478 (LIBS_TERMCAP): Define.
4479 (LD_SWITCH_SYSTEM): Define (two definitions).
69e38995
RS
4480
4481 * xfns.c: Include libpng/png.h instead of png.h.
4482
f1d0c238
AS
44832003-07-11 Andreas Schwab <schwab@suse.de>
4484
4485 * buffer.c (modify_overlay): Update prototype.
4486 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
4487 Likewise.
4488
5f6bf5fe
SM
44892003-07-09 Stefan Monnier <monnier@cs.yale.edu>
4490
4491 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
4492 (struct interval): Move to intervals.h.
4493 (struct Lisp_Marker): Use EMACS_INT for position info.
4494 (forward_point): Remove prototype of defunct function.
4495 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
4496 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
4497 (syms_of_textprop, set_text_properties): Remove prototypes that are
4498 already in intervals.h.
4499
4500 * intervals.h (struct interval): Move from lisp.h.
4501 Use EMACS_INT for position and size info.
4502
4503 * coding.c: Include intervals.h for Fset_text_properties.
4504
4505 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
4506 position and length information.
4507
2765b457
SM
45082003-07-09 Stefan Monnier <monnier@cs.yale.edu>
4509
4510 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
4511 position and length information.
4512
2410d73a
SM
45132003-07-09 Stefan Monnier <monnier@cs.yale.edu>
4514
4515 Change overlays_after and overlays_before so the overlays themselves
4516 are linked into lists, rather than using cons cells. After all each
4517 Lisp_Misc already occupies 5 words, so we can add a `next' field to
4518 Lisp_Overlay for free and save up one cons cell per overlay (not
4519 to mention one indirection when traversing the list of overlay).
4520
4521 * lisp.h (struct Lisp_Overlay): New field `next'.
4522
4523 * buffer.h (struct buffer): Change overlays_before and overlays_after
4524 from Lisp lists of overlays to pointers to overlays.
4525
4526 * buffer.c (overlay_strings, recenter_overlay_lists):
4527 Fix typo in eassert in last commit.
4528 (unchain_overlay): New function.
4529 (add_overlay_mod_hooklist): Use AREF.
4530 (copy_overlays, reset_buffer, overlays_at, overlays_in)
4531 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
4532 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
4533 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
4534 (report_overlay_modification, evaporate_overlays, init_buffer_once):
4535 Adjust to new type of overlays_(before|after).
4536
4537 * alloc.c (mark_object): Mark the new `next' field of overlays.
4538 (mark_buffer): Manually mark the overlays_(after|before) fields.
4539
4540 * coding.c (run_pre_post_conversion_on_str):
4541 * editfns.c (overlays_around):
4542 * xdisp.c (load_overlay_strings):
4543 * fileio.c (Finsert_file_contents):
4544 * indent.c (current_column):
4545 * insdel.c (signal_before_change, signal_after_change):
4546 * intervals.c (set_point_both):
4547 * print.c (temp_output_buffer_setup): Use new type for
4548 overlays_(before|after).
4549
04812929
SM
45502003-07-08 Stefan Monnier <monnier@cs.yale.edu>
4551
4552 * buffer.c (report_overlay_modification): Don't run hooks while
4553 traversing the list of overlays.
4554
4555 * buffer.h (struct buffer): Use an int for overlay_center.
4556 (overlays_at, evaporate_overlays, recenter_overlay_lists)
4557 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
4558
4559 * buffer.c (reset_buffer, recenter_overlay_lists)
4560 (adjust_overlays_for_insert, adjust_overlays_for_delete)
4561 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
4562 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
4563 (overlays_at, evaporate_overlays, recenter_overlay_lists)
4564 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
4565
4566 * xdisp.c (fast_find_position): Remove unused var.
4567
4568 * cmds.c (Qexpand_abbrev): New sym.
4569 (syms_of_cmds): Initialize it.
4570 (internal_self_insert): Use it to call expand-abbrev.
4571
2e7ecf15
KS
45722003-07-09 Kim F. Storm <storm@cua.dk>
4573
f9711de4 4574 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
2e7ecf15 4575 was configured with --without-xim.
42f81f64 4576 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
2e7ecf15 4577
c6de56a0
RS
45782003-07-07 Richard M. Stallman <rms@gnu.org>
4579
4580 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
4581
4582 * alloc.c (Fgarbage_collect): Doc fix.
4583
b93fb365
KH
45842003-07-07 Nozomu Ando <nand@mac.com> (tiny change)
4585
4586 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
4587
bfe1a3f7
SM
45882003-07-06 Stefan Monnier <monnier@cs.yale.edu>
4589
04812929
SM
4590 * minibuf.c (read_minibuf): UNGCPRO before returning.
4591 (Ftry_completion, Fall_completions): Doc fix.
4592
bfe1a3f7
SM
4593 * alloc.c (live_float_p): Check that p is not past the `floats' array,
4594 now that `floats' is not the last element of the struct any more.
4595
ee79d1aa
JR
45962003-07-06 Jason Rumney <jasonr@gnu.org>
4597
4598 * w32term.h (ClipboardSequence_Proc): New type.
4599
4600 * w32fns.c (clipboard_sequence_fn): New variable.
4601 (globals_of_w32fns): Initialize it.
4602
4603 * w32select.c (last_clipboard_sequence_number): New variable.
4604 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
4605 number if possible.
4606
49723c04
SM
46072003-07-06 Stefan Monnier <monnier@cs.yale.edu>
4608
4698665f
SM
4609 * m/amdx86-64.h (MARKBIT):
4610 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
4611 MARKBIT and ARRAY_MARK_FLAG any more.
4612
4613 * m/hp800.h (XSETMARKBIT):
4614 * m/sr2k.h (XSETMARKBIT):
4615 * lisp.h (XSETMARKBIT): Remove unused macro.
4616
49723c04
SM
4617 * lisp.h (mark_object): Change prototype.
4618
4619 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
4620 (last_marked): Change accordingly.
4621 (mark_interval, mark_maybe_object, mark_maybe_pointer)
4622 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
4623 (mark_buffer): Update calls to mark_object.
4624
4625 * bytecode.c (mark_byte_stack):
4626 * fns.c (sweep_weak_table):
4627 * keyboard.c (mark_kboards): Update calls to mark_object.
4628
1d660eca
JR
46292003-07-06 Jason Rumney <jasonr@gnu.org>
4630
4631 * alloc.c (struct ablock): Only include padding when there is some.
4632
618b5ae4
SM
46332003-07-04 Stefan Monnier <monnier@cs.yale.edu>
4634
4635 * alloc.c (ALIGN): Add casts to simplify usage.
4636 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
4637 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
4638 (struct ablock, struct ablocks): New types.
4639 (free_ablock): New global var.
4640 (lisp_align_malloc, lisp_align_free): New functions.
4641 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
4642 (struct float_block): Reorder and add gcmarkbits.
4643 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
4644 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
4645 (init_float, make_float): Use lisp_align_malloc.
4646 (free_float, live_float_p): Don't use `type' any more.
4647 (make_float): Use FLOAT_UNMARK to access to mark bit.
4648 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
4649 Use FLOAT_MARKED_P to access the mark bit.
4650 (pure_alloc): Simplify use of ALIGN.
4651 (mark_object): Use FLOAT_MARK to access the mark bit.
4652 (gc_sweep): Use new macros to access the float's mark bit.
4653 (init_alloc_once): Init free_ablock.
4654
4655 * lisp.h (struct Lisp_Float): Remove unused field `type'.
4656
3ef06d12
SM
46572003-06-27 Stefan Monnier <monnier@cs.yale.edu>
4658
4659 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
4660 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
4661 (allocate_buffer): Move.
4662 (string_bytes): Don't mask markbit of `size_byte'.
4663 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
4664 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
4665 Use the `size' field of buffers (rather than the `name' field) for
4666 the mark bit, as is done for all other vectorlike objects.
4667 Use the new macros to access the mark bit of vectorlike objects.
4668
e81043aa
RS
46692003-06-26 Richard M. Stallman <rms@gnu.org>
4670
4671 * puresize.h (BASE_PURESIZE): Increment base size.
4672
4673 * xdisp.c (fast_find_position): Enable Gerd's new definition.
4674
4675 * xterm.c (xim_initialize): Undo previous change.
4676
2d0834cc
SM
46772003-06-26 Stefan Monnier <monnier@cs.yale.edu>
4678
4679 * alloc.c (survives_gc_p): Simplify.
4680
4681 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
4682
4683 * window.c (Fset_window_dedicated_p): Simplify.
4684 (display_buffer_1): Don't raise the win from which minibuf was entered.
4685 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
4686 (Fminibuffer_selected_window): Simplify.
4687
4688 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
4689
4690 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
4691 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
4692
4693 * insdel.c (check_markers, adjust_markers_for_delete)
4694 (adjust_markers_for_insert, adjust_markers_for_replace)
4695 (prepare_to_modify_buffer, RESTORE_VALUE):
4696 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
4697 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
4698 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
4699 * alloc.c (Fmake_marker, free_marker, gc_sweep):
4700 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
4701 * editfns.c (save_excursion_restore, transpose_markers):
4702 * window.c (delete_window):
4703 * xdisp.c (message_dolog): Update for new types.
4704
d54ae3d8
JD
47052003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4706
a5f696ac
JD
4707 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
4708 (realize_default_face): Use default_face_done_p for the force_p
2d0834cc 4709 argument to set_lface_from_font_name. Set default_face_done_p to one.
a5f696ac
JD
4710
4711 * frame.c (make_frame): Initialize default_face_done_p.
4712
4713 * frame.h (struct frame): Add default_face_done_p.
4714
d54ae3d8
JD
4715 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
4716 will be defined.
4717
2336fe58
SM
47182003-06-25 Stefan Monnier <monnier@cs.yale.edu>
4719
4720 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
4721 Initialize the new field `gcmarkbit'.
4722 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
4723 (mark_interval_tree): Don't mark the tree separately from the nodes.
4724 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
4725 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
4726 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
4727
4728 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
4729 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
4730 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
4731 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
4732 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
4733
bcea31c2
DL
47342003-06-24 Dave Love <fx@gnu.org>
4735
4736 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
4737
4738 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
4739 from gnulib.
4740
2601f59e
RS
47412003-06-21 Richard M. Stallman <rms@gnu.org>
4742
4743 * fileio.c (Fwrite_region): Alternate messages
4744 for append and partial write.
4745
4746 * keyboard.c (read_key_sequence): When converting upcase fn key to
4747 downcase, update fkey and keytran so `backspace' gets translated.
4748
4749 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
4750
4751 * process.c (wait_reading_process_input): Don't signal SIGIO
4752 in batch mode.
4753
b5d2c621
KH
47542003-06-17 Kenichi Handa <handa@m17n.org>
4755
4756 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
4757 composite.h.
4758
4759 * xselect.c: Don't include charset.h, coding.h, composite.h.
4760 (Qforeign_selection): New variable.
4761 (syms_of_xselect): Intern and static it.
4762 (selection_data_to_lisp_data): Return a unibyte string made from
4763 data with `foreign-selection' text property.
4764
6793bc63
SM
47652003-06-15 Stefan Monnier <monnier@cs.yale.edu>
4766
4767 * termhooks.h (EVENT_INIT): New macro.
4768
4769 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
4770
4771 * alloc.c (mark_kboards): Move to keyboard.c.
4772
4773 * keyboard.c (record_asynch_buffer_change, read_avail_input):
4774 * xterm.c (x_dispatch_event):
4775 * xmenu.c (find_and_call_menu_selection):
4776 * xdisp.c (handle_tool_bar_click):
4777 * w32menu.c (menubar_selection_callback):
4778 * sysdep.c (kbd_input_ast, read_input_waiting):
4779 * msdos.c (dos_rawgetc):
4780 * macterm.c (mac_check_for_quit_char):
4781 * macmenu.c (menubar_selection_callback):
4782 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
4783 data to kbd_buffer_store_event.
4784
b3ea810c
KS
47852003-06-15 Kim F. Storm <storm@cua.dk>
4786
4787 * xdisp.c (x_fix_overlapping_area): Always use area relative X
6793bc63 4788 to fix redisplay problem with tall characters (such as \e,AC\e(B).
b3ea810c 4789
b8f75eda
KG
47902003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
4791
4792 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
4793
ba92ce48
KH
47942003-06-12 Kenichi Handa <handa@m17n.org>
4795
4796 * fileio.c (Fwrite_region): Save and restore restriction.
4797
b80263be
DL
47982003-06-12 Dave Love <fx@gnu.org>
4799
4800 * alloca.c (alloca): Declare arg as size_t.
4801
6793bc63
SM
4802 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
4803 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
b80263be 4804
b23c0a83
DL
48052003-06-11 Dave Love <fx@gnu.org>
4806
4807 * search.c (shrink_regexp_cache): Use xrealloc.
4808 (syms_of_search): Use xmalloc.
4809
700e47c2
KS
48102003-06-10 Kim F. Storm <storm@cua.dk>
4811
4812 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
4813 Adjust phys_cursor.x to be relative to window box, rather than
4814 text area before checking -- to ensure cursor is redrawn when
4815 exposing window.
4816 Note: This also fixes a similar (older) bug if display margins
4817 are present.
4818
f11aa0b2
KH
48192003-06-06 Kenichi Handa <handa@m17n.org>
4820
4821 * coding.c (encoding_buffer_size): If coding->type is
4822 coding_type_ccl, double magnification on CRLF encoding.
4823
3d143690
JR
48242003-06-06 Jason Rumney <jasonr@gnu.org>
4825
4826 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
4827 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
4828
4829 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
4830 Mac too.
4831
f16205ca
DL
48322003-06-05 Dave Love <fx@gnu.org>
4833
b23c0a83
DL
4834 * strftime.c: Merge changes from gnulib.
4835
f16205ca
DL
4836 * mktime.c (__mktime_internal): Merge changes from gnulib
4837 involving year 69 and dst2.
4838
4839 Changes to merge with gnulib version and be consistent with the
4840 autoconf test:
4841
6793bc63
SM
4842 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
4843 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
f16205ca
DL
4844 [HAVE_LOCALE_H]: Include locale.h.
4845 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
4846
9b87a0bc
KS
48472003-06-05 Kim F. Storm <storm@cua.dk>
4848
4849 * window.c (coordinates_in_window): Convert X and Y to window
4850 relative coordinates inside mode-line and header-line parts.
4851 Convert X and Y to margin area relative coordinates inside left
4852 and right display margin parts.
4853
5a8a15ec
JR
48542003-06-05 Jason Rumney <jasonr@gnu.org>
4855
4856 * w32fns.c (add_system_logical_colors_to_map): New function.
4857 (Fx_open_connection): Use it.
4858
01ed8ff1
SM
48592003-06-04 Stefan Monnier <monnier@cs.yale.edu>
4860
4861 * process.c (allocate_pty): Revert part of the previous patch.
4862 (Faccept_process_output): Simplify.
4863
b427b65d
JR
48642003-06-04 Jason Rumney <jasonr@gnu.org>
4865
4866 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
4867
4868 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
4869 (lispy_mouse_wheel_names): Remove.
4870 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
4871 Always define drag_and_drop_syms.
4872
4873 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
4874 WHEEL_EVENT events.
4875
914a8c47
SM
48762003-06-03 Stefan Monnier <monnier@cs.yale.edu>
4877
01ed8ff1
SM
4878 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
4879
914a8c47
SM
4880 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
4881
adcb132c
JD
48822003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4883
4884 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
4885 menu item label.
4886
be781fa7
RS
48872003-06-03 Richard M. Stallman <rms@gnu.org>
4888
4889 * window.c (Fwindow_edges): Doc fix.
4890 (Fwindow_pixel_edges, Fwindow_inside_edges)
4891 (Fwindow_inside_pixel_edges): New functions.
4892 (syms_of_window): defsubr them.
4893
4894 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
4895 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
4896
914a8c47
SM
48972003-06-02 Stefan Monnier <monnier@cs.yale.edu>
4898
4899 * dispnew.c (Fsit_for): Don't lie about the number of args.
4900
5b07197a
DL
49012003-06-02 Dave Love <fx@gnu.org>
4902
4903 * callproc.c: Use HAVE_FCNTL_H, not USG5.
4904 (syms_of_callproc) <process-environment>: Doc fix.
4905
4906 * doc.c: Use HAVE_FCNTL_H, not USG5.
4907
4908 * xfaces.c (font_rescale_ratio): Fix for K&R.
4909
4910 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
4911
4912 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
4913
4914 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
4915
4916 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
4917 (xg_create_frame_widgets): Use ENCODE_UTF_8.
4918
d7107586 4919 * xterm.c (Qutf_8): Move to coding.c
5b07197a
DL
4920
4921 * xmenu.c (ENCODE_MENU_STRING): New.
4922 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
4923 Use it.
4924
4925 * coding.h (ENCODE_UTF_8): New.
4926 (Qutf_8): Declare.
4927
4928 * coding.c (Qutf_8): New.
4929 (syms_of_coding): Intern it.
4930
4931 * fns.c: Doc fixes.
4932
7335b336
KH
49332003-06-02 Kenichi Handa <handa@m17n.org>
4934
4935 * buffer.c (Fset_buffer_multibyte): Fix previous change.
4936
914a8c47
SM
49372003-06-01 Stefan Monnier <monnier@cs.yale.edu>
4938
4939 * lread.c (openp): Make sure STR is a string.
4940
9862c135
JR
49412003-06-01 David Ponce <david@dponce.com>
4942
4943 * termhooks.h (enum event_kind): Added new WHEEL_EVENT event.
4944 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
4945
4946 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
4947 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
4948 (discard_mouse_events): Discard WHEEL_EVENT events too.
4949 (lispy_wheel_names, wheel_syms): New.
4950 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
4951 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX
4952 defined.
914a8c47 4953 (make_lispy_event): Add WHEEL_EVENT handler.
9862c135
JR
4954
4955 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
4956 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
4957 WHEEL_EVENT events.
4958
f984e73e
JPW
49592003-05-31 John Paul Wallington <jpw@gnu.org>
4960
4961 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
4962 timer are in lisp/emacs-lisp.
4963
1efcd78f
KH
49642003-05-31 Kenichi Handa <handa@m17n.org>
4965
458c8af4
KH
4966 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
4967 region when a buffer is changed to unibyte.
4968
1efcd78f
KH
4969 * charset.h (VALID_LEADING_CODE_P): New macro.
4970 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
4971
778e2804
KH
4972 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
4973 is nonzero, accept multibyte form of eight-bit-control chars.
4974 (decode_composition_emacs_mule): Likewise.
4975 (decode_coding_emacs_mule): Likewise.
4976 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
4977 multibyte form of eight-bit-control chars.
4978
4979 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
4980 (Finsert_file_contents): If coding-system-for-read is bound to
4981 Qauto_save_coding, use the coding system emacs-mule with special
4982 setting for recovering a file.
4983 (choose_write_coding_system): On auto saving, use the coding
4984 system emacs-mule with special setting for auto saving.
4985 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
4986
034060e4
KH
49872003-05-30 Kenichi Handa <handa@m17n.org>
4988
4989 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
4990 properly before calling ccl_driver.
4991
778e2804 4992 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
034060e4
KH
4993
4994 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is
4995 nonzero.
4996 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
4997 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
4998
595f5aa5
GM
49992003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
5000
5001 * xfaces.c (realize_default_face): Do not abort if lface is
5002 non-existent - reverts change from 2003-05-19.
5003
103e0180
KH
50042003-05-29 Kenichi Handa <handa@m17n.org>
5005
5006 * coding.c (decode_coding_iso2022): Pay attention to the byte
5007 sequence of CTEXT extended segment, and retain those bytes as is.
5008
50092003-05-28 Kenichi Handa <handa@m17n.org>
5010
5011 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjusted for the name change
5012 of CODING_REPLACEMENT_CHARACTER.
5013 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
5014 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
5015 check this flag on encoding.
5016 (encode_coding_sjis_big5): Check
5017 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
5018 (Fset_terminal_coding_system_internal): Set
5019 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
5020 instead of setting CODING_FLAG_ISO_SAFE flag in
5021 terminal_coding.flags.
5022
5023 * coding.h (CODING_REPLACEMENT_CHARACTER): Renamed from
5024 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
5025 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
5026
ff6a3bfb 50272003-05-28 Richard M. Stallman <rms@gnu.org>
45f266dc 5028
ff6a3bfb
RS
5029 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
5030
5031 * eval.c (unbind_to): Move init of this_binding to separate statement.
45f266dc 5032
1963c428
KS
50332003-05-28 Kim F. Storm <storm@cua.dk>
5034
5035 * xdisp.c (expose_window): Fix error in calculation of
5036 window relative coordinates of area to redisplay.
5037
2b5d4601
JR
50382003-05-27 Jason Rumney <jasonr@gnu.org>
5039
5040 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
5041
1c64a4a2
JB
50422003-05-27 David Ponce <david@dponce.com>
5043
5044 Handle W32 mouse wheel events as mouse click events, like in X.
5045
5046 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
5047 MOUSE_WHEEL_EVENT anymore.
5048
5049 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
5050 Scrolling down/up the mouse wheel is respectively mapped to mouse
5051 button 4 and 5.
5052 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
5053 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
5054 WM_MOUSEWHEEL events.
5055
2d031b89
AS
50562003-05-27 Andreas Schwab <schwab@suse.de>
5057
20464fdf
AS
5058 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
5059
2d031b89
AS
5060 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
5061 partially visible line.
5062
5063 * alloc.c (Fgarbage_collect): Fix last change.
5064
97bc76d4
JPW
50652003-05-26 John Paul Wallington <jpw@gnu.org>
5066
5067 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
5068
56613f06
SM
50692003-05-25 Stefan Monnier <monnier@cs.yale.edu>
5070
5071 * window.c (Fset_window_buffer): Add type of `keep_margins'.
5072 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
5073
5074 * window.h (window_box_text_cols): Declare.
5075
5076 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
5077 (x_draw_vertical_border): Remove unused var `f'.
5078
5079 * xfaces.c (build_scalable_font_name): Remove `unused var
5080 pixel_size' warning.
5081
5082 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
5083
5084 * unexelf.c (unexec): Remove `unused var n' warning.
5085
5086 * strftime.c (my_strftime_localtime_r): Remove `defined but
5087 unused' warning.
5088
5089 * process.c (allocate_pty): Remove `unused var stb' and
5090 `cp might be used uninitialized' warnings.
5091
5092 * dispnew.c (mode_line_string): Remove unused var `f'.
5093
5094 * coding.c (find_safe_codings): Remove unused var `i'.
5095
5096 * bytecode.c (Fbyte_code): Remove `unused val' warning.
5097
5098 * buffer.c (Fkill_buffer): Remove unused var `list'.
5099
5100 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
5101
93421a1f
JD
51022003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5103
5104 * frame.c (make_frame): Condition want_fullscreen with
5105 HAVE_WINDOW_SYSTEM.
5106
c4b8aebc
JB
51072003-05-25 Juanma Barranquero <lektu@terra.es>
5108
5109 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
5110 (Fwindow_scroll_bars): Fix typo in docstring.
5111
0416870b
KS
51122003-05-24 Kim F. Storm <storm@cua.dk>
5113
5114 The following changes serve several purposes:
5115
5116 1) Swap the position of fringes and display margins in windows, i.e.
5117 the fringes are now displayed between the margins and the text area
5118 (by default).
5119
5120 2) Allow fringe and scroll bar parameters to be set per-buffer and
5121 per-window (like display margins). Such settings are now stored
5122 in window configurations, preserved when frames are resized, and
9018a88e 5123 copied when windows are split vertically or horizontally.
0416870b
KS
5124 Several bugs related to display margins have been fixed.
5125
5126 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
9018a88e 5127
0416870b
KS
5128 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
5129 rather than FRAME_WIDTH (FRAME_FONT (f)).
5130
5131 5) Introduce a consistent naming of variables, members and macros
5132 depending on whether their value is measured in pixels or in
5133 canonical columns/lines. Pixel dimensions are named *_width and
5134 *_height, while canonical columns/lines are named *_cols and
5135 *_lines. Pixel positions are named *_x and *_y, while column/line
5136 positions are named *_col and *_line.
5137
5138 6) Consolidate more of the X, W32, and MAC gui code by moving
5139 common data into struct frame, and generalize it for the non-gui
5140 case by using suitable defaults.
5141
5142 7) Cleanup and consolidate the macros controlling frame and window
5143 layout into frame.h and window.h, and generalize the use of the
5144 various window_box_* functions (enhanced to handle the new fringe
5145 position and the per-window fringe and scroll bar settings).
5146
5147 * frame.h (struct frame): Rename members height to text_lines,
5148 width to text_cols, window_height to total_lines, window_width to
5149 total_cols, new_height to new_text_lines, new_width to
5150 new_text_cols. All uses changed.
5151 (struct frame): New members which consolidate common members of
5152 x_output, w32_output, and mac_output structures: left_pos,
5153 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
5154 win_gravity, size_hint_flags, border_width, internal_border_width,
5155 line_height, fringe_cols, left_fringe_width, right_fringe_width,
5156 want_fullscreen. All uses changed.
5157 (struct frame): New member column_width contaning the canonical
5158 column width, analogue to line_height. All uses changed.
5159 (struct frame): Rename members scroll_bar_pixel_width to
5160 config_scroll_bar_width, and scroll_bar_cols to
5161 config_scroll_bar_cols. All uses changed.
5162 (struct frame): New member scroll_bar_actual_width which
5163 consolidates and renames the vertical_scroll_bar_extra member of
5164 x_output, w32_output, and mac_output structures. All uses changed.
5165 (FRAME_PIXEL_HEIGHT): Renamed from PIXEL_HEIGHT and moved
5166 from x/w32/macterm.h files. All uses changed. Also change code
5167 which referred to f->output_data...->pixel_height.
5168 (FRAME_PIXEL_WIDTH): Renamed from PIXEL_WIDTH and moved
f63fd14e 5169 from x/w32/macterm.h files. All uses changed. Also change code
0416870b
KS
5170 which referred to f->output_data...->pixel_width.
5171 (FRAME_LINES): Renamed from FRAME_HEIGHT. All uses changed.
5172 Also change code which referred to f->height.
5173 (FRAME_COLS): Renamed from FRAME_WIDTH. All uses changed.
5174 Also change code which referred to f->width.
5175 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
5176 to update new_text_lines and new_text_cols members directly.
5177 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Renamed from
5178 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
5179 (FRAME_CONFIG_SCROLL_BAR_COLS): Renamed from
5180 FRAME_SCROLL_BAR_COLS. All uses changed.
5181 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
5182 Renamed from FRAME_LEFT_SCROLL_BAR_WIDTH and
5183 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
5184 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
5185 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
5186 (FRAME_TOTAL_COLS): Renamed from FRAME_WINDOW_WIDTH.
5187 (SET_FRAME_COLS): Renamed from SET_FRAME_WIDTH.
5188 (FRAME_TOTAL_COLS_ARG): Renamed from FRAME_WINDOW_WIDTH_ARG.
5189 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
5190 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
5191 (FRAME_LINE_HEIGHT): Renamed from CANON_Y_UNIT. Unconditionally
5192 return line_height member (it now has proper value also for
5193 non-window frames).
5194 (FRAME_COLUMN_WIDTH): Renamed from CANON_X_UNIT. Unconditionally
5195 return new column_width member (rather than the default font width).
5196 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
5197 (FRAME_RIGHT_FRINGE_WIDTH): Renamed from FRAME_X_... and moved
5198 from x/w32/macterm.h files. Unconditionally return corresponding
5199 member of frame structure (they now have proper values also for
5200 non-window frames).
5201 (FRAME_TOTAL_FRINGE_WIDTH): Renamed from FRAME_FRINGE_WIDTH.
5202 Calculate return value from left and right widths.
5203 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
5204 internal_border_width member (has proper value for non-window frame).
5205 (FRAME_PIXEL_X_FROM_CANON_X): Renamed from PIXEL_X_FROM_CANON_X.
5206 (FRAME_PIXEL_Y_FROM_CANON_Y): Renamed from PIXEL_Y_FROM_CANON_Y.
5207 (FRAME_CANON_X_FROM_PIXEL_X): Renamed from CANON_X_FROM_PIXEL_X.
5208 (FRAME_CANON_Y_FROM_PIXEL_Y): Renamed from CANON_Y_FROM_PIXEL_Y.
5209 (FRAME_LINE_TO_PIXEL_Y): Renamed from CHAR_TO_PIXEL_ROW,
5210 consolidated from xterm.h, macterm.h, and w32term.h.
5211 (FRAME_COL_TO_PIXEL_X): Renamed from CHAR_TO_PIXEL_COL,
5212 consolidated from xterm.h, macterm.h, and w32term.h.
5213 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Renamed from
5214 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
5215 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Renamed from
5216 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
5217 (FRAME_PIXEL_Y_TO_LINE): Renamed from PIXEL_TO_CHAR_ROW
5218 consolidated from x/mac/w32term.h.
5219 (FRAME_PIXEL_X_TO_COL): Renamed from PIXEL_TO_CHAR_COL
5220 consolidated from x/mac/w32term.h.
5221 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Renamed from
5222 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
5223 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Renamed from
5224 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
5225
5226 * window.h (struct window): Rename members left to left_col,
5227 top to top_line, height to total_lines, width to total_cols,
5228 left_margin_width to left_margin_cols, right_margin_width to
5229 right_margin_cols, orig_height to orig_total_lines, orig_top to
5230 orig_top_line. All uses changed.
5231 (struct window): New members left_fringe_width, right_fringe_width,
5232 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
5233 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
5234 New macros primarily used to simplify other macros.
5235 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
5236 referred to XINT (w->width).
5237 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
5238 referred to XINT (w->height).
5239 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
5240 referred to XINT (w->width) * canon_x_unit.
5241 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
5242 referred to XINT (w->height) * canon_y_unit.
5243 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
5244 referred to XINT (w->left).
5245 (WINDOW_RIGHT_EDGE_COL): Renamed from WINDOW_RIGHT_EDGE. Change
5246 all uses and code that referred to XINT (w->left) + XINT (w->width).
5247 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
5248 referred to XINT (w->top).
5249 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
5250 referred to XINT (w->top) + XINT (w->height).
5251 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
5252 referred to XINT (w->left) * canon_x_unit.
5253 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
5254 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
5255 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
5256 referred to XINT (w->top) * canon_y_unit.
5257 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
5258 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
5259 (WINDOW_LEFTMOST_P): New macro.
5260 (WINDOW_BOX_LEFT_EDGE_COL): Renamed from WINDOW_LEFT_MARGIN.
5261 All uses changed.
5262 (WINDOW_BOX_RIGHT_EDGE_COL): Renamed from WINDOW_RIGHT_MARGIN.
5263 All uses changed.
5264 (WINDOW_BOX_LEFT_EDGE_X): Renamed from
5265 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
5266 Do not exclude left fringe width.
5267 (WINDOW_BOX_RIGHT_EDGE_X): Renamed from
5268 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
5269 Do not exclude fringe widths.
5270 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
5271 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
5272 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
5273 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
5274 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
5275 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
5276 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
5277 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
5278 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
5279 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
5280 New macros. Change code which referenced corresponding
5281 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
5282 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
5283 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
5284 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
5285 allow per-window scroll-bar settings.
5286 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
5287 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
5288 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
5289 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
5290 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
5291 FRAME_SCROLL_BAR_WIDTH.
5292 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
9018a88e 5293 (WINDOW_SCROLL_BAR_AREA_X): New macros.
0416870b
KS
5294 (WINDOW_HEADER_LINE_HEIGHT): Renamed from
5295 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
5296 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Renamed from
5297 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
5298 (WINDOW_BOX_TEXT_HEIGHT): Renamed from
5299 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
5300 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
5301 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
5302 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Moved here from dispextern.h.
5303 (WINDOW_LEFT_MARGIN_WIDTH): Renamed from
5304 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
5305 (WINDOW_RIGHT_MARGIN_WIDTH): Renamed from
5306 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
5307 (window_from_coordinates): Update prototype.
5308 (Fset_window_buffer): Update EXFUN.
5309 (set_window_buffer): Update prototype.
9018a88e 5310
0416870b 5311 * dispextern.h (struct glyph_matrix): Rename members window_left_x
9018a88e 5312 to window_left_col, window_top_y to window_top_line. All uses
0416870b
KS
5313 changed.
5314 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
5315 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
5316 internal_border_width is now set to 0 for non-window frames.
5317 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
5318 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
5319 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
5320 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
5321 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
5322 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
5323 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
5324 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
5325 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
9018a88e 5326 Move to window.h and renamed [see window.h changes].
0416870b
KS
5327 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
5328 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
9018a88e
SM
5329 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
5330 Use WINDOW_TOTAL_LINES.
0416870b
KS
5331 (frame_update_line_height): Remove prototype.
5332
5333 * buffer.h (struct buffer): Rename members measured in columns:
5334 left_margin_width to left_margin_cols, right_margin_width to
5335 right_margin_cols. All uses changed.
5336 New members left_fringe_width, right_fringe_width,
5337 fringes_outside_margins for per-buffer fringe settings.
5338 New members scroll_bar_width and vertical_scroll_bar_type for
5339 per-buffer scroll bar settings.
5340
5341 * buffer.c (init_buffer_once): Set buffer_defaults and
5342 buffer_local_flags for new buffer-local variables
5343 left_fringe_width, right_fringe_width, fringes_outside_margins,
5344 scroll_bar_width, and vertical_scroll_bar_type.
5345 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
5346 default-* variables for them.
5347
5348 * dispnew.c: Make (many) trivial substitutions for renamed and
5349 new macros in dispextern.h, frame.h and window.h.
5350 (mode_line_string): No need to adjust width for mode lines, as it
5351 is already adjusted by the caller.
5352 (marginal_area_string): Handle fringes inside/outside margins.
9018a88e 5353
0416870b
KS
5354 * frame.c: Make (many) trivial substitutions for renamed and
5355 new macros in dispextern.h, frame.h and window.h.
5356 (make_frame): Initialize left_fringe_width, right_fringe_width,
5357 fringe_cols, scroll_bar_actual_width, border_width,
5358 internal_border_width, column_width, line_height, x_pixels_diff,
5359 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
5360 members with values suitable for a non-window frames.
5361
5362 * gtkutil.c: Make (many) trivial substitutions for renamed and
5363 new macros in dispextern.h, frame.h and window.h.
9018a88e 5364
0416870b
KS
5365 * indent.c: Make (few) trivial substitutions for renamed and
5366 new macros in dispextern.h, frame.h and window.h.
5367
5368 * keyboard.c: Make (many) trivial substitutions for renamed and
5369 new macros in dispextern.h, frame.h and window.h.
5370 (make_lispy_event): Use window positions returned from
5371 window_from_coordinates when constructing the lisp event for
5372 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
5373 (incorrect) values locally.
5374 (make_lispy_movement): Use window positions returned from
5375 window_from_coordinates when constructing the lisp event, rather
5376 than calculating (incorrect) values locally.
5377
5378 * scroll.c: Make (some) trivial substitutions for renamed and
5379 new macros in dispextern.h, frame.h and window.h.
5380
5381 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
5382 scroll-bars.
5383
5384 * sysdep.c: Make (few) trivial substitutions for renamed and
5385 new macros in dispextern.h, frame.h and window.h.
5386
5387 * term.c: Make (some) trivial substitutions for renamed and
5388 new macros in dispextern.h, frame.h and window.h.
5389
5390 * widget.c: Make (few) trivial substitutions for renamed and
5391 new macros in dispextern.h, frame.h and window.h.
5392
5393 * window.c: Make (many) trivial substitutions for renamed and
5394 new macros in dispextern.h, frame.h and window.h.
5395 (make_window): Initialize new members
5396 left_margin_cols, right_margin_cols, left_fringe_width,
5397 right_fringe_width, fringes_outside_margins, scroll_bar_width,
5398 and vertical_scroll_bar_type.
5399 (coordinates_in_window): Adapted to new fringe/margin positions
9018a88e 5400 and per-window fringes and scroll-bars.
0416870b 5401 Fix bug related to incorrectly adjusting coordinates by
9018a88e 5402 frame's internal_border_width (the effect normally negible since
0416870b
KS
5403 the internal_border_width is typically 0 or 1 pixel, but very
5404 noticeable for an internal_border_width of e.g. 25 pixels).
5405 Upon successful return (other than ON_NOTHING), the coordinates
5406 are now always properly converted to window relative for the
5407 given display element.
5408 (window_from_coordinates): Add new parameters wx and wy to
5409 return the window relative x and y position in the returned
5410 window and part. A null arg means, don't return the position.
5411 All callers changed.
5412 (adjust_window_margins): New function which may reduce the width
5413 of the display margins if a window's text area is too small after
5414 resizing or splitting windows.
5415 (size_window): Fix bug that did not account for display margin
5416 widths when checking the minimum width of a window; use
5417 adjust_window_margins.
5418 (set_window_buffer): Call Fset_window_fringes and
5419 Fset_window_scroll_bars to setup per-window elements.
5420 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
5421 existing display margin, fringe widths, and scroll bar settings
9018a88e
SM
5422 (e.g. after splitting a window or resizing the frame).
5423 All callers changed.
0416870b
KS
5424 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
5425 (Fsplit_window): Duplicate original window's display margin,
5426 fringe, and scroll-bar settings; then call Fset_window_buffer with
5427 KEEP_MARGINS non-nil. This fixes a bug which caused a split
5428 window to only preserve the display margins in one of the windows.
c4b8aebc 5429 When splitting horizontally, call adjust_window_margins on both
0416870b 5430 windows to ensure that the text area of the new windows is non too
f9711de4 5431 narrow. This fixes a bug which could cause Emacs to trap if the
0416870b
KS
5432 width of the split window was less than the width of the display
5433 margins.
9018a88e
SM
5434 (window_box_text_cols): Renamed from window_internal_width.
5435 All uses changed. Adapt to per-window fringes and scroll bars.
0416870b
KS
5436 Fix bug that caused vertical separator to be subtracted also on
5437 window frames. Fix another bug that did not reduce the returned
5438 value by the columns used for display margins.
5439 (window_scroll_line_based): Fix bug related to scrolling too much
5440 when display margins are present (implicitly fixed by the fix to
5441 window_box_text_cols).
5442 (scroll_left, scroll_right): Fix bug related to scrolling too far
5443 by default when display margins are present (implicitly fixed by
5444 the fix to window_box_text_cols).
5445 (struct saved_window): Rename members left to left_col, top to
5446 top_line, width to total_cols, height to total_lines, orig_top to
5447 orig_top_line, orig_height to orig_total_lines. All uses changed.
5448 New members left_margin_cols, right_margin_cols,
5449 left_fringe_width, right_fringe_width, fringes_outside_margins,
5450 scroll_bar_width, and vertical_scroll_bar_type for saving
5451 per-window display elements.
5452 (Fset_window_configuration): Restore display margins, fringes,
5453 and scroll bar settings. This fixes a bug which caused display
5454 margins to be discarded when saving and restoring a window
5455 configuration.
5456 (save_window_save): Save display margins, fringes, and scroll bar
5457 settings. This fixes a bug which caused display margins to be
5458 discarded when saving and restoring a window configuration.
5459 (Fset_window_margins): Do nothing if display margins are not
5460 really changed. Otherwise, call adjust_window_margins to ensure
5461 the text area doesn't get too narrow. This fixes a bug which
f9711de4 5462 could cause Emacs to trap if setting display margins wider than
0416870b
KS
5463 the width of the window.
5464 (Fset_window_fringes): New defun to allow user to specifically set
5465 this window's fringe widths and position vs. display margins.
5466 (Fwindow_fringes): New defun to return window's actual fringe
5467 settings.
5468 (Fset_window_scroll_bars): New defun to allow user to specifically
5469 set this window's scroll bar width and position.
5470 (Fwindow_scroll_bars): New defun to return window's actual scroll
5471 bar settings.
5472 (compare_window_configurations): Also compare display margins,
5473 fringes, and scroll bar settings.
5474 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
5475
5476 * xdisp.c: Make (many) trivial substitutions for renamed and
5477 new macros in dispextern.h, frame.h and window.h.
5478 (window_box_width): Adapt to per-window fringes and scroll bars,
f63fd14e 5479 and new fringe vs. display margin position. Note that returned
0416870b
KS
5480 value is no longer guaranteed to be a whole multiple of the frame
5481 column width, since per-window fringes may now be any width.
5482 (window_box_left_offset): New function like window_box_left, but
5483 value is relative to left border of window (rather than frame).
5484 (window_box_right_offset): New function like window_box_right,
5485 but value is relative to left border of window.
5486 (window_box_left): Adapt to per-window fringes and scroll bars,
5487 and new fringe vs. display margin position. Simplify by using
5488 WINDOW_LEFT_EDGE_X and window_box_left_offset.
5489 (window_box): Allow null args for unnecessary return values;
5490 change/simplify relevant callers.
5491 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
9018a88e
SM
5492 and new fringe vs. display margin position.
5493 Use window_box_left_offset and window_box_right_offset
0416870b 5494 (get_glyph_string_clip_rect): Adapt to per-window fringes and
9018a88e
SM
5495 scroll bars, and new fringe vs. display margin position.
5496 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
0416870b
KS
5497 (draw_fringe_bitmap): Rework to handle per-window fringes and new
5498 fringe vs. display margin position.
5499 (hscroll_window_tree): Use window_box_width instead of window_box.
a64387ee
JB
5500 (redisplay_window): Adapt to per-window scroll bars.
5501 (draw_glyphs): Rework to handle per-window fringes and scroll
9018a88e
SM
5502 bars, and new fringe vs. display margin position.
5503 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
a64387ee 5504 (x_clear_end_of_line): Adapt to per-window fringes and scroll
0416870b
KS
5505 bars, and new fringe vs. display margin position. Fix bug which
5506 increased total width of full_width rows by width of scroll bars
5507 although window's total width already includes that.
5508 (x_fix_overlapping_area): Simplify using window_box_left_offset.
5509 (expose_area): Simplify using window_box_left_offset.
5510 (x_draw_vertical_border): Handle per-window scroll bar settings,
5511 mixing windows with left, right and no scroll bars.
5512
5513 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
5514 where it's used in x_list_fonts (for clarity).
5515 (frame_update_line_height): Remove unused function; functionality
5516 is now done directly when setting the default font in x_set_font.
5517
5518 * xfns.c: Make (many) trivial substitutions for renamed and
5519 new macros in dispextern.h, frame.h and window.h.
5520
5521 * xmenu.c: Make (some) trivial substitutions for renamed and
5522 new macros in dispextern.h, frame.h and window.h.
5523
5524 * xterm.h (struct x_output): Move members left_pos, top_pos,
5525 border_width, pixel_height, pixel_width, line_height,
5526 internal_border_width, vertical_scroll_bar_extra,
5527 left_fringe_width, right_fringe_width, fringe_cols,
5528 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
5529 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
5530 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
5531 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
5532 (PIXEL_WIDTH, PIXEL_HEIGHT)
5533 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
5534 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to
5535 frame.h and renamed [see frame.h changes].
5536 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
5537 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
5538 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h
5539 and renamed [see frame.h changes].
9018a88e 5540
0416870b
KS
5541 * xterm.c: Make (several) trivial substitutions for renamed and
5542 new macros in dispextern.h, frame.h and window.h.
5543 (x_draw_glyph_string_box): Adapt to per-window fringes and
5544 scroll-bars.
5545 (scroll_run): Adapt to new fringe position.
5546 (glyph_rect): Use window coordinates returned from
5547 window_from_coordinates rather than frame_to_window_pixel_xy.
5548 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
5549 scroll-bars.
5550 (handle_one_xevent): Simplify a USE_GTK conditional.
5551 (x_clip_to_row): Remove superfluous whole_line_p arg and code
5552 (fringes are now inside margins, i.e. always in the clipping area).
5553 All callers changed.
5554 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
5555 directly, then call compute_fringe_widths. Don't call
5556 frame_update_line_height.
5557
5558 * w32term.h (struct w32_output): Move members left_pos, top_pos,
5559 border_width, pixel_height, pixel_width, line_height,
5560 internal_border_width, vertical_scroll_bar_extra,
5561 left_fringe_width, right_fringe_width, fringe_cols,
5562 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
5563 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
5564 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
5565 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
5566 (PIXEL_WIDTH, PIXEL_HEIGHT)
5567 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
5568 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to
5569 frame.h and renamed [see frame.h changes].
5570 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
5571 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
5572 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h
5573 and renamed [see frame.h changes].
9018a88e 5574
0416870b
KS
5575 * w32term.c: Make (several) trivial substitutions for renamed and
5576 new macros in dispextern.h, frame.h and window.h.
5577 (x_draw_glyph_string_box): Adapt to per-window fringes and
5578 scroll-bars.
5579 (glyph_rect): Use window coordinates returned from
5580 window_from_coordinates rather than frame_to_window_pixel_xy.
5581 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
5582 scroll-bars.
5583 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
5584 (fringes are now inside margins, i.e. always in the clipping area).
5585 All callers changed.
5586 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
5587 directly, then call compute_fringe_widths. Don't call
5588 frame_update_line_height.
5589
5590 * w32console.c: Make (few) trivial substitutions for renamed and
5591 new macros in dispextern.h, frame.h and window.h.
5592
5593 * w32fns.c: Make (many) trivial substitutions for renamed and
5594 new macros in dispextern.h, frame.h and window.h.
5595
5596 * w32menu.c: Make (few) trivial substitutions for renamed and
5597 new macros in dispextern.h, frame.h and window.h.
5598
5599 * macterm.h (struct mac_output): Move members left_pos, top_pos,
5600 border_width, pixel_height, pixel_width, line_height,
5601 internal_border_width, vertical_scroll_bar_extra,
5602 left_fringe_width, right_fringe_width, fringe_cols,
5603 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
5604 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
5605 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
5606 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
5607 (PIXEL_WIDTH, PIXEL_HEIGHT)
5608 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
5609 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to
5610 frame.h and renamed [see frame.h changes].
5611 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
5612 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
5613 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h
5614 and renamed [see frame.h changes].
9018a88e 5615
0416870b
KS
5616 * macterm.c: Make (several) trivial substitutions for renamed and
5617 new macros in dispextern.h, frame.h and window.h.
5618 (x_draw_glyph_string_box): Adapt to per-window fringes and
5619 scroll-bars.
5620 (glyph_rect): Use window coordinates returned from
5621 window_from_coordinates rather than frame_to_window_pixel_xy.
5622 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
5623 scroll-bars.
5624 (x_clip_to_row): Remove superfluous whole_line_p arg and code
5625 (fringes are now inside margins, i.e. always in the clipping area).
5626 All callers changed.
5627 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
5628 directly, then call compute_fringe_widths. Don't call
5629 frame_update_line_height.
5630
5631 * macfns.c: Make (several) trivial substitutions for renamed and
5632 new macros in dispextern.h, frame.h and window.h.
9018a88e 5633 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
0416870b
KS
5634
5635 * macmenu.c: Make (few) trivial substitutions for renamed and
5636 new macros in dispextern.h, frame.h and window.h.
5637
5638 * msdos.h (struct x_output): Remove members left_pos, top_pos,
5639 and line_height, and use corresponding new members in struct
5640 frame. All uses changed.
5641 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
5642 superseeded by corresponding macros in frame.h.
5643
5644 * msdos.c: Make (several) trivial substitutions for renamed and
5645 new macros in dispextern.h, frame.h and window.h.
5646 (IT_note_mouse_highlight): Use updated window coordinates returned
9018a88e 5647 by window_from_coordinates, rather than adjusting them locally.
0416870b
KS
5648 (internal_terminal_init): No need to initialize line_height here;
5649 it now defaults to 1.
5650
9018a88e
SM
56512003-05-24 Stefan Monnier <monnier@cs.yale.edu>
5652
5653 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
5654 dropping `down' events.
5655
016bd3c0
AS
56562003-05-24 Andreas Schwab <schwab@suse.de>
5657
5658 * coding.c (find_safe_codings): Fix last change.
5659
4dacadcc
TTN
56602003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
5661
5662 * xfns.c (x_window): Fix typo from 2003-05-21 change.
5663
319830ce
SM
56642003-05-23 Stefan Monnier <monnier@cs.yale.edu>
5665
9018a88e
SM
5666 * xdisp.c (display_mode_element): Increase max depth.
5667 Simplify the error handling code. Use a different error string
5668 for the case where we hit the depth limit.
5669
319830ce
SM
5670 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
5671
5672 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
5673
56742003-05-21 Stefan Monnier <monnier@cs.yale.edu>
5675
5676 * intervals.c (get_local_map): Don't get char-property of previous
5677 point any more: get_pos_property already does it and better.
5678
c67de8ba
DL
56792003-05-21 Dave Love <fx@gnu.org>
5680
5681 [Merged from unicode branch.]
5682
5683 * xfns.c (x_window, x_window): Use use_xim.
5684
5685 * xterm.c (use_xim): Initialize.
5686 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
5687 (x_term_init): Maybe set use_xim.
5688
5689 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
5690
edd3ff1d
JR
56912003-05-21 Jason Rumney <jasonr@gnu.org>
5692
5693 * unexw32.c (_start): Remove _fmode initialization.
5694
5695 * emacs.c (main) [WINDOWSNT]: Move it here.
5696
463f55ee
DL
56972003-05-20 Dave Love <fx@gnu.org>
5698
5699 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
5700
af253914
RS
57012003-05-19 Richard M. Stallman <rms@gnu.org>
5702
5703 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
5704 as value for QCfont attribute.
5705 (realize_default_face): lface should already exist; crash if not.
5706 Specify 0 for FORCE_P when calling set_lface_from_font_name.
5707
5708 * frame.c (Fignore_event): Doc fix.
5709
1d211019
KH
57102003-05-19 Kenichi Handa <handa@m17n.org>
5711
5712 * coding.c (decode_coding_string): Handle post-read-conversion
5713 even if the coding doesn't require decoding.
5714
4dd68254
RS
57152003-05-18 Richard M. Stallman <rms@gnu.org>
5716
5717 * callproc.c (Fcall_process_region): Doc fix.
5718
14d87dc9
SM
57192003-05-17 Stefan Monnier <monnier@cs.yale.edu>
5720
deca5d96
SM
5721 * lread.c (Fload): Print a message if package is obsolete.
5722
14d87dc9
SM
5723 * window.c (Fselect_window): Add optional `norecord' arg.
5724 (select_window_1): Fold into Fselect_window.
5725 (select_window_norecord): New function.
5726 (temp_output_buffer_show): Use it. Preserve current buffer.
5727
5728 * window.h (Fselect_window): Update declaration.
5729
5730 * window.c (delete_window, Fother_window, Fset_window_configuration):
5731 * minibuf.c (read_minibuf):
5732 * macterm.c (x_new_focus_frame):
5733 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
5734 * callint.c (Fcall_interactively):
5735 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
5736
5737 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
5738
78f52183
DK
57392003-05-17 David Kastrup <dak@gnu.org>
5740
5741 * process.c (read_process_output): Back out change from 2003-03-09.
5742
14d87dc9
SM
57432003-05-17 Stefan Monnier <monnier@cs.yale.edu>
5744
5745 * editfns.c (get_pos_property): Don't assume that `object' = nil.
5746
5747 * textprop.c (text_property_stickiness): New arg `buffer'.
5748
5749 * intervals.h (text_property_stickiness): New arg `buffer'.
5750 (get_pos_property): Declare.
5751
5752 * intervals.c (get_local_map): Use get_pos_property, to obey
5753 stickiness and empty overlays.
5754 (create_root_interval, graft_intervals_into_buffer): Use BEG.
5755 (merge_properties, intervals_equal, merge_properties_sticky):
5756 Use XCAR, XCDR.
5757 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
5758
1fd1cc2f
RS
57592003-05-17 Richard M. Stallman <rms@gnu.org>
5760
4f9f637a
RS
5761 * minibuf.c (read_minibuf): If buffer is empty, record the default
5762 in the history.
5763 (Fminibuffer_complete_word): When deleting the overlap, take account
5764 of its real position.
5765
5766 * fns.c (map_char_table): Fix previous change.
5767
1fd1cc2f
RS
5768 * syntax.c (find_defun_start):
5769 When open_paren_in_column_0_is_defun_start,
5770 return beginning of buffer.
5771
5772 * lisp.h (map_char_table): Declare added arg.
5773
5774 * fns.c (map_char_table): New arg TABLE gets the master table.
5775 All calls changed.
5776 Process default and inheritance, resorting to Faref if necessary.
5777
5778 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
5779 (Faccessible_keymaps): Pass new arg to map_char_table.
5780
5781 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
5782
5783 * casetab.c (set_case_table): Pass new arg to map_char_table.
5784
5785 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
5786
5787 * lisp.h (specbinding_func): New typedef.
5788 (struct specbinding): Use specbinding_func, to put the `volatile'
5789 in the right place.
5790
5791 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
5792 to avoid GCC warning.
14d87dc9 5793
b4bd27c5
RS
57942003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org> (tiny change)
5795
14d87dc9 5796 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
b4bd27c5 5797
35fb885d
SM
57982003-05-15 Stefan Monnier <monnier@cs.yale.edu>
5799
5800 * keyboard.c (apply_modifiers): Don't fill the other cache.
5801
9a274fbd
SM
58022003-05-14 Stefan Monnier <monnier@cs.yale.edu>
5803
c55b5fad
SM
5804 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
5805
9a274fbd
SM
5806 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
5807 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
5808 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
5809 (Fset_window_configuration, Fcurrent_window_configuration)
5810 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
5811 (Fpos_visible_in_window_p, mark_window_cursors_off)
5812 (window_internal_height, window_internal_width, Frecenter)
5813 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
5814 (replace_buffer_in_all_windows, init_window_once, init_window)
5815 (syms_of_window, keys_of_window): Move from lisp.h.
5816 * lisp.h: Move window.c declarations to window.h.
5817
5818 * bytecode.c: Include window.h.
5819 * emacs.c: Include window.h.
5820
14d87dc9 5821 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
9a274fbd
SM
5822 (keyremap): Add `parent' field.
5823 (keyremap_step): Use it. Remove `parent' argument.
5824 (read_key_sequence): Setup and use the new `parent' field.
5825
fd93e331
SM
58262003-05-11 Stefan Monnier <monnier@cs.yale.edu>
5827
5828 * keyboard.c (adjust_point_for_property): Ensure termination.
5829
1c4001a1
SM
58302003-05-10 Stefan Monnier <monnier@cs.yale.edu>
5831
5832 * keyboard.c (follow_key): Remove dead variable `did_meta'.
5833 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
5834 duplicated handling of function-key-map and key-translation-map
5835 in read_key_sequence.
5836 (read_key_sequence): Use them.
5837
5838 * keyboard.c (adjust_point_for_property): Try harder to move point
5839 to the non-sticky end of an invisible property.
5840
5841 * xdisp.c (single_display_prop_intangible_p): Make `space' display
5842 property intangible as well.
5843
780379b1
AS
58442003-05-10 Andreas Schwab <schwab@suse.de>
5845
5846 * xmenu.c (single_menu_item): Change last parameter to void* to
5847 avoid warning.
5848
ca2de342
RS
58492003-05-09 Richard M. Stallman <rms@gnu.org>
5850
5851 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
5852 Bind Qinhibit_modification_hooks to t so there will be no GC.
5853 Rename local `tem' to `save_deactivate_mark'.
5854
5855 * eval.c (specpdl_ptr): Declare volatile.
5856 (unbind_to): Copy the whole binding and decrement specpdl_ptr
5857 before doing the work of unbinding it.
5858
5859 * lisp.h (struct specbinding): Declare elements volatile.
5860 (specpdl_ptr): Declare volatile.
5861
5862 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
5863
5864 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
5865 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
5866
347003be
DL
58672003-05-08 Dave Love <fx@gnu.org>
5868
5869 * coding.c (Vlast_coding_system_used): Doc fix.
5870
5adcec23
JR
58712003-05-07 Jason Rumney <jasonr@gnu.org>
5872
5873 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
5874 when system does not support them.
5875
5fe3b8a4
SM
58762003-05-05 Stefan Monnier <monnier@cs.yale.edu>
5877
5878 * fileio.c (Qwrite_region_annotate_functions): New var.
5879 (build_annotations): Use it to process the global part of the hook.
5880 (syms_of_fileio): Init and staticpro it.
5881
5882 * keyboard.c (safe_run_hooks_error): Display a message instead of
5883 silently ignoring the error.
5884
58852003-05-03 Stefan Monnier <monnier@cs.yale.edu>
5886
5887 * keyboard.c (input_available_signal): Mark static.
5888 (menu_bar_items): Use map_keymap.
5889 (menu_bar_one_keymap): Remove.
5890 (menu_bar_item): Adjust arglist (for use in map_keymap).
5891 Properly hide a second binding when not both are keymaps.
5892
5893 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
5894 (single_keymap_panes): Use it and map_keymap.
5895 (single_menu_item): Use skp as well.
5896
5897 * keymap.h (map_keymap_function_t): New type.
5898 (map_keymap): Declare.
5899
5900 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
5901 (map_keymap_call, Fmap_keymap): New functions.
5902 (syms_of_keymap): Defsubr map-keymap.
5903
4b1b4443
JD
59042003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5905
5906 * gtkutil.c (create_dialog, make_widget_for_menu_item)
5907 (make_menu_item, create_menus, xg_update_menu_item): Don't call
5908 ..._with_mnemonic functions for menu items.
5909
1f816871
KH
59102003-05-01 Kenichi Handa <handa@m17n.org>
5911
5912 * coding.c (coding_system_accept_latin_extra_p): Delete this
5913 function.
5914 (find_safe_codings): Pay attention to
5915 the property tranlsation-table-for-encode of each codings.
5916 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
5917
5ed6ba5b
SM
59182003-05-01 Stefan Monnier <monnier@cs.yale.edu>
5919
5920 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
5921
32c06229
SM
59222003-04-30 Stefan Monnier <monnier@cs.yale.edu>
5923
5924 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
5925
5926 * lisp.h (CHECK): Wrap args in parenthesis.
5927 (specbind): Fix doc: symbol = Qnil is not supported any more.
5928
5929 * bytecode.c (Fbyte_code) <unwind-protect>:
5930 Use Fprogn rather than 0 and Qnil.
5931
5932 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
5933 `double', and `triple' modifiers as well.
5934
ed3c3314
RS
59352003-04-30 Richard M. Stallman <rms@gnu.org>
5936
5937 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
5938
5939 * alloc.c (abort_on_gc): New variable.
5940 (Fgarbage_collect): Abort if abort_on_gc is set.
5941
5942 * lisp.h (abort_on_gc): Add decl.
5943
5944 * eval.c (Fsignal): Clear abort_on_gc.
5945
5946 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
32c06229 5947 Reinit FORMAT_START and END before second scan.
ed3c3314
RS
5948
5949 * xdisp.c (move_it_vertically_backward): Do the final big else
5950 even if nlines is 0.
5951
5952 * xdisp.c (redisplay_internal): Finish the per-frame loop
5953 even if redisplay is suspended by input.
5954
0b325c12
AC
59552003-04-24 Andrew Choi <akochoi@shaw.ca>
5956
5957 * macterm.c (x_list_fonts): Return all fonts that match if
5958 maxnames = -1.
5959
4e837cd0
KH
59602003-04-25 Kenichi Handa <handa@m17n.org>
5961
5962 * syntax.c (skip_chars): Fix previous change.
5963
9af7511a
KH
59642003-04-24 Kenichi Handa <handa@m17n.org>
5965
5966 * syntax.c (skip_chars): Make the code faster by using the common
5967 technique of *p, *stop, and *endp.
5968
e3b2c21f
JD
59692003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5970
5971 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
32c06229 5972 tool_bar_items so GTK tool bar expose callback does not access items
e3b2c21f
JD
5973 being updated.
5974
32c06229
SM
59752003-04-19 Stefan Monnier <monnier@cs.yale.edu>
5976
5977 * eval.c (Fapply): Undo last change and add a comment about why.
5978
c6464167
MB
59792003-04-18 Miles Bader <miles@gnu.org>
5980
5981 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
5982 pickier PARSE_MULTIBYTE_SEQ.
5983
e509f168
SM
59842003-04-17 Stefan Monnier <monnier@cs.yale.edu>
5985
5986 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
5987 Use XCDR, XCAR, CONSP.
5988 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
5989 (Fapply): Remove unnecessary GCPRO.
5990
5991 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
5992
5993 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
5994
5995 * buffer.h: Don't hardcode BEG==1.
5996
5997 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
5998
5ceea398
RS
59992003-04-16 Richard M. Stallman <rms@gnu.org>
6000
6001 * xdisp.c (try_window, try_window_reusing_current_matrix):
6002 When at end of window, set window_end_pos to Z-ZV.
6003
6004 * buffer.c (Foverlay_recenter): Doc fix.
6005
e509f168
SM
60062003-04-14 Stefan Monnier <monnier@cs.yale.edu>
6007
6008 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
6009
d243e605
AC
60102003-04-14 Andrew Choi <akochoi@shaw.ca>
6011
6012 * macterm.c (mac_check_for_quit_char): Don't check more often than
6013 once a second.
6014
6901b111
SM
60152003-04-11 Stefan Monnier <monnier@cs.yale.edu>
6016
6017 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
6018 specially, so that they can't hide an implicit switch-frame event.
6019 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
6020 (head_table): Use switch-frame as event_kind for select-window.
6021 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
6022
6023 * editfns.c (Fformat): Lisp_Object/int mixup.
6024 (format2): Remove unused var numargs.
6025
e301806f 60262003-04-11 Kenichi Handa <handa@m17n.org>
aa95b710 6027
6901b111 6028 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
aa95b710
KH
6029 (Qafter_insert_file_set_coding): New variable.
6030 (syms_of_fileio): Initialize and staticpro it. Delete declaration
6031 for after-insert-file-adjust-coding-function.
6032 (Finsert_file_contents): Call Qafter_insert_file_set_coding
6033 instead of Vafter_insert_file_adjust_coding_function.
6034
38914424
KH
60352003-04-11 Kenichi Handa <handa@m17n.org>
6036
6037 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
6038
6039 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
6040 string. Callers changed.
6041
60422003-04-10 Kenichi Handa <handa@m17n.org>
a288d979 6043
6901b111 6044 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
a288d979 6045 (syms_of_fileio): Declare it as a lisp variable.
6901b111
SM
6046 (Finsert_file_contents):
6047 Call Vafter_insert_file_adjust_coding_function before calling
a288d979
KH
6048 decode-format.
6049
f979dc05
JD
60502003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6051
6052 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
6053 get GtkAdjustment as widget now is a GtkRange.
6054
6055 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
6056 GtkRange to avoid memory leak.
6057
f8c6b4c2 60582003-04-09 Kenichi Handa <handa@m17n.org>
cb98871c 6059
50ebc53d
KH
6060 * xfaces.c (Vface_font_rescale_alist): New variable.
6061 (struct font_name): New member rescale_ratio.
6062 (font_rescale_ratio): New function.
6901b111 6063 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
50ebc53d
KH
6064 (better_font_p): On comparing point sized, pay attention to
6065 recale_ratio member of fonts.
6066 (build_scalable_font_name): Reflect font->rescale_ratio in the
6067 font name.
6901b111 6068 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
50ebc53d 6069
cb98871c
KH
6070 * lread.c (read1): Before calling index, check if the 2nd
6071 arguemnt is in ASCII range.
6072
4773b8ca
RS
60732003-04-08 Richard M. Stallman <rms@gnu.org>
6074
b0ada147
RS
6075 * fileio.c (Ffile_symlink_p): Doc fix.
6076
6077 * editfns.c (Fformat): Translate positions of text properties
6078 in the format string to apply them to the result.
6079
4773b8ca
RS
6080 * fileio.c (Finsert_file_contents): Doc fix.
6081 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
6082
60832003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
6901b111 6084
4773b8ca
RS
6085 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
6086
e8f25745 60872003-04-08 Steven Tamm <steventamm@mac.com>
b0ada147 6088
e8f25745
ST
6089 * mac.c (init_mac_osx_environment): Switch libexec and bin so
6090 that self-contained application finds libexec files.
6091
f8c6b4c2 60922003-04-08 Kenichi Handa <handa@m17n.org>
2310d84c 6093
6901b111
SM
6094 * coding.c (code_convert_region_unwind):
6095 Set Vlast_coding_system_used to the argument.
2310d84c
KH
6096 (code_convert_region): If post-read-conversion function changed
6097 the value of last-coding-sytem, keep the new value in
6098 coding->symbol so that it won't be overridden.
6099 (run_pre_post_conversion_on_str): Likewise.
7c086845
KH
6100 (coding_system_accept_latin_extra_p): New function.
6101 (find_safe_codings): Pay attention to characters registered in
6102 latin-extra-code-table.
2310d84c 6103
39c9a034
TTN
61042003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
6105
6106 * Makefile.in (md5.o): Add missing dependency info.
6107
eb67c5d6
RS
61082003-04-06 Richard M. Stallman <rms@gnu.org>
6109
6110 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
6111
6112 * marker.c (verify_bytepos): New function.
6113
6114 * intervals.c (set_intervals_multibyte_1): When becoming
6115 multibyte, adjust right and left child sizes to a whole set of
6116 characters. If an interval gets zero total-length, delete it.
6117 If an interval consists of just its children, delete one of them.
6118
6119 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
6120 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
39c9a034 6121
eb67c5d6
RS
6122 * alloc.c: (VALIDATE_LISP_STORAGE): Macro deleted.
6123 All calls deleted.
6124 (lisp_malloc): Do the work here directly.
6125
b1f81fc5
JB
61262003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
6127
6128 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
6129 char tables.
6130
61312003-04-04 Kenichi Handa <handa@m17n.org>
aa8b70ae
KH
6132
6133 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
6134 destructively change "%S" to "%s".
6135
774666fb
MB
61362003-04-03 Miles Bader <miles@gnu.org>
6137
6138 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
6139 always set.
6140
19c37f01
DL
61412003-04-01 Dave Love <fx@gnu.org>
6142
6143 * xfns.c (xpm_lookup_color): Grok "opaque".
6144
2f4b24c3
AC
61452003-03-31 Andrew Choi <akochoi@shaw.ca>
6146
6147 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
6148 parent window ID.
6149
6150 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
6151
6152 * macterm.h (struct mac_output): Define x_pixels_diff and
6153 y_pixels_diff.
b1f81fc5 6154
9443fcf6
JB
61552003-03-31 Juanma Barranquero <lektu@terra.es>
6156
6157 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
6158 blockinput.h and files included from it.
6159
e072891b
KS
61602003-03-31 Kim F. Storm <storm@cua.dk>
6161
6162 The following changes consolidates the common code related to
6163 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
6164 files into frame.c.
9443fcf6 6165
e072891b
KS
6166 * frame.c: Include blockinput.h.
6167 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
6168 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
6169 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
6170 related vars here.
6171 (struct frame_parm_table, frame_parms): New table for describing
6172 frame parameters and their associated Q-variable.
6173 The order of the parameters corresponds to the sequence of the
6174 frame_parm_handlers table in redisplay_interface.
6175 (x_fullscreen_move, x_set_frame_parameters)
6176 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
6177 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
6178 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
6179 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
6180 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
6181 Generic functions for processing of frame parameters.
6182 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
6183 (display_x_get_resource, x_get_resource_string): Functions for
6184 generic access to X resources.
6185 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
6186 (x_default_parameter, Fx_parse_geometry): Functions for generic
6187 access to frame parameters.
6901b111
SM
6188 (x_figure_window_size): Generic calculation of frame size.
6189 Fixed to add space needed for tool bar. Also setup size_hint_flags.
e072891b
KS
6190 (syms_of_frame): Intern and staticpro frame parameter variables.
6191 Defvar_lisp Vx_resource_class and Vx_resource_name here.
6192 Defsubr Sx_get_resource and Sx_parse_geometry.
9443fcf6 6193
e072891b
KS
6194 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
6195 parameter related vars defined in frame.c.
6196 (EMACS_CLASS): Define here.
6197 (enum FULLSCREEN_*): Define here.
6198 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
6199 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
6200 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
6201 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
6202 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
6203 (x_set_visibility, x_set_autoraise, x_set_autolower)
6204 (x_set_unsplittable, x_set_vertical_scroll_bars)
6205 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
6206 (x_figure_window_size): Add prototypes.
6207
6208 * dispextern.h (frame_parm_handler): New typedef.
6209 (struct redisplay_interface): New member frame_parm_handlers.
6210 (enum resource_types): Move declaration here.
6211 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
6212 (x_default_parameter): Add prototypes.
6213
6214 * window.c: Remove extern decl for frame parameter vars.
6215 (change_window_heights): New generic function;
6216 replaces x_change_window_heights. All users changed.
6217
6218 * window.h (change_window_heights): Add prototype.
6219
6220 * xfaces.c: Remove extern decl for frame parameter vars.
6221
6222 * xterm.h (EMACS_CLASS): Remove. Use generic define.
6223 (struct w32_display_info): Fix type of xrdb member.
6224 (enum FULLSCREEN_*): Remove.
6225 Remove prototypes for generic functions (in frame.h).
6226
6227 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
6228 parameters now defined in frame.h and frame.c.
f63fd14e 6229 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
6230 (enum x_frame_parms): Remove (bogus, unused enum).
6231 (check_x_display_info): Make non-static (for frame.c).
6232 (struct x_frame_parm_table, x_frame_parms): Remove.
6233 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
6234 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
6235 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
6236 (x_change_window_heights, x_set_autoraise, x_set_autolower)
6237 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
6238 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
6239 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
6240 Remove. Use generic functions instead.
6241 (enum resource_types): Remove.
6242 (x_set_scroll_bar_default_width): New global function (for frame.c).
6243 (Fx_create_frame): Depend on x_figure_window_size to add space for
6244 toolbar and setup size_hint_flags.
6245 (x_frame_parm_handlers): New table for redisplay_interface.
6246 (syms_of_xfns): Don't intern/staticpro removed vars.
9443fcf6 6247
e072891b 6248 * xterm.c: Remove unnecessary extern declarations.
f63fd14e 6249 (x_fullscreen_adjust): Remove. Use generic instead.
e072891b
KS
6250 (x_redisplay_interface): Add x_frame_parm_handlers member.
6251
6252 * w32gui.h (XrmDatabase): New (dummy) typedef.
6253
6254 * w32term.h (EMACS_CLASS): Remove. Use generic define.
6255 (struct w32_display_info): Fix type of xrdb member.
6256 (enum FULLSCREEN_*): Remove.
6257 (x_fullscreen_adjust): Remove prototype.
6258
6259 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
6260 parameters now defined in frame.h and frame.c.
f63fd14e 6261 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
6262 (enum x_frame_parms): Remove (bogus, unused enum).
6263 (check_x_display_info): Make non-static (for frame.c).
6264 (struct x_frame_parm_table, x_frame_parms): Remove.
6265 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
6266 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
6267 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
6268 (x_change_window_heights, x_set_autoraise, x_set_autolower)
6269 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
6270 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
6271 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
6272 Remove. Use generic functions instead.
6273 (enum resource_types): Remove.
6274 (x_set_scroll_bar_default_width): New global function (for frame.c).
6275 (Fx_create_frame): Depend on x_figure_window_size to add space for
6276 toolbar and setup size_hint_flags.
6277 (w32_frame_parm_handlers): New table for redisplay_interface.
6278 (syms_of_w32fns): Don't intern/staticpro removed vars.
9443fcf6 6279
e072891b
KS
6280 * w32term.c: Remove unnecessary extern declarations.
6281 (x_fullscreen_adjust): Remove. Use generic instead.
6282 (x_redisplay_interface): Add w32_frame_parm_handlers member.
6283
6284 * w32reg.c (x_get_string_resource): Use XrmDatabase.
6285
6286 * macgui.h (XrmDatabase): New (dummy) typedef.
6287
6288 * macterm.h (EMACS_CLASS): Remove.
6289 (struct mac_display_info): Add xrdb member.
6290 (struct mac_output): Add want_fullscreen member.
6291
6292 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
6293 parameters now defined in frame.h and frame.c.
f63fd14e 6294 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
6295 (check_x_display_info): Make non-static (for frame.c).
6296 (struct x_frame_parm_table, x_frame_parms): Remove.
6297 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
6298 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
6299 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
6300 (x_change_window_heights, x_set_autoraise, x_set_autolower)
6301 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
6302 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
6303 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
6304 Remove. Use generic functions instead.
6305 (enum resource_types): Remove.
6306 (x_set_scroll_bar_default_width): New global function (for frame.c).
6307 (mac_frame_parm_handlers): New table for redisplay_interface.
6308 (syms_of_macfns): Don't intern/staticpro removed vars.
9443fcf6 6309
e072891b
KS
6310 * macterm.c: Remove unnecessary extern declarations.
6311 (x_redisplay_interface): Add mac_frame_parm_handlers member.
6312
3e6a560b
KS
6313 * Makefile.in (frame.o): Add dependency on blockinput.h and files
6314 included from it (atimer.h and systime.h).
6315
7b7b454e
AS
63162003-03-30 Andreas Schwab <schwab@suse.de>
6317
6318 * xdisp.c (x_insert_glyphs): Fix swapped width and height
6319 parameters for shift_glyphs_for_insert.
6320
6321 * macterm.c (x_redisplay_interface): Add missing entry for
6322 draw_vertical_window_border.
6323
beb402de
KG
63242003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
6325
6326 * fileio.c (Fexpand_file_name): In the no-handler case, after
6327 expanding, look again for a handler and invoke it. This is needed
6328 for filenames like "/foo/../user@host:/bar/../baz" -- the first
6329 expansion produces "/user@host:/bar/../baz" which needs to be
6330 expanded again for the finame result "/user@host:/baz".
6331
b676f356
JD
63322003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6333
6334 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
6335 of area to be redrawn for better performance.
6336
3c671a56
SM
63372003-03-28 Stefan Monnier <monnier@cs.yale.edu>
6338
6339 * xterm.c (take_vertical_position_into_account): Remove.
6340 (xt_action_hook): Call set_vertical_scroll_bar if needed.
6341 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
6342 (xm_scroll_callback, x_create_toolkit_scroll_bar)
6343 (x_set_toolkit_scroll_bar_thumb): Simplify.
6344 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
6345 (XTread_socket): Remove unused var.
6346 (x_make_frame_invisible): Replace goto with else.
6347
6348 * xdisp.c (set_vertical_scroll_bar): New fun.
6349 (redisplay_window): Use it.
6350
84f2e615
RS
63512003-03-26 Richard M. Stallman <rms@gnu.org>
6352
6353 * xdisp.c (update_tool_bar): Recompute tool bar if
6354 update_mode_lines is set. Set w->update_mode_line
6355 only if the tool bar contents actually change.
6356 (update_menu_bar): Undo previous change.
6357
70b6104c
JD
63582003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6359
5fd6f727
JD
6360 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
6361 (xg_frame_set_char_size): Calculate scroll bar width before frame
6362 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
6363 (xg_separator_p): Check for all documented separator types.
6364 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
6365 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
6366
70b6104c
JD
6367 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
6368 so tool bar gets updated.
6369
d9b36d19
SM
63702003-03-26 Stefan Monnier <monnier@cs.yale.edu>
6371
6372 * data.c (store_symval_forwarding): Re-instate part of the code
6373 that was deleted with too much enthusiasm.
6374
63752003-03-25 Stefan Monnier <monnier@cs.yale.edu>
6376
6377 * data.c (store_symval_forwarding): Delete special read-only
6378 hack for type == -1, since we now use ->constant instead.
6379 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
6380
6381 * buffer.c (overlays_in): Declare static.
6382 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
6383 `constant' field rather than the variable's `type' field.
6384
365fa1b3
AC
63852003-03-24 Andrew Choi <akochoi@shaw.ca>
6386
6387 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
6388
6389 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
6390
6391 * fns.c [MAC_OSX]: Do not redefine vector.
6392
6393 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
6394
6395 * macgui.h: Remove definition of No_Cursor.
6396
d9b36d19 6397 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
365fa1b3
AC
6398
6399 * xdisp.c: Define No_Cursor.
6400 (x_write_glyphs, notice_overwritten_cursor)
6401 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
6402 (note_mouse_highlight): Remove Mac-specific code.
6403 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
d9b36d19 6404
c0bcce6f
JPW
64052003-03-24 John Paul Wallington <jpw@gnu.org>
6406
6407 * xdisp.c (redisplay_window): If mini window's buffer is not
6408 empty, then redisplay it like other windows.
6409
a526b96c
KS
64102003-03-23 Kim F. Storm <storm@cua.dk>
6411
6412 * w32term.c (w32_draw_window_cursor): Fix last change.
6413
37ab321e
KH
64142003-03-23 Kenichi Handa <handa@m17n.org>
6415
a526b96c
KS
6416 * alloc.c (make_string_from_bytes, make_specified_string):
6417 Add `const' for the arg CONTENTS.
37ab321e
KH
6418
6419 * lisp.h (make_string_from_bytes, make_specified_string):
6420 Prototypes adjusted.
6421
7863d625
JD
64222003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6423
a526b96c 6424 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
fd4c9408 6425
7863d625
JD
6426 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
6427 (XG_SB_RANGE): New define.
6428
6429 * gtkutil.c (xg_fixed_handle_expose): New function.
6430 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
6431 expose events.
6432 (xg_update_scrollbar_pos): Take two more arguments, left and width
6433 of scroll bar including borders.
6434 Clear left and right part outside scroll bar separately as some
6435 themes have bars that are not an even number of pixels.
d9b36d19 6436 Don't set reallocate_redraws, don't call
7863d625
JD
6437 gdk_window_process_all_updates.
6438 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
6439 so no need to change it. Calculate size and value with XG_SB_RANGE.
6440
d9b36d19
SM
6441 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
6442 Pass left and width of scroll bar including borders to
7863d625
JD
6443 xg_update_scrollbar_pos.
6444
af0ad939
TTN
64452003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
6446
6447 * Makefile.in: Make sure space precedes end-of-line backslashes.
6448
b22139fd
KS
64492003-03-22 Kim F. Storm <storm@cua.dk>
6450
6451 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
6452 Add generic versions here. Remove system specific versions
6453 defined elsewhere.
6454
6455 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
6456 Add prototypes.
6457
6e6410cf
KS
6458 * xterm.h (STORE_NATIVE_RECT): New macro.
6459
5c9cc435
KS
64602003-03-21 Kim F. Storm <storm@cua.dk>
6461
00c64fab
SM
6462 * xdisp.c (get_glyph_string_clip_rect):
6463 Use FRAME_INTERNAL_BORDER_WIDTH.
5c9cc435
KS
6464
6465 * dispextern.h (struct redisplay_interface): Add active_p
6466 argument to draw_window_cursor member. All uses changed.
6467
acd37560
KS
64682003-03-21 Kim F. Storm <storm@cua.dk>
6469
6470 The following changes consolidate code related to writing and
6471 inserting glyphs, exposing frame, the tool bar, the mouse face,
6472 the output cursor, and help echo from xterm.c, w32term.c and
6473 macterm.c into xdisp.c. It also generalizes the use of the
6474 window_part enum instead of using numeric values throughout.
af0ad939 6475
acd37560
KS
6476 * xdisp.c: Consolidate gui-independent code here.
6477 Include keymap.h.
6478 (Qhelp_echo): Import.
6479 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
6480 (help_echo_string, help_echo_window, help_echo_object)
6481 (previous_help_echo_string, help_echo_pos): Declare here.
6482 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
6483 (estimate_mode_line_height): Define here. Handle windowing
6484 systems directly (without using estimate_mode_line_height_hook).
6485 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
6486 (update_window_cursor, update_cursor_in_window_tree)
6487 (fast_find_position, fast_find_string_pos)
6488 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
6489 (expose_area, expose_line, expose_overlaps, expose_window)
6490 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
6491 declared static as they are only used locally in xdisp.c.
6492 (draw_glyphs): Rename from x_draw_glyphs and make static.
6493 (tool_bar_item_info, notice_overwritten_cursor): Make static.
6494 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
6495 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
af0ad939 6496 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
acd37560
KS
6497 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
6498 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
6499 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
6500 (note_mouse_highlight, x_clear_window_mouse_face)
6501 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
6502 (x_intersect_rectangles): New generic functions for use by xdisp.c
6503 and GUI front-ends.
6504 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
6505 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
6506
6507 * dispextern.h (Display_Info): Generic typedef for *_display_info.
6508 (NativeRectangle): Generic typedef for rectangle type.
6509 (enum window_part): Move here from window.c.
6510 (struct redisplay_interface): New members flush_display_optional,
6511 define_frame_cursor, clear_frame_area, draw_window_cursor,
6512 draw_vertical_window_border, shift_glyphs_for_insert.
6513 Rename member clear_mouse_face to clear_window_mouse_face.
6514 (estimate_mode_line_height_hook): Remove hook.
6515 (auto_raise_tool_bar_buttons_p): Don't declare extern.
6516 (tool_bar_item_info): Remove prototype.
6517 (help_echo_string, help_echo_window, help_echo_object)
6518 (previous_help_echo_string, help_echo_pos)
6519 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
6520 (x_stretch_cursor_p, output_cursor): Declare extern.
6521 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
6522 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
6523 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
6524 (display_and_set_cursor, set_output_cursor, x_cursor_to)
6525 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
6526 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
6527 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
6528 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
6529 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
6530 Add prototypes.
6531 (mode_line_string, marginal_area_string): Fix prototypes.
6532
6533 * window.c (enum window_part): Move to dispextern.h.
6534 (coordinates_in_window): Use enum window_part member names
6535 instead of numbers to describe return value.
6536 (struct check_window_data): Change part member to window_part.
6537 (check_window_containing): Return window_part unaltered.
6538 (window_from_coordinates): Change part arg from int to enum
6539 window_part. Allow part arg to be null. All users changed.
6540
6541 * window.h (window_from_coordinates): Fix prototype.
6542
6543 * term.c (estimate_mode_line_height): Move to xdisp.c.
6544
6545 * keyboard.c (make_lispy_event): Use enum window_part.
6546
6547 * dispnew.c (mode_line_string, marginal_area_string): Use enum
6548 window_part instead of int in arg list. Users changed.
6549
6550 * xterm.h (No_Cursor): Declare as None for X.
6551 (struct mac_output): Replace member cross_cursor by hand_cursor.
af0ad939 6552
acd37560
KS
6553 * xterm.c: Remove consolidated defines and code.
6554 (BETWEEN): Remove unused macro.
6555 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
6556 (x_define_frame_cursor, x_clear_frame_area)
6557 (x_draw_window_cursor): New X-specific functions for RIF.
6558 (x_redisplay_interface): Add new members.
6559
6560 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
6561
6562 * w32term.h (struct w32_output): Remove cross_cursor member.
6563
6564 * w32term.c: Remove consolidated defines and code.
6565 (BETWEEN): Remove unused macro.
6566 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
6567 (w32_define_frame_cursor, w32_clear_frame_area)
6568 (w32_draw_window_cursor): New W32-specific functions for RIF.
6569 (w32_redisplay_interface): Add new members.
6570
a64387ee 6571 * w32gui.h (No_Cursor): Define as 0 for W32.
acd37560
KS
6572 (XRectangle): Add X compatible rectangle type.
6573 (NativeRectangle): Declare as RECT for W32.
6574 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
6575
6576 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
6577
6578 * w32console.c: Remove consolidated defines and code.
af0ad939 6579
acd37560
KS
6580 * msdos.h (Display_Info): Add generic typedef.
6581
6582 * msdos.c: Remove consolidated defines and code.
6583 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
6584
6585 * macterm.h (struct mac_output): Replace member cross_cursor by
6586 hand_cursor.
6587 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
6588
6589 * macterm.c: Remove consolidated defines and code.
6590 (BETWEEN): Remove unused macro.
6591 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
6592 (mac_define_frame_cursor, mac_clear_frame_area)
6593 (mac_draw_window_cursor): New Mac-specific functions for RIF.
6594 (x_redisplay_interface): Add new members.
6595
6596 * macgui.h (No_Cursor): Define as 0 for Mac.
6597 (XRectangle): Add X compatible rectangle type.
6598 (NativeRectangle): Declare as Rect for Mac.
6599 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
6600
204ccab1
KS
6601 * macfns.c (x_set_mouse_color): Setup hand_cursor.
6602 (x_set_cursor_color): Use x_display_and_set_cursor.
acd37560 6603
9443fcf6 6604 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
acd37560
KS
6605 included from it. Add dependency on keymap.h.
6606
6607 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
6608
8ba01a70 66092003-03-21 Kenichi Handa <handa@m17n.org>
3f817c73
KH
6610
6611 * fileio.c (Fexpand_file_name): Fix previous change.
6612
8ba01a70 66132003-03-19 Kenichi Handa <handa@m17n.org>
4f497b0a
KH
6614
6615 * fileio.c (Ffile_name_directory): Reconstruct file name by
6616 make_specified_string.
6617 (Ffile_name_nondirectory, Ffile_name_as_directory)
6618 (Fdirectory_file_name, Fexpand_file_name)
6619 (Fsubstitute_in_file_name): Likewise.
6620 (Fread_file_name): Compare decoded homedir with DIR and
6621 DEFAULT_FILENAME.
6622
6623 * alloc.c (make_specified_string): If NCHARS is negative, count
6624 the number of characters.
6625
19536747
JD
66262003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6627
de38ae5a
JD
6628 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
6629 all widgets.
6630
19536747
JD
6631 * gtkutil.h: Removed xg_ignore_next_thumb.
6632
37ab321e 66332003-03-18 Kenichi Handa <handa@m17n.org>
cb0d4562
KH
6634
6635 * coding.c (Vchar_coding_system_table): Remove this variable.
6636 (Vcoding_system_safe_chars): New variable.
6637 (intersection): Remove this function.
6638 (find_safe_codings): Don't use Vchar_coding_system_table, but try
6639 all codings in SAFE_CODINGS.
00c64fab 6640 (Ffind_coding_systems_region_internal): Adjust for the change of
cb0d4562
KH
6641 find_safe_codings. Get generic coding systems from
6642 Vcoding_system_safe_chars.
6643 (Fdefine_coding_system_internal): New function.
6644 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
6645 Initialize and staticpro Vcoding_system_safe_chars.
6646
17097258
JD
66472003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6648
2a2071c3
JD
6649 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
6650 equal old values before updating.
6651
17097258
JD
6652 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
6653
6654 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
6655
66562003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6657
6658 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
6659 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
6660 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
6661 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
6662 (xg_create_scroll_bar): Pass bar to button event callback.
6663 (xg_find_top_left_in_fixed): New function.
6664 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
6665 whole scroll bar area. Get old position with
6666 xg_find_top_left_in_fixed, calculate and only clear needed areas.
6667 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
6668 dragging is in progress. Calculate whole as for Motif.
6669 Remove code that saved last values. Call gtk_range functions to
6670 set scroll bar sizes.
6671
6672 * gtkutil.h: Removed xg_ignore_next_thumb.
6673
8cb9dfbf
JB
66742003-03-17 Juanma Barranquero <lektu@terra.es>
6675
6676 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
6677 and files included from it.
6678
00c64fab
SM
66792003-03-18 Stefan Monnier <monnier@cs.yale.edu>
6680
6681 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
6682 multiple occurrences of the same keymap under different prefixes.
6683 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
6684
c45bb3b2
JR
66852003-03-16 Jason Rumney <jasonr@gnu.org>
6686
6687 * w32gui.h: Use HDC for Display.
6688
6689 * w32term.c (w32_encode_char): Prevent double-byte chars from
6690 crashing Emacs.
6691
6692 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
6693 as binary.
6694
2a6d0874
JB
66952003-03-16 Juanma Barranquero <lektu@terra.es>
6696
6697 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
6698
03eb5fab
KS
66992003-03-16 Kim F. Storm <storm@cua.dk>
6700
6701 The following changes consolidate some of the gui-independent
6702 parts of the processing and drawing of "glyph strings" from
6703 xterm.c, w32term.c, and macterm.c into xdisp.c.
2a6d0874 6704
03eb5fab
KS
6705 * dispextern.h (struct glyph): Reduce face_id member from 22 to
6706 21 bits (this reduces number of faces from 4M to 2M).
6707 Replace W32 specific w32_font_type member (2 bits) by generic
6708 font_type member (3 bits) for portability.
6709 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
6710 (enum draw_glyphs_face): Define here.
6711 (struct glyph_string): Define here. Merge W32 and X versions.
6712 (struct redisplay_interface): New members per_char_metric,
6713 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
6714 (VCENTER_BASELINE_OFFSET): Define here.
6715 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
6716 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
6717
6718 * xdisp.c: Consolidate gui-independent "glyph string" code here.
6719 (dump_glyph_string): Moved here.
6720 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
6721 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
6722 (fill_composite_glyph_string, fill_glyph_string)
6723 (fill_image_glyph_string, fill_stretch_glyph_string)
6724 (left_overwritten, left_overwriting, right_overwritten)
6725 (right_overwriting, get_char_face_and_encoding)
6726 (set_glyph_string_background_width, compute_overhangs_and_x)
6727 (append_glyph, append_composite_glyph, produce_image_glyph)
6728 (take_vertical_position_into_account, append_stretch_glyph)
6729 (produce_stretch_glyph): New generic functions (based on X version).
6730 Call platform specific functions through rif.
6731 (INIT_GLYPH_STRING): New macro, hides W32 details.
6732 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
6733 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
6734 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
6735 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
6736 (notice_overwritten_cursor):
6737 Generic functions exported to platform modules. Users changed.
6738
6739 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
6740 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
6741 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
fad49844 6742 New macros for consolidated code.
2a6d0874 6743
03eb5fab
KS
6744 * xterm.c: Remove consolidated defines and code.
6745 (x_per_char_metric, x_encode_char)
6746 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
6747 (x_redisplay_interface): Add new members.
6748
6749 * w32gui.h (Display): Add dummy typedef for consolidation.
6750 (XChar2b): Define alias for wchar_t for consolidation.
6751 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
6752
6753 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
2a6d0874 6754 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
03eb5fab
KS
6755 New macros for consolidation.
6756
fad49844 6757 * w32term.c: Remove consolidated defines and code.
03eb5fab
KS
6758 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
6759 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
6760 (w32_per_char_metric): Change font_type arg to int for RIF.
6761 (w32_encode_char): Return int according to RIF requirements.
6762 (w32_compute_glyph_string_overhangs): Adapt to RIF.
6763 (w32_get_glyph_overhangs): New function for RIF. Uses generic
6764 x_get_glyph_overhangs.
6765 (w32_redisplay_interface): Add new members.
6766
6767 * macgui.h (XChar2b): Move typedef here for consolidation.
6768 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
6769
6770 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
6771 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
6772 consolidation.
6773
6774 * macterm.c: Remove consolidated defines and code.
6775 (mac_per_char_metric): New function for RIF.
00c64fab 6776 (mac_encode_char): Adapt to new RIF requirements.
03eb5fab
KS
6777 (mac_compute_glyph_string_overhangs): Adapt for RIF.
6778 (x_redisplay_interface): Add new members.
6779
00c64fab
SM
67802003-03-15 Stefan Monnier <monnier@cs.yale.edu>
6781
6782 * keymap.c (Vmenu_events): New var.
6783 (syms_of_keymap): Initialize it.
6784 (where_is_internal): Check more carefully what is a menu event.
6785
225c7a07
RS
67862003-03-14 Richard M. Stallman <rms@gnu.org>
6787
6788 * lread.c (read1): After #!, exit loop on eof.
6789
cea9be54
JD
67902003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6791
9ea0e54d
JD
6792 * gtkutil.h: Add declaration for xg_frame_cleared.
6793
0cb35f4e
JD
6794 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
6795
cea9be54
JD
6796 * gtkutil.c (struct xg_last_sb_pos): New structure.
6797 (handle_fixed_child): New function.
6798 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
6799 and force a redraw on them.
6800 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
6801 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
6802 so we can avoid unneeded redraws.
6803 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
6804 and force a redraw on the scroll bar.
6805 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
6806 if xg_last_sb_pos shows the positions are up to date.
0cb35f4e 6807 (xg_frame_cleared): New function.
cea9be54 6808
20b853f3
KH
68092003-03-13 Kenichi Handa <handa@m17n.org>
6810
6811 * coding.c (Fdetect_coding_region): Fix docstring.
6812 (Fdetect_coding_string): Fix docstring.
6813
7a555aff
AS
68142003-03-13 Andreas Schwab <schwab@suse.de>
6815
25cc0080
AS
6816 * gtkutil.c: Add prototype for create_menus.
6817
30225431
AS
6818 * data.c (long_to_cons): Fix type of top.
6819
6820 * xselect.c (selection_data_to_lisp_data): Use int instead of
6821 long for an integer of size 4.
6822
7a555aff 6823 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
30225431 6824 (xg_tool_bar_help_callback): Likewise.
7a555aff 6825
a3e4741f
AS
68262003-03-12 Andreas Schwab <schwab@suse.de>
6827
6828 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
6829
9668be7c
KS
68302003-03-12 Kim F. Storm <storm@cua.dk>
6831
03eb5fab 6832 The following changes consolidate the fringe handling from
9668be7c 6833 xterm.c, w32term.c, and macterm.c into xdisp.c.
00a88f32 6834
9668be7c
KS
6835 * xdisp.c: Consolidate fringe handling code here.
6836 (left_bits, right_bits, continued_bits, continuation_bits)
6837 (ov_bits, zv_bits): Define fringe bitmaps.
6838 (fringe_bitmaps): New array holding fringe bitmaps.
6839 (draw_fringe_bitmap): Draw a specific bitmap; call display
6840 specific drawing routine via rif->draw_fringe_bitmap.
6841 (draw_row_fringe_bitmaps): Generic replacement for
6842 x_draw_row_fringe_bitmaps; all callers changed.
6843 (compute_fringe_widths): Generic replacement for
6844 x_compute_fringe_widths; all callers changed.
6845
6846 * dispextern.h (enum fringe_bitmap_type): Define here.
6847 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
6848 (fringe_bitmaps): Declare extern.
6849 (struct redisplay_interface): New member draw_fringe_bitmap.
6850 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
6851
6852 * xterm.c: Remove generic fringe code.
6853 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
6854 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
6855
6856 * w32term.c: Remove generic fringe code.
6857 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
6858 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
00a88f32 6859
9668be7c
KS
6860 * macterm.c: Remove generic fringe code.
6861 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
6862 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
6863
00a88f32
SM
68642003-03-11 Stefan Monnier <monnier@cs.yale.edu>
6865
6866 * print.c (Fprin1_to_string): Return unibyte string if possible.
6867
1d1de695
DK
68682003-03-09 David Kastrup <dak@gnu.org>
6869
6870 * process.c (read_process_output): We have allocated enough space
6871 for readmax and carryover, so actually use the alloted space.
6872
257f40f2
JD
68732003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6874
6875 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
6876 toolkit scrollbar click.
6877
6878 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
6879 for USE_GTK.
6880 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
6881 also.
6882 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
6883 scrollbar and control is pressed, call x_scroll_bar_handle_click.
00a88f32 6884
257f40f2
JD
6885 * gtkutil.h: Declare xg_get_scroll_id_for_window.
6886
6887 * gtkutil.c (xg_get_scroll_id_for_window): New function.
6888 (xg_tool_bar_item_expose_callback): New function.
6889 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
6890 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
6891 on the tool bar widget.
6892 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
6893 to expose on the tool bar item widgets.
6894
15213141
JD
68952003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6896
26b74a0b 6897 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
00a88f32 6898 struct image* when deciding to update (struct image* may have been
26b74a0b
JD
6899 deleted from the image cache).
6900
15213141
JD
6901 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
6902 the event isn't for a frame (i.e. for dialogs).
6903
20b853f3 69042003-03-07 Kenichi Handa <handa@m17n.org>
cb681b34
KH
6905
6906 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
6907 composition components reaches the limit, terminate composing.
6908 (COMPOSITION_OK): New macro.
00a88f32 6909 (detect_coding_iso2022): Use it if an escape sequence for
cb681b34
KH
6910 composition is found.
6911 (coding_restore_composition): Adjust the number of composition
6912 components if it is not sane.
6913
c9029fe5
JB
69142003-03-06 Juanma Barranquero <lektu@terra.es>
6915
6916 * w32term.h (struct w32_display_info): Add xrdb member to support
6917 passing resources via -xrm on Windows.
6918
6919 * w32term.c (w32_make_rdb): New function.
6920 (w32_term_init): Use it to initialize xrdb member of w32_display_info
6921 struct. Delete leftover code.
6922
6923 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
6924 for resources passed on the command line.
6925
6926 * w32reg.c (w32_get_rdb_resource): New function.
6927 (x_get_string_resource): Use it, so resources passed with -xrm
6928 supercede the ones in the registry.
6929
9d00001f
JD
69302003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6931
6932 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
6933 instead of x_top_window_to_frame.
6934
ca2417b9
JD
69352003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6936
6937 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
6938 when restarting Emacs.
6939
5b20caf0
RS
69402003-03-03 Richard M. Stallman <rms@gnu.org>
6941
6942 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
6943 to run kill-buffer-query-functions.
6944 (Qkill_buffer_query_functions): New var.
6945 (syms_of_buffer): Init and staticpro it.
6946
58e91b77
JD
69472003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6948
6949 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
6950
932357b4
KS
69512003-02-25 Kim F. Storm <storm@cua.dk>
6952
6953 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
6954 If centering point failed to make whole line visible and vscroll
6955 is non-zero, disable vscroll and try centering point again.
6956
6957 * lread.c (read1): Accept `single space' syntax like (? x).
6958
bb8db7e1
JD
69592003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6960
6961 * keyboard.c (cancel_hourglass_unwind): Surround with
6962 #ifdef HAVE_X_WINDOWS
6963
47d77aab
KH
69642003-02-25 Kenichi Handa <handa@m17n.org>
6965
6966 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
6967 process only when "subprocesses" is defined.
6968
6a097c0c
SM
69692003-02-24 Stefan Monnier <monnier@cs.yale.edu>
6970
6971 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
6972
0b063c27
JB
69732003-02-24 Juanma Barranquero <lektu@terra.es>
6974
d1135afc
JB
6975 * callint.c (fix_command): Declare as static void and move before
6976 Fcall_interactively.
6977
0b063c27
JB
6978 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
6979 (syms_of_xdisp): Don't initialize Qwhen.
6980
0af912f0
JD
69812003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6982
6983 * keyboard.c (cancel_hourglass_unwind): New function.
6984 (command_loop_1): Cancel hourglass with unwind-protect.
6985
120d0a23
RS
69862003-02-23 Richard M. Stallman <rms@gnu.org>
6987
6988 * callint.c (fix_command): New subroutine, from Fcall_interactively.
6989 Detect (when ... (region-beginning)) etc.
6990 (Fcall_interactively): Call fix_command.
6991 (Qif, Qwhen): New variables.
6992 (syms_of_callint): Init and staticpro them.
0b063c27 6993
120d0a23
RS
6994 * regex.c (print_partial_compiled_pattern): Output to stderr.
6995
4ece81a6
KG
69962003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
6997
6998 * dired.c (directory_files_internal): Don't expand directory.
6999 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
7000 instead. From Lars Hansen <larsh@math.ku.dk>.
7001
e52bd6b7
SM
70022003-02-22 Stefan Monnier <monnier@cs.yale.edu>
7003
7004 * fns.c (string_to_multibyte): Remove unused var i.
7005 (Flanginfo): Fix int/Lisp_Object mixup.
7006 (void_call2): New fun.
7007 (Fmap_char_table): Use it in place of call2.
7008
7009 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
7010
7011 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
7012
7013 * keymap.c (copy_keymap_1): Make it static.
7014
7015 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
7016
c33ef7c4
JB
70172003-02-22 David Ponce <david@dponce.com>
7018
7019 * lread.c (Fload): Don't check STRING_MULTIBYTE.
7020
16782258
JD
70212003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7022
7023 * process.h: Removed subtty field from struct Lisp_Process.
7024
7025 * process.c (create_process): Remove setting of subtty.
7026 (emacs_get_tty_pgrp): New function.
e52bd6b7
SM
7027 (Fprocess_running_child_p, process_send_signal):
7028 Call emacs_get_tty_pgrp instead of ioctl.
16782258
JD
7029 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
7030
3abeca61
KG
70312003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
7032
7033 * keymap.c (Fdefine_key): Doc fix.
7034
92a8ce63
JB
70352003-02-21 Juanma Barranquero <lektu@terra.es>
7036
7037 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
7038
7039 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
7040 POLLING_PROBLEM_IN_SELECT.
7041
7042 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
7043 Delete #undef of POLLING_PROBLEM_IN_SELECT.
7044
7045 * s/hpux10-20.h: New file.
7046
e52bd6b7
SM
7047 * process.c (wait_reading_process_input):
7048 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
92a8ce63 7049
20f1ef2e
KH
70502003-02-20 Kenichi Handa <handa@m17n.org>
7051
32d0a9dc
KH
7052 * fontset.c (check_fontset_name): If NAME is nil, return the
7053 default fontset.
7054 (override_font_info): New function.
e52bd6b7 7055 (Fset_fontset_font): Document that NAME nil means the default fontset.
32d0a9dc
KH
7056 (Ffontset_info): If FONTSET is not the default fontset, merge
7057 FONTSET onto the copy of the default fontset, and work on that
7058 copy. Document that NAME nil means the default fontset.
7059 (Ffontset_font): Document that NAME nil means the default fontset.
7060
20f1ef2e
KH
7061 * process.c (setup_process_coding_systems): If the process's
7062 in/out descriptor is -1, do nothing.
7063
77d1daf2
AS
70642003-02-19 Andreas Schwab <schwab@suse.de>
7065
e52bd6b7
SM
7066 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
7067 Add prototypes.
77d1daf2 7068
f9a45bb3
KH
70692003-02-19 Kenichi Handa <handa@m17n.org>
7070
7071 * xfaces.c (try_alternative_families): Try all scalable fonts if
7072 Vscalable_fonts_allowed is not Qt.
7073
72ecb43c
JD
70742003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7075
7076 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
7077
ee5be7c3
JD
70782003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7079
7080 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
7081 names.
7082
7083 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
e52bd6b7 7084 (sorted_font_list): Move allocation of struct font_name to
ee5be7c3
JD
7085 x_face_list_fonts.
7086 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
7087 (Fx_list_fonts): Set maxnames to -1 to get all font names.
7088
4cd519a7
KS
70892003-02-18 Kim F. Storm <storm@cua.dk>
7090
068f9882
KS
7091 * lread.c (read1): Fix last change.
7092 "`" is not always special. Allow "?" after a character constant.
4cd519a7 7093
7290a344
AC
70942003-02-18 Andrew Choi <akochoi@shaw.ca>
7095
7096 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
7097
1f7fa69b
AS
70982003-02-18 Andreas Schwab <schwab@suse.de>
7099
7100 * window.c (window_scroll_pixel_based): Move outside a
7101 multi-glyph character before setting new window start.
7102
7103 * xdisp.c (in_display_vector_p): New function.
7104 * dispextern.h (in_display_vector_p): Declare.
7105
23e21195
KS
71062003-02-18 Kim F. Storm <storm@cua.dk>
7107
7108 * lread.c (read1): Fix and relax read syntax.
7109 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
7110 Only recognize "," after dotted-pair dot if inside backquote.
7111 Never include "`" or "," (inside backquote) in a symbol.
7112 Allow dotted-pair dot after a character constant.
7113 Allow "`" and "," (inside backquote) after a character constant.
92a8ce63 7114
f098b121
JD
71152003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7116
7117 * gtkutil.c (xg_tool_bar_expose_callback): New function.
7118 (xg_create_tool_bar): Force style of tool bar to be horizontal with
7119 icons. Set name of tool bar to emacs-toolbar.
7120 (update_frame_tool_bar): Connect expose event to
7121 xg_tool_bar_expose_callback.
7122
63020c46
RS
71232003-02-17 Richard M. Stallman <rms@gnu.org>
7124
7125 * keyboard.c (this_command_key_count_reset): New variable.
7126 Initiatize to 0 where this_command_key_count is set.
7127 (read_char): Save and restore this_command_key_count_reset
7128 around input method code.
7129 (read_char): If this_command_key_count_reset, echo reread commands.
7130 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
7131
fb4452cc
KH
71322003-02-17 Kenichi Handa <handa@m17n.org>
7133
7134 * fns.c (string_to_multibyte): Always return a multibyte string.
7135
bd11cc09
JR
71362003-02-16 Jason Rumney <jasonr@gnu.org>
7137
e52bd6b7
SM
7138 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
7139 Negative max_fonts parameter means list all.
bd11cc09 7140
4cdf4bde
DL
71412003-02-14 Dave Love <fx@gnu.org>
7142
7143 * fns.c (Flanginfo): Doc fix.
7144
023b93f6
KS
71452003-02-13 Kim F. Storm <storm@cua.dk>
7146
37cd4238
KS
7147 * lread.c (read_escape): Interpret \s as a SPACE character, except
7148 for \s-X in a character constant which still is the super modifier.
7149 (read1): Signal an `invalid read syntax' error if a character
7150 constant is immediately followed by a digit or symbol character.
7151
140a6b7e
KS
7152 * search.c (Fmatch_data): Doc fix. Explicitly state that
7153 match-data is undefined if last search failed.
7154
023b93f6
KS
7155 * keymap.c (Fcommand_remapping): Renamed from Fremap_command.
7156 All uses changed.
7157
7d5c86e5
JB
71582003-02-12 Juanma Barranquero <lektu@terra.es>
7159
7160 * eval.c (Fdefmacro): Fix typo.
7161
295fff2c
KS
71622003-02-12 Kim F. Storm <storm@cua.dk>
7163
7164 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
7165 macro is a string, convert meta modifiers in string when copying
7166 the string into a vector.
7167
60f3202d
KS
71682003-02-11 Kim F. Storm <storm@cua.dk>
7169
7170 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
7171
61cb0b53
KH
71722003-02-11 Kenichi Handa <handa@m17n.org>
7173
7174 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
7175
7392e23c
KS
71762003-02-10 Kim F. Storm <storm@cua.dk>
7177
7178 * process.c: Doc fixes.
7179 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
7180
ce4254bd
KH
71812003-02-10 Kenichi Handa <handa@m17n.org>
7182
9c7a329a
KH
7183 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
7184
ce4254bd
KH
7185 * process.c (QCfilter_multibyte): New variable.
7186 (setup_process_coding_systems): New function.
e52bd6b7
SM
7187 (Fset_process_buffer, Fset_process_filter):
7188 Call setup_process_coding_systems.
ce4254bd
KH
7189 (Fstart_process): Initialize the member `filter_multibyte' of
7190 struct Lisp_Process.
7191 (create_process): Call setup_process_coding_systems.
7192 (Fmake_network_process): New keyward `:filter-multibyte'.
7193 Initialize the member `filter_multibyte' of struct Lisp_Process.
7194 Call setup_process_coding_systems.
7195 (server_accept_connection): Call setup_process_coding_systems.
7196 (read_process_output): If the process has a filter, decide the
7197 multibyteness of a string to given to the filter by
7198 `filter_multibyte' member of the process. If the process doesn't
7199 have a filter and the result of conversion is unibyte, use
7200 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
7201 multibyte form.
7202 (Fset_process_coding_system): Call setup_process_coding_systems.
7203 (Fset_process_filter_multibyte): New function.
7204 (Fprocess_filter_multibyte_p): New function.
7205 (syms_of_process): Intern and staticpro QCfilter_multibyte.
7206 Defsubr Sset_process_filter_multibyte and
7207 Sprocess_filter_multibyte_p.
7208
7209 * process.h (struct Lisp_Process): New member filter_multibyte.
7210
7211 * lisp.h (setup_process_coding_systems): Add prototype.
7212
7213 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
7214 process, update coding systems for the process.
7215
b08d5f59
KH
72162003-02-09 Kenichi Handa <handa@m17n.org>
7217
7218 * fns.c (string_to_multibyte): New function.
7219 (Fstring_to_multibyte): New function.
7220 (syms_of_fns): Defsubr it.
7221
0dfd93c0
AS
72222003-02-08 Andreas Schwab <schwab@suse.de>
7223
7224 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
7225 instead of the substitution.
7226
7b76ca1c
JD
72272003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7228
7229 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
7230
7231 * xmenu.c (menu_position_func): Adjust menu popup position so that
7232 the menu is fully visible.
7b76ca1c 7233
2436a4e4
JD
72342003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7235
7236 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
e52bd6b7
SM
7237 (x_make_frame_invisible, x_wm_set_icon_position):
7238 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
2436a4e4
JD
7239
7240 * xfns.c (x_set_name, x_set_title): Ditto.
7241
37d1e680
RS
72422003-02-04 Richard M. Stallman <rms@gnu.org>
7243
7244 * keyboard.c (echo_now): Update before_command_echo_length.
7245 (Freset_this_command_lengths): Reset this_command_key_count etc.
7246 immediately rather than arranging to do it later.
7247 (before_command_key_count_1, before_command_echo_length_1)
7248 (before_command_restore_flag): Vars deleted.
7249 (add_command_key): Don't handle before_command_restore_flag.
7250 (read_char, record_menu_key): Don't update before_command_key_count or
7251 before_command_echo_length.
7252 (read_char): Don't handle before_command_restore_flag.
7253
7254 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
7255 in direct-output clauses if it wouldn't be called in the ordinary case.
7256
578846a3
KS
72572003-02-04 Kim F. Storm <storm@cua.dk>
7258
7259 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
7260
49853a4d
JD
72612003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7262
7263 * gtkutil.c (remove_from_container): Copying list is not needed.
7264 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
7265 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
7266 on list returned from gtk_container_get_children to avoid memory leak.
7267
8b53dc06
JR
72682003-02-01 Jason Rumney <jasonr@gnu.org>
7269
5d54d177
JR
7270 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
7271 local malloc.
7272 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
7273 definitions in xpm.h.
7274 (init_xpm_functions): New function.
f63fd14e 7275 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
5d54d177
JR
7276 (init_external_image_libraries): Try to load libXpm.dll.
7277
8b53dc06
JR
7278 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
7279 timestamp.
7280
b222e415
DL
72812003-01-31 Dave Love <fx@gnu.org>
7282
7283 * syntax.c (Fskip_chars_forward)
7284 (open-paren-in-column-0-is-defun-start): Doc fix.
7285
c60ee5e7
JB
72862003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
7287
7288 * fileio.c: Support // at start of name for Cygwin (just added proper
7289 preprocessor tests).
7290
7291 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
7292
7293 * Makefile.in: Use @EXEEXT@ for Cygwin.
7294
7295 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
7296
7297 * s/cygwin.h: Added for Cygwin port.
7298
53b37591
JB
72992003-01-31 Juanma Barranquero <lektu@terra.es>
7300
7301 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
7302 when including gif_lib.h.
fe929957 7303 (init_gif_functions, init_tiff_functions): New functions.
f63fd14e
JB
7304 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
7305 Windows. Disable color table lookups. Call library functions
53b37591 7306 through pointers determined at runtime.
fe929957
JB
7307 (init_external_image_libraries): Try to load libungif.dll and
7308 libtiff.dll.
53b37591 7309
45415a8f
KH
73102003-01-31 Kenichi Handa <handa@m17n.org>
7311
7312 * xdisp.c (SKIP_GLYPHS): New macro.
e52bd6b7 7313 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
45415a8f 7314
a97e4138
JD
73152003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7316
e52bd6b7 7317 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
a97e4138 7318
6eed9bed
DL
73192003-01-30 Dave Love <fx@gnu.org>
7320
7321 * alloc.c (Vgc_elapsed, gcs_done): New variables.
7322 (Fgarbage_collect): Use them.
7323 (init_alloc, syms_of_alloc): Set them up.
7324
100dcd40
JB
73252003-01-30 Juanma Barranquero <lektu@terra.es>
7326
7327 * w32fns.c (init_external_image_libraries): Add missing operator.
7328
fbd852af
JR
73292003-01-29 Jason Rumney <jasonr@gnu.org>
7330
7331 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
7332 an alternative name for jpeg.dll.
7333
8a2d8020
KH
73342003-01-29 Kenichi Handa <handa@m17n.org>
7335
7336 * xdisp.c (set_cursor_from_row): Pay attention to string display
7337 properties.
7338
058c18c7
AC
73392003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
7340
7341 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
7342 <escape>.
7343 (keycode_to_xkeysym_table): Reformat and add more comments.
7344 (XTread_socket): Drop special case for backspace.
7345
385f11cf
AC
73462003-01-28 Andrew Choi <akochoi@shaw.ca>
7347
7348 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
7349 values in old-style RGB specs.
7350
c922a224
JB
73512003-01-27 Juanma Barranquero <lektu@terra.es>
7352
7353 * w32fns.c (init_external_image_libraries): Try alternate names for the
7354 jpeg dll.
7355
0a1d6de0
JD
73562003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7357
7358 * gtkutil.c (create_dialog, xg_separator_p)
7359 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
7360 before calling strcmp or strlen.
7361
a97e4138 73622003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1d1885fc
JD
7363
7364 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
7365 and handle image load failure.
7366
28908312
JR
73672003-01-26 Jason Rumney <jasonr@gnu.org>
7368
7369 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
7370 New functions.
f63fd14e
JB
7371 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
7372 Disable color table lookups. Call jpeg library functions
28908312
JR
7373 through pointers determined at runtime.
7374 (init_external_image_libraries): Try to load jpeg.dll.
7375
84e47416
RS
73762003-01-25 Richard M. Stallman <rms@gnu.org>
7377
7378 * lisp.h: Declare format2 instead of format1.
7379
7380 * fileio.c (barf_or_query_if_file_exists):
7381 Call format2 instead of format1.
7382
7383 * editfns.c (format2): New function, replaces format1
7384 but takes exactly two Lisp Objects as format args.
7385
7386 * buffer.c (Fkill_buffer): Call format2 instead of format1.
7387
a97e4138 73882003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1fcfb866
JD
7389
7390 * xterm.h: Change to return value of x_dispatch_event to int.
7391
7392 * xterm.c (x_filter_event): New function.
7393 (event_handler_gdk, XTread_socket): Call x_filter_event.
7394 (x_dispatch_event): Change to return value of finish.
7395 (event_handler_gdk): Use return value from x_dispatch_event.
7396
7397 * xfns.c (x_window): Call create_frame_xic for GTK version to
7398 initialize input methods.
7399
7400 * gtkutil.h: Add (void) prototypes.
7401
7402 * gtkutil.c (create_menus): Remove code that puts the help menu to
7403 the right.
7404
54eefef1
JR
74052003-01-25 Jason Rumney <jasonr@gnu.org>
7406
7407 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
7408 [HAVE_PNG]: Sync with xfns.c version.
f63fd14e
JB
7409 (png_load): Adjust colors for Windows. Use Windows
7410 bitmaps. Disable color table lookups.
c262430d
JR
7411 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
7412 (init_png_functions): New function.
7413 (png_read_from_memory, png_load): Call png library functions
7414 through pointers determined at runtime.
7415 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
7416 (init_external_image_libraries): New function.
7417 (init_xfns): Call it.
54eefef1 7418
1a9e275b
AS
74192003-01-24 Andreas Schwab <schwab@suse.de>
7420
7421 * minibuf.c (Fminibuffer_message): Verify type of parameter.
7422
a97e4138 74232003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
81e302ef
JD
7424
7425 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
7426 of static initializer.
7427
422eec7e
DL
74282003-01-24 Dave Love <fx@gnu.org>
7429
7430 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
7431 architectures.
7432
7433 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
7434 Use __alignof__.
7435
2a026b04
KH
74362003-01-24 Kenichi Handa <handa@m17n.org>
7437
7438 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
e52bd6b7 7439 It it is nonzero, don't pretend that an invisible area doesn't exist.
2a026b04
KH
7440 (command_loop_1): Call adjust_point_for_property with proper
7441 second arg.
7442
a18bb28d
JR
74432003-01-22 Jason Rumney <jasonr@gnu.org>
7444
7445 Sync changes with xterm.c and xfns.c.
7446
7447 * w32term.c (x_draw_glyph_string_foreground)
7448 (x_draw_composite_glyph_string_foreground): Implement overstriking.
7449
7450 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
7451 phys_cursor's hpos is overwritten. This is still not completely
7452 correct, as it doesn't really make sense to use hpos at all to
7453 get the cursor glyph (as that is relative to the width of the
7454 characters on the line, which may have changed during the update).
7455
7456 * w32term.c (notice_overwritten_cursor): Handle the special case
7457 of the cursor being in the first blank non-text line at the
7458 end of a window.
7459
7460 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
7461 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
7462 Compute from the x position returned by x_draw_glyphs.
7463
7464 (x_display_and_set_cursor): Don't set phys_cursor_width here,
7465 except for NO_CURSOR and system caret, to make phys_cursor_width
7466 contain what its name suggests.
7467 (notice_overwritten_cursor): Consider the cursor image erased if
7468 the output area intersects the cursor image in y-direction.
7469
6a097c0c
SM
7470 * w32term.c (note_mode_line_or_margin_highlight): Rename from
7471 note_mode_line_highlight and extend.
a18bb28d
JR
7472
7473 * w32term.c (last_window): New variable.
7474 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
7475 (note_mouse_movement): Remove reimplemented code in #if 0.
7476
7477 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
7478 not update_mode_lines, and always set it to 1.
7479
ac6e47ef
JR
74802003-01-21 Jason Rumney <jasonr@gnu.org>
7481
7482 * w32fns.c (IDC_HAND): Define it if system headers don't.
7483
74842003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
7485
7486 * w32term.h (struct w32_output): New member hand_cursor.
7487 (WM_EMACS_SETCURSOR): New message definition.
7488
7489 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
7490 function w32_define_cursor.
7491 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
7492 position, change member name output_data.x to output_data.w32 and
7493 add function w32_define_cursor.
7494 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
7495 and change member name output_data.x to output_data.w32.
e52bd6b7
SM
7496 (w32_initialize_display_info):
7497 Setup dpyinfo->vertical_scroll_bar_cursor.
ac6e47ef
JR
7498
7499 * w32fns.c (Vx_hand_shape): New variable.
7500 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
7501 WM_EMACS_SETCURSOR.
7502 (x-create-frame): Setup Cursor types.
7503
ceb39a17
JB
75042003-01-21 David Ponce <david@dponce.com>
7505
ac6e47ef 7506 * w32term.c (w32_encode_char): For DIM=1 charset, set
f63fd14e 7507 ccl->reg[2] to -1 before calling ccl_driver. (Sync. with xterm.c
ac6e47ef 7508 x_encode_char change by Kenichi Handa <handa@m17n.org> on
ceb39a17 7509 2002-09-30.)
ac6e47ef
JR
7510 (w32_draw_relief_rect): Declare all args.
7511 (w32_define_cursor): New.
7512
7513 * w32fns.c (w32_load_cursor): New function.
7514 (w32_init_class): Use it.
7515 (x_put_x_image): Declare all args.
7516
46cf0bed
JB
75172003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk> (tiny change)
7518
7519 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
7520
a97e4138 75212003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e8794476
JD
7522
7523 * gtkutil.c: Must include stdio.h before termhooks.h
7524
83fc9c63
DL
75252003-01-21 Dave Love <fx@gnu.org>
7526
7527 * alloc.c (Fgc_status): Print zombie list.
7528 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
7529 Fix assignment of zombies.
7530 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
7531 Don't take car of non-cons.
7532
7533 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
7534
7535 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
7536
fe04b8c8
JR
75372003-01-20 David Ponce <david@dponce.com>
7538
7539 * w32menu.c (digest_single_submenu): Declare all args.
7540
7541 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
7542 changes in xmenu.c:
7543
7544 (parse_single_submenu): Use individual keymap's prompt
7545 string as pane name, if there is one.
7546 (set_frame_menubar): Save menu_items_n_panes from each call to
7547 parse_single_submenu and use it when calling digest_single_submenu.
7548
539e69a9
ST
75492003-01-20 Steven Tamm <steventamm@mac.com>
7550
7551 * macterm.c (XTread_socket): Checks for valid, visible window
7552 before sending a scroll-wheel event.
7553
675d000f
RS
75542003-01-20 Richard M. Stallman <rms@gnu.org>
7555
7556 * xdisp.c (redisplay_window): If mini window's buffer is not
7557 a minibuffer, then redisplay it like other windows.
7558
a97e4138 75592003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22174d10
JD
7560
7561 * gtkutil.c (xg_create_frame_widgets): Check if there is an
7562 external tool bar before setting tool bar height.
7563
048addec
JD
75642003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7565
7566 * xterm.c (handle_one_xevent): Surround popup_activated
7567 with #ifdef:s for non-toolkit version.
7568
7569 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
7570 (gtkutil.o): New file.
7571 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
7572 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
7573
7574 * gtkutil.c: New file for GTK version.
7575
7576 * gtkutil.h: New file for GTK version.
7577
7578 * xterm.h: Add xt_or_gtk_widget.
7579 Include gtk files for USE_GTK.
7580 (struct x_output): Add toolbar_height.
7581 (struct x_output): Add GTK widgets and Gdk size_hints.
7582 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
7583 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
7584 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
7585
7586 * xterm.c: Include gtkutil.h for USE_GTK.
7587 Declare extern void free_frame_menubar for USE_GTK.
7588 (note_mouse_highlight): Check popup_activated for USE_GTK.
7589 (xt_action_hook): Don't compile if USE_GTK.
7590 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
7591 (xg_scroll_callback): New function.
7592 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
7593 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
7594 for USE_GTK.
7595 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
7596 xg_show_scroll_bar for USE_GTK.
7597 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
7598 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
7599 (event_handler_gdk): New function for USE_GTK.
7600 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
7601 (handle_one_xevent): Make sure widget is mapped before
7602 calling x_real_positions for USE_GTK.
7603 (XTread_socket): Add GTK event loop for USE_GTK.
7604 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
7605 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
7606 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
7607 (x_iconify_frame): Add code for USE_GTK.
7608 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
7609 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
7610 is in gtkutil.c.
7611 (x_term_init): Add initialization for GTK.
7612 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
7613
7614 * xmenu.c: Include gtkutil.h for USE_GTK.
7615 (Fx_popup_menu): Use current position if x and y is NIL.
6bdb309a
SM
7616 (single_menu_item, single_menu_item, Fx_popup_dialog):
7617 Check for USE_GTK.
048addec
JD
7618 (popup_widget_loop): New function for USE_GTK.
7619 (x_activate_menubar): Add code for USE_GTK.
7620 (popup_activate_callback, popup_deactivate_callback)
6bdb309a
SM
7621 (menu_highlight_callback, menubar_selection_callback):
7622 Add USE_GTK versions.
048addec
JD
7623 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
7624 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
7625 (free_frame_menubar): Only compile if not USE_GTK. GTK version
7626 is in gtkutil.c.
7627 (popup_selection_callback): New version for USE_GTK.
7628 (create_and_show_popup_menu): New fuction, one USE_GTK version and
6bdb309a 7629 one USE_X_TOOLKIT version.
048addec
JD
7630 (xmenu_show): Call create_and_show_popup_menu.
7631 (dialog_selection_callback): New version for USE_GTK.
7632 (create_and_show_dialog): New fuction, one USE_GTK version and
6bdb309a 7633 one USE_X_TOOLKIT version.
048addec
JD
7634 (xdialog_show): Call create_and_show_dialog.
7635
7636 * xfns.c: Include gtkutil for USE_GTK.
7637 (x_window_to_frame, x_any_window_to_frame)
7638 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
7639 (x_top_window_to_frame): Add code for USE_GTK.
7640 (x_set_background_color): Call xg_set_background_color for GTK.
7641 (x_set_menu_bar_lines): Check for USE_GTK.
7642 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
7643 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
7644 (x_window): Call xg_create_frame_widgets for USE_GTK.
7645 (Fx_create_frame): Check for USE_GTK
7646 (Fx_file_dialog): New implementation for USE_GTK.
7647
7648 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
7649 (update_menu_bar): Add check for USE_GTK.
7650 (update_tool_bar): Add check for USE_GTK and external tool bar.
7651 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
7652 (redisplay_internal): Add check for USE_GTK and popup_activated.
7653 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
7654 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
7655 (display_menu_bar): Add check for USE_GTK
7656
7657 * lisp.h: Declare Vx_resource_name extern.
7658
a64387ee 7659 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
048addec
JD
7660 for USE_GTK.
7661 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
7662
7663 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
7664 (FRAME_EXTERNAL_TOOL_BAR): New macro.
7665 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
7666
7667 * fileio.c (Fread_file_name): Add check for USE_GTK.
7668
6bdb309a
SM
7669 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
7670 Add check for USE_GTK.
048addec
JD
7671
7672 * config.in: Added HAVE_GTK
7673
7674 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
7675
76762003-01-18 Stefan Monnier <monnier@cs.yale.edu>
7677
7678 * charset.h (Funibyte_char_to_multibyte): Export.
7679
76802003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7681
7682 * xmenu.c (mouse_position_for_popup): New function.
7683 (Fx_popup_menu): Call mouse_position_for_popup for X and
7684 mouse_position_hook for others.
7685
76862003-01-17 Kim F. Storm <storm@cua.dk>
7687
7688 * editfns.c (Finsert): Mention `string-make-multibyte' and
7689 `string-as-multibyte' in doc string.
7690
76912003-01-17 Kenichi Handa <handa@m17n.org>
7692
7693 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
3c02a6f5 7694
048addec
JD
7695 * editfns.c (Fformat): Convert an unibyte char argument that is
7696 formatted by "%c" to multibyte if the total result must be a
7697 multibyte string.
cd7df9c0 7698
048addec 76992003-01-16 Kim F. Storm <storm@cua.dk>
cd7df9c0 7700
048addec
JD
7701 * process.c (set-process-filter): Document unibyte/multibyte-ness
7702 of string argument.
56210ecd 7703
048addec 77042003-01-16 Kenichi Handa <handa@m17n.org>
56210ecd 7705
048addec 7706 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
56210ecd 7707
048addec
JD
7708 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
7709 (re_search_2): Likewise.
6df8b9fe 7710
048addec 77112003-01-15 Kenichi Handa <handa@m17n.org>
6df8b9fe 7712
048addec
JD
7713 * xdisp.c (message_dolog): Fix bug of the case that *Message*
7714 buffer is unibyte.
292ddc31 7715
048addec 77162003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
292ddc31 7717
048addec 7718 * fns.c (Fsubstring): Clarify doc string.
292ddc31 7719
048addec
JD
7720 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
7721 (Fprevious_char_property_change)
7722 (Fnext_single_char_property_change)
7723 (Fprevious_single_char_property_change, Fnext_property_change)
7724 (Fnext_single_property_change, Fprevious_property_change)
7725 (Fprevious_single_property_change, Fadd_text_properties)
7726 (Fput_text_property, Fset_text_properties)
7727 (Fremove_text_properties, Fremove_list_of_text_properties)
7728 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
63e4e4c6 7729
048addec 77302003-01-14 Kim F. Storm <storm@cua.dk>
63e4e4c6 7731
048addec
JD
7732 * process.h (struct Lisp_Process): New member plist replaces old
7733 member private_vars. All uses changed.
63e4e4c6 7734
048addec 7735 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
6bdb309a 7736 (QCplist): Rename from QCvars. Change all uses.
048addec 7737 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
6bdb309a 7738 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
048addec 7739 (syms_of_process): Intern, staticpro, defsubr these.
6bdb309a 7740 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
7ed16567 7741
048addec 77422003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
7ed16567 7743
6bdb309a 7744 * m/delta.h: Remove (obsolete).
e833850f 7745
048addec 77462003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
e833850f 7747
048addec
JD
7748 * fileio.c (Fdelete_directory, Fdelete_file): Document the
7749 behaviour in front of symlinks.
7750 (Fdelete_file): Raise an error on directories.
817cb127 7751
048addec 77522003-01-13 Dave Love <fx@gnu.org>
817cb127 7753
048addec 7754 * fns.c (Freverse): Use QUIT.
3e8cf2ea 7755
048addec 77562003-01-13 Richard M. Stallman <rms@gnu.org>
3e8cf2ea 7757
048addec
JD
7758 * minibuf.c (minibuffer_completion_contents):
7759 Error if point is inside prompt.
3e8cf2ea 7760
048addec
JD
7761 * keyboard.c (command_loop_1): Don't redisplay directly
7762 if there's a post-command-hook.
3e8cf2ea 7763
048addec
JD
7764 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
7765 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
2c10f029 7766
048addec 77672003-01-12 Kim F. Storm <storm@cua.dk>
94e8ffca 7768
048addec 7769 * process.h (struct Lisp_Process): New member private_vars.
94e8ffca 7770
048addec
JD
7771 * process.c (QCvars): New variable.
7772 (syms_of_process): Intern and staticpro it.
7773 (Fset_process_contact): Removed function.
7774 (Fprocess_variable, Fset_process_variable): New functions.
7775 (syms_of_process): Defsubr them.
7776 (Fstart_process): Initialize private_vars plist to nil.
7777 (Fmake_network_process): New arg :vars to setup the private
7778 variables for new network process.
7779 (server_accept_connection): Copy server's private variables to
7780 client process.
2c10f029 7781
048addec
JD
7782 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
7783 crashes). Code rewritten and simplified. Now directly aligns the
7784 pointer and recalculates pure_bytes_used, rather than aligning the
7785 size and adjusting the pointer.
b8a76c6c 7786
048addec 77872003-01-11 Kim F. Storm <storm@cua.dk>
b8a76c6c 7788
048addec
JD
7789 * process.c (Fset_process_contact): New function.
7790 (syms_of_process): defsubr it.
7791 (make-network-process): Update doc.
3a8d0899 7792
048addec 77932003-01-10 Andreas Schwab <schwab@suse.de>
3a8d0899 7794
048addec
JD
7795 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
7796 Reported by Berthold Gunreben <b.gunreben@web.de>.
4abc7470 7797
048addec 77982003-01-10 Dave Love <fx@gnu.org>
4abc7470 7799
048addec 7800 * composite.c (syms_of_composite): Make composition_hash_table weak.
b809d662 7801
048addec 78022003-01-09 Kim F. Storm <storm@cua.dk>
b809d662 7803
048addec
JD
7804 * process.c (Fmake_network_process): Convert new port number
7805 to host byte order for `:service t' case. From Mario Lang.
bf338245 7806
048addec 78072003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
bf338245 7808
048addec
JD
7809 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
7810 instead of XtAppProcessEvent.
bf338245 7811
048addec
JD
7812 * xterm.c (handle_one_xevent): New function.
7813 (x_dispatch_event): New function.
7814 (XTread_socket): Call handle_one_xevent.
bf338245 7815
048addec 7816 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
e833850f 7817
048addec
JD
7818 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
7819 call XQueryPointer to get coordinates.
7820 (popup_get_selection): Do not set popup_activated_flag to zero,
7821 let popup_deactivate_callback do that. Needed for Motif.
7822 Call x_dispatch_event instead of XtDispatchEvent.
7823 (xmenu_show): Calculate root coordinate from frame top/left position.
c4af2bce 7824
048addec 78252003-01-08 Kim F. Storm <storm@cua.dk>
c4af2bce 7826
6bdb309a 7827 * process.c (server_accept_connection): Fix recording of new
048addec
JD
7828 connection's local address in :local property of contact info.
7829 (Fmake_network_process): Record local network address for new
7830 client processes in :local property of contact info.
6bdb309a 7831 (format-network-address): Add arg OMIT-PORT. Change callers.
00e3ab56 7832
048addec 78332003-01-07 Dave Love <fx@gnu.org>
00e3ab56 7834
048addec 7835 * Makefile.in (fns.o): Depend on coding.h.
f387e1fd 7836
048addec 78372003-01-07 Markus Rost <rost@math.ohio-state.edu>
f387e1fd 7838
048addec 7839 * minibuf.c (Fread_variable): Doc fix.
f387e1fd 7840
048addec
JD
7841 * eval.c (Fuser_variable_p): Doc change. For custom variables,
7842 use the same test as for custom-variable-p.
8c6d74c6 7843
048addec 78442003-01-05 Richard M. Stallman <rms@gnu.org>
e833850f 7845
048addec
JD
7846 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
7847 Count LAST_LINE_MISFIT in scroll margin for end of window.
7848 Move label too_near_end before setting SCROLL_MARGIN_POS.
7849 Set LAST_LINE_MISFIT before jumping there.
8c6d74c6 7850
048addec
JD
7851 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
7852 scroll_conservatively case. If scrolling that much doesn't change
7853 STARTP, move it down one line.
e833850f 7854
048addec
JD
7855 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
7856 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
8c6d74c6 7857
048addec
JD
7858 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
7859 selected frame.
8c6d74c6 7860
048addec
JD
7861 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
7862 (syms_of_keymap): staticpro them.
7863 (Fapropos_internal): Initialize them and clear them out.
7864 Don't GCPRO them.
8c6d74c6 7865
048addec
JD
7866 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
7867 Doc fixes.
8c6d74c6 7868
048addec
JD
7869 * lisp.h: New misc type Lisp_Save_Value.
7870 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
7871 (XSAVE_VALUE): New macro.
7872 (struct Lisp_Save_Value): New data type.
7873 (union Lisp_Misc): Add u_save_value alternative.
7874 (make_save_value): Declared.
8c6d74c6 7875
048addec 7876 * alloc.c (make_save_value): New function.
8c6d74c6 7877
048addec
JD
7878 * xterm.c (x_catch_errors): Save dpy using make_save_value.
7879 (x_catch_errors_unwind): Call XSync.
8c6d74c6 7880
048addec 78812003-01-01 Richard M. Stallman <rms@gnu.org>
8c6d74c6 7882
048addec 7883 * window.c (window_scroll_pixel_based): Partially undo last change.
8c6d74c6 7884
048addec
JD
7885 * keyboard.c (command_loop_1): Call adjust_point_for_property
7886 in direct action cases for Qforward_char and Qbackward_char.
7887 Set already_adjusted so it won't be done twice.
8c6d74c6 7888
048addec 78892002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk> (tiny change)
8c6d74c6 7890
048addec
JD
7891 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
7892 type definition of size_t.
8c609cff 7893
048addec 78942003-01-02 Steven Tamm <steventamm@mac.com>
8c609cff 7895
048addec
JD
7896 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
7897 distinguish Carbon GUI builds from X11 builds on darwin.
b37113a1 7898
048addec 78992002-12-30 Steven Tamm <steventamm@mac.com>
b37113a1 7900
048addec
JD
7901 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
7902 to default to t.
fa634a5e 7903
048addec 79042002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
fa634a5e 7905
048addec 7906 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
ce0669d4 7907
048addec 79082002-12-28 Steven Tamm <steventamm@mac.com>
ce0669d4 7909
048addec
JD
7910 * Makefile.in (macosx-bundle): Fixes to Mac OS X/Carbon port to
7911 allow building in a different directory than source. Uses some
7912 GNU Make extensions, but there is no other make on Mac OS X.
2308af15 7913
048addec 79142002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
2308af15 7915
048addec
JD
7916 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
7917 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
7918 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
7919 (Fstring_to_number): Mention the returned value in the doc strings.
2155ecf3 7920
048addec 79212002-12-23 Richard M. Stallman <rms@gnu.org>
2155ecf3 7922
048addec
JD
7923 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
7924 <scroll-down-aggressively>: Doc fix.
2155ecf3 7925
048addec
JD
7926 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
7927 string as pane name, if there is one.
7928 (set_frame_menubar): Save menu_items_n_panes from each call to
7929 parse_single_submenu and use it when calling digest_single_submenu.
2155ecf3 7930
048addec
JD
7931 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
7932 Don't try to make last line fully visible if it is past end of window.
61f1d295 7933
048addec 79342002-12-22 Steven Tamm <steventamm@mac.com>
61f1d295 7935
048addec
JD
7936 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
7937 (mac_menu_show): Add support for hierarchical popup menus.
7938 (add_menu_item): Remove indentation support.
7939 (fill_submenu, fill_menu): Create hierarchical menus
7940 instead of using indentation.
0b17a217 7941
048addec 79422002-12-22 Richard M. Stallman <rms@gnu.org>
0b17a217 7943
048addec
JD
7944 * xdisp.c (try_cursor_movement): Don't call try_window here.
7945 (redisplay_window): Never redisplay minibuffer when inactive.
0b17a217 7946
048addec 7947 * window.c (select_window_1): Undo 9/21 change.
402e4f8b 7948
048addec 79492002-12-22 Steven Tamm <steventamm@mac.com>
402e4f8b 7950
048addec
JD
7951 * macterm.c (XTread_socket): Call KeyTranslate for control and
7952 meta to deal correctly shifted non-alpha characters, like C-S-5
7953 being treated like C-%. Does not look for shift key to deal
7954 with masking off control-key with mac-reverse-ctrl-meta.
f02cac82 7955
048addec 79562002-12-21 Richard M. Stallman <rms@gnu.org>
f02cac82 7957
048addec
JD
7958 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
7959 If it is non-nil, run timers. Use an unwind-protect to requeue
7960 the events that were read ahead.
7961 (popup_get_selection_unwind): New subroutine.
7962 (popup_get_selection_queue): File-scope variable now holds that queue.
7963 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
7964 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
7965 Use an unwind-protect to pop down the dialog box.
7966 (xdialog_show_unwind): New subroutine implements that.
f02cac82 7967
048addec
JD
7968 * xdisp.c (row_containing_pos): Change exit test using last_y.
7969 (try_window_id): Abort if row_containing_pos returns null.
f02cac82 7970
048addec
JD
7971 * lread.c (load_error_handler): New function.
7972 (Fload): Handle errors in Fsubstitute_in_file_name.
7973 Don't expect Fsignal to return.
f02cac82 7974
048addec
JD
7975 * eval.c: Errors and throws work right with interrupt blocking.
7976 (struct catchtag): New elt interrupt_input_blocked.
7977 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
7978 (internal_catch, Fcondition_case, internal_condition_case)
7979 (internal_condition_case_1, internal_condition_case_2): Save it.
7980 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
f02cac82 7981
048addec 7982 * editfns.c (Fformat): Add parens.
f02cac82 7983
048addec
JD
7984 * dired.c (file_name_completion): Fix that change.
7985 Delete special quit-handling code; just use QUIT.
f02cac82 7986
048addec 79872002-12-21 Tak Ota <Takaaki.Ota@am.sony.com> (tiny change)
f02cac82 7988
048addec
JD
7989 * dired.c (file_name_completion): Close directory on error
7990 just as in directory_files_internal.
1a590729 7991
048addec 79922002-12-19 David Kastrup <David.Kastrup@t-online.de>
1a590729 7993
048addec
JD
7994 * window.c (Fset_window_configuration): Set old_point to correct
7995 value when new_current_buffer == current_buffer.
f02cac82 7996
048addec 79972002-12-17 Ben Key <bkey1@tampabay.rr.com>
2308af15 7998
048addec
JD
7999 Revisited my earlier fix for the following entry in etc/PROBLEMS:
8000 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
8001 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
9785d95b 8002
048addec
JD
8003 These changes were in part based upon suggestions made by Peter
8004 'Luna' Runestig [peter@runestig.com].
9785d95b 8005
048addec
JD
8006 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token,
8007 g_b_init_get_token_information, g_b_init_lookup_account_sid,
6bdb309a 8008 g_b_init_get_sid_identifier_authority ): Add several static
048addec 8009 global variables.
9785d95b 8010
048addec
JD
8011 * w32.c (globals_of_w32): New function. Used to initialize those
8012 global variables that must always be initialized on startup even
8013 when the global variable initialized is non zero. Its primary
8014 purpose at this time is to set the global variables
8015 g_b_init_is_windows_9x, g_b_init_open_process_token,
8016 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
8017 g_b_init_get_sid_identifier_authority to 0 on startup.
8018 Called from main.
9785d95b 8019
048addec
JD
8020 * w32.c (is_windows_9x): Perform initialization only if
8021 g_b_init_is_windows_9x is equal to 0. On initialization set
8022 g_b_init_is_windows_9x equal to 1.
2308af15 8023
048addec
JD
8024 * w32.c (open_process_token): Perform initialization only if
8025 g_b_init_open_process_token is equal to 0. On initialization set
8026 g_b_init_open_process_token equal to 1.
2308af15 8027
048addec
JD
8028 * w32.c (get_token_information): Perform initialization only if
8029 g_b_init_get_token_information is equal to 0. On initialization
8030 set g_b_init_get_token_information equal to 1.
9785d95b 8031
048addec
JD
8032 * w32.c (lookup_account_sid): Perform initialization only if
8033 g_b_init_lookup_account_sid is equal to 0. On initialization
8034 set g_b_init_lookup_account_sid equal to 1.
9785d95b 8035
048addec
JD
8036 * w32.c (get_sid_identifier_authority): Perform initialization
8037 only if g_b_init_get_sid_identifier_authority is equal to 0.
8038 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
9785d95b 8039
f63fd14e 8040 * w32fns.c (globals_of_w32fns): New function. Used to initialize
048addec
JD
8041 those global variables that must always be initialized on startup
8042 even when the global variable initialized is non zero.
8043 Its primary purpose at this time is to initialize the global variable
8044 track_mouse_event_fn.
9785d95b 8045
a64387ee 8046 * w32fns.c (w32_wnd_proc): Remove initialization of
048addec 8047 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
9785d95b 8048
048addec 8049 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
9785d95b 8050
f63fd14e 8051 * w32menu.c (globals_of_w32menu): New function. Used to
048addec
JD
8052 initialize those global variables that must always be initialized
8053 on startup even when the global variable initialized is non zero.
8054 Its primary purpose at this time is to initialize the global
8055 variables get_menu_item_info and set_menu_item_info.
9785d95b 8056
048addec
JD
8057 * w32menu.c (initialize_frame_menubar): Remove initialization of
8058 get_menu_item_info and set_menu_item_info.
9785d95b 8059
048addec 8060 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
9785d95b 8061
048addec
JD
8062 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
8063 Declare them.
9785d95b 8064
048addec
JD
8065 * emacs.c (main): Call globals_of_w32 prior to calling
8066 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
8067 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
8068 is defined.
9785d95b 8069
048addec
JD
8070 * w32term.c (x_update_window_begin): Fix Windows API error
8071 detected by BoundsChecker. Test to determine if
8072 w32_system_caret_hwnd is NULL prior to attempting to use
8073 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
2308af15 8074
048addec
JD
8075 * w32term.c (x_update_window_end): Fix Windows API error
8076 detected by BoundsChecker. Test to determine if
8077 w32_system_caret_hwnd is NULL prior to attempting to use
8078 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
b6da19ef 8079
048addec 80802002-12-17 Kenichi Handa <handa@m17n.org>
b6da19ef 8081
048addec
JD
8082 * coding.c (coding_system_require_warning): New variable.
8083 (syms_of_coding): DEFVAR it.
b6da19ef 8084
048addec 8085 * coding.h (coding_system_require_warning): Extern it.
b6da19ef 8086
048addec
JD
8087 * fileio.c (choose_write_coding_system): Even if
8088 Vcoding_system_for_write is non-nil, if
8089 coding_system_require_warning is nonzero, call
8090 Vselect_safe_coding_system_function.
bfcf6dbe 8091
048addec 80922002-12-17 Markus Rost <rost@math.ohio-state.edu>
bfcf6dbe 8093
048addec
JD
8094 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
8095 (lisp): Add font-core.
2c568af5 8096
048addec 80972002-12-13 Stefan Monnier <monnier@cs.yale.edu>
2c568af5 8098
048addec
JD
8099 * textprop.c (text_read_only): New arg `propval'.
8100 (get_char_property_and_overlay): Remove unused var `next_overlay'.
8101 (verify_interval_modification): Use text_read_only's new arg.
b8c6225c 8102
048addec 81032002-12-13 Kenichi Handa <handa@m17n.org>
b8c6225c 8104
048addec 8105 * coding.c (Funencodable_char_position): Set pend correctly.
706ddb8f 8106
048addec 81072002-12-12 Jason Rumney <jasonr@gnu.org>
706ddb8f 8108
048addec
JD
8109 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
8110 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
8111 Be more careful about when help_events are generated.
96720f09 8112
048addec 81132002-12-12 Steven Tamm <steventamm@mac.com>
96720f09 8114
048addec
JD
8115 * macterm.c (mac_check_for_quit_char): Correctly set the
8116 modifiers of the event to 0.
8117 * mac.c (sys_select): Duplicate rfds before calling select to
8118 ensure that rfds survive the while loop.
e5ae1c49 8119
048addec 81202002-12-11 Kim F. Storm <storm@cua.dk>
e5ae1c49 8121
048addec
JD
8122 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
8123 row_containing_pos returned NULL.
2eb46b2d 8124
048addec 81252002-12-10 Steven Tamm <steventamm@mac.com>
2eb46b2d 8126
6bdb309a 8127 * mac.c (sys_read): Fix sys_read to not call select if IO is
048addec 8128 non-blocking.
6bdb309a 8129 (sys_select): Fix sys_select to not use a timeout larger than
048addec 8130 the one given.
b11f1d8a 8131
048addec 81322002-12-10 Juanma Barranquero <lektu@terra.es>
b11f1d8a 8133
048addec 8134 * editfns.c (Fformat): Use alloca, not _alloca.
d8528226 8135
048addec 81362002-12-09 Richard M. Stallman <rms@gnu.org>
d8528226 8137
048addec
JD
8138 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
8139 as the last thing.
a4ac5b17 8140
048addec 81412002-12-09 Dave Love <fx@gnu.org>
a4ac5b17 8142
048addec 8143 * s/sol2-8.h: Removed. (Not necessary.)
ac42d7b9 8144
048addec 81452002-12-09 Matthew Swift <swift@alum.mit.edu>
ac42d7b9 8146
048addec
JD
8147 * editfns.c (Fformat): Handle precision in string conversion
8148 specifiers like libc functions do (ie, print at most that many
8149 characters).
85cce843 8150
048addec 81512002-12-08 Richard M. Stallman <rms@gnu.org>
85cce843 8152
048addec
JD
8153 * xdisp.c (row_containing_pos): Check more carefully
8154 whether charpos is really in the row before returning it.
0d4d26a7 8155
048addec 81562002-12-07 Steven Tamm <steventamm@mac.com>
0d4d26a7 8157
048addec 8158 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
b11f1d8a 8159
048addec
JD
8160 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
8161 each stack frame. This may change as it could be time consuming.
0d4d26a7 8162
048addec
JD
8163 * macterm.c (mac_check_for_quit_char, quit_char_comp)
8164 (init_quit_char_handler, mac_determine_quit_char_modifiers)
6bdb309a 8165 (mac_initialize): Add code to check for pressing of quit_char
048addec 8166 in the OS event queue.
b11f1d8a 8167
048addec
JD
8168 * mac.c (sys_select): Call mac_check_for_quit_char every second
8169 while blocking on select.
0d4d26a7 8170
048addec
JD
8171 * mac.c (sys_read): Use sys_select to test for input first
8172 before calling read, to allow C-g to break.
9252f7bc 8173
048addec 81742002-12-07 Richard M. Stallman <rms@gnu.org>
9252f7bc 8175
048addec 8176 * minibuf.c (Fcompleting_read): Doc fix.
9252f7bc 8177
048addec 8178 * lread.c (syms_of_lread) <load-history>: Doc fix.
9252f7bc 8179
048addec 8180 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
9252f7bc 8181
048addec
JD
8182 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
8183 autoload.
9252f7bc 8184
048addec 8185 * data.c (Fdefalias): Record in load-history redefining an autoload.
9252f7bc 8186
048addec 8187 * alloca.c: Undo ifdef change accidentally made on 12-04.
bfa261c0 8188
048addec 81892002-12-06 Francesco Potorti` <pot@gnu.org>
bfa261c0 8190
048addec 8191 * xfns.c (png_load): Avoid double gamma correction for PNG images.
c5992177 8192
048addec 81932002-12-04 Richard M. Stallman <rms@gnu.org>
c5992177 8194
048addec 8195 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 8196
048addec 8197 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 8198
048addec 8199 * alloca.c: Don't use #error.
02d588e2 8200
048addec 82012002-12-03 Dave Love <fx@gnu.org>
02d588e2 8202
048addec
JD
8203 * buffer.c (Qucs_set_table_for_input): New.
8204 (Fget_buffer_create): Use it.
8205 (Qset_buffer_major_mode_hook): Deleted.
8206 (Fset_buffer_major_mode): Revert previous change.
8207 (init_buffer_once): Intern ucs-set-table-for-input.
8208 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
8209 Add &Qucs_set_table_for_input.
451e2697 8210
048addec 82112002-12-03 Andreas Schwab <schwab@suse.de>
451e2697 8212
048addec
JD
8213 * callint.c (Fcall_interactively): Use next_event only if less
8214 than key_count.
72742a99 8215
048addec 82162002-12-02 Andrew Choi <akochoi@shaw.ca>
72742a99 8217
048addec
JD
8218 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
8219 names to 255 characters.
72742a99 8220
048addec
JD
8221 * macterm.c (XTread_socket): If all frames have been collapsed,
8222 expand the first one before handling drag-and-drop events.
72742a99 8223
048addec
JD
8224 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
8225 which is detected by autoconf.
40e6ff95 8226
048addec 82272002-12-01 Steven Tamm <steventamm@mac.com>
40e6ff95 8228
048addec
JD
8229 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
8230 offset in two hints table to allow prebinding to be redone and
8231 allow the executable to be stripped.
c02138c6 8232
048addec 82332002-11-29 Dave Love <fx@gnu.org>
c02138c6 8234
048addec
JD
8235 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
8236 already provided.
0e47bbf7 8237
048addec 82382002-11-29 Richard M. Stallman <rms@gnu.org>
0e47bbf7 8239
048addec
JD
8240 * xdisp.c (start_display): Check more intelligently for
8241 whether the line is continued.
8242 (move_it_vertically_backward): Clear it->continuation_lines_width.
44129dcb 8243
048addec 82442002-11-28 Dave Love <fx@gnu.org>
44129dcb 8245
048addec
JD
8246 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
8247 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
f707342d 8248
048addec 82492002-11-27 Steven Tamm <steventamm@mac.com>
f707342d 8250
048addec
JD
8251 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
8252 more descriptive error output from lread.c:Fload upon most require
8253 cycles during boostrapping.
1637fd2c 8254
048addec 82552002-11-27 Jason Rumney <jasonr@gnu.org>
1637fd2c 8256
048addec
JD
8257 * fileio.c (Finsert_file_contents): Give a more appropriate error
8258 for files bigger than 2Gb when off_t is 32 bit.
1637fd2c 8259
048addec
JD
8260 * dired.c (Ffile_attributes): Don't return negative file sizes for
8261 files bigger than 2Gb when off_t is 32 bit.
540c2788 8262
048addec 82632002-11-27 Dave Love <fx@gnu.org>
6b2fd6ea 8264
048addec 8265 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6b2fd6ea 8266
048addec
JD
8267 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
8268 Test GETPGRP_VOID instead.
8269 [BSD_TERMIOS]: Remove definitions (never used).
6b2fd6ea 8270
048addec
JD
8271 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
8272 Don't define.
8273 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
540c2788 8274
048addec 8275 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
8cc03716 8276
048addec 82772002-11-25 Jason Rumney <jasonr@gnu.org>
8cc03716 8278
048addec
JD
8279 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
8280 supported.
4042a81a 8281
048addec 82822002-11-25 Dave Love <fx@gnu.org>
4042a81a 8283
048addec 8284 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
4042a81a 8285
048addec 8286 * Makefile.in (TEMACS_LDFLAGS): Update last change.
be4ee72f 8287
048addec 82882002-11-25 Andreas Schwab <schwab@suse.de>
be4ee72f 8289
048addec 8290 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
82122254 8291
048addec 82922002-11-24 Steven Tamm <steventamm@mac.com>
82122254 8293
048addec
JD
8294 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
8295 determine the size of pointers alloced in unexed space instead
8296 of using possibly invalid emacs_zone pointers. This fixes the
8297 binary incompatibility problems caused by updates to libSystem.B.
c1ee53bc 8298
048addec 82992002-11-24 Richard M. Stallman <rms@gnu.org>
c1ee53bc 8300
048addec 8301 * search.c (Fstring_match): Doc fix.
c1ee53bc 8302
048addec
JD
8303 * callint.c (Fcall_interactively): If a command fails because
8304 `*' detects a read-only buffer, but RECORD_FLAG is set,
8305 record it anyway if the args don't actually do tty input.
5598c32e 8306
048addec 83072002-11-22 Dave Love <fx@gnu.org>
5598c32e 8308
048addec 8309 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
5598c32e 8310
048addec
JD
8311 * keyboard.c (interrupt_signal): Provide forward declaration.
8312 (kbd_buffer_store_event): Don't declare interrupt_signal.
5598c32e 8313
048addec 8314 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
97b14e22 8315
048addec 83162002-11-21 Richard M. Stallman <rms@gnu.org>
97b14e22 8317
048addec
JD
8318 * eval.c (interactive_p): Skip any number of bytecode
8319 and special form frames, in any order.
516eea8e 8320
048addec 83212002-11-20 Jason Rumney <jasonr@gnu.org>
516eea8e 8322
048addec
JD
8323 * w32fns.c (convert_mono_to_color_image): New function.
8324 (xbm_load, xbm_load_image): Use it when foreground or background
8325 is explicitly set.
04dbfa08 8326
048addec 83272002-11-19 Dave Love <fx@gnu.org>
04dbfa08 8328
048addec 8329 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
b4aebae3 8330
048addec 83312002-11-18 Jason Rumney <jasonr@gnu.org>
b4aebae3 8332
048addec
JD
8333 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
8334 (XPutPixel): Swap blue and red.
8335 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
8336 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
8337 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
8338 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
1998560a 8339
048addec 83402002-11-18 Dave Love <fx@gnu.org>
d824beee 8341
048addec 8342 * m/orion105.h (HAVE_ALLOCA): Don't define.
d824beee 8343
048addec 8344 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
d824beee 8345
048addec 8346 * m/intel386.h: Don't include alloca.h or define alloca.
d824beee 8347
048addec
JD
8348 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
8349 malloc, realloc, calloc.
d824beee 8350
048addec
JD
8351 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
8352 (bcmp): Don't define.
d824beee 8353
048addec 8354 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
d824beee 8355
048addec 8356 * m/amdahl.h: Don't define LIB_STANDARD.
d824beee 8357
048addec 8358 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
d824beee 8359
048addec 8360 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
d824beee 8361
048addec
JD
8362 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
8363 Don't include alloca.h.
d824beee 8364
048addec 8365 * s/aix3-2.h (HAVE_FSYNC): Don't define.
1998560a 8366
048addec 8367 * regex.c (_GNU_SOURCE): Don't define.
1998560a 8368
048addec 8369 * process.c (_GNU_SOURCE): Don't define.
1998560a 8370
048addec 8371 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
8704a6ab 8372
048addec 83732002-11-18 Markus Rost <rost@math.ohio-state.edu>
8704a6ab 8374
048addec 8375 * s/sol2-8.h: Include sol2-6.h.
6ae2cd57 8376
048addec 83772002-11-18 Miles Bader <miles@gnu.org>
6ae2cd57 8378
048addec
JD
8379 * dispextern.h (struct face): Add `overstrike' field.
8380 * xterm.c (x_draw_glyph_string_foreground)
8381 (x_draw_composite_glyph_string_foreground): Implement overstriking.
8382 * xfaces.c (load_face_font): Set `face->overstrike' based on
8383 result from choose_face_font.
8384 (best_matching_font, choose_face_font): Add `needs_overstrike'
8385 argument, and use it to return whether overstriking is desirable
8386 for this face/font combo.
8387 (set_font_frame_param: Pass new argument to choose_face_font.
6ae2cd57 8388
048addec 83892002-11-17 Ben Key <BKey1@tampabay.rr.com>
3582b6a3 8390
048addec
JD
8391 This change is my fix for the following entry in etc/PROBLEMS:
8392 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
8393 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
f60ae425 8394
048addec
JD
8395 * w32.c: Added wrapper functions around the win32 API functions
8396 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
8397 GetSidIdentifierAuthority. These wrapper functions serve two
8398 purposes:
8399 1. They ensure that the wrapped function can never be called
8400 when Emacs is running on an operating system on which they are
8401 not supported (Microsoft Windows 95 / 98 / ME).
8402 2. They call the wrapped functions via function pointers rather
8403 than calling them directly. This avoids taking advantage of the
8404 undocumented fact that although these functions are not supported
8405 in the 9x branch of Microsoft Windows, the functions do exist in
8406 the version of advapi32.dll that is found in the 9x branch of
8407 Microsoft Windows.
f60ae425 8408
6bdb309a 8409 * w32.c (init_user_info): Replace the calls to the win32 API
048addec
JD
8410 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
8411 and GetSidIdentifierAuthority with calls to the newly added
8412 wrapper functions.
f60ae425 8413
048addec
JD
8414 * w32.h: Added extern declarations for the following functions:
8415 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
8416 syms_of_w32menu, and void syms_of_fontset.
f60ae425 8417
6bdb309a 8418 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
048addec
JD
8419 function pointer track_mouse_event_fn in the handler for the
8420 WM_SETFOCUS message.
3582b6a3 8421
6bdb309a 8422 * w32menu.c (initialize_frame_menubar): Add code to
048addec
JD
8423 reinitialize the function pointers set_menu_item_info and
8424 get_menu_item_info.
f60ae425 8425
048addec 84262002-11-17 Ben Key <BKey1@tampabay.rr.com>
f60ae425 8427
048addec
JD
8428 * sound.c: Added a partial implementation of play-sound-internal
8429 for Microsoft Windows. Added various #ifdef / #else / #endif
8430 code blocks to separate the code that will compile under
8431 Microsoft Windows from the code that is specific to Gnu/Linux.
8432 Moved several blocks of code around to make this separation of code
8433 into Windows compatible and Gnu/Linux compatible code blocks easier.
f60ae425 8434
048addec 8435 * makefile.w32-in: Include sound.c and link with WinMM.lib.
a0f0878d 8436
048addec
JD
8437 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
8438 added support for play-sound-internal under Windows would be
8439 included in the build of Emacs.
517f42a0 8440
048addec 84412002-11-16 Jason Rumney <jasonr@gnu.org>
517f42a0 8442
048addec 8443 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
517f42a0 8444
048addec 8445 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
a0f0878d 8446
048addec 84472002-11-15 Stefan Monnier <monnier@cs.yale.edu>
a0f0878d 8448
048addec
JD
8449 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
8450 (adjust_point_for_property): Move out of display and invisible even if
8451 we were already inside before (in case a property was added while
8452 we weren't looking). Be more careful when handling invisible props.
8453 Skip invisible text as if it really wasn't there at all.
aab83f91 8454
048addec 84552002-11-15 Jason Rumney <jasonr@gnu.org>
aab83f91 8456
048addec
JD
8457 * w32term.c (x_draw_image_foreground)
8458 (w32_draw_image_foreground_1): Use standard copy and invert
8459 operations to draw images.
aab83f91 8460
048addec
JD
8461 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
8462 depth of 1.
8463 (xbm_read_bitmap_data): Invert bits as xbm is read in.
8464 (XPutPixel): Don't invert bits here.
a4478a76 8465
048addec 84662002-11-15 Jason Rumney <jasonr@gnu.org>
a4478a76 8467
048addec
JD
8468 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
8469 (w32_draw_image_foreground_1): Handle image masks.
8470 (x_draw_image_glyph_string): Don't BitBlt transparently.
a4478a76 8471
048addec
JD
8472 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
8473 (x_from_xcolors): Adjust RGB values for W32.
8474 (image_background, image_background_transparent)
8475 (postprocess_image, x_to_xcolors, x_disable_image)
8476 (x_build_heuristic_mask): Adapt for W32 and enable.
8477 (x_create_x_image_and_pixmap): Mark images with palettes as such.
8478 (xbm_load): Remove unused variable.
03670a65 8479
048addec 84802002-11-14 Richard M. Stallman <rms@gnu.org>
03670a65 8481
048addec 8482 * buffer.c (syms_of_buffer): Doc fix.
59daa29a 8483
048addec 84842002-11-14 Dave Love <fx@gnu.org>
59daa29a 8485
048addec 8486 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
59daa29a 8487
048addec
JD
8488 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
8489 * xmenu.c (unuse_menu_items, digest_single_submenu):
8490 * xfns.c (x_put_x_image):
8491 * xdisp.c (message2_nolog, set_message):
8492 * undo.c (record_point):
8493 * terminfo.c (tparam):
8494 * syntax.c (scan_sexps_forward):
8495 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
8496 * composite.c (update_compositions):
8497 * cm.c (calccost, cmgoto):
8498 * charset.c (c_string_width): Declare all args (per C99).
59daa29a 8499
048addec 8500 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
59daa29a 8501
048addec
JD
8502 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
8503 Don't declare.
59daa29a 8504
048addec 8505 * emacs.c (main) [!VMS]: Avoid third arg.
59daa29a 8506
048addec
JD
8507 * fns.c (Fcopy_sequence): Doc fix.
8508 (Fmap_char_table): Cast `call2'.
3947677c 8509
048addec
JD
85102002-11-14 Francesco Potorti` <pot@gnu.org>
8511
8512 * s/sol2-8.h: New file.
8513
85142002-11-14 Kim F. Storm <storm@cua.dk>
8515
8516 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
8517 dependency on `risky-local-variable' and the :propertize form.
8518
85192002-11-12 Stefan Monnier <monnier@cs.yale.edu>
8520
8521 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
8522
8523 * syntax.c (scan_sexps_forward): Undo last patch.
8524 Use a more obvious fix: check eob before updating the syntax table.
8525
85262002-11-09 Stefan Monnier <monnier@cs.yale.edu>
8527
8528 * syntax.c (scan_sexps_forward): Update syntax table before reading
8529 a char rather than after so we don't update the table past eob.
8530
85312002-11-09 Dave Love <fx@gnu.org>
8532
8533 * buffer.c (Fset_buffer_major_mode): Fix last change.
8534
8535 * regex.c (regexec): Fix pmatch declaration.
8536
8537 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
8538
8539 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
8540 to self-inserting characters.
8541 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
8542
8543 * coding.c (Vtranslation_table_for_input): New.
8544 (syms_of_coding): DEFVAR it.
8545
85462002-11-08 Juanma Barranquero <lektu@terra.es>
8547
8548 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
8549 window.
8550
85512002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8552
6bdb309a 8553 * process.c (Fformat_network_address): Remove unused locals p,
048addec
JD
8554 cp, and i.
8555
85562002-11-06 Dave Love <fx@gnu.org>
8557
8558 * buffer.c (Qset_buffer_major_mode_hook): New.
8559 (Fset_buffer_major_mode): Use it.
8560
85612002-11-06 Richard M. Stallman <rms@gnu.org>
8562
8563 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
8564 and stop_polling.
8565
8566 * process.c (wait_reading_process_input):
8567 Test POLLING_PROBLEM_IN_SELECT, not hpux.
8568 Avoid initialization for auto Lisp_Object var.
8569
8570 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
8571
8572 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
8573
85742002-11-05 Richard M. Stallman <rms@gnu.org>
8575
8576 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
8577
8578 * callint.c (Fcall_interactively): New local filter_specs.
8579 (Fcall_interactively): Check for progn as well as let.
8580 Add a gcpro.
8581 (Qprogn): New variable.
8582 (syms_of_callint): Staticpro and init Qprogn.
8583
85842002-11-04 John Paul Wallington <jpw@shootybangbang.com>
8585
8586 * lread.c (Feval_buffer): Doc fix.
8587
85882002-11-04 Dave Love <fx@gnu.org>
8589
8590 * keyboard.c (read_char): Always translate iff
8591 Vkeyboard_translate_table is a char table and c is valid.
8592
8593 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
8594 and fix C types.
8595
85962002-11-03 Stefan Monnier <monnier@cs.yale.edu>
8597
8598 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
8599
8600 * editfns.c (get_pos_property): Don't hardcode Qfield.
8601
8602 * keyboard.c (adjust_point_for_property): Handle `display' prop on
8603 overlays. Also handle `invisible' prop.
8604
86052002-11-02 Stefan Monnier <monnier@cs.yale.edu>
8606
8607 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
8608 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
8609
86102002-11-01 Andreas Schwab <schwab@suse.de>
8611
8612 * editfns.c (Fmessage): Revert last change to properly handle %%.
8613
86142002-11-01 Stefan Monnier <monnier@cs.yale.edu>
8615
8616 * xmenu.c (unuse_menu_items): New fun.
8617 (menu_items_inuse): New var.
8618 (syms_of_xmenu): Initialize it.
8619 (init_menu_items): Use it to detect re-entrance.
8620 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
8621 (Fx_popup_menu): Remove spurious XSETFRAME.
8622
8623 * editfns.c (find_field): Make an exception for nil fields.
8624
86252002-11-01 Dave Love <fx@gnu.org>
8626
8627 * m/gec63.h: Deleted.
8628
86292002-10-31 Dave Love <fx@gnu.org>
8630
8631 * xterm.c (XTread_socket): Fix last change.
8632 (xaw_scroll_callback): Cast call_data to long to avoid warning.
8633
86342002-10-31 Stefan Monnier <monnier@cs.yale.edu>
8635
8636 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
8637
86382002-10-30 Stefan Monnier <monnier@cs.yale.edu>
8639
8640 * editfns.c (overlays_around, get_pos_property): New funs.
8641 (find_field): Use them.
8642 Also be careful not to modify POS before its last use.
8643 (Fmessage): Don't Fformat if there's nothing to format.
8644
86452002-10-30 Dave Love <fx@gnu.org>
8646
8647 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
8648 [HAVE_PTY_H]; Include pty.h.
8649
8650 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
8651
8652 * xterm.c (Qeql): Declare.
8653 (Vx_keysym_table): New.
8654 (syms_of_xterm): Initialize it.
8655 (XTread_socket): Use it. Deal with ASCII keysyms.
8656 (XSetIMValues) [HAVE_X11R6]: Prototype.
8657
8658 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
8659 (lispy_kana_keys): Comment out.
8660 (make_lispy_event) [XK_kana_A]: Comment out.
8661 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
8662 Fix sprintf call.
8663
8664 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
8665 regexp.h change).
8666 (TERMINFO, LIBS_TERMCAP): Define.
8667
8668 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
8669 (bcmp): Define conditional on HAVE_BCMP.
8670 (NO_SIOCTL_H): Don't define.
8671 (TIOCSIGSEND): Don't make conditional on IRIX6.
8672
8673 * s/sol2-5.h: Don't include strings.h.
8674 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
8675
8676 * s/irix6-0.h (IRIX6): Don't define.
8677 (bcopy, bcmp, bzero): Don't undef.
8678
8679 * s/irix6-5.h: Don't include strings.h.
8680 (IRIX6): Don't define.
8681 (bcopy, bcmp, bzero): Don't undef.
8682
8683 * syntax.c (Fforward_comment): Doc fix.
8684
86852002-10-29 Kim F. Storm <storm@cua.dk>
8686
8687 * process.c (Fsignal_process): Allow PROCESS to be specified by
8688 name in addition to pid (as integer or string).
8689
86902002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
8691
8692 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
8693 environments.
8694
86952002-10-27 Kim F. Storm <storm@cua.dk>
8696
8697 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
8698
8699 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
8700
8701 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
8702
8703 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
8704
87052002-10-26 Richard M. Stallman <rms@gnu.org>
8706
8707 * editfns.c (Fformat): Detect invalid format letters for floats.
8708
87092002-10-25 Kenichi Handa <handa@m17n.org>
8710
8711 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
8712 (x_set_title): Likewise.
8713
87142002-10-25 Juanma Barranquero <lektu@terra.es>
8715
8716 * macgui.h:
8717 * w32gui.h: Remove definition of XColor.
8718
8719 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
8720
87212002-10-24 Kim F. Storm <storm@cua.dk>
8722
8723 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
8724 Callers changed (supply dummy arg).
8725
8726 * lisp.h (get_window_cursor_type): Update prototype.
8727
8728 * w32term.c (x_display_and_set_cursor): Get active_cursor from
8729 get_window_cursor_type to track system caret.
8730
87312002-10-24 Kim F. Storm <storm@cua.dk>
8732
8733 * process.c (Fformat_network_address): New function.
8734 (syms_of_process): Defsubr it.
8735 (list_processes_1): Use it to format :local/:remote address if
f9711de4 8736 service/host is not set; before Emacs would crash in that case.
048addec
JD
8737 (Fmake_network_process): Don't use Ffind_operation_coding_system
8738 to setup coding system if host or service is not set.
8739
87402002-10-23 Juanma Barranquero <lektu@terra.es>
8741
8742 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
8743
8744 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
8745 COLORREF.
8746
8747 * macgui.h:
8748 * w32gui.h: Add definition of XColor.
8749
8750 * macfns.c:
8751 * w32fns.c:
8752 * xfaces.c: Remove definition of XColor.
8753
87542002-10-22 Stefan Monnier <monnier@cs.yale.edu>
8755
8756 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
8757
8758 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
8759 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
8760 window if it is dedicated.
8761 (Fshrink_window): Add preserve_before as was done for enlarge_window.
8762 (Vspecial_display_function): Update docstring.
8763
8764 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
8765 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
8766 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
8767
87682002-10-21 Stefan Monnier <monnier@cs.yale.edu>
8769
8770 * casefiddle.c (casify_region): Don't treat a prefix char as part
8771 of a word when at the beginning.
8772
87732002-10-17 Juanma Barranquero <lektu@terra.es>
8774
8775 * lread.c (syms_of_lread): Fix typos.
8776
87772002-10-17 Dave Love <fx@gnu.org>
8778
8779 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
8780
87812002-10-16 Richard M. Stallman <rms@gnu.org>
8782
8783 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
8784
87852002-10-14 Juanma Barranquero <lektu@terra.es>
8786
8787 * w16select.c (syms_of_win16select): Fix docstring for
8788 `selection-coding-system'.
8789
8790 * w32select.c (syms_of_w32select): Likewise.
8791
87922002-10-14 Stefan Monnier <monnier@cs.yale.edu>
8793
8794 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
8795 a backslash-quoted char.
8796 (scan_lists, scan_sexps_forward): Pacify the compiler.
8797
87982002-10-13 Richard M. Stallman <rms@gnu.org>
8799
8800 * window.c (window_scroll): Set immediate_quit.
8801
8802 * print.c (print): When backquote form is the car of a list,
8803 output in old style. Use old_backquote_output to output all
8804 comma forms inside it in old style too.
8805
8806 * buffer.h (struct buffer): Move `undo_list' down below `name'.
8807
88082002-10-11 Markus Rost <rost@math.ohio-state.edu>
8809
8810 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
8811 batch mode).
8812
8813 * lread.c (Fload): Doc fix (load-suffixes).
8814
88152002-10-10 Steven Tamm <steventamm@mac.com>
8816
8817 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
8818 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
8819 Also switch the default to Qnil from Qt.
8820
88212002-10-08 Kenichi Handa <handa@m17n.org>
8822
8823 * coding.c (code_convert_region): When we need more GAP for
8824 conversion, pay attention to the case that coding->produced is not
8825 greater than coding->consumed.
8826
88272002-10-07 Richard M. Stallman <rms@gnu.org>
8828
8829 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
8830
88312002-10-06 Andrew Choi <akochoi@shaw.ca>
8832
8833 * macmenu.c (mac_menu_show): Add j to count menu items; match
8834 menu_item_selection to it to find selected item.
8835
88362002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8837
8838 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
8839 cases. The correct fix is to pass ReparentNotify to Xt.
8840 The shell widget interprets ConfigureNotify differently depending
8841 on if it has been reparented or not.
8842
88432002-10-05 Markus Rost <rost@math.ohio-state.edu>
8844
8845 * editfns.c (Fformat_time_string): Doc fix.
8846
88472002-10-05 John Paul Wallington <jpw@shootybangbang.com>
8848
8849 * fns.c (Flength): Doc fix.
8850
88512002-10-04 Stefan Monnier <monnier@cs.yale.edu>
8852
8853 * keyboard.c (keyremap): New struct.
8854 (read_key_sequence): Use it: globally replace keytran_foo with
8855 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
8856 keytran_next and fkey_next to just `next'.
8857
88582002-10-04 Steven Tamm <steventamm@mac.com>
8859
8860 * macterm.c (keycode_to_xkeysym_table): Change return to be
8861 treated like an X keysym.
8862
88632002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8864
8865 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
8866 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
8867 This is to also handle x/y changes that occur because of a resize.
8868
88692002-10-02 John Paul Wallington <jpw@shootybangbang.com>
8870
8871 * frame.c (Vdelete_frame_functions): New variable.
8872 (syms_of_frame): Initialize and defvar it.
8873 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
8874 it when frame's `tooltip' parameter is non-nil.
8875
8876 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
8877
8878 * w32fns.c (x_create_tip_frame): Likewise.
8879
8880 * macfns.c (x_create_tip_frame): Likewise.
8881
88822002-09-30 Kenichi Handa <handa@m17n.org>
8883
8884 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
8885 -1 before calling ccl_driver.
8886
8887 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
8888 Only when it is non-nil, handle composition sequence.
8889 (setup_coding_system) <0>: Don't force composition handling.
8890
8891 * Makefile.in (lisp, shortlisp): Add utf-16.elc
8892
88932002-09-29 Richard M. Stallman <rms@gnu.org>
8894
8895 * search.c (Freplace_match): Adjust match data for the substitution
8896 just made in the buffer.
8897
8898 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
8899 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
8900
89012002-09-27 Richard M. Stallman <rms@gnu.org>
8902
8903 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
8904 (read_char): Use them. Do all exits thru the end of the function.
8905
89062002-09-27 Kenichi Handa <handa@etl.go.jp>
8907
8908 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
8909 is nil.
8910
89112002-09-26 Richard M. Stallman <rms@gnu.org>
8912
8913 * regex.h (__restrict_arr): Don't define if already defined.
8914
8915 * coding.c (run_pre_post_conversion_on_str):
8916 Save and restore Vdeactivate_mark.
8917
89182002-09-26 John Paul Wallington <jpw@shootybangbang.com>
8919
8920 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
8921
89222002-09-26 Kenichi Handa <handa@etl.go.jp>
8923
8924 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
8925 nonzero, try face's family at first. Otherwise try FAMILY at first.
8926 (choose_face_font): If C is a single byte char or latin-1, call
8927 try_font_list with PREFER_FACE_FAMILY 1.
8928
89292002-09-21 Richard M. Stallman <rms@gnu.org>
8930
8931 * window.c (select_window_1): Don't select frame.
8932 Set frame's selected window only when frame itself is selected.
8933 (Fselect_window): Doc fix.
8934
89352002-09-18 Kim F. Storm <storm@cua.dk>
8936
8937 * process.c (make-network-process): Doc fix (there is no
8938 network-server-log-function hook).
8939
89402002-09-18 Richard M. Stallman <rms@gnu.org>
8941
8942 * print.c (print): Clear out the unused parts of Vprint_number_table.
8943 (syms_of_print): Doc fix for `print-number-table'.
8944
8945 * unexelf.c (unexec): Undo previous change.
8946
89472002-09-17 Andreas Schwab <schwab@suse.de>
8948
8949 * m/alpha.h [LINUX]: Don't define DATA_START.
8950
89512002-09-16 Dave Love <fx@gnu.org>
8952
8953 * unexelf.c (unexec): Deal with .got, reinstating change from
8954 25-08-1999.
8955
89562002-09-13 Richard M. Stallman <rms@gnu.org>
8957
8958 * s/sol2-6.h (UNEXEC): Comment out definition.
8959
8960 * unexsol.c (unexec): Don't downcase first letter of error msg.
8961
8962 * xfaces.c (Fcolor_supported_p): Just one arg is required.
8963
89642002-09-12 Markus Rost <rost@math.ohio-state.edu>
8965
8966 * unexsol.c: Include buffer.h, charset.h, coding.h.
8967
89682002-09-11 Richard M. Stallman <rms@gnu.org>
8969
8970 * unexsol.c: Don't use report_file_error; do it by hand
8971 using dlerror.
8972
8973 * process.c (wait_reading_process_input, both versions):
8974 Before calling turn_on_atimers, call stop_polling.
8975
8976 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
8977
8978 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
8979 we go to too_near_end, call clear_glyph_matrix.
8980 (redisplay_window): After make_cursor_line_fully_visible,
8981 call clear_glyph_matrix and bypass `goto done'.
8982
8983 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
8984 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
8985
89862002-09-10 Richard M. Stallman <rms@gnu.org>
8987
8988 * fileio.c (Fdo_auto_save): Catch error making directory.
8989 Only call push_message if we need to.
8990 At the same time, make an unwind-protect to pop it.
8991 Rename local message_p to old_message_p.
8992 (do_auto_save_make_dir, do_auto_save_eh): New functions.
8993 (do_auto_save_unwind): Don't call pop_message.
8994
8995 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
8996
8997 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
8998
8999 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
9000
9001 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
9002
90032002-09-10 Stefan Monnier <monnier@cs.yale.edu>
9004
9005 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
9006 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
9007 (re_match_2_internal): Be more careful with infinite loops.
9008
90092002-09-10 Kim F. Storm <storm@cua.dk>
9010
9011 * macros.c (end_kbd_macro): New function.
9012 (Fend_kbd_macro): Use it.
9013
9014 * macros.h (end_kbd_macro): Declare extern.
9015
9016 * keyboard.c (Fdiscard_input): If defining keyboard macro,
9017 end and save it instead of discarding it.
9018
90192002-09-09 Markus Rost <rost@math.ohio-state.edu>
9020
9021 * s/sol2-6.h: Fix typo. Add comment.
9022
90232002-09-09 Richard M. Stallman <rms@gnu.org>
9024
9025 * regex.c (regnum_t): Use signed int, not unsigned int.
9026
9027 * s/sol2-6.h: New file.
9028
9029 * s/sol2-5.h (UNEXEC): Definition deleted.
9030
90312002-09-08 Kim F. Storm <storm@cua.dk>
9032
9033 * macros.c (executing_macro_index): Change type to EMACS_INT.
9034 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
9035
9036 * macros.h (executing_macro_index): Change type to EMACS_INT.
9037
90382002-09-06 Richard M. Stallman <rms@gnu.org>
9039
9040 * casetab.c (set_case_table): Make canon table point to eqv table.
9041
90422002-09-06 Juanma Barranquero <lektu@terra.es>
9043
9044 * coding.c (syms_of_coding): Fix spacing.
9045
9046 * composite.c (Fcompose_region_internal)
9047 (Fcompose_string_internal): Likewise.
9048
9049 * data.c (Flsh): Likewise.
9050
9051 * fontset.c (Fset_fontset_font): Likewise.
9052
9053 * macfns.c (Fx_server_max_request_size): Likewise.
9054
9055 * w16select.c (syms_of_win16select): Likewise.
9056
9057 * w32select.c (syms_of_w32select): Likewise.
9058
9059 * xselect.c (syms_of_xselect): Likewise.
9060
90612002-09-05 Richard M. Stallman <rms@gnu.org>
9062
9063 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
9064 call EXTEND_RANGE_TABLE and return a proper value.
9065 (set_image_of_range): Don't call set_image_of_range_1
9066 if no TRANSLATE or if range includes all of Latin-1.
9067 Only call it for the Latin-1 part of the range.
9068 For other cases, make two separate ranges,
9069 one for the original specified characters and one for
9070 their case-conversions.
9071
90722002-09-04 Richard M. Stallman <rms@gnu.org>
9073
9074 * s/sol2-5.h (UNEXEC): Use unexsol.o.
9075
9076 * window.c (displayed_window_lines): Correct for one-off bug
9077 in HEIGHT on non-window displays.
9078
9079 * regex.c (set_image_of_range_1): New function.
9080 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
9081 Return a value to indicate running out of memory.
9082 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
9083 (extend_range_table_work_area): New subroutine.
9084 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
9085 Different calling conventions, and used from set_image_of_range{,_1}.
9086 (IMMEDIATE_QUIT_CHECK): Definitions moved.
9087
90882002-09-04 Juanma Barranquero <lektu@terra.es>
9089
9090 * makefile.w32-in: All dependencies updated.
9091
90922002-09-01 Richard M. Stallman <rms@gnu.org>
9093
9094 * unexsol.c: New file.
9095
9096 * xfns.c (Qbox): Declare external, don't define.
9097
9098 * xdisp.c (redisplay_window) <force-start case>:
9099 If point is on semi-visible last line, reposition
9100 it at previous line.
9101
9102 * alloc.c (display_malloc_warning): Use display-warning.
9103 (malloc_warning_1): Function deleted.
9104
9105 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
9106
9107 * lread.c (read1): Handle #! by skipping the line.
9108
91092002-08-31 Richard M. Stallman <rms@gnu.org>
9110
9111 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
9112 Don't include LDFLAGS.
9113 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
9114
91152002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
9116
9117 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
9118 member of x_display_info unless we compile for some window system.
9119
91202002-08-31 Kim F. Storm <storm@cua.dk>
9121
9122 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
9123 (get_window_cursor_type): Don't use them.
9124 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
9125
91262002-08-30 Kenichi Handa <handa@etl.go.jp>
9127
9128 * xdisp.c (get_next_display_element): Fix previous change.
9129
91302002-08-30 Andrew Choi <akochoi@shaw.ca>
9131
9132 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
9133 (expose_window): Use it to fix the display of overlapping
9134 rows (merge code from xterm.c).
9135
9136 * macfns.c (Qbox): Add extern declaration.
9137
91382002-08-30 Juanma Barranquero <lektu@terra.es>
9139
9140 * w32fns.c (Qbox): Make extern.
9141 (syms_of_w32fns): Remove initialization of Qbox.
9142
91432002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
9144
9145 * xfns.c (Fx_open_connection): Fix error message.
9146
91472002-08-30 Kim F. Storm <storm@cua.dk>
9148
9149 The following changes consolidates the handling of the cursor
9150 type in xdisp.c, moving duplicate code and functionality from
9151 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
9152
9153 * frame.h (enum text_cursor_kinds): Consolidated here.
9154 Added DEFAULT_CURSOR value.
9155 (struct frame) <desired_cursor, cursor_width>
9156 <blink_off_cursor, blink_off_cursor_width>: New fields.
9157 Consolidated from output_x, output_w32 and output_mac structs.
9158 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
9159 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
9160
9161 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
9162 Variables consolidated here.
9163 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
9164 (Vcursor_in_non_selected_windows): Renamed from
9165 cursor_in_non_selected_windows and changed to Lisp_Object.
9166 (syms_of_xdisp): Define and staticpro new and moved variables.
9167 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
9168 consolidated here. Recognize Qhollow setting.
9169 (set_frame_cursor_types): New function to set frame cursor types
9170 based on the frame parameters.
9171 (get_window_cursor_type): New function to calculate new cursor
9172 type and width for the specified window. Based on duplicated
9173 code consolidated here.
9174 Enhancements: cursor-in-non-selected-windows may be a cursor type,
9175 check buffer-local alternate-cursor-type and blink-cursor-alist
9176 before using built-in blink off methods.
9177
9178 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
9179
9180 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
9181 (get_specified_cursor_type, get_window_cursor_type)
9182 (set_frame_cursor_types): Added prototypes.
9183
9184 * macfns.c (x_specified_cursor_type): Removed.
9185 (x_set_cursor_type): Use set_frame_cursor_types.
9186 (Qbar, Qbox): Removed.
9187 (syms_of_macfns): Don't intern or staticpro them.
9188
9189 * macterm.c (x_specified_cursor_type): Remove prototype.
9190 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
9191 (x_display_and_set_cursor): Use get_window_cursor_type.
9192 Remove unused local variables cursor_non_selected, active_cursor.
9193 Redraw cursor if hbar cursor width changes.
9194 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
9195
9196 * macterm.h (enum text_cursor_kinds): Removed.
9197 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
9198 <blink_off_cursor, blink_off_cursor_width>: Members removed.
9199 (FRAME_DESIRED_CURSOR): Macro removed.
9200
9201 * w32fns.c (Vblink_cursor_alist): Removed.
9202 (Qbar, Qhbar, Qbox, Qhollow): Removed.
9203 (syms_of_w32fns): Don't intern, staticpro, or define them.
9204 (x_specified_cursor_type): Removed.
9205 (x_set_cursor_type): Use set_frame_cursor_types.
9206
9207 * w32term.c (x_specified_cursor_type): Remove prototype.
9208 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
9209 (x_display_and_set_cursor): Use get_window_cursor_type.
9210 Remove unused local variables cursor_off_state.
9211 Redraw cursor if hbar cursor width changes.
9212 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
9213
9214 * w32term.h (enum text_cursor_kinds): Removed.
9215 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
9216 <blink_off_cursor, blink_off_cursor_width>: Members removed.
9217 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
9218 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
9219 (struct w32_display_info) <x_highlight_frame>: Renamed member from
9220 w32_highlight_frame.
9221
9222 * xfns.c (Vblink_cursor_alist): Removed.
9223 (Qbar, Qhbar, Qbox, Qhollow): Removed.
9224 (syms_of_xfns): Don't intern, staticpro, or define them.
9225 (x_specified_cursor_type): Removed.
9226 (x_set_cursor_type): Use set_frame_cursor_types.
9227
9228 * xterm.c (x_specified_cursor_type): Remove prototype.
9229 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
9230 (x_display_and_set_cursor): Use get_window_cursor_type.
9231 Remove unused local variables cursor_off_state.
9232 Redraw cursor if hbar cursor width changes.
9233
9234 * xterm.h (enum text_cursor_kinds): Removed.
9235 (struct output_x) <current_cursor, desired_cursor, cursor_width>
9236 <blink_off_cursor, blink_off_cursor_width>: Members removed.
9237 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
9238 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
9239 (x_specified_cursor_type): Remove prototype.
9240
92412002-08-28 Richard M. Stallman <rms@gnu.org>
9242
9243 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
9244 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
9245 (Vblink_cursor_alist): New variable.
9246 (syms_of_w32fns): Initialize and defvar it.
9247 (x_specified_cursor_type): Recognize Qbox for filled box.
9248 Exceptions are hollow boxes.
9249 (Qbox, Qhollow): New variables.
9250 (syms_of_w32fns): Initialize and staticpro them.
9251
9252 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
9253 New macros.
9254 (struct w32_output): New fields blink_off_cursor,
9255 blink_off_cursor_width.
9256 (FRAME_CURSOR_WIDTH): New macro.
9257
9258 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
9259 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
9260
9261 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
9262 for bar cursor.
9263
9264 * w32term.c (expose_overlaps): New function.
9265 (expose_window): Use it to fix the display of overlapping rows.
9266
92672002-08-28 Simon Josefsson <jas@extundo.com>
9268
9269 * xfns.c (Fx_open_connection): Improve help when X connection
9270 fails, xhost is insecure and xauth is better.
9271
92722002-08-28 Juanma Barranquero <lektu@terra.es>
9273
9274 * makefile.w32-in: Add missing dependencies on w32term.h and
9275 composite.h.
9276
9277 * emacs.c (USAGE1): Add missing newline.
9278
92792002-08-27 Andrew Choi <akochoi@shaw.ca>
9280
9281 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
9282
92832002-08-27 Richard M. Stallman <rms@gnu.org>
9284
9285 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
9286 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
9287 (Vblink_cursor_alist): New variable.
9288 (syms_of_xfns): Initialize and defvar it.
9289 (x_specified_cursor_type): Recognize Qbox for filled box.
9290 Exceptions are hollow boxes.
9291 (Qbox, Qhollow): New variables.
9292 (syms_of_xfns): Initialize and staticpro them.
9293
9294 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
9295 New macros.
9296 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
9297
9298 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
9299 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
9300
9301 * emacs.c (main): Handle --script.
9302 (USAGE1): Mention --script.
9303 (standard_args): Define sort order for --script.
9304
93052002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
9306
9307 * xdisp.c (redisplay_updating_p): Variable removed.
9308 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
9309 New variables.
9310 (init_iterator): Don't free realized faces if
9311 inhibit_free_realized_faces is set.
9312 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
9313 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
9314 initialize Qinhibit_free_realized_faces.
9315
9316 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
9317 when iterator is adding glyphs to a glyph matrix.
9318
93192002-08-27 Kenichi Handa <handa@etl.go.jp>
9320
9321 * xdisp.c (get_next_display_element): In unibyte case, don't use
9322 octal form for such eight-bit characters that can be converted to
9323 multibyte char.
9324
93252002-08-26 Kim F. Storm <storm@cua.dk>
9326
9327 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize foreground
9328 and background colors. From Joe Buehler (tiny change).
9329
93302002-08-26 Miles Bader <miles@gnu.org>
9331
9332 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
9333
93342002-08-25 Andrew Choi <akochoi@shaw.ca>
9335
9336 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
9337 defined instead of MAC_OSX.
9338
9339 * s/darwin.h (select): Define select to sys_select only if
9340 HAVE_CARBON is defined.
9341 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
9342 (DONT_REOPEN_PTY): #def it.
9343
9344 * macterm.c (XTread_socket): Remove code to call
9345 SendEventToEventTarget for keys with command modifiers when
9346 mac_command_key_is_meta is nil.
9347
93482002-08-24 Andreas Schwab <schwab@suse.de>
9349
9350 * eval.c (Fdefvar): Fix last change.
9351
93522002-08-23 Richard M. Stallman <rms@gnu.org>
9353
9354 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
9355 Record variables in load history as (defvar . VAR).
9356 (Fdefvar): Don't record in load history if no initial value.
9357 (Qdefvar): New variable.
9358 (syms_of_eval): Init and staticpro it.
9359
9360 * lread.c (syms_of_lread): Doc fix.
9361 (build_load_history): Use Fmember to see if a definition
9362 is already in the Vload_history element.
9363
9364 * process.c (Fstart_process): Remove /: from program name.
9365
9366 * emacs.c (decode_env_path): Don't add /: if file name handler
9367 has a `safe-magic' property.
9368
9369 * callproc.c (Fcall_process): Remove /: from program name.
9370
93712002-08-23 Stefan Monnier <monnier@cs.yale.edu>
9372
9373 * regex.c (PATFETCH): Remove the translating fetch.
9374 (PATFETCH_RAW): Rename to PATFETCH.
9375 (set_image_of_range): New fun.
9376 (SET_RANGE_TABLE_WORK_AREA): Use it.
9377 (regex_compile): Don't translate the pattern chars so eagerly.
9378 Only do it when inserting an `exactn' bytecode or when handling
9379 a char-range.
9380 (mutually_exclusive_p): Avoid empty statement.
9381
93822002-08-22 Kim F. Storm <storm@cua.dk>
9383
9384 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
9385 end up on a partially visible line; this reverts a specific part
9386 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
9387 display error which has been reported several times now.
9388 However it introduces the problem that changes was supposed to fix.
9389 See my comments in the source if you want to debug this further.
9390
93912002-08-20 Kenichi Handa <handa@etl.go.jp>
9392
9393 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
9394
93952002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
9396
9397 * msdos.c (croak): Add `void' to definition.
9398
c1380aa6 9399 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
048addec
JD
9400 Don't define them, they are defined in msdos.c.
9401
9402 * mem-limits.h [MSDOS]: Declare etext.
9403
9404 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
9405 `const' since CORRECT_DIR_SEPS modifies its target.
9406
94072002-08-19 Kim F. Storm <storm@cua.dk>
9408
2fb0ce67 9409 * keyboard.c (Fclear_this_command_keys): Add optional arg
048addec
JD
9410 KEEP-RECORD to avoid clearing lossage when we just want to clear
9411 the current key sequence (kmacro needs this).
9412
94132002-08-19 Kenichi Handa <handa@localhost>
9414
9415 * composite.c (run_composition_function): Call FUNC if it is fboundp.
9416
9417 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
9418 cons, return Qnil.
9419
94202002-08-17 Richard M. Stallman <rms@gnu.org>
9421
9422 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
9423
9424 * sysdep.c [!VMS]: Include sys/files.h.
9425
9426 * editfns.c (save_restriction_restore): Defend from unchained marker.
9427
9428 * buffer.c (overlays_at): Handle extending vec uniformly.
9429 (overlays_in): Handle extending vec from length 0 as in overlays_at.
9430
94312002-08-15 Andrew Choi <akochoi@shaw.ca>
9432
9433 * mac.c (init_mac_osx_environment): New function.
9434
9435 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
9436
94372002-08-14 Kim F. Storm <storm@cua.dk>
9438
9439 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
9440 executing macro before appending to it (when used from Lisp).
9441 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
9442 which is called prior to each iteration of macro (for kmacro.el).
9443 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
9444
9445 * lisp.h (Fexecute_kbd_macro): Update prototype.
9446
9447 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
9448
94492002-08-14 Kenichi Handa <handa@etl.go.jp>
9450
9451 * xselect.c (QUTF8_STRING): New variable.
9452 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
9453 (x_atom_to_symbol): Likewise.
9454 (x_get_local_selection): New argument local_request. If it is
9455 nonzero, call handler_fn with the second arg nil.
9456 (x_handle_selection_request): Call x_get_local_selection with
9457 local_request 0.
9458 (lisp_data_to_selection_data): Don't encode the string here.
9459 (Fx_get_selection_internal): Call x_get_local_selection with
9460 local_request 1.
9461 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
9462
9463 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
9464
9465 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
9466
94672002-08-13 Richard M. Stallman <rms@gnu.org>
9468
9469 * minibuf.c (Fminibufferp): New function.
9470 (syms_of_minibuf): Defsubr it.
9471 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
9472
94732002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
9474
9475 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
9476
94772002-08-12 Richard M. Stallman <rms@gnu.org>
9478
9479 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
9480 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
9481 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
9482 already.
9483
9484 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
9485
94862002-08-11 Andrew Choi <akochoi@shaw.ca>
9487
9488 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
9489 (Vmac_pass_command_to_system): New variable.
9490 (Vmac_pass_control_to_system): New variable.
9491 (do_mouse_moved): Check wp with is_emacs_window.
9492 (XTread_socket): Check window_ptr with is_emacs_window.
9493 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
9494 events back to Mac Toolbox for processing, depending on values of
9495 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
9496 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
9497 Vmac_pass_control_to_system.
9498
94992002-08-10 Kenichi Handa <handa@etl.go.jp>
9500
9501 * coding.c (unencodable_char_position): New function.
9502 (Funencodable_char_position): New function.
9503 (syms_of_coding): Defsubr Funencodable_char_position.
9504
95052002-08-10 Andrew Choi <akochoi@shaw.ca>
9506
9507 * mac.c (sys_select) [MAC_OSX]: New function.
9508
9509 * macterm.c (MakeMeTheFrontProcess): New function.
9510 (mac_initialize): Call MakeMeTheFrontProcess.
9511
9512 * s/darwin.h: Define select to sys_select.
9513
95142002-08-09 Richard M. Stallman <rms@gnu.org>
9515
9516 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
9517
95182002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
9519
9520 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
9521 end of the buffer.
9522
95232002-08-08 Ken Raeburn <raeburn@mit.edu>
9524
9525 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
9526
9527 * puresize.h (BASE_PURESIZE): Increase to 910000.
9528
95292002-08-08 Kenichi Handa <handa@etl.go.jp>
9530
9531 * coding.c (Ffind_operation_coding_system): For write-region, if
9532 VISIT is a filename, make it the target.
9533
95342002-08-07 Richard M. Stallman <rms@gnu.org>
9535
9536 * alloc.c (mark_object): Detect long lists for debugging.
9537 (mark_object_loop_halt): New variable.
9538
9539 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
9540
9541 * data.c (Fmake_variable_frame_local): Doc fix.
9542
95432002-08-01 David Ponce <david@dponce.com>
9544
9545 * w32menu.c (local_heap, local_alloc, local_free): New macros.
9546 (malloc_widget_value, free_widget_value)
9547 (w32_free_submenu_strings): Use them.
9548
9549 (push_submenu_start, push_submenu_end, push_left_right_boundary)
9550 (push_menu_pane, push_menu_item, single_keymap_panes)
9551 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
9552 (single_submenu, set_frame_menubar)
9553 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
9554
9555 (Fx_popup_menu): Don't show pop up menu until preceding one is
9556 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
9557
9558 * w32menu.c: Changes adapted from xmenu.c
9559 (set_frame_menubar): First parse all submenus,
9560 then make widget_value trees from them.
9561 Don't allocate any widget_value objects
9562 until we are done with the parsing.
9563 (parse_single_submenu): New function.
9564 (digest_single_submenu): New function.
9565 (single_submenu): Function deleted, replaced by those two.
9566
95672002-08-04 Andrew Choi <akochoi@shaw.ca>
9568
9569 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
9570 returns a valid window pointer before proceeding for keyDown and
9571 autoKey events.
9572
95732002-08-03 Andrew Choi <akochoi@shaw.ca>
9574
9575 * macterm.c (USE_CARBON_EVENTS): New macro.
9576 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
9577 (x_iconify_frame): Call CollapseWindow.
9578 (Vmac_reverse_ctrl_meta): New variable.
9579 (Vmac_wheel_button_is_mouse_2): New variable.
9580 (init_mac_drag_n_drop): New function.
9581 (mac_do_receive_drag): New function.
9582 (mac_handle_service_event): New function.
9583 (init_service_handler): New function.
9584 (mac_to_emacs_modifiers): New function.
9585 (mac_event_to_emacs_modifiers): New function.
9586 (mac_get_mouse_btn): New function.
9587 (mac_convert_event_ref): New function.
9588 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
9589 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
9590 mac_get_mouse_btn.
9591 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
9592
9593 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
9594 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
9595 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
9596 TOOL_BAR_EVENT for MAC_OS as well.
9597 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
9598 as for WINDOWS_NT.
9599 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
9600
9601 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
9602
96032002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
9604
9605 * xdisp.c (forward_to_next_line_start): Fix a condition that
9606 lead to a newline being skipped.
9607
96082002-08-02 Andrew Choi <akochoi@shaw.ca>
9609
9610 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
9611
96122002-08-01 Richard M. Stallman <rms@gnu.org>
9613
9614 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
9615
96162002-07-31 Andrew Choi <akochoi@shaw.ca>
9617
9618 * macfns.c: #undef init_process before #define-ing it.
9619
9620 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
9621 HAVE_CARBON is defined.
9622
96232002-07-31 Richard M. Stallman <rms@gnu.org>
9624
9625 * xmenu.c (set_frame_menubar): First parse all submenus,
9626 then make widget_value trees from them.
9627 Don't allocate any widget_value objects
9628 until we are done with the parsing.
9629 (parse_single_submenu): New function.
9630 (digest_single_submenu): New function.
9631 (single_submenu): Function deleted, replaced by those two.
9632
96332002-07-30 Juanma Barranquero <lektu@terra.es>
9634
9635 * w32proc.c (syms_of_ntproc): Fix docstring of
9636 `w32-get-true-file-attributes'.
9637
96382002-07-28 Richard M. Stallman <rms@gnu.org>
9639
9640 * s/hpux8.h (HPUX8): Define this before including hpux.h.
9641 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
9642
9643 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
9644
9645 * keyboard.c (make_lispy_event):
9646 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
9647 Explicitly clear up_modifier in event->modifiers.
9648
96492002-07-27 Richard M. Stallman <rms@gnu.org>
9650
9651 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
9652
9653 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
9654 for bar cursor.
9655
96562002-07-26 Kenichi Handa <handa@etl.go.jp>
9657
9658 * coding.c (detect_coding_iso2022): While checking a byte sequence
9659 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
9660 it in the normal loop.
9661
96622002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
9663
9664 * xterm.c (expose_overlaps): New function.
9665 (expose_window): Use it to fix the display of overlapping rows.
9666
9667 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
9668
96692002-07-23 Ken Raeburn <raeburn@gnu.org>
9670
9671 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
9672 since it only depends on XUINT.
9673
9674 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
9675 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
9676 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
9677 Macros deleted.
3947677c 9678
77d1daf2
AS
9679 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
9680 its value over other approaches.
9681 * sysdep.c (start_of_data): Don't define the function if a macro
9682 form has been defined.
8a8e19a3 9683
048addec
JD
96842002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
9685
9686 * xdisp.c (redisplay_updating_p): New variable.
9687 (init_iterator): Don't free realized faces when
9688 redisplay_updating_p is set.
9689 (redisplay_internal): Set redisplay_updating_p while updating
9690 the display.
9691
96922002-07-23 Richard M. Stallman <rms@gnu.org>
9693
9694 * editfns.c (Fmessage): Treat "" like nil.
9695
96962002-07-23 Kenichi Handa <handa@etl.go.jp>
9697
9698 * xdisp.c (face_before_or_after_it_pos):
9699 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
9700
97012002-07-22 Juanma Barranquero <lektu@terra.es>
9702
9703 * callproc.c (init_callproc) [DOS_NT]:
9704 Initialize Vshared_game_score_directory to nil.
9705 (syms_of_callproc) [DOS_NT]: Likewise.
9706
97072002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
9708
9709 * xdisp.c (display_line): Replace an abort with xassert.
9710
97112002-07-21 Richard M. Stallman <rms@gnu.org>
9712
9713 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
9714 and END_UNCHANGED when setting buffer_unchanged_p.
9715 Use current_matrix_up_to_date_p to decide whether to use
9716 try_cursor_movement.
9717
9718 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
9719
9720 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
9721
9722 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
9723 Set to nil if dir does not exist.
9724 (syms_of_callproc): Init unconditionally and simply.
9725
9726 * buffer.c (Fbuffer_list): Doc fix.
9727
97282002-07-21 Ken Raeburn <raeburn@gnu.org>
9729
9730 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
9731
9732 * buffer.c (mmap_realloc): When shrinking, make sure number of
9733 pages to unmap is rounded towards zero.
9734
9735 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
9736 (XSETINT): Deleted.
9737
9738 * m/att3b.h (XINT): Don't define.
9739 (VALBITS, VALMASK, XTYPE): Deleted.
9740 (DATA_SEG_BITS): Define.
9741 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
9742 ARRAY_MARK_FLAG): Deleted.
9743 (DATA_SEG_BITS): Define.
9744 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
9745 (DATA_SEG_BITS): Define.
9746
97472002-07-20 Richard M. Stallman <rms@gnu.org>
9748
9749 * print.c (print_error_message): New args CONTEXT and CALLER.
9750 Calls changed.
9751
9752 * lisp.h (print_error_message): Declare new args.
9753
9754 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
9755 and CONTEXT to print_error_message, don't print them here.
9756 For a Quit, don't use Vsignaling_function.
9757 Call message_log_maybe_newline.
9758
9759 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
9760
97612002-07-20 Kim F. Storm <storm@cua.dk>
9762
9763 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
9764
97652002-07-19 Ken Raeburn <raeburn@gnu.org>
9766
9767 * bytecode.c (struct byte_stack): Pointers into byte string now
9768 point to const.
9769 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
9770 const.
9771 * charset.h (BCOPY_SHORT): Source pointer now points to const.
9772 * coding.c (encode_eol, detect_coding, detect_eol):
9773 (decode_coding, encode_coding, detect_coding_system):
9774 Source strings now treated as const.
9775 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
9776 modify Lisp string contents.
9777 * coding.h (decode_coding, encode_coding, detect_coding,
9778 detect_eol): Declarations updated.
9779 * composite.c (compose_chars_in_text): Treat Lisp string contents
9780 as const.
9781 * dispnew.c (safe_bcopy): Source pointer now points to const.
9782 * lisp.h (STRING_COPYIN): New macro.
9783 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
9784 (internal_with_output_to_temp_buffer): Declarations updated.
9785 * print.c (temp_output_buffer_setup):
9786 (internal_with_output_to_temp_buffer): Buffer name argument is now
9787 pointer to const.
9788 * sound.c (struct sound_device): Function pointer field "write"
9789 buffer argument now points to const.
9790 (vox_write): Buffer argument points to const.
9791 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
9792 contents as const.
9793 * sysdep.c (emacs_write): Buffer pointer now const.
9794 * term.c (encode_terminal_code): Buffer pointer now const.
9795 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
9796 (x_face_list_fonts, x_update_menu_appearance):
9797 (hash_string_case_insensitive): Treat Lisp string contents as const.
9798
97992002-07-19 Juanma Barranquero <lektu@terra.es>
9800
048addec
JD
9801 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
9802
9803 * fileio.c (syms_of_fileio): Likewise.
c62aec78
JB
9804 (Ffile_name_as_directory): Fix argument name in docstring.
9805 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
048addec
JD
9806
98072002-07-18 Richard M. Stallman <rms@gnu.org>
9808
9809 * data.c (Fdefalias): Doc fix.
9810
98112002-07-17 Dave Love <fx@gnu.org>
9812
9813 * intervals.h (text_property_stickiness): Use P_.
9814
9815 * ccl.c: Remove `emacs' conditionals.
9816 (ccl_backtrace_table): Fix size spec.
9817 (ccl_driver): Fix type errors.
9818
98192002-07-16 Ken Raeburn <raeburn@gnu.org>
9820
9821 * alloc.c (xstrdup, make_string, make_unibyte_string)
9822 (make_multibyte_string, build_string): String pointer args now
9823 point to const.
9824 * charset.c (find_charset_in_text, c_string_width):
9825 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
9826 * fileio.c (report_file_error):
9827 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
9828 (count_combining_before, count_combining_after, insert_1_both):
9829 (insert, insert_and_inherit, insert_string):
9830 (insert_before_markers, insert_before_markers_and_inherit):
9831 * lread.c (intern, oblookup, hash_string):
9832 * minibuf.c (temp_echo_area_glyphs):
9833 * search.c (fast_c_string_match_ignore_case):
9834 * sysdep.c (emacs_open, set_file_times):
9835 * xfaces.c (xstricmp):
9836 * xdisp.c (store_frame_title, string_char_and_length):
9837 (message_dolog, message2, message2_nolog, set_message): Likewise.
9838 (set_message_1): Cast message string argument to const pointer.
9839 * editfns.c (general_insert_function): Insertion function now
9840 takes pointer to const for input data.
9841 * charset.h (find_charset_in_text, c_string_width):
9842 (parse_str_as_multibyte): Declarations updated.
9843 * dispextern.h (xstricmp): Declaration updated.
9844 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
9845 (count_size_as_multibyte, count_combining_before):
9846 (count_combining_after, insert_1, insert_1_both, message_dolog):
9847 (insert, insert_and_inherit, insert_before_markers)
9848 (insert_before_markers_and_inherit, set_message, message2):
9849 (message2_dolog, build_string, make_string, make_unibyte_string):
9850 (make_multibyte_string, intern, oblookup, report_file_error):
9851 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
9852 (emacs_open, xstrdup): Declarations updated.
9853 * systime.h (set_file_times): Declaration updated.
9854
9855 * charset.c (find_charset_in_text, lisp_string_width): Use const
9856 for pointer to lisp string data.
9857 * charset.h (FETCH_STRING_CHAR_ADVANCE):
9858 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
9859 * coding.c (Ffind_coding_systems_region_interval):
9860 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
9861 (Fmake_directory_internal, Fdelete_directory):
9862 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
9863 * fontset.c (font_family_registry, fs_query_fontset):
9864 (list_fontsets):
9865 * frame.c (Fframe_parameter):
9866 * keyboard.c (cmd_error_internal):
9867 * keymap.c (Fdescribe_buffer_bindings):
9868 * lread.c (complete_filename_p, openp):
9869 * minibuf.c (Fminibuffer_complete_word):
9870 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
9871 (face_before_or_after_it_pos, next_element_from_string):
9872 (get_overlay_arrow_glyph_row, display_mode_element):
9873 (decode_mode_spec_coding):
9874 * xterm.c (same_x_server): Likewise.
9875
9876 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
9877 settings of non-existent fields.
9878
9879 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
9880 copy a lisp value.
9881
9882 * lread.c (Fintern_soft): Use string macros instead of
9883 Lisp_String fields.
9884 * keyboard.c (echo_char, parse_modifiers_uncached):
9885 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
9886 * textprop.c (validate_interval_range, interval_of): Likewise.
9887
9888 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
9889
9890 * charset.h (FETCH_STRING_CHAR_ADVANCE)
9891 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
9892 XSTRING()->size_byte.
9893
9894 * lisp.h (SDATA, SREF): Produce rvalue.
9895 (SSET): New macro.
9896 * alloc.c (make_event_array): Use SSET for storing into a string.
9897 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
9898 a string.
9899 * casefiddle.c (casify_object): Use SSET.
9900 * charset.h (FETCH_STRING_CHAR_ADVANCE)
9901 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
9902 address of string contents.
9903 * data.c (Faref): Use SDATA.
9904 (Faset): Use SDATA, SSET.
9905 * dired.c (directory_files_internal): Use SSET.
9906 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
9907 (Fread_file_name): Use SREF, SSET.
9908 * fns.c (concat): Use SSET.
9909 (concat, Fdelete): Use SDATA.
9910 * insdel.c (insert_from_string_1): Use SDATA.
9911 * keyboard.c (Fevent_convert_list): Use SREF.
9912 * lread.c (Fload): Use SDATA, SSET.
9913 * macfns.c (validate_x_resource_name): Use SSET.
9914 * process.c (status_message): Use SSET.
9915 * search.c (wordify): Use SDATA.
9916 (Freplace_match): Use SREF.
9917 * w32fns.c (validate_x_resource_name): Use SSET.
9918 * xfns.c (validate_x_resource_name): Use SSET.
9919 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
9920
99212002-07-16 Richard M. Stallman <rms@gnu.org>
9922
9923 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
9924
9925 * xdisp.c (reconsider_clip_changes):
9926 Don't test prevent_redisplay_optimizations_p.
9927 (redisplay_internal): Test prevent_redisplay_optimizations_p
9928 along with clip_changed in some cases.
9929 (try_window_id): Likewise.
9930 (redisplay_window): New local var buffer_unchanged_p.
9931
9932 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
9933
9934 * process.c (create_process): Test USG_SUBTTY_WORKS.
9935 (process_send_signal): Clean up handling of GID.
9936 Detect errors in ioctls meant to set GID.
9937
9938 * window.c (temp_output_buffer_show):
9939 Don't set prevent_redisplay_optimizations_p.
9940
99412002-07-15 Juanma Barranquero <lektu@terra.es>
9942
9943 * eval.c (Fdefvaralias): Add docstring argument.
9944
99452002-07-15 Ken Raeburn <raeburn@gnu.org>
9946
9947 * lisp.h (STRING_INTERVALS): Produce rvalue.
9948 (STRING_SET_INTERVALS): New macro.
9949 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
9950 * fns.c (Fstring_as_multibyte): Likewise.
9951 * intervals.c (balance_possible_root_interval, delete_interval)
9952 (create_root_interval, copy_intervals_to_string): Likewise.
9953 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
9954 instead of 0.
9955
99562002-07-14 Ken Raeburn <raeburn@gnu.org>
9957
9958 * lisp.h (STRING_SET_CHARS): New macro.
9959 (SCHARS, SBYTES): Produce rvalues.
9960 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
9961 * fns.c (concat): Likewise.
9962 * lread.c (read_vector): Likewise.
9963
9964 * lisp.h (SMBP): Deleted. All uses changed to STRING_MULTIBYTE.
9965 (STRING_SET_UNIBYTE): New macro.
9966 (SET_STRING_BYTES): Deleted. Callers (all of which supplied a
9967 length of -1) changed to use STRING_SET_UNIBYTE.
9968 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
9969 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
9970 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
9971 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
9972 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
9973 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
9974 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
9975 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
9976 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
9977 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
9978 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
9979 STRING_BYTES or indirection changed to SCHARS, SBYTES,
9980 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
9981 unchanged for now.
9982
99832002-07-13 Kim F. Storm <storm@cua.dk>
9984
9985 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
9986
99872002-07-12 Richard M. Stallman <rms@gnu.org>
9988
9989 * fileio.c (Fwrite_region): Doc fix.
9990
9991 * print.c (print_error_message): Don't handle Vsignaling_function here.
9992
9993 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
9994 (command_loop_1): Avoid certain actions after memory-full error.
9995
9996 * eval.c (Fsignal): Don't call cancel_hourglass.
9997 For a memory-full error, don't call Vsignal_hook_function
9998 and don't set Vsignaling_function.
9999
10000 * process.c (process_send_signal): Add abort call.
10001
100022002-07-11 Markus Rost <rost@math.ohio-state.edu>
10003
10004 * keymap.c (Fkey_binding): Fix typo.
10005
100062002-07-11 Richard M. Stallman <rms@gnu.org>
10007
10008 * alloc.c (Vmemory_full): New variable.
10009 (Vmemory_signal_data): Renamed from memory_signal_data.
10010 Uses changed.
10011 (syms_of_alloc): Defvar them.
10012 (memory_full, buffer_memory_full): Set Vmemory_full.
10013
10014 * lisp.h (Vmemory_full): Add declaration.
10015 (current_column, indented_beyond_p): Change declaration.
10016
10017 * indent.c (last_known_column): Declare as double, not float.
10018 (current_column, current_column_1, string_display_width)
10019 (position_indentation): Return `double'.
10020 (indented_beyond_p): Arg `column' is `double'. Callers changed.
10021
10022 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
10023 (back_to_previous_visible_line_start)
10024 (reseat_at_next_visible_line_start, next_element_from_buffer):
10025 Use `double', not `float', when calling indented_beyond_p.
10026
10027 * s/hpux11.h (BROKEN_SA_RESTART): Defined.
10028
10029 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
10030
100312002-07-11 Juanma Barranquero <lektu@terra.es>
10032
10033 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
f9711de4
JB
10034 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
10035 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
10036 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
10037 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
10038 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
048addec
JD
10039
100402002-07-10 Juanma Barranquero <lektu@terra.es>
10041
d814862a
JB
10042 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
10043 All callers changed.
048addec
JD
10044
100452002-07-09 Stefan Monnier <monnier@cs.yale.edu>
10046
10047 * data.c (Fdefalias): Add an optional `docstring' argument.
10048 (set_internal, Fsetq_default): Use XCAR/XCDR.
10049
10050 * composite.c (HASH_VALUE, HASH_KEY):
10051 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
10052
100532002-07-09 Kenichi Handa <handa@etl.go.jp>
10054
10055 * callproc.c (Fcall_process): Fix previous change.
10056
100572002-07-07 Stefan Monnier <monnier@cs.yale.edu>
10058
10059 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
10060 Add support for hash-tables.
10061 (Ftry_completion): Return t even if the string appears multiple times.
10062
10063 * fns.c (Fnconc): Use XCDR.
10064 (Fprovide): Use CONSP and XCDR.
10065 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
10066 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
10067 (Fmake_hash_table): Accept `:size nil'.
10068 (Fmakehash): Delete: moved to subr.el.
10069 (syms_of_fns): Don't defsubr makehash.
10070
10071 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
10072 (HASH_TABLE_SIZE): Move from fns.c.
10073
100742002-07-07 Richard M. Stallman <rms@gnu.org>
10075
10076 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
10077 Instead just return 0 when there is something to be done.
10078 (try_scrolling): If make_cursor_line_fully_visible returns 0,
10079 retry scrolling as if cursor were off the bottom.
10080 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
10081 return CURSOR_MOVEMENT_MUST_SCROLL.
10082 (redisplay_window): If make_cursor_line_fully_visible returns 0,
10083 go to try_to_scroll.
10084
10085 * buffer.c (Fbuffer_local_value): Store current value into its binding
10086 so we get the up-to-date value for the binding that is loaded.
10087
10088 * eval.c (Fdefmacro): Doc fix.
10089
100902002-07-05 Dave Love <fx@gnu.org>
10091
10092 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
10093 correctly.
10094
10095 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
10096 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
10097 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
10098 CCL_LookupCharConstTbl.
10099 (syms_of_ccl): Defvar translation-hash-table-vector.
10100
101012002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10102
10103 * xdisp.c: Remove unused variable `face'.
10104
101052002-07-04 Juanma Barranquero <lektu@terra.es>
10106
10107 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
10108 obsolescence information.
10109
101102002-07-03 Andrew Choi <akochoi@shaw.ca>
10111
10112 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
10113 pattern. Search cache first.
10114 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
10115 for Japanese font.
10116 (XLoadQueryFont): Use it.
10117
101182002-07-02 Richard M. Stallman <rms@gnu.org>
10119
10120 * keymap.c (Fdefine_key): Doc fix.
10121
10122 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
10123
101242002-07-02 Juanma Barranquero <lektu@terra.es>
10125
10126 * keymap.c (syms_of_keymap): Fix typo.
10127
101282002-07-01 Andrew Choi <akochoi@shaw.ca>
10129
10130 * s/darwin.h: Define POSIX_SIGNALS.
10131
10132 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
10133 and FSRefMakePath to convert FSSpec returned with Apple Event to
10134 Posix pathname.
10135 (mac_initialize) [TARGET_API_MAC_CARBON]:
10136 Call init_required_apple_events and disable the `Quit' menu item
10137 provided automatically by the Carbon Toolbox.
10138
101392002-07-01 Dave Love <fx@gnu.org>
10140
10141 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
10142 for K&R.
10143
10144 * xterm.c: Fix prototype for K&R.
10145
10146 * term.c (costs_set): Declare static, non-initialized for pcc.
10147
101482002-07-01 Richard M. Stallman <rms@gnu.org>
10149
10150 * keyboard.c (timer_last_idleness_start_time): New variable.
10151 (timer_start_idle): Set that.
10152 (read_key_sequence): Use that to reset timer_idleness_start_time
10153 to previous value.
10154
10155 * window.c (Frecenter): With arg, set optional_new_start.
10156
10157 * xdisp.c (redisplay_internal): Make optional_new_start really work.
10158
10159 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
10160 buffer for completion.
10161
101622002-06-29 Ken Raeburn <raeburn@gnu.org>
10163
10164 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
10165
101662002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10167
10168 * keyboard.c (readable_filtered_events): New function that filters
10169 FOCUS_IN_EVENT depending on parameter.
10170 (readable_events): Calls readable_filtered_events, not filtering
10171 FOCUS_IN_EVENT.
10172 (get_filtered_input_pending): New function, filtering parameter passed
10173 to readable_filtered_events.
10174 (get_input_pending): Calls get_filtered_input_pending, not filtering
10175 FOCUS_IN_EVENT.
10176 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
10177 FOCUS_IN_EVENT.
10178
10179 * xterm.h (struct x_output): Add focus_state.
10180
10181 * xterm.c (x_focus_changed): New function.
10182 (x_detect_focus_change): New function.
10183 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
10184 EnterNotify and LeaveNotify to track X focus changes.
10185
101862002-06-28 Andreas Schwab <schwab@suse.de>
10187
10188 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
10189
101902002-06-27 Kim F. Storm <storm@cua.dk>
10191
10192 * xdisp.c: (mode_line_string_list, mode_line_string_face)
10193 (mode_line_string_face_prop): New variables.
10194 (store_mode_line_string): New function.
10195 (display_mode_element): Use store_mode_line_string to
10196 add mode-line string elements to mode_line_string_list
10197 when mode_line_string_list is non-nil.
10198 (Fformat_mode_line): Now returns propertized string by
10199 default. New arg NO-PROPS to ignore properties.
10200 (decode_mode_spec): Only add two dashes for %- in propertized
10201 mode-line string.
10202 (syms_of_xdisp): Init and staticpro mode_line_string_list.
10203
102042002-06-27 Stefan Monnier <monnier@cs.yale.edu>
10205
10206 * minibuf.c (minibuffer_completion_contents): Add return type.
10207
102082002-06-27 Juanma Barranquero <lektu@terra.es>
10209
10210 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
10211
102122002-06-26 Juanma Barranquero <lektu@terra.es>
10213
10214 * fileio.c (read_file_name_cleanup): Add missing return.
10215
102162002-06-26 Richard M. Stallman <rms@gnu.org>
10217
10218 * window.c (Frecenter): Don't set force_start flag.
10219
10220 * minibuf.c (do_completion, Fminibuffer_complete_word)
10221 (Fminibuffer_completion_help): Complete just the text before point.
10222 (minibuffer_completion_contents): New function.
10223
10224 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
10225
10226 * frame.c (frames_bury_buffer): Function deleted.
10227
102282002-06-25 Miles Bader <miles@gnu.org>
10229
10230 * callint.c (Fcall_interactively): When checking to see if doprnt hit
10231 the end of callint_message, allow for a terminating '\0'.
10232
102332002-06-24 Juanma Barranquero <lektu@terra.es>
10234
10235 * w32select.c: Include composite.h
10236
10237 * w16select.c: Likewise.
10238
102392002-06-24 Kenichi Handa <handa@etl.go.jp>
10240
10241 * callproc.c (Fcall_process): If code detection is necessary,
10242 call detect_coding directly here.
10243
10244 * coding.c (detect_eol): Preserve coding->cmp_data.
10245
10246 * w16select.c (Fw16_get_clipboard_data):
10247 * w32fns.c (w32_to_x_font):
10248 * w32select.c (Fw32_get_clipboard_data):
10249 * xselect.c (selection_data_to_lisp_data):
10250 * xterm.c (XTread_socket): Disable composition handling.
10251
102522002-06-24 Stefan Monnier <monnier@cs.yale.edu>
10253
10254 * print.c (temp_output_buffer_setup): Kill all local variables.
10255
102562002-06-22 Stefan Monnier <monnier@cs.yale.edu>
10257
10258 * lread.c (Fread): Remove redundant and imprecise declaration.
10259
10260 * xfns.c (check_x_display_info): Use check_x_frame.
10261
10262 * .gdbinit (xprintsym): Use the new `xname' field.
10263 (xsymbol): Use it.
10264
102652002-06-22 Jason Rumney <jasonr@gnu.org>
10266
10267 * w32fns.c (file_dialog_callback): New function.
10268 (Fx_file_dialog): Allow selecting directories as well as files.
10269
102702002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10271
10272 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
f63fd14e 10273 OpenBSD. Add support for mipseb-*-netbsd* machines.
048addec
JD
10274
102752002-06-17 Andrew Choi <akochoi@shaw.ca>
10276
10277 * macterm.c (mac_scroll_area): Set foreground and backcolor to
10278 black and white before scrolling. Restore frame background and
10279 foreground color after scrolling.
10280 (do_window_update): Call XClearWindow before calling expose_frame.
10281 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
10282 FRAME_FOREGROUND_PIXEL of frame.
10283
10284 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
10285 test Mac command key as <ALT> key.
10286
102872002-06-17 Stefan Monnier <monnier@cs.yale.edu>
10288
10289 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
10290
10291 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
10292 Lookup keys in function-key-map immediately so that key-translation-map
10293 can be applied earlier.
10294 Remove function_key_possible and key_translation_possible, replaced
10295 by checking `keytran_start < t'.
10296
10297 * .gdbinit (xsymbol): Use the new `xname' field.
10298
102992002-06-17 Andrew Choi <akochoi@shaw.ca>
10300
10301 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
10302 test Mac command key as <ALT> key.
10303
10304 * mac.c (do_applescript): Call initialize_applescript if necessary
10305 when first called. Dispose of result_desc only when there is no error.
10306 (Fdo_applescript): Use %d format specifier instead of %ld.
10307
103082002-06-16 Andrew Choi <akochoi@shaw.ca>
10309
10310 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
10311 of FrontWindow for cases keyDown and autoKey.
10312
10313 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
10314 Vdefault_fontset to Monaco with mac-roman coding.
10315
10316 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
10317 init_process before and after inclusion of Carbon/Carbon.h, resp.
10318
10319 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
10320 cursor_gc.
10321 (add_font_name_table_entry): New function.
10322 (init_font_name_table): Use add_font_name_table_entry; add italic,
10323 bold, and bold-italic entries for truetype fonts.
10324
10325 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
10326 for Mac too.
10327 (try_font_list) [MAC_OS]: If no font matches given registry, try
10328 fonts with any registry matching face_family.
10329 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
10330
10331 * s/darwin.h: If autoconf detects the Ncurses library, define
10332 LIBS_TERMCAP to -lncurses to use it.
10333
103342002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
10335
10336 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
10337
103382002-06-15 Richard M. Stallman <rms@gnu.org>
10339
10340 * window.c (Fset_window_configuration): Explicitly preserve
10341 the point value that new_current_buffer had at the start.
10342
103432002-06-14 Juanma Barranquero <lektu@terra.es>
10344
10345 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
10346 Fix typos.
10347
103482002-06-14 Kim F. Storm <storm@cua.dk>
10349
10350 * insdel.c (insert_1_both, insert_from_string_1)
10351 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
10352 insert happened in the end_unchanged region. Otherwise, the
10353 redisplay may be confused and duplicate the last line in the
10354 buffer [seen after save-buffer when require-final-newline==t].
10355
103562002-06-13 Jason Rumney <jasonr@gnu.org>
10357
10358 * w32.c (init_environment): Remove EMACSLOCKDIR.
10359 (stat): Swap _S_IFDIR and _S_IFREG.
10360
103612002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10362
10363 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
10364 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
10365 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
10366 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
10367 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
10368 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
10369 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
10370 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
10371 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
10372 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
10373 SELECTION_REQUEST_EVENT, selection_clear_event to
10374 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
10375 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
10376 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
10377 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
10378 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
10379 no_event to NO_EVENT.
10380
103812002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10382
10383 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
10384
103852002-06-12 Stefan Monnier <monnier@cs.yale.edu>
10386
10387 * intervals.c (textget): Don't forget to `return'.
10388 (lookup_char_property): Use XCAR/XCDR.
10389
103902002-06-12 Juanma Barranquero <lektu@terra.es>
10391
10392 * xdisp.c (Fformat_mode_line): Fix typo.
10393
103942002-06-12 Kim F. Storm <storm@cua.dk>
10395
10396 * xdisp.c (Fformat_mode_line): New function.
10397 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
10398 (store_frame_title_char, store_frame_title): Use unconditionally.
10399 (init_xdisp): Defsubr Fformat_mode_line.
10400 Initialize frame_title_buf etc. unconditionally.
10401
104022002-06-11 Stefan Monnier <monnier@cs.yale.edu>
10403
10404 * keyboard.c (read_key_sequence):
10405 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
10406 things through those maps after downcasing events.
10407 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
10408 applies after function-key-map.
10409 Make sure that keytran can be done in the middle in the sequence.
10410 Be careful not to throw away events past the one we downcase.
10411
10412 * lread.c (read_integer): Remove unused var `tem'.
10413 (read1): Fix int/Lisp_Object mixup.
10414
10415 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
10416
104172002-06-11 Richard M. Stallman <rms@gnu.org>
10418
10419 * keyboard.c (readable_events): Ignore any number of
10420 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
10421
104222002-06-09 Miles Bader <miles@gnu.org>
10423
10424 * xfaces.c (Ftty_supports_face_attributes_p): New function.
10425 (parse_rgb_list, tty_lookup_color): New functions.
10426 (tty_defined_color): Use `tty_lookup_color' to do all the work.
10427 (color_distance, Fcolor_distance): New functions.
10428 (TTY_SAME_COLOR_THRESHOLD): New macro.
10429 (Qtty_color_standard_values): New variable.
10430 (syms_of_xfaces): Initialize new vars & functions.
10431
104322002-06-08 Colin Walters <walters@verbum.org>
10433
10434 * textprop.c (Vchar_property_alias_alist): New variable.
10435 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
10436
10437 * intervals.c (lookup_char_property): New function for looking up
10438 overlay and text properties, created from textget.
10439 (textget): Use it.
10440
10441 * intervals.h (lookup_char_property): Declare.
10442 (Vchar_property_alias_alist): Declare.
10443
10444 * buffer.c (Foverlay_get): Use lookup_char_property.
10445
104462002-06-07 Sam Steingold <sds@gnu.org>
10447
10448 * xselect.c (lisp_data_to_selection_data): Fix last change:
10449 *data_ret is not a Lisp string, while unibyte_string is.
10450
104512002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
10452
10453 * xselect.c (lisp_data_to_selection_data): Fix last change:
10454 set size_ret.
10455
104562002-06-07 Andreas Schwab <schwab@suse.de>
10457
10458 * m/amdx86-64.h: New file.
10459
104602002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
10461
10462 * fns.c (Fstring_make_unibyte): Doc fix.
10463
10464 * xselect.c (lisp_data_to_selection_data): If the requested type
10465 is STRING, call string_make_unibyte to encode the selected text
10466 as a string.
10467
10468 * window.c (Fset_window_hscroll): Doc fix.
10469
104702002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10471
10472 * fileio.c (choose_write_coding_system):
10473 Call select-safe-coding-system properly.
10474
104752002-06-03 Richard M. Stallman <rms@gnu.org>
10476
10477 * xdisp.c (message_with_string): Error if STRING is not a string.
10478
10479 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
10480
10481 * fileio.c (choose_write_coding_system): Pass FILE arg to
10482 Vselect_safe_coding_system_function.
10483
104842002-06-03 Ken Raeburn <raeburn@gnu.org>
10485
10486 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
10487
104882002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
10489
10490 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
10491 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
10492 * keymap.c (describe_command): Likewise.
10493 * minibuf.c (read_minibuf): Likewise.
10494
10495 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
10496 Cast `current_column' return value to int.
10497 (back_to_previous_visible_line_start)
10498 (reseat_at_next_visible_line_start, next_element_from_buffer):
10499 Cast `indented_beyond_p' 3rd arg to float.
10500
10501 * indent.c (last_known_column): Now a float.
10502 (current_column_1, position_indentation, current_column)
10503 (string_display_width): Return float.
10504 (Fcurrent_column): Cast `current_column' return value to int.
10505 (Fcurrent_indentation): Cast `position_indentation' retval to int.
10506 (indented_beyond_p): Third arg now a float.
10507 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
10508
10509 * lisp.h (current_column): Now returns float.
10510 (indented_beyond_p): 3rd arg now a float.
10511
105122002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
10513
10514 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
10515 is Qcompound_text_with_extensions.
10516
10517 * xselect.c (lisp_data_to_selection_data): Always set selection
10518 type as string if x_encode_text returns streingp non-NULL.
10519
10520 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
10521
105222002-05-30 Richard M. Stallman <rms@gnu.org>
10523
10524 * window.c (Fset_window_configuration): Correct the handling
10525 of point in current buffer, to work with multiple windows.
10526
105272002-05-29 Colin Walters <walters@verbum.org>
10528
10529 * lread.c (Fread_from_string): Don't depend on order of evaluation
10530 for C function parameters.
10531
105322002-05-28 Richard M. Stallman <rms@gnu.org>
10533
10534 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
10535 way for blinked-off state and for a nonselected window.
10536
10537 * window.c (window_scroll_pixel_based): Don't call Fbolp;
10538 instead, see if the new start pos is at beginning of line.
10539
10540 * fileio.c (Fwrite_region): If START is a string, don't
10541 make any annotations.
10542
10543 * eval.c (syms_of_eval): Doc fix.
10544
105452002-05-28 Colin Walters <walters@debian.org>
10546
10547 * emacs.c (USAGE1): Add --no-splash.
10548 (standard_args): Ditto.
10549
105502002-05-28 Colin Walters <walters@gnu.org>
10551
10552 * lread.c (readchar_count): New variable.
10553 (readchar): Increment it.
10554 (unreadchar): Decrement it.
10555 (read_multibyte): Decrement it.
10556 (Vread_with_symbol_positions): New variable.
10557 (Vread_symbol_positions_list): New variable.
10558 (read_internal_start): New function, created from Fread and
10559 Fread_from_string. Handle Vread_symbol_positions_list and
10560 Vread_with_symbol_positions.
10561 (readevalloop, Fread, Fread_from_string): Use it.
10562 (read1): Use readchar_count to add symbol positions to
10563 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
10564 (syms_of_lread): DEFVAR_LISP and initialize them.
10565
10566 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
10567 (substitute_object_recurse, substitute_object_in_subtree)
10568 (substitute_in_interval): Prototype.
10569 (read_multibyte): Return c if it's less than zero.
10570
105712002-05-28 Kim F. Storm <storm@cua.dk>
10572
10573 * fileio.c (Fread_file_name_internal): Added brute-force
10574 speed up for using predicate file-directory-p.
10575
105762002-05-28 Kim F. Storm <storm@cua.dk>
10577
10578 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
10579 New variables.
10580 (syms_of_fileio): DEFVAR_LISP them.
10581 (read_file_name_cleanup): New unwind function.
10582 (Fread_file_name_internal): Only return completions satifying
10583 Vread_file_name_predicate. Temporarily unwind protect and rebind
10584 default-directory while checking completions against the predicate.
10585 (Fread_file_name): Added PREDICATE argument. Specbind it to
10586 Vread_file_name_predicate during completion.
10587 Call Vread_file_name_function to read the file name if non-nil.
10588
10589 * lisp.h (Fread_file_name): Now has 6 args.
10590
10591 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
10592 predicate for Fread_file_name when reading directory name.
10593 Supply Qnil for predicate in other calls to Fread_file_name.
10594
105952002-05-26 Miles Bader <miles@gnu.org>
10596
10597 * term.c (tty_capable_p): New function.
10598 * dispextern.h (tty_capable_p): New function declaration.
10599 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
10600 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
10601
106022002-05-23 Stefan Monnier <monnier@cs.yale.edu>
10603
10604 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
10605 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
10606 (Vwrite_region_annotate_functions): Docstring fix.
10607
106082002-05-23 Kim F. Storm <storm@cua.dk>
10609
10610 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
10611 phys_cursor's hpos is overwritten. This is still not completely
10612 correct, as it doesn't really make sense to use hpos at all to
10613 get the cursor glyph (as that is relative to the width of the
10614 characters on the line, which may have changed during the update).
10615
106162002-05-22 Jason Rumney <jasonr@gnu.org>
10617
10618 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
10619 Lisp_Object.
10620 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
10621 Use modified enumfont_t struct.
10622
10623 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
10624
10625 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
10626 Handle the `hbar' cursor type.
10627 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
10628
10629 * w32fns.c (Qhbar): New variable.
10630 (x_specified_cursor_type): Use it.
10631
106322002-05-21 Ken Raeburn <raeburn@gnu.org>
10633
10634 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
10635 now, when the address is needed.
10636
106372002-05-21 Colin Walters <walters@gnu.org>
10638
10639 * Makefile.in (shortlisp): Add font-core.el.
10640
106412002-05-20 Richard M. Stallman <rms@gnu.org>
10642
10643 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
10644
10645 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
10646 equivalent key bindings here.
10647
106482002-05-20 Ken Raeburn <raeburn@gnu.org>
10649
10650 Change symbol structure to contain a lisp object for the symbol
10651 name:
10652 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
10653 object field named "xname".
10654 (SYMBOL_NAME): New macro.
10655 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
10656 name field.
10657 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
10658 (mark_object, gc_sweep): Use symbol xname field and XSTRING
10659 instead of name field.
10660 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
10661 SYMBOL_NAME instead of XSYMBOL and name field.
10662 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
10663 instead of XSYMBOL and name field.
10664 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
10665 and SYMBOL_NAME instead of XSYMBOL and name field.
10666 * coding.c (Fread_coding_system, code_convert_region1)
10667 (code_convert_string1, code_convert_string_norecord)
10668 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
10669 XSYMBOL and name field.
10670 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
10671 (Fmake_variable_buffer_local, Fmake_local_variable)
10672 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
10673 of XSYMBOL and name field.
10674 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
10675 XSYMBOL and name field.
10676 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
10677 instead of XSYMBOL and name field.
10678 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
10679 XSYMBOL and name field.
10680 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
10681 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
10682 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
10683 instead of XSYMBOL and name field.
10684 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
10685 (parse_modifiers, apply_modifiers, Fevent_convert_list)
10686 (parse_solitary_modifier, Fexecute_extended_command):
10687 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
10688 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
10689 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
10690 of XSYMBOL and name field.
10691 (describe_command, describe_translation): Use SYMBOL_NAME and
10692 assignment instead of XSYMBOL and name field and XSETSTRING.
10693 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
10694 instead of XSYMBOL and name field.
10695 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
10696 name field and XSETSTRING.
10697 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
10698 of XSYMBOL and name field.
10699 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
10700 assignment instead of XSYMBOL and name field and XSETSTRING.
10701 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
10702 XSTRING instead of XSYMBOL and name field.
10703 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
10704 and XSTRING instead of XSYMBOL and name field.
10705 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
10706 and XSTRING instead of XSYMBOL and name field.
10707 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
10708 XSTRING instead of XSYMBOL and name field.
10709 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
10710 of XSYMBOL and name field.
10711 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
10712 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
10713
107142002-05-19 Ken Raeburn <raeburn@gnu.org>
10715
10716 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
10717 and XCDR real rvalues in most configurations.
10718
10719 * buffer.c (fix_overlays_in_range, fix_overlays_before):
10720 Don't take the address of the cdr part of a cons cell; instead, track
10721 the parent cell and call XSETCDR, or set the variable for the head
10722 of the list if we haven't started down the list yet.
10723
107242002-05-19 Richard M. Stallman <rms@gnu.org>
10725
10726 * doc.c (reread_doc_file): Don't ask for confirmation.
10727
107282002-05-18 Jason Rumney <jasonr@gnu.org>
10729
10730 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
10731 (xbm_load_image): Use it.
10732 (xbm_load): Ditto.
10733 (xbm_read_bitmap_data): Reverted to xfns.c version.
10734 From David Ponce <david@dponce.com>.
10735
107362002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
10737
10738 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
10739 2.02 and later.
10740
107412002-05-16 Juanma Barranquero <lektu@terra.es>
10742
10743 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
10744
107452002-05-15 Stefan Monnier <monnier@cs.yale.edu>
10746
10747 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
10748 meaningful test.
10749 (read_char_minibuf_menu_prompt): Fix typo.
10750
107512002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
10752
10753 * eval.c (Fcommandp): Doc fix.
10754
107552002-05-13 Stefan Monnier <monnier@cs.yale.edu>
10756
10757 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
10758 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
10759 (Fset_keymap_parent): Gcpro a bit more.
10760 (access_keymap): Gcpro around meta_map call and around the main loop.
10761 (get_keyelt): Gcpro when following indirect references.
10762 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
10763 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
10764 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
10765 Remove useless ad-hoc remap code.
10766
107672002-05-13 Richard M. Stallman <rms@gnu.org>
10768
10769 * search.c (search_buffer): Give up boyer moore search if inverse
10770 translation change charset_base.
10771
107722002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
10773
10774 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
10775 characters is carried over from the previous block of text, adjust
10776 coding->produced to account for the extra character.
10777
107782002-05-11 Andreas Schwab <schwab@suse.de>
10779
10780 * coding.c (intersection): Keep the elements of the returned list
10781 in the same order as in the first list.
10782
107832002-05-11 Kim F. Storm <storm@cua.dk>
10784
10785 * keymap.c (current_minor_maps): Fixed resizing of cmm_maps;
10786 only update cmm_size if realloc actually succeeds.
10787 Testing with initial size of 2 elements revealed that using
10788 realloc on GNU/Linux would cause a random trap in xmalloc
10789 later on, so I rewrote the code to use malloc/bcopy/free instead
10790 of realloc.
10791
107922002-05-10 Jason Rumney <jasonr@gnu.org>
10793
10794 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
10795
107962002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
10797
10798 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
10799 parens, to ensure correct evaluation order.
10800
108012002-05-10 Kim F. Storm <storm@cua.dk>
10802
10803 * keymap.c (Vemulation_mode_map_alists): New variable.
10804 (syms_of_keymap): DEFVAR_LISP it.
10805 (current_minor_maps): Process keymap alists in that list before
10806 minor-mode-overriding-map-alist and minor-mode-map-alist.
10807
108082002-05-09 Richard M. Stallman <rms@gnu.org>
10809
10810 * search.c (Freplace_match): Doc fix.
10811
108122002-05-09 Kim F. Storm <storm@cua.dk>
10813
10814 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
10815 Enlarge cursor rectangle drawn around image with non-zero relief.
10816
10817 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
10818 Enlarge cursor rectangle drawn around image with non-zero relief.
10819
10820 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
10821 Enlarge cursor rectangle drawn around image with non-zero relief.
10822
108232002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
10824
10825 * xselect.c (lisp_data_to_selection_data): Don't set selection
10826 type if comes from the Lisp object's car. If the selection
10827 contains a pure ASCII text, always return QSTRING as its type.
10828
108292002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10830
10831 * mac.c (mac-cut-function): Doc fix.
10832
108332002-05-05 Richard M. Stallman <rms@gnu.org>
10834
10835 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
10836
108372002-05-04 Jason Rumney <jasonr@gnu.org>
10838
10839 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
10840 for event-click-count.
10841
10842 * process.c (init_process): Only add server subfeature if we can
10843 use non-blocking I/O.
10844
108452002-05-04 Andrew Choi <akochoi@shaw.ca>
10846
10847 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
10848 repeatedly.
10849
108502002-05-03 Jason Rumney <jasonr@gnu.org>
10851
10852 * process.c (Fmake_network_process): Only support server sockets
10853 when we can make them non-blocking.
10854
10855 * s/ms-w32.h (HAVE_SELECT): Define.
10856
10857 * w32.h (FILE_NDELAY): New flag.
10858
10859 * w32.c (sys_getpeername, fcntl): New functions.
10860 (_sys_read_ahead): Temporarily block on non-blocking sockets.
10861
10862 * w32proc.c: include sys/file.h.
10863
108642002-05-03 Colin Walters <walters@verbum.org>
10865
10866 * callproc.c (Vgame_score_directory): Renamed to
10867 Vshared_game_score_directory.
10868
108692002-04-30 Richard M. Stallman <rms@gnu.org>
10870
10871 * s/gnu.h [emacs]: Include stdio.h.
10872 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
10873
10874 * eval.c (do_autoload): Error if called while preparing to dump.
10875
10876 * fns.c (Frequire): Error if need to load while preparing to dump.
10877
108782002-04-28 Colin Walters <walters@verbum.org>
10879
10880 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
10881 Default to "~/.emacs.d/games".
10882
108832002-04-29 Stefan Monnier <monnier@cs.yale.edu>
10884
10885 * lread.c (openp): Change arg exec_only to predicate.
10886 (build_load_history): Use XCAR/XCDR.
10887 (Flocate_file_internal): New fun.
10888 (syms_of_lread): Defsubr it.
10889 (Fload): Update call to openp.
10890
10891 * lisp.h (openp): Update prototype.
10892
10893 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
10894 * w32proc.c (sys_spawnve):
10895 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
10896 * w32.c (check_windows_init_file):
10897 * sound.c (Fplay_sound_internal):
10898 * process.c (Fstart_process):
10899 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
10900 * mac.c (run_mac_command):
10901 * emacs.c (init_cmdargs):
10902 * callproc.c (Fcall_process): Update call to openp.
10903
10904 * textprop.c (remove_properties): Don't use XCAR without CONSP.
10905
10906 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
10907
109082002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10909
10910 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
10911 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
10912
109132002-04-28 Richard M. Stallman <rms@gnu.org>
10914
10915 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
10916
10917 * eval.c (Fcommandp): New arg for_call_interactively.
10918 * lisp.h (Fcommandp): Declare new arg.
10919
109202002-04-28 Jason Rumney <jasonr@gnu.org>
10921
10922 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
10923
10924 * w32.c (stat, fstat): Use file index information to generate
10925 inodes for directories where available.
10926
109272002-04-26 Andrew Choi <akochoi@shaw.ca>
10928
10929 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
10930 [HAVE_CARBON]: Include Mac object files.
10931
10932 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
10933 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
10934 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
10935 MAC_OSX, and MAC_OS instead of macintosh.
10936
10937 * editfns.c [MAC_OS8]: Include stdio.h.
10938
10939 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
10940
10941 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
10942 Apple Monaco.
10943
10944 * process.c: Declare QCfamily and QCfilter as extern.
10945 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
10946 calling select.
10947
10948 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
10949
10950 * tparam.c [MAC_OSX]: Don't define BC and UP.
10951
10952 * config.in [HAVE_CARBON]: Add.
10953
10954 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
10955 Move here from mac/src and mac/inc.
10956
10957 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
10958
109592002-04-26 Gerd Moellmann <gerd@gnu.org>
10960
10961 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
10962 Compute phys_cursor_width from the x position returned
10963 by x_draw_glyhs, which is cheaper.
10964 (x_display_and_set_cursor): Compute the buffer-local value
10965 of `cursor-in-non-selected-windows' only when needed.
10966
109672002-04-25 Gerd Moellmann <gerd@gnu.org>
10968
10969 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
10970 cursor on a stretch glyph has a width that depends on
10971 x_stretch_cursor_p.
10972
109732002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10974
10975 * abbrev.c (abbrev-start-location): Doc fix.
10976
10977 * indent.c (Fvertical_motion): Fix last change.
10978
109792002-04-25 Gerd Moellmann <gerd@gnu.org>
10980
10981 * indent.c (Fvertical_motion): Move to the start of the line
10982 containing PT before moving up or down.
10983
109842002-04-24 Gerd Moellmann <gerd@gnu.org>
10985
10986 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
10987 case of writing a whole row, more or less analogous to the case of
10988 writing only parts of a row.
10989
10990 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
10991 0 for NO_CURSOR.
10992
10993 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
10994
109952002-04-23 Colin Walters <walters@verbum.org>
10996
10997 * buffer.c (syms_of_buffer): Doc fix.
10998
109992002-04-23 Gerd Moellmann <gerd@gnu.org>
11000
11001 * xterm.c (notice_overwritten_cursor): Handle the special case
11002 of the cursor being in the first blank non-text line at the
11003 end of a window.
11004
11005 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
11006 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
11007 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
11008 bar cursors only, to make phys_cursor_width contain what its name
11009 suggests.
11010 (notice_overwritten_cursor): Consider the cursor image erased if
11011 the output area intersects the cursor image in y-direction.
11012
110132002-04-23 Simon Marshall <simon@gnu.org>
11014
11015 * xfns.c (x_set_mouse_color): Change default for cross_cursor
11016 to XC_hand2.
11017
110182002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11019
11020 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
11021
110222002-04-22 Kim F. Storm <storm@cua.dk>
11023
11024 * textprop.c (remove_properties): Fixed trap for malformed plist.
11025
110262002-04-22 Richard M. Stallman <rms@gnu.org>
11027
11028 * cmds.c (Fend_of_line): Handle intangible text in mid line.
11029
11030 * window.c (make_window): Initialize height_fixed_p,
11031 last_cursor_off_p, and p->cursor_off_p slots.
11032
110332002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11034
11035 * fns.c (use-dialog-box): Doc fix.
11036
110372002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11038
11039 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
11040 variables `row', `i' and `area'.
11041 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
11042 toolkit library.
11043
110442002-04-19 Stefan Monnier <monnier@cs.yale.edu>
11045
11046 * xfaces.c (clear_font_table): Don't free the default font of
11047 a frame even if it's on another display.
11048 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
11049 that could be Qt.
11050
110512002-04-19 Juanma Barranquero <lektu@terra.es>
11052
11053 * indent.c (Fmove_to_column): Remove unused local variable
11054 `next_boundary_byte'.
11055 (current_column_1): Likewise.
11056
110572002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
11058
11059 * msdos.c (Qhbar): New variable.
11060 (syms_of_msdos): Intern and staticpro it.
11061 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
11062 cursor type.
11063
110642002-04-19 Dave Lambert <dlambert@acm.org>
11065
11066 Theses change implement an underscore-like (`hbar') cursor.
11067
11068 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
11069
11070 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
11071 Handle the `hbar' cursor type.
11072 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
11073
11074 * xfns.c (Qhbar): New variable.
11075 (syms_of_xfns): Intern and staticpro it.
11076 (x_specified_cursor_type): Handle `hbar' cursor.
11077
11078 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
11079 not defined.
11080
110812002-04-18 Richard M. Stallman <rms@gnu.org>
11082
11083 * textprop.c (remove_properties): New arg LIST allows scanning
11084 either a list or a plist.
11085 (interval_has_some_properties_list): New function, like
11086 interval_has_some_properties using list instead of plist.
11087 All callers changed.
11088 (Fremove_list_of_text_properties): New function.
11089 (syms_of_textprop): Defsubr it.
11090
110912002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
11092
11093 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
11094
110952002-04-17 Juanma Barranquero <lektu@terra.es>
11096
11097 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
11098
110992002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
11100
11101 * window.c (coordinates_in_window): Don't report on margin area
11102 if its width is zero.
11103
111042002-04-16 Jason Rumney <jasonr@gnu.org>
11105
11106 * w32fns.c (Fx_file_dialog): Decode file name before using.
11107
11108 * w32term.c (construct_drag_n_drop): Likewise.
11109
111102002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
11111
11112 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
11113 store load-history in pure space.
11114
11115 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
11116
111172002-04-16 Stefan Monnier <monnier@cs.yale.edu>
11118
11119 * xterm.c (Qlatin_1, Qutf_8): New vars.
11120 (syms_of_xterm): Initialize them.
11121 (XTread_socket): Eliminate incorrect optimization that tried to avoid
11122 decoding the output of X*LookupString.
11123 Always use latin-1 to decode the output of XLookupString.
11124 Try Xutf8LookupString if XmbLookupString failed.
11125
11126 * region-cache.c (new_region_cache): Use BEG.
11127
111282002-04-16 Gerd Moellmann <gerd@gnu.org>
11129
11130 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
11131 configuration files.
11132 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
11133 returns 0.
11134
111352002-04-15 Andreas Schwab <schwab@suse.de>
11136
11137 * config.in: Regenerated using autoheader.
11138
11139 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
11140 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
11141 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
11142 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
11143 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
11144 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
11145 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
11146 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
11147 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
11148 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
11149 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
11150 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
11151 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
11152 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
11153 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
11154 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
11155 STACK_DIRECTION, now set by autoconf.
11156
111572002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11158
11159 * dispnew.c (marginal_area_string): Sort arguments.
11160
11161 * dispextern.h (marginal_area_string): Add prototype.
11162
111632002-04-13 Richard M. Stallman <rms@gnu.org>
11164
11165 * fileio.c (Finsert_file_contents):
11166 Don't call temp_output_buffer_setup--do just part, by hand.
11167
11168 * coding.c (run_pre_post_conversion_on_str):
11169 Don't call temp_output_buffer_setup--do just part, by hand.
11170
11171 * keyboard.c (command_loop_1): Don't call start_hourglass
11172 or cancel_hourglass when executing a macro.
11173
11174 * marker.c (count_markers): New function.
11175
11176 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
11177 grow without limit. Move recently used elements to the front.
11178
111792002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
11180
11181 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
11182
111832002-04-12 Gerd Moellmann <gerd@gnu.org>
11184
11185 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
11186 rows marginal areas.
11187 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
11188 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
11189
11190 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
11191
111922002-04-12 Dave Love <fx@gnu.org>
11193
11194 * dispnew.c (marginal_area_string): New.
11195
11196 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
11197 (Qleft_margin, Qright_margin): Declare.
11198 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
11199
11200 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
11201 note_mode_line_highlight and extended.
11202
11203 * keyboard.c (Qleft_margin, Qright_margin): Declare.
11204 (make_lispy_event): Deal with mouse events in margins.
11205
112062002-04-12 Stefan Monnier <monnier@cs.yale.edu>
11207
11208 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
11209
11210 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
11211 than deactivating the mark if tmm is set to `lambda'.
11212 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
11213 Use a single event for HELP_EVENT.
11214 (Fexecute_extended_command): Save last_point_position.
11215
112162002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11217
11218 * lisp.h (Fpropertize): Add prototype.
11219
11220 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
11221
112222002-04-10 Colin Walters <walters@verbum.org>
11223
11224 * config.in: Add HAVE_SHARED_GAME_DIR.
11225
11226 * callproc.c: (Vgame_score_directory): New variable.
11227 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
11228
112292002-04-10 Richard M. Stallman <rms@gnu.org>
11230
11231 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
11232
112332002-04-09 Stefan Monnier <monnier@cs.yale.edu>
11234
11235 * minibuf.c (read_minibuf): Use empty_string.
11236 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
11237 Short-circuit the search as soon as it "failed".
11238 (Fall_completions): Allow lambda forms and lists of strings for alist.
11239 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
11240 when require_match is nil.
11241 (Ftest_completion): Rename from `test_completion' and export to elisp.
11242 Call the predicate also when alist is a list.
11243 Obey Vcompletion_regexp_list.
11244 (do_completion, Fminibuffer_complete_and_exit): Use it.
11245 (Fassoc_string): Rename from `assoc_for_completion'.
11246 Allow list of strings as well and export to elisp.
11247
112482002-04-08 Stefan Monnier <monnier@cs.yale.edu>
11249
11250 * puresize.h (BASE_PURESIZE): Increase to 900KB.
11251
112522002-04-08 Juanma Barranquero <lektu@terra.es>
11253
11254 * w32.c (sys_accept): Don't hide variable `s'.
11255
112562002-04-05 Gerd Moellmann <gerd@gnu.org>
11257
11258 * callint.c (Fcall_interactively): Use INTEGERP instead of
11259 NUMBERP for checking Vhistory_length.
11260
112612002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11262
11263 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
11264 Doc fix to reflect it.
11265
112662002-04-04 Richard M. Stallman <rms@gnu.org>
11267
11268 * xdisp.c (display_mode_element): New arg RISKY.
11269 Disregard text props found or specified within a variable
11270 that isn't marked risky-local-variable.
11271 (Qrisky_local_variable): New variable.
11272 (syms_of_xdisp): Init and staticpro it.
11273
112742002-04-04 Stefan Monnier <monnier@cs.yale.edu>
11275
11276 * undo.c (record_point): New fun.
11277 (record_delete, record_insert): Use it.
11278
112792002-04-03 Juanma Barranquero <lektu@terra.es>
11280
11281 * doc.c (Fdocumentation): Add missing parentheses.
11282 (Fdocumentation_property): Likewise.
11283
112842002-04-03 Stefan Monnier <monnier@cs.yale.edu>
11285
11286 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
11287 data is 0, just return nil.
11288
112892002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
11290
11291 * msdos.c (syms_of_msdos): Fix last change with
11292 mouse_autoselect_window.
11293
112942002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11295
11296 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
11297 mouse_autoselect_window.
11298
112992002-04-02 Stefan Monnier <monnier@cs.yale.edu>
11300
11301 * keyboard.c (make_lispy_event): Handle unknown keysyms together
11302 with system-specific keysyms. Use it also for unknown function keys.
11303
11304 * doc.c (reread_doc_file): Return whether reload was attempted.
11305 (Fdocumentation, Fdocumentation_property): Don't try to reload
11306 if the doc is 0 and only ask once.
11307
11308 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
11309
113102002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
11311
11312 * keyboard.c (read_char): If the event was Qselect_window,
11313 restore timer_idleness_start_time to its previous value.
11314
11315 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
11316
113172002-04-01 Stefan Monnier <monnier@cs.yale.edu>
11318
11319 * region-cache.c (new_region_cache): Use BEG.
11320
11321 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
11322 Use BEG and BEG_BYTE.
11323
11324 * doc.c (get_doc_string): Return nil if the location is wrong.
11325 (reread_doc_file): New fun.
11326 (Fdocumentation, Fdocumentation_property):
11327 Call it if get_doc_string fails.
11328 (Fsnarf_documentation): Make it work for a dumped Emacs.
11329
11330 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
11331 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
11332
11333 * charset.c (Fstring): Allow 0 arguments.
11334
11335 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
11336
11337 * process.c (DATAGRAM_CONN_P, list_processes_1)
11338 (Fprocess_datagram_address, Fset_process_datagram_address)
11339 (Fset_network_process_options, server_accept_connection):
11340 Fix some int/Lisp_Object confusions (thank you union types).
11341
113422002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11343
11344 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
11345
11346 * w32term.c: Likewise.
11347 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
11348
11349 * keyboard.c (Qselect_window): New symbol.
11350 (head_table): Use it.
11351 (keys_of_keyboard): Bound select-window event to handle-select-window.
11352 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
11353
11354 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
11355 (last_window): New variable.
11356 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
11357 (note_mouse_movement): Remove reimplemented code in #if 0.
11358 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
11359 Emacs windows.
11360
11361 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
11362
113632002-03-31 Gerd Moellmann <gerd@gnu.org>
11364
11365 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
11366 Callers changed.
11367
113682002-03-30 Richard M. Stallman <rms@gnu.org>
11369
11370 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
11371 loop whenever it stops making progress.
11372
11373 * widget.c (set_frame_size): Don't call change_frame_size.
11374
113752002-03-30 Gerd Moellmann <gerd@gnu.org>
11376
11377 * dispnew.c (direct_output_for_insert):
11378 Call mark_window_display_accurate.
11379
113802002-03-29 Jason Rumney <jasonr@gnu.org>
11381
11382 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
11383
113842002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
11385
11386 * Makefile.in (lread.o): Depend on coding.h.
11387
11388 * lread.c (openp, Fload): Encode the file name before passing it
11389 to `stat', `access', and `emacs_open'.
11390 (openp): GCPRO the encoded file name. Don't recompute Lisp
11391 strings unnecessarily.
11392
113932002-03-29 Kim F. Storm <storm@cua.dk>
11394
11395 * fns.c (Flax_plist_put): Doc fix.
11396
113972002-03-28 Miles Bader <miles@gnu.org>
11398
11399 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
11400
114012002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11402
11403 * process.c (set-network-process-options): Add usage.
11404 (make-network-process): Doc fix.
11405
114062002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
11407
11408 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
11409
114102002-03-26 Richard M. Stallman <rms@gnu.org>
11411
11412 * fns.c (Fsubstring_no_properties): New function.
11413 (Flax_plist_get, Flax_plist_put): New functions.
11414 (syms_of_fns): defsubr them.
11415
11416 * xdisp.c (update_menu_bar): Test only update_mode_lines;
11417 don't test or alter w->update_mode_line.
11418
11419 * window.c (Fdisplay_buffer): Doc fix.
11420
114212002-03-24 Richard M. Stallman <rms@gnu.org>
11422
11423 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
11424
114252002-03-24 Gerd Moellmann <gerd@gnu.org>
11426
11427 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
11428 (Fdefmacro): Handle `(declare ...)'.
11429 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
11430 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
11431
114322002-03-24 Jason Rumney <jasonr@gnu.org>
11433
11434 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
11435 (xbm_file_p): Add prototypes.
11436 (xbm_format, xbm_image_p): Sync with xfns.c.
11437 (reflect_byte): New function.
11438 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
11439 (xbm_load_image): Create bitmaps with a depth of 1.
11440 (init_xfns): Enable XBM images.
11441
114422002-03-23 Jason Rumney <jasonr@gnu.org>
11443
11444 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
11445 correctly. Do not pass up_modifier to keyboard buffer.
11446
11447 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
11448
114492002-03-22 Stefan Monnier <monnier@cs.yale.edu>
11450
11451 * Makefile.in (bootstrapclean): New target.
11452 (bootstrap-temacs, bootstrap-doc): Remove.
11453 (bootstrap-emacs): Use a bog-standard `temacs'.
11454 Don't bother to build a DOC file.
11455
11456 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
11457
11458 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
11459 in temacs even if !CANNOT_DUMP.
11460 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
11461
11462 * alloc.c (check_pure_size): Only output a warning.
11463
114642002-03-22 Jason Rumney <jasonr@gnu.org>
11465
11466 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
11467 supported.
11468
11469 * w32term.c (zv_bits): Declare as short, for word alignment.
11470 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
11471 (syms_of_w32term): Define x-use-underline-position-properties.
11472
11473 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
11474 (clear_image_cache): Block input, fix logic, clear matrices in
11475 all frames that share this cache.
11476
114772002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
11478
11479 * emacs.c (main): Update the Copyright year in the blurb printed
11480 by "emacs --version".
11481
11482 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
11483
11484 * xterm.c (XTread_socket): If XK_ISO_Lock and
11485 XK_ISO_Last_Group_Lock are defined, handle keysyms between
11486 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
11487
114882002-03-21 Kim F. Storm <storm@cua.dk>
11489
11490 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
11491 menu-bar bindings in keymap and local-map properties _are_ used.
11492 But try keymap property first in accordance with 2002-01-03 patch.
11493 Added comment describing why this is not always reliable.
11494 (tool_bar_items): Ditto for tool-bar.
11495
114962002-03-21 Jason Rumney <jasonr@gnu.org>
11497
11498 * w32fns.c (x_clear_image_1): Disable color table code.
11499
115002002-03-21 Kim F. Storm <storm@cua.dk>
11501
11502 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
11503 removed the wrong version of the DEFUN macro; fixed it.
11504
11505 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
11506 Fmember rather than Fmemq).
11507 (Fprovide): Check that subfeatures is a list.
11508
11509 * process.c (QCfeature, QCdatagram): Removed variables.
11510 (QCtype, Qdatagram): New variables.
11511 (network_process_featurep): Removed function.
11512 (Fmake_network_process): Removed :feature check.
11513 Use :type 'datagram instead of :datagram t to create a datagram
11514 socket. This allows us to add other connection types (e.g. raw
11515 sockets) later in a consistent manner.
11516 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
11517 supported subfeatures for feature make-network-process.
11518 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
11519 Intern and staticpro QCtype and Qdatagram.
11520 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
11521
11522 * xfns.c: (QCtype): Remove duplicate declaration and
11523 initialization (is now declared in process.c).
11524
11525 * w32fns.c: (QCtype): Remove duplicate declaration and
11526 initialization (is now declared in process.c).
11527
115282002-03-21 Richard M. Stallman <rms@gnu.org>
11529
11530 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
11531 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
11532 when jumping to `fail' to avoid undoing reg changes in the
11533 last iteration of the loop.
11534 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
11535
11536 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
11537 Depend on process.h.
11538
115392002-03-20 Jason Rumney <jasonr@gnu.org>
11540
11541 Most of the following changes are still conditional on HAVE_IMAGES
11542 which is not set by default on Windows.
11543
11544 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
11545
11546 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
11547 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
11548 (four_corners_best, x_clear_image_1, x_clear_image)
11549 (x_alloc_image_color, postprocess_image)
11550 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
11551 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
11552 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
11553
11554 * w32gui.h (struct XImage): Define.
11555
11556 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
11557 extract mouse co-ordinates.
11558
115592002-03-20 Jason Rumney <jasonr@gnu.org>
11560
11561 * w32.c (init_winsock): Dynamically load new server and UDP
11562 socket functions.
11563 (socket_to_fd): New function.
11564 (sys_socket): Use it.
11565 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
11566 (sys_recvfrom, sys_sendto): New wrapper functions.
11567
11568 * process.c (QCfamily, QCfilter): Remove duplicate declaration
11569 and initialization.
11570
11571 * makefile.w32-in (LIBS): Remove $(WSOCK32).
11572
115732002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
11574
11575 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
11576 Don't use "sun" as a variable, it's a predefined constant on Sun
11577 machines.
11578
115792002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11580
11581 * bytecode.c (Fbyte_code): Revert last change.
11582
115832002-03-19 Kim F. Storm <storm@cua.dk>
11584
11585 * makefile.w32-in (LIBS): Add $(WSOCK32).
11586 From David Ponce <dponce@voila.fr>.
11587
115882002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11589
11590 * process.c (wait_reading_process_input): Move variables `pname'
11591 and `pnamelen' down where they are used.
11592
11593 * bytecode.c (Fbyte_code): Discard unused computed value to
11594 prevent gcc warning.
11595
11596 * lisp.h (Fplist_member): Add prototype.
11597
115982002-03-18 Kim F. Storm <storm@cua.dk>
11599
11600 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
11601 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
11602
11603 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
11604 Remove explicit GNU_LINUX settings for datagram support.
11605
116062002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11607
11608 * process.c (Fmake_network_process): Remove unused variable `sa'.
11609 Doc fix. Add usage:.
11610 (set_socket_options): Remove unused variables `optnum' and `opttype'.
11611
116122002-03-17 Richard M. Stallman <rms@gnu.org>
11613
11614 * xdisp.c (cursor_type_changed): New variable.
11615 (redisplay_internal): Redisplay all windows if cursor_type_changed.
11616 Clear it when clearing windows_or_buffers_changed.
11617 (try_cursor_movement, redisplay_window, try_window_id)
11618 (try_window_reusing_current_matrix): Test cursor_type_changed
11619 along with windows_or_buffers_changed.
11620
11621 * window.h (cursor_type_changed): New variable.
11622
11623 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
11624 not update_mode_lines, and always set it to 1.
11625
11626 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
11627 if no frames needed redrawing.
11628
116292002-03-17 Kim F. Storm <storm@cua.dk>
11630
11631 The following changes add support for network server processes,
11632 datagram connections, and local (unix) sockets.
11633
11634 * process.h (struct Lisp_Process): New member log.
11635 Doc fix: Member command used to indicate stopped network process.
11636 Doc fix: Member childp contains plist for network process.
11637 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
11638
11639 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
11640 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
11641 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
11642 New variables.
11643 (NETCONN1_P): New macro.
11644 (DATAGRAM_SOCKETS): New conditional symbol.
11645 (datagram_address): New array.
11646 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
11647 (status_message): Use concat3.
11648 (Fprocess_status): Add `listen' status to doc string. Return `stop'
11649 for a stopped network process.
11650 (Fset_process_buffer): Update contact plist for network process.
11651 (Fset_process_filter): Ditto. Don't enable input for stopped
11652 network processes. Server must listen, even if filter is t.
11653 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
11654 New functions.
11655 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
11656 (Fprocess_contact): Added KEY argument. Handle datagrams.
11657 (list_processes_1): Optionally show only processes with the query
11658 on exit flag set. Dynamically adjust column widths. Omit tty
11659 column if not needed. Report stopped network processes.
11660 Identify server and datagram network processes.
11661 (Flist_processes): New optional arg `query-only'.
11662 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
11663 (conv_lisp_to_sockaddr, set_socket_options)
11664 (network_process_featurep, unwind_request_sigio): New helper functions.
11665 (Fprocess_datagram_address, Fset_process_datagram_address):
11666 (Fset_network_process_options): New lisp functions.
11667 (Fopen_network_stream): Removed. Now defined in simple.el.
11668 (Fmake_network_process): New lisp function. Code is based on previous
11669 Fopen_network_stream, but heavily reworked with new property list based
11670 argument list, support for datagrams, server processes, and local
11671 sockets in addition to old client-only functionality.
11672 (server_accept_connection): New function.
11673 (wait_reading_process_input): Use it to handle incoming connects.
11674 Do not enable input on a new connection if process is stopped.
f63fd14e 11675 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
048addec
JD
11676 (send_process): Handle datagram sockets.
11677 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
11678 network process is indicated by setting command field to t .
11679 (Fprocess_send_eof): No-op if datagram connection.
11680 (Fstatus_notify): Don't read input for a stream server socket or a
11681 stopped network process.
11682 (init_process): Initialize datagram_address array.
11683 (syms_of_process): Intern and staticpro new variables, defsubr new
11684 functions.
11685
116862002-03-16 Jason Rumney <jasonr@gnu.org>
11687
11688 * w32fns.c (w32_to_all_x_charsets): Return correct type in
11689 startup case.
11690
116912002-03-16 Richard M. Stallman <rms@gnu.org>
11692
11693 * xdisp.c (redisplay_internal, redisplay_windows):
11694 Use list_of_error to call internal_condition_case_1.
11695 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
11696 so as to catch all errors with no possibility of debugger redisplay.
11697 (list_of_error): New variable.
11698 (syms_of_xdisp): Init and staticpro it.
11699
11700 * print.c (print_object): Delete `\ ' from printed rep of frame.
11701
117022002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
11703
11704 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
11705 until its implementation is fixed.
11706
117072002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11708
11709 * xfns.c (png_load): Remove unused variable `gamma_str'.
11710
117112002-03-14 Richard M. Stallman <rms@gnu.org>
11712
11713 * xfns.c (x_real_positions): Handle failure in XQueryTree.
11714
117152002-03-14 Miles Bader <miles@gnu.org>
11716
11717 * intervals.c (adjust_for_invis_intang): New function.
11718 (set_point_both): Use `adjust_for_invis_intang' to do most of the
11719 work for dealing with invisible+intangible regions. Do so before
11720 and after both forward and backward movements, to handle both
11721 front-sticky and rear-sticky cases.
11722 * textprop.c (text_property_stickiness): Function moved here from
11723 `editfns.c'.
11724 * intervals.h (text_property_stickiness): New declaration.
11725 * editfns.c (char_property_eq): Function removed.
11726 (text_property_stickiness): Function moved to `textprop.c'.
11727
117282002-03-13 Jason Rumney <jasonr@gnu.org>
11729
11730 * config.in: Add STRFTIME_NO_POSIX2.
11731
11732 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
11733 and %OX when underlying strftime does not.
11734
117352002-03-13 Stefan Monnier <monnier@cs.yale.edu>
11736
11737 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
11738 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
11739 line) to avoid annoying flicker.
11740 (xm_scroll_callback): Get rid of the now unnecessary kludge.
11741 (XTread_socket): Mark it static.
11742
11743 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
11744
117452002-03-13 Kim F. Storm <storm@cua.dk>
11746
11747 * puresize.h (BASE_PURESIZE): Increase to 775000.
11748
117492002-03-12 Juanma Barranquero <lektu@terra.es>
11750
11751 * editfns.c (syms_of_editfns): Fix typo.
11752
117532002-03-12 Gerd Moellmann <gerd@gnu.org>
11754
11755 * xsmfns.c: Include stdio.h because termhooks.h needs it.
11756 Include termopt.h for interrupt_input.
11757
117582002-03-11 Andreas Schwab <schwab@suse.de>
11759
11760 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
11761
117622002-03-11 Gerd Moellmann <gerd@gnu.org>
11763
11764 * xterm.c (note_mouse_movement): Put code for
11765 x_autoselect_window_p in #if 0.
11766
11767 * lread.c (Fload): Don't assume that message_with_string uses the
11768 string it is given like a C string.
11769
117702002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11771
11772 * xterm.h (x_session_check_input, x_session_initialize): Declared.
11773
11774 * xterm.c: (XTread_socket): Add call to x_session_check_input and
11775 x_session_have_connection.
11776 (x_initialize): Add call to x_session_initialize.
11777
11778 * termhooks.h (enum event_kind): Add save_session_event.
11779
11780 * keyboard.c: Add Emacs event save_session_event.
11781
11782 * emacs.c (main): Add call to syms_of_xsmfns.
11783
11784 * lisp.h: Declare syms_of_xsmfns as extern.
11785
11786 * config.in: Add HAVE_X_SM.
11787
11788 * Makefile.in (LIBXT): Add -lSM -lICE
11789 if HAVE_X_SM and not USE_X_TOOLKIT.
11790 (XOBJ): New file xsmfns.c added.
11791
11792 * xsmfns.c: New file for X session management.
11793
117942002-03-09 Jason Rumney <jasonr@gnu.org>
11795
11796 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
11797 read-only when setting modified time.
11798
117992002-03-08 Gerd Moellmann <gerd@gnu.org>
11800
11801 * xdisp.c (move_it_vertically_backward): At the end of the function,
11802 when moving forward by lines, treat terminal frames specially.
11803
11804 * keyboard.c (echo_char): Make sure to add a separator between
11805 keys even if echo_dash hasn't been called.
11806
11807 * xdisp.c: Use new string macros.
11808 (update_echo_area): Pass number of bytes to message3 instead of
11809 number of chars.
11810 (set_message_1): Don't access a string's size_byte directly.
11811 (decode_mode_spec_coding): Use number of bytes of eoltype string
11812 instead number of chars.
11813
11814 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
11815
118162002-03-08 Juanma Barranquero <lektu@terra.es>
11817
11818 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
11819 24-bit.
11820
118212002-03-06 Jason Rumney <jasonr@gnu.org>
11822
11823 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
11824
118252002-03-06 Gerd Moellmann <gerd@gnu.org>
11826
11827 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
11828 (cancel_echoing, echo_length, echo_truncate): Changed to
11829 work with new kboard definition.
11830 (echo_now): Use message3_nolog instead of message2_nolog.
11831
11832 * alloc.c (mark_kboards): Mark echo_string.
11833
11834 * keyboard.h (ECHOBUFSIZE): Removed.
11835 (struct kboard): Member echoptr removed, member echobuf renamed
11836 to echo_string.
11837
11838 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
11839 message3 instead of message2 to display the message using STRING's
11840 text properties.
11841
118422002-03-05 Andreas Schwab <schwab@suse.de>
11843
11844 * xdisp.c (hscroll_margin): Change to EMACS_INT.
11845
118462002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
11847
11848 * frame.c (default-frame-alist): Explain that setting it doesn't
11849 affect existing frames.
11850
118512002-03-05 Stefan Monnier <monnier@cs.yale.edu>
11852
11853 * indent.c (skip_invisible): Fix my brain fart.
11854
11855 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
11856
118572002-03-04 Stefan Monnier <monnier@cs.yale.edu>
11858
11859 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
11860 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
11861 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
11862 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
11863 and variables to use EMACS_INT instead of just int.
11864
11865 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
11866
118672002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
11868
11869 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
11870 environment, pass it down with corrected value.
11871
118722002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11873
11874 * lread.c (read_filtered_event): Do not call start_hourglass
11875 before returning.
11876
118772002-03-04 Juanma Barranquero <lektu@terra.es>
11878
11879 * w32term.c (x_display_and_set_cursor): Fix typo.
11880
118812002-03-03 Richard M. Stallman <rms@gnu.org>
11882
11883 * fileio.c (Fmake_temp_name): Doc fix.
11884
118852002-03-03 Gary Wong <gtw@gnu.org>
11886
11887 * termcap.c [!emacs]: Replace ospeed for building standalone
11888 libtermcap, for binary compatibility.
11889
11890 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
11891
118922002-03-03 Richard M. Stallman <rms@gnu.org>
11893
11894 * xrdb.c (file_p): Rename arg `path' to `filename'.
11895
11896 * abbrev.c (Fexpand_abbrev): Increment plist as use count
11897 only if it is an integer.
11898
11899 * xfns.c (png_load): Set screen_gamma based on f->gamma.
11900 If png_get_sRGB gives an answer, call png_set_gamma
11901 using the default image gamma value.
11902
11903 * lread.c (read1): When reading from a file, default string to
11904 multibyte only if it has some multibyte characters.
11905
11906 * print.c (print_object): Output multibyte chars 128...255
11907 using \x even if ! print_escape_multibyte.
11908
11909 * xdisp.c (display_mode_element): Move the places where
11910 bytepos, charpos, this, and lisp_string are set.
11911 Use lisp_string to set bytepos.
11912
11913 * xdisp.c (redisplay_internal):
11914 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
11915
11916 * xdisp.c (display_mode_element): Merge properties specified with
11917 :propertize onto those that come with the string.
11918
119192002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
11920
11921 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
11922 automatic-hscrolling. Users changed.
11923 <hscroll-margin>: Renamed from automatic-hscroll-margin.
11924 Users changed.
11925 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
11926
119272002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
11928
11929 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
11930
119312002-03-02 Kim F. Storm <storm@cua.dk>
11932
11933 * window.c (Fminibuffer_selected_window): New function.
11934 (syms_of_window): Defsubr it.
11935
119362002-03-01 Kim F. Storm <storm@cua.dk>
11937
11938 * window.h (struct window): New member phys_cursor_width.
11939
11940 * window.c (make_window, replace_window): Init phys_cursor_width.
11941
11942 * xterm.c (x_display_and_set_cursor): Blink box cursor using
11943 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
11944
11945 * w32term.c (x_display_and_set_cursor): Blink box cursor using
11946 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
11947
11948 * lisp.h (GCPRO6): New macro.
11949
11950 * process.c (Fopen_network_stream): Use GCPRO6.
11951
119522002-03-01 Kim F. Storm <storm@cua.dk>
11953
11954 * process.c (Qconnect, Qfailed): New variables.
11955 (syms_of_process): Intern and staticpro them.
11956 (Fprocess_status): Document connect and failed return values.
11957 [NON_BLOCKING_CONNECT]: New conditional.
11958 (connect_wait_mask, num_pending_connects): New variables.
11959 (status_message): Convert Qfailed status.
11960 (Fopen_network_stream): Added support for non-blocking connect.
11961 New optional args: filter, sentinel, non_blocking. Doc updated.
11962 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
11963 (deactivate_process): Handle pending non-blocking connect.
11964 (wait_reading_process_input): Poll for status of non-blocking
11965 connects. Exec sentinel directly when connect succeeds.
11966 (status_notify): Don't read process output if not yet connected.
11967
119682002-02-28 Kim F. Storm <storm@cua.dk>
11969
11970 * window.c: (minibuf_selected_window): Renamed from
11971 Vminibuf_selected_window. Users changed.
11972 (syms_of_window): Staticpro it.
11973
119742002-02-26 Kim F. Storm <storm@cua.dk>
11975
11976 The following changes add a new Vminibuf_selected_window variable
11977 which is similar to Vminibuf_scroll_window, but which is only set
11978 on entry to the minibuffer (from a non-minibuffer window):
11979
11980 * window.c: (Vminibuf_selected_window): New variable.
11981 (struct save_window_data): New member minibuf_selected_window.
11982 (Fset_window_configuration): Restore Vminibuf_selected_window.
11983 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
11984 Set minibuf_scroll_window member to nil if minibuf_level is 0.
11985 (compare_window_configurations): Compare minibuf_selected_window.
11986
11987 * window.h: (Vminibuf_selected_window): Declare extern.
11988
11989 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
11990 entry to minibuffer or on entry from a non-minibuffer window.
11991
11992 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
11993 Vminibuf_selected_window instead of Vminibuf_scroll_window.
11994
11995 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
11996 instead of Vminibuf_scroll_window when deciding in which window
11997 the region should be highlighted. Consequently, the region remains
11998 highlighteded even when a completion buffer is also displayed.
11999
120002002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
12001
12002 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
12003
12004 * xselect.c (Qcompound_text_with_extensions): Renamed from
12005 Qcompound_text_no_extensions.
12006 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
12007
120082002-02-26 Juanma Barranquero <lektu@terra.es>
12009
12010 * w32proc.c (syms_of_ntproc): Doc fix.
12011
120122002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12013
12014 * intervals.h: Include "dispextern.h" unconditionally.
12015
120162002-02-24 Jason Rumney <jasonr@gnu.org>
12017
12018 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
12019 and disp-table.elc.
12020 (lisp): Add emacs-lisp/backquote.elc.
12021
120222002-02-24 Kim F. Storm <storm@cua.dk>
12023
12024 * keymap.c (Flookup_key): Fixed problem in 2001-12-28 patch:
12025 The validation of the event type was too strict as it didn't
12026 allow string events; buffer names are used in bindings for
12027 menu-bar-select-buffer (see `menu-bar-update-buffers').
12028
120292002-02-23 Kim F. Storm <storm@cua.dk>
12030
12031 The following changes rework my patch of 2002-02-06 which
12032 added command remapping by entering the commands directly into
12033 the keymaps. Now, command remapping uses an explicit `remap'
12034 prefix in the keymaps, i.e. [remap COMMAND].
12035
12036 * keymap.c (Qremap, remap_command_vector): New variables.
12037 (is_command_symbol): Removed function.
12038 (Fdefine_key): No longer accept a symbol for KEY.
12039 Added validation of [remap COMMAND] argument for KEY.
12040 The DEF is no longer required to be a symbol when remapping a command.
12041 (Fremap_command): New function to remap command through keymaps.
12042 (Flookup_key): Perform command remapping initiated by
12043 Fremap_command directly for speed.
12044 (Fkey_binding): Use Fremap_command for command remapping.
12045 (where_is_internal): Handle new command remapping representation.
12046 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
12047 staticpro them. Defsubr Fremap_command.
12048
12049 * keymap.h (Fremap_command): Declare extern.
12050 (is_command_symbol): Remove extern.
12051
12052 * keyboard.c (command_loop_1): Use Fremap_command for command
12053 remapping; now try command remapping for all symbols.
12054
120552002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
12056
12057 * coding.h (run_pre_post_conversion_on_str): Add prototype.
12058
120592002-02-23 Jason Rumney <jasonr@gnu.org>
12060
12061 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
12062 on the string before encoding it.
12063 (Fw32_get_clipboard_data): Run post-read-conversion on the string
12064 after decoding it.
12065
12066 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
12067
120682002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12069
12070 * w32term.c (enter_timestamp): Remove unused static variable to
12071 prevent warning.
12072
12073 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
12074
120752002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
12076
12077 * w16select.c (Fw16_get_clipboard_data): Fix last change.
12078
12079 * xselect.c (selection_data_to_lisp_data): Fix last change.
12080
120812002-02-22 Jason Rumney <jasonr@gnu.org>
12082
12083 * w32term.h (struct w32_output): New member menu_command_in_progress.
12084
12085 * w32menu.c (menubar_selection_callback): Free the menu and
12086 clear the menu_command_in_progress flag.
12087
12088 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
12089 (menu_free_timer): New variable.
12090 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
12091 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
12092 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
12093 menu command is in progress.
12094 <WM_COMMAND>: Set the menu_command_in_progress flag.
12095 Kill any menu_free_timer that is running.
12096
12097 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
12098 Call ExtTextOutA rather than ExtTextOut.
12099
121002002-02-22 Eli Zaretskii <eliz@gnu.org>
12101
12102 * puresize.h (BASE_PURESIZE): Increase to 755000.
12103
121042002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
12105
12106 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
12107 on the string before encoding it.
12108 (Fw16_get_clipboard_data): Run post-read-conversion on the string
12109 after decoding it.
12110
121112002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
12112
12113 Support for ICCCM Extended Segments in X selections:
12114
12115 * xselect.c <Qcompound_text_no_extensions>: New variable.
12116 (syms_of_xselect): Intern and staticpro it.
12117 (selection_data_to_lisp_data): Run post-read-conversion on decoded
12118 selection text.
12119 (lisp_data_to_selection_data): If next-selection-coding-system is
12120 compound-text-no-extensions, set the type of selection to be
12121 compound-text.
12122
12123 * xterm.h (x_encode_text): Update prototype.
12124
12125 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
12126 callers changed. If SELECTIONP is non-zero, run the
12127 pre-write-conversion function before encoding the selection text.
12128
121292002-02-21 Kim F. Storm <storm@cua.dk>
12130
12131 * frame.c (syms_of_frame): Change mouse-highlight default to t.
12132
12133 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
12134 Correct composing of language-change event.
12135
121362002-02-20 Kim F. Storm <storm@cua.dk>
12137
12138 * keyboard.c (menu_bar_items): Don't include keymap or local-map
12139 bindings at PT when building menu (the menu is not updated often
12140 enough for this to work reliable).
12141 (tool_bar_items): Likewise.
12142 (current_active_maps): Removed unused (and buggy) function.
12143
121442002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12145
12146 * xfns.c (gif_load): Use correct width and height for GIF images.
12147
121482002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
12149
12150 * floatfns.c (Fatan): Accept an optional second arg and call
12151 atan2 if passed 2 args.
12152
121532002-02-18 Jason Rumney <jasonr@gnu.org>
12154
12155 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
12156
121572002-02-17 Jason Rumney <jasonr@gnu.org>
12158
12159 * w32term.c (x_autoselect_window_p): New variable.
12160 (syms_of_w32term): DEFVAR_BOOL and initialize it.
12161 (note_mouse_movement): Use it.
12162
12163 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
12164
12165 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
12166
12167 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
12168 New variables.
12169 (syms_of_w32fns): Intern and staticpro them.
12170 (x_frame_parms) <"fullscreen">: New parameter.
12171 (x_fullscreen_move, x_set_fullscreen): New functions.
12172 (x_set_frame_parameters): Support Qfullscreen.
12173 (x_real_positions): Save x/y_pixels_diff frame params.
12174 (x_figure_window_size): Support full-screen frames.
12175 (Fx_create_frame): Default the fullscreen parameter.
12176
12177 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
12178 (x_fullscreen_adjust): New functions.
12179 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
12180 fullscreen. Call x_check_fullscreen_move, and set the
12181 want_fullscreen member of output_data.w32
12182 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
12183
12184 * w32term.h: New enum for FULLSCREEN_* constants.
12185 (struct w32_output): New members want_fullscreen, x_pixels_diff,
12186 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
12187 (x-fullscreen-adjust): New prototype.
12188
121892002-02-17 Kim F. Storm <storm@cua.dk>
12190
12191 * frame.c: (Vmouse_highlight): New variable.
12192 (syms_of_frame): DEFVAR_LISP it.
12193
12194 * frame.h: (Vmouse_highlight): Declare extern.
8a8e19a3 12195
048addec 12196 * xterm.h (struct x_display_info): Add mouse_face_hidden.
8a8e19a3 12197
048addec
JD
12198 * xterm.c (disable_mouse_highlight): Removed variable.
12199 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
12200 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
12201 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
12202 and on after keyboard input.
12203 (x_term_init): Initialize mouse_face_hidden.
8a8e19a3 12204
048addec 12205 * msdos.h (struct display_info): Add mouse_face_hidden.
8a8e19a3 12206
048addec
JD
12207 * msdos.c (disable_mouse_highlight): Removed variable.
12208 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
12209 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
12210 (internal_terminal_init): Initialize mouse_face_hidden.
12211 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
12212 and on after keyboard input.
4f1b1854 12213
048addec 12214 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
4f1b1854 12215
048addec
JD
12216 * w32term.c (disable_mouse_highlight): Removed variable.
12217 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
12218 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
12219 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
12220 and on after keyboard input.
12221 (w32_initialize_display_info): Initialize mouse_face_hidden.
4f1b1854 12222
048addec 122232002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
4f1b1854 12224
048addec
JD
12225 * msdos.c (last_mouse_window): New variable.
12226 (dos_rawgetc): Fix last change--if the mouse is in the same window
12227 as recorded in last_mouse_window, don't select this window.
5cb6905d 12228
048addec 12229 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
5cb6905d 12230
048addec
JD
12231 * msdos.c (x_autoselect_window_p): New variable.
12232 (syms_of_msdos): Defvar it.
12233 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
12234 which the last mouse movement occured, unless it is already selected.
437dfb9f 12235
048addec
JD
12236 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
12237 New variables.
12238 (syms_of_xdisp): DEVFAR them.
12239 (hscroll_window_tree): Use automatic_hscroll_margin and
12240 Vautomatic_hscroll_step to compute the amount of window scrolling.
437dfb9f 12241
048addec 122422002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9f696a00 12243
048addec
JD
12244 * xterm.c (x-autoselect-window): New variable.
12245 (note_mouse_movement): Use it.
9f696a00 12246
048addec 12247 * keyboard.c: Do not include "systime.h" twice.
d57966d7 12248
048addec 122492002-02-15 Andreas Schwab <schwab@suse.de>
d57966d7 12250
048addec 12251 * puresize.h (BASE_PURESIZE): Increase to 9/5.
d57966d7 12252
048addec 12253 * alloc.c (NSTATICS): Increase to 1280.
74779f52 12254
048addec 122552002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
74779f52 12256
048addec 12257 * alloc.c (NSTATICS): Bump to 1026.
a474d59c 12258
048addec
JD
12259 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
12260 (Vx_super_keysym): New variables.
12261 (syms_of_xterm): DEFVAR_LISP them.
12262 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
12263 variables to determine which keys to use for the various modifiers.
a474d59c 12264
048addec 122652002-02-13 Kim F. Storm <storm@cua.dk>
fbb70ad9 12266
048addec
JD
12267 * window.c: (Vmode_line_in_non_selected_windows): Removed.
12268 (mode_line_in_non_selected_windows): New variable.
12269 (syms_of_window): DEFVAR_BOOL it.
fbb70ad9 12270
048addec
JD
12271 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
12272 Use mode_line_in_non_selected_windows.
12273 (mode_line_in_non_selected_windows): Declare extern.
12274 (Vmode_line_in_non_selected_windows): Removed extern.
2d10309f 12275
048addec 122762002-02-13 Richard M. Stallman <rms@gnu.org>
2d10309f 12277
048addec
JD
12278 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
12279 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
12280 (Fclear_this_command_keys): Doc fixes.
2d10309f 12281
048addec
JD
12282 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
12283 (update_face_from_frame_parameter): Increment face_change_count
12284 and windows_or_buffers_changed to force redisplay using changed faces.
7f2cddf3 12285
048addec
JD
12286 * xdisp.c (QCpropertize): New variable.
12287 (mode_line_proptrans_alist): New variable.
12288 (display_mode_element): New arg PROPS; all calls changed.
12289 Implement this, for strings.
12290 Handle literal output of strings by sharing the
12291 main-line code for strings, using local var `literal'.
12292 Handle :propertize feature.
12293 (syms_of_xdisp): Initialze and staticpro QCpropertize and
12294 mode_line_proptrans_alist.
0b1e6b54 12295
048addec 122962002-02-11 Kim F. Storm <storm@cua.dk>
7f2cddf3 12297
048addec
JD
12298 * window.c: (Vmode_line_in_non_selected_windows): New variable.
12299 (syms_of_window): DEFVAR_LISP it.
7f2cddf3 12300
048addec
JD
12301 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
12302 (CURRENT_MODE_LINE_FACE_ID): Use it.
12303 (Vmode_line_in_non_selected_windows): Declare extern.
e17144de 12304
048addec
JD
12305 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
12306 to get mode line face.
e17144de 12307
048addec 123082002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 12309
048addec
JD
12310 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
12311 variables; cus-start.el doesn't need them anymore.
44368f8f 12312
048addec 123132002-02-09 Kim F. Storm <storm@cua.dk>
f884b6f4 12314
048addec
JD
12315 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
12316 reduction. This fixes a display problem where stray newlines were
12317 inserted in the window (corrected by C-l). Clarified code (IMHO).
6637c996 12318
048addec 123192002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 12320
048addec 12321 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
6637c996 12322
048addec 12323 * xdisp.c (display_mode_lines): Fix last change.
453c5510 12324
048addec 123252002-02-09 Jason Rumney <jasonr@gnu.org>
453c5510 12326
048addec
JD
12327 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
12328 match each other.
12329 (w32_load_system_font): Prevent Cleartype fonts from loading.
12330 (Fx_show_tip): Ensure tip frames are above other topmost windows.
d1d070e3 12331
048addec 123322002-02-09 Kim F. Storm <storm@cua.dk>
d1d070e3 12333
048addec
JD
12334 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
12335 (CURRENT_MODE_LINE_HEIGHT): Use it.
12336 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 12337
048addec
JD
12338 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
12339 (pos_visible_p, handle_face_prop): Likewise.
12340 (display_mode_lines): Likewise, but for the real selected window.
12341 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 12342
048addec
JD
12343 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
12344 in non-selected windows.
12345 (realize_basic_faces): Realize it.
12346 (syms_of_term): Intern and staticpro it.
308dd672 12347
048addec 123482002-02-08 Kim F. Storm <storm@cua.dk>
edde72f6 12349
048addec
JD
12350 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
12351 Changed mail addresses to emacs-devel@gnu.org.
308dd672 12352
048addec 123532002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
3c1e6b46 12354
048addec
JD
12355 * fileio.c (Fsubstitute_in_file_name): If the file name includes
12356 ~user, and there's no such user, don't discard everything before ~user.
03950b5b 12357
048addec 12358 * floatfns.c (Fround): Doc fix.
3c1e6b46 12359
048addec 123602002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c1e11810 12361
048addec 12362 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
c1e11810 12363
048addec 123642002-02-07 Stefan Monnier <monnier@cs.yale.edu>
1996baee 12365
048addec 12366 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
1996baee 12367
048addec 123682002-02-07 Kim F. Storm <storm@cua.dk>
0065bb74 12369
048addec
JD
12370 * keymap.c (where_is_internal): Only check whether definition is
12371 remapped if it fulfills is_command_symbol.
0065bb74 12372
048addec 123732002-02-07 Andreas Schwab <schwab@suse.de>
0065bb74 12374
048addec 12375 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
b5cb6072 12376
048addec 12377 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
b5cb6072 12378
048addec 123792002-02-06 Kim F. Storm <storm@cua.dk>
15fff01d 12380
048addec
JD
12381 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
12382 defining command remapping. Doc updated.
12383 (Flookup_key): Remap command through keymap if KEY is a symbol.
12384 (is_command_symbol): New function.
12385 (Fkey_binding): Use it. New optional argument NO-REMAP.
12386 Doc updated. Callers changed. Perform command remapping via
12387 recursive call unless that arg is non-nil.
12388 (where_is_internal): New argument no_remap. Callers changed.
12389 Call recursively to find original key bindings for a remapped
12390 comand unless that arg is non-nil.
12391 (Fwhere_is_internal): New optional argument NO-REMAP.
12392 Doc updated. Callers changed. Pass arg to where_is_internal.
0065bb74 12393
048addec
JD
12394 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
12395 (is_command_symbol): Added prototype.
0d8466cc 12396
048addec
JD
12397 * keyboard.c (Vthis_original_command): New variable.
12398 (syms_of_keyboard): DEFVAR_LISP it.
12399 (command_loop_1): Set it, and perform command remapping.
15fff01d 12400
048addec 124012002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2fae9111 12402
048addec 12403 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
2d6c1fc0 12404
048addec 124052002-02-06 Jason Rumney <jasonr@gnu.org>
07025a55 12406
048addec 12407 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
07025a55 12408
048addec 124092002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
07025a55 12410
048addec 12411 * charset.c (get_charset_id): Use if-else instead of ?:.
3a232704 12412
048addec 124132002-02-06 Richard M. Stallman <rms@gnu.org>
539e92ad 12414
048addec 12415 * filelock.c (S_ISLNK): Define if not defined.
3a232704 12416
048addec 124172002-02-03 Richard M. Stallman <rms@gnu.org>
0cb8bb48 12418
048addec 12419 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
539e92ad 12420
048addec
JD
12421 * lread.c (read1): Redesign strategy for force_multibyte and
12422 force_singlebyte. Now is_multibyte records whether read_buffer
12423 is multibyte. Encountering any multibyte character makes it so.
4e02881b 12424
048addec 124252002-02-02 Stefan Monnier <monnier@cs.yale.edu>
4e02881b 12426
048addec
JD
12427 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
12428 with the same sequence, map that sequence to f10 rather than f0.
1ab964d7 12429
048addec 124302002-02-03 Andreas Schwab <schwab@suse.de>
1ab964d7 12431
048addec
JD
12432 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
12433 latter never being defined on GNU/Linux.
749f499f 12434
048addec 124352002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
749f499f 12436
048addec
JD
12437 * xfaces.c (realize_default_face): Don't set the weight and slant of
12438 the default face to Qnormal, unless these attributes are unspecified.
b5d9aaba 12439
048addec 124402002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3a232704 12441
048addec
JD
12442 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
12443 Call cancel_hourglass unconditionally.
d0fd26dd 12444
048addec
JD
12445 * eval.c (Fsignal): Remove duplicated declaration of
12446 the variable `display_hourglass_p'.
b4c45162 12447
048addec 124482002-01-31 Richard M. Stallman <rms@gnu.org>
d0fd26dd 12449
048addec 12450 * editfns.c (region_limit): Nicer error message.
c95eaa61 12451
048addec
JD
12452 * coding.c (decode_composition_emacs_mule):
12453 Give up if NCOMPONENT gets too large to index `component'.
c95eaa61 12454
048addec
JD
12455 * callint.c (check_mark): New arg to specify clearer error message.
12456 Callers changed.
c95eaa61 12457
048addec 124582002-01-27 Richard M. Stallman <rms@gnu.org>
c95eaa61 12459
048addec 12460 * minibuf.c (Fcompleting_read): Doc fix.
c95eaa61 12461
048addec 124622002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c95eaa61 12463
048addec
JD
12464 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
12465 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
12466 Fix doc-strings.
c95eaa61 12467
048addec 124682002-01-26 Richard M. Stallman <rms@gnu.org>
c95eaa61 12469
048addec 12470 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
c95eaa61 12471
048addec
JD
12472 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
12473 and scroll_up_aggressively.
c95eaa61 12474
048addec 124752002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
31877e0a 12476
048addec 12477 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
31877e0a 12478
048addec 124792002-01-25 Stefan Monnier <monnier@cs.yale.edu>
e2c3786a 12480
048addec
JD
12481 * textprop.c (Fnext_property_change, Fnext_single_property_change)
12482 (Fprevious_property_change, Fprevious_single_property_change):
12483 Stay within the narrowed-buffer boundaries.
e2c3786a 12484
048addec 124852002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
c513fc03 12486
048addec
JD
12487 * term.c (Ftty_display_color_cells): New function.
12488 (syms_of_term): Defsubr it.
12489 (Ftty_display_color_cells, Ftty_display_color_p): Change the
12490 argument name to DISPLAY. Doc fix.
bf794306 12491
048addec
JD
12492 * dispextern.h: Add prototype for set_tty_color_mode and
12493 tty_setup_colors.
bf794306 12494
048addec 124952002-01-24 Jason Rumney <jasonr@gnu.org>
bf794306 12496
048addec
JD
12497 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
12498 If region left to draw is not what was expected, mark the frame as
12499 garbaged.
62582985 12500
048addec
JD
12501 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
12502 Combine the regions returned by BeginPaint and GetUpdateRect.
c513fc03 12503
048addec 125042002-01-23 Jason Rumney <jasonr@gnu.org>
3509a04c 12505
048addec
JD
12506 * w32term.c (x_update_window_begin): Only hide caret if
12507 w32_use_visible_system_caret is set.
12508 (x_update_window_end): Only show caret if
12509 w32_use_visible_system_caret is set.
12510 (syms_of_w32term): Handle SystemParametersInfo call failing.
3509a04c 12511
048addec 12512 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
3509a04c 12513
048addec 125142002-01-22 Richard M. Stallman <rms@gnu.org>
3509a04c 12515
048addec
JD
12516 * unexelf.c (unexec): Define n so as to cause compilation error
12517 for the code where people have often written n instead of nn.
1e9a6186 12518
048addec 12519 * .gdbinit (hookpost-run): Defined.
1e9a6186 12520
048addec 125212002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e4e34e31 12522
048addec 12523 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
e4e34e31 12524
048addec 125252002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4521d1fc 12526
048addec
JD
12527 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
12528 if fullscreen is being set.
7c75be36 12529
048addec 125302002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4521d1fc 12531
048addec
JD
12532 * minibuf.c (Fminibuffer_contents)
12533 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
12534 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
4521d1fc 12535
048addec 125362002-01-21 Richard M. Stallman <rms@gnu.org>
4521d1fc 12537
048addec 12538 * window.c (check_frame_size): Fix minimum height calculation.
93dec019 12539
048addec 125402002-01-20 Ken Raeburn <raeburn@gnu.org>
93dec019 12541
048addec
JD
12542 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
12543 height before comparison.
12544 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
905cc05a 12545
048addec 125462002-01-20 Jason Rumney <jasonr@gnu.org>
2ed06289 12547
048addec
JD
12548 * w32term.c (w32_system_caret_width): Remove.
12549 (w32_use_visible_system_caret): New user flag.
12550 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
12551 Windows reports a screen reader running.
12552 (x_update_window_begin): Hide the system caret.
12553 (x_update_window_end): Show the system caret.
12554 (x_display_and_set_cursor): Don't draw a cursor when
12555 w32_use_visible_system_caret is set. Do not adjust width.
0e79d667 12556
048addec
JD
12557 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
12558 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
12559 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
12560 the user requests it. Use system default width when creating.
12561 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
0e79d667 12562
048addec
JD
12563 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
12564 New window messages.
905cc05a 12565
048addec 125662002-01-20 Richard M. Stallman <rms@gnu.org>
82a7ab23 12567
048addec 12568 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
d75bec6a 12569
048addec 125702002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
52dcb476 12571
048addec 12572 * doprnt.c (doprnt1): Fix typos in error call.
82a7ab23 12573
048addec 125742002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
82a7ab23 12575
048addec 12576 * unexelf.c (unexec) [__sgi]: Support the .got sections.
82a7ab23 12577
048addec 125782002-01-20 Jason Rumney <jasonr@gnu.org>
4d0fa4f3 12579
048addec
JD
12580 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
12581 that Windows returns. If a double check fails, try to guess how
12582 ExtTextOut is going to act.
4d0fa4f3 12583
048addec
JD
12584 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
12585 in place of stricmp.
12586 (w32_list_synthesized_fonts): Removed.
12587 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
12588 (struct enumfont_t): New element; list.
12589 (enum_font_cb2): List all style and charset variations of a font.
12590 (Fw32_select_font): New optional argument; include_proportional.
12591 Exclude vertical fonts. Exclude proportional fonts unless
12592 include_proportional is non-nil.
12593 (w32_enable_synthesized_fonts): Change to a boolean.
12594 (Fw32_send_sys_command): Doc fix.
493faf20 12595
048addec 125962002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
493faf20 12597
048addec
JD
12598 * dispnew.c (update_frame): Move the variable `tem' to the block
12599 where it is used.
4971e491 12600
048addec 126012002-01-19 Jason Rumney <jasonr@gnu.org>
4971e491 12602
048addec
JD
12603 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
12604 call to face-set-after-frame-default.
4971e491 12605
048addec 126062002-01-18 Richard M. Stallman <rms@gnu.org>
d911a0fa 12607
048addec
JD
12608 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
12609 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
d911a0fa 12610
048addec 126112002-01-17 Richard M. Stallman <rms@gnu.org>
d911a0fa 12612
048addec
JD
12613 * window.c (enlarge_window): When exceeding size of parent,
12614 directly delete all the siblings instead of trying to resize it.
201c831a 12615
048addec 126162002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
201c831a 12617
048addec 12618 * term.c (set_tty_color_mode): Remove unused variable `tem'.
201c831a 12619
048addec 126202002-01-16 Henrik Enberg <henrik@enberg.org>
34e39c95 12621
048addec 12622 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
34e39c95 12623
048addec 126242002-01-16 Kim F. Storm <storm@cua.dk>
d77fbc16 12625
048addec
JD
12626 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
12627 is invisible. This can happen if cursor is on top line of a
12628 window, and we switch to a buffer with a header line.
d77fbc16 12629
048addec 12630 * w32term.c (x_erase_phys_cursor): Ditto.
61e3b944 12631
048addec 126322002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
61e3b944 12633
048addec
JD
12634 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
12635 `dont_resize' only when used.
61e3b944 12636
048addec 12637 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
70da46c3 12638
048addec 126392002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
70da46c3 12640
048addec
JD
12641 * xdisp.c (display_mode_element): When computing charpos, depend
12642 on multibyteness of elt, not the text in field.
8af01033 12643
048addec 126442002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8af01033 12645
048addec
JD
12646 * buffer.c (Fkill_all_local_variables):
12647 Increment `update_mode_lines' only once.
7363986a 12648
048addec 126492002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7363986a 12650
048addec
JD
12651 * lisp.h (adjust_after_replace_noundo)
12652 (Fupdate_coding_systems_internal): Add prototypes.
d9e6c4b1 12653
048addec 12654 * sound.c (Fplay_sound): Initialize header_size also for :data case.
d20fc48a 12655
048addec 126562002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
d9e6c4b1 12657
048addec
JD
12658 Support for the --color command-line argument and tty-color-mode
12659 frame parameter:
f1a85b89 12660
048addec
JD
12661 * term.c (tty_default_color_capabilities, tty_setup_colors)
12662 (set_tty_color_mode): New functions.
12663 (term_init): Call tty_default_color_capabilities.
12664 (Qtty_color_mode_alist): New variable.
12665 (syms_of_term): Intern and staticpro it.
f1a85b89 12666
048addec
JD
12667 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
12668 frames.
12669 (do_switch_frame): For termcap frames, switch the tty
12670 color mode as specified by the frame's parameters.
12671 (Qtty_color_mode): New variable.
12672 (syms_of_frame): Intern and staticpro it.
3a62677f 12673
048addec
JD
12674 * emacs.c (USAGE2): Add the --color option.
12675 (standard_args): Ditto.
72244db2 12676
048addec
JD
126772002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12678
12679 * xterm.h (struct x_output): New members want_fullscreen,
12680 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
12681 y_pixels_outer_diff.
12682 New enum for FULLSCREEN_* constants.
12683 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
12684 is NULL.
12685 (x_fullscreen_adjust): Add prototype.
3a62677f 12686
048addec
JD
12687 * emacs.c (USAGE2): Add the new full-screen arguments.
12688 (standard_args): Ditto.
3a62677f 12689
048addec
JD
12690 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
12691 New variables.
12692 (syms_of_xfns): Intern and staticpro them.
12693 (x_frame_parms) <"fullscreen">: New parameter.
12694 (x_fullscreen_move, x_set_fullscreen): New functions.
12695 (x_set_frame_parameters): Support for Qfullscreen.
12696 (x_real_positions): More accurate computation of the frame position.
12697 (x_figure_window_size): Support full-screen frames.
12698 (Fx_create_frame): Default the fullscreen parameter.
3a62677f 12699
048addec
JD
12700 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
12701 (XTread_socket) <Expose>: Call x_check_fullscreen.
12702 <ConfigureNotify>: Don't resize to fullscreen.
12703 Call x_check_fullscreen_move, and set the want_fullscreen member of
12704 output_data.x.
3a62677f 12705
048addec 127062002-01-13 Jason Rumney <jasonr@gnu.org>
9d113d9d 12707
048addec
JD
12708 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
12709 for mice with more than 3 buttons.
b8523839 12710
048addec
JD
12711 * w32term.c (parse_button): New parameter xbutton. Callers changed.
12712 (w32_read_socket): Handle new "XBUTTON" messages.
9464dea4 12713
048addec
JD
12714 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
12715 (syms_of_w32fns): DEFVAR_BOOL it.
12716 (w32_wnd_proc): Handle new "XBUTTON" messages.
9d113d9d 12717
048addec 127182002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
70ec1377 12719
048addec 12720 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
70ec1377 12721
048addec 127222002-01-13 Andreas Schwab <schwab@suse.de>
92f7dd37 12723
048addec 12724 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
92f7dd37 12725
048addec 127262002-01-12 Andreas Schwab <schwab@suse.de>
c93674bb 12727
048addec
JD
12728 * .gdbinit (xbuffer): Remove address operator since data is now a
12729 pointer.
c93674bb 12730
048addec 127312002-01-11 Richard M. Stallman <rms@gnu.org>
59b59892 12732
048addec 12733 * insdel.c (adjust_after_replace_noundo): New function.
59b59892 12734
048addec 12735 * coding.c (code_convert_region): Don't copy old text if undo disabled.
c6ea2775 12736
048addec 127372002-01-09 Jason Rumney <jasonr@gnu.org>
c6ea2775 12738
048addec
JD
12739 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
12740 when checking for multiple frames.
91175673 12741
048addec 127422002-01-08 Richard M. Stallman <rms@gnu.org>
91175673 12743
048addec
JD
12744 * window.c (delete_window): Rewrite the code for changing the
12745 selected window to handle the case where WINDOW is not a leaf.
91175673 12746
048addec 127472002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
e0fead5d 12748
048addec
JD
12749 * process.c (send_process): Set src_multibyte to 1 after the call
12750 top setup_coding_system, not before the call.
e0fead5d 12751
048addec 127522002-01-07 Jason Rumney <jasonr@gnu.org>
e0fead5d 12753
048addec
JD
12754 * xmenu.c (set_frame_menubar, xmenu_show):
12755 (xdialog_show): Initialize wv->help to Qnil.
c186cdb3 12756
048addec
JD
12757 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
12758 (w32_dialog_show): Initialize wv->help to Qnil.
c186cdb3 12759
048addec 127602002-01-06 Jason Rumney <jasonr@gnu.org>
c186cdb3 12761
048addec 12762 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
c186cdb3 12763
048addec 12764 * w32menu.c (w32_menu_display_help): Revert last change.
58cfce98 12765
048addec 12766 * xmenu.c (menu_highlight_callback): Revert last change.
58cfce98 12767
048addec 127682002-01-06 Andreas Schwab <schwab@suse.de>
62854fe2 12769
048addec
JD
12770 * insdel.c (make_gap_larger): Make sure buffer size does not
12771 overflow range of int.
62854fe2 12772
048addec 127732002-01-05 Jason Rumney <jasonr@gnu.org>
656f46bb 12774
048addec
JD
12775 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
12776 OVERLAPS_P.
656f46bb 12777
048addec 12778 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
656f46bb 12779
048addec
JD
12780 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
12781 to the left or to the right of the pointer, put it against
12782 the left screen edge.
12783 (x_frame_parms): Add missing braces around initializer.
036e218d 12784
048addec
JD
12785 * w32term.c (x_setup_relief_colors): Don't compute an image's
12786 background color if it doesn't have a Pixmap.
12787 (notice_overwritten_cursor): Don't depend on
12788 output_cursor and updated_area. Compare pixel coordinates with
12789 window's cursor pixel coordinates.
12790 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
12791 Call notice_overwritten_cursor with new arg list.
12792 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
12793 unconditionally.
12794 (x_draw_image_relief): Use predefined macro instead of
12795 constant when the value of `tool_bar_button_relief' is negative.
036e218d 12796
048addec 12797 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
7ddb2c16 12798
048addec 127992002-01-04 Richard M. Stallman <rms@gnu.org>
7ddb2c16 12800
048addec 12801 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
ace9b298 12802
048addec 128032002-01-03 Richard M. Stallman <rms@gnu.org>
90647b07 12804
048addec
JD
12805 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
12806 (Fkey_binding): Try the `keymap' property map first.
12807 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
12808 minor mode bindings.
90647b07 12809
048addec 128102002-01-03 Kim F. Storm <storm@cua.dk>
ace9b298 12811
048addec 12812 * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
ace9b298 12813
048addec 128142002-01-02 Richard M. Stallman <rms@gnu.org>
ace9b298 12815
048addec
JD
12816 * keyboard.c (read_key_sequence): Handle the keymap property
12817 before minor mode maps.
9fbc32aa 12818
048addec
JD
12819 * editfns.c (Fformat): Update thissize from field_width
12820 based on the actual width, in the string case.
036e218d 12821
048addec 128222002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fbc32aa 12823
048addec
JD
12824 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
12825 when used as truth value to prevent gcc warnings.
9fbc32aa 12826
048addec
JD
12827 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
12828 * w32proc.c: Include <config.h>.
9fbc32aa 12829
048addec 128302002-01-01 Andreas Schwab <schwab@suse.de>
9fbc32aa 12831
048addec
JD
12832 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
12833 not EMACS_INT, to make them compatible with DEFVAR_INT.
12834 * lisp.h (max_specpdl_size): Adjust declaration.
9fbc32aa 12835
048addec 128362002-01-01 Richard M. Stallman <rms@gnu.org>
9fbc32aa 12837
048addec
JD
12838 * print.c (print_object): Test print_escape_nonascii only for
12839 unibyte strings.
12840 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
12841 when outputting to a multibyte buffer.
9fbc32aa 12842
048addec 128432001-12-29 Richard M. Stallman <rms@gnu.org>
9fbc32aa 12844
048addec
JD
12845 * print.c (print_object): In multibyte string, use hex escapes.
12846 Use octal only for unibyte strings.
12847 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
0142178a 12848
048addec
JD
12849 * lread.c (read_escape): New arg BYTEREP for reporting whether
12850 escape forces unibyte or multibyte.
12851 (read1): When reading a string, take note of that info.
0142178a 12852
048addec 128532001-12-29 Ken Raeburn <raeburn@gnu.org>
d4824a5d 12854
048addec
JD
12855 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
12856 comparison to test lisp value returned by Fget.
d4824a5d 12857
048addec 128582001-12-29 Richard M. Stallman <rms@gnu.org>
b1356234 12859
048addec 12860 * lisp.h (max_specpdl_size): Add declaration.
b1356234 12861
048addec 12862 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
3ce081f5 12863
048addec
JD
12864 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
12865 Handle modifier bits. Correct typo in error message.
99e380ee 12866
048addec 128672001-12-28 Richard M. Stallman <rms@gnu.org>
3ce081f5 12868
048addec
JD
12869 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
12870 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
12871 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
12872 Update calls to Fdefine_abbrev.
12873 (write_abbrev): Update for changed data format.
12874 Don't list "system" abbrevs.
12875 (Fexpand_abbrev): Update use count with new data format.
12876 (describe_abbrev): Update for changed data format.
12877 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
66458f32 12878
048addec 12879 * config.in (HAVE_MBSINIT): Add #undef.
66458f32 12880
048addec 12881 * strftime.c (mbsinit): Define as no-op if not available.
66458f32 12882
048addec
JD
12883 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
12884 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
59a86c99 12885
048addec
JD
12886 * keymap.c (Flookup_key): Error message if key has wrong data type.
12887 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
12888 (exclude_key): New variable.
59a86c99 12889
048addec 128902001-12-28 Gerd Moellmann <gerd@gnu.org>
eb77a5f4 12891
048addec
JD
12892 * xterm.c (x_setup_relief_colors): Don't compute an image's
12893 background color if it doesn't have a Pixmap.
eb77a5f4 12894
048addec
JD
12895 * xterm.c (notice_overwritten_cursor): Don't depend on
12896 output_cursor and updated_area. Compare pixel coordinates with
12897 window's cursor pixel coordinates.
12898 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
12899 Call notice_overwritten_cursor with new arg list.
12900 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
12901 unconditionally.
eb77a5f4 12902
048addec
JD
12903 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
12904 height of the cursor line to the amount to scroll.
eb77a5f4 12905
048addec 129062001-12-27 Richard M. Stallman <rms@gnu.org>
bb313871 12907
048addec
JD
12908 * intervals.c (set_point_both): The position after an invisible,
12909 intangible character is not an acceptable stopping point.
bb313871 12910
048addec 129112001-12-27 Ken Raeburn <raeburn@gnu.org>
55b43a63 12912
048addec
JD
12913 * window.c (enlarge_window): In new preserve_before code, convert
12914 CURBEG from lisp object to integer before doing arithmetic.
6052529b 12915
048addec 129162001-12-27 Richard M. Stallman <rms@gnu.org>
3ce081f5 12917
048addec 12918 * bytecode.c (Fbyte_code): Undo previous change.
3ce081f5 12919
048addec 129202001-12-26 Kim F. Storm <storm@cua.dk>
3ce081f5 12921
048addec
JD
12922 * keyboard.c (record_char): Ignore duplicate help-echo events only
12923 separated by mouse-movement. When tracking mouse, only record
12924 first and last mouse-movement event in same window.
12925 Don't record mouse-movement events in keyboard macros.
3ce081f5 12926
048addec 129272001-12-25 Richard M. Stallman <rms@gnu.org>
55b43a63 12928
048addec
JD
12929 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
12930 (Fenlarge_window): New arg PRESERVE_BEFORE.
111ed14e 12931
048addec
JD
12932 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
12933 instead of Fstring_as_unibyte.
9fabb2f5 12934
048addec 129352001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fabb2f5 12936
048addec 12937 The following changes remove mocklisp support:
9fabb2f5 12938
048addec 12939 * mocklisp.h, mocklisp.c: Files removed.
111ed14e 12940
048addec
JD
12941 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
12942 `Qmocklisp' and `Qmocklisp_arguments'.
12943 Remove prototype of syms_of_mocklisp.
2fa0eedf 12944
048addec 12945 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
d1420435 12946
048addec
JD
12947 * callint.c: Do not include mocklisp.h.
12948 (Fcall_interactively): Do not test for mocklisp case.
2fa0eedf 12949
048addec
JD
12950 * eval.c: Remove variables `Qmocklisp_arguments',
12951 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
12952 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
12953 Do not test for mocklisp case.
12954 (Fwhile): Remove unused variable `tem'.
12955 (syms_of_eval): Remove variable `moclisp-arguments'.
ebcbef4e 12956
048addec 12957 * data.c (wrong_type_argument): Remove mocklisp case.
5c131048 12958
048addec 12959 * doc.c (Fdocumentation): Remove mocklisp case.
5c131048 12960
048addec 12961 * emacs.c (main): Do not call syms_of_mocklisp.
5c131048 12962
048addec 129632001-12-21 Richard M. Stallman <rms@gnu.org>
96d276c3 12964
048addec
JD
12965 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
12966 to the left or to the right of the pointer, put it against
12967 the left screen edge.
6108b49c 12968
048addec 129692001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
96d276c3 12970
048addec
JD
12971 * Makefile.in (distclean): Remove .gdbinit if we are building
12972 outside the source tree.
5eea19a4 12973
048addec 129742001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5eea19a4 12975
048addec 12976 * w32.c (emacs_root_dir): New function.
5eea19a4 12977
048addec 12978 * msdos.c (emacs_root_dir): New function.
5eea19a4 12979
048addec
JD
12980 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
12981 of the current drive as the fallback for default_directory.
438e57dd 12982
048addec
JD
12983 * dired.c (file_name_completion): Run the elements of
12984 completion-ignored-extensions through ENCODE_FILE.
438e57dd 12985
048addec
JD
12986 * lisp.h (scmp): Remove prototype, since it's now a static
12987 function private to dired.c.
c88e5347 12988
048addec 129892001-12-18 Richard M. Stallman <rms@gnu.org>
c88e5347 12990
048addec
JD
12991 * dired.c (scmp): Function moved from minibuf.c.
12992 Delete multibyte handling--used only on encoded strings.
59ce1461 12993
048addec 12994 * minibuf.c (scmp): Function moved to dired.c.
59ce1461 12995
048addec 12996 * fns.c (merge): Add QUIT call.
59ce1461 12997
048addec 129982001-12-18 Dave Love <fx@gnu.org>
8727d588 12999
048addec
JD
13000 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
13001 language/georgian.el.
8727d588 13002
048addec 130032001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
cc63037e 13004
048addec
JD
13005 * Makefile.in (lisp, shortlisp): Synchronize with changes to
13006 lisp/Makefile.in:DONTCOMPILE.
cc63037e 13007
048addec 130082001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
cc63037e 13009
048addec
JD
13010 * xdisp.c (window_box_height): Do not return negative values.
13011 From Gerd Moellmann <gerd@gnu.org>.
cc63037e 13012
048addec 13013 * keyboard.c (head_table): Add missing braces around initializer.
cc63037e 13014
048addec 13015 * term.c (keys): Likewise.
deece6f5 13016
048addec 13017 * xfns.c (x_frame_parms, visual_classes): Likewise.
deece6f5 13018
048addec 130192001-12-17 Sam Steingold <sds@gnu.org>
1b944d9c 13020
048addec
JD
13021 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
13022 patch (COMPOSING_P, not COMPOSING).
28ff4293 13023
048addec 130242001-12-17 Richard M. Stallman <rms@gnu.org>
a395ef6a 13025
048addec 13026 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
a395ef6a 13027
048addec
JD
13028 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
13029 before calling decode_coding.
9b46de40 13030
048addec 13031 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
9b46de40 13032
048addec
JD
13033 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
13034 instead of only for COMPOSITION_DISABLED.
9b46de40 13035
048addec 130362001-12-16 Richard M. Stallman <rms@gnu.org>
aff37336 13037
048addec 13038 * alloc.c (pure_alloc): After overflow, allocate just a small block.
aff37336 13039
048addec 13040 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
b9937f07 13041
048addec
JD
13042 * buffer.h (struct buffer): New field `display_error_modiff'.
13043 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
b9937f07 13044
048addec 13045 * window.c (Frecenter): Clear display_error_modiff field.
2cd23960 13046
048addec
JD
13047 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
13048 Call redisplay_window, but not if display_error_modiff field says no.
13049 (redisplay_window_error): New function.
13050 (displayed_buffer): New variable.
13051 (redisplay_internal, redisplay_windows): Call the new functions
13052 instead of redisplay_window directly.
2cd23960 13053
048addec 130542001-12-15 Richard M. Stallman <rms@gnu.org>
2cd23960 13055
048addec 13056 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
2cd23960 13057
048addec 130582001-12-14 Andrew Innes <andrewi@gnu.org>
a4184c1c 13059
048addec 13060 * makefile.w32-in (EMACSLOADPATH): Define.
f9711de4 13061 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
048addec 13062 (bootstrap-temacs): Remove dependency on bootstrap-clean.
a4184c1c 13063
048addec 130642001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
f6fa0866 13065
048addec
JD
13066 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
13067 parameter have a numeric value all the time.
f6fa0866 13068
048addec 13069 * w32fns.c (x_report_frame_params): Likewise.
f4ca4b00 13070
048addec 130712001-12-12 Richard M. Stallman <rms@gnu.org>
f4ca4b00 13072
048addec 13073 * fileio.c (Fwrite_region): Doc fix.
f4e25f94 13074
048addec
JD
13075 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
13076 (redisplay_internal): Call clear_image_cache only for window terminals.
f4e25f94 13077
048addec 130782001-12-12 Gerd Moellmann <gerd@gnu.org>
91c153e2 13079
048addec
JD
13080 * xdisp.c (move_it_vertically_backward): Change heuristic
13081 for the case that we didn't move far enough initially.
91c153e2 13082
048addec
JD
13083 * window.c (Frecenter): Simplify computation in the case of window
13084 system frames and ARG < 0; use window_box_height.
65b7d3e7 13085
048addec 130862001-12-11 Richard M. Stallman <rms@gnu.org>
65b7d3e7 13087
048addec
JD
13088 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
13089 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
6b5f6311 13090
048addec 130912001-12-11 Andrew Innes <andrewi@gnu.org>
6b5f6311 13092
048addec
JD
13093 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
13094 arg is negative.
be676094 13095
048addec 130962001-12-11 Richard M. Stallman <rms@gnu.org>
be676094 13097
048addec
JD
13098 * m/hp800.h: Split the __hpux conditional into the parts
13099 that are right for GNU/Linux too and the parts that are not.
13100 Use the former if GNU_LINUX.
13101 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
032a857d 13102
048addec 13103 * s/gnu-linux.h (GNU_LINUX): Defined.
032a857d 13104
048addec 131052001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
032a857d 13106
048addec
JD
13107 * macros.c, msdos.c, w16select.c: Change doc-string comments to
13108 `new style' [w/`doc:' keyword].
032a857d 13109
048addec 131102001-12-10 Jason Rumney <jasonr@gnu.org>
b6270150 13111
048addec
JD
13112 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
13113 before using.
b6270150 13114
048addec 131152001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
792e5cbd 13116
048addec
JD
13117 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
13118 keyword].
98cbb9fa 13119
048addec 131202001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
98cbb9fa 13121
048addec 13122 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
98cbb9fa 13123
048addec 13124 * s/hpux10.h (srand48): Don't undefine.
98cbb9fa 13125
048addec 131262001-12-09 Jason Rumney <jasonr@gnu.org>
792e5cbd 13127
048addec
JD
13128 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
13129 Add comment to explain where the struct came from.
13130 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
13131 (add_menu_item): Process pop-up menus first to avoid memory leak.
13132 (add_menu_item, w32_menu_display_help): Use `help' field as
13133 Lisp_Object.
13134 (w32_free_submenu_strings): Only free owner-drawn strings.
fa336b91 13135
048addec 131362001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
fa336b91 13137
048addec 13138 * COPYING: Moved back.
fa336b91 13139
048addec
JD
13140 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
13141 Add parentheses around && within ||.
077907d4 13142
048addec 13143 * indent.c (compute_motion): Likewise.
aa2af83a 13144
048addec 13145 * intervals.c (merge_properties_sticky): Likewise.
60a653f1 13146
048addec
JD
13147 * coding.c (setup_coding_system, shrink_encoding_region)
13148 (Fdecode_sjis_char): Likewise.
60a653f1 13149
048addec 131502001-12-07 Andreas Schwab <schwab@suse.de>
60a653f1 13151
048addec
JD
13152 * xdisp.c (display_mode_element): Don't read past end of string if
13153 it ends with '%'.
60a653f1 13154
048addec
JD
13155 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
13156 can hold.
60a653f1 13157
048addec
JD
13158 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
13159 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
13160 type changed to Lisp_Object.
13161 (syms_of_data): DEFVAR_LISP them.
60a653f1 13162
048addec 131632001-12-07 Richard M. Stallman <rms@gnu.org>
60a653f1 13164
048addec
JD
13165 * callproc.c (init_callproc): Set Vdata_directory based on the source
13166 location whenever Emacs was run uninstalled.
60a653f1 13167
048addec 131682001-12-06 Paul Eggert <eggert@twinsun.com>
60a653f1 13169
048addec
JD
13170 * config.in (HAVE_WORKING_VFORK): New #undefs.
13171 * process.c (create_process):
13172 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
13173 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
13174 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
13175 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
13176 * m/intel386.h (HAVE_VFORK): Likewise.
13177 * m/mips-siemens.h (HAVE_VFORK): Likewise.
13178 * m/mips.h (HAVE_VFORK): Likewise.
13179 * s/freebsd.h (vfork): Remove #define.
13180 * s/lynxos.h (HAVE_VFORK): Remove #undef.
13181 * s/usg5-4-2.h: Fix comment about vfork.
60a653f1 13182
048addec 131832001-12-06 Richard M. Stallman <rms@gnu.org>
60a653f1 13184
048addec
JD
13185 * s/hpux10.h (random): Add undef.
13186 (HAVE_RANDOM): Define it just once.
60a653f1 13187
048addec 131882001-12-06 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 13189
048addec 13190 * eval.c: Undo last change: the standard syntax is not wanted.
60a653f1 13191
048addec 131922001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 13193
048addec
JD
13194 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
13195 scroll bars of the frame before deleting the frame itself. If the
13196 frame has a widget, delete the frame with XtDestroyWidget, and do
13197 not call XDestroyWindow before that.
60a653f1 13198
048addec 131992001-12-06 Kim F. Storm <storm@cua.dk>
60a653f1 13200
048addec 13201 * xfns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 13202
048addec 13203 * w32fns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 13204
048addec 132052001-12-05 Andrew Innes <andrewi@gnu.org>
60a653f1 13206
048addec
JD
13207 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
13208 excessively large.
60a653f1 13209
048addec
JD
13210 * insdel.c (make_gap_larger): New function.
13211 (make_gap_smaller): New function.
13212 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
13213 Call make_gap_smaller if arg is negative.
60a653f1 13214
048addec 132152001-12-04 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 13216
048addec
JD
13217 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
13218 Pass a dummy argument when calling interrupt_signal.
13219 (parse_menu_item): Mark disabled items before checking for empty def.
13220 (read_char_minibuf_menu_prompt): Make safety more visible.
13221 (read_key_sequence): Add a `first_unbound' variable.
13222 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
13223 unbound prefix as soon as we can detect it.
60a653f1 13224
048addec
JD
13225 * doc.c (Fsnarf_documentation): Add prototype.
13226 (get_doc_string): Handle negative arguments.
13227 (Fdocumentation): Use AREF and ASIZE.
13228 Move the calls to get_doc_string to a single place.
13229 Don't confuse an interactive-spec for a docstring reference.
13230 (Fdocumentation_property): Take advantage of the fact that
13231 get_doc_string now ignores the sign of the docstring position.
60a653f1 13232
048addec 13233 * eval.c: Use standard syntax for usage in docstrings.
60a653f1 13234
048addec 132352001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 13236
a64387ee 13237 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
60a653f1 13238
048addec 132392001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 13240
048addec
JD
13241 * xterm.c (x_draw_image_relief): Use predefined macro instead of
13242 constant when the value of `tool_bar_button_relief' is negative.
60a653f1 13243
048addec 132442001-12-02 Richard M. Stallman <rms@gnu.org>
60a653f1 13245
048addec
JD
13246 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
13247 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
60a653f1 13248
048addec 13249 * fileio.c (read_non_regular): Delete Fsignal call.
60a653f1 13250
048addec 132512001-12-01 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 13252
048addec 13253 * lisp.h (run_hook_list_with_args): Undo last change.
60a653f1 13254
048addec 132552001-12-01 Gerd Moellmann <gerd@gnu.org>
60a653f1 13256
048addec 13257 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
60a653f1 13258
048addec 132592001-12-01 Jason Rumney <jasonr@gnu.org>
60a653f1 13260
f63fd14e 13261 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
60a653f1 13262
048addec
JD
13263 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
13264 [!WM_MOUSELEAVE]: Define.
60a653f1 13265
048addec
JD
13266 * w32menu.c (current_popup_menu, get_menu_item_info):
13267 (set_menu_item_info): New vars.
13268 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
13269 (w32_menu_show): Set current_popup_menu.
13270 (add_menu_item): Allocate new strings for owner-drawn menu items
13271 and help strings.
13272 Use owner-draw for disabled menu items again.
13273 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
13274 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
60a653f1 13275
048addec
JD
13276 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
13277 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
13278 <WM_EXITMENULOOP>: Free menu strings.
13279 <WM_MOUSELEAVE>: Stop tracking mouse.
13280 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
60a653f1 13281
048addec
JD
13282 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
13283 and mouse face.
60a653f1 13284
048addec 132852001-12-01 Kim F. Storm <storm@cua.dk>
60a653f1 13286
048addec
JD
13287 The following changes add left-fringe and right-fringe
13288 frame parameters to adjust fringe widths, or remove one or
13289 both fringes.
60a653f1 13290
048addec
JD
13291 * frame.h (struct frame): Remove trunc_area_pixel_width and
13292 trunc_area_cols fields.
13293 (Qleft_fringe, Qright_fringe): Declare.
13294 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
60a653f1 13295
048addec
JD
13296 * frame.c (Qleft_fringe, Qright_fringe): New vars.
13297 (syms_of_frame): Initialize them.
60a653f1 13298
048addec
JD
13299 * window.c (coordinates_in_window): Handle separate left and right
13300 fringe widths.
60a653f1 13301
048addec
JD
13302 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
13303 and fringe_cols fields.
13304 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
13305 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
13306 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
13307 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
13308 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
13309 (x_compute_fringe_widths): Add prototype.
60a653f1 13310
048addec
JD
13311 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
13312 fill fringe evenly with small dashes.
f63fd14e 13313 (x_draw_fringe_bitmap): Clear background if necessary. Align and
048addec
JD
13314 clip the new ZV bitmap to avoid jitter between rows.
13315 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
13316 background. Don't draw fringe bitmaps if fringe width is zero.
13317 (x_compute_fringe_widths): New function.
13318 (x_new_font, x_set_window_size_1): Use it.
60a653f1 13319
048addec
JD
13320 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
13321 (x_set_frame_parameters): Process `font' parameter before other
13322 parameters as fringe widths depend on it.
13323 (x_set_fringe_width): New function.
13324 (x_figure_window_size): Use x_compute_fringe_widths.
13325 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
13326 parameters.
60a653f1 13327
048addec
JD
13328 * widget.c (set_frame_size): Use x_compute_fringe_widths.
13329 (EmacsFrameSetCharSize): Ditto.
60a653f1 13330
048addec
JD
13331 * w32term.h: Merged changes from xterm.h.
13332 * w32term.c: Merged changes from xterm.c.
13333 * w32fns.c: Merged changes from xfns.c.
60a653f1 13334
048addec 133352001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 13336
048addec 13337 * COPYING: Removed.
60a653f1 13338
048addec 133392001-11-29 Dave Love <fx@gnu.org>
60a653f1 13340
048addec
JD
13341 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
13342 extra extra slot.
13343 (detect_coding_mask): Fix call of detect_coding_iso2022.
60a653f1 13344
048addec 133452001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 13346
048addec
JD
13347 * fileio.c (file-name-coding-system)
13348 (default-file-name-coding-system): Doc fix (links to referenced
13349 variables added).
60a653f1 13350
048addec 133512001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 13352
048addec
JD
13353 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
13354 Add dummy uses of gcproN variables.
60a653f1 13355
048addec
JD
13356 * category.c (describe_category, describe_category_1)
13357 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
13358 (syms_of_category): Don't defsubr Sdescribe_categories.
60a653f1 13359
048addec 133602001-11-28 Richard M. Stallman <rms@gnu.org>
60a653f1 13361
048addec 13362 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
60a653f1 13363
048addec
JD
13364 * Makefile.in (lispdir): New variable, referring to build dir.
13365 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
60a653f1 13366
048addec 133672001-11-28 Andrew Innes <andrewi@gnu.org>
60a653f1 13368
048addec
JD
13369 * w32menu.c (w32_menu_display_help): Actually add the new argument
13370 OWNER.
60a653f1 13371
048addec 133722001-11-28 Jason Rumney <jasonr@gnu.org>
60a653f1 13373
048addec
JD
13374 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
13375 menu items. From David Ponce <dponce@wanadoo.fr>.
13376 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
13377 conditionally.
f63fd14e 13378 (w32_menu_display_help): New argument OWNER. Rewritten to store a
048addec 13379 help event in the owner frame's keyboard buffer.
60a653f1 13380
048addec
JD
13381 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
13382 (Fx_show_tip): Don't subtract last width from row width.
13383
13384 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
13385 (w32_read_socket): Use EQ to compare frames.
60a653f1 13386
048addec 133872001-11-28 Gerd Moellmann <gerd@gnu.org>
60a653f1 13388
048addec
JD
13389 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
13390 OVERLAPS_P.
60a653f1 13391
048addec 133922001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 13393
048addec
JD
13394 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
13395 `gcpro3' and `gcpro4'.
60a653f1 13396
048addec 13397 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
60a653f1 13398
048addec 133992001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 13400
048addec 13401 * ccl.c: Use AREF and ASIZE.
60a653f1 13402
048addec 134032001-11-27 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 13404
048addec
JD
13405 * lisp.h (run_hook_list_with_args): Remove.
13406 (LIST_END_P): Fix call to wrong_type_argument.
13407 (make_fixnum_or_float): Use EMACS_INT rather than int.
60a653f1 13408
048addec 134092001-11-26 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 13410
048addec
JD
13411 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
13412 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
60a653f1 13413
048addec
JD
13414 * eval.c: Use AREF and ASIZE.
13415 (Ffetch_bytecode): Add the file name to the error message.
60a653f1 13416
048addec
JD
13417 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
13418 which match the end of the file-name.
13419 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
13420 is not a valid env var, but leave it as is instead.
60a653f1 13421
048addec
JD
13422 * keymap.c (access_keymap): Handle t bindings like nil bindings.
13423 Make nil bindings in char-tables transparent.
13424 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
60a653f1 13425
048addec 134262001-11-26 Richard M. Stallman <rms@gnu.org>
60a653f1 13427
048addec
JD
13428 * textprop.c (set_text_properties_1): Allow START, END in either order.
13429 Do nothing if range is empty.
60a653f1 13430
048addec 13431 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
60a653f1 13432
048addec
JD
13433 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
13434 (clean): Not here.
60a653f1 13435
048addec 134362001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 13437
048addec
JD
13438 * textprop.c (set_text_properties_1): Clearly mark that the
13439 interval should not be empty.
60a653f1 13440
048addec
JD
13441 * intervals.c (graft_intervals_into_buffer):
13442 Don't call set_text_properties_1 on an empty interval.
60a653f1 13443
048addec 134442001-11-25 Richard M. Stallman <rms@gnu.org>
60a653f1 13445
048addec 13446 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
60a653f1 13447
048addec
JD
13448 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
13449 don't lose the data in it.
60a653f1 13450
048addec 134512001-11-25 Juanma Barranquero <lektu@terra.es>
60a653f1 13452
048addec 13453 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
60a653f1 13454
c62aec78 13455 * buffer.c (Fkill_buffer): Likewise.
60a653f1 13456
c62aec78 13457 * print.c (temp_output_buffer_setup): Likewise.
60a653f1 13458
048addec 134592001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 13460
048addec 13461 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
60a653f1 13462
048addec 134632001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 13464
048addec
JD
13465 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
13466 Niemitalo <kon@iki.fi>.
60a653f1 13467
048addec 134682001-11-25 Jason Rumney <jasonr@gnu.org>
60a653f1 13469
048addec 13470 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
60a653f1 13471
048addec
JD
13472 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
13473 (Fx_show_tip): Block input during frame creation.
13474 (Fx_show_tip, Fx_hide_tip): Enable.
60a653f1 13475
048addec 134762001-11-24 Richard M. Stallman <rms@gnu.org>
60a653f1 13477
048addec
JD
13478 * lread.c (Fload): Detect recursive load error for more than 3
13479 nestings of the same file.
13480 (Vrecursive_load_depth_limit): Variable deleted.
13481 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
60a653f1 13482
048addec 134832001-11-24 Jason Rumney <jasonr@gnu.org>
60a653f1 13484
048addec
JD
13485 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
13486 mouse position if either left or top is not specified.
60a653f1 13487
048addec
JD
13488 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
13489 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
13490 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
13491 (my_create_tip_window): Assign tip_window.
13492 (x_create_tip_frame): Use same defaults as X.
13493 (compute_tip_xy): Remove unused variable. Use full screen width.
f63fd14e 13494 (Fx_show_tip): Do not double height. Call ShowWindow directly.
60a653f1 13495
048addec
JD
13496 * w32term.c (x_after_update_window_line): Doc fix.
13497 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
13498 frames.
13499 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
60a653f1 13500
048addec
JD
13501 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
13502 for all Windowed systems.
60a653f1 13503
048addec 135042001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 13505
048addec
JD
13506 * msdos.c (IT_clear_screen): If the frame's faces are not yet
13507 realized, use the initial screen colors to clear the screen.
60a653f1 13508
048addec 135092001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 13510
048addec
JD
13511 * textprop.c (Fset_text_properties): Remove unused variables
13512 `unchanged', `prev_changed', `s' and `len'.
60a653f1 13513
048addec
JD
13514 * search.c (Freplace_match): Remove unused variable `inslen'.
13515
13516 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
13517
135182001-11-22 Jason Rumney <jasonr@gnu.org>
13519
13520 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
13521 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
13522 (my_create_tip_window): New function.
13523 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
13524 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
13525
135262001-11-20 Jason Rumney <jasonr@gnu.org>
13527
13528 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
13529 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
13530
13531 * w32fns.c (Vw32_system_coding_system): Remove.
13532 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
13533
135342001-11-19 Stefan Monnier <monnier@cs.yale.edu>
13535
13536 * fileio.c (Fwrite_region): Move choose_write_coding_system to
13537 after build_annotations.
13538
13539 * syntax.c (describe_syntax): Add dummy arg.
13540 (describe_syntax_1): Update call to describe_vector.
13541
13542 * category.c (describe_category): Add dummy arg.
13543 (describe_category_1): Update call to describe_vector.
13544
13545 * keymap.c (Fdescribe_vector): Add `describer' parameter.
13546 (describe_command, describe_translation): Add dummy second param.
13547 (describe_map): Call elt_describer with two arguments.
13548 (describe_vector_princ): Add `fun' parameter.
13549 Call it instead of the hardcoded `princ'.
13550 (describe_vector): Add arg `args'.
13551 Pass it as a new second argument to elt_describer.
60a653f1 13552
048addec 13553 * keymap.h (describe_vector): Update prototype.
60a653f1 13554
048addec
JD
13555 * frame.c: Don't include keymap.h any more.
13556 (keys_of_frame): Remove.
60a653f1 13557
048addec 13558 * lisp.h (keys_of_frame): Remove declaration.
60a653f1 13559
048addec 13560 * emacs.c (main): Don't call `keys_of_frame' any more.
60a653f1 13561
048addec 135622001-11-14 Andreas Schwab <schwab@suse.de>
60a653f1 13563
048addec
JD
13564 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
13565 if defined, 0 otherwise.
13566 (MAP_FAILED): Define if not defined and use it to test mmap failure.
13567 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
60a653f1 13568
048addec 135692001-11-19 Richard M. Stallman <rms@gnu.org>
60a653f1 13570
048addec 13571 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
60a653f1 13572
048addec 135732001-11-18 Jason Rumney <jasonr@gnu.org>
60a653f1 13574
048addec
JD
13575 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
13576 (x_draw_bar_cursor): If the background color of the glyph under
13577 the cursor equals the frame's cursor color, use the glyph's
13578 foreground color for drawing the bar cursor.
13579 (x_after_update_window_line): Clear internal border in different
13580 circumstances.
13581 (w32_set_vertical_scroll_bar): Check for width and height > 0.
13582 (w32_draw_relief_rect): Correct relief by 1 pixel.
13583 (x_set_glyph_string_background_width):
13584 Set extends_to_end_of_line_p if the row's fill_line_p is set and
13585 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
13586 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
13587 if cursor_in_non_selected_windows is false.
13588 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
13589 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
13590 Notice if cursor gets overwritten.
13591 (notice_overwritten_cursor): Renamed from
13592 note_overwritten_text_cursor. Rewritten to take glyph widths
13593 into account, and to take X positions as parameters.
13594 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
13595 around call to x_draw_glyphs.
13596 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
13597 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
13598 color to use for image glyph reliefs.
13599 (x_draw_image_relief): Accept zero tool_bar_button_relief.
13600 (glyph_rect): Remove unused variable `area'.
60a653f1 13601
048addec
JD
13602 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
13603 some items.
13604 (x_set_internal_border_width): Set frame garbaged when window
13605 doesn't exist yet.
13606 (Fx_create_frame): Accept zero tool_bar_button_relief.
13607 (x_clear_image_1, four_corners_best, image_background)
13608 (image_background_transparent): New functions.
13609 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
13610 (gs_format): Add `:background' entry.
13611 (lookup_image): Set IMG's background color if specified.
13612 (pbm_load, xbm_load_image, png_load): Set IMG's background field
13613 when appropriate.
13614 (x_clear_image_1): Reset `background_valid' and
13615 `background_transparent_valid' fields.
13616 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
13617 calculating it here. Set IMG's background_transparent field.
13618 (enum xpm_keyword_index): Add XPM_BACKGROUND.
13619 (enum png_keyword_index): Add PNG_BACKGROUND.
13620 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
13621 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
13622 (enum gif_keyword_index): Add GIF_BACKGROUND.
13623 (enum gs_keyword_index): Add GS_BACKGROUND.
13624 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
13625 Pre-calculate image background color where necessary.
13626 (x_create_x_image_and_pixmap, xbm_load, gs_load):
13627 Use display info's n_cbits entry for screen depth.
13628 (Fx_show_tip): Remove unused variables `buffer', `top',
13629 `left', `max_width' and `max_height'.
60a653f1 13630
048addec 13631 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
60a653f1 13632
048addec 136332001-11-18 Gerd Moellmann <gerd@gnu.org>
60a653f1 13634
048addec 13635 * puresize.h (BASE_PURESIZE): Increase to 750000.
60a653f1 13636
048addec 136372001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 13638
048addec 13639 * frame.c (Fframe_live_p): Doc fix.
60a653f1 13640
048addec 136412001-11-18 Richard M. Stallman <rms@gnu.org>
60a653f1 13642
048addec
JD
13643 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
13644 (message_dolog_marker3): New static variables hold three markers.
13645 (syms_of_xdisp): Initialize and staticpro them.
13646 (message_dolog): Use message_dolog_marker1..3 instead of
13647 allocating markers each time. Unchain them when done.
60a653f1 13648
048addec 136492001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 13650
048addec 13651 * doc.c (Fsnarf_documentation): Doc fix.
60a653f1 13652
048addec 136532001-11-17 Andreas Schwab <schwab@suse.de>
60a653f1 13654
048addec 13655 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
60a653f1 13656
048addec 136572001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 13658
048addec 13659 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
60a653f1 13660
048addec 136612001-11-17 Jason Rumney <jasonr@gnu.org>
60a653f1 13662
048addec 13663 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
60a653f1 13664
048addec 136652001-11-17 Gerd Moellmann <gerd@gnu.org>
60a653f1 13666
048addec
JD
13667 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
13668 with invalid position.
60a653f1 13669
048addec 136702001-11-16 Richard M. Stallman <rms@gnu.org>
60a653f1 13671
048addec 13672 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
60a653f1 13673
048addec
JD
13674 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
13675 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
13676 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
60a653f1 13677
048addec 13678 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
60a653f1 13679
048addec 136802001-11-16 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 13681
048addec
JD
13682 * fileio.c (build_annotations): Split off the tail.
13683 (build_annotations_2): New fun. Extracted from build_annotations.
13684 (Fwrite_region): Split the call to build_annotations into two
13685 calls to build_annotations and build_annotations_2.
077907d4 13686
048addec 136872001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1756e2fb 13688
048addec
JD
13689 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
13690 clear_waiting_for_input with argument.
1756e2fb 13691
048addec 13692 * xterm.h (x_update_cursor): Remove duplicated prototype.
06e8f738 13693
048addec 13694 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
06e8f738 13695
048addec 13696 * xterm.c (waiting_for_input): Remove unnecessary declaration.
fa336b91 13697
048addec 13698 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
fa336b91 13699
048addec 137002001-11-16 Stefan Monnier <monnier@cs.yale.edu>
fa336b91 13701
048addec
JD
13702 * fileio.c (choose_write_coding_system): New fun, extracted
13703 from Fwrite_region.
13704 (Fwrite_region): Use it.
fa336b91 13705
048addec
JD
13706 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
13707 (funcall_lambda, run_hook_with_args): Make static and add prototype.
13708 (ml_apply, find_handler_clause): Add prototype.
fa336b91 13709
048addec 137102001-11-16 Eli Zaretskii <eliz@gnu.org>
fa336b91 13711
048addec 13712 * config.in: Add #undef HAVE_COFF_H.
fa336b91 13713
048addec
JD
13714 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
13715 Required for ISC 4.1.
fa336b91 13716
048addec 137172001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
fa336b91 13718
048addec
JD
13719 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
13720 Andrew Wiseman <a.wiseman@btclick.com>.
fa336b91 13721
048addec 137222001-11-16 Kim F. Storm <storm@cua.dk>
fa336b91 13723
048addec
JD
13724 The following changes are made to clean up the various internal
13725 references to the fringes to actually use the term `fringe' for
13726 them. Previously, they were called `flags areas', `bitmap areas',
13727 `left/right side of windows', or implicitly as `flags' or
13728 `bitmaps':
fa336b91 13729
048addec 13730 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
f63fd14e 13731 Comments fixed. Use renamed symbols.
06e8f738 13732
f63fd14e 13733 * dispnew.c: Comment fix. Use renamed symbols.
06e8f738 13734
048addec
JD
13735 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
13736 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
13737 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
9ce647f4 13738
048addec 13739 * msdos.c: Comment fix.
9ce647f4 13740
048addec 13741 * w32fns.c: Use renamed symbols.
9b784ab8 13742
f63fd14e 13743 * w32term.c: Comment fixes. Use renamed symbols.
048addec
JD
13744 (fringe_bitmap_type): Renamed from bitmap_type.
13745 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
13746 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
13747 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
9f7e52b4 13748
f63fd14e 13749 * w32term.h: Comment fixes. Use renamed symbols.
048addec
JD
13750 (fringes_extra): Renamed from flags_areas_extra.
13751 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
13752 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
13753 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
13754 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
13755 (FRAME_X_LEFT_FRINGE_WIDTH):
13756 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
13757 (FRAME_X_RIGHT_FRINGE_WIDTH):
13758 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
9f7e52b4 13759
048addec 13760 * widget.c: Use renamed symbols.
9f7e52b4 13761
f63fd14e 13762 * window.c: Comment fixes. Use renamed symbols.
048addec 13763 (coordinates-in-window-p): Doc fix.
fa336b91 13764
f63fd14e 13765 * xdisp.c: Comment fixes. Use renamed symbols.
34e5d0af 13766
048addec 13767 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
9b784ab8 13768
048addec 13769 * xfns.c: Use renamed symbols.
89512fcd 13770
f63fd14e 13771 * xterm.c: Comment fixes. Use renamed symbols.
048addec
JD
13772 (fringe_bitmap_type): Renamed from bitmap_type.
13773 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
13774 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
13775 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
89512fcd 13776
f63fd14e 13777 * xterm.h: Comment fixes. Use renamed symbols.
048addec
JD
13778 (fringes_extra): Renamed from flags_areas_extra.
13779 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
13780 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
13781 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
13782 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
13783 (FRAME_X_LEFT_FRINGE_WIDTH):
13784 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
13785 (FRAME_X_RIGHT_FRINGE_WIDTH):
13786 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
13787
137882001-11-15 Jason Rumney <jasonr@gnu.org>
13789
13790 * w32menu.c (add-menu-item): Make help_echo and radio buttons
13791 work for most menu items. From David Ponce
13792 <david.ponce@wanadoo.fr>.
13793
137942001-11-15 Gerd Moellmann <gerd@gnu.org>
13795
13796 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
13797 Some x_set_* function expect to be called even if old and new
13798 value are equal.
13799
13800 * xdisp.c (build_desired_tool_bar_string): Accept zero
13801 tool_bar_button_relief.
13802
13803 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
13804
13805 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
13806
13807 * xterm.c (x_draw_bar_cursor): If the background color of the
13808 glyph under the cursor equals the frame's cursor color, use
13809 the glyph's foreground color for drawing the bar cursor.
13810
13811 * dispnew.c (direct_output_forward_char): Fix character/byte
13812 position comparison.
7d18891d 13813
048addec 138142001-11-15 Miles Bader <miles@gnu.org>
d2936d21 13815
048addec
JD
13816 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
13817 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
13818 Update arguments to find_field.
13819 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
13820 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
13821 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
13822 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
7d18891d 13823
048addec 138242001-11-14 Richard M. Stallman <rms@gnu.org>
7d18891d 13825
048addec 13826 * editfns.c (Fpropertize): Allow call with 1 arg.
7d18891d 13827
048addec
JD
13828 * dispextern.h (image_background, image_background_transparent):
13829 Conditionalize on HAVE_X_WINDOWS.
7d18891d 13830
048addec 138312001-11-13 Richard M. Stallman <rms@gnu.org>
7d18891d 13832
048addec 13833 * print.c (Fprin1_to_string): Doc fix.
7d18891d 13834
048addec 13835 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
7d18891d 13836
048addec 13837 * floatfns.c (Fceiling, Ffloor): Doc fixes.
7d18891d 13838
048addec 13839 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
7d18891d 13840
048addec 13841 * fileio.c (Ffile_accessible_directory_p): Doc fix.
7d18891d 13842
048addec 13843 * eval.c (syms_of_eval): Doc fix.
7d18891d 13844
048addec 13845 * coding.c (syms_of_coding): Doc fix.
7d18891d 13846
048addec 13847 * doc.c (Fsnarf_documentation): Doc fix.
7d18891d 13848
048addec 13849 * dispnew.c (syms_of_display): Doc fix.
9474c847 13850
048addec 13851 * category.c (Fget_unused_category): Doc fix.
9474c847 13852
048addec 13853 * buffer.c (syms_of_buffer): Doc fixes.
e3059a5d 13854
048addec 138552001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
e3059a5d 13856
048addec 13857 * print.c (prin1, print): Doc fix.
e3059a5d 13858
048addec 138592001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
b3700ae7 13860
048addec
JD
13861 * fontset.h: Remove declarations of variables
13862 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
b3700ae7 13863
048addec
JD
13864 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
13865 `Vclip_large_size_font'.
eae936e2 13866
048addec 138672001-11-13 Jason Rumney <jasonr@gnu.org>
4bb962be 13868
048addec 13869 * w32fns.c: Doc fix.
ddb67bdc 13870
048addec 138712001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3467c402 13872
048addec 13873 * xfaces.c (Fface_attributes_as_vector): Doc fix.
3467c402 13874
048addec 13875 * fns.c: Doc fix.
6e1b91d7 13876
048addec 13877 * emacs.c: Doc fix.
1c1d3d69 13878
048addec 13879 * coding.c: Doc fix.
1c1d3d69 13880
048addec
JD
13881 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
13882 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
13883 `new style' [w/`doc:' keyword].
b6f4c7ba 13884
048addec 138852001-11-12 Richard M. Stallman <rms@gnu.org>
b6f4c7ba 13886
048addec
JD
13887 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
13888 LeaveNotify events. Only FocusIn and FocusOut do that now.
13889 (x_display_and_set_cursor): Do display hollow cursors in active
13890 minibuffer windows when they are not selected.
b6f4c7ba 13891
048addec 138922001-11-12 Jason Rumney <jasonr@gnu.org>
a89f435d 13893
048addec 13894 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
f63fd14e
JB
13895 * w32term.c: Change doc-string comments to `new style'
13896 [w/`doc:' keyword]. Doc fixes.
a89f435d 13897
048addec
JD
13898 * w32fns.c: Don't define max.
13899 (Fx_open_connection): Only execute once.
a4cd0cd7 13900
048addec 139012001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
eafb659a 13902
048addec
JD
13903 * ccl.c: Change macros to use do-while block instead of if-else.
13904 Use braces to follow GNU Coding Standards.
eafb659a 13905
048addec 139062001-11-11 Richard M. Stallman <rms@gnu.org>
a4cd0cd7 13907
048addec 13908 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
a4cd0cd7 13909
048addec 13910 * lread.c (read_escape): Use end_of_file_error for reporting eof.
a4cd0cd7 13911
048addec
JD
13912 * insdel.c (replace_range): Use adjust_markers_for_replace
13913 instead of adjust_markers_for_delete and adjust_markers_for_insert.
a4cd0cd7 13914
048addec 13915 * intervals.h: Declare set_text_properties and set_text_properties_1.
a4cd0cd7 13916
048addec
JD
13917 * textprop.c (set_text_properties_1): New subroutine
13918 broken out of set_text_properties.
13919 (set_text_properties): Use set_text_properties_1.
91823618 13920
048addec
JD
13921 * intervals.c (graft_intervals_into_buffer):
13922 Use set_text_properties_1 to clear out properties.
91823618 13923
048addec
JD
13924 * search.c (Freplace_match): Use replace_range to insert
13925 and delete. Don't request property inheritance from
13926 surrounding text.
86928dfb 13927
048addec 139282001-11-10 Jason Rumney <jasonr@gnu.org>
86928dfb 13929
048addec 13930 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
f63fd14e 13931 vertical fonts. Allow them if face name is explicitly specified.
048addec 13932 Do not give up if we find a font that cannot be converted to an xlfd.
40ef1eda 13933
048addec 139342001-11-10 Gerd Moellmann <gerd@gnu.org>
ab8469eb 13935
048addec
JD
13936 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
13937 instead of malloc/free.
a78e0303 13938
048addec 139392001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
40ef1eda 13940
048addec
JD
13941 * xfaces.c (merge_face_vectors): Use braces to follow GNU
13942 Coding Standards.
13943 (Finternal_set_lisp_face_attribute): Likewise.
fabf4a91 13944
048addec 13945 * buffer.c (Fbury_buffer): Likewise.
0c99b139 13946
048addec 13947 * indent.c (current_column_1): Remove unused variable `prev_col'.
0c99b139 13948
048addec
JD
13949 * coding.c (encode_coding): Use precomputed value of `src'.
13950 (encode_coding): Remove unused variable `src_end'.
13951 (code_convert_region): Remove unused variables `count'.
830ddd77 13952
048addec 139532001-11-07 Jason Rumney <jasonr@gnu.org>
830ddd77 13954
048addec
JD
13955 * w32term.c (x_display_and_set_cursor): Do not move system caret
13956 if cursor_glyph is NULL.
55c6d645 13957
048addec 139582001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
55c6d645 13959
048addec 13960 * keymap.c (access_keymap): Fix compilation error.
5de38842 13961
048addec 139622001-11-07 Miles Bader <miles@gnu.org>
7a4564a4 13963
048addec 13964 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
5de38842 13965
048addec 139662001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4fa23df5 13967
048addec
JD
13968 * intervals.c (graft_intervals_into_buffer):
13969 Remove #ifdef'd-out code.
13970 (graft_intervals_into_buffer): Remove unused variable `middle'.
4fa23df5 13971
048addec
JD
13972 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
13973 code (eval-current-buffer).
13974 Change doc-string comments to `new style' [w/`doc:' keyword].
7a6a97d7 13975
048addec 139762001-11-06 Richard M. Stallman <rms@gnu.org>
c191d13c 13977
048addec 13978 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
7a6a97d7 13979
048addec 139802001-11-06 Stefan Monnier <monnier@cs.yale.edu>
44dc78e0 13981
048addec 13982 * lread.c (read1): Fix behavior with nested backquoting.
44dc78e0 13983
048addec
JD
13984 * keyboard.c (make_lispy_event): Check integerness and fix
13985 Lisp_Object/int mixup.
17893c65 13986
048addec 139872001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4d994a79 13988
048addec 13989 * fns.c (copy_hash_table): Remove unused variable `v'.
d5360cc7 13990
048addec
JD
13991 * fontset.c (fontset_font_pattern): Remove unused variable
13992 `family_registry'.
d5360cc7 13993
048addec 13994 * indent.c (current_column_1): Remove unused variable `prev_col'.
d5360cc7 13995
048addec 139962001-11-05 Richard M. Stallman <rms@gnu.org>
96238a5a 13997
048addec 13998 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
96238a5a 13999
048addec
JD
14000 * buffer.c (Fkill_buffer): Don't delete auto save file
14001 if buffer is modified.
d9d54213 14002
048addec 140032001-11-05 Andrew Innes <andrewi@gnu.org>
d9d54213 14004
048addec
JD
14005 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
14006 CHECK_NUMBER_CDR.
b116830b 14007
048addec 140082001-11-05 Richard M. Stallman <rms@gnu.org>
b116830b 14009
048addec 14010 * unexelf.c (unexec): Minor changes; clean up comments.
3297e2a1 14011
048addec 140122001-11-05 Sam Steingold <sds@gnu.org>
3297e2a1 14013
048addec 14014 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
6fb8339c 14015
048addec 140162001-11-05 Andreas Schwab <schwab@suse.de>
6fb8339c 14017
048addec 14018 * sound.c (sound_perror): Save errno from being clobbered.
7dd73b78 14019
048addec 140202001-11-05 Dale Hagglund <rdh@yottayotta.com>
7dd73b78 14021
048addec
JD
14022 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
14023 the program image directly.
982f6c7e 14024
048addec 140252001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d31053f9 14026
048addec 14027 * buffer.h (Fbuffer_local_value): Add prototype.
d31053f9 14028
048addec 140292001-11-04 Richard M. Stallman <rms@gnu.org>
d31053f9 14030
048addec
JD
14031 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
14032 and CHECK_BUFFER.
d31053f9 14033
048addec
JD
14034 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
14035 (record_char): Likewise.
d31053f9 14036
048addec
JD
14037 * keyboard.c (make_lispy_event): Don't insist a drag event must
14038 move to a different buffer position. Instead, check for moving at
14039 least double_click_fuzz.
982f6c7e 14040
048addec 14041 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
830047fd 14042
048addec 14043 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
b116830b 14044
048addec
JD
14045 * indent.c (current_column_1, Fmove_to_column): Separate the code
14046 for display-table glyphs from the code for buffer text, to fix
14047 bugs in the former.
830047fd 14048
048addec 140492001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
b116830b 14050
048addec
JD
14051 * buffer.c (Fbuffer_local_value): New function.
14052 (syms_of_buffer): Defsubr it.
2df5238c 14053
048addec
JD
14054 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
14055 value of `cursor-in-non-selected-windows'.
4e397688 14056
048addec
JD
14057 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
14058 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
14059 (syms_of_xdisp): Initialize it.
48b0f3ae 14060
048addec 140612001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2df5238c 14062
048addec 14063 * xfns.c (Fx_create_frame): Doc fix.
3ecaf7e5 14064
048addec
JD
14065 * coding.c: Change doc-string comments to `new style' [w/`doc:'
14066 keyword].
3ecaf7e5 14067
048addec
JD
14068 * eval.c (top_level_value, top_level_set): Remove commented and
14069 #ifdef'd-out code.
14070 (Fdefvar): Fix usage in doc-string.
3ecaf7e5 14071
048addec 140722001-11-03 Richard M. Stallman <rms@gnu.org>
3ecaf7e5 14073
048addec 14074 * xfns.c: Include unistd.h, if it exists.
8db2e33b 14075
048addec 14076 * editfns.c: Move the include of ctype.h after unistd.h.
8db2e33b 14077
048addec 14078 * gmalloc.c: Test BROKEN_PROTOTYPES.
aed29b97 14079
048addec 140802001-11-03 Ken Raeburn <raeburn@gnu.org>
aed29b97 14081
048addec
JD
14082 * lisp.h (CHECK_STRING_CAR): New macro.
14083 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
14084 treating XCAR and XCDR as lvalues.
14085 (openp): Use CHECK_STRING_CAR.
14086 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
aed29b97 14087
048addec 140882001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
6cb16f95 14089
048addec
JD
14090 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
14091 (SIGMASKTYPE): Define.
1b1acc13 14092
048addec 14093 * syssignal.h (sigunblock): Don't define if already defined.
020f9b38 14094
048addec 140952001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
020f9b38 14096
048addec
JD
14097 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
14098 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
14099 Fix typos in comments.
6cb16f95 14100
048addec
JD
14101 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
14102 and #ifdef'd-out code.
14103 Fix and reindent comments.
6cb16f95 14104
048addec 14105 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
6cb16f95 14106
048addec
JD
14107 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
14108 argument `i' in macros.
6cb16f95 14109
048addec
JD
14110 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
14111 `i' in macros.
7e9d3c2f 14112
048addec
JD
14113 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
14114 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
14115 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
14116 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
14117 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
14118 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
14119 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
14120 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
14121 in macros.
7e9d3c2f 14122
048addec
JD
14123 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
14124 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
14125 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
14126 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
14127 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
14128 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
14129 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
14130 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
14131 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
14132 (remove unused second argument).
7e9d3c2f 14133
048addec 141342001-11-02 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 14135
048addec
JD
14136 * syntax.c (describe_syntax): New wrapper.
14137 (Finternal_describe_syntax_value): Rename from describe_syntax.
14138 Don't insert space at front and \n at the end.
14139 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
e6bff182 14140
048addec
JD
14141 * regex.c (re_wctype): Try to fix some warnings.
14142 (regcomp, regexec): Don't forget the __restrict.
9ba48103 14143
048addec 141442001-11-02 Richard M. Stallman <rms@gnu.org>
9ba48103 14145
048addec 14146 * textprop.c (Fget_char_property): Doc fix.
9ba48103 14147
048addec 141482001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9ba48103 14149
048addec 14150 * process.c (Fstart_process): Add usage to doc-string.
c22e59e1 14151
048addec 14152 * data.c (Fsetq_default): Ditto.
c22e59e1 14153
048addec 14154 * callint.c (Finteractive): Ditto.
9271ed2c 14155
048addec 141562001-11-01 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 14157
048addec
JD
14158 * macros.c: Don't include keymap.h any more.
14159
141602001-11-01 Richard M. Stallman <rms@gnu.org>
14161
14162 * data.c (Fmake_local_variable): Doc fix.
14163
14164 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
14165 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
e6bff182 14166
048addec 14167 * keymap.c (Fdescribe_buffer_bindings): Print character property
9271ed2c
RS
14168 bindings along with or instead of the buffer local map.
14169 Make the overriding maps override what they should.
14170
f00691a3 141712001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8b8bd9c6
PJ
14172
14173 * window.c (grow_mini_window): Fix typo in comment.
14174
27188d11
GM
141752001-11-01 Gerd Moellmann <gerd@gnu.org>
14176
7b49b9d2
GM
14177 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
14178 (XTset_vertical_scroll_bar): Likewise.
14179
43f7c3ea
GM
14180 * xfns.c (x_build_heuristic_mask): Use four_corners_best
14181 instead of IMAGE_BACKGROUND.
c22e59e1 14182
b350c2e5
GM
14183 * xfns.c (four_corners_best): Reindent.
14184
c22e59e1 14185 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27188d11
GM
14186 Handle :box so that it is possible to specify sexprs.
14187
bf00d461
EZ
141882001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
14189
14190 * s/hpux11.h: New file.
14191
f00691a3 141922001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e10df59 14193
2b209b97
PJ
14194 * emacs.c (USAGE1): Show command line option --no-window-system
14195 instead of --no-windows in usage.
14196 (standard_args): Rename --no-windows to --no-window-system.
14197 (bug_reporting_address): Follow Emacs coding conventions.
14198
9dbc9081
PJ
14199 * eval.c (Fcommandp): Doc fix.
14200 Change doc-string comments to `new style' [w/`doc:' keyword].
14201
4e10df59
PJ
14202 * frame.c (Fframe_live_p): Doc fix.
14203
14204 * buffer.c (selective-display-ellipses): Doc fix.
14205
dd387b25
GM
142062001-10-31 Gerd Moellmann <gerd@gnu.org>
14207
fe957e65
GM
14208 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
14209
dd387b25
GM
14210 * xfaces.c (realize_x_face): If C is not a single-byte character,
14211 set the face's colors_copied_bitwise_p instead of the defaulted_p
14212 members which have a different meaning.
14213 (free_face_colors): Do nothing for a face whose colors have been
14214 copied bitwise.
14215
c22e59e1 14216 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
dd387b25 14217
f00691a3 142182001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2e1280f8 14219
687784e8
PJ
14220 * marker.c, mocklisp.c: Change doc-string comments to `new style'
14221 [w/`doc:' keyword].
2e1280f8 14222
b9d9a9b9
GM
142232001-10-31 Gerd Moellmann <gerd@gnu.org>
14224
14225 * fns.c (require_unwind): Return Lisp_Object.
14226
f00691a3 142272001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
48400103 14228
fa1361cb
PJ
14229 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
14230 (last-input-char): Revert doc-string to be the same as the
14231 doc-string of `last-input-event'.
14232
6c465a15 14233 * xdisp.c: Fix typos in comments.
48400103 14234
eafa3196
GM
142352001-10-31 Gerd Moellmann <gerd@gnu.org>
14236
14237 * window.c (grow_mini_window): Handle case that the root
14238 window is already smaller than the nominal mininum height.
14239
747d3f2a
SM
142402001-10-30 Stefan Monnier <monnier@cs.yale.edu>
14241
bf9bb76f
SM
14242 * emacs.c (main): Don't call keys_of_macros any more.
14243
14244 * lisp.h (keys_of_macros): Remove.
14245
14246 * macros.c (keys_of_macros): Remove.
14247
747d3f2a
SM
14248 * xfaces.c (Fface_attribute_relative_p): Declare args.
14249
5e905a57
JR
142502001-10-30 Jason Rumney <jasonr@gnu.org>
14251
14252 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
14253 (enum_font_cb2): Ignore fonts with vertical orientation.
14254
3a426197
RS
142552001-10-30 Richard M. Stallman <rms@gnu.org>
14256
14257 * keyboard.c (Finput_pending_p): Doc fix.
14258
a742d646
GM
142592001-10-30 Gerd Moellmann <gerd@gnu.org>
14260
259cf6bc
GM
14261 * xterm.c (x_after_update_window_line): Don't run the code
14262 clearing in borders for rows whose visible height is 0.
14263
3f99f948
GM
14264 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
14265 resized_p flag is set. If not set, use the much less flickering
14266 method previously used.
14267
14268 * dispnew.c (change_frame_size_1): Set frame's resized_p.
14269
14270 * frame.h (struct frame) <resized_p>: New member.
14271
b4a3be43
GM
14272 * lread.c (to_multibyte): Ensure read_buffer is at least twice
14273 as large as the number of bytes to convert.
747d3f2a 14274
a742d646
GM
14275 * lread.c (to_multibyte): New function.
14276 (read1): Use it.
14277
cacbb9e9
EZ
142782001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
14279
14280 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
14281
99cb6b2f
GM
142822001-10-30 Gerd Moellmann <gerd@gnu.org>
14283
327f42ee 14284 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
14285 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
14286 if the row's fill_line_p is set and drawing the last glyph with
14287 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 14288
99cb6b2f
GM
14289 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
14290
8e8223e2
SM
142912001-10-29 Stefan Monnier <monnier@cs.yale.edu>
14292
14293 * xmenu.c: Include coding.h and charset.h.
14294 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
14295 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
14296 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
14297 Explicitly set wv->help. Use `TRUE' rather than `True'.
14298 (menu_help_callback): Use empty_string.
14299
14300 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
14301 (Fx_popup_dialog): Explicitly init f.
14302 (w32_menu_display_help): Use empty_string.
14303
4d083a8f
RS
143042001-10-29 Richard M. Stallman <rms@gnu.org>
14305
b2304472
RS
14306 * fns.c (Frequire): Detect recursive try to require the same
14307 feature 3 or more levels deep, and get error.
14308 (require_unwind): New subroutine.
14309 (require_nesting_list): New variable.
14310 (syms_of_fns): Init and staticpro it.
14311
4d083a8f
RS
14312 * print.c (print_object): Clarify indication of insertion type.
14313
2fe41216
EZ
143142001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
14315
90480000
EZ
14316 * coding.c (syms_of_coding): Document that locale-coding-system is
14317 used for decoding input on X.
14318
2fe41216
EZ
14319 * window.c (Fscroll_left, Fscroll_right): Doc fix.
14320
f00691a3 143212001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
74e79967
PJ
14322
14323 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
14324 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
14325
60ebcfe8
GM
143262001-10-29 Gerd Moellmann <gerd@gnu.org>
14327
9a7bdceb
GM
14328 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
14329 use NO_CURSOR if cursor_in_non_selected_windows is false.
14330
3f08fcd2
GM
14331 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
14332 the slant attribute if FRAME is t.
14333
0ccfdad2
GM
14334 * xfns.c (x_set_internal_border_width): Set frame garbaged
14335 when X window doesn't exist yet.
14336
ef253080
GM
14337 * xterm.c (x_after_update_window_line): Clear internal border
14338 in different circumstances.
b116830b 14339
60ebcfe8
GM
14340 * xterm.c (XTread_socket) <KeyPress>: Don't use
14341 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
14342 <handa@etl.go.jp>.
14343
73d25f9c
EZ
143442001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
14345
14346 * m/ibms390.h: New file. From Adam Thornton
14347 <athornton@sinenomine.net>.
14348
cac1daf0
GM
143492001-10-28 Gerd Moellmann <gerd@gnu.org>
14350
053b3256 14351 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
b116830b 14352
cac1daf0
GM
14353 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
14354 a loop counter.
14355
f00691a3 143562001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13b1a09c 14357
f9711de4 14358 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
186486eb 14359
4707d2d0
PJ
14360 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
14361 keyword].
14362 Fix typos in comments.
b116830b 14363
d883731c
PJ
14364 * emacs.c (bug_reporting_address): New function.
14365 Use it when displaying usage message.
14366
04012254
PJ
14367 * minibuf.c (read_minibuf): Remove unused external declaration of
14368 variable `Qread_only'.
14369
13b1a09c
PJ
14370 * keymap.c (access_keymap): Remove unused variable `charset'.
14371
5bbf4378
MB
143722001-10-28 Miles Bader <miles@gnu.org>
14373
14374 * xfaces.c (merge_face_heights): Handle TO being relative as well.
14375 Remove #ifdef'd-out code.
14376 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
14377 (syms_of_xfaces): Initialize them.
14378
1ce1e4ee
JR
143792001-10-27 Jason Rumney <jasonr@gnu.org>
14380
14381 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
14382 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
14383 position using the system caret.
14384
14385 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
14386 (w32_system_caret_height, w32_system_caret_x)
14387 (w32_system_caret_y): New variables for tracking system caret.
14388 (w32_initialize): Initialize them.
c2d53558 14389 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 14390
c2d53558
SM
14391 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
14392 New messages types.
1ce1e4ee
JR
14393
14394 * w32term.c (note_mouse_highlight): Clear old help_echo.
14395
f00691a3 143962001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e30ce42 14397
bb4600a4
PJ
14398 * xterm.c: Fix typo in a comment.
14399
7db35a48
PJ
14400 * emacs.c: Fix typos in comments.
14401 Remove unnecessary spaces.
14402 Change doc-string comments to `new style' [w/`doc:' keyword].
14403 (USAGE2): Fix typos in usage string.
14404
a7248e4f
PJ
14405 * xterm.c: Fix typo in a comment.
14406
4e30ce42
PJ
14407 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
14408 emacs.c.
14409
62725a92
GM
144102001-10-27 Gerd Moellmann <gerd@gnu.org>
14411
798dbe1f 14412 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 14413 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
14414 farther backward when target_y was not reached.
14415
62725a92
GM
14416 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
14417 Display errno only if non-zero.
14418 (sound_warning): New function.
14419 (vox_configure): Don't treat failing to set sample rate as error.
14420 (various places): Improve error messages.
14421
d4e34d24
EZ
144222001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
14423
944e6f60
EZ
14424 * fileio.c (Faccess_file): Run the argument filename through
14425 Fexpand_file_name, before using it.
14426
d4e34d24
EZ
14427 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
14428 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
14429
38d2af0c
GM
144302001-10-26 Gerd Moellmann <gerd@gnu.org>
14431
da80a8d5
GM
14432 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
14433
38d2af0c
GM
14434 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
14435 Fix clearing in the case of scroll bars on the right.
c2d53558 14436
45de4a6f 144372001-10-26 Juanma Barranquero <lektu@terra.es>
56f508dd
EZ
14438
14439 * w32gui.h (XImage): Add a dummy typedef.
14440
fbd5ceb2
GM
144412001-10-26 Gerd Moellmann <gerd@gnu.org>
14442
c2d53558 14443 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 14444
b23236fb
EZ
144452001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
14446
14447 * frame.c (Fframe_parameter): Fix last change.
14448
5d991fc4
EZ
14449 * fileio.c: Revert last change (which removed old commented-out
14450 version of expand-file-name). Add a comment that explains why
14451 this old version should not be removed.
14452
879eadc3
GM
144532001-10-25 Gerd Moellmann <gerd@gnu.org>
14454
75700ff2
GM
14455 * frame.c (Fframe_parameter): Fix a bug whereby some
14456 ``artificial'' frame parameters, like `minibuffer' were not
14457 obtained by calling Fframe_parameters.
14458
dfe92a6a
GM
14459 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
14460 cursor differently.
14461
879eadc3
GM
14462 * xdisp.c (move_it_vertically_backward): Compute line height
14463 differently. Add heuristic to try to be more compatible to 20.x.
14464
e1010ebe
SM
144652001-10-25 Stefan Monnier <monnier@cs.yale.edu>
14466
d73a471b
SM
14467 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
14468
d6da5a06
GM
14469 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
14470 boolean.
e1010ebe 14471
f66bd220
MB
144722001-10-25 Miles Bader <miles@gnu.org>
14473
14474 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
14475 BG is a pointer to a structure, not a structure.
14476 (gif_format, png_format): Add missing commas.
14477
d436d538
RS
144782001-10-24 Richard M. Stallman <rms@gnu.org>
14479
14480 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 14481 (syms_of_xfaces): Defsubr it.
d436d538 14482
f00691a3 144832001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
075c507b
PJ
14484
14485 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
14486 variable `area'.
14487
f00691a3 144882001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d492b584 14489
c2d53558 14490 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 14491
e2a57b34
MB
144922001-10-25 Miles Bader <miles@gnu.org>
14493
14494 * dispextern.h (struct image): Add `background',
14495 `background_valid', and `background_transparent' fields.
14496 (image_background, image_background_transparent): New declarations.
14497 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
14498 * xfns.c (image_background, image_background_transparent)
14499 (four_corners_best): New functions.
c2d53558 14500 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
14501 (gs_format): Add `:background' entry.
14502 (lookup_image): Set IMG's background color if specified.
14503 (pbm_load, xbm_load_image, png_load): Set IMG's background field
14504 when appropriate.
14505 (x_clear_image_1): Reset `background_valid' and
14506 `background_transparent_valid' fields.
14507 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
14508 calculating it here. Set IMG's background_transparent field.
14509 (enum xpm_keyword_index): Add XPM_BACKGROUND.
14510 (enum png_keyword_index): Add PNG_BACKGROUND.
14511 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
14512 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
14513 (enum gif_keyword_index): Add GIF_BACKGROUND.
14514 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 14515 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
14516 Pre-calculate image background color where necessary.
14517 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
14518 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
14519 color to use for image glyph reliefs.
14520
b547b6e8
GM
145212001-10-24 Gerd Moellmann <gerd@gnu.org>
14522
d9e3b8c6
GM
14523 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
14524 in full-width rows.
c2d53558 14525
b547b6e8
GM
14526 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
14527 Fix clearing of area not covered by scroll bar.
14528
f00691a3 145292001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2beb36f9
PJ
14530
14531 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
14532 and `real_start'.
c2d53558 14533 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
14534 (glyph_rect): Remove unused variable `area'.
14535
76cb5e06
GM
145362001-10-24 Gerd Moellmann <gerd@gnu.org>
14537
bdbdebff 14538 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
14539
14540 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
14541 (row_containing_pos): Take additional argument DY.
14542 Treat rows ending in middle of char differently.
62e33982
GM
14543 (display_line): Handle tabs on window systems differently.
14544
14545 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
14546 with additional argument.
14547
14548 * dispextern.h (row_containing_pos): Adjust prototype.
14549
76cb5e06
GM
14550 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
14551 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
14552 (try_window_id, try_window_reusing_current_matrix)
14553 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
6c465a15 14554 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
76cb5e06 14555
f00691a3 145562001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
996fee11 14557
c9e60620
PJ
14558 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
14559 gnuemacs).
14560 (HAVE_BOXES): Fix typo in comment.
14561 (push_menu_pane): Fix typo in comment.
14562
3b552d56
PJ
14563 * xdisp.c: (display_prop_string_p): Remove unused local declaration
14564 of `Qwhen'.
14565 (single_display_prop_string_p): Remove unused local declarations
14566 of `Qwhen' and `Qmargin'.
14567 (string_buffer_position): Remove unused variable `around'.
14568 (store_frame_title): Remove unused variable `width'.
14569
15c565ac
PJ
14570 * window.c: Don't define max.
14571 (coordinates_in_window): Remove unused variable `uy'.
14572
a8818eb9
PJ
14573 * widget.c: Don't define max.
14574
996fee11
PJ
14575 * process.c: Don't define max.
14576 (create_process): Remove unused variable `buffer'.
14577
496e1a5b
GM
145782001-10-23 Gerd Moellmann <gerd@gnu.org>
14579
c2d53558 14580 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 14581
5905ae8b
EZ
145822001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
14583
14584 * xfaces.c (Finternal_set_lisp_face_attribute)
14585 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
14586 frame is on a windowed display.
14587
24db49fb
GM
145882001-10-23 Gerd Moellmann <gerd@gnu.org>
14589
c2d53558
SM
14590 * dispnew.c (sync_window_with_frame_matrix_rows):
14591 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
14592 of marginal areas.
14593
c2d53558 14594 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 14595
f0487f05
EZ
145962001-10-23 Andreas Schwab <schwab@suse.de>
14597
14598 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
14599 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
14600
f0a48a01
GM
146012001-10-23 Gerd Moellmann <gerd@gnu.org>
14602
c2d53558 14603 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
14604 REAL_END. Notice if cursor gets overwritten.
14605 (notice_overwritten_cursor): Take X positions as parameters.
14606 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
14607 around call to x_draw_glyphs.
14608
f00691a3 146092001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a50a10a0 14610
fc11dff0
PJ
14611 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
14612 instead of C) and usage.
a50a10a0 14613
fc11dff0
PJ
14614 * editfns.c (char-to-string): Fix argument names (use CHAR instead
14615 of C) and usage.
a50a10a0
PJ
14616
14617 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
14618 `left', `max_width' and `max_height'.
14619
8738febd
GM
146202001-10-23 Gerd Moellmann <gerd@gnu.org>
14621
14622 * xdisp.c (display_line): For a tab continued to the next line,
14623 set row's ends_in_middle_of_char_p.
14624
653c329b
GM
146252001-10-22 Gerd Moellmann <gerd@gnu.org>
14626
14627 * xdisp.c (display_line): Fix computation of continuation lines
14628 width for TABs.
14629
f00691a3 146302001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f958c5ac 14631
7ba51063
PJ
14632 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
14633 `Qlaplace'.
14634
f958c5ac
PJ
14635 * fileio.c: Remove unused code.
14636
eb360291
MB
146372001-10-22 Miles Bader <miles@gnu.org>
14638
14639 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
14640 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
14641 Remove `DOC_STRINGS_IN_COMMENTS' cases.
14642
98515cf0
JR
146432001-10-21 Jason Rumney <jasonr@gnu.org>
14644
14645 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
14646
93026d88
EZ
146472001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
14648
14649 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
14650 (Finsert_string): Avoid the multi-line string literals warning.
14651
c9a95b79
MB
146522001-10-22 Miles Bader <miles@gnu.org>
14653
14654 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
14655 (Fdocumentation): Don't use it.
14656 (syms_of_doc): Don't initialize it.
14657
14658 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
14659 * print.c (Fwith_output_to_temp_buffer): Likewise.
14660 * window.c (Fsave_window_excursion): Likewise.
c2d53558 14661 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 14662 (Fsave_restriction): Likewise.
c2d53558
SM
14663 * eval.c (Frun_hooks, Frun_hook_with_args)
14664 (Frun_hook_with_args_until_failure)
14665 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
14666 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
14667 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
14668 (Funwind_protect, Fcondition_case): Likewise.
14669 * coding.c (Ffind_operation_coding_system): Likewise.
14670 * keyboard.c (Ftrack_mouse): Likewise.
14671
a3b10252
MB
146722001-10-21 Miles Bader <miles@gnu.org>
14673
c2d53558 14674 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
14675 (Fmake_hash_table): Add usage: string to doc string.
14676 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 14677 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
14678 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
14679 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
14680 (Fml_prefix_argument_loop): Likewise.
14681
f00691a3 146822001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c6f73eec 14683
c2d53558 14684 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 14685
c6f73eec
PJ
14686 * sysdep.c (init_sys_modes): Change doc-string comments to `new
14687 style' [w/`doc:' keyword].
14688
14689 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
14690 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
14691 comments to `new style' [w/`doc:' keyword].
14692
3cf3436e
JR
146932001-10-21 Jason Rumney <jasonr@gnu.org>
14694
14695 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
14696
c169b8f1
JR
14697 * w32term.c (remember_mouse_glyph): New function.
14698 (w32_mouse_position): Use it.
14699 (note_mouse_movement): If the mouse moved off the glyph, remember
14700 its new position.
c2d53558 14701
4fdd691b
JR
14702 * w32term.h (struct w32_output): Correct spelling of x_compatible.
14703 (w32_display_info): Add mouse_face_overlay.
14704
c169b8f1
JR
14705 * w32term.c (notice_overwritten_cursor): Renamed from
14706 note_overwritten_text_cursor. Rewritten to take glyph widths into
14707 account.
14708 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
14709 (fast_find_string_pos): New function.
14710 (fast_find_position): Return the correct vpos. Add parameter
14711 STOP. In the final row, stop before glyphs having STOP as object.
14712 Don't consider glyphs that are not from a buffer.
14713 (fast_find_position) [0]: Add a presumably more correct version
14714 for after 21.1.
14715 (expose_window_tree, expose_frame): Don't compute intersections here.
14716 (expose_window): Do it here instead.
14717 (expose_window_tree, expose_window, expose_line): Return 1 when
14718 overwriting mouse-face.
14719 (expose_window): If W is the window currently being updated, mark
14720 the frame garbaged.
14721 (expose_frame): If mouse-face was overwritten, redo it.
14722 (x_use_underline_position_properties): New variable.
14723 (syms_of_xterm): DEFVAR_BOOL it.
14724 (x_draw_glyph_string): Add comment to use it in future.
14725 (x_draw_glyph_string): Restore clipping after drawing box.
14726 Fix a computation of the underline position.
14727 (w32_get_glyph_string_clip_rect): Minor cleanup.
14728 (x_fill_stretch_glyph_string): Remove an assertion.
14729 (x_produce_glyphs): Don't convert multibyte characters
14730 to unibyte characters in unibyte buffers.
14731 (cursor_in_mouse_face_p): New function.
14732 (x_draw_stretch_glyph_string): Use it to choose a different GC
14733 when drawing a cursor within highlighted text. Don't draw
14734 background again if it has already been drawn.
14735 (x_draw_glyph_string_box): Don't draw a full-width
14736 box just because the glyph row's full_width_p flag is set.
14737 (x_draw_glyphs): Fix computation of rightmost x for
14738 full-width rows.
14739 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
14740 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
f63fd14e 14741 change bottom shadow accordingly. Some cleanup.
c169b8f1
JR
14742 (x_update_window_end): Handle overwritten mouse face
14743 also for tool bar windows.
14744 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
14745 DRAW is DRAW_IMAGE_RAISED.
14746 (clear_mouse_face): Return 1 if text with mouse face was
2c568af5
SM
14747 actually redrawn. Make the function static.
14748 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
c169b8f1
JR
14749 optimize away highlighting if we pass over that same overlay again.
14750 (note_mouse_highlight): Call mouse_face_overlay_overlaps
14751 to detect a case where we have to highlight a different region
14752 despite not having left the currently highlighted region.
14753 Set mouse_face_overlay in the x_display_info. Avoid changing the
14754 mouse pointer shape when show_mouse_face has already done it, or
14755 there is no need. Handle mouse-face and help-echo in strings.
14756 (glyph_rect): New function.
14757 (w32_mouse_position): Use it to raise the threshold for mouse
14758 movement event generation.
14759 (w32_initialize_display_info): Initialize the x_display_info's
14760 mouse_face_overlay.
14761 (w32_set_vertical_scroll_bar): Don't clear a zero height
14762 or width area.
14763 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
14764 a widget to zero height.
14765
3cf3436e 14766 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 14767 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
14768 equivalents in menu_items.
14769 (w32_menu_show): Don't overwrite an item's name with its key
14770 description in case the description is a multibyte string.
14771 (single_submenu): Some cleanup.
14772
14773 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
14774 (postprocess_image): New function.
14775 (lookup_image): Call it for all image types except PostScript.
14776 (x_kill_gs_process): Call postprocess_image.
14777 (tiff_error_handler, tiff_warning_handler): New functions.
14778 (tiff_load): Install them as handlers.
14779 (x_kill_gs_process): Recognize if someone has cleared the image
14780 cache under us.
14781 (valid_image_p): Protect better against invalid image
14782 specifications. Previous code could signal an error.
14783 (Fx_hide_tip, Fshow_tip): Doc fix.
14784 (Fv_max_tooltip_size): New variable.
14785 (syns_of_xfns): DEFVAR_LISP it.
14786 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
f63fd14e 14787 window buffer to *tip* right after creating the frame. Set frame's
3cf3436e
JR
14788 window_width. Use a maximum tooltip size specified by
14789 Vx_max_tooltip_size, if that has valid contents.
14790 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
14791 Make sure the tooltip is completely visible.
14792 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
14793 (Fx_create_frame): Adjust the frame's height for presence
14794 of the tool bar before calling x_figure_window_size.
14795 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
14796 when the window gets smaller.
14797 (x_set_foreground_color): Set frame's cursor_pixel.
14798 (x_set_foreground_color, x_set_background_color): Cleaned up.
14799 (x_set_font): Handle case of x_new_fontset returning the same name
14800 as before, although there was a change in fontsets.
14801
386ca361
MB
148022001-10-21 Miles Bader <miles@gnu.org>
14803
c2d53558 14804 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
14805 (Flogxor): Add usage: string to doc string.
14806 * charset.c (Fstring): Likewise.
14807 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
14808 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
14809
f00691a3 148102001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14ff1ee0 14811
03be2694
PJ
14812 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
14813
14814 * alloc.c: Reindent DEFUNs with doc: keywords.
14815
14816 * abbrev.c (Finsert_abbrev_table_description): Reindent.
14817
14ff1ee0
PJ
14818 * frame.c: Change doc-string comments to `new style' [w/`doc:'
14819 keyword].
14820
2f147815 14821See ChangeLog.9 for earlier changes.
6922b018
KH
14822
14823;; Local Variables:
49b3bd82 14824;; coding: iso-2022-7bit
6922b018 14825;; End:
2a34a036 14826
2f147815 14827 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
2a34a036
GM
14828 Copying and distribution of this file, with or without modification,
14829 are permitted provided the copyright notice and this notice are preserved.
ab5796a9
MB
14830
14831;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4