(read-file-name-completion-ignore-case): Add.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
2bd77330
LT
12004-08-09 Luc Teirlinck <teirllm@auburn.edu>
2
3 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
4
c90e7e43
LT
52004-08-08 Luc Teirlinck <teirllm@auburn.edu>
6
7 * keyboard.c: Declare Qdisabled_command_function instead of
8392e138 8 Qdisabled_command_hook.
c90e7e43 9 (Fcommand_execute): Use Qdisabled_command_function instead of
8392e138 10 Qdisabled_command_hook.
c90e7e43
LT
11 (syms_of_keyboard): Ditto.
12
81909a1a
LT
132004-08-07 Luc Teirlinck <teirllm@auburn.edu>
14
15 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
16 (syms_of_keymap) <key-translation-map>: Doc fixes.
17
0cedd530
SM
182004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
19
1725a7c9
SM
20 * window.c (window_list_1): YAILOM.
21
0cedd530
SM
22 * fileio.c (make_temp_name): Handle multibyte prefixes.
23
2515a131
LT
242004-08-06 Luc Teirlinck <teirllm@auburn.edu>
25
26 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
27 Doc fix.
28
c8b20fb7
KH
292004-08-03 Kenichi Handa <handa@m17n.org>
30
31 * coding.c (decode_coding_string): Adjust coding->consumed, and
32 etc. with shrinked_bytes.
33
fb8b092b
KS
342004-08-03 Kim F. Storm <storm@cua.dk>
35
36 * indent.c (compute_motion): Fix check for full width window
37 in non-window case. Do not count left truncation glyph on
38 window systems.
39
df133612
LT
402004-08-02 Luc Teirlinck <teirllm@auburn.edu>
41
42 * data.c (Finteractive_form): Doc fix.
43
0f7a93c1
KS
442004-08-02 Kim F. Storm <storm@cua.dk>
45
46 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
47 properly accounting for continuation glyph on non-window systems.
48 (Fcompute_motion): Use actual window width if WIDTH is nil, and
49 actual window width/height if TOPOS is nil, properly accounting for
50 continuation glyphs on non-window systems, and optional header lines.
51 (vmotion): Let compute_motion calculate actual window width.
52
53 * window.c (window_scroll_line_based): Let compute_motion
54 calculate actual window width.
55
f491e1ed
KS
562004-08-02 Kim F. Storm <storm@cua.dk>
57
58 * process.c (read_process_output): Use whole read buffer.
59 Don't trigger adaptive read buffering on errors.
60
83f64226
LT
612004-07-31 Luc Teirlinck <teirllm@auburn.edu>
62
63 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
64
65 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
66
67 * callint.c (Fcall_interactively): Doc fix.
68
7c111482
KS
692004-07-30 Kim F. Storm <storm@cua.dk>
70
71 * editfns.c (Fformat): Allocate extra (dummy) element in info.
72
ee945d08
LT
732004-07-28 Luc Teirlinck <teirllm@auburn.edu>
74
75 * eval.c (Fdefvar, Fdefconst): Doc fixes.
76
3f911c94
KS
772004-07-27 Kim F. Storm <storm@cua.dk>
78
79 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
80 we have ensured that the glyph fits on the current line (or returned
81 MOVE_LINE_CONTINUED otherwise).
82
f29ff8c7
KS
832004-07-26 Kim F. Storm <storm@cua.dk>
84
85 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
86 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
87 if target position is at end of display line but char is not a newline.
88
81159bb9
RS
892004-07-25 Richard M. Stallman <rms@gnu.org>
90
ab431b61
RS
91 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
92 instead of ON_VERTICAL_BORDER, when on scroll bar.
93 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
94
95 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
96
f29ff8c7 97 * window.c (Fcoordinates_in_window_p):
81159bb9
RS
98 Take account of FRAME_INTERNAL_BORDER_WIDTH.
99
100 * alloc.c (check_cons_list): New function (contents commented out).
101
fc820cc5
LT
1022004-07-24 Luc Teirlinck <teirllm@auburn.edu>
103
104 * xfaces.c (Fcolor_supported_p): Doc fix.
105
106 * frame.c (Fselect_frame, Fset_frame_selected_window)
107 (Fframe_visible_p, Fraise_frame): Doc fixes.
108
289978b5
LT
1092004-07-24 Richard M. Stallman <rms@gnu.org>
110
7630911d
RS
111 * keyboard.h (not_single_kboard_state): Declared.
112
113 * fileio.c (Fwrite_region): Doc fix.
114
115 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
116
117 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
118 only when a real abbrev is present.
119
289978b5
LT
120 * xfns.c (x_icon_verify): New function.
121 (Fx_create_frame): Use it.
122
63cc10ae
KS
1232004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
124
125 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
126
36f826d4
KS
1272004-07-21 Kim F. Storm <storm@cua.dk>
128
129 * window.h (struct glyph_matrix): New members nrows_scale_factor
130 and ncols_scale_factor.
131
132 * window.c (make_window): Initialize nrows_scale_factor and
133 ncols_scale_factor members.
134
135 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
136 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
137 (required_matrix_height): Apply nrows_scale_factor.
138 (required_matrix_width): Apply ncols_scale_factor.
139
140 * xdisp.c (display_line): Increment nrows_scale_factor and set
141 fonts_changed_p if past last allocated row.
142 (append_glyph, append_composite_glyph, produce_image_glyph)
143 (append_stretch_glyph): Increment ncols_scale_factor and set
144 fonts_changed_p if current area is full.
145
5fc1c546
JD
1462004-07-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
147
148 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
149
cb7516e5
LT
1502004-07-19 Luc Teirlinck <teirllm@auburn.edu>
151
152 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
153 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
154 (Fset_window_start, Fscroll_up, Fscroll_down)
155 (Fother_window_for_scrolling, Fscroll_other_window)
156 (Fsave_window_excursion, Fset_window_vscroll)
157 (syms_of_window) <window-size-fixed>: Doc fixes.
158
dda741ec
JR
1592004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp> (tiny change)
160
161 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
162 ENCODE_SYSTEM for filenames.
163
bfcf6608
ST
1642004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
165
166 * mac.c (sys_select): Block input around call to
167 ReceiveNextEvent to prevent breakage. Correctly handle
168 blocking on event queue only by calling ReceiveNextEvent
169 instead of select (since GUI events aren't on an fd).
170 (sys_read): Remove function
171 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
172
e082ac9d
ST
1732004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
174
175 * mac.c (sys_select): Redo sys_select to use alarm-based
cb7516e5 176 polling instead of 1 sec timeouts (like solaris).
e082ac9d 177
cb7516e5 178 * macterm.c (x_make_frame_visible): Comment in polling on
e082ac9d
ST
179 frame creation.
180
181 * keyboard.c: Undef SIGIO on Carbon
182
183 * atimer.c (alarm_signal_handler): Call alarm handlers after
184 scheduling.
185
186 * eval.c (Feval): Remove quit_char test
187
188 * process.c (wait_reading_process_input): Remove clearing
189 stdin for select call on process input.
190
4b9da0fb
LT
1912004-07-18 Luc Teirlinck <teirllm@auburn.edu>
192
1204e81c
LT
193 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
194 capitalization error in docstring.
4b9da0fb 195
26503ad2
JB
1962004-07-17 Juanma Barranquero <lektu@terra.es>
197
198 * keyboard.c (not_single_kboard_state): Do nothing unless
199 MULTI_KBOARD is defined.
200
3751eb00
RS
2012004-07-17 Richard M. Stallman <rms@gnu.org>
202
203 * window.c (coordinates_in_window): Inside the window but outside
204 its box to the L or R, return ON_VERTICAL_BORDER.
205 (window_list_1): Rotate the list to start with WINDOW.
206
207 * print.c (print_preprocess): Test for print_depth at limit
208 before entering in being_printed.
209
210 * keyboard.c (not_single_kboard_state): New function.
211 (stuff_buffered_input): Now no-op only if no SIGTSTP.
212
213 * frame.c (Fdelete_frame): If we're in single_bboard_state on
214 this kboard, and we delete its last frame, go to any_kboard_state.
215
216 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
217
62eb6ca9
JR
2182004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp> (tiny change)
219
220 * w32fns.c (Fx_file_dialog): Encode strings in system coding
221 system before passing them to OS functions for display.
222
0f6af254
DK
2232004-07-15 David Kastrup <dak@gnu.org>
224
f9253326
KS
225 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
226 Apparently fixes an abort condition.
0f6af254 227
386c8f42
LT
2282004-07-14 Luc Teirlinck <teirllm@auburn.edu>
229
230 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
231 instead of a cons.
232
366511da
MB
2332004-07-14 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
234
235 * keyboard.c (echo_dash): Do nothing if there already is a dash
236 at the end of the echo string.
237
f85409d3
KS
2382004-07-12 Kim F. Storm <storm@cua.dk>
239
240 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
241 if GC_MARK_STACK.
242
0ba2e87b
LT
2432004-07-10 Luc Teirlinck <teirllm@auburn.edu>
244
da38045d
LT
245 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
246
0ba2e87b
LT
247 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
248 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
249 (Freplace_buffer_in_windows, Fset_window_buffer)
250 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
251 (syms_of_window): Expand docstring of `display-buffer-function'.
252
5668fbb8
LT
2532004-07-09 Luc Teirlinck <teirllm@auburn.edu>
254
255 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
256 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
257 that time values of the type (HIGH . LOW) are considered obsolete.
258
a085bf9d
LT
2592004-07-06 Luc Teirlinck <teirllm@auburn.edu>
260
669de2fb
LT
261 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
262 docstring.
263
bac66325 264 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
a085bf9d 265
8e975df9
JPW
2662004-07-06 John Paul Wallington <jpw@gnu.org>
267
268 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
269
fa164e6a
JPW
270 * fns.c (Fclear_string): Signal an error if STRING is not a string.
271
2bac9bb1
JD
2722004-07-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
273
274 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
275 instead of CGMainDisplayID (only in OSX 10.2 and later).
276
316ef0dc
JPW
2772004-07-04 John Paul Wallington <jpw@gnu.org>
278
279 * fileio.c (read_file_name_completion_ignore_case): New variable.
280 (syms_of_fileio): Declare and initialise it.
281 (Fread_file_name): Bind `completion-ignore-case' to respect it.
282
2a1a35c6
EZ
2832004-07-03 Eli Zaretskii <eliz@gnu.org>
284
285 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
286 for event.x and event.y.
287
33a72331
KH
2882004-07-01 Kenichi Handa <handa@m17n.org>
289
290 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
291 after getting a new string by pre-write-conversion.
292
07a6ab76
SM
2932004-06-30 Stefan <monnier@iro.umontreal.ca>
294
295 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
296 (x_calc_absolute_position): Remove unused var `child'.
297
298 * xfaces.c (x_supports_face_attributes_p)
299 (Fdisplay_supports_face_attributes_p): YAILOM.
300 (tty_supports_face_attributes_p): Remove unused var `i'.
301
302 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
303 back_unibyte_ok.
304
305 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
306
307 * fontset.c (Fset_fontset_font): Remove unused vars `family' and `registry'.
308
309 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
310
f96ec754
AS
3112004-06-30 Andreas Schwab <schwab@suse.de>
312
313 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
314 (Finit_image_library): Pass LIBRARIES through to
315 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
316 (lookup_image_type): Pass Qnil as second argument to
317 Finit_image_library.
318
319 * lisp.h: Declare Finit_image_library.
320
59feca74 3212004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
c8d09ad8 322
31983645
AS
323 * macterm.c (do_window_activate, do_window_deactivate): Remove.
324 (XTread_socket): Send mouse button events to the toolbox
325 dispatcher even when the mouse is grabbed. Don't process window
326 activate events for non-Emacs windows. Replace function calls to
327 do_window_activate and do_window_deactivate with their contents.
328 Reset mouse grabbing status when a window is deactivated.
59feca74 329
c61278bb
ST
3302004-06-29 Steven Tamm <steventamm@mac.com>
331
332 * macterm.c (mac_get_emulated_btn)
333 (mac_event_to_emacs_modifiers): Fix emulated mouse button
334 support to correctly mask out modifiers.
335
c3762cbd
DK
3362004-06-29 David Kastrup <dak@gnu.org>
337
338 * search.c (Fset_match_data): Allow buffer before end of list
339 which can happen if set-match-data is using a pre-consed list.
340
c61278bb 3412004-06-28 Steven Tamm <steventamm@mac.com>
e439b925
ST
342
343 * macterm.c (XTread_socket): Correctly set the frame position
344 after the window is moved.
345
74cdfe05
JD
3462004-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
347
348 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
349 gpix and gmask just before return to avoid memory leak.
03ecb80f
JD
350 (xg_get_image_for_pixmap): Add workaround for monochrome displays
351 so insensitive and activated icons look ok.
74cdfe05 352
ef544dc8
JR
3532004-06-27 Jason Rumney <jasonr@gnu.org>
354
355 * w32fns.c (file_dialog_callback): Disable edit control if set
356 to directories only on CDN_INITDONE message.
357 (Fx_file_dialog): Default to directories only when prompt starts
358 with "Dired".
359
7b7990cc
KS
3602004-06-25 Kim F. Storm <storm@cua.dk>
361
362 * alloc.c (allocate_misc): Update total_free_markers.
363 (free_misc): New function.
364 (safe_alloca_unwind, free_marker): Use it.
365
366 * lisp.h (free_misc): Add prototype.
367
368 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
369
d8c379f8
RS
3702004-06-24 Richard M. Stallman <rms@gnu.org>
371
372 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
373 (syms_of_emacs): Lisp variables deleted.
374
559cdd07
DK
3752004-06-23 David Kastrup <dak@gnu.org>
376
94939b84
DK
377 * search.c (Freplace_match): Adjust the match-data more thoroughly
378 when replacing strings in the buffer.
379 (Fmatch_data): When INTEGERS is non-nil and the last match was in
380 a buffer, add the buffer as last element to the match data.
381 (Fset_match_data): If an additional element of the match-data is a
382 buffer, restore it to last_thing_searched.
c8d09ad8 383 (save_search_regs): Save last_thing_searched as part of the match data.
559cdd07
DK
384 (restore_match_data): Restore it again.
385
dce417e7
LT
3862004-06-23 Luc Teirlinck <teirllm@auburn.edu>
387
388 * keymap.c (Ftext_char_description): Doc fix.
389 * doc.c (Fsnarf_documentation): Doc fix.
390
ef54b2d0
KS
3912004-06-22 Kim F. Storm <storm@cua.dk>
392
b5bc4d05
KS
393 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
394
ef54b2d0
KS
395 * lisp.h (struct Lisp_Save_Value): New member dogc.
396 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
397 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
398 (SAFE_FREE_LISP): New macro.
399
400 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
401 (make_save_value): Init new dogc member.
402 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
403
404 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
405 SAFE_FREE_LISP macros.
406
3d33d993
KS
4072004-06-22 Kim F. Storm <storm@cua.dk>
408
409 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
410 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
411 in that memory area are unknown to GC. Add comments.
412
413 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
414
5c917f98
KS
4152004-06-21 Kim F. Storm <storm@cua.dk>
416
417 * lisp.h (MAX_ALLOCA): Define here.
418 (safe_alloca_unwind): Add prototype.
419 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
420
421 * alloc.c (safe_alloca_unwind): New function.
422
423 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
424
425 * charset.c (Fstring): Use SAFE_ALLOCA.
426
427 * coding.c (MAX_ALLOCA): Remove define.
428
429 * data.c (MAX_ALLOCA): Remove define.
430 (Faset): Use SAFE_ALLOCA.
431
432 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
433
434 * fns.c (string_make_multibyte, string_to_multibyte)
435 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
436 (MAX_ALLOCA): Remove define.
437 (Fbase64_encode_region, Fbase64_encode_string)
438 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
439 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
440 memory leak if encoding fails.
441
442 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
443
9a09408e
EZ
4442004-06-21 Eli Zaretskii <eliz@gnu.org>
445
446 * print.c (Fwith_output_to_temp_buffer): Doc fix.
447
376de739
RS
4482004-06-20 Richard M. Stallman <rms@gnu.org>
449
450 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
451
452 * search.c (match_limit): Cleaner err msg when no match data available.
453
454 * window.c (syms_of_window): Doc fix.
455
456 * keyboard.c (command_loop_1): Handle values `only' and `identity'
457 for Vtransient_mark_mode.
458
459 * buffer.c (syms_of_buffer): Doc fix.
460
acd81db9
DK
4612004-06-21 David Kastrup <dak@gnu.org>
462
463 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
464 and unbinding of `case-fold-search' according to
465 `completion-ignore-case' around calls of string-match and
466 predicates, respectively. Should give satisfactory performance
467 in all relevant cases.
468
f303762d
JD
4692004-06-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
470
95911c74
JD
471 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
472 clip_x/y_origin.
473
a6cb6b78
JD
474 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
475
f303762d
JD
476 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
477
478 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
479 on Mac OSX.
480
bbdb2684
LT
4812004-06-16 Luc Teirlinck <teirllm@auburn.edu>
482
483 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
484
5ea48b1c
KS
4852004-06-16 Kim F. Storm <storm@cua.dk>
486
487 * dispextern.h (Vimage_types): Remove extern.
488
803aac3e
MB
4892004-06-16 Miles Bader <miles@gnu.org>
490
491 * image.c (lookup_image_type): Initialize image type if necessary.
492
cdc97764
KS
4932004-06-15 Kim F. Storm <storm@cua.dk>
494
c4a5739c
KS
495 * xdisp.c (try_cursor_movement): Exclude header line from scroll
496 margin at top of window.
497 (try_window_reusing_current_matrix): Calculate proper cursor position
498 after scrolling up with non-zero scroll margin, as the old cursor
499 position corresponds to value of PT before executing this command.
500 (try_window_id): Consider scroll margin at bottom of window too;
501 otherwise we fail to scroll when hl-line-mode is enabled.
502
cdc97764
KS
503 * syntax.c (skip_chars): Only recognize [:class:] when it has the
504 proper format and class is a lower-case word.
505
5b166323
JD
5062004-06-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
507
508 * gtkutil.c (xg_get_image_for_pixmap): New function.
c8d09ad8 509 (xg_get_gdk_pixmap_and_mask): Remove.
5b166323
JD
510 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
511 xg_get_gdk_pixmap_and_mask.
cdc97764 512
5b166323
JD
513 * xterm.h (struct x_display_info): Typo in comment fixed.
514
1ebd4f78
JB
5152004-06-14 Juanma Barranquero <lektu@terra.es>
516
517 * dispextern.h (Vimage_types): Make it conditional on
518 HAVE_WINDOW_SYSTEM.
519
520 * image.c (Vimage_types): Move from xdisp.c.
521 (Vimage_type_cache): New variable.
522 (define_image_type): New argument indicating whether an image
523 library was loaded; cache loaded status and return t on success,
524 nil otherwise.
525 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
526 (w32_delayed_load): New function to load an image library from a
527 list of possible filenames.
528 (init_xpm_functions, init_png_functions, init_jpeg_functions)
529 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
c8d09ad8 530 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
1ebd4f78
JB
531 (Finit_image_library): New function, extracted from `init_image'.
532 Try to initialize an image library on demand and cache whether we
533 were successful or not.
534 (syms_of_image): Initialize `Vimage_types' and
535 `Vimage_type_cache'. Add recognized image types to Vimage_types.
536 Export `init-image-library'.
537 (init_image): Remove initialization of all image types, except xbm
538 and pbm.
539
540 * xdisp.c (Vimage_types): Delete (moved to image.c).
541
904ee128
AS
5422004-06-14 Andreas Schwab <schwab@suse.de>
543
544 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
545 Avoid calling specbind when completion-regexp-list is empty.
546
092de21d
RS
5472004-06-13 Richard M. Stallman <rms@gnu.org>
548
549 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
550 (re_wctype, re_iswctype, re_wctype_to_bit):
551 Non-function definitions moved here from regex.c.
1ebd4f78 552
092de21d
RS
553 * regex.c (re_wctype, re_iswctype): Function defs longer static.
554 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
555 (re_wctype, re_iswctype, re_wctype_to_bit):
556 Non-function definitions moved to regex.h.
557
558 * window.c (Fselect_window): Doc fix.
559
560 * syntax.c: Include regex.h.
561 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
562 If requested, make a list of classes, then check the scanned
563 chars for membership in them.
564 (in_classes): New function.
565 Doc fix.
566
567 * keyboard.c (cmd_error): Don't call any_kboard_state
568 if inside a recursive edit level.
569
5702004-06-13 Lorentey K\e,Aa\e(Broly <lorentey@elte.hu>
571
572 * keyboard.c (command_loop): Call any_kboard_state before
573 command_loop_2 when at top level.
574
3ebc0939
AS
5752004-06-13 Andreas Schwab <schwab@suse.de>
576
cea5d0d4
AS
577 * print.c (print_object): Always use %ld for printing EMACS_INT.
578
579 * keyboard.c (cancel_hourglass_unwind): Return a value.
580 (modify_event_symbol): Always use %ld for printing EMACS_INT.
581 (Fexecute_extended_command): Likewise.
582
583 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
584 avoid clashes.
585 (SYNTAX): Likewise.
586 (SYNTAX_WITH_FLAGS): Likewise.
587 (SYNTAX_MATCH): Likewise.
588
589 * syntax.c (char_quoted): Avoid warning about undefined operation.
590 (find_defun_start): Likewise.
591 (scan_lists): Likewise.
592 (INC_FROM): Likewise.
593 (scan_sexps_forward): Likewise.
594
be8c4ce4
AS
595 * image.c: Include <ctype.h>.
596
3ebc0939
AS
597 * xfaces.c (face_attr_equal_p): Declare parameters.
598
6fb41b5b
KH
5992004-06-13 Kenichi Handa <handa@m17n.org>
600
601 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
602
fc3095ce
EZ
6032004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
604
605 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
606
66189a40
KH
6072004-06-12 Kenichi Handa <handa@m17n.org>
608
609 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
610 ccl_prog_stack_struct and update it.
611 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
612 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
613 ccl->eof_ic on EOF.
614 (ccl_debug_hook): New function.
615 (struct ccl_prog_stack): New member eof_ic.
616 (ccl_driver): Handle EOF in subrountine call correctly.
617
6182004-06-11 Kenichi Handa <handa@m17n.org>
619
620 * coding.c (decode_coding_string): Check CODING_FINISH_INTERRUPT.
621
1da71023
KS
6222004-06-11 Kim F. Storm <storm@cua.dk>
623
624 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
625
e9efcef4
JB
6262004-06-11 Juanma Barranquero <lektu@terra.es>
627
628 * keyboard.c (Fposn_at_point): Doc fix.
629
9b9ceb61
DK
6302004-06-11 David Kastrup <dak@gnu.org>
631
632 * search.c (match_limit): Don't flag an error if match-data
633 exceeding the allocated search_regs.num_regs gets requested, just
634 return Qnil.
635
6e87ac8f
MB
6362004-06-08 Miles Bader <miles@gnu.org>
637
638 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
639
0b0dea7b
JB
6402004-06-07 Juanma Barranquero <lektu@terra.es>
641
642 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
643 (Fcurrent_time_string, Fcurrent_time_zone)
644 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
645
a0a23346
MB
6462004-06-07 Miles Bader <miles@gnu.org>
647
08384afd 648 * xfaces.c (struct named_merge_point): New type.
a0a23346
MB
649 (push_named_merge_point): New function.
650 (merge_named_face): New function.
651 (merge_face_ref, face_at_buffer_position, face_at_string_position):
652 Use `merge_named_face'.
653 (merge_face_inheritance): Function removed.
c8d09ad8 654 (merge_face_ref): Rename from `merge_face_vector_with_property'.
a0a23346
MB
655 Add new `err_msgs' and `named_merge_points' args. Return error
656 status. Only print error messages if ERR_MSGS is true. Don't try to
657 do :inherit attribute validation.
658 (merge_face_heights): Handle `unspecified' in both directions.
659 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
660 Call `merge_face_ref' instead of `merge_face_inheritance'.
661 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
662 (compute_char_face, face_at_buffer_position)
663 (face_at_string_position): Call `merge_face_ref' instead of
664 `merge_face_vector_with_property'.
665
12d5b185
KH
6662004-06-07 Kenichi Handa <handa@m17n.org>
667
668 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
669 the necessary places.
670
2e2d7ee6
KS
6712004-06-07 Kim F. Storm <storm@cua.dk>
672
673 * process.c (Fdelete_process): Undo 2004-05-28 change.
674 Instead, call status_notify also for network process.
675 (status_message): Use process instead of status as arg.
676 Give messages "deleted" or "connection broken by remote peer" for
677 an exited network process.
678 (status_notify): Change call to status_message.
679 (read_process_output): Increase readmax to 4096. Do not increase
680 buffer size for datagram channels (default is now large enough).
681
fcf0d299
ST
6822004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
683
684 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
685 problem due to newly defined variable.
686
0722292b
MB
6872004-06-06 Miles Bader <miles@gnu.org>
688
689 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
690 immediately if non-interactive or not initialized.
691
ddfb8369
RS
6922004-06-05 Richard M. Stallman <rms@gnu.org>
693
694 * minibuf.c (Fcompleting_read): Doc fix.
695
57015754
AS
6962004-06-05 Andreas Schwab <schwab@suse.de>
697
698 * macfns.c (x_create_tip_frame): Fix declaration after statement.
699
23715ea6
JB
7002004-06-05 Juanma Barranquero <lektu@terra.es>
701
702 * keymap.c (Fdescribe_vector): Fix docstring.
703 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
704
8e330b22
MB
7052004-06-05 Miles Bader <miles@gnu.org>
706
707 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
708 attributes have different values than the default face.
709
9742a3a6
EZ
7102004-06-04 Eli Zaretskii <eliz@gnu.org>
711
712 * xfaces.c (x_supports_face_attributes_p): Make this function
713 conditional on HAVE_WINDOW_SYSTEM.
c8d09ad8
SM
714 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
715 Don't call x_supports_face_attributes_p if it was not compiled in.
9742a3a6 716
9717e36c
MB
7172004-06-04 Miles Bader <miles@gnu.org>
718
719 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
720 from Ftty_supports_face_attributes_p.
721 (x_supports_face_attributes_p): New function.
722 (Ftty_supports_face_attributes_p): Function deleted.
723 (Fdisplay_supports_face_attributes_p): New function.
724 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
f9711de4 725 (face_attr_equal_p): New function.
9717e36c
MB
726 (lface_equal_p): Use it.
727
52deb19f
JB
7282004-06-03 Juanma Barranquero <lektu@terra.es>
729
730 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
731 (Vw32_color_map): Fix typo in docstring.
732 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
733 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
734 Make argument names match their use in docstring.
735
86d373e6
JB
7362004-06-02 Juanma Barranquero <lektu@terra.es>
737
738 Work around bugs/problems with MinGW builds of graphics libraries
739 called from MSVC builds of Emacs.
740
741 * image.c (lookup_image): Make pointer to img static.
742 (png_read_from_memory): Disable "global" optimization.
743
2fb0ce67
SM
7442004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
745
c8d09ad8
SM
746 * eval.c (Fcondition_case): Fix usage. Simplify.
747
2fb0ce67
SM
748 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
749
50bf7673
ST
7502004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
751
752 * macfns.c: Don't include ccl.h.
753 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
86d373e6
JB
754 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
755 TextUtils.h.
c8d09ad8 756 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
50bf7673
ST
757 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
758 display height/width.
759 (compute_tip_xy, Vx_max_tooltip_size): Declare.
760 (unwind_create_tip_frame, compute_tip_xy): New functions.
761 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
762 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
763 and last_show_tip_args.
2fb0ce67 764
50bf7673
ST
765 * macgui.h [!MAC_OSX]: Include Gestalt.h.
766 (Cursor, No_Cursor): New defines.
c8d09ad8 767 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
50bf7673
ST
768 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
769
770 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
771
772 * macterm.c: Don't include Gestalt.h.
773 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
774 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
775 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
776 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
777 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
778 (construct_mouse_click, XTmouse_position)
779 (x_scroll_bar_report_motion, x_calc_absolute_position)
780 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
781 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
782 (note_mouse_movement): Clear the mouse face and reset the pointer
783 shape when the pointer goes outside the frame without grabbing.
784 (mac_front_window): New function.
785 (mac_window_to_frame): New macro.
786 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
787 (do_window_activate, do_window_deactivate, do_app_resume)
788 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
789 (do_zoom_window, mac_do_receive_drag, XTread_socket)
790 (mac_check_for_quit_char): Use mac_front_window and/or
791 mac_window_to_frame.
792 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
793 scroll-bar click event.
794 (mac_define_frame_cursor): Change the pointer shape.
c8d09ad8 795 (x_free_frame_resources): Reset tip_window to NULL when it is disposed.
50bf7673 796 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
c8d09ad8 797 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
50bf7673
ST
798 (do_window_update): Don't do anything if the updated window is the
799 tooltip window.
800 (do_mouse_moved): Handle mouse movement events here (previously in
801 XTread_socket). Clear the mouse face if
802 dpyinfo->mouse_face_hidden is set.
803 (do_os_event, do_events): Remove (now in XTread_socket).
804 (XTread_socket): Immediately return if interrupt_input_blocked.
c8d09ad8
SM
805 Loop until all the events in the queue are processed.
806 Rearrange codes for mouse grabbing. Add tooltip support. Include the
50bf7673
ST
807 contents of do_os_event and do_events. Remove mouse movement
808 handling (now in do_mouse_moved). Add the case where
809 Vmouse_highlight has an integer value.
810 (NewMacWindow): Remove.
811 (make_mac_frame): Do what NewMacWindow previously did. Don't do
812 excess initializations.
813 (make_mac_terminal_frame): Previous initializations in
814 make_mac_frame are moved here.
c8d09ad8
SM
815 (mac_initialize_display_info):
816 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
50bf7673
ST
817
818 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
819 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
820
08fd1251
RS
8212004-05-29 Richard M. Stallman <rms@gnu.org>
822
823 * lisp.h (truncate_undo_list): Update decl.
824
825 * alloc.c (undo_outer_limit): New variable.
826 (syms_of_alloc): Defvar it.
827 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
828
829 * undo.c (truncate_undo_list): New arg LIMITSIZE.
830
831 * alloc.c (lisp_align_malloc): Check for base == 0
832 regardless of HAVE_POSIX_MEMALIGN.
833 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
834
227ef0ff
SM
8352004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
836
837 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
838 (marker_blocks_pending_free): Remove.
839 (Fgarbage_collect): Sweep after cleaning up undo-lists.
840 Mark the undo lists after claning them up.
841 Don't free block in marker_blocks_pending_free.
842 (mark_buffer): Don't mark undo_list.
843 (gc_sweep): Sweep hash-tables and strings first.
844 Do free marker blocks that are empty.
845
034a6113
SM
8462004-05-28 Jim Blandy <jimb@redhat.com>
847
848 * regex.c (print_partial_compiled_pattern): Add missing 'break'
849 after 'case wordend'. For symbeg and symend, print to stderr,
850 like the other cases.
851
33594a8d
NF
8522004-05-28 Noah Friedman <friedman@splode.com>
853
854 * process.c (Fdelete_process): Do not call remove_process.
855
ce50a847
SM
8562004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
857
858 * alloc.c (struct backtrace): Remove.
859 (Fgarbage_collect): Use the new mark_backtrace.
860
861 * eval.c (mark_backtrace): New function.
862
863 * minibuf.c (run_exit_minibuf_hook): New function.
864 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
865 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
866
1e8dae36
KS
8672004-05-27 Kim F. Storm <storm@cua.dk>
868
869 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
870 over display properties, e.g. images, that replace buffer text.
871
846faa3b
KS
8722004-05-25 Kim F. Storm <storm@cua.dk>
873
874 * alloc.c (marker_blocks_pending_free): New var.
875 (gc_sweep): Store free marker blocks on that list.
876 (Fgarbage_collect): Free them after undo-list cleanup.
877
878 * process.c (wait_reading_process_input): Check connect_wait_mask
879 before actually accepting connection in case it has already been
880 accepted due to recursion.
881
6239a668
KH
8822004-05-23 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu> (tiny change)
883
ce50a847
SM
884 * coding.c (Fset_safe_terminal_coding_system_internal):
885 Set suppress_error in safe_terminal_coding, not terminal_coding.
6239a668 886
71d5a208
RS
8872004-05-22 Richard M. Stallman <rms@gnu.org>
888
889 * alloc.c (Fmake_string): Doc fix.
890
891 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
892 and the alist pairs too.
893
894 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
895
896 * emacs.c (main): Update copyright year.
897
898 * fileio.c (Fread_file_name): Expand DIR if not absolute.
899
900 * insdel.c (del_range_2, replace_range): Don't write an anchor
901 if the gap is empty.
902
903 * xdisp.c (try_scrolling): If scroll-up-aggressively or
904 scroll-down-aggressively is small but positive, put point
905 near the screen edge.
906
f63fd14e
JB
9072004-05-22 Juanma Barranquero <lektu@terra.es>
908
909 * keymap.c (Fdefine_key): Doc fix.
910
4d12067c
KS
9112004-05-22 Kim F. Storm <storm@cua.dk>
912
913 * alloc.c (struct backtrace): Add debug_on_exit member.
914 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
915 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
916 the removed cons cells.
917 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
918 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
919 any cons cells pointing to unallocated stings.
920 Do not lisp_free any marker blocks, as there may still be pointers
921 to them from buffer undo lists at this stage of GC.
922
923 * keyboard.c (struct backtrace): Add debug_on_exit member.
924 (Fcommand_execute): Clear it.
925
931285e2
LT
9262004-05-20 Luc Teirlinck <teirllm@auburn.edu>
927
928 * intervals.c (lookup_char_property): Do not prematurely return nil.
929
669fa600
SM
9302004-05-19 Jim Blandy <jimb@redhat.com>
931
932 Add support for new '\_<' and '\_>' regexp operators, matching the
f63fd14e 933 beginning and end of symbols.
4d12067c 934
669fa600
SM
935 * regex.c (enum syntaxcode): Add Ssymbol.
936 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
937 (re_opcode_t): New opcodes `symbeg' and `symend'.
938 (print_partial_compiled_pattern): Print the new opcodes properly.
939 (regex_compile): Parse the new operators.
ce50a847 940 (analyse_first): Skip sym(beg|end) (they match only the empty string).
669fa600
SM
941 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
942 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
943 (re_match_2_internal): Match symbeg and symend.
944
945 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
946
0d8c2e5c
KS
9472004-05-19 Kim F. Storm <storm@cua.dk>
948
949 * .gdbinit (xsymbol): Fix last change.
950
669fa600
SM
9512004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
952
953 * .gdbinit (xprintstr): New fun.
954 (xstring, xprintsym): Use it.
955
956 * w32proc.c (create_child): Use INTMASK.
957
958 * alloc.c (Fgarbage_collect): Do all the marking before flushing
959 unmarked elements of the undo list.
960
9a6a4c40
DP
9612004-05-18 David Ponce <david@dponce.com>
962
963 * print.c (print): Reset print_depth before to call print_object.
964
f3c4ec74
JR
9652004-05-18 Jason Rumney <jasonr@gnu.org>
966
967 * w32console.c: Prefix RIF functions with w32con_ to avoid
968 namespace clash with functions in term.c and w32term.c.
969
970 * w32menu.c (add_menu_item, w32_menu_display_help)
971 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
972
0d8c2e5c 973 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
f3c4ec74 974
6be49c3a
EZ
9752004-05-18 Eli Zaretskii <eliz@gnu.org>
976
4d0b9a0a
EZ
977 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
978
6be49c3a
EZ
979 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
980 with make_number.
981 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
982 with XINT.
983
0bc90bba
KS
9842004-05-18 Kim F. Storm <storm@cua.dk>
985
89d19988
KS
986 * blockinput.h (INPUT_BLOCKED_P): New macros.
987
988 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
989 (Ftop_level): Unblock input if blocked.
990
0bc90bba
KS
991 * buffer.h (GET_OVERLAYS_AT): New macro.
992 * msdos.c (IT_note_mouse_highlight): Use it.
993 * textprop.c (get_char_property_and_overlay): Use it.
994 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
995 * xfaces.c (face_at_buffer_position): Use it.
996
997 * print.c (print_object): Increase buf size.
998
653bd0f6
JR
9992004-05-17 Jason Rumney <jasonr@gnu.org>
1000
1001 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
1002 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
1003 Lisp_Object using i member.
1004 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
1005 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
1006 consistently.
1007
1008 * w32proc.c (create_child): Use make_number instead of masking pid.
1009
1010 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
1011 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
1012 Use EQ to compare Lisp_Objects.
1013 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
1014
1015 * w32term.c (w32_num_mouse_buttons): Rename from
1016 Vw32_num_mouse_buttons and make it an int.
1017
1018 * w32.c (init_environment): Use it.
1019
1020 * w32fns.c (w32_wnd_proc): Likewise.
1021
1022 * w32proc.c (w32_pipe_read_delay): Rename from
1023 Vw32_pipe_read_delay and make it an int.
1024
1025 * w32.c (_sys_read_ahead): Use it.
1026
1027 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
1028
1029 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
1030
1031 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
1032 (key_event): Don't mix Lisp_Object and int.
1033
1034 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
1035
1036 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
1037 modifiers in language change event.
1038
54b53ba7
KS
10392004-05-17 Kim F. Storm <storm@cua.dk>
1040
1041 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
1042 Such objects may be freed markers which still exist on an undo list.
1043
6e86a75d
JB
10442004-05-16 Juanma Barranquero <lektu@terra.es>
1045
1046 * data.c (Fset_default): Make argument names match their use in
1047 docstring.
1048
fc80da24
AS
10492004-05-15 Andreas Schwab <schwab@suse.de>
1050
1051 * emacs.c (gdb_array_mark_flag): Define.
1052 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
1053
c1380aa6
EZ
10542004-05-15 Eli Zaretskii <eliz@gnu.org>
1055
1056 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
1057 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
1058 defined for the MS-DOS build.
1059
89458937
SM
10602004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
1061
1062 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
1063
08020f9a
KH
10642004-05-14 Kenichi Handa <handa@m17n.org>
1065
1066 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
1067
a433994a
ST
10682004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1069
1070 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
1071 section to frame.c section.
1072 (Fxw_display_color_p, Fx_file_dialog): Declare if
89458937 1073 HAVE_WINDOW_SYSTEM defined.
0d8c2e5c 1074
a433994a 1075 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
0d8c2e5c 1076
a433994a 1077 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
0d8c2e5c 1078
a433994a
ST
1079 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
1080 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
1081 (XTread_socket): Fix int/Lisp_Object mixup.
1082 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
0d8c2e5c 1083
a433994a
ST
1084 * macterm.h (struct frame, struct face, struct image)
1085 (display_x_get_resource, Fx_display_color_p)
89458937
SM
1086 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
1087 Add prototypes.
a433994a 1088
b51a51b9
KS
10892004-05-14 Kim F. Storm <storm@cua.dk>
1090
1091 * process.c (wait_reading_process_input): Make reentrant.
1092 Make Available and Connecting non-static. Save and restore value
1093 of waiting_for_user_input_p.
1094
2bde1dd8
KS
10952004-05-13 Kim F. Storm <storm@cua.dk>
1096
1097 * keyboard.c (mark_kboards): Don't mark x and y members
1098 that are overloaded in selection request events.
1099
a267ab4d
SM
11002004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
1101
1102 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
1103
eb15ce9e
GM
11042004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
1105
1106 * window.c (Fdisplay_buffer, Fsplit_window)
1107 (split-height-threshold): Doc fix.
1108
7fc92635
JB
11092004-05-13 Juanma Barranquero <lektu@terra.es>
1110
1111 * xfaces.c (Ftty_supports_face_attributes_p)
1112 (Finternal_copy_lisp_face): Fix typo in docstring.
1113 (Finternal_get_lisp_face_attribute): Fix docstring.
1114
1ec2a572
JD
11152004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1116
1117 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
1118
ae9292e0
ST
11192004-05-11 Steven Tamm <steventamm@mac.com>
1120
1121 * macfns.c (Fx_create_frame): Default to using tool-bar by
1122 setting tool-bar-lines to 1 in default-frame-alist.
1123
11242004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ea1aaa6f
ST
1125
1126 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
1127 (xpm_get_color_table_v, xpm_make_color_table_h)
1128 (xpm_put_color_table_h, xpm_get_color_table_h)
1129 (xpm_str_to_color_key, xpm_load_image, xpm_load)
1130 (syms_of_image): Support XPM on Carbon Emacs. Does not
a267ab4d 1131 depend on libXpm, but only supports XPM version 3 without extensions.
ea1aaa6f 1132
fe97e8df
ST
11332004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1134
a267ab4d 1135 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
fe97e8df
ST
1136 instead of FRAME_X_P
1137
b47e779e
KS
11382004-05-11 Kim F. Storm <storm@cua.dk>
1139
1140 * process.c (read_process_output): Grow decoding_buf when needed;
1141 this could cause a crash in allocate_string and compact_small_strings.
1142
cdc9b845
EZ
11432004-04-29 Jim Blandy <jimb@redhat.com>
1144
1145 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
1146 against proper opcode.
1147
aa7094ba
JB
11482004-05-10 Juanma Barranquero <lektu@terra.es>
1149
1150 * process.c (Fstart_process): Fix docstring.
1151
1152 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
1153 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
1154 (Fsplit_char, Fchar_charset): Make argument names match their use
1155 in docstring.
1156
e109331a
RS
11572004-05-10 Richard M. Stallman <rms@gnu.org>
1158
1159 * print.c (print_preprocess): Use being_printed, loop_count and
1160 halftail to detect overdeep nesting and cyclic cdr chains.
1161
9a28b921
AS
11622004-05-10 Andreas Schwab <schwab@suse.de>
1163
1164 * lisp.h: Declare Fmake_symbolic_link.
1165
1166 * fileio.c (Frename_file): Remove extra argument in call to
1167 Fmake_symbolic_link.
1168
e2c02c1a
KS
11692004-05-10 Kim F. Storm <storm@cua.dk>
1170
1171 * xdisp.c (calc_line_height_property): Use string position when
1172 object is a string.
1173
cfe9d13e
KH
11742004-05-10 Kenichi Handa <handa@m17n.org>
1175
a57e8159
KH
1176 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
1177 inhibit-modification-hooks to t temporarily before calling
1178 Ferase_buffer.
1179
1180 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
1181 inhibit-modification-hooks to t temporarily before calling
1182 Ferase_buffer.
1183
1184 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
1185 inhibit-modification-hooks to t temporarily before calling
1186 Ferase_buffer.
1187
cfe9d13e
KH
1188 * fns.c (count_combining): Delete it.
1189 (concat): Don't check combining bytes.
1190
ceb96489
JR
11912004-05-09 Jason Rumney <jasonr@gnu.org>
1192
1193 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
1194 (globals_of_w32fns): Set it.
1195
b1c661c7
JB
11962004-05-09 Piet van Oostrum <piet@cs.uu.nl> (tiny change)
1197
1198 * data.c (Fquo): Simplify.
1199
28712a21
JB
12002004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
1201
1202 * data.c (Fquo): If any argument is float, do the computation in
1203 floating point.
1204
0f0af7a8
JB
12052004-05-08 Juanma Barranquero <lektu@terra.es>
1206
88214ef6
JB
1207 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
1208 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
1209 Fix spelling of Emacs on docstring.
1210 (Fset_process_coding_system, Fprocess_coding_system)
1211 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
1212 Make argument names match their use in docstring.
1213 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
1214 Fix docstring.
1215
0f0af7a8
JB
1216 * editfns.c (Finsert_buffer_substring): Make argument names match their
1217 use in docstring.
1218
1219 * syntax.c (Fmodify_syntax_entry): Fix docstring.
1220
2a316a84
ST
12212004-05-07 Steven Tamm <steventamm@mac.com>
1222
1223 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
1224 around call to ReceiveEvent to avoid certain crashes.
1225
12262004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
0d8c2e5c 1227
2a316a84
ST
1228 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
1229 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
1230 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
1231 Save/restore the current graphics port and device handle when
1232 drawing into an offscreen graphics world.
1233
1234 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
1235 (gif_load): Likewise.
1236
ab80314b
JB
12372004-05-07 Juanma Barranquero <lektu@terra.es>
1238
1239 * window.c (Fset_window_buffer): Fix docstring.
1240
70646bb5
TTN
12412004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
1242
1243 * emacs.c (main) [VMS]: Fix var ref.
1244
b03a4fdd
JB
12452004-05-06 Romain Francoise <romain@orebokech.com> (tiny change)
1246
1247 * data.c (Fsetq_default): Fix docstring.
1248
279d3293
JR
12492004-05-06 Jason Rumney <jasonr@gnu.org>
1250
1251 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
1252 to avoid name clash.
1253
f72b5416
JD
12542004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1255
1256 * fileio.c (barf_or_query_if_file_exists): Use lstat.
1257 (Frename_file): Handle renaming of symlinks across file systems.
440c7d00 1258 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
f72b5416 1259
6ab66799
KS
12602004-05-04 Kim F. Storm <storm@cua.dk>
1261
1262 * xdisp.c (Qtotal): New var.
1263 (syms_of_xdisp): Intern and staticpro it.
1264 (calc_line_height_property): New arg total. Set it if
1265 line-spacing property has format (total . VALUE).
1266 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
1267 Handle total line-spacing property.
1268
ab2d724b
JD
12692004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1270
1271 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
1272 "under" scroll bar when size/position changes.
1273
238add5e
JR
12742004-05-03 Jason Rumney <jasonr@gnu.org>
1275
1276 * makefile.nt: Remove.
1277
1644f4e4
EZ
12782004-05-02 Eli Zaretskii <eliz@gnu.org>
1279
a267ab4d
SM
1280 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
1281 Avoid compiler warnings.
05fdbeb8 1282
1644f4e4
EZ
1283 * Makefile.in (region-cache.o): Depend on config.h.
1284
6cbc951e
SM
12852004-05-02 Romain Francoise <romain@orebokech.com> (tiny change)
1286
1287 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
1288 with continuation lines, too.
1289
2b98b088
TTN
12902004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
1291
1292 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
1293
d9bf7950
SM
12942004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
1295
1296 * xdisp.c (calc_line_height_property): YAILOM (yet another
1297 int/Lisp_Object mixup).
1298
affa509c
EZ
12992004-05-01 Eli Zaretskii <eliz@gnu.org>
1300
1301 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
1302 undo bad effect of pack(4) in some versions of system headers.
1303
07c07cfe
JR
13042004-05-01 Jason Rumney <jasonr@gnu.org>
1305
1306 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
1307
e71caa4e
KS
13082004-04-30 Kim F. Storm <storm@cua.dk>
1309
1310 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
b2b55d03 1311 (syms_of_buffer) <cursor-type>: Doc fix.
e71caa4e
KS
1312
1313 * dispextern.h (struct it): Remove member use_default_face.
1314 Add members override_ascent, override_descent, override_boff.
1315
1316 * xdisp.c (init_iterator): Handle line-spacing float value.
1317 Initialize override_ascent member.
1318 (append_space_for_newline): Reset override_ascent.
1319 Remove use_default_face.
1320 (calc_line_height_property): New function to calculate value of
1321 line-height and line-spacing properties. Look at overlays, too.
1322 Set override_ascent, override_descent, override_boff members when
1323 using another face than the current face. Float values are now
1324 relative to the frame default font, by default; accept a cons
1325 of ratio and face name to specify value relative to a specific face.
1326 (x_produce_glyphs): Use calc_line_height_property.
1327 Use override_ascent etc. when set to handle different face heights.
1328 A negative line-spacing property value is interpreted as a total
1329 line height, rather than inter-line spacing.
1330 (note_mouse_highlight): Allocate room for 40 overlays initially.
1331
0fddae66
SM
13322004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
1333
1334 * data.c (Fsubr_name): New fun.
1335 (syms_of_data): Defsubr it.
1336
712d23dc
KS
13372004-04-29 Kim F. Storm <storm@cua.dk>
1338
1339 * xdisp.c (null_glyph_slice): New var.
1340 (append_glyph, append_composite_glyph, append_stretch_glyph):
1341 Use it to initialize glyph slice.
1342
033ad8c6
SM
13432004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
1344
1345 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
1346 (on_hot_spot_p): Make sure we always return a value.
1347 (Flookup_image_map): Remove unused var ix and iy.
1348 (note_mode_line_or_margin_highlight): Remove unused var `image'.
1349
93397360
EZ
13502004-04-27 Eli Zaretskii <eliz@gnu.org>
1351
1352 * msdos.c (init_environment): If one of the TMP... environment
1353 variables is set to a drive letter without a trailing slash,
1354 append a slash.
1355
0c54865e
EZ
13562004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
1357
1358 * editfns.c (lisp_time_argument): Provide externally.
1359
1360 * fileio.c (Fset_file_times): New function.
1361 (syms_of_fileio): Intern and staticpro it.
1362
d3b111bd
KS
13632004-04-27 Kim F. Storm <storm@cua.dk>
1364
07dc1231
KS
1365 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
1366 header line strings.
1367
360fe9d2
KS
1368 * dispextern.h (struct it): New member use_default_face.
1369
d3b111bd
KS
1370 * xdisp.c (Qline_height): New variable.
1371 (syms_of_xdisp): Intern and staticpro it.
1372 (append_space_for_newline): Partially undo 2004-04-25 change;
1373 add default_face_p arg, and restore callers.
1374 Clear it->use_default_face after use.
1375 (x_produce_glyphs): Set default font for ascii char if
1376 it->use_default_font is set. Change line-spacing property to set
1377 just extra line spacing. Handle new line-height property.
1378
0448588b
AS
13792004-04-26 Andreas Schwab <schwab@suse.de>
1380
1381 * print.c (print_object): Print non-ascii characters in bool
1382 vector representation as octal escapes.
1383
1384 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
1385 * print.c (print_object): Use it instead of BITS_PER_CHAR for
1386 bool vectors.
1387 * lread.c (read1): Likewise.
1388 * alloc.c (Fmake_bool_vector): Likewise.
1389 * data.c (Faref, Faset): Likewise.
1390 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
1391 (mapcar1): Likewise.
d3b111bd 1392
536d6baa
ST
13932004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
1394
1395 * lread.c (init_lread): Fixing typo HAVE_CARBON test logic
1396
ae11577a
MB
13972004-04-26 Miles Bader <miles@gnu.org>
1398
1399 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
1400
e198ba87
JB
14012004-04-26 Juanma Barranquero <lektu@terra.es>
1402
1403 * buffer.c (Fpop_to_buffer): Fix docstring.
1404
f3d5f92d 14052004-04-26 Steven Tamm <steventamm@mac.com>
e198ba87 1406
f3d5f92d
ST
1407 * lread.c (init_lread): Don't display missing lisp directory
1408 warnings with Carbon Emacs because self-contained bundled Emacs
e198ba87 1409 may be built without correct installation path.
f3d5f92d 1410
03e35edc
KS
14112004-04-25 Kim F. Storm <storm@cua.dk>
1412
9ff3aa31
KS
1413 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
1414
1415 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
1416
03e35edc
KS
1417 * xdisp.c (append_space_for_newline): Rename from append_space.
1418 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
1419 (x_produce_glyphs): Handle line-spacing property on newline char.
1420 If value is t, adjust ascent and descent to fit current row height.
1421 If value is an integer or float, set extra_line_spacing to integer
1422 value, or to float value x current line height.
1423
f24814e0
KH
14242004-04-23 Kenichi Handa <handa@m17n.org>
1425
1426 * fontset.c (Finternal_char_font): If POSITION is nil, return
1427 font for displaying CH with the default face.
1428
d814862a
JB
14292004-04-23 Juanma Barranquero <lektu@terra.es>
1430
1431 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
1432
063a45c5
SM
14332004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
1434
1435 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
1436 Don't make assumptions about the relative place of i and val.
1437 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
1438
ae7ab2d3
KS
14392004-04-21 Kim F. Storm <storm@cua.dk>
1440
1441 * dispextern.h (struct glyph_slice): New struct.
1442 (struct glyph): New member slice.
1443 (GLYPH_SLICE_EQUAL_P): New macro.
1444 (GLYPH_EQUAL_P): Use it.
1445 (struct glyph_string): New member slice.
1446 (struct it_slice): New struct.
1447 (struct it): New member slice, add member to stack too.
1448 New member constrain_row_ascent_descent_p.
1449 (image_ascent): Add prototype.
1450
1451 * dispnew.c (buffer_posn_from_coords): Return full image width
1452 and height even for image slices (posn is relative to full image).
1453 (marginal_area_string): Adjust x0,y0 for image slice.
1454
1455 * image.c (image_ascent): Add slice arg; calculate ascent for
1456 image slice (or full image).
1457
1458 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
1459 (syms_of_keyboard): Defsubr them.
1460
1461 * lisp.h (pos_visible_p): Fix prototype.
1462
c62aec78 1463 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
ae7ab2d3
KS
1464 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
1465 (x_draw_image_foreground, x_draw_image_relief)
1466 (x_draw_image_foreground_1, x_draw_image_glyph_string):
1467 Draw sliced images.
1468
1469 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
1470 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
1471 (x_draw_image_foreground, x_draw_image_relief)
1472 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
1473 Draw sliced images.
1474
1475 * w32term.h (image_ascent): Remove prototype.
1476
1477 * window.c (Fpos_visible_in_window_p): Return pixel position if
1478 PARTIALLY arg is non-nil. Simplify. Doc fix.
1479 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
1480 to return/set vscroll in pixels.
1481
1482 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
1483
1484 * xdisp.c (Qslice): New variable.
1485 (syms_of_xdisp): Intern and staticpro it.
1486 (pos_visible_p): Return pixel position in new x and y args.
1487 (init_iterator): Reset it->slice info.
1488 (handle_display_prop): Parse (slice ...) property.
1489 (push_it, pop_it): Save/restore slice info.
1490 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
1491 force repositioning of tall row if window is vscrolled, as that
1492 would reset vscroll.
1493 (append_space): Set it->constrain_row_ascent_descent_p to avoid
1494 increasing row height if row is non-empty.
1495 (fill_image_glyph_string): Copy slice info.
1496 (take_vertical_position_into_account): Simplify.
1497 (produce_image_glyph): Handle iterator slice info, setup glyph
1498 slice info. Do not force minimum line height.
1499 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
1500 do not increase height (ascent/descent) of non-empty row when
1501 adding normal character glyph; instead reduce glyph ascent/descent
1502 appropriately; if row is higher than current glyph, adjust glyph
1503 descent/ascent to reposition glyph within the existing row.
1504 Likewise, when char is newline, only set ascent/descent if row is
1505 currently empty.
1506 (note_mouse_highlight): Handle hotspots with sliced image.
1507
1508 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
1509 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
1510 (x_draw_image_foreground, x_draw_image_relief)
1511 (x_draw_image_foreground_1, x_draw_image_glyph_string):
1512 Draw sliced images.
1513
1514 * xterm.h (image_ascent): Remove prototype.
1515
d58f8753
SM
15162004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
1517
1518 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
1519
4ce2719d
JPW
15202004-04-20 John Paul Wallington <jpw@gnu.org>
1521
1522 * fns.c (Fassoc, Feql): Fix indentation.
1523
d58f8753 1524 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
4ce2719d 1525
95f8c3b9
JPW
15262004-04-19 John Paul Wallington <jpw@gnu.org>
1527
1528 * fns.c (Feql): New function.
d58f8753 1529 (syms_of_fns): Defsubr it.
95f8c3b9 1530
b7e85537
JR
15312004-04-18 Jason Rumney <jasonr@gnu.org>
1532
1533 * w32select.c (Fw32_set_clipboard_data): Get sequence number
1534 after closing the clipboard.
1535
5a72efd4
LT
15362004-04-16 Luc Teirlinck <teirllm@auburn.edu>
1537
1538 * buffer.c (Fbuffer_base_buffer): Doc fix.
1539
20dc8583
KS
15402004-04-17 Kim F. Storm <storm@cua.dk>
1541
60962ec4
KS
1542 * keymap.c (Fkey_description): Add optional PREFIX arg.
1543 Combine prefix with KEYS to make up the full key sequence to describe.
1544 Correlate meta_prefix_char and following (simple) key to describe
1545 as meta modifier. All callers changed.
1546 (describe_map): Rename arg `keys' to `prefix'. Remove local
1547 `elt_prefix' var. Use Fkey_description with prefix instead of
1548 elt_prefix combined with Fsingle_key_description.
1549 (describe_vector): Declare static. Replace arg `elt_prefix' with
1550 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
1551 if !KEYMAP_P. Use Fkey_description with prefix instead of
1552 Fsingle_key_description.
1553
1554 * keymap.h (Fkey_description): Fix prototype.
1555 (describe_vector): Remove prototype.
1556
409368b9
KS
1557 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
1558
20dc8583
KS
1559 * image.c (PNG_BG_COLOR_SHIFT): Remove.
1560 (png_load): Fix calculation of transparent background color on X
1561 and W32 platforms.
1562
75c5501b
JB
15632004-04-16 Juanma Barranquero <lektu@terra.es>
1564
1565 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
1566 not too large before computing how much to scroll.
1567
da879ae8
SM
15682004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
1569
1570 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
1571
d01ca4a8
LT
15722004-04-14 Luc Teirlinck <teirllm@auburn.edu>
1573
1574 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
1575 Add hyperlink to Elisp manual to the docstring.
1576
572943b3
SM
15772004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
1578
1579 * callint.c (fix_command): Use XDCR.
1580
5e30a0fb
NR
15812004-04-14 Nick Roberts <nick@nick.uklinux.net>
1582
1583 * window.c (Fget_lru_window): Doc fix.
1584
a27ddfaf
KS
15852004-04-14 Kim F. Storm <storm@cua.dk>
1586
1587 * editfns.c (Fformat): Fix allocation size of precision array.
1588
1589 * dispnew.c (update_window): Only set changed_p if
1590 scrolling_window actually did scroll.
1591 (scrolling_window): Only return 1 if we actually did scroll.
1592
1593 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
1594 height to glyph height when cursor row is not fully visible.
1595 (make_cursor_line_fully_visible): Add FORCE_P arg to return
1596 failure in case row is higher than window. Callers changed.
1597 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
1598 Try to scroll partially visible, higher-than-window cursor row.
1599 (redisplay_window): Always try to scroll partially visible,
1600 higher-than-window cursor row - both initially and again with
1601 centering_position = 0.
1602 Clear desired matrix before retrying with centering_position = 0.
1603
da879ae8
SM
16042004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
1605
1606 * syntax.c (scan_lists): Simplify backward string scan.
1607 Fix off-by-one boundary check for string and comment fences.
1608
5fc16e8e
SM
16092004-04-13 Joe Buehler <jbuehler@hekimian.com>
1610
1611 * sheap.c, unexcw.c: New files.
1612
c9aac8e6
LT
16132004-04-12 Luc Teirlinck <teirllm@auburn.edu>
1614
1615 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
1616 base buffer has been killed. Correct the error message if the
1617 base buffer does not exist.
1618
1e88a355
SM
16192004-04-12 Joe Buehler <jbuehler@hekimian.com>
1620
1621 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
1622 Cygwin itself. Add support for Xaw3d scrollbars.
1623
1624 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
1625
1626 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
1627
1628 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
1629 before Cygwin unexec.
1630
1631 * Makefile.in: Link changes for Cygwin unexec() support.
1632
8dbff9a0
AS
16332004-04-12 Andreas Schwab <schwab@suse.de>
1634
1635 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
1636
54dffe35
LT
16372004-04-11 Luc Teirlinck <teirllm@auburn.edu>
1638
1639 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
1640 IGNORE argument equals NAME. Doc fix.
1641
99a72bdf
MY
16422004-04-11 Masatake YAMATO <jet@gyve.org>
1643
1e88a355 1644 * buffer.c (fix_start_end_in_overlays): Make overlays
99a72bdf
MY
1645 empty if they are backwards.
1646
40899d7b
SM
16472004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
1648
1649 * xfaces.c (face_color_supported_p): Fix compilation without X11.
1650
f8f853de
SM
16512004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
1652
1653 * doc.c (Fsnarf_documentation): Ignore new file name entries.
1654
c953fe1b
KS
16552004-04-06 Kim F. Storm <storm@cua.dk>
1656
661e85c1
KS
1657 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
1658 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
1659
1660 * w32term.c (w32_read_socket): Set mouse_face_hidden after
1661 clearing highlight.
1662
1663 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
1664
1665 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
1666 clearing highlight.
1667
c953fe1b
KS
1668 * indent.c (vmotion): Do not reserve one column for continuation
1669 marks on window frames.
1670
c1994268
EZ
16712004-04-04 Eli Zaretskii <eliz@gnu.org>
1672
1673 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
1674 from GCC.
1675
9f691b0d
SM
16762004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
1677
1678 * .gdbinit-union: Remove.
1679
1680 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
1681 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
1682 ($nonvalbits): Remove.
1683 ($valmask): Set it by calling xreload to avoid redundancy.
1684
1685 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
1686 (gdb_emacs_intbits): Remove.
1687
7a8560d7
JD
16882004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1689
9f691b0d 1690 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
7a8560d7 1691
3c8111fc
KH
16922004-03-30 Kenichi Handa <handa@m17n.org>
1693
1694 * editfns.c (Fformat): Fix initialization of the array info.
1695
48a0bce4
KS
16962004-03-30 Kim F. Storm <storm@cua.dk>
1697
1698 * xterm.c (x_mouse_click_focus_ignore_position): New var.
1699 (syms_of_xterm): DEFVAR_BOOL it.
1700 (ignore_next_mouse_click_timeout): New var.
1701 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
1702 Use it to filter mouse clicks following focus event.
1703
1cd0066c
KS
17042004-03-29 David Ponce <david@dponce.com>
1705
1706 * callint.c (Fcall_interactively): Fix last change.
1707
adb3b353
SM
17082004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
1709
1710 * eval.c (Fcommandp): Simplify.
1711
1712 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
1713 Extend to handle all kinds of functions.
1714
1715 * lisp.h (Finteractive_form): Declare.
1716
1717 * callint.c (Fcall_interactively): Use it.
1718
6fc4c9c9
KS
17192004-03-26 Kim F. Storm <storm@cua.dk>
1720
1721 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
1722 to catch errors in calc_pixel_width_or_height during redisplay.
1723
abdb9b83
MY
17242004-03-26 Masatake YAMATO <jet@gyve.org>
1725
b17856dd 1726 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
abdb9b83 1727
b17856dd 1728 * lisp.h (fix_start_end_in_overlays): Likewise.
abdb9b83 1729
b17856dd 1730 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
abdb9b83 1731
b17856dd 1732 * editfns.c (Ftranspose_regions): Likewise.
abdb9b83 1733
e8a84b6c
JD
17342004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1735
b17856dd 1736 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
e8a84b6c 1737
36a3fd05
RS
17382004-03-19 Richard M. Stallman <rms@gnu.org>
1739
1740 * s/sol2-6.h: Delete previous change.
1741
ab24c127
KS
17422004-03-19 Kim F. Storm <storm@cua.dk>
1743
1744 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
1745 to_charpos corresponds to newline in right fringe. Use local
1746 BUFFER_POS_REACHED_P macro.
1747
992126de
JD
17482004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1749
1750 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
1751 to compile on non-window system.
1752
45dbfc84
KS
17532004-03-19 Kim F. Storm <storm@cua.dk>
1754
1755 * dispextern.h (calc_pixel_width_or_height): Add prototype.
1756
1757 * image.c (Qcenter): Move to xdisp.c.
1758
1759 * xdisp.c (Qcenter): Declare here.
adb3b353 1760 (syms_of_xdisp): Intern and staticpro it.
45dbfc84
KS
1761 (handle_single_display_prop): Allow space display property on all
1762 platforms.
1763 (display_mode_line): Set mode_line_p before displaying line.
1764 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
1765 handling. Remove complex cases for fringes and scroll-bars.
1766 Add left, right, and center alignment positions. Add text (area)
1767 width/height. Return width or height for image specs.
1768 (produce_stretch_glyph): Improve handling of :align-to. Is now
1769 relative to left of text area by default, but other base offsets
1770 can be specified -- also for text lines.
1771
1772 * term.c (produce_glyphs): Handle IT_STRETCH.
1773 (produce_stretch_glyph): New function to handle space width and
1774 align-to display properties on non-window systems.
1775
37264101
SM
17762004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
1777
1778 * fileio.c (Fread_file_name): Set completion-ignore-case for
1779 case-insensitive systems.
1780
73bc43da
MY
17812004-03-14 Masatake YAMATO <jet@gyve.org>
1782
1783 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
1784 when keymap and cursor are setup.
1785
9062aa89
ST
17862004-03-14 Steven Tamm <steventamm@mac.com>
1787
b17856dd 1788 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
9062aa89 1789
e4b1b5ab
KS
17902004-03-14 Kim F. Storm <storm@cua.dk>
1791
1792 * dispextern.h (x_find_image_file): Add prototype.
1793
1794 * image.c (x_find_image_file): Make extern.
1795
1796 * xfns.c (x_find_image_file): Remove prototype.
1797
a6eeaa81 17982004-03-13 Eli Zaretskii <eliz@gnu.org>
5109b06a 1799
37264101 1800 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
5109b06a 1801
37264101 1802 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
5109b06a 1803
e69cfac2
RS
18042004-03-12 Richard M. Stallman <rms@gnu.org>
1805
1806 * fns.c (internal_equal): New arg PROPS controls comparing
1807 text properties. All callers changed.
1808 (Fequal_including_properties): New function.
1809 (syms_of_fns): defsubr it.
1810
45034953
KS
18112004-03-12 Kim F. Storm <storm@cua.dk>
1812
1813 Fix image support on MAC. From YAMAMOTO Mitsuharu.
37264101 1814
45034953
KS
1815 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
1816 (image_background, image_background_transparent): Fix prototypes.
1817
37264101 1818 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
45034953
KS
1819
1820 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
1821 (x_query_font, x_find_ccl_program, x_set_window_size)
1822 (x_make_frame_visible, mac_initialize, XCreatePixmap)
1823 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
1824 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
1825
1826 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
1827 (x_query_font, x_find_ccl_program, x_set_window_size)
1828 (x_make_frame_visible, mac_initialize, XCreatePixmap)
1829 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
1830 (mac_draw_line_to_pixmap): Add prototypes.
1831
18322004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1833
1834 * macterm.c (XTread_socket): Fix mouse click on tool bar.
1835
a12d3d87
KS
18362004-03-11 Kim F. Storm <storm@cua.dk>
1837
d3ab1cf1
KS
1838 * dispextern.h: Move image related prototypes from xfns.c section
1839 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
1840 HAVE_X_WINDOWS.
37264101 1841
37de9f51 1842 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
37264101 1843 Move gtkutil.o to new GTK_OBJ list.
a12d3d87
KS
1844 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
1845 (GTK_OBJ) [USE_GTK]: New declaration.
1846 (obj): Add $(GTK_OBJ) to list.
1847
5243c06a 18482004-03-11 Steven Tamm <steventamm@mac.com>
5109b06a 1849
5243c06a
ST
1850 * image.c [MAC_OSX]: Include sys/stat.h
1851
1852 * macfns.c (syms_of_macfns): Remove definitions of things now
1853 defined in image.c
1854
c0f97789
KS
18552004-03-11 Kim F. Storm <storm@cua.dk>
1856
1857 The following changes consolidates the identical/similar image
1858 support code previously found in xfns.c, w32fns.c, and macfns.c
1859 into a new file image.c.
1860
1861 * makefile.w32-in (OBJ1): Add image.o.
1862 ($(BLD)/image.$(O)): Add dependencies.
1863
1864 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
1865 (image.o): Add dependencies.
37264101 1866
c0f97789
KS
1867 * image.c: New file with consolidated image support code.
1868 (COLOR_TABLE_SUPPORT): New define to control whether
1869 color table support is available (X only).
1870 (Bitmap_Record): Common name for x_bitmap_record,
1871 w32_bitmap_record, and mac_bitmap_record.
1872 (XImagePtr): Common name for pointer to XImage or equivalent.
1873 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
1874 to XImagePtr on X+MAC, and to HDC on W32.
1875 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
1876 (NO_PIXMAP): Common name for "None" or equivalent.
1877 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
1878 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
1879 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
37264101
SM
1880 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
1881 Define with suitable equivalents on W32 and MAC for code sharing.
c0f97789
KS
1882 (XDrawLine): Define on MAC for code sharing.
1883 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
1884 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
1885 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
1886 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
1887 (x_reference_bitmap, x_create_bitmap_from_data)
1888 (x_create_bitmap_from_file, x_destroy_bitmap)
1889 (x_destroy_all_bitmaps, x_create_bitmap_mask)
1890 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
1891 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
1892 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
1893 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
1894 (define_image_type, lookup_image_type, valid_image_p)
1895 (image_error, enum image_value_type, struct image_keyword)
1896 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
1897 (make_image, free_image, prepare_image_for_display, image_ascent)
1898 (four_corners_best, image_background, image_background_transparent)
1899 (x_clear_image_1, x_clear_image, x_alloc_image_color)
1900 (make_image_cache, free_image_cache, clear_image_cache)
1901 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
1902 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
1903 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
1904 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
1905 (init_image_func_pointer, image_load_quartz2d)
1906 (struct ct_color, init_color_table, free_color_table)
1907 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
1908 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
1909 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
1910 (x_disable_image, x_build_heuristic_mask)
1911 (XBM support, XPM support, PBM support, PNG support, JPEG support)
1912 (TIFF support, GIF support, Ghostscript support): Consolidate image
1913 code from xfns.c, w32fns.c, and macfns.c.
1914 (syms_of_image): Consolidate image related symbol setup here.
1915 (init_image): Consolidate image related initializations here.
37264101 1916
c0f97789
KS
1917 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
1918 and init_image. Remove call to init_xfns.
1919
37264101
SM
1920 * macterm.h (struct mac_bitmap_record): Add file member.
1921 Not currently used, but simplifies code sharing.
c0f97789
KS
1922
1923 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
1924 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
1925 (x_reference_bitmap, x_create_bitmap_from_data)
1926 (x_create_bitmap_from_file, x_destroy_bitmap)
1927 (x_destroy_all_bitmaps, x_create_bitmap_mask)
1928 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
1929 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
1930 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
1931 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
1932 (define_image_type, lookup_image_type, valid_image_p)
1933 (image_error, enum image_value_type, struct image_keyword)
1934 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
1935 (make_image, free_image, prepare_image_for_display, image_ascent)
1936 (four_corners_best, image_background, image_background_transparent)
1937 (x_clear_image_1, x_clear_image, x_alloc_image_color)
1938 (make_image_cache, free_image_cache, clear_image_cache)
1939 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
1940 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
1941 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
1942 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
1943 (init_image_func_pointer, image_load_quartz2d)
1944 (struct ct_color, init_color_table, free_color_table)
1945 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
1946 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
1947 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
1948 (x_disable_image, x_build_heuristic_mask)
1949 (XBM support, XPM support, PBM support, PNG support, JPEG support)
1950 (TIFF support, GIF support, Ghostscript support): Merge with image
1951 code from xfns.c and macfns.c into image.c.
1952 (syms_of_xfns): Move image related symbols to image.c.
1953 (init_external_image_libraries, init_xfns): Remove; initialization
1954 moved to init_image in image.c.
1955
1956 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
1957 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
1958 (x_reference_bitmap, x_create_bitmap_from_data)
1959 (x_create_bitmap_from_file, x_destroy_bitmap)
1960 (x_destroy_all_bitmaps, x_create_bitmap_mask)
1961 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
1962 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
1963 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
1964 (define_image_type, lookup_image_type, valid_image_p)
1965 (image_error, enum image_value_type, struct image_keyword)
1966 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
1967 (make_image, free_image, prepare_image_for_display, image_ascent)
1968 (four_corners_best, image_background, image_background_transparent)
1969 (x_clear_image_1, x_clear_image, x_alloc_image_color)
1970 (make_image_cache, free_image_cache, clear_image_cache)
1971 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
1972 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
1973 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
1974 (struct ct_color, init_color_table, free_color_table)
1975 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
1976 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
1977 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
1978 (x_disable_image, x_build_heuristic_mask)
1979 (XBM support, XPM support, PBM support, PNG support, JPEG support)
1980 (TIFF support, GIF support, Ghostscript support): Merge with image
1981 code from xfns.c and macfns.c into image.c.
1982 (syms_of_xfns): Move image related symbols to image.c.
1983 (init_external_image_libraries, init_xfns): Remove; initialization
1984 moved to init_image in image.c.
1985
1986 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
1987 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
1988 (x_reference_bitmap, x_create_bitmap_from_data)
1989 (x_create_bitmap_from_file, x_destroy_bitmap)
1990 (x_destroy_all_bitmaps, x_create_bitmap_mask)
1991 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
1992 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
1993 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
1994 (define_image_type, lookup_image_type, valid_image_p)
1995 (image_error, enum image_value_type, struct image_keyword)
1996 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
1997 (make_image, free_image, prepare_image_for_display, image_ascent)
1998 (four_corners_best, image_background, image_background_transparent)
1999 (x_clear_image_1, x_clear_image, x_alloc_image_color)
2000 (make_image_cache, free_image_cache, clear_image_cache)
2001 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
2002 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
2003 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
2004 (struct ct_color, init_color_table, free_color_table)
2005 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
2006 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
2007 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
2008 (x_disable_image, x_build_heuristic_mask)
2009 (XBM support, XPM support, PBM support, PNG support, JPEG support)
2010 (TIFF support, GIF support, Ghostscript support): Merge with
2011 w32fns.c and macfns.c image code into image.c.
2012 (syms_of_xfns): Move image related symbols to image.c.
2013 (init_xfns): Remove; initialization moved to init_image in image.c.
2014
2015 * lisp.h (syms_of_image, init_image): Add protoypes.
2016 (init_xfns): Remove prototype.
2017
2018 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
2019 (x_reference_bitmap, x_create_bitmap_from_data)
2020 (x_create_bitmap_from_file, x_destroy_bitmap)
2021 (x_create_bitmap_mask): Move prototypes from dispextern.h.
2022 (gamma_correct) [MAC_OS]: Add prototype.
2023
2024 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
2025 (x_reference_bitmap, x_create_bitmap_from_data)
2026 (x_create_bitmap_from_file, x_destroy_bitmap)
2027 (x_create_bitmap_mask): Move prototypes to dispextern.h.
2028
6eced09c
KH
20292004-03-09 Kenichi Handa <handa@etlken2>
2030
2031 * coding.c (decode_coding_emacs_mule): Handle insufficent source
2032 correctly.
2033
9a7e95f3
RS
20342004-03-04 Richard M. Stallman <rms@gnu.org>
2035
04a6e76b
RS
2036 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
2037
9a7e95f3
RS
2038 * window.c (Fdisplay_buffer): Doc fix.
2039
2040 * buffer.c (Fpop_to_buffer): Doc fix.
2041
6c2488df
KS
20422004-03-03 Kim F. Storm <storm@cua.dk>
2043
2044 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
2045
d8d95bc7
SM
20462004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
2047
2048 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
2049
357589bf
RS
20502004-03-02 Richard M. Stallman <rms@gnu.org>
2051
2052 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
2053
409949b5
KH
20542004-03-02 Kenichi Handa <handa@m17n.org>
2055
2056 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
2057
d24bc50f
KS
20582004-03-02 Kim F. Storm <storm@cua.dk>
2059
2060 * window.h (struct window): New member overlay_arrow_bitmap.
2061
2062 * window.c (make_window): Initialize overlay_arrow_bitmap.
2063
2064 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
2065 implement and integrate multiple overlay arrows with redisplay.
2066 (syms_of_xdisp): DEFVAR_LISP and initialize it.
2067 (last_arrow_position, last_arrow_string): Replace by properties.
2068 (Qlast_arrow_position, Qlast_arrow_string)
2069 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
2070 (syms_of_xdisp): Intern and staticpro them.
2071 (overlay_arrow_string_or_property, update_overlay_arrows)
2072 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
2073 (overlay_arrow_at_row): New functions for multiple overlay arrows.
2074 (redisplay_internal): Use them instead of directly accessing
2075 Voverlay_arrow_position etc. for multiple overlay arrows.
2076 (mark_window_display_accurate): Use update_overlay_arrows.
2077 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
2078 (try_window_id): Use overlay_arrows_changed_p.
2079 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
2080 (display_line): Use overlay_arrow_at_row to check multiple
2081 overlay arrows, and get relevant overlay-arrow-string and
d8d95bc7 2082 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
d24bc50f
KS
2083 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
2084 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
2085
2086 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
2087 (update_window_fringes): Remove unused code.
2088
c1464661
JR
20892004-03-01 Jason Rumney <jasonr@gnu.org>
2090
2091 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
2092
a64387ee
JB
20932004-03-01 Juanma Barranquero <lektu@terra.es>
2094
2095 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
2096
2097 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
2098
334faa08
JD
20992004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2100
2101 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
2102 how many colors can be displayed.
2103
bb62616f
KH
21042004-03-01 Kenichi Handa <handa@m17n.org>
2105
2106 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
2107 correctly.
2108
0fd16104
KS
21092004-02-28 Kim F. Storm <storm@cua.dk>
2110
2111 * dispnew.c (update_window): Update header line also if there are
2112 no other changes in window (move code after set_cursor label).
2113
2114 * lisp.h (mark_window_display_accurate): Remove prototype.
2115
2116 * window.c (window_loop, Fforce_window_update): Force mode line
2117 updates by setting prevent_redisplay_optimizations_p and
2118 update_mode_lines.
2119
b59dd9c8
JD
21202004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2121
d8d95bc7 2122 * xfns.c (x_window): Fix indentation.
b59dd9c8
JD
2123
2124 * xterm.c (x_calc_absolute_position): Call x_real_positions
2125 to get WM window sizes and use those to calculate position.
d8d95bc7 2126 (x_set_offset): Remove code commented out.
b59dd9c8 2127
a874691c
MB
21282004-02-28 Miles Bader <miles@gnu.org>
2129
2130 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
2131
3e0c6482
KS
21322004-02-28 Kim F. Storm <storm@cua.dk>
2133
2134 * keyboard.c (kbd_buffer_store_event_hold): New function to store
2135 an event into kbd fifo, but with special handling of quit event;
2136 a quit event is saved for later, and further events are discarded
2137 until the saved quit event has been processed.
2138 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
2139 (gen_help_event): Store help event in kbd fifo.
2140 (NREAD_INPUT_EVENTS): Remove.
2141 (read_avail_input): Adapt to new read_socket_hook interface.
2142 Remove allocation and initialization of local input_event buffer,
2143 as read_socket_hook stores events directly in fifo. Allocate and
2144 initialize local hold_quit event to handle postponed quit event
2145 (and store it if set by kbd_buffer_store_event_hold).
2146
2147 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
2148 (gen_help_event): Fix prototype.
2149
a64387ee 2150 * macterm.c (XTread_socket): Remove bufp_r and
3e0c6482 2151 numcharsp args. Add hold_quit arg.
f63fd14e 2152 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
2153 directly in fifo using kbd_buffer_store_event_hold.
2154
2155 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
2156 (read_input_waiting): Adapt to new read_socket_hook interface.
2157 Remove allocation and initialization of local input_event buffer,
2158 as read_socket_hook stores events directly in fifo. Allocate and
2159 initialize local hold_quit event to handle postponed quit event
2160 (and store it if set by kbd_buffer_store_event_hold).
2161
a64387ee 2162 * term.c (read_socket_hook): Fix arg list.
3e0c6482
KS
2163
2164 * termhooks.h (read_socket_hook): Fix prototype.
2165
2166 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
2167 numcharsp args. Add hold_quit arg.
f63fd14e 2168 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
2169 directly in fifo using kbd_buffer_store_event_hold.
2170
2171 * w32inevt.h (w32_console_mouse_position): Fix prototype.
2172
2173 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
f63fd14e
JB
2174 Add hold_quit arg. Rework to use just one, local, inev
2175 input_event. Store inev directly in fifo using
3e0c6482
KS
2176 kbd_buffer_store_event_hold. Update count in one place.
2177 Postpone call to gen_help_event until inev is stored; use new
2178 local do_help for this.
2179 Remove local emacs_event in handing of ButtonPress event; just use
2180 inev instead (so no reason to copy it later).
2181
2182 * xsmfns.c (x_session_check_input): Remove numchars arg.
2183
d8d95bc7
SM
2184 * xterm.c (x_focus_changed, x_detect_focus_change):
2185 Remove numchars arg. Always store event into bufp arg.
2186 Return nothing. Callers changed accordingly.
3e0c6482
KS
2187 (glyph_rect): Simplify.
2188 (STORE_KEYSYM_FOR_DEBUG): New macro.
2189 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
2190 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
2191 (current_hold_quit) [USE_GTK]: Add.
2192 (event_handler_gdk): Adapt to new handle_one_xevent.
2193 (handle_one_xevent): Remove bufp_r and numcharsp args.
f63fd14e
JB
2194 Add hold_quit arg. Rework to use just one, local, inev
2195 input_event. Store inev directly in fifo using
3e0c6482
KS
2196 kbd_buffer_store_event_hold. Update count in one place.
2197 Postpone call to gen_help_event until inev is stored; use new
2198 local do_help for this.
2199 Simplify handling of keysyms (consolidate common code). Fix bug
2200 where count was updated with nchars instead of nbytes.
2201 Remove local emacs_event in handing of ButtonPress event; just use
2202 inev instead (so no reason to copy it later).
2203 Remove `out' label. Rename label `ret' to `done'; add various
2204 `goto done' to clarify code flow in deeply nested blocks.
2205 (x_dispatch_event): Simplify as handle_one_xevent now calls
2206 kbd_buffer_store_event itself.
f63fd14e 2207 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
3e0c6482
KS
2208 arg. Call handle_one_xevent with new arglist. Store event from
2209 x_session_check_input in fifo.
2210 [USE_GTK]: Setup current_hold_quit.
2211 Decrement handling_signal before unblocking input.
2212 (x_initialize) [USE_GTK]: Initialize current_count.
2213
2214 * xterm.h (x_session_check_input): Fix prototype.
2215
e3564461 22162004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
a64387ee 2217
d8d95bc7 2218 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
a64387ee 2219
e3564461
ST
2220 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
2221 macgui.h).
a64387ee 2222
e3564461 2223 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
a64387ee 2224
e3564461
ST
2225 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
2226 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
2227 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
2228 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
2229 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
2230 (Bitmap): Remove typedef.
2231 (Pixmap): Change int to GWorldPtr.
2232
d8d95bc7 2233 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
a64387ee 2234
d8d95bc7
SM
2235 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
2236 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
2237 New #define to extract 16-bit depth color components from unsigned
e3564461
ST
2238 long representation.
2239 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
2240 colors used for masks.
2241 (struct mac_display_info): Add color_p. Remove n_cbits.
a64387ee 2242
e3564461
ST
2243 * macfns.c: Include sys/types.h and sys/stat.h.
2244 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
2245 Include QuickTime/QuickTime.h.
2246 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
2247 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
2248 functions defined in macterm.c.
2249 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
2250 (ZPixmap): New #define for compatibility with xfns.c.
2251 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
2252 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
d8d95bc7
SM
2253 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
2254 New functions.
e3564461 2255 (four_corners_best, x_create_x_image_and_pixmap)
d8d95bc7
SM
2256 (x_destroy_x_image, unwind_create_frame, x_disable_image)
2257 (x_edge_detection, init_color_table, colors_in_color_table)
e3564461
ST
2258 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
2259 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
2260 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
2261 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
2262 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
2263 long mixup.
2264 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
2265 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
2266 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
2267 (x_set_cursor_type, Fxw_color_values, valid_image_p)
2268 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
2269 (x_alloc_image_color, clear_image_cache, lookup_image)
2270 (x_find_image_file, xbm_read_bitmap_file_data)
2271 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
2272 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
2273 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
2274 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
2275 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
d8d95bc7 2276 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
e3564461
ST
2277 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
2278 #if 0.
2279 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
2280 #if 0. Free white_relief.gc and black_relief.gc.
d8d95bc7
SM
2281 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
2282 New functions (from xfns.c).
e3564461
ST
2283 (Fx_create_frame): Record unwind_create_frame.
2284 (Fxw_display_color_p): Use dpyinfo->color_p.
2285 (Fx_display_grayscale_p, Fx_display_planes): Don't use
2286 dpyinfo->n_cbits.
2287 (Fx_display_color_cells): Use dpyinfo->n_planes;
2288 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
2289 (Qheuristic, cross_disabled_images, emboss_matrix)
2290 (laplace_matrix): New variables (from xfns.c).
2291 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
2292 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
2293 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
d8d95bc7
SM
2294 (image_background_transparent): New function (from xfns.c).
2295 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
2296 (image_load_quicktime): Add declaration.
2297 [MAC_OSX] (image_load_quartz2d): Likewise.
2298 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
2299 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
d8d95bc7 2300 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
e3564461
ST
2301 (xbm_load_image_from_file, x_laplace_read_row)
2302 (x_laplace_write_row, pbm_read_file): Remove functions.
2303 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
2304 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
2305 (colors_in_color_table): Sync with xfns.c (although not used).
2306 (lookup_rgb_color): Don't lookup color table. Just do gamma
2307 correction.
2308 (COLOR_INTENSITY): New #define (from xfns.c).
d8d95bc7
SM
2309 (x_disable_image): New function (from xfns.c).
2310 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
2311 (x_build_heuristic_mask): Sync with xfns.c.
2312 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
2313 (HAVE_PBM): Remove #ifdef.
2314 (pbm_load): Sync with xfns.c. Set img->width and img->height
2315 before IMAGE_BACKGROUND.
d8d95bc7 2316 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
e3564461
ST
2317 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
2318 Don't enclose with #if HAVE_PNG.
2319 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
d8d95bc7
SM
2320 symbol _CGImageCreateWithPNGDataProvider is defined.
2321 Otherwise use image_load_quicktime.
e3564461 2322 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
d8d95bc7
SM
2323 [HAVE_PNG] (png_load): Sync with xfns.c.
2324 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
2325 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
2326 HAVE_JPEG.
2327 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
2328 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
2329 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
2330 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
2331 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
2332 (tiff_image_p, tiff_load): Don't enclose declarations with #if
2333 HAVE_TIFF.
2334 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
2335 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
2336 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
d8d95bc7
SM
2337 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
2338 New functions (from xfns.c).
e3564461 2339 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
d8d95bc7 2340 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
e3564461
ST
2341 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
2342 Don't enclose with #if HAVE_GIF.
2343 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
2344 animated gif. Otherwise use image_load_quicktime.
2345 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
2346 gif_DrawText to avoid conflict with QuickdrawText.h.
2347 [HAVE_GIF] (gif_load): Sync with xfns.c.
2348 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
2349 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
2350 Ghostscript is not supported yet).
2351 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
2352 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
2353 cross_disabled_images (from xfns.c). Remove #if 0 for supported
2354 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
2355 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
2356 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
d8d95bc7
SM
2357 HAVE_PNG. Call EnterMovies to support animated gifs.
2358 Call init_image_func_pointer to bind a symbol
e3564461 2359 _CGImageCreateWithPNGDataProvider if it is defined.
a64387ee 2360
d8d95bc7 2361 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
e3564461
ST
2362 (x_draw_bar_cursor): Sync declaration with xterm.c.
2363 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
2364 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
2365 graphics).
2366 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
2367 (mac_draw_line_to_pixmap, XCreatePixmap)
2368 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
d8d95bc7
SM
2369 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
2370 New functions.
2371 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
2372 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
2373 Cast bits to char *.
e3564461
ST
2374 (reflect_byte): New function (from w32fns.c).
2375 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
2376 due to byte alignment.
d8d95bc7
SM
2377 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
2378 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
e3564461
ST
2379 (XSetForeground): Remove static (now used in macfns.c).
2380 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
2381 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
2382 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
2383 (x_draw_glyph_string_box, x_draw_image_foreground)
2384 (x_draw_image_foreground_1, x_draw_image_glyph_string)
2385 (x_draw_stretch_glyph_string, x_draw_glyph_string)
2386 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
2387 Sync with xterm.c.
2388 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
2389 than the xterm.c version when a strictly horizontal or vertical
2390 line is drawn.
2391 (XTset_terminal_window): Add static.
2392 (x_make_frame_visible): Add UNBLOCK_INPUT.
2393 (x_free_frame_resources): New funcion (from xterm.c).
2394 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
2395 occurs in tool bar area.
d8d95bc7
SM
2396 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
2397 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
e3564461
ST
2398 Initialize image cache.
2399 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
2400 Enclose unused functions with #if 0.
2401 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
2402 (decode_mac_font_name): New function to apply code conversions
d8d95bc7 2403 from a mac font name to an XLFD font name according to its script code.
e3564461 2404 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
d8d95bc7 2405 font name to a mac font name according to REGISTRY and ENCODING fields.
e3564461
ST
2406 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
2407 whose name starts with `.'.
2408 (init_font_name_table): Use decode_mac_font_name. Add both
2409 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
2410 of a font is smJapanese.
2411 (mac_do_list_fonts): New function to list fonts that match a given
2412 pattern.
2413 (x_list_fonts, XLoadQueryFont): Use it.
2414 (XLoadQueryFont): Set rbearing field for each variable width
2415 character to avoid needless redraw.
2416 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
2417
446f5f3d
KS
24182004-02-26 Kim F. Storm <storm@cua.dk>
2419
af617d0f
KS
2420 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
2421 as read_socket_hook handler on X aborts if buffer is too small
2422 and W32 handler doesn't always check buffer limit.
2423
446f5f3d
KS
2424 * xdisp.c (handle_single_display_prop): Handle left-fringe and
2425 right-fringe similar to a display margin image. Specifically,
2426 the characters having the fringe prop are no longer shown, and
2427 we use IT_IMAGE/next_element_from_image with image_id = -1 to
2428 do this. Set fringe bitmap face_id in it->face_id.
2429 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
2430 still realize it->face (i.e. the fringe bitmap face).
2431
7d8a0b55
MB
24322004-02-25 Miles Bader <miles@gnu.org>
2433
2434 * xdisp.c (check_it): Check string/string_pos consistency.
2435 (init_iterator): Initialize string-related fields properly.
2436
24372004-02-11 Miles Bader <miles@gnu.org>
2438
2439 * xdisp.c (produce_image_glyph): Force negative descents to zero.
2440
24412004-02-10 Miles Bader <miles@gnu.org>
2442
2443 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
2444 BLOCK_INPUT can be nested, so it doesn't make much sense.
2445
a64387ee 24462004-02-24 Michael Mauger <mmaug@yahoo.com>
ce35edd1
JR
2447
2448 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
2449 (xbm_read_bitmap_data): Use unsigned char for image data.
2450
92f5fba2
LT
24512004-02-23 Luc Teirlinck <teirllm@auburn.edu>
2452
2453 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
2454
8565fb3d
JR
24552004-02-22 Jason Rumney <jasonr@gnu.org>
2456
2457 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
2458 correctly over other bitmaps.
2459
a6eeaa81 24602004-02-21 Eli Zaretskii <eliz@gnu.org>
f8125c39
EZ
2461
2462 * emacs.c (USAGE1): Split into two halves.
2463 (USAGE2): Second half of the old USAGE1.
d8d95bc7
SM
2464 (USAGE3): Rename from USAGE2.
2465 (USAGE4): Rename from USAGE3.
f8125c39 2466
4effffca
EZ
24672004-02-21 Juri Linkov <juri@jurta.org>
2468
2469 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
2470 Fix --multibyte. Move --help, --version to USAGE2. Add alias
2471 --file. Fix -f, -l. Sort options. Untabify.
2472 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
2473
923c1e6f
LT
24742004-02-19 Luc Teirlinck <teirllm@auburn.edu>
2475
2476 * category.c (Fdefine_category, Fcategory_docstring)
2477 (Fget_unused_category, Fset_category_table)
2478 (Fcategory_set_mnemonics): Doc fixes.
2479
b0e225fd
KS
24802004-02-20 Kim F. Storm <storm@cua.dk>
2481
2482 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
2483 The following changes are relative to the 2004-01-21 revision.
2484 (NREAD_INPUT_EVENTS): Define as max number of input events to read
2485 in one call to read_socket_hook. Value is 8.
2486 (read_avail_input): Separate and rework handling of read_socket_hook
2487 and non-read_socket_hook cases. Use smaller input_event buffer
d8d95bc7
SM
2488 in read_socket_hook case, and repeat if full buffer is read.
2489 Use new local variable 'discard' to skip input after C-g.
b0e225fd
KS
2490 In non-read_socket_hook case, just use a single input_event, and
2491 call kbd_buffer_store_event on the fly for each character.
2492
b15aa9f9
SM
24932004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
2494
2495 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
2496 Remove unused `gu' alternative.
2497
83c9aa95
AS
24982004-02-19 Andreas Schwab <schwab@suse.de>
2499
2500 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
2501 warning.
2502
cc808173
KS
25032004-02-18 Kim F. Storm <storm@cua.dk>
2504
2505 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
2506 Fix last change.
2507
ab90a54d
KS
25082004-02-17 Kim F. Storm <storm@cua.dk>
2509
b26f249f
KS
2510 * xdisp.c (fast_find_position): Fix return value of new version;
2511 it was inverted compared to the 21.1 version.
2512 (get_window_cursor_type): Don't look at glyph if NULL.
2513 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
0bf7d005 2514
ab90a54d
KS
2515 * keyboard.c: Rework previous change; it didn't consider that the
2516 buf array was allocated on the stack.
2517 (prev_read): Remove variable.
2518 (read_avail_input_buf): New static event buffer array.
b9568dfc 2519 (in_read_avail_input): New static variable to handle re-entrancy.
ab90a54d 2520 (read_avail_input): Change buf to pinter to read_avail_input_buf.
b9568dfc
KS
2521 Use in_read_avail_input to handle re-entrance; when re-entered,
2522 fully initialize and use tmp_buf array instead of read_avail_input_buf.
2523 Do not initialize read_avail_input_buf in full here; instead assume it
ab90a54d
KS
2524 is always cleared on entry. To ensure that, we clear (just) the
2525 entries that were used before we return.
2526 (init_keyboard): Initialize read_avail_input_buf here.
2527
4e039f3f
EZ
25282004-02-16 Jesper Harder <harder@ifa.au.dk> (tiny change)
2529
2530 * cmds.c (Fend_of_line): Doc fix.
2531
7b5368c1
EZ
25322004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
2533
2534 * keyboard.c (prev_read): New static variable.
2535 (read_avail_input): Use it to zero out only those slots in buf[]
2536 that were used last time we were called.
2537
a6eeaa81 25382004-02-16 Eli Zaretskii <eliz@gnu.org>
ca4bc494
EZ
2539
2540 * Makefile.in (obj): Move fringe.o from here...
2541 (XOBJ, MAC_OBJ): ...to here.
2542
159c348e
SE
25432004-02-16 Stephen Eglen <stephen@gnu.org>
2544
2545 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
2546
d2f14999
SM
25472004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
2548
b15aa9f9
SM
2549 * data.c (Fbyteorder):
2550 * fringe.c (Fdefine_fringe_bitmap):
2551 * xdisp.c (handle_single_display_prop):
d2f14999
SM
2552 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
2553
8d50508a
JR
25542004-02-16 Jason Rumney <jasonr@gnu.org>
2555
2556 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
2557
dd4497dc
ST
25582004-02-15 Steven Tamm <steventamm@mac.com>
2559
2560 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
2561 controlling emulation of a three button mouse with option and
2562 command keys.
2563 (Qreverse, mac_get_enumlated_btn): Handle the emulation
b15aa9f9 2564 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
dd4497dc 2565
c9159cb3
KS
25662004-02-15 Kim F. Storm <storm@cua.dk>
2567
2cc52658
KS
2568 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
2569
c9159cb3
KS
2570 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
2571 Perform byte-swapping.
2572
12fde2dc
KS
25732004-02-14 Kim F. Storm <storm@cua.dk>
2574
2575 * dispextern.h (struct draw_fringe_bitmap_params): Change member
2576 bits from char to short to facilitate wider bitmaps.
2577 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
2578 member.
2579
2580 * fringe.c (struct fringe_bitmap): Change member bits from char to
2581 short to facilitate 16 bits wide bitmaps. Modify all standard
2582 bitmaps accordingly.
2583 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
2584 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
2585 (draw_fringe_bitmap): Ditto.
2586 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
2587 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
2588 handle up to 16 bits wide bitmaps.
2589 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
f21a7192 2590 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
12fde2dc
KS
2591
2592 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
2593 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
2594 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
2595
2596 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
2597 so it is no longer necessary to expand them here.
2598
2599 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
2600
9d7271e8
KS
26012004-02-12 Kim F. Storm <storm@cua.dk>
2602
2603 * window.c (Fwindow_fringes): Doc fix.
2604
706c1e4f
JD
26052004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2606
2607 * xselect.c (x_get_foreign_selection): Add new optional parameter
2608 time_stamp.
2609 (Fx_get_selection_internal): Ditto, pass time_stamp to
2610 x_get_foreign_selection.
2611
2612 * data.c (Fbyteorder): New function.
2613
c2d12b5d
JD
26142004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2615
2616 * atimer.c: Move include stdio.h to same place as in other files.
2617
2618 * region-cache.c: Ditto.
2619
2620 * sysdep.c: Ditto.
2621
2622 * xfaces.c: Ditto.
2623
4c1947b9
SS
26242004-02-09 Sam Steingold <sds@gnu.org>
2625
89458937 2626 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
4c1947b9 2627
82722af3
KS
26282004-02-09 Kim F. Storm <storm@cua.dk>
2629
2630 * fringe.c: New file. Move original fringe related declarations
2631 and code from dispextern.h and xdisp.c here.
2632 Rework code to support user defined fringe bitmaps, redefining
2633 standard bitmaps, ability to overlay user defined bitmap with
2634 overlay arrow bitmap, and add faces to bitmaps.
2635 (Voverflow_newline_into_fringe): Declare here.
2636 (enum fringe_bitmap_align): New enum.
2637 (..._bits): All bitmaps are now defined without bitswapping; that
2638 is now done in init_fringe_once (if necessary).
2639 (standard_bitmaps): New array with specifications for the
2640 standard fringe bitmaps.
2641 (fringe_faces): New array.
2642 (valid_fringe_bitmap_id_p): New function.
2643 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
2644 (draw_fringe_bitmap): New function which draws fringe bitmap,
2645 possibly overlaying bitmap with cursor in right fringe or the
2646 overlay arrow in the left fringe.
2647 (update_window_fringes): Do not handle overlay arrow here.
2648 Compare and copy fringe bitmap faces.
2649 (init_fringe_bitmap): New function.
2650 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
2651 define and destroy user defined fringe bitmaps.
2652 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
2653 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
2654 (syms_of_fringe): New function. Defsubr new DEFUNs.
2655 DEFVAR_LISP Voverflow_newline_into_fringe.
2656 (init_fringe_once, init_fringe): New functions.
2657 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
4c1947b9 2658
82722af3
KS
2659 * Makefile.in (obj): Add fringe.o.
2660 (fringe.o): New dependencies.
2661
2662 * dispextern.h (FRINGE_ID_BITS): New definition for number of
2663 bits allocated to hold a fringe number. Increase number of bits
2664 from 4 to 8 to allow user defined fringe bitmaps.
2665 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
2666 left_user_fringe_face_id, right_user_fringe_bitmap,
2667 right_user_fringe_face_id.
2668 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
2669 Move to new file fringe.c.
2670 (MAX_FRINGE_BITMAPS): Define here.
2671 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
2672 and overlay_p. Change member which to int.
2673 (struct redisplay_interface): New members define_fringe_bitmap
2674 and destroy_fringe_bitmap.
2675 (valid_fringe_bitmap_id_p): Add prototype.
2676 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
2677
2678 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
2679 arrows.
2680 (update_frame): Do flush_display if force_flush_display_p to
2681 ensure display (specifically fringes) are updated in a timely
2682 manner when resizing the frame by dragging the mouse.
2683 (update_window_line): Update row if overlay arrow changed.
2684 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
2685 or overlay arrow changed.
2686
2687 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
2688 syms_of_fringe, and init_fringe.
2689
2690 * frame.h (struct frame): New member force_flush_display_p.
2691
2692 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
2693 Add prototypes.
2694
a3993cc8 2695 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
a64387ee 2696 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
a3993cc8
KS
2697 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
2698 Use cursor color for displaying cursor in fringe.
82722af3
KS
2699 (x_redisplay_interface): Add null handlers for
2700 define_fringe_bitmap and destroy_fringe_bitmap functions.
2701
2702 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
2703 xterm.c to handle overlayed fringe bitmaps and to use cursor color
2704 for displaying cursor in fringe.
2705 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
2706 specific functions to define and destroy fringe bitmaps in fringe_bmp.
2707 (w32_redisplay_interface): Add them to redisplay_interface.
2708 (w32_term_init): Call w32_init_fringe instead of explicitly
2709 defining fringe bitmaps in fringe_bmp array.
2710 (x_delete_display): Call w32_reset_fringes instead of explicitly
2711 destroying fringe bitmaps in fringe_bmp array.
2712
2713 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
2714 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
2715 (continued_bits, continuation_bits, ov_bits, first_line_bits)
2716 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
2717 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
2718 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
2719 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
2720 Move fringe handling vars and code to new file fringe.c.
2721 (handle_display_prop): Handle left-fringe and right-fringe
2722 display properties; store user fringe bitmaps in iterator.
2723 (move_it_in_display_line_to): Handle cursor in fringe at eob.
2724 (clear_garbaged_frames): Set force_flush_display_p if resized.
2725 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
2726 (display_line): Handle cursor in fringe at eob.
2727 (display_line): Set row user fringe bitmaps from iterator.
2728
2729 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
2730 Use cursor color for displaying cursor in fringe.
2731 (x_redisplay_interface): Add null handlers for
2732 define_fringe_bitmap and destroy_fringe_bitmap functions.
2733
030400eb
JD
27342004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2735
2736 * macfns.c (Fx_change_window_property): Make doc string and
2737 parameters same as for X version.
2738
2739 * w32fns.c (Fx_change_window_property): Ditto.
2740
3af55251
KS
27412004-02-07 Kim F. Storm <storm@cua.dk>
2742
ec110e9e
KS
2743 * xdisp.c (hscroll_window_tree): Position cursor near to right
2744 margin in hscrolled window when jumping to end of line (rather
2745 than centering cursor).
2746
3af55251
KS
2747 * process.c (wait_reading_process_input): Don't do adaptive read
2748 buffering if waiting for a specific process.
2749
b0c138ce
LT
27502004-02-05 Luc Teirlinck <teirllm@auburn.edu>
2751
2752 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
2753 (Fread_minibuffer, Feval_minibuffer)
2754 (Fread_string, Fread_no_blanks_input)
2755 (Fcompleting_read): Doc fixes.
2756 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
2757 completion-regexp-list. Define Qcase_fold_search and staticpro it.
2758 (read_minibuf): Fix initial comment.
2759 (Ftry_completion, Fall_completions, Ftest_completion): Bind
e8eeaed8 2760 case-fold-search to the value of completion-ignore-case when
b0c138ce
LT
2761 checking completion-regexp-list.
2762 (Fdisplay_completion_list): Make it handle arguments that are
2763 symbols. Doc fix.
2764
9676f5ad 27652004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
64d1e373 2766
9676f5ad 2767 * xterm.h: Add declaration of free_frame_menubar.
64d1e373 2768
9676f5ad
JD
2769 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
2770 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
b0c138ce 2771 (Fx_change_window_property): Add declaration of parameters type and
9676f5ad 2772 format. Remove unused variable cons.
5b698285
JD
2773
2774 * xselect.c: Include stdio,h.
2775
fc1d15f6
KH
27762004-02-05 Kenichi Handa <handa@m17n.org>
2777
ebaff4af
KH
2778 * fns.c (Fset_char_table_range): Fix previous change.
2779
fc1d15f6
KH
2780 * buffer.c (Fset_buffer_multibyte): Fix docstring.
2781
9676f5ad
JD
27822004-02-04 Luc Teirlinck <teirllm@auburn.edu>
2783
2784 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
2785
da75761f
SM
27862004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
2787
2788 * keymap.c (Vmouse_events): Rename from Vmenu_events.
2789 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
2790
13c5d120
KH
27912004-02-04 Kenichi Handa <handa@m17n.org>
2792
2793 * fns.c (Fset_char_table_range): Handle charsets ascii,
2794 eight-bit-control, and eight-bit-graphic correctly.
2795
2883d842
JR
27962004-02-03 Jason Rumney <jasonr@gnu.org>
2797
2798 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
2799
2800 * w32fns.c (x_to_w32_font): Likewise.
2801
69eff41f
JD
28022004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2803
2804 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
2805 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
2806
2807 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
2808 ClientMessages.
2809
2810 * xselect.c: Include termhooks.h and X11/Xproto.h
2811 (x_check_property_data, x_fill_property_data)
2812 (x_property_data_to_lisp, mouse_position_for_drop)
2813 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
da75761f 2814 (Fx_send_client_event): Move here from xfns.c.
69eff41f
JD
2815 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
2816
da75761f 2817 * xfns.c (x-send-client-message): Move to xselect.c
69eff41f
JD
2818 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
2819 OUTER_P.
2820 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
2821 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
2822 if vector_ret_p is true.
2823 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
69eff41f 2824
a6eeaa81 28252004-02-02 Eli Zaretskii <eliz@gnu.org>
dcdbbb5d
EZ
2826
2827 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
2828 basename of FILE relative to it, not FILE itself.
2829
09721b31
KH
28302004-02-02 Kenichi Handa <handa@m17n.org>
2831
2832 * coding.c (coding_restore_composition): Check invalid
2833 composition data more rigidly.
2834
eb996101
LT
28352004-01-30 Luc Teirlinck <teirllm@auburn.edu>
2836
2837 * fileio.c (Fread_file_name_internal): Correctly handle the case
2838 where insert-default-directory is nil.
2839 (Fread_file_name): Always return an empty string if the user exits
2840 with an empty minibuffer. Adapt the docstring accordingly.
2841 (syms_of_fileio): Adapt the docstring of insert-default-directory
2842 to the change in Fread_file_name.
2843
a6eeaa81 28442004-01-29 Eli Zaretskii <eliz@gnu.org>
a0367d42
EZ
2845
2846 * alloca.c [!alloca]: Fix the prototype for xfree.
2847
13f52ed8
KH
28482004-01-29 Kenichi Handa <handa@m17n.org>
2849
2850 * fns.c (string_char_to_byte): Optimize for ASCII only string.
2851 (string_byte_to_char): Likewise.
2852
d57625a0
JR
28532004-01-28 Peter Runestig <peter@runestig.com>
2854
2855 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
2856
a64387ee 28572004-01-27 Steven Tamm <steventamm@mac.com>
911c78b4
ST
2858
2859 * unexmacosx.c (unexec_copy): Do not copy more than was
2860 requested to prevent overwriting during unexec.
2861
eb37b8fd
JD
28622004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2863
ce38070a
JD
2864 * process.c (sigchld_handler): Add comment about not calling malloc.
2865
eb37b8fd
JD
2866 * process.h: Add extern to synch_process_termsig.
2867
a64387ee 28682004-01-27 Steven Tamm <steventamm@mac.com>
21a3e657 2869
da75761f
SM
2870 * macterm.c (make_mac_frame, make_mac_terminal_frame):
2871 Move setting of scroll bars from make_mac_frame to
2872 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
21a3e657 2873
d62a265d
RS
28742004-01-26 Richard M. Stallman <rms@gnu.org>
2875
2876 * search.c (Freplace_match): Handle nonexistent
2877 back-references properly.
2878
28792004-01-03 Richard M. Stallman <rms@gnu.org>
2880
2881 * window.c (decode_any_window): New function.
2882 (Fwindow_height, Fwindow_width, Fwindow_edges)
2883 (Fwindow_pixel_edges, Fwindow_inside_edges)
2884 (Fwindow_inside_pixel_edges): Use decode_any_window.
2885
ff236419
JD
28862004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2887
2888 * process.h: synch_process_termsig new variable.
2889
2890 * callproc.c: Define synch_process_termsig.
2891 (Fcall_process): Initiate synch_process_termsig to zero and
2892 check if non-zero and get signal name after subprocess has ended.
2893
2894 * process.c (sigchld_handler): Set synch_process_termsig
2895 if terminated by a signal. synch_process_death setting removed.
2896
2897 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
2898
41b867ea
AS
28992004-01-26 Andreas Schwab <schwab@suse.de>
2900
2901 * print.c (print_preprocess): Declare size as EMACS_INT to not
2902 lose bits.
2903 (print_object): Likewise.
2904 * alloc.c (Fpurecopy): Likewise.
2905
a08084ff
LT
29062004-01-25 Luc Teirlinck <teirllm@auburn.edu>
2907
2908 * window.c (Fwindow_minibuffer_p): Doc fix.
2909
b19ac475
JY
29102004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
2911
2912 * editfns.c (Fformat): Make both passes accept the same set of flags.
2913
fe905025
KH
29142004-01-23 Kenichi Handa <handa@m17n.org>
2915
2916 * fns.c (Fmd5): If OBJECT is a buffer different from the current
2917 one, set buffer to OBJECT temporarily.
2918
438fc6c0
SM
29192004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
2920
455316e2
SM
2921 * keyboard.c (kbd_buffer_gcpro): Remove.
2922 (kbd_buffer_store_event, clear_event, Fdiscard_input)
2923 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
2924 Don't initialize and/or maintain the variable any more. It was made
2925 redundant by my commit of 2003-06-15.
2926
438fc6c0
SM
2927 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
2928
5335a4ee
JD
29292004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2930
2931 * lisp.h: Add undef DECL_ALIGN.
2932
dcdaeebc
SM
29332004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
2934
2935 * process.c (wait_reading_process_input) [SYNC_INPUT]:
2936 Check interrupt_input_pending explicitly.
2937
2938 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
2939
2940 * keyboard.c (handle_async_input): New fun,
2941 extracted from input_available_signal.
2942 (input_available_signal, reinvoke_input_signal): Use it.
2943
9076a823
SM
29442004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
2945
d7107586
SM
2946 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
2947
2948 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
2949 manipulation macros for when tags are in the lower bits.
2950 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
2951 (DECL_ALIGN): New macro.
2952 (DEFUN): Use it.
2953
2954 * lisp.h [ENABLE_CHECKING]: Don't force union type.
2955
2956 * s/darwin.h (__attribute__): Remove outdated workaround.
2957
2958 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
2959
2960 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
2961 Don't check range of malloc address.
2962 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
2963
9076a823
SM
2964 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
2965
2966 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
2967
ba029065
KH
29682004-01-19 Kenichi Handa <handa@m17n.org>
2969
2970 * fontset.c (fontset_font_pattern): Fix previous change.
2971
7af0e8d7
MB
29722004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
2973
2974 * xdisp.c (Voverflow_newline_into_fringe)
2975 (move_it_in_display_line_to, redisplay_internal)
2976 (update_window_fringes, redisplay_window, display_line, window):
2977 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
2978 that it compiles without a window-system.
2979 * dispnew.c (direct_output_for_insert, update_window): Likewise.
2980
77a9cf69
KS
29812004-01-16 Kim F. Storm <storm@cua.dk>
2982
2983 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
2984
a64387ee 2985 * buffer.c (init_buffer_once): Set buffer_defaults and
77a9cf69
KS
2986 buffer_local_flags for indicate_buffer_boundaries.
2987 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
2988 default- variable for it.
2989
2990 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
2991 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
d7107586 2992 New members exact_window_width_line_p and cursor_in_fringe_p for
77a9cf69
KS
2993 overflowing newlines into right fringe.
2994 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
2995 and indicate_bottom_line_p for buffer boundaries and scrolling.
2996 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
2997 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
2998 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
2999 and HOLLOW_SQUARE_BITMAP.
3000 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
3001 Add prototypes.
3002
3003 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
3004 instead of related indicator fields.
3005 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
3006 (direct_output_for_insert): Handle exact width lines like
3007 contined lines. Call update_window_fringes.
3008 (update_window): Call update_window_fringes.
3009 (scrolling_window): Don't skip desired rows with changed bitmaps.
3010 Check if fringe bitmaps changes when assigning scrolled rows.
3011
3012 * xdisp.c (Voverflow_newline_into_fringe): New variable.
3013 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
3014 (move_it_in_display_line_to): Overflow newline into fringe for
3015 rows that are exactly as wide as the window.
3016 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
3017 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
3018 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
3019 (fringe_bitmaps): Add new bitmaps.
3020 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
3021 Select proper bitmap for cursor in fringe when appropriate.
3022 Handle alignment of bitmap to top or bottom of row.
3023 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
3024 done by update_window_fringes.
3025 (update_window_fringes, draw_window_fringes): New functions.
3026 (redisplay_internal): Call update_window_fringes in case only
3027 cursor row is updated.
3028 (redisplay_window): Call update_window_fringes.
3029 Explicitly call draw_window_fringes if redisplay was done using
3030 the current matrix or the overlay arrow is in the window.
3031 (try_window_reusing_current_matrix): Mark scrolled rows for
3032 fringe update (to update buffer-boundaries / scrolling icons).
3033 (find_last_unchanged_at_beg_row): Handle exact width lines line
3034 continued lines.
3035 (display_line): Overflow newline into fringe for rows that are
3036 exactly as wide as the window. Don't append space for newline
d7107586 3037 in this case.
77a9cf69
KS
3038 (notice_overwritten_cursor): Explicitly clear cursor bitmap
3039 in fringe as if it had been overwritten.
3040 (erase_phys_cursor): Erase cursor bitmap in fringe.
d7107586 3041 (syms_of_xdisp): Mark show-trailing-whitespace and
77a9cf69
KS
3042 void-text-area-pointer as user options.
3043 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
d7107586 3044
77a9cf69
KS
3045 * xterm.c (x_update_window_end): Call draw_window_fringes.
3046 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
3047 in row instead of actually drawing fringe bitmaps.
3048 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
3049 (x_draw_window_cursor): Draw cursor in fringe.
3050
3051 * w32term.c (x_update_window_end): Call draw_window_fringes.
3052 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
3053 in row instead of actually drawing fringe bitmaps.
3054 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
3055 (w32_draw_window_cursor): Draw cursor in fringe.
3056
3057 * macterm.c (x_update_window_end): Call draw_window_fringes.
3058 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
3059 in row instead of actually drawing fringe bitmaps.
3060 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
3061 (mac_draw_window_cursor): Draw cursor in fringe.
3062
a633a954
JD
30632004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3064
3065 * xterm.c (handle_one_xevent): Don't handle characters that are part
3066 of an old style (XLookupString) compose sequence.
3067
80460525
KH
30682004-01-15 Kenichi Handa <handa@m17n.org>
3069
3070 * search.c (Freplace_match): Use make_multibyte_string or
3071 make_unibyte_string according to the buffer multibyteness.
3072
7fc34f85
SM
30732004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
3074
3075 * alloc.c (struct interval_block, struct string_block)
3076 (struct symbol_block, struct marker_block, live_string_p)
3077 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
3078 Better preserve alignment for objects in blocks.
3079 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
3080
3081 * lread.c (defvar_per_buffer): Remove dead declaration.
3082
3083 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
3084 space size.
3085
66070bd1
JD
30862004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3087
3088 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
3089 if a key press should pop down. Only pop down if a key is pressed
3090 outside the menu/dialog.
3091 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
3092 popup_get_selection.
3093 (create_and_show_dialog): Pass 1 for down_on_keypress to
3094 popup_get_selection.
3095
de7515d6
JD
30962004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3097
3098 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
3099 BLOCK/UNBLOCK_INPUT.
3100
160b1b50
JD
31012004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3102
3103 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
3104 specified.
3105
3a9f36e6
KH
31062004-01-08 Kenichi Handa <handa@m17n.org>
3107
3108 * editfns.c (Fformat): Fix '&' to '&&'.
3109
3803eb32
AS
31102004-01-08 Andreas Schwab <schwab@suse.de>
3111
3112 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
3113 size if PSEUDOVECTOR_FLAG is set.
3114
9da88f37
KH
31152004-01-07 Kenichi Handa <handa@m17n.org>
3116
74ac5074
KH
3117 * charset.c (Fdeclare_equiv_charset): Fix docstring.
3118
9da88f37
KH
3119 * fontset.c (fontset_ref_via_base): Fix previous change.
3120
05faee07
KS
31212004-01-07 Kim F. Storm <storm@cua.dk>
3122
3123 * process.c (read_process_output): Only activate adaptive
3124 buffering if we read less than 256 bytes at a time.
3125
634910c8
KS
31262004-01-06 Kim F. Storm <storm@cua.dk>
3127
3128 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
3129 object and image object. Return glyph width and height.
3130 (mode_line_string, marginal_area_string): Ditto.
3131
3132 * dispextern.h (buffer_posn_from_coords, mode_line_string)
3133 (marginal_area_string): Fix prototypes.
3134
3135 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
f63fd14e 3136 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
634910c8
KS
3137 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
3138
3139 * keyboard.c (make_lispy_position): Use modified mode_line_string,
3140 buffer_posn_from_coords, and marginal_area_string functions to
3141 include both string object and image object in the lispy position.
3142 Also add actual glyph width and height to position.
3143 (read_key_sequence): Use real buffer position from mouse
3144 event to find keymap property even when click is in marginal area.
3145
3146 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
3147 mode_line_string and marginal_area_string functions to handle
3148 both string object and image object properties.
d7107586 3149
57951c2e
AS
31502004-01-06 Andreas Schwab <schwab@suse.de>
3151
3152 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
3153 character.
3154
181e6a61
AS
31552004-01-02 Andreas Schwab <schwab@suse.de>
3156
d7107586
SM
3157 * macterm.c (emacs_options, x_initialized, same_x_server):
3158 Remove unused (and duplicated) definitions.
181e6a61 3159
31e0fbdd
KS
31602004-01-02 Kim F. Storm <storm@cua.dk>
3161
3162 * process.h (struct Lisp_Process): New members for adaptive read
3163 buffering: adaptive_read_buffering, read_output_delay, and
3164 read_output_skip.
3165
3166 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
3167 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
3168 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
3169 (process_output_delay_count, process_output_skip): New vars.
3170 (Vprocess_adaptive_read_buffering): New variable.
3171 (make_process): Initialize adaptive read buffering members.
3172 (Fstart_process): Set adaptive_read_buffering member.
3173 (deactivate_process): Cleanup adaptive read buffering.
3174 (wait_reading_process_input): Temporarily omit delayed
3175 subprocesses from the set of file descriptors to read from;
3176 adjust the select timeout if we skipped any subprocesses.
3177 (read_process_output): Increase adaptive read buffering delay if
3178 we read less than a full buffer; reduce delay when we read a
3179 full buffer.
3180 (send_process): Simplify using local Lisp_Process var.
3181 Reset adaptive read buffering delay after write.
3182 (init_process): Initialize process_output_delay_count and
3183 process_output_skip.
3184 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
3185
68c6a789
JR
31862004-01-01 Jason Rumney <jasonr@gnu.org>
3187
d7107586 3188 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
68c6a789 3189
3f70fe82
LT
31902003-12-30 Luc Teirlinck <teirllm@auburn.edu>
3191
3192 * print.c (Ferror_message_string): Add hyperlink in the docstring
3193 to the definition of `signal' in the Elisp manual.
3194 * eval.c (Fsignal): Ditto.
3195
a64387ee 31962003-12-29 James Clark <jjc@jclark.com> (tiny change)
c2be49ed
EZ
3197
3198 * fns.c (internal_equal): Return t for two NaN arguments.
3199
7abd90ea
RS
32002003-12-29 Richard M. Stallman <rms@gnu.org>
3201
3202 * data.c (store_symval_forwarding): Handle setting
3203 default-fill-column, etc., by changing the value in
3204 buffers that use the default.
3205
3206 * minibuf.c (Fset_minibuffer_window): Doc fix.
3207
3208 * fileio.c (choose_write_coding_system): Ignore auto_saving
3209 if using the visited file for auto saves.
3210 (Fwrite_region): Don't update SAVE_MODIFF
3211 if auto-saving in visited file.
3212
3e7cfcdc
KH
32132003-12-29 Kenichi Handa <handa@m17n.org>
3214
3215 * dispextern.h (face_font_available_p): Extern it.
3216
3217 * fontset.c (Voverriding_fontspec_alist): New variable.
3218 (lookup_overriding_fontspec): New function.
d7107586 3219 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
3e7cfcdc
KH
3220 (fontset_font_pattern): Likewise.
3221 (regulalize_fontname): New function.
3222 (Fset_fontset_font): Call regulalize_fontname.
3223 (Fset_overriding_fontspec_internal): New function.
d7107586
SM
3224 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
3225 Defsubr Sset_overriding_fontspec_internal.
3e7cfcdc
KH
3226
3227 * xfaces.c (face_font_available_p): New function.
3228
7abd90ea
RS
32292003-12-28 Richard M. Stallman <rms@gnu.org>
3230
3231 * buffer.c (Fother_buffer): Don't crash if BUF is nil
3232 or if its name is nil.
3233
3234 * buffer.c (Fkill_buffer): Don't delete auto-save file
3235 if it's the same as the visited file.
3236
de1d1a40
LT
32372003-12-28 Luc Teirlinck <teirllm@auburn.edu>
3238
3239 * coding.c (Fcheck_coding_system): Doc fix.
3240
204fb75e
KS
32412003-12-28 Kim F. Storm <storm@cua.dk>
3242
3243 * Makefile.in (eval.o): Depend on dispextern.h.
3244
3245 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
3246 image glyph using image's ascent.
3247 (mode_line_string): Return image glyph as object clicked on.
3248 Adjust y0 for image glyph using image's ascent.
3249
3250 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
3251 (struct glyph): New members, ascent and descent. Used to save
3252 this glyph's ascent and descent, instead of having.
3253 (struct glyph): Declare member face_id using FACE_ID_BITS.
3254 (find_hot_spot): Add prototype.
3255
3256 * keyboard.c (Qimage): Remove extern (now in lisp.h).
3257 (QCmap): Declare extern.
3258 (make_lispy_position): When position is inside image hot-spot,
3259 use hot-spot element's id as posn element.
3260
3261 * lisp.h (IMAGEP): New macro to test for image object type.
3262 (Qimage): Declare extern.
3263
3264 * macfns.c (Qimage): Remove extern (now in lisp.h).
3265 (valid_image_p, parse_image_spec): Use IMAGEP macro.
3266
3267 * macterm.c (Qface, Qmouse_face): Remove unused externs.
3268
3269 * w32fns.c (Qimage): Remove extern (now in lisp.h).
3270 (valid_image_p, parse_image_spec): Use IMAGEP macro.
3271
3272 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
3273
3274 * w32term.c (Qface, Qmouse_face): Remove unused externs.
3275
3276 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
3277 pointer types.
3278 (Qrelative_width, Qalign_to): Remove unused variables.
3279 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
3280 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
3281 image maps.
d7107586 3282 (x_y_to_hpos_vpos): Return glyph relative coordinates through
204fb75e
KS
3283 new dx and dy args.
3284 Remove buffer_only_p arg (always 0). Simplify code accordingly.
3285 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
3286 than row's ascent and height, to get sensible height on tall rows.
3287 (build_desired_tool_bar_string): Remove Qimage extern.
3288 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
3289 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
3290 image glyph is alone on the last line.
3291 (append_glyph, append_composite_glyph, produce_image_glyph)
d7107586 3292 (append_stretch_glyph): Set glyph's ascent and descent.
204fb75e 3293 (on_hot_spot_p): New function to check if position is inside an
d7107586 3294 rectangular, circular, or polygon-shaped image hot-spot,
204fb75e
KS
3295 (find_hot_spot): New function to search for image hot-spot.
3296 (Flookup_image_map): New defun to search for image hot-spot.
3297 (define_frame_cursor1): New aux function to determine frame pointer.
3298 (note_mode_line_or_margin_highlight, note_mouse_highlight):
3299 Handle `pointer' text property and :pointer image property to
3300 control frame pointer shape. Detect image hot-spots for pointer
3301 and help_echo properties. Use define_frame_cursor1.
3302 (note_mouse_highlight): Use Vvoid_text_area_pointer.
f63fd14e 3303 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
204fb75e
KS
3304 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
3305
3306 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
3307
3308 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
3309 (Qimage): Remove extern (now in lisp.h).
3310 (valid_image_p, parse_image_spec): Use IMAGEP macro.
3311
3312 * xmenu.c (show_help_event): Remove unused code.
3313
3314 * xterm.c (Qface, Qmouse_face): Remove unused externs.
3315 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
3316 row's ascent and descent, to get a sensible height on tall rows.
3317
fc052137
LT
33182003-12-25 Luc Teirlinck <teirllm@auburn.edu>
3319
3320 * minibuf.c (Fcompleting_read): Undo previous change.
3321
a64387ee 33222003-12-25 Lars Hansen <larsh@math.ku.dk>
b9148500
LH
3323
3324 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
3325 Arguments GCPRO'ed in call to file name handler.
3326
56ffd194
TTN
33272003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
3328
3329 * termcap.c (tgetst1): Scan for "%pN"; if all
3330 N are continuous in [1,9], remove all "%pN".
3331
5202d23d
JD
33322003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3333
f26fab36
JD
3334 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
3335
5202d23d
JD
3336 * xfaces.c (lface_fully_specified_p): Take into account that
3337 MAC OS always have unspecified stipple.
3338
8babaa59
TTN
33392003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
3340
3341 * tparam.c (tparam1): Add handling for `%pN', which
3342 means use param N for the next substitution.
3343
2d176448
TTN
33442003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
3345
3346 * xfaces.c (Fcolor_gray_p): Fix omission bug:
3347 In case `frame' is nil, consult the selected frame.
3348 (Fcolor_supported_p): Likewise.
3349
adb0708c
LT
33502003-12-23 Luc Teirlinck <teirllm@auburn.edu>
3351
000eeb15
LT
3352 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
3353 Doc fixes.
0dc72b11
LT
3354
3355 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
3356 and an integer. Adapt the introductory comment accordingly.
adb0708c
LT
3357 (Fread_from_minibuffer): Delete code moved into read_minibuf.
3358 Doc fix.
3359 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
3360 read_minibuf.
3361 (Fcompleting_read): Delete code moved into read_minibuf.
d7107586 3362 (Ftest_completion): Make it handle obarrays and hash tables correctly.
adb0708c 3363
2e4d132b
KH
33642003-12-03 Kenichi Handa <handa@m17n.org>
3365
3366 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
3367 encoding sequence.
3368
3999c705
KH
33692003-12-01 Kenichi Handa <handa@m17n.org>
3370
3371 * composite.c (syms_of_composite): Don't make the compostion hash
3372 table week.
3373
d344ecbb
LT
33742003-11-30 Luc Teirlinck <teirllm@auburn.edu>
3375
3376 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
3377 * textprop.c (Fget_char_property_and_overlay): New function.
3378 (syms_of_textprop): Defsubr it.
3379
03d6484e
JD
33802003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3381
019b1f0e
JD
3382 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
3383 to compile on terminal configuration.
3384
03d6484e
JD
3385 * fileio.c (Fread_file_name): Check use_file_dialog also before
3386 calling Fx_file_dialog.
3387
3388 * fns.c: use_file_dialog: New variable.
3389 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
3390
442d3fd0
KS
33912003-11-29 Kim F. Storm <storm@cua.dk>
3392
3393 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
3394 (syms_of_msdos): Don't intern and staticpro them.
3395
0f6a07a8
KS
33962003-11-27 Kim F. Storm <storm@cua.dk>
3397
3398 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
3399 coordinates relative to glyph at posn. If glyph is an image,
3400 return that as object at posn. Callers changed.
3401 (mode_line_string, marginal_area_string): Calculate and return
3402 pixel coordinates relative to glyph. Callers changed.
3403
3404 * dispextern.h (buffer_posn_from_coords, mode_line_string)
3405 (marginal_area_string): Fix prototypes.
3406 (window_box_left_offset, window_box_right_offset): Add prototypes.
3407
3408 * frame.h (get_specified_cursor_type, get_window_cursor_type):
3409 Remove prototypes.
3410
3411 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
3412
3413 * keyboard.c (make_lispy_position): Add x and y coordinates
3414 relative to the current glyph as 7th element of position.
3415 If glyph is an image, return it in the object element.
3416 (read_key_sequence): Skip checks for keymap property in cases
3417 where POSN_STRING is not a string (e.g. an image).
3418
3419 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
3420 (Vshow_text_cursor_in_void): New variable.
3421 (glyph_to_pixel_coords): Don't use negative hpos.
3422 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
3423 (append_stretch_glyph): Change ascent arg to be actual value
f63fd14e 3424 in pixels rather than ratio to height. Callers changed.
0f6a07a8
KS
3425 (calc_pixel_width_or_height): New aux function, implementing
3426 pixel based artihmetic for glyph widths and heights.
3427 (produce_stretch_glyph): Use calc_pixel_width_or_height for
3428 :width, :height, :align-to, and :ascent, thus allowing these to
3429 be specified in pixels as well as multiples of characters.
3430 Don't produce stretch glyphs with zero width or height.
3431 (get_specified_cursor_type): Declare static.
3432 (get_window_cursor_type): Declare static. Add glyph arg to be
3433 able to know when cursor is on an image; always substitute
3434 hollow-box cursor for filled-box cursor on images, to avoid
3435 negative images and flicker when blinking the cursor.
3436 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
3437 (note_mode_line_or_margin_highlight): Use non-text cursor rather
3438 than vertical scroll-bar cursor in display margins.
3439 (note_mouse_highlight): Use non-text cursor rather than text
3440 cursor in fringes and over images in the text area.
3441 Use non-text cursor when mouse pointer is outside editable text,
3442 i.e. in the void after end-of-line or end-of-buffer; this was
3443 already done for W32, but is now standard for all systems --
3444 user can toggle show-text-cursor-in-void to get old behaviour.
3445 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
3446 Vdisplay_pixels_per_inch.
3447
00498bfc
AS
34482003-11-25 Andreas Schwab <schwab@suse.de>
3449
3450 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
3451 EMACS_INT to not lose bits.
3452 (Ffillarray): Don't set bits beyond the size of a bool vector.
3453
edaa824d
KS
34542003-11-25 Kim F. Storm <storm@cua.dk>
3455
3456 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
3457 define this defun on systems that cannot use stderr as lvalue.
3458
74d6f539
GM
34592003-11-24 Gerd Moellmann <gerd@gnu.org>
3460
3461 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
3462 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
3463 ld's default is incompatible with unexec.
3464
6a1ff3ba
KS
34652003-11-23 Kim F. Storm <storm@cua.dk>
3466
63dc7c6b
KS
3467 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
3468 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
3469 (Fforce_window_update): New defun.
3470 (syms_of_window): Defsubr it.
3471 (Fset_window_margins, Fset_window_fringes): Doc fix.
3472
6a1ff3ba
KS
3473 * print.c (Fredirect_debugging_output): New defun.
3474 (syms_of_print): Defsubr it.
3475
aef109b7
LT
34762003-11-22 Luc Teirlinck <teirllm@auburn.edu>
3477
3478 * fns.c (Fset_char_table_parent): Doc fix.
3479
6a1ff3ba 34802003-11-22 Kim F. Storm <storm@cua.dk>
63ccbe21
KS
3481
3482 * dispnew.c (buffer_posn_from_coords): Return actual row/column
3483 for glyph clicked on, rather than (unused) pixel positions.
3484 (mode_line_string, marginal_area_string): Change X and Y args to
3485 pointers for returning actual row/column for glyph clicked on.
3486 Simplify and optimize loops.
3487
aef109b7
LT
3488 * dispextern.h (mode_line_string, marginal_area_string):
3489 Update prototypes.
63ccbe21
KS
3490
3491 * keyboard.c (make_lispy_position): New function for generating
3492 mouse click positions from frame and pixel coordinates.
3493 Enhanced to return buffer position and actual row/column for
3494 events outside the text area using updated mode_line_string and
3495 marginal_area_string functions.
3496 Return left-fringe and right-fringe clicks as such, rather than
3497 clicks in text area.
3498 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
3499 pixel_to_glyph_coords, as we never use the results.
3500 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
3501 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
3502 Eliminate unused code in WHEEL_EVENT handling.
3503 (make_lispy_movement): Use make_lispy_position.
3504
3505 * window.c (coordinates_in_window): Remove redundant tests.
3506 Fix returned X pixel value for left-margin.
3507
3508 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
3509 mode_line_string and marginal_area_string parameters.
3510
a64387ee 35112003-11-22 Lars Hansen <larsh@math.ku.dk>
930a9995 3512
d7107586
SM
3513 * w32.c (struct the_group, getgrgid): Add.
3514 * mac.c (struct my_group, getgrgid): Add.
aef109b7 3515
3dbf3426
LT
35162003-11-21 Luc Teirlinck <teirllm@auburn.edu>
3517
3518 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
3519
cae8ddbb 35202003-11-21 Lars Hansen <larsh@math.ku.dk>
ded4064f 3521
d7107586
SM
3522 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
3523 include in call to file name handler. Optionally translate numeric
3524 UID and GID to strings. Update docstring.
3525 (directory_files_internal): Add parameter ID-FORMAT.
3526 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
3527 include in call to file name handler and call to
3528 directory_files_internal. Update Docstring.
3529 (Fdirectory_files): Add dummy parameter in call to
3530 directory_files_internal.
3531 * lisp.h (Qinteger): Add.
3532 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
3533 (Ffile_attributes): Add parameter.
3534 * data.c (Qinteger): Export.
cae8ddbb 3535
2550b848
LT
35362003-11-21 Luc Teirlinck <teirllm@auburn.edu>
3537
3dbf3426 3538 * fns.c (Freverse, Fnreverse): Doc fixes.
2550b848 3539
88380018
KS
35402003-11-19 Kim F. Storm <storm@cua.dk>
3541
3542 * xdisp.c (init_iterator): Initialize it->start to position
3543 before reseating (in case start position is invisible).
3544 (init_to_row_start): Set it->start to row-start.
3545 (redisplay_window): Accept optional_new_start if start position
3546 is invisible (in which case IT_CHARPOS overshoots PT).
3547 (display_line): Setup row->start from it->start (rather than
3548 it->current which is wrong if first char on line is invisible).
3549 When done, reseat it->start to it->current (= start of next row).
3550 (expose_area): Fix exposure of text area when first char (e.g. TAB)
3551 is only partially visible.
3552
3553 * dispextern.h (struct it): New member start.
3554
854c1a59
SM
35552003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
3556
455316e2
SM
3557 * alloc.c (make_float, Fcons): Clear the markbit at init time.
3558 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
3559 of block_index outside of the macro call.
3560 (Fgarbage_collect): Remove null code.
3561
3562 * m/amdx86-64.h: Don't redefine XPNTR.
3563
854c1a59
SM
3564 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
3565 of VALMASK.
3566
3567 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
3568 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
3569 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
3570
3571 * lisp.h (VALMASK): Only define for non-union type.
3572 (MARKBIT): Remove.
3573 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
3574 (XTYPE): Define unconditionally.
3575 (XSETTYPE): Remove one more remnant.
3576 (EQ): Define differently for the union and non-union cases.
3577 (INTMASK): New bit mask.
3578 (struct Lisp_Marker): Move down to prepare for upcoming patch.
3579 (GC_EQ): Delegate to EQ.
3580
3581 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
3582
a0c6ef2d
JD
35832003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3584
3585 * xterm.c (x_window_to_scroll_bar): Move check of display to
3586 where window_id is compared.
3587
859492c4
KS
35882003-11-17 Kim F. Storm <storm@cua.dk>
3589
3590 * dispextern.h (struct it): New member first_vpos.
3591
3592 * xdisp.c (start_display): Set it->first_vpos.
3593 (try_window_id): Use first_vpos to start display in first _text_
3594 line if no reusable lines at start of window with header line.
3595
810f2256
JD
35962003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3597
7c402969 3598 * w32fns.c (XPutPixel):
854c1a59
SM
3599 * w32bdf.c (w32_init_bdf_font):
3600 * sunfns.c (sel_read):
3601 * process.c (Fmake_network_process):
3602 * frame.c (store_frame_param):
3603 * fontset.c (Fset_fontset_font):
3604 * emacs.c (shut_down_emacs):
a64387ee 3605 * ccl.c (ccl_driver): Remove period at end of error message.
7c402969 3606
a32e9bfd
JD
3607 * config.in: Regenerate.
3608
810f2256
JD
3609 * xfns.c (x_window_to_frame, x_any_window_to_frame)
3610 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
3611 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
3612 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
3613 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
3614
3615 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
3616
3617 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
3618 (XTmouse_position, handle_one_xevent): Pass Display* to
3619 x_window_to_scroll_bar.
3620 (x_window_to_scroll_bar): Take a Display* argument.
3621 Check that display for frame is equal to Display* argument.
854c1a59 3622 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
810f2256
JD
3623 x_display_info_for_display instead. Use Display in xev instead
3624 of GDK_DISPLAY.
3625 (x_dispatch_event): Call x_display_info_for_display.
f63fd14e 3626 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
810f2256
JD
3627 (x_connection_closed): Call xg_display_close for GTK.
3628 (x_term_init): Call xg_display_open for additional displays.
3629 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
3630 for GTK.
3631
3632 * xmenu.c (single_menu_item, mouse_position_for_popup)
3633 (x_activate_menubar): Formatting adjustments.
3634
3635 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
3636 adjustments.
3637
3638 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
3639 (xg_display_close, xg_create_default_cursor)
3640 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
3641 handling.
854c1a59
SM
3642 (xg_left_ptr_cursor): Remove.
3643 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
810f2256
JD
3644 cursor here.
3645 (xg_win_to_widget): Take Display* argument, call
3646 gdk_xid_table_lookup_for_display.
3647 (xg_create_frame_widgets, xg_get_file_name, create_menus)
3648 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
3649 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
3650 in FRAME_X_DISPLAY_INFO.
3651 (xg_get_scroll_id_for_window): Take Display* argument.
3652 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
854c1a59 3653 (xg_initialize): Remove xg_left_ptr_cursor.
810f2256
JD
3654
3655 * gtkutil.h: xg_get_scroll_id_for_window, xg_win_to_widget takes
3656 Display* argument also. Declare xg_display_open,
3657 xg_display_close, xg_create_default_cursor.
3658
0b03cc78
JD
36592003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3660
3661 * xterm.c (x_detect_focus_change): Do not change focus frame for
3662 Enter/LeaveNotify if the current focus frame has explicit focus.
3663
77e688fa
KS
36642003-11-14 Kim F. Storm <storm@cua.dk>
3665
3666 * dispnew.c (update_text_area): Fix redisplay error when hscroll
3667 is active and first glyph is only partially visible.
854c1a59 3668
dd429b03
KH
36692003-11-13 Kenichi Handa <handa@m17n.org>
3670
3671 * xdisp.c (select_frame_for_redisplay): New function.
3672 (redisplay_internal): Record also selected_frame for
3673 unwind_redisplay. Call select_frame_for_redisplay before
3674 redrawing each frame.
3675 (unwind_redisplay): Argument changed to a cons.
3676
6d9266f4
LT
36772003-11-12 Luc Teirlinck <teirllm@auburn.edu>
3678
3679 * fns.c (Fstring_to_multibyte): Doc fix.
3680
80060eb3
KH
36812003-11-11 Kenichi Handa <handa@m17n.org>
3682
3683 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
3684
74305183
JD
36852003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3686
3687 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
3688 program specified positions.
3689
cfda993e
JD
36902003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3691
3692 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
3693
df211069
KH
36942003-11-08 Kenichi Handa <handa@m17n.org>
3695
3696 * Makefile.in (lisp): Add kannada.el.
3697 (shortlisp): Likewise.
3698
4307d534
KH
36992003-11-07 Kenichi Handa <handa@m17n.org>
3700
854c1a59
SM
3701 * coding.c (coding_allocate_composition_data):
3702 Reset coding->composing to COMPOSITION_NO.
4307d534
KH
3703 (coding_restore_composition): Detect invalid composition data.
3704 Give Fstring and Fvector a Lispy integer, not C int.
3705
854c1a59
SM
37062003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
3707
3708 * floatfns.c (Flogb): Don't use VALMASK.
3709
3710 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
3711 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
3712
3713 * lisp.h (XINT): Move the cast to clarify what is going on.
3714 (GCTYPEMASK, XSETTYPE): Remove.
3715 (XGCTYPE): Make it an alias of XTYPE.
3716
d04103a1
JD
37172003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3718
3719 * xterm.c (x_term_init): Fix formatting.
3720
da18b5ac
JD
37212003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3722
3723 * gtkutil.h: Declare xg_have_tear_offs, remove xg_keep_popup
3724 and xg_did_tearoff.
3725
3726 * gtkutil.c: Remove variable xg_did_tearoff.
3727 (xg_have_tear_offs): New function.
3728 (tearoff_remove): Just decrease xg_detached_menus.
3729 (tearoff_activate): Increase xg_detached_menus and call
3730 tearoff_remove when tearoff is removed.
854c1a59 3731 (xg_keep_popup): Remove function.
da18b5ac
JD
3732 (create_menus): Give add_tearoff_p as argument to recursive
3733 call to create_menus.
3734 (xg_create_widget): Use variables instead of multiple
3735 strcmp. Tell create_menus to create tear off only for
3736 menu bar menus.
3737 (xg_update_menubar): Change title for a detached menu also.
3738 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
3739 of deep_p.
3740 (xg_initialize): Initialize xg_detached_menus, remove
3741 initialization of xg_did_tearoff.
3742
3743 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
3744 xg_have_tear_offs returns non-zero.
3745 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
3746 call to xg_keep_popup.
3747
64d4923e
AC
37482003-11-01 Andrew Choi <akochoi@shaw.ca>
3749
3750 * macterm.c (XTread_socket): Handle menubar selection and grow
3751 window only for mouseDown events.
854c1a59 3752
6cc8bc07
JD
37532003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3754
3755 * xterm.c (x_term_init): For GTK part, increase x_initialized
3756 to check for more than one display. Use error instead of return 0.
3757
043131c4
AC
37582003-10-31 Andrew Choi <akochoi@shaw.ca>
3759
854c1a59 3760 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
043131c4
AC
3761 (copy_dysymtab): Call it.
3762
bdda99a1
LT
37632003-10-31 Luc Teirlinck <teirllm@auburn.edu>
3764
3765 * eval.c (Fdefvaralias): Doc fix.
3766
800f42ff 37672003-10-26 Luc Teirlinck <teirllm@auburn.edu>
0d11571e
LT
3768
3769 * data.c (Fsetplist): Doc fix.
3770
ef35b389
LK
37712003-10-14 Lute Kamstra <lute@gnu.org>
3772
3773 * window.c (Fset_window_fringes): Clarify docstring.
07107abc 3774
ef35b389 37752003-10-14 Kim F. Storm <storm@cua.dk>
854c1a59 3776
07107abc
KS
3777 * window.c (Fset_window_margins): Simplify arg checking.
3778
f7005886
RS
37792003-10-13 Richard M. Stallman <rms@gnu.org>
3780
3781 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
3782 (print_partial_compiled_pattern): Replace assert with a printout.
3783 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
3784
3785 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
3786
3787 * window.c (Fset_window_margins): Allow only integers as args.
3788 (syms_of_window) <special-display-buffer-names, special-display-regexps>:
3789 Doc fixes.
3790
9c0c2af5
LK
37912003-10-13 Lute Kamstra <lute@gnu.org>
3792
3793 * window.c (Fset_window_fringes): Elaborate docstring.
3794
3f080e4e
AC
37952003-10-12 Andrew Choi <akochoi@shaw.ca>
3796
854c1a59 3797 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
a4887377 3798
3f080e4e
AC
3799 * s/darwin.h (GC_MARK_STACK): Define.
3800
0aa513ed
JD
38012003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3802
3803 * window.c (shrink_windows): New function.
3804 (size_window): Call shrink_windows to calculate window sizes when
3805 shrinking frame with more than one window.
3806
6aa8858a
KS
38072003-10-12 Kim F. Storm <storm@cua.dk>
3808
3809 * xdisp.c (compute_fringe_widths): Doc fix.
3810
c2164d91
KH
38112003-10-08 Kenichi Handa <handa@m17n.org>
3812
854c1a59 3813 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
c2164d91 3814
f82ac129
KH
38152003-10-07 Kenichi Handa <handa@m17n.org>
3816
3817 * coding.c (Qcoding_system_define_form): New variable.
3818 (syms_of_coding): Intern and staticpro it.
3819 (Fcheck_coding_system): Try to autoload the definition of
3820 CODING-SYSTEM.
3821
9296c947
LT
38222003-10-05 Luc Teirlinck <teirllm@auburn.edu>
3823
3824 * fns.c (Frequire): Doc fix.
3825
c1f0671a
JD
38262003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3827
3d8c3826
JD
3828 * xfns.c (Fx_send_client_event): New function as a base for
3829 manipulating extended window manager hints.
6dc15d98 3830 (Fx_send_client_event): Remove unused variable s.
3d8c3826 3831
068ae0fd
JD
3832 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
3833 that function is removed.
3834
3835 * xterm.c (x_set_offset): Use move_offset_left/top instead of
3836 x/y_pixels_outer_diff.
3837 (x_check_expected_move): Calculate move_offset_left/top.
3838
3839 * xterm.h (struct x_output): New members: move_offset_top/left.
3840
854c1a59 3841 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
068ae0fd
JD
3842 call x_set_offset directly.
3843
3844 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
3845
96f09305
JD
3846 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
3847
3848 * xterm.c (x_delete_display): Free font names and font_encoder
3849 in dpyinfo->font_table.
3850
854c1a59
SM
3851 * xfns.c (Fx_close_connection): Only call XFreeFont here.
3852 Move xfree of font names to x_delete_display.
96f09305 3853
c1f0671a
JD
3854 * xterm.h (struct x_display_info): New member, wm_type.
3855 (struct x_output): New members, expected_top/left and
3856 check_expected_move.
3857
3858 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
3859 is received.
854c1a59
SM
3860 (handle_one_xevent): Rename x_check_expected_move from
3861 x_check_fullscreen_move.
c1f0671a
JD
3862 (x_set_offset): Only add WM decoration sizes to modified_top/left
3863 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
854c1a59 3864 (x_check_expected_move): Rename from x_check_fullscreen_move.
c1f0671a
JD
3865 Removed fullscreen specific code. Use check_expected_move,
3866 expected_left/top instead. Also, set wm_type.
3867 (x_term_init): Initialize wm_type to unknown.
3868
3869 * frame.c (x_fullscreen_move): Remove addition of WM decoration
3870 sizes to move_x/y.
3871
be2fdba9
KH
38722003-10-03 Kenichi Handa <handa@m17n.org>
3873
3874 * macterm.c (x_load_font): Clear all members of FONTP before start
3875 filling them.
3876
38772003-10-02 Kenichi Handa <handa@m17n.org>
3878
3879 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
3880 before calling find_ccl_program_func. Call find_ccl_program_func
3881 only when fontp->font_encoder is not NULL.
3882
3883 * xterm.c (x_load_font): Clear all members of FONTP before start
3884 filling them.
3885
26a6e439
JPW
38862003-10-03 John Paul Wallington <jpw@gnu.org>
3887
3888 * keymap.c (map_keymap): Don't abort when binding is a vector.
3889
0d4c2dc2
JR
38902003-10-02 Jason Rumney <jasonr@gnu.org>
3891
854c1a59
SM
3892 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
3893 Sync dependencies with Makefile.in.
a63cf46f
JR
3894 (alloca.o): Remove.
3895
0d4c2dc2
JR
3896 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
3897 filling them.
3898
3899 * w32bdf.c (w32_load_bdf_font): Likewise.
3900
ab8f7d5c
RS
39012003-09-30 Richard M. Stallman <rms@gnu.org>
3902
3903 * term.c (set_tty_color_mode): Calculate current_mode_spec
3904 regardless of value of VAL.
3905
854c1a59 3906 * intervals.c (graft_intervals_into_buffer):
ab8f7d5c
RS
3907 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
3908 Handle over_used when splitting UNDER.
3909
a64387ee 39102003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ab8f7d5c
RS
3911
3912 * regex.c (regex_compile): Free the stack when returning from function.
3913
3413f972
KH
39142003-09-28 Kenichi Handa <handa@m17n.org>
3915
3916 * fontset.c (Finternal_char_font): Change return value to
3917 cons (FONT-NAME . GLYPH-CODE).
3918
a6eeaa81 39192003-09-28 Eli Zaretskii <eliz@gnu.org>
40409f05
EZ
3920
3921 * term.c (tty_setup_colors): Treat any negative argument as -1.
3922
f98ddc99
KH
39232003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
3924
3925 * process.c (send_process): Delete unused temp_buf.
3926
66c8f1a8
DL
39272003-09-26 Dave Love <fx@gnu.org>
3928
3929 * xterm.c (x_bitmap_mask): Declare.
3930
ca716c26
DL
39312003-09-25 Dave Love <fx@gnu.org>
3932
3933 * Makefile.in (fns.o): Depend on md5.h.
3934
fbe57420
KS
39352003-09-25 Kim F. Storm <storm@cua.dk>
3936
3937 * window.c (set_window_buffer): Fix redisplay problems when
3938 switching between buffers with different display margin widths.
3939
ef6ae4ff
KS
39402003-09-23 Kim F. Storm <storm@cua.dk>
3941
3942 * process.c (set_socket_option): Fix :bindtodevice option.
3943 (Fset_network_process_option): Update process contact list when
3944 setting option succeeds.
3945 (Fmake_network_process): Doc fix.
3946
68e03c1c
DL
39472003-09-23 Dave Love <fx@gnu.org>
3948
7146d1c1 3949 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
68e03c1c 3950
a6eeaa81 39512003-09-22 Eli Zaretskii <eliz@gnu.org>
2f809aae
EZ
3952
3953 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
3954 color mode is an integer number (it could be -1).
3955
8fe7d8c8
RS
39562003-09-22 Richard M. Stallman <rms@gnu.org>
3957
3958 * intervals.c (graft_intervals_into_buffer): Correct the main loop
3959 in the case where OVER is longer than UNDER.
3960
2f71b5ea
MY
39612003-09-22 Masatake YAMATO <jet@gyve.org>
3962
7146d1c1 3963 * window.c (Fset_window_scroll_bars): Validate the value of
2f71b5ea 3964 `vertical_type'.
7146d1c1 3965
0c4da023
KS
39662003-09-21 Kim F. Storm <storm@cua.dk>
3967
3968 * frame.c (Vdefault_frame_scroll_bars): New variable.
3969 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
3970 (syms_of_frame): DEFVAR_LISP it, and initialize according to
3971 window-system default scroll bar position.
3972
b648413b
KS
3973 * window.c (Fwindow_scroll_bars): Doc fix.
3974
8f5b9e34
JD
39752003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3976
854c1a59 3977 * xterm.c (x_set_offset): Take window manager decorations into account.
8f5b9e34 3978
b0f23edf
RS
39792003-09-19 Richard M. Stallman <rms@gnu.org>
3980
3981 * atimer.h: Don't include lisp.h.
3982 (P_): Define it here (as well as elsewhere).
3983
3984 * print.c (Fprin1_to_string): Move the PRINTPREPARE
3985 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
3986
3987 * data.c (Fvariable_binding_locus): New function.
3988 (syms_of_data): defsubr it.
3989 (Flocal_variable_p): Delete duplicate call to indirect_variable.
3990
e1283999
DL
39912003-09-18 Dave Love <fx@gnu.org>
3992
ad5f3636
DL
3993 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
3994
e1283999
DL
3995 * process.c (Fnetwork_interface_info): Fix type error.
3996 (Fnetwork_interface_list): Doc fix.
3997 (read_process_output, read_process_output): Delete unused var.
3998
b8c7fd71
KS
39992003-09-17 Kim F. Storm <storm@cua.dk>
4000
4001 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
4002 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
4003 (Fnetwork_interface_info): Check that ifreq struct has required
4004 fields before accessing them; this requires that those fields are
4005 defined as macros, which may be too restrictive on some platforms,
4006 but it is better than failing on other platforms.
4007 (syms_of_process): Only defsubr above fns when included.
4008
11e0a411
DL
40092003-09-17 Dave Love <fx@gnu.org>
4010
4011 * unexalpha.c: Don't include varargs.h.
4012
e9c50801
KS
40132003-09-17 Kim F. Storm <storm@cua.dk>
4014
4015 * process.c (Fset_process_sentinel): Add sentinel to childp plist
4016 for network process.
4017 (socket_options): Add `:' prefix to option names. Add optbit field.
4018 (set_socket_option): Remove no_error arg and special handling of s < 0.
4019 Return 1<<optbit for known option, 0 for unknown.
4020 Do not interpret 0 as false for boolean option (only nil).
4021 Pass failed option and value to report_file_error.
7146d1c1 4022 (Fset_network_process_options): Replace by Fset_network_process_option.
e9c50801
KS
4023 (Fset_network_process_option): New function to set just one option.
4024 (Fmake_network_process): Allow :coding arg to be a cons.
4025 Allow :server arg to be an integer specifying backlog size.
4026 Remove :options arg, and allow options to be specified directly
4027 as :KEY, VALUE pairs. Parse these options before binding socket.
4028 As before, :reuseaddr t is default for a server process, but this
4029 can now be disabled by specifying :reuseaddr nil.
4030 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
4031 (init_process): Availability of network options is now checked with
4032 simpler syntax (featurep 'make-network-process :OPTION); use loop to
4033 setup features.
4034 (syms_of_process): Fix defsubr's for the replaced functions.
4035
a0fc3644
DL
40362003-09-16 Dave Love <fx@gnu.org>
4037
4038 * Makefile.in: Depend on coding.h.
4039
6df2a645
KS
40402003-09-14 Kim F. Storm <storm@cua.dk>
4041
4042 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
4043 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
4044 (syms_of_process): Defsubr them.
4045
4046 * config.in: Regenerate.
7146d1c1
SM
4047
40482003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4049
4050 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
4051 * m/news-r6.h (XUNMARK): Remove.
4052 * m/mips.h (XUNMARK): Remove.
4053 * m/mips-siemens.h (XUNMARK): Remove.
4054 * m/iris4d.h (XUNMARK): Remove.
4055 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
4056
0930c1a1
SM
40572003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
4058
31003b9e
SM
4059 * lisp.h (VALBITS): Don't remove 1 for the markbit.
4060 (union Lisp_Object): Use unsigned int for types. Remove markbit.
4061 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
4062 (XTYPE): Use unsigned right-shift.
4063 (XMARKBIT, XMARK, XUNMARK): Remove.
4064
0930c1a1
SM
4065 * alloc.c (init_intervals, init_symbol, init_marker):
4066 Don't preallocate anything.
4067 (Fgarbage_collect, mark_object): Ignore the markbit.
4068
4069 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
4070
19bb0fcd 40712003-09-08 Lute Kamstra <lute@gnu.org>
5df034de
LK
4072
4073 * xdisp.c (pint2hrstr): New function.
4074 (decode_mode_spec): Add `%i' and `%I' specs.
4075 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
4076 for `mode-line-format'.
4077
03bb6a06
AS
40782003-09-07 Andreas Schwab <schwab@suse.de>
4079
4080 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
4081 avoid warning.
4082
a6eeaa81 40832003-09-07 Eli Zaretskii <eliz@gnu.org>
2063d89c 4084
0930c1a1 4085 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
2063d89c 4086
ed159bbf
KS
40872003-09-03 Kim F. Storm <storm@cua.dk>
4088
4089 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
4090 change (superseded by 2002-08-30 change); the default blink-off
4091 cursor is now again "no cursor".
4092
fe64a394
JR
40932003-09-01 Jason Rumney <jasonr@gnu.org>
4094
4095 * makefile.w32-in (alloca.o): Remove.
4096 (coding.o): Depend on intervals.h
4097 (emacs.o, bytecode.o): Depend on window.h
4098
c0175e24
DL
40992003-09-01 Dave Love <fx@gnu.org>
4100
4101 * Makefile.in (alloca.o): Remove commands.
4102 (coding.o): Depend on intervals.h composite.h window.h.
4103 (emacs.o): Depend on window.h keyboard.h keymap.h.
4104 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
4105 (bytecode.o): Depend on window.h.
4106
a24d4cb2
JR
41072003-08-31 Jason Rumney <jasonr@gnu.org>
4108
4bc2315e
JR
4109 * w32term.c (w32_per_char_metric): Allow cached metrics to be
4110 returned even when font_type is unknown.
4111
a24d4cb2
JR
4112 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
4113
9d35adc7
JD
41142003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4115
4116 * xterm.c (x_term_init): Initialize new fields in x_display_info.
4117
4118 * xterm.h (struct x_display_info): Add red/green/blue_bits and
4119 *_offset.
4120
4121 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
4122 calculate pixel value.
4123
6f68b035
GM
41242003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
4125
0930c1a1
SM
4126 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
4127 Don't tell redisplay display is accurate when it's actually been
4128 paused for pending input.
6f68b035 4129
4828b4d7
RS
41302003-08-29 Richard M. Stallman <rms@gnu.org>
4131
4132 * dispnew.c (adjust_glyph_matrix): Call window_box
4133 whenever W is nonzero.
4134
4135 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
4136 (Fkill_local_variable, Fmake_variable_frame_local)
0930c1a1 4137 (Flocal_variable_p, Flocal_variable_if_set_p):
4828b4d7
RS
4138 Use indirect_variable to trace thru variable aliases.
4139
4140 * config.in: Updated.
4141
4142 * callint.c (Fcall_interactively): Save and restore
4143 Vthis_command, Vthis_original_command, real_this_command,
4144 and current_kboard->Vlast_command.
4145
4146 * abbrev.c (Fexpand_abbrev): Insert before deleting.
4147
e019878d
GM
41482003-08-29 Gerd Moellmann <gerd@gnu.org>
4149
4150 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
4151
85478bc6
KH
41522003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
4153
0930c1a1 4154 * coding.c (decode_coding_iso2022): Initialize local variable c2.
85478bc6
KH
4155 (decode_coding_sjis_big5): Likewise.
4156
07ce82d3
JR
41572003-08-27 Jason Rumney <jasonr@gnu.org>
4158
d3703de3
JR
4159 * w32.c (sys_pipe): Protect against file descriptor overflow.
4160
ee4a01d1
JR
4161 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
4162
07ce82d3
JR
4163 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
4164
a64387ee 41652003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
72d19c66
LK
4166
4167 * xfns.c (Vgtk_version_string): New variable.
4168 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
4169
a6eeaa81 41702003-08-24 Eli Zaretskii <eliz@gnu.org>
5459e42a 4171
0930c1a1 4172 * term.c (term_init): Remove `const' from buffer_size's declaration.
3d8714e7 4173
5459e42a
EZ
4174 * Makefile.in (msdos.o): Depend on intervals.h.
4175
0930c1a1 4176 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
5459e42a 4177
231d6cfb
JD
41782003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4179
4180 * xterm.h (struct x_display_info): New fields: client_leader_window
4181 and Xatom_wm_client_leader.
4182
4183 * xterm.c (x_initialize): Move call to x_session_initialize to ...
4184 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
4185
4186 * xsmfns.c (create_client_leader_window): New function.
4187 (x_session_initialize): Call create_client_leader_window, take
4188 dpyinfo as argument.
4189
4190 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
4191
4192 * Makefile.in (xsmfns.o): Add more depenedencies.
4193
afa88464
DL
41942003-08-21 Dave Love <fx@gnu.org>
4195
4196 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
4197
f730033e
KH
41982003-08-21 Kenichi Handa <handa@m17n.org>
4199
4200 * term.c (term_init): Fix previous change; don't rely on the
4201 length of `buffer' if TERMINFO is defined.
4202
6dca786c
DL
42032003-08-20 Dave Love <fx@gnu.org>
4204
4205 * atimer.h: Include lisp.h.
4206
4207 * lisp.h (EMACS_LISP_H): New.
4208 (popup_activated_flag): Don't declare.
4209
4210 * alloca.c: Some merging with gnulib. Change logic and doc
4211 concerning (x)malloc/(x)free -- no longer Emacs-specific.
4212 [DO_BLOCK_INPUT]: Don't include lisp.h.
4213 (xmalloc, xfree): Declare.
4214 (malloc): Don't declare.
4215
0930c1a1 4216 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
6dca786c
DL
4217 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
4218 atimer.h, blockinput.h.
4219
4220 * alloc.c (lisp_align_malloc): Change type of `aligned'.
4221
4222 * alloca.s: Removed.
4223
3a06a6d9
RS
42242003-08-19 Gerd Moellmann <gerd@gnu.org>
4225
4226 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
4227 use -lncurses.
4228
4229 * term.c (term_init): Use a buffer of size 4096 for tgetent since
4230 FreeBSD returns something longer than 2044. Abort if the end of
4231 the buffer is overwritten.
4232
27eeee55
MB
42332003-08-19 Miles Bader <miles@gnu.org>
4234
4235 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
4236
2f297815
GM
42372003-08-19 Gerd Moellmann <gerd@gnu.org>
4238
f4446bbf
GM
4239 * alloc.c (lisp_align_malloc): Check for memory full when
4240 allocating ablocks, which also avoids freeing a pointer into an
4241 ablocks structure.
4242
4243 * puresize.h (BASE_PURESIZE): Increase to 1100000.
4244
0930c1a1 4245 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
2f297815 4246
0e7d7aae
RS
42472003-08-16 Richard M. Stallman <rms@gnu.org>
4248
4249 * editfns.c (Fencode_time): Doc fix.
4250
42512003-08-16 David Ponce <david@dponce.com>
4252
4253 * fileio.c (Fwrite_region): Fix conditional expression to issue
4254 the right message.
4255
42562003-08-16 Juri Linkov <juri@jurta.org> (tiny change)
4257
4258 * syntax.c (Fforward_word): Argument changed to optional.
0930c1a1 4259 Set default value to 1.
0e7d7aae 4260
5d551295
KH
42612003-08-15 Kenichi Handa <handa@m17n.org>
4262
4263 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
4264 what autoscaled.
4265 (best_matching_font): Once we find a better scalable font, set
4266 non_scalable_has_exact_height_p to 1.
4267 (try_font_list): Call try_alternative_families to try any family
4268 with the given registry.
4269
1661e56b
AS
42702003-08-09 Andreas Schwab <schwab@suse.de>
4271
f29181dc
AS
4272 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
4273
1661e56b
AS
4274 * print.c (print_string): Fix printing of multibyte string with
4275 nontrivial printcharfun.
4276
465aa50a
JD
42772003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4278
4279 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
4280
4281 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
4282
e430e5ba
KH
42832003-07-31 Kenichi Handa <handa@m17n.org>
4284
4285 * process.c (read_process_output): Return the actually read bytes
4286 instead of the result of decoding.
4287
97e7188e
KH
42882003-07-31 Kenichi Handa <handa@m17n.org>
4289
4290 * xterm.h (struct x_bitmap_record): New member have_mask.
4291
4292 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
4293 to 0.
4294 (x_create_bitmap_from_file): Likewise.
4295 (x_destroy_bitmap): Check have_mask member before freeing a mask.
4296 (x_destroy_all_bitmaps): Likewise.
4297 (x_create_bitmap_mask): Set have_mask member to 1.
4298
b53094d6
RS
42992003-07-30 Richard M. Stallman <rms@gnu.org>
4300
4301 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
4302
631f2082
JD
43032003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4304
4305 * gtkutil.c (xg_mark_data): Update calls to mark_object.
4306
c855f2ca
RS
43072003-07-29 Richard M. Stallman <rms@gnu.org>
4308
4309 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
4310 Conditionalize XIM code on HAVE_XIM.
4311
4312 * fns.c (Fclear_string): New function.
4313 (syms_of_fns): defsubr it.
4314
17e6d491
KH
43152003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp> (tiny change)
4316
0930c1a1 4317 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
17e6d491 4318
29ea8ae9
SM
43192003-07-22 Stefan Monnier <monnier@cs.yale.edu>
4320
4321 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
4322
4323 * buffer.c (delete_all_overlays): New function.
4324 * buffer.h (delete_all_overlays): Declare.
4325 * coding.c (run_pre_post_conversion_on_str):
4326 * print.c (temp_output_buffer_setup):
4327 * fileio.c (Finsert_file_contents):
4328 * minibuf.c (get_minibuffer): Use it.
4329
1dd7ccf2
AC
43302003-07-22 Andrew Choi <akochoi@shaw.ca>
4331
4332 * unexmacosx.c (unexec_regions_sort_compare):
4333 (unexec_regions_merge): New functions. Sort and merge unexec
4334 regions before dumping them.
4335
f57bd967
DL
43362003-07-22 Dave Love <fx@gnu.org>
4337
4338 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
4339
7cdee936
SM
43402003-07-21 Stefan Monnier <monnier@cs.yale.edu>
4341
4342 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
4343 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
4344 MARKBIT as the gcmarkbit for strings.
4345
e50886d3
RS
43462003-07-21 Richard M. Stallman <rms@gnu.org>
4347
4348 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
4349
29ea8ae9 4350 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
e50886d3
RS
4351 (syms_of_fns): Corresponding change.
4352
4353 * alloc.c (syms_of_alloc): Doc fixes.
4354
43552003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
4356
4357 * s/netbsd.h: Use -Wl syntax.
4358
fdc39b59
RS
43592003-07-17 Richard M. Stallman <rms@gnu.org>
4360
4361 * xterm.c (xim_initialize): Redo 6/24 change.
4362
9c53385f
SM
43632003-07-15 Stefan Monnier <monnier@cs.yale.edu>
4364
4365 * buffer.c (copy_overlays): Use EMACS_INT for positions.
4366 (Fswitch_to_buffer): Don't signal an error when switching to the same
4367 buffer in a dedicated window.
4368
4369 * alloc.c: Use bitmaps for cons, as was done for floats.
4370 (init_float, init_cons): Let the normal code allocate the first block.
4371 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
4372 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
4373 New macros.
4374 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
4375 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
4376 (live_cons_p): Check the pointer is not past the `conses' array.
4377 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
4378 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
4379 (survives_gc_p): Use CONS_MARKED_P and simplify.
4380 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
4381
dde13196
PE
43822003-07-13 Paul Eggert <eggert@twinsun.com>
4383
4384 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
4385 puts it into BSS instead, at least on Solaris 8 and 9.
4386 This is a valid optimization, and it may occur on other platforms,
4387 so Emacs should not assume that initializing a static variable to
4388 zero puts it into data.
4389 * alloc.c (pure, staticvec):
4390 Initialize these arrays to nonzero, so that they're not
4391 put into BSS by that optimization.
4392
a801bc34
SM
43932003-07-13 Stefan Monnier <monnier@cs.yale.edu>
4394
4395 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
4396 (lisp_align_malloc): Use posix_memalign is available.
4397 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
4398 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
4399 for consistency. Update users.
4400
0c8b2afa
RS
44012003-07-13 Richard M. Stallman <rms@gnu.org>
4402
4403 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
4404
668c2ab0
JB
44052003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
4406
4407 * xterm.c (x_bitmap_icon,x_wm_set_icon_pixmap): Modify to add mask,
4408 and use the Gtk+ function gtk_window_icon_from_file if available.
4409
4410 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
4411 handle mask of bitmaps.
4412 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
4413 mask property.
4414 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
4415
4416 * xterm.h (xg_set_icon): New function.
4417
800bebe3
RS
44182003-07-12 Paul Eggert <eggert@twinsun.com>
4419
4420 * unexelf.c (unexec): Consider a section to precede the .bss
4421 section if its addresses overlap that of .bss.
4422
69e38995
RS
44232003-07-12 Richard M. Stallman <rms@gnu.org>
4424
4425 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
4426
4427 * config.in (HAVE_CRTIN): Add #undef.
4428 (INLINE): Really inline only if OPTIMIZE is defined.
4429
4430 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
4431 END_FILES_1.
4432 (START_FILES_1, END_FILES_1): New macros (conditional).
a801bc34 4433 (LD_SWITCH_SYSTEM_TEMACS): Define.
69e38995
RS
4434
4435 * s/openbsd.h: Don't include bsd4-3.h.
a801bc34
SM
4436 (TERMINFO): Define.
4437 (LIBS_TERMCAP): Define.
4438 (LD_SWITCH_SYSTEM): Define (two definitions).
69e38995
RS
4439
4440 * xfns.c: Include libpng/png.h instead of png.h.
4441
f1d0c238
AS
44422003-07-11 Andreas Schwab <schwab@suse.de>
4443
4444 * buffer.c (modify_overlay): Update prototype.
4445 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
4446 Likewise.
4447
5f6bf5fe
SM
44482003-07-09 Stefan Monnier <monnier@cs.yale.edu>
4449
4450 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
4451 (struct interval): Move to intervals.h.
4452 (struct Lisp_Marker): Use EMACS_INT for position info.
4453 (forward_point): Remove prototype of defunct function.
4454 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
4455 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
4456 (syms_of_textprop, set_text_properties): Remove prototypes that are
4457 already in intervals.h.
4458
4459 * intervals.h (struct interval): Move from lisp.h.
4460 Use EMACS_INT for position and size info.
4461
4462 * coding.c: Include intervals.h for Fset_text_properties.
4463
4464 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
4465 position and length information.
4466
2765b457
SM
44672003-07-09 Stefan Monnier <monnier@cs.yale.edu>
4468
4469 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
4470 position and length information.
4471
2410d73a
SM
44722003-07-09 Stefan Monnier <monnier@cs.yale.edu>
4473
4474 Change overlays_after and overlays_before so the overlays themselves
4475 are linked into lists, rather than using cons cells. After all each
4476 Lisp_Misc already occupies 5 words, so we can add a `next' field to
4477 Lisp_Overlay for free and save up one cons cell per overlay (not
4478 to mention one indirection when traversing the list of overlay).
4479
4480 * lisp.h (struct Lisp_Overlay): New field `next'.
4481
4482 * buffer.h (struct buffer): Change overlays_before and overlays_after
4483 from Lisp lists of overlays to pointers to overlays.
4484
4485 * buffer.c (overlay_strings, recenter_overlay_lists):
4486 Fix typo in eassert in last commit.
4487 (unchain_overlay): New function.
4488 (add_overlay_mod_hooklist): Use AREF.
4489 (copy_overlays, reset_buffer, overlays_at, overlays_in)
4490 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
4491 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
4492 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
4493 (report_overlay_modification, evaporate_overlays, init_buffer_once):
4494 Adjust to new type of overlays_(before|after).
4495
4496 * alloc.c (mark_object): Mark the new `next' field of overlays.
4497 (mark_buffer): Manually mark the overlays_(after|before) fields.
4498
4499 * coding.c (run_pre_post_conversion_on_str):
4500 * editfns.c (overlays_around):
4501 * xdisp.c (load_overlay_strings):
4502 * fileio.c (Finsert_file_contents):
4503 * indent.c (current_column):
4504 * insdel.c (signal_before_change, signal_after_change):
4505 * intervals.c (set_point_both):
4506 * print.c (temp_output_buffer_setup): Use new type for
4507 overlays_(before|after).
4508
04812929
SM
45092003-07-08 Stefan Monnier <monnier@cs.yale.edu>
4510
4511 * buffer.c (report_overlay_modification): Don't run hooks while
4512 traversing the list of overlays.
4513
4514 * buffer.h (struct buffer): Use an int for overlay_center.
4515 (overlays_at, evaporate_overlays, recenter_overlay_lists)
4516 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
4517
4518 * buffer.c (reset_buffer, recenter_overlay_lists)
4519 (adjust_overlays_for_insert, adjust_overlays_for_delete)
4520 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
4521 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
4522 (overlays_at, evaporate_overlays, recenter_overlay_lists)
4523 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
4524
4525 * xdisp.c (fast_find_position): Remove unused var.
4526
4527 * cmds.c (Qexpand_abbrev): New sym.
4528 (syms_of_cmds): Initialize it.
4529 (internal_self_insert): Use it to call expand-abbrev.
4530
2e7ecf15
KS
45312003-07-09 Kim F. Storm <storm@cua.dk>
4532
f9711de4 4533 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
2e7ecf15 4534 was configured with --without-xim.
42f81f64 4535 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
2e7ecf15 4536
c6de56a0
RS
45372003-07-07 Richard M. Stallman <rms@gnu.org>
4538
4539 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
4540
4541 * alloc.c (Fgarbage_collect): Doc fix.
4542
b93fb365
KH
45432003-07-07 Nozomu Ando <nand@mac.com> (tiny change)
4544
4545 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
4546
bfe1a3f7
SM
45472003-07-06 Stefan Monnier <monnier@cs.yale.edu>
4548
04812929
SM
4549 * minibuf.c (read_minibuf): UNGCPRO before returning.
4550 (Ftry_completion, Fall_completions): Doc fix.
4551
bfe1a3f7
SM
4552 * alloc.c (live_float_p): Check that p is not past the `floats' array,
4553 now that `floats' is not the last element of the struct any more.
4554
ee79d1aa
JR
45552003-07-06 Jason Rumney <jasonr@gnu.org>
4556
4557 * w32term.h (ClipboardSequence_Proc): New type.
4558
4559 * w32fns.c (clipboard_sequence_fn): New variable.
4560 (globals_of_w32fns): Initialize it.
4561
4562 * w32select.c (last_clipboard_sequence_number): New variable.
4563 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
4564 number if possible.
4565
49723c04
SM
45662003-07-06 Stefan Monnier <monnier@cs.yale.edu>
4567
4698665f
SM
4568 * m/amdx86-64.h (MARKBIT):
4569 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
4570 MARKBIT and ARRAY_MARK_FLAG any more.
4571
4572 * m/hp800.h (XSETMARKBIT):
4573 * m/sr2k.h (XSETMARKBIT):
4574 * lisp.h (XSETMARKBIT): Remove unused macro.
4575
49723c04
SM
4576 * lisp.h (mark_object): Change prototype.
4577
4578 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
4579 (last_marked): Change accordingly.
4580 (mark_interval, mark_maybe_object, mark_maybe_pointer)
4581 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
4582 (mark_buffer): Update calls to mark_object.
4583
4584 * bytecode.c (mark_byte_stack):
4585 * fns.c (sweep_weak_table):
4586 * keyboard.c (mark_kboards): Update calls to mark_object.
4587
1d660eca
JR
45882003-07-06 Jason Rumney <jasonr@gnu.org>
4589
4590 * alloc.c (struct ablock): Only include padding when there is some.
4591
618b5ae4
SM
45922003-07-04 Stefan Monnier <monnier@cs.yale.edu>
4593
4594 * alloc.c (ALIGN): Add casts to simplify usage.
4595 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
4596 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
4597 (struct ablock, struct ablocks): New types.
4598 (free_ablock): New global var.
4599 (lisp_align_malloc, lisp_align_free): New functions.
4600 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
4601 (struct float_block): Reorder and add gcmarkbits.
4602 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
4603 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
4604 (init_float, make_float): Use lisp_align_malloc.
4605 (free_float, live_float_p): Don't use `type' any more.
4606 (make_float): Use FLOAT_UNMARK to access to mark bit.
4607 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
4608 Use FLOAT_MARKED_P to access the mark bit.
4609 (pure_alloc): Simplify use of ALIGN.
4610 (mark_object): Use FLOAT_MARK to access the mark bit.
4611 (gc_sweep): Use new macros to access the float's mark bit.
4612 (init_alloc_once): Init free_ablock.
4613
4614 * lisp.h (struct Lisp_Float): Remove unused field `type'.
4615
3ef06d12
SM
46162003-06-27 Stefan Monnier <monnier@cs.yale.edu>
4617
4618 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
4619 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
4620 (allocate_buffer): Move.
4621 (string_bytes): Don't mask markbit of `size_byte'.
4622 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
4623 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
4624 Use the `size' field of buffers (rather than the `name' field) for
4625 the mark bit, as is done for all other vectorlike objects.
4626 Use the new macros to access the mark bit of vectorlike objects.
4627
e81043aa
RS
46282003-06-26 Richard M. Stallman <rms@gnu.org>
4629
4630 * puresize.h (BASE_PURESIZE): Increment base size.
4631
4632 * xdisp.c (fast_find_position): Enable Gerd's new definition.
4633
4634 * xterm.c (xim_initialize): Undo previous change.
4635
2d0834cc
SM
46362003-06-26 Stefan Monnier <monnier@cs.yale.edu>
4637
4638 * alloc.c (survives_gc_p): Simplify.
4639
4640 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
4641
4642 * window.c (Fset_window_dedicated_p): Simplify.
4643 (display_buffer_1): Don't raise the win from which minibuf was entered.
4644 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
4645 (Fminibuffer_selected_window): Simplify.
4646
4647 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
4648
4649 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
4650 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
4651
4652 * insdel.c (check_markers, adjust_markers_for_delete)
4653 (adjust_markers_for_insert, adjust_markers_for_replace)
4654 (prepare_to_modify_buffer, RESTORE_VALUE):
4655 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
4656 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
4657 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
4658 * alloc.c (Fmake_marker, free_marker, gc_sweep):
4659 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
4660 * editfns.c (save_excursion_restore, transpose_markers):
4661 * window.c (delete_window):
4662 * xdisp.c (message_dolog): Update for new types.
4663
d54ae3d8
JD
46642003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4665
a5f696ac
JD
4666 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
4667 (realize_default_face): Use default_face_done_p for the force_p
2d0834cc 4668 argument to set_lface_from_font_name. Set default_face_done_p to one.
a5f696ac
JD
4669
4670 * frame.c (make_frame): Initialize default_face_done_p.
4671
4672 * frame.h (struct frame): Add default_face_done_p.
4673
d54ae3d8
JD
4674 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
4675 will be defined.
4676
2336fe58
SM
46772003-06-25 Stefan Monnier <monnier@cs.yale.edu>
4678
4679 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
4680 Initialize the new field `gcmarkbit'.
4681 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
4682 (mark_interval_tree): Don't mark the tree separately from the nodes.
4683 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
4684 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
4685 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
4686
4687 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
4688 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
4689 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
4690 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
4691 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
4692
bcea31c2
DL
46932003-06-24 Dave Love <fx@gnu.org>
4694
4695 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
4696
4697 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
4698 from gnulib.
4699
2601f59e
RS
47002003-06-21 Richard M. Stallman <rms@gnu.org>
4701
4702 * fileio.c (Fwrite_region): Alternate messages
4703 for append and partial write.
4704
4705 * keyboard.c (read_key_sequence): When converting upcase fn key to
4706 downcase, update fkey and keytran so `backspace' gets translated.
4707
4708 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
4709
4710 * process.c (wait_reading_process_input): Don't signal SIGIO
4711 in batch mode.
4712
b5d2c621
KH
47132003-06-17 Kenichi Handa <handa@m17n.org>
4714
4715 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
4716 composite.h.
4717
4718 * xselect.c: Don't include charset.h, coding.h, composite.h.
4719 (Qforeign_selection): New variable.
4720 (syms_of_xselect): Intern and static it.
4721 (selection_data_to_lisp_data): Return a unibyte string made from
4722 data with `foreign-selection' text property.
4723
6793bc63
SM
47242003-06-15 Stefan Monnier <monnier@cs.yale.edu>
4725
4726 * termhooks.h (EVENT_INIT): New macro.
4727
4728 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
4729
4730 * alloc.c (mark_kboards): Move to keyboard.c.
4731
4732 * keyboard.c (record_asynch_buffer_change, read_avail_input):
4733 * xterm.c (x_dispatch_event):
4734 * xmenu.c (find_and_call_menu_selection):
4735 * xdisp.c (handle_tool_bar_click):
4736 * w32menu.c (menubar_selection_callback):
4737 * sysdep.c (kbd_input_ast, read_input_waiting):
4738 * msdos.c (dos_rawgetc):
4739 * macterm.c (mac_check_for_quit_char):
4740 * macmenu.c (menubar_selection_callback):
4741 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
4742 data to kbd_buffer_store_event.
4743
b3ea810c
KS
47442003-06-15 Kim F. Storm <storm@cua.dk>
4745
4746 * xdisp.c (x_fix_overlapping_area): Always use area relative X
6793bc63 4747 to fix redisplay problem with tall characters (such as \e,AC\e(B).
b3ea810c 4748
b8f75eda
KG
47492003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
4750
4751 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
4752
ba92ce48
KH
47532003-06-12 Kenichi Handa <handa@m17n.org>
4754
4755 * fileio.c (Fwrite_region): Save and restore restriction.
4756
b80263be
DL
47572003-06-12 Dave Love <fx@gnu.org>
4758
4759 * alloca.c (alloca): Declare arg as size_t.
4760
6793bc63
SM
4761 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
4762 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
b80263be 4763
b23c0a83
DL
47642003-06-11 Dave Love <fx@gnu.org>
4765
4766 * search.c (shrink_regexp_cache): Use xrealloc.
4767 (syms_of_search): Use xmalloc.
4768
700e47c2
KS
47692003-06-10 Kim F. Storm <storm@cua.dk>
4770
4771 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
4772 Adjust phys_cursor.x to be relative to window box, rather than
4773 text area before checking -- to ensure cursor is redrawn when
4774 exposing window.
4775 Note: This also fixes a similar (older) bug if display margins
4776 are present.
4777
f11aa0b2
KH
47782003-06-06 Kenichi Handa <handa@m17n.org>
4779
4780 * coding.c (encoding_buffer_size): If coding->type is
4781 coding_type_ccl, double magnification on CRLF encoding.
4782
3d143690
JR
47832003-06-06 Jason Rumney <jasonr@gnu.org>
4784
4785 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
4786 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
4787
4788 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
4789 Mac too.
4790
f16205ca
DL
47912003-06-05 Dave Love <fx@gnu.org>
4792
b23c0a83
DL
4793 * strftime.c: Merge changes from gnulib.
4794
f16205ca
DL
4795 * mktime.c (__mktime_internal): Merge changes from gnulib
4796 involving year 69 and dst2.
4797
4798 Changes to merge with gnulib version and be consistent with the
4799 autoconf test:
4800
6793bc63
SM
4801 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
4802 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
f16205ca
DL
4803 [HAVE_LOCALE_H]: Include locale.h.
4804 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
4805
9b87a0bc
KS
48062003-06-05 Kim F. Storm <storm@cua.dk>
4807
4808 * window.c (coordinates_in_window): Convert X and Y to window
4809 relative coordinates inside mode-line and header-line parts.
4810 Convert X and Y to margin area relative coordinates inside left
4811 and right display margin parts.
4812
5a8a15ec
JR
48132003-06-05 Jason Rumney <jasonr@gnu.org>
4814
4815 * w32fns.c (add_system_logical_colors_to_map): New function.
4816 (Fx_open_connection): Use it.
4817
01ed8ff1
SM
48182003-06-04 Stefan Monnier <monnier@cs.yale.edu>
4819
4820 * process.c (allocate_pty): Revert part of the previous patch.
4821 (Faccept_process_output): Simplify.
4822
b427b65d
JR
48232003-06-04 Jason Rumney <jasonr@gnu.org>
4824
4825 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
4826
4827 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
4828 (lispy_mouse_wheel_names): Remove.
4829 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
4830 Always define drag_and_drop_syms.
4831
4832 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
4833 WHEEL_EVENT events.
4834
914a8c47
SM
48352003-06-03 Stefan Monnier <monnier@cs.yale.edu>
4836
01ed8ff1
SM
4837 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
4838
914a8c47
SM
4839 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
4840
adcb132c
JD
48412003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4842
4843 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
4844 menu item label.
4845
be781fa7
RS
48462003-06-03 Richard M. Stallman <rms@gnu.org>
4847
4848 * window.c (Fwindow_edges): Doc fix.
4849 (Fwindow_pixel_edges, Fwindow_inside_edges)
4850 (Fwindow_inside_pixel_edges): New functions.
4851 (syms_of_window): defsubr them.
4852
4853 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
4854 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
4855
914a8c47
SM
48562003-06-02 Stefan Monnier <monnier@cs.yale.edu>
4857
4858 * dispnew.c (Fsit_for): Don't lie about the number of args.
4859
5b07197a
DL
48602003-06-02 Dave Love <fx@gnu.org>
4861
4862 * callproc.c: Use HAVE_FCNTL_H, not USG5.
4863 (syms_of_callproc) <process-environment>: Doc fix.
4864
4865 * doc.c: Use HAVE_FCNTL_H, not USG5.
4866
4867 * xfaces.c (font_rescale_ratio): Fix for K&R.
4868
4869 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
4870
4871 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
4872
4873 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
4874
4875 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
4876 (xg_create_frame_widgets): Use ENCODE_UTF_8.
4877
d7107586 4878 * xterm.c (Qutf_8): Move to coding.c
5b07197a
DL
4879
4880 * xmenu.c (ENCODE_MENU_STRING): New.
4881 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
4882 Use it.
4883
4884 * coding.h (ENCODE_UTF_8): New.
4885 (Qutf_8): Declare.
4886
4887 * coding.c (Qutf_8): New.
4888 (syms_of_coding): Intern it.
4889
4890 * fns.c: Doc fixes.
4891
7335b336
KH
48922003-06-02 Kenichi Handa <handa@m17n.org>
4893
4894 * buffer.c (Fset_buffer_multibyte): Fix previous change.
4895
914a8c47
SM
48962003-06-01 Stefan Monnier <monnier@cs.yale.edu>
4897
4898 * lread.c (openp): Make sure STR is a string.
4899
9862c135
JR
49002003-06-01 David Ponce <david@dponce.com>
4901
4902 * termhooks.h (enum event_kind): Added new WHEEL_EVENT event.
4903 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
4904
4905 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
4906 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
4907 (discard_mouse_events): Discard WHEEL_EVENT events too.
4908 (lispy_wheel_names, wheel_syms): New.
4909 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
4910 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX
4911 defined.
914a8c47 4912 (make_lispy_event): Add WHEEL_EVENT handler.
9862c135
JR
4913
4914 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
4915 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
4916 WHEEL_EVENT events.
4917
f984e73e
JPW
49182003-05-31 John Paul Wallington <jpw@gnu.org>
4919
4920 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
4921 timer are in lisp/emacs-lisp.
4922
1efcd78f
KH
49232003-05-31 Kenichi Handa <handa@m17n.org>
4924
458c8af4
KH
4925 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
4926 region when a buffer is changed to unibyte.
4927
1efcd78f
KH
4928 * charset.h (VALID_LEADING_CODE_P): New macro.
4929 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
4930
778e2804
KH
4931 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
4932 is nonzero, accept multibyte form of eight-bit-control chars.
4933 (decode_composition_emacs_mule): Likewise.
4934 (decode_coding_emacs_mule): Likewise.
4935 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
4936 multibyte form of eight-bit-control chars.
4937
4938 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
4939 (Finsert_file_contents): If coding-system-for-read is bound to
4940 Qauto_save_coding, use the coding system emacs-mule with special
4941 setting for recovering a file.
4942 (choose_write_coding_system): On auto saving, use the coding
4943 system emacs-mule with special setting for auto saving.
4944 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
4945
034060e4
KH
49462003-05-30 Kenichi Handa <handa@m17n.org>
4947
4948 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
4949 properly before calling ccl_driver.
4950
778e2804 4951 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
034060e4
KH
4952
4953 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is
4954 nonzero.
4955 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
4956 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
4957
595f5aa5
GM
49582003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
4959
4960 * xfaces.c (realize_default_face): Do not abort if lface is
4961 non-existent - reverts change from 2003-05-19.
4962
103e0180
KH
49632003-05-29 Kenichi Handa <handa@m17n.org>
4964
4965 * coding.c (decode_coding_iso2022): Pay attention to the byte
4966 sequence of CTEXT extended segment, and retain those bytes as is.
4967
49682003-05-28 Kenichi Handa <handa@m17n.org>
4969
4970 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjusted for the name change
4971 of CODING_REPLACEMENT_CHARACTER.
4972 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
4973 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
4974 check this flag on encoding.
4975 (encode_coding_sjis_big5): Check
4976 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
4977 (Fset_terminal_coding_system_internal): Set
4978 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
4979 instead of setting CODING_FLAG_ISO_SAFE flag in
4980 terminal_coding.flags.
4981
4982 * coding.h (CODING_REPLACEMENT_CHARACTER): Renamed from
4983 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
4984 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
4985
ff6a3bfb 49862003-05-28 Richard M. Stallman <rms@gnu.org>
45f266dc 4987
ff6a3bfb
RS
4988 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
4989
4990 * eval.c (unbind_to): Move init of this_binding to separate statement.
45f266dc 4991
1963c428
KS
49922003-05-28 Kim F. Storm <storm@cua.dk>
4993
4994 * xdisp.c (expose_window): Fix error in calculation of
4995 window relative coordinates of area to redisplay.
4996
2b5d4601
JR
49972003-05-27 Jason Rumney <jasonr@gnu.org>
4998
4999 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
5000
1c64a4a2
JB
50012003-05-27 David Ponce <david@dponce.com>
5002
5003 Handle W32 mouse wheel events as mouse click events, like in X.
5004
5005 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
5006 MOUSE_WHEEL_EVENT anymore.
5007
5008 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
5009 Scrolling down/up the mouse wheel is respectively mapped to mouse
5010 button 4 and 5.
5011 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
5012 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
5013 WM_MOUSEWHEEL events.
5014
2d031b89
AS
50152003-05-27 Andreas Schwab <schwab@suse.de>
5016
20464fdf
AS
5017 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
5018
2d031b89
AS
5019 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
5020 partially visible line.
5021
5022 * alloc.c (Fgarbage_collect): Fix last change.
5023
97bc76d4
JPW
50242003-05-26 John Paul Wallington <jpw@gnu.org>
5025
5026 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
5027
56613f06
SM
50282003-05-25 Stefan Monnier <monnier@cs.yale.edu>
5029
5030 * window.c (Fset_window_buffer): Add type of `keep_margins'.
5031 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
5032
5033 * window.h (window_box_text_cols): Declare.
5034
5035 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
5036 (x_draw_vertical_border): Remove unused var `f'.
5037
5038 * xfaces.c (build_scalable_font_name): Remove `unused var
5039 pixel_size' warning.
5040
5041 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
5042
5043 * unexelf.c (unexec): Remove `unused var n' warning.
5044
5045 * strftime.c (my_strftime_localtime_r): Remove `defined but
5046 unused' warning.
5047
5048 * process.c (allocate_pty): Remove `unused var stb' and
5049 `cp might be used uninitialized' warnings.
5050
5051 * dispnew.c (mode_line_string): Remove unused var `f'.
5052
5053 * coding.c (find_safe_codings): Remove unused var `i'.
5054
5055 * bytecode.c (Fbyte_code): Remove `unused val' warning.
5056
5057 * buffer.c (Fkill_buffer): Remove unused var `list'.
5058
5059 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
5060
93421a1f
JD
50612003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5062
5063 * frame.c (make_frame): Condition want_fullscreen with
5064 HAVE_WINDOW_SYSTEM.
5065
c4b8aebc
JB
50662003-05-25 Juanma Barranquero <lektu@terra.es>
5067
5068 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
5069 (Fwindow_scroll_bars): Fix typo in docstring.
5070
0416870b
KS
50712003-05-24 Kim F. Storm <storm@cua.dk>
5072
5073 The following changes serve several purposes:
5074
5075 1) Swap the position of fringes and display margins in windows, i.e.
5076 the fringes are now displayed between the margins and the text area
5077 (by default).
5078
5079 2) Allow fringe and scroll bar parameters to be set per-buffer and
5080 per-window (like display margins). Such settings are now stored
5081 in window configurations, preserved when frames are resized, and
9018a88e 5082 copied when windows are split vertically or horizontally.
0416870b
KS
5083 Several bugs related to display margins have been fixed.
5084
5085 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
9018a88e 5086
0416870b
KS
5087 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
5088 rather than FRAME_WIDTH (FRAME_FONT (f)).
5089
5090 5) Introduce a consistent naming of variables, members and macros
5091 depending on whether their value is measured in pixels or in
5092 canonical columns/lines. Pixel dimensions are named *_width and
5093 *_height, while canonical columns/lines are named *_cols and
5094 *_lines. Pixel positions are named *_x and *_y, while column/line
5095 positions are named *_col and *_line.
5096
5097 6) Consolidate more of the X, W32, and MAC gui code by moving
5098 common data into struct frame, and generalize it for the non-gui
5099 case by using suitable defaults.
5100
5101 7) Cleanup and consolidate the macros controlling frame and window
5102 layout into frame.h and window.h, and generalize the use of the
5103 various window_box_* functions (enhanced to handle the new fringe
5104 position and the per-window fringe and scroll bar settings).
5105
5106 * frame.h (struct frame): Rename members height to text_lines,
5107 width to text_cols, window_height to total_lines, window_width to
5108 total_cols, new_height to new_text_lines, new_width to
5109 new_text_cols. All uses changed.
5110 (struct frame): New members which consolidate common members of
5111 x_output, w32_output, and mac_output structures: left_pos,
5112 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
5113 win_gravity, size_hint_flags, border_width, internal_border_width,
5114 line_height, fringe_cols, left_fringe_width, right_fringe_width,
5115 want_fullscreen. All uses changed.
5116 (struct frame): New member column_width contaning the canonical
5117 column width, analogue to line_height. All uses changed.
5118 (struct frame): Rename members scroll_bar_pixel_width to
5119 config_scroll_bar_width, and scroll_bar_cols to
5120 config_scroll_bar_cols. All uses changed.
5121 (struct frame): New member scroll_bar_actual_width which
5122 consolidates and renames the vertical_scroll_bar_extra member of
5123 x_output, w32_output, and mac_output structures. All uses changed.
5124 (FRAME_PIXEL_HEIGHT): Renamed from PIXEL_HEIGHT and moved
5125 from x/w32/macterm.h files. All uses changed. Also change code
5126 which referred to f->output_data...->pixel_height.
5127 (FRAME_PIXEL_WIDTH): Renamed from PIXEL_WIDTH and moved
f63fd14e 5128 from x/w32/macterm.h files. All uses changed. Also change code
0416870b
KS
5129 which referred to f->output_data...->pixel_width.
5130 (FRAME_LINES): Renamed from FRAME_HEIGHT. All uses changed.
5131 Also change code which referred to f->height.
5132 (FRAME_COLS): Renamed from FRAME_WIDTH. All uses changed.
5133 Also change code which referred to f->width.
5134 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
5135 to update new_text_lines and new_text_cols members directly.
5136 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Renamed from
5137 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
5138 (FRAME_CONFIG_SCROLL_BAR_COLS): Renamed from
5139 FRAME_SCROLL_BAR_COLS. All uses changed.
5140 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
5141 Renamed from FRAME_LEFT_SCROLL_BAR_WIDTH and
5142 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
5143 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
5144 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
5145 (FRAME_TOTAL_COLS): Renamed from FRAME_WINDOW_WIDTH.
5146 (SET_FRAME_COLS): Renamed from SET_FRAME_WIDTH.
5147 (FRAME_TOTAL_COLS_ARG): Renamed from FRAME_WINDOW_WIDTH_ARG.
5148 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
5149 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
5150 (FRAME_LINE_HEIGHT): Renamed from CANON_Y_UNIT. Unconditionally
5151 return line_height member (it now has proper value also for
5152 non-window frames).
5153 (FRAME_COLUMN_WIDTH): Renamed from CANON_X_UNIT. Unconditionally
5154 return new column_width member (rather than the default font width).
5155 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
5156 (FRAME_RIGHT_FRINGE_WIDTH): Renamed from FRAME_X_... and moved
5157 from x/w32/macterm.h files. Unconditionally return corresponding
5158 member of frame structure (they now have proper values also for
5159 non-window frames).
5160 (FRAME_TOTAL_FRINGE_WIDTH): Renamed from FRAME_FRINGE_WIDTH.
5161 Calculate return value from left and right widths.
5162 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
5163 internal_border_width member (has proper value for non-window frame).
5164 (FRAME_PIXEL_X_FROM_CANON_X): Renamed from PIXEL_X_FROM_CANON_X.
5165 (FRAME_PIXEL_Y_FROM_CANON_Y): Renamed from PIXEL_Y_FROM_CANON_Y.
5166 (FRAME_CANON_X_FROM_PIXEL_X): Renamed from CANON_X_FROM_PIXEL_X.
5167 (FRAME_CANON_Y_FROM_PIXEL_Y): Renamed from CANON_Y_FROM_PIXEL_Y.
5168 (FRAME_LINE_TO_PIXEL_Y): Renamed from CHAR_TO_PIXEL_ROW,
5169 consolidated from xterm.h, macterm.h, and w32term.h.
5170 (FRAME_COL_TO_PIXEL_X): Renamed from CHAR_TO_PIXEL_COL,
5171 consolidated from xterm.h, macterm.h, and w32term.h.
5172 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Renamed from
5173 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
5174 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Renamed from
5175 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
5176 (FRAME_PIXEL_Y_TO_LINE): Renamed from PIXEL_TO_CHAR_ROW
5177 consolidated from x/mac/w32term.h.
5178 (FRAME_PIXEL_X_TO_COL): Renamed from PIXEL_TO_CHAR_COL
5179 consolidated from x/mac/w32term.h.
5180 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Renamed from
5181 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
5182 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Renamed from
5183 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
5184
5185 * window.h (struct window): Rename members left to left_col,
5186 top to top_line, height to total_lines, width to total_cols,
5187 left_margin_width to left_margin_cols, right_margin_width to
5188 right_margin_cols, orig_height to orig_total_lines, orig_top to
5189 orig_top_line. All uses changed.
5190 (struct window): New members left_fringe_width, right_fringe_width,
5191 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
5192 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
5193 New macros primarily used to simplify other macros.
5194 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
5195 referred to XINT (w->width).
5196 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
5197 referred to XINT (w->height).
5198 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
5199 referred to XINT (w->width) * canon_x_unit.
5200 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
5201 referred to XINT (w->height) * canon_y_unit.
5202 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
5203 referred to XINT (w->left).
5204 (WINDOW_RIGHT_EDGE_COL): Renamed from WINDOW_RIGHT_EDGE. Change
5205 all uses and code that referred to XINT (w->left) + XINT (w->width).
5206 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
5207 referred to XINT (w->top).
5208 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
5209 referred to XINT (w->top) + XINT (w->height).
5210 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
5211 referred to XINT (w->left) * canon_x_unit.
5212 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
5213 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
5214 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
5215 referred to XINT (w->top) * canon_y_unit.
5216 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
5217 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
5218 (WINDOW_LEFTMOST_P): New macro.
5219 (WINDOW_BOX_LEFT_EDGE_COL): Renamed from WINDOW_LEFT_MARGIN.
5220 All uses changed.
5221 (WINDOW_BOX_RIGHT_EDGE_COL): Renamed from WINDOW_RIGHT_MARGIN.
5222 All uses changed.
5223 (WINDOW_BOX_LEFT_EDGE_X): Renamed from
5224 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
5225 Do not exclude left fringe width.
5226 (WINDOW_BOX_RIGHT_EDGE_X): Renamed from
5227 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
5228 Do not exclude fringe widths.
5229 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
5230 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
5231 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
5232 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
5233 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
5234 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
5235 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
5236 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
5237 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
5238 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
5239 New macros. Change code which referenced corresponding
5240 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
5241 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
5242 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
5243 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
5244 allow per-window scroll-bar settings.
5245 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
5246 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
5247 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
5248 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
5249 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
5250 FRAME_SCROLL_BAR_WIDTH.
5251 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
9018a88e 5252 (WINDOW_SCROLL_BAR_AREA_X): New macros.
0416870b
KS
5253 (WINDOW_HEADER_LINE_HEIGHT): Renamed from
5254 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
5255 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Renamed from
5256 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
5257 (WINDOW_BOX_TEXT_HEIGHT): Renamed from
5258 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
5259 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
5260 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
5261 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Moved here from dispextern.h.
5262 (WINDOW_LEFT_MARGIN_WIDTH): Renamed from
5263 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
5264 (WINDOW_RIGHT_MARGIN_WIDTH): Renamed from
5265 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
5266 (window_from_coordinates): Update prototype.
5267 (Fset_window_buffer): Update EXFUN.
5268 (set_window_buffer): Update prototype.
9018a88e 5269
0416870b 5270 * dispextern.h (struct glyph_matrix): Rename members window_left_x
9018a88e 5271 to window_left_col, window_top_y to window_top_line. All uses
0416870b
KS
5272 changed.
5273 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
5274 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
5275 internal_border_width is now set to 0 for non-window frames.
5276 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
5277 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
5278 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
5279 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
5280 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
5281 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
5282 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
5283 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
5284 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
9018a88e 5285 Move to window.h and renamed [see window.h changes].
0416870b
KS
5286 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
5287 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
9018a88e
SM
5288 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
5289 Use WINDOW_TOTAL_LINES.
0416870b
KS
5290 (frame_update_line_height): Remove prototype.
5291
5292 * buffer.h (struct buffer): Rename members measured in columns:
5293 left_margin_width to left_margin_cols, right_margin_width to
5294 right_margin_cols. All uses changed.
5295 New members left_fringe_width, right_fringe_width,
5296 fringes_outside_margins for per-buffer fringe settings.
5297 New members scroll_bar_width and vertical_scroll_bar_type for
5298 per-buffer scroll bar settings.
5299
5300 * buffer.c (init_buffer_once): Set buffer_defaults and
5301 buffer_local_flags for new buffer-local variables
5302 left_fringe_width, right_fringe_width, fringes_outside_margins,
5303 scroll_bar_width, and vertical_scroll_bar_type.
5304 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
5305 default-* variables for them.
5306
5307 * dispnew.c: Make (many) trivial substitutions for renamed and
5308 new macros in dispextern.h, frame.h and window.h.
5309 (mode_line_string): No need to adjust width for mode lines, as it
5310 is already adjusted by the caller.
5311 (marginal_area_string): Handle fringes inside/outside margins.
9018a88e 5312
0416870b
KS
5313 * frame.c: Make (many) trivial substitutions for renamed and
5314 new macros in dispextern.h, frame.h and window.h.
5315 (make_frame): Initialize left_fringe_width, right_fringe_width,
5316 fringe_cols, scroll_bar_actual_width, border_width,
5317 internal_border_width, column_width, line_height, x_pixels_diff,
5318 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
5319 members with values suitable for a non-window frames.
5320
5321 * gtkutil.c: Make (many) trivial substitutions for renamed and
5322 new macros in dispextern.h, frame.h and window.h.
9018a88e 5323
0416870b
KS
5324 * indent.c: Make (few) trivial substitutions for renamed and
5325 new macros in dispextern.h, frame.h and window.h.
5326
5327 * keyboard.c: Make (many) trivial substitutions for renamed and
5328 new macros in dispextern.h, frame.h and window.h.
5329 (make_lispy_event): Use window positions returned from
5330 window_from_coordinates when constructing the lisp event for
5331 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
5332 (incorrect) values locally.
5333 (make_lispy_movement): Use window positions returned from
5334 window_from_coordinates when constructing the lisp event, rather
5335 than calculating (incorrect) values locally.
5336
5337 * scroll.c: Make (some) trivial substitutions for renamed and
5338 new macros in dispextern.h, frame.h and window.h.
5339
5340 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
5341 scroll-bars.
5342
5343 * sysdep.c: Make (few) trivial substitutions for renamed and
5344 new macros in dispextern.h, frame.h and window.h.
5345
5346 * term.c: Make (some) trivial substitutions for renamed and
5347 new macros in dispextern.h, frame.h and window.h.
5348
5349 * widget.c: Make (few) trivial substitutions for renamed and
5350 new macros in dispextern.h, frame.h and window.h.
5351
5352 * window.c: Make (many) trivial substitutions for renamed and
5353 new macros in dispextern.h, frame.h and window.h.
5354 (make_window): Initialize new members
5355 left_margin_cols, right_margin_cols, left_fringe_width,
5356 right_fringe_width, fringes_outside_margins, scroll_bar_width,
5357 and vertical_scroll_bar_type.
5358 (coordinates_in_window): Adapted to new fringe/margin positions
9018a88e 5359 and per-window fringes and scroll-bars.
0416870b 5360 Fix bug related to incorrectly adjusting coordinates by
9018a88e 5361 frame's internal_border_width (the effect normally negible since
0416870b
KS
5362 the internal_border_width is typically 0 or 1 pixel, but very
5363 noticeable for an internal_border_width of e.g. 25 pixels).
5364 Upon successful return (other than ON_NOTHING), the coordinates
5365 are now always properly converted to window relative for the
5366 given display element.
5367 (window_from_coordinates): Add new parameters wx and wy to
5368 return the window relative x and y position in the returned
5369 window and part. A null arg means, don't return the position.
5370 All callers changed.
5371 (adjust_window_margins): New function which may reduce the width
5372 of the display margins if a window's text area is too small after
5373 resizing or splitting windows.
5374 (size_window): Fix bug that did not account for display margin
5375 widths when checking the minimum width of a window; use
5376 adjust_window_margins.
5377 (set_window_buffer): Call Fset_window_fringes and
5378 Fset_window_scroll_bars to setup per-window elements.
5379 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
5380 existing display margin, fringe widths, and scroll bar settings
9018a88e
SM
5381 (e.g. after splitting a window or resizing the frame).
5382 All callers changed.
0416870b
KS
5383 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
5384 (Fsplit_window): Duplicate original window's display margin,
5385 fringe, and scroll-bar settings; then call Fset_window_buffer with
5386 KEEP_MARGINS non-nil. This fixes a bug which caused a split
5387 window to only preserve the display margins in one of the windows.
c4b8aebc 5388 When splitting horizontally, call adjust_window_margins on both
0416870b 5389 windows to ensure that the text area of the new windows is non too
f9711de4 5390 narrow. This fixes a bug which could cause Emacs to trap if the
0416870b
KS
5391 width of the split window was less than the width of the display
5392 margins.
9018a88e
SM
5393 (window_box_text_cols): Renamed from window_internal_width.
5394 All uses changed. Adapt to per-window fringes and scroll bars.
0416870b
KS
5395 Fix bug that caused vertical separator to be subtracted also on
5396 window frames. Fix another bug that did not reduce the returned
5397 value by the columns used for display margins.
5398 (window_scroll_line_based): Fix bug related to scrolling too much
5399 when display margins are present (implicitly fixed by the fix to
5400 window_box_text_cols).
5401 (scroll_left, scroll_right): Fix bug related to scrolling too far
5402 by default when display margins are present (implicitly fixed by
5403 the fix to window_box_text_cols).
5404 (struct saved_window): Rename members left to left_col, top to
5405 top_line, width to total_cols, height to total_lines, orig_top to
5406 orig_top_line, orig_height to orig_total_lines. All uses changed.
5407 New members left_margin_cols, right_margin_cols,
5408 left_fringe_width, right_fringe_width, fringes_outside_margins,
5409 scroll_bar_width, and vertical_scroll_bar_type for saving
5410 per-window display elements.
5411 (Fset_window_configuration): Restore display margins, fringes,
5412 and scroll bar settings. This fixes a bug which caused display
5413 margins to be discarded when saving and restoring a window
5414 configuration.
5415 (save_window_save): Save display margins, fringes, and scroll bar
5416 settings. This fixes a bug which caused display margins to be
5417 discarded when saving and restoring a window configuration.
5418 (Fset_window_margins): Do nothing if display margins are not
5419 really changed. Otherwise, call adjust_window_margins to ensure
5420 the text area doesn't get too narrow. This fixes a bug which
f9711de4 5421 could cause Emacs to trap if setting display margins wider than
0416870b
KS
5422 the width of the window.
5423 (Fset_window_fringes): New defun to allow user to specifically set
5424 this window's fringe widths and position vs. display margins.
5425 (Fwindow_fringes): New defun to return window's actual fringe
5426 settings.
5427 (Fset_window_scroll_bars): New defun to allow user to specifically
5428 set this window's scroll bar width and position.
5429 (Fwindow_scroll_bars): New defun to return window's actual scroll
5430 bar settings.
5431 (compare_window_configurations): Also compare display margins,
5432 fringes, and scroll bar settings.
5433 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
5434
5435 * xdisp.c: Make (many) trivial substitutions for renamed and
5436 new macros in dispextern.h, frame.h and window.h.
5437 (window_box_width): Adapt to per-window fringes and scroll bars,
f63fd14e 5438 and new fringe vs. display margin position. Note that returned
0416870b
KS
5439 value is no longer guaranteed to be a whole multiple of the frame
5440 column width, since per-window fringes may now be any width.
5441 (window_box_left_offset): New function like window_box_left, but
5442 value is relative to left border of window (rather than frame).
5443 (window_box_right_offset): New function like window_box_right,
5444 but value is relative to left border of window.
5445 (window_box_left): Adapt to per-window fringes and scroll bars,
5446 and new fringe vs. display margin position. Simplify by using
5447 WINDOW_LEFT_EDGE_X and window_box_left_offset.
5448 (window_box): Allow null args for unnecessary return values;
5449 change/simplify relevant callers.
5450 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
9018a88e
SM
5451 and new fringe vs. display margin position.
5452 Use window_box_left_offset and window_box_right_offset
0416870b 5453 (get_glyph_string_clip_rect): Adapt to per-window fringes and
9018a88e
SM
5454 scroll bars, and new fringe vs. display margin position.
5455 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
0416870b
KS
5456 (draw_fringe_bitmap): Rework to handle per-window fringes and new
5457 fringe vs. display margin position.
5458 (hscroll_window_tree): Use window_box_width instead of window_box.
a64387ee
JB
5459 (redisplay_window): Adapt to per-window scroll bars.
5460 (draw_glyphs): Rework to handle per-window fringes and scroll
9018a88e
SM
5461 bars, and new fringe vs. display margin position.
5462 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
a64387ee 5463 (x_clear_end_of_line): Adapt to per-window fringes and scroll
0416870b
KS
5464 bars, and new fringe vs. display margin position. Fix bug which
5465 increased total width of full_width rows by width of scroll bars
5466 although window's total width already includes that.
5467 (x_fix_overlapping_area): Simplify using window_box_left_offset.
5468 (expose_area): Simplify using window_box_left_offset.
5469 (x_draw_vertical_border): Handle per-window scroll bar settings,
5470 mixing windows with left, right and no scroll bars.
5471
5472 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
5473 where it's used in x_list_fonts (for clarity).
5474 (frame_update_line_height): Remove unused function; functionality
5475 is now done directly when setting the default font in x_set_font.
5476
5477 * xfns.c: Make (many) trivial substitutions for renamed and
5478 new macros in dispextern.h, frame.h and window.h.
5479
5480 * xmenu.c: Make (some) trivial substitutions for renamed and
5481 new macros in dispextern.h, frame.h and window.h.
5482
5483 * xterm.h (struct x_output): Move members left_pos, top_pos,
5484 border_width, pixel_height, pixel_width, line_height,
5485 internal_border_width, vertical_scroll_bar_extra,
5486 left_fringe_width, right_fringe_width, fringe_cols,
5487 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
5488 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
5489 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
5490 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
5491 (PIXEL_WIDTH, PIXEL_HEIGHT)
5492 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
5493 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to
5494 frame.h and renamed [see frame.h changes].
5495 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
5496 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
5497 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h
5498 and renamed [see frame.h changes].
9018a88e 5499
0416870b
KS
5500 * xterm.c: Make (several) trivial substitutions for renamed and
5501 new macros in dispextern.h, frame.h and window.h.
5502 (x_draw_glyph_string_box): Adapt to per-window fringes and
5503 scroll-bars.
5504 (scroll_run): Adapt to new fringe position.
5505 (glyph_rect): Use window coordinates returned from
5506 window_from_coordinates rather than frame_to_window_pixel_xy.
5507 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
5508 scroll-bars.
5509 (handle_one_xevent): Simplify a USE_GTK conditional.
5510 (x_clip_to_row): Remove superfluous whole_line_p arg and code
5511 (fringes are now inside margins, i.e. always in the clipping area).
5512 All callers changed.
5513 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
5514 directly, then call compute_fringe_widths. Don't call
5515 frame_update_line_height.
5516
5517 * w32term.h (struct w32_output): Move members left_pos, top_pos,
5518 border_width, pixel_height, pixel_width, line_height,
5519 internal_border_width, vertical_scroll_bar_extra,
5520 left_fringe_width, right_fringe_width, fringe_cols,
5521 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
5522 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
5523 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
5524 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
5525 (PIXEL_WIDTH, PIXEL_HEIGHT)
5526 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
5527 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to
5528 frame.h and renamed [see frame.h changes].
5529 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
5530 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
5531 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h
5532 and renamed [see frame.h changes].
9018a88e 5533
0416870b
KS
5534 * w32term.c: Make (several) trivial substitutions for renamed and
5535 new macros in dispextern.h, frame.h and window.h.
5536 (x_draw_glyph_string_box): Adapt to per-window fringes and
5537 scroll-bars.
5538 (glyph_rect): Use window coordinates returned from
5539 window_from_coordinates rather than frame_to_window_pixel_xy.
5540 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
5541 scroll-bars.
5542 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
5543 (fringes are now inside margins, i.e. always in the clipping area).
5544 All callers changed.
5545 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
5546 directly, then call compute_fringe_widths. Don't call
5547 frame_update_line_height.
5548
5549 * w32console.c: Make (few) trivial substitutions for renamed and
5550 new macros in dispextern.h, frame.h and window.h.
5551
5552 * w32fns.c: Make (many) trivial substitutions for renamed and
5553 new macros in dispextern.h, frame.h and window.h.
5554
5555 * w32menu.c: Make (few) trivial substitutions for renamed and
5556 new macros in dispextern.h, frame.h and window.h.
5557
5558 * macterm.h (struct mac_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, 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 * macterm.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 (x_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 * macfns.c: Make (several) trivial substitutions for renamed and
5591 new macros in dispextern.h, frame.h and window.h.
9018a88e 5592 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
0416870b
KS
5593
5594 * macmenu.c: Make (few) trivial substitutions for renamed and
5595 new macros in dispextern.h, frame.h and window.h.
5596
5597 * msdos.h (struct x_output): Remove members left_pos, top_pos,
5598 and line_height, and use corresponding new members in struct
5599 frame. All uses changed.
5600 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
5601 superseeded by corresponding macros in frame.h.
5602
5603 * msdos.c: Make (several) trivial substitutions for renamed and
5604 new macros in dispextern.h, frame.h and window.h.
5605 (IT_note_mouse_highlight): Use updated window coordinates returned
9018a88e 5606 by window_from_coordinates, rather than adjusting them locally.
0416870b
KS
5607 (internal_terminal_init): No need to initialize line_height here;
5608 it now defaults to 1.
5609
9018a88e
SM
56102003-05-24 Stefan Monnier <monnier@cs.yale.edu>
5611
5612 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
5613 dropping `down' events.
5614
016bd3c0
AS
56152003-05-24 Andreas Schwab <schwab@suse.de>
5616
5617 * coding.c (find_safe_codings): Fix last change.
5618
4dacadcc
TTN
56192003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
5620
5621 * xfns.c (x_window): Fix typo from 2003-05-21 change.
5622
319830ce
SM
56232003-05-23 Stefan Monnier <monnier@cs.yale.edu>
5624
9018a88e
SM
5625 * xdisp.c (display_mode_element): Increase max depth.
5626 Simplify the error handling code. Use a different error string
5627 for the case where we hit the depth limit.
5628
319830ce
SM
5629 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
5630
5631 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
5632
56332003-05-21 Stefan Monnier <monnier@cs.yale.edu>
5634
5635 * intervals.c (get_local_map): Don't get char-property of previous
5636 point any more: get_pos_property already does it and better.
5637
c67de8ba
DL
56382003-05-21 Dave Love <fx@gnu.org>
5639
5640 [Merged from unicode branch.]
5641
5642 * xfns.c (x_window, x_window): Use use_xim.
5643
5644 * xterm.c (use_xim): Initialize.
5645 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
5646 (x_term_init): Maybe set use_xim.
5647
5648 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
5649
edd3ff1d
JR
56502003-05-21 Jason Rumney <jasonr@gnu.org>
5651
5652 * unexw32.c (_start): Remove _fmode initialization.
5653
5654 * emacs.c (main) [WINDOWSNT]: Move it here.
5655
463f55ee
DL
56562003-05-20 Dave Love <fx@gnu.org>
5657
5658 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
5659
af253914
RS
56602003-05-19 Richard M. Stallman <rms@gnu.org>
5661
5662 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
5663 as value for QCfont attribute.
5664 (realize_default_face): lface should already exist; crash if not.
5665 Specify 0 for FORCE_P when calling set_lface_from_font_name.
5666
5667 * frame.c (Fignore_event): Doc fix.
5668
1d211019
KH
56692003-05-19 Kenichi Handa <handa@m17n.org>
5670
5671 * coding.c (decode_coding_string): Handle post-read-conversion
5672 even if the coding doesn't require decoding.
5673
4dd68254
RS
56742003-05-18 Richard M. Stallman <rms@gnu.org>
5675
5676 * callproc.c (Fcall_process_region): Doc fix.
5677
14d87dc9
SM
56782003-05-17 Stefan Monnier <monnier@cs.yale.edu>
5679
deca5d96
SM
5680 * lread.c (Fload): Print a message if package is obsolete.
5681
14d87dc9
SM
5682 * window.c (Fselect_window): Add optional `norecord' arg.
5683 (select_window_1): Fold into Fselect_window.
5684 (select_window_norecord): New function.
5685 (temp_output_buffer_show): Use it. Preserve current buffer.
5686
5687 * window.h (Fselect_window): Update declaration.
5688
5689 * window.c (delete_window, Fother_window, Fset_window_configuration):
5690 * minibuf.c (read_minibuf):
5691 * macterm.c (x_new_focus_frame):
5692 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
5693 * callint.c (Fcall_interactively):
5694 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
5695
5696 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
5697
78f52183
DK
56982003-05-17 David Kastrup <dak@gnu.org>
5699
5700 * process.c (read_process_output): Back out change from 2003-03-09.
5701
14d87dc9
SM
57022003-05-17 Stefan Monnier <monnier@cs.yale.edu>
5703
5704 * editfns.c (get_pos_property): Don't assume that `object' = nil.
5705
5706 * textprop.c (text_property_stickiness): New arg `buffer'.
5707
5708 * intervals.h (text_property_stickiness): New arg `buffer'.
5709 (get_pos_property): Declare.
5710
5711 * intervals.c (get_local_map): Use get_pos_property, to obey
5712 stickiness and empty overlays.
5713 (create_root_interval, graft_intervals_into_buffer): Use BEG.
5714 (merge_properties, intervals_equal, merge_properties_sticky):
5715 Use XCAR, XCDR.
5716 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
5717
1fd1cc2f
RS
57182003-05-17 Richard M. Stallman <rms@gnu.org>
5719
4f9f637a
RS
5720 * minibuf.c (read_minibuf): If buffer is empty, record the default
5721 in the history.
5722 (Fminibuffer_complete_word): When deleting the overlap, take account
5723 of its real position.
5724
5725 * fns.c (map_char_table): Fix previous change.
5726
1fd1cc2f
RS
5727 * syntax.c (find_defun_start):
5728 When open_paren_in_column_0_is_defun_start,
5729 return beginning of buffer.
5730
5731 * lisp.h (map_char_table): Declare added arg.
5732
5733 * fns.c (map_char_table): New arg TABLE gets the master table.
5734 All calls changed.
5735 Process default and inheritance, resorting to Faref if necessary.
5736
5737 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
5738 (Faccessible_keymaps): Pass new arg to map_char_table.
5739
5740 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
5741
5742 * casetab.c (set_case_table): Pass new arg to map_char_table.
5743
5744 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
5745
5746 * lisp.h (specbinding_func): New typedef.
5747 (struct specbinding): Use specbinding_func, to put the `volatile'
5748 in the right place.
5749
5750 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
5751 to avoid GCC warning.
14d87dc9 5752
b4bd27c5
RS
57532003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org> (tiny change)
5754
14d87dc9 5755 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
b4bd27c5 5756
35fb885d
SM
57572003-05-15 Stefan Monnier <monnier@cs.yale.edu>
5758
5759 * keyboard.c (apply_modifiers): Don't fill the other cache.
5760
9a274fbd
SM
57612003-05-14 Stefan Monnier <monnier@cs.yale.edu>
5762
c55b5fad
SM
5763 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
5764
9a274fbd
SM
5765 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
5766 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
5767 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
5768 (Fset_window_configuration, Fcurrent_window_configuration)
5769 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
5770 (Fpos_visible_in_window_p, mark_window_cursors_off)
5771 (window_internal_height, window_internal_width, Frecenter)
5772 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
5773 (replace_buffer_in_all_windows, init_window_once, init_window)
5774 (syms_of_window, keys_of_window): Move from lisp.h.
5775 * lisp.h: Move window.c declarations to window.h.
5776
5777 * bytecode.c: Include window.h.
5778 * emacs.c: Include window.h.
5779
14d87dc9 5780 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
9a274fbd
SM
5781 (keyremap): Add `parent' field.
5782 (keyremap_step): Use it. Remove `parent' argument.
5783 (read_key_sequence): Setup and use the new `parent' field.
5784
fd93e331
SM
57852003-05-11 Stefan Monnier <monnier@cs.yale.edu>
5786
5787 * keyboard.c (adjust_point_for_property): Ensure termination.
5788
1c4001a1
SM
57892003-05-10 Stefan Monnier <monnier@cs.yale.edu>
5790
5791 * keyboard.c (follow_key): Remove dead variable `did_meta'.
5792 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
5793 duplicated handling of function-key-map and key-translation-map
5794 in read_key_sequence.
5795 (read_key_sequence): Use them.
5796
5797 * keyboard.c (adjust_point_for_property): Try harder to move point
5798 to the non-sticky end of an invisible property.
5799
5800 * xdisp.c (single_display_prop_intangible_p): Make `space' display
5801 property intangible as well.
5802
780379b1
AS
58032003-05-10 Andreas Schwab <schwab@suse.de>
5804
5805 * xmenu.c (single_menu_item): Change last parameter to void* to
5806 avoid warning.
5807
ca2de342
RS
58082003-05-09 Richard M. Stallman <rms@gnu.org>
5809
5810 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
5811 Bind Qinhibit_modification_hooks to t so there will be no GC.
5812 Rename local `tem' to `save_deactivate_mark'.
5813
5814 * eval.c (specpdl_ptr): Declare volatile.
5815 (unbind_to): Copy the whole binding and decrement specpdl_ptr
5816 before doing the work of unbinding it.
5817
5818 * lisp.h (struct specbinding): Declare elements volatile.
5819 (specpdl_ptr): Declare volatile.
5820
5821 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
5822
5823 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
5824 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
5825
347003be
DL
58262003-05-08 Dave Love <fx@gnu.org>
5827
5828 * coding.c (Vlast_coding_system_used): Doc fix.
5829
5adcec23
JR
58302003-05-07 Jason Rumney <jasonr@gnu.org>
5831
5832 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
5833 when system does not support them.
5834
5fe3b8a4
SM
58352003-05-05 Stefan Monnier <monnier@cs.yale.edu>
5836
5837 * fileio.c (Qwrite_region_annotate_functions): New var.
5838 (build_annotations): Use it to process the global part of the hook.
5839 (syms_of_fileio): Init and staticpro it.
5840
5841 * keyboard.c (safe_run_hooks_error): Display a message instead of
5842 silently ignoring the error.
5843
58442003-05-03 Stefan Monnier <monnier@cs.yale.edu>
5845
5846 * keyboard.c (input_available_signal): Mark static.
5847 (menu_bar_items): Use map_keymap.
5848 (menu_bar_one_keymap): Remove.
5849 (menu_bar_item): Adjust arglist (for use in map_keymap).
5850 Properly hide a second binding when not both are keymaps.
5851
5852 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
5853 (single_keymap_panes): Use it and map_keymap.
5854 (single_menu_item): Use skp as well.
5855
5856 * keymap.h (map_keymap_function_t): New type.
5857 (map_keymap): Declare.
5858
5859 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
5860 (map_keymap_call, Fmap_keymap): New functions.
5861 (syms_of_keymap): Defsubr map-keymap.
5862
4b1b4443
JD
58632003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5864
5865 * gtkutil.c (create_dialog, make_widget_for_menu_item)
5866 (make_menu_item, create_menus, xg_update_menu_item): Don't call
5867 ..._with_mnemonic functions for menu items.
5868
1f816871
KH
58692003-05-01 Kenichi Handa <handa@m17n.org>
5870
5871 * coding.c (coding_system_accept_latin_extra_p): Delete this
5872 function.
5873 (find_safe_codings): Pay attention to
5874 the property tranlsation-table-for-encode of each codings.
5875 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
5876
5ed6ba5b
SM
58772003-05-01 Stefan Monnier <monnier@cs.yale.edu>
5878
5879 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
5880
32c06229
SM
58812003-04-30 Stefan Monnier <monnier@cs.yale.edu>
5882
5883 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
5884
5885 * lisp.h (CHECK): Wrap args in parenthesis.
5886 (specbind): Fix doc: symbol = Qnil is not supported any more.
5887
5888 * bytecode.c (Fbyte_code) <unwind-protect>:
5889 Use Fprogn rather than 0 and Qnil.
5890
5891 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
5892 `double', and `triple' modifiers as well.
5893
ed3c3314
RS
58942003-04-30 Richard M. Stallman <rms@gnu.org>
5895
5896 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
5897
5898 * alloc.c (abort_on_gc): New variable.
5899 (Fgarbage_collect): Abort if abort_on_gc is set.
5900
5901 * lisp.h (abort_on_gc): Add decl.
5902
5903 * eval.c (Fsignal): Clear abort_on_gc.
5904
5905 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
32c06229 5906 Reinit FORMAT_START and END before second scan.
ed3c3314
RS
5907
5908 * xdisp.c (move_it_vertically_backward): Do the final big else
5909 even if nlines is 0.
5910
5911 * xdisp.c (redisplay_internal): Finish the per-frame loop
5912 even if redisplay is suspended by input.
5913
0b325c12
AC
59142003-04-24 Andrew Choi <akochoi@shaw.ca>
5915
5916 * macterm.c (x_list_fonts): Return all fonts that match if
5917 maxnames = -1.
5918
4e837cd0
KH
59192003-04-25 Kenichi Handa <handa@m17n.org>
5920
5921 * syntax.c (skip_chars): Fix previous change.
5922
9af7511a
KH
59232003-04-24 Kenichi Handa <handa@m17n.org>
5924
5925 * syntax.c (skip_chars): Make the code faster by using the common
5926 technique of *p, *stop, and *endp.
5927
e3b2c21f
JD
59282003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5929
5930 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
32c06229 5931 tool_bar_items so GTK tool bar expose callback does not access items
e3b2c21f
JD
5932 being updated.
5933
32c06229
SM
59342003-04-19 Stefan Monnier <monnier@cs.yale.edu>
5935
5936 * eval.c (Fapply): Undo last change and add a comment about why.
5937
c6464167
MB
59382003-04-18 Miles Bader <miles@gnu.org>
5939
5940 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
5941 pickier PARSE_MULTIBYTE_SEQ.
5942
e509f168
SM
59432003-04-17 Stefan Monnier <monnier@cs.yale.edu>
5944
5945 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
5946 Use XCDR, XCAR, CONSP.
5947 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
5948 (Fapply): Remove unnecessary GCPRO.
5949
5950 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
5951
5952 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
5953
5954 * buffer.h: Don't hardcode BEG==1.
5955
5956 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
5957
5ceea398
RS
59582003-04-16 Richard M. Stallman <rms@gnu.org>
5959
5960 * xdisp.c (try_window, try_window_reusing_current_matrix):
5961 When at end of window, set window_end_pos to Z-ZV.
5962
5963 * buffer.c (Foverlay_recenter): Doc fix.
5964
e509f168
SM
59652003-04-14 Stefan Monnier <monnier@cs.yale.edu>
5966
5967 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
5968
d243e605
AC
59692003-04-14 Andrew Choi <akochoi@shaw.ca>
5970
5971 * macterm.c (mac_check_for_quit_char): Don't check more often than
5972 once a second.
5973
6901b111
SM
59742003-04-11 Stefan Monnier <monnier@cs.yale.edu>
5975
5976 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
5977 specially, so that they can't hide an implicit switch-frame event.
5978 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
5979 (head_table): Use switch-frame as event_kind for select-window.
5980 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
5981
5982 * editfns.c (Fformat): Lisp_Object/int mixup.
5983 (format2): Remove unused var numargs.
5984
e301806f 59852003-04-11 Kenichi Handa <handa@m17n.org>
aa95b710 5986
6901b111 5987 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
aa95b710
KH
5988 (Qafter_insert_file_set_coding): New variable.
5989 (syms_of_fileio): Initialize and staticpro it. Delete declaration
5990 for after-insert-file-adjust-coding-function.
5991 (Finsert_file_contents): Call Qafter_insert_file_set_coding
5992 instead of Vafter_insert_file_adjust_coding_function.
5993
38914424
KH
59942003-04-11 Kenichi Handa <handa@m17n.org>
5995
5996 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
5997
5998 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
5999 string. Callers changed.
6000
60012003-04-10 Kenichi Handa <handa@m17n.org>
a288d979 6002
6901b111 6003 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
a288d979 6004 (syms_of_fileio): Declare it as a lisp variable.
6901b111
SM
6005 (Finsert_file_contents):
6006 Call Vafter_insert_file_adjust_coding_function before calling
a288d979
KH
6007 decode-format.
6008
f979dc05
JD
60092003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6010
6011 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
6012 get GtkAdjustment as widget now is a GtkRange.
6013
6014 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
6015 GtkRange to avoid memory leak.
6016
f8c6b4c2 60172003-04-09 Kenichi Handa <handa@m17n.org>
cb98871c 6018
50ebc53d
KH
6019 * xfaces.c (Vface_font_rescale_alist): New variable.
6020 (struct font_name): New member rescale_ratio.
6021 (font_rescale_ratio): New function.
6901b111 6022 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
50ebc53d
KH
6023 (better_font_p): On comparing point sized, pay attention to
6024 recale_ratio member of fonts.
6025 (build_scalable_font_name): Reflect font->rescale_ratio in the
6026 font name.
6901b111 6027 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
50ebc53d 6028
cb98871c
KH
6029 * lread.c (read1): Before calling index, check if the 2nd
6030 arguemnt is in ASCII range.
6031
4773b8ca
RS
60322003-04-08 Richard M. Stallman <rms@gnu.org>
6033
b0ada147
RS
6034 * fileio.c (Ffile_symlink_p): Doc fix.
6035
6036 * editfns.c (Fformat): Translate positions of text properties
6037 in the format string to apply them to the result.
6038
4773b8ca
RS
6039 * fileio.c (Finsert_file_contents): Doc fix.
6040 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
6041
60422003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
6901b111 6043
4773b8ca
RS
6044 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
6045
e8f25745 60462003-04-08 Steven Tamm <steventamm@mac.com>
b0ada147 6047
e8f25745
ST
6048 * mac.c (init_mac_osx_environment): Switch libexec and bin so
6049 that self-contained application finds libexec files.
6050
f8c6b4c2 60512003-04-08 Kenichi Handa <handa@m17n.org>
2310d84c 6052
6901b111
SM
6053 * coding.c (code_convert_region_unwind):
6054 Set Vlast_coding_system_used to the argument.
2310d84c
KH
6055 (code_convert_region): If post-read-conversion function changed
6056 the value of last-coding-sytem, keep the new value in
6057 coding->symbol so that it won't be overridden.
6058 (run_pre_post_conversion_on_str): Likewise.
7c086845
KH
6059 (coding_system_accept_latin_extra_p): New function.
6060 (find_safe_codings): Pay attention to characters registered in
6061 latin-extra-code-table.
2310d84c 6062
39c9a034
TTN
60632003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
6064
6065 * Makefile.in (md5.o): Add missing dependency info.
6066
eb67c5d6
RS
60672003-04-06 Richard M. Stallman <rms@gnu.org>
6068
6069 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
6070
6071 * marker.c (verify_bytepos): New function.
6072
6073 * intervals.c (set_intervals_multibyte_1): When becoming
6074 multibyte, adjust right and left child sizes to a whole set of
6075 characters. If an interval gets zero total-length, delete it.
6076 If an interval consists of just its children, delete one of them.
6077
6078 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
6079 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
39c9a034 6080
eb67c5d6
RS
6081 * alloc.c: (VALIDATE_LISP_STORAGE): Macro deleted.
6082 All calls deleted.
6083 (lisp_malloc): Do the work here directly.
6084
b1f81fc5
JB
60852003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
6086
6087 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
6088 char tables.
6089
60902003-04-04 Kenichi Handa <handa@m17n.org>
aa8b70ae
KH
6091
6092 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
6093 destructively change "%S" to "%s".
6094
774666fb
MB
60952003-04-03 Miles Bader <miles@gnu.org>
6096
6097 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
6098 always set.
6099
19c37f01
DL
61002003-04-01 Dave Love <fx@gnu.org>
6101
6102 * xfns.c (xpm_lookup_color): Grok "opaque".
6103
2f4b24c3
AC
61042003-03-31 Andrew Choi <akochoi@shaw.ca>
6105
6106 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
6107 parent window ID.
6108
6109 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
6110
6111 * macterm.h (struct mac_output): Define x_pixels_diff and
6112 y_pixels_diff.
b1f81fc5 6113
9443fcf6
JB
61142003-03-31 Juanma Barranquero <lektu@terra.es>
6115
6116 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
6117 blockinput.h and files included from it.
6118
e072891b
KS
61192003-03-31 Kim F. Storm <storm@cua.dk>
6120
6121 The following changes consolidates the common code related to
6122 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
6123 files into frame.c.
9443fcf6 6124
e072891b
KS
6125 * frame.c: Include blockinput.h.
6126 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
6127 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
6128 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
6129 related vars here.
6130 (struct frame_parm_table, frame_parms): New table for describing
6131 frame parameters and their associated Q-variable.
6132 The order of the parameters corresponds to the sequence of the
6133 frame_parm_handlers table in redisplay_interface.
6134 (x_fullscreen_move, x_set_frame_parameters)
6135 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
6136 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
6137 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
6138 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
6139 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
6140 Generic functions for processing of frame parameters.
6141 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
6142 (display_x_get_resource, x_get_resource_string): Functions for
6143 generic access to X resources.
6144 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
6145 (x_default_parameter, Fx_parse_geometry): Functions for generic
6146 access to frame parameters.
6901b111
SM
6147 (x_figure_window_size): Generic calculation of frame size.
6148 Fixed to add space needed for tool bar. Also setup size_hint_flags.
e072891b
KS
6149 (syms_of_frame): Intern and staticpro frame parameter variables.
6150 Defvar_lisp Vx_resource_class and Vx_resource_name here.
6151 Defsubr Sx_get_resource and Sx_parse_geometry.
9443fcf6 6152
e072891b
KS
6153 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
6154 parameter related vars defined in frame.c.
6155 (EMACS_CLASS): Define here.
6156 (enum FULLSCREEN_*): Define here.
6157 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
6158 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
6159 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
6160 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
6161 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
6162 (x_set_visibility, x_set_autoraise, x_set_autolower)
6163 (x_set_unsplittable, x_set_vertical_scroll_bars)
6164 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
6165 (x_figure_window_size): Add prototypes.
6166
6167 * dispextern.h (frame_parm_handler): New typedef.
6168 (struct redisplay_interface): New member frame_parm_handlers.
6169 (enum resource_types): Move declaration here.
6170 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
6171 (x_default_parameter): Add prototypes.
6172
6173 * window.c: Remove extern decl for frame parameter vars.
6174 (change_window_heights): New generic function;
6175 replaces x_change_window_heights. All users changed.
6176
6177 * window.h (change_window_heights): Add prototype.
6178
6179 * xfaces.c: Remove extern decl for frame parameter vars.
6180
6181 * xterm.h (EMACS_CLASS): Remove. Use generic define.
6182 (struct w32_display_info): Fix type of xrdb member.
6183 (enum FULLSCREEN_*): Remove.
6184 Remove prototypes for generic functions (in frame.h).
6185
6186 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
6187 parameters now defined in frame.h and frame.c.
f63fd14e 6188 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
6189 (enum x_frame_parms): Remove (bogus, unused enum).
6190 (check_x_display_info): Make non-static (for frame.c).
6191 (struct x_frame_parm_table, x_frame_parms): Remove.
6192 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
6193 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
6194 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
6195 (x_change_window_heights, x_set_autoraise, x_set_autolower)
6196 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
6197 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
6198 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
6199 Remove. Use generic functions instead.
6200 (enum resource_types): Remove.
6201 (x_set_scroll_bar_default_width): New global function (for frame.c).
6202 (Fx_create_frame): Depend on x_figure_window_size to add space for
6203 toolbar and setup size_hint_flags.
6204 (x_frame_parm_handlers): New table for redisplay_interface.
6205 (syms_of_xfns): Don't intern/staticpro removed vars.
9443fcf6 6206
e072891b 6207 * xterm.c: Remove unnecessary extern declarations.
f63fd14e 6208 (x_fullscreen_adjust): Remove. Use generic instead.
e072891b
KS
6209 (x_redisplay_interface): Add x_frame_parm_handlers member.
6210
6211 * w32gui.h (XrmDatabase): New (dummy) typedef.
6212
6213 * w32term.h (EMACS_CLASS): Remove. Use generic define.
6214 (struct w32_display_info): Fix type of xrdb member.
6215 (enum FULLSCREEN_*): Remove.
6216 (x_fullscreen_adjust): Remove prototype.
6217
6218 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
6219 parameters now defined in frame.h and frame.c.
f63fd14e 6220 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
6221 (enum x_frame_parms): Remove (bogus, unused enum).
6222 (check_x_display_info): Make non-static (for frame.c).
6223 (struct x_frame_parm_table, x_frame_parms): Remove.
6224 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
6225 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
6226 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
6227 (x_change_window_heights, x_set_autoraise, x_set_autolower)
6228 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
6229 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
6230 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
6231 Remove. Use generic functions instead.
6232 (enum resource_types): Remove.
6233 (x_set_scroll_bar_default_width): New global function (for frame.c).
6234 (Fx_create_frame): Depend on x_figure_window_size to add space for
6235 toolbar and setup size_hint_flags.
6236 (w32_frame_parm_handlers): New table for redisplay_interface.
6237 (syms_of_w32fns): Don't intern/staticpro removed vars.
9443fcf6 6238
e072891b
KS
6239 * w32term.c: Remove unnecessary extern declarations.
6240 (x_fullscreen_adjust): Remove. Use generic instead.
6241 (x_redisplay_interface): Add w32_frame_parm_handlers member.
6242
6243 * w32reg.c (x_get_string_resource): Use XrmDatabase.
6244
6245 * macgui.h (XrmDatabase): New (dummy) typedef.
6246
6247 * macterm.h (EMACS_CLASS): Remove.
6248 (struct mac_display_info): Add xrdb member.
6249 (struct mac_output): Add want_fullscreen member.
6250
6251 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
6252 parameters now defined in frame.h and frame.c.
f63fd14e 6253 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
6254 (check_x_display_info): Make non-static (for frame.c).
6255 (struct x_frame_parm_table, x_frame_parms): Remove.
6256 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
6257 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
6258 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
6259 (x_change_window_heights, x_set_autoraise, x_set_autolower)
6260 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
6261 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
6262 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
6263 Remove. Use generic functions instead.
6264 (enum resource_types): Remove.
6265 (x_set_scroll_bar_default_width): New global function (for frame.c).
6266 (mac_frame_parm_handlers): New table for redisplay_interface.
6267 (syms_of_macfns): Don't intern/staticpro removed vars.
9443fcf6 6268
e072891b
KS
6269 * macterm.c: Remove unnecessary extern declarations.
6270 (x_redisplay_interface): Add mac_frame_parm_handlers member.
6271
3e6a560b
KS
6272 * Makefile.in (frame.o): Add dependency on blockinput.h and files
6273 included from it (atimer.h and systime.h).
6274
7b7b454e
AS
62752003-03-30 Andreas Schwab <schwab@suse.de>
6276
6277 * xdisp.c (x_insert_glyphs): Fix swapped width and height
6278 parameters for shift_glyphs_for_insert.
6279
6280 * macterm.c (x_redisplay_interface): Add missing entry for
6281 draw_vertical_window_border.
6282
beb402de
KG
62832003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
6284
6285 * fileio.c (Fexpand_file_name): In the no-handler case, after
6286 expanding, look again for a handler and invoke it. This is needed
6287 for filenames like "/foo/../user@host:/bar/../baz" -- the first
6288 expansion produces "/user@host:/bar/../baz" which needs to be
6289 expanded again for the finame result "/user@host:/baz".
6290
b676f356
JD
62912003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6292
6293 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
6294 of area to be redrawn for better performance.
6295
3c671a56
SM
62962003-03-28 Stefan Monnier <monnier@cs.yale.edu>
6297
6298 * xterm.c (take_vertical_position_into_account): Remove.
6299 (xt_action_hook): Call set_vertical_scroll_bar if needed.
6300 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
6301 (xm_scroll_callback, x_create_toolkit_scroll_bar)
6302 (x_set_toolkit_scroll_bar_thumb): Simplify.
6303 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
6304 (XTread_socket): Remove unused var.
6305 (x_make_frame_invisible): Replace goto with else.
6306
6307 * xdisp.c (set_vertical_scroll_bar): New fun.
6308 (redisplay_window): Use it.
6309
84f2e615
RS
63102003-03-26 Richard M. Stallman <rms@gnu.org>
6311
6312 * xdisp.c (update_tool_bar): Recompute tool bar if
6313 update_mode_lines is set. Set w->update_mode_line
6314 only if the tool bar contents actually change.
6315 (update_menu_bar): Undo previous change.
6316
70b6104c
JD
63172003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6318
5fd6f727
JD
6319 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
6320 (xg_frame_set_char_size): Calculate scroll bar width before frame
6321 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
6322 (xg_separator_p): Check for all documented separator types.
6323 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
6324 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
6325
70b6104c
JD
6326 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
6327 so tool bar gets updated.
6328
d9b36d19
SM
63292003-03-26 Stefan Monnier <monnier@cs.yale.edu>
6330
6331 * data.c (store_symval_forwarding): Re-instate part of the code
6332 that was deleted with too much enthusiasm.
6333
63342003-03-25 Stefan Monnier <monnier@cs.yale.edu>
6335
6336 * data.c (store_symval_forwarding): Delete special read-only
6337 hack for type == -1, since we now use ->constant instead.
6338 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
6339
6340 * buffer.c (overlays_in): Declare static.
6341 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
6342 `constant' field rather than the variable's `type' field.
6343
365fa1b3
AC
63442003-03-24 Andrew Choi <akochoi@shaw.ca>
6345
6346 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
6347
6348 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
6349
6350 * fns.c [MAC_OSX]: Do not redefine vector.
6351
6352 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
6353
6354 * macgui.h: Remove definition of No_Cursor.
6355
d9b36d19 6356 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
365fa1b3
AC
6357
6358 * xdisp.c: Define No_Cursor.
6359 (x_write_glyphs, notice_overwritten_cursor)
6360 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
6361 (note_mouse_highlight): Remove Mac-specific code.
6362 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
d9b36d19 6363
c0bcce6f
JPW
63642003-03-24 John Paul Wallington <jpw@gnu.org>
6365
6366 * xdisp.c (redisplay_window): If mini window's buffer is not
6367 empty, then redisplay it like other windows.
6368
a526b96c
KS
63692003-03-23 Kim F. Storm <storm@cua.dk>
6370
6371 * w32term.c (w32_draw_window_cursor): Fix last change.
6372
37ab321e
KH
63732003-03-23 Kenichi Handa <handa@m17n.org>
6374
a526b96c
KS
6375 * alloc.c (make_string_from_bytes, make_specified_string):
6376 Add `const' for the arg CONTENTS.
37ab321e
KH
6377
6378 * lisp.h (make_string_from_bytes, make_specified_string):
6379 Prototypes adjusted.
6380
7863d625
JD
63812003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6382
a526b96c 6383 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
fd4c9408 6384
7863d625
JD
6385 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
6386 (XG_SB_RANGE): New define.
6387
6388 * gtkutil.c (xg_fixed_handle_expose): New function.
6389 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
6390 expose events.
6391 (xg_update_scrollbar_pos): Take two more arguments, left and width
6392 of scroll bar including borders.
6393 Clear left and right part outside scroll bar separately as some
6394 themes have bars that are not an even number of pixels.
d9b36d19 6395 Don't set reallocate_redraws, don't call
7863d625
JD
6396 gdk_window_process_all_updates.
6397 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
6398 so no need to change it. Calculate size and value with XG_SB_RANGE.
6399
d9b36d19
SM
6400 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
6401 Pass left and width of scroll bar including borders to
7863d625
JD
6402 xg_update_scrollbar_pos.
6403
af0ad939
TTN
64042003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
6405
6406 * Makefile.in: Make sure space precedes end-of-line backslashes.
6407
b22139fd
KS
64082003-03-22 Kim F. Storm <storm@cua.dk>
6409
6410 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
6411 Add generic versions here. Remove system specific versions
6412 defined elsewhere.
6413
6414 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
6415 Add prototypes.
6416
6e6410cf
KS
6417 * xterm.h (STORE_NATIVE_RECT): New macro.
6418
5c9cc435
KS
64192003-03-21 Kim F. Storm <storm@cua.dk>
6420
00c64fab
SM
6421 * xdisp.c (get_glyph_string_clip_rect):
6422 Use FRAME_INTERNAL_BORDER_WIDTH.
5c9cc435
KS
6423
6424 * dispextern.h (struct redisplay_interface): Add active_p
6425 argument to draw_window_cursor member. All uses changed.
6426
acd37560
KS
64272003-03-21 Kim F. Storm <storm@cua.dk>
6428
6429 The following changes consolidate code related to writing and
6430 inserting glyphs, exposing frame, the tool bar, the mouse face,
6431 the output cursor, and help echo from xterm.c, w32term.c and
6432 macterm.c into xdisp.c. It also generalizes the use of the
6433 window_part enum instead of using numeric values throughout.
af0ad939 6434
acd37560
KS
6435 * xdisp.c: Consolidate gui-independent code here.
6436 Include keymap.h.
6437 (Qhelp_echo): Import.
6438 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
6439 (help_echo_string, help_echo_window, help_echo_object)
6440 (previous_help_echo_string, help_echo_pos): Declare here.
6441 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
6442 (estimate_mode_line_height): Define here. Handle windowing
6443 systems directly (without using estimate_mode_line_height_hook).
6444 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
6445 (update_window_cursor, update_cursor_in_window_tree)
6446 (fast_find_position, fast_find_string_pos)
6447 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
6448 (expose_area, expose_line, expose_overlaps, expose_window)
6449 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
6450 declared static as they are only used locally in xdisp.c.
6451 (draw_glyphs): Rename from x_draw_glyphs and make static.
6452 (tool_bar_item_info, notice_overwritten_cursor): Make static.
6453 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
6454 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
af0ad939 6455 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
acd37560
KS
6456 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
6457 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
6458 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
6459 (note_mouse_highlight, x_clear_window_mouse_face)
6460 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
6461 (x_intersect_rectangles): New generic functions for use by xdisp.c
6462 and GUI front-ends.
6463 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
6464 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
6465
6466 * dispextern.h (Display_Info): Generic typedef for *_display_info.
6467 (NativeRectangle): Generic typedef for rectangle type.
6468 (enum window_part): Move here from window.c.
6469 (struct redisplay_interface): New members flush_display_optional,
6470 define_frame_cursor, clear_frame_area, draw_window_cursor,
6471 draw_vertical_window_border, shift_glyphs_for_insert.
6472 Rename member clear_mouse_face to clear_window_mouse_face.
6473 (estimate_mode_line_height_hook): Remove hook.
6474 (auto_raise_tool_bar_buttons_p): Don't declare extern.
6475 (tool_bar_item_info): Remove prototype.
6476 (help_echo_string, help_echo_window, help_echo_object)
6477 (previous_help_echo_string, help_echo_pos)
6478 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
6479 (x_stretch_cursor_p, output_cursor): Declare extern.
6480 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
6481 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
6482 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
6483 (display_and_set_cursor, set_output_cursor, x_cursor_to)
6484 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
6485 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
6486 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
6487 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
6488 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
6489 Add prototypes.
6490 (mode_line_string, marginal_area_string): Fix prototypes.
6491
6492 * window.c (enum window_part): Move to dispextern.h.
6493 (coordinates_in_window): Use enum window_part member names
6494 instead of numbers to describe return value.
6495 (struct check_window_data): Change part member to window_part.
6496 (check_window_containing): Return window_part unaltered.
6497 (window_from_coordinates): Change part arg from int to enum
6498 window_part. Allow part arg to be null. All users changed.
6499
6500 * window.h (window_from_coordinates): Fix prototype.
6501
6502 * term.c (estimate_mode_line_height): Move to xdisp.c.
6503
6504 * keyboard.c (make_lispy_event): Use enum window_part.
6505
6506 * dispnew.c (mode_line_string, marginal_area_string): Use enum
6507 window_part instead of int in arg list. Users changed.
6508
6509 * xterm.h (No_Cursor): Declare as None for X.
6510 (struct mac_output): Replace member cross_cursor by hand_cursor.
af0ad939 6511
acd37560
KS
6512 * xterm.c: Remove consolidated defines and code.
6513 (BETWEEN): Remove unused macro.
6514 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
6515 (x_define_frame_cursor, x_clear_frame_area)
6516 (x_draw_window_cursor): New X-specific functions for RIF.
6517 (x_redisplay_interface): Add new members.
6518
6519 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
6520
6521 * w32term.h (struct w32_output): Remove cross_cursor member.
6522
6523 * w32term.c: Remove consolidated defines and code.
6524 (BETWEEN): Remove unused macro.
6525 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
6526 (w32_define_frame_cursor, w32_clear_frame_area)
6527 (w32_draw_window_cursor): New W32-specific functions for RIF.
6528 (w32_redisplay_interface): Add new members.
6529
a64387ee 6530 * w32gui.h (No_Cursor): Define as 0 for W32.
acd37560
KS
6531 (XRectangle): Add X compatible rectangle type.
6532 (NativeRectangle): Declare as RECT for W32.
6533 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
6534
6535 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
6536
6537 * w32console.c: Remove consolidated defines and code.
af0ad939 6538
acd37560
KS
6539 * msdos.h (Display_Info): Add generic typedef.
6540
6541 * msdos.c: Remove consolidated defines and code.
6542 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
6543
6544 * macterm.h (struct mac_output): Replace member cross_cursor by
6545 hand_cursor.
6546 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
6547
6548 * macterm.c: Remove consolidated defines and code.
6549 (BETWEEN): Remove unused macro.
6550 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
6551 (mac_define_frame_cursor, mac_clear_frame_area)
6552 (mac_draw_window_cursor): New Mac-specific functions for RIF.
6553 (x_redisplay_interface): Add new members.
6554
6555 * macgui.h (No_Cursor): Define as 0 for Mac.
6556 (XRectangle): Add X compatible rectangle type.
6557 (NativeRectangle): Declare as Rect for Mac.
6558 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
6559
204ccab1
KS
6560 * macfns.c (x_set_mouse_color): Setup hand_cursor.
6561 (x_set_cursor_color): Use x_display_and_set_cursor.
acd37560 6562
9443fcf6 6563 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
acd37560
KS
6564 included from it. Add dependency on keymap.h.
6565
6566 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
6567
8ba01a70 65682003-03-21 Kenichi Handa <handa@m17n.org>
3f817c73
KH
6569
6570 * fileio.c (Fexpand_file_name): Fix previous change.
6571
8ba01a70 65722003-03-19 Kenichi Handa <handa@m17n.org>
4f497b0a
KH
6573
6574 * fileio.c (Ffile_name_directory): Reconstruct file name by
6575 make_specified_string.
6576 (Ffile_name_nondirectory, Ffile_name_as_directory)
6577 (Fdirectory_file_name, Fexpand_file_name)
6578 (Fsubstitute_in_file_name): Likewise.
6579 (Fread_file_name): Compare decoded homedir with DIR and
6580 DEFAULT_FILENAME.
6581
6582 * alloc.c (make_specified_string): If NCHARS is negative, count
6583 the number of characters.
6584
19536747
JD
65852003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6586
de38ae5a
JD
6587 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
6588 all widgets.
6589
19536747
JD
6590 * gtkutil.h: Removed xg_ignore_next_thumb.
6591
37ab321e 65922003-03-18 Kenichi Handa <handa@m17n.org>
cb0d4562
KH
6593
6594 * coding.c (Vchar_coding_system_table): Remove this variable.
6595 (Vcoding_system_safe_chars): New variable.
6596 (intersection): Remove this function.
6597 (find_safe_codings): Don't use Vchar_coding_system_table, but try
6598 all codings in SAFE_CODINGS.
00c64fab 6599 (Ffind_coding_systems_region_internal): Adjust for the change of
cb0d4562
KH
6600 find_safe_codings. Get generic coding systems from
6601 Vcoding_system_safe_chars.
6602 (Fdefine_coding_system_internal): New function.
6603 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
6604 Initialize and staticpro Vcoding_system_safe_chars.
6605
17097258
JD
66062003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6607
2a2071c3
JD
6608 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
6609 equal old values before updating.
6610
17097258
JD
6611 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
6612
6613 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
6614
66152003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6616
6617 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
6618 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
6619 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
6620 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
6621 (xg_create_scroll_bar): Pass bar to button event callback.
6622 (xg_find_top_left_in_fixed): New function.
6623 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
6624 whole scroll bar area. Get old position with
6625 xg_find_top_left_in_fixed, calculate and only clear needed areas.
6626 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
6627 dragging is in progress. Calculate whole as for Motif.
6628 Remove code that saved last values. Call gtk_range functions to
6629 set scroll bar sizes.
6630
6631 * gtkutil.h: Removed xg_ignore_next_thumb.
6632
8cb9dfbf
JB
66332003-03-17 Juanma Barranquero <lektu@terra.es>
6634
6635 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
6636 and files included from it.
6637
00c64fab
SM
66382003-03-18 Stefan Monnier <monnier@cs.yale.edu>
6639
6640 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
6641 multiple occurrences of the same keymap under different prefixes.
6642 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
6643
c45bb3b2
JR
66442003-03-16 Jason Rumney <jasonr@gnu.org>
6645
6646 * w32gui.h: Use HDC for Display.
6647
6648 * w32term.c (w32_encode_char): Prevent double-byte chars from
6649 crashing Emacs.
6650
6651 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
6652 as binary.
6653
2a6d0874
JB
66542003-03-16 Juanma Barranquero <lektu@terra.es>
6655
6656 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
6657
03eb5fab
KS
66582003-03-16 Kim F. Storm <storm@cua.dk>
6659
6660 The following changes consolidate some of the gui-independent
6661 parts of the processing and drawing of "glyph strings" from
6662 xterm.c, w32term.c, and macterm.c into xdisp.c.
2a6d0874 6663
03eb5fab
KS
6664 * dispextern.h (struct glyph): Reduce face_id member from 22 to
6665 21 bits (this reduces number of faces from 4M to 2M).
6666 Replace W32 specific w32_font_type member (2 bits) by generic
6667 font_type member (3 bits) for portability.
6668 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
6669 (enum draw_glyphs_face): Define here.
6670 (struct glyph_string): Define here. Merge W32 and X versions.
6671 (struct redisplay_interface): New members per_char_metric,
6672 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
6673 (VCENTER_BASELINE_OFFSET): Define here.
6674 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
6675 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
6676
6677 * xdisp.c: Consolidate gui-independent "glyph string" code here.
6678 (dump_glyph_string): Moved here.
6679 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
6680 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
6681 (fill_composite_glyph_string, fill_glyph_string)
6682 (fill_image_glyph_string, fill_stretch_glyph_string)
6683 (left_overwritten, left_overwriting, right_overwritten)
6684 (right_overwriting, get_char_face_and_encoding)
6685 (set_glyph_string_background_width, compute_overhangs_and_x)
6686 (append_glyph, append_composite_glyph, produce_image_glyph)
6687 (take_vertical_position_into_account, append_stretch_glyph)
6688 (produce_stretch_glyph): New generic functions (based on X version).
6689 Call platform specific functions through rif.
6690 (INIT_GLYPH_STRING): New macro, hides W32 details.
6691 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
6692 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
6693 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
6694 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
6695 (notice_overwritten_cursor):
6696 Generic functions exported to platform modules. Users changed.
6697
6698 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
6699 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
6700 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
fad49844 6701 New macros for consolidated code.
2a6d0874 6702
03eb5fab
KS
6703 * xterm.c: Remove consolidated defines and code.
6704 (x_per_char_metric, x_encode_char)
6705 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
6706 (x_redisplay_interface): Add new members.
6707
6708 * w32gui.h (Display): Add dummy typedef for consolidation.
6709 (XChar2b): Define alias for wchar_t for consolidation.
6710 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
6711
6712 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
2a6d0874 6713 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
03eb5fab
KS
6714 New macros for consolidation.
6715
fad49844 6716 * w32term.c: Remove consolidated defines and code.
03eb5fab
KS
6717 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
6718 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
6719 (w32_per_char_metric): Change font_type arg to int for RIF.
6720 (w32_encode_char): Return int according to RIF requirements.
6721 (w32_compute_glyph_string_overhangs): Adapt to RIF.
6722 (w32_get_glyph_overhangs): New function for RIF. Uses generic
6723 x_get_glyph_overhangs.
6724 (w32_redisplay_interface): Add new members.
6725
6726 * macgui.h (XChar2b): Move typedef here for consolidation.
6727 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
6728
6729 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
6730 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
6731 consolidation.
6732
6733 * macterm.c: Remove consolidated defines and code.
6734 (mac_per_char_metric): New function for RIF.
00c64fab 6735 (mac_encode_char): Adapt to new RIF requirements.
03eb5fab
KS
6736 (mac_compute_glyph_string_overhangs): Adapt for RIF.
6737 (x_redisplay_interface): Add new members.
6738
00c64fab
SM
67392003-03-15 Stefan Monnier <monnier@cs.yale.edu>
6740
6741 * keymap.c (Vmenu_events): New var.
6742 (syms_of_keymap): Initialize it.
6743 (where_is_internal): Check more carefully what is a menu event.
6744
225c7a07
RS
67452003-03-14 Richard M. Stallman <rms@gnu.org>
6746
6747 * lread.c (read1): After #!, exit loop on eof.
6748
cea9be54
JD
67492003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6750
9ea0e54d
JD
6751 * gtkutil.h: Add declaration for xg_frame_cleared.
6752
0cb35f4e
JD
6753 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
6754
cea9be54
JD
6755 * gtkutil.c (struct xg_last_sb_pos): New structure.
6756 (handle_fixed_child): New function.
6757 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
6758 and force a redraw on them.
6759 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
6760 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
6761 so we can avoid unneeded redraws.
6762 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
6763 and force a redraw on the scroll bar.
6764 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
6765 if xg_last_sb_pos shows the positions are up to date.
0cb35f4e 6766 (xg_frame_cleared): New function.
cea9be54 6767
20b853f3
KH
67682003-03-13 Kenichi Handa <handa@m17n.org>
6769
6770 * coding.c (Fdetect_coding_region): Fix docstring.
6771 (Fdetect_coding_string): Fix docstring.
6772
7a555aff
AS
67732003-03-13 Andreas Schwab <schwab@suse.de>
6774
25cc0080
AS
6775 * gtkutil.c: Add prototype for create_menus.
6776
30225431
AS
6777 * data.c (long_to_cons): Fix type of top.
6778
6779 * xselect.c (selection_data_to_lisp_data): Use int instead of
6780 long for an integer of size 4.
6781
7a555aff 6782 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
30225431 6783 (xg_tool_bar_help_callback): Likewise.
7a555aff 6784
a3e4741f
AS
67852003-03-12 Andreas Schwab <schwab@suse.de>
6786
6787 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
6788
9668be7c
KS
67892003-03-12 Kim F. Storm <storm@cua.dk>
6790
03eb5fab 6791 The following changes consolidate the fringe handling from
9668be7c 6792 xterm.c, w32term.c, and macterm.c into xdisp.c.
00a88f32 6793
9668be7c
KS
6794 * xdisp.c: Consolidate fringe handling code here.
6795 (left_bits, right_bits, continued_bits, continuation_bits)
6796 (ov_bits, zv_bits): Define fringe bitmaps.
6797 (fringe_bitmaps): New array holding fringe bitmaps.
6798 (draw_fringe_bitmap): Draw a specific bitmap; call display
6799 specific drawing routine via rif->draw_fringe_bitmap.
6800 (draw_row_fringe_bitmaps): Generic replacement for
6801 x_draw_row_fringe_bitmaps; all callers changed.
6802 (compute_fringe_widths): Generic replacement for
6803 x_compute_fringe_widths; all callers changed.
6804
6805 * dispextern.h (enum fringe_bitmap_type): Define here.
6806 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
6807 (fringe_bitmaps): Declare extern.
6808 (struct redisplay_interface): New member draw_fringe_bitmap.
6809 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
6810
6811 * xterm.c: Remove generic fringe code.
6812 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
6813 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
6814
6815 * w32term.c: Remove generic fringe code.
6816 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
6817 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
00a88f32 6818
9668be7c
KS
6819 * macterm.c: Remove generic fringe code.
6820 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
6821 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
6822
00a88f32
SM
68232003-03-11 Stefan Monnier <monnier@cs.yale.edu>
6824
6825 * print.c (Fprin1_to_string): Return unibyte string if possible.
6826
1d1de695
DK
68272003-03-09 David Kastrup <dak@gnu.org>
6828
6829 * process.c (read_process_output): We have allocated enough space
6830 for readmax and carryover, so actually use the alloted space.
6831
257f40f2
JD
68322003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6833
6834 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
6835 toolkit scrollbar click.
6836
6837 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
6838 for USE_GTK.
6839 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
6840 also.
6841 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
6842 scrollbar and control is pressed, call x_scroll_bar_handle_click.
00a88f32 6843
257f40f2
JD
6844 * gtkutil.h: Declare xg_get_scroll_id_for_window.
6845
6846 * gtkutil.c (xg_get_scroll_id_for_window): New function.
6847 (xg_tool_bar_item_expose_callback): New function.
6848 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
6849 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
6850 on the tool bar widget.
6851 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
6852 to expose on the tool bar item widgets.
6853
15213141
JD
68542003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6855
26b74a0b 6856 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
00a88f32 6857 struct image* when deciding to update (struct image* may have been
26b74a0b
JD
6858 deleted from the image cache).
6859
15213141
JD
6860 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
6861 the event isn't for a frame (i.e. for dialogs).
6862
20b853f3 68632003-03-07 Kenichi Handa <handa@m17n.org>
cb681b34
KH
6864
6865 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
6866 composition components reaches the limit, terminate composing.
6867 (COMPOSITION_OK): New macro.
00a88f32 6868 (detect_coding_iso2022): Use it if an escape sequence for
cb681b34
KH
6869 composition is found.
6870 (coding_restore_composition): Adjust the number of composition
6871 components if it is not sane.
6872
c9029fe5
JB
68732003-03-06 Juanma Barranquero <lektu@terra.es>
6874
6875 * w32term.h (struct w32_display_info): Add xrdb member to support
6876 passing resources via -xrm on Windows.
6877
6878 * w32term.c (w32_make_rdb): New function.
6879 (w32_term_init): Use it to initialize xrdb member of w32_display_info
6880 struct. Delete leftover code.
6881
6882 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
6883 for resources passed on the command line.
6884
6885 * w32reg.c (w32_get_rdb_resource): New function.
6886 (x_get_string_resource): Use it, so resources passed with -xrm
6887 supercede the ones in the registry.
6888
9d00001f
JD
68892003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6890
6891 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
6892 instead of x_top_window_to_frame.
6893
ca2417b9
JD
68942003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6895
6896 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
6897 when restarting Emacs.
6898
5b20caf0
RS
68992003-03-03 Richard M. Stallman <rms@gnu.org>
6900
6901 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
6902 to run kill-buffer-query-functions.
6903 (Qkill_buffer_query_functions): New var.
6904 (syms_of_buffer): Init and staticpro it.
6905
58e91b77
JD
69062003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6907
6908 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
6909
932357b4
KS
69102003-02-25 Kim F. Storm <storm@cua.dk>
6911
6912 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
6913 If centering point failed to make whole line visible and vscroll
6914 is non-zero, disable vscroll and try centering point again.
6915
6916 * lread.c (read1): Accept `single space' syntax like (? x).
6917
bb8db7e1
JD
69182003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6919
6920 * keyboard.c (cancel_hourglass_unwind): Surround with
6921 #ifdef HAVE_X_WINDOWS
6922
47d77aab
KH
69232003-02-25 Kenichi Handa <handa@m17n.org>
6924
6925 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
6926 process only when "subprocesses" is defined.
6927
6a097c0c
SM
69282003-02-24 Stefan Monnier <monnier@cs.yale.edu>
6929
6930 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
6931
0b063c27
JB
69322003-02-24 Juanma Barranquero <lektu@terra.es>
6933
d1135afc
JB
6934 * callint.c (fix_command): Declare as static void and move before
6935 Fcall_interactively.
6936
0b063c27
JB
6937 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
6938 (syms_of_xdisp): Don't initialize Qwhen.
6939
0af912f0
JD
69402003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6941
6942 * keyboard.c (cancel_hourglass_unwind): New function.
6943 (command_loop_1): Cancel hourglass with unwind-protect.
6944
120d0a23
RS
69452003-02-23 Richard M. Stallman <rms@gnu.org>
6946
6947 * callint.c (fix_command): New subroutine, from Fcall_interactively.
6948 Detect (when ... (region-beginning)) etc.
6949 (Fcall_interactively): Call fix_command.
6950 (Qif, Qwhen): New variables.
6951 (syms_of_callint): Init and staticpro them.
0b063c27 6952
120d0a23
RS
6953 * regex.c (print_partial_compiled_pattern): Output to stderr.
6954
4ece81a6
KG
69552003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
6956
6957 * dired.c (directory_files_internal): Don't expand directory.
6958 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
6959 instead. From Lars Hansen <larsh@math.ku.dk>.
6960
e52bd6b7
SM
69612003-02-22 Stefan Monnier <monnier@cs.yale.edu>
6962
6963 * fns.c (string_to_multibyte): Remove unused var i.
6964 (Flanginfo): Fix int/Lisp_Object mixup.
6965 (void_call2): New fun.
6966 (Fmap_char_table): Use it in place of call2.
6967
6968 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
6969
6970 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
6971
6972 * keymap.c (copy_keymap_1): Make it static.
6973
6974 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
6975
c33ef7c4
JB
69762003-02-22 David Ponce <david@dponce.com>
6977
6978 * lread.c (Fload): Don't check STRING_MULTIBYTE.
6979
16782258
JD
69802003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6981
6982 * process.h: Removed subtty field from struct Lisp_Process.
6983
6984 * process.c (create_process): Remove setting of subtty.
6985 (emacs_get_tty_pgrp): New function.
e52bd6b7
SM
6986 (Fprocess_running_child_p, process_send_signal):
6987 Call emacs_get_tty_pgrp instead of ioctl.
16782258
JD
6988 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
6989
3abeca61
KG
69902003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
6991
6992 * keymap.c (Fdefine_key): Doc fix.
6993
92a8ce63
JB
69942003-02-21 Juanma Barranquero <lektu@terra.es>
6995
6996 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
6997
6998 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
6999 POLLING_PROBLEM_IN_SELECT.
7000
7001 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
7002 Delete #undef of POLLING_PROBLEM_IN_SELECT.
7003
7004 * s/hpux10-20.h: New file.
7005
e52bd6b7
SM
7006 * process.c (wait_reading_process_input):
7007 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
92a8ce63 7008
20f1ef2e
KH
70092003-02-20 Kenichi Handa <handa@m17n.org>
7010
32d0a9dc
KH
7011 * fontset.c (check_fontset_name): If NAME is nil, return the
7012 default fontset.
7013 (override_font_info): New function.
e52bd6b7 7014 (Fset_fontset_font): Document that NAME nil means the default fontset.
32d0a9dc
KH
7015 (Ffontset_info): If FONTSET is not the default fontset, merge
7016 FONTSET onto the copy of the default fontset, and work on that
7017 copy. Document that NAME nil means the default fontset.
7018 (Ffontset_font): Document that NAME nil means the default fontset.
7019
20f1ef2e
KH
7020 * process.c (setup_process_coding_systems): If the process's
7021 in/out descriptor is -1, do nothing.
7022
77d1daf2
AS
70232003-02-19 Andreas Schwab <schwab@suse.de>
7024
e52bd6b7
SM
7025 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
7026 Add prototypes.
77d1daf2 7027
f9a45bb3
KH
70282003-02-19 Kenichi Handa <handa@m17n.org>
7029
7030 * xfaces.c (try_alternative_families): Try all scalable fonts if
7031 Vscalable_fonts_allowed is not Qt.
7032
72ecb43c
JD
70332003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7034
7035 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
7036
ee5be7c3
JD
70372003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7038
7039 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
7040 names.
7041
7042 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
e52bd6b7 7043 (sorted_font_list): Move allocation of struct font_name to
ee5be7c3
JD
7044 x_face_list_fonts.
7045 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
7046 (Fx_list_fonts): Set maxnames to -1 to get all font names.
7047
4cd519a7
KS
70482003-02-18 Kim F. Storm <storm@cua.dk>
7049
068f9882
KS
7050 * lread.c (read1): Fix last change.
7051 "`" is not always special. Allow "?" after a character constant.
4cd519a7 7052
7290a344
AC
70532003-02-18 Andrew Choi <akochoi@shaw.ca>
7054
7055 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
7056
1f7fa69b
AS
70572003-02-18 Andreas Schwab <schwab@suse.de>
7058
7059 * window.c (window_scroll_pixel_based): Move outside a
7060 multi-glyph character before setting new window start.
7061
7062 * xdisp.c (in_display_vector_p): New function.
7063 * dispextern.h (in_display_vector_p): Declare.
7064
23e21195
KS
70652003-02-18 Kim F. Storm <storm@cua.dk>
7066
7067 * lread.c (read1): Fix and relax read syntax.
7068 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
7069 Only recognize "," after dotted-pair dot if inside backquote.
7070 Never include "`" or "," (inside backquote) in a symbol.
7071 Allow dotted-pair dot after a character constant.
7072 Allow "`" and "," (inside backquote) after a character constant.
92a8ce63 7073
f098b121
JD
70742003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7075
7076 * gtkutil.c (xg_tool_bar_expose_callback): New function.
7077 (xg_create_tool_bar): Force style of tool bar to be horizontal with
7078 icons. Set name of tool bar to emacs-toolbar.
7079 (update_frame_tool_bar): Connect expose event to
7080 xg_tool_bar_expose_callback.
7081
63020c46
RS
70822003-02-17 Richard M. Stallman <rms@gnu.org>
7083
7084 * keyboard.c (this_command_key_count_reset): New variable.
7085 Initiatize to 0 where this_command_key_count is set.
7086 (read_char): Save and restore this_command_key_count_reset
7087 around input method code.
7088 (read_char): If this_command_key_count_reset, echo reread commands.
7089 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
7090
fb4452cc
KH
70912003-02-17 Kenichi Handa <handa@m17n.org>
7092
7093 * fns.c (string_to_multibyte): Always return a multibyte string.
7094
bd11cc09
JR
70952003-02-16 Jason Rumney <jasonr@gnu.org>
7096
e52bd6b7
SM
7097 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
7098 Negative max_fonts parameter means list all.
bd11cc09 7099
4cdf4bde
DL
71002003-02-14 Dave Love <fx@gnu.org>
7101
7102 * fns.c (Flanginfo): Doc fix.
7103
023b93f6
KS
71042003-02-13 Kim F. Storm <storm@cua.dk>
7105
37cd4238
KS
7106 * lread.c (read_escape): Interpret \s as a SPACE character, except
7107 for \s-X in a character constant which still is the super modifier.
7108 (read1): Signal an `invalid read syntax' error if a character
7109 constant is immediately followed by a digit or symbol character.
7110
140a6b7e
KS
7111 * search.c (Fmatch_data): Doc fix. Explicitly state that
7112 match-data is undefined if last search failed.
7113
023b93f6
KS
7114 * keymap.c (Fcommand_remapping): Renamed from Fremap_command.
7115 All uses changed.
7116
7d5c86e5
JB
71172003-02-12 Juanma Barranquero <lektu@terra.es>
7118
7119 * eval.c (Fdefmacro): Fix typo.
7120
295fff2c
KS
71212003-02-12 Kim F. Storm <storm@cua.dk>
7122
7123 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
7124 macro is a string, convert meta modifiers in string when copying
7125 the string into a vector.
7126
60f3202d
KS
71272003-02-11 Kim F. Storm <storm@cua.dk>
7128
7129 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
7130
61cb0b53
KH
71312003-02-11 Kenichi Handa <handa@m17n.org>
7132
7133 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
7134
7392e23c
KS
71352003-02-10 Kim F. Storm <storm@cua.dk>
7136
7137 * process.c: Doc fixes.
7138 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
7139
ce4254bd
KH
71402003-02-10 Kenichi Handa <handa@m17n.org>
7141
9c7a329a
KH
7142 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
7143
ce4254bd
KH
7144 * process.c (QCfilter_multibyte): New variable.
7145 (setup_process_coding_systems): New function.
e52bd6b7
SM
7146 (Fset_process_buffer, Fset_process_filter):
7147 Call setup_process_coding_systems.
ce4254bd
KH
7148 (Fstart_process): Initialize the member `filter_multibyte' of
7149 struct Lisp_Process.
7150 (create_process): Call setup_process_coding_systems.
7151 (Fmake_network_process): New keyward `:filter-multibyte'.
7152 Initialize the member `filter_multibyte' of struct Lisp_Process.
7153 Call setup_process_coding_systems.
7154 (server_accept_connection): Call setup_process_coding_systems.
7155 (read_process_output): If the process has a filter, decide the
7156 multibyteness of a string to given to the filter by
7157 `filter_multibyte' member of the process. If the process doesn't
7158 have a filter and the result of conversion is unibyte, use
7159 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
7160 multibyte form.
7161 (Fset_process_coding_system): Call setup_process_coding_systems.
7162 (Fset_process_filter_multibyte): New function.
7163 (Fprocess_filter_multibyte_p): New function.
7164 (syms_of_process): Intern and staticpro QCfilter_multibyte.
7165 Defsubr Sset_process_filter_multibyte and
7166 Sprocess_filter_multibyte_p.
7167
7168 * process.h (struct Lisp_Process): New member filter_multibyte.
7169
7170 * lisp.h (setup_process_coding_systems): Add prototype.
7171
7172 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
7173 process, update coding systems for the process.
7174
b08d5f59
KH
71752003-02-09 Kenichi Handa <handa@m17n.org>
7176
7177 * fns.c (string_to_multibyte): New function.
7178 (Fstring_to_multibyte): New function.
7179 (syms_of_fns): Defsubr it.
7180
0dfd93c0
AS
71812003-02-08 Andreas Schwab <schwab@suse.de>
7182
7183 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
7184 instead of the substitution.
7185
7b76ca1c
JD
71862003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7187
7188 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
7189
7190 * xmenu.c (menu_position_func): Adjust menu popup position so that
7191 the menu is fully visible.
7b76ca1c 7192
2436a4e4
JD
71932003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7194
7195 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
e52bd6b7
SM
7196 (x_make_frame_invisible, x_wm_set_icon_position):
7197 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
2436a4e4
JD
7198
7199 * xfns.c (x_set_name, x_set_title): Ditto.
7200
37d1e680
RS
72012003-02-04 Richard M. Stallman <rms@gnu.org>
7202
7203 * keyboard.c (echo_now): Update before_command_echo_length.
7204 (Freset_this_command_lengths): Reset this_command_key_count etc.
7205 immediately rather than arranging to do it later.
7206 (before_command_key_count_1, before_command_echo_length_1)
7207 (before_command_restore_flag): Vars deleted.
7208 (add_command_key): Don't handle before_command_restore_flag.
7209 (read_char, record_menu_key): Don't update before_command_key_count or
7210 before_command_echo_length.
7211 (read_char): Don't handle before_command_restore_flag.
7212
7213 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
7214 in direct-output clauses if it wouldn't be called in the ordinary case.
7215
578846a3
KS
72162003-02-04 Kim F. Storm <storm@cua.dk>
7217
7218 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
7219
49853a4d
JD
72202003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7221
7222 * gtkutil.c (remove_from_container): Copying list is not needed.
7223 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
7224 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
7225 on list returned from gtk_container_get_children to avoid memory leak.
7226
8b53dc06
JR
72272003-02-01 Jason Rumney <jasonr@gnu.org>
7228
5d54d177
JR
7229 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
7230 local malloc.
7231 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
7232 definitions in xpm.h.
7233 (init_xpm_functions): New function.
f63fd14e 7234 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
5d54d177
JR
7235 (init_external_image_libraries): Try to load libXpm.dll.
7236
8b53dc06
JR
7237 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
7238 timestamp.
7239
b222e415
DL
72402003-01-31 Dave Love <fx@gnu.org>
7241
7242 * syntax.c (Fskip_chars_forward)
7243 (open-paren-in-column-0-is-defun-start): Doc fix.
7244
c60ee5e7
JB
72452003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
7246
7247 * fileio.c: Support // at start of name for Cygwin (just added proper
7248 preprocessor tests).
7249
7250 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
7251
7252 * Makefile.in: Use @EXEEXT@ for Cygwin.
7253
7254 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
7255
7256 * s/cygwin.h: Added for Cygwin port.
7257
53b37591
JB
72582003-01-31 Juanma Barranquero <lektu@terra.es>
7259
7260 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
7261 when including gif_lib.h.
fe929957 7262 (init_gif_functions, init_tiff_functions): New functions.
f63fd14e
JB
7263 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
7264 Windows. Disable color table lookups. Call library functions
53b37591 7265 through pointers determined at runtime.
fe929957
JB
7266 (init_external_image_libraries): Try to load libungif.dll and
7267 libtiff.dll.
53b37591 7268
45415a8f
KH
72692003-01-31 Kenichi Handa <handa@m17n.org>
7270
7271 * xdisp.c (SKIP_GLYPHS): New macro.
e52bd6b7 7272 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
45415a8f 7273
a97e4138
JD
72742003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7275
e52bd6b7 7276 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
a97e4138 7277
6eed9bed
DL
72782003-01-30 Dave Love <fx@gnu.org>
7279
7280 * alloc.c (Vgc_elapsed, gcs_done): New variables.
7281 (Fgarbage_collect): Use them.
7282 (init_alloc, syms_of_alloc): Set them up.
7283
100dcd40
JB
72842003-01-30 Juanma Barranquero <lektu@terra.es>
7285
7286 * w32fns.c (init_external_image_libraries): Add missing operator.
7287
fbd852af
JR
72882003-01-29 Jason Rumney <jasonr@gnu.org>
7289
7290 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
7291 an alternative name for jpeg.dll.
7292
8a2d8020
KH
72932003-01-29 Kenichi Handa <handa@m17n.org>
7294
7295 * xdisp.c (set_cursor_from_row): Pay attention to string display
7296 properties.
7297
058c18c7
AC
72982003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
7299
7300 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
7301 <escape>.
7302 (keycode_to_xkeysym_table): Reformat and add more comments.
7303 (XTread_socket): Drop special case for backspace.
7304
385f11cf
AC
73052003-01-28 Andrew Choi <akochoi@shaw.ca>
7306
7307 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
7308 values in old-style RGB specs.
7309
c922a224
JB
73102003-01-27 Juanma Barranquero <lektu@terra.es>
7311
7312 * w32fns.c (init_external_image_libraries): Try alternate names for the
7313 jpeg dll.
7314
0a1d6de0
JD
73152003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7316
7317 * gtkutil.c (create_dialog, xg_separator_p)
7318 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
7319 before calling strcmp or strlen.
7320
a97e4138 73212003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1d1885fc
JD
7322
7323 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
7324 and handle image load failure.
7325
28908312
JR
73262003-01-26 Jason Rumney <jasonr@gnu.org>
7327
7328 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
7329 New functions.
f63fd14e
JB
7330 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
7331 Disable color table lookups. Call jpeg library functions
28908312
JR
7332 through pointers determined at runtime.
7333 (init_external_image_libraries): Try to load jpeg.dll.
7334
84e47416
RS
73352003-01-25 Richard M. Stallman <rms@gnu.org>
7336
7337 * lisp.h: Declare format2 instead of format1.
7338
7339 * fileio.c (barf_or_query_if_file_exists):
7340 Call format2 instead of format1.
7341
7342 * editfns.c (format2): New function, replaces format1
7343 but takes exactly two Lisp Objects as format args.
7344
7345 * buffer.c (Fkill_buffer): Call format2 instead of format1.
7346
a97e4138 73472003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1fcfb866
JD
7348
7349 * xterm.h: Change to return value of x_dispatch_event to int.
7350
7351 * xterm.c (x_filter_event): New function.
7352 (event_handler_gdk, XTread_socket): Call x_filter_event.
7353 (x_dispatch_event): Change to return value of finish.
7354 (event_handler_gdk): Use return value from x_dispatch_event.
7355
7356 * xfns.c (x_window): Call create_frame_xic for GTK version to
7357 initialize input methods.
7358
7359 * gtkutil.h: Add (void) prototypes.
7360
7361 * gtkutil.c (create_menus): Remove code that puts the help menu to
7362 the right.
7363
54eefef1
JR
73642003-01-25 Jason Rumney <jasonr@gnu.org>
7365
7366 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
7367 [HAVE_PNG]: Sync with xfns.c version.
f63fd14e
JB
7368 (png_load): Adjust colors for Windows. Use Windows
7369 bitmaps. Disable color table lookups.
c262430d
JR
7370 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
7371 (init_png_functions): New function.
7372 (png_read_from_memory, png_load): Call png library functions
7373 through pointers determined at runtime.
7374 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
7375 (init_external_image_libraries): New function.
7376 (init_xfns): Call it.
54eefef1 7377
1a9e275b
AS
73782003-01-24 Andreas Schwab <schwab@suse.de>
7379
7380 * minibuf.c (Fminibuffer_message): Verify type of parameter.
7381
a97e4138 73822003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
81e302ef
JD
7383
7384 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
7385 of static initializer.
7386
422eec7e
DL
73872003-01-24 Dave Love <fx@gnu.org>
7388
7389 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
7390 architectures.
7391
7392 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
7393 Use __alignof__.
7394
2a026b04
KH
73952003-01-24 Kenichi Handa <handa@m17n.org>
7396
7397 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
e52bd6b7 7398 It it is nonzero, don't pretend that an invisible area doesn't exist.
2a026b04
KH
7399 (command_loop_1): Call adjust_point_for_property with proper
7400 second arg.
7401
a18bb28d
JR
74022003-01-22 Jason Rumney <jasonr@gnu.org>
7403
7404 Sync changes with xterm.c and xfns.c.
7405
7406 * w32term.c (x_draw_glyph_string_foreground)
7407 (x_draw_composite_glyph_string_foreground): Implement overstriking.
7408
7409 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
7410 phys_cursor's hpos is overwritten. This is still not completely
7411 correct, as it doesn't really make sense to use hpos at all to
7412 get the cursor glyph (as that is relative to the width of the
7413 characters on the line, which may have changed during the update).
7414
7415 * w32term.c (notice_overwritten_cursor): Handle the special case
7416 of the cursor being in the first blank non-text line at the
7417 end of a window.
7418
7419 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
7420 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
7421 Compute from the x position returned by x_draw_glyphs.
7422
7423 (x_display_and_set_cursor): Don't set phys_cursor_width here,
7424 except for NO_CURSOR and system caret, to make phys_cursor_width
7425 contain what its name suggests.
7426 (notice_overwritten_cursor): Consider the cursor image erased if
7427 the output area intersects the cursor image in y-direction.
7428
6a097c0c
SM
7429 * w32term.c (note_mode_line_or_margin_highlight): Rename from
7430 note_mode_line_highlight and extend.
a18bb28d
JR
7431
7432 * w32term.c (last_window): New variable.
7433 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
7434 (note_mouse_movement): Remove reimplemented code in #if 0.
7435
7436 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
7437 not update_mode_lines, and always set it to 1.
7438
ac6e47ef
JR
74392003-01-21 Jason Rumney <jasonr@gnu.org>
7440
7441 * w32fns.c (IDC_HAND): Define it if system headers don't.
7442
74432003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
7444
7445 * w32term.h (struct w32_output): New member hand_cursor.
7446 (WM_EMACS_SETCURSOR): New message definition.
7447
7448 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
7449 function w32_define_cursor.
7450 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
7451 position, change member name output_data.x to output_data.w32 and
7452 add function w32_define_cursor.
7453 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
7454 and change member name output_data.x to output_data.w32.
e52bd6b7
SM
7455 (w32_initialize_display_info):
7456 Setup dpyinfo->vertical_scroll_bar_cursor.
ac6e47ef
JR
7457
7458 * w32fns.c (Vx_hand_shape): New variable.
7459 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
7460 WM_EMACS_SETCURSOR.
7461 (x-create-frame): Setup Cursor types.
7462
ceb39a17
JB
74632003-01-21 David Ponce <david@dponce.com>
7464
ac6e47ef 7465 * w32term.c (w32_encode_char): For DIM=1 charset, set
f63fd14e 7466 ccl->reg[2] to -1 before calling ccl_driver. (Sync. with xterm.c
ac6e47ef 7467 x_encode_char change by Kenichi Handa <handa@m17n.org> on
ceb39a17 7468 2002-09-30.)
ac6e47ef
JR
7469 (w32_draw_relief_rect): Declare all args.
7470 (w32_define_cursor): New.
7471
7472 * w32fns.c (w32_load_cursor): New function.
7473 (w32_init_class): Use it.
7474 (x_put_x_image): Declare all args.
7475
46cf0bed
JB
74762003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk> (tiny change)
7477
7478 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
7479
a97e4138 74802003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e8794476
JD
7481
7482 * gtkutil.c: Must include stdio.h before termhooks.h
7483
83fc9c63
DL
74842003-01-21 Dave Love <fx@gnu.org>
7485
7486 * alloc.c (Fgc_status): Print zombie list.
7487 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
7488 Fix assignment of zombies.
7489 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
7490 Don't take car of non-cons.
7491
7492 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
7493
7494 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
7495
fe04b8c8
JR
74962003-01-20 David Ponce <david@dponce.com>
7497
7498 * w32menu.c (digest_single_submenu): Declare all args.
7499
7500 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
7501 changes in xmenu.c:
7502
7503 (parse_single_submenu): Use individual keymap's prompt
7504 string as pane name, if there is one.
7505 (set_frame_menubar): Save menu_items_n_panes from each call to
7506 parse_single_submenu and use it when calling digest_single_submenu.
7507
539e69a9
ST
75082003-01-20 Steven Tamm <steventamm@mac.com>
7509
7510 * macterm.c (XTread_socket): Checks for valid, visible window
7511 before sending a scroll-wheel event.
7512
675d000f
RS
75132003-01-20 Richard M. Stallman <rms@gnu.org>
7514
7515 * xdisp.c (redisplay_window): If mini window's buffer is not
7516 a minibuffer, then redisplay it like other windows.
7517
a97e4138 75182003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22174d10
JD
7519
7520 * gtkutil.c (xg_create_frame_widgets): Check if there is an
7521 external tool bar before setting tool bar height.
7522
048addec
JD
75232003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7524
7525 * xterm.c (handle_one_xevent): Surround popup_activated
7526 with #ifdef:s for non-toolkit version.
7527
7528 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
7529 (gtkutil.o): New file.
7530 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
7531 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
7532
7533 * gtkutil.c: New file for GTK version.
7534
7535 * gtkutil.h: New file for GTK version.
7536
7537 * xterm.h: Add xt_or_gtk_widget.
7538 Include gtk files for USE_GTK.
7539 (struct x_output): Add toolbar_height.
7540 (struct x_output): Add GTK widgets and Gdk size_hints.
7541 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
7542 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
7543 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
7544
7545 * xterm.c: Include gtkutil.h for USE_GTK.
7546 Declare extern void free_frame_menubar for USE_GTK.
7547 (note_mouse_highlight): Check popup_activated for USE_GTK.
7548 (xt_action_hook): Don't compile if USE_GTK.
7549 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
7550 (xg_scroll_callback): New function.
7551 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
7552 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
7553 for USE_GTK.
7554 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
7555 xg_show_scroll_bar for USE_GTK.
7556 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
7557 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
7558 (event_handler_gdk): New function for USE_GTK.
7559 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
7560 (handle_one_xevent): Make sure widget is mapped before
7561 calling x_real_positions for USE_GTK.
7562 (XTread_socket): Add GTK event loop for USE_GTK.
7563 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
7564 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
7565 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
7566 (x_iconify_frame): Add code for USE_GTK.
7567 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
7568 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
7569 is in gtkutil.c.
7570 (x_term_init): Add initialization for GTK.
7571 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
7572
7573 * xmenu.c: Include gtkutil.h for USE_GTK.
7574 (Fx_popup_menu): Use current position if x and y is NIL.
6bdb309a
SM
7575 (single_menu_item, single_menu_item, Fx_popup_dialog):
7576 Check for USE_GTK.
048addec
JD
7577 (popup_widget_loop): New function for USE_GTK.
7578 (x_activate_menubar): Add code for USE_GTK.
7579 (popup_activate_callback, popup_deactivate_callback)
6bdb309a
SM
7580 (menu_highlight_callback, menubar_selection_callback):
7581 Add USE_GTK versions.
048addec
JD
7582 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
7583 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
7584 (free_frame_menubar): Only compile if not USE_GTK. GTK version
7585 is in gtkutil.c.
7586 (popup_selection_callback): New version for USE_GTK.
7587 (create_and_show_popup_menu): New fuction, one USE_GTK version and
6bdb309a 7588 one USE_X_TOOLKIT version.
048addec
JD
7589 (xmenu_show): Call create_and_show_popup_menu.
7590 (dialog_selection_callback): New version for USE_GTK.
7591 (create_and_show_dialog): New fuction, one USE_GTK version and
6bdb309a 7592 one USE_X_TOOLKIT version.
048addec
JD
7593 (xdialog_show): Call create_and_show_dialog.
7594
7595 * xfns.c: Include gtkutil for USE_GTK.
7596 (x_window_to_frame, x_any_window_to_frame)
7597 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
7598 (x_top_window_to_frame): Add code for USE_GTK.
7599 (x_set_background_color): Call xg_set_background_color for GTK.
7600 (x_set_menu_bar_lines): Check for USE_GTK.
7601 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
7602 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
7603 (x_window): Call xg_create_frame_widgets for USE_GTK.
7604 (Fx_create_frame): Check for USE_GTK
7605 (Fx_file_dialog): New implementation for USE_GTK.
7606
7607 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
7608 (update_menu_bar): Add check for USE_GTK.
7609 (update_tool_bar): Add check for USE_GTK and external tool bar.
7610 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
7611 (redisplay_internal): Add check for USE_GTK and popup_activated.
7612 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
7613 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
7614 (display_menu_bar): Add check for USE_GTK
7615
7616 * lisp.h: Declare Vx_resource_name extern.
7617
a64387ee 7618 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
048addec
JD
7619 for USE_GTK.
7620 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
7621
7622 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
7623 (FRAME_EXTERNAL_TOOL_BAR): New macro.
7624 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
7625
7626 * fileio.c (Fread_file_name): Add check for USE_GTK.
7627
6bdb309a
SM
7628 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
7629 Add check for USE_GTK.
048addec
JD
7630
7631 * config.in: Added HAVE_GTK
7632
7633 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
7634
76352003-01-18 Stefan Monnier <monnier@cs.yale.edu>
7636
7637 * charset.h (Funibyte_char_to_multibyte): Export.
7638
76392003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7640
7641 * xmenu.c (mouse_position_for_popup): New function.
7642 (Fx_popup_menu): Call mouse_position_for_popup for X and
7643 mouse_position_hook for others.
7644
76452003-01-17 Kim F. Storm <storm@cua.dk>
7646
7647 * editfns.c (Finsert): Mention `string-make-multibyte' and
7648 `string-as-multibyte' in doc string.
7649
76502003-01-17 Kenichi Handa <handa@m17n.org>
7651
7652 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
3c02a6f5 7653
048addec
JD
7654 * editfns.c (Fformat): Convert an unibyte char argument that is
7655 formatted by "%c" to multibyte if the total result must be a
7656 multibyte string.
cd7df9c0 7657
048addec 76582003-01-16 Kim F. Storm <storm@cua.dk>
cd7df9c0 7659
048addec
JD
7660 * process.c (set-process-filter): Document unibyte/multibyte-ness
7661 of string argument.
56210ecd 7662
048addec 76632003-01-16 Kenichi Handa <handa@m17n.org>
56210ecd 7664
048addec 7665 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
56210ecd 7666
048addec
JD
7667 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
7668 (re_search_2): Likewise.
6df8b9fe 7669
048addec 76702003-01-15 Kenichi Handa <handa@m17n.org>
6df8b9fe 7671
048addec
JD
7672 * xdisp.c (message_dolog): Fix bug of the case that *Message*
7673 buffer is unibyte.
292ddc31 7674
048addec 76752003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
292ddc31 7676
048addec 7677 * fns.c (Fsubstring): Clarify doc string.
292ddc31 7678
048addec
JD
7679 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
7680 (Fprevious_char_property_change)
7681 (Fnext_single_char_property_change)
7682 (Fprevious_single_char_property_change, Fnext_property_change)
7683 (Fnext_single_property_change, Fprevious_property_change)
7684 (Fprevious_single_property_change, Fadd_text_properties)
7685 (Fput_text_property, Fset_text_properties)
7686 (Fremove_text_properties, Fremove_list_of_text_properties)
7687 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
63e4e4c6 7688
048addec 76892003-01-14 Kim F. Storm <storm@cua.dk>
63e4e4c6 7690
048addec
JD
7691 * process.h (struct Lisp_Process): New member plist replaces old
7692 member private_vars. All uses changed.
63e4e4c6 7693
048addec 7694 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
6bdb309a 7695 (QCplist): Rename from QCvars. Change all uses.
048addec 7696 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
6bdb309a 7697 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
048addec 7698 (syms_of_process): Intern, staticpro, defsubr these.
6bdb309a 7699 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
7ed16567 7700
048addec 77012003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
7ed16567 7702
6bdb309a 7703 * m/delta.h: Remove (obsolete).
e833850f 7704
048addec 77052003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
e833850f 7706
048addec
JD
7707 * fileio.c (Fdelete_directory, Fdelete_file): Document the
7708 behaviour in front of symlinks.
7709 (Fdelete_file): Raise an error on directories.
817cb127 7710
048addec 77112003-01-13 Dave Love <fx@gnu.org>
817cb127 7712
048addec 7713 * fns.c (Freverse): Use QUIT.
3e8cf2ea 7714
048addec 77152003-01-13 Richard M. Stallman <rms@gnu.org>
3e8cf2ea 7716
048addec
JD
7717 * minibuf.c (minibuffer_completion_contents):
7718 Error if point is inside prompt.
3e8cf2ea 7719
048addec
JD
7720 * keyboard.c (command_loop_1): Don't redisplay directly
7721 if there's a post-command-hook.
3e8cf2ea 7722
048addec
JD
7723 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
7724 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
2c10f029 7725
048addec 77262003-01-12 Kim F. Storm <storm@cua.dk>
94e8ffca 7727
048addec 7728 * process.h (struct Lisp_Process): New member private_vars.
94e8ffca 7729
048addec
JD
7730 * process.c (QCvars): New variable.
7731 (syms_of_process): Intern and staticpro it.
7732 (Fset_process_contact): Removed function.
7733 (Fprocess_variable, Fset_process_variable): New functions.
7734 (syms_of_process): Defsubr them.
7735 (Fstart_process): Initialize private_vars plist to nil.
7736 (Fmake_network_process): New arg :vars to setup the private
7737 variables for new network process.
7738 (server_accept_connection): Copy server's private variables to
7739 client process.
2c10f029 7740
048addec
JD
7741 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
7742 crashes). Code rewritten and simplified. Now directly aligns the
7743 pointer and recalculates pure_bytes_used, rather than aligning the
7744 size and adjusting the pointer.
b8a76c6c 7745
048addec 77462003-01-11 Kim F. Storm <storm@cua.dk>
b8a76c6c 7747
048addec
JD
7748 * process.c (Fset_process_contact): New function.
7749 (syms_of_process): defsubr it.
7750 (make-network-process): Update doc.
3a8d0899 7751
048addec 77522003-01-10 Andreas Schwab <schwab@suse.de>
3a8d0899 7753
048addec
JD
7754 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
7755 Reported by Berthold Gunreben <b.gunreben@web.de>.
4abc7470 7756
048addec 77572003-01-10 Dave Love <fx@gnu.org>
4abc7470 7758
048addec 7759 * composite.c (syms_of_composite): Make composition_hash_table weak.
b809d662 7760
048addec 77612003-01-09 Kim F. Storm <storm@cua.dk>
b809d662 7762
048addec
JD
7763 * process.c (Fmake_network_process): Convert new port number
7764 to host byte order for `:service t' case. From Mario Lang.
bf338245 7765
048addec 77662003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
bf338245 7767
048addec
JD
7768 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
7769 instead of XtAppProcessEvent.
bf338245 7770
048addec
JD
7771 * xterm.c (handle_one_xevent): New function.
7772 (x_dispatch_event): New function.
7773 (XTread_socket): Call handle_one_xevent.
bf338245 7774
048addec 7775 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
e833850f 7776
048addec
JD
7777 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
7778 call XQueryPointer to get coordinates.
7779 (popup_get_selection): Do not set popup_activated_flag to zero,
7780 let popup_deactivate_callback do that. Needed for Motif.
7781 Call x_dispatch_event instead of XtDispatchEvent.
7782 (xmenu_show): Calculate root coordinate from frame top/left position.
c4af2bce 7783
048addec 77842003-01-08 Kim F. Storm <storm@cua.dk>
c4af2bce 7785
6bdb309a 7786 * process.c (server_accept_connection): Fix recording of new
048addec
JD
7787 connection's local address in :local property of contact info.
7788 (Fmake_network_process): Record local network address for new
7789 client processes in :local property of contact info.
6bdb309a 7790 (format-network-address): Add arg OMIT-PORT. Change callers.
00e3ab56 7791
048addec 77922003-01-07 Dave Love <fx@gnu.org>
00e3ab56 7793
048addec 7794 * Makefile.in (fns.o): Depend on coding.h.
f387e1fd 7795
048addec 77962003-01-07 Markus Rost <rost@math.ohio-state.edu>
f387e1fd 7797
048addec 7798 * minibuf.c (Fread_variable): Doc fix.
f387e1fd 7799
048addec
JD
7800 * eval.c (Fuser_variable_p): Doc change. For custom variables,
7801 use the same test as for custom-variable-p.
8c6d74c6 7802
048addec 78032003-01-05 Richard M. Stallman <rms@gnu.org>
e833850f 7804
048addec
JD
7805 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
7806 Count LAST_LINE_MISFIT in scroll margin for end of window.
7807 Move label too_near_end before setting SCROLL_MARGIN_POS.
7808 Set LAST_LINE_MISFIT before jumping there.
8c6d74c6 7809
048addec
JD
7810 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
7811 scroll_conservatively case. If scrolling that much doesn't change
7812 STARTP, move it down one line.
e833850f 7813
048addec
JD
7814 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
7815 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
8c6d74c6 7816
048addec
JD
7817 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
7818 selected frame.
8c6d74c6 7819
048addec
JD
7820 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
7821 (syms_of_keymap): staticpro them.
7822 (Fapropos_internal): Initialize them and clear them out.
7823 Don't GCPRO them.
8c6d74c6 7824
048addec
JD
7825 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
7826 Doc fixes.
8c6d74c6 7827
048addec
JD
7828 * lisp.h: New misc type Lisp_Save_Value.
7829 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
7830 (XSAVE_VALUE): New macro.
7831 (struct Lisp_Save_Value): New data type.
7832 (union Lisp_Misc): Add u_save_value alternative.
7833 (make_save_value): Declared.
8c6d74c6 7834
048addec 7835 * alloc.c (make_save_value): New function.
8c6d74c6 7836
048addec
JD
7837 * xterm.c (x_catch_errors): Save dpy using make_save_value.
7838 (x_catch_errors_unwind): Call XSync.
8c6d74c6 7839
048addec 78402003-01-01 Richard M. Stallman <rms@gnu.org>
8c6d74c6 7841
048addec 7842 * window.c (window_scroll_pixel_based): Partially undo last change.
8c6d74c6 7843
048addec
JD
7844 * keyboard.c (command_loop_1): Call adjust_point_for_property
7845 in direct action cases for Qforward_char and Qbackward_char.
7846 Set already_adjusted so it won't be done twice.
8c6d74c6 7847
048addec 78482002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk> (tiny change)
8c6d74c6 7849
048addec
JD
7850 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
7851 type definition of size_t.
8c609cff 7852
048addec 78532003-01-02 Steven Tamm <steventamm@mac.com>
8c609cff 7854
048addec
JD
7855 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
7856 distinguish Carbon GUI builds from X11 builds on darwin.
b37113a1 7857
048addec 78582002-12-30 Steven Tamm <steventamm@mac.com>
b37113a1 7859
048addec
JD
7860 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
7861 to default to t.
fa634a5e 7862
048addec 78632002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
fa634a5e 7864
048addec 7865 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
ce0669d4 7866
048addec 78672002-12-28 Steven Tamm <steventamm@mac.com>
ce0669d4 7868
048addec
JD
7869 * Makefile.in (macosx-bundle): Fixes to Mac OS X/Carbon port to
7870 allow building in a different directory than source. Uses some
7871 GNU Make extensions, but there is no other make on Mac OS X.
2308af15 7872
048addec 78732002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
2308af15 7874
048addec
JD
7875 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
7876 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
7877 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
7878 (Fstring_to_number): Mention the returned value in the doc strings.
2155ecf3 7879
048addec 78802002-12-23 Richard M. Stallman <rms@gnu.org>
2155ecf3 7881
048addec
JD
7882 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
7883 <scroll-down-aggressively>: Doc fix.
2155ecf3 7884
048addec
JD
7885 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
7886 string as pane name, if there is one.
7887 (set_frame_menubar): Save menu_items_n_panes from each call to
7888 parse_single_submenu and use it when calling digest_single_submenu.
2155ecf3 7889
048addec
JD
7890 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
7891 Don't try to make last line fully visible if it is past end of window.
61f1d295 7892
048addec 78932002-12-22 Steven Tamm <steventamm@mac.com>
61f1d295 7894
048addec
JD
7895 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
7896 (mac_menu_show): Add support for hierarchical popup menus.
7897 (add_menu_item): Remove indentation support.
7898 (fill_submenu, fill_menu): Create hierarchical menus
7899 instead of using indentation.
0b17a217 7900
048addec 79012002-12-22 Richard M. Stallman <rms@gnu.org>
0b17a217 7902
048addec
JD
7903 * xdisp.c (try_cursor_movement): Don't call try_window here.
7904 (redisplay_window): Never redisplay minibuffer when inactive.
0b17a217 7905
048addec 7906 * window.c (select_window_1): Undo 9/21 change.
402e4f8b 7907
048addec 79082002-12-22 Steven Tamm <steventamm@mac.com>
402e4f8b 7909
048addec
JD
7910 * macterm.c (XTread_socket): Call KeyTranslate for control and
7911 meta to deal correctly shifted non-alpha characters, like C-S-5
7912 being treated like C-%. Does not look for shift key to deal
7913 with masking off control-key with mac-reverse-ctrl-meta.
f02cac82 7914
048addec 79152002-12-21 Richard M. Stallman <rms@gnu.org>
f02cac82 7916
048addec
JD
7917 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
7918 If it is non-nil, run timers. Use an unwind-protect to requeue
7919 the events that were read ahead.
7920 (popup_get_selection_unwind): New subroutine.
7921 (popup_get_selection_queue): File-scope variable now holds that queue.
7922 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
7923 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
7924 Use an unwind-protect to pop down the dialog box.
7925 (xdialog_show_unwind): New subroutine implements that.
f02cac82 7926
048addec
JD
7927 * xdisp.c (row_containing_pos): Change exit test using last_y.
7928 (try_window_id): Abort if row_containing_pos returns null.
f02cac82 7929
048addec
JD
7930 * lread.c (load_error_handler): New function.
7931 (Fload): Handle errors in Fsubstitute_in_file_name.
7932 Don't expect Fsignal to return.
f02cac82 7933
048addec
JD
7934 * eval.c: Errors and throws work right with interrupt blocking.
7935 (struct catchtag): New elt interrupt_input_blocked.
7936 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
7937 (internal_catch, Fcondition_case, internal_condition_case)
7938 (internal_condition_case_1, internal_condition_case_2): Save it.
7939 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
f02cac82 7940
048addec 7941 * editfns.c (Fformat): Add parens.
f02cac82 7942
048addec
JD
7943 * dired.c (file_name_completion): Fix that change.
7944 Delete special quit-handling code; just use QUIT.
f02cac82 7945
048addec 79462002-12-21 Tak Ota <Takaaki.Ota@am.sony.com> (tiny change)
f02cac82 7947
048addec
JD
7948 * dired.c (file_name_completion): Close directory on error
7949 just as in directory_files_internal.
1a590729 7950
048addec 79512002-12-19 David Kastrup <David.Kastrup@t-online.de>
1a590729 7952
048addec
JD
7953 * window.c (Fset_window_configuration): Set old_point to correct
7954 value when new_current_buffer == current_buffer.
f02cac82 7955
048addec 79562002-12-17 Ben Key <bkey1@tampabay.rr.com>
2308af15 7957
048addec
JD
7958 Revisited my earlier fix for the following entry in etc/PROBLEMS:
7959 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
7960 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
9785d95b 7961
048addec
JD
7962 These changes were in part based upon suggestions made by Peter
7963 'Luna' Runestig [peter@runestig.com].
9785d95b 7964
048addec
JD
7965 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token,
7966 g_b_init_get_token_information, g_b_init_lookup_account_sid,
6bdb309a 7967 g_b_init_get_sid_identifier_authority ): Add several static
048addec 7968 global variables.
9785d95b 7969
048addec
JD
7970 * w32.c (globals_of_w32): New function. Used to initialize those
7971 global variables that must always be initialized on startup even
7972 when the global variable initialized is non zero. Its primary
7973 purpose at this time is to set the global variables
7974 g_b_init_is_windows_9x, g_b_init_open_process_token,
7975 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
7976 g_b_init_get_sid_identifier_authority to 0 on startup.
7977 Called from main.
9785d95b 7978
048addec
JD
7979 * w32.c (is_windows_9x): Perform initialization only if
7980 g_b_init_is_windows_9x is equal to 0. On initialization set
7981 g_b_init_is_windows_9x equal to 1.
2308af15 7982
048addec
JD
7983 * w32.c (open_process_token): Perform initialization only if
7984 g_b_init_open_process_token is equal to 0. On initialization set
7985 g_b_init_open_process_token equal to 1.
2308af15 7986
048addec
JD
7987 * w32.c (get_token_information): Perform initialization only if
7988 g_b_init_get_token_information is equal to 0. On initialization
7989 set g_b_init_get_token_information equal to 1.
9785d95b 7990
048addec
JD
7991 * w32.c (lookup_account_sid): Perform initialization only if
7992 g_b_init_lookup_account_sid is equal to 0. On initialization
7993 set g_b_init_lookup_account_sid equal to 1.
9785d95b 7994
048addec
JD
7995 * w32.c (get_sid_identifier_authority): Perform initialization
7996 only if g_b_init_get_sid_identifier_authority is equal to 0.
7997 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
9785d95b 7998
f63fd14e 7999 * w32fns.c (globals_of_w32fns): New function. Used to initialize
048addec
JD
8000 those global variables that must always be initialized on startup
8001 even when the global variable initialized is non zero.
8002 Its primary purpose at this time is to initialize the global variable
8003 track_mouse_event_fn.
9785d95b 8004
a64387ee 8005 * w32fns.c (w32_wnd_proc): Remove initialization of
048addec 8006 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
9785d95b 8007
048addec 8008 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
9785d95b 8009
f63fd14e 8010 * w32menu.c (globals_of_w32menu): New function. Used to
048addec
JD
8011 initialize those global variables that must always be initialized
8012 on startup even when the global variable initialized is non zero.
8013 Its primary purpose at this time is to initialize the global
8014 variables get_menu_item_info and set_menu_item_info.
9785d95b 8015
048addec
JD
8016 * w32menu.c (initialize_frame_menubar): Remove initialization of
8017 get_menu_item_info and set_menu_item_info.
9785d95b 8018
048addec 8019 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
9785d95b 8020
048addec
JD
8021 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
8022 Declare them.
9785d95b 8023
048addec
JD
8024 * emacs.c (main): Call globals_of_w32 prior to calling
8025 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
8026 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
8027 is defined.
9785d95b 8028
048addec
JD
8029 * w32term.c (x_update_window_begin): Fix Windows API error
8030 detected by BoundsChecker. Test to determine if
8031 w32_system_caret_hwnd is NULL prior to attempting to use
8032 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
2308af15 8033
048addec
JD
8034 * w32term.c (x_update_window_end): Fix Windows API error
8035 detected by BoundsChecker. Test to determine if
8036 w32_system_caret_hwnd is NULL prior to attempting to use
8037 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
b6da19ef 8038
048addec 80392002-12-17 Kenichi Handa <handa@m17n.org>
b6da19ef 8040
048addec
JD
8041 * coding.c (coding_system_require_warning): New variable.
8042 (syms_of_coding): DEFVAR it.
b6da19ef 8043
048addec 8044 * coding.h (coding_system_require_warning): Extern it.
b6da19ef 8045
048addec
JD
8046 * fileio.c (choose_write_coding_system): Even if
8047 Vcoding_system_for_write is non-nil, if
8048 coding_system_require_warning is nonzero, call
8049 Vselect_safe_coding_system_function.
bfcf6dbe 8050
048addec 80512002-12-17 Markus Rost <rost@math.ohio-state.edu>
bfcf6dbe 8052
048addec
JD
8053 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
8054 (lisp): Add font-core.
2c568af5 8055
048addec 80562002-12-13 Stefan Monnier <monnier@cs.yale.edu>
2c568af5 8057
048addec
JD
8058 * textprop.c (text_read_only): New arg `propval'.
8059 (get_char_property_and_overlay): Remove unused var `next_overlay'.
8060 (verify_interval_modification): Use text_read_only's new arg.
b8c6225c 8061
048addec 80622002-12-13 Kenichi Handa <handa@m17n.org>
b8c6225c 8063
048addec 8064 * coding.c (Funencodable_char_position): Set pend correctly.
706ddb8f 8065
048addec 80662002-12-12 Jason Rumney <jasonr@gnu.org>
706ddb8f 8067
048addec
JD
8068 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
8069 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
8070 Be more careful about when help_events are generated.
96720f09 8071
048addec 80722002-12-12 Steven Tamm <steventamm@mac.com>
96720f09 8073
048addec
JD
8074 * macterm.c (mac_check_for_quit_char): Correctly set the
8075 modifiers of the event to 0.
8076 * mac.c (sys_select): Duplicate rfds before calling select to
8077 ensure that rfds survive the while loop.
e5ae1c49 8078
048addec 80792002-12-11 Kim F. Storm <storm@cua.dk>
e5ae1c49 8080
048addec
JD
8081 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
8082 row_containing_pos returned NULL.
2eb46b2d 8083
048addec 80842002-12-10 Steven Tamm <steventamm@mac.com>
2eb46b2d 8085
6bdb309a 8086 * mac.c (sys_read): Fix sys_read to not call select if IO is
048addec 8087 non-blocking.
6bdb309a 8088 (sys_select): Fix sys_select to not use a timeout larger than
048addec 8089 the one given.
b11f1d8a 8090
048addec 80912002-12-10 Juanma Barranquero <lektu@terra.es>
b11f1d8a 8092
048addec 8093 * editfns.c (Fformat): Use alloca, not _alloca.
d8528226 8094
048addec 80952002-12-09 Richard M. Stallman <rms@gnu.org>
d8528226 8096
048addec
JD
8097 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
8098 as the last thing.
a4ac5b17 8099
048addec 81002002-12-09 Dave Love <fx@gnu.org>
a4ac5b17 8101
048addec 8102 * s/sol2-8.h: Removed. (Not necessary.)
ac42d7b9 8103
048addec 81042002-12-09 Matthew Swift <swift@alum.mit.edu>
ac42d7b9 8105
048addec
JD
8106 * editfns.c (Fformat): Handle precision in string conversion
8107 specifiers like libc functions do (ie, print at most that many
8108 characters).
85cce843 8109
048addec 81102002-12-08 Richard M. Stallman <rms@gnu.org>
85cce843 8111
048addec
JD
8112 * xdisp.c (row_containing_pos): Check more carefully
8113 whether charpos is really in the row before returning it.
0d4d26a7 8114
048addec 81152002-12-07 Steven Tamm <steventamm@mac.com>
0d4d26a7 8116
048addec 8117 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
b11f1d8a 8118
048addec
JD
8119 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
8120 each stack frame. This may change as it could be time consuming.
0d4d26a7 8121
048addec
JD
8122 * macterm.c (mac_check_for_quit_char, quit_char_comp)
8123 (init_quit_char_handler, mac_determine_quit_char_modifiers)
6bdb309a 8124 (mac_initialize): Add code to check for pressing of quit_char
048addec 8125 in the OS event queue.
b11f1d8a 8126
048addec
JD
8127 * mac.c (sys_select): Call mac_check_for_quit_char every second
8128 while blocking on select.
0d4d26a7 8129
048addec
JD
8130 * mac.c (sys_read): Use sys_select to test for input first
8131 before calling read, to allow C-g to break.
9252f7bc 8132
048addec 81332002-12-07 Richard M. Stallman <rms@gnu.org>
9252f7bc 8134
048addec 8135 * minibuf.c (Fcompleting_read): Doc fix.
9252f7bc 8136
048addec 8137 * lread.c (syms_of_lread) <load-history>: Doc fix.
9252f7bc 8138
048addec 8139 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
9252f7bc 8140
048addec
JD
8141 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
8142 autoload.
9252f7bc 8143
048addec 8144 * data.c (Fdefalias): Record in load-history redefining an autoload.
9252f7bc 8145
048addec 8146 * alloca.c: Undo ifdef change accidentally made on 12-04.
bfa261c0 8147
048addec 81482002-12-06 Francesco Potorti` <pot@gnu.org>
bfa261c0 8149
048addec 8150 * xfns.c (png_load): Avoid double gamma correction for PNG images.
c5992177 8151
048addec 81522002-12-04 Richard M. Stallman <rms@gnu.org>
c5992177 8153
048addec 8154 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 8155
048addec 8156 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 8157
048addec 8158 * alloca.c: Don't use #error.
02d588e2 8159
048addec 81602002-12-03 Dave Love <fx@gnu.org>
02d588e2 8161
048addec
JD
8162 * buffer.c (Qucs_set_table_for_input): New.
8163 (Fget_buffer_create): Use it.
8164 (Qset_buffer_major_mode_hook): Deleted.
8165 (Fset_buffer_major_mode): Revert previous change.
8166 (init_buffer_once): Intern ucs-set-table-for-input.
8167 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
8168 Add &Qucs_set_table_for_input.
451e2697 8169
048addec 81702002-12-03 Andreas Schwab <schwab@suse.de>
451e2697 8171
048addec
JD
8172 * callint.c (Fcall_interactively): Use next_event only if less
8173 than key_count.
72742a99 8174
048addec 81752002-12-02 Andrew Choi <akochoi@shaw.ca>
72742a99 8176
048addec
JD
8177 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
8178 names to 255 characters.
72742a99 8179
048addec
JD
8180 * macterm.c (XTread_socket): If all frames have been collapsed,
8181 expand the first one before handling drag-and-drop events.
72742a99 8182
048addec
JD
8183 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
8184 which is detected by autoconf.
40e6ff95 8185
048addec 81862002-12-01 Steven Tamm <steventamm@mac.com>
40e6ff95 8187
048addec
JD
8188 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
8189 offset in two hints table to allow prebinding to be redone and
8190 allow the executable to be stripped.
c02138c6 8191
048addec 81922002-11-29 Dave Love <fx@gnu.org>
c02138c6 8193
048addec
JD
8194 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
8195 already provided.
0e47bbf7 8196
048addec 81972002-11-29 Richard M. Stallman <rms@gnu.org>
0e47bbf7 8198
048addec
JD
8199 * xdisp.c (start_display): Check more intelligently for
8200 whether the line is continued.
8201 (move_it_vertically_backward): Clear it->continuation_lines_width.
44129dcb 8202
048addec 82032002-11-28 Dave Love <fx@gnu.org>
44129dcb 8204
048addec
JD
8205 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
8206 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
f707342d 8207
048addec 82082002-11-27 Steven Tamm <steventamm@mac.com>
f707342d 8209
048addec
JD
8210 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
8211 more descriptive error output from lread.c:Fload upon most require
8212 cycles during boostrapping.
1637fd2c 8213
048addec 82142002-11-27 Jason Rumney <jasonr@gnu.org>
1637fd2c 8215
048addec
JD
8216 * fileio.c (Finsert_file_contents): Give a more appropriate error
8217 for files bigger than 2Gb when off_t is 32 bit.
1637fd2c 8218
048addec
JD
8219 * dired.c (Ffile_attributes): Don't return negative file sizes for
8220 files bigger than 2Gb when off_t is 32 bit.
540c2788 8221
048addec 82222002-11-27 Dave Love <fx@gnu.org>
6b2fd6ea 8223
048addec 8224 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6b2fd6ea 8225
048addec
JD
8226 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
8227 Test GETPGRP_VOID instead.
8228 [BSD_TERMIOS]: Remove definitions (never used).
6b2fd6ea 8229
048addec
JD
8230 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
8231 Don't define.
8232 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
540c2788 8233
048addec 8234 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
8cc03716 8235
048addec 82362002-11-25 Jason Rumney <jasonr@gnu.org>
8cc03716 8237
048addec
JD
8238 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
8239 supported.
4042a81a 8240
048addec 82412002-11-25 Dave Love <fx@gnu.org>
4042a81a 8242
048addec 8243 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
4042a81a 8244
048addec 8245 * Makefile.in (TEMACS_LDFLAGS): Update last change.
be4ee72f 8246
048addec 82472002-11-25 Andreas Schwab <schwab@suse.de>
be4ee72f 8248
048addec 8249 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
82122254 8250
048addec 82512002-11-24 Steven Tamm <steventamm@mac.com>
82122254 8252
048addec
JD
8253 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
8254 determine the size of pointers alloced in unexed space instead
8255 of using possibly invalid emacs_zone pointers. This fixes the
8256 binary incompatibility problems caused by updates to libSystem.B.
c1ee53bc 8257
048addec 82582002-11-24 Richard M. Stallman <rms@gnu.org>
c1ee53bc 8259
048addec 8260 * search.c (Fstring_match): Doc fix.
c1ee53bc 8261
048addec
JD
8262 * callint.c (Fcall_interactively): If a command fails because
8263 `*' detects a read-only buffer, but RECORD_FLAG is set,
8264 record it anyway if the args don't actually do tty input.
5598c32e 8265
048addec 82662002-11-22 Dave Love <fx@gnu.org>
5598c32e 8267
048addec 8268 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
5598c32e 8269
048addec
JD
8270 * keyboard.c (interrupt_signal): Provide forward declaration.
8271 (kbd_buffer_store_event): Don't declare interrupt_signal.
5598c32e 8272
048addec 8273 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
97b14e22 8274
048addec 82752002-11-21 Richard M. Stallman <rms@gnu.org>
97b14e22 8276
048addec
JD
8277 * eval.c (interactive_p): Skip any number of bytecode
8278 and special form frames, in any order.
516eea8e 8279
048addec 82802002-11-20 Jason Rumney <jasonr@gnu.org>
516eea8e 8281
048addec
JD
8282 * w32fns.c (convert_mono_to_color_image): New function.
8283 (xbm_load, xbm_load_image): Use it when foreground or background
8284 is explicitly set.
04dbfa08 8285
048addec 82862002-11-19 Dave Love <fx@gnu.org>
04dbfa08 8287
048addec 8288 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
b4aebae3 8289
048addec 82902002-11-18 Jason Rumney <jasonr@gnu.org>
b4aebae3 8291
048addec
JD
8292 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
8293 (XPutPixel): Swap blue and red.
8294 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
8295 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
8296 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
8297 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
1998560a 8298
048addec 82992002-11-18 Dave Love <fx@gnu.org>
d824beee 8300
048addec 8301 * m/orion105.h (HAVE_ALLOCA): Don't define.
d824beee 8302
048addec 8303 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
d824beee 8304
048addec 8305 * m/intel386.h: Don't include alloca.h or define alloca.
d824beee 8306
048addec
JD
8307 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
8308 malloc, realloc, calloc.
d824beee 8309
048addec
JD
8310 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
8311 (bcmp): Don't define.
d824beee 8312
048addec 8313 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
d824beee 8314
048addec 8315 * m/amdahl.h: Don't define LIB_STANDARD.
d824beee 8316
048addec 8317 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
d824beee 8318
048addec 8319 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
d824beee 8320
048addec
JD
8321 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
8322 Don't include alloca.h.
d824beee 8323
048addec 8324 * s/aix3-2.h (HAVE_FSYNC): Don't define.
1998560a 8325
048addec 8326 * regex.c (_GNU_SOURCE): Don't define.
1998560a 8327
048addec 8328 * process.c (_GNU_SOURCE): Don't define.
1998560a 8329
048addec 8330 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
8704a6ab 8331
048addec 83322002-11-18 Markus Rost <rost@math.ohio-state.edu>
8704a6ab 8333
048addec 8334 * s/sol2-8.h: Include sol2-6.h.
6ae2cd57 8335
048addec 83362002-11-18 Miles Bader <miles@gnu.org>
6ae2cd57 8337
048addec
JD
8338 * dispextern.h (struct face): Add `overstrike' field.
8339 * xterm.c (x_draw_glyph_string_foreground)
8340 (x_draw_composite_glyph_string_foreground): Implement overstriking.
8341 * xfaces.c (load_face_font): Set `face->overstrike' based on
8342 result from choose_face_font.
8343 (best_matching_font, choose_face_font): Add `needs_overstrike'
8344 argument, and use it to return whether overstriking is desirable
8345 for this face/font combo.
8346 (set_font_frame_param: Pass new argument to choose_face_font.
6ae2cd57 8347
048addec 83482002-11-17 Ben Key <BKey1@tampabay.rr.com>
3582b6a3 8349
048addec
JD
8350 This change is my fix for the following entry in etc/PROBLEMS:
8351 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
8352 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
f60ae425 8353
048addec
JD
8354 * w32.c: Added wrapper functions around the win32 API functions
8355 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
8356 GetSidIdentifierAuthority. These wrapper functions serve two
8357 purposes:
8358 1. They ensure that the wrapped function can never be called
8359 when Emacs is running on an operating system on which they are
8360 not supported (Microsoft Windows 95 / 98 / ME).
8361 2. They call the wrapped functions via function pointers rather
8362 than calling them directly. This avoids taking advantage of the
8363 undocumented fact that although these functions are not supported
8364 in the 9x branch of Microsoft Windows, the functions do exist in
8365 the version of advapi32.dll that is found in the 9x branch of
8366 Microsoft Windows.
f60ae425 8367
6bdb309a 8368 * w32.c (init_user_info): Replace the calls to the win32 API
048addec
JD
8369 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
8370 and GetSidIdentifierAuthority with calls to the newly added
8371 wrapper functions.
f60ae425 8372
048addec
JD
8373 * w32.h: Added extern declarations for the following functions:
8374 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
8375 syms_of_w32menu, and void syms_of_fontset.
f60ae425 8376
6bdb309a 8377 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
048addec
JD
8378 function pointer track_mouse_event_fn in the handler for the
8379 WM_SETFOCUS message.
3582b6a3 8380
6bdb309a 8381 * w32menu.c (initialize_frame_menubar): Add code to
048addec
JD
8382 reinitialize the function pointers set_menu_item_info and
8383 get_menu_item_info.
f60ae425 8384
048addec 83852002-11-17 Ben Key <BKey1@tampabay.rr.com>
f60ae425 8386
048addec
JD
8387 * sound.c: Added a partial implementation of play-sound-internal
8388 for Microsoft Windows. Added various #ifdef / #else / #endif
8389 code blocks to separate the code that will compile under
8390 Microsoft Windows from the code that is specific to Gnu/Linux.
8391 Moved several blocks of code around to make this separation of code
8392 into Windows compatible and Gnu/Linux compatible code blocks easier.
f60ae425 8393
048addec 8394 * makefile.w32-in: Include sound.c and link with WinMM.lib.
a0f0878d 8395
048addec
JD
8396 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
8397 added support for play-sound-internal under Windows would be
8398 included in the build of Emacs.
517f42a0 8399
048addec 84002002-11-16 Jason Rumney <jasonr@gnu.org>
517f42a0 8401
048addec 8402 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
517f42a0 8403
048addec 8404 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
a0f0878d 8405
048addec 84062002-11-15 Stefan Monnier <monnier@cs.yale.edu>
a0f0878d 8407
048addec
JD
8408 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
8409 (adjust_point_for_property): Move out of display and invisible even if
8410 we were already inside before (in case a property was added while
8411 we weren't looking). Be more careful when handling invisible props.
8412 Skip invisible text as if it really wasn't there at all.
aab83f91 8413
048addec 84142002-11-15 Jason Rumney <jasonr@gnu.org>
aab83f91 8415
048addec
JD
8416 * w32term.c (x_draw_image_foreground)
8417 (w32_draw_image_foreground_1): Use standard copy and invert
8418 operations to draw images.
aab83f91 8419
048addec
JD
8420 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
8421 depth of 1.
8422 (xbm_read_bitmap_data): Invert bits as xbm is read in.
8423 (XPutPixel): Don't invert bits here.
a4478a76 8424
048addec 84252002-11-15 Jason Rumney <jasonr@gnu.org>
a4478a76 8426
048addec
JD
8427 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
8428 (w32_draw_image_foreground_1): Handle image masks.
8429 (x_draw_image_glyph_string): Don't BitBlt transparently.
a4478a76 8430
048addec
JD
8431 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
8432 (x_from_xcolors): Adjust RGB values for W32.
8433 (image_background, image_background_transparent)
8434 (postprocess_image, x_to_xcolors, x_disable_image)
8435 (x_build_heuristic_mask): Adapt for W32 and enable.
8436 (x_create_x_image_and_pixmap): Mark images with palettes as such.
8437 (xbm_load): Remove unused variable.
03670a65 8438
048addec 84392002-11-14 Richard M. Stallman <rms@gnu.org>
03670a65 8440
048addec 8441 * buffer.c (syms_of_buffer): Doc fix.
59daa29a 8442
048addec 84432002-11-14 Dave Love <fx@gnu.org>
59daa29a 8444
048addec 8445 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
59daa29a 8446
048addec
JD
8447 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
8448 * xmenu.c (unuse_menu_items, digest_single_submenu):
8449 * xfns.c (x_put_x_image):
8450 * xdisp.c (message2_nolog, set_message):
8451 * undo.c (record_point):
8452 * terminfo.c (tparam):
8453 * syntax.c (scan_sexps_forward):
8454 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
8455 * composite.c (update_compositions):
8456 * cm.c (calccost, cmgoto):
8457 * charset.c (c_string_width): Declare all args (per C99).
59daa29a 8458
048addec 8459 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
59daa29a 8460
048addec
JD
8461 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
8462 Don't declare.
59daa29a 8463
048addec 8464 * emacs.c (main) [!VMS]: Avoid third arg.
59daa29a 8465
048addec
JD
8466 * fns.c (Fcopy_sequence): Doc fix.
8467 (Fmap_char_table): Cast `call2'.
3947677c 8468
048addec
JD
84692002-11-14 Francesco Potorti` <pot@gnu.org>
8470
8471 * s/sol2-8.h: New file.
8472
84732002-11-14 Kim F. Storm <storm@cua.dk>
8474
8475 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
8476 dependency on `risky-local-variable' and the :propertize form.
8477
84782002-11-12 Stefan Monnier <monnier@cs.yale.edu>
8479
8480 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
8481
8482 * syntax.c (scan_sexps_forward): Undo last patch.
8483 Use a more obvious fix: check eob before updating the syntax table.
8484
84852002-11-09 Stefan Monnier <monnier@cs.yale.edu>
8486
8487 * syntax.c (scan_sexps_forward): Update syntax table before reading
8488 a char rather than after so we don't update the table past eob.
8489
84902002-11-09 Dave Love <fx@gnu.org>
8491
8492 * buffer.c (Fset_buffer_major_mode): Fix last change.
8493
8494 * regex.c (regexec): Fix pmatch declaration.
8495
8496 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
8497
8498 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
8499 to self-inserting characters.
8500 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
8501
8502 * coding.c (Vtranslation_table_for_input): New.
8503 (syms_of_coding): DEFVAR it.
8504
85052002-11-08 Juanma Barranquero <lektu@terra.es>
8506
8507 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
8508 window.
8509
85102002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8511
6bdb309a 8512 * process.c (Fformat_network_address): Remove unused locals p,
048addec
JD
8513 cp, and i.
8514
85152002-11-06 Dave Love <fx@gnu.org>
8516
8517 * buffer.c (Qset_buffer_major_mode_hook): New.
8518 (Fset_buffer_major_mode): Use it.
8519
85202002-11-06 Richard M. Stallman <rms@gnu.org>
8521
8522 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
8523 and stop_polling.
8524
8525 * process.c (wait_reading_process_input):
8526 Test POLLING_PROBLEM_IN_SELECT, not hpux.
8527 Avoid initialization for auto Lisp_Object var.
8528
8529 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
8530
8531 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
8532
85332002-11-05 Richard M. Stallman <rms@gnu.org>
8534
8535 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
8536
8537 * callint.c (Fcall_interactively): New local filter_specs.
8538 (Fcall_interactively): Check for progn as well as let.
8539 Add a gcpro.
8540 (Qprogn): New variable.
8541 (syms_of_callint): Staticpro and init Qprogn.
8542
85432002-11-04 John Paul Wallington <jpw@shootybangbang.com>
8544
8545 * lread.c (Feval_buffer): Doc fix.
8546
85472002-11-04 Dave Love <fx@gnu.org>
8548
8549 * keyboard.c (read_char): Always translate iff
8550 Vkeyboard_translate_table is a char table and c is valid.
8551
8552 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
8553 and fix C types.
8554
85552002-11-03 Stefan Monnier <monnier@cs.yale.edu>
8556
8557 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
8558
8559 * editfns.c (get_pos_property): Don't hardcode Qfield.
8560
8561 * keyboard.c (adjust_point_for_property): Handle `display' prop on
8562 overlays. Also handle `invisible' prop.
8563
85642002-11-02 Stefan Monnier <monnier@cs.yale.edu>
8565
8566 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
8567 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
8568
85692002-11-01 Andreas Schwab <schwab@suse.de>
8570
8571 * editfns.c (Fmessage): Revert last change to properly handle %%.
8572
85732002-11-01 Stefan Monnier <monnier@cs.yale.edu>
8574
8575 * xmenu.c (unuse_menu_items): New fun.
8576 (menu_items_inuse): New var.
8577 (syms_of_xmenu): Initialize it.
8578 (init_menu_items): Use it to detect re-entrance.
8579 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
8580 (Fx_popup_menu): Remove spurious XSETFRAME.
8581
8582 * editfns.c (find_field): Make an exception for nil fields.
8583
85842002-11-01 Dave Love <fx@gnu.org>
8585
8586 * m/gec63.h: Deleted.
8587
85882002-10-31 Dave Love <fx@gnu.org>
8589
8590 * xterm.c (XTread_socket): Fix last change.
8591 (xaw_scroll_callback): Cast call_data to long to avoid warning.
8592
85932002-10-31 Stefan Monnier <monnier@cs.yale.edu>
8594
8595 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
8596
85972002-10-30 Stefan Monnier <monnier@cs.yale.edu>
8598
8599 * editfns.c (overlays_around, get_pos_property): New funs.
8600 (find_field): Use them.
8601 Also be careful not to modify POS before its last use.
8602 (Fmessage): Don't Fformat if there's nothing to format.
8603
86042002-10-30 Dave Love <fx@gnu.org>
8605
8606 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
8607 [HAVE_PTY_H]; Include pty.h.
8608
8609 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
8610
8611 * xterm.c (Qeql): Declare.
8612 (Vx_keysym_table): New.
8613 (syms_of_xterm): Initialize it.
8614 (XTread_socket): Use it. Deal with ASCII keysyms.
8615 (XSetIMValues) [HAVE_X11R6]: Prototype.
8616
8617 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
8618 (lispy_kana_keys): Comment out.
8619 (make_lispy_event) [XK_kana_A]: Comment out.
8620 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
8621 Fix sprintf call.
8622
8623 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
8624 regexp.h change).
8625 (TERMINFO, LIBS_TERMCAP): Define.
8626
8627 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
8628 (bcmp): Define conditional on HAVE_BCMP.
8629 (NO_SIOCTL_H): Don't define.
8630 (TIOCSIGSEND): Don't make conditional on IRIX6.
8631
8632 * s/sol2-5.h: Don't include strings.h.
8633 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
8634
8635 * s/irix6-0.h (IRIX6): Don't define.
8636 (bcopy, bcmp, bzero): Don't undef.
8637
8638 * s/irix6-5.h: Don't include strings.h.
8639 (IRIX6): Don't define.
8640 (bcopy, bcmp, bzero): Don't undef.
8641
8642 * syntax.c (Fforward_comment): Doc fix.
8643
86442002-10-29 Kim F. Storm <storm@cua.dk>
8645
8646 * process.c (Fsignal_process): Allow PROCESS to be specified by
8647 name in addition to pid (as integer or string).
8648
86492002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
8650
8651 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
8652 environments.
8653
86542002-10-27 Kim F. Storm <storm@cua.dk>
8655
8656 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
8657
8658 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
8659
8660 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
8661
8662 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
8663
86642002-10-26 Richard M. Stallman <rms@gnu.org>
8665
8666 * editfns.c (Fformat): Detect invalid format letters for floats.
8667
86682002-10-25 Kenichi Handa <handa@m17n.org>
8669
8670 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
8671 (x_set_title): Likewise.
8672
86732002-10-25 Juanma Barranquero <lektu@terra.es>
8674
8675 * macgui.h:
8676 * w32gui.h: Remove definition of XColor.
8677
8678 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
8679
86802002-10-24 Kim F. Storm <storm@cua.dk>
8681
8682 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
8683 Callers changed (supply dummy arg).
8684
8685 * lisp.h (get_window_cursor_type): Update prototype.
8686
8687 * w32term.c (x_display_and_set_cursor): Get active_cursor from
8688 get_window_cursor_type to track system caret.
8689
86902002-10-24 Kim F. Storm <storm@cua.dk>
8691
8692 * process.c (Fformat_network_address): New function.
8693 (syms_of_process): Defsubr it.
8694 (list_processes_1): Use it to format :local/:remote address if
f9711de4 8695 service/host is not set; before Emacs would crash in that case.
048addec
JD
8696 (Fmake_network_process): Don't use Ffind_operation_coding_system
8697 to setup coding system if host or service is not set.
8698
86992002-10-23 Juanma Barranquero <lektu@terra.es>
8700
8701 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
8702
8703 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
8704 COLORREF.
8705
8706 * macgui.h:
8707 * w32gui.h: Add definition of XColor.
8708
8709 * macfns.c:
8710 * w32fns.c:
8711 * xfaces.c: Remove definition of XColor.
8712
87132002-10-22 Stefan Monnier <monnier@cs.yale.edu>
8714
8715 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
8716
8717 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
8718 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
8719 window if it is dedicated.
8720 (Fshrink_window): Add preserve_before as was done for enlarge_window.
8721 (Vspecial_display_function): Update docstring.
8722
8723 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
8724 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
8725 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
8726
87272002-10-21 Stefan Monnier <monnier@cs.yale.edu>
8728
8729 * casefiddle.c (casify_region): Don't treat a prefix char as part
8730 of a word when at the beginning.
8731
87322002-10-17 Juanma Barranquero <lektu@terra.es>
8733
8734 * lread.c (syms_of_lread): Fix typos.
8735
87362002-10-17 Dave Love <fx@gnu.org>
8737
8738 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
8739
87402002-10-16 Richard M. Stallman <rms@gnu.org>
8741
8742 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
8743
87442002-10-14 Juanma Barranquero <lektu@terra.es>
8745
8746 * w16select.c (syms_of_win16select): Fix docstring for
8747 `selection-coding-system'.
8748
8749 * w32select.c (syms_of_w32select): Likewise.
8750
87512002-10-14 Stefan Monnier <monnier@cs.yale.edu>
8752
8753 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
8754 a backslash-quoted char.
8755 (scan_lists, scan_sexps_forward): Pacify the compiler.
8756
87572002-10-13 Richard M. Stallman <rms@gnu.org>
8758
8759 * window.c (window_scroll): Set immediate_quit.
8760
8761 * print.c (print): When backquote form is the car of a list,
8762 output in old style. Use old_backquote_output to output all
8763 comma forms inside it in old style too.
8764
8765 * buffer.h (struct buffer): Move `undo_list' down below `name'.
8766
87672002-10-11 Markus Rost <rost@math.ohio-state.edu>
8768
8769 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
8770 batch mode).
8771
8772 * lread.c (Fload): Doc fix (load-suffixes).
8773
87742002-10-10 Steven Tamm <steventamm@mac.com>
8775
8776 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
8777 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
8778 Also switch the default to Qnil from Qt.
8779
87802002-10-08 Kenichi Handa <handa@m17n.org>
8781
8782 * coding.c (code_convert_region): When we need more GAP for
8783 conversion, pay attention to the case that coding->produced is not
8784 greater than coding->consumed.
8785
87862002-10-07 Richard M. Stallman <rms@gnu.org>
8787
8788 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
8789
87902002-10-06 Andrew Choi <akochoi@shaw.ca>
8791
8792 * macmenu.c (mac_menu_show): Add j to count menu items; match
8793 menu_item_selection to it to find selected item.
8794
87952002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8796
8797 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
8798 cases. The correct fix is to pass ReparentNotify to Xt.
8799 The shell widget interprets ConfigureNotify differently depending
8800 on if it has been reparented or not.
8801
88022002-10-05 Markus Rost <rost@math.ohio-state.edu>
8803
8804 * editfns.c (Fformat_time_string): Doc fix.
8805
88062002-10-05 John Paul Wallington <jpw@shootybangbang.com>
8807
8808 * fns.c (Flength): Doc fix.
8809
88102002-10-04 Stefan Monnier <monnier@cs.yale.edu>
8811
8812 * keyboard.c (keyremap): New struct.
8813 (read_key_sequence): Use it: globally replace keytran_foo with
8814 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
8815 keytran_next and fkey_next to just `next'.
8816
88172002-10-04 Steven Tamm <steventamm@mac.com>
8818
8819 * macterm.c (keycode_to_xkeysym_table): Change return to be
8820 treated like an X keysym.
8821
88222002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8823
8824 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
8825 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
8826 This is to also handle x/y changes that occur because of a resize.
8827
88282002-10-02 John Paul Wallington <jpw@shootybangbang.com>
8829
8830 * frame.c (Vdelete_frame_functions): New variable.
8831 (syms_of_frame): Initialize and defvar it.
8832 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
8833 it when frame's `tooltip' parameter is non-nil.
8834
8835 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
8836
8837 * w32fns.c (x_create_tip_frame): Likewise.
8838
8839 * macfns.c (x_create_tip_frame): Likewise.
8840
88412002-09-30 Kenichi Handa <handa@m17n.org>
8842
8843 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
8844 -1 before calling ccl_driver.
8845
8846 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
8847 Only when it is non-nil, handle composition sequence.
8848 (setup_coding_system) <0>: Don't force composition handling.
8849
8850 * Makefile.in (lisp, shortlisp): Add utf-16.elc
8851
88522002-09-29 Richard M. Stallman <rms@gnu.org>
8853
8854 * search.c (Freplace_match): Adjust match data for the substitution
8855 just made in the buffer.
8856
8857 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
8858 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
8859
88602002-09-27 Richard M. Stallman <rms@gnu.org>
8861
8862 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
8863 (read_char): Use them. Do all exits thru the end of the function.
8864
88652002-09-27 Kenichi Handa <handa@etl.go.jp>
8866
8867 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
8868 is nil.
8869
88702002-09-26 Richard M. Stallman <rms@gnu.org>
8871
8872 * regex.h (__restrict_arr): Don't define if already defined.
8873
8874 * coding.c (run_pre_post_conversion_on_str):
8875 Save and restore Vdeactivate_mark.
8876
88772002-09-26 John Paul Wallington <jpw@shootybangbang.com>
8878
8879 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
8880
88812002-09-26 Kenichi Handa <handa@etl.go.jp>
8882
8883 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
8884 nonzero, try face's family at first. Otherwise try FAMILY at first.
8885 (choose_face_font): If C is a single byte char or latin-1, call
8886 try_font_list with PREFER_FACE_FAMILY 1.
8887
88882002-09-21 Richard M. Stallman <rms@gnu.org>
8889
8890 * window.c (select_window_1): Don't select frame.
8891 Set frame's selected window only when frame itself is selected.
8892 (Fselect_window): Doc fix.
8893
88942002-09-18 Kim F. Storm <storm@cua.dk>
8895
8896 * process.c (make-network-process): Doc fix (there is no
8897 network-server-log-function hook).
8898
88992002-09-18 Richard M. Stallman <rms@gnu.org>
8900
8901 * print.c (print): Clear out the unused parts of Vprint_number_table.
8902 (syms_of_print): Doc fix for `print-number-table'.
8903
8904 * unexelf.c (unexec): Undo previous change.
8905
89062002-09-17 Andreas Schwab <schwab@suse.de>
8907
8908 * m/alpha.h [LINUX]: Don't define DATA_START.
8909
89102002-09-16 Dave Love <fx@gnu.org>
8911
8912 * unexelf.c (unexec): Deal with .got, reinstating change from
8913 25-08-1999.
8914
89152002-09-13 Richard M. Stallman <rms@gnu.org>
8916
8917 * s/sol2-6.h (UNEXEC): Comment out definition.
8918
8919 * unexsol.c (unexec): Don't downcase first letter of error msg.
8920
8921 * xfaces.c (Fcolor_supported_p): Just one arg is required.
8922
89232002-09-12 Markus Rost <rost@math.ohio-state.edu>
8924
8925 * unexsol.c: Include buffer.h, charset.h, coding.h.
8926
89272002-09-11 Richard M. Stallman <rms@gnu.org>
8928
8929 * unexsol.c: Don't use report_file_error; do it by hand
8930 using dlerror.
8931
8932 * process.c (wait_reading_process_input, both versions):
8933 Before calling turn_on_atimers, call stop_polling.
8934
8935 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
8936
8937 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
8938 we go to too_near_end, call clear_glyph_matrix.
8939 (redisplay_window): After make_cursor_line_fully_visible,
8940 call clear_glyph_matrix and bypass `goto done'.
8941
8942 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
8943 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
8944
89452002-09-10 Richard M. Stallman <rms@gnu.org>
8946
8947 * fileio.c (Fdo_auto_save): Catch error making directory.
8948 Only call push_message if we need to.
8949 At the same time, make an unwind-protect to pop it.
8950 Rename local message_p to old_message_p.
8951 (do_auto_save_make_dir, do_auto_save_eh): New functions.
8952 (do_auto_save_unwind): Don't call pop_message.
8953
8954 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
8955
8956 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
8957
8958 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
8959
8960 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
8961
89622002-09-10 Stefan Monnier <monnier@cs.yale.edu>
8963
8964 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
8965 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
8966 (re_match_2_internal): Be more careful with infinite loops.
8967
89682002-09-10 Kim F. Storm <storm@cua.dk>
8969
8970 * macros.c (end_kbd_macro): New function.
8971 (Fend_kbd_macro): Use it.
8972
8973 * macros.h (end_kbd_macro): Declare extern.
8974
8975 * keyboard.c (Fdiscard_input): If defining keyboard macro,
8976 end and save it instead of discarding it.
8977
89782002-09-09 Markus Rost <rost@math.ohio-state.edu>
8979
8980 * s/sol2-6.h: Fix typo. Add comment.
8981
89822002-09-09 Richard M. Stallman <rms@gnu.org>
8983
8984 * regex.c (regnum_t): Use signed int, not unsigned int.
8985
8986 * s/sol2-6.h: New file.
8987
8988 * s/sol2-5.h (UNEXEC): Definition deleted.
8989
89902002-09-08 Kim F. Storm <storm@cua.dk>
8991
8992 * macros.c (executing_macro_index): Change type to EMACS_INT.
8993 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
8994
8995 * macros.h (executing_macro_index): Change type to EMACS_INT.
8996
89972002-09-06 Richard M. Stallman <rms@gnu.org>
8998
8999 * casetab.c (set_case_table): Make canon table point to eqv table.
9000
90012002-09-06 Juanma Barranquero <lektu@terra.es>
9002
9003 * coding.c (syms_of_coding): Fix spacing.
9004
9005 * composite.c (Fcompose_region_internal)
9006 (Fcompose_string_internal): Likewise.
9007
9008 * data.c (Flsh): Likewise.
9009
9010 * fontset.c (Fset_fontset_font): Likewise.
9011
9012 * macfns.c (Fx_server_max_request_size): Likewise.
9013
9014 * w16select.c (syms_of_win16select): Likewise.
9015
9016 * w32select.c (syms_of_w32select): Likewise.
9017
9018 * xselect.c (syms_of_xselect): Likewise.
9019
90202002-09-05 Richard M. Stallman <rms@gnu.org>
9021
9022 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
9023 call EXTEND_RANGE_TABLE and return a proper value.
9024 (set_image_of_range): Don't call set_image_of_range_1
9025 if no TRANSLATE or if range includes all of Latin-1.
9026 Only call it for the Latin-1 part of the range.
9027 For other cases, make two separate ranges,
9028 one for the original specified characters and one for
9029 their case-conversions.
9030
90312002-09-04 Richard M. Stallman <rms@gnu.org>
9032
9033 * s/sol2-5.h (UNEXEC): Use unexsol.o.
9034
9035 * window.c (displayed_window_lines): Correct for one-off bug
9036 in HEIGHT on non-window displays.
9037
9038 * regex.c (set_image_of_range_1): New function.
9039 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
9040 Return a value to indicate running out of memory.
9041 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
9042 (extend_range_table_work_area): New subroutine.
9043 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
9044 Different calling conventions, and used from set_image_of_range{,_1}.
9045 (IMMEDIATE_QUIT_CHECK): Definitions moved.
9046
90472002-09-04 Juanma Barranquero <lektu@terra.es>
9048
9049 * makefile.w32-in: All dependencies updated.
9050
90512002-09-01 Richard M. Stallman <rms@gnu.org>
9052
9053 * unexsol.c: New file.
9054
9055 * xfns.c (Qbox): Declare external, don't define.
9056
9057 * xdisp.c (redisplay_window) <force-start case>:
9058 If point is on semi-visible last line, reposition
9059 it at previous line.
9060
9061 * alloc.c (display_malloc_warning): Use display-warning.
9062 (malloc_warning_1): Function deleted.
9063
9064 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
9065
9066 * lread.c (read1): Handle #! by skipping the line.
9067
90682002-08-31 Richard M. Stallman <rms@gnu.org>
9069
9070 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
9071 Don't include LDFLAGS.
9072 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
9073
90742002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
9075
9076 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
9077 member of x_display_info unless we compile for some window system.
9078
90792002-08-31 Kim F. Storm <storm@cua.dk>
9080
9081 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
9082 (get_window_cursor_type): Don't use them.
9083 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
9084
90852002-08-30 Kenichi Handa <handa@etl.go.jp>
9086
9087 * xdisp.c (get_next_display_element): Fix previous change.
9088
90892002-08-30 Andrew Choi <akochoi@shaw.ca>
9090
9091 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
9092 (expose_window): Use it to fix the display of overlapping
9093 rows (merge code from xterm.c).
9094
9095 * macfns.c (Qbox): Add extern declaration.
9096
90972002-08-30 Juanma Barranquero <lektu@terra.es>
9098
9099 * w32fns.c (Qbox): Make extern.
9100 (syms_of_w32fns): Remove initialization of Qbox.
9101
91022002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
9103
9104 * xfns.c (Fx_open_connection): Fix error message.
9105
91062002-08-30 Kim F. Storm <storm@cua.dk>
9107
9108 The following changes consolidates the handling of the cursor
9109 type in xdisp.c, moving duplicate code and functionality from
9110 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
9111
9112 * frame.h (enum text_cursor_kinds): Consolidated here.
9113 Added DEFAULT_CURSOR value.
9114 (struct frame) <desired_cursor, cursor_width>
9115 <blink_off_cursor, blink_off_cursor_width>: New fields.
9116 Consolidated from output_x, output_w32 and output_mac structs.
9117 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
9118 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
9119
9120 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
9121 Variables consolidated here.
9122 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
9123 (Vcursor_in_non_selected_windows): Renamed from
9124 cursor_in_non_selected_windows and changed to Lisp_Object.
9125 (syms_of_xdisp): Define and staticpro new and moved variables.
9126 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
9127 consolidated here. Recognize Qhollow setting.
9128 (set_frame_cursor_types): New function to set frame cursor types
9129 based on the frame parameters.
9130 (get_window_cursor_type): New function to calculate new cursor
9131 type and width for the specified window. Based on duplicated
9132 code consolidated here.
9133 Enhancements: cursor-in-non-selected-windows may be a cursor type,
9134 check buffer-local alternate-cursor-type and blink-cursor-alist
9135 before using built-in blink off methods.
9136
9137 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
9138
9139 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
9140 (get_specified_cursor_type, get_window_cursor_type)
9141 (set_frame_cursor_types): Added prototypes.
9142
9143 * macfns.c (x_specified_cursor_type): Removed.
9144 (x_set_cursor_type): Use set_frame_cursor_types.
9145 (Qbar, Qbox): Removed.
9146 (syms_of_macfns): Don't intern or staticpro them.
9147
9148 * macterm.c (x_specified_cursor_type): Remove prototype.
9149 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
9150 (x_display_and_set_cursor): Use get_window_cursor_type.
9151 Remove unused local variables cursor_non_selected, active_cursor.
9152 Redraw cursor if hbar cursor width changes.
9153 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
9154
9155 * macterm.h (enum text_cursor_kinds): Removed.
9156 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
9157 <blink_off_cursor, blink_off_cursor_width>: Members removed.
9158 (FRAME_DESIRED_CURSOR): Macro removed.
9159
9160 * w32fns.c (Vblink_cursor_alist): Removed.
9161 (Qbar, Qhbar, Qbox, Qhollow): Removed.
9162 (syms_of_w32fns): Don't intern, staticpro, or define them.
9163 (x_specified_cursor_type): Removed.
9164 (x_set_cursor_type): Use set_frame_cursor_types.
9165
9166 * w32term.c (x_specified_cursor_type): Remove prototype.
9167 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
9168 (x_display_and_set_cursor): Use get_window_cursor_type.
9169 Remove unused local variables cursor_off_state.
9170 Redraw cursor if hbar cursor width changes.
9171 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
9172
9173 * w32term.h (enum text_cursor_kinds): Removed.
9174 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
9175 <blink_off_cursor, blink_off_cursor_width>: Members removed.
9176 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
9177 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
9178 (struct w32_display_info) <x_highlight_frame>: Renamed member from
9179 w32_highlight_frame.
9180
9181 * xfns.c (Vblink_cursor_alist): Removed.
9182 (Qbar, Qhbar, Qbox, Qhollow): Removed.
9183 (syms_of_xfns): Don't intern, staticpro, or define them.
9184 (x_specified_cursor_type): Removed.
9185 (x_set_cursor_type): Use set_frame_cursor_types.
9186
9187 * xterm.c (x_specified_cursor_type): Remove prototype.
9188 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
9189 (x_display_and_set_cursor): Use get_window_cursor_type.
9190 Remove unused local variables cursor_off_state.
9191 Redraw cursor if hbar cursor width changes.
9192
9193 * xterm.h (enum text_cursor_kinds): Removed.
9194 (struct output_x) <current_cursor, desired_cursor, cursor_width>
9195 <blink_off_cursor, blink_off_cursor_width>: Members removed.
9196 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
9197 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
9198 (x_specified_cursor_type): Remove prototype.
9199
92002002-08-28 Richard M. Stallman <rms@gnu.org>
9201
9202 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
9203 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
9204 (Vblink_cursor_alist): New variable.
9205 (syms_of_w32fns): Initialize and defvar it.
9206 (x_specified_cursor_type): Recognize Qbox for filled box.
9207 Exceptions are hollow boxes.
9208 (Qbox, Qhollow): New variables.
9209 (syms_of_w32fns): Initialize and staticpro them.
9210
9211 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
9212 New macros.
9213 (struct w32_output): New fields blink_off_cursor,
9214 blink_off_cursor_width.
9215 (FRAME_CURSOR_WIDTH): New macro.
9216
9217 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
9218 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
9219
9220 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
9221 for bar cursor.
9222
9223 * w32term.c (expose_overlaps): New function.
9224 (expose_window): Use it to fix the display of overlapping rows.
9225
92262002-08-28 Simon Josefsson <jas@extundo.com>
9227
9228 * xfns.c (Fx_open_connection): Improve help when X connection
9229 fails, xhost is insecure and xauth is better.
9230
92312002-08-28 Juanma Barranquero <lektu@terra.es>
9232
9233 * makefile.w32-in: Add missing dependencies on w32term.h and
9234 composite.h.
9235
9236 * emacs.c (USAGE1): Add missing newline.
9237
92382002-08-27 Andrew Choi <akochoi@shaw.ca>
9239
9240 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
9241
92422002-08-27 Richard M. Stallman <rms@gnu.org>
9243
9244 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
9245 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
9246 (Vblink_cursor_alist): New variable.
9247 (syms_of_xfns): Initialize and defvar it.
9248 (x_specified_cursor_type): Recognize Qbox for filled box.
9249 Exceptions are hollow boxes.
9250 (Qbox, Qhollow): New variables.
9251 (syms_of_xfns): Initialize and staticpro them.
9252
9253 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
9254 New macros.
9255 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
9256
9257 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
9258 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
9259
9260 * emacs.c (main): Handle --script.
9261 (USAGE1): Mention --script.
9262 (standard_args): Define sort order for --script.
9263
92642002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
9265
9266 * xdisp.c (redisplay_updating_p): Variable removed.
9267 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
9268 New variables.
9269 (init_iterator): Don't free realized faces if
9270 inhibit_free_realized_faces is set.
9271 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
9272 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
9273 initialize Qinhibit_free_realized_faces.
9274
9275 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
9276 when iterator is adding glyphs to a glyph matrix.
9277
92782002-08-27 Kenichi Handa <handa@etl.go.jp>
9279
9280 * xdisp.c (get_next_display_element): In unibyte case, don't use
9281 octal form for such eight-bit characters that can be converted to
9282 multibyte char.
9283
92842002-08-26 Kim F. Storm <storm@cua.dk>
9285
9286 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize foreground
9287 and background colors. From Joe Buehler (tiny change).
9288
92892002-08-26 Miles Bader <miles@gnu.org>
9290
9291 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
9292
92932002-08-25 Andrew Choi <akochoi@shaw.ca>
9294
9295 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
9296 defined instead of MAC_OSX.
9297
9298 * s/darwin.h (select): Define select to sys_select only if
9299 HAVE_CARBON is defined.
9300 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
9301 (DONT_REOPEN_PTY): #def it.
9302
9303 * macterm.c (XTread_socket): Remove code to call
9304 SendEventToEventTarget for keys with command modifiers when
9305 mac_command_key_is_meta is nil.
9306
93072002-08-24 Andreas Schwab <schwab@suse.de>
9308
9309 * eval.c (Fdefvar): Fix last change.
9310
93112002-08-23 Richard M. Stallman <rms@gnu.org>
9312
9313 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
9314 Record variables in load history as (defvar . VAR).
9315 (Fdefvar): Don't record in load history if no initial value.
9316 (Qdefvar): New variable.
9317 (syms_of_eval): Init and staticpro it.
9318
9319 * lread.c (syms_of_lread): Doc fix.
9320 (build_load_history): Use Fmember to see if a definition
9321 is already in the Vload_history element.
9322
9323 * process.c (Fstart_process): Remove /: from program name.
9324
9325 * emacs.c (decode_env_path): Don't add /: if file name handler
9326 has a `safe-magic' property.
9327
9328 * callproc.c (Fcall_process): Remove /: from program name.
9329
93302002-08-23 Stefan Monnier <monnier@cs.yale.edu>
9331
9332 * regex.c (PATFETCH): Remove the translating fetch.
9333 (PATFETCH_RAW): Rename to PATFETCH.
9334 (set_image_of_range): New fun.
9335 (SET_RANGE_TABLE_WORK_AREA): Use it.
9336 (regex_compile): Don't translate the pattern chars so eagerly.
9337 Only do it when inserting an `exactn' bytecode or when handling
9338 a char-range.
9339 (mutually_exclusive_p): Avoid empty statement.
9340
93412002-08-22 Kim F. Storm <storm@cua.dk>
9342
9343 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
9344 end up on a partially visible line; this reverts a specific part
9345 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
9346 display error which has been reported several times now.
9347 However it introduces the problem that changes was supposed to fix.
9348 See my comments in the source if you want to debug this further.
9349
93502002-08-20 Kenichi Handa <handa@etl.go.jp>
9351
9352 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
9353
93542002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
9355
9356 * msdos.c (croak): Add `void' to definition.
9357
c1380aa6 9358 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
048addec
JD
9359 Don't define them, they are defined in msdos.c.
9360
9361 * mem-limits.h [MSDOS]: Declare etext.
9362
9363 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
9364 `const' since CORRECT_DIR_SEPS modifies its target.
9365
93662002-08-19 Kim F. Storm <storm@cua.dk>
9367
2fb0ce67 9368 * keyboard.c (Fclear_this_command_keys): Add optional arg
048addec
JD
9369 KEEP-RECORD to avoid clearing lossage when we just want to clear
9370 the current key sequence (kmacro needs this).
9371
93722002-08-19 Kenichi Handa <handa@localhost>
9373
9374 * composite.c (run_composition_function): Call FUNC if it is fboundp.
9375
9376 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
9377 cons, return Qnil.
9378
93792002-08-17 Richard M. Stallman <rms@gnu.org>
9380
9381 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
9382
9383 * sysdep.c [!VMS]: Include sys/files.h.
9384
9385 * editfns.c (save_restriction_restore): Defend from unchained marker.
9386
9387 * buffer.c (overlays_at): Handle extending vec uniformly.
9388 (overlays_in): Handle extending vec from length 0 as in overlays_at.
9389
93902002-08-15 Andrew Choi <akochoi@shaw.ca>
9391
9392 * mac.c (init_mac_osx_environment): New function.
9393
9394 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
9395
93962002-08-14 Kim F. Storm <storm@cua.dk>
9397
9398 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
9399 executing macro before appending to it (when used from Lisp).
9400 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
9401 which is called prior to each iteration of macro (for kmacro.el).
9402 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
9403
9404 * lisp.h (Fexecute_kbd_macro): Update prototype.
9405
9406 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
9407
94082002-08-14 Kenichi Handa <handa@etl.go.jp>
9409
9410 * xselect.c (QUTF8_STRING): New variable.
9411 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
9412 (x_atom_to_symbol): Likewise.
9413 (x_get_local_selection): New argument local_request. If it is
9414 nonzero, call handler_fn with the second arg nil.
9415 (x_handle_selection_request): Call x_get_local_selection with
9416 local_request 0.
9417 (lisp_data_to_selection_data): Don't encode the string here.
9418 (Fx_get_selection_internal): Call x_get_local_selection with
9419 local_request 1.
9420 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
9421
9422 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
9423
9424 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
9425
94262002-08-13 Richard M. Stallman <rms@gnu.org>
9427
9428 * minibuf.c (Fminibufferp): New function.
9429 (syms_of_minibuf): Defsubr it.
9430 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
9431
94322002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
9433
9434 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
9435
94362002-08-12 Richard M. Stallman <rms@gnu.org>
9437
9438 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
9439 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
9440 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
9441 already.
9442
9443 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
9444
94452002-08-11 Andrew Choi <akochoi@shaw.ca>
9446
9447 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
9448 (Vmac_pass_command_to_system): New variable.
9449 (Vmac_pass_control_to_system): New variable.
9450 (do_mouse_moved): Check wp with is_emacs_window.
9451 (XTread_socket): Check window_ptr with is_emacs_window.
9452 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
9453 events back to Mac Toolbox for processing, depending on values of
9454 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
9455 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
9456 Vmac_pass_control_to_system.
9457
94582002-08-10 Kenichi Handa <handa@etl.go.jp>
9459
9460 * coding.c (unencodable_char_position): New function.
9461 (Funencodable_char_position): New function.
9462 (syms_of_coding): Defsubr Funencodable_char_position.
9463
94642002-08-10 Andrew Choi <akochoi@shaw.ca>
9465
9466 * mac.c (sys_select) [MAC_OSX]: New function.
9467
9468 * macterm.c (MakeMeTheFrontProcess): New function.
9469 (mac_initialize): Call MakeMeTheFrontProcess.
9470
9471 * s/darwin.h: Define select to sys_select.
9472
94732002-08-09 Richard M. Stallman <rms@gnu.org>
9474
9475 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
9476
94772002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
9478
9479 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
9480 end of the buffer.
9481
94822002-08-08 Ken Raeburn <raeburn@mit.edu>
9483
9484 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
9485
9486 * puresize.h (BASE_PURESIZE): Increase to 910000.
9487
94882002-08-08 Kenichi Handa <handa@etl.go.jp>
9489
9490 * coding.c (Ffind_operation_coding_system): For write-region, if
9491 VISIT is a filename, make it the target.
9492
94932002-08-07 Richard M. Stallman <rms@gnu.org>
9494
9495 * alloc.c (mark_object): Detect long lists for debugging.
9496 (mark_object_loop_halt): New variable.
9497
9498 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
9499
9500 * data.c (Fmake_variable_frame_local): Doc fix.
9501
95022002-08-01 David Ponce <david@dponce.com>
9503
9504 * w32menu.c (local_heap, local_alloc, local_free): New macros.
9505 (malloc_widget_value, free_widget_value)
9506 (w32_free_submenu_strings): Use them.
9507
9508 (push_submenu_start, push_submenu_end, push_left_right_boundary)
9509 (push_menu_pane, push_menu_item, single_keymap_panes)
9510 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
9511 (single_submenu, set_frame_menubar)
9512 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
9513
9514 (Fx_popup_menu): Don't show pop up menu until preceding one is
9515 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
9516
9517 * w32menu.c: Changes adapted from xmenu.c
9518 (set_frame_menubar): First parse all submenus,
9519 then make widget_value trees from them.
9520 Don't allocate any widget_value objects
9521 until we are done with the parsing.
9522 (parse_single_submenu): New function.
9523 (digest_single_submenu): New function.
9524 (single_submenu): Function deleted, replaced by those two.
9525
95262002-08-04 Andrew Choi <akochoi@shaw.ca>
9527
9528 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
9529 returns a valid window pointer before proceeding for keyDown and
9530 autoKey events.
9531
95322002-08-03 Andrew Choi <akochoi@shaw.ca>
9533
9534 * macterm.c (USE_CARBON_EVENTS): New macro.
9535 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
9536 (x_iconify_frame): Call CollapseWindow.
9537 (Vmac_reverse_ctrl_meta): New variable.
9538 (Vmac_wheel_button_is_mouse_2): New variable.
9539 (init_mac_drag_n_drop): New function.
9540 (mac_do_receive_drag): New function.
9541 (mac_handle_service_event): New function.
9542 (init_service_handler): New function.
9543 (mac_to_emacs_modifiers): New function.
9544 (mac_event_to_emacs_modifiers): New function.
9545 (mac_get_mouse_btn): New function.
9546 (mac_convert_event_ref): New function.
9547 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
9548 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
9549 mac_get_mouse_btn.
9550 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
9551
9552 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
9553 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
9554 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
9555 TOOL_BAR_EVENT for MAC_OS as well.
9556 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
9557 as for WINDOWS_NT.
9558 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
9559
9560 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
9561
95622002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
9563
9564 * xdisp.c (forward_to_next_line_start): Fix a condition that
9565 lead to a newline being skipped.
9566
95672002-08-02 Andrew Choi <akochoi@shaw.ca>
9568
9569 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
9570
95712002-08-01 Richard M. Stallman <rms@gnu.org>
9572
9573 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
9574
95752002-07-31 Andrew Choi <akochoi@shaw.ca>
9576
9577 * macfns.c: #undef init_process before #define-ing it.
9578
9579 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
9580 HAVE_CARBON is defined.
9581
95822002-07-31 Richard M. Stallman <rms@gnu.org>
9583
9584 * xmenu.c (set_frame_menubar): First parse all submenus,
9585 then make widget_value trees from them.
9586 Don't allocate any widget_value objects
9587 until we are done with the parsing.
9588 (parse_single_submenu): New function.
9589 (digest_single_submenu): New function.
9590 (single_submenu): Function deleted, replaced by those two.
9591
95922002-07-30 Juanma Barranquero <lektu@terra.es>
9593
9594 * w32proc.c (syms_of_ntproc): Fix docstring of
9595 `w32-get-true-file-attributes'.
9596
95972002-07-28 Richard M. Stallman <rms@gnu.org>
9598
9599 * s/hpux8.h (HPUX8): Define this before including hpux.h.
9600 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
9601
9602 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
9603
9604 * keyboard.c (make_lispy_event):
9605 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
9606 Explicitly clear up_modifier in event->modifiers.
9607
96082002-07-27 Richard M. Stallman <rms@gnu.org>
9609
9610 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
9611
9612 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
9613 for bar cursor.
9614
96152002-07-26 Kenichi Handa <handa@etl.go.jp>
9616
9617 * coding.c (detect_coding_iso2022): While checking a byte sequence
9618 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
9619 it in the normal loop.
9620
96212002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
9622
9623 * xterm.c (expose_overlaps): New function.
9624 (expose_window): Use it to fix the display of overlapping rows.
9625
9626 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
9627
96282002-07-23 Ken Raeburn <raeburn@gnu.org>
9629
9630 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
9631 since it only depends on XUINT.
9632
9633 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
9634 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
9635 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
9636 Macros deleted.
3947677c 9637
77d1daf2
AS
9638 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
9639 its value over other approaches.
9640 * sysdep.c (start_of_data): Don't define the function if a macro
9641 form has been defined.
8a8e19a3 9642
048addec
JD
96432002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
9644
9645 * xdisp.c (redisplay_updating_p): New variable.
9646 (init_iterator): Don't free realized faces when
9647 redisplay_updating_p is set.
9648 (redisplay_internal): Set redisplay_updating_p while updating
9649 the display.
9650
96512002-07-23 Richard M. Stallman <rms@gnu.org>
9652
9653 * editfns.c (Fmessage): Treat "" like nil.
9654
96552002-07-23 Kenichi Handa <handa@etl.go.jp>
9656
9657 * xdisp.c (face_before_or_after_it_pos):
9658 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
9659
96602002-07-22 Juanma Barranquero <lektu@terra.es>
9661
9662 * callproc.c (init_callproc) [DOS_NT]:
9663 Initialize Vshared_game_score_directory to nil.
9664 (syms_of_callproc) [DOS_NT]: Likewise.
9665
96662002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
9667
9668 * xdisp.c (display_line): Replace an abort with xassert.
9669
96702002-07-21 Richard M. Stallman <rms@gnu.org>
9671
9672 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
9673 and END_UNCHANGED when setting buffer_unchanged_p.
9674 Use current_matrix_up_to_date_p to decide whether to use
9675 try_cursor_movement.
9676
9677 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
9678
9679 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
9680
9681 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
9682 Set to nil if dir does not exist.
9683 (syms_of_callproc): Init unconditionally and simply.
9684
9685 * buffer.c (Fbuffer_list): Doc fix.
9686
96872002-07-21 Ken Raeburn <raeburn@gnu.org>
9688
9689 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
9690
9691 * buffer.c (mmap_realloc): When shrinking, make sure number of
9692 pages to unmap is rounded towards zero.
9693
9694 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
9695 (XSETINT): Deleted.
9696
9697 * m/att3b.h (XINT): Don't define.
9698 (VALBITS, VALMASK, XTYPE): Deleted.
9699 (DATA_SEG_BITS): Define.
9700 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
9701 ARRAY_MARK_FLAG): Deleted.
9702 (DATA_SEG_BITS): Define.
9703 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
9704 (DATA_SEG_BITS): Define.
9705
97062002-07-20 Richard M. Stallman <rms@gnu.org>
9707
9708 * print.c (print_error_message): New args CONTEXT and CALLER.
9709 Calls changed.
9710
9711 * lisp.h (print_error_message): Declare new args.
9712
9713 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
9714 and CONTEXT to print_error_message, don't print them here.
9715 For a Quit, don't use Vsignaling_function.
9716 Call message_log_maybe_newline.
9717
9718 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
9719
97202002-07-20 Kim F. Storm <storm@cua.dk>
9721
9722 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
9723
97242002-07-19 Ken Raeburn <raeburn@gnu.org>
9725
9726 * bytecode.c (struct byte_stack): Pointers into byte string now
9727 point to const.
9728 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
9729 const.
9730 * charset.h (BCOPY_SHORT): Source pointer now points to const.
9731 * coding.c (encode_eol, detect_coding, detect_eol):
9732 (decode_coding, encode_coding, detect_coding_system):
9733 Source strings now treated as const.
9734 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
9735 modify Lisp string contents.
9736 * coding.h (decode_coding, encode_coding, detect_coding,
9737 detect_eol): Declarations updated.
9738 * composite.c (compose_chars_in_text): Treat Lisp string contents
9739 as const.
9740 * dispnew.c (safe_bcopy): Source pointer now points to const.
9741 * lisp.h (STRING_COPYIN): New macro.
9742 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
9743 (internal_with_output_to_temp_buffer): Declarations updated.
9744 * print.c (temp_output_buffer_setup):
9745 (internal_with_output_to_temp_buffer): Buffer name argument is now
9746 pointer to const.
9747 * sound.c (struct sound_device): Function pointer field "write"
9748 buffer argument now points to const.
9749 (vox_write): Buffer argument points to const.
9750 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
9751 contents as const.
9752 * sysdep.c (emacs_write): Buffer pointer now const.
9753 * term.c (encode_terminal_code): Buffer pointer now const.
9754 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
9755 (x_face_list_fonts, x_update_menu_appearance):
9756 (hash_string_case_insensitive): Treat Lisp string contents as const.
9757
97582002-07-19 Juanma Barranquero <lektu@terra.es>
9759
048addec
JD
9760 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
9761
9762 * fileio.c (syms_of_fileio): Likewise.
c62aec78
JB
9763 (Ffile_name_as_directory): Fix argument name in docstring.
9764 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
048addec
JD
9765
97662002-07-18 Richard M. Stallman <rms@gnu.org>
9767
9768 * data.c (Fdefalias): Doc fix.
9769
97702002-07-17 Dave Love <fx@gnu.org>
9771
9772 * intervals.h (text_property_stickiness): Use P_.
9773
9774 * ccl.c: Remove `emacs' conditionals.
9775 (ccl_backtrace_table): Fix size spec.
9776 (ccl_driver): Fix type errors.
9777
97782002-07-16 Ken Raeburn <raeburn@gnu.org>
9779
9780 * alloc.c (xstrdup, make_string, make_unibyte_string)
9781 (make_multibyte_string, build_string): String pointer args now
9782 point to const.
9783 * charset.c (find_charset_in_text, c_string_width):
9784 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
9785 * fileio.c (report_file_error):
9786 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
9787 (count_combining_before, count_combining_after, insert_1_both):
9788 (insert, insert_and_inherit, insert_string):
9789 (insert_before_markers, insert_before_markers_and_inherit):
9790 * lread.c (intern, oblookup, hash_string):
9791 * minibuf.c (temp_echo_area_glyphs):
9792 * search.c (fast_c_string_match_ignore_case):
9793 * sysdep.c (emacs_open, set_file_times):
9794 * xfaces.c (xstricmp):
9795 * xdisp.c (store_frame_title, string_char_and_length):
9796 (message_dolog, message2, message2_nolog, set_message): Likewise.
9797 (set_message_1): Cast message string argument to const pointer.
9798 * editfns.c (general_insert_function): Insertion function now
9799 takes pointer to const for input data.
9800 * charset.h (find_charset_in_text, c_string_width):
9801 (parse_str_as_multibyte): Declarations updated.
9802 * dispextern.h (xstricmp): Declaration updated.
9803 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
9804 (count_size_as_multibyte, count_combining_before):
9805 (count_combining_after, insert_1, insert_1_both, message_dolog):
9806 (insert, insert_and_inherit, insert_before_markers)
9807 (insert_before_markers_and_inherit, set_message, message2):
9808 (message2_dolog, build_string, make_string, make_unibyte_string):
9809 (make_multibyte_string, intern, oblookup, report_file_error):
9810 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
9811 (emacs_open, xstrdup): Declarations updated.
9812 * systime.h (set_file_times): Declaration updated.
9813
9814 * charset.c (find_charset_in_text, lisp_string_width): Use const
9815 for pointer to lisp string data.
9816 * charset.h (FETCH_STRING_CHAR_ADVANCE):
9817 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
9818 * coding.c (Ffind_coding_systems_region_interval):
9819 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
9820 (Fmake_directory_internal, Fdelete_directory):
9821 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
9822 * fontset.c (font_family_registry, fs_query_fontset):
9823 (list_fontsets):
9824 * frame.c (Fframe_parameter):
9825 * keyboard.c (cmd_error_internal):
9826 * keymap.c (Fdescribe_buffer_bindings):
9827 * lread.c (complete_filename_p, openp):
9828 * minibuf.c (Fminibuffer_complete_word):
9829 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
9830 (face_before_or_after_it_pos, next_element_from_string):
9831 (get_overlay_arrow_glyph_row, display_mode_element):
9832 (decode_mode_spec_coding):
9833 * xterm.c (same_x_server): Likewise.
9834
9835 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
9836 settings of non-existent fields.
9837
9838 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
9839 copy a lisp value.
9840
9841 * lread.c (Fintern_soft): Use string macros instead of
9842 Lisp_String fields.
9843 * keyboard.c (echo_char, parse_modifiers_uncached):
9844 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
9845 * textprop.c (validate_interval_range, interval_of): Likewise.
9846
9847 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
9848
9849 * charset.h (FETCH_STRING_CHAR_ADVANCE)
9850 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
9851 XSTRING()->size_byte.
9852
9853 * lisp.h (SDATA, SREF): Produce rvalue.
9854 (SSET): New macro.
9855 * alloc.c (make_event_array): Use SSET for storing into a string.
9856 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
9857 a string.
9858 * casefiddle.c (casify_object): Use SSET.
9859 * charset.h (FETCH_STRING_CHAR_ADVANCE)
9860 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
9861 address of string contents.
9862 * data.c (Faref): Use SDATA.
9863 (Faset): Use SDATA, SSET.
9864 * dired.c (directory_files_internal): Use SSET.
9865 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
9866 (Fread_file_name): Use SREF, SSET.
9867 * fns.c (concat): Use SSET.
9868 (concat, Fdelete): Use SDATA.
9869 * insdel.c (insert_from_string_1): Use SDATA.
9870 * keyboard.c (Fevent_convert_list): Use SREF.
9871 * lread.c (Fload): Use SDATA, SSET.
9872 * macfns.c (validate_x_resource_name): Use SSET.
9873 * process.c (status_message): Use SSET.
9874 * search.c (wordify): Use SDATA.
9875 (Freplace_match): Use SREF.
9876 * w32fns.c (validate_x_resource_name): Use SSET.
9877 * xfns.c (validate_x_resource_name): Use SSET.
9878 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
9879
98802002-07-16 Richard M. Stallman <rms@gnu.org>
9881
9882 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
9883
9884 * xdisp.c (reconsider_clip_changes):
9885 Don't test prevent_redisplay_optimizations_p.
9886 (redisplay_internal): Test prevent_redisplay_optimizations_p
9887 along with clip_changed in some cases.
9888 (try_window_id): Likewise.
9889 (redisplay_window): New local var buffer_unchanged_p.
9890
9891 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
9892
9893 * process.c (create_process): Test USG_SUBTTY_WORKS.
9894 (process_send_signal): Clean up handling of GID.
9895 Detect errors in ioctls meant to set GID.
9896
9897 * window.c (temp_output_buffer_show):
9898 Don't set prevent_redisplay_optimizations_p.
9899
99002002-07-15 Juanma Barranquero <lektu@terra.es>
9901
9902 * eval.c (Fdefvaralias): Add docstring argument.
9903
99042002-07-15 Ken Raeburn <raeburn@gnu.org>
9905
9906 * lisp.h (STRING_INTERVALS): Produce rvalue.
9907 (STRING_SET_INTERVALS): New macro.
9908 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
9909 * fns.c (Fstring_as_multibyte): Likewise.
9910 * intervals.c (balance_possible_root_interval, delete_interval)
9911 (create_root_interval, copy_intervals_to_string): Likewise.
9912 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
9913 instead of 0.
9914
99152002-07-14 Ken Raeburn <raeburn@gnu.org>
9916
9917 * lisp.h (STRING_SET_CHARS): New macro.
9918 (SCHARS, SBYTES): Produce rvalues.
9919 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
9920 * fns.c (concat): Likewise.
9921 * lread.c (read_vector): Likewise.
9922
9923 * lisp.h (SMBP): Deleted. All uses changed to STRING_MULTIBYTE.
9924 (STRING_SET_UNIBYTE): New macro.
9925 (SET_STRING_BYTES): Deleted. Callers (all of which supplied a
9926 length of -1) changed to use STRING_SET_UNIBYTE.
9927 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
9928 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
9929 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
9930 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
9931 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
9932 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
9933 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
9934 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
9935 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
9936 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
9937 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
9938 STRING_BYTES or indirection changed to SCHARS, SBYTES,
9939 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
9940 unchanged for now.
9941
99422002-07-13 Kim F. Storm <storm@cua.dk>
9943
9944 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
9945
99462002-07-12 Richard M. Stallman <rms@gnu.org>
9947
9948 * fileio.c (Fwrite_region): Doc fix.
9949
9950 * print.c (print_error_message): Don't handle Vsignaling_function here.
9951
9952 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
9953 (command_loop_1): Avoid certain actions after memory-full error.
9954
9955 * eval.c (Fsignal): Don't call cancel_hourglass.
9956 For a memory-full error, don't call Vsignal_hook_function
9957 and don't set Vsignaling_function.
9958
9959 * process.c (process_send_signal): Add abort call.
9960
99612002-07-11 Markus Rost <rost@math.ohio-state.edu>
9962
9963 * keymap.c (Fkey_binding): Fix typo.
9964
99652002-07-11 Richard M. Stallman <rms@gnu.org>
9966
9967 * alloc.c (Vmemory_full): New variable.
9968 (Vmemory_signal_data): Renamed from memory_signal_data.
9969 Uses changed.
9970 (syms_of_alloc): Defvar them.
9971 (memory_full, buffer_memory_full): Set Vmemory_full.
9972
9973 * lisp.h (Vmemory_full): Add declaration.
9974 (current_column, indented_beyond_p): Change declaration.
9975
9976 * indent.c (last_known_column): Declare as double, not float.
9977 (current_column, current_column_1, string_display_width)
9978 (position_indentation): Return `double'.
9979 (indented_beyond_p): Arg `column' is `double'. Callers changed.
9980
9981 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
9982 (back_to_previous_visible_line_start)
9983 (reseat_at_next_visible_line_start, next_element_from_buffer):
9984 Use `double', not `float', when calling indented_beyond_p.
9985
9986 * s/hpux11.h (BROKEN_SA_RESTART): Defined.
9987
9988 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
9989
99902002-07-11 Juanma Barranquero <lektu@terra.es>
9991
9992 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
f9711de4
JB
9993 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
9994 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
9995 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
9996 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
9997 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
048addec
JD
9998
99992002-07-10 Juanma Barranquero <lektu@terra.es>
10000
d814862a
JB
10001 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
10002 All callers changed.
048addec
JD
10003
100042002-07-09 Stefan Monnier <monnier@cs.yale.edu>
10005
10006 * data.c (Fdefalias): Add an optional `docstring' argument.
10007 (set_internal, Fsetq_default): Use XCAR/XCDR.
10008
10009 * composite.c (HASH_VALUE, HASH_KEY):
10010 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
10011
100122002-07-09 Kenichi Handa <handa@etl.go.jp>
10013
10014 * callproc.c (Fcall_process): Fix previous change.
10015
100162002-07-07 Stefan Monnier <monnier@cs.yale.edu>
10017
10018 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
10019 Add support for hash-tables.
10020 (Ftry_completion): Return t even if the string appears multiple times.
10021
10022 * fns.c (Fnconc): Use XCDR.
10023 (Fprovide): Use CONSP and XCDR.
10024 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
10025 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
10026 (Fmake_hash_table): Accept `:size nil'.
10027 (Fmakehash): Delete: moved to subr.el.
10028 (syms_of_fns): Don't defsubr makehash.
10029
10030 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
10031 (HASH_TABLE_SIZE): Move from fns.c.
10032
100332002-07-07 Richard M. Stallman <rms@gnu.org>
10034
10035 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
10036 Instead just return 0 when there is something to be done.
10037 (try_scrolling): If make_cursor_line_fully_visible returns 0,
10038 retry scrolling as if cursor were off the bottom.
10039 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
10040 return CURSOR_MOVEMENT_MUST_SCROLL.
10041 (redisplay_window): If make_cursor_line_fully_visible returns 0,
10042 go to try_to_scroll.
10043
10044 * buffer.c (Fbuffer_local_value): Store current value into its binding
10045 so we get the up-to-date value for the binding that is loaded.
10046
10047 * eval.c (Fdefmacro): Doc fix.
10048
100492002-07-05 Dave Love <fx@gnu.org>
10050
10051 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
10052 correctly.
10053
10054 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
10055 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
10056 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
10057 CCL_LookupCharConstTbl.
10058 (syms_of_ccl): Defvar translation-hash-table-vector.
10059
100602002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10061
10062 * xdisp.c: Remove unused variable `face'.
10063
100642002-07-04 Juanma Barranquero <lektu@terra.es>
10065
10066 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
10067 obsolescence information.
10068
100692002-07-03 Andrew Choi <akochoi@shaw.ca>
10070
10071 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
10072 pattern. Search cache first.
10073 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
10074 for Japanese font.
10075 (XLoadQueryFont): Use it.
10076
100772002-07-02 Richard M. Stallman <rms@gnu.org>
10078
10079 * keymap.c (Fdefine_key): Doc fix.
10080
10081 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
10082
100832002-07-02 Juanma Barranquero <lektu@terra.es>
10084
10085 * keymap.c (syms_of_keymap): Fix typo.
10086
100872002-07-01 Andrew Choi <akochoi@shaw.ca>
10088
10089 * s/darwin.h: Define POSIX_SIGNALS.
10090
10091 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
10092 and FSRefMakePath to convert FSSpec returned with Apple Event to
10093 Posix pathname.
10094 (mac_initialize) [TARGET_API_MAC_CARBON]:
10095 Call init_required_apple_events and disable the `Quit' menu item
10096 provided automatically by the Carbon Toolbox.
10097
100982002-07-01 Dave Love <fx@gnu.org>
10099
10100 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
10101 for K&R.
10102
10103 * xterm.c: Fix prototype for K&R.
10104
10105 * term.c (costs_set): Declare static, non-initialized for pcc.
10106
101072002-07-01 Richard M. Stallman <rms@gnu.org>
10108
10109 * keyboard.c (timer_last_idleness_start_time): New variable.
10110 (timer_start_idle): Set that.
10111 (read_key_sequence): Use that to reset timer_idleness_start_time
10112 to previous value.
10113
10114 * window.c (Frecenter): With arg, set optional_new_start.
10115
10116 * xdisp.c (redisplay_internal): Make optional_new_start really work.
10117
10118 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
10119 buffer for completion.
10120
101212002-06-29 Ken Raeburn <raeburn@gnu.org>
10122
10123 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
10124
101252002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10126
10127 * keyboard.c (readable_filtered_events): New function that filters
10128 FOCUS_IN_EVENT depending on parameter.
10129 (readable_events): Calls readable_filtered_events, not filtering
10130 FOCUS_IN_EVENT.
10131 (get_filtered_input_pending): New function, filtering parameter passed
10132 to readable_filtered_events.
10133 (get_input_pending): Calls get_filtered_input_pending, not filtering
10134 FOCUS_IN_EVENT.
10135 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
10136 FOCUS_IN_EVENT.
10137
10138 * xterm.h (struct x_output): Add focus_state.
10139
10140 * xterm.c (x_focus_changed): New function.
10141 (x_detect_focus_change): New function.
10142 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
10143 EnterNotify and LeaveNotify to track X focus changes.
10144
101452002-06-28 Andreas Schwab <schwab@suse.de>
10146
10147 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
10148
101492002-06-27 Kim F. Storm <storm@cua.dk>
10150
10151 * xdisp.c: (mode_line_string_list, mode_line_string_face)
10152 (mode_line_string_face_prop): New variables.
10153 (store_mode_line_string): New function.
10154 (display_mode_element): Use store_mode_line_string to
10155 add mode-line string elements to mode_line_string_list
10156 when mode_line_string_list is non-nil.
10157 (Fformat_mode_line): Now returns propertized string by
10158 default. New arg NO-PROPS to ignore properties.
10159 (decode_mode_spec): Only add two dashes for %- in propertized
10160 mode-line string.
10161 (syms_of_xdisp): Init and staticpro mode_line_string_list.
10162
101632002-06-27 Stefan Monnier <monnier@cs.yale.edu>
10164
10165 * minibuf.c (minibuffer_completion_contents): Add return type.
10166
101672002-06-27 Juanma Barranquero <lektu@terra.es>
10168
10169 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
10170
101712002-06-26 Juanma Barranquero <lektu@terra.es>
10172
10173 * fileio.c (read_file_name_cleanup): Add missing return.
10174
101752002-06-26 Richard M. Stallman <rms@gnu.org>
10176
10177 * window.c (Frecenter): Don't set force_start flag.
10178
10179 * minibuf.c (do_completion, Fminibuffer_complete_word)
10180 (Fminibuffer_completion_help): Complete just the text before point.
10181 (minibuffer_completion_contents): New function.
10182
10183 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
10184
10185 * frame.c (frames_bury_buffer): Function deleted.
10186
101872002-06-25 Miles Bader <miles@gnu.org>
10188
10189 * callint.c (Fcall_interactively): When checking to see if doprnt hit
10190 the end of callint_message, allow for a terminating '\0'.
10191
101922002-06-24 Juanma Barranquero <lektu@terra.es>
10193
10194 * w32select.c: Include composite.h
10195
10196 * w16select.c: Likewise.
10197
101982002-06-24 Kenichi Handa <handa@etl.go.jp>
10199
10200 * callproc.c (Fcall_process): If code detection is necessary,
10201 call detect_coding directly here.
10202
10203 * coding.c (detect_eol): Preserve coding->cmp_data.
10204
10205 * w16select.c (Fw16_get_clipboard_data):
10206 * w32fns.c (w32_to_x_font):
10207 * w32select.c (Fw32_get_clipboard_data):
10208 * xselect.c (selection_data_to_lisp_data):
10209 * xterm.c (XTread_socket): Disable composition handling.
10210
102112002-06-24 Stefan Monnier <monnier@cs.yale.edu>
10212
10213 * print.c (temp_output_buffer_setup): Kill all local variables.
10214
102152002-06-22 Stefan Monnier <monnier@cs.yale.edu>
10216
10217 * lread.c (Fread): Remove redundant and imprecise declaration.
10218
10219 * xfns.c (check_x_display_info): Use check_x_frame.
10220
10221 * .gdbinit (xprintsym): Use the new `xname' field.
10222 (xsymbol): Use it.
10223
102242002-06-22 Jason Rumney <jasonr@gnu.org>
10225
10226 * w32fns.c (file_dialog_callback): New function.
10227 (Fx_file_dialog): Allow selecting directories as well as files.
10228
102292002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10230
10231 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
f63fd14e 10232 OpenBSD. Add support for mipseb-*-netbsd* machines.
048addec
JD
10233
102342002-06-17 Andrew Choi <akochoi@shaw.ca>
10235
10236 * macterm.c (mac_scroll_area): Set foreground and backcolor to
10237 black and white before scrolling. Restore frame background and
10238 foreground color after scrolling.
10239 (do_window_update): Call XClearWindow before calling expose_frame.
10240 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
10241 FRAME_FOREGROUND_PIXEL of frame.
10242
10243 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
10244 test Mac command key as <ALT> key.
10245
102462002-06-17 Stefan Monnier <monnier@cs.yale.edu>
10247
10248 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
10249
10250 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
10251 Lookup keys in function-key-map immediately so that key-translation-map
10252 can be applied earlier.
10253 Remove function_key_possible and key_translation_possible, replaced
10254 by checking `keytran_start < t'.
10255
10256 * .gdbinit (xsymbol): Use the new `xname' field.
10257
102582002-06-17 Andrew Choi <akochoi@shaw.ca>
10259
10260 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
10261 test Mac command key as <ALT> key.
10262
10263 * mac.c (do_applescript): Call initialize_applescript if necessary
10264 when first called. Dispose of result_desc only when there is no error.
10265 (Fdo_applescript): Use %d format specifier instead of %ld.
10266
102672002-06-16 Andrew Choi <akochoi@shaw.ca>
10268
10269 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
10270 of FrontWindow for cases keyDown and autoKey.
10271
10272 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
10273 Vdefault_fontset to Monaco with mac-roman coding.
10274
10275 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
10276 init_process before and after inclusion of Carbon/Carbon.h, resp.
10277
10278 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
10279 cursor_gc.
10280 (add_font_name_table_entry): New function.
10281 (init_font_name_table): Use add_font_name_table_entry; add italic,
10282 bold, and bold-italic entries for truetype fonts.
10283
10284 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
10285 for Mac too.
10286 (try_font_list) [MAC_OS]: If no font matches given registry, try
10287 fonts with any registry matching face_family.
10288 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
10289
10290 * s/darwin.h: If autoconf detects the Ncurses library, define
10291 LIBS_TERMCAP to -lncurses to use it.
10292
102932002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
10294
10295 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
10296
102972002-06-15 Richard M. Stallman <rms@gnu.org>
10298
10299 * window.c (Fset_window_configuration): Explicitly preserve
10300 the point value that new_current_buffer had at the start.
10301
103022002-06-14 Juanma Barranquero <lektu@terra.es>
10303
10304 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
10305 Fix typos.
10306
103072002-06-14 Kim F. Storm <storm@cua.dk>
10308
10309 * insdel.c (insert_1_both, insert_from_string_1)
10310 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
10311 insert happened in the end_unchanged region. Otherwise, the
10312 redisplay may be confused and duplicate the last line in the
10313 buffer [seen after save-buffer when require-final-newline==t].
10314
103152002-06-13 Jason Rumney <jasonr@gnu.org>
10316
10317 * w32.c (init_environment): Remove EMACSLOCKDIR.
10318 (stat): Swap _S_IFDIR and _S_IFREG.
10319
103202002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10321
10322 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
10323 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
10324 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
10325 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
10326 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
10327 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
10328 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
10329 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
10330 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
10331 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
10332 SELECTION_REQUEST_EVENT, selection_clear_event to
10333 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
10334 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
10335 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
10336 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
10337 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
10338 no_event to NO_EVENT.
10339
103402002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10341
10342 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
10343
103442002-06-12 Stefan Monnier <monnier@cs.yale.edu>
10345
10346 * intervals.c (textget): Don't forget to `return'.
10347 (lookup_char_property): Use XCAR/XCDR.
10348
103492002-06-12 Juanma Barranquero <lektu@terra.es>
10350
10351 * xdisp.c (Fformat_mode_line): Fix typo.
10352
103532002-06-12 Kim F. Storm <storm@cua.dk>
10354
10355 * xdisp.c (Fformat_mode_line): New function.
10356 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
10357 (store_frame_title_char, store_frame_title): Use unconditionally.
10358 (init_xdisp): Defsubr Fformat_mode_line.
10359 Initialize frame_title_buf etc. unconditionally.
10360
103612002-06-11 Stefan Monnier <monnier@cs.yale.edu>
10362
10363 * keyboard.c (read_key_sequence):
10364 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
10365 things through those maps after downcasing events.
10366 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
10367 applies after function-key-map.
10368 Make sure that keytran can be done in the middle in the sequence.
10369 Be careful not to throw away events past the one we downcase.
10370
10371 * lread.c (read_integer): Remove unused var `tem'.
10372 (read1): Fix int/Lisp_Object mixup.
10373
10374 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
10375
103762002-06-11 Richard M. Stallman <rms@gnu.org>
10377
10378 * keyboard.c (readable_events): Ignore any number of
10379 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
10380
103812002-06-09 Miles Bader <miles@gnu.org>
10382
10383 * xfaces.c (Ftty_supports_face_attributes_p): New function.
10384 (parse_rgb_list, tty_lookup_color): New functions.
10385 (tty_defined_color): Use `tty_lookup_color' to do all the work.
10386 (color_distance, Fcolor_distance): New functions.
10387 (TTY_SAME_COLOR_THRESHOLD): New macro.
10388 (Qtty_color_standard_values): New variable.
10389 (syms_of_xfaces): Initialize new vars & functions.
10390
103912002-06-08 Colin Walters <walters@verbum.org>
10392
10393 * textprop.c (Vchar_property_alias_alist): New variable.
10394 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
10395
10396 * intervals.c (lookup_char_property): New function for looking up
10397 overlay and text properties, created from textget.
10398 (textget): Use it.
10399
10400 * intervals.h (lookup_char_property): Declare.
10401 (Vchar_property_alias_alist): Declare.
10402
10403 * buffer.c (Foverlay_get): Use lookup_char_property.
10404
104052002-06-07 Sam Steingold <sds@gnu.org>
10406
10407 * xselect.c (lisp_data_to_selection_data): Fix last change:
10408 *data_ret is not a Lisp string, while unibyte_string is.
10409
104102002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
10411
10412 * xselect.c (lisp_data_to_selection_data): Fix last change:
10413 set size_ret.
10414
104152002-06-07 Andreas Schwab <schwab@suse.de>
10416
10417 * m/amdx86-64.h: New file.
10418
104192002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
10420
10421 * fns.c (Fstring_make_unibyte): Doc fix.
10422
10423 * xselect.c (lisp_data_to_selection_data): If the requested type
10424 is STRING, call string_make_unibyte to encode the selected text
10425 as a string.
10426
10427 * window.c (Fset_window_hscroll): Doc fix.
10428
104292002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10430
10431 * fileio.c (choose_write_coding_system):
10432 Call select-safe-coding-system properly.
10433
104342002-06-03 Richard M. Stallman <rms@gnu.org>
10435
10436 * xdisp.c (message_with_string): Error if STRING is not a string.
10437
10438 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
10439
10440 * fileio.c (choose_write_coding_system): Pass FILE arg to
10441 Vselect_safe_coding_system_function.
10442
104432002-06-03 Ken Raeburn <raeburn@gnu.org>
10444
10445 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
10446
104472002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
10448
10449 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
10450 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
10451 * keymap.c (describe_command): Likewise.
10452 * minibuf.c (read_minibuf): Likewise.
10453
10454 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
10455 Cast `current_column' return value to int.
10456 (back_to_previous_visible_line_start)
10457 (reseat_at_next_visible_line_start, next_element_from_buffer):
10458 Cast `indented_beyond_p' 3rd arg to float.
10459
10460 * indent.c (last_known_column): Now a float.
10461 (current_column_1, position_indentation, current_column)
10462 (string_display_width): Return float.
10463 (Fcurrent_column): Cast `current_column' return value to int.
10464 (Fcurrent_indentation): Cast `position_indentation' retval to int.
10465 (indented_beyond_p): Third arg now a float.
10466 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
10467
10468 * lisp.h (current_column): Now returns float.
10469 (indented_beyond_p): 3rd arg now a float.
10470
104712002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
10472
10473 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
10474 is Qcompound_text_with_extensions.
10475
10476 * xselect.c (lisp_data_to_selection_data): Always set selection
10477 type as string if x_encode_text returns streingp non-NULL.
10478
10479 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
10480
104812002-05-30 Richard M. Stallman <rms@gnu.org>
10482
10483 * window.c (Fset_window_configuration): Correct the handling
10484 of point in current buffer, to work with multiple windows.
10485
104862002-05-29 Colin Walters <walters@verbum.org>
10487
10488 * lread.c (Fread_from_string): Don't depend on order of evaluation
10489 for C function parameters.
10490
104912002-05-28 Richard M. Stallman <rms@gnu.org>
10492
10493 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
10494 way for blinked-off state and for a nonselected window.
10495
10496 * window.c (window_scroll_pixel_based): Don't call Fbolp;
10497 instead, see if the new start pos is at beginning of line.
10498
10499 * fileio.c (Fwrite_region): If START is a string, don't
10500 make any annotations.
10501
10502 * eval.c (syms_of_eval): Doc fix.
10503
105042002-05-28 Colin Walters <walters@debian.org>
10505
10506 * emacs.c (USAGE1): Add --no-splash.
10507 (standard_args): Ditto.
10508
105092002-05-28 Colin Walters <walters@gnu.org>
10510
10511 * lread.c (readchar_count): New variable.
10512 (readchar): Increment it.
10513 (unreadchar): Decrement it.
10514 (read_multibyte): Decrement it.
10515 (Vread_with_symbol_positions): New variable.
10516 (Vread_symbol_positions_list): New variable.
10517 (read_internal_start): New function, created from Fread and
10518 Fread_from_string. Handle Vread_symbol_positions_list and
10519 Vread_with_symbol_positions.
10520 (readevalloop, Fread, Fread_from_string): Use it.
10521 (read1): Use readchar_count to add symbol positions to
10522 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
10523 (syms_of_lread): DEFVAR_LISP and initialize them.
10524
10525 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
10526 (substitute_object_recurse, substitute_object_in_subtree)
10527 (substitute_in_interval): Prototype.
10528 (read_multibyte): Return c if it's less than zero.
10529
105302002-05-28 Kim F. Storm <storm@cua.dk>
10531
10532 * fileio.c (Fread_file_name_internal): Added brute-force
10533 speed up for using predicate file-directory-p.
10534
105352002-05-28 Kim F. Storm <storm@cua.dk>
10536
10537 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
10538 New variables.
10539 (syms_of_fileio): DEFVAR_LISP them.
10540 (read_file_name_cleanup): New unwind function.
10541 (Fread_file_name_internal): Only return completions satifying
10542 Vread_file_name_predicate. Temporarily unwind protect and rebind
10543 default-directory while checking completions against the predicate.
10544 (Fread_file_name): Added PREDICATE argument. Specbind it to
10545 Vread_file_name_predicate during completion.
10546 Call Vread_file_name_function to read the file name if non-nil.
10547
10548 * lisp.h (Fread_file_name): Now has 6 args.
10549
10550 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
10551 predicate for Fread_file_name when reading directory name.
10552 Supply Qnil for predicate in other calls to Fread_file_name.
10553
105542002-05-26 Miles Bader <miles@gnu.org>
10555
10556 * term.c (tty_capable_p): New function.
10557 * dispextern.h (tty_capable_p): New function declaration.
10558 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
10559 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
10560
105612002-05-23 Stefan Monnier <monnier@cs.yale.edu>
10562
10563 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
10564 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
10565 (Vwrite_region_annotate_functions): Docstring fix.
10566
105672002-05-23 Kim F. Storm <storm@cua.dk>
10568
10569 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
10570 phys_cursor's hpos is overwritten. This is still not completely
10571 correct, as it doesn't really make sense to use hpos at all to
10572 get the cursor glyph (as that is relative to the width of the
10573 characters on the line, which may have changed during the update).
10574
105752002-05-22 Jason Rumney <jasonr@gnu.org>
10576
10577 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
10578 Lisp_Object.
10579 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
10580 Use modified enumfont_t struct.
10581
10582 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
10583
10584 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
10585 Handle the `hbar' cursor type.
10586 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
10587
10588 * w32fns.c (Qhbar): New variable.
10589 (x_specified_cursor_type): Use it.
10590
105912002-05-21 Ken Raeburn <raeburn@gnu.org>
10592
10593 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
10594 now, when the address is needed.
10595
105962002-05-21 Colin Walters <walters@gnu.org>
10597
10598 * Makefile.in (shortlisp): Add font-core.el.
10599
106002002-05-20 Richard M. Stallman <rms@gnu.org>
10601
10602 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
10603
10604 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
10605 equivalent key bindings here.
10606
106072002-05-20 Ken Raeburn <raeburn@gnu.org>
10608
10609 Change symbol structure to contain a lisp object for the symbol
10610 name:
10611 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
10612 object field named "xname".
10613 (SYMBOL_NAME): New macro.
10614 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
10615 name field.
10616 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
10617 (mark_object, gc_sweep): Use symbol xname field and XSTRING
10618 instead of name field.
10619 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
10620 SYMBOL_NAME instead of XSYMBOL and name field.
10621 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
10622 instead of XSYMBOL and name field.
10623 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
10624 and SYMBOL_NAME instead of XSYMBOL and name field.
10625 * coding.c (Fread_coding_system, code_convert_region1)
10626 (code_convert_string1, code_convert_string_norecord)
10627 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
10628 XSYMBOL and name field.
10629 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
10630 (Fmake_variable_buffer_local, Fmake_local_variable)
10631 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
10632 of XSYMBOL and name field.
10633 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
10634 XSYMBOL and name field.
10635 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
10636 instead of XSYMBOL and name field.
10637 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
10638 XSYMBOL and name field.
10639 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
10640 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
10641 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
10642 instead of XSYMBOL and name field.
10643 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
10644 (parse_modifiers, apply_modifiers, Fevent_convert_list)
10645 (parse_solitary_modifier, Fexecute_extended_command):
10646 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
10647 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
10648 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
10649 of XSYMBOL and name field.
10650 (describe_command, describe_translation): Use SYMBOL_NAME and
10651 assignment instead of XSYMBOL and name field and XSETSTRING.
10652 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
10653 instead of XSYMBOL and name field.
10654 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
10655 name field and XSETSTRING.
10656 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
10657 of XSYMBOL and name field.
10658 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
10659 assignment instead of XSYMBOL and name field and XSETSTRING.
10660 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
10661 XSTRING instead of XSYMBOL and name field.
10662 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
10663 and XSTRING instead of XSYMBOL and name field.
10664 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
10665 and XSTRING instead of XSYMBOL and name field.
10666 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
10667 XSTRING instead of XSYMBOL and name field.
10668 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
10669 of XSYMBOL and name field.
10670 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
10671 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
10672
106732002-05-19 Ken Raeburn <raeburn@gnu.org>
10674
10675 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
10676 and XCDR real rvalues in most configurations.
10677
10678 * buffer.c (fix_overlays_in_range, fix_overlays_before):
10679 Don't take the address of the cdr part of a cons cell; instead, track
10680 the parent cell and call XSETCDR, or set the variable for the head
10681 of the list if we haven't started down the list yet.
10682
106832002-05-19 Richard M. Stallman <rms@gnu.org>
10684
10685 * doc.c (reread_doc_file): Don't ask for confirmation.
10686
106872002-05-18 Jason Rumney <jasonr@gnu.org>
10688
10689 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
10690 (xbm_load_image): Use it.
10691 (xbm_load): Ditto.
10692 (xbm_read_bitmap_data): Reverted to xfns.c version.
10693 From David Ponce <david@dponce.com>.
10694
106952002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
10696
10697 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
10698 2.02 and later.
10699
107002002-05-16 Juanma Barranquero <lektu@terra.es>
10701
10702 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
10703
107042002-05-15 Stefan Monnier <monnier@cs.yale.edu>
10705
10706 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
10707 meaningful test.
10708 (read_char_minibuf_menu_prompt): Fix typo.
10709
107102002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
10711
10712 * eval.c (Fcommandp): Doc fix.
10713
107142002-05-13 Stefan Monnier <monnier@cs.yale.edu>
10715
10716 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
10717 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
10718 (Fset_keymap_parent): Gcpro a bit more.
10719 (access_keymap): Gcpro around meta_map call and around the main loop.
10720 (get_keyelt): Gcpro when following indirect references.
10721 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
10722 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
10723 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
10724 Remove useless ad-hoc remap code.
10725
107262002-05-13 Richard M. Stallman <rms@gnu.org>
10727
10728 * search.c (search_buffer): Give up boyer moore search if inverse
10729 translation change charset_base.
10730
107312002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
10732
10733 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
10734 characters is carried over from the previous block of text, adjust
10735 coding->produced to account for the extra character.
10736
107372002-05-11 Andreas Schwab <schwab@suse.de>
10738
10739 * coding.c (intersection): Keep the elements of the returned list
10740 in the same order as in the first list.
10741
107422002-05-11 Kim F. Storm <storm@cua.dk>
10743
10744 * keymap.c (current_minor_maps): Fixed resizing of cmm_maps;
10745 only update cmm_size if realloc actually succeeds.
10746 Testing with initial size of 2 elements revealed that using
10747 realloc on GNU/Linux would cause a random trap in xmalloc
10748 later on, so I rewrote the code to use malloc/bcopy/free instead
10749 of realloc.
10750
107512002-05-10 Jason Rumney <jasonr@gnu.org>
10752
10753 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
10754
107552002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
10756
10757 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
10758 parens, to ensure correct evaluation order.
10759
107602002-05-10 Kim F. Storm <storm@cua.dk>
10761
10762 * keymap.c (Vemulation_mode_map_alists): New variable.
10763 (syms_of_keymap): DEFVAR_LISP it.
10764 (current_minor_maps): Process keymap alists in that list before
10765 minor-mode-overriding-map-alist and minor-mode-map-alist.
10766
107672002-05-09 Richard M. Stallman <rms@gnu.org>
10768
10769 * search.c (Freplace_match): Doc fix.
10770
107712002-05-09 Kim F. Storm <storm@cua.dk>
10772
10773 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
10774 Enlarge cursor rectangle drawn around image with non-zero relief.
10775
10776 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
10777 Enlarge cursor rectangle drawn around image with non-zero relief.
10778
10779 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
10780 Enlarge cursor rectangle drawn around image with non-zero relief.
10781
107822002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
10783
10784 * xselect.c (lisp_data_to_selection_data): Don't set selection
10785 type if comes from the Lisp object's car. If the selection
10786 contains a pure ASCII text, always return QSTRING as its type.
10787
107882002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10789
10790 * mac.c (mac-cut-function): Doc fix.
10791
107922002-05-05 Richard M. Stallman <rms@gnu.org>
10793
10794 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
10795
107962002-05-04 Jason Rumney <jasonr@gnu.org>
10797
10798 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
10799 for event-click-count.
10800
10801 * process.c (init_process): Only add server subfeature if we can
10802 use non-blocking I/O.
10803
108042002-05-04 Andrew Choi <akochoi@shaw.ca>
10805
10806 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
10807 repeatedly.
10808
108092002-05-03 Jason Rumney <jasonr@gnu.org>
10810
10811 * process.c (Fmake_network_process): Only support server sockets
10812 when we can make them non-blocking.
10813
10814 * s/ms-w32.h (HAVE_SELECT): Define.
10815
10816 * w32.h (FILE_NDELAY): New flag.
10817
10818 * w32.c (sys_getpeername, fcntl): New functions.
10819 (_sys_read_ahead): Temporarily block on non-blocking sockets.
10820
10821 * w32proc.c: include sys/file.h.
10822
108232002-05-03 Colin Walters <walters@verbum.org>
10824
10825 * callproc.c (Vgame_score_directory): Renamed to
10826 Vshared_game_score_directory.
10827
108282002-04-30 Richard M. Stallman <rms@gnu.org>
10829
10830 * s/gnu.h [emacs]: Include stdio.h.
10831 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
10832
10833 * eval.c (do_autoload): Error if called while preparing to dump.
10834
10835 * fns.c (Frequire): Error if need to load while preparing to dump.
10836
108372002-04-28 Colin Walters <walters@verbum.org>
10838
10839 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
10840 Default to "~/.emacs.d/games".
10841
108422002-04-29 Stefan Monnier <monnier@cs.yale.edu>
10843
10844 * lread.c (openp): Change arg exec_only to predicate.
10845 (build_load_history): Use XCAR/XCDR.
10846 (Flocate_file_internal): New fun.
10847 (syms_of_lread): Defsubr it.
10848 (Fload): Update call to openp.
10849
10850 * lisp.h (openp): Update prototype.
10851
10852 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
10853 * w32proc.c (sys_spawnve):
10854 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
10855 * w32.c (check_windows_init_file):
10856 * sound.c (Fplay_sound_internal):
10857 * process.c (Fstart_process):
10858 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
10859 * mac.c (run_mac_command):
10860 * emacs.c (init_cmdargs):
10861 * callproc.c (Fcall_process): Update call to openp.
10862
10863 * textprop.c (remove_properties): Don't use XCAR without CONSP.
10864
10865 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
10866
108672002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10868
10869 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
10870 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
10871
108722002-04-28 Richard M. Stallman <rms@gnu.org>
10873
10874 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
10875
10876 * eval.c (Fcommandp): New arg for_call_interactively.
10877 * lisp.h (Fcommandp): Declare new arg.
10878
108792002-04-28 Jason Rumney <jasonr@gnu.org>
10880
10881 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
10882
10883 * w32.c (stat, fstat): Use file index information to generate
10884 inodes for directories where available.
10885
108862002-04-26 Andrew Choi <akochoi@shaw.ca>
10887
10888 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
10889 [HAVE_CARBON]: Include Mac object files.
10890
10891 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
10892 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
10893 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
10894 MAC_OSX, and MAC_OS instead of macintosh.
10895
10896 * editfns.c [MAC_OS8]: Include stdio.h.
10897
10898 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
10899
10900 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
10901 Apple Monaco.
10902
10903 * process.c: Declare QCfamily and QCfilter as extern.
10904 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
10905 calling select.
10906
10907 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
10908
10909 * tparam.c [MAC_OSX]: Don't define BC and UP.
10910
10911 * config.in [HAVE_CARBON]: Add.
10912
10913 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
10914 Move here from mac/src and mac/inc.
10915
10916 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
10917
109182002-04-26 Gerd Moellmann <gerd@gnu.org>
10919
10920 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
10921 Compute phys_cursor_width from the x position returned
10922 by x_draw_glyhs, which is cheaper.
10923 (x_display_and_set_cursor): Compute the buffer-local value
10924 of `cursor-in-non-selected-windows' only when needed.
10925
109262002-04-25 Gerd Moellmann <gerd@gnu.org>
10927
10928 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
10929 cursor on a stretch glyph has a width that depends on
10930 x_stretch_cursor_p.
10931
109322002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10933
10934 * abbrev.c (abbrev-start-location): Doc fix.
10935
10936 * indent.c (Fvertical_motion): Fix last change.
10937
109382002-04-25 Gerd Moellmann <gerd@gnu.org>
10939
10940 * indent.c (Fvertical_motion): Move to the start of the line
10941 containing PT before moving up or down.
10942
109432002-04-24 Gerd Moellmann <gerd@gnu.org>
10944
10945 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
10946 case of writing a whole row, more or less analogous to the case of
10947 writing only parts of a row.
10948
10949 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
10950 0 for NO_CURSOR.
10951
10952 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
10953
109542002-04-23 Colin Walters <walters@verbum.org>
10955
10956 * buffer.c (syms_of_buffer): Doc fix.
10957
109582002-04-23 Gerd Moellmann <gerd@gnu.org>
10959
10960 * xterm.c (notice_overwritten_cursor): Handle the special case
10961 of the cursor being in the first blank non-text line at the
10962 end of a window.
10963
10964 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
10965 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
10966 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
10967 bar cursors only, to make phys_cursor_width contain what its name
10968 suggests.
10969 (notice_overwritten_cursor): Consider the cursor image erased if
10970 the output area intersects the cursor image in y-direction.
10971
109722002-04-23 Simon Marshall <simon@gnu.org>
10973
10974 * xfns.c (x_set_mouse_color): Change default for cross_cursor
10975 to XC_hand2.
10976
109772002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10978
10979 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
10980
109812002-04-22 Kim F. Storm <storm@cua.dk>
10982
10983 * textprop.c (remove_properties): Fixed trap for malformed plist.
10984
109852002-04-22 Richard M. Stallman <rms@gnu.org>
10986
10987 * cmds.c (Fend_of_line): Handle intangible text in mid line.
10988
10989 * window.c (make_window): Initialize height_fixed_p,
10990 last_cursor_off_p, and p->cursor_off_p slots.
10991
109922002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10993
10994 * fns.c (use-dialog-box): Doc fix.
10995
109962002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10997
10998 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
10999 variables `row', `i' and `area'.
11000 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
11001 toolkit library.
11002
110032002-04-19 Stefan Monnier <monnier@cs.yale.edu>
11004
11005 * xfaces.c (clear_font_table): Don't free the default font of
11006 a frame even if it's on another display.
11007 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
11008 that could be Qt.
11009
110102002-04-19 Juanma Barranquero <lektu@terra.es>
11011
11012 * indent.c (Fmove_to_column): Remove unused local variable
11013 `next_boundary_byte'.
11014 (current_column_1): Likewise.
11015
110162002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
11017
11018 * msdos.c (Qhbar): New variable.
11019 (syms_of_msdos): Intern and staticpro it.
11020 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
11021 cursor type.
11022
110232002-04-19 Dave Lambert <dlambert@acm.org>
11024
11025 Theses change implement an underscore-like (`hbar') cursor.
11026
11027 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
11028
11029 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
11030 Handle the `hbar' cursor type.
11031 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
11032
11033 * xfns.c (Qhbar): New variable.
11034 (syms_of_xfns): Intern and staticpro it.
11035 (x_specified_cursor_type): Handle `hbar' cursor.
11036
11037 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
11038 not defined.
11039
110402002-04-18 Richard M. Stallman <rms@gnu.org>
11041
11042 * textprop.c (remove_properties): New arg LIST allows scanning
11043 either a list or a plist.
11044 (interval_has_some_properties_list): New function, like
11045 interval_has_some_properties using list instead of plist.
11046 All callers changed.
11047 (Fremove_list_of_text_properties): New function.
11048 (syms_of_textprop): Defsubr it.
11049
110502002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
11051
11052 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
11053
110542002-04-17 Juanma Barranquero <lektu@terra.es>
11055
11056 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
11057
110582002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
11059
11060 * window.c (coordinates_in_window): Don't report on margin area
11061 if its width is zero.
11062
110632002-04-16 Jason Rumney <jasonr@gnu.org>
11064
11065 * w32fns.c (Fx_file_dialog): Decode file name before using.
11066
11067 * w32term.c (construct_drag_n_drop): Likewise.
11068
110692002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
11070
11071 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
11072 store load-history in pure space.
11073
11074 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
11075
110762002-04-16 Stefan Monnier <monnier@cs.yale.edu>
11077
11078 * xterm.c (Qlatin_1, Qutf_8): New vars.
11079 (syms_of_xterm): Initialize them.
11080 (XTread_socket): Eliminate incorrect optimization that tried to avoid
11081 decoding the output of X*LookupString.
11082 Always use latin-1 to decode the output of XLookupString.
11083 Try Xutf8LookupString if XmbLookupString failed.
11084
11085 * region-cache.c (new_region_cache): Use BEG.
11086
110872002-04-16 Gerd Moellmann <gerd@gnu.org>
11088
11089 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
11090 configuration files.
11091 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
11092 returns 0.
11093
110942002-04-15 Andreas Schwab <schwab@suse.de>
11095
11096 * config.in: Regenerated using autoheader.
11097
11098 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
11099 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
11100 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
11101 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
11102 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
11103 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
11104 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
11105 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
11106 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
11107 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
11108 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
11109 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
11110 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
11111 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
11112 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
11113 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
11114 STACK_DIRECTION, now set by autoconf.
11115
111162002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11117
11118 * dispnew.c (marginal_area_string): Sort arguments.
11119
11120 * dispextern.h (marginal_area_string): Add prototype.
11121
111222002-04-13 Richard M. Stallman <rms@gnu.org>
11123
11124 * fileio.c (Finsert_file_contents):
11125 Don't call temp_output_buffer_setup--do just part, by hand.
11126
11127 * coding.c (run_pre_post_conversion_on_str):
11128 Don't call temp_output_buffer_setup--do just part, by hand.
11129
11130 * keyboard.c (command_loop_1): Don't call start_hourglass
11131 or cancel_hourglass when executing a macro.
11132
11133 * marker.c (count_markers): New function.
11134
11135 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
11136 grow without limit. Move recently used elements to the front.
11137
111382002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
11139
11140 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
11141
111422002-04-12 Gerd Moellmann <gerd@gnu.org>
11143
11144 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
11145 rows marginal areas.
11146 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
11147 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
11148
11149 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
11150
111512002-04-12 Dave Love <fx@gnu.org>
11152
11153 * dispnew.c (marginal_area_string): New.
11154
11155 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
11156 (Qleft_margin, Qright_margin): Declare.
11157 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
11158
11159 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
11160 note_mode_line_highlight and extended.
11161
11162 * keyboard.c (Qleft_margin, Qright_margin): Declare.
11163 (make_lispy_event): Deal with mouse events in margins.
11164
111652002-04-12 Stefan Monnier <monnier@cs.yale.edu>
11166
11167 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
11168
11169 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
11170 than deactivating the mark if tmm is set to `lambda'.
11171 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
11172 Use a single event for HELP_EVENT.
11173 (Fexecute_extended_command): Save last_point_position.
11174
111752002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11176
11177 * lisp.h (Fpropertize): Add prototype.
11178
11179 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
11180
111812002-04-10 Colin Walters <walters@verbum.org>
11182
11183 * config.in: Add HAVE_SHARED_GAME_DIR.
11184
11185 * callproc.c: (Vgame_score_directory): New variable.
11186 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
11187
111882002-04-10 Richard M. Stallman <rms@gnu.org>
11189
11190 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
11191
111922002-04-09 Stefan Monnier <monnier@cs.yale.edu>
11193
11194 * minibuf.c (read_minibuf): Use empty_string.
11195 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
11196 Short-circuit the search as soon as it "failed".
11197 (Fall_completions): Allow lambda forms and lists of strings for alist.
11198 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
11199 when require_match is nil.
11200 (Ftest_completion): Rename from `test_completion' and export to elisp.
11201 Call the predicate also when alist is a list.
11202 Obey Vcompletion_regexp_list.
11203 (do_completion, Fminibuffer_complete_and_exit): Use it.
11204 (Fassoc_string): Rename from `assoc_for_completion'.
11205 Allow list of strings as well and export to elisp.
11206
112072002-04-08 Stefan Monnier <monnier@cs.yale.edu>
11208
11209 * puresize.h (BASE_PURESIZE): Increase to 900KB.
11210
112112002-04-08 Juanma Barranquero <lektu@terra.es>
11212
11213 * w32.c (sys_accept): Don't hide variable `s'.
11214
112152002-04-05 Gerd Moellmann <gerd@gnu.org>
11216
11217 * callint.c (Fcall_interactively): Use INTEGERP instead of
11218 NUMBERP for checking Vhistory_length.
11219
112202002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11221
11222 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
11223 Doc fix to reflect it.
11224
112252002-04-04 Richard M. Stallman <rms@gnu.org>
11226
11227 * xdisp.c (display_mode_element): New arg RISKY.
11228 Disregard text props found or specified within a variable
11229 that isn't marked risky-local-variable.
11230 (Qrisky_local_variable): New variable.
11231 (syms_of_xdisp): Init and staticpro it.
11232
112332002-04-04 Stefan Monnier <monnier@cs.yale.edu>
11234
11235 * undo.c (record_point): New fun.
11236 (record_delete, record_insert): Use it.
11237
112382002-04-03 Juanma Barranquero <lektu@terra.es>
11239
11240 * doc.c (Fdocumentation): Add missing parentheses.
11241 (Fdocumentation_property): Likewise.
11242
112432002-04-03 Stefan Monnier <monnier@cs.yale.edu>
11244
11245 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
11246 data is 0, just return nil.
11247
112482002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
11249
11250 * msdos.c (syms_of_msdos): Fix last change with
11251 mouse_autoselect_window.
11252
112532002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11254
11255 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
11256 mouse_autoselect_window.
11257
112582002-04-02 Stefan Monnier <monnier@cs.yale.edu>
11259
11260 * keyboard.c (make_lispy_event): Handle unknown keysyms together
11261 with system-specific keysyms. Use it also for unknown function keys.
11262
11263 * doc.c (reread_doc_file): Return whether reload was attempted.
11264 (Fdocumentation, Fdocumentation_property): Don't try to reload
11265 if the doc is 0 and only ask once.
11266
11267 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
11268
112692002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
11270
11271 * keyboard.c (read_char): If the event was Qselect_window,
11272 restore timer_idleness_start_time to its previous value.
11273
11274 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
11275
112762002-04-01 Stefan Monnier <monnier@cs.yale.edu>
11277
11278 * region-cache.c (new_region_cache): Use BEG.
11279
11280 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
11281 Use BEG and BEG_BYTE.
11282
11283 * doc.c (get_doc_string): Return nil if the location is wrong.
11284 (reread_doc_file): New fun.
11285 (Fdocumentation, Fdocumentation_property):
11286 Call it if get_doc_string fails.
11287 (Fsnarf_documentation): Make it work for a dumped Emacs.
11288
11289 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
11290 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
11291
11292 * charset.c (Fstring): Allow 0 arguments.
11293
11294 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
11295
11296 * process.c (DATAGRAM_CONN_P, list_processes_1)
11297 (Fprocess_datagram_address, Fset_process_datagram_address)
11298 (Fset_network_process_options, server_accept_connection):
11299 Fix some int/Lisp_Object confusions (thank you union types).
11300
113012002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11302
11303 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
11304
11305 * w32term.c: Likewise.
11306 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
11307
11308 * keyboard.c (Qselect_window): New symbol.
11309 (head_table): Use it.
11310 (keys_of_keyboard): Bound select-window event to handle-select-window.
11311 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
11312
11313 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
11314 (last_window): New variable.
11315 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
11316 (note_mouse_movement): Remove reimplemented code in #if 0.
11317 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
11318 Emacs windows.
11319
11320 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
11321
113222002-03-31 Gerd Moellmann <gerd@gnu.org>
11323
11324 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
11325 Callers changed.
11326
113272002-03-30 Richard M. Stallman <rms@gnu.org>
11328
11329 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
11330 loop whenever it stops making progress.
11331
11332 * widget.c (set_frame_size): Don't call change_frame_size.
11333
113342002-03-30 Gerd Moellmann <gerd@gnu.org>
11335
11336 * dispnew.c (direct_output_for_insert):
11337 Call mark_window_display_accurate.
11338
113392002-03-29 Jason Rumney <jasonr@gnu.org>
11340
11341 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
11342
113432002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
11344
11345 * Makefile.in (lread.o): Depend on coding.h.
11346
11347 * lread.c (openp, Fload): Encode the file name before passing it
11348 to `stat', `access', and `emacs_open'.
11349 (openp): GCPRO the encoded file name. Don't recompute Lisp
11350 strings unnecessarily.
11351
113522002-03-29 Kim F. Storm <storm@cua.dk>
11353
11354 * fns.c (Flax_plist_put): Doc fix.
11355
113562002-03-28 Miles Bader <miles@gnu.org>
11357
11358 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
11359
113602002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11361
11362 * process.c (set-network-process-options): Add usage.
11363 (make-network-process): Doc fix.
11364
113652002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
11366
11367 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
11368
113692002-03-26 Richard M. Stallman <rms@gnu.org>
11370
11371 * fns.c (Fsubstring_no_properties): New function.
11372 (Flax_plist_get, Flax_plist_put): New functions.
11373 (syms_of_fns): defsubr them.
11374
11375 * xdisp.c (update_menu_bar): Test only update_mode_lines;
11376 don't test or alter w->update_mode_line.
11377
11378 * window.c (Fdisplay_buffer): Doc fix.
11379
113802002-03-24 Richard M. Stallman <rms@gnu.org>
11381
11382 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
11383
113842002-03-24 Gerd Moellmann <gerd@gnu.org>
11385
11386 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
11387 (Fdefmacro): Handle `(declare ...)'.
11388 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
11389 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
11390
113912002-03-24 Jason Rumney <jasonr@gnu.org>
11392
11393 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
11394 (xbm_file_p): Add prototypes.
11395 (xbm_format, xbm_image_p): Sync with xfns.c.
11396 (reflect_byte): New function.
11397 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
11398 (xbm_load_image): Create bitmaps with a depth of 1.
11399 (init_xfns): Enable XBM images.
11400
114012002-03-23 Jason Rumney <jasonr@gnu.org>
11402
11403 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
11404 correctly. Do not pass up_modifier to keyboard buffer.
11405
11406 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
11407
114082002-03-22 Stefan Monnier <monnier@cs.yale.edu>
11409
11410 * Makefile.in (bootstrapclean): New target.
11411 (bootstrap-temacs, bootstrap-doc): Remove.
11412 (bootstrap-emacs): Use a bog-standard `temacs'.
11413 Don't bother to build a DOC file.
11414
11415 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
11416
11417 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
11418 in temacs even if !CANNOT_DUMP.
11419 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
11420
11421 * alloc.c (check_pure_size): Only output a warning.
11422
114232002-03-22 Jason Rumney <jasonr@gnu.org>
11424
11425 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
11426 supported.
11427
11428 * w32term.c (zv_bits): Declare as short, for word alignment.
11429 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
11430 (syms_of_w32term): Define x-use-underline-position-properties.
11431
11432 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
11433 (clear_image_cache): Block input, fix logic, clear matrices in
11434 all frames that share this cache.
11435
114362002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
11437
11438 * emacs.c (main): Update the Copyright year in the blurb printed
11439 by "emacs --version".
11440
11441 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
11442
11443 * xterm.c (XTread_socket): If XK_ISO_Lock and
11444 XK_ISO_Last_Group_Lock are defined, handle keysyms between
11445 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
11446
114472002-03-21 Kim F. Storm <storm@cua.dk>
11448
11449 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
11450 menu-bar bindings in keymap and local-map properties _are_ used.
11451 But try keymap property first in accordance with 2002-01-03 patch.
11452 Added comment describing why this is not always reliable.
11453 (tool_bar_items): Ditto for tool-bar.
11454
114552002-03-21 Jason Rumney <jasonr@gnu.org>
11456
11457 * w32fns.c (x_clear_image_1): Disable color table code.
11458
114592002-03-21 Kim F. Storm <storm@cua.dk>
11460
11461 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
11462 removed the wrong version of the DEFUN macro; fixed it.
11463
11464 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
11465 Fmember rather than Fmemq).
11466 (Fprovide): Check that subfeatures is a list.
11467
11468 * process.c (QCfeature, QCdatagram): Removed variables.
11469 (QCtype, Qdatagram): New variables.
11470 (network_process_featurep): Removed function.
11471 (Fmake_network_process): Removed :feature check.
11472 Use :type 'datagram instead of :datagram t to create a datagram
11473 socket. This allows us to add other connection types (e.g. raw
11474 sockets) later in a consistent manner.
11475 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
11476 supported subfeatures for feature make-network-process.
11477 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
11478 Intern and staticpro QCtype and Qdatagram.
11479 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
11480
11481 * xfns.c: (QCtype): Remove duplicate declaration and
11482 initialization (is now declared in process.c).
11483
11484 * w32fns.c: (QCtype): Remove duplicate declaration and
11485 initialization (is now declared in process.c).
11486
114872002-03-21 Richard M. Stallman <rms@gnu.org>
11488
11489 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
11490 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
11491 when jumping to `fail' to avoid undoing reg changes in the
11492 last iteration of the loop.
11493 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
11494
11495 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
11496 Depend on process.h.
11497
114982002-03-20 Jason Rumney <jasonr@gnu.org>
11499
11500 Most of the following changes are still conditional on HAVE_IMAGES
11501 which is not set by default on Windows.
11502
11503 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
11504
11505 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
11506 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
11507 (four_corners_best, x_clear_image_1, x_clear_image)
11508 (x_alloc_image_color, postprocess_image)
11509 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
11510 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
11511 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
11512
11513 * w32gui.h (struct XImage): Define.
11514
11515 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
11516 extract mouse co-ordinates.
11517
115182002-03-20 Jason Rumney <jasonr@gnu.org>
11519
11520 * w32.c (init_winsock): Dynamically load new server and UDP
11521 socket functions.
11522 (socket_to_fd): New function.
11523 (sys_socket): Use it.
11524 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
11525 (sys_recvfrom, sys_sendto): New wrapper functions.
11526
11527 * process.c (QCfamily, QCfilter): Remove duplicate declaration
11528 and initialization.
11529
11530 * makefile.w32-in (LIBS): Remove $(WSOCK32).
11531
115322002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
11533
11534 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
11535 Don't use "sun" as a variable, it's a predefined constant on Sun
11536 machines.
11537
115382002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11539
11540 * bytecode.c (Fbyte_code): Revert last change.
11541
115422002-03-19 Kim F. Storm <storm@cua.dk>
11543
11544 * makefile.w32-in (LIBS): Add $(WSOCK32).
11545 From David Ponce <dponce@voila.fr>.
11546
115472002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11548
11549 * process.c (wait_reading_process_input): Move variables `pname'
11550 and `pnamelen' down where they are used.
11551
11552 * bytecode.c (Fbyte_code): Discard unused computed value to
11553 prevent gcc warning.
11554
11555 * lisp.h (Fplist_member): Add prototype.
11556
115572002-03-18 Kim F. Storm <storm@cua.dk>
11558
11559 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
11560 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
11561
11562 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
11563 Remove explicit GNU_LINUX settings for datagram support.
11564
115652002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11566
11567 * process.c (Fmake_network_process): Remove unused variable `sa'.
11568 Doc fix. Add usage:.
11569 (set_socket_options): Remove unused variables `optnum' and `opttype'.
11570
115712002-03-17 Richard M. Stallman <rms@gnu.org>
11572
11573 * xdisp.c (cursor_type_changed): New variable.
11574 (redisplay_internal): Redisplay all windows if cursor_type_changed.
11575 Clear it when clearing windows_or_buffers_changed.
11576 (try_cursor_movement, redisplay_window, try_window_id)
11577 (try_window_reusing_current_matrix): Test cursor_type_changed
11578 along with windows_or_buffers_changed.
11579
11580 * window.h (cursor_type_changed): New variable.
11581
11582 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
11583 not update_mode_lines, and always set it to 1.
11584
11585 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
11586 if no frames needed redrawing.
11587
115882002-03-17 Kim F. Storm <storm@cua.dk>
11589
11590 The following changes add support for network server processes,
11591 datagram connections, and local (unix) sockets.
11592
11593 * process.h (struct Lisp_Process): New member log.
11594 Doc fix: Member command used to indicate stopped network process.
11595 Doc fix: Member childp contains plist for network process.
11596 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
11597
11598 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
11599 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
11600 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
11601 New variables.
11602 (NETCONN1_P): New macro.
11603 (DATAGRAM_SOCKETS): New conditional symbol.
11604 (datagram_address): New array.
11605 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
11606 (status_message): Use concat3.
11607 (Fprocess_status): Add `listen' status to doc string. Return `stop'
11608 for a stopped network process.
11609 (Fset_process_buffer): Update contact plist for network process.
11610 (Fset_process_filter): Ditto. Don't enable input for stopped
11611 network processes. Server must listen, even if filter is t.
11612 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
11613 New functions.
11614 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
11615 (Fprocess_contact): Added KEY argument. Handle datagrams.
11616 (list_processes_1): Optionally show only processes with the query
11617 on exit flag set. Dynamically adjust column widths. Omit tty
11618 column if not needed. Report stopped network processes.
11619 Identify server and datagram network processes.
11620 (Flist_processes): New optional arg `query-only'.
11621 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
11622 (conv_lisp_to_sockaddr, set_socket_options)
11623 (network_process_featurep, unwind_request_sigio): New helper functions.
11624 (Fprocess_datagram_address, Fset_process_datagram_address):
11625 (Fset_network_process_options): New lisp functions.
11626 (Fopen_network_stream): Removed. Now defined in simple.el.
11627 (Fmake_network_process): New lisp function. Code is based on previous
11628 Fopen_network_stream, but heavily reworked with new property list based
11629 argument list, support for datagrams, server processes, and local
11630 sockets in addition to old client-only functionality.
11631 (server_accept_connection): New function.
11632 (wait_reading_process_input): Use it to handle incoming connects.
11633 Do not enable input on a new connection if process is stopped.
f63fd14e 11634 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
048addec
JD
11635 (send_process): Handle datagram sockets.
11636 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
11637 network process is indicated by setting command field to t .
11638 (Fprocess_send_eof): No-op if datagram connection.
11639 (Fstatus_notify): Don't read input for a stream server socket or a
11640 stopped network process.
11641 (init_process): Initialize datagram_address array.
11642 (syms_of_process): Intern and staticpro new variables, defsubr new
11643 functions.
11644
116452002-03-16 Jason Rumney <jasonr@gnu.org>
11646
11647 * w32fns.c (w32_to_all_x_charsets): Return correct type in
11648 startup case.
11649
116502002-03-16 Richard M. Stallman <rms@gnu.org>
11651
11652 * xdisp.c (redisplay_internal, redisplay_windows):
11653 Use list_of_error to call internal_condition_case_1.
11654 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
11655 so as to catch all errors with no possibility of debugger redisplay.
11656 (list_of_error): New variable.
11657 (syms_of_xdisp): Init and staticpro it.
11658
11659 * print.c (print_object): Delete `\ ' from printed rep of frame.
11660
116612002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
11662
11663 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
11664 until its implementation is fixed.
11665
116662002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11667
11668 * xfns.c (png_load): Remove unused variable `gamma_str'.
11669
116702002-03-14 Richard M. Stallman <rms@gnu.org>
11671
11672 * xfns.c (x_real_positions): Handle failure in XQueryTree.
11673
116742002-03-14 Miles Bader <miles@gnu.org>
11675
11676 * intervals.c (adjust_for_invis_intang): New function.
11677 (set_point_both): Use `adjust_for_invis_intang' to do most of the
11678 work for dealing with invisible+intangible regions. Do so before
11679 and after both forward and backward movements, to handle both
11680 front-sticky and rear-sticky cases.
11681 * textprop.c (text_property_stickiness): Function moved here from
11682 `editfns.c'.
11683 * intervals.h (text_property_stickiness): New declaration.
11684 * editfns.c (char_property_eq): Function removed.
11685 (text_property_stickiness): Function moved to `textprop.c'.
11686
116872002-03-13 Jason Rumney <jasonr@gnu.org>
11688
11689 * config.in: Add STRFTIME_NO_POSIX2.
11690
11691 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
11692 and %OX when underlying strftime does not.
11693
116942002-03-13 Stefan Monnier <monnier@cs.yale.edu>
11695
11696 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
11697 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
11698 line) to avoid annoying flicker.
11699 (xm_scroll_callback): Get rid of the now unnecessary kludge.
11700 (XTread_socket): Mark it static.
11701
11702 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
11703
117042002-03-13 Kim F. Storm <storm@cua.dk>
11705
11706 * puresize.h (BASE_PURESIZE): Increase to 775000.
11707
117082002-03-12 Juanma Barranquero <lektu@terra.es>
11709
11710 * editfns.c (syms_of_editfns): Fix typo.
11711
117122002-03-12 Gerd Moellmann <gerd@gnu.org>
11713
11714 * xsmfns.c: Include stdio.h because termhooks.h needs it.
11715 Include termopt.h for interrupt_input.
11716
117172002-03-11 Andreas Schwab <schwab@suse.de>
11718
11719 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
11720
117212002-03-11 Gerd Moellmann <gerd@gnu.org>
11722
11723 * xterm.c (note_mouse_movement): Put code for
11724 x_autoselect_window_p in #if 0.
11725
11726 * lread.c (Fload): Don't assume that message_with_string uses the
11727 string it is given like a C string.
11728
117292002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11730
11731 * xterm.h (x_session_check_input, x_session_initialize): Declared.
11732
11733 * xterm.c: (XTread_socket): Add call to x_session_check_input and
11734 x_session_have_connection.
11735 (x_initialize): Add call to x_session_initialize.
11736
11737 * termhooks.h (enum event_kind): Add save_session_event.
11738
11739 * keyboard.c: Add Emacs event save_session_event.
11740
11741 * emacs.c (main): Add call to syms_of_xsmfns.
11742
11743 * lisp.h: Declare syms_of_xsmfns as extern.
11744
11745 * config.in: Add HAVE_X_SM.
11746
11747 * Makefile.in (LIBXT): Add -lSM -lICE
11748 if HAVE_X_SM and not USE_X_TOOLKIT.
11749 (XOBJ): New file xsmfns.c added.
11750
11751 * xsmfns.c: New file for X session management.
11752
117532002-03-09 Jason Rumney <jasonr@gnu.org>
11754
11755 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
11756 read-only when setting modified time.
11757
117582002-03-08 Gerd Moellmann <gerd@gnu.org>
11759
11760 * xdisp.c (move_it_vertically_backward): At the end of the function,
11761 when moving forward by lines, treat terminal frames specially.
11762
11763 * keyboard.c (echo_char): Make sure to add a separator between
11764 keys even if echo_dash hasn't been called.
11765
11766 * xdisp.c: Use new string macros.
11767 (update_echo_area): Pass number of bytes to message3 instead of
11768 number of chars.
11769 (set_message_1): Don't access a string's size_byte directly.
11770 (decode_mode_spec_coding): Use number of bytes of eoltype string
11771 instead number of chars.
11772
11773 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
11774
117752002-03-08 Juanma Barranquero <lektu@terra.es>
11776
11777 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
11778 24-bit.
11779
117802002-03-06 Jason Rumney <jasonr@gnu.org>
11781
11782 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
11783
117842002-03-06 Gerd Moellmann <gerd@gnu.org>
11785
11786 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
11787 (cancel_echoing, echo_length, echo_truncate): Changed to
11788 work with new kboard definition.
11789 (echo_now): Use message3_nolog instead of message2_nolog.
11790
11791 * alloc.c (mark_kboards): Mark echo_string.
11792
11793 * keyboard.h (ECHOBUFSIZE): Removed.
11794 (struct kboard): Member echoptr removed, member echobuf renamed
11795 to echo_string.
11796
11797 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
11798 message3 instead of message2 to display the message using STRING's
11799 text properties.
11800
118012002-03-05 Andreas Schwab <schwab@suse.de>
11802
11803 * xdisp.c (hscroll_margin): Change to EMACS_INT.
11804
118052002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
11806
11807 * frame.c (default-frame-alist): Explain that setting it doesn't
11808 affect existing frames.
11809
118102002-03-05 Stefan Monnier <monnier@cs.yale.edu>
11811
11812 * indent.c (skip_invisible): Fix my brain fart.
11813
11814 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
11815
118162002-03-04 Stefan Monnier <monnier@cs.yale.edu>
11817
11818 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
11819 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
11820 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
11821 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
11822 and variables to use EMACS_INT instead of just int.
11823
11824 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
11825
118262002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
11827
11828 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
11829 environment, pass it down with corrected value.
11830
118312002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11832
11833 * lread.c (read_filtered_event): Do not call start_hourglass
11834 before returning.
11835
118362002-03-04 Juanma Barranquero <lektu@terra.es>
11837
11838 * w32term.c (x_display_and_set_cursor): Fix typo.
11839
118402002-03-03 Richard M. Stallman <rms@gnu.org>
11841
11842 * fileio.c (Fmake_temp_name): Doc fix.
11843
118442002-03-03 Gary Wong <gtw@gnu.org>
11845
11846 * termcap.c [!emacs]: Replace ospeed for building standalone
11847 libtermcap, for binary compatibility.
11848
11849 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
11850
118512002-03-03 Richard M. Stallman <rms@gnu.org>
11852
11853 * xrdb.c (file_p): Rename arg `path' to `filename'.
11854
11855 * abbrev.c (Fexpand_abbrev): Increment plist as use count
11856 only if it is an integer.
11857
11858 * xfns.c (png_load): Set screen_gamma based on f->gamma.
11859 If png_get_sRGB gives an answer, call png_set_gamma
11860 using the default image gamma value.
11861
11862 * lread.c (read1): When reading from a file, default string to
11863 multibyte only if it has some multibyte characters.
11864
11865 * print.c (print_object): Output multibyte chars 128...255
11866 using \x even if ! print_escape_multibyte.
11867
11868 * xdisp.c (display_mode_element): Move the places where
11869 bytepos, charpos, this, and lisp_string are set.
11870 Use lisp_string to set bytepos.
11871
11872 * xdisp.c (redisplay_internal):
11873 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
11874
11875 * xdisp.c (display_mode_element): Merge properties specified with
11876 :propertize onto those that come with the string.
11877
118782002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
11879
11880 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
11881 automatic-hscrolling. Users changed.
11882 <hscroll-margin>: Renamed from automatic-hscroll-margin.
11883 Users changed.
11884 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
11885
118862002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
11887
11888 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
11889
118902002-03-02 Kim F. Storm <storm@cua.dk>
11891
11892 * window.c (Fminibuffer_selected_window): New function.
11893 (syms_of_window): Defsubr it.
11894
118952002-03-01 Kim F. Storm <storm@cua.dk>
11896
11897 * window.h (struct window): New member phys_cursor_width.
11898
11899 * window.c (make_window, replace_window): Init phys_cursor_width.
11900
11901 * xterm.c (x_display_and_set_cursor): Blink box cursor using
11902 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
11903
11904 * w32term.c (x_display_and_set_cursor): Blink box cursor using
11905 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
11906
11907 * lisp.h (GCPRO6): New macro.
11908
11909 * process.c (Fopen_network_stream): Use GCPRO6.
11910
119112002-03-01 Kim F. Storm <storm@cua.dk>
11912
11913 * process.c (Qconnect, Qfailed): New variables.
11914 (syms_of_process): Intern and staticpro them.
11915 (Fprocess_status): Document connect and failed return values.
11916 [NON_BLOCKING_CONNECT]: New conditional.
11917 (connect_wait_mask, num_pending_connects): New variables.
11918 (status_message): Convert Qfailed status.
11919 (Fopen_network_stream): Added support for non-blocking connect.
11920 New optional args: filter, sentinel, non_blocking. Doc updated.
11921 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
11922 (deactivate_process): Handle pending non-blocking connect.
11923 (wait_reading_process_input): Poll for status of non-blocking
11924 connects. Exec sentinel directly when connect succeeds.
11925 (status_notify): Don't read process output if not yet connected.
11926
119272002-02-28 Kim F. Storm <storm@cua.dk>
11928
11929 * window.c: (minibuf_selected_window): Renamed from
11930 Vminibuf_selected_window. Users changed.
11931 (syms_of_window): Staticpro it.
11932
119332002-02-26 Kim F. Storm <storm@cua.dk>
11934
11935 The following changes add a new Vminibuf_selected_window variable
11936 which is similar to Vminibuf_scroll_window, but which is only set
11937 on entry to the minibuffer (from a non-minibuffer window):
11938
11939 * window.c: (Vminibuf_selected_window): New variable.
11940 (struct save_window_data): New member minibuf_selected_window.
11941 (Fset_window_configuration): Restore Vminibuf_selected_window.
11942 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
11943 Set minibuf_scroll_window member to nil if minibuf_level is 0.
11944 (compare_window_configurations): Compare minibuf_selected_window.
11945
11946 * window.h: (Vminibuf_selected_window): Declare extern.
11947
11948 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
11949 entry to minibuffer or on entry from a non-minibuffer window.
11950
11951 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
11952 Vminibuf_selected_window instead of Vminibuf_scroll_window.
11953
11954 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
11955 instead of Vminibuf_scroll_window when deciding in which window
11956 the region should be highlighted. Consequently, the region remains
11957 highlighteded even when a completion buffer is also displayed.
11958
119592002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
11960
11961 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
11962
11963 * xselect.c (Qcompound_text_with_extensions): Renamed from
11964 Qcompound_text_no_extensions.
11965 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
11966
119672002-02-26 Juanma Barranquero <lektu@terra.es>
11968
11969 * w32proc.c (syms_of_ntproc): Doc fix.
11970
119712002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11972
11973 * intervals.h: Include "dispextern.h" unconditionally.
11974
119752002-02-24 Jason Rumney <jasonr@gnu.org>
11976
11977 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
11978 and disp-table.elc.
11979 (lisp): Add emacs-lisp/backquote.elc.
11980
119812002-02-24 Kim F. Storm <storm@cua.dk>
11982
11983 * keymap.c (Flookup_key): Fixed problem in 2001-12-28 patch:
11984 The validation of the event type was too strict as it didn't
11985 allow string events; buffer names are used in bindings for
11986 menu-bar-select-buffer (see `menu-bar-update-buffers').
11987
119882002-02-23 Kim F. Storm <storm@cua.dk>
11989
11990 The following changes rework my patch of 2002-02-06 which
11991 added command remapping by entering the commands directly into
11992 the keymaps. Now, command remapping uses an explicit `remap'
11993 prefix in the keymaps, i.e. [remap COMMAND].
11994
11995 * keymap.c (Qremap, remap_command_vector): New variables.
11996 (is_command_symbol): Removed function.
11997 (Fdefine_key): No longer accept a symbol for KEY.
11998 Added validation of [remap COMMAND] argument for KEY.
11999 The DEF is no longer required to be a symbol when remapping a command.
12000 (Fremap_command): New function to remap command through keymaps.
12001 (Flookup_key): Perform command remapping initiated by
12002 Fremap_command directly for speed.
12003 (Fkey_binding): Use Fremap_command for command remapping.
12004 (where_is_internal): Handle new command remapping representation.
12005 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
12006 staticpro them. Defsubr Fremap_command.
12007
12008 * keymap.h (Fremap_command): Declare extern.
12009 (is_command_symbol): Remove extern.
12010
12011 * keyboard.c (command_loop_1): Use Fremap_command for command
12012 remapping; now try command remapping for all symbols.
12013
120142002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
12015
12016 * coding.h (run_pre_post_conversion_on_str): Add prototype.
12017
120182002-02-23 Jason Rumney <jasonr@gnu.org>
12019
12020 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
12021 on the string before encoding it.
12022 (Fw32_get_clipboard_data): Run post-read-conversion on the string
12023 after decoding it.
12024
12025 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
12026
120272002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12028
12029 * w32term.c (enter_timestamp): Remove unused static variable to
12030 prevent warning.
12031
12032 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
12033
120342002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
12035
12036 * w16select.c (Fw16_get_clipboard_data): Fix last change.
12037
12038 * xselect.c (selection_data_to_lisp_data): Fix last change.
12039
120402002-02-22 Jason Rumney <jasonr@gnu.org>
12041
12042 * w32term.h (struct w32_output): New member menu_command_in_progress.
12043
12044 * w32menu.c (menubar_selection_callback): Free the menu and
12045 clear the menu_command_in_progress flag.
12046
12047 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
12048 (menu_free_timer): New variable.
12049 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
12050 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
12051 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
12052 menu command is in progress.
12053 <WM_COMMAND>: Set the menu_command_in_progress flag.
12054 Kill any menu_free_timer that is running.
12055
12056 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
12057 Call ExtTextOutA rather than ExtTextOut.
12058
120592002-02-22 Eli Zaretskii <eliz@gnu.org>
12060
12061 * puresize.h (BASE_PURESIZE): Increase to 755000.
12062
120632002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
12064
12065 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
12066 on the string before encoding it.
12067 (Fw16_get_clipboard_data): Run post-read-conversion on the string
12068 after decoding it.
12069
120702002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
12071
12072 Support for ICCCM Extended Segments in X selections:
12073
12074 * xselect.c <Qcompound_text_no_extensions>: New variable.
12075 (syms_of_xselect): Intern and staticpro it.
12076 (selection_data_to_lisp_data): Run post-read-conversion on decoded
12077 selection text.
12078 (lisp_data_to_selection_data): If next-selection-coding-system is
12079 compound-text-no-extensions, set the type of selection to be
12080 compound-text.
12081
12082 * xterm.h (x_encode_text): Update prototype.
12083
12084 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
12085 callers changed. If SELECTIONP is non-zero, run the
12086 pre-write-conversion function before encoding the selection text.
12087
120882002-02-21 Kim F. Storm <storm@cua.dk>
12089
12090 * frame.c (syms_of_frame): Change mouse-highlight default to t.
12091
12092 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
12093 Correct composing of language-change event.
12094
120952002-02-20 Kim F. Storm <storm@cua.dk>
12096
12097 * keyboard.c (menu_bar_items): Don't include keymap or local-map
12098 bindings at PT when building menu (the menu is not updated often
12099 enough for this to work reliable).
12100 (tool_bar_items): Likewise.
12101 (current_active_maps): Removed unused (and buggy) function.
12102
121032002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12104
12105 * xfns.c (gif_load): Use correct width and height for GIF images.
12106
121072002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
12108
12109 * floatfns.c (Fatan): Accept an optional second arg and call
12110 atan2 if passed 2 args.
12111
121122002-02-18 Jason Rumney <jasonr@gnu.org>
12113
12114 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
12115
121162002-02-17 Jason Rumney <jasonr@gnu.org>
12117
12118 * w32term.c (x_autoselect_window_p): New variable.
12119 (syms_of_w32term): DEFVAR_BOOL and initialize it.
12120 (note_mouse_movement): Use it.
12121
12122 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
12123
12124 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
12125
12126 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
12127 New variables.
12128 (syms_of_w32fns): Intern and staticpro them.
12129 (x_frame_parms) <"fullscreen">: New parameter.
12130 (x_fullscreen_move, x_set_fullscreen): New functions.
12131 (x_set_frame_parameters): Support Qfullscreen.
12132 (x_real_positions): Save x/y_pixels_diff frame params.
12133 (x_figure_window_size): Support full-screen frames.
12134 (Fx_create_frame): Default the fullscreen parameter.
12135
12136 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
12137 (x_fullscreen_adjust): New functions.
12138 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
12139 fullscreen. Call x_check_fullscreen_move, and set the
12140 want_fullscreen member of output_data.w32
12141 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
12142
12143 * w32term.h: New enum for FULLSCREEN_* constants.
12144 (struct w32_output): New members want_fullscreen, x_pixels_diff,
12145 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
12146 (x-fullscreen-adjust): New prototype.
12147
121482002-02-17 Kim F. Storm <storm@cua.dk>
12149
12150 * frame.c: (Vmouse_highlight): New variable.
12151 (syms_of_frame): DEFVAR_LISP it.
12152
12153 * frame.h: (Vmouse_highlight): Declare extern.
8a8e19a3 12154
048addec 12155 * xterm.h (struct x_display_info): Add mouse_face_hidden.
8a8e19a3 12156
048addec
JD
12157 * xterm.c (disable_mouse_highlight): Removed variable.
12158 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
12159 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
12160 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
12161 and on after keyboard input.
12162 (x_term_init): Initialize mouse_face_hidden.
8a8e19a3 12163
048addec 12164 * msdos.h (struct display_info): Add mouse_face_hidden.
8a8e19a3 12165
048addec
JD
12166 * msdos.c (disable_mouse_highlight): Removed variable.
12167 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
12168 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
12169 (internal_terminal_init): Initialize mouse_face_hidden.
12170 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
12171 and on after keyboard input.
4f1b1854 12172
048addec 12173 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
4f1b1854 12174
048addec
JD
12175 * w32term.c (disable_mouse_highlight): Removed variable.
12176 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
12177 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
12178 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
12179 and on after keyboard input.
12180 (w32_initialize_display_info): Initialize mouse_face_hidden.
4f1b1854 12181
048addec 121822002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
4f1b1854 12183
048addec
JD
12184 * msdos.c (last_mouse_window): New variable.
12185 (dos_rawgetc): Fix last change--if the mouse is in the same window
12186 as recorded in last_mouse_window, don't select this window.
5cb6905d 12187
048addec 12188 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
5cb6905d 12189
048addec
JD
12190 * msdos.c (x_autoselect_window_p): New variable.
12191 (syms_of_msdos): Defvar it.
12192 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
12193 which the last mouse movement occured, unless it is already selected.
437dfb9f 12194
048addec
JD
12195 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
12196 New variables.
12197 (syms_of_xdisp): DEVFAR them.
12198 (hscroll_window_tree): Use automatic_hscroll_margin and
12199 Vautomatic_hscroll_step to compute the amount of window scrolling.
437dfb9f 12200
048addec 122012002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9f696a00 12202
048addec
JD
12203 * xterm.c (x-autoselect-window): New variable.
12204 (note_mouse_movement): Use it.
9f696a00 12205
048addec 12206 * keyboard.c: Do not include "systime.h" twice.
d57966d7 12207
048addec 122082002-02-15 Andreas Schwab <schwab@suse.de>
d57966d7 12209
048addec 12210 * puresize.h (BASE_PURESIZE): Increase to 9/5.
d57966d7 12211
048addec 12212 * alloc.c (NSTATICS): Increase to 1280.
74779f52 12213
048addec 122142002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
74779f52 12215
048addec 12216 * alloc.c (NSTATICS): Bump to 1026.
a474d59c 12217
048addec
JD
12218 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
12219 (Vx_super_keysym): New variables.
12220 (syms_of_xterm): DEFVAR_LISP them.
12221 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
12222 variables to determine which keys to use for the various modifiers.
a474d59c 12223
048addec 122242002-02-13 Kim F. Storm <storm@cua.dk>
fbb70ad9 12225
048addec
JD
12226 * window.c: (Vmode_line_in_non_selected_windows): Removed.
12227 (mode_line_in_non_selected_windows): New variable.
12228 (syms_of_window): DEFVAR_BOOL it.
fbb70ad9 12229
048addec
JD
12230 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
12231 Use mode_line_in_non_selected_windows.
12232 (mode_line_in_non_selected_windows): Declare extern.
12233 (Vmode_line_in_non_selected_windows): Removed extern.
2d10309f 12234
048addec 122352002-02-13 Richard M. Stallman <rms@gnu.org>
2d10309f 12236
048addec
JD
12237 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
12238 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
12239 (Fclear_this_command_keys): Doc fixes.
2d10309f 12240
048addec
JD
12241 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
12242 (update_face_from_frame_parameter): Increment face_change_count
12243 and windows_or_buffers_changed to force redisplay using changed faces.
7f2cddf3 12244
048addec
JD
12245 * xdisp.c (QCpropertize): New variable.
12246 (mode_line_proptrans_alist): New variable.
12247 (display_mode_element): New arg PROPS; all calls changed.
12248 Implement this, for strings.
12249 Handle literal output of strings by sharing the
12250 main-line code for strings, using local var `literal'.
12251 Handle :propertize feature.
12252 (syms_of_xdisp): Initialze and staticpro QCpropertize and
12253 mode_line_proptrans_alist.
0b1e6b54 12254
048addec 122552002-02-11 Kim F. Storm <storm@cua.dk>
7f2cddf3 12256
048addec
JD
12257 * window.c: (Vmode_line_in_non_selected_windows): New variable.
12258 (syms_of_window): DEFVAR_LISP it.
7f2cddf3 12259
048addec
JD
12260 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
12261 (CURRENT_MODE_LINE_FACE_ID): Use it.
12262 (Vmode_line_in_non_selected_windows): Declare extern.
e17144de 12263
048addec
JD
12264 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
12265 to get mode line face.
e17144de 12266
048addec 122672002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 12268
048addec
JD
12269 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
12270 variables; cus-start.el doesn't need them anymore.
44368f8f 12271
048addec 122722002-02-09 Kim F. Storm <storm@cua.dk>
f884b6f4 12273
048addec
JD
12274 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
12275 reduction. This fixes a display problem where stray newlines were
12276 inserted in the window (corrected by C-l). Clarified code (IMHO).
6637c996 12277
048addec 122782002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 12279
048addec 12280 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
6637c996 12281
048addec 12282 * xdisp.c (display_mode_lines): Fix last change.
453c5510 12283
048addec 122842002-02-09 Jason Rumney <jasonr@gnu.org>
453c5510 12285
048addec
JD
12286 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
12287 match each other.
12288 (w32_load_system_font): Prevent Cleartype fonts from loading.
12289 (Fx_show_tip): Ensure tip frames are above other topmost windows.
d1d070e3 12290
048addec 122912002-02-09 Kim F. Storm <storm@cua.dk>
d1d070e3 12292
048addec
JD
12293 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
12294 (CURRENT_MODE_LINE_HEIGHT): Use it.
12295 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 12296
048addec
JD
12297 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
12298 (pos_visible_p, handle_face_prop): Likewise.
12299 (display_mode_lines): Likewise, but for the real selected window.
12300 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 12301
048addec
JD
12302 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
12303 in non-selected windows.
12304 (realize_basic_faces): Realize it.
12305 (syms_of_term): Intern and staticpro it.
308dd672 12306
048addec 123072002-02-08 Kim F. Storm <storm@cua.dk>
edde72f6 12308
048addec
JD
12309 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
12310 Changed mail addresses to emacs-devel@gnu.org.
308dd672 12311
048addec 123122002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
3c1e6b46 12313
048addec
JD
12314 * fileio.c (Fsubstitute_in_file_name): If the file name includes
12315 ~user, and there's no such user, don't discard everything before ~user.
03950b5b 12316
048addec 12317 * floatfns.c (Fround): Doc fix.
3c1e6b46 12318
048addec 123192002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c1e11810 12320
048addec 12321 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
c1e11810 12322
048addec 123232002-02-07 Stefan Monnier <monnier@cs.yale.edu>
1996baee 12324
048addec 12325 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
1996baee 12326
048addec 123272002-02-07 Kim F. Storm <storm@cua.dk>
0065bb74 12328
048addec
JD
12329 * keymap.c (where_is_internal): Only check whether definition is
12330 remapped if it fulfills is_command_symbol.
0065bb74 12331
048addec 123322002-02-07 Andreas Schwab <schwab@suse.de>
0065bb74 12333
048addec 12334 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
b5cb6072 12335
048addec 12336 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
b5cb6072 12337
048addec 123382002-02-06 Kim F. Storm <storm@cua.dk>
15fff01d 12339
048addec
JD
12340 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
12341 defining command remapping. Doc updated.
12342 (Flookup_key): Remap command through keymap if KEY is a symbol.
12343 (is_command_symbol): New function.
12344 (Fkey_binding): Use it. New optional argument NO-REMAP.
12345 Doc updated. Callers changed. Perform command remapping via
12346 recursive call unless that arg is non-nil.
12347 (where_is_internal): New argument no_remap. Callers changed.
12348 Call recursively to find original key bindings for a remapped
12349 comand unless that arg is non-nil.
12350 (Fwhere_is_internal): New optional argument NO-REMAP.
12351 Doc updated. Callers changed. Pass arg to where_is_internal.
0065bb74 12352
048addec
JD
12353 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
12354 (is_command_symbol): Added prototype.
0d8466cc 12355
048addec
JD
12356 * keyboard.c (Vthis_original_command): New variable.
12357 (syms_of_keyboard): DEFVAR_LISP it.
12358 (command_loop_1): Set it, and perform command remapping.
15fff01d 12359
048addec 123602002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2fae9111 12361
048addec 12362 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
2d6c1fc0 12363
048addec 123642002-02-06 Jason Rumney <jasonr@gnu.org>
07025a55 12365
048addec 12366 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
07025a55 12367
048addec 123682002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
07025a55 12369
048addec 12370 * charset.c (get_charset_id): Use if-else instead of ?:.
3a232704 12371
048addec 123722002-02-06 Richard M. Stallman <rms@gnu.org>
539e92ad 12373
048addec 12374 * filelock.c (S_ISLNK): Define if not defined.
3a232704 12375
048addec 123762002-02-03 Richard M. Stallman <rms@gnu.org>
0cb8bb48 12377
048addec 12378 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
539e92ad 12379
048addec
JD
12380 * lread.c (read1): Redesign strategy for force_multibyte and
12381 force_singlebyte. Now is_multibyte records whether read_buffer
12382 is multibyte. Encountering any multibyte character makes it so.
4e02881b 12383
048addec 123842002-02-02 Stefan Monnier <monnier@cs.yale.edu>
4e02881b 12385
048addec
JD
12386 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
12387 with the same sequence, map that sequence to f10 rather than f0.
1ab964d7 12388
048addec 123892002-02-03 Andreas Schwab <schwab@suse.de>
1ab964d7 12390
048addec
JD
12391 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
12392 latter never being defined on GNU/Linux.
749f499f 12393
048addec 123942002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
749f499f 12395
048addec
JD
12396 * xfaces.c (realize_default_face): Don't set the weight and slant of
12397 the default face to Qnormal, unless these attributes are unspecified.
b5d9aaba 12398
048addec 123992002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3a232704 12400
048addec
JD
12401 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
12402 Call cancel_hourglass unconditionally.
d0fd26dd 12403
048addec
JD
12404 * eval.c (Fsignal): Remove duplicated declaration of
12405 the variable `display_hourglass_p'.
b4c45162 12406
048addec 124072002-01-31 Richard M. Stallman <rms@gnu.org>
d0fd26dd 12408
048addec 12409 * editfns.c (region_limit): Nicer error message.
c95eaa61 12410
048addec
JD
12411 * coding.c (decode_composition_emacs_mule):
12412 Give up if NCOMPONENT gets too large to index `component'.
c95eaa61 12413
048addec
JD
12414 * callint.c (check_mark): New arg to specify clearer error message.
12415 Callers changed.
c95eaa61 12416
048addec 124172002-01-27 Richard M. Stallman <rms@gnu.org>
c95eaa61 12418
048addec 12419 * minibuf.c (Fcompleting_read): Doc fix.
c95eaa61 12420
048addec 124212002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c95eaa61 12422
048addec
JD
12423 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
12424 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
12425 Fix doc-strings.
c95eaa61 12426
048addec 124272002-01-26 Richard M. Stallman <rms@gnu.org>
c95eaa61 12428
048addec 12429 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
c95eaa61 12430
048addec
JD
12431 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
12432 and scroll_up_aggressively.
c95eaa61 12433
048addec 124342002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
31877e0a 12435
048addec 12436 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
31877e0a 12437
048addec 124382002-01-25 Stefan Monnier <monnier@cs.yale.edu>
e2c3786a 12439
048addec
JD
12440 * textprop.c (Fnext_property_change, Fnext_single_property_change)
12441 (Fprevious_property_change, Fprevious_single_property_change):
12442 Stay within the narrowed-buffer boundaries.
e2c3786a 12443
048addec 124442002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
c513fc03 12445
048addec
JD
12446 * term.c (Ftty_display_color_cells): New function.
12447 (syms_of_term): Defsubr it.
12448 (Ftty_display_color_cells, Ftty_display_color_p): Change the
12449 argument name to DISPLAY. Doc fix.
bf794306 12450
048addec
JD
12451 * dispextern.h: Add prototype for set_tty_color_mode and
12452 tty_setup_colors.
bf794306 12453
048addec 124542002-01-24 Jason Rumney <jasonr@gnu.org>
bf794306 12455
048addec
JD
12456 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
12457 If region left to draw is not what was expected, mark the frame as
12458 garbaged.
62582985 12459
048addec
JD
12460 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
12461 Combine the regions returned by BeginPaint and GetUpdateRect.
c513fc03 12462
048addec 124632002-01-23 Jason Rumney <jasonr@gnu.org>
3509a04c 12464
048addec
JD
12465 * w32term.c (x_update_window_begin): Only hide caret if
12466 w32_use_visible_system_caret is set.
12467 (x_update_window_end): Only show caret if
12468 w32_use_visible_system_caret is set.
12469 (syms_of_w32term): Handle SystemParametersInfo call failing.
3509a04c 12470
048addec 12471 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
3509a04c 12472
048addec 124732002-01-22 Richard M. Stallman <rms@gnu.org>
3509a04c 12474
048addec
JD
12475 * unexelf.c (unexec): Define n so as to cause compilation error
12476 for the code where people have often written n instead of nn.
1e9a6186 12477
048addec 12478 * .gdbinit (hookpost-run): Defined.
1e9a6186 12479
048addec 124802002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e4e34e31 12481
048addec 12482 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
e4e34e31 12483
048addec 124842002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4521d1fc 12485
048addec
JD
12486 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
12487 if fullscreen is being set.
7c75be36 12488
048addec 124892002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4521d1fc 12490
048addec
JD
12491 * minibuf.c (Fminibuffer_contents)
12492 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
12493 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
4521d1fc 12494
048addec 124952002-01-21 Richard M. Stallman <rms@gnu.org>
4521d1fc 12496
048addec 12497 * window.c (check_frame_size): Fix minimum height calculation.
93dec019 12498
048addec 124992002-01-20 Ken Raeburn <raeburn@gnu.org>
93dec019 12500
048addec
JD
12501 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
12502 height before comparison.
12503 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
905cc05a 12504
048addec 125052002-01-20 Jason Rumney <jasonr@gnu.org>
2ed06289 12506
048addec
JD
12507 * w32term.c (w32_system_caret_width): Remove.
12508 (w32_use_visible_system_caret): New user flag.
12509 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
12510 Windows reports a screen reader running.
12511 (x_update_window_begin): Hide the system caret.
12512 (x_update_window_end): Show the system caret.
12513 (x_display_and_set_cursor): Don't draw a cursor when
12514 w32_use_visible_system_caret is set. Do not adjust width.
0e79d667 12515
048addec
JD
12516 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
12517 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
12518 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
12519 the user requests it. Use system default width when creating.
12520 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
0e79d667 12521
048addec
JD
12522 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
12523 New window messages.
905cc05a 12524
048addec 125252002-01-20 Richard M. Stallman <rms@gnu.org>
82a7ab23 12526
048addec 12527 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
d75bec6a 12528
048addec 125292002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
52dcb476 12530
048addec 12531 * doprnt.c (doprnt1): Fix typos in error call.
82a7ab23 12532
048addec 125332002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
82a7ab23 12534
048addec 12535 * unexelf.c (unexec) [__sgi]: Support the .got sections.
82a7ab23 12536
048addec 125372002-01-20 Jason Rumney <jasonr@gnu.org>
4d0fa4f3 12538
048addec
JD
12539 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
12540 that Windows returns. If a double check fails, try to guess how
12541 ExtTextOut is going to act.
4d0fa4f3 12542
048addec
JD
12543 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
12544 in place of stricmp.
12545 (w32_list_synthesized_fonts): Removed.
12546 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
12547 (struct enumfont_t): New element; list.
12548 (enum_font_cb2): List all style and charset variations of a font.
12549 (Fw32_select_font): New optional argument; include_proportional.
12550 Exclude vertical fonts. Exclude proportional fonts unless
12551 include_proportional is non-nil.
12552 (w32_enable_synthesized_fonts): Change to a boolean.
12553 (Fw32_send_sys_command): Doc fix.
493faf20 12554
048addec 125552002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
493faf20 12556
048addec
JD
12557 * dispnew.c (update_frame): Move the variable `tem' to the block
12558 where it is used.
4971e491 12559
048addec 125602002-01-19 Jason Rumney <jasonr@gnu.org>
4971e491 12561
048addec
JD
12562 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
12563 call to face-set-after-frame-default.
4971e491 12564
048addec 125652002-01-18 Richard M. Stallman <rms@gnu.org>
d911a0fa 12566
048addec
JD
12567 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
12568 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
d911a0fa 12569
048addec 125702002-01-17 Richard M. Stallman <rms@gnu.org>
d911a0fa 12571
048addec
JD
12572 * window.c (enlarge_window): When exceeding size of parent,
12573 directly delete all the siblings instead of trying to resize it.
201c831a 12574
048addec 125752002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
201c831a 12576
048addec 12577 * term.c (set_tty_color_mode): Remove unused variable `tem'.
201c831a 12578
048addec 125792002-01-16 Henrik Enberg <henrik@enberg.org>
34e39c95 12580
048addec 12581 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
34e39c95 12582
048addec 125832002-01-16 Kim F. Storm <storm@cua.dk>
d77fbc16 12584
048addec
JD
12585 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
12586 is invisible. This can happen if cursor is on top line of a
12587 window, and we switch to a buffer with a header line.
d77fbc16 12588
048addec 12589 * w32term.c (x_erase_phys_cursor): Ditto.
61e3b944 12590
048addec 125912002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
61e3b944 12592
048addec
JD
12593 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
12594 `dont_resize' only when used.
61e3b944 12595
048addec 12596 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
70da46c3 12597
048addec 125982002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
70da46c3 12599
048addec
JD
12600 * xdisp.c (display_mode_element): When computing charpos, depend
12601 on multibyteness of elt, not the text in field.
8af01033 12602
048addec 126032002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8af01033 12604
048addec
JD
12605 * buffer.c (Fkill_all_local_variables):
12606 Increment `update_mode_lines' only once.
7363986a 12607
048addec 126082002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7363986a 12609
048addec
JD
12610 * lisp.h (adjust_after_replace_noundo)
12611 (Fupdate_coding_systems_internal): Add prototypes.
d9e6c4b1 12612
048addec 12613 * sound.c (Fplay_sound): Initialize header_size also for :data case.
d20fc48a 12614
048addec 126152002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
d9e6c4b1 12616
048addec
JD
12617 Support for the --color command-line argument and tty-color-mode
12618 frame parameter:
f1a85b89 12619
048addec
JD
12620 * term.c (tty_default_color_capabilities, tty_setup_colors)
12621 (set_tty_color_mode): New functions.
12622 (term_init): Call tty_default_color_capabilities.
12623 (Qtty_color_mode_alist): New variable.
12624 (syms_of_term): Intern and staticpro it.
f1a85b89 12625
048addec
JD
12626 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
12627 frames.
12628 (do_switch_frame): For termcap frames, switch the tty
12629 color mode as specified by the frame's parameters.
12630 (Qtty_color_mode): New variable.
12631 (syms_of_frame): Intern and staticpro it.
3a62677f 12632
048addec
JD
12633 * emacs.c (USAGE2): Add the --color option.
12634 (standard_args): Ditto.
72244db2 12635
048addec
JD
126362002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12637
12638 * xterm.h (struct x_output): New members want_fullscreen,
12639 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
12640 y_pixels_outer_diff.
12641 New enum for FULLSCREEN_* constants.
12642 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
12643 is NULL.
12644 (x_fullscreen_adjust): Add prototype.
3a62677f 12645
048addec
JD
12646 * emacs.c (USAGE2): Add the new full-screen arguments.
12647 (standard_args): Ditto.
3a62677f 12648
048addec
JD
12649 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
12650 New variables.
12651 (syms_of_xfns): Intern and staticpro them.
12652 (x_frame_parms) <"fullscreen">: New parameter.
12653 (x_fullscreen_move, x_set_fullscreen): New functions.
12654 (x_set_frame_parameters): Support for Qfullscreen.
12655 (x_real_positions): More accurate computation of the frame position.
12656 (x_figure_window_size): Support full-screen frames.
12657 (Fx_create_frame): Default the fullscreen parameter.
3a62677f 12658
048addec
JD
12659 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
12660 (XTread_socket) <Expose>: Call x_check_fullscreen.
12661 <ConfigureNotify>: Don't resize to fullscreen.
12662 Call x_check_fullscreen_move, and set the want_fullscreen member of
12663 output_data.x.
3a62677f 12664
048addec 126652002-01-13 Jason Rumney <jasonr@gnu.org>
9d113d9d 12666
048addec
JD
12667 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
12668 for mice with more than 3 buttons.
b8523839 12669
048addec
JD
12670 * w32term.c (parse_button): New parameter xbutton. Callers changed.
12671 (w32_read_socket): Handle new "XBUTTON" messages.
9464dea4 12672
048addec
JD
12673 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
12674 (syms_of_w32fns): DEFVAR_BOOL it.
12675 (w32_wnd_proc): Handle new "XBUTTON" messages.
9d113d9d 12676
048addec 126772002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
70ec1377 12678
048addec 12679 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
70ec1377 12680
048addec 126812002-01-13 Andreas Schwab <schwab@suse.de>
92f7dd37 12682
048addec 12683 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
92f7dd37 12684
048addec 126852002-01-12 Andreas Schwab <schwab@suse.de>
c93674bb 12686
048addec
JD
12687 * .gdbinit (xbuffer): Remove address operator since data is now a
12688 pointer.
c93674bb 12689
048addec 126902002-01-11 Richard M. Stallman <rms@gnu.org>
59b59892 12691
048addec 12692 * insdel.c (adjust_after_replace_noundo): New function.
59b59892 12693
048addec 12694 * coding.c (code_convert_region): Don't copy old text if undo disabled.
c6ea2775 12695
048addec 126962002-01-09 Jason Rumney <jasonr@gnu.org>
c6ea2775 12697
048addec
JD
12698 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
12699 when checking for multiple frames.
91175673 12700
048addec 127012002-01-08 Richard M. Stallman <rms@gnu.org>
91175673 12702
048addec
JD
12703 * window.c (delete_window): Rewrite the code for changing the
12704 selected window to handle the case where WINDOW is not a leaf.
91175673 12705
048addec 127062002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
e0fead5d 12707
048addec
JD
12708 * process.c (send_process): Set src_multibyte to 1 after the call
12709 top setup_coding_system, not before the call.
e0fead5d 12710
048addec 127112002-01-07 Jason Rumney <jasonr@gnu.org>
e0fead5d 12712
048addec
JD
12713 * xmenu.c (set_frame_menubar, xmenu_show):
12714 (xdialog_show): Initialize wv->help to Qnil.
c186cdb3 12715
048addec
JD
12716 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
12717 (w32_dialog_show): Initialize wv->help to Qnil.
c186cdb3 12718
048addec 127192002-01-06 Jason Rumney <jasonr@gnu.org>
c186cdb3 12720
048addec 12721 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
c186cdb3 12722
048addec 12723 * w32menu.c (w32_menu_display_help): Revert last change.
58cfce98 12724
048addec 12725 * xmenu.c (menu_highlight_callback): Revert last change.
58cfce98 12726
048addec 127272002-01-06 Andreas Schwab <schwab@suse.de>
62854fe2 12728
048addec
JD
12729 * insdel.c (make_gap_larger): Make sure buffer size does not
12730 overflow range of int.
62854fe2 12731
048addec 127322002-01-05 Jason Rumney <jasonr@gnu.org>
656f46bb 12733
048addec
JD
12734 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
12735 OVERLAPS_P.
656f46bb 12736
048addec 12737 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
656f46bb 12738
048addec
JD
12739 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
12740 to the left or to the right of the pointer, put it against
12741 the left screen edge.
12742 (x_frame_parms): Add missing braces around initializer.
036e218d 12743
048addec
JD
12744 * w32term.c (x_setup_relief_colors): Don't compute an image's
12745 background color if it doesn't have a Pixmap.
12746 (notice_overwritten_cursor): Don't depend on
12747 output_cursor and updated_area. Compare pixel coordinates with
12748 window's cursor pixel coordinates.
12749 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
12750 Call notice_overwritten_cursor with new arg list.
12751 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
12752 unconditionally.
12753 (x_draw_image_relief): Use predefined macro instead of
12754 constant when the value of `tool_bar_button_relief' is negative.
036e218d 12755
048addec 12756 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
7ddb2c16 12757
048addec 127582002-01-04 Richard M. Stallman <rms@gnu.org>
7ddb2c16 12759
048addec 12760 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
ace9b298 12761
048addec 127622002-01-03 Richard M. Stallman <rms@gnu.org>
90647b07 12763
048addec
JD
12764 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
12765 (Fkey_binding): Try the `keymap' property map first.
12766 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
12767 minor mode bindings.
90647b07 12768
048addec 127692002-01-03 Kim F. Storm <storm@cua.dk>
ace9b298 12770
048addec 12771 * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
ace9b298 12772
048addec 127732002-01-02 Richard M. Stallman <rms@gnu.org>
ace9b298 12774
048addec
JD
12775 * keyboard.c (read_key_sequence): Handle the keymap property
12776 before minor mode maps.
9fbc32aa 12777
048addec
JD
12778 * editfns.c (Fformat): Update thissize from field_width
12779 based on the actual width, in the string case.
036e218d 12780
048addec 127812002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fbc32aa 12782
048addec
JD
12783 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
12784 when used as truth value to prevent gcc warnings.
9fbc32aa 12785
048addec
JD
12786 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
12787 * w32proc.c: Include <config.h>.
9fbc32aa 12788
048addec 127892002-01-01 Andreas Schwab <schwab@suse.de>
9fbc32aa 12790
048addec
JD
12791 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
12792 not EMACS_INT, to make them compatible with DEFVAR_INT.
12793 * lisp.h (max_specpdl_size): Adjust declaration.
9fbc32aa 12794
048addec 127952002-01-01 Richard M. Stallman <rms@gnu.org>
9fbc32aa 12796
048addec
JD
12797 * print.c (print_object): Test print_escape_nonascii only for
12798 unibyte strings.
12799 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
12800 when outputting to a multibyte buffer.
9fbc32aa 12801
048addec 128022001-12-29 Richard M. Stallman <rms@gnu.org>
9fbc32aa 12803
048addec
JD
12804 * print.c (print_object): In multibyte string, use hex escapes.
12805 Use octal only for unibyte strings.
12806 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
0142178a 12807
048addec
JD
12808 * lread.c (read_escape): New arg BYTEREP for reporting whether
12809 escape forces unibyte or multibyte.
12810 (read1): When reading a string, take note of that info.
0142178a 12811
048addec 128122001-12-29 Ken Raeburn <raeburn@gnu.org>
d4824a5d 12813
048addec
JD
12814 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
12815 comparison to test lisp value returned by Fget.
d4824a5d 12816
048addec 128172001-12-29 Richard M. Stallman <rms@gnu.org>
b1356234 12818
048addec 12819 * lisp.h (max_specpdl_size): Add declaration.
b1356234 12820
048addec 12821 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
3ce081f5 12822
048addec
JD
12823 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
12824 Handle modifier bits. Correct typo in error message.
99e380ee 12825
048addec 128262001-12-28 Richard M. Stallman <rms@gnu.org>
3ce081f5 12827
048addec
JD
12828 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
12829 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
12830 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
12831 Update calls to Fdefine_abbrev.
12832 (write_abbrev): Update for changed data format.
12833 Don't list "system" abbrevs.
12834 (Fexpand_abbrev): Update use count with new data format.
12835 (describe_abbrev): Update for changed data format.
12836 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
66458f32 12837
048addec 12838 * config.in (HAVE_MBSINIT): Add #undef.
66458f32 12839
048addec 12840 * strftime.c (mbsinit): Define as no-op if not available.
66458f32 12841
048addec
JD
12842 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
12843 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
59a86c99 12844
048addec
JD
12845 * keymap.c (Flookup_key): Error message if key has wrong data type.
12846 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
12847 (exclude_key): New variable.
59a86c99 12848
048addec 128492001-12-28 Gerd Moellmann <gerd@gnu.org>
eb77a5f4 12850
048addec
JD
12851 * xterm.c (x_setup_relief_colors): Don't compute an image's
12852 background color if it doesn't have a Pixmap.
eb77a5f4 12853
048addec
JD
12854 * xterm.c (notice_overwritten_cursor): Don't depend on
12855 output_cursor and updated_area. Compare pixel coordinates with
12856 window's cursor pixel coordinates.
12857 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
12858 Call notice_overwritten_cursor with new arg list.
12859 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
12860 unconditionally.
eb77a5f4 12861
048addec
JD
12862 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
12863 height of the cursor line to the amount to scroll.
eb77a5f4 12864
048addec 128652001-12-27 Richard M. Stallman <rms@gnu.org>
bb313871 12866
048addec
JD
12867 * intervals.c (set_point_both): The position after an invisible,
12868 intangible character is not an acceptable stopping point.
bb313871 12869
048addec 128702001-12-27 Ken Raeburn <raeburn@gnu.org>
55b43a63 12871
048addec
JD
12872 * window.c (enlarge_window): In new preserve_before code, convert
12873 CURBEG from lisp object to integer before doing arithmetic.
6052529b 12874
048addec 128752001-12-27 Richard M. Stallman <rms@gnu.org>
3ce081f5 12876
048addec 12877 * bytecode.c (Fbyte_code): Undo previous change.
3ce081f5 12878
048addec 128792001-12-26 Kim F. Storm <storm@cua.dk>
3ce081f5 12880
048addec
JD
12881 * keyboard.c (record_char): Ignore duplicate help-echo events only
12882 separated by mouse-movement. When tracking mouse, only record
12883 first and last mouse-movement event in same window.
12884 Don't record mouse-movement events in keyboard macros.
3ce081f5 12885
048addec 128862001-12-25 Richard M. Stallman <rms@gnu.org>
55b43a63 12887
048addec
JD
12888 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
12889 (Fenlarge_window): New arg PRESERVE_BEFORE.
111ed14e 12890
048addec
JD
12891 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
12892 instead of Fstring_as_unibyte.
9fabb2f5 12893
048addec 128942001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fabb2f5 12895
048addec 12896 The following changes remove mocklisp support:
9fabb2f5 12897
048addec 12898 * mocklisp.h, mocklisp.c: Files removed.
111ed14e 12899
048addec
JD
12900 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
12901 `Qmocklisp' and `Qmocklisp_arguments'.
12902 Remove prototype of syms_of_mocklisp.
2fa0eedf 12903
048addec 12904 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
d1420435 12905
048addec
JD
12906 * callint.c: Do not include mocklisp.h.
12907 (Fcall_interactively): Do not test for mocklisp case.
2fa0eedf 12908
048addec
JD
12909 * eval.c: Remove variables `Qmocklisp_arguments',
12910 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
12911 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
12912 Do not test for mocklisp case.
12913 (Fwhile): Remove unused variable `tem'.
12914 (syms_of_eval): Remove variable `moclisp-arguments'.
ebcbef4e 12915
048addec 12916 * data.c (wrong_type_argument): Remove mocklisp case.
5c131048 12917
048addec 12918 * doc.c (Fdocumentation): Remove mocklisp case.
5c131048 12919
048addec 12920 * emacs.c (main): Do not call syms_of_mocklisp.
5c131048 12921
048addec 129222001-12-21 Richard M. Stallman <rms@gnu.org>
96d276c3 12923
048addec
JD
12924 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
12925 to the left or to the right of the pointer, put it against
12926 the left screen edge.
6108b49c 12927
048addec 129282001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
96d276c3 12929
048addec
JD
12930 * Makefile.in (distclean): Remove .gdbinit if we are building
12931 outside the source tree.
5eea19a4 12932
048addec 129332001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5eea19a4 12934
048addec 12935 * w32.c (emacs_root_dir): New function.
5eea19a4 12936
048addec 12937 * msdos.c (emacs_root_dir): New function.
5eea19a4 12938
048addec
JD
12939 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
12940 of the current drive as the fallback for default_directory.
438e57dd 12941
048addec
JD
12942 * dired.c (file_name_completion): Run the elements of
12943 completion-ignored-extensions through ENCODE_FILE.
438e57dd 12944
048addec
JD
12945 * lisp.h (scmp): Remove prototype, since it's now a static
12946 function private to dired.c.
c88e5347 12947
048addec 129482001-12-18 Richard M. Stallman <rms@gnu.org>
c88e5347 12949
048addec
JD
12950 * dired.c (scmp): Function moved from minibuf.c.
12951 Delete multibyte handling--used only on encoded strings.
59ce1461 12952
048addec 12953 * minibuf.c (scmp): Function moved to dired.c.
59ce1461 12954
048addec 12955 * fns.c (merge): Add QUIT call.
59ce1461 12956
048addec 129572001-12-18 Dave Love <fx@gnu.org>
8727d588 12958
048addec
JD
12959 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
12960 language/georgian.el.
8727d588 12961
048addec 129622001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
cc63037e 12963
048addec
JD
12964 * Makefile.in (lisp, shortlisp): Synchronize with changes to
12965 lisp/Makefile.in:DONTCOMPILE.
cc63037e 12966
048addec 129672001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
cc63037e 12968
048addec
JD
12969 * xdisp.c (window_box_height): Do not return negative values.
12970 From Gerd Moellmann <gerd@gnu.org>.
cc63037e 12971
048addec 12972 * keyboard.c (head_table): Add missing braces around initializer.
cc63037e 12973
048addec 12974 * term.c (keys): Likewise.
deece6f5 12975
048addec 12976 * xfns.c (x_frame_parms, visual_classes): Likewise.
deece6f5 12977
048addec 129782001-12-17 Sam Steingold <sds@gnu.org>
1b944d9c 12979
048addec
JD
12980 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
12981 patch (COMPOSING_P, not COMPOSING).
28ff4293 12982
048addec 129832001-12-17 Richard M. Stallman <rms@gnu.org>
a395ef6a 12984
048addec 12985 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
a395ef6a 12986
048addec
JD
12987 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
12988 before calling decode_coding.
9b46de40 12989
048addec 12990 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
9b46de40 12991
048addec
JD
12992 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
12993 instead of only for COMPOSITION_DISABLED.
9b46de40 12994
048addec 129952001-12-16 Richard M. Stallman <rms@gnu.org>
aff37336 12996
048addec 12997 * alloc.c (pure_alloc): After overflow, allocate just a small block.
aff37336 12998
048addec 12999 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
b9937f07 13000
048addec
JD
13001 * buffer.h (struct buffer): New field `display_error_modiff'.
13002 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
b9937f07 13003
048addec 13004 * window.c (Frecenter): Clear display_error_modiff field.
2cd23960 13005
048addec
JD
13006 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
13007 Call redisplay_window, but not if display_error_modiff field says no.
13008 (redisplay_window_error): New function.
13009 (displayed_buffer): New variable.
13010 (redisplay_internal, redisplay_windows): Call the new functions
13011 instead of redisplay_window directly.
2cd23960 13012
048addec 130132001-12-15 Richard M. Stallman <rms@gnu.org>
2cd23960 13014
048addec 13015 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
2cd23960 13016
048addec 130172001-12-14 Andrew Innes <andrewi@gnu.org>
a4184c1c 13018
048addec 13019 * makefile.w32-in (EMACSLOADPATH): Define.
f9711de4 13020 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
048addec 13021 (bootstrap-temacs): Remove dependency on bootstrap-clean.
a4184c1c 13022
048addec 130232001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
f6fa0866 13024
048addec
JD
13025 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
13026 parameter have a numeric value all the time.
f6fa0866 13027
048addec 13028 * w32fns.c (x_report_frame_params): Likewise.
f4ca4b00 13029
048addec 130302001-12-12 Richard M. Stallman <rms@gnu.org>
f4ca4b00 13031
048addec 13032 * fileio.c (Fwrite_region): Doc fix.
f4e25f94 13033
048addec
JD
13034 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
13035 (redisplay_internal): Call clear_image_cache only for window terminals.
f4e25f94 13036
048addec 130372001-12-12 Gerd Moellmann <gerd@gnu.org>
91c153e2 13038
048addec
JD
13039 * xdisp.c (move_it_vertically_backward): Change heuristic
13040 for the case that we didn't move far enough initially.
91c153e2 13041
048addec
JD
13042 * window.c (Frecenter): Simplify computation in the case of window
13043 system frames and ARG < 0; use window_box_height.
65b7d3e7 13044
048addec 130452001-12-11 Richard M. Stallman <rms@gnu.org>
65b7d3e7 13046
048addec
JD
13047 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
13048 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
6b5f6311 13049
048addec 130502001-12-11 Andrew Innes <andrewi@gnu.org>
6b5f6311 13051
048addec
JD
13052 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
13053 arg is negative.
be676094 13054
048addec 130552001-12-11 Richard M. Stallman <rms@gnu.org>
be676094 13056
048addec
JD
13057 * m/hp800.h: Split the __hpux conditional into the parts
13058 that are right for GNU/Linux too and the parts that are not.
13059 Use the former if GNU_LINUX.
13060 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
032a857d 13061
048addec 13062 * s/gnu-linux.h (GNU_LINUX): Defined.
032a857d 13063
048addec 130642001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
032a857d 13065
048addec
JD
13066 * macros.c, msdos.c, w16select.c: Change doc-string comments to
13067 `new style' [w/`doc:' keyword].
032a857d 13068
048addec 130692001-12-10 Jason Rumney <jasonr@gnu.org>
b6270150 13070
048addec
JD
13071 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
13072 before using.
b6270150 13073
048addec 130742001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
792e5cbd 13075
048addec
JD
13076 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
13077 keyword].
98cbb9fa 13078
048addec 130792001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
98cbb9fa 13080
048addec 13081 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
98cbb9fa 13082
048addec 13083 * s/hpux10.h (srand48): Don't undefine.
98cbb9fa 13084
048addec 130852001-12-09 Jason Rumney <jasonr@gnu.org>
792e5cbd 13086
048addec
JD
13087 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
13088 Add comment to explain where the struct came from.
13089 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
13090 (add_menu_item): Process pop-up menus first to avoid memory leak.
13091 (add_menu_item, w32_menu_display_help): Use `help' field as
13092 Lisp_Object.
13093 (w32_free_submenu_strings): Only free owner-drawn strings.
fa336b91 13094
048addec 130952001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
fa336b91 13096
048addec 13097 * COPYING: Moved back.
fa336b91 13098
048addec
JD
13099 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
13100 Add parentheses around && within ||.
077907d4 13101
048addec 13102 * indent.c (compute_motion): Likewise.
aa2af83a 13103
048addec 13104 * intervals.c (merge_properties_sticky): Likewise.
60a653f1 13105
048addec
JD
13106 * coding.c (setup_coding_system, shrink_encoding_region)
13107 (Fdecode_sjis_char): Likewise.
60a653f1 13108
048addec 131092001-12-07 Andreas Schwab <schwab@suse.de>
60a653f1 13110
048addec
JD
13111 * xdisp.c (display_mode_element): Don't read past end of string if
13112 it ends with '%'.
60a653f1 13113
048addec
JD
13114 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
13115 can hold.
60a653f1 13116
048addec
JD
13117 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
13118 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
13119 type changed to Lisp_Object.
13120 (syms_of_data): DEFVAR_LISP them.
60a653f1 13121
048addec 131222001-12-07 Richard M. Stallman <rms@gnu.org>
60a653f1 13123
048addec
JD
13124 * callproc.c (init_callproc): Set Vdata_directory based on the source
13125 location whenever Emacs was run uninstalled.
60a653f1 13126
048addec 131272001-12-06 Paul Eggert <eggert@twinsun.com>
60a653f1 13128
048addec
JD
13129 * config.in (HAVE_WORKING_VFORK): New #undefs.
13130 * process.c (create_process):
13131 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
13132 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
13133 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
13134 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
13135 * m/intel386.h (HAVE_VFORK): Likewise.
13136 * m/mips-siemens.h (HAVE_VFORK): Likewise.
13137 * m/mips.h (HAVE_VFORK): Likewise.
13138 * s/freebsd.h (vfork): Remove #define.
13139 * s/lynxos.h (HAVE_VFORK): Remove #undef.
13140 * s/usg5-4-2.h: Fix comment about vfork.
60a653f1 13141
048addec 131422001-12-06 Richard M. Stallman <rms@gnu.org>
60a653f1 13143
048addec
JD
13144 * s/hpux10.h (random): Add undef.
13145 (HAVE_RANDOM): Define it just once.
60a653f1 13146
048addec 131472001-12-06 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 13148
048addec 13149 * eval.c: Undo last change: the standard syntax is not wanted.
60a653f1 13150
048addec 131512001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 13152
048addec
JD
13153 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
13154 scroll bars of the frame before deleting the frame itself. If the
13155 frame has a widget, delete the frame with XtDestroyWidget, and do
13156 not call XDestroyWindow before that.
60a653f1 13157
048addec 131582001-12-06 Kim F. Storm <storm@cua.dk>
60a653f1 13159
048addec 13160 * xfns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 13161
048addec 13162 * w32fns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 13163
048addec 131642001-12-05 Andrew Innes <andrewi@gnu.org>
60a653f1 13165
048addec
JD
13166 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
13167 excessively large.
60a653f1 13168
048addec
JD
13169 * insdel.c (make_gap_larger): New function.
13170 (make_gap_smaller): New function.
13171 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
13172 Call make_gap_smaller if arg is negative.
60a653f1 13173
048addec 131742001-12-04 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 13175
048addec
JD
13176 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
13177 Pass a dummy argument when calling interrupt_signal.
13178 (parse_menu_item): Mark disabled items before checking for empty def.
13179 (read_char_minibuf_menu_prompt): Make safety more visible.
13180 (read_key_sequence): Add a `first_unbound' variable.
13181 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
13182 unbound prefix as soon as we can detect it.
60a653f1 13183
048addec
JD
13184 * doc.c (Fsnarf_documentation): Add prototype.
13185 (get_doc_string): Handle negative arguments.
13186 (Fdocumentation): Use AREF and ASIZE.
13187 Move the calls to get_doc_string to a single place.
13188 Don't confuse an interactive-spec for a docstring reference.
13189 (Fdocumentation_property): Take advantage of the fact that
13190 get_doc_string now ignores the sign of the docstring position.
60a653f1 13191
048addec 13192 * eval.c: Use standard syntax for usage in docstrings.
60a653f1 13193
048addec 131942001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 13195
a64387ee 13196 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
60a653f1 13197
048addec 131982001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 13199
048addec
JD
13200 * xterm.c (x_draw_image_relief): Use predefined macro instead of
13201 constant when the value of `tool_bar_button_relief' is negative.
60a653f1 13202
048addec 132032001-12-02 Richard M. Stallman <rms@gnu.org>
60a653f1 13204
048addec
JD
13205 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
13206 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
60a653f1 13207
048addec 13208 * fileio.c (read_non_regular): Delete Fsignal call.
60a653f1 13209
048addec 132102001-12-01 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 13211
048addec 13212 * lisp.h (run_hook_list_with_args): Undo last change.
60a653f1 13213
048addec 132142001-12-01 Gerd Moellmann <gerd@gnu.org>
60a653f1 13215
048addec 13216 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
60a653f1 13217
048addec 132182001-12-01 Jason Rumney <jasonr@gnu.org>
60a653f1 13219
f63fd14e 13220 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
60a653f1 13221
048addec
JD
13222 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
13223 [!WM_MOUSELEAVE]: Define.
60a653f1 13224
048addec
JD
13225 * w32menu.c (current_popup_menu, get_menu_item_info):
13226 (set_menu_item_info): New vars.
13227 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
13228 (w32_menu_show): Set current_popup_menu.
13229 (add_menu_item): Allocate new strings for owner-drawn menu items
13230 and help strings.
13231 Use owner-draw for disabled menu items again.
13232 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
13233 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
60a653f1 13234
048addec
JD
13235 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
13236 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
13237 <WM_EXITMENULOOP>: Free menu strings.
13238 <WM_MOUSELEAVE>: Stop tracking mouse.
13239 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
60a653f1 13240
048addec
JD
13241 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
13242 and mouse face.
60a653f1 13243
048addec 132442001-12-01 Kim F. Storm <storm@cua.dk>
60a653f1 13245
048addec
JD
13246 The following changes add left-fringe and right-fringe
13247 frame parameters to adjust fringe widths, or remove one or
13248 both fringes.
60a653f1 13249
048addec
JD
13250 * frame.h (struct frame): Remove trunc_area_pixel_width and
13251 trunc_area_cols fields.
13252 (Qleft_fringe, Qright_fringe): Declare.
13253 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
60a653f1 13254
048addec
JD
13255 * frame.c (Qleft_fringe, Qright_fringe): New vars.
13256 (syms_of_frame): Initialize them.
60a653f1 13257
048addec
JD
13258 * window.c (coordinates_in_window): Handle separate left and right
13259 fringe widths.
60a653f1 13260
048addec
JD
13261 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
13262 and fringe_cols fields.
13263 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
13264 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
13265 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
13266 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
13267 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
13268 (x_compute_fringe_widths): Add prototype.
60a653f1 13269
048addec
JD
13270 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
13271 fill fringe evenly with small dashes.
f63fd14e 13272 (x_draw_fringe_bitmap): Clear background if necessary. Align and
048addec
JD
13273 clip the new ZV bitmap to avoid jitter between rows.
13274 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
13275 background. Don't draw fringe bitmaps if fringe width is zero.
13276 (x_compute_fringe_widths): New function.
13277 (x_new_font, x_set_window_size_1): Use it.
60a653f1 13278
048addec
JD
13279 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
13280 (x_set_frame_parameters): Process `font' parameter before other
13281 parameters as fringe widths depend on it.
13282 (x_set_fringe_width): New function.
13283 (x_figure_window_size): Use x_compute_fringe_widths.
13284 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
13285 parameters.
60a653f1 13286
048addec
JD
13287 * widget.c (set_frame_size): Use x_compute_fringe_widths.
13288 (EmacsFrameSetCharSize): Ditto.
60a653f1 13289
048addec
JD
13290 * w32term.h: Merged changes from xterm.h.
13291 * w32term.c: Merged changes from xterm.c.
13292 * w32fns.c: Merged changes from xfns.c.
60a653f1 13293
048addec 132942001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 13295
048addec 13296 * COPYING: Removed.
60a653f1 13297
048addec 132982001-11-29 Dave Love <fx@gnu.org>
60a653f1 13299
048addec
JD
13300 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
13301 extra extra slot.
13302 (detect_coding_mask): Fix call of detect_coding_iso2022.
60a653f1 13303
048addec 133042001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 13305
048addec
JD
13306 * fileio.c (file-name-coding-system)
13307 (default-file-name-coding-system): Doc fix (links to referenced
13308 variables added).
60a653f1 13309
048addec 133102001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 13311
048addec
JD
13312 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
13313 Add dummy uses of gcproN variables.
60a653f1 13314
048addec
JD
13315 * category.c (describe_category, describe_category_1)
13316 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
13317 (syms_of_category): Don't defsubr Sdescribe_categories.
60a653f1 13318
048addec 133192001-11-28 Richard M. Stallman <rms@gnu.org>
60a653f1 13320
048addec 13321 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
60a653f1 13322
048addec
JD
13323 * Makefile.in (lispdir): New variable, referring to build dir.
13324 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
60a653f1 13325
048addec 133262001-11-28 Andrew Innes <andrewi@gnu.org>
60a653f1 13327
048addec
JD
13328 * w32menu.c (w32_menu_display_help): Actually add the new argument
13329 OWNER.
60a653f1 13330
048addec 133312001-11-28 Jason Rumney <jasonr@gnu.org>
60a653f1 13332
048addec
JD
13333 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
13334 menu items. From David Ponce <dponce@wanadoo.fr>.
13335 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
13336 conditionally.
f63fd14e 13337 (w32_menu_display_help): New argument OWNER. Rewritten to store a
048addec 13338 help event in the owner frame's keyboard buffer.
60a653f1 13339
048addec
JD
13340 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
13341 (Fx_show_tip): Don't subtract last width from row width.
13342
13343 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
13344 (w32_read_socket): Use EQ to compare frames.
60a653f1 13345
048addec 133462001-11-28 Gerd Moellmann <gerd@gnu.org>
60a653f1 13347
048addec
JD
13348 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
13349 OVERLAPS_P.
60a653f1 13350
048addec 133512001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 13352
048addec
JD
13353 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
13354 `gcpro3' and `gcpro4'.
60a653f1 13355
048addec 13356 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
60a653f1 13357
048addec 133582001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 13359
048addec 13360 * ccl.c: Use AREF and ASIZE.
60a653f1 13361
048addec 133622001-11-27 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 13363
048addec
JD
13364 * lisp.h (run_hook_list_with_args): Remove.
13365 (LIST_END_P): Fix call to wrong_type_argument.
13366 (make_fixnum_or_float): Use EMACS_INT rather than int.
60a653f1 13367
048addec 133682001-11-26 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 13369
048addec
JD
13370 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
13371 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
60a653f1 13372
048addec
JD
13373 * eval.c: Use AREF and ASIZE.
13374 (Ffetch_bytecode): Add the file name to the error message.
60a653f1 13375
048addec
JD
13376 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
13377 which match the end of the file-name.
13378 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
13379 is not a valid env var, but leave it as is instead.
60a653f1 13380
048addec
JD
13381 * keymap.c (access_keymap): Handle t bindings like nil bindings.
13382 Make nil bindings in char-tables transparent.
13383 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
60a653f1 13384
048addec 133852001-11-26 Richard M. Stallman <rms@gnu.org>
60a653f1 13386
048addec
JD
13387 * textprop.c (set_text_properties_1): Allow START, END in either order.
13388 Do nothing if range is empty.
60a653f1 13389
048addec 13390 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
60a653f1 13391
048addec
JD
13392 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
13393 (clean): Not here.
60a653f1 13394
048addec 133952001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 13396
048addec
JD
13397 * textprop.c (set_text_properties_1): Clearly mark that the
13398 interval should not be empty.
60a653f1 13399
048addec
JD
13400 * intervals.c (graft_intervals_into_buffer):
13401 Don't call set_text_properties_1 on an empty interval.
60a653f1 13402
048addec 134032001-11-25 Richard M. Stallman <rms@gnu.org>
60a653f1 13404
048addec 13405 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
60a653f1 13406
048addec
JD
13407 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
13408 don't lose the data in it.
60a653f1 13409
048addec 134102001-11-25 Juanma Barranquero <lektu@terra.es>
60a653f1 13411
048addec 13412 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
60a653f1 13413
c62aec78 13414 * buffer.c (Fkill_buffer): Likewise.
60a653f1 13415
c62aec78 13416 * print.c (temp_output_buffer_setup): Likewise.
60a653f1 13417
048addec 134182001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 13419
048addec 13420 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
60a653f1 13421
048addec 134222001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 13423
048addec
JD
13424 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
13425 Niemitalo <kon@iki.fi>.
60a653f1 13426
048addec 134272001-11-25 Jason Rumney <jasonr@gnu.org>
60a653f1 13428
048addec 13429 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
60a653f1 13430
048addec
JD
13431 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
13432 (Fx_show_tip): Block input during frame creation.
13433 (Fx_show_tip, Fx_hide_tip): Enable.
60a653f1 13434
048addec 134352001-11-24 Richard M. Stallman <rms@gnu.org>
60a653f1 13436
048addec
JD
13437 * lread.c (Fload): Detect recursive load error for more than 3
13438 nestings of the same file.
13439 (Vrecursive_load_depth_limit): Variable deleted.
13440 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
60a653f1 13441
048addec 134422001-11-24 Jason Rumney <jasonr@gnu.org>
60a653f1 13443
048addec
JD
13444 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
13445 mouse position if either left or top is not specified.
60a653f1 13446
048addec
JD
13447 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
13448 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
13449 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
13450 (my_create_tip_window): Assign tip_window.
13451 (x_create_tip_frame): Use same defaults as X.
13452 (compute_tip_xy): Remove unused variable. Use full screen width.
f63fd14e 13453 (Fx_show_tip): Do not double height. Call ShowWindow directly.
60a653f1 13454
048addec
JD
13455 * w32term.c (x_after_update_window_line): Doc fix.
13456 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
13457 frames.
13458 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
60a653f1 13459
048addec
JD
13460 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
13461 for all Windowed systems.
60a653f1 13462
048addec 134632001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 13464
048addec
JD
13465 * msdos.c (IT_clear_screen): If the frame's faces are not yet
13466 realized, use the initial screen colors to clear the screen.
60a653f1 13467
048addec 134682001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 13469
048addec
JD
13470 * textprop.c (Fset_text_properties): Remove unused variables
13471 `unchanged', `prev_changed', `s' and `len'.
60a653f1 13472
048addec
JD
13473 * search.c (Freplace_match): Remove unused variable `inslen'.
13474
13475 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
13476
134772001-11-22 Jason Rumney <jasonr@gnu.org>
13478
13479 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
13480 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
13481 (my_create_tip_window): New function.
13482 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
13483 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
13484
134852001-11-20 Jason Rumney <jasonr@gnu.org>
13486
13487 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
13488 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
13489
13490 * w32fns.c (Vw32_system_coding_system): Remove.
13491 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
13492
134932001-11-19 Stefan Monnier <monnier@cs.yale.edu>
13494
13495 * fileio.c (Fwrite_region): Move choose_write_coding_system to
13496 after build_annotations.
13497
13498 * syntax.c (describe_syntax): Add dummy arg.
13499 (describe_syntax_1): Update call to describe_vector.
13500
13501 * category.c (describe_category): Add dummy arg.
13502 (describe_category_1): Update call to describe_vector.
13503
13504 * keymap.c (Fdescribe_vector): Add `describer' parameter.
13505 (describe_command, describe_translation): Add dummy second param.
13506 (describe_map): Call elt_describer with two arguments.
13507 (describe_vector_princ): Add `fun' parameter.
13508 Call it instead of the hardcoded `princ'.
13509 (describe_vector): Add arg `args'.
13510 Pass it as a new second argument to elt_describer.
60a653f1 13511
048addec 13512 * keymap.h (describe_vector): Update prototype.
60a653f1 13513
048addec
JD
13514 * frame.c: Don't include keymap.h any more.
13515 (keys_of_frame): Remove.
60a653f1 13516
048addec 13517 * lisp.h (keys_of_frame): Remove declaration.
60a653f1 13518
048addec 13519 * emacs.c (main): Don't call `keys_of_frame' any more.
60a653f1 13520
048addec 135212001-11-14 Andreas Schwab <schwab@suse.de>
60a653f1 13522
048addec
JD
13523 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
13524 if defined, 0 otherwise.
13525 (MAP_FAILED): Define if not defined and use it to test mmap failure.
13526 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
60a653f1 13527
048addec 135282001-11-19 Richard M. Stallman <rms@gnu.org>
60a653f1 13529
048addec 13530 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
60a653f1 13531
048addec 135322001-11-18 Jason Rumney <jasonr@gnu.org>
60a653f1 13533
048addec
JD
13534 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
13535 (x_draw_bar_cursor): If the background color of the glyph under
13536 the cursor equals the frame's cursor color, use the glyph's
13537 foreground color for drawing the bar cursor.
13538 (x_after_update_window_line): Clear internal border in different
13539 circumstances.
13540 (w32_set_vertical_scroll_bar): Check for width and height > 0.
13541 (w32_draw_relief_rect): Correct relief by 1 pixel.
13542 (x_set_glyph_string_background_width):
13543 Set extends_to_end_of_line_p if the row's fill_line_p is set and
13544 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
13545 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
13546 if cursor_in_non_selected_windows is false.
13547 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
13548 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
13549 Notice if cursor gets overwritten.
13550 (notice_overwritten_cursor): Renamed from
13551 note_overwritten_text_cursor. Rewritten to take glyph widths
13552 into account, and to take X positions as parameters.
13553 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
13554 around call to x_draw_glyphs.
13555 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
13556 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
13557 color to use for image glyph reliefs.
13558 (x_draw_image_relief): Accept zero tool_bar_button_relief.
13559 (glyph_rect): Remove unused variable `area'.
60a653f1 13560
048addec
JD
13561 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
13562 some items.
13563 (x_set_internal_border_width): Set frame garbaged when window
13564 doesn't exist yet.
13565 (Fx_create_frame): Accept zero tool_bar_button_relief.
13566 (x_clear_image_1, four_corners_best, image_background)
13567 (image_background_transparent): New functions.
13568 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
13569 (gs_format): Add `:background' entry.
13570 (lookup_image): Set IMG's background color if specified.
13571 (pbm_load, xbm_load_image, png_load): Set IMG's background field
13572 when appropriate.
13573 (x_clear_image_1): Reset `background_valid' and
13574 `background_transparent_valid' fields.
13575 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
13576 calculating it here. Set IMG's background_transparent field.
13577 (enum xpm_keyword_index): Add XPM_BACKGROUND.
13578 (enum png_keyword_index): Add PNG_BACKGROUND.
13579 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
13580 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
13581 (enum gif_keyword_index): Add GIF_BACKGROUND.
13582 (enum gs_keyword_index): Add GS_BACKGROUND.
13583 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
13584 Pre-calculate image background color where necessary.
13585 (x_create_x_image_and_pixmap, xbm_load, gs_load):
13586 Use display info's n_cbits entry for screen depth.
13587 (Fx_show_tip): Remove unused variables `buffer', `top',
13588 `left', `max_width' and `max_height'.
60a653f1 13589
048addec 13590 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
60a653f1 13591
048addec 135922001-11-18 Gerd Moellmann <gerd@gnu.org>
60a653f1 13593
048addec 13594 * puresize.h (BASE_PURESIZE): Increase to 750000.
60a653f1 13595
048addec 135962001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 13597
048addec 13598 * frame.c (Fframe_live_p): Doc fix.
60a653f1 13599
048addec 136002001-11-18 Richard M. Stallman <rms@gnu.org>
60a653f1 13601
048addec
JD
13602 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
13603 (message_dolog_marker3): New static variables hold three markers.
13604 (syms_of_xdisp): Initialize and staticpro them.
13605 (message_dolog): Use message_dolog_marker1..3 instead of
13606 allocating markers each time. Unchain them when done.
60a653f1 13607
048addec 136082001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 13609
048addec 13610 * doc.c (Fsnarf_documentation): Doc fix.
60a653f1 13611
048addec 136122001-11-17 Andreas Schwab <schwab@suse.de>
60a653f1 13613
048addec 13614 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
60a653f1 13615
048addec 136162001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 13617
048addec 13618 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
60a653f1 13619
048addec 136202001-11-17 Jason Rumney <jasonr@gnu.org>
60a653f1 13621
048addec 13622 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
60a653f1 13623
048addec 136242001-11-17 Gerd Moellmann <gerd@gnu.org>
60a653f1 13625
048addec
JD
13626 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
13627 with invalid position.
60a653f1 13628
048addec 136292001-11-16 Richard M. Stallman <rms@gnu.org>
60a653f1 13630
048addec 13631 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
60a653f1 13632
048addec
JD
13633 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
13634 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
13635 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
60a653f1 13636
048addec 13637 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
60a653f1 13638
048addec 136392001-11-16 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 13640
048addec
JD
13641 * fileio.c (build_annotations): Split off the tail.
13642 (build_annotations_2): New fun. Extracted from build_annotations.
13643 (Fwrite_region): Split the call to build_annotations into two
13644 calls to build_annotations and build_annotations_2.
077907d4 13645
048addec 136462001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1756e2fb 13647
048addec
JD
13648 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
13649 clear_waiting_for_input with argument.
1756e2fb 13650
048addec 13651 * xterm.h (x_update_cursor): Remove duplicated prototype.
06e8f738 13652
048addec 13653 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
06e8f738 13654
048addec 13655 * xterm.c (waiting_for_input): Remove unnecessary declaration.
fa336b91 13656
048addec 13657 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
fa336b91 13658
048addec 136592001-11-16 Stefan Monnier <monnier@cs.yale.edu>
fa336b91 13660
048addec
JD
13661 * fileio.c (choose_write_coding_system): New fun, extracted
13662 from Fwrite_region.
13663 (Fwrite_region): Use it.
fa336b91 13664
048addec
JD
13665 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
13666 (funcall_lambda, run_hook_with_args): Make static and add prototype.
13667 (ml_apply, find_handler_clause): Add prototype.
fa336b91 13668
048addec 136692001-11-16 Eli Zaretskii <eliz@gnu.org>
fa336b91 13670
048addec 13671 * config.in: Add #undef HAVE_COFF_H.
fa336b91 13672
048addec
JD
13673 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
13674 Required for ISC 4.1.
fa336b91 13675
048addec 136762001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
fa336b91 13677
048addec
JD
13678 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
13679 Andrew Wiseman <a.wiseman@btclick.com>.
fa336b91 13680
048addec 136812001-11-16 Kim F. Storm <storm@cua.dk>
fa336b91 13682
048addec
JD
13683 The following changes are made to clean up the various internal
13684 references to the fringes to actually use the term `fringe' for
13685 them. Previously, they were called `flags areas', `bitmap areas',
13686 `left/right side of windows', or implicitly as `flags' or
13687 `bitmaps':
fa336b91 13688
048addec 13689 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
f63fd14e 13690 Comments fixed. Use renamed symbols.
06e8f738 13691
f63fd14e 13692 * dispnew.c: Comment fix. Use renamed symbols.
06e8f738 13693
048addec
JD
13694 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
13695 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
13696 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
9ce647f4 13697
048addec 13698 * msdos.c: Comment fix.
9ce647f4 13699
048addec 13700 * w32fns.c: Use renamed symbols.
9b784ab8 13701
f63fd14e 13702 * w32term.c: Comment fixes. Use renamed symbols.
048addec
JD
13703 (fringe_bitmap_type): Renamed from bitmap_type.
13704 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
13705 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
13706 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
9f7e52b4 13707
f63fd14e 13708 * w32term.h: Comment fixes. Use renamed symbols.
048addec
JD
13709 (fringes_extra): Renamed from flags_areas_extra.
13710 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
13711 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
13712 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
13713 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
13714 (FRAME_X_LEFT_FRINGE_WIDTH):
13715 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
13716 (FRAME_X_RIGHT_FRINGE_WIDTH):
13717 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
9f7e52b4 13718
048addec 13719 * widget.c: Use renamed symbols.
9f7e52b4 13720
f63fd14e 13721 * window.c: Comment fixes. Use renamed symbols.
048addec 13722 (coordinates-in-window-p): Doc fix.
fa336b91 13723
f63fd14e 13724 * xdisp.c: Comment fixes. Use renamed symbols.
34e5d0af 13725
048addec 13726 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
9b784ab8 13727
048addec 13728 * xfns.c: Use renamed symbols.
89512fcd 13729
f63fd14e 13730 * xterm.c: Comment fixes. Use renamed symbols.
048addec
JD
13731 (fringe_bitmap_type): Renamed from bitmap_type.
13732 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
13733 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
13734 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
89512fcd 13735
f63fd14e 13736 * xterm.h: Comment fixes. Use renamed symbols.
048addec
JD
13737 (fringes_extra): Renamed from flags_areas_extra.
13738 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
13739 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
13740 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
13741 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
13742 (FRAME_X_LEFT_FRINGE_WIDTH):
13743 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
13744 (FRAME_X_RIGHT_FRINGE_WIDTH):
13745 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
13746
137472001-11-15 Jason Rumney <jasonr@gnu.org>
13748
13749 * w32menu.c (add-menu-item): Make help_echo and radio buttons
13750 work for most menu items. From David Ponce
13751 <david.ponce@wanadoo.fr>.
13752
137532001-11-15 Gerd Moellmann <gerd@gnu.org>
13754
13755 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
13756 Some x_set_* function expect to be called even if old and new
13757 value are equal.
13758
13759 * xdisp.c (build_desired_tool_bar_string): Accept zero
13760 tool_bar_button_relief.
13761
13762 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
13763
13764 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
13765
13766 * xterm.c (x_draw_bar_cursor): If the background color of the
13767 glyph under the cursor equals the frame's cursor color, use
13768 the glyph's foreground color for drawing the bar cursor.
13769
13770 * dispnew.c (direct_output_forward_char): Fix character/byte
13771 position comparison.
7d18891d 13772
048addec 137732001-11-15 Miles Bader <miles@gnu.org>
d2936d21 13774
048addec
JD
13775 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
13776 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
13777 Update arguments to find_field.
13778 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
13779 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
13780 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
13781 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
7d18891d 13782
048addec 137832001-11-14 Richard M. Stallman <rms@gnu.org>
7d18891d 13784
048addec 13785 * editfns.c (Fpropertize): Allow call with 1 arg.
7d18891d 13786
048addec
JD
13787 * dispextern.h (image_background, image_background_transparent):
13788 Conditionalize on HAVE_X_WINDOWS.
7d18891d 13789
048addec 137902001-11-13 Richard M. Stallman <rms@gnu.org>
7d18891d 13791
048addec 13792 * print.c (Fprin1_to_string): Doc fix.
7d18891d 13793
048addec 13794 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
7d18891d 13795
048addec 13796 * floatfns.c (Fceiling, Ffloor): Doc fixes.
7d18891d 13797
048addec 13798 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
7d18891d 13799
048addec 13800 * fileio.c (Ffile_accessible_directory_p): Doc fix.
7d18891d 13801
048addec 13802 * eval.c (syms_of_eval): Doc fix.
7d18891d 13803
048addec 13804 * coding.c (syms_of_coding): Doc fix.
7d18891d 13805
048addec 13806 * doc.c (Fsnarf_documentation): Doc fix.
7d18891d 13807
048addec 13808 * dispnew.c (syms_of_display): Doc fix.
9474c847 13809
048addec 13810 * category.c (Fget_unused_category): Doc fix.
9474c847 13811
048addec 13812 * buffer.c (syms_of_buffer): Doc fixes.
e3059a5d 13813
048addec 138142001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
e3059a5d 13815
048addec 13816 * print.c (prin1, print): Doc fix.
e3059a5d 13817
048addec 138182001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
b3700ae7 13819
048addec
JD
13820 * fontset.h: Remove declarations of variables
13821 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
b3700ae7 13822
048addec
JD
13823 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
13824 `Vclip_large_size_font'.
eae936e2 13825
048addec 138262001-11-13 Jason Rumney <jasonr@gnu.org>
4bb962be 13827
048addec 13828 * w32fns.c: Doc fix.
ddb67bdc 13829
048addec 138302001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3467c402 13831
048addec 13832 * xfaces.c (Fface_attributes_as_vector): Doc fix.
3467c402 13833
048addec 13834 * fns.c: Doc fix.
6e1b91d7 13835
048addec 13836 * emacs.c: Doc fix.
1c1d3d69 13837
048addec 13838 * coding.c: Doc fix.
1c1d3d69 13839
048addec
JD
13840 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
13841 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
13842 `new style' [w/`doc:' keyword].
b6f4c7ba 13843
048addec 138442001-11-12 Richard M. Stallman <rms@gnu.org>
b6f4c7ba 13845
048addec
JD
13846 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
13847 LeaveNotify events. Only FocusIn and FocusOut do that now.
13848 (x_display_and_set_cursor): Do display hollow cursors in active
13849 minibuffer windows when they are not selected.
b6f4c7ba 13850
048addec 138512001-11-12 Jason Rumney <jasonr@gnu.org>
a89f435d 13852
048addec 13853 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
f63fd14e
JB
13854 * w32term.c: Change doc-string comments to `new style'
13855 [w/`doc:' keyword]. Doc fixes.
a89f435d 13856
048addec
JD
13857 * w32fns.c: Don't define max.
13858 (Fx_open_connection): Only execute once.
a4cd0cd7 13859
048addec 138602001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
eafb659a 13861
048addec
JD
13862 * ccl.c: Change macros to use do-while block instead of if-else.
13863 Use braces to follow GNU Coding Standards.
eafb659a 13864
048addec 138652001-11-11 Richard M. Stallman <rms@gnu.org>
a4cd0cd7 13866
048addec 13867 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
a4cd0cd7 13868
048addec 13869 * lread.c (read_escape): Use end_of_file_error for reporting eof.
a4cd0cd7 13870
048addec
JD
13871 * insdel.c (replace_range): Use adjust_markers_for_replace
13872 instead of adjust_markers_for_delete and adjust_markers_for_insert.
a4cd0cd7 13873
048addec 13874 * intervals.h: Declare set_text_properties and set_text_properties_1.
a4cd0cd7 13875
048addec
JD
13876 * textprop.c (set_text_properties_1): New subroutine
13877 broken out of set_text_properties.
13878 (set_text_properties): Use set_text_properties_1.
91823618 13879
048addec
JD
13880 * intervals.c (graft_intervals_into_buffer):
13881 Use set_text_properties_1 to clear out properties.
91823618 13882
048addec
JD
13883 * search.c (Freplace_match): Use replace_range to insert
13884 and delete. Don't request property inheritance from
13885 surrounding text.
86928dfb 13886
048addec 138872001-11-10 Jason Rumney <jasonr@gnu.org>
86928dfb 13888
048addec 13889 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
f63fd14e 13890 vertical fonts. Allow them if face name is explicitly specified.
048addec 13891 Do not give up if we find a font that cannot be converted to an xlfd.
40ef1eda 13892
048addec 138932001-11-10 Gerd Moellmann <gerd@gnu.org>
ab8469eb 13894
048addec
JD
13895 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
13896 instead of malloc/free.
a78e0303 13897
048addec 138982001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
40ef1eda 13899
048addec
JD
13900 * xfaces.c (merge_face_vectors): Use braces to follow GNU
13901 Coding Standards.
13902 (Finternal_set_lisp_face_attribute): Likewise.
fabf4a91 13903
048addec 13904 * buffer.c (Fbury_buffer): Likewise.
0c99b139 13905
048addec 13906 * indent.c (current_column_1): Remove unused variable `prev_col'.
0c99b139 13907
048addec
JD
13908 * coding.c (encode_coding): Use precomputed value of `src'.
13909 (encode_coding): Remove unused variable `src_end'.
13910 (code_convert_region): Remove unused variables `count'.
830ddd77 13911
048addec 139122001-11-07 Jason Rumney <jasonr@gnu.org>
830ddd77 13913
048addec
JD
13914 * w32term.c (x_display_and_set_cursor): Do not move system caret
13915 if cursor_glyph is NULL.
55c6d645 13916
048addec 139172001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
55c6d645 13918
048addec 13919 * keymap.c (access_keymap): Fix compilation error.
5de38842 13920
048addec 139212001-11-07 Miles Bader <miles@gnu.org>
7a4564a4 13922
048addec 13923 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
5de38842 13924
048addec 139252001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4fa23df5 13926
048addec
JD
13927 * intervals.c (graft_intervals_into_buffer):
13928 Remove #ifdef'd-out code.
13929 (graft_intervals_into_buffer): Remove unused variable `middle'.
4fa23df5 13930
048addec
JD
13931 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
13932 code (eval-current-buffer).
13933 Change doc-string comments to `new style' [w/`doc:' keyword].
7a6a97d7 13934
048addec 139352001-11-06 Richard M. Stallman <rms@gnu.org>
c191d13c 13936
048addec 13937 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
7a6a97d7 13938
048addec 139392001-11-06 Stefan Monnier <monnier@cs.yale.edu>
44dc78e0 13940
048addec 13941 * lread.c (read1): Fix behavior with nested backquoting.
44dc78e0 13942
048addec
JD
13943 * keyboard.c (make_lispy_event): Check integerness and fix
13944 Lisp_Object/int mixup.
17893c65 13945
048addec 139462001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4d994a79 13947
048addec 13948 * fns.c (copy_hash_table): Remove unused variable `v'.
d5360cc7 13949
048addec
JD
13950 * fontset.c (fontset_font_pattern): Remove unused variable
13951 `family_registry'.
d5360cc7 13952
048addec 13953 * indent.c (current_column_1): Remove unused variable `prev_col'.
d5360cc7 13954
048addec 139552001-11-05 Richard M. Stallman <rms@gnu.org>
96238a5a 13956
048addec 13957 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
96238a5a 13958
048addec
JD
13959 * buffer.c (Fkill_buffer): Don't delete auto save file
13960 if buffer is modified.
d9d54213 13961
048addec 139622001-11-05 Andrew Innes <andrewi@gnu.org>
d9d54213 13963
048addec
JD
13964 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
13965 CHECK_NUMBER_CDR.
b116830b 13966
048addec 139672001-11-05 Richard M. Stallman <rms@gnu.org>
b116830b 13968
048addec 13969 * unexelf.c (unexec): Minor changes; clean up comments.
3297e2a1 13970
048addec 139712001-11-05 Sam Steingold <sds@gnu.org>
3297e2a1 13972
048addec 13973 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
6fb8339c 13974
048addec 139752001-11-05 Andreas Schwab <schwab@suse.de>
6fb8339c 13976
048addec 13977 * sound.c (sound_perror): Save errno from being clobbered.
7dd73b78 13978
048addec 139792001-11-05 Dale Hagglund <rdh@yottayotta.com>
7dd73b78 13980
048addec
JD
13981 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
13982 the program image directly.
982f6c7e 13983
048addec 139842001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d31053f9 13985
048addec 13986 * buffer.h (Fbuffer_local_value): Add prototype.
d31053f9 13987
048addec 139882001-11-04 Richard M. Stallman <rms@gnu.org>
d31053f9 13989
048addec
JD
13990 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
13991 and CHECK_BUFFER.
d31053f9 13992
048addec
JD
13993 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
13994 (record_char): Likewise.
d31053f9 13995
048addec
JD
13996 * keyboard.c (make_lispy_event): Don't insist a drag event must
13997 move to a different buffer position. Instead, check for moving at
13998 least double_click_fuzz.
982f6c7e 13999
048addec 14000 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
830047fd 14001
048addec 14002 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
b116830b 14003
048addec
JD
14004 * indent.c (current_column_1, Fmove_to_column): Separate the code
14005 for display-table glyphs from the code for buffer text, to fix
14006 bugs in the former.
830047fd 14007
048addec 140082001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
b116830b 14009
048addec
JD
14010 * buffer.c (Fbuffer_local_value): New function.
14011 (syms_of_buffer): Defsubr it.
2df5238c 14012
048addec
JD
14013 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
14014 value of `cursor-in-non-selected-windows'.
4e397688 14015
048addec
JD
14016 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
14017 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
14018 (syms_of_xdisp): Initialize it.
48b0f3ae 14019
048addec 140202001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2df5238c 14021
048addec 14022 * xfns.c (Fx_create_frame): Doc fix.
3ecaf7e5 14023
048addec
JD
14024 * coding.c: Change doc-string comments to `new style' [w/`doc:'
14025 keyword].
3ecaf7e5 14026
048addec
JD
14027 * eval.c (top_level_value, top_level_set): Remove commented and
14028 #ifdef'd-out code.
14029 (Fdefvar): Fix usage in doc-string.
3ecaf7e5 14030
048addec 140312001-11-03 Richard M. Stallman <rms@gnu.org>
3ecaf7e5 14032
048addec 14033 * xfns.c: Include unistd.h, if it exists.
8db2e33b 14034
048addec 14035 * editfns.c: Move the include of ctype.h after unistd.h.
8db2e33b 14036
048addec 14037 * gmalloc.c: Test BROKEN_PROTOTYPES.
aed29b97 14038
048addec 140392001-11-03 Ken Raeburn <raeburn@gnu.org>
aed29b97 14040
048addec
JD
14041 * lisp.h (CHECK_STRING_CAR): New macro.
14042 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
14043 treating XCAR and XCDR as lvalues.
14044 (openp): Use CHECK_STRING_CAR.
14045 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
aed29b97 14046
048addec 140472001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
6cb16f95 14048
048addec
JD
14049 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
14050 (SIGMASKTYPE): Define.
1b1acc13 14051
048addec 14052 * syssignal.h (sigunblock): Don't define if already defined.
020f9b38 14053
048addec 140542001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
020f9b38 14055
048addec
JD
14056 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
14057 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
14058 Fix typos in comments.
6cb16f95 14059
048addec
JD
14060 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
14061 and #ifdef'd-out code.
14062 Fix and reindent comments.
6cb16f95 14063
048addec 14064 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
6cb16f95 14065
048addec
JD
14066 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
14067 argument `i' in macros.
6cb16f95 14068
048addec
JD
14069 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
14070 `i' in macros.
7e9d3c2f 14071
048addec
JD
14072 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
14073 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
14074 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
14075 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
14076 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
14077 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
14078 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
14079 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
14080 in macros.
7e9d3c2f 14081
048addec
JD
14082 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
14083 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
14084 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
14085 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
14086 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
14087 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
14088 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
14089 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
14090 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
14091 (remove unused second argument).
7e9d3c2f 14092
048addec 140932001-11-02 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 14094
048addec
JD
14095 * syntax.c (describe_syntax): New wrapper.
14096 (Finternal_describe_syntax_value): Rename from describe_syntax.
14097 Don't insert space at front and \n at the end.
14098 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
e6bff182 14099
048addec
JD
14100 * regex.c (re_wctype): Try to fix some warnings.
14101 (regcomp, regexec): Don't forget the __restrict.
9ba48103 14102
048addec 141032001-11-02 Richard M. Stallman <rms@gnu.org>
9ba48103 14104
048addec 14105 * textprop.c (Fget_char_property): Doc fix.
9ba48103 14106
048addec 141072001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9ba48103 14108
048addec 14109 * process.c (Fstart_process): Add usage to doc-string.
c22e59e1 14110
048addec 14111 * data.c (Fsetq_default): Ditto.
c22e59e1 14112
048addec 14113 * callint.c (Finteractive): Ditto.
9271ed2c 14114
048addec 141152001-11-01 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 14116
048addec
JD
14117 * macros.c: Don't include keymap.h any more.
14118
141192001-11-01 Richard M. Stallman <rms@gnu.org>
14120
14121 * data.c (Fmake_local_variable): Doc fix.
14122
14123 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
14124 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
e6bff182 14125
048addec 14126 * keymap.c (Fdescribe_buffer_bindings): Print character property
9271ed2c
RS
14127 bindings along with or instead of the buffer local map.
14128 Make the overriding maps override what they should.
14129
f00691a3 141302001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8b8bd9c6
PJ
14131
14132 * window.c (grow_mini_window): Fix typo in comment.
14133
27188d11
GM
141342001-11-01 Gerd Moellmann <gerd@gnu.org>
14135
7b49b9d2
GM
14136 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
14137 (XTset_vertical_scroll_bar): Likewise.
14138
43f7c3ea
GM
14139 * xfns.c (x_build_heuristic_mask): Use four_corners_best
14140 instead of IMAGE_BACKGROUND.
c22e59e1 14141
b350c2e5
GM
14142 * xfns.c (four_corners_best): Reindent.
14143
c22e59e1 14144 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27188d11
GM
14145 Handle :box so that it is possible to specify sexprs.
14146
bf00d461
EZ
141472001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
14148
14149 * s/hpux11.h: New file.
14150
f00691a3 141512001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e10df59 14152
2b209b97
PJ
14153 * emacs.c (USAGE1): Show command line option --no-window-system
14154 instead of --no-windows in usage.
14155 (standard_args): Rename --no-windows to --no-window-system.
14156 (bug_reporting_address): Follow Emacs coding conventions.
14157
9dbc9081
PJ
14158 * eval.c (Fcommandp): Doc fix.
14159 Change doc-string comments to `new style' [w/`doc:' keyword].
14160
4e10df59
PJ
14161 * frame.c (Fframe_live_p): Doc fix.
14162
14163 * buffer.c (selective-display-ellipses): Doc fix.
14164
dd387b25
GM
141652001-10-31 Gerd Moellmann <gerd@gnu.org>
14166
fe957e65
GM
14167 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
14168
dd387b25
GM
14169 * xfaces.c (realize_x_face): If C is not a single-byte character,
14170 set the face's colors_copied_bitwise_p instead of the defaulted_p
14171 members which have a different meaning.
14172 (free_face_colors): Do nothing for a face whose colors have been
14173 copied bitwise.
14174
c22e59e1 14175 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
dd387b25 14176
f00691a3 141772001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2e1280f8 14178
687784e8
PJ
14179 * marker.c, mocklisp.c: Change doc-string comments to `new style'
14180 [w/`doc:' keyword].
2e1280f8 14181
b9d9a9b9
GM
141822001-10-31 Gerd Moellmann <gerd@gnu.org>
14183
14184 * fns.c (require_unwind): Return Lisp_Object.
14185
f00691a3 141862001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
48400103 14187
fa1361cb
PJ
14188 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
14189 (last-input-char): Revert doc-string to be the same as the
14190 doc-string of `last-input-event'.
14191
6c465a15 14192 * xdisp.c: Fix typos in comments.
48400103 14193
eafa3196
GM
141942001-10-31 Gerd Moellmann <gerd@gnu.org>
14195
14196 * window.c (grow_mini_window): Handle case that the root
14197 window is already smaller than the nominal mininum height.
14198
747d3f2a
SM
141992001-10-30 Stefan Monnier <monnier@cs.yale.edu>
14200
bf9bb76f
SM
14201 * emacs.c (main): Don't call keys_of_macros any more.
14202
14203 * lisp.h (keys_of_macros): Remove.
14204
14205 * macros.c (keys_of_macros): Remove.
14206
747d3f2a
SM
14207 * xfaces.c (Fface_attribute_relative_p): Declare args.
14208
5e905a57
JR
142092001-10-30 Jason Rumney <jasonr@gnu.org>
14210
14211 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
14212 (enum_font_cb2): Ignore fonts with vertical orientation.
14213
3a426197
RS
142142001-10-30 Richard M. Stallman <rms@gnu.org>
14215
14216 * keyboard.c (Finput_pending_p): Doc fix.
14217
a742d646
GM
142182001-10-30 Gerd Moellmann <gerd@gnu.org>
14219
259cf6bc
GM
14220 * xterm.c (x_after_update_window_line): Don't run the code
14221 clearing in borders for rows whose visible height is 0.
14222
3f99f948
GM
14223 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
14224 resized_p flag is set. If not set, use the much less flickering
14225 method previously used.
14226
14227 * dispnew.c (change_frame_size_1): Set frame's resized_p.
14228
14229 * frame.h (struct frame) <resized_p>: New member.
14230
b4a3be43
GM
14231 * lread.c (to_multibyte): Ensure read_buffer is at least twice
14232 as large as the number of bytes to convert.
747d3f2a 14233
a742d646
GM
14234 * lread.c (to_multibyte): New function.
14235 (read1): Use it.
14236
cacbb9e9
EZ
142372001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
14238
14239 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
14240
99cb6b2f
GM
142412001-10-30 Gerd Moellmann <gerd@gnu.org>
14242
327f42ee 14243 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
14244 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
14245 if the row's fill_line_p is set and drawing the last glyph with
14246 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 14247
99cb6b2f
GM
14248 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
14249
8e8223e2
SM
142502001-10-29 Stefan Monnier <monnier@cs.yale.edu>
14251
14252 * xmenu.c: Include coding.h and charset.h.
14253 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
14254 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
14255 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
14256 Explicitly set wv->help. Use `TRUE' rather than `True'.
14257 (menu_help_callback): Use empty_string.
14258
14259 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
14260 (Fx_popup_dialog): Explicitly init f.
14261 (w32_menu_display_help): Use empty_string.
14262
4d083a8f
RS
142632001-10-29 Richard M. Stallman <rms@gnu.org>
14264
b2304472
RS
14265 * fns.c (Frequire): Detect recursive try to require the same
14266 feature 3 or more levels deep, and get error.
14267 (require_unwind): New subroutine.
14268 (require_nesting_list): New variable.
14269 (syms_of_fns): Init and staticpro it.
14270
4d083a8f
RS
14271 * print.c (print_object): Clarify indication of insertion type.
14272
2fe41216
EZ
142732001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
14274
90480000
EZ
14275 * coding.c (syms_of_coding): Document that locale-coding-system is
14276 used for decoding input on X.
14277
2fe41216
EZ
14278 * window.c (Fscroll_left, Fscroll_right): Doc fix.
14279
f00691a3 142802001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
74e79967
PJ
14281
14282 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
14283 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
14284
60ebcfe8
GM
142852001-10-29 Gerd Moellmann <gerd@gnu.org>
14286
9a7bdceb
GM
14287 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
14288 use NO_CURSOR if cursor_in_non_selected_windows is false.
14289
3f08fcd2
GM
14290 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
14291 the slant attribute if FRAME is t.
14292
0ccfdad2
GM
14293 * xfns.c (x_set_internal_border_width): Set frame garbaged
14294 when X window doesn't exist yet.
14295
ef253080
GM
14296 * xterm.c (x_after_update_window_line): Clear internal border
14297 in different circumstances.
b116830b 14298
60ebcfe8
GM
14299 * xterm.c (XTread_socket) <KeyPress>: Don't use
14300 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
14301 <handa@etl.go.jp>.
14302
73d25f9c
EZ
143032001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
14304
14305 * m/ibms390.h: New file. From Adam Thornton
14306 <athornton@sinenomine.net>.
14307
cac1daf0
GM
143082001-10-28 Gerd Moellmann <gerd@gnu.org>
14309
053b3256 14310 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
b116830b 14311
cac1daf0
GM
14312 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
14313 a loop counter.
14314
f00691a3 143152001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13b1a09c 14316
f9711de4 14317 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
186486eb 14318
4707d2d0
PJ
14319 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
14320 keyword].
14321 Fix typos in comments.
b116830b 14322
d883731c
PJ
14323 * emacs.c (bug_reporting_address): New function.
14324 Use it when displaying usage message.
14325
04012254
PJ
14326 * minibuf.c (read_minibuf): Remove unused external declaration of
14327 variable `Qread_only'.
14328
13b1a09c
PJ
14329 * keymap.c (access_keymap): Remove unused variable `charset'.
14330
5bbf4378
MB
143312001-10-28 Miles Bader <miles@gnu.org>
14332
14333 * xfaces.c (merge_face_heights): Handle TO being relative as well.
14334 Remove #ifdef'd-out code.
14335 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
14336 (syms_of_xfaces): Initialize them.
14337
1ce1e4ee
JR
143382001-10-27 Jason Rumney <jasonr@gnu.org>
14339
14340 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
14341 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
14342 position using the system caret.
14343
14344 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
14345 (w32_system_caret_height, w32_system_caret_x)
14346 (w32_system_caret_y): New variables for tracking system caret.
14347 (w32_initialize): Initialize them.
c2d53558 14348 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 14349
c2d53558
SM
14350 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
14351 New messages types.
1ce1e4ee
JR
14352
14353 * w32term.c (note_mouse_highlight): Clear old help_echo.
14354
f00691a3 143552001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e30ce42 14356
bb4600a4
PJ
14357 * xterm.c: Fix typo in a comment.
14358
7db35a48
PJ
14359 * emacs.c: Fix typos in comments.
14360 Remove unnecessary spaces.
14361 Change doc-string comments to `new style' [w/`doc:' keyword].
14362 (USAGE2): Fix typos in usage string.
14363
a7248e4f
PJ
14364 * xterm.c: Fix typo in a comment.
14365
4e30ce42
PJ
14366 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
14367 emacs.c.
14368
62725a92
GM
143692001-10-27 Gerd Moellmann <gerd@gnu.org>
14370
798dbe1f 14371 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 14372 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
14373 farther backward when target_y was not reached.
14374
62725a92
GM
14375 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
14376 Display errno only if non-zero.
14377 (sound_warning): New function.
14378 (vox_configure): Don't treat failing to set sample rate as error.
14379 (various places): Improve error messages.
14380
d4e34d24
EZ
143812001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
14382
944e6f60
EZ
14383 * fileio.c (Faccess_file): Run the argument filename through
14384 Fexpand_file_name, before using it.
14385
d4e34d24
EZ
14386 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
14387 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
14388
38d2af0c
GM
143892001-10-26 Gerd Moellmann <gerd@gnu.org>
14390
da80a8d5
GM
14391 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
14392
38d2af0c
GM
14393 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
14394 Fix clearing in the case of scroll bars on the right.
c2d53558 14395
45de4a6f 143962001-10-26 Juanma Barranquero <lektu@terra.es>
56f508dd
EZ
14397
14398 * w32gui.h (XImage): Add a dummy typedef.
14399
fbd5ceb2
GM
144002001-10-26 Gerd Moellmann <gerd@gnu.org>
14401
c2d53558 14402 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 14403
b23236fb
EZ
144042001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
14405
14406 * frame.c (Fframe_parameter): Fix last change.
14407
5d991fc4
EZ
14408 * fileio.c: Revert last change (which removed old commented-out
14409 version of expand-file-name). Add a comment that explains why
14410 this old version should not be removed.
14411
879eadc3
GM
144122001-10-25 Gerd Moellmann <gerd@gnu.org>
14413
75700ff2
GM
14414 * frame.c (Fframe_parameter): Fix a bug whereby some
14415 ``artificial'' frame parameters, like `minibuffer' were not
14416 obtained by calling Fframe_parameters.
14417
dfe92a6a
GM
14418 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
14419 cursor differently.
14420
879eadc3
GM
14421 * xdisp.c (move_it_vertically_backward): Compute line height
14422 differently. Add heuristic to try to be more compatible to 20.x.
14423
e1010ebe
SM
144242001-10-25 Stefan Monnier <monnier@cs.yale.edu>
14425
d73a471b
SM
14426 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
14427
d6da5a06
GM
14428 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
14429 boolean.
e1010ebe 14430
f66bd220
MB
144312001-10-25 Miles Bader <miles@gnu.org>
14432
14433 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
14434 BG is a pointer to a structure, not a structure.
14435 (gif_format, png_format): Add missing commas.
14436
d436d538
RS
144372001-10-24 Richard M. Stallman <rms@gnu.org>
14438
14439 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 14440 (syms_of_xfaces): Defsubr it.
d436d538 14441
f00691a3 144422001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
075c507b
PJ
14443
14444 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
14445 variable `area'.
14446
f00691a3 144472001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d492b584 14448
c2d53558 14449 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 14450
e2a57b34
MB
144512001-10-25 Miles Bader <miles@gnu.org>
14452
14453 * dispextern.h (struct image): Add `background',
14454 `background_valid', and `background_transparent' fields.
14455 (image_background, image_background_transparent): New declarations.
14456 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
14457 * xfns.c (image_background, image_background_transparent)
14458 (four_corners_best): New functions.
c2d53558 14459 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
14460 (gs_format): Add `:background' entry.
14461 (lookup_image): Set IMG's background color if specified.
14462 (pbm_load, xbm_load_image, png_load): Set IMG's background field
14463 when appropriate.
14464 (x_clear_image_1): Reset `background_valid' and
14465 `background_transparent_valid' fields.
14466 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
14467 calculating it here. Set IMG's background_transparent field.
14468 (enum xpm_keyword_index): Add XPM_BACKGROUND.
14469 (enum png_keyword_index): Add PNG_BACKGROUND.
14470 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
14471 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
14472 (enum gif_keyword_index): Add GIF_BACKGROUND.
14473 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 14474 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
14475 Pre-calculate image background color where necessary.
14476 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
14477 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
14478 color to use for image glyph reliefs.
14479
b547b6e8
GM
144802001-10-24 Gerd Moellmann <gerd@gnu.org>
14481
d9e3b8c6
GM
14482 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
14483 in full-width rows.
c2d53558 14484
b547b6e8
GM
14485 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
14486 Fix clearing of area not covered by scroll bar.
14487
f00691a3 144882001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2beb36f9
PJ
14489
14490 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
14491 and `real_start'.
c2d53558 14492 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
14493 (glyph_rect): Remove unused variable `area'.
14494
76cb5e06
GM
144952001-10-24 Gerd Moellmann <gerd@gnu.org>
14496
bdbdebff 14497 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
14498
14499 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
14500 (row_containing_pos): Take additional argument DY.
14501 Treat rows ending in middle of char differently.
62e33982
GM
14502 (display_line): Handle tabs on window systems differently.
14503
14504 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
14505 with additional argument.
14506
14507 * dispextern.h (row_containing_pos): Adjust prototype.
14508
76cb5e06
GM
14509 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
14510 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
14511 (try_window_id, try_window_reusing_current_matrix)
14512 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
6c465a15 14513 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
76cb5e06 14514
f00691a3 145152001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
996fee11 14516
c9e60620
PJ
14517 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
14518 gnuemacs).
14519 (HAVE_BOXES): Fix typo in comment.
14520 (push_menu_pane): Fix typo in comment.
14521
3b552d56
PJ
14522 * xdisp.c: (display_prop_string_p): Remove unused local declaration
14523 of `Qwhen'.
14524 (single_display_prop_string_p): Remove unused local declarations
14525 of `Qwhen' and `Qmargin'.
14526 (string_buffer_position): Remove unused variable `around'.
14527 (store_frame_title): Remove unused variable `width'.
14528
15c565ac
PJ
14529 * window.c: Don't define max.
14530 (coordinates_in_window): Remove unused variable `uy'.
14531
a8818eb9
PJ
14532 * widget.c: Don't define max.
14533
996fee11
PJ
14534 * process.c: Don't define max.
14535 (create_process): Remove unused variable `buffer'.
14536
496e1a5b
GM
145372001-10-23 Gerd Moellmann <gerd@gnu.org>
14538
c2d53558 14539 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 14540
5905ae8b
EZ
145412001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
14542
14543 * xfaces.c (Finternal_set_lisp_face_attribute)
14544 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
14545 frame is on a windowed display.
14546
24db49fb
GM
145472001-10-23 Gerd Moellmann <gerd@gnu.org>
14548
c2d53558
SM
14549 * dispnew.c (sync_window_with_frame_matrix_rows):
14550 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
14551 of marginal areas.
14552
c2d53558 14553 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 14554
f0487f05
EZ
145552001-10-23 Andreas Schwab <schwab@suse.de>
14556
14557 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
14558 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
14559
f0a48a01
GM
145602001-10-23 Gerd Moellmann <gerd@gnu.org>
14561
c2d53558 14562 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
14563 REAL_END. Notice if cursor gets overwritten.
14564 (notice_overwritten_cursor): Take X positions as parameters.
14565 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
14566 around call to x_draw_glyphs.
14567
f00691a3 145682001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a50a10a0 14569
fc11dff0
PJ
14570 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
14571 instead of C) and usage.
a50a10a0 14572
fc11dff0
PJ
14573 * editfns.c (char-to-string): Fix argument names (use CHAR instead
14574 of C) and usage.
a50a10a0
PJ
14575
14576 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
14577 `left', `max_width' and `max_height'.
14578
8738febd
GM
145792001-10-23 Gerd Moellmann <gerd@gnu.org>
14580
14581 * xdisp.c (display_line): For a tab continued to the next line,
14582 set row's ends_in_middle_of_char_p.
14583
653c329b
GM
145842001-10-22 Gerd Moellmann <gerd@gnu.org>
14585
14586 * xdisp.c (display_line): Fix computation of continuation lines
14587 width for TABs.
14588
f00691a3 145892001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f958c5ac 14590
7ba51063
PJ
14591 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
14592 `Qlaplace'.
14593
f958c5ac
PJ
14594 * fileio.c: Remove unused code.
14595
eb360291
MB
145962001-10-22 Miles Bader <miles@gnu.org>
14597
14598 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
14599 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
14600 Remove `DOC_STRINGS_IN_COMMENTS' cases.
14601
98515cf0
JR
146022001-10-21 Jason Rumney <jasonr@gnu.org>
14603
14604 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
14605
93026d88
EZ
146062001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
14607
14608 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
14609 (Finsert_string): Avoid the multi-line string literals warning.
14610
c9a95b79
MB
146112001-10-22 Miles Bader <miles@gnu.org>
14612
14613 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
14614 (Fdocumentation): Don't use it.
14615 (syms_of_doc): Don't initialize it.
14616
14617 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
14618 * print.c (Fwith_output_to_temp_buffer): Likewise.
14619 * window.c (Fsave_window_excursion): Likewise.
c2d53558 14620 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 14621 (Fsave_restriction): Likewise.
c2d53558
SM
14622 * eval.c (Frun_hooks, Frun_hook_with_args)
14623 (Frun_hook_with_args_until_failure)
14624 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
14625 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
14626 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
14627 (Funwind_protect, Fcondition_case): Likewise.
14628 * coding.c (Ffind_operation_coding_system): Likewise.
14629 * keyboard.c (Ftrack_mouse): Likewise.
14630
a3b10252
MB
146312001-10-21 Miles Bader <miles@gnu.org>
14632
c2d53558 14633 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
14634 (Fmake_hash_table): Add usage: string to doc string.
14635 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 14636 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
14637 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
14638 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
14639 (Fml_prefix_argument_loop): Likewise.
14640
f00691a3 146412001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c6f73eec 14642
c2d53558 14643 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 14644
c6f73eec
PJ
14645 * sysdep.c (init_sys_modes): Change doc-string comments to `new
14646 style' [w/`doc:' keyword].
14647
14648 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
14649 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
14650 comments to `new style' [w/`doc:' keyword].
14651
3cf3436e
JR
146522001-10-21 Jason Rumney <jasonr@gnu.org>
14653
14654 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
14655
c169b8f1
JR
14656 * w32term.c (remember_mouse_glyph): New function.
14657 (w32_mouse_position): Use it.
14658 (note_mouse_movement): If the mouse moved off the glyph, remember
14659 its new position.
c2d53558 14660
4fdd691b
JR
14661 * w32term.h (struct w32_output): Correct spelling of x_compatible.
14662 (w32_display_info): Add mouse_face_overlay.
14663
c169b8f1
JR
14664 * w32term.c (notice_overwritten_cursor): Renamed from
14665 note_overwritten_text_cursor. Rewritten to take glyph widths into
14666 account.
14667 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
14668 (fast_find_string_pos): New function.
14669 (fast_find_position): Return the correct vpos. Add parameter
14670 STOP. In the final row, stop before glyphs having STOP as object.
14671 Don't consider glyphs that are not from a buffer.
14672 (fast_find_position) [0]: Add a presumably more correct version
14673 for after 21.1.
14674 (expose_window_tree, expose_frame): Don't compute intersections here.
14675 (expose_window): Do it here instead.
14676 (expose_window_tree, expose_window, expose_line): Return 1 when
14677 overwriting mouse-face.
14678 (expose_window): If W is the window currently being updated, mark
14679 the frame garbaged.
14680 (expose_frame): If mouse-face was overwritten, redo it.
14681 (x_use_underline_position_properties): New variable.
14682 (syms_of_xterm): DEFVAR_BOOL it.
14683 (x_draw_glyph_string): Add comment to use it in future.
14684 (x_draw_glyph_string): Restore clipping after drawing box.
14685 Fix a computation of the underline position.
14686 (w32_get_glyph_string_clip_rect): Minor cleanup.
14687 (x_fill_stretch_glyph_string): Remove an assertion.
14688 (x_produce_glyphs): Don't convert multibyte characters
14689 to unibyte characters in unibyte buffers.
14690 (cursor_in_mouse_face_p): New function.
14691 (x_draw_stretch_glyph_string): Use it to choose a different GC
14692 when drawing a cursor within highlighted text. Don't draw
14693 background again if it has already been drawn.
14694 (x_draw_glyph_string_box): Don't draw a full-width
14695 box just because the glyph row's full_width_p flag is set.
14696 (x_draw_glyphs): Fix computation of rightmost x for
14697 full-width rows.
14698 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
14699 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
f63fd14e 14700 change bottom shadow accordingly. Some cleanup.
c169b8f1
JR
14701 (x_update_window_end): Handle overwritten mouse face
14702 also for tool bar windows.
14703 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
14704 DRAW is DRAW_IMAGE_RAISED.
14705 (clear_mouse_face): Return 1 if text with mouse face was
2c568af5
SM
14706 actually redrawn. Make the function static.
14707 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
c169b8f1
JR
14708 optimize away highlighting if we pass over that same overlay again.
14709 (note_mouse_highlight): Call mouse_face_overlay_overlaps
14710 to detect a case where we have to highlight a different region
14711 despite not having left the currently highlighted region.
14712 Set mouse_face_overlay in the x_display_info. Avoid changing the
14713 mouse pointer shape when show_mouse_face has already done it, or
14714 there is no need. Handle mouse-face and help-echo in strings.
14715 (glyph_rect): New function.
14716 (w32_mouse_position): Use it to raise the threshold for mouse
14717 movement event generation.
14718 (w32_initialize_display_info): Initialize the x_display_info's
14719 mouse_face_overlay.
14720 (w32_set_vertical_scroll_bar): Don't clear a zero height
14721 or width area.
14722 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
14723 a widget to zero height.
14724
3cf3436e 14725 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 14726 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
14727 equivalents in menu_items.
14728 (w32_menu_show): Don't overwrite an item's name with its key
14729 description in case the description is a multibyte string.
14730 (single_submenu): Some cleanup.
14731
14732 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
14733 (postprocess_image): New function.
14734 (lookup_image): Call it for all image types except PostScript.
14735 (x_kill_gs_process): Call postprocess_image.
14736 (tiff_error_handler, tiff_warning_handler): New functions.
14737 (tiff_load): Install them as handlers.
14738 (x_kill_gs_process): Recognize if someone has cleared the image
14739 cache under us.
14740 (valid_image_p): Protect better against invalid image
14741 specifications. Previous code could signal an error.
14742 (Fx_hide_tip, Fshow_tip): Doc fix.
14743 (Fv_max_tooltip_size): New variable.
14744 (syns_of_xfns): DEFVAR_LISP it.
14745 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
f63fd14e 14746 window buffer to *tip* right after creating the frame. Set frame's
3cf3436e
JR
14747 window_width. Use a maximum tooltip size specified by
14748 Vx_max_tooltip_size, if that has valid contents.
14749 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
14750 Make sure the tooltip is completely visible.
14751 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
14752 (Fx_create_frame): Adjust the frame's height for presence
14753 of the tool bar before calling x_figure_window_size.
14754 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
14755 when the window gets smaller.
14756 (x_set_foreground_color): Set frame's cursor_pixel.
14757 (x_set_foreground_color, x_set_background_color): Cleaned up.
14758 (x_set_font): Handle case of x_new_fontset returning the same name
14759 as before, although there was a change in fontsets.
14760
386ca361
MB
147612001-10-21 Miles Bader <miles@gnu.org>
14762
c2d53558 14763 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
14764 (Flogxor): Add usage: string to doc string.
14765 * charset.c (Fstring): Likewise.
14766 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
14767 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
14768
f00691a3 147692001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14ff1ee0 14770
03be2694
PJ
14771 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
14772
14773 * alloc.c: Reindent DEFUNs with doc: keywords.
14774
14775 * abbrev.c (Finsert_abbrev_table_description): Reindent.
14776
14ff1ee0
PJ
14777 * frame.c: Change doc-string comments to `new style' [w/`doc:'
14778 keyword].
14779
2f147815 14780See ChangeLog.9 for earlier changes.
6922b018
KH
14781
14782;; Local Variables:
49b3bd82 14783;; coding: iso-2022-7bit
6922b018 14784;; End:
2a34a036 14785
2f147815 14786 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
2a34a036
GM
14787 Copying and distribution of this file, with or without modification,
14788 are permitted provided the copyright notice and this notice are preserved.
ab5796a9
MB
14789
14790;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4