(window-buffer-height): Call compute-motion with nil width.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
f491e1ed
KS
12004-08-02 Kim F. Storm <storm@cua.dk>
2
3 * process.c (read_process_output): Use whole read buffer.
4 Don't trigger adaptive read buffering on errors.
5
83f64226
LT
62004-07-31 Luc Teirlinck <teirllm@auburn.edu>
7
8 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
9
10 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
11
12 * callint.c (Fcall_interactively): Doc fix.
13
7c111482
KS
142004-07-30 Kim F. Storm <storm@cua.dk>
15
16 * editfns.c (Fformat): Allocate extra (dummy) element in info.
17
ee945d08
LT
182004-07-28 Luc Teirlinck <teirllm@auburn.edu>
19
20 * eval.c (Fdefvar, Fdefconst): Doc fixes.
21
3f911c94
KS
222004-07-27 Kim F. Storm <storm@cua.dk>
23
24 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
25 we have ensured that the glyph fits on the current line (or returned
26 MOVE_LINE_CONTINUED otherwise).
27
f29ff8c7
KS
282004-07-26 Kim F. Storm <storm@cua.dk>
29
30 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
31 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
32 if target position is at end of display line but char is not a newline.
33
81159bb9
RS
342004-07-25 Richard M. Stallman <rms@gnu.org>
35
ab431b61
RS
36 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
37 instead of ON_VERTICAL_BORDER, when on scroll bar.
38 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
39
40 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
41
f29ff8c7 42 * window.c (Fcoordinates_in_window_p):
81159bb9
RS
43 Take account of FRAME_INTERNAL_BORDER_WIDTH.
44
45 * alloc.c (check_cons_list): New function (contents commented out).
46
fc820cc5
LT
472004-07-24 Luc Teirlinck <teirllm@auburn.edu>
48
49 * xfaces.c (Fcolor_supported_p): Doc fix.
50
51 * frame.c (Fselect_frame, Fset_frame_selected_window)
52 (Fframe_visible_p, Fraise_frame): Doc fixes.
53
289978b5
LT
542004-07-24 Richard M. Stallman <rms@gnu.org>
55
7630911d
RS
56 * keyboard.h (not_single_kboard_state): Declared.
57
58 * fileio.c (Fwrite_region): Doc fix.
59
60 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
61
62 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
63 only when a real abbrev is present.
64
289978b5
LT
65 * xfns.c (x_icon_verify): New function.
66 (Fx_create_frame): Use it.
67
63cc10ae
KS
682004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
69
70 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
71
36f826d4
KS
722004-07-21 Kim F. Storm <storm@cua.dk>
73
74 * window.h (struct glyph_matrix): New members nrows_scale_factor
75 and ncols_scale_factor.
76
77 * window.c (make_window): Initialize nrows_scale_factor and
78 ncols_scale_factor members.
79
80 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
81 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
82 (required_matrix_height): Apply nrows_scale_factor.
83 (required_matrix_width): Apply ncols_scale_factor.
84
85 * xdisp.c (display_line): Increment nrows_scale_factor and set
86 fonts_changed_p if past last allocated row.
87 (append_glyph, append_composite_glyph, produce_image_glyph)
88 (append_stretch_glyph): Increment ncols_scale_factor and set
89 fonts_changed_p if current area is full.
90
5fc1c546
JD
912004-07-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
92
93 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
94
cb7516e5
LT
952004-07-19 Luc Teirlinck <teirllm@auburn.edu>
96
97 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
98 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
99 (Fset_window_start, Fscroll_up, Fscroll_down)
100 (Fother_window_for_scrolling, Fscroll_other_window)
101 (Fsave_window_excursion, Fset_window_vscroll)
102 (syms_of_window) <window-size-fixed>: Doc fixes.
103
dda741ec
JR
1042004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp> (tiny change)
105
106 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
107 ENCODE_SYSTEM for filenames.
108
bfcf6608
ST
1092004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
110
111 * mac.c (sys_select): Block input around call to
112 ReceiveNextEvent to prevent breakage. Correctly handle
113 blocking on event queue only by calling ReceiveNextEvent
114 instead of select (since GUI events aren't on an fd).
115 (sys_read): Remove function
116 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
117
e082ac9d
ST
1182004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
119
120 * mac.c (sys_select): Redo sys_select to use alarm-based
cb7516e5 121 polling instead of 1 sec timeouts (like solaris).
e082ac9d 122
cb7516e5 123 * macterm.c (x_make_frame_visible): Comment in polling on
e082ac9d
ST
124 frame creation.
125
126 * keyboard.c: Undef SIGIO on Carbon
127
128 * atimer.c (alarm_signal_handler): Call alarm handlers after
129 scheduling.
130
131 * eval.c (Feval): Remove quit_char test
132
133 * process.c (wait_reading_process_input): Remove clearing
134 stdin for select call on process input.
135
4b9da0fb
LT
1362004-07-18 Luc Teirlinck <teirllm@auburn.edu>
137
1204e81c
LT
138 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
139 capitalization error in docstring.
4b9da0fb 140
26503ad2
JB
1412004-07-17 Juanma Barranquero <lektu@terra.es>
142
143 * keyboard.c (not_single_kboard_state): Do nothing unless
144 MULTI_KBOARD is defined.
145
3751eb00
RS
1462004-07-17 Richard M. Stallman <rms@gnu.org>
147
148 * window.c (coordinates_in_window): Inside the window but outside
149 its box to the L or R, return ON_VERTICAL_BORDER.
150 (window_list_1): Rotate the list to start with WINDOW.
151
152 * print.c (print_preprocess): Test for print_depth at limit
153 before entering in being_printed.
154
155 * keyboard.c (not_single_kboard_state): New function.
156 (stuff_buffered_input): Now no-op only if no SIGTSTP.
157
158 * frame.c (Fdelete_frame): If we're in single_bboard_state on
159 this kboard, and we delete its last frame, go to any_kboard_state.
160
161 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
162
62eb6ca9
JR
1632004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp> (tiny change)
164
165 * w32fns.c (Fx_file_dialog): Encode strings in system coding
166 system before passing them to OS functions for display.
167
0f6af254
DK
1682004-07-15 David Kastrup <dak@gnu.org>
169
f9253326
KS
170 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
171 Apparently fixes an abort condition.
0f6af254 172
386c8f42
LT
1732004-07-14 Luc Teirlinck <teirllm@auburn.edu>
174
175 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
176 instead of a cons.
177
366511da
MB
1782004-07-14 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
179
180 * keyboard.c (echo_dash): Do nothing if there already is a dash
181 at the end of the echo string.
182
f85409d3
KS
1832004-07-12 Kim F. Storm <storm@cua.dk>
184
185 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
186 if GC_MARK_STACK.
187
0ba2e87b
LT
1882004-07-10 Luc Teirlinck <teirllm@auburn.edu>
189
da38045d
LT
190 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
191
0ba2e87b
LT
192 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
193 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
194 (Freplace_buffer_in_windows, Fset_window_buffer)
195 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
196 (syms_of_window): Expand docstring of `display-buffer-function'.
197
5668fbb8
LT
1982004-07-09 Luc Teirlinck <teirllm@auburn.edu>
199
200 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
201 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
202 that time values of the type (HIGH . LOW) are considered obsolete.
203
a085bf9d
LT
2042004-07-06 Luc Teirlinck <teirllm@auburn.edu>
205
669de2fb
LT
206 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
207 docstring.
208
bac66325 209 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
a085bf9d 210
8e975df9
JPW
2112004-07-06 John Paul Wallington <jpw@gnu.org>
212
213 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
214
fa164e6a
JPW
215 * fns.c (Fclear_string): Signal an error if STRING is not a string.
216
2bac9bb1
JD
2172004-07-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
218
219 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
220 instead of CGMainDisplayID (only in OSX 10.2 and later).
221
316ef0dc
JPW
2222004-07-04 John Paul Wallington <jpw@gnu.org>
223
224 * fileio.c (read_file_name_completion_ignore_case): New variable.
225 (syms_of_fileio): Declare and initialise it.
226 (Fread_file_name): Bind `completion-ignore-case' to respect it.
227
2a1a35c6
EZ
2282004-07-03 Eli Zaretskii <eliz@gnu.org>
229
230 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
231 for event.x and event.y.
232
33a72331
KH
2332004-07-01 Kenichi Handa <handa@m17n.org>
234
235 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
236 after getting a new string by pre-write-conversion.
237
07a6ab76
SM
2382004-06-30 Stefan <monnier@iro.umontreal.ca>
239
240 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
241 (x_calc_absolute_position): Remove unused var `child'.
242
243 * xfaces.c (x_supports_face_attributes_p)
244 (Fdisplay_supports_face_attributes_p): YAILOM.
245 (tty_supports_face_attributes_p): Remove unused var `i'.
246
247 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
248 back_unibyte_ok.
249
250 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
251
252 * fontset.c (Fset_fontset_font): Remove unused vars `family' and `registry'.
253
254 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
255
f96ec754
AS
2562004-06-30 Andreas Schwab <schwab@suse.de>
257
258 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
259 (Finit_image_library): Pass LIBRARIES through to
260 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
261 (lookup_image_type): Pass Qnil as second argument to
262 Finit_image_library.
263
264 * lisp.h: Declare Finit_image_library.
265
59feca74 2662004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
c8d09ad8 267
31983645
AS
268 * macterm.c (do_window_activate, do_window_deactivate): Remove.
269 (XTread_socket): Send mouse button events to the toolbox
270 dispatcher even when the mouse is grabbed. Don't process window
271 activate events for non-Emacs windows. Replace function calls to
272 do_window_activate and do_window_deactivate with their contents.
273 Reset mouse grabbing status when a window is deactivated.
59feca74 274
c61278bb
ST
2752004-06-29 Steven Tamm <steventamm@mac.com>
276
277 * macterm.c (mac_get_emulated_btn)
278 (mac_event_to_emacs_modifiers): Fix emulated mouse button
279 support to correctly mask out modifiers.
280
c3762cbd
DK
2812004-06-29 David Kastrup <dak@gnu.org>
282
283 * search.c (Fset_match_data): Allow buffer before end of list
284 which can happen if set-match-data is using a pre-consed list.
285
c61278bb 2862004-06-28 Steven Tamm <steventamm@mac.com>
e439b925
ST
287
288 * macterm.c (XTread_socket): Correctly set the frame position
289 after the window is moved.
290
74cdfe05
JD
2912004-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
292
293 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
294 gpix and gmask just before return to avoid memory leak.
03ecb80f
JD
295 (xg_get_image_for_pixmap): Add workaround for monochrome displays
296 so insensitive and activated icons look ok.
74cdfe05 297
ef544dc8
JR
2982004-06-27 Jason Rumney <jasonr@gnu.org>
299
300 * w32fns.c (file_dialog_callback): Disable edit control if set
301 to directories only on CDN_INITDONE message.
302 (Fx_file_dialog): Default to directories only when prompt starts
303 with "Dired".
304
7b7990cc
KS
3052004-06-25 Kim F. Storm <storm@cua.dk>
306
307 * alloc.c (allocate_misc): Update total_free_markers.
308 (free_misc): New function.
309 (safe_alloca_unwind, free_marker): Use it.
310
311 * lisp.h (free_misc): Add prototype.
312
313 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
314
d8c379f8
RS
3152004-06-24 Richard M. Stallman <rms@gnu.org>
316
317 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
318 (syms_of_emacs): Lisp variables deleted.
319
559cdd07
DK
3202004-06-23 David Kastrup <dak@gnu.org>
321
94939b84
DK
322 * search.c (Freplace_match): Adjust the match-data more thoroughly
323 when replacing strings in the buffer.
324 (Fmatch_data): When INTEGERS is non-nil and the last match was in
325 a buffer, add the buffer as last element to the match data.
326 (Fset_match_data): If an additional element of the match-data is a
327 buffer, restore it to last_thing_searched.
c8d09ad8 328 (save_search_regs): Save last_thing_searched as part of the match data.
559cdd07
DK
329 (restore_match_data): Restore it again.
330
dce417e7
LT
3312004-06-23 Luc Teirlinck <teirllm@auburn.edu>
332
333 * keymap.c (Ftext_char_description): Doc fix.
334 * doc.c (Fsnarf_documentation): Doc fix.
335
ef54b2d0
KS
3362004-06-22 Kim F. Storm <storm@cua.dk>
337
b5bc4d05
KS
338 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
339
ef54b2d0
KS
340 * lisp.h (struct Lisp_Save_Value): New member dogc.
341 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
342 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
343 (SAFE_FREE_LISP): New macro.
344
345 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
346 (make_save_value): Init new dogc member.
347 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
348
349 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
350 SAFE_FREE_LISP macros.
351
3d33d993
KS
3522004-06-22 Kim F. Storm <storm@cua.dk>
353
354 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
355 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
356 in that memory area are unknown to GC. Add comments.
357
358 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
359
5c917f98
KS
3602004-06-21 Kim F. Storm <storm@cua.dk>
361
362 * lisp.h (MAX_ALLOCA): Define here.
363 (safe_alloca_unwind): Add prototype.
364 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
365
366 * alloc.c (safe_alloca_unwind): New function.
367
368 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
369
370 * charset.c (Fstring): Use SAFE_ALLOCA.
371
372 * coding.c (MAX_ALLOCA): Remove define.
373
374 * data.c (MAX_ALLOCA): Remove define.
375 (Faset): Use SAFE_ALLOCA.
376
377 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
378
379 * fns.c (string_make_multibyte, string_to_multibyte)
380 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
381 (MAX_ALLOCA): Remove define.
382 (Fbase64_encode_region, Fbase64_encode_string)
383 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
384 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
385 memory leak if encoding fails.
386
387 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
388
9a09408e
EZ
3892004-06-21 Eli Zaretskii <eliz@gnu.org>
390
391 * print.c (Fwith_output_to_temp_buffer): Doc fix.
392
376de739
RS
3932004-06-20 Richard M. Stallman <rms@gnu.org>
394
395 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
396
397 * search.c (match_limit): Cleaner err msg when no match data available.
398
399 * window.c (syms_of_window): Doc fix.
400
401 * keyboard.c (command_loop_1): Handle values `only' and `identity'
402 for Vtransient_mark_mode.
403
404 * buffer.c (syms_of_buffer): Doc fix.
405
acd81db9
DK
4062004-06-21 David Kastrup <dak@gnu.org>
407
408 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
409 and unbinding of `case-fold-search' according to
410 `completion-ignore-case' around calls of string-match and
411 predicates, respectively. Should give satisfactory performance
412 in all relevant cases.
413
f303762d
JD
4142004-06-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
415
95911c74
JD
416 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
417 clip_x/y_origin.
418
a6cb6b78
JD
419 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
420
f303762d
JD
421 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
422
423 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
424 on Mac OSX.
425
bbdb2684
LT
4262004-06-16 Luc Teirlinck <teirllm@auburn.edu>
427
428 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
429
5ea48b1c
KS
4302004-06-16 Kim F. Storm <storm@cua.dk>
431
432 * dispextern.h (Vimage_types): Remove extern.
433
803aac3e
MB
4342004-06-16 Miles Bader <miles@gnu.org>
435
436 * image.c (lookup_image_type): Initialize image type if necessary.
437
cdc97764
KS
4382004-06-15 Kim F. Storm <storm@cua.dk>
439
c4a5739c
KS
440 * xdisp.c (try_cursor_movement): Exclude header line from scroll
441 margin at top of window.
442 (try_window_reusing_current_matrix): Calculate proper cursor position
443 after scrolling up with non-zero scroll margin, as the old cursor
444 position corresponds to value of PT before executing this command.
445 (try_window_id): Consider scroll margin at bottom of window too;
446 otherwise we fail to scroll when hl-line-mode is enabled.
447
cdc97764
KS
448 * syntax.c (skip_chars): Only recognize [:class:] when it has the
449 proper format and class is a lower-case word.
450
5b166323
JD
4512004-06-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
452
453 * gtkutil.c (xg_get_image_for_pixmap): New function.
c8d09ad8 454 (xg_get_gdk_pixmap_and_mask): Remove.
5b166323
JD
455 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
456 xg_get_gdk_pixmap_and_mask.
cdc97764 457
5b166323
JD
458 * xterm.h (struct x_display_info): Typo in comment fixed.
459
1ebd4f78
JB
4602004-06-14 Juanma Barranquero <lektu@terra.es>
461
462 * dispextern.h (Vimage_types): Make it conditional on
463 HAVE_WINDOW_SYSTEM.
464
465 * image.c (Vimage_types): Move from xdisp.c.
466 (Vimage_type_cache): New variable.
467 (define_image_type): New argument indicating whether an image
468 library was loaded; cache loaded status and return t on success,
469 nil otherwise.
470 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
471 (w32_delayed_load): New function to load an image library from a
472 list of possible filenames.
473 (init_xpm_functions, init_png_functions, init_jpeg_functions)
474 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
c8d09ad8 475 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
1ebd4f78
JB
476 (Finit_image_library): New function, extracted from `init_image'.
477 Try to initialize an image library on demand and cache whether we
478 were successful or not.
479 (syms_of_image): Initialize `Vimage_types' and
480 `Vimage_type_cache'. Add recognized image types to Vimage_types.
481 Export `init-image-library'.
482 (init_image): Remove initialization of all image types, except xbm
483 and pbm.
484
485 * xdisp.c (Vimage_types): Delete (moved to image.c).
486
904ee128
AS
4872004-06-14 Andreas Schwab <schwab@suse.de>
488
489 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
490 Avoid calling specbind when completion-regexp-list is empty.
491
092de21d
RS
4922004-06-13 Richard M. Stallman <rms@gnu.org>
493
494 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
495 (re_wctype, re_iswctype, re_wctype_to_bit):
496 Non-function definitions moved here from regex.c.
1ebd4f78 497
092de21d
RS
498 * regex.c (re_wctype, re_iswctype): Function defs longer static.
499 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
500 (re_wctype, re_iswctype, re_wctype_to_bit):
501 Non-function definitions moved to regex.h.
502
503 * window.c (Fselect_window): Doc fix.
504
505 * syntax.c: Include regex.h.
506 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
507 If requested, make a list of classes, then check the scanned
508 chars for membership in them.
509 (in_classes): New function.
510 Doc fix.
511
512 * keyboard.c (cmd_error): Don't call any_kboard_state
513 if inside a recursive edit level.
514
5152004-06-13 Lorentey K\e,Aa\e(Broly <lorentey@elte.hu>
516
517 * keyboard.c (command_loop): Call any_kboard_state before
518 command_loop_2 when at top level.
519
3ebc0939
AS
5202004-06-13 Andreas Schwab <schwab@suse.de>
521
cea5d0d4
AS
522 * print.c (print_object): Always use %ld for printing EMACS_INT.
523
524 * keyboard.c (cancel_hourglass_unwind): Return a value.
525 (modify_event_symbol): Always use %ld for printing EMACS_INT.
526 (Fexecute_extended_command): Likewise.
527
528 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
529 avoid clashes.
530 (SYNTAX): Likewise.
531 (SYNTAX_WITH_FLAGS): Likewise.
532 (SYNTAX_MATCH): Likewise.
533
534 * syntax.c (char_quoted): Avoid warning about undefined operation.
535 (find_defun_start): Likewise.
536 (scan_lists): Likewise.
537 (INC_FROM): Likewise.
538 (scan_sexps_forward): Likewise.
539
be8c4ce4
AS
540 * image.c: Include <ctype.h>.
541
3ebc0939
AS
542 * xfaces.c (face_attr_equal_p): Declare parameters.
543
6fb41b5b
KH
5442004-06-13 Kenichi Handa <handa@m17n.org>
545
546 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
547
fc3095ce
EZ
5482004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
549
550 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
551
66189a40
KH
5522004-06-12 Kenichi Handa <handa@m17n.org>
553
554 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
555 ccl_prog_stack_struct and update it.
556 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
557 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
558 ccl->eof_ic on EOF.
559 (ccl_debug_hook): New function.
560 (struct ccl_prog_stack): New member eof_ic.
561 (ccl_driver): Handle EOF in subrountine call correctly.
562
5632004-06-11 Kenichi Handa <handa@m17n.org>
564
565 * coding.c (decode_coding_string): Check CODING_FINISH_INTERRUPT.
566
1da71023
KS
5672004-06-11 Kim F. Storm <storm@cua.dk>
568
569 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
570
e9efcef4
JB
5712004-06-11 Juanma Barranquero <lektu@terra.es>
572
573 * keyboard.c (Fposn_at_point): Doc fix.
574
9b9ceb61
DK
5752004-06-11 David Kastrup <dak@gnu.org>
576
577 * search.c (match_limit): Don't flag an error if match-data
578 exceeding the allocated search_regs.num_regs gets requested, just
579 return Qnil.
580
6e87ac8f
MB
5812004-06-08 Miles Bader <miles@gnu.org>
582
583 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
584
0b0dea7b
JB
5852004-06-07 Juanma Barranquero <lektu@terra.es>
586
587 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
588 (Fcurrent_time_string, Fcurrent_time_zone)
589 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
590
a0a23346
MB
5912004-06-07 Miles Bader <miles@gnu.org>
592
08384afd 593 * xfaces.c (struct named_merge_point): New type.
a0a23346
MB
594 (push_named_merge_point): New function.
595 (merge_named_face): New function.
596 (merge_face_ref, face_at_buffer_position, face_at_string_position):
597 Use `merge_named_face'.
598 (merge_face_inheritance): Function removed.
c8d09ad8 599 (merge_face_ref): Rename from `merge_face_vector_with_property'.
a0a23346
MB
600 Add new `err_msgs' and `named_merge_points' args. Return error
601 status. Only print error messages if ERR_MSGS is true. Don't try to
602 do :inherit attribute validation.
603 (merge_face_heights): Handle `unspecified' in both directions.
604 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
605 Call `merge_face_ref' instead of `merge_face_inheritance'.
606 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
607 (compute_char_face, face_at_buffer_position)
608 (face_at_string_position): Call `merge_face_ref' instead of
609 `merge_face_vector_with_property'.
610
12d5b185
KH
6112004-06-07 Kenichi Handa <handa@m17n.org>
612
613 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
614 the necessary places.
615
2e2d7ee6
KS
6162004-06-07 Kim F. Storm <storm@cua.dk>
617
618 * process.c (Fdelete_process): Undo 2004-05-28 change.
619 Instead, call status_notify also for network process.
620 (status_message): Use process instead of status as arg.
621 Give messages "deleted" or "connection broken by remote peer" for
622 an exited network process.
623 (status_notify): Change call to status_message.
624 (read_process_output): Increase readmax to 4096. Do not increase
625 buffer size for datagram channels (default is now large enough).
626
fcf0d299
ST
6272004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
628
629 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
630 problem due to newly defined variable.
631
0722292b
MB
6322004-06-06 Miles Bader <miles@gnu.org>
633
634 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
635 immediately if non-interactive or not initialized.
636
ddfb8369
RS
6372004-06-05 Richard M. Stallman <rms@gnu.org>
638
639 * minibuf.c (Fcompleting_read): Doc fix.
640
57015754
AS
6412004-06-05 Andreas Schwab <schwab@suse.de>
642
643 * macfns.c (x_create_tip_frame): Fix declaration after statement.
644
23715ea6
JB
6452004-06-05 Juanma Barranquero <lektu@terra.es>
646
647 * keymap.c (Fdescribe_vector): Fix docstring.
648 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
649
8e330b22
MB
6502004-06-05 Miles Bader <miles@gnu.org>
651
652 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
653 attributes have different values than the default face.
654
9742a3a6
EZ
6552004-06-04 Eli Zaretskii <eliz@gnu.org>
656
657 * xfaces.c (x_supports_face_attributes_p): Make this function
658 conditional on HAVE_WINDOW_SYSTEM.
c8d09ad8
SM
659 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
660 Don't call x_supports_face_attributes_p if it was not compiled in.
9742a3a6 661
9717e36c
MB
6622004-06-04 Miles Bader <miles@gnu.org>
663
664 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
665 from Ftty_supports_face_attributes_p.
666 (x_supports_face_attributes_p): New function.
667 (Ftty_supports_face_attributes_p): Function deleted.
668 (Fdisplay_supports_face_attributes_p): New function.
669 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
f9711de4 670 (face_attr_equal_p): New function.
9717e36c
MB
671 (lface_equal_p): Use it.
672
52deb19f
JB
6732004-06-03 Juanma Barranquero <lektu@terra.es>
674
675 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
676 (Vw32_color_map): Fix typo in docstring.
677 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
678 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
679 Make argument names match their use in docstring.
680
86d373e6
JB
6812004-06-02 Juanma Barranquero <lektu@terra.es>
682
683 Work around bugs/problems with MinGW builds of graphics libraries
684 called from MSVC builds of Emacs.
685
686 * image.c (lookup_image): Make pointer to img static.
687 (png_read_from_memory): Disable "global" optimization.
688
2fb0ce67
SM
6892004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
690
c8d09ad8
SM
691 * eval.c (Fcondition_case): Fix usage. Simplify.
692
2fb0ce67
SM
693 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
694
50bf7673
ST
6952004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
696
697 * macfns.c: Don't include ccl.h.
698 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
86d373e6
JB
699 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
700 TextUtils.h.
c8d09ad8 701 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
50bf7673
ST
702 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
703 display height/width.
704 (compute_tip_xy, Vx_max_tooltip_size): Declare.
705 (unwind_create_tip_frame, compute_tip_xy): New functions.
706 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
707 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
708 and last_show_tip_args.
2fb0ce67 709
50bf7673
ST
710 * macgui.h [!MAC_OSX]: Include Gestalt.h.
711 (Cursor, No_Cursor): New defines.
c8d09ad8 712 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
50bf7673
ST
713 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
714
715 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
716
717 * macterm.c: Don't include Gestalt.h.
718 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
719 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
720 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
721 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
722 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
723 (construct_mouse_click, XTmouse_position)
724 (x_scroll_bar_report_motion, x_calc_absolute_position)
725 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
726 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
727 (note_mouse_movement): Clear the mouse face and reset the pointer
728 shape when the pointer goes outside the frame without grabbing.
729 (mac_front_window): New function.
730 (mac_window_to_frame): New macro.
731 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
732 (do_window_activate, do_window_deactivate, do_app_resume)
733 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
734 (do_zoom_window, mac_do_receive_drag, XTread_socket)
735 (mac_check_for_quit_char): Use mac_front_window and/or
736 mac_window_to_frame.
737 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
738 scroll-bar click event.
739 (mac_define_frame_cursor): Change the pointer shape.
c8d09ad8 740 (x_free_frame_resources): Reset tip_window to NULL when it is disposed.
50bf7673 741 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
c8d09ad8 742 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
50bf7673
ST
743 (do_window_update): Don't do anything if the updated window is the
744 tooltip window.
745 (do_mouse_moved): Handle mouse movement events here (previously in
746 XTread_socket). Clear the mouse face if
747 dpyinfo->mouse_face_hidden is set.
748 (do_os_event, do_events): Remove (now in XTread_socket).
749 (XTread_socket): Immediately return if interrupt_input_blocked.
c8d09ad8
SM
750 Loop until all the events in the queue are processed.
751 Rearrange codes for mouse grabbing. Add tooltip support. Include the
50bf7673
ST
752 contents of do_os_event and do_events. Remove mouse movement
753 handling (now in do_mouse_moved). Add the case where
754 Vmouse_highlight has an integer value.
755 (NewMacWindow): Remove.
756 (make_mac_frame): Do what NewMacWindow previously did. Don't do
757 excess initializations.
758 (make_mac_terminal_frame): Previous initializations in
759 make_mac_frame are moved here.
c8d09ad8
SM
760 (mac_initialize_display_info):
761 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
50bf7673
ST
762
763 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
764 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
765
08fd1251
RS
7662004-05-29 Richard M. Stallman <rms@gnu.org>
767
768 * lisp.h (truncate_undo_list): Update decl.
769
770 * alloc.c (undo_outer_limit): New variable.
771 (syms_of_alloc): Defvar it.
772 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
773
774 * undo.c (truncate_undo_list): New arg LIMITSIZE.
775
776 * alloc.c (lisp_align_malloc): Check for base == 0
777 regardless of HAVE_POSIX_MEMALIGN.
778 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
779
227ef0ff
SM
7802004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
781
782 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
783 (marker_blocks_pending_free): Remove.
784 (Fgarbage_collect): Sweep after cleaning up undo-lists.
785 Mark the undo lists after claning them up.
786 Don't free block in marker_blocks_pending_free.
787 (mark_buffer): Don't mark undo_list.
788 (gc_sweep): Sweep hash-tables and strings first.
789 Do free marker blocks that are empty.
790
034a6113
SM
7912004-05-28 Jim Blandy <jimb@redhat.com>
792
793 * regex.c (print_partial_compiled_pattern): Add missing 'break'
794 after 'case wordend'. For symbeg and symend, print to stderr,
795 like the other cases.
796
33594a8d
NF
7972004-05-28 Noah Friedman <friedman@splode.com>
798
799 * process.c (Fdelete_process): Do not call remove_process.
800
ce50a847
SM
8012004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
802
803 * alloc.c (struct backtrace): Remove.
804 (Fgarbage_collect): Use the new mark_backtrace.
805
806 * eval.c (mark_backtrace): New function.
807
808 * minibuf.c (run_exit_minibuf_hook): New function.
809 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
810 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
811
1e8dae36
KS
8122004-05-27 Kim F. Storm <storm@cua.dk>
813
814 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
815 over display properties, e.g. images, that replace buffer text.
816
846faa3b
KS
8172004-05-25 Kim F. Storm <storm@cua.dk>
818
819 * alloc.c (marker_blocks_pending_free): New var.
820 (gc_sweep): Store free marker blocks on that list.
821 (Fgarbage_collect): Free them after undo-list cleanup.
822
823 * process.c (wait_reading_process_input): Check connect_wait_mask
824 before actually accepting connection in case it has already been
825 accepted due to recursion.
826
6239a668
KH
8272004-05-23 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu> (tiny change)
828
ce50a847
SM
829 * coding.c (Fset_safe_terminal_coding_system_internal):
830 Set suppress_error in safe_terminal_coding, not terminal_coding.
6239a668 831
71d5a208
RS
8322004-05-22 Richard M. Stallman <rms@gnu.org>
833
834 * alloc.c (Fmake_string): Doc fix.
835
836 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
837 and the alist pairs too.
838
839 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
840
841 * emacs.c (main): Update copyright year.
842
843 * fileio.c (Fread_file_name): Expand DIR if not absolute.
844
845 * insdel.c (del_range_2, replace_range): Don't write an anchor
846 if the gap is empty.
847
848 * xdisp.c (try_scrolling): If scroll-up-aggressively or
849 scroll-down-aggressively is small but positive, put point
850 near the screen edge.
851
f63fd14e
JB
8522004-05-22 Juanma Barranquero <lektu@terra.es>
853
854 * keymap.c (Fdefine_key): Doc fix.
855
4d12067c
KS
8562004-05-22 Kim F. Storm <storm@cua.dk>
857
858 * alloc.c (struct backtrace): Add debug_on_exit member.
859 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
860 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
861 the removed cons cells.
862 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
863 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
864 any cons cells pointing to unallocated stings.
865 Do not lisp_free any marker blocks, as there may still be pointers
866 to them from buffer undo lists at this stage of GC.
867
868 * keyboard.c (struct backtrace): Add debug_on_exit member.
869 (Fcommand_execute): Clear it.
870
931285e2
LT
8712004-05-20 Luc Teirlinck <teirllm@auburn.edu>
872
873 * intervals.c (lookup_char_property): Do not prematurely return nil.
874
669fa600
SM
8752004-05-19 Jim Blandy <jimb@redhat.com>
876
877 Add support for new '\_<' and '\_>' regexp operators, matching the
f63fd14e 878 beginning and end of symbols.
4d12067c 879
669fa600
SM
880 * regex.c (enum syntaxcode): Add Ssymbol.
881 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
882 (re_opcode_t): New opcodes `symbeg' and `symend'.
883 (print_partial_compiled_pattern): Print the new opcodes properly.
884 (regex_compile): Parse the new operators.
ce50a847 885 (analyse_first): Skip sym(beg|end) (they match only the empty string).
669fa600
SM
886 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
887 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
888 (re_match_2_internal): Match symbeg and symend.
889
890 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
891
0d8c2e5c
KS
8922004-05-19 Kim F. Storm <storm@cua.dk>
893
894 * .gdbinit (xsymbol): Fix last change.
895
669fa600
SM
8962004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
897
898 * .gdbinit (xprintstr): New fun.
899 (xstring, xprintsym): Use it.
900
901 * w32proc.c (create_child): Use INTMASK.
902
903 * alloc.c (Fgarbage_collect): Do all the marking before flushing
904 unmarked elements of the undo list.
905
9a6a4c40
DP
9062004-05-18 David Ponce <david@dponce.com>
907
908 * print.c (print): Reset print_depth before to call print_object.
909
f3c4ec74
JR
9102004-05-18 Jason Rumney <jasonr@gnu.org>
911
912 * w32console.c: Prefix RIF functions with w32con_ to avoid
913 namespace clash with functions in term.c and w32term.c.
914
915 * w32menu.c (add_menu_item, w32_menu_display_help)
916 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
917
0d8c2e5c 918 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
f3c4ec74 919
6be49c3a
EZ
9202004-05-18 Eli Zaretskii <eliz@gnu.org>
921
4d0b9a0a
EZ
922 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
923
6be49c3a
EZ
924 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
925 with make_number.
926 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
927 with XINT.
928
0bc90bba
KS
9292004-05-18 Kim F. Storm <storm@cua.dk>
930
89d19988
KS
931 * blockinput.h (INPUT_BLOCKED_P): New macros.
932
933 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
934 (Ftop_level): Unblock input if blocked.
935
0bc90bba
KS
936 * buffer.h (GET_OVERLAYS_AT): New macro.
937 * msdos.c (IT_note_mouse_highlight): Use it.
938 * textprop.c (get_char_property_and_overlay): Use it.
939 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
940 * xfaces.c (face_at_buffer_position): Use it.
941
942 * print.c (print_object): Increase buf size.
943
653bd0f6
JR
9442004-05-17 Jason Rumney <jasonr@gnu.org>
945
946 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
947 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
948 Lisp_Object using i member.
949 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
950 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
951 consistently.
952
953 * w32proc.c (create_child): Use make_number instead of masking pid.
954
955 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
956 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
957 Use EQ to compare Lisp_Objects.
958 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
959
960 * w32term.c (w32_num_mouse_buttons): Rename from
961 Vw32_num_mouse_buttons and make it an int.
962
963 * w32.c (init_environment): Use it.
964
965 * w32fns.c (w32_wnd_proc): Likewise.
966
967 * w32proc.c (w32_pipe_read_delay): Rename from
968 Vw32_pipe_read_delay and make it an int.
969
970 * w32.c (_sys_read_ahead): Use it.
971
972 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
973
974 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
975
976 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
977 (key_event): Don't mix Lisp_Object and int.
978
979 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
980
981 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
982 modifiers in language change event.
983
54b53ba7
KS
9842004-05-17 Kim F. Storm <storm@cua.dk>
985
986 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
987 Such objects may be freed markers which still exist on an undo list.
988
6e86a75d
JB
9892004-05-16 Juanma Barranquero <lektu@terra.es>
990
991 * data.c (Fset_default): Make argument names match their use in
992 docstring.
993
fc80da24
AS
9942004-05-15 Andreas Schwab <schwab@suse.de>
995
996 * emacs.c (gdb_array_mark_flag): Define.
997 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
998
c1380aa6
EZ
9992004-05-15 Eli Zaretskii <eliz@gnu.org>
1000
1001 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
1002 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
1003 defined for the MS-DOS build.
1004
89458937
SM
10052004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
1006
1007 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
1008
08020f9a
KH
10092004-05-14 Kenichi Handa <handa@m17n.org>
1010
1011 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
1012
a433994a
ST
10132004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1014
1015 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
1016 section to frame.c section.
1017 (Fxw_display_color_p, Fx_file_dialog): Declare if
89458937 1018 HAVE_WINDOW_SYSTEM defined.
0d8c2e5c 1019
a433994a 1020 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
0d8c2e5c 1021
a433994a 1022 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
0d8c2e5c 1023
a433994a
ST
1024 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
1025 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
1026 (XTread_socket): Fix int/Lisp_Object mixup.
1027 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
0d8c2e5c 1028
a433994a
ST
1029 * macterm.h (struct frame, struct face, struct image)
1030 (display_x_get_resource, Fx_display_color_p)
89458937
SM
1031 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
1032 Add prototypes.
a433994a 1033
b51a51b9
KS
10342004-05-14 Kim F. Storm <storm@cua.dk>
1035
1036 * process.c (wait_reading_process_input): Make reentrant.
1037 Make Available and Connecting non-static. Save and restore value
1038 of waiting_for_user_input_p.
1039
2bde1dd8
KS
10402004-05-13 Kim F. Storm <storm@cua.dk>
1041
1042 * keyboard.c (mark_kboards): Don't mark x and y members
1043 that are overloaded in selection request events.
1044
a267ab4d
SM
10452004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
1046
1047 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
1048
eb15ce9e
GM
10492004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
1050
1051 * window.c (Fdisplay_buffer, Fsplit_window)
1052 (split-height-threshold): Doc fix.
1053
7fc92635
JB
10542004-05-13 Juanma Barranquero <lektu@terra.es>
1055
1056 * xfaces.c (Ftty_supports_face_attributes_p)
1057 (Finternal_copy_lisp_face): Fix typo in docstring.
1058 (Finternal_get_lisp_face_attribute): Fix docstring.
1059
1ec2a572
JD
10602004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1061
1062 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
1063
ae9292e0
ST
10642004-05-11 Steven Tamm <steventamm@mac.com>
1065
1066 * macfns.c (Fx_create_frame): Default to using tool-bar by
1067 setting tool-bar-lines to 1 in default-frame-alist.
1068
10692004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ea1aaa6f
ST
1070
1071 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
1072 (xpm_get_color_table_v, xpm_make_color_table_h)
1073 (xpm_put_color_table_h, xpm_get_color_table_h)
1074 (xpm_str_to_color_key, xpm_load_image, xpm_load)
1075 (syms_of_image): Support XPM on Carbon Emacs. Does not
a267ab4d 1076 depend on libXpm, but only supports XPM version 3 without extensions.
ea1aaa6f 1077
fe97e8df
ST
10782004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1079
a267ab4d 1080 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
fe97e8df
ST
1081 instead of FRAME_X_P
1082
b47e779e
KS
10832004-05-11 Kim F. Storm <storm@cua.dk>
1084
1085 * process.c (read_process_output): Grow decoding_buf when needed;
1086 this could cause a crash in allocate_string and compact_small_strings.
1087
cdc9b845
EZ
10882004-04-29 Jim Blandy <jimb@redhat.com>
1089
1090 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
1091 against proper opcode.
1092
aa7094ba
JB
10932004-05-10 Juanma Barranquero <lektu@terra.es>
1094
1095 * process.c (Fstart_process): Fix docstring.
1096
1097 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
1098 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
1099 (Fsplit_char, Fchar_charset): Make argument names match their use
1100 in docstring.
1101
e109331a
RS
11022004-05-10 Richard M. Stallman <rms@gnu.org>
1103
1104 * print.c (print_preprocess): Use being_printed, loop_count and
1105 halftail to detect overdeep nesting and cyclic cdr chains.
1106
9a28b921
AS
11072004-05-10 Andreas Schwab <schwab@suse.de>
1108
1109 * lisp.h: Declare Fmake_symbolic_link.
1110
1111 * fileio.c (Frename_file): Remove extra argument in call to
1112 Fmake_symbolic_link.
1113
e2c02c1a
KS
11142004-05-10 Kim F. Storm <storm@cua.dk>
1115
1116 * xdisp.c (calc_line_height_property): Use string position when
1117 object is a string.
1118
cfe9d13e
KH
11192004-05-10 Kenichi Handa <handa@m17n.org>
1120
a57e8159
KH
1121 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
1122 inhibit-modification-hooks to t temporarily before calling
1123 Ferase_buffer.
1124
1125 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
1126 inhibit-modification-hooks to t temporarily before calling
1127 Ferase_buffer.
1128
1129 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
1130 inhibit-modification-hooks to t temporarily before calling
1131 Ferase_buffer.
1132
cfe9d13e
KH
1133 * fns.c (count_combining): Delete it.
1134 (concat): Don't check combining bytes.
1135
ceb96489
JR
11362004-05-09 Jason Rumney <jasonr@gnu.org>
1137
1138 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
1139 (globals_of_w32fns): Set it.
1140
b1c661c7
JB
11412004-05-09 Piet van Oostrum <piet@cs.uu.nl> (tiny change)
1142
1143 * data.c (Fquo): Simplify.
1144
28712a21
JB
11452004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
1146
1147 * data.c (Fquo): If any argument is float, do the computation in
1148 floating point.
1149
0f0af7a8
JB
11502004-05-08 Juanma Barranquero <lektu@terra.es>
1151
88214ef6
JB
1152 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
1153 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
1154 Fix spelling of Emacs on docstring.
1155 (Fset_process_coding_system, Fprocess_coding_system)
1156 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
1157 Make argument names match their use in docstring.
1158 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
1159 Fix docstring.
1160
0f0af7a8
JB
1161 * editfns.c (Finsert_buffer_substring): Make argument names match their
1162 use in docstring.
1163
1164 * syntax.c (Fmodify_syntax_entry): Fix docstring.
1165
2a316a84
ST
11662004-05-07 Steven Tamm <steventamm@mac.com>
1167
1168 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
1169 around call to ReceiveEvent to avoid certain crashes.
1170
11712004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
0d8c2e5c 1172
2a316a84
ST
1173 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
1174 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
1175 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
1176 Save/restore the current graphics port and device handle when
1177 drawing into an offscreen graphics world.
1178
1179 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
1180 (gif_load): Likewise.
1181
ab80314b
JB
11822004-05-07 Juanma Barranquero <lektu@terra.es>
1183
1184 * window.c (Fset_window_buffer): Fix docstring.
1185
70646bb5
TTN
11862004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
1187
1188 * emacs.c (main) [VMS]: Fix var ref.
1189
b03a4fdd
JB
11902004-05-06 Romain Francoise <romain@orebokech.com> (tiny change)
1191
1192 * data.c (Fsetq_default): Fix docstring.
1193
279d3293
JR
11942004-05-06 Jason Rumney <jasonr@gnu.org>
1195
1196 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
1197 to avoid name clash.
1198
f72b5416
JD
11992004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1200
1201 * fileio.c (barf_or_query_if_file_exists): Use lstat.
1202 (Frename_file): Handle renaming of symlinks across file systems.
440c7d00 1203 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
f72b5416 1204
6ab66799
KS
12052004-05-04 Kim F. Storm <storm@cua.dk>
1206
1207 * xdisp.c (Qtotal): New var.
1208 (syms_of_xdisp): Intern and staticpro it.
1209 (calc_line_height_property): New arg total. Set it if
1210 line-spacing property has format (total . VALUE).
1211 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
1212 Handle total line-spacing property.
1213
ab2d724b
JD
12142004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1215
1216 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
1217 "under" scroll bar when size/position changes.
1218
238add5e
JR
12192004-05-03 Jason Rumney <jasonr@gnu.org>
1220
1221 * makefile.nt: Remove.
1222
1644f4e4
EZ
12232004-05-02 Eli Zaretskii <eliz@gnu.org>
1224
a267ab4d
SM
1225 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
1226 Avoid compiler warnings.
05fdbeb8 1227
1644f4e4
EZ
1228 * Makefile.in (region-cache.o): Depend on config.h.
1229
6cbc951e
SM
12302004-05-02 Romain Francoise <romain@orebokech.com> (tiny change)
1231
1232 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
1233 with continuation lines, too.
1234
2b98b088
TTN
12352004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
1236
1237 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
1238
d9bf7950
SM
12392004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
1240
1241 * xdisp.c (calc_line_height_property): YAILOM (yet another
1242 int/Lisp_Object mixup).
1243
affa509c
EZ
12442004-05-01 Eli Zaretskii <eliz@gnu.org>
1245
1246 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
1247 undo bad effect of pack(4) in some versions of system headers.
1248
07c07cfe
JR
12492004-05-01 Jason Rumney <jasonr@gnu.org>
1250
1251 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
1252
e71caa4e
KS
12532004-04-30 Kim F. Storm <storm@cua.dk>
1254
1255 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
b2b55d03 1256 (syms_of_buffer) <cursor-type>: Doc fix.
e71caa4e
KS
1257
1258 * dispextern.h (struct it): Remove member use_default_face.
1259 Add members override_ascent, override_descent, override_boff.
1260
1261 * xdisp.c (init_iterator): Handle line-spacing float value.
1262 Initialize override_ascent member.
1263 (append_space_for_newline): Reset override_ascent.
1264 Remove use_default_face.
1265 (calc_line_height_property): New function to calculate value of
1266 line-height and line-spacing properties. Look at overlays, too.
1267 Set override_ascent, override_descent, override_boff members when
1268 using another face than the current face. Float values are now
1269 relative to the frame default font, by default; accept a cons
1270 of ratio and face name to specify value relative to a specific face.
1271 (x_produce_glyphs): Use calc_line_height_property.
1272 Use override_ascent etc. when set to handle different face heights.
1273 A negative line-spacing property value is interpreted as a total
1274 line height, rather than inter-line spacing.
1275 (note_mouse_highlight): Allocate room for 40 overlays initially.
1276
0fddae66
SM
12772004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
1278
1279 * data.c (Fsubr_name): New fun.
1280 (syms_of_data): Defsubr it.
1281
712d23dc
KS
12822004-04-29 Kim F. Storm <storm@cua.dk>
1283
1284 * xdisp.c (null_glyph_slice): New var.
1285 (append_glyph, append_composite_glyph, append_stretch_glyph):
1286 Use it to initialize glyph slice.
1287
033ad8c6
SM
12882004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
1289
1290 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
1291 (on_hot_spot_p): Make sure we always return a value.
1292 (Flookup_image_map): Remove unused var ix and iy.
1293 (note_mode_line_or_margin_highlight): Remove unused var `image'.
1294
93397360
EZ
12952004-04-27 Eli Zaretskii <eliz@gnu.org>
1296
1297 * msdos.c (init_environment): If one of the TMP... environment
1298 variables is set to a drive letter without a trailing slash,
1299 append a slash.
1300
0c54865e
EZ
13012004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
1302
1303 * editfns.c (lisp_time_argument): Provide externally.
1304
1305 * fileio.c (Fset_file_times): New function.
1306 (syms_of_fileio): Intern and staticpro it.
1307
d3b111bd
KS
13082004-04-27 Kim F. Storm <storm@cua.dk>
1309
07dc1231
KS
1310 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
1311 header line strings.
1312
360fe9d2
KS
1313 * dispextern.h (struct it): New member use_default_face.
1314
d3b111bd
KS
1315 * xdisp.c (Qline_height): New variable.
1316 (syms_of_xdisp): Intern and staticpro it.
1317 (append_space_for_newline): Partially undo 2004-04-25 change;
1318 add default_face_p arg, and restore callers.
1319 Clear it->use_default_face after use.
1320 (x_produce_glyphs): Set default font for ascii char if
1321 it->use_default_font is set. Change line-spacing property to set
1322 just extra line spacing. Handle new line-height property.
1323
0448588b
AS
13242004-04-26 Andreas Schwab <schwab@suse.de>
1325
1326 * print.c (print_object): Print non-ascii characters in bool
1327 vector representation as octal escapes.
1328
1329 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
1330 * print.c (print_object): Use it instead of BITS_PER_CHAR for
1331 bool vectors.
1332 * lread.c (read1): Likewise.
1333 * alloc.c (Fmake_bool_vector): Likewise.
1334 * data.c (Faref, Faset): Likewise.
1335 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
1336 (mapcar1): Likewise.
d3b111bd 1337
536d6baa
ST
13382004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
1339
1340 * lread.c (init_lread): Fixing typo HAVE_CARBON test logic
1341
ae11577a
MB
13422004-04-26 Miles Bader <miles@gnu.org>
1343
1344 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
1345
e198ba87
JB
13462004-04-26 Juanma Barranquero <lektu@terra.es>
1347
1348 * buffer.c (Fpop_to_buffer): Fix docstring.
1349
f3d5f92d 13502004-04-26 Steven Tamm <steventamm@mac.com>
e198ba87 1351
f3d5f92d
ST
1352 * lread.c (init_lread): Don't display missing lisp directory
1353 warnings with Carbon Emacs because self-contained bundled Emacs
e198ba87 1354 may be built without correct installation path.
f3d5f92d 1355
03e35edc
KS
13562004-04-25 Kim F. Storm <storm@cua.dk>
1357
9ff3aa31
KS
1358 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
1359
1360 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
1361
03e35edc
KS
1362 * xdisp.c (append_space_for_newline): Rename from append_space.
1363 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
1364 (x_produce_glyphs): Handle line-spacing property on newline char.
1365 If value is t, adjust ascent and descent to fit current row height.
1366 If value is an integer or float, set extra_line_spacing to integer
1367 value, or to float value x current line height.
1368
f24814e0
KH
13692004-04-23 Kenichi Handa <handa@m17n.org>
1370
1371 * fontset.c (Finternal_char_font): If POSITION is nil, return
1372 font for displaying CH with the default face.
1373
d814862a
JB
13742004-04-23 Juanma Barranquero <lektu@terra.es>
1375
1376 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
1377
063a45c5
SM
13782004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
1379
1380 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
1381 Don't make assumptions about the relative place of i and val.
1382 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
1383
ae7ab2d3
KS
13842004-04-21 Kim F. Storm <storm@cua.dk>
1385
1386 * dispextern.h (struct glyph_slice): New struct.
1387 (struct glyph): New member slice.
1388 (GLYPH_SLICE_EQUAL_P): New macro.
1389 (GLYPH_EQUAL_P): Use it.
1390 (struct glyph_string): New member slice.
1391 (struct it_slice): New struct.
1392 (struct it): New member slice, add member to stack too.
1393 New member constrain_row_ascent_descent_p.
1394 (image_ascent): Add prototype.
1395
1396 * dispnew.c (buffer_posn_from_coords): Return full image width
1397 and height even for image slices (posn is relative to full image).
1398 (marginal_area_string): Adjust x0,y0 for image slice.
1399
1400 * image.c (image_ascent): Add slice arg; calculate ascent for
1401 image slice (or full image).
1402
1403 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
1404 (syms_of_keyboard): Defsubr them.
1405
1406 * lisp.h (pos_visible_p): Fix prototype.
1407
c62aec78 1408 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
ae7ab2d3
KS
1409 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
1410 (x_draw_image_foreground, x_draw_image_relief)
1411 (x_draw_image_foreground_1, x_draw_image_glyph_string):
1412 Draw sliced images.
1413
1414 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
1415 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
1416 (x_draw_image_foreground, x_draw_image_relief)
1417 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
1418 Draw sliced images.
1419
1420 * w32term.h (image_ascent): Remove prototype.
1421
1422 * window.c (Fpos_visible_in_window_p): Return pixel position if
1423 PARTIALLY arg is non-nil. Simplify. Doc fix.
1424 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
1425 to return/set vscroll in pixels.
1426
1427 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
1428
1429 * xdisp.c (Qslice): New variable.
1430 (syms_of_xdisp): Intern and staticpro it.
1431 (pos_visible_p): Return pixel position in new x and y args.
1432 (init_iterator): Reset it->slice info.
1433 (handle_display_prop): Parse (slice ...) property.
1434 (push_it, pop_it): Save/restore slice info.
1435 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
1436 force repositioning of tall row if window is vscrolled, as that
1437 would reset vscroll.
1438 (append_space): Set it->constrain_row_ascent_descent_p to avoid
1439 increasing row height if row is non-empty.
1440 (fill_image_glyph_string): Copy slice info.
1441 (take_vertical_position_into_account): Simplify.
1442 (produce_image_glyph): Handle iterator slice info, setup glyph
1443 slice info. Do not force minimum line height.
1444 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
1445 do not increase height (ascent/descent) of non-empty row when
1446 adding normal character glyph; instead reduce glyph ascent/descent
1447 appropriately; if row is higher than current glyph, adjust glyph
1448 descent/ascent to reposition glyph within the existing row.
1449 Likewise, when char is newline, only set ascent/descent if row is
1450 currently empty.
1451 (note_mouse_highlight): Handle hotspots with sliced image.
1452
1453 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
1454 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
1455 (x_draw_image_foreground, x_draw_image_relief)
1456 (x_draw_image_foreground_1, x_draw_image_glyph_string):
1457 Draw sliced images.
1458
1459 * xterm.h (image_ascent): Remove prototype.
1460
d58f8753
SM
14612004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
1462
1463 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
1464
4ce2719d
JPW
14652004-04-20 John Paul Wallington <jpw@gnu.org>
1466
1467 * fns.c (Fassoc, Feql): Fix indentation.
1468
d58f8753 1469 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
4ce2719d 1470
95f8c3b9
JPW
14712004-04-19 John Paul Wallington <jpw@gnu.org>
1472
1473 * fns.c (Feql): New function.
d58f8753 1474 (syms_of_fns): Defsubr it.
95f8c3b9 1475
b7e85537
JR
14762004-04-18 Jason Rumney <jasonr@gnu.org>
1477
1478 * w32select.c (Fw32_set_clipboard_data): Get sequence number
1479 after closing the clipboard.
1480
5a72efd4
LT
14812004-04-16 Luc Teirlinck <teirllm@auburn.edu>
1482
1483 * buffer.c (Fbuffer_base_buffer): Doc fix.
1484
20dc8583
KS
14852004-04-17 Kim F. Storm <storm@cua.dk>
1486
60962ec4
KS
1487 * keymap.c (Fkey_description): Add optional PREFIX arg.
1488 Combine prefix with KEYS to make up the full key sequence to describe.
1489 Correlate meta_prefix_char and following (simple) key to describe
1490 as meta modifier. All callers changed.
1491 (describe_map): Rename arg `keys' to `prefix'. Remove local
1492 `elt_prefix' var. Use Fkey_description with prefix instead of
1493 elt_prefix combined with Fsingle_key_description.
1494 (describe_vector): Declare static. Replace arg `elt_prefix' with
1495 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
1496 if !KEYMAP_P. Use Fkey_description with prefix instead of
1497 Fsingle_key_description.
1498
1499 * keymap.h (Fkey_description): Fix prototype.
1500 (describe_vector): Remove prototype.
1501
409368b9
KS
1502 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
1503
20dc8583
KS
1504 * image.c (PNG_BG_COLOR_SHIFT): Remove.
1505 (png_load): Fix calculation of transparent background color on X
1506 and W32 platforms.
1507
75c5501b
JB
15082004-04-16 Juanma Barranquero <lektu@terra.es>
1509
1510 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
1511 not too large before computing how much to scroll.
1512
da879ae8
SM
15132004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
1514
1515 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
1516
d01ca4a8
LT
15172004-04-14 Luc Teirlinck <teirllm@auburn.edu>
1518
1519 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
1520 Add hyperlink to Elisp manual to the docstring.
1521
572943b3
SM
15222004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
1523
1524 * callint.c (fix_command): Use XDCR.
1525
5e30a0fb
NR
15262004-04-14 Nick Roberts <nick@nick.uklinux.net>
1527
1528 * window.c (Fget_lru_window): Doc fix.
1529
a27ddfaf
KS
15302004-04-14 Kim F. Storm <storm@cua.dk>
1531
1532 * editfns.c (Fformat): Fix allocation size of precision array.
1533
1534 * dispnew.c (update_window): Only set changed_p if
1535 scrolling_window actually did scroll.
1536 (scrolling_window): Only return 1 if we actually did scroll.
1537
1538 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
1539 height to glyph height when cursor row is not fully visible.
1540 (make_cursor_line_fully_visible): Add FORCE_P arg to return
1541 failure in case row is higher than window. Callers changed.
1542 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
1543 Try to scroll partially visible, higher-than-window cursor row.
1544 (redisplay_window): Always try to scroll partially visible,
1545 higher-than-window cursor row - both initially and again with
1546 centering_position = 0.
1547 Clear desired matrix before retrying with centering_position = 0.
1548
da879ae8
SM
15492004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
1550
1551 * syntax.c (scan_lists): Simplify backward string scan.
1552 Fix off-by-one boundary check for string and comment fences.
1553
5fc16e8e
SM
15542004-04-13 Joe Buehler <jbuehler@hekimian.com>
1555
1556 * sheap.c, unexcw.c: New files.
1557
c9aac8e6
LT
15582004-04-12 Luc Teirlinck <teirllm@auburn.edu>
1559
1560 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
1561 base buffer has been killed. Correct the error message if the
1562 base buffer does not exist.
1563
1e88a355
SM
15642004-04-12 Joe Buehler <jbuehler@hekimian.com>
1565
1566 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
1567 Cygwin itself. Add support for Xaw3d scrollbars.
1568
1569 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
1570
1571 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
1572
1573 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
1574 before Cygwin unexec.
1575
1576 * Makefile.in: Link changes for Cygwin unexec() support.
1577
8dbff9a0
AS
15782004-04-12 Andreas Schwab <schwab@suse.de>
1579
1580 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
1581
54dffe35
LT
15822004-04-11 Luc Teirlinck <teirllm@auburn.edu>
1583
1584 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
1585 IGNORE argument equals NAME. Doc fix.
1586
99a72bdf
MY
15872004-04-11 Masatake YAMATO <jet@gyve.org>
1588
1e88a355 1589 * buffer.c (fix_start_end_in_overlays): Make overlays
99a72bdf
MY
1590 empty if they are backwards.
1591
40899d7b
SM
15922004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
1593
1594 * xfaces.c (face_color_supported_p): Fix compilation without X11.
1595
f8f853de
SM
15962004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
1597
1598 * doc.c (Fsnarf_documentation): Ignore new file name entries.
1599
c953fe1b
KS
16002004-04-06 Kim F. Storm <storm@cua.dk>
1601
661e85c1
KS
1602 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
1603 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
1604
1605 * w32term.c (w32_read_socket): Set mouse_face_hidden after
1606 clearing highlight.
1607
1608 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
1609
1610 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
1611 clearing highlight.
1612
c953fe1b
KS
1613 * indent.c (vmotion): Do not reserve one column for continuation
1614 marks on window frames.
1615
c1994268
EZ
16162004-04-04 Eli Zaretskii <eliz@gnu.org>
1617
1618 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
1619 from GCC.
1620
9f691b0d
SM
16212004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
1622
1623 * .gdbinit-union: Remove.
1624
1625 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
1626 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
1627 ($nonvalbits): Remove.
1628 ($valmask): Set it by calling xreload to avoid redundancy.
1629
1630 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
1631 (gdb_emacs_intbits): Remove.
1632
7a8560d7
JD
16332004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1634
9f691b0d 1635 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
7a8560d7 1636
3c8111fc
KH
16372004-03-30 Kenichi Handa <handa@m17n.org>
1638
1639 * editfns.c (Fformat): Fix initialization of the array info.
1640
48a0bce4
KS
16412004-03-30 Kim F. Storm <storm@cua.dk>
1642
1643 * xterm.c (x_mouse_click_focus_ignore_position): New var.
1644 (syms_of_xterm): DEFVAR_BOOL it.
1645 (ignore_next_mouse_click_timeout): New var.
1646 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
1647 Use it to filter mouse clicks following focus event.
1648
1cd0066c
KS
16492004-03-29 David Ponce <david@dponce.com>
1650
1651 * callint.c (Fcall_interactively): Fix last change.
1652
adb3b353
SM
16532004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
1654
1655 * eval.c (Fcommandp): Simplify.
1656
1657 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
1658 Extend to handle all kinds of functions.
1659
1660 * lisp.h (Finteractive_form): Declare.
1661
1662 * callint.c (Fcall_interactively): Use it.
1663
6fc4c9c9
KS
16642004-03-26 Kim F. Storm <storm@cua.dk>
1665
1666 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
1667 to catch errors in calc_pixel_width_or_height during redisplay.
1668
abdb9b83
MY
16692004-03-26 Masatake YAMATO <jet@gyve.org>
1670
b17856dd 1671 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
abdb9b83 1672
b17856dd 1673 * lisp.h (fix_start_end_in_overlays): Likewise.
abdb9b83 1674
b17856dd 1675 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
abdb9b83 1676
b17856dd 1677 * editfns.c (Ftranspose_regions): Likewise.
abdb9b83 1678
e8a84b6c
JD
16792004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1680
b17856dd 1681 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
e8a84b6c 1682
36a3fd05
RS
16832004-03-19 Richard M. Stallman <rms@gnu.org>
1684
1685 * s/sol2-6.h: Delete previous change.
1686
ab24c127
KS
16872004-03-19 Kim F. Storm <storm@cua.dk>
1688
1689 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
1690 to_charpos corresponds to newline in right fringe. Use local
1691 BUFFER_POS_REACHED_P macro.
1692
992126de
JD
16932004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1694
1695 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
1696 to compile on non-window system.
1697
45dbfc84
KS
16982004-03-19 Kim F. Storm <storm@cua.dk>
1699
1700 * dispextern.h (calc_pixel_width_or_height): Add prototype.
1701
1702 * image.c (Qcenter): Move to xdisp.c.
1703
1704 * xdisp.c (Qcenter): Declare here.
adb3b353 1705 (syms_of_xdisp): Intern and staticpro it.
45dbfc84
KS
1706 (handle_single_display_prop): Allow space display property on all
1707 platforms.
1708 (display_mode_line): Set mode_line_p before displaying line.
1709 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
1710 handling. Remove complex cases for fringes and scroll-bars.
1711 Add left, right, and center alignment positions. Add text (area)
1712 width/height. Return width or height for image specs.
1713 (produce_stretch_glyph): Improve handling of :align-to. Is now
1714 relative to left of text area by default, but other base offsets
1715 can be specified -- also for text lines.
1716
1717 * term.c (produce_glyphs): Handle IT_STRETCH.
1718 (produce_stretch_glyph): New function to handle space width and
1719 align-to display properties on non-window systems.
1720
37264101
SM
17212004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
1722
1723 * fileio.c (Fread_file_name): Set completion-ignore-case for
1724 case-insensitive systems.
1725
73bc43da
MY
17262004-03-14 Masatake YAMATO <jet@gyve.org>
1727
1728 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
1729 when keymap and cursor are setup.
1730
9062aa89
ST
17312004-03-14 Steven Tamm <steventamm@mac.com>
1732
b17856dd 1733 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
9062aa89 1734
e4b1b5ab
KS
17352004-03-14 Kim F. Storm <storm@cua.dk>
1736
1737 * dispextern.h (x_find_image_file): Add prototype.
1738
1739 * image.c (x_find_image_file): Make extern.
1740
1741 * xfns.c (x_find_image_file): Remove prototype.
1742
a6eeaa81 17432004-03-13 Eli Zaretskii <eliz@gnu.org>
5109b06a 1744
37264101 1745 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
5109b06a 1746
37264101 1747 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
5109b06a 1748
e69cfac2
RS
17492004-03-12 Richard M. Stallman <rms@gnu.org>
1750
1751 * fns.c (internal_equal): New arg PROPS controls comparing
1752 text properties. All callers changed.
1753 (Fequal_including_properties): New function.
1754 (syms_of_fns): defsubr it.
1755
45034953
KS
17562004-03-12 Kim F. Storm <storm@cua.dk>
1757
1758 Fix image support on MAC. From YAMAMOTO Mitsuharu.
37264101 1759
45034953
KS
1760 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
1761 (image_background, image_background_transparent): Fix prototypes.
1762
37264101 1763 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
45034953
KS
1764
1765 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
1766 (x_query_font, x_find_ccl_program, x_set_window_size)
1767 (x_make_frame_visible, mac_initialize, XCreatePixmap)
1768 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
1769 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
1770
1771 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
1772 (x_query_font, x_find_ccl_program, x_set_window_size)
1773 (x_make_frame_visible, mac_initialize, XCreatePixmap)
1774 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
1775 (mac_draw_line_to_pixmap): Add prototypes.
1776
17772004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1778
1779 * macterm.c (XTread_socket): Fix mouse click on tool bar.
1780
a12d3d87
KS
17812004-03-11 Kim F. Storm <storm@cua.dk>
1782
d3ab1cf1
KS
1783 * dispextern.h: Move image related prototypes from xfns.c section
1784 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
1785 HAVE_X_WINDOWS.
37264101 1786
37de9f51 1787 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
37264101 1788 Move gtkutil.o to new GTK_OBJ list.
a12d3d87
KS
1789 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
1790 (GTK_OBJ) [USE_GTK]: New declaration.
1791 (obj): Add $(GTK_OBJ) to list.
1792
5243c06a 17932004-03-11 Steven Tamm <steventamm@mac.com>
5109b06a 1794
5243c06a
ST
1795 * image.c [MAC_OSX]: Include sys/stat.h
1796
1797 * macfns.c (syms_of_macfns): Remove definitions of things now
1798 defined in image.c
1799
c0f97789
KS
18002004-03-11 Kim F. Storm <storm@cua.dk>
1801
1802 The following changes consolidates the identical/similar image
1803 support code previously found in xfns.c, w32fns.c, and macfns.c
1804 into a new file image.c.
1805
1806 * makefile.w32-in (OBJ1): Add image.o.
1807 ($(BLD)/image.$(O)): Add dependencies.
1808
1809 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
1810 (image.o): Add dependencies.
37264101 1811
c0f97789
KS
1812 * image.c: New file with consolidated image support code.
1813 (COLOR_TABLE_SUPPORT): New define to control whether
1814 color table support is available (X only).
1815 (Bitmap_Record): Common name for x_bitmap_record,
1816 w32_bitmap_record, and mac_bitmap_record.
1817 (XImagePtr): Common name for pointer to XImage or equivalent.
1818 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
1819 to XImagePtr on X+MAC, and to HDC on W32.
1820 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
1821 (NO_PIXMAP): Common name for "None" or equivalent.
1822 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
1823 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
1824 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
37264101
SM
1825 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
1826 Define with suitable equivalents on W32 and MAC for code sharing.
c0f97789
KS
1827 (XDrawLine): Define on MAC for code sharing.
1828 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
1829 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
1830 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
1831 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
1832 (x_reference_bitmap, x_create_bitmap_from_data)
1833 (x_create_bitmap_from_file, x_destroy_bitmap)
1834 (x_destroy_all_bitmaps, x_create_bitmap_mask)
1835 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
1836 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
1837 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
1838 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
1839 (define_image_type, lookup_image_type, valid_image_p)
1840 (image_error, enum image_value_type, struct image_keyword)
1841 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
1842 (make_image, free_image, prepare_image_for_display, image_ascent)
1843 (four_corners_best, image_background, image_background_transparent)
1844 (x_clear_image_1, x_clear_image, x_alloc_image_color)
1845 (make_image_cache, free_image_cache, clear_image_cache)
1846 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
1847 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
1848 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
1849 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
1850 (init_image_func_pointer, image_load_quartz2d)
1851 (struct ct_color, init_color_table, free_color_table)
1852 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
1853 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
1854 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
1855 (x_disable_image, x_build_heuristic_mask)
1856 (XBM support, XPM support, PBM support, PNG support, JPEG support)
1857 (TIFF support, GIF support, Ghostscript support): Consolidate image
1858 code from xfns.c, w32fns.c, and macfns.c.
1859 (syms_of_image): Consolidate image related symbol setup here.
1860 (init_image): Consolidate image related initializations here.
37264101 1861
c0f97789
KS
1862 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
1863 and init_image. Remove call to init_xfns.
1864
37264101
SM
1865 * macterm.h (struct mac_bitmap_record): Add file member.
1866 Not currently used, but simplifies code sharing.
c0f97789
KS
1867
1868 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
1869 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
1870 (x_reference_bitmap, x_create_bitmap_from_data)
1871 (x_create_bitmap_from_file, x_destroy_bitmap)
1872 (x_destroy_all_bitmaps, x_create_bitmap_mask)
1873 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
1874 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
1875 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
1876 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
1877 (define_image_type, lookup_image_type, valid_image_p)
1878 (image_error, enum image_value_type, struct image_keyword)
1879 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
1880 (make_image, free_image, prepare_image_for_display, image_ascent)
1881 (four_corners_best, image_background, image_background_transparent)
1882 (x_clear_image_1, x_clear_image, x_alloc_image_color)
1883 (make_image_cache, free_image_cache, clear_image_cache)
1884 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
1885 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
1886 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
1887 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
1888 (init_image_func_pointer, image_load_quartz2d)
1889 (struct ct_color, init_color_table, free_color_table)
1890 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
1891 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
1892 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
1893 (x_disable_image, x_build_heuristic_mask)
1894 (XBM support, XPM support, PBM support, PNG support, JPEG support)
1895 (TIFF support, GIF support, Ghostscript support): Merge with image
1896 code from xfns.c and macfns.c into image.c.
1897 (syms_of_xfns): Move image related symbols to image.c.
1898 (init_external_image_libraries, init_xfns): Remove; initialization
1899 moved to init_image in image.c.
1900
1901 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
1902 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
1903 (x_reference_bitmap, x_create_bitmap_from_data)
1904 (x_create_bitmap_from_file, x_destroy_bitmap)
1905 (x_destroy_all_bitmaps, x_create_bitmap_mask)
1906 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
1907 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
1908 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
1909 (define_image_type, lookup_image_type, valid_image_p)
1910 (image_error, enum image_value_type, struct image_keyword)
1911 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
1912 (make_image, free_image, prepare_image_for_display, image_ascent)
1913 (four_corners_best, image_background, image_background_transparent)
1914 (x_clear_image_1, x_clear_image, x_alloc_image_color)
1915 (make_image_cache, free_image_cache, clear_image_cache)
1916 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
1917 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
1918 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
1919 (struct ct_color, init_color_table, free_color_table)
1920 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
1921 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
1922 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
1923 (x_disable_image, x_build_heuristic_mask)
1924 (XBM support, XPM support, PBM support, PNG support, JPEG support)
1925 (TIFF support, GIF support, Ghostscript support): Merge with image
1926 code from xfns.c and macfns.c into image.c.
1927 (syms_of_xfns): Move image related symbols to image.c.
1928 (init_external_image_libraries, init_xfns): Remove; initialization
1929 moved to init_image in image.c.
1930
1931 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
1932 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
1933 (x_reference_bitmap, x_create_bitmap_from_data)
1934 (x_create_bitmap_from_file, x_destroy_bitmap)
1935 (x_destroy_all_bitmaps, x_create_bitmap_mask)
1936 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
1937 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
1938 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
1939 (define_image_type, lookup_image_type, valid_image_p)
1940 (image_error, enum image_value_type, struct image_keyword)
1941 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
1942 (make_image, free_image, prepare_image_for_display, image_ascent)
1943 (four_corners_best, image_background, image_background_transparent)
1944 (x_clear_image_1, x_clear_image, x_alloc_image_color)
1945 (make_image_cache, free_image_cache, clear_image_cache)
1946 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
1947 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
1948 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
1949 (struct ct_color, init_color_table, free_color_table)
1950 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
1951 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
1952 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
1953 (x_disable_image, x_build_heuristic_mask)
1954 (XBM support, XPM support, PBM support, PNG support, JPEG support)
1955 (TIFF support, GIF support, Ghostscript support): Merge with
1956 w32fns.c and macfns.c image code into image.c.
1957 (syms_of_xfns): Move image related symbols to image.c.
1958 (init_xfns): Remove; initialization moved to init_image in image.c.
1959
1960 * lisp.h (syms_of_image, init_image): Add protoypes.
1961 (init_xfns): Remove prototype.
1962
1963 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
1964 (x_reference_bitmap, x_create_bitmap_from_data)
1965 (x_create_bitmap_from_file, x_destroy_bitmap)
1966 (x_create_bitmap_mask): Move prototypes from dispextern.h.
1967 (gamma_correct) [MAC_OS]: Add prototype.
1968
1969 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
1970 (x_reference_bitmap, x_create_bitmap_from_data)
1971 (x_create_bitmap_from_file, x_destroy_bitmap)
1972 (x_create_bitmap_mask): Move prototypes to dispextern.h.
1973
6eced09c
KH
19742004-03-09 Kenichi Handa <handa@etlken2>
1975
1976 * coding.c (decode_coding_emacs_mule): Handle insufficent source
1977 correctly.
1978
9a7e95f3
RS
19792004-03-04 Richard M. Stallman <rms@gnu.org>
1980
04a6e76b
RS
1981 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
1982
9a7e95f3
RS
1983 * window.c (Fdisplay_buffer): Doc fix.
1984
1985 * buffer.c (Fpop_to_buffer): Doc fix.
1986
6c2488df
KS
19872004-03-03 Kim F. Storm <storm@cua.dk>
1988
1989 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
1990
d8d95bc7
SM
19912004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
1992
1993 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
1994
357589bf
RS
19952004-03-02 Richard M. Stallman <rms@gnu.org>
1996
1997 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
1998
409949b5
KH
19992004-03-02 Kenichi Handa <handa@m17n.org>
2000
2001 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
2002
d24bc50f
KS
20032004-03-02 Kim F. Storm <storm@cua.dk>
2004
2005 * window.h (struct window): New member overlay_arrow_bitmap.
2006
2007 * window.c (make_window): Initialize overlay_arrow_bitmap.
2008
2009 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
2010 implement and integrate multiple overlay arrows with redisplay.
2011 (syms_of_xdisp): DEFVAR_LISP and initialize it.
2012 (last_arrow_position, last_arrow_string): Replace by properties.
2013 (Qlast_arrow_position, Qlast_arrow_string)
2014 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
2015 (syms_of_xdisp): Intern and staticpro them.
2016 (overlay_arrow_string_or_property, update_overlay_arrows)
2017 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
2018 (overlay_arrow_at_row): New functions for multiple overlay arrows.
2019 (redisplay_internal): Use them instead of directly accessing
2020 Voverlay_arrow_position etc. for multiple overlay arrows.
2021 (mark_window_display_accurate): Use update_overlay_arrows.
2022 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
2023 (try_window_id): Use overlay_arrows_changed_p.
2024 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
2025 (display_line): Use overlay_arrow_at_row to check multiple
2026 overlay arrows, and get relevant overlay-arrow-string and
d8d95bc7 2027 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
d24bc50f
KS
2028 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
2029 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
2030
2031 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
2032 (update_window_fringes): Remove unused code.
2033
c1464661
JR
20342004-03-01 Jason Rumney <jasonr@gnu.org>
2035
2036 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
2037
a64387ee
JB
20382004-03-01 Juanma Barranquero <lektu@terra.es>
2039
2040 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
2041
2042 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
2043
334faa08
JD
20442004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2045
2046 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
2047 how many colors can be displayed.
2048
bb62616f
KH
20492004-03-01 Kenichi Handa <handa@m17n.org>
2050
2051 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
2052 correctly.
2053
0fd16104
KS
20542004-02-28 Kim F. Storm <storm@cua.dk>
2055
2056 * dispnew.c (update_window): Update header line also if there are
2057 no other changes in window (move code after set_cursor label).
2058
2059 * lisp.h (mark_window_display_accurate): Remove prototype.
2060
2061 * window.c (window_loop, Fforce_window_update): Force mode line
2062 updates by setting prevent_redisplay_optimizations_p and
2063 update_mode_lines.
2064
b59dd9c8
JD
20652004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2066
d8d95bc7 2067 * xfns.c (x_window): Fix indentation.
b59dd9c8
JD
2068
2069 * xterm.c (x_calc_absolute_position): Call x_real_positions
2070 to get WM window sizes and use those to calculate position.
d8d95bc7 2071 (x_set_offset): Remove code commented out.
b59dd9c8 2072
a874691c
MB
20732004-02-28 Miles Bader <miles@gnu.org>
2074
2075 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
2076
3e0c6482
KS
20772004-02-28 Kim F. Storm <storm@cua.dk>
2078
2079 * keyboard.c (kbd_buffer_store_event_hold): New function to store
2080 an event into kbd fifo, but with special handling of quit event;
2081 a quit event is saved for later, and further events are discarded
2082 until the saved quit event has been processed.
2083 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
2084 (gen_help_event): Store help event in kbd fifo.
2085 (NREAD_INPUT_EVENTS): Remove.
2086 (read_avail_input): Adapt to new read_socket_hook interface.
2087 Remove allocation and initialization of local input_event buffer,
2088 as read_socket_hook stores events directly in fifo. Allocate and
2089 initialize local hold_quit event to handle postponed quit event
2090 (and store it if set by kbd_buffer_store_event_hold).
2091
2092 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
2093 (gen_help_event): Fix prototype.
2094
a64387ee 2095 * macterm.c (XTread_socket): Remove bufp_r and
3e0c6482 2096 numcharsp args. Add hold_quit arg.
f63fd14e 2097 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
2098 directly in fifo using kbd_buffer_store_event_hold.
2099
2100 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
2101 (read_input_waiting): Adapt to new read_socket_hook interface.
2102 Remove allocation and initialization of local input_event buffer,
2103 as read_socket_hook stores events directly in fifo. Allocate and
2104 initialize local hold_quit event to handle postponed quit event
2105 (and store it if set by kbd_buffer_store_event_hold).
2106
a64387ee 2107 * term.c (read_socket_hook): Fix arg list.
3e0c6482
KS
2108
2109 * termhooks.h (read_socket_hook): Fix prototype.
2110
2111 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
2112 numcharsp args. Add hold_quit arg.
f63fd14e 2113 Rework to use just one, local, inev input_event. Store inev
3e0c6482
KS
2114 directly in fifo using kbd_buffer_store_event_hold.
2115
2116 * w32inevt.h (w32_console_mouse_position): Fix prototype.
2117
2118 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
f63fd14e
JB
2119 Add hold_quit arg. Rework to use just one, local, inev
2120 input_event. Store inev directly in fifo using
3e0c6482
KS
2121 kbd_buffer_store_event_hold. Update count in one place.
2122 Postpone call to gen_help_event until inev is stored; use new
2123 local do_help for this.
2124 Remove local emacs_event in handing of ButtonPress event; just use
2125 inev instead (so no reason to copy it later).
2126
2127 * xsmfns.c (x_session_check_input): Remove numchars arg.
2128
d8d95bc7
SM
2129 * xterm.c (x_focus_changed, x_detect_focus_change):
2130 Remove numchars arg. Always store event into bufp arg.
2131 Return nothing. Callers changed accordingly.
3e0c6482
KS
2132 (glyph_rect): Simplify.
2133 (STORE_KEYSYM_FOR_DEBUG): New macro.
2134 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
2135 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
2136 (current_hold_quit) [USE_GTK]: Add.
2137 (event_handler_gdk): Adapt to new handle_one_xevent.
2138 (handle_one_xevent): Remove bufp_r and numcharsp args.
f63fd14e
JB
2139 Add hold_quit arg. Rework to use just one, local, inev
2140 input_event. Store inev directly in fifo using
3e0c6482
KS
2141 kbd_buffer_store_event_hold. Update count in one place.
2142 Postpone call to gen_help_event until inev is stored; use new
2143 local do_help for this.
2144 Simplify handling of keysyms (consolidate common code). Fix bug
2145 where count was updated with nchars instead of nbytes.
2146 Remove local emacs_event in handing of ButtonPress event; just use
2147 inev instead (so no reason to copy it later).
2148 Remove `out' label. Rename label `ret' to `done'; add various
2149 `goto done' to clarify code flow in deeply nested blocks.
2150 (x_dispatch_event): Simplify as handle_one_xevent now calls
2151 kbd_buffer_store_event itself.
f63fd14e 2152 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
3e0c6482
KS
2153 arg. Call handle_one_xevent with new arglist. Store event from
2154 x_session_check_input in fifo.
2155 [USE_GTK]: Setup current_hold_quit.
2156 Decrement handling_signal before unblocking input.
2157 (x_initialize) [USE_GTK]: Initialize current_count.
2158
2159 * xterm.h (x_session_check_input): Fix prototype.
2160
e3564461 21612004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
a64387ee 2162
d8d95bc7 2163 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
a64387ee 2164
e3564461
ST
2165 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
2166 macgui.h).
a64387ee 2167
e3564461 2168 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
a64387ee 2169
e3564461
ST
2170 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
2171 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
2172 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
2173 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
2174 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
2175 (Bitmap): Remove typedef.
2176 (Pixmap): Change int to GWorldPtr.
2177
d8d95bc7 2178 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
a64387ee 2179
d8d95bc7
SM
2180 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
2181 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
2182 New #define to extract 16-bit depth color components from unsigned
e3564461
ST
2183 long representation.
2184 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
2185 colors used for masks.
2186 (struct mac_display_info): Add color_p. Remove n_cbits.
a64387ee 2187
e3564461
ST
2188 * macfns.c: Include sys/types.h and sys/stat.h.
2189 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
2190 Include QuickTime/QuickTime.h.
2191 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
2192 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
2193 functions defined in macterm.c.
2194 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
2195 (ZPixmap): New #define for compatibility with xfns.c.
2196 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
2197 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
d8d95bc7
SM
2198 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
2199 New functions.
e3564461 2200 (four_corners_best, x_create_x_image_and_pixmap)
d8d95bc7
SM
2201 (x_destroy_x_image, unwind_create_frame, x_disable_image)
2202 (x_edge_detection, init_color_table, colors_in_color_table)
e3564461
ST
2203 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
2204 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
2205 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
2206 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
2207 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
2208 long mixup.
2209 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
2210 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
2211 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
2212 (x_set_cursor_type, Fxw_color_values, valid_image_p)
2213 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
2214 (x_alloc_image_color, clear_image_cache, lookup_image)
2215 (x_find_image_file, xbm_read_bitmap_file_data)
2216 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
2217 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
2218 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
2219 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
2220 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
d8d95bc7 2221 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
e3564461
ST
2222 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
2223 #if 0.
2224 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
2225 #if 0. Free white_relief.gc and black_relief.gc.
d8d95bc7
SM
2226 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
2227 New functions (from xfns.c).
e3564461
ST
2228 (Fx_create_frame): Record unwind_create_frame.
2229 (Fxw_display_color_p): Use dpyinfo->color_p.
2230 (Fx_display_grayscale_p, Fx_display_planes): Don't use
2231 dpyinfo->n_cbits.
2232 (Fx_display_color_cells): Use dpyinfo->n_planes;
2233 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
2234 (Qheuristic, cross_disabled_images, emboss_matrix)
2235 (laplace_matrix): New variables (from xfns.c).
2236 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
2237 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
2238 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
d8d95bc7
SM
2239 (image_background_transparent): New function (from xfns.c).
2240 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
2241 (image_load_quicktime): Add declaration.
2242 [MAC_OSX] (image_load_quartz2d): Likewise.
2243 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
2244 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
d8d95bc7 2245 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
e3564461
ST
2246 (xbm_load_image_from_file, x_laplace_read_row)
2247 (x_laplace_write_row, pbm_read_file): Remove functions.
2248 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
2249 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
2250 (colors_in_color_table): Sync with xfns.c (although not used).
2251 (lookup_rgb_color): Don't lookup color table. Just do gamma
2252 correction.
2253 (COLOR_INTENSITY): New #define (from xfns.c).
d8d95bc7
SM
2254 (x_disable_image): New function (from xfns.c).
2255 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
2256 (x_build_heuristic_mask): Sync with xfns.c.
2257 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
2258 (HAVE_PBM): Remove #ifdef.
2259 (pbm_load): Sync with xfns.c. Set img->width and img->height
2260 before IMAGE_BACKGROUND.
d8d95bc7 2261 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
e3564461
ST
2262 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
2263 Don't enclose with #if HAVE_PNG.
2264 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
d8d95bc7
SM
2265 symbol _CGImageCreateWithPNGDataProvider is defined.
2266 Otherwise use image_load_quicktime.
e3564461 2267 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
d8d95bc7
SM
2268 [HAVE_PNG] (png_load): Sync with xfns.c.
2269 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
2270 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
2271 HAVE_JPEG.
2272 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
2273 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
2274 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
2275 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
2276 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
2277 (tiff_image_p, tiff_load): Don't enclose declarations with #if
2278 HAVE_TIFF.
2279 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
2280 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
2281 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
d8d95bc7
SM
2282 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
2283 New functions (from xfns.c).
e3564461 2284 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
d8d95bc7 2285 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
e3564461
ST
2286 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
2287 Don't enclose with #if HAVE_GIF.
2288 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
2289 animated gif. Otherwise use image_load_quicktime.
2290 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
2291 gif_DrawText to avoid conflict with QuickdrawText.h.
2292 [HAVE_GIF] (gif_load): Sync with xfns.c.
2293 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
2294 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
2295 Ghostscript is not supported yet).
2296 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
2297 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
2298 cross_disabled_images (from xfns.c). Remove #if 0 for supported
2299 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
2300 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
2301 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
d8d95bc7
SM
2302 HAVE_PNG. Call EnterMovies to support animated gifs.
2303 Call init_image_func_pointer to bind a symbol
e3564461 2304 _CGImageCreateWithPNGDataProvider if it is defined.
a64387ee 2305
d8d95bc7 2306 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
e3564461
ST
2307 (x_draw_bar_cursor): Sync declaration with xterm.c.
2308 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
2309 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
2310 graphics).
2311 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
2312 (mac_draw_line_to_pixmap, XCreatePixmap)
2313 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
d8d95bc7
SM
2314 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
2315 New functions.
2316 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
2317 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
2318 Cast bits to char *.
e3564461
ST
2319 (reflect_byte): New function (from w32fns.c).
2320 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
2321 due to byte alignment.
d8d95bc7
SM
2322 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
2323 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
e3564461
ST
2324 (XSetForeground): Remove static (now used in macfns.c).
2325 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
2326 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
2327 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
2328 (x_draw_glyph_string_box, x_draw_image_foreground)
2329 (x_draw_image_foreground_1, x_draw_image_glyph_string)
2330 (x_draw_stretch_glyph_string, x_draw_glyph_string)
2331 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
2332 Sync with xterm.c.
2333 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
2334 than the xterm.c version when a strictly horizontal or vertical
2335 line is drawn.
2336 (XTset_terminal_window): Add static.
2337 (x_make_frame_visible): Add UNBLOCK_INPUT.
2338 (x_free_frame_resources): New funcion (from xterm.c).
2339 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
2340 occurs in tool bar area.
d8d95bc7
SM
2341 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
2342 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
e3564461
ST
2343 Initialize image cache.
2344 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
2345 Enclose unused functions with #if 0.
2346 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
2347 (decode_mac_font_name): New function to apply code conversions
d8d95bc7 2348 from a mac font name to an XLFD font name according to its script code.
e3564461 2349 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
d8d95bc7 2350 font name to a mac font name according to REGISTRY and ENCODING fields.
e3564461
ST
2351 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
2352 whose name starts with `.'.
2353 (init_font_name_table): Use decode_mac_font_name. Add both
2354 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
2355 of a font is smJapanese.
2356 (mac_do_list_fonts): New function to list fonts that match a given
2357 pattern.
2358 (x_list_fonts, XLoadQueryFont): Use it.
2359 (XLoadQueryFont): Set rbearing field for each variable width
2360 character to avoid needless redraw.
2361 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
2362
446f5f3d
KS
23632004-02-26 Kim F. Storm <storm@cua.dk>
2364
af617d0f
KS
2365 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
2366 as read_socket_hook handler on X aborts if buffer is too small
2367 and W32 handler doesn't always check buffer limit.
2368
446f5f3d
KS
2369 * xdisp.c (handle_single_display_prop): Handle left-fringe and
2370 right-fringe similar to a display margin image. Specifically,
2371 the characters having the fringe prop are no longer shown, and
2372 we use IT_IMAGE/next_element_from_image with image_id = -1 to
2373 do this. Set fringe bitmap face_id in it->face_id.
2374 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
2375 still realize it->face (i.e. the fringe bitmap face).
2376
7d8a0b55
MB
23772004-02-25 Miles Bader <miles@gnu.org>
2378
2379 * xdisp.c (check_it): Check string/string_pos consistency.
2380 (init_iterator): Initialize string-related fields properly.
2381
23822004-02-11 Miles Bader <miles@gnu.org>
2383
2384 * xdisp.c (produce_image_glyph): Force negative descents to zero.
2385
23862004-02-10 Miles Bader <miles@gnu.org>
2387
2388 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
2389 BLOCK_INPUT can be nested, so it doesn't make much sense.
2390
a64387ee 23912004-02-24 Michael Mauger <mmaug@yahoo.com>
ce35edd1
JR
2392
2393 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
2394 (xbm_read_bitmap_data): Use unsigned char for image data.
2395
92f5fba2
LT
23962004-02-23 Luc Teirlinck <teirllm@auburn.edu>
2397
2398 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
2399
8565fb3d
JR
24002004-02-22 Jason Rumney <jasonr@gnu.org>
2401
2402 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
2403 correctly over other bitmaps.
2404
a6eeaa81 24052004-02-21 Eli Zaretskii <eliz@gnu.org>
f8125c39
EZ
2406
2407 * emacs.c (USAGE1): Split into two halves.
2408 (USAGE2): Second half of the old USAGE1.
d8d95bc7
SM
2409 (USAGE3): Rename from USAGE2.
2410 (USAGE4): Rename from USAGE3.
f8125c39 2411
4effffca
EZ
24122004-02-21 Juri Linkov <juri@jurta.org>
2413
2414 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
2415 Fix --multibyte. Move --help, --version to USAGE2. Add alias
2416 --file. Fix -f, -l. Sort options. Untabify.
2417 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
2418
923c1e6f
LT
24192004-02-19 Luc Teirlinck <teirllm@auburn.edu>
2420
2421 * category.c (Fdefine_category, Fcategory_docstring)
2422 (Fget_unused_category, Fset_category_table)
2423 (Fcategory_set_mnemonics): Doc fixes.
2424
b0e225fd
KS
24252004-02-20 Kim F. Storm <storm@cua.dk>
2426
2427 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
2428 The following changes are relative to the 2004-01-21 revision.
2429 (NREAD_INPUT_EVENTS): Define as max number of input events to read
2430 in one call to read_socket_hook. Value is 8.
2431 (read_avail_input): Separate and rework handling of read_socket_hook
2432 and non-read_socket_hook cases. Use smaller input_event buffer
d8d95bc7
SM
2433 in read_socket_hook case, and repeat if full buffer is read.
2434 Use new local variable 'discard' to skip input after C-g.
b0e225fd
KS
2435 In non-read_socket_hook case, just use a single input_event, and
2436 call kbd_buffer_store_event on the fly for each character.
2437
b15aa9f9
SM
24382004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
2439
2440 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
2441 Remove unused `gu' alternative.
2442
83c9aa95
AS
24432004-02-19 Andreas Schwab <schwab@suse.de>
2444
2445 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
2446 warning.
2447
cc808173
KS
24482004-02-18 Kim F. Storm <storm@cua.dk>
2449
2450 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
2451 Fix last change.
2452
ab90a54d
KS
24532004-02-17 Kim F. Storm <storm@cua.dk>
2454
b26f249f
KS
2455 * xdisp.c (fast_find_position): Fix return value of new version;
2456 it was inverted compared to the 21.1 version.
2457 (get_window_cursor_type): Don't look at glyph if NULL.
2458 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
0bf7d005 2459
ab90a54d
KS
2460 * keyboard.c: Rework previous change; it didn't consider that the
2461 buf array was allocated on the stack.
2462 (prev_read): Remove variable.
2463 (read_avail_input_buf): New static event buffer array.
b9568dfc 2464 (in_read_avail_input): New static variable to handle re-entrancy.
ab90a54d 2465 (read_avail_input): Change buf to pinter to read_avail_input_buf.
b9568dfc
KS
2466 Use in_read_avail_input to handle re-entrance; when re-entered,
2467 fully initialize and use tmp_buf array instead of read_avail_input_buf.
2468 Do not initialize read_avail_input_buf in full here; instead assume it
ab90a54d
KS
2469 is always cleared on entry. To ensure that, we clear (just) the
2470 entries that were used before we return.
2471 (init_keyboard): Initialize read_avail_input_buf here.
2472
4e039f3f
EZ
24732004-02-16 Jesper Harder <harder@ifa.au.dk> (tiny change)
2474
2475 * cmds.c (Fend_of_line): Doc fix.
2476
7b5368c1
EZ
24772004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
2478
2479 * keyboard.c (prev_read): New static variable.
2480 (read_avail_input): Use it to zero out only those slots in buf[]
2481 that were used last time we were called.
2482
a6eeaa81 24832004-02-16 Eli Zaretskii <eliz@gnu.org>
ca4bc494
EZ
2484
2485 * Makefile.in (obj): Move fringe.o from here...
2486 (XOBJ, MAC_OBJ): ...to here.
2487
159c348e
SE
24882004-02-16 Stephen Eglen <stephen@gnu.org>
2489
2490 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
2491
d2f14999
SM
24922004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
2493
b15aa9f9
SM
2494 * data.c (Fbyteorder):
2495 * fringe.c (Fdefine_fringe_bitmap):
2496 * xdisp.c (handle_single_display_prop):
d2f14999
SM
2497 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
2498
8d50508a
JR
24992004-02-16 Jason Rumney <jasonr@gnu.org>
2500
2501 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
2502
dd4497dc
ST
25032004-02-15 Steven Tamm <steventamm@mac.com>
2504
2505 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
2506 controlling emulation of a three button mouse with option and
2507 command keys.
2508 (Qreverse, mac_get_enumlated_btn): Handle the emulation
b15aa9f9 2509 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
dd4497dc 2510
c9159cb3
KS
25112004-02-15 Kim F. Storm <storm@cua.dk>
2512
2cc52658
KS
2513 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
2514
c9159cb3
KS
2515 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
2516 Perform byte-swapping.
2517
12fde2dc
KS
25182004-02-14 Kim F. Storm <storm@cua.dk>
2519
2520 * dispextern.h (struct draw_fringe_bitmap_params): Change member
2521 bits from char to short to facilitate wider bitmaps.
2522 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
2523 member.
2524
2525 * fringe.c (struct fringe_bitmap): Change member bits from char to
2526 short to facilitate 16 bits wide bitmaps. Modify all standard
2527 bitmaps accordingly.
2528 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
2529 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
2530 (draw_fringe_bitmap): Ditto.
2531 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
2532 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
2533 handle up to 16 bits wide bitmaps.
2534 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
f21a7192 2535 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
12fde2dc
KS
2536
2537 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
2538 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
2539 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
2540
2541 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
2542 so it is no longer necessary to expand them here.
2543
2544 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
2545
9d7271e8
KS
25462004-02-12 Kim F. Storm <storm@cua.dk>
2547
2548 * window.c (Fwindow_fringes): Doc fix.
2549
706c1e4f
JD
25502004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2551
2552 * xselect.c (x_get_foreign_selection): Add new optional parameter
2553 time_stamp.
2554 (Fx_get_selection_internal): Ditto, pass time_stamp to
2555 x_get_foreign_selection.
2556
2557 * data.c (Fbyteorder): New function.
2558
c2d12b5d
JD
25592004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2560
2561 * atimer.c: Move include stdio.h to same place as in other files.
2562
2563 * region-cache.c: Ditto.
2564
2565 * sysdep.c: Ditto.
2566
2567 * xfaces.c: Ditto.
2568
4c1947b9
SS
25692004-02-09 Sam Steingold <sds@gnu.org>
2570
89458937 2571 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
4c1947b9 2572
82722af3
KS
25732004-02-09 Kim F. Storm <storm@cua.dk>
2574
2575 * fringe.c: New file. Move original fringe related declarations
2576 and code from dispextern.h and xdisp.c here.
2577 Rework code to support user defined fringe bitmaps, redefining
2578 standard bitmaps, ability to overlay user defined bitmap with
2579 overlay arrow bitmap, and add faces to bitmaps.
2580 (Voverflow_newline_into_fringe): Declare here.
2581 (enum fringe_bitmap_align): New enum.
2582 (..._bits): All bitmaps are now defined without bitswapping; that
2583 is now done in init_fringe_once (if necessary).
2584 (standard_bitmaps): New array with specifications for the
2585 standard fringe bitmaps.
2586 (fringe_faces): New array.
2587 (valid_fringe_bitmap_id_p): New function.
2588 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
2589 (draw_fringe_bitmap): New function which draws fringe bitmap,
2590 possibly overlaying bitmap with cursor in right fringe or the
2591 overlay arrow in the left fringe.
2592 (update_window_fringes): Do not handle overlay arrow here.
2593 Compare and copy fringe bitmap faces.
2594 (init_fringe_bitmap): New function.
2595 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
2596 define and destroy user defined fringe bitmaps.
2597 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
2598 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
2599 (syms_of_fringe): New function. Defsubr new DEFUNs.
2600 DEFVAR_LISP Voverflow_newline_into_fringe.
2601 (init_fringe_once, init_fringe): New functions.
2602 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
4c1947b9 2603
82722af3
KS
2604 * Makefile.in (obj): Add fringe.o.
2605 (fringe.o): New dependencies.
2606
2607 * dispextern.h (FRINGE_ID_BITS): New definition for number of
2608 bits allocated to hold a fringe number. Increase number of bits
2609 from 4 to 8 to allow user defined fringe bitmaps.
2610 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
2611 left_user_fringe_face_id, right_user_fringe_bitmap,
2612 right_user_fringe_face_id.
2613 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
2614 Move to new file fringe.c.
2615 (MAX_FRINGE_BITMAPS): Define here.
2616 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
2617 and overlay_p. Change member which to int.
2618 (struct redisplay_interface): New members define_fringe_bitmap
2619 and destroy_fringe_bitmap.
2620 (valid_fringe_bitmap_id_p): Add prototype.
2621 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
2622
2623 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
2624 arrows.
2625 (update_frame): Do flush_display if force_flush_display_p to
2626 ensure display (specifically fringes) are updated in a timely
2627 manner when resizing the frame by dragging the mouse.
2628 (update_window_line): Update row if overlay arrow changed.
2629 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
2630 or overlay arrow changed.
2631
2632 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
2633 syms_of_fringe, and init_fringe.
2634
2635 * frame.h (struct frame): New member force_flush_display_p.
2636
2637 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
2638 Add prototypes.
2639
a3993cc8 2640 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
a64387ee 2641 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
a3993cc8
KS
2642 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
2643 Use cursor color for displaying cursor in fringe.
82722af3
KS
2644 (x_redisplay_interface): Add null handlers for
2645 define_fringe_bitmap and destroy_fringe_bitmap functions.
2646
2647 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
2648 xterm.c to handle overlayed fringe bitmaps and to use cursor color
2649 for displaying cursor in fringe.
2650 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
2651 specific functions to define and destroy fringe bitmaps in fringe_bmp.
2652 (w32_redisplay_interface): Add them to redisplay_interface.
2653 (w32_term_init): Call w32_init_fringe instead of explicitly
2654 defining fringe bitmaps in fringe_bmp array.
2655 (x_delete_display): Call w32_reset_fringes instead of explicitly
2656 destroying fringe bitmaps in fringe_bmp array.
2657
2658 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
2659 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
2660 (continued_bits, continuation_bits, ov_bits, first_line_bits)
2661 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
2662 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
2663 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
2664 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
2665 Move fringe handling vars and code to new file fringe.c.
2666 (handle_display_prop): Handle left-fringe and right-fringe
2667 display properties; store user fringe bitmaps in iterator.
2668 (move_it_in_display_line_to): Handle cursor in fringe at eob.
2669 (clear_garbaged_frames): Set force_flush_display_p if resized.
2670 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
2671 (display_line): Handle cursor in fringe at eob.
2672 (display_line): Set row user fringe bitmaps from iterator.
2673
2674 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
2675 Use cursor color for displaying cursor in fringe.
2676 (x_redisplay_interface): Add null handlers for
2677 define_fringe_bitmap and destroy_fringe_bitmap functions.
2678
030400eb
JD
26792004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2680
2681 * macfns.c (Fx_change_window_property): Make doc string and
2682 parameters same as for X version.
2683
2684 * w32fns.c (Fx_change_window_property): Ditto.
2685
3af55251
KS
26862004-02-07 Kim F. Storm <storm@cua.dk>
2687
ec110e9e
KS
2688 * xdisp.c (hscroll_window_tree): Position cursor near to right
2689 margin in hscrolled window when jumping to end of line (rather
2690 than centering cursor).
2691
3af55251
KS
2692 * process.c (wait_reading_process_input): Don't do adaptive read
2693 buffering if waiting for a specific process.
2694
b0c138ce
LT
26952004-02-05 Luc Teirlinck <teirllm@auburn.edu>
2696
2697 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
2698 (Fread_minibuffer, Feval_minibuffer)
2699 (Fread_string, Fread_no_blanks_input)
2700 (Fcompleting_read): Doc fixes.
2701 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
2702 completion-regexp-list. Define Qcase_fold_search and staticpro it.
2703 (read_minibuf): Fix initial comment.
2704 (Ftry_completion, Fall_completions, Ftest_completion): Bind
e8eeaed8 2705 case-fold-search to the value of completion-ignore-case when
b0c138ce
LT
2706 checking completion-regexp-list.
2707 (Fdisplay_completion_list): Make it handle arguments that are
2708 symbols. Doc fix.
2709
9676f5ad 27102004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
64d1e373 2711
9676f5ad 2712 * xterm.h: Add declaration of free_frame_menubar.
64d1e373 2713
9676f5ad
JD
2714 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
2715 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
b0c138ce 2716 (Fx_change_window_property): Add declaration of parameters type and
9676f5ad 2717 format. Remove unused variable cons.
5b698285
JD
2718
2719 * xselect.c: Include stdio,h.
2720
fc1d15f6
KH
27212004-02-05 Kenichi Handa <handa@m17n.org>
2722
ebaff4af
KH
2723 * fns.c (Fset_char_table_range): Fix previous change.
2724
fc1d15f6
KH
2725 * buffer.c (Fset_buffer_multibyte): Fix docstring.
2726
9676f5ad
JD
27272004-02-04 Luc Teirlinck <teirllm@auburn.edu>
2728
2729 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
2730
da75761f
SM
27312004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
2732
2733 * keymap.c (Vmouse_events): Rename from Vmenu_events.
2734 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
2735
13c5d120
KH
27362004-02-04 Kenichi Handa <handa@m17n.org>
2737
2738 * fns.c (Fset_char_table_range): Handle charsets ascii,
2739 eight-bit-control, and eight-bit-graphic correctly.
2740
2883d842
JR
27412004-02-03 Jason Rumney <jasonr@gnu.org>
2742
2743 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
2744
2745 * w32fns.c (x_to_w32_font): Likewise.
2746
69eff41f
JD
27472004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2748
2749 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
2750 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
2751
2752 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
2753 ClientMessages.
2754
2755 * xselect.c: Include termhooks.h and X11/Xproto.h
2756 (x_check_property_data, x_fill_property_data)
2757 (x_property_data_to_lisp, mouse_position_for_drop)
2758 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
da75761f 2759 (Fx_send_client_event): Move here from xfns.c.
69eff41f
JD
2760 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
2761
da75761f 2762 * xfns.c (x-send-client-message): Move to xselect.c
69eff41f
JD
2763 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
2764 OUTER_P.
2765 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
2766 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
2767 if vector_ret_p is true.
2768 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
69eff41f 2769
a6eeaa81 27702004-02-02 Eli Zaretskii <eliz@gnu.org>
dcdbbb5d
EZ
2771
2772 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
2773 basename of FILE relative to it, not FILE itself.
2774
09721b31
KH
27752004-02-02 Kenichi Handa <handa@m17n.org>
2776
2777 * coding.c (coding_restore_composition): Check invalid
2778 composition data more rigidly.
2779
eb996101
LT
27802004-01-30 Luc Teirlinck <teirllm@auburn.edu>
2781
2782 * fileio.c (Fread_file_name_internal): Correctly handle the case
2783 where insert-default-directory is nil.
2784 (Fread_file_name): Always return an empty string if the user exits
2785 with an empty minibuffer. Adapt the docstring accordingly.
2786 (syms_of_fileio): Adapt the docstring of insert-default-directory
2787 to the change in Fread_file_name.
2788
a6eeaa81 27892004-01-29 Eli Zaretskii <eliz@gnu.org>
a0367d42
EZ
2790
2791 * alloca.c [!alloca]: Fix the prototype for xfree.
2792
13f52ed8
KH
27932004-01-29 Kenichi Handa <handa@m17n.org>
2794
2795 * fns.c (string_char_to_byte): Optimize for ASCII only string.
2796 (string_byte_to_char): Likewise.
2797
d57625a0
JR
27982004-01-28 Peter Runestig <peter@runestig.com>
2799
2800 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
2801
a64387ee 28022004-01-27 Steven Tamm <steventamm@mac.com>
911c78b4
ST
2803
2804 * unexmacosx.c (unexec_copy): Do not copy more than was
2805 requested to prevent overwriting during unexec.
2806
eb37b8fd
JD
28072004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2808
ce38070a
JD
2809 * process.c (sigchld_handler): Add comment about not calling malloc.
2810
eb37b8fd
JD
2811 * process.h: Add extern to synch_process_termsig.
2812
a64387ee 28132004-01-27 Steven Tamm <steventamm@mac.com>
21a3e657 2814
da75761f
SM
2815 * macterm.c (make_mac_frame, make_mac_terminal_frame):
2816 Move setting of scroll bars from make_mac_frame to
2817 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
21a3e657 2818
d62a265d
RS
28192004-01-26 Richard M. Stallman <rms@gnu.org>
2820
2821 * search.c (Freplace_match): Handle nonexistent
2822 back-references properly.
2823
28242004-01-03 Richard M. Stallman <rms@gnu.org>
2825
2826 * window.c (decode_any_window): New function.
2827 (Fwindow_height, Fwindow_width, Fwindow_edges)
2828 (Fwindow_pixel_edges, Fwindow_inside_edges)
2829 (Fwindow_inside_pixel_edges): Use decode_any_window.
2830
ff236419
JD
28312004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2832
2833 * process.h: synch_process_termsig new variable.
2834
2835 * callproc.c: Define synch_process_termsig.
2836 (Fcall_process): Initiate synch_process_termsig to zero and
2837 check if non-zero and get signal name after subprocess has ended.
2838
2839 * process.c (sigchld_handler): Set synch_process_termsig
2840 if terminated by a signal. synch_process_death setting removed.
2841
2842 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
2843
41b867ea
AS
28442004-01-26 Andreas Schwab <schwab@suse.de>
2845
2846 * print.c (print_preprocess): Declare size as EMACS_INT to not
2847 lose bits.
2848 (print_object): Likewise.
2849 * alloc.c (Fpurecopy): Likewise.
2850
a08084ff
LT
28512004-01-25 Luc Teirlinck <teirllm@auburn.edu>
2852
2853 * window.c (Fwindow_minibuffer_p): Doc fix.
2854
b19ac475
JY
28552004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
2856
2857 * editfns.c (Fformat): Make both passes accept the same set of flags.
2858
fe905025
KH
28592004-01-23 Kenichi Handa <handa@m17n.org>
2860
2861 * fns.c (Fmd5): If OBJECT is a buffer different from the current
2862 one, set buffer to OBJECT temporarily.
2863
438fc6c0
SM
28642004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
2865
455316e2
SM
2866 * keyboard.c (kbd_buffer_gcpro): Remove.
2867 (kbd_buffer_store_event, clear_event, Fdiscard_input)
2868 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
2869 Don't initialize and/or maintain the variable any more. It was made
2870 redundant by my commit of 2003-06-15.
2871
438fc6c0
SM
2872 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
2873
5335a4ee
JD
28742004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2875
2876 * lisp.h: Add undef DECL_ALIGN.
2877
dcdaeebc
SM
28782004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
2879
2880 * process.c (wait_reading_process_input) [SYNC_INPUT]:
2881 Check interrupt_input_pending explicitly.
2882
2883 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
2884
2885 * keyboard.c (handle_async_input): New fun,
2886 extracted from input_available_signal.
2887 (input_available_signal, reinvoke_input_signal): Use it.
2888
9076a823
SM
28892004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
2890
d7107586
SM
2891 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
2892
2893 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
2894 manipulation macros for when tags are in the lower bits.
2895 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
2896 (DECL_ALIGN): New macro.
2897 (DEFUN): Use it.
2898
2899 * lisp.h [ENABLE_CHECKING]: Don't force union type.
2900
2901 * s/darwin.h (__attribute__): Remove outdated workaround.
2902
2903 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
2904
2905 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
2906 Don't check range of malloc address.
2907 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
2908
9076a823
SM
2909 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
2910
2911 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
2912
ba029065
KH
29132004-01-19 Kenichi Handa <handa@m17n.org>
2914
2915 * fontset.c (fontset_font_pattern): Fix previous change.
2916
7af0e8d7
MB
29172004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
2918
2919 * xdisp.c (Voverflow_newline_into_fringe)
2920 (move_it_in_display_line_to, redisplay_internal)
2921 (update_window_fringes, redisplay_window, display_line, window):
2922 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
2923 that it compiles without a window-system.
2924 * dispnew.c (direct_output_for_insert, update_window): Likewise.
2925
77a9cf69
KS
29262004-01-16 Kim F. Storm <storm@cua.dk>
2927
2928 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
2929
a64387ee 2930 * buffer.c (init_buffer_once): Set buffer_defaults and
77a9cf69
KS
2931 buffer_local_flags for indicate_buffer_boundaries.
2932 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
2933 default- variable for it.
2934
2935 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
2936 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
d7107586 2937 New members exact_window_width_line_p and cursor_in_fringe_p for
77a9cf69
KS
2938 overflowing newlines into right fringe.
2939 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
2940 and indicate_bottom_line_p for buffer boundaries and scrolling.
2941 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
2942 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
2943 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
2944 and HOLLOW_SQUARE_BITMAP.
2945 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
2946 Add prototypes.
2947
2948 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
2949 instead of related indicator fields.
2950 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
2951 (direct_output_for_insert): Handle exact width lines like
2952 contined lines. Call update_window_fringes.
2953 (update_window): Call update_window_fringes.
2954 (scrolling_window): Don't skip desired rows with changed bitmaps.
2955 Check if fringe bitmaps changes when assigning scrolled rows.
2956
2957 * xdisp.c (Voverflow_newline_into_fringe): New variable.
2958 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
2959 (move_it_in_display_line_to): Overflow newline into fringe for
2960 rows that are exactly as wide as the window.
2961 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
2962 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
2963 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
2964 (fringe_bitmaps): Add new bitmaps.
2965 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
2966 Select proper bitmap for cursor in fringe when appropriate.
2967 Handle alignment of bitmap to top or bottom of row.
2968 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
2969 done by update_window_fringes.
2970 (update_window_fringes, draw_window_fringes): New functions.
2971 (redisplay_internal): Call update_window_fringes in case only
2972 cursor row is updated.
2973 (redisplay_window): Call update_window_fringes.
2974 Explicitly call draw_window_fringes if redisplay was done using
2975 the current matrix or the overlay arrow is in the window.
2976 (try_window_reusing_current_matrix): Mark scrolled rows for
2977 fringe update (to update buffer-boundaries / scrolling icons).
2978 (find_last_unchanged_at_beg_row): Handle exact width lines line
2979 continued lines.
2980 (display_line): Overflow newline into fringe for rows that are
2981 exactly as wide as the window. Don't append space for newline
d7107586 2982 in this case.
77a9cf69
KS
2983 (notice_overwritten_cursor): Explicitly clear cursor bitmap
2984 in fringe as if it had been overwritten.
2985 (erase_phys_cursor): Erase cursor bitmap in fringe.
d7107586 2986 (syms_of_xdisp): Mark show-trailing-whitespace and
77a9cf69
KS
2987 void-text-area-pointer as user options.
2988 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
d7107586 2989
77a9cf69
KS
2990 * xterm.c (x_update_window_end): Call draw_window_fringes.
2991 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
2992 in row instead of actually drawing fringe bitmaps.
2993 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
2994 (x_draw_window_cursor): Draw cursor in fringe.
2995
2996 * w32term.c (x_update_window_end): Call draw_window_fringes.
2997 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
2998 in row instead of actually drawing fringe bitmaps.
2999 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
3000 (w32_draw_window_cursor): Draw cursor in fringe.
3001
3002 * macterm.c (x_update_window_end): Call draw_window_fringes.
3003 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
3004 in row instead of actually drawing fringe bitmaps.
3005 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
3006 (mac_draw_window_cursor): Draw cursor in fringe.
3007
a633a954
JD
30082004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3009
3010 * xterm.c (handle_one_xevent): Don't handle characters that are part
3011 of an old style (XLookupString) compose sequence.
3012
80460525
KH
30132004-01-15 Kenichi Handa <handa@m17n.org>
3014
3015 * search.c (Freplace_match): Use make_multibyte_string or
3016 make_unibyte_string according to the buffer multibyteness.
3017
7fc34f85
SM
30182004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
3019
3020 * alloc.c (struct interval_block, struct string_block)
3021 (struct symbol_block, struct marker_block, live_string_p)
3022 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
3023 Better preserve alignment for objects in blocks.
3024 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
3025
3026 * lread.c (defvar_per_buffer): Remove dead declaration.
3027
3028 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
3029 space size.
3030
66070bd1
JD
30312004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3032
3033 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
3034 if a key press should pop down. Only pop down if a key is pressed
3035 outside the menu/dialog.
3036 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
3037 popup_get_selection.
3038 (create_and_show_dialog): Pass 1 for down_on_keypress to
3039 popup_get_selection.
3040
de7515d6
JD
30412004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3042
3043 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
3044 BLOCK/UNBLOCK_INPUT.
3045
160b1b50
JD
30462004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3047
3048 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
3049 specified.
3050
3a9f36e6
KH
30512004-01-08 Kenichi Handa <handa@m17n.org>
3052
3053 * editfns.c (Fformat): Fix '&' to '&&'.
3054
3803eb32
AS
30552004-01-08 Andreas Schwab <schwab@suse.de>
3056
3057 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
3058 size if PSEUDOVECTOR_FLAG is set.
3059
9da88f37
KH
30602004-01-07 Kenichi Handa <handa@m17n.org>
3061
74ac5074
KH
3062 * charset.c (Fdeclare_equiv_charset): Fix docstring.
3063
9da88f37
KH
3064 * fontset.c (fontset_ref_via_base): Fix previous change.
3065
05faee07
KS
30662004-01-07 Kim F. Storm <storm@cua.dk>
3067
3068 * process.c (read_process_output): Only activate adaptive
3069 buffering if we read less than 256 bytes at a time.
3070
634910c8
KS
30712004-01-06 Kim F. Storm <storm@cua.dk>
3072
3073 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
3074 object and image object. Return glyph width and height.
3075 (mode_line_string, marginal_area_string): Ditto.
3076
3077 * dispextern.h (buffer_posn_from_coords, mode_line_string)
3078 (marginal_area_string): Fix prototypes.
3079
3080 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
f63fd14e 3081 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
634910c8
KS
3082 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
3083
3084 * keyboard.c (make_lispy_position): Use modified mode_line_string,
3085 buffer_posn_from_coords, and marginal_area_string functions to
3086 include both string object and image object in the lispy position.
3087 Also add actual glyph width and height to position.
3088 (read_key_sequence): Use real buffer position from mouse
3089 event to find keymap property even when click is in marginal area.
3090
3091 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
3092 mode_line_string and marginal_area_string functions to handle
3093 both string object and image object properties.
d7107586 3094
57951c2e
AS
30952004-01-06 Andreas Schwab <schwab@suse.de>
3096
3097 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
3098 character.
3099
181e6a61
AS
31002004-01-02 Andreas Schwab <schwab@suse.de>
3101
d7107586
SM
3102 * macterm.c (emacs_options, x_initialized, same_x_server):
3103 Remove unused (and duplicated) definitions.
181e6a61 3104
31e0fbdd
KS
31052004-01-02 Kim F. Storm <storm@cua.dk>
3106
3107 * process.h (struct Lisp_Process): New members for adaptive read
3108 buffering: adaptive_read_buffering, read_output_delay, and
3109 read_output_skip.
3110
3111 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
3112 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
3113 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
3114 (process_output_delay_count, process_output_skip): New vars.
3115 (Vprocess_adaptive_read_buffering): New variable.
3116 (make_process): Initialize adaptive read buffering members.
3117 (Fstart_process): Set adaptive_read_buffering member.
3118 (deactivate_process): Cleanup adaptive read buffering.
3119 (wait_reading_process_input): Temporarily omit delayed
3120 subprocesses from the set of file descriptors to read from;
3121 adjust the select timeout if we skipped any subprocesses.
3122 (read_process_output): Increase adaptive read buffering delay if
3123 we read less than a full buffer; reduce delay when we read a
3124 full buffer.
3125 (send_process): Simplify using local Lisp_Process var.
3126 Reset adaptive read buffering delay after write.
3127 (init_process): Initialize process_output_delay_count and
3128 process_output_skip.
3129 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
3130
68c6a789
JR
31312004-01-01 Jason Rumney <jasonr@gnu.org>
3132
d7107586 3133 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
68c6a789 3134
3f70fe82
LT
31352003-12-30 Luc Teirlinck <teirllm@auburn.edu>
3136
3137 * print.c (Ferror_message_string): Add hyperlink in the docstring
3138 to the definition of `signal' in the Elisp manual.
3139 * eval.c (Fsignal): Ditto.
3140
a64387ee 31412003-12-29 James Clark <jjc@jclark.com> (tiny change)
c2be49ed
EZ
3142
3143 * fns.c (internal_equal): Return t for two NaN arguments.
3144
7abd90ea
RS
31452003-12-29 Richard M. Stallman <rms@gnu.org>
3146
3147 * data.c (store_symval_forwarding): Handle setting
3148 default-fill-column, etc., by changing the value in
3149 buffers that use the default.
3150
3151 * minibuf.c (Fset_minibuffer_window): Doc fix.
3152
3153 * fileio.c (choose_write_coding_system): Ignore auto_saving
3154 if using the visited file for auto saves.
3155 (Fwrite_region): Don't update SAVE_MODIFF
3156 if auto-saving in visited file.
3157
3e7cfcdc
KH
31582003-12-29 Kenichi Handa <handa@m17n.org>
3159
3160 * dispextern.h (face_font_available_p): Extern it.
3161
3162 * fontset.c (Voverriding_fontspec_alist): New variable.
3163 (lookup_overriding_fontspec): New function.
d7107586 3164 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
3e7cfcdc
KH
3165 (fontset_font_pattern): Likewise.
3166 (regulalize_fontname): New function.
3167 (Fset_fontset_font): Call regulalize_fontname.
3168 (Fset_overriding_fontspec_internal): New function.
d7107586
SM
3169 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
3170 Defsubr Sset_overriding_fontspec_internal.
3e7cfcdc
KH
3171
3172 * xfaces.c (face_font_available_p): New function.
3173
7abd90ea
RS
31742003-12-28 Richard M. Stallman <rms@gnu.org>
3175
3176 * buffer.c (Fother_buffer): Don't crash if BUF is nil
3177 or if its name is nil.
3178
3179 * buffer.c (Fkill_buffer): Don't delete auto-save file
3180 if it's the same as the visited file.
3181
de1d1a40
LT
31822003-12-28 Luc Teirlinck <teirllm@auburn.edu>
3183
3184 * coding.c (Fcheck_coding_system): Doc fix.
3185
204fb75e
KS
31862003-12-28 Kim F. Storm <storm@cua.dk>
3187
3188 * Makefile.in (eval.o): Depend on dispextern.h.
3189
3190 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
3191 image glyph using image's ascent.
3192 (mode_line_string): Return image glyph as object clicked on.
3193 Adjust y0 for image glyph using image's ascent.
3194
3195 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
3196 (struct glyph): New members, ascent and descent. Used to save
3197 this glyph's ascent and descent, instead of having.
3198 (struct glyph): Declare member face_id using FACE_ID_BITS.
3199 (find_hot_spot): Add prototype.
3200
3201 * keyboard.c (Qimage): Remove extern (now in lisp.h).
3202 (QCmap): Declare extern.
3203 (make_lispy_position): When position is inside image hot-spot,
3204 use hot-spot element's id as posn element.
3205
3206 * lisp.h (IMAGEP): New macro to test for image object type.
3207 (Qimage): Declare extern.
3208
3209 * macfns.c (Qimage): Remove extern (now in lisp.h).
3210 (valid_image_p, parse_image_spec): Use IMAGEP macro.
3211
3212 * macterm.c (Qface, Qmouse_face): Remove unused externs.
3213
3214 * w32fns.c (Qimage): Remove extern (now in lisp.h).
3215 (valid_image_p, parse_image_spec): Use IMAGEP macro.
3216
3217 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
3218
3219 * w32term.c (Qface, Qmouse_face): Remove unused externs.
3220
3221 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
3222 pointer types.
3223 (Qrelative_width, Qalign_to): Remove unused variables.
3224 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
3225 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
3226 image maps.
d7107586 3227 (x_y_to_hpos_vpos): Return glyph relative coordinates through
204fb75e
KS
3228 new dx and dy args.
3229 Remove buffer_only_p arg (always 0). Simplify code accordingly.
3230 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
3231 than row's ascent and height, to get sensible height on tall rows.
3232 (build_desired_tool_bar_string): Remove Qimage extern.
3233 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
3234 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
3235 image glyph is alone on the last line.
3236 (append_glyph, append_composite_glyph, produce_image_glyph)
d7107586 3237 (append_stretch_glyph): Set glyph's ascent and descent.
204fb75e 3238 (on_hot_spot_p): New function to check if position is inside an
d7107586 3239 rectangular, circular, or polygon-shaped image hot-spot,
204fb75e
KS
3240 (find_hot_spot): New function to search for image hot-spot.
3241 (Flookup_image_map): New defun to search for image hot-spot.
3242 (define_frame_cursor1): New aux function to determine frame pointer.
3243 (note_mode_line_or_margin_highlight, note_mouse_highlight):
3244 Handle `pointer' text property and :pointer image property to
3245 control frame pointer shape. Detect image hot-spots for pointer
3246 and help_echo properties. Use define_frame_cursor1.
3247 (note_mouse_highlight): Use Vvoid_text_area_pointer.
f63fd14e 3248 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
204fb75e
KS
3249 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
3250
3251 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
3252
3253 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
3254 (Qimage): Remove extern (now in lisp.h).
3255 (valid_image_p, parse_image_spec): Use IMAGEP macro.
3256
3257 * xmenu.c (show_help_event): Remove unused code.
3258
3259 * xterm.c (Qface, Qmouse_face): Remove unused externs.
3260 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
3261 row's ascent and descent, to get a sensible height on tall rows.
3262
fc052137
LT
32632003-12-25 Luc Teirlinck <teirllm@auburn.edu>
3264
3265 * minibuf.c (Fcompleting_read): Undo previous change.
3266
a64387ee 32672003-12-25 Lars Hansen <larsh@math.ku.dk>
b9148500
LH
3268
3269 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
3270 Arguments GCPRO'ed in call to file name handler.
3271
56ffd194
TTN
32722003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
3273
3274 * termcap.c (tgetst1): Scan for "%pN"; if all
3275 N are continuous in [1,9], remove all "%pN".
3276
5202d23d
JD
32772003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3278
f26fab36
JD
3279 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
3280
5202d23d
JD
3281 * xfaces.c (lface_fully_specified_p): Take into account that
3282 MAC OS always have unspecified stipple.
3283
8babaa59
TTN
32842003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
3285
3286 * tparam.c (tparam1): Add handling for `%pN', which
3287 means use param N for the next substitution.
3288
2d176448
TTN
32892003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
3290
3291 * xfaces.c (Fcolor_gray_p): Fix omission bug:
3292 In case `frame' is nil, consult the selected frame.
3293 (Fcolor_supported_p): Likewise.
3294
adb0708c
LT
32952003-12-23 Luc Teirlinck <teirllm@auburn.edu>
3296
000eeb15
LT
3297 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
3298 Doc fixes.
0dc72b11
LT
3299
3300 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
3301 and an integer. Adapt the introductory comment accordingly.
adb0708c
LT
3302 (Fread_from_minibuffer): Delete code moved into read_minibuf.
3303 Doc fix.
3304 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
3305 read_minibuf.
3306 (Fcompleting_read): Delete code moved into read_minibuf.
d7107586 3307 (Ftest_completion): Make it handle obarrays and hash tables correctly.
adb0708c 3308
2e4d132b
KH
33092003-12-03 Kenichi Handa <handa@m17n.org>
3310
3311 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
3312 encoding sequence.
3313
3999c705
KH
33142003-12-01 Kenichi Handa <handa@m17n.org>
3315
3316 * composite.c (syms_of_composite): Don't make the compostion hash
3317 table week.
3318
d344ecbb
LT
33192003-11-30 Luc Teirlinck <teirllm@auburn.edu>
3320
3321 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
3322 * textprop.c (Fget_char_property_and_overlay): New function.
3323 (syms_of_textprop): Defsubr it.
3324
03d6484e
JD
33252003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3326
019b1f0e
JD
3327 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
3328 to compile on terminal configuration.
3329
03d6484e
JD
3330 * fileio.c (Fread_file_name): Check use_file_dialog also before
3331 calling Fx_file_dialog.
3332
3333 * fns.c: use_file_dialog: New variable.
3334 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
3335
442d3fd0
KS
33362003-11-29 Kim F. Storm <storm@cua.dk>
3337
3338 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
3339 (syms_of_msdos): Don't intern and staticpro them.
3340
0f6a07a8
KS
33412003-11-27 Kim F. Storm <storm@cua.dk>
3342
3343 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
3344 coordinates relative to glyph at posn. If glyph is an image,
3345 return that as object at posn. Callers changed.
3346 (mode_line_string, marginal_area_string): Calculate and return
3347 pixel coordinates relative to glyph. Callers changed.
3348
3349 * dispextern.h (buffer_posn_from_coords, mode_line_string)
3350 (marginal_area_string): Fix prototypes.
3351 (window_box_left_offset, window_box_right_offset): Add prototypes.
3352
3353 * frame.h (get_specified_cursor_type, get_window_cursor_type):
3354 Remove prototypes.
3355
3356 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
3357
3358 * keyboard.c (make_lispy_position): Add x and y coordinates
3359 relative to the current glyph as 7th element of position.
3360 If glyph is an image, return it in the object element.
3361 (read_key_sequence): Skip checks for keymap property in cases
3362 where POSN_STRING is not a string (e.g. an image).
3363
3364 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
3365 (Vshow_text_cursor_in_void): New variable.
3366 (glyph_to_pixel_coords): Don't use negative hpos.
3367 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
3368 (append_stretch_glyph): Change ascent arg to be actual value
f63fd14e 3369 in pixels rather than ratio to height. Callers changed.
0f6a07a8
KS
3370 (calc_pixel_width_or_height): New aux function, implementing
3371 pixel based artihmetic for glyph widths and heights.
3372 (produce_stretch_glyph): Use calc_pixel_width_or_height for
3373 :width, :height, :align-to, and :ascent, thus allowing these to
3374 be specified in pixels as well as multiples of characters.
3375 Don't produce stretch glyphs with zero width or height.
3376 (get_specified_cursor_type): Declare static.
3377 (get_window_cursor_type): Declare static. Add glyph arg to be
3378 able to know when cursor is on an image; always substitute
3379 hollow-box cursor for filled-box cursor on images, to avoid
3380 negative images and flicker when blinking the cursor.
3381 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
3382 (note_mode_line_or_margin_highlight): Use non-text cursor rather
3383 than vertical scroll-bar cursor in display margins.
3384 (note_mouse_highlight): Use non-text cursor rather than text
3385 cursor in fringes and over images in the text area.
3386 Use non-text cursor when mouse pointer is outside editable text,
3387 i.e. in the void after end-of-line or end-of-buffer; this was
3388 already done for W32, but is now standard for all systems --
3389 user can toggle show-text-cursor-in-void to get old behaviour.
3390 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
3391 Vdisplay_pixels_per_inch.
3392
00498bfc
AS
33932003-11-25 Andreas Schwab <schwab@suse.de>
3394
3395 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
3396 EMACS_INT to not lose bits.
3397 (Ffillarray): Don't set bits beyond the size of a bool vector.
3398
edaa824d
KS
33992003-11-25 Kim F. Storm <storm@cua.dk>
3400
3401 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
3402 define this defun on systems that cannot use stderr as lvalue.
3403
74d6f539
GM
34042003-11-24 Gerd Moellmann <gerd@gnu.org>
3405
3406 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
3407 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
3408 ld's default is incompatible with unexec.
3409
6a1ff3ba
KS
34102003-11-23 Kim F. Storm <storm@cua.dk>
3411
63dc7c6b
KS
3412 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
3413 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
3414 (Fforce_window_update): New defun.
3415 (syms_of_window): Defsubr it.
3416 (Fset_window_margins, Fset_window_fringes): Doc fix.
3417
6a1ff3ba
KS
3418 * print.c (Fredirect_debugging_output): New defun.
3419 (syms_of_print): Defsubr it.
3420
aef109b7
LT
34212003-11-22 Luc Teirlinck <teirllm@auburn.edu>
3422
3423 * fns.c (Fset_char_table_parent): Doc fix.
3424
6a1ff3ba 34252003-11-22 Kim F. Storm <storm@cua.dk>
63ccbe21
KS
3426
3427 * dispnew.c (buffer_posn_from_coords): Return actual row/column
3428 for glyph clicked on, rather than (unused) pixel positions.
3429 (mode_line_string, marginal_area_string): Change X and Y args to
3430 pointers for returning actual row/column for glyph clicked on.
3431 Simplify and optimize loops.
3432
aef109b7
LT
3433 * dispextern.h (mode_line_string, marginal_area_string):
3434 Update prototypes.
63ccbe21
KS
3435
3436 * keyboard.c (make_lispy_position): New function for generating
3437 mouse click positions from frame and pixel coordinates.
3438 Enhanced to return buffer position and actual row/column for
3439 events outside the text area using updated mode_line_string and
3440 marginal_area_string functions.
3441 Return left-fringe and right-fringe clicks as such, rather than
3442 clicks in text area.
3443 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
3444 pixel_to_glyph_coords, as we never use the results.
3445 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
3446 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
3447 Eliminate unused code in WHEEL_EVENT handling.
3448 (make_lispy_movement): Use make_lispy_position.
3449
3450 * window.c (coordinates_in_window): Remove redundant tests.
3451 Fix returned X pixel value for left-margin.
3452
3453 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
3454 mode_line_string and marginal_area_string parameters.
3455
a64387ee 34562003-11-22 Lars Hansen <larsh@math.ku.dk>
930a9995 3457
d7107586
SM
3458 * w32.c (struct the_group, getgrgid): Add.
3459 * mac.c (struct my_group, getgrgid): Add.
aef109b7 3460
3dbf3426
LT
34612003-11-21 Luc Teirlinck <teirllm@auburn.edu>
3462
3463 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
3464
cae8ddbb 34652003-11-21 Lars Hansen <larsh@math.ku.dk>
ded4064f 3466
d7107586
SM
3467 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
3468 include in call to file name handler. Optionally translate numeric
3469 UID and GID to strings. Update docstring.
3470 (directory_files_internal): Add parameter ID-FORMAT.
3471 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
3472 include in call to file name handler and call to
3473 directory_files_internal. Update Docstring.
3474 (Fdirectory_files): Add dummy parameter in call to
3475 directory_files_internal.
3476 * lisp.h (Qinteger): Add.
3477 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
3478 (Ffile_attributes): Add parameter.
3479 * data.c (Qinteger): Export.
cae8ddbb 3480
2550b848
LT
34812003-11-21 Luc Teirlinck <teirllm@auburn.edu>
3482
3dbf3426 3483 * fns.c (Freverse, Fnreverse): Doc fixes.
2550b848 3484
88380018
KS
34852003-11-19 Kim F. Storm <storm@cua.dk>
3486
3487 * xdisp.c (init_iterator): Initialize it->start to position
3488 before reseating (in case start position is invisible).
3489 (init_to_row_start): Set it->start to row-start.
3490 (redisplay_window): Accept optional_new_start if start position
3491 is invisible (in which case IT_CHARPOS overshoots PT).
3492 (display_line): Setup row->start from it->start (rather than
3493 it->current which is wrong if first char on line is invisible).
3494 When done, reseat it->start to it->current (= start of next row).
3495 (expose_area): Fix exposure of text area when first char (e.g. TAB)
3496 is only partially visible.
3497
3498 * dispextern.h (struct it): New member start.
3499
854c1a59
SM
35002003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
3501
455316e2
SM
3502 * alloc.c (make_float, Fcons): Clear the markbit at init time.
3503 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
3504 of block_index outside of the macro call.
3505 (Fgarbage_collect): Remove null code.
3506
3507 * m/amdx86-64.h: Don't redefine XPNTR.
3508
854c1a59
SM
3509 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
3510 of VALMASK.
3511
3512 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
3513 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
3514 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
3515
3516 * lisp.h (VALMASK): Only define for non-union type.
3517 (MARKBIT): Remove.
3518 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
3519 (XTYPE): Define unconditionally.
3520 (XSETTYPE): Remove one more remnant.
3521 (EQ): Define differently for the union and non-union cases.
3522 (INTMASK): New bit mask.
3523 (struct Lisp_Marker): Move down to prepare for upcoming patch.
3524 (GC_EQ): Delegate to EQ.
3525
3526 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
3527
a0c6ef2d
JD
35282003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3529
3530 * xterm.c (x_window_to_scroll_bar): Move check of display to
3531 where window_id is compared.
3532
859492c4
KS
35332003-11-17 Kim F. Storm <storm@cua.dk>
3534
3535 * dispextern.h (struct it): New member first_vpos.
3536
3537 * xdisp.c (start_display): Set it->first_vpos.
3538 (try_window_id): Use first_vpos to start display in first _text_
3539 line if no reusable lines at start of window with header line.
3540
810f2256
JD
35412003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3542
7c402969 3543 * w32fns.c (XPutPixel):
854c1a59
SM
3544 * w32bdf.c (w32_init_bdf_font):
3545 * sunfns.c (sel_read):
3546 * process.c (Fmake_network_process):
3547 * frame.c (store_frame_param):
3548 * fontset.c (Fset_fontset_font):
3549 * emacs.c (shut_down_emacs):
a64387ee 3550 * ccl.c (ccl_driver): Remove period at end of error message.
7c402969 3551
a32e9bfd
JD
3552 * config.in: Regenerate.
3553
810f2256
JD
3554 * xfns.c (x_window_to_frame, x_any_window_to_frame)
3555 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
3556 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
3557 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
3558 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
3559
3560 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
3561
3562 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
3563 (XTmouse_position, handle_one_xevent): Pass Display* to
3564 x_window_to_scroll_bar.
3565 (x_window_to_scroll_bar): Take a Display* argument.
3566 Check that display for frame is equal to Display* argument.
854c1a59 3567 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
810f2256
JD
3568 x_display_info_for_display instead. Use Display in xev instead
3569 of GDK_DISPLAY.
3570 (x_dispatch_event): Call x_display_info_for_display.
f63fd14e 3571 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
810f2256
JD
3572 (x_connection_closed): Call xg_display_close for GTK.
3573 (x_term_init): Call xg_display_open for additional displays.
3574 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
3575 for GTK.
3576
3577 * xmenu.c (single_menu_item, mouse_position_for_popup)
3578 (x_activate_menubar): Formatting adjustments.
3579
3580 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
3581 adjustments.
3582
3583 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
3584 (xg_display_close, xg_create_default_cursor)
3585 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
3586 handling.
854c1a59
SM
3587 (xg_left_ptr_cursor): Remove.
3588 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
810f2256
JD
3589 cursor here.
3590 (xg_win_to_widget): Take Display* argument, call
3591 gdk_xid_table_lookup_for_display.
3592 (xg_create_frame_widgets, xg_get_file_name, create_menus)
3593 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
3594 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
3595 in FRAME_X_DISPLAY_INFO.
3596 (xg_get_scroll_id_for_window): Take Display* argument.
3597 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
854c1a59 3598 (xg_initialize): Remove xg_left_ptr_cursor.
810f2256
JD
3599
3600 * gtkutil.h: xg_get_scroll_id_for_window, xg_win_to_widget takes
3601 Display* argument also. Declare xg_display_open,
3602 xg_display_close, xg_create_default_cursor.
3603
0b03cc78
JD
36042003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3605
3606 * xterm.c (x_detect_focus_change): Do not change focus frame for
3607 Enter/LeaveNotify if the current focus frame has explicit focus.
3608
77e688fa
KS
36092003-11-14 Kim F. Storm <storm@cua.dk>
3610
3611 * dispnew.c (update_text_area): Fix redisplay error when hscroll
3612 is active and first glyph is only partially visible.
854c1a59 3613
dd429b03
KH
36142003-11-13 Kenichi Handa <handa@m17n.org>
3615
3616 * xdisp.c (select_frame_for_redisplay): New function.
3617 (redisplay_internal): Record also selected_frame for
3618 unwind_redisplay. Call select_frame_for_redisplay before
3619 redrawing each frame.
3620 (unwind_redisplay): Argument changed to a cons.
3621
6d9266f4
LT
36222003-11-12 Luc Teirlinck <teirllm@auburn.edu>
3623
3624 * fns.c (Fstring_to_multibyte): Doc fix.
3625
80060eb3
KH
36262003-11-11 Kenichi Handa <handa@m17n.org>
3627
3628 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
3629
74305183
JD
36302003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3631
3632 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
3633 program specified positions.
3634
cfda993e
JD
36352003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3636
3637 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
3638
df211069
KH
36392003-11-08 Kenichi Handa <handa@m17n.org>
3640
3641 * Makefile.in (lisp): Add kannada.el.
3642 (shortlisp): Likewise.
3643
4307d534
KH
36442003-11-07 Kenichi Handa <handa@m17n.org>
3645
854c1a59
SM
3646 * coding.c (coding_allocate_composition_data):
3647 Reset coding->composing to COMPOSITION_NO.
4307d534
KH
3648 (coding_restore_composition): Detect invalid composition data.
3649 Give Fstring and Fvector a Lispy integer, not C int.
3650
854c1a59
SM
36512003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
3652
3653 * floatfns.c (Flogb): Don't use VALMASK.
3654
3655 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
3656 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
3657
3658 * lisp.h (XINT): Move the cast to clarify what is going on.
3659 (GCTYPEMASK, XSETTYPE): Remove.
3660 (XGCTYPE): Make it an alias of XTYPE.
3661
d04103a1
JD
36622003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3663
3664 * xterm.c (x_term_init): Fix formatting.
3665
da18b5ac
JD
36662003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3667
3668 * gtkutil.h: Declare xg_have_tear_offs, remove xg_keep_popup
3669 and xg_did_tearoff.
3670
3671 * gtkutil.c: Remove variable xg_did_tearoff.
3672 (xg_have_tear_offs): New function.
3673 (tearoff_remove): Just decrease xg_detached_menus.
3674 (tearoff_activate): Increase xg_detached_menus and call
3675 tearoff_remove when tearoff is removed.
854c1a59 3676 (xg_keep_popup): Remove function.
da18b5ac
JD
3677 (create_menus): Give add_tearoff_p as argument to recursive
3678 call to create_menus.
3679 (xg_create_widget): Use variables instead of multiple
3680 strcmp. Tell create_menus to create tear off only for
3681 menu bar menus.
3682 (xg_update_menubar): Change title for a detached menu also.
3683 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
3684 of deep_p.
3685 (xg_initialize): Initialize xg_detached_menus, remove
3686 initialization of xg_did_tearoff.
3687
3688 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
3689 xg_have_tear_offs returns non-zero.
3690 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
3691 call to xg_keep_popup.
3692
64d4923e
AC
36932003-11-01 Andrew Choi <akochoi@shaw.ca>
3694
3695 * macterm.c (XTread_socket): Handle menubar selection and grow
3696 window only for mouseDown events.
854c1a59 3697
6cc8bc07
JD
36982003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3699
3700 * xterm.c (x_term_init): For GTK part, increase x_initialized
3701 to check for more than one display. Use error instead of return 0.
3702
043131c4
AC
37032003-10-31 Andrew Choi <akochoi@shaw.ca>
3704
854c1a59 3705 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
043131c4
AC
3706 (copy_dysymtab): Call it.
3707
bdda99a1
LT
37082003-10-31 Luc Teirlinck <teirllm@auburn.edu>
3709
3710 * eval.c (Fdefvaralias): Doc fix.
3711
800f42ff 37122003-10-26 Luc Teirlinck <teirllm@auburn.edu>
0d11571e
LT
3713
3714 * data.c (Fsetplist): Doc fix.
3715
ef35b389
LK
37162003-10-14 Lute Kamstra <lute@gnu.org>
3717
3718 * window.c (Fset_window_fringes): Clarify docstring.
07107abc 3719
ef35b389 37202003-10-14 Kim F. Storm <storm@cua.dk>
854c1a59 3721
07107abc
KS
3722 * window.c (Fset_window_margins): Simplify arg checking.
3723
f7005886
RS
37242003-10-13 Richard M. Stallman <rms@gnu.org>
3725
3726 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
3727 (print_partial_compiled_pattern): Replace assert with a printout.
3728 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
3729
3730 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
3731
3732 * window.c (Fset_window_margins): Allow only integers as args.
3733 (syms_of_window) <special-display-buffer-names, special-display-regexps>:
3734 Doc fixes.
3735
9c0c2af5
LK
37362003-10-13 Lute Kamstra <lute@gnu.org>
3737
3738 * window.c (Fset_window_fringes): Elaborate docstring.
3739
3f080e4e
AC
37402003-10-12 Andrew Choi <akochoi@shaw.ca>
3741
854c1a59 3742 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
a4887377 3743
3f080e4e
AC
3744 * s/darwin.h (GC_MARK_STACK): Define.
3745
0aa513ed
JD
37462003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3747
3748 * window.c (shrink_windows): New function.
3749 (size_window): Call shrink_windows to calculate window sizes when
3750 shrinking frame with more than one window.
3751
6aa8858a
KS
37522003-10-12 Kim F. Storm <storm@cua.dk>
3753
3754 * xdisp.c (compute_fringe_widths): Doc fix.
3755
c2164d91
KH
37562003-10-08 Kenichi Handa <handa@m17n.org>
3757
854c1a59 3758 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
c2164d91 3759
f82ac129
KH
37602003-10-07 Kenichi Handa <handa@m17n.org>
3761
3762 * coding.c (Qcoding_system_define_form): New variable.
3763 (syms_of_coding): Intern and staticpro it.
3764 (Fcheck_coding_system): Try to autoload the definition of
3765 CODING-SYSTEM.
3766
9296c947
LT
37672003-10-05 Luc Teirlinck <teirllm@auburn.edu>
3768
3769 * fns.c (Frequire): Doc fix.
3770
c1f0671a
JD
37712003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3772
3d8c3826
JD
3773 * xfns.c (Fx_send_client_event): New function as a base for
3774 manipulating extended window manager hints.
6dc15d98 3775 (Fx_send_client_event): Remove unused variable s.
3d8c3826 3776
068ae0fd
JD
3777 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
3778 that function is removed.
3779
3780 * xterm.c (x_set_offset): Use move_offset_left/top instead of
3781 x/y_pixels_outer_diff.
3782 (x_check_expected_move): Calculate move_offset_left/top.
3783
3784 * xterm.h (struct x_output): New members: move_offset_top/left.
3785
854c1a59 3786 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
068ae0fd
JD
3787 call x_set_offset directly.
3788
3789 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
3790
96f09305
JD
3791 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
3792
3793 * xterm.c (x_delete_display): Free font names and font_encoder
3794 in dpyinfo->font_table.
3795
854c1a59
SM
3796 * xfns.c (Fx_close_connection): Only call XFreeFont here.
3797 Move xfree of font names to x_delete_display.
96f09305 3798
c1f0671a
JD
3799 * xterm.h (struct x_display_info): New member, wm_type.
3800 (struct x_output): New members, expected_top/left and
3801 check_expected_move.
3802
3803 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
3804 is received.
854c1a59
SM
3805 (handle_one_xevent): Rename x_check_expected_move from
3806 x_check_fullscreen_move.
c1f0671a
JD
3807 (x_set_offset): Only add WM decoration sizes to modified_top/left
3808 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
854c1a59 3809 (x_check_expected_move): Rename from x_check_fullscreen_move.
c1f0671a
JD
3810 Removed fullscreen specific code. Use check_expected_move,
3811 expected_left/top instead. Also, set wm_type.
3812 (x_term_init): Initialize wm_type to unknown.
3813
3814 * frame.c (x_fullscreen_move): Remove addition of WM decoration
3815 sizes to move_x/y.
3816
be2fdba9
KH
38172003-10-03 Kenichi Handa <handa@m17n.org>
3818
3819 * macterm.c (x_load_font): Clear all members of FONTP before start
3820 filling them.
3821
38222003-10-02 Kenichi Handa <handa@m17n.org>
3823
3824 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
3825 before calling find_ccl_program_func. Call find_ccl_program_func
3826 only when fontp->font_encoder is not NULL.
3827
3828 * xterm.c (x_load_font): Clear all members of FONTP before start
3829 filling them.
3830
26a6e439
JPW
38312003-10-03 John Paul Wallington <jpw@gnu.org>
3832
3833 * keymap.c (map_keymap): Don't abort when binding is a vector.
3834
0d4c2dc2
JR
38352003-10-02 Jason Rumney <jasonr@gnu.org>
3836
854c1a59
SM
3837 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
3838 Sync dependencies with Makefile.in.
a63cf46f
JR
3839 (alloca.o): Remove.
3840
0d4c2dc2
JR
3841 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
3842 filling them.
3843
3844 * w32bdf.c (w32_load_bdf_font): Likewise.
3845
ab8f7d5c
RS
38462003-09-30 Richard M. Stallman <rms@gnu.org>
3847
3848 * term.c (set_tty_color_mode): Calculate current_mode_spec
3849 regardless of value of VAL.
3850
854c1a59 3851 * intervals.c (graft_intervals_into_buffer):
ab8f7d5c
RS
3852 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
3853 Handle over_used when splitting UNDER.
3854
a64387ee 38552003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ab8f7d5c
RS
3856
3857 * regex.c (regex_compile): Free the stack when returning from function.
3858
3413f972
KH
38592003-09-28 Kenichi Handa <handa@m17n.org>
3860
3861 * fontset.c (Finternal_char_font): Change return value to
3862 cons (FONT-NAME . GLYPH-CODE).
3863
a6eeaa81 38642003-09-28 Eli Zaretskii <eliz@gnu.org>
40409f05
EZ
3865
3866 * term.c (tty_setup_colors): Treat any negative argument as -1.
3867
f98ddc99
KH
38682003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
3869
3870 * process.c (send_process): Delete unused temp_buf.
3871
66c8f1a8
DL
38722003-09-26 Dave Love <fx@gnu.org>
3873
3874 * xterm.c (x_bitmap_mask): Declare.
3875
ca716c26
DL
38762003-09-25 Dave Love <fx@gnu.org>
3877
3878 * Makefile.in (fns.o): Depend on md5.h.
3879
fbe57420
KS
38802003-09-25 Kim F. Storm <storm@cua.dk>
3881
3882 * window.c (set_window_buffer): Fix redisplay problems when
3883 switching between buffers with different display margin widths.
3884
ef6ae4ff
KS
38852003-09-23 Kim F. Storm <storm@cua.dk>
3886
3887 * process.c (set_socket_option): Fix :bindtodevice option.
3888 (Fset_network_process_option): Update process contact list when
3889 setting option succeeds.
3890 (Fmake_network_process): Doc fix.
3891
68e03c1c
DL
38922003-09-23 Dave Love <fx@gnu.org>
3893
7146d1c1 3894 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
68e03c1c 3895
a6eeaa81 38962003-09-22 Eli Zaretskii <eliz@gnu.org>
2f809aae
EZ
3897
3898 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
3899 color mode is an integer number (it could be -1).
3900
8fe7d8c8
RS
39012003-09-22 Richard M. Stallman <rms@gnu.org>
3902
3903 * intervals.c (graft_intervals_into_buffer): Correct the main loop
3904 in the case where OVER is longer than UNDER.
3905
2f71b5ea
MY
39062003-09-22 Masatake YAMATO <jet@gyve.org>
3907
7146d1c1 3908 * window.c (Fset_window_scroll_bars): Validate the value of
2f71b5ea 3909 `vertical_type'.
7146d1c1 3910
0c4da023
KS
39112003-09-21 Kim F. Storm <storm@cua.dk>
3912
3913 * frame.c (Vdefault_frame_scroll_bars): New variable.
3914 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
3915 (syms_of_frame): DEFVAR_LISP it, and initialize according to
3916 window-system default scroll bar position.
3917
b648413b
KS
3918 * window.c (Fwindow_scroll_bars): Doc fix.
3919
8f5b9e34
JD
39202003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3921
854c1a59 3922 * xterm.c (x_set_offset): Take window manager decorations into account.
8f5b9e34 3923
b0f23edf
RS
39242003-09-19 Richard M. Stallman <rms@gnu.org>
3925
3926 * atimer.h: Don't include lisp.h.
3927 (P_): Define it here (as well as elsewhere).
3928
3929 * print.c (Fprin1_to_string): Move the PRINTPREPARE
3930 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
3931
3932 * data.c (Fvariable_binding_locus): New function.
3933 (syms_of_data): defsubr it.
3934 (Flocal_variable_p): Delete duplicate call to indirect_variable.
3935
e1283999
DL
39362003-09-18 Dave Love <fx@gnu.org>
3937
ad5f3636
DL
3938 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
3939
e1283999
DL
3940 * process.c (Fnetwork_interface_info): Fix type error.
3941 (Fnetwork_interface_list): Doc fix.
3942 (read_process_output, read_process_output): Delete unused var.
3943
b8c7fd71
KS
39442003-09-17 Kim F. Storm <storm@cua.dk>
3945
3946 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
3947 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
3948 (Fnetwork_interface_info): Check that ifreq struct has required
3949 fields before accessing them; this requires that those fields are
3950 defined as macros, which may be too restrictive on some platforms,
3951 but it is better than failing on other platforms.
3952 (syms_of_process): Only defsubr above fns when included.
3953
11e0a411
DL
39542003-09-17 Dave Love <fx@gnu.org>
3955
3956 * unexalpha.c: Don't include varargs.h.
3957
e9c50801
KS
39582003-09-17 Kim F. Storm <storm@cua.dk>
3959
3960 * process.c (Fset_process_sentinel): Add sentinel to childp plist
3961 for network process.
3962 (socket_options): Add `:' prefix to option names. Add optbit field.
3963 (set_socket_option): Remove no_error arg and special handling of s < 0.
3964 Return 1<<optbit for known option, 0 for unknown.
3965 Do not interpret 0 as false for boolean option (only nil).
3966 Pass failed option and value to report_file_error.
7146d1c1 3967 (Fset_network_process_options): Replace by Fset_network_process_option.
e9c50801
KS
3968 (Fset_network_process_option): New function to set just one option.
3969 (Fmake_network_process): Allow :coding arg to be a cons.
3970 Allow :server arg to be an integer specifying backlog size.
3971 Remove :options arg, and allow options to be specified directly
3972 as :KEY, VALUE pairs. Parse these options before binding socket.
3973 As before, :reuseaddr t is default for a server process, but this
3974 can now be disabled by specifying :reuseaddr nil.
3975 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
3976 (init_process): Availability of network options is now checked with
3977 simpler syntax (featurep 'make-network-process :OPTION); use loop to
3978 setup features.
3979 (syms_of_process): Fix defsubr's for the replaced functions.
3980
a0fc3644
DL
39812003-09-16 Dave Love <fx@gnu.org>
3982
3983 * Makefile.in: Depend on coding.h.
3984
6df2a645
KS
39852003-09-14 Kim F. Storm <storm@cua.dk>
3986
3987 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
3988 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
3989 (syms_of_process): Defsubr them.
3990
3991 * config.in: Regenerate.
7146d1c1
SM
3992
39932003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3994
3995 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
3996 * m/news-r6.h (XUNMARK): Remove.
3997 * m/mips.h (XUNMARK): Remove.
3998 * m/mips-siemens.h (XUNMARK): Remove.
3999 * m/iris4d.h (XUNMARK): Remove.
4000 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
4001
0930c1a1
SM
40022003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
4003
31003b9e
SM
4004 * lisp.h (VALBITS): Don't remove 1 for the markbit.
4005 (union Lisp_Object): Use unsigned int for types. Remove markbit.
4006 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
4007 (XTYPE): Use unsigned right-shift.
4008 (XMARKBIT, XMARK, XUNMARK): Remove.
4009
0930c1a1
SM
4010 * alloc.c (init_intervals, init_symbol, init_marker):
4011 Don't preallocate anything.
4012 (Fgarbage_collect, mark_object): Ignore the markbit.
4013
4014 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
4015
19bb0fcd 40162003-09-08 Lute Kamstra <lute@gnu.org>
5df034de
LK
4017
4018 * xdisp.c (pint2hrstr): New function.
4019 (decode_mode_spec): Add `%i' and `%I' specs.
4020 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
4021 for `mode-line-format'.
4022
03bb6a06
AS
40232003-09-07 Andreas Schwab <schwab@suse.de>
4024
4025 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
4026 avoid warning.
4027
a6eeaa81 40282003-09-07 Eli Zaretskii <eliz@gnu.org>
2063d89c 4029
0930c1a1 4030 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
2063d89c 4031
ed159bbf
KS
40322003-09-03 Kim F. Storm <storm@cua.dk>
4033
4034 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
4035 change (superseded by 2002-08-30 change); the default blink-off
4036 cursor is now again "no cursor".
4037
fe64a394
JR
40382003-09-01 Jason Rumney <jasonr@gnu.org>
4039
4040 * makefile.w32-in (alloca.o): Remove.
4041 (coding.o): Depend on intervals.h
4042 (emacs.o, bytecode.o): Depend on window.h
4043
c0175e24
DL
40442003-09-01 Dave Love <fx@gnu.org>
4045
4046 * Makefile.in (alloca.o): Remove commands.
4047 (coding.o): Depend on intervals.h composite.h window.h.
4048 (emacs.o): Depend on window.h keyboard.h keymap.h.
4049 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
4050 (bytecode.o): Depend on window.h.
4051
a24d4cb2
JR
40522003-08-31 Jason Rumney <jasonr@gnu.org>
4053
4bc2315e
JR
4054 * w32term.c (w32_per_char_metric): Allow cached metrics to be
4055 returned even when font_type is unknown.
4056
a24d4cb2
JR
4057 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
4058
9d35adc7
JD
40592003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4060
4061 * xterm.c (x_term_init): Initialize new fields in x_display_info.
4062
4063 * xterm.h (struct x_display_info): Add red/green/blue_bits and
4064 *_offset.
4065
4066 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
4067 calculate pixel value.
4068
6f68b035
GM
40692003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
4070
0930c1a1
SM
4071 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
4072 Don't tell redisplay display is accurate when it's actually been
4073 paused for pending input.
6f68b035 4074
4828b4d7
RS
40752003-08-29 Richard M. Stallman <rms@gnu.org>
4076
4077 * dispnew.c (adjust_glyph_matrix): Call window_box
4078 whenever W is nonzero.
4079
4080 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
4081 (Fkill_local_variable, Fmake_variable_frame_local)
0930c1a1 4082 (Flocal_variable_p, Flocal_variable_if_set_p):
4828b4d7
RS
4083 Use indirect_variable to trace thru variable aliases.
4084
4085 * config.in: Updated.
4086
4087 * callint.c (Fcall_interactively): Save and restore
4088 Vthis_command, Vthis_original_command, real_this_command,
4089 and current_kboard->Vlast_command.
4090
4091 * abbrev.c (Fexpand_abbrev): Insert before deleting.
4092
e019878d
GM
40932003-08-29 Gerd Moellmann <gerd@gnu.org>
4094
4095 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
4096
85478bc6
KH
40972003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
4098
0930c1a1 4099 * coding.c (decode_coding_iso2022): Initialize local variable c2.
85478bc6
KH
4100 (decode_coding_sjis_big5): Likewise.
4101
07ce82d3
JR
41022003-08-27 Jason Rumney <jasonr@gnu.org>
4103
d3703de3
JR
4104 * w32.c (sys_pipe): Protect against file descriptor overflow.
4105
ee4a01d1
JR
4106 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
4107
07ce82d3
JR
4108 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
4109
a64387ee 41102003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
72d19c66
LK
4111
4112 * xfns.c (Vgtk_version_string): New variable.
4113 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
4114
a6eeaa81 41152003-08-24 Eli Zaretskii <eliz@gnu.org>
5459e42a 4116
0930c1a1 4117 * term.c (term_init): Remove `const' from buffer_size's declaration.
3d8714e7 4118
5459e42a
EZ
4119 * Makefile.in (msdos.o): Depend on intervals.h.
4120
0930c1a1 4121 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
5459e42a 4122
231d6cfb
JD
41232003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4124
4125 * xterm.h (struct x_display_info): New fields: client_leader_window
4126 and Xatom_wm_client_leader.
4127
4128 * xterm.c (x_initialize): Move call to x_session_initialize to ...
4129 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
4130
4131 * xsmfns.c (create_client_leader_window): New function.
4132 (x_session_initialize): Call create_client_leader_window, take
4133 dpyinfo as argument.
4134
4135 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
4136
4137 * Makefile.in (xsmfns.o): Add more depenedencies.
4138
afa88464
DL
41392003-08-21 Dave Love <fx@gnu.org>
4140
4141 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
4142
f730033e
KH
41432003-08-21 Kenichi Handa <handa@m17n.org>
4144
4145 * term.c (term_init): Fix previous change; don't rely on the
4146 length of `buffer' if TERMINFO is defined.
4147
6dca786c
DL
41482003-08-20 Dave Love <fx@gnu.org>
4149
4150 * atimer.h: Include lisp.h.
4151
4152 * lisp.h (EMACS_LISP_H): New.
4153 (popup_activated_flag): Don't declare.
4154
4155 * alloca.c: Some merging with gnulib. Change logic and doc
4156 concerning (x)malloc/(x)free -- no longer Emacs-specific.
4157 [DO_BLOCK_INPUT]: Don't include lisp.h.
4158 (xmalloc, xfree): Declare.
4159 (malloc): Don't declare.
4160
0930c1a1 4161 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
6dca786c
DL
4162 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
4163 atimer.h, blockinput.h.
4164
4165 * alloc.c (lisp_align_malloc): Change type of `aligned'.
4166
4167 * alloca.s: Removed.
4168
3a06a6d9
RS
41692003-08-19 Gerd Moellmann <gerd@gnu.org>
4170
4171 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
4172 use -lncurses.
4173
4174 * term.c (term_init): Use a buffer of size 4096 for tgetent since
4175 FreeBSD returns something longer than 2044. Abort if the end of
4176 the buffer is overwritten.
4177
27eeee55
MB
41782003-08-19 Miles Bader <miles@gnu.org>
4179
4180 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
4181
2f297815
GM
41822003-08-19 Gerd Moellmann <gerd@gnu.org>
4183
f4446bbf
GM
4184 * alloc.c (lisp_align_malloc): Check for memory full when
4185 allocating ablocks, which also avoids freeing a pointer into an
4186 ablocks structure.
4187
4188 * puresize.h (BASE_PURESIZE): Increase to 1100000.
4189
0930c1a1 4190 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
2f297815 4191
0e7d7aae
RS
41922003-08-16 Richard M. Stallman <rms@gnu.org>
4193
4194 * editfns.c (Fencode_time): Doc fix.
4195
41962003-08-16 David Ponce <david@dponce.com>
4197
4198 * fileio.c (Fwrite_region): Fix conditional expression to issue
4199 the right message.
4200
42012003-08-16 Juri Linkov <juri@jurta.org> (tiny change)
4202
4203 * syntax.c (Fforward_word): Argument changed to optional.
0930c1a1 4204 Set default value to 1.
0e7d7aae 4205
5d551295
KH
42062003-08-15 Kenichi Handa <handa@m17n.org>
4207
4208 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
4209 what autoscaled.
4210 (best_matching_font): Once we find a better scalable font, set
4211 non_scalable_has_exact_height_p to 1.
4212 (try_font_list): Call try_alternative_families to try any family
4213 with the given registry.
4214
1661e56b
AS
42152003-08-09 Andreas Schwab <schwab@suse.de>
4216
f29181dc
AS
4217 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
4218
1661e56b
AS
4219 * print.c (print_string): Fix printing of multibyte string with
4220 nontrivial printcharfun.
4221
465aa50a
JD
42222003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4223
4224 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
4225
4226 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
4227
e430e5ba
KH
42282003-07-31 Kenichi Handa <handa@m17n.org>
4229
4230 * process.c (read_process_output): Return the actually read bytes
4231 instead of the result of decoding.
4232
97e7188e
KH
42332003-07-31 Kenichi Handa <handa@m17n.org>
4234
4235 * xterm.h (struct x_bitmap_record): New member have_mask.
4236
4237 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
4238 to 0.
4239 (x_create_bitmap_from_file): Likewise.
4240 (x_destroy_bitmap): Check have_mask member before freeing a mask.
4241 (x_destroy_all_bitmaps): Likewise.
4242 (x_create_bitmap_mask): Set have_mask member to 1.
4243
b53094d6
RS
42442003-07-30 Richard M. Stallman <rms@gnu.org>
4245
4246 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
4247
631f2082
JD
42482003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4249
4250 * gtkutil.c (xg_mark_data): Update calls to mark_object.
4251
c855f2ca
RS
42522003-07-29 Richard M. Stallman <rms@gnu.org>
4253
4254 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
4255 Conditionalize XIM code on HAVE_XIM.
4256
4257 * fns.c (Fclear_string): New function.
4258 (syms_of_fns): defsubr it.
4259
17e6d491
KH
42602003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp> (tiny change)
4261
0930c1a1 4262 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
17e6d491 4263
29ea8ae9
SM
42642003-07-22 Stefan Monnier <monnier@cs.yale.edu>
4265
4266 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
4267
4268 * buffer.c (delete_all_overlays): New function.
4269 * buffer.h (delete_all_overlays): Declare.
4270 * coding.c (run_pre_post_conversion_on_str):
4271 * print.c (temp_output_buffer_setup):
4272 * fileio.c (Finsert_file_contents):
4273 * minibuf.c (get_minibuffer): Use it.
4274
1dd7ccf2
AC
42752003-07-22 Andrew Choi <akochoi@shaw.ca>
4276
4277 * unexmacosx.c (unexec_regions_sort_compare):
4278 (unexec_regions_merge): New functions. Sort and merge unexec
4279 regions before dumping them.
4280
f57bd967
DL
42812003-07-22 Dave Love <fx@gnu.org>
4282
4283 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
4284
7cdee936
SM
42852003-07-21 Stefan Monnier <monnier@cs.yale.edu>
4286
4287 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
4288 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
4289 MARKBIT as the gcmarkbit for strings.
4290
e50886d3
RS
42912003-07-21 Richard M. Stallman <rms@gnu.org>
4292
4293 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
4294
29ea8ae9 4295 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
e50886d3
RS
4296 (syms_of_fns): Corresponding change.
4297
4298 * alloc.c (syms_of_alloc): Doc fixes.
4299
43002003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
4301
4302 * s/netbsd.h: Use -Wl syntax.
4303
fdc39b59
RS
43042003-07-17 Richard M. Stallman <rms@gnu.org>
4305
4306 * xterm.c (xim_initialize): Redo 6/24 change.
4307
9c53385f
SM
43082003-07-15 Stefan Monnier <monnier@cs.yale.edu>
4309
4310 * buffer.c (copy_overlays): Use EMACS_INT for positions.
4311 (Fswitch_to_buffer): Don't signal an error when switching to the same
4312 buffer in a dedicated window.
4313
4314 * alloc.c: Use bitmaps for cons, as was done for floats.
4315 (init_float, init_cons): Let the normal code allocate the first block.
4316 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
4317 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
4318 New macros.
4319 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
4320 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
4321 (live_cons_p): Check the pointer is not past the `conses' array.
4322 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
4323 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
4324 (survives_gc_p): Use CONS_MARKED_P and simplify.
4325 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
4326
dde13196
PE
43272003-07-13 Paul Eggert <eggert@twinsun.com>
4328
4329 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
4330 puts it into BSS instead, at least on Solaris 8 and 9.
4331 This is a valid optimization, and it may occur on other platforms,
4332 so Emacs should not assume that initializing a static variable to
4333 zero puts it into data.
4334 * alloc.c (pure, staticvec):
4335 Initialize these arrays to nonzero, so that they're not
4336 put into BSS by that optimization.
4337
a801bc34
SM
43382003-07-13 Stefan Monnier <monnier@cs.yale.edu>
4339
4340 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
4341 (lisp_align_malloc): Use posix_memalign is available.
4342 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
4343 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
4344 for consistency. Update users.
4345
0c8b2afa
RS
43462003-07-13 Richard M. Stallman <rms@gnu.org>
4347
4348 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
4349
668c2ab0
JB
43502003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
4351
4352 * xterm.c (x_bitmap_icon,x_wm_set_icon_pixmap): Modify to add mask,
4353 and use the Gtk+ function gtk_window_icon_from_file if available.
4354
4355 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
4356 handle mask of bitmaps.
4357 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
4358 mask property.
4359 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
4360
4361 * xterm.h (xg_set_icon): New function.
4362
800bebe3
RS
43632003-07-12 Paul Eggert <eggert@twinsun.com>
4364
4365 * unexelf.c (unexec): Consider a section to precede the .bss
4366 section if its addresses overlap that of .bss.
4367
69e38995
RS
43682003-07-12 Richard M. Stallman <rms@gnu.org>
4369
4370 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
4371
4372 * config.in (HAVE_CRTIN): Add #undef.
4373 (INLINE): Really inline only if OPTIMIZE is defined.
4374
4375 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
4376 END_FILES_1.
4377 (START_FILES_1, END_FILES_1): New macros (conditional).
a801bc34 4378 (LD_SWITCH_SYSTEM_TEMACS): Define.
69e38995
RS
4379
4380 * s/openbsd.h: Don't include bsd4-3.h.
a801bc34
SM
4381 (TERMINFO): Define.
4382 (LIBS_TERMCAP): Define.
4383 (LD_SWITCH_SYSTEM): Define (two definitions).
69e38995
RS
4384
4385 * xfns.c: Include libpng/png.h instead of png.h.
4386
f1d0c238
AS
43872003-07-11 Andreas Schwab <schwab@suse.de>
4388
4389 * buffer.c (modify_overlay): Update prototype.
4390 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
4391 Likewise.
4392
5f6bf5fe
SM
43932003-07-09 Stefan Monnier <monnier@cs.yale.edu>
4394
4395 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
4396 (struct interval): Move to intervals.h.
4397 (struct Lisp_Marker): Use EMACS_INT for position info.
4398 (forward_point): Remove prototype of defunct function.
4399 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
4400 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
4401 (syms_of_textprop, set_text_properties): Remove prototypes that are
4402 already in intervals.h.
4403
4404 * intervals.h (struct interval): Move from lisp.h.
4405 Use EMACS_INT for position and size info.
4406
4407 * coding.c: Include intervals.h for Fset_text_properties.
4408
4409 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
4410 position and length information.
4411
2765b457
SM
44122003-07-09 Stefan Monnier <monnier@cs.yale.edu>
4413
4414 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
4415 position and length information.
4416
2410d73a
SM
44172003-07-09 Stefan Monnier <monnier@cs.yale.edu>
4418
4419 Change overlays_after and overlays_before so the overlays themselves
4420 are linked into lists, rather than using cons cells. After all each
4421 Lisp_Misc already occupies 5 words, so we can add a `next' field to
4422 Lisp_Overlay for free and save up one cons cell per overlay (not
4423 to mention one indirection when traversing the list of overlay).
4424
4425 * lisp.h (struct Lisp_Overlay): New field `next'.
4426
4427 * buffer.h (struct buffer): Change overlays_before and overlays_after
4428 from Lisp lists of overlays to pointers to overlays.
4429
4430 * buffer.c (overlay_strings, recenter_overlay_lists):
4431 Fix typo in eassert in last commit.
4432 (unchain_overlay): New function.
4433 (add_overlay_mod_hooklist): Use AREF.
4434 (copy_overlays, reset_buffer, overlays_at, overlays_in)
4435 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
4436 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
4437 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
4438 (report_overlay_modification, evaporate_overlays, init_buffer_once):
4439 Adjust to new type of overlays_(before|after).
4440
4441 * alloc.c (mark_object): Mark the new `next' field of overlays.
4442 (mark_buffer): Manually mark the overlays_(after|before) fields.
4443
4444 * coding.c (run_pre_post_conversion_on_str):
4445 * editfns.c (overlays_around):
4446 * xdisp.c (load_overlay_strings):
4447 * fileio.c (Finsert_file_contents):
4448 * indent.c (current_column):
4449 * insdel.c (signal_before_change, signal_after_change):
4450 * intervals.c (set_point_both):
4451 * print.c (temp_output_buffer_setup): Use new type for
4452 overlays_(before|after).
4453
04812929
SM
44542003-07-08 Stefan Monnier <monnier@cs.yale.edu>
4455
4456 * buffer.c (report_overlay_modification): Don't run hooks while
4457 traversing the list of overlays.
4458
4459 * buffer.h (struct buffer): Use an int for overlay_center.
4460 (overlays_at, evaporate_overlays, recenter_overlay_lists)
4461 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
4462
4463 * buffer.c (reset_buffer, recenter_overlay_lists)
4464 (adjust_overlays_for_insert, adjust_overlays_for_delete)
4465 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
4466 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
4467 (overlays_at, evaporate_overlays, recenter_overlay_lists)
4468 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
4469
4470 * xdisp.c (fast_find_position): Remove unused var.
4471
4472 * cmds.c (Qexpand_abbrev): New sym.
4473 (syms_of_cmds): Initialize it.
4474 (internal_self_insert): Use it to call expand-abbrev.
4475
2e7ecf15
KS
44762003-07-09 Kim F. Storm <storm@cua.dk>
4477
f9711de4 4478 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
2e7ecf15 4479 was configured with --without-xim.
42f81f64 4480 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
2e7ecf15 4481
c6de56a0
RS
44822003-07-07 Richard M. Stallman <rms@gnu.org>
4483
4484 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
4485
4486 * alloc.c (Fgarbage_collect): Doc fix.
4487
b93fb365
KH
44882003-07-07 Nozomu Ando <nand@mac.com> (tiny change)
4489
4490 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
4491
bfe1a3f7
SM
44922003-07-06 Stefan Monnier <monnier@cs.yale.edu>
4493
04812929
SM
4494 * minibuf.c (read_minibuf): UNGCPRO before returning.
4495 (Ftry_completion, Fall_completions): Doc fix.
4496
bfe1a3f7
SM
4497 * alloc.c (live_float_p): Check that p is not past the `floats' array,
4498 now that `floats' is not the last element of the struct any more.
4499
ee79d1aa
JR
45002003-07-06 Jason Rumney <jasonr@gnu.org>
4501
4502 * w32term.h (ClipboardSequence_Proc): New type.
4503
4504 * w32fns.c (clipboard_sequence_fn): New variable.
4505 (globals_of_w32fns): Initialize it.
4506
4507 * w32select.c (last_clipboard_sequence_number): New variable.
4508 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
4509 number if possible.
4510
49723c04
SM
45112003-07-06 Stefan Monnier <monnier@cs.yale.edu>
4512
4698665f
SM
4513 * m/amdx86-64.h (MARKBIT):
4514 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
4515 MARKBIT and ARRAY_MARK_FLAG any more.
4516
4517 * m/hp800.h (XSETMARKBIT):
4518 * m/sr2k.h (XSETMARKBIT):
4519 * lisp.h (XSETMARKBIT): Remove unused macro.
4520
49723c04
SM
4521 * lisp.h (mark_object): Change prototype.
4522
4523 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
4524 (last_marked): Change accordingly.
4525 (mark_interval, mark_maybe_object, mark_maybe_pointer)
4526 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
4527 (mark_buffer): Update calls to mark_object.
4528
4529 * bytecode.c (mark_byte_stack):
4530 * fns.c (sweep_weak_table):
4531 * keyboard.c (mark_kboards): Update calls to mark_object.
4532
1d660eca
JR
45332003-07-06 Jason Rumney <jasonr@gnu.org>
4534
4535 * alloc.c (struct ablock): Only include padding when there is some.
4536
618b5ae4
SM
45372003-07-04 Stefan Monnier <monnier@cs.yale.edu>
4538
4539 * alloc.c (ALIGN): Add casts to simplify usage.
4540 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
4541 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
4542 (struct ablock, struct ablocks): New types.
4543 (free_ablock): New global var.
4544 (lisp_align_malloc, lisp_align_free): New functions.
4545 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
4546 (struct float_block): Reorder and add gcmarkbits.
4547 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
4548 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
4549 (init_float, make_float): Use lisp_align_malloc.
4550 (free_float, live_float_p): Don't use `type' any more.
4551 (make_float): Use FLOAT_UNMARK to access to mark bit.
4552 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
4553 Use FLOAT_MARKED_P to access the mark bit.
4554 (pure_alloc): Simplify use of ALIGN.
4555 (mark_object): Use FLOAT_MARK to access the mark bit.
4556 (gc_sweep): Use new macros to access the float's mark bit.
4557 (init_alloc_once): Init free_ablock.
4558
4559 * lisp.h (struct Lisp_Float): Remove unused field `type'.
4560
3ef06d12
SM
45612003-06-27 Stefan Monnier <monnier@cs.yale.edu>
4562
4563 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
4564 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
4565 (allocate_buffer): Move.
4566 (string_bytes): Don't mask markbit of `size_byte'.
4567 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
4568 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
4569 Use the `size' field of buffers (rather than the `name' field) for
4570 the mark bit, as is done for all other vectorlike objects.
4571 Use the new macros to access the mark bit of vectorlike objects.
4572
e81043aa
RS
45732003-06-26 Richard M. Stallman <rms@gnu.org>
4574
4575 * puresize.h (BASE_PURESIZE): Increment base size.
4576
4577 * xdisp.c (fast_find_position): Enable Gerd's new definition.
4578
4579 * xterm.c (xim_initialize): Undo previous change.
4580
2d0834cc
SM
45812003-06-26 Stefan Monnier <monnier@cs.yale.edu>
4582
4583 * alloc.c (survives_gc_p): Simplify.
4584
4585 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
4586
4587 * window.c (Fset_window_dedicated_p): Simplify.
4588 (display_buffer_1): Don't raise the win from which minibuf was entered.
4589 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
4590 (Fminibuffer_selected_window): Simplify.
4591
4592 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
4593
4594 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
4595 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
4596
4597 * insdel.c (check_markers, adjust_markers_for_delete)
4598 (adjust_markers_for_insert, adjust_markers_for_replace)
4599 (prepare_to_modify_buffer, RESTORE_VALUE):
4600 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
4601 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
4602 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
4603 * alloc.c (Fmake_marker, free_marker, gc_sweep):
4604 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
4605 * editfns.c (save_excursion_restore, transpose_markers):
4606 * window.c (delete_window):
4607 * xdisp.c (message_dolog): Update for new types.
4608
d54ae3d8
JD
46092003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4610
a5f696ac
JD
4611 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
4612 (realize_default_face): Use default_face_done_p for the force_p
2d0834cc 4613 argument to set_lface_from_font_name. Set default_face_done_p to one.
a5f696ac
JD
4614
4615 * frame.c (make_frame): Initialize default_face_done_p.
4616
4617 * frame.h (struct frame): Add default_face_done_p.
4618
d54ae3d8
JD
4619 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
4620 will be defined.
4621
2336fe58
SM
46222003-06-25 Stefan Monnier <monnier@cs.yale.edu>
4623
4624 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
4625 Initialize the new field `gcmarkbit'.
4626 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
4627 (mark_interval_tree): Don't mark the tree separately from the nodes.
4628 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
4629 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
4630 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
4631
4632 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
4633 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
4634 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
4635 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
4636 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
4637
bcea31c2
DL
46382003-06-24 Dave Love <fx@gnu.org>
4639
4640 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
4641
4642 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
4643 from gnulib.
4644
2601f59e
RS
46452003-06-21 Richard M. Stallman <rms@gnu.org>
4646
4647 * fileio.c (Fwrite_region): Alternate messages
4648 for append and partial write.
4649
4650 * keyboard.c (read_key_sequence): When converting upcase fn key to
4651 downcase, update fkey and keytran so `backspace' gets translated.
4652
4653 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
4654
4655 * process.c (wait_reading_process_input): Don't signal SIGIO
4656 in batch mode.
4657
b5d2c621
KH
46582003-06-17 Kenichi Handa <handa@m17n.org>
4659
4660 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
4661 composite.h.
4662
4663 * xselect.c: Don't include charset.h, coding.h, composite.h.
4664 (Qforeign_selection): New variable.
4665 (syms_of_xselect): Intern and static it.
4666 (selection_data_to_lisp_data): Return a unibyte string made from
4667 data with `foreign-selection' text property.
4668
6793bc63
SM
46692003-06-15 Stefan Monnier <monnier@cs.yale.edu>
4670
4671 * termhooks.h (EVENT_INIT): New macro.
4672
4673 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
4674
4675 * alloc.c (mark_kboards): Move to keyboard.c.
4676
4677 * keyboard.c (record_asynch_buffer_change, read_avail_input):
4678 * xterm.c (x_dispatch_event):
4679 * xmenu.c (find_and_call_menu_selection):
4680 * xdisp.c (handle_tool_bar_click):
4681 * w32menu.c (menubar_selection_callback):
4682 * sysdep.c (kbd_input_ast, read_input_waiting):
4683 * msdos.c (dos_rawgetc):
4684 * macterm.c (mac_check_for_quit_char):
4685 * macmenu.c (menubar_selection_callback):
4686 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
4687 data to kbd_buffer_store_event.
4688
b3ea810c
KS
46892003-06-15 Kim F. Storm <storm@cua.dk>
4690
4691 * xdisp.c (x_fix_overlapping_area): Always use area relative X
6793bc63 4692 to fix redisplay problem with tall characters (such as \e,AC\e(B).
b3ea810c 4693
b8f75eda
KG
46942003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
4695
4696 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
4697
ba92ce48
KH
46982003-06-12 Kenichi Handa <handa@m17n.org>
4699
4700 * fileio.c (Fwrite_region): Save and restore restriction.
4701
b80263be
DL
47022003-06-12 Dave Love <fx@gnu.org>
4703
4704 * alloca.c (alloca): Declare arg as size_t.
4705
6793bc63
SM
4706 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
4707 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
b80263be 4708
b23c0a83
DL
47092003-06-11 Dave Love <fx@gnu.org>
4710
4711 * search.c (shrink_regexp_cache): Use xrealloc.
4712 (syms_of_search): Use xmalloc.
4713
700e47c2
KS
47142003-06-10 Kim F. Storm <storm@cua.dk>
4715
4716 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
4717 Adjust phys_cursor.x to be relative to window box, rather than
4718 text area before checking -- to ensure cursor is redrawn when
4719 exposing window.
4720 Note: This also fixes a similar (older) bug if display margins
4721 are present.
4722
f11aa0b2
KH
47232003-06-06 Kenichi Handa <handa@m17n.org>
4724
4725 * coding.c (encoding_buffer_size): If coding->type is
4726 coding_type_ccl, double magnification on CRLF encoding.
4727
3d143690
JR
47282003-06-06 Jason Rumney <jasonr@gnu.org>
4729
4730 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
4731 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
4732
4733 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
4734 Mac too.
4735
f16205ca
DL
47362003-06-05 Dave Love <fx@gnu.org>
4737
b23c0a83
DL
4738 * strftime.c: Merge changes from gnulib.
4739
f16205ca
DL
4740 * mktime.c (__mktime_internal): Merge changes from gnulib
4741 involving year 69 and dst2.
4742
4743 Changes to merge with gnulib version and be consistent with the
4744 autoconf test:
4745
6793bc63
SM
4746 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
4747 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
f16205ca
DL
4748 [HAVE_LOCALE_H]: Include locale.h.
4749 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
4750
9b87a0bc
KS
47512003-06-05 Kim F. Storm <storm@cua.dk>
4752
4753 * window.c (coordinates_in_window): Convert X and Y to window
4754 relative coordinates inside mode-line and header-line parts.
4755 Convert X and Y to margin area relative coordinates inside left
4756 and right display margin parts.
4757
5a8a15ec
JR
47582003-06-05 Jason Rumney <jasonr@gnu.org>
4759
4760 * w32fns.c (add_system_logical_colors_to_map): New function.
4761 (Fx_open_connection): Use it.
4762
01ed8ff1
SM
47632003-06-04 Stefan Monnier <monnier@cs.yale.edu>
4764
4765 * process.c (allocate_pty): Revert part of the previous patch.
4766 (Faccept_process_output): Simplify.
4767
b427b65d
JR
47682003-06-04 Jason Rumney <jasonr@gnu.org>
4769
4770 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
4771
4772 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
4773 (lispy_mouse_wheel_names): Remove.
4774 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
4775 Always define drag_and_drop_syms.
4776
4777 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
4778 WHEEL_EVENT events.
4779
914a8c47
SM
47802003-06-03 Stefan Monnier <monnier@cs.yale.edu>
4781
01ed8ff1
SM
4782 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
4783
914a8c47
SM
4784 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
4785
adcb132c
JD
47862003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4787
4788 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
4789 menu item label.
4790
be781fa7
RS
47912003-06-03 Richard M. Stallman <rms@gnu.org>
4792
4793 * window.c (Fwindow_edges): Doc fix.
4794 (Fwindow_pixel_edges, Fwindow_inside_edges)
4795 (Fwindow_inside_pixel_edges): New functions.
4796 (syms_of_window): defsubr them.
4797
4798 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
4799 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
4800
914a8c47
SM
48012003-06-02 Stefan Monnier <monnier@cs.yale.edu>
4802
4803 * dispnew.c (Fsit_for): Don't lie about the number of args.
4804
5b07197a
DL
48052003-06-02 Dave Love <fx@gnu.org>
4806
4807 * callproc.c: Use HAVE_FCNTL_H, not USG5.
4808 (syms_of_callproc) <process-environment>: Doc fix.
4809
4810 * doc.c: Use HAVE_FCNTL_H, not USG5.
4811
4812 * xfaces.c (font_rescale_ratio): Fix for K&R.
4813
4814 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
4815
4816 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
4817
4818 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
4819
4820 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
4821 (xg_create_frame_widgets): Use ENCODE_UTF_8.
4822
d7107586 4823 * xterm.c (Qutf_8): Move to coding.c
5b07197a
DL
4824
4825 * xmenu.c (ENCODE_MENU_STRING): New.
4826 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
4827 Use it.
4828
4829 * coding.h (ENCODE_UTF_8): New.
4830 (Qutf_8): Declare.
4831
4832 * coding.c (Qutf_8): New.
4833 (syms_of_coding): Intern it.
4834
4835 * fns.c: Doc fixes.
4836
7335b336
KH
48372003-06-02 Kenichi Handa <handa@m17n.org>
4838
4839 * buffer.c (Fset_buffer_multibyte): Fix previous change.
4840
914a8c47
SM
48412003-06-01 Stefan Monnier <monnier@cs.yale.edu>
4842
4843 * lread.c (openp): Make sure STR is a string.
4844
9862c135
JR
48452003-06-01 David Ponce <david@dponce.com>
4846
4847 * termhooks.h (enum event_kind): Added new WHEEL_EVENT event.
4848 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
4849
4850 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
4851 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
4852 (discard_mouse_events): Discard WHEEL_EVENT events too.
4853 (lispy_wheel_names, wheel_syms): New.
4854 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
4855 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX
4856 defined.
914a8c47 4857 (make_lispy_event): Add WHEEL_EVENT handler.
9862c135
JR
4858
4859 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
4860 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
4861 WHEEL_EVENT events.
4862
f984e73e
JPW
48632003-05-31 John Paul Wallington <jpw@gnu.org>
4864
4865 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
4866 timer are in lisp/emacs-lisp.
4867
1efcd78f
KH
48682003-05-31 Kenichi Handa <handa@m17n.org>
4869
458c8af4
KH
4870 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
4871 region when a buffer is changed to unibyte.
4872
1efcd78f
KH
4873 * charset.h (VALID_LEADING_CODE_P): New macro.
4874 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
4875
778e2804
KH
4876 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
4877 is nonzero, accept multibyte form of eight-bit-control chars.
4878 (decode_composition_emacs_mule): Likewise.
4879 (decode_coding_emacs_mule): Likewise.
4880 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
4881 multibyte form of eight-bit-control chars.
4882
4883 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
4884 (Finsert_file_contents): If coding-system-for-read is bound to
4885 Qauto_save_coding, use the coding system emacs-mule with special
4886 setting for recovering a file.
4887 (choose_write_coding_system): On auto saving, use the coding
4888 system emacs-mule with special setting for auto saving.
4889 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
4890
034060e4
KH
48912003-05-30 Kenichi Handa <handa@m17n.org>
4892
4893 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
4894 properly before calling ccl_driver.
4895
778e2804 4896 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
034060e4
KH
4897
4898 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is
4899 nonzero.
4900 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
4901 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
4902
595f5aa5
GM
49032003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
4904
4905 * xfaces.c (realize_default_face): Do not abort if lface is
4906 non-existent - reverts change from 2003-05-19.
4907
103e0180
KH
49082003-05-29 Kenichi Handa <handa@m17n.org>
4909
4910 * coding.c (decode_coding_iso2022): Pay attention to the byte
4911 sequence of CTEXT extended segment, and retain those bytes as is.
4912
49132003-05-28 Kenichi Handa <handa@m17n.org>
4914
4915 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjusted for the name change
4916 of CODING_REPLACEMENT_CHARACTER.
4917 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
4918 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
4919 check this flag on encoding.
4920 (encode_coding_sjis_big5): Check
4921 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
4922 (Fset_terminal_coding_system_internal): Set
4923 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
4924 instead of setting CODING_FLAG_ISO_SAFE flag in
4925 terminal_coding.flags.
4926
4927 * coding.h (CODING_REPLACEMENT_CHARACTER): Renamed from
4928 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
4929 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
4930
ff6a3bfb 49312003-05-28 Richard M. Stallman <rms@gnu.org>
45f266dc 4932
ff6a3bfb
RS
4933 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
4934
4935 * eval.c (unbind_to): Move init of this_binding to separate statement.
45f266dc 4936
1963c428
KS
49372003-05-28 Kim F. Storm <storm@cua.dk>
4938
4939 * xdisp.c (expose_window): Fix error in calculation of
4940 window relative coordinates of area to redisplay.
4941
2b5d4601
JR
49422003-05-27 Jason Rumney <jasonr@gnu.org>
4943
4944 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
4945
1c64a4a2
JB
49462003-05-27 David Ponce <david@dponce.com>
4947
4948 Handle W32 mouse wheel events as mouse click events, like in X.
4949
4950 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
4951 MOUSE_WHEEL_EVENT anymore.
4952
4953 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
4954 Scrolling down/up the mouse wheel is respectively mapped to mouse
4955 button 4 and 5.
4956 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
4957 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
4958 WM_MOUSEWHEEL events.
4959
2d031b89
AS
49602003-05-27 Andreas Schwab <schwab@suse.de>
4961
20464fdf
AS
4962 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
4963
2d031b89
AS
4964 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
4965 partially visible line.
4966
4967 * alloc.c (Fgarbage_collect): Fix last change.
4968
97bc76d4
JPW
49692003-05-26 John Paul Wallington <jpw@gnu.org>
4970
4971 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
4972
56613f06
SM
49732003-05-25 Stefan Monnier <monnier@cs.yale.edu>
4974
4975 * window.c (Fset_window_buffer): Add type of `keep_margins'.
4976 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
4977
4978 * window.h (window_box_text_cols): Declare.
4979
4980 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
4981 (x_draw_vertical_border): Remove unused var `f'.
4982
4983 * xfaces.c (build_scalable_font_name): Remove `unused var
4984 pixel_size' warning.
4985
4986 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
4987
4988 * unexelf.c (unexec): Remove `unused var n' warning.
4989
4990 * strftime.c (my_strftime_localtime_r): Remove `defined but
4991 unused' warning.
4992
4993 * process.c (allocate_pty): Remove `unused var stb' and
4994 `cp might be used uninitialized' warnings.
4995
4996 * dispnew.c (mode_line_string): Remove unused var `f'.
4997
4998 * coding.c (find_safe_codings): Remove unused var `i'.
4999
5000 * bytecode.c (Fbyte_code): Remove `unused val' warning.
5001
5002 * buffer.c (Fkill_buffer): Remove unused var `list'.
5003
5004 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
5005
93421a1f
JD
50062003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5007
5008 * frame.c (make_frame): Condition want_fullscreen with
5009 HAVE_WINDOW_SYSTEM.
5010
c4b8aebc
JB
50112003-05-25 Juanma Barranquero <lektu@terra.es>
5012
5013 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
5014 (Fwindow_scroll_bars): Fix typo in docstring.
5015
0416870b
KS
50162003-05-24 Kim F. Storm <storm@cua.dk>
5017
5018 The following changes serve several purposes:
5019
5020 1) Swap the position of fringes and display margins in windows, i.e.
5021 the fringes are now displayed between the margins and the text area
5022 (by default).
5023
5024 2) Allow fringe and scroll bar parameters to be set per-buffer and
5025 per-window (like display margins). Such settings are now stored
5026 in window configurations, preserved when frames are resized, and
9018a88e 5027 copied when windows are split vertically or horizontally.
0416870b
KS
5028 Several bugs related to display margins have been fixed.
5029
5030 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
9018a88e 5031
0416870b
KS
5032 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
5033 rather than FRAME_WIDTH (FRAME_FONT (f)).
5034
5035 5) Introduce a consistent naming of variables, members and macros
5036 depending on whether their value is measured in pixels or in
5037 canonical columns/lines. Pixel dimensions are named *_width and
5038 *_height, while canonical columns/lines are named *_cols and
5039 *_lines. Pixel positions are named *_x and *_y, while column/line
5040 positions are named *_col and *_line.
5041
5042 6) Consolidate more of the X, W32, and MAC gui code by moving
5043 common data into struct frame, and generalize it for the non-gui
5044 case by using suitable defaults.
5045
5046 7) Cleanup and consolidate the macros controlling frame and window
5047 layout into frame.h and window.h, and generalize the use of the
5048 various window_box_* functions (enhanced to handle the new fringe
5049 position and the per-window fringe and scroll bar settings).
5050
5051 * frame.h (struct frame): Rename members height to text_lines,
5052 width to text_cols, window_height to total_lines, window_width to
5053 total_cols, new_height to new_text_lines, new_width to
5054 new_text_cols. All uses changed.
5055 (struct frame): New members which consolidate common members of
5056 x_output, w32_output, and mac_output structures: left_pos,
5057 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
5058 win_gravity, size_hint_flags, border_width, internal_border_width,
5059 line_height, fringe_cols, left_fringe_width, right_fringe_width,
5060 want_fullscreen. All uses changed.
5061 (struct frame): New member column_width contaning the canonical
5062 column width, analogue to line_height. All uses changed.
5063 (struct frame): Rename members scroll_bar_pixel_width to
5064 config_scroll_bar_width, and scroll_bar_cols to
5065 config_scroll_bar_cols. All uses changed.
5066 (struct frame): New member scroll_bar_actual_width which
5067 consolidates and renames the vertical_scroll_bar_extra member of
5068 x_output, w32_output, and mac_output structures. All uses changed.
5069 (FRAME_PIXEL_HEIGHT): Renamed from PIXEL_HEIGHT and moved
5070 from x/w32/macterm.h files. All uses changed. Also change code
5071 which referred to f->output_data...->pixel_height.
5072 (FRAME_PIXEL_WIDTH): Renamed from PIXEL_WIDTH and moved
f63fd14e 5073 from x/w32/macterm.h files. All uses changed. Also change code
0416870b
KS
5074 which referred to f->output_data...->pixel_width.
5075 (FRAME_LINES): Renamed from FRAME_HEIGHT. All uses changed.
5076 Also change code which referred to f->height.
5077 (FRAME_COLS): Renamed from FRAME_WIDTH. All uses changed.
5078 Also change code which referred to f->width.
5079 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
5080 to update new_text_lines and new_text_cols members directly.
5081 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Renamed from
5082 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
5083 (FRAME_CONFIG_SCROLL_BAR_COLS): Renamed from
5084 FRAME_SCROLL_BAR_COLS. All uses changed.
5085 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
5086 Renamed from FRAME_LEFT_SCROLL_BAR_WIDTH and
5087 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
5088 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
5089 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
5090 (FRAME_TOTAL_COLS): Renamed from FRAME_WINDOW_WIDTH.
5091 (SET_FRAME_COLS): Renamed from SET_FRAME_WIDTH.
5092 (FRAME_TOTAL_COLS_ARG): Renamed from FRAME_WINDOW_WIDTH_ARG.
5093 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
5094 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
5095 (FRAME_LINE_HEIGHT): Renamed from CANON_Y_UNIT. Unconditionally
5096 return line_height member (it now has proper value also for
5097 non-window frames).
5098 (FRAME_COLUMN_WIDTH): Renamed from CANON_X_UNIT. Unconditionally
5099 return new column_width member (rather than the default font width).
5100 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
5101 (FRAME_RIGHT_FRINGE_WIDTH): Renamed from FRAME_X_... and moved
5102 from x/w32/macterm.h files. Unconditionally return corresponding
5103 member of frame structure (they now have proper values also for
5104 non-window frames).
5105 (FRAME_TOTAL_FRINGE_WIDTH): Renamed from FRAME_FRINGE_WIDTH.
5106 Calculate return value from left and right widths.
5107 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
5108 internal_border_width member (has proper value for non-window frame).
5109 (FRAME_PIXEL_X_FROM_CANON_X): Renamed from PIXEL_X_FROM_CANON_X.
5110 (FRAME_PIXEL_Y_FROM_CANON_Y): Renamed from PIXEL_Y_FROM_CANON_Y.
5111 (FRAME_CANON_X_FROM_PIXEL_X): Renamed from CANON_X_FROM_PIXEL_X.
5112 (FRAME_CANON_Y_FROM_PIXEL_Y): Renamed from CANON_Y_FROM_PIXEL_Y.
5113 (FRAME_LINE_TO_PIXEL_Y): Renamed from CHAR_TO_PIXEL_ROW,
5114 consolidated from xterm.h, macterm.h, and w32term.h.
5115 (FRAME_COL_TO_PIXEL_X): Renamed from CHAR_TO_PIXEL_COL,
5116 consolidated from xterm.h, macterm.h, and w32term.h.
5117 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Renamed from
5118 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
5119 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Renamed from
5120 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
5121 (FRAME_PIXEL_Y_TO_LINE): Renamed from PIXEL_TO_CHAR_ROW
5122 consolidated from x/mac/w32term.h.
5123 (FRAME_PIXEL_X_TO_COL): Renamed from PIXEL_TO_CHAR_COL
5124 consolidated from x/mac/w32term.h.
5125 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Renamed from
5126 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
5127 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Renamed from
5128 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
5129
5130 * window.h (struct window): Rename members left to left_col,
5131 top to top_line, height to total_lines, width to total_cols,
5132 left_margin_width to left_margin_cols, right_margin_width to
5133 right_margin_cols, orig_height to orig_total_lines, orig_top to
5134 orig_top_line. All uses changed.
5135 (struct window): New members left_fringe_width, right_fringe_width,
5136 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
5137 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
5138 New macros primarily used to simplify other macros.
5139 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
5140 referred to XINT (w->width).
5141 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
5142 referred to XINT (w->height).
5143 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
5144 referred to XINT (w->width) * canon_x_unit.
5145 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
5146 referred to XINT (w->height) * canon_y_unit.
5147 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
5148 referred to XINT (w->left).
5149 (WINDOW_RIGHT_EDGE_COL): Renamed from WINDOW_RIGHT_EDGE. Change
5150 all uses and code that referred to XINT (w->left) + XINT (w->width).
5151 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
5152 referred to XINT (w->top).
5153 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
5154 referred to XINT (w->top) + XINT (w->height).
5155 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
5156 referred to XINT (w->left) * canon_x_unit.
5157 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
5158 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
5159 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
5160 referred to XINT (w->top) * canon_y_unit.
5161 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
5162 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
5163 (WINDOW_LEFTMOST_P): New macro.
5164 (WINDOW_BOX_LEFT_EDGE_COL): Renamed from WINDOW_LEFT_MARGIN.
5165 All uses changed.
5166 (WINDOW_BOX_RIGHT_EDGE_COL): Renamed from WINDOW_RIGHT_MARGIN.
5167 All uses changed.
5168 (WINDOW_BOX_LEFT_EDGE_X): Renamed from
5169 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
5170 Do not exclude left fringe width.
5171 (WINDOW_BOX_RIGHT_EDGE_X): Renamed from
5172 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
5173 Do not exclude fringe widths.
5174 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
5175 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
5176 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
5177 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
5178 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
5179 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
5180 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
5181 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
5182 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
5183 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
5184 New macros. Change code which referenced corresponding
5185 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
5186 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
5187 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
5188 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
5189 allow per-window scroll-bar settings.
5190 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
5191 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
5192 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
5193 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
5194 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
5195 FRAME_SCROLL_BAR_WIDTH.
5196 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
9018a88e 5197 (WINDOW_SCROLL_BAR_AREA_X): New macros.
0416870b
KS
5198 (WINDOW_HEADER_LINE_HEIGHT): Renamed from
5199 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
5200 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Renamed from
5201 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
5202 (WINDOW_BOX_TEXT_HEIGHT): Renamed from
5203 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
5204 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
5205 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
5206 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Moved here from dispextern.h.
5207 (WINDOW_LEFT_MARGIN_WIDTH): Renamed from
5208 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
5209 (WINDOW_RIGHT_MARGIN_WIDTH): Renamed from
5210 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
5211 (window_from_coordinates): Update prototype.
5212 (Fset_window_buffer): Update EXFUN.
5213 (set_window_buffer): Update prototype.
9018a88e 5214
0416870b 5215 * dispextern.h (struct glyph_matrix): Rename members window_left_x
9018a88e 5216 to window_left_col, window_top_y to window_top_line. All uses
0416870b
KS
5217 changed.
5218 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
5219 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
5220 internal_border_width is now set to 0 for non-window frames.
5221 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
5222 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
5223 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
5224 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
5225 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
5226 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
5227 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
5228 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
5229 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
9018a88e 5230 Move to window.h and renamed [see window.h changes].
0416870b
KS
5231 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
5232 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
9018a88e
SM
5233 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
5234 Use WINDOW_TOTAL_LINES.
0416870b
KS
5235 (frame_update_line_height): Remove prototype.
5236
5237 * buffer.h (struct buffer): Rename members measured in columns:
5238 left_margin_width to left_margin_cols, right_margin_width to
5239 right_margin_cols. All uses changed.
5240 New members left_fringe_width, right_fringe_width,
5241 fringes_outside_margins for per-buffer fringe settings.
5242 New members scroll_bar_width and vertical_scroll_bar_type for
5243 per-buffer scroll bar settings.
5244
5245 * buffer.c (init_buffer_once): Set buffer_defaults and
5246 buffer_local_flags for new buffer-local variables
5247 left_fringe_width, right_fringe_width, fringes_outside_margins,
5248 scroll_bar_width, and vertical_scroll_bar_type.
5249 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
5250 default-* variables for them.
5251
5252 * dispnew.c: Make (many) trivial substitutions for renamed and
5253 new macros in dispextern.h, frame.h and window.h.
5254 (mode_line_string): No need to adjust width for mode lines, as it
5255 is already adjusted by the caller.
5256 (marginal_area_string): Handle fringes inside/outside margins.
9018a88e 5257
0416870b
KS
5258 * frame.c: Make (many) trivial substitutions for renamed and
5259 new macros in dispextern.h, frame.h and window.h.
5260 (make_frame): Initialize left_fringe_width, right_fringe_width,
5261 fringe_cols, scroll_bar_actual_width, border_width,
5262 internal_border_width, column_width, line_height, x_pixels_diff,
5263 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
5264 members with values suitable for a non-window frames.
5265
5266 * gtkutil.c: Make (many) trivial substitutions for renamed and
5267 new macros in dispextern.h, frame.h and window.h.
9018a88e 5268
0416870b
KS
5269 * indent.c: Make (few) trivial substitutions for renamed and
5270 new macros in dispextern.h, frame.h and window.h.
5271
5272 * keyboard.c: Make (many) trivial substitutions for renamed and
5273 new macros in dispextern.h, frame.h and window.h.
5274 (make_lispy_event): Use window positions returned from
5275 window_from_coordinates when constructing the lisp event for
5276 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
5277 (incorrect) values locally.
5278 (make_lispy_movement): Use window positions returned from
5279 window_from_coordinates when constructing the lisp event, rather
5280 than calculating (incorrect) values locally.
5281
5282 * scroll.c: Make (some) trivial substitutions for renamed and
5283 new macros in dispextern.h, frame.h and window.h.
5284
5285 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
5286 scroll-bars.
5287
5288 * sysdep.c: Make (few) trivial substitutions for renamed and
5289 new macros in dispextern.h, frame.h and window.h.
5290
5291 * term.c: Make (some) trivial substitutions for renamed and
5292 new macros in dispextern.h, frame.h and window.h.
5293
5294 * widget.c: Make (few) trivial substitutions for renamed and
5295 new macros in dispextern.h, frame.h and window.h.
5296
5297 * window.c: Make (many) trivial substitutions for renamed and
5298 new macros in dispextern.h, frame.h and window.h.
5299 (make_window): Initialize new members
5300 left_margin_cols, right_margin_cols, left_fringe_width,
5301 right_fringe_width, fringes_outside_margins, scroll_bar_width,
5302 and vertical_scroll_bar_type.
5303 (coordinates_in_window): Adapted to new fringe/margin positions
9018a88e 5304 and per-window fringes and scroll-bars.
0416870b 5305 Fix bug related to incorrectly adjusting coordinates by
9018a88e 5306 frame's internal_border_width (the effect normally negible since
0416870b
KS
5307 the internal_border_width is typically 0 or 1 pixel, but very
5308 noticeable for an internal_border_width of e.g. 25 pixels).
5309 Upon successful return (other than ON_NOTHING), the coordinates
5310 are now always properly converted to window relative for the
5311 given display element.
5312 (window_from_coordinates): Add new parameters wx and wy to
5313 return the window relative x and y position in the returned
5314 window and part. A null arg means, don't return the position.
5315 All callers changed.
5316 (adjust_window_margins): New function which may reduce the width
5317 of the display margins if a window's text area is too small after
5318 resizing or splitting windows.
5319 (size_window): Fix bug that did not account for display margin
5320 widths when checking the minimum width of a window; use
5321 adjust_window_margins.
5322 (set_window_buffer): Call Fset_window_fringes and
5323 Fset_window_scroll_bars to setup per-window elements.
5324 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
5325 existing display margin, fringe widths, and scroll bar settings
9018a88e
SM
5326 (e.g. after splitting a window or resizing the frame).
5327 All callers changed.
0416870b
KS
5328 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
5329 (Fsplit_window): Duplicate original window's display margin,
5330 fringe, and scroll-bar settings; then call Fset_window_buffer with
5331 KEEP_MARGINS non-nil. This fixes a bug which caused a split
5332 window to only preserve the display margins in one of the windows.
c4b8aebc 5333 When splitting horizontally, call adjust_window_margins on both
0416870b 5334 windows to ensure that the text area of the new windows is non too
f9711de4 5335 narrow. This fixes a bug which could cause Emacs to trap if the
0416870b
KS
5336 width of the split window was less than the width of the display
5337 margins.
9018a88e
SM
5338 (window_box_text_cols): Renamed from window_internal_width.
5339 All uses changed. Adapt to per-window fringes and scroll bars.
0416870b
KS
5340 Fix bug that caused vertical separator to be subtracted also on
5341 window frames. Fix another bug that did not reduce the returned
5342 value by the columns used for display margins.
5343 (window_scroll_line_based): Fix bug related to scrolling too much
5344 when display margins are present (implicitly fixed by the fix to
5345 window_box_text_cols).
5346 (scroll_left, scroll_right): Fix bug related to scrolling too far
5347 by default when display margins are present (implicitly fixed by
5348 the fix to window_box_text_cols).
5349 (struct saved_window): Rename members left to left_col, top to
5350 top_line, width to total_cols, height to total_lines, orig_top to
5351 orig_top_line, orig_height to orig_total_lines. All uses changed.
5352 New members left_margin_cols, right_margin_cols,
5353 left_fringe_width, right_fringe_width, fringes_outside_margins,
5354 scroll_bar_width, and vertical_scroll_bar_type for saving
5355 per-window display elements.
5356 (Fset_window_configuration): Restore display margins, fringes,
5357 and scroll bar settings. This fixes a bug which caused display
5358 margins to be discarded when saving and restoring a window
5359 configuration.
5360 (save_window_save): Save display margins, fringes, and scroll bar
5361 settings. This fixes a bug which caused display margins to be
5362 discarded when saving and restoring a window configuration.
5363 (Fset_window_margins): Do nothing if display margins are not
5364 really changed. Otherwise, call adjust_window_margins to ensure
5365 the text area doesn't get too narrow. This fixes a bug which
f9711de4 5366 could cause Emacs to trap if setting display margins wider than
0416870b
KS
5367 the width of the window.
5368 (Fset_window_fringes): New defun to allow user to specifically set
5369 this window's fringe widths and position vs. display margins.
5370 (Fwindow_fringes): New defun to return window's actual fringe
5371 settings.
5372 (Fset_window_scroll_bars): New defun to allow user to specifically
5373 set this window's scroll bar width and position.
5374 (Fwindow_scroll_bars): New defun to return window's actual scroll
5375 bar settings.
5376 (compare_window_configurations): Also compare display margins,
5377 fringes, and scroll bar settings.
5378 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
5379
5380 * xdisp.c: Make (many) trivial substitutions for renamed and
5381 new macros in dispextern.h, frame.h and window.h.
5382 (window_box_width): Adapt to per-window fringes and scroll bars,
f63fd14e 5383 and new fringe vs. display margin position. Note that returned
0416870b
KS
5384 value is no longer guaranteed to be a whole multiple of the frame
5385 column width, since per-window fringes may now be any width.
5386 (window_box_left_offset): New function like window_box_left, but
5387 value is relative to left border of window (rather than frame).
5388 (window_box_right_offset): New function like window_box_right,
5389 but value is relative to left border of window.
5390 (window_box_left): Adapt to per-window fringes and scroll bars,
5391 and new fringe vs. display margin position. Simplify by using
5392 WINDOW_LEFT_EDGE_X and window_box_left_offset.
5393 (window_box): Allow null args for unnecessary return values;
5394 change/simplify relevant callers.
5395 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
9018a88e
SM
5396 and new fringe vs. display margin position.
5397 Use window_box_left_offset and window_box_right_offset
0416870b 5398 (get_glyph_string_clip_rect): Adapt to per-window fringes and
9018a88e
SM
5399 scroll bars, and new fringe vs. display margin position.
5400 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
0416870b
KS
5401 (draw_fringe_bitmap): Rework to handle per-window fringes and new
5402 fringe vs. display margin position.
5403 (hscroll_window_tree): Use window_box_width instead of window_box.
a64387ee
JB
5404 (redisplay_window): Adapt to per-window scroll bars.
5405 (draw_glyphs): Rework to handle per-window fringes and scroll
9018a88e
SM
5406 bars, and new fringe vs. display margin position.
5407 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
a64387ee 5408 (x_clear_end_of_line): Adapt to per-window fringes and scroll
0416870b
KS
5409 bars, and new fringe vs. display margin position. Fix bug which
5410 increased total width of full_width rows by width of scroll bars
5411 although window's total width already includes that.
5412 (x_fix_overlapping_area): Simplify using window_box_left_offset.
5413 (expose_area): Simplify using window_box_left_offset.
5414 (x_draw_vertical_border): Handle per-window scroll bar settings,
5415 mixing windows with left, right and no scroll bars.
5416
5417 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
5418 where it's used in x_list_fonts (for clarity).
5419 (frame_update_line_height): Remove unused function; functionality
5420 is now done directly when setting the default font in x_set_font.
5421
5422 * xfns.c: Make (many) trivial substitutions for renamed and
5423 new macros in dispextern.h, frame.h and window.h.
5424
5425 * xmenu.c: Make (some) trivial substitutions for renamed and
5426 new macros in dispextern.h, frame.h and window.h.
5427
5428 * xterm.h (struct x_output): Move members left_pos, top_pos,
5429 border_width, pixel_height, pixel_width, line_height,
5430 internal_border_width, vertical_scroll_bar_extra,
5431 left_fringe_width, right_fringe_width, fringe_cols,
5432 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
5433 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
5434 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
5435 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
5436 (PIXEL_WIDTH, PIXEL_HEIGHT)
5437 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
5438 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to
5439 frame.h and renamed [see frame.h changes].
5440 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
5441 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
5442 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h
5443 and renamed [see frame.h changes].
9018a88e 5444
0416870b
KS
5445 * xterm.c: Make (several) trivial substitutions for renamed and
5446 new macros in dispextern.h, frame.h and window.h.
5447 (x_draw_glyph_string_box): Adapt to per-window fringes and
5448 scroll-bars.
5449 (scroll_run): Adapt to new fringe position.
5450 (glyph_rect): Use window coordinates returned from
5451 window_from_coordinates rather than frame_to_window_pixel_xy.
5452 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
5453 scroll-bars.
5454 (handle_one_xevent): Simplify a USE_GTK conditional.
5455 (x_clip_to_row): Remove superfluous whole_line_p arg and code
5456 (fringes are now inside margins, i.e. always in the clipping area).
5457 All callers changed.
5458 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
5459 directly, then call compute_fringe_widths. Don't call
5460 frame_update_line_height.
5461
5462 * w32term.h (struct w32_output): Move members left_pos, top_pos,
5463 border_width, pixel_height, pixel_width, line_height,
5464 internal_border_width, vertical_scroll_bar_extra,
5465 left_fringe_width, right_fringe_width, fringe_cols,
5466 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
5467 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
5468 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
5469 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
5470 (PIXEL_WIDTH, PIXEL_HEIGHT)
5471 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
5472 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to
5473 frame.h and renamed [see frame.h changes].
5474 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
5475 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
5476 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h
5477 and renamed [see frame.h changes].
9018a88e 5478
0416870b
KS
5479 * w32term.c: Make (several) trivial substitutions for renamed and
5480 new macros in dispextern.h, frame.h and window.h.
5481 (x_draw_glyph_string_box): Adapt to per-window fringes and
5482 scroll-bars.
5483 (glyph_rect): Use window coordinates returned from
5484 window_from_coordinates rather than frame_to_window_pixel_xy.
5485 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
5486 scroll-bars.
5487 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
5488 (fringes are now inside margins, i.e. always in the clipping area).
5489 All callers changed.
5490 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
5491 directly, then call compute_fringe_widths. Don't call
5492 frame_update_line_height.
5493
5494 * w32console.c: Make (few) trivial substitutions for renamed and
5495 new macros in dispextern.h, frame.h and window.h.
5496
5497 * w32fns.c: Make (many) trivial substitutions for renamed and
5498 new macros in dispextern.h, frame.h and window.h.
5499
5500 * w32menu.c: Make (few) trivial substitutions for renamed and
5501 new macros in dispextern.h, frame.h and window.h.
5502
5503 * macterm.h (struct mac_output): Move members left_pos, top_pos,
5504 border_width, pixel_height, pixel_width, line_height,
5505 internal_border_width, vertical_scroll_bar_extra,
5506 left_fringe_width, right_fringe_width, fringe_cols,
5507 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
5508 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
5509 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
5510 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
5511 (PIXEL_WIDTH, PIXEL_HEIGHT)
5512 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
5513 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to
5514 frame.h and renamed [see frame.h changes].
5515 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
5516 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
5517 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h
5518 and renamed [see frame.h changes].
9018a88e 5519
0416870b
KS
5520 * macterm.c: Make (several) trivial substitutions for renamed and
5521 new macros in dispextern.h, frame.h and window.h.
5522 (x_draw_glyph_string_box): Adapt to per-window fringes and
5523 scroll-bars.
5524 (glyph_rect): Use window coordinates returned from
5525 window_from_coordinates rather than frame_to_window_pixel_xy.
5526 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
5527 scroll-bars.
5528 (x_clip_to_row): Remove superfluous whole_line_p arg and code
5529 (fringes are now inside margins, i.e. always in the clipping area).
5530 All callers changed.
5531 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
5532 directly, then call compute_fringe_widths. Don't call
5533 frame_update_line_height.
5534
5535 * macfns.c: Make (several) trivial substitutions for renamed and
5536 new macros in dispextern.h, frame.h and window.h.
9018a88e 5537 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
0416870b
KS
5538
5539 * macmenu.c: Make (few) trivial substitutions for renamed and
5540 new macros in dispextern.h, frame.h and window.h.
5541
5542 * msdos.h (struct x_output): Remove members left_pos, top_pos,
5543 and line_height, and use corresponding new members in struct
5544 frame. All uses changed.
5545 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
5546 superseeded by corresponding macros in frame.h.
5547
5548 * msdos.c: Make (several) trivial substitutions for renamed and
5549 new macros in dispextern.h, frame.h and window.h.
5550 (IT_note_mouse_highlight): Use updated window coordinates returned
9018a88e 5551 by window_from_coordinates, rather than adjusting them locally.
0416870b
KS
5552 (internal_terminal_init): No need to initialize line_height here;
5553 it now defaults to 1.
5554
9018a88e
SM
55552003-05-24 Stefan Monnier <monnier@cs.yale.edu>
5556
5557 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
5558 dropping `down' events.
5559
016bd3c0
AS
55602003-05-24 Andreas Schwab <schwab@suse.de>
5561
5562 * coding.c (find_safe_codings): Fix last change.
5563
4dacadcc
TTN
55642003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
5565
5566 * xfns.c (x_window): Fix typo from 2003-05-21 change.
5567
319830ce
SM
55682003-05-23 Stefan Monnier <monnier@cs.yale.edu>
5569
9018a88e
SM
5570 * xdisp.c (display_mode_element): Increase max depth.
5571 Simplify the error handling code. Use a different error string
5572 for the case where we hit the depth limit.
5573
319830ce
SM
5574 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
5575
5576 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
5577
55782003-05-21 Stefan Monnier <monnier@cs.yale.edu>
5579
5580 * intervals.c (get_local_map): Don't get char-property of previous
5581 point any more: get_pos_property already does it and better.
5582
c67de8ba
DL
55832003-05-21 Dave Love <fx@gnu.org>
5584
5585 [Merged from unicode branch.]
5586
5587 * xfns.c (x_window, x_window): Use use_xim.
5588
5589 * xterm.c (use_xim): Initialize.
5590 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
5591 (x_term_init): Maybe set use_xim.
5592
5593 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
5594
edd3ff1d
JR
55952003-05-21 Jason Rumney <jasonr@gnu.org>
5596
5597 * unexw32.c (_start): Remove _fmode initialization.
5598
5599 * emacs.c (main) [WINDOWSNT]: Move it here.
5600
463f55ee
DL
56012003-05-20 Dave Love <fx@gnu.org>
5602
5603 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
5604
af253914
RS
56052003-05-19 Richard M. Stallman <rms@gnu.org>
5606
5607 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
5608 as value for QCfont attribute.
5609 (realize_default_face): lface should already exist; crash if not.
5610 Specify 0 for FORCE_P when calling set_lface_from_font_name.
5611
5612 * frame.c (Fignore_event): Doc fix.
5613
1d211019
KH
56142003-05-19 Kenichi Handa <handa@m17n.org>
5615
5616 * coding.c (decode_coding_string): Handle post-read-conversion
5617 even if the coding doesn't require decoding.
5618
4dd68254
RS
56192003-05-18 Richard M. Stallman <rms@gnu.org>
5620
5621 * callproc.c (Fcall_process_region): Doc fix.
5622
14d87dc9
SM
56232003-05-17 Stefan Monnier <monnier@cs.yale.edu>
5624
deca5d96
SM
5625 * lread.c (Fload): Print a message if package is obsolete.
5626
14d87dc9
SM
5627 * window.c (Fselect_window): Add optional `norecord' arg.
5628 (select_window_1): Fold into Fselect_window.
5629 (select_window_norecord): New function.
5630 (temp_output_buffer_show): Use it. Preserve current buffer.
5631
5632 * window.h (Fselect_window): Update declaration.
5633
5634 * window.c (delete_window, Fother_window, Fset_window_configuration):
5635 * minibuf.c (read_minibuf):
5636 * macterm.c (x_new_focus_frame):
5637 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
5638 * callint.c (Fcall_interactively):
5639 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
5640
5641 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
5642
78f52183
DK
56432003-05-17 David Kastrup <dak@gnu.org>
5644
5645 * process.c (read_process_output): Back out change from 2003-03-09.
5646
14d87dc9
SM
56472003-05-17 Stefan Monnier <monnier@cs.yale.edu>
5648
5649 * editfns.c (get_pos_property): Don't assume that `object' = nil.
5650
5651 * textprop.c (text_property_stickiness): New arg `buffer'.
5652
5653 * intervals.h (text_property_stickiness): New arg `buffer'.
5654 (get_pos_property): Declare.
5655
5656 * intervals.c (get_local_map): Use get_pos_property, to obey
5657 stickiness and empty overlays.
5658 (create_root_interval, graft_intervals_into_buffer): Use BEG.
5659 (merge_properties, intervals_equal, merge_properties_sticky):
5660 Use XCAR, XCDR.
5661 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
5662
1fd1cc2f
RS
56632003-05-17 Richard M. Stallman <rms@gnu.org>
5664
4f9f637a
RS
5665 * minibuf.c (read_minibuf): If buffer is empty, record the default
5666 in the history.
5667 (Fminibuffer_complete_word): When deleting the overlap, take account
5668 of its real position.
5669
5670 * fns.c (map_char_table): Fix previous change.
5671
1fd1cc2f
RS
5672 * syntax.c (find_defun_start):
5673 When open_paren_in_column_0_is_defun_start,
5674 return beginning of buffer.
5675
5676 * lisp.h (map_char_table): Declare added arg.
5677
5678 * fns.c (map_char_table): New arg TABLE gets the master table.
5679 All calls changed.
5680 Process default and inheritance, resorting to Faref if necessary.
5681
5682 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
5683 (Faccessible_keymaps): Pass new arg to map_char_table.
5684
5685 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
5686
5687 * casetab.c (set_case_table): Pass new arg to map_char_table.
5688
5689 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
5690
5691 * lisp.h (specbinding_func): New typedef.
5692 (struct specbinding): Use specbinding_func, to put the `volatile'
5693 in the right place.
5694
5695 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
5696 to avoid GCC warning.
14d87dc9 5697
b4bd27c5
RS
56982003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org> (tiny change)
5699
14d87dc9 5700 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
b4bd27c5 5701
35fb885d
SM
57022003-05-15 Stefan Monnier <monnier@cs.yale.edu>
5703
5704 * keyboard.c (apply_modifiers): Don't fill the other cache.
5705
9a274fbd
SM
57062003-05-14 Stefan Monnier <monnier@cs.yale.edu>
5707
c55b5fad
SM
5708 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
5709
9a274fbd
SM
5710 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
5711 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
5712 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
5713 (Fset_window_configuration, Fcurrent_window_configuration)
5714 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
5715 (Fpos_visible_in_window_p, mark_window_cursors_off)
5716 (window_internal_height, window_internal_width, Frecenter)
5717 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
5718 (replace_buffer_in_all_windows, init_window_once, init_window)
5719 (syms_of_window, keys_of_window): Move from lisp.h.
5720 * lisp.h: Move window.c declarations to window.h.
5721
5722 * bytecode.c: Include window.h.
5723 * emacs.c: Include window.h.
5724
14d87dc9 5725 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
9a274fbd
SM
5726 (keyremap): Add `parent' field.
5727 (keyremap_step): Use it. Remove `parent' argument.
5728 (read_key_sequence): Setup and use the new `parent' field.
5729
fd93e331
SM
57302003-05-11 Stefan Monnier <monnier@cs.yale.edu>
5731
5732 * keyboard.c (adjust_point_for_property): Ensure termination.
5733
1c4001a1
SM
57342003-05-10 Stefan Monnier <monnier@cs.yale.edu>
5735
5736 * keyboard.c (follow_key): Remove dead variable `did_meta'.
5737 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
5738 duplicated handling of function-key-map and key-translation-map
5739 in read_key_sequence.
5740 (read_key_sequence): Use them.
5741
5742 * keyboard.c (adjust_point_for_property): Try harder to move point
5743 to the non-sticky end of an invisible property.
5744
5745 * xdisp.c (single_display_prop_intangible_p): Make `space' display
5746 property intangible as well.
5747
780379b1
AS
57482003-05-10 Andreas Schwab <schwab@suse.de>
5749
5750 * xmenu.c (single_menu_item): Change last parameter to void* to
5751 avoid warning.
5752
ca2de342
RS
57532003-05-09 Richard M. Stallman <rms@gnu.org>
5754
5755 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
5756 Bind Qinhibit_modification_hooks to t so there will be no GC.
5757 Rename local `tem' to `save_deactivate_mark'.
5758
5759 * eval.c (specpdl_ptr): Declare volatile.
5760 (unbind_to): Copy the whole binding and decrement specpdl_ptr
5761 before doing the work of unbinding it.
5762
5763 * lisp.h (struct specbinding): Declare elements volatile.
5764 (specpdl_ptr): Declare volatile.
5765
5766 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
5767
5768 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
5769 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
5770
347003be
DL
57712003-05-08 Dave Love <fx@gnu.org>
5772
5773 * coding.c (Vlast_coding_system_used): Doc fix.
5774
5adcec23
JR
57752003-05-07 Jason Rumney <jasonr@gnu.org>
5776
5777 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
5778 when system does not support them.
5779
5fe3b8a4
SM
57802003-05-05 Stefan Monnier <monnier@cs.yale.edu>
5781
5782 * fileio.c (Qwrite_region_annotate_functions): New var.
5783 (build_annotations): Use it to process the global part of the hook.
5784 (syms_of_fileio): Init and staticpro it.
5785
5786 * keyboard.c (safe_run_hooks_error): Display a message instead of
5787 silently ignoring the error.
5788
57892003-05-03 Stefan Monnier <monnier@cs.yale.edu>
5790
5791 * keyboard.c (input_available_signal): Mark static.
5792 (menu_bar_items): Use map_keymap.
5793 (menu_bar_one_keymap): Remove.
5794 (menu_bar_item): Adjust arglist (for use in map_keymap).
5795 Properly hide a second binding when not both are keymaps.
5796
5797 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
5798 (single_keymap_panes): Use it and map_keymap.
5799 (single_menu_item): Use skp as well.
5800
5801 * keymap.h (map_keymap_function_t): New type.
5802 (map_keymap): Declare.
5803
5804 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
5805 (map_keymap_call, Fmap_keymap): New functions.
5806 (syms_of_keymap): Defsubr map-keymap.
5807
4b1b4443
JD
58082003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5809
5810 * gtkutil.c (create_dialog, make_widget_for_menu_item)
5811 (make_menu_item, create_menus, xg_update_menu_item): Don't call
5812 ..._with_mnemonic functions for menu items.
5813
1f816871
KH
58142003-05-01 Kenichi Handa <handa@m17n.org>
5815
5816 * coding.c (coding_system_accept_latin_extra_p): Delete this
5817 function.
5818 (find_safe_codings): Pay attention to
5819 the property tranlsation-table-for-encode of each codings.
5820 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
5821
5ed6ba5b
SM
58222003-05-01 Stefan Monnier <monnier@cs.yale.edu>
5823
5824 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
5825
32c06229
SM
58262003-04-30 Stefan Monnier <monnier@cs.yale.edu>
5827
5828 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
5829
5830 * lisp.h (CHECK): Wrap args in parenthesis.
5831 (specbind): Fix doc: symbol = Qnil is not supported any more.
5832
5833 * bytecode.c (Fbyte_code) <unwind-protect>:
5834 Use Fprogn rather than 0 and Qnil.
5835
5836 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
5837 `double', and `triple' modifiers as well.
5838
ed3c3314
RS
58392003-04-30 Richard M. Stallman <rms@gnu.org>
5840
5841 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
5842
5843 * alloc.c (abort_on_gc): New variable.
5844 (Fgarbage_collect): Abort if abort_on_gc is set.
5845
5846 * lisp.h (abort_on_gc): Add decl.
5847
5848 * eval.c (Fsignal): Clear abort_on_gc.
5849
5850 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
32c06229 5851 Reinit FORMAT_START and END before second scan.
ed3c3314
RS
5852
5853 * xdisp.c (move_it_vertically_backward): Do the final big else
5854 even if nlines is 0.
5855
5856 * xdisp.c (redisplay_internal): Finish the per-frame loop
5857 even if redisplay is suspended by input.
5858
0b325c12
AC
58592003-04-24 Andrew Choi <akochoi@shaw.ca>
5860
5861 * macterm.c (x_list_fonts): Return all fonts that match if
5862 maxnames = -1.
5863
4e837cd0
KH
58642003-04-25 Kenichi Handa <handa@m17n.org>
5865
5866 * syntax.c (skip_chars): Fix previous change.
5867
9af7511a
KH
58682003-04-24 Kenichi Handa <handa@m17n.org>
5869
5870 * syntax.c (skip_chars): Make the code faster by using the common
5871 technique of *p, *stop, and *endp.
5872
e3b2c21f
JD
58732003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5874
5875 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
32c06229 5876 tool_bar_items so GTK tool bar expose callback does not access items
e3b2c21f
JD
5877 being updated.
5878
32c06229
SM
58792003-04-19 Stefan Monnier <monnier@cs.yale.edu>
5880
5881 * eval.c (Fapply): Undo last change and add a comment about why.
5882
c6464167
MB
58832003-04-18 Miles Bader <miles@gnu.org>
5884
5885 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
5886 pickier PARSE_MULTIBYTE_SEQ.
5887
e509f168
SM
58882003-04-17 Stefan Monnier <monnier@cs.yale.edu>
5889
5890 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
5891 Use XCDR, XCAR, CONSP.
5892 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
5893 (Fapply): Remove unnecessary GCPRO.
5894
5895 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
5896
5897 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
5898
5899 * buffer.h: Don't hardcode BEG==1.
5900
5901 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
5902
5ceea398
RS
59032003-04-16 Richard M. Stallman <rms@gnu.org>
5904
5905 * xdisp.c (try_window, try_window_reusing_current_matrix):
5906 When at end of window, set window_end_pos to Z-ZV.
5907
5908 * buffer.c (Foverlay_recenter): Doc fix.
5909
e509f168
SM
59102003-04-14 Stefan Monnier <monnier@cs.yale.edu>
5911
5912 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
5913
d243e605
AC
59142003-04-14 Andrew Choi <akochoi@shaw.ca>
5915
5916 * macterm.c (mac_check_for_quit_char): Don't check more often than
5917 once a second.
5918
6901b111
SM
59192003-04-11 Stefan Monnier <monnier@cs.yale.edu>
5920
5921 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
5922 specially, so that they can't hide an implicit switch-frame event.
5923 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
5924 (head_table): Use switch-frame as event_kind for select-window.
5925 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
5926
5927 * editfns.c (Fformat): Lisp_Object/int mixup.
5928 (format2): Remove unused var numargs.
5929
e301806f 59302003-04-11 Kenichi Handa <handa@m17n.org>
aa95b710 5931
6901b111 5932 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
aa95b710
KH
5933 (Qafter_insert_file_set_coding): New variable.
5934 (syms_of_fileio): Initialize and staticpro it. Delete declaration
5935 for after-insert-file-adjust-coding-function.
5936 (Finsert_file_contents): Call Qafter_insert_file_set_coding
5937 instead of Vafter_insert_file_adjust_coding_function.
5938
38914424
KH
59392003-04-11 Kenichi Handa <handa@m17n.org>
5940
5941 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
5942
5943 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
5944 string. Callers changed.
5945
59462003-04-10 Kenichi Handa <handa@m17n.org>
a288d979 5947
6901b111 5948 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
a288d979 5949 (syms_of_fileio): Declare it as a lisp variable.
6901b111
SM
5950 (Finsert_file_contents):
5951 Call Vafter_insert_file_adjust_coding_function before calling
a288d979
KH
5952 decode-format.
5953
f979dc05
JD
59542003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5955
5956 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
5957 get GtkAdjustment as widget now is a GtkRange.
5958
5959 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
5960 GtkRange to avoid memory leak.
5961
f8c6b4c2 59622003-04-09 Kenichi Handa <handa@m17n.org>
cb98871c 5963
50ebc53d
KH
5964 * xfaces.c (Vface_font_rescale_alist): New variable.
5965 (struct font_name): New member rescale_ratio.
5966 (font_rescale_ratio): New function.
6901b111 5967 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
50ebc53d
KH
5968 (better_font_p): On comparing point sized, pay attention to
5969 recale_ratio member of fonts.
5970 (build_scalable_font_name): Reflect font->rescale_ratio in the
5971 font name.
6901b111 5972 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
50ebc53d 5973
cb98871c
KH
5974 * lread.c (read1): Before calling index, check if the 2nd
5975 arguemnt is in ASCII range.
5976
4773b8ca
RS
59772003-04-08 Richard M. Stallman <rms@gnu.org>
5978
b0ada147
RS
5979 * fileio.c (Ffile_symlink_p): Doc fix.
5980
5981 * editfns.c (Fformat): Translate positions of text properties
5982 in the format string to apply them to the result.
5983
4773b8ca
RS
5984 * fileio.c (Finsert_file_contents): Doc fix.
5985 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
5986
59872003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
6901b111 5988
4773b8ca
RS
5989 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
5990
e8f25745 59912003-04-08 Steven Tamm <steventamm@mac.com>
b0ada147 5992
e8f25745
ST
5993 * mac.c (init_mac_osx_environment): Switch libexec and bin so
5994 that self-contained application finds libexec files.
5995
f8c6b4c2 59962003-04-08 Kenichi Handa <handa@m17n.org>
2310d84c 5997
6901b111
SM
5998 * coding.c (code_convert_region_unwind):
5999 Set Vlast_coding_system_used to the argument.
2310d84c
KH
6000 (code_convert_region): If post-read-conversion function changed
6001 the value of last-coding-sytem, keep the new value in
6002 coding->symbol so that it won't be overridden.
6003 (run_pre_post_conversion_on_str): Likewise.
7c086845
KH
6004 (coding_system_accept_latin_extra_p): New function.
6005 (find_safe_codings): Pay attention to characters registered in
6006 latin-extra-code-table.
2310d84c 6007
39c9a034
TTN
60082003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
6009
6010 * Makefile.in (md5.o): Add missing dependency info.
6011
eb67c5d6
RS
60122003-04-06 Richard M. Stallman <rms@gnu.org>
6013
6014 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
6015
6016 * marker.c (verify_bytepos): New function.
6017
6018 * intervals.c (set_intervals_multibyte_1): When becoming
6019 multibyte, adjust right and left child sizes to a whole set of
6020 characters. If an interval gets zero total-length, delete it.
6021 If an interval consists of just its children, delete one of them.
6022
6023 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
6024 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
39c9a034 6025
eb67c5d6
RS
6026 * alloc.c: (VALIDATE_LISP_STORAGE): Macro deleted.
6027 All calls deleted.
6028 (lisp_malloc): Do the work here directly.
6029
b1f81fc5
JB
60302003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
6031
6032 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
6033 char tables.
6034
60352003-04-04 Kenichi Handa <handa@m17n.org>
aa8b70ae
KH
6036
6037 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
6038 destructively change "%S" to "%s".
6039
774666fb
MB
60402003-04-03 Miles Bader <miles@gnu.org>
6041
6042 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
6043 always set.
6044
19c37f01
DL
60452003-04-01 Dave Love <fx@gnu.org>
6046
6047 * xfns.c (xpm_lookup_color): Grok "opaque".
6048
2f4b24c3
AC
60492003-03-31 Andrew Choi <akochoi@shaw.ca>
6050
6051 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
6052 parent window ID.
6053
6054 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
6055
6056 * macterm.h (struct mac_output): Define x_pixels_diff and
6057 y_pixels_diff.
b1f81fc5 6058
9443fcf6
JB
60592003-03-31 Juanma Barranquero <lektu@terra.es>
6060
6061 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
6062 blockinput.h and files included from it.
6063
e072891b
KS
60642003-03-31 Kim F. Storm <storm@cua.dk>
6065
6066 The following changes consolidates the common code related to
6067 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
6068 files into frame.c.
9443fcf6 6069
e072891b
KS
6070 * frame.c: Include blockinput.h.
6071 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
6072 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
6073 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
6074 related vars here.
6075 (struct frame_parm_table, frame_parms): New table for describing
6076 frame parameters and their associated Q-variable.
6077 The order of the parameters corresponds to the sequence of the
6078 frame_parm_handlers table in redisplay_interface.
6079 (x_fullscreen_move, x_set_frame_parameters)
6080 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
6081 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
6082 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
6083 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
6084 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
6085 Generic functions for processing of frame parameters.
6086 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
6087 (display_x_get_resource, x_get_resource_string): Functions for
6088 generic access to X resources.
6089 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
6090 (x_default_parameter, Fx_parse_geometry): Functions for generic
6091 access to frame parameters.
6901b111
SM
6092 (x_figure_window_size): Generic calculation of frame size.
6093 Fixed to add space needed for tool bar. Also setup size_hint_flags.
e072891b
KS
6094 (syms_of_frame): Intern and staticpro frame parameter variables.
6095 Defvar_lisp Vx_resource_class and Vx_resource_name here.
6096 Defsubr Sx_get_resource and Sx_parse_geometry.
9443fcf6 6097
e072891b
KS
6098 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
6099 parameter related vars defined in frame.c.
6100 (EMACS_CLASS): Define here.
6101 (enum FULLSCREEN_*): Define here.
6102 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
6103 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
6104 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
6105 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
6106 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
6107 (x_set_visibility, x_set_autoraise, x_set_autolower)
6108 (x_set_unsplittable, x_set_vertical_scroll_bars)
6109 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
6110 (x_figure_window_size): Add prototypes.
6111
6112 * dispextern.h (frame_parm_handler): New typedef.
6113 (struct redisplay_interface): New member frame_parm_handlers.
6114 (enum resource_types): Move declaration here.
6115 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
6116 (x_default_parameter): Add prototypes.
6117
6118 * window.c: Remove extern decl for frame parameter vars.
6119 (change_window_heights): New generic function;
6120 replaces x_change_window_heights. All users changed.
6121
6122 * window.h (change_window_heights): Add prototype.
6123
6124 * xfaces.c: Remove extern decl for frame parameter vars.
6125
6126 * xterm.h (EMACS_CLASS): Remove. Use generic define.
6127 (struct w32_display_info): Fix type of xrdb member.
6128 (enum FULLSCREEN_*): Remove.
6129 Remove prototypes for generic functions (in frame.h).
6130
6131 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
6132 parameters now defined in frame.h and frame.c.
f63fd14e 6133 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
6134 (enum x_frame_parms): Remove (bogus, unused enum).
6135 (check_x_display_info): Make non-static (for frame.c).
6136 (struct x_frame_parm_table, x_frame_parms): Remove.
6137 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
6138 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
6139 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
6140 (x_change_window_heights, x_set_autoraise, x_set_autolower)
6141 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
6142 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
6143 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
6144 Remove. Use generic functions instead.
6145 (enum resource_types): Remove.
6146 (x_set_scroll_bar_default_width): New global function (for frame.c).
6147 (Fx_create_frame): Depend on x_figure_window_size to add space for
6148 toolbar and setup size_hint_flags.
6149 (x_frame_parm_handlers): New table for redisplay_interface.
6150 (syms_of_xfns): Don't intern/staticpro removed vars.
9443fcf6 6151
e072891b 6152 * xterm.c: Remove unnecessary extern declarations.
f63fd14e 6153 (x_fullscreen_adjust): Remove. Use generic instead.
e072891b
KS
6154 (x_redisplay_interface): Add x_frame_parm_handlers member.
6155
6156 * w32gui.h (XrmDatabase): New (dummy) typedef.
6157
6158 * w32term.h (EMACS_CLASS): Remove. Use generic define.
6159 (struct w32_display_info): Fix type of xrdb member.
6160 (enum FULLSCREEN_*): Remove.
6161 (x_fullscreen_adjust): Remove prototype.
6162
6163 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
6164 parameters now defined in frame.h and frame.c.
f63fd14e 6165 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
6166 (enum x_frame_parms): Remove (bogus, unused enum).
6167 (check_x_display_info): Make non-static (for frame.c).
6168 (struct x_frame_parm_table, x_frame_parms): Remove.
6169 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
6170 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
6171 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
6172 (x_change_window_heights, x_set_autoraise, x_set_autolower)
6173 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
6174 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
6175 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
6176 Remove. Use generic functions instead.
6177 (enum resource_types): Remove.
6178 (x_set_scroll_bar_default_width): New global function (for frame.c).
6179 (Fx_create_frame): Depend on x_figure_window_size to add space for
6180 toolbar and setup size_hint_flags.
6181 (w32_frame_parm_handlers): New table for redisplay_interface.
6182 (syms_of_w32fns): Don't intern/staticpro removed vars.
9443fcf6 6183
e072891b
KS
6184 * w32term.c: Remove unnecessary extern declarations.
6185 (x_fullscreen_adjust): Remove. Use generic instead.
6186 (x_redisplay_interface): Add w32_frame_parm_handlers member.
6187
6188 * w32reg.c (x_get_string_resource): Use XrmDatabase.
6189
6190 * macgui.h (XrmDatabase): New (dummy) typedef.
6191
6192 * macterm.h (EMACS_CLASS): Remove.
6193 (struct mac_display_info): Add xrdb member.
6194 (struct mac_output): Add want_fullscreen member.
6195
6196 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
6197 parameters now defined in frame.h and frame.c.
f63fd14e 6198 (Vx_resource_name): Remove. Use generic var.
e072891b
KS
6199 (check_x_display_info): Make non-static (for frame.c).
6200 (struct x_frame_parm_table, x_frame_parms): Remove.
6201 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
6202 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
6203 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
6204 (x_change_window_heights, x_set_autoraise, x_set_autolower)
6205 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
6206 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
6207 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
6208 Remove. Use generic functions instead.
6209 (enum resource_types): Remove.
6210 (x_set_scroll_bar_default_width): New global function (for frame.c).
6211 (mac_frame_parm_handlers): New table for redisplay_interface.
6212 (syms_of_macfns): Don't intern/staticpro removed vars.
9443fcf6 6213
e072891b
KS
6214 * macterm.c: Remove unnecessary extern declarations.
6215 (x_redisplay_interface): Add mac_frame_parm_handlers member.
6216
3e6a560b
KS
6217 * Makefile.in (frame.o): Add dependency on blockinput.h and files
6218 included from it (atimer.h and systime.h).
6219
7b7b454e
AS
62202003-03-30 Andreas Schwab <schwab@suse.de>
6221
6222 * xdisp.c (x_insert_glyphs): Fix swapped width and height
6223 parameters for shift_glyphs_for_insert.
6224
6225 * macterm.c (x_redisplay_interface): Add missing entry for
6226 draw_vertical_window_border.
6227
beb402de
KG
62282003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
6229
6230 * fileio.c (Fexpand_file_name): In the no-handler case, after
6231 expanding, look again for a handler and invoke it. This is needed
6232 for filenames like "/foo/../user@host:/bar/../baz" -- the first
6233 expansion produces "/user@host:/bar/../baz" which needs to be
6234 expanded again for the finame result "/user@host:/baz".
6235
b676f356
JD
62362003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6237
6238 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
6239 of area to be redrawn for better performance.
6240
3c671a56
SM
62412003-03-28 Stefan Monnier <monnier@cs.yale.edu>
6242
6243 * xterm.c (take_vertical_position_into_account): Remove.
6244 (xt_action_hook): Call set_vertical_scroll_bar if needed.
6245 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
6246 (xm_scroll_callback, x_create_toolkit_scroll_bar)
6247 (x_set_toolkit_scroll_bar_thumb): Simplify.
6248 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
6249 (XTread_socket): Remove unused var.
6250 (x_make_frame_invisible): Replace goto with else.
6251
6252 * xdisp.c (set_vertical_scroll_bar): New fun.
6253 (redisplay_window): Use it.
6254
84f2e615
RS
62552003-03-26 Richard M. Stallman <rms@gnu.org>
6256
6257 * xdisp.c (update_tool_bar): Recompute tool bar if
6258 update_mode_lines is set. Set w->update_mode_line
6259 only if the tool bar contents actually change.
6260 (update_menu_bar): Undo previous change.
6261
70b6104c
JD
62622003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6263
5fd6f727
JD
6264 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
6265 (xg_frame_set_char_size): Calculate scroll bar width before frame
6266 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
6267 (xg_separator_p): Check for all documented separator types.
6268 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
6269 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
6270
70b6104c
JD
6271 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
6272 so tool bar gets updated.
6273
d9b36d19
SM
62742003-03-26 Stefan Monnier <monnier@cs.yale.edu>
6275
6276 * data.c (store_symval_forwarding): Re-instate part of the code
6277 that was deleted with too much enthusiasm.
6278
62792003-03-25 Stefan Monnier <monnier@cs.yale.edu>
6280
6281 * data.c (store_symval_forwarding): Delete special read-only
6282 hack for type == -1, since we now use ->constant instead.
6283 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
6284
6285 * buffer.c (overlays_in): Declare static.
6286 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
6287 `constant' field rather than the variable's `type' field.
6288
365fa1b3
AC
62892003-03-24 Andrew Choi <akochoi@shaw.ca>
6290
6291 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
6292
6293 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
6294
6295 * fns.c [MAC_OSX]: Do not redefine vector.
6296
6297 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
6298
6299 * macgui.h: Remove definition of No_Cursor.
6300
d9b36d19 6301 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
365fa1b3
AC
6302
6303 * xdisp.c: Define No_Cursor.
6304 (x_write_glyphs, notice_overwritten_cursor)
6305 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
6306 (note_mouse_highlight): Remove Mac-specific code.
6307 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
d9b36d19 6308
c0bcce6f
JPW
63092003-03-24 John Paul Wallington <jpw@gnu.org>
6310
6311 * xdisp.c (redisplay_window): If mini window's buffer is not
6312 empty, then redisplay it like other windows.
6313
a526b96c
KS
63142003-03-23 Kim F. Storm <storm@cua.dk>
6315
6316 * w32term.c (w32_draw_window_cursor): Fix last change.
6317
37ab321e
KH
63182003-03-23 Kenichi Handa <handa@m17n.org>
6319
a526b96c
KS
6320 * alloc.c (make_string_from_bytes, make_specified_string):
6321 Add `const' for the arg CONTENTS.
37ab321e
KH
6322
6323 * lisp.h (make_string_from_bytes, make_specified_string):
6324 Prototypes adjusted.
6325
7863d625
JD
63262003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6327
a526b96c 6328 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
fd4c9408 6329
7863d625
JD
6330 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
6331 (XG_SB_RANGE): New define.
6332
6333 * gtkutil.c (xg_fixed_handle_expose): New function.
6334 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
6335 expose events.
6336 (xg_update_scrollbar_pos): Take two more arguments, left and width
6337 of scroll bar including borders.
6338 Clear left and right part outside scroll bar separately as some
6339 themes have bars that are not an even number of pixels.
d9b36d19 6340 Don't set reallocate_redraws, don't call
7863d625
JD
6341 gdk_window_process_all_updates.
6342 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
6343 so no need to change it. Calculate size and value with XG_SB_RANGE.
6344
d9b36d19
SM
6345 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
6346 Pass left and width of scroll bar including borders to
7863d625
JD
6347 xg_update_scrollbar_pos.
6348
af0ad939
TTN
63492003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
6350
6351 * Makefile.in: Make sure space precedes end-of-line backslashes.
6352
b22139fd
KS
63532003-03-22 Kim F. Storm <storm@cua.dk>
6354
6355 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
6356 Add generic versions here. Remove system specific versions
6357 defined elsewhere.
6358
6359 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
6360 Add prototypes.
6361
6e6410cf
KS
6362 * xterm.h (STORE_NATIVE_RECT): New macro.
6363
5c9cc435
KS
63642003-03-21 Kim F. Storm <storm@cua.dk>
6365
00c64fab
SM
6366 * xdisp.c (get_glyph_string_clip_rect):
6367 Use FRAME_INTERNAL_BORDER_WIDTH.
5c9cc435
KS
6368
6369 * dispextern.h (struct redisplay_interface): Add active_p
6370 argument to draw_window_cursor member. All uses changed.
6371
acd37560
KS
63722003-03-21 Kim F. Storm <storm@cua.dk>
6373
6374 The following changes consolidate code related to writing and
6375 inserting glyphs, exposing frame, the tool bar, the mouse face,
6376 the output cursor, and help echo from xterm.c, w32term.c and
6377 macterm.c into xdisp.c. It also generalizes the use of the
6378 window_part enum instead of using numeric values throughout.
af0ad939 6379
acd37560
KS
6380 * xdisp.c: Consolidate gui-independent code here.
6381 Include keymap.h.
6382 (Qhelp_echo): Import.
6383 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
6384 (help_echo_string, help_echo_window, help_echo_object)
6385 (previous_help_echo_string, help_echo_pos): Declare here.
6386 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
6387 (estimate_mode_line_height): Define here. Handle windowing
6388 systems directly (without using estimate_mode_line_height_hook).
6389 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
6390 (update_window_cursor, update_cursor_in_window_tree)
6391 (fast_find_position, fast_find_string_pos)
6392 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
6393 (expose_area, expose_line, expose_overlaps, expose_window)
6394 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
6395 declared static as they are only used locally in xdisp.c.
6396 (draw_glyphs): Rename from x_draw_glyphs and make static.
6397 (tool_bar_item_info, notice_overwritten_cursor): Make static.
6398 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
6399 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
af0ad939 6400 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
acd37560
KS
6401 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
6402 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
6403 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
6404 (note_mouse_highlight, x_clear_window_mouse_face)
6405 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
6406 (x_intersect_rectangles): New generic functions for use by xdisp.c
6407 and GUI front-ends.
6408 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
6409 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
6410
6411 * dispextern.h (Display_Info): Generic typedef for *_display_info.
6412 (NativeRectangle): Generic typedef for rectangle type.
6413 (enum window_part): Move here from window.c.
6414 (struct redisplay_interface): New members flush_display_optional,
6415 define_frame_cursor, clear_frame_area, draw_window_cursor,
6416 draw_vertical_window_border, shift_glyphs_for_insert.
6417 Rename member clear_mouse_face to clear_window_mouse_face.
6418 (estimate_mode_line_height_hook): Remove hook.
6419 (auto_raise_tool_bar_buttons_p): Don't declare extern.
6420 (tool_bar_item_info): Remove prototype.
6421 (help_echo_string, help_echo_window, help_echo_object)
6422 (previous_help_echo_string, help_echo_pos)
6423 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
6424 (x_stretch_cursor_p, output_cursor): Declare extern.
6425 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
6426 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
6427 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
6428 (display_and_set_cursor, set_output_cursor, x_cursor_to)
6429 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
6430 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
6431 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
6432 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
6433 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
6434 Add prototypes.
6435 (mode_line_string, marginal_area_string): Fix prototypes.
6436
6437 * window.c (enum window_part): Move to dispextern.h.
6438 (coordinates_in_window): Use enum window_part member names
6439 instead of numbers to describe return value.
6440 (struct check_window_data): Change part member to window_part.
6441 (check_window_containing): Return window_part unaltered.
6442 (window_from_coordinates): Change part arg from int to enum
6443 window_part. Allow part arg to be null. All users changed.
6444
6445 * window.h (window_from_coordinates): Fix prototype.
6446
6447 * term.c (estimate_mode_line_height): Move to xdisp.c.
6448
6449 * keyboard.c (make_lispy_event): Use enum window_part.
6450
6451 * dispnew.c (mode_line_string, marginal_area_string): Use enum
6452 window_part instead of int in arg list. Users changed.
6453
6454 * xterm.h (No_Cursor): Declare as None for X.
6455 (struct mac_output): Replace member cross_cursor by hand_cursor.
af0ad939 6456
acd37560
KS
6457 * xterm.c: Remove consolidated defines and code.
6458 (BETWEEN): Remove unused macro.
6459 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
6460 (x_define_frame_cursor, x_clear_frame_area)
6461 (x_draw_window_cursor): New X-specific functions for RIF.
6462 (x_redisplay_interface): Add new members.
6463
6464 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
6465
6466 * w32term.h (struct w32_output): Remove cross_cursor member.
6467
6468 * w32term.c: Remove consolidated defines and code.
6469 (BETWEEN): Remove unused macro.
6470 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
6471 (w32_define_frame_cursor, w32_clear_frame_area)
6472 (w32_draw_window_cursor): New W32-specific functions for RIF.
6473 (w32_redisplay_interface): Add new members.
6474
a64387ee 6475 * w32gui.h (No_Cursor): Define as 0 for W32.
acd37560
KS
6476 (XRectangle): Add X compatible rectangle type.
6477 (NativeRectangle): Declare as RECT for W32.
6478 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
6479
6480 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
6481
6482 * w32console.c: Remove consolidated defines and code.
af0ad939 6483
acd37560
KS
6484 * msdos.h (Display_Info): Add generic typedef.
6485
6486 * msdos.c: Remove consolidated defines and code.
6487 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
6488
6489 * macterm.h (struct mac_output): Replace member cross_cursor by
6490 hand_cursor.
6491 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
6492
6493 * macterm.c: Remove consolidated defines and code.
6494 (BETWEEN): Remove unused macro.
6495 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
6496 (mac_define_frame_cursor, mac_clear_frame_area)
6497 (mac_draw_window_cursor): New Mac-specific functions for RIF.
6498 (x_redisplay_interface): Add new members.
6499
6500 * macgui.h (No_Cursor): Define as 0 for Mac.
6501 (XRectangle): Add X compatible rectangle type.
6502 (NativeRectangle): Declare as Rect for Mac.
6503 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
6504
204ccab1
KS
6505 * macfns.c (x_set_mouse_color): Setup hand_cursor.
6506 (x_set_cursor_color): Use x_display_and_set_cursor.
acd37560 6507
9443fcf6 6508 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
acd37560
KS
6509 included from it. Add dependency on keymap.h.
6510
6511 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
6512
8ba01a70 65132003-03-21 Kenichi Handa <handa@m17n.org>
3f817c73
KH
6514
6515 * fileio.c (Fexpand_file_name): Fix previous change.
6516
8ba01a70 65172003-03-19 Kenichi Handa <handa@m17n.org>
4f497b0a
KH
6518
6519 * fileio.c (Ffile_name_directory): Reconstruct file name by
6520 make_specified_string.
6521 (Ffile_name_nondirectory, Ffile_name_as_directory)
6522 (Fdirectory_file_name, Fexpand_file_name)
6523 (Fsubstitute_in_file_name): Likewise.
6524 (Fread_file_name): Compare decoded homedir with DIR and
6525 DEFAULT_FILENAME.
6526
6527 * alloc.c (make_specified_string): If NCHARS is negative, count
6528 the number of characters.
6529
19536747
JD
65302003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6531
de38ae5a
JD
6532 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
6533 all widgets.
6534
19536747
JD
6535 * gtkutil.h: Removed xg_ignore_next_thumb.
6536
37ab321e 65372003-03-18 Kenichi Handa <handa@m17n.org>
cb0d4562
KH
6538
6539 * coding.c (Vchar_coding_system_table): Remove this variable.
6540 (Vcoding_system_safe_chars): New variable.
6541 (intersection): Remove this function.
6542 (find_safe_codings): Don't use Vchar_coding_system_table, but try
6543 all codings in SAFE_CODINGS.
00c64fab 6544 (Ffind_coding_systems_region_internal): Adjust for the change of
cb0d4562
KH
6545 find_safe_codings. Get generic coding systems from
6546 Vcoding_system_safe_chars.
6547 (Fdefine_coding_system_internal): New function.
6548 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
6549 Initialize and staticpro Vcoding_system_safe_chars.
6550
17097258
JD
65512003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6552
2a2071c3
JD
6553 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
6554 equal old values before updating.
6555
17097258
JD
6556 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
6557
6558 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
6559
65602003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6561
6562 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
6563 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
6564 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
6565 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
6566 (xg_create_scroll_bar): Pass bar to button event callback.
6567 (xg_find_top_left_in_fixed): New function.
6568 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
6569 whole scroll bar area. Get old position with
6570 xg_find_top_left_in_fixed, calculate and only clear needed areas.
6571 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
6572 dragging is in progress. Calculate whole as for Motif.
6573 Remove code that saved last values. Call gtk_range functions to
6574 set scroll bar sizes.
6575
6576 * gtkutil.h: Removed xg_ignore_next_thumb.
6577
8cb9dfbf
JB
65782003-03-17 Juanma Barranquero <lektu@terra.es>
6579
6580 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
6581 and files included from it.
6582
00c64fab
SM
65832003-03-18 Stefan Monnier <monnier@cs.yale.edu>
6584
6585 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
6586 multiple occurrences of the same keymap under different prefixes.
6587 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
6588
c45bb3b2
JR
65892003-03-16 Jason Rumney <jasonr@gnu.org>
6590
6591 * w32gui.h: Use HDC for Display.
6592
6593 * w32term.c (w32_encode_char): Prevent double-byte chars from
6594 crashing Emacs.
6595
6596 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
6597 as binary.
6598
2a6d0874
JB
65992003-03-16 Juanma Barranquero <lektu@terra.es>
6600
6601 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
6602
03eb5fab
KS
66032003-03-16 Kim F. Storm <storm@cua.dk>
6604
6605 The following changes consolidate some of the gui-independent
6606 parts of the processing and drawing of "glyph strings" from
6607 xterm.c, w32term.c, and macterm.c into xdisp.c.
2a6d0874 6608
03eb5fab
KS
6609 * dispextern.h (struct glyph): Reduce face_id member from 22 to
6610 21 bits (this reduces number of faces from 4M to 2M).
6611 Replace W32 specific w32_font_type member (2 bits) by generic
6612 font_type member (3 bits) for portability.
6613 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
6614 (enum draw_glyphs_face): Define here.
6615 (struct glyph_string): Define here. Merge W32 and X versions.
6616 (struct redisplay_interface): New members per_char_metric,
6617 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
6618 (VCENTER_BASELINE_OFFSET): Define here.
6619 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
6620 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
6621
6622 * xdisp.c: Consolidate gui-independent "glyph string" code here.
6623 (dump_glyph_string): Moved here.
6624 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
6625 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
6626 (fill_composite_glyph_string, fill_glyph_string)
6627 (fill_image_glyph_string, fill_stretch_glyph_string)
6628 (left_overwritten, left_overwriting, right_overwritten)
6629 (right_overwriting, get_char_face_and_encoding)
6630 (set_glyph_string_background_width, compute_overhangs_and_x)
6631 (append_glyph, append_composite_glyph, produce_image_glyph)
6632 (take_vertical_position_into_account, append_stretch_glyph)
6633 (produce_stretch_glyph): New generic functions (based on X version).
6634 Call platform specific functions through rif.
6635 (INIT_GLYPH_STRING): New macro, hides W32 details.
6636 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
6637 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
6638 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
6639 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
6640 (notice_overwritten_cursor):
6641 Generic functions exported to platform modules. Users changed.
6642
6643 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
6644 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
6645 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
fad49844 6646 New macros for consolidated code.
2a6d0874 6647
03eb5fab
KS
6648 * xterm.c: Remove consolidated defines and code.
6649 (x_per_char_metric, x_encode_char)
6650 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
6651 (x_redisplay_interface): Add new members.
6652
6653 * w32gui.h (Display): Add dummy typedef for consolidation.
6654 (XChar2b): Define alias for wchar_t for consolidation.
6655 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
6656
6657 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
2a6d0874 6658 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
03eb5fab
KS
6659 New macros for consolidation.
6660
fad49844 6661 * w32term.c: Remove consolidated defines and code.
03eb5fab
KS
6662 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
6663 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
6664 (w32_per_char_metric): Change font_type arg to int for RIF.
6665 (w32_encode_char): Return int according to RIF requirements.
6666 (w32_compute_glyph_string_overhangs): Adapt to RIF.
6667 (w32_get_glyph_overhangs): New function for RIF. Uses generic
6668 x_get_glyph_overhangs.
6669 (w32_redisplay_interface): Add new members.
6670
6671 * macgui.h (XChar2b): Move typedef here for consolidation.
6672 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
6673
6674 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
6675 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
6676 consolidation.
6677
6678 * macterm.c: Remove consolidated defines and code.
6679 (mac_per_char_metric): New function for RIF.
00c64fab 6680 (mac_encode_char): Adapt to new RIF requirements.
03eb5fab
KS
6681 (mac_compute_glyph_string_overhangs): Adapt for RIF.
6682 (x_redisplay_interface): Add new members.
6683
00c64fab
SM
66842003-03-15 Stefan Monnier <monnier@cs.yale.edu>
6685
6686 * keymap.c (Vmenu_events): New var.
6687 (syms_of_keymap): Initialize it.
6688 (where_is_internal): Check more carefully what is a menu event.
6689
225c7a07
RS
66902003-03-14 Richard M. Stallman <rms@gnu.org>
6691
6692 * lread.c (read1): After #!, exit loop on eof.
6693
cea9be54
JD
66942003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6695
9ea0e54d
JD
6696 * gtkutil.h: Add declaration for xg_frame_cleared.
6697
0cb35f4e
JD
6698 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
6699
cea9be54
JD
6700 * gtkutil.c (struct xg_last_sb_pos): New structure.
6701 (handle_fixed_child): New function.
6702 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
6703 and force a redraw on them.
6704 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
6705 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
6706 so we can avoid unneeded redraws.
6707 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
6708 and force a redraw on the scroll bar.
6709 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
6710 if xg_last_sb_pos shows the positions are up to date.
0cb35f4e 6711 (xg_frame_cleared): New function.
cea9be54 6712
20b853f3
KH
67132003-03-13 Kenichi Handa <handa@m17n.org>
6714
6715 * coding.c (Fdetect_coding_region): Fix docstring.
6716 (Fdetect_coding_string): Fix docstring.
6717
7a555aff
AS
67182003-03-13 Andreas Schwab <schwab@suse.de>
6719
25cc0080
AS
6720 * gtkutil.c: Add prototype for create_menus.
6721
30225431
AS
6722 * data.c (long_to_cons): Fix type of top.
6723
6724 * xselect.c (selection_data_to_lisp_data): Use int instead of
6725 long for an integer of size 4.
6726
7a555aff 6727 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
30225431 6728 (xg_tool_bar_help_callback): Likewise.
7a555aff 6729
a3e4741f
AS
67302003-03-12 Andreas Schwab <schwab@suse.de>
6731
6732 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
6733
9668be7c
KS
67342003-03-12 Kim F. Storm <storm@cua.dk>
6735
03eb5fab 6736 The following changes consolidate the fringe handling from
9668be7c 6737 xterm.c, w32term.c, and macterm.c into xdisp.c.
00a88f32 6738
9668be7c
KS
6739 * xdisp.c: Consolidate fringe handling code here.
6740 (left_bits, right_bits, continued_bits, continuation_bits)
6741 (ov_bits, zv_bits): Define fringe bitmaps.
6742 (fringe_bitmaps): New array holding fringe bitmaps.
6743 (draw_fringe_bitmap): Draw a specific bitmap; call display
6744 specific drawing routine via rif->draw_fringe_bitmap.
6745 (draw_row_fringe_bitmaps): Generic replacement for
6746 x_draw_row_fringe_bitmaps; all callers changed.
6747 (compute_fringe_widths): Generic replacement for
6748 x_compute_fringe_widths; all callers changed.
6749
6750 * dispextern.h (enum fringe_bitmap_type): Define here.
6751 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
6752 (fringe_bitmaps): Declare extern.
6753 (struct redisplay_interface): New member draw_fringe_bitmap.
6754 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
6755
6756 * xterm.c: Remove generic fringe code.
6757 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
6758 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
6759
6760 * w32term.c: Remove generic fringe code.
6761 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
6762 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
00a88f32 6763
9668be7c
KS
6764 * macterm.c: Remove generic fringe code.
6765 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
6766 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
6767
00a88f32
SM
67682003-03-11 Stefan Monnier <monnier@cs.yale.edu>
6769
6770 * print.c (Fprin1_to_string): Return unibyte string if possible.
6771
1d1de695
DK
67722003-03-09 David Kastrup <dak@gnu.org>
6773
6774 * process.c (read_process_output): We have allocated enough space
6775 for readmax and carryover, so actually use the alloted space.
6776
257f40f2
JD
67772003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6778
6779 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
6780 toolkit scrollbar click.
6781
6782 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
6783 for USE_GTK.
6784 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
6785 also.
6786 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
6787 scrollbar and control is pressed, call x_scroll_bar_handle_click.
00a88f32 6788
257f40f2
JD
6789 * gtkutil.h: Declare xg_get_scroll_id_for_window.
6790
6791 * gtkutil.c (xg_get_scroll_id_for_window): New function.
6792 (xg_tool_bar_item_expose_callback): New function.
6793 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
6794 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
6795 on the tool bar widget.
6796 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
6797 to expose on the tool bar item widgets.
6798
15213141
JD
67992003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6800
26b74a0b 6801 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
00a88f32 6802 struct image* when deciding to update (struct image* may have been
26b74a0b
JD
6803 deleted from the image cache).
6804
15213141
JD
6805 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
6806 the event isn't for a frame (i.e. for dialogs).
6807
20b853f3 68082003-03-07 Kenichi Handa <handa@m17n.org>
cb681b34
KH
6809
6810 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
6811 composition components reaches the limit, terminate composing.
6812 (COMPOSITION_OK): New macro.
00a88f32 6813 (detect_coding_iso2022): Use it if an escape sequence for
cb681b34
KH
6814 composition is found.
6815 (coding_restore_composition): Adjust the number of composition
6816 components if it is not sane.
6817
c9029fe5
JB
68182003-03-06 Juanma Barranquero <lektu@terra.es>
6819
6820 * w32term.h (struct w32_display_info): Add xrdb member to support
6821 passing resources via -xrm on Windows.
6822
6823 * w32term.c (w32_make_rdb): New function.
6824 (w32_term_init): Use it to initialize xrdb member of w32_display_info
6825 struct. Delete leftover code.
6826
6827 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
6828 for resources passed on the command line.
6829
6830 * w32reg.c (w32_get_rdb_resource): New function.
6831 (x_get_string_resource): Use it, so resources passed with -xrm
6832 supercede the ones in the registry.
6833
9d00001f
JD
68342003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6835
6836 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
6837 instead of x_top_window_to_frame.
6838
ca2417b9
JD
68392003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6840
6841 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
6842 when restarting Emacs.
6843
5b20caf0
RS
68442003-03-03 Richard M. Stallman <rms@gnu.org>
6845
6846 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
6847 to run kill-buffer-query-functions.
6848 (Qkill_buffer_query_functions): New var.
6849 (syms_of_buffer): Init and staticpro it.
6850
58e91b77
JD
68512003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6852
6853 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
6854
932357b4
KS
68552003-02-25 Kim F. Storm <storm@cua.dk>
6856
6857 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
6858 If centering point failed to make whole line visible and vscroll
6859 is non-zero, disable vscroll and try centering point again.
6860
6861 * lread.c (read1): Accept `single space' syntax like (? x).
6862
bb8db7e1
JD
68632003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6864
6865 * keyboard.c (cancel_hourglass_unwind): Surround with
6866 #ifdef HAVE_X_WINDOWS
6867
47d77aab
KH
68682003-02-25 Kenichi Handa <handa@m17n.org>
6869
6870 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
6871 process only when "subprocesses" is defined.
6872
6a097c0c
SM
68732003-02-24 Stefan Monnier <monnier@cs.yale.edu>
6874
6875 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
6876
0b063c27
JB
68772003-02-24 Juanma Barranquero <lektu@terra.es>
6878
d1135afc
JB
6879 * callint.c (fix_command): Declare as static void and move before
6880 Fcall_interactively.
6881
0b063c27
JB
6882 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
6883 (syms_of_xdisp): Don't initialize Qwhen.
6884
0af912f0
JD
68852003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6886
6887 * keyboard.c (cancel_hourglass_unwind): New function.
6888 (command_loop_1): Cancel hourglass with unwind-protect.
6889
120d0a23
RS
68902003-02-23 Richard M. Stallman <rms@gnu.org>
6891
6892 * callint.c (fix_command): New subroutine, from Fcall_interactively.
6893 Detect (when ... (region-beginning)) etc.
6894 (Fcall_interactively): Call fix_command.
6895 (Qif, Qwhen): New variables.
6896 (syms_of_callint): Init and staticpro them.
0b063c27 6897
120d0a23
RS
6898 * regex.c (print_partial_compiled_pattern): Output to stderr.
6899
4ece81a6
KG
69002003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
6901
6902 * dired.c (directory_files_internal): Don't expand directory.
6903 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
6904 instead. From Lars Hansen <larsh@math.ku.dk>.
6905
e52bd6b7
SM
69062003-02-22 Stefan Monnier <monnier@cs.yale.edu>
6907
6908 * fns.c (string_to_multibyte): Remove unused var i.
6909 (Flanginfo): Fix int/Lisp_Object mixup.
6910 (void_call2): New fun.
6911 (Fmap_char_table): Use it in place of call2.
6912
6913 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
6914
6915 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
6916
6917 * keymap.c (copy_keymap_1): Make it static.
6918
6919 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
6920
c33ef7c4
JB
69212003-02-22 David Ponce <david@dponce.com>
6922
6923 * lread.c (Fload): Don't check STRING_MULTIBYTE.
6924
16782258
JD
69252003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6926
6927 * process.h: Removed subtty field from struct Lisp_Process.
6928
6929 * process.c (create_process): Remove setting of subtty.
6930 (emacs_get_tty_pgrp): New function.
e52bd6b7
SM
6931 (Fprocess_running_child_p, process_send_signal):
6932 Call emacs_get_tty_pgrp instead of ioctl.
16782258
JD
6933 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
6934
3abeca61
KG
69352003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
6936
6937 * keymap.c (Fdefine_key): Doc fix.
6938
92a8ce63
JB
69392003-02-21 Juanma Barranquero <lektu@terra.es>
6940
6941 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
6942
6943 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
6944 POLLING_PROBLEM_IN_SELECT.
6945
6946 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
6947 Delete #undef of POLLING_PROBLEM_IN_SELECT.
6948
6949 * s/hpux10-20.h: New file.
6950
e52bd6b7
SM
6951 * process.c (wait_reading_process_input):
6952 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
92a8ce63 6953
20f1ef2e
KH
69542003-02-20 Kenichi Handa <handa@m17n.org>
6955
32d0a9dc
KH
6956 * fontset.c (check_fontset_name): If NAME is nil, return the
6957 default fontset.
6958 (override_font_info): New function.
e52bd6b7 6959 (Fset_fontset_font): Document that NAME nil means the default fontset.
32d0a9dc
KH
6960 (Ffontset_info): If FONTSET is not the default fontset, merge
6961 FONTSET onto the copy of the default fontset, and work on that
6962 copy. Document that NAME nil means the default fontset.
6963 (Ffontset_font): Document that NAME nil means the default fontset.
6964
20f1ef2e
KH
6965 * process.c (setup_process_coding_systems): If the process's
6966 in/out descriptor is -1, do nothing.
6967
77d1daf2
AS
69682003-02-19 Andreas Schwab <schwab@suse.de>
6969
e52bd6b7
SM
6970 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
6971 Add prototypes.
77d1daf2 6972
f9a45bb3
KH
69732003-02-19 Kenichi Handa <handa@m17n.org>
6974
6975 * xfaces.c (try_alternative_families): Try all scalable fonts if
6976 Vscalable_fonts_allowed is not Qt.
6977
72ecb43c
JD
69782003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6979
6980 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
6981
ee5be7c3
JD
69822003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6983
6984 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
6985 names.
6986
6987 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
e52bd6b7 6988 (sorted_font_list): Move allocation of struct font_name to
ee5be7c3
JD
6989 x_face_list_fonts.
6990 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
6991 (Fx_list_fonts): Set maxnames to -1 to get all font names.
6992
4cd519a7
KS
69932003-02-18 Kim F. Storm <storm@cua.dk>
6994
068f9882
KS
6995 * lread.c (read1): Fix last change.
6996 "`" is not always special. Allow "?" after a character constant.
4cd519a7 6997
7290a344
AC
69982003-02-18 Andrew Choi <akochoi@shaw.ca>
6999
7000 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
7001
1f7fa69b
AS
70022003-02-18 Andreas Schwab <schwab@suse.de>
7003
7004 * window.c (window_scroll_pixel_based): Move outside a
7005 multi-glyph character before setting new window start.
7006
7007 * xdisp.c (in_display_vector_p): New function.
7008 * dispextern.h (in_display_vector_p): Declare.
7009
23e21195
KS
70102003-02-18 Kim F. Storm <storm@cua.dk>
7011
7012 * lread.c (read1): Fix and relax read syntax.
7013 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
7014 Only recognize "," after dotted-pair dot if inside backquote.
7015 Never include "`" or "," (inside backquote) in a symbol.
7016 Allow dotted-pair dot after a character constant.
7017 Allow "`" and "," (inside backquote) after a character constant.
92a8ce63 7018
f098b121
JD
70192003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7020
7021 * gtkutil.c (xg_tool_bar_expose_callback): New function.
7022 (xg_create_tool_bar): Force style of tool bar to be horizontal with
7023 icons. Set name of tool bar to emacs-toolbar.
7024 (update_frame_tool_bar): Connect expose event to
7025 xg_tool_bar_expose_callback.
7026
63020c46
RS
70272003-02-17 Richard M. Stallman <rms@gnu.org>
7028
7029 * keyboard.c (this_command_key_count_reset): New variable.
7030 Initiatize to 0 where this_command_key_count is set.
7031 (read_char): Save and restore this_command_key_count_reset
7032 around input method code.
7033 (read_char): If this_command_key_count_reset, echo reread commands.
7034 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
7035
fb4452cc
KH
70362003-02-17 Kenichi Handa <handa@m17n.org>
7037
7038 * fns.c (string_to_multibyte): Always return a multibyte string.
7039
bd11cc09
JR
70402003-02-16 Jason Rumney <jasonr@gnu.org>
7041
e52bd6b7
SM
7042 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
7043 Negative max_fonts parameter means list all.
bd11cc09 7044
4cdf4bde
DL
70452003-02-14 Dave Love <fx@gnu.org>
7046
7047 * fns.c (Flanginfo): Doc fix.
7048
023b93f6
KS
70492003-02-13 Kim F. Storm <storm@cua.dk>
7050
37cd4238
KS
7051 * lread.c (read_escape): Interpret \s as a SPACE character, except
7052 for \s-X in a character constant which still is the super modifier.
7053 (read1): Signal an `invalid read syntax' error if a character
7054 constant is immediately followed by a digit or symbol character.
7055
140a6b7e
KS
7056 * search.c (Fmatch_data): Doc fix. Explicitly state that
7057 match-data is undefined if last search failed.
7058
023b93f6
KS
7059 * keymap.c (Fcommand_remapping): Renamed from Fremap_command.
7060 All uses changed.
7061
7d5c86e5
JB
70622003-02-12 Juanma Barranquero <lektu@terra.es>
7063
7064 * eval.c (Fdefmacro): Fix typo.
7065
295fff2c
KS
70662003-02-12 Kim F. Storm <storm@cua.dk>
7067
7068 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
7069 macro is a string, convert meta modifiers in string when copying
7070 the string into a vector.
7071
60f3202d
KS
70722003-02-11 Kim F. Storm <storm@cua.dk>
7073
7074 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
7075
61cb0b53
KH
70762003-02-11 Kenichi Handa <handa@m17n.org>
7077
7078 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
7079
7392e23c
KS
70802003-02-10 Kim F. Storm <storm@cua.dk>
7081
7082 * process.c: Doc fixes.
7083 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
7084
ce4254bd
KH
70852003-02-10 Kenichi Handa <handa@m17n.org>
7086
9c7a329a
KH
7087 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
7088
ce4254bd
KH
7089 * process.c (QCfilter_multibyte): New variable.
7090 (setup_process_coding_systems): New function.
e52bd6b7
SM
7091 (Fset_process_buffer, Fset_process_filter):
7092 Call setup_process_coding_systems.
ce4254bd
KH
7093 (Fstart_process): Initialize the member `filter_multibyte' of
7094 struct Lisp_Process.
7095 (create_process): Call setup_process_coding_systems.
7096 (Fmake_network_process): New keyward `:filter-multibyte'.
7097 Initialize the member `filter_multibyte' of struct Lisp_Process.
7098 Call setup_process_coding_systems.
7099 (server_accept_connection): Call setup_process_coding_systems.
7100 (read_process_output): If the process has a filter, decide the
7101 multibyteness of a string to given to the filter by
7102 `filter_multibyte' member of the process. If the process doesn't
7103 have a filter and the result of conversion is unibyte, use
7104 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
7105 multibyte form.
7106 (Fset_process_coding_system): Call setup_process_coding_systems.
7107 (Fset_process_filter_multibyte): New function.
7108 (Fprocess_filter_multibyte_p): New function.
7109 (syms_of_process): Intern and staticpro QCfilter_multibyte.
7110 Defsubr Sset_process_filter_multibyte and
7111 Sprocess_filter_multibyte_p.
7112
7113 * process.h (struct Lisp_Process): New member filter_multibyte.
7114
7115 * lisp.h (setup_process_coding_systems): Add prototype.
7116
7117 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
7118 process, update coding systems for the process.
7119
b08d5f59
KH
71202003-02-09 Kenichi Handa <handa@m17n.org>
7121
7122 * fns.c (string_to_multibyte): New function.
7123 (Fstring_to_multibyte): New function.
7124 (syms_of_fns): Defsubr it.
7125
0dfd93c0
AS
71262003-02-08 Andreas Schwab <schwab@suse.de>
7127
7128 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
7129 instead of the substitution.
7130
7b76ca1c
JD
71312003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7132
7133 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
7134
7135 * xmenu.c (menu_position_func): Adjust menu popup position so that
7136 the menu is fully visible.
7b76ca1c 7137
2436a4e4
JD
71382003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7139
7140 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
e52bd6b7
SM
7141 (x_make_frame_invisible, x_wm_set_icon_position):
7142 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
2436a4e4
JD
7143
7144 * xfns.c (x_set_name, x_set_title): Ditto.
7145
37d1e680
RS
71462003-02-04 Richard M. Stallman <rms@gnu.org>
7147
7148 * keyboard.c (echo_now): Update before_command_echo_length.
7149 (Freset_this_command_lengths): Reset this_command_key_count etc.
7150 immediately rather than arranging to do it later.
7151 (before_command_key_count_1, before_command_echo_length_1)
7152 (before_command_restore_flag): Vars deleted.
7153 (add_command_key): Don't handle before_command_restore_flag.
7154 (read_char, record_menu_key): Don't update before_command_key_count or
7155 before_command_echo_length.
7156 (read_char): Don't handle before_command_restore_flag.
7157
7158 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
7159 in direct-output clauses if it wouldn't be called in the ordinary case.
7160
578846a3
KS
71612003-02-04 Kim F. Storm <storm@cua.dk>
7162
7163 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
7164
49853a4d
JD
71652003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7166
7167 * gtkutil.c (remove_from_container): Copying list is not needed.
7168 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
7169 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
7170 on list returned from gtk_container_get_children to avoid memory leak.
7171
8b53dc06
JR
71722003-02-01 Jason Rumney <jasonr@gnu.org>
7173
5d54d177
JR
7174 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
7175 local malloc.
7176 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
7177 definitions in xpm.h.
7178 (init_xpm_functions): New function.
f63fd14e 7179 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
5d54d177
JR
7180 (init_external_image_libraries): Try to load libXpm.dll.
7181
8b53dc06
JR
7182 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
7183 timestamp.
7184
b222e415
DL
71852003-01-31 Dave Love <fx@gnu.org>
7186
7187 * syntax.c (Fskip_chars_forward)
7188 (open-paren-in-column-0-is-defun-start): Doc fix.
7189
c60ee5e7
JB
71902003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
7191
7192 * fileio.c: Support // at start of name for Cygwin (just added proper
7193 preprocessor tests).
7194
7195 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
7196
7197 * Makefile.in: Use @EXEEXT@ for Cygwin.
7198
7199 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
7200
7201 * s/cygwin.h: Added for Cygwin port.
7202
53b37591
JB
72032003-01-31 Juanma Barranquero <lektu@terra.es>
7204
7205 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
7206 when including gif_lib.h.
fe929957 7207 (init_gif_functions, init_tiff_functions): New functions.
f63fd14e
JB
7208 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
7209 Windows. Disable color table lookups. Call library functions
53b37591 7210 through pointers determined at runtime.
fe929957
JB
7211 (init_external_image_libraries): Try to load libungif.dll and
7212 libtiff.dll.
53b37591 7213
45415a8f
KH
72142003-01-31 Kenichi Handa <handa@m17n.org>
7215
7216 * xdisp.c (SKIP_GLYPHS): New macro.
e52bd6b7 7217 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
45415a8f 7218
a97e4138
JD
72192003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7220
e52bd6b7 7221 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
a97e4138 7222
6eed9bed
DL
72232003-01-30 Dave Love <fx@gnu.org>
7224
7225 * alloc.c (Vgc_elapsed, gcs_done): New variables.
7226 (Fgarbage_collect): Use them.
7227 (init_alloc, syms_of_alloc): Set them up.
7228
100dcd40
JB
72292003-01-30 Juanma Barranquero <lektu@terra.es>
7230
7231 * w32fns.c (init_external_image_libraries): Add missing operator.
7232
fbd852af
JR
72332003-01-29 Jason Rumney <jasonr@gnu.org>
7234
7235 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
7236 an alternative name for jpeg.dll.
7237
8a2d8020
KH
72382003-01-29 Kenichi Handa <handa@m17n.org>
7239
7240 * xdisp.c (set_cursor_from_row): Pay attention to string display
7241 properties.
7242
058c18c7
AC
72432003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
7244
7245 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
7246 <escape>.
7247 (keycode_to_xkeysym_table): Reformat and add more comments.
7248 (XTread_socket): Drop special case for backspace.
7249
385f11cf
AC
72502003-01-28 Andrew Choi <akochoi@shaw.ca>
7251
7252 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
7253 values in old-style RGB specs.
7254
c922a224
JB
72552003-01-27 Juanma Barranquero <lektu@terra.es>
7256
7257 * w32fns.c (init_external_image_libraries): Try alternate names for the
7258 jpeg dll.
7259
0a1d6de0
JD
72602003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7261
7262 * gtkutil.c (create_dialog, xg_separator_p)
7263 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
7264 before calling strcmp or strlen.
7265
a97e4138 72662003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1d1885fc
JD
7267
7268 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
7269 and handle image load failure.
7270
28908312
JR
72712003-01-26 Jason Rumney <jasonr@gnu.org>
7272
7273 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
7274 New functions.
f63fd14e
JB
7275 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
7276 Disable color table lookups. Call jpeg library functions
28908312
JR
7277 through pointers determined at runtime.
7278 (init_external_image_libraries): Try to load jpeg.dll.
7279
84e47416
RS
72802003-01-25 Richard M. Stallman <rms@gnu.org>
7281
7282 * lisp.h: Declare format2 instead of format1.
7283
7284 * fileio.c (barf_or_query_if_file_exists):
7285 Call format2 instead of format1.
7286
7287 * editfns.c (format2): New function, replaces format1
7288 but takes exactly two Lisp Objects as format args.
7289
7290 * buffer.c (Fkill_buffer): Call format2 instead of format1.
7291
a97e4138 72922003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1fcfb866
JD
7293
7294 * xterm.h: Change to return value of x_dispatch_event to int.
7295
7296 * xterm.c (x_filter_event): New function.
7297 (event_handler_gdk, XTread_socket): Call x_filter_event.
7298 (x_dispatch_event): Change to return value of finish.
7299 (event_handler_gdk): Use return value from x_dispatch_event.
7300
7301 * xfns.c (x_window): Call create_frame_xic for GTK version to
7302 initialize input methods.
7303
7304 * gtkutil.h: Add (void) prototypes.
7305
7306 * gtkutil.c (create_menus): Remove code that puts the help menu to
7307 the right.
7308
54eefef1
JR
73092003-01-25 Jason Rumney <jasonr@gnu.org>
7310
7311 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
7312 [HAVE_PNG]: Sync with xfns.c version.
f63fd14e
JB
7313 (png_load): Adjust colors for Windows. Use Windows
7314 bitmaps. Disable color table lookups.
c262430d
JR
7315 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
7316 (init_png_functions): New function.
7317 (png_read_from_memory, png_load): Call png library functions
7318 through pointers determined at runtime.
7319 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
7320 (init_external_image_libraries): New function.
7321 (init_xfns): Call it.
54eefef1 7322
1a9e275b
AS
73232003-01-24 Andreas Schwab <schwab@suse.de>
7324
7325 * minibuf.c (Fminibuffer_message): Verify type of parameter.
7326
a97e4138 73272003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
81e302ef
JD
7328
7329 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
7330 of static initializer.
7331
422eec7e
DL
73322003-01-24 Dave Love <fx@gnu.org>
7333
7334 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
7335 architectures.
7336
7337 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
7338 Use __alignof__.
7339
2a026b04
KH
73402003-01-24 Kenichi Handa <handa@m17n.org>
7341
7342 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
e52bd6b7 7343 It it is nonzero, don't pretend that an invisible area doesn't exist.
2a026b04
KH
7344 (command_loop_1): Call adjust_point_for_property with proper
7345 second arg.
7346
a18bb28d
JR
73472003-01-22 Jason Rumney <jasonr@gnu.org>
7348
7349 Sync changes with xterm.c and xfns.c.
7350
7351 * w32term.c (x_draw_glyph_string_foreground)
7352 (x_draw_composite_glyph_string_foreground): Implement overstriking.
7353
7354 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
7355 phys_cursor's hpos is overwritten. This is still not completely
7356 correct, as it doesn't really make sense to use hpos at all to
7357 get the cursor glyph (as that is relative to the width of the
7358 characters on the line, which may have changed during the update).
7359
7360 * w32term.c (notice_overwritten_cursor): Handle the special case
7361 of the cursor being in the first blank non-text line at the
7362 end of a window.
7363
7364 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
7365 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
7366 Compute from the x position returned by x_draw_glyphs.
7367
7368 (x_display_and_set_cursor): Don't set phys_cursor_width here,
7369 except for NO_CURSOR and system caret, to make phys_cursor_width
7370 contain what its name suggests.
7371 (notice_overwritten_cursor): Consider the cursor image erased if
7372 the output area intersects the cursor image in y-direction.
7373
6a097c0c
SM
7374 * w32term.c (note_mode_line_or_margin_highlight): Rename from
7375 note_mode_line_highlight and extend.
a18bb28d
JR
7376
7377 * w32term.c (last_window): New variable.
7378 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
7379 (note_mouse_movement): Remove reimplemented code in #if 0.
7380
7381 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
7382 not update_mode_lines, and always set it to 1.
7383
ac6e47ef
JR
73842003-01-21 Jason Rumney <jasonr@gnu.org>
7385
7386 * w32fns.c (IDC_HAND): Define it if system headers don't.
7387
73882003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
7389
7390 * w32term.h (struct w32_output): New member hand_cursor.
7391 (WM_EMACS_SETCURSOR): New message definition.
7392
7393 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
7394 function w32_define_cursor.
7395 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
7396 position, change member name output_data.x to output_data.w32 and
7397 add function w32_define_cursor.
7398 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
7399 and change member name output_data.x to output_data.w32.
e52bd6b7
SM
7400 (w32_initialize_display_info):
7401 Setup dpyinfo->vertical_scroll_bar_cursor.
ac6e47ef
JR
7402
7403 * w32fns.c (Vx_hand_shape): New variable.
7404 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
7405 WM_EMACS_SETCURSOR.
7406 (x-create-frame): Setup Cursor types.
7407
ceb39a17
JB
74082003-01-21 David Ponce <david@dponce.com>
7409
ac6e47ef 7410 * w32term.c (w32_encode_char): For DIM=1 charset, set
f63fd14e 7411 ccl->reg[2] to -1 before calling ccl_driver. (Sync. with xterm.c
ac6e47ef 7412 x_encode_char change by Kenichi Handa <handa@m17n.org> on
ceb39a17 7413 2002-09-30.)
ac6e47ef
JR
7414 (w32_draw_relief_rect): Declare all args.
7415 (w32_define_cursor): New.
7416
7417 * w32fns.c (w32_load_cursor): New function.
7418 (w32_init_class): Use it.
7419 (x_put_x_image): Declare all args.
7420
46cf0bed
JB
74212003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk> (tiny change)
7422
7423 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
7424
a97e4138 74252003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e8794476
JD
7426
7427 * gtkutil.c: Must include stdio.h before termhooks.h
7428
83fc9c63
DL
74292003-01-21 Dave Love <fx@gnu.org>
7430
7431 * alloc.c (Fgc_status): Print zombie list.
7432 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
7433 Fix assignment of zombies.
7434 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
7435 Don't take car of non-cons.
7436
7437 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
7438
7439 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
7440
fe04b8c8
JR
74412003-01-20 David Ponce <david@dponce.com>
7442
7443 * w32menu.c (digest_single_submenu): Declare all args.
7444
7445 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
7446 changes in xmenu.c:
7447
7448 (parse_single_submenu): Use individual keymap's prompt
7449 string as pane name, if there is one.
7450 (set_frame_menubar): Save menu_items_n_panes from each call to
7451 parse_single_submenu and use it when calling digest_single_submenu.
7452
539e69a9
ST
74532003-01-20 Steven Tamm <steventamm@mac.com>
7454
7455 * macterm.c (XTread_socket): Checks for valid, visible window
7456 before sending a scroll-wheel event.
7457
675d000f
RS
74582003-01-20 Richard M. Stallman <rms@gnu.org>
7459
7460 * xdisp.c (redisplay_window): If mini window's buffer is not
7461 a minibuffer, then redisplay it like other windows.
7462
a97e4138 74632003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22174d10
JD
7464
7465 * gtkutil.c (xg_create_frame_widgets): Check if there is an
7466 external tool bar before setting tool bar height.
7467
048addec
JD
74682003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7469
7470 * xterm.c (handle_one_xevent): Surround popup_activated
7471 with #ifdef:s for non-toolkit version.
7472
7473 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
7474 (gtkutil.o): New file.
7475 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
7476 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
7477
7478 * gtkutil.c: New file for GTK version.
7479
7480 * gtkutil.h: New file for GTK version.
7481
7482 * xterm.h: Add xt_or_gtk_widget.
7483 Include gtk files for USE_GTK.
7484 (struct x_output): Add toolbar_height.
7485 (struct x_output): Add GTK widgets and Gdk size_hints.
7486 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
7487 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
7488 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
7489
7490 * xterm.c: Include gtkutil.h for USE_GTK.
7491 Declare extern void free_frame_menubar for USE_GTK.
7492 (note_mouse_highlight): Check popup_activated for USE_GTK.
7493 (xt_action_hook): Don't compile if USE_GTK.
7494 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
7495 (xg_scroll_callback): New function.
7496 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
7497 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
7498 for USE_GTK.
7499 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
7500 xg_show_scroll_bar for USE_GTK.
7501 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
7502 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
7503 (event_handler_gdk): New function for USE_GTK.
7504 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
7505 (handle_one_xevent): Make sure widget is mapped before
7506 calling x_real_positions for USE_GTK.
7507 (XTread_socket): Add GTK event loop for USE_GTK.
7508 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
7509 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
7510 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
7511 (x_iconify_frame): Add code for USE_GTK.
7512 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
7513 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
7514 is in gtkutil.c.
7515 (x_term_init): Add initialization for GTK.
7516 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
7517
7518 * xmenu.c: Include gtkutil.h for USE_GTK.
7519 (Fx_popup_menu): Use current position if x and y is NIL.
6bdb309a
SM
7520 (single_menu_item, single_menu_item, Fx_popup_dialog):
7521 Check for USE_GTK.
048addec
JD
7522 (popup_widget_loop): New function for USE_GTK.
7523 (x_activate_menubar): Add code for USE_GTK.
7524 (popup_activate_callback, popup_deactivate_callback)
6bdb309a
SM
7525 (menu_highlight_callback, menubar_selection_callback):
7526 Add USE_GTK versions.
048addec
JD
7527 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
7528 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
7529 (free_frame_menubar): Only compile if not USE_GTK. GTK version
7530 is in gtkutil.c.
7531 (popup_selection_callback): New version for USE_GTK.
7532 (create_and_show_popup_menu): New fuction, one USE_GTK version and
6bdb309a 7533 one USE_X_TOOLKIT version.
048addec
JD
7534 (xmenu_show): Call create_and_show_popup_menu.
7535 (dialog_selection_callback): New version for USE_GTK.
7536 (create_and_show_dialog): New fuction, one USE_GTK version and
6bdb309a 7537 one USE_X_TOOLKIT version.
048addec
JD
7538 (xdialog_show): Call create_and_show_dialog.
7539
7540 * xfns.c: Include gtkutil for USE_GTK.
7541 (x_window_to_frame, x_any_window_to_frame)
7542 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
7543 (x_top_window_to_frame): Add code for USE_GTK.
7544 (x_set_background_color): Call xg_set_background_color for GTK.
7545 (x_set_menu_bar_lines): Check for USE_GTK.
7546 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
7547 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
7548 (x_window): Call xg_create_frame_widgets for USE_GTK.
7549 (Fx_create_frame): Check for USE_GTK
7550 (Fx_file_dialog): New implementation for USE_GTK.
7551
7552 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
7553 (update_menu_bar): Add check for USE_GTK.
7554 (update_tool_bar): Add check for USE_GTK and external tool bar.
7555 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
7556 (redisplay_internal): Add check for USE_GTK and popup_activated.
7557 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
7558 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
7559 (display_menu_bar): Add check for USE_GTK
7560
7561 * lisp.h: Declare Vx_resource_name extern.
7562
a64387ee 7563 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
048addec
JD
7564 for USE_GTK.
7565 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
7566
7567 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
7568 (FRAME_EXTERNAL_TOOL_BAR): New macro.
7569 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
7570
7571 * fileio.c (Fread_file_name): Add check for USE_GTK.
7572
6bdb309a
SM
7573 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
7574 Add check for USE_GTK.
048addec
JD
7575
7576 * config.in: Added HAVE_GTK
7577
7578 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
7579
75802003-01-18 Stefan Monnier <monnier@cs.yale.edu>
7581
7582 * charset.h (Funibyte_char_to_multibyte): Export.
7583
75842003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7585
7586 * xmenu.c (mouse_position_for_popup): New function.
7587 (Fx_popup_menu): Call mouse_position_for_popup for X and
7588 mouse_position_hook for others.
7589
75902003-01-17 Kim F. Storm <storm@cua.dk>
7591
7592 * editfns.c (Finsert): Mention `string-make-multibyte' and
7593 `string-as-multibyte' in doc string.
7594
75952003-01-17 Kenichi Handa <handa@m17n.org>
7596
7597 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
3c02a6f5 7598
048addec
JD
7599 * editfns.c (Fformat): Convert an unibyte char argument that is
7600 formatted by "%c" to multibyte if the total result must be a
7601 multibyte string.
cd7df9c0 7602
048addec 76032003-01-16 Kim F. Storm <storm@cua.dk>
cd7df9c0 7604
048addec
JD
7605 * process.c (set-process-filter): Document unibyte/multibyte-ness
7606 of string argument.
56210ecd 7607
048addec 76082003-01-16 Kenichi Handa <handa@m17n.org>
56210ecd 7609
048addec 7610 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
56210ecd 7611
048addec
JD
7612 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
7613 (re_search_2): Likewise.
6df8b9fe 7614
048addec 76152003-01-15 Kenichi Handa <handa@m17n.org>
6df8b9fe 7616
048addec
JD
7617 * xdisp.c (message_dolog): Fix bug of the case that *Message*
7618 buffer is unibyte.
292ddc31 7619
048addec 76202003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
292ddc31 7621
048addec 7622 * fns.c (Fsubstring): Clarify doc string.
292ddc31 7623
048addec
JD
7624 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
7625 (Fprevious_char_property_change)
7626 (Fnext_single_char_property_change)
7627 (Fprevious_single_char_property_change, Fnext_property_change)
7628 (Fnext_single_property_change, Fprevious_property_change)
7629 (Fprevious_single_property_change, Fadd_text_properties)
7630 (Fput_text_property, Fset_text_properties)
7631 (Fremove_text_properties, Fremove_list_of_text_properties)
7632 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
63e4e4c6 7633
048addec 76342003-01-14 Kim F. Storm <storm@cua.dk>
63e4e4c6 7635
048addec
JD
7636 * process.h (struct Lisp_Process): New member plist replaces old
7637 member private_vars. All uses changed.
63e4e4c6 7638
048addec 7639 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
6bdb309a 7640 (QCplist): Rename from QCvars. Change all uses.
048addec 7641 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
6bdb309a 7642 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
048addec 7643 (syms_of_process): Intern, staticpro, defsubr these.
6bdb309a 7644 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
7ed16567 7645
048addec 76462003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
7ed16567 7647
6bdb309a 7648 * m/delta.h: Remove (obsolete).
e833850f 7649
048addec 76502003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
e833850f 7651
048addec
JD
7652 * fileio.c (Fdelete_directory, Fdelete_file): Document the
7653 behaviour in front of symlinks.
7654 (Fdelete_file): Raise an error on directories.
817cb127 7655
048addec 76562003-01-13 Dave Love <fx@gnu.org>
817cb127 7657
048addec 7658 * fns.c (Freverse): Use QUIT.
3e8cf2ea 7659
048addec 76602003-01-13 Richard M. Stallman <rms@gnu.org>
3e8cf2ea 7661
048addec
JD
7662 * minibuf.c (minibuffer_completion_contents):
7663 Error if point is inside prompt.
3e8cf2ea 7664
048addec
JD
7665 * keyboard.c (command_loop_1): Don't redisplay directly
7666 if there's a post-command-hook.
3e8cf2ea 7667
048addec
JD
7668 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
7669 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
2c10f029 7670
048addec 76712003-01-12 Kim F. Storm <storm@cua.dk>
94e8ffca 7672
048addec 7673 * process.h (struct Lisp_Process): New member private_vars.
94e8ffca 7674
048addec
JD
7675 * process.c (QCvars): New variable.
7676 (syms_of_process): Intern and staticpro it.
7677 (Fset_process_contact): Removed function.
7678 (Fprocess_variable, Fset_process_variable): New functions.
7679 (syms_of_process): Defsubr them.
7680 (Fstart_process): Initialize private_vars plist to nil.
7681 (Fmake_network_process): New arg :vars to setup the private
7682 variables for new network process.
7683 (server_accept_connection): Copy server's private variables to
7684 client process.
2c10f029 7685
048addec
JD
7686 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
7687 crashes). Code rewritten and simplified. Now directly aligns the
7688 pointer and recalculates pure_bytes_used, rather than aligning the
7689 size and adjusting the pointer.
b8a76c6c 7690
048addec 76912003-01-11 Kim F. Storm <storm@cua.dk>
b8a76c6c 7692
048addec
JD
7693 * process.c (Fset_process_contact): New function.
7694 (syms_of_process): defsubr it.
7695 (make-network-process): Update doc.
3a8d0899 7696
048addec 76972003-01-10 Andreas Schwab <schwab@suse.de>
3a8d0899 7698
048addec
JD
7699 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
7700 Reported by Berthold Gunreben <b.gunreben@web.de>.
4abc7470 7701
048addec 77022003-01-10 Dave Love <fx@gnu.org>
4abc7470 7703
048addec 7704 * composite.c (syms_of_composite): Make composition_hash_table weak.
b809d662 7705
048addec 77062003-01-09 Kim F. Storm <storm@cua.dk>
b809d662 7707
048addec
JD
7708 * process.c (Fmake_network_process): Convert new port number
7709 to host byte order for `:service t' case. From Mario Lang.
bf338245 7710
048addec 77112003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
bf338245 7712
048addec
JD
7713 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
7714 instead of XtAppProcessEvent.
bf338245 7715
048addec
JD
7716 * xterm.c (handle_one_xevent): New function.
7717 (x_dispatch_event): New function.
7718 (XTread_socket): Call handle_one_xevent.
bf338245 7719
048addec 7720 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
e833850f 7721
048addec
JD
7722 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
7723 call XQueryPointer to get coordinates.
7724 (popup_get_selection): Do not set popup_activated_flag to zero,
7725 let popup_deactivate_callback do that. Needed for Motif.
7726 Call x_dispatch_event instead of XtDispatchEvent.
7727 (xmenu_show): Calculate root coordinate from frame top/left position.
c4af2bce 7728
048addec 77292003-01-08 Kim F. Storm <storm@cua.dk>
c4af2bce 7730
6bdb309a 7731 * process.c (server_accept_connection): Fix recording of new
048addec
JD
7732 connection's local address in :local property of contact info.
7733 (Fmake_network_process): Record local network address for new
7734 client processes in :local property of contact info.
6bdb309a 7735 (format-network-address): Add arg OMIT-PORT. Change callers.
00e3ab56 7736
048addec 77372003-01-07 Dave Love <fx@gnu.org>
00e3ab56 7738
048addec 7739 * Makefile.in (fns.o): Depend on coding.h.
f387e1fd 7740
048addec 77412003-01-07 Markus Rost <rost@math.ohio-state.edu>
f387e1fd 7742
048addec 7743 * minibuf.c (Fread_variable): Doc fix.
f387e1fd 7744
048addec
JD
7745 * eval.c (Fuser_variable_p): Doc change. For custom variables,
7746 use the same test as for custom-variable-p.
8c6d74c6 7747
048addec 77482003-01-05 Richard M. Stallman <rms@gnu.org>
e833850f 7749
048addec
JD
7750 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
7751 Count LAST_LINE_MISFIT in scroll margin for end of window.
7752 Move label too_near_end before setting SCROLL_MARGIN_POS.
7753 Set LAST_LINE_MISFIT before jumping there.
8c6d74c6 7754
048addec
JD
7755 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
7756 scroll_conservatively case. If scrolling that much doesn't change
7757 STARTP, move it down one line.
e833850f 7758
048addec
JD
7759 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
7760 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
8c6d74c6 7761
048addec
JD
7762 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
7763 selected frame.
8c6d74c6 7764
048addec
JD
7765 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
7766 (syms_of_keymap): staticpro them.
7767 (Fapropos_internal): Initialize them and clear them out.
7768 Don't GCPRO them.
8c6d74c6 7769
048addec
JD
7770 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
7771 Doc fixes.
8c6d74c6 7772
048addec
JD
7773 * lisp.h: New misc type Lisp_Save_Value.
7774 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
7775 (XSAVE_VALUE): New macro.
7776 (struct Lisp_Save_Value): New data type.
7777 (union Lisp_Misc): Add u_save_value alternative.
7778 (make_save_value): Declared.
8c6d74c6 7779
048addec 7780 * alloc.c (make_save_value): New function.
8c6d74c6 7781
048addec
JD
7782 * xterm.c (x_catch_errors): Save dpy using make_save_value.
7783 (x_catch_errors_unwind): Call XSync.
8c6d74c6 7784
048addec 77852003-01-01 Richard M. Stallman <rms@gnu.org>
8c6d74c6 7786
048addec 7787 * window.c (window_scroll_pixel_based): Partially undo last change.
8c6d74c6 7788
048addec
JD
7789 * keyboard.c (command_loop_1): Call adjust_point_for_property
7790 in direct action cases for Qforward_char and Qbackward_char.
7791 Set already_adjusted so it won't be done twice.
8c6d74c6 7792
048addec 77932002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk> (tiny change)
8c6d74c6 7794
048addec
JD
7795 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
7796 type definition of size_t.
8c609cff 7797
048addec 77982003-01-02 Steven Tamm <steventamm@mac.com>
8c609cff 7799
048addec
JD
7800 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
7801 distinguish Carbon GUI builds from X11 builds on darwin.
b37113a1 7802
048addec 78032002-12-30 Steven Tamm <steventamm@mac.com>
b37113a1 7804
048addec
JD
7805 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
7806 to default to t.
fa634a5e 7807
048addec 78082002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
fa634a5e 7809
048addec 7810 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
ce0669d4 7811
048addec 78122002-12-28 Steven Tamm <steventamm@mac.com>
ce0669d4 7813
048addec
JD
7814 * Makefile.in (macosx-bundle): Fixes to Mac OS X/Carbon port to
7815 allow building in a different directory than source. Uses some
7816 GNU Make extensions, but there is no other make on Mac OS X.
2308af15 7817
048addec 78182002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
2308af15 7819
048addec
JD
7820 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
7821 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
7822 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
7823 (Fstring_to_number): Mention the returned value in the doc strings.
2155ecf3 7824
048addec 78252002-12-23 Richard M. Stallman <rms@gnu.org>
2155ecf3 7826
048addec
JD
7827 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
7828 <scroll-down-aggressively>: Doc fix.
2155ecf3 7829
048addec
JD
7830 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
7831 string as pane name, if there is one.
7832 (set_frame_menubar): Save menu_items_n_panes from each call to
7833 parse_single_submenu and use it when calling digest_single_submenu.
2155ecf3 7834
048addec
JD
7835 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
7836 Don't try to make last line fully visible if it is past end of window.
61f1d295 7837
048addec 78382002-12-22 Steven Tamm <steventamm@mac.com>
61f1d295 7839
048addec
JD
7840 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
7841 (mac_menu_show): Add support for hierarchical popup menus.
7842 (add_menu_item): Remove indentation support.
7843 (fill_submenu, fill_menu): Create hierarchical menus
7844 instead of using indentation.
0b17a217 7845
048addec 78462002-12-22 Richard M. Stallman <rms@gnu.org>
0b17a217 7847
048addec
JD
7848 * xdisp.c (try_cursor_movement): Don't call try_window here.
7849 (redisplay_window): Never redisplay minibuffer when inactive.
0b17a217 7850
048addec 7851 * window.c (select_window_1): Undo 9/21 change.
402e4f8b 7852
048addec 78532002-12-22 Steven Tamm <steventamm@mac.com>
402e4f8b 7854
048addec
JD
7855 * macterm.c (XTread_socket): Call KeyTranslate for control and
7856 meta to deal correctly shifted non-alpha characters, like C-S-5
7857 being treated like C-%. Does not look for shift key to deal
7858 with masking off control-key with mac-reverse-ctrl-meta.
f02cac82 7859
048addec 78602002-12-21 Richard M. Stallman <rms@gnu.org>
f02cac82 7861
048addec
JD
7862 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
7863 If it is non-nil, run timers. Use an unwind-protect to requeue
7864 the events that were read ahead.
7865 (popup_get_selection_unwind): New subroutine.
7866 (popup_get_selection_queue): File-scope variable now holds that queue.
7867 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
7868 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
7869 Use an unwind-protect to pop down the dialog box.
7870 (xdialog_show_unwind): New subroutine implements that.
f02cac82 7871
048addec
JD
7872 * xdisp.c (row_containing_pos): Change exit test using last_y.
7873 (try_window_id): Abort if row_containing_pos returns null.
f02cac82 7874
048addec
JD
7875 * lread.c (load_error_handler): New function.
7876 (Fload): Handle errors in Fsubstitute_in_file_name.
7877 Don't expect Fsignal to return.
f02cac82 7878
048addec
JD
7879 * eval.c: Errors and throws work right with interrupt blocking.
7880 (struct catchtag): New elt interrupt_input_blocked.
7881 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
7882 (internal_catch, Fcondition_case, internal_condition_case)
7883 (internal_condition_case_1, internal_condition_case_2): Save it.
7884 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
f02cac82 7885
048addec 7886 * editfns.c (Fformat): Add parens.
f02cac82 7887
048addec
JD
7888 * dired.c (file_name_completion): Fix that change.
7889 Delete special quit-handling code; just use QUIT.
f02cac82 7890
048addec 78912002-12-21 Tak Ota <Takaaki.Ota@am.sony.com> (tiny change)
f02cac82 7892
048addec
JD
7893 * dired.c (file_name_completion): Close directory on error
7894 just as in directory_files_internal.
1a590729 7895
048addec 78962002-12-19 David Kastrup <David.Kastrup@t-online.de>
1a590729 7897
048addec
JD
7898 * window.c (Fset_window_configuration): Set old_point to correct
7899 value when new_current_buffer == current_buffer.
f02cac82 7900
048addec 79012002-12-17 Ben Key <bkey1@tampabay.rr.com>
2308af15 7902
048addec
JD
7903 Revisited my earlier fix for the following entry in etc/PROBLEMS:
7904 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
7905 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
9785d95b 7906
048addec
JD
7907 These changes were in part based upon suggestions made by Peter
7908 'Luna' Runestig [peter@runestig.com].
9785d95b 7909
048addec
JD
7910 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token,
7911 g_b_init_get_token_information, g_b_init_lookup_account_sid,
6bdb309a 7912 g_b_init_get_sid_identifier_authority ): Add several static
048addec 7913 global variables.
9785d95b 7914
048addec
JD
7915 * w32.c (globals_of_w32): New function. Used to initialize those
7916 global variables that must always be initialized on startup even
7917 when the global variable initialized is non zero. Its primary
7918 purpose at this time is to set the global variables
7919 g_b_init_is_windows_9x, g_b_init_open_process_token,
7920 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
7921 g_b_init_get_sid_identifier_authority to 0 on startup.
7922 Called from main.
9785d95b 7923
048addec
JD
7924 * w32.c (is_windows_9x): Perform initialization only if
7925 g_b_init_is_windows_9x is equal to 0. On initialization set
7926 g_b_init_is_windows_9x equal to 1.
2308af15 7927
048addec
JD
7928 * w32.c (open_process_token): Perform initialization only if
7929 g_b_init_open_process_token is equal to 0. On initialization set
7930 g_b_init_open_process_token equal to 1.
2308af15 7931
048addec
JD
7932 * w32.c (get_token_information): Perform initialization only if
7933 g_b_init_get_token_information is equal to 0. On initialization
7934 set g_b_init_get_token_information equal to 1.
9785d95b 7935
048addec
JD
7936 * w32.c (lookup_account_sid): Perform initialization only if
7937 g_b_init_lookup_account_sid is equal to 0. On initialization
7938 set g_b_init_lookup_account_sid equal to 1.
9785d95b 7939
048addec
JD
7940 * w32.c (get_sid_identifier_authority): Perform initialization
7941 only if g_b_init_get_sid_identifier_authority is equal to 0.
7942 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
9785d95b 7943
f63fd14e 7944 * w32fns.c (globals_of_w32fns): New function. Used to initialize
048addec
JD
7945 those global variables that must always be initialized on startup
7946 even when the global variable initialized is non zero.
7947 Its primary purpose at this time is to initialize the global variable
7948 track_mouse_event_fn.
9785d95b 7949
a64387ee 7950 * w32fns.c (w32_wnd_proc): Remove initialization of
048addec 7951 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
9785d95b 7952
048addec 7953 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
9785d95b 7954
f63fd14e 7955 * w32menu.c (globals_of_w32menu): New function. Used to
048addec
JD
7956 initialize those global variables that must always be initialized
7957 on startup even when the global variable initialized is non zero.
7958 Its primary purpose at this time is to initialize the global
7959 variables get_menu_item_info and set_menu_item_info.
9785d95b 7960
048addec
JD
7961 * w32menu.c (initialize_frame_menubar): Remove initialization of
7962 get_menu_item_info and set_menu_item_info.
9785d95b 7963
048addec 7964 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
9785d95b 7965
048addec
JD
7966 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
7967 Declare them.
9785d95b 7968
048addec
JD
7969 * emacs.c (main): Call globals_of_w32 prior to calling
7970 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
7971 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
7972 is defined.
9785d95b 7973
048addec
JD
7974 * w32term.c (x_update_window_begin): Fix Windows API error
7975 detected by BoundsChecker. Test to determine if
7976 w32_system_caret_hwnd is NULL prior to attempting to use
7977 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
2308af15 7978
048addec
JD
7979 * w32term.c (x_update_window_end): Fix Windows API error
7980 detected by BoundsChecker. Test to determine if
7981 w32_system_caret_hwnd is NULL prior to attempting to use
7982 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
b6da19ef 7983
048addec 79842002-12-17 Kenichi Handa <handa@m17n.org>
b6da19ef 7985
048addec
JD
7986 * coding.c (coding_system_require_warning): New variable.
7987 (syms_of_coding): DEFVAR it.
b6da19ef 7988
048addec 7989 * coding.h (coding_system_require_warning): Extern it.
b6da19ef 7990
048addec
JD
7991 * fileio.c (choose_write_coding_system): Even if
7992 Vcoding_system_for_write is non-nil, if
7993 coding_system_require_warning is nonzero, call
7994 Vselect_safe_coding_system_function.
bfcf6dbe 7995
048addec 79962002-12-17 Markus Rost <rost@math.ohio-state.edu>
bfcf6dbe 7997
048addec
JD
7998 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
7999 (lisp): Add font-core.
2c568af5 8000
048addec 80012002-12-13 Stefan Monnier <monnier@cs.yale.edu>
2c568af5 8002
048addec
JD
8003 * textprop.c (text_read_only): New arg `propval'.
8004 (get_char_property_and_overlay): Remove unused var `next_overlay'.
8005 (verify_interval_modification): Use text_read_only's new arg.
b8c6225c 8006
048addec 80072002-12-13 Kenichi Handa <handa@m17n.org>
b8c6225c 8008
048addec 8009 * coding.c (Funencodable_char_position): Set pend correctly.
706ddb8f 8010
048addec 80112002-12-12 Jason Rumney <jasonr@gnu.org>
706ddb8f 8012
048addec
JD
8013 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
8014 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
8015 Be more careful about when help_events are generated.
96720f09 8016
048addec 80172002-12-12 Steven Tamm <steventamm@mac.com>
96720f09 8018
048addec
JD
8019 * macterm.c (mac_check_for_quit_char): Correctly set the
8020 modifiers of the event to 0.
8021 * mac.c (sys_select): Duplicate rfds before calling select to
8022 ensure that rfds survive the while loop.
e5ae1c49 8023
048addec 80242002-12-11 Kim F. Storm <storm@cua.dk>
e5ae1c49 8025
048addec
JD
8026 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
8027 row_containing_pos returned NULL.
2eb46b2d 8028
048addec 80292002-12-10 Steven Tamm <steventamm@mac.com>
2eb46b2d 8030
6bdb309a 8031 * mac.c (sys_read): Fix sys_read to not call select if IO is
048addec 8032 non-blocking.
6bdb309a 8033 (sys_select): Fix sys_select to not use a timeout larger than
048addec 8034 the one given.
b11f1d8a 8035
048addec 80362002-12-10 Juanma Barranquero <lektu@terra.es>
b11f1d8a 8037
048addec 8038 * editfns.c (Fformat): Use alloca, not _alloca.
d8528226 8039
048addec 80402002-12-09 Richard M. Stallman <rms@gnu.org>
d8528226 8041
048addec
JD
8042 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
8043 as the last thing.
a4ac5b17 8044
048addec 80452002-12-09 Dave Love <fx@gnu.org>
a4ac5b17 8046
048addec 8047 * s/sol2-8.h: Removed. (Not necessary.)
ac42d7b9 8048
048addec 80492002-12-09 Matthew Swift <swift@alum.mit.edu>
ac42d7b9 8050
048addec
JD
8051 * editfns.c (Fformat): Handle precision in string conversion
8052 specifiers like libc functions do (ie, print at most that many
8053 characters).
85cce843 8054
048addec 80552002-12-08 Richard M. Stallman <rms@gnu.org>
85cce843 8056
048addec
JD
8057 * xdisp.c (row_containing_pos): Check more carefully
8058 whether charpos is really in the row before returning it.
0d4d26a7 8059
048addec 80602002-12-07 Steven Tamm <steventamm@mac.com>
0d4d26a7 8061
048addec 8062 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
b11f1d8a 8063
048addec
JD
8064 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
8065 each stack frame. This may change as it could be time consuming.
0d4d26a7 8066
048addec
JD
8067 * macterm.c (mac_check_for_quit_char, quit_char_comp)
8068 (init_quit_char_handler, mac_determine_quit_char_modifiers)
6bdb309a 8069 (mac_initialize): Add code to check for pressing of quit_char
048addec 8070 in the OS event queue.
b11f1d8a 8071
048addec
JD
8072 * mac.c (sys_select): Call mac_check_for_quit_char every second
8073 while blocking on select.
0d4d26a7 8074
048addec
JD
8075 * mac.c (sys_read): Use sys_select to test for input first
8076 before calling read, to allow C-g to break.
9252f7bc 8077
048addec 80782002-12-07 Richard M. Stallman <rms@gnu.org>
9252f7bc 8079
048addec 8080 * minibuf.c (Fcompleting_read): Doc fix.
9252f7bc 8081
048addec 8082 * lread.c (syms_of_lread) <load-history>: Doc fix.
9252f7bc 8083
048addec 8084 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
9252f7bc 8085
048addec
JD
8086 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
8087 autoload.
9252f7bc 8088
048addec 8089 * data.c (Fdefalias): Record in load-history redefining an autoload.
9252f7bc 8090
048addec 8091 * alloca.c: Undo ifdef change accidentally made on 12-04.
bfa261c0 8092
048addec 80932002-12-06 Francesco Potorti` <pot@gnu.org>
bfa261c0 8094
048addec 8095 * xfns.c (png_load): Avoid double gamma correction for PNG images.
c5992177 8096
048addec 80972002-12-04 Richard M. Stallman <rms@gnu.org>
c5992177 8098
048addec 8099 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 8100
048addec 8101 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 8102
048addec 8103 * alloca.c: Don't use #error.
02d588e2 8104
048addec 81052002-12-03 Dave Love <fx@gnu.org>
02d588e2 8106
048addec
JD
8107 * buffer.c (Qucs_set_table_for_input): New.
8108 (Fget_buffer_create): Use it.
8109 (Qset_buffer_major_mode_hook): Deleted.
8110 (Fset_buffer_major_mode): Revert previous change.
8111 (init_buffer_once): Intern ucs-set-table-for-input.
8112 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
8113 Add &Qucs_set_table_for_input.
451e2697 8114
048addec 81152002-12-03 Andreas Schwab <schwab@suse.de>
451e2697 8116
048addec
JD
8117 * callint.c (Fcall_interactively): Use next_event only if less
8118 than key_count.
72742a99 8119
048addec 81202002-12-02 Andrew Choi <akochoi@shaw.ca>
72742a99 8121
048addec
JD
8122 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
8123 names to 255 characters.
72742a99 8124
048addec
JD
8125 * macterm.c (XTread_socket): If all frames have been collapsed,
8126 expand the first one before handling drag-and-drop events.
72742a99 8127
048addec
JD
8128 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
8129 which is detected by autoconf.
40e6ff95 8130
048addec 81312002-12-01 Steven Tamm <steventamm@mac.com>
40e6ff95 8132
048addec
JD
8133 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
8134 offset in two hints table to allow prebinding to be redone and
8135 allow the executable to be stripped.
c02138c6 8136
048addec 81372002-11-29 Dave Love <fx@gnu.org>
c02138c6 8138
048addec
JD
8139 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
8140 already provided.
0e47bbf7 8141
048addec 81422002-11-29 Richard M. Stallman <rms@gnu.org>
0e47bbf7 8143
048addec
JD
8144 * xdisp.c (start_display): Check more intelligently for
8145 whether the line is continued.
8146 (move_it_vertically_backward): Clear it->continuation_lines_width.
44129dcb 8147
048addec 81482002-11-28 Dave Love <fx@gnu.org>
44129dcb 8149
048addec
JD
8150 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
8151 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
f707342d 8152
048addec 81532002-11-27 Steven Tamm <steventamm@mac.com>
f707342d 8154
048addec
JD
8155 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
8156 more descriptive error output from lread.c:Fload upon most require
8157 cycles during boostrapping.
1637fd2c 8158
048addec 81592002-11-27 Jason Rumney <jasonr@gnu.org>
1637fd2c 8160
048addec
JD
8161 * fileio.c (Finsert_file_contents): Give a more appropriate error
8162 for files bigger than 2Gb when off_t is 32 bit.
1637fd2c 8163
048addec
JD
8164 * dired.c (Ffile_attributes): Don't return negative file sizes for
8165 files bigger than 2Gb when off_t is 32 bit.
540c2788 8166
048addec 81672002-11-27 Dave Love <fx@gnu.org>
6b2fd6ea 8168
048addec 8169 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6b2fd6ea 8170
048addec
JD
8171 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
8172 Test GETPGRP_VOID instead.
8173 [BSD_TERMIOS]: Remove definitions (never used).
6b2fd6ea 8174
048addec
JD
8175 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
8176 Don't define.
8177 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
540c2788 8178
048addec 8179 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
8cc03716 8180
048addec 81812002-11-25 Jason Rumney <jasonr@gnu.org>
8cc03716 8182
048addec
JD
8183 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
8184 supported.
4042a81a 8185
048addec 81862002-11-25 Dave Love <fx@gnu.org>
4042a81a 8187
048addec 8188 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
4042a81a 8189
048addec 8190 * Makefile.in (TEMACS_LDFLAGS): Update last change.
be4ee72f 8191
048addec 81922002-11-25 Andreas Schwab <schwab@suse.de>
be4ee72f 8193
048addec 8194 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
82122254 8195
048addec 81962002-11-24 Steven Tamm <steventamm@mac.com>
82122254 8197
048addec
JD
8198 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
8199 determine the size of pointers alloced in unexed space instead
8200 of using possibly invalid emacs_zone pointers. This fixes the
8201 binary incompatibility problems caused by updates to libSystem.B.
c1ee53bc 8202
048addec 82032002-11-24 Richard M. Stallman <rms@gnu.org>
c1ee53bc 8204
048addec 8205 * search.c (Fstring_match): Doc fix.
c1ee53bc 8206
048addec
JD
8207 * callint.c (Fcall_interactively): If a command fails because
8208 `*' detects a read-only buffer, but RECORD_FLAG is set,
8209 record it anyway if the args don't actually do tty input.
5598c32e 8210
048addec 82112002-11-22 Dave Love <fx@gnu.org>
5598c32e 8212
048addec 8213 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
5598c32e 8214
048addec
JD
8215 * keyboard.c (interrupt_signal): Provide forward declaration.
8216 (kbd_buffer_store_event): Don't declare interrupt_signal.
5598c32e 8217
048addec 8218 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
97b14e22 8219
048addec 82202002-11-21 Richard M. Stallman <rms@gnu.org>
97b14e22 8221
048addec
JD
8222 * eval.c (interactive_p): Skip any number of bytecode
8223 and special form frames, in any order.
516eea8e 8224
048addec 82252002-11-20 Jason Rumney <jasonr@gnu.org>
516eea8e 8226
048addec
JD
8227 * w32fns.c (convert_mono_to_color_image): New function.
8228 (xbm_load, xbm_load_image): Use it when foreground or background
8229 is explicitly set.
04dbfa08 8230
048addec 82312002-11-19 Dave Love <fx@gnu.org>
04dbfa08 8232
048addec 8233 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
b4aebae3 8234
048addec 82352002-11-18 Jason Rumney <jasonr@gnu.org>
b4aebae3 8236
048addec
JD
8237 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
8238 (XPutPixel): Swap blue and red.
8239 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
8240 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
8241 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
8242 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
1998560a 8243
048addec 82442002-11-18 Dave Love <fx@gnu.org>
d824beee 8245
048addec 8246 * m/orion105.h (HAVE_ALLOCA): Don't define.
d824beee 8247
048addec 8248 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
d824beee 8249
048addec 8250 * m/intel386.h: Don't include alloca.h or define alloca.
d824beee 8251
048addec
JD
8252 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
8253 malloc, realloc, calloc.
d824beee 8254
048addec
JD
8255 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
8256 (bcmp): Don't define.
d824beee 8257
048addec 8258 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
d824beee 8259
048addec 8260 * m/amdahl.h: Don't define LIB_STANDARD.
d824beee 8261
048addec 8262 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
d824beee 8263
048addec 8264 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
d824beee 8265
048addec
JD
8266 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
8267 Don't include alloca.h.
d824beee 8268
048addec 8269 * s/aix3-2.h (HAVE_FSYNC): Don't define.
1998560a 8270
048addec 8271 * regex.c (_GNU_SOURCE): Don't define.
1998560a 8272
048addec 8273 * process.c (_GNU_SOURCE): Don't define.
1998560a 8274
048addec 8275 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
8704a6ab 8276
048addec 82772002-11-18 Markus Rost <rost@math.ohio-state.edu>
8704a6ab 8278
048addec 8279 * s/sol2-8.h: Include sol2-6.h.
6ae2cd57 8280
048addec 82812002-11-18 Miles Bader <miles@gnu.org>
6ae2cd57 8282
048addec
JD
8283 * dispextern.h (struct face): Add `overstrike' field.
8284 * xterm.c (x_draw_glyph_string_foreground)
8285 (x_draw_composite_glyph_string_foreground): Implement overstriking.
8286 * xfaces.c (load_face_font): Set `face->overstrike' based on
8287 result from choose_face_font.
8288 (best_matching_font, choose_face_font): Add `needs_overstrike'
8289 argument, and use it to return whether overstriking is desirable
8290 for this face/font combo.
8291 (set_font_frame_param: Pass new argument to choose_face_font.
6ae2cd57 8292
048addec 82932002-11-17 Ben Key <BKey1@tampabay.rr.com>
3582b6a3 8294
048addec
JD
8295 This change is my fix for the following entry in etc/PROBLEMS:
8296 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
8297 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
f60ae425 8298
048addec
JD
8299 * w32.c: Added wrapper functions around the win32 API functions
8300 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
8301 GetSidIdentifierAuthority. These wrapper functions serve two
8302 purposes:
8303 1. They ensure that the wrapped function can never be called
8304 when Emacs is running on an operating system on which they are
8305 not supported (Microsoft Windows 95 / 98 / ME).
8306 2. They call the wrapped functions via function pointers rather
8307 than calling them directly. This avoids taking advantage of the
8308 undocumented fact that although these functions are not supported
8309 in the 9x branch of Microsoft Windows, the functions do exist in
8310 the version of advapi32.dll that is found in the 9x branch of
8311 Microsoft Windows.
f60ae425 8312
6bdb309a 8313 * w32.c (init_user_info): Replace the calls to the win32 API
048addec
JD
8314 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
8315 and GetSidIdentifierAuthority with calls to the newly added
8316 wrapper functions.
f60ae425 8317
048addec
JD
8318 * w32.h: Added extern declarations for the following functions:
8319 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
8320 syms_of_w32menu, and void syms_of_fontset.
f60ae425 8321
6bdb309a 8322 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
048addec
JD
8323 function pointer track_mouse_event_fn in the handler for the
8324 WM_SETFOCUS message.
3582b6a3 8325
6bdb309a 8326 * w32menu.c (initialize_frame_menubar): Add code to
048addec
JD
8327 reinitialize the function pointers set_menu_item_info and
8328 get_menu_item_info.
f60ae425 8329
048addec 83302002-11-17 Ben Key <BKey1@tampabay.rr.com>
f60ae425 8331
048addec
JD
8332 * sound.c: Added a partial implementation of play-sound-internal
8333 for Microsoft Windows. Added various #ifdef / #else / #endif
8334 code blocks to separate the code that will compile under
8335 Microsoft Windows from the code that is specific to Gnu/Linux.
8336 Moved several blocks of code around to make this separation of code
8337 into Windows compatible and Gnu/Linux compatible code blocks easier.
f60ae425 8338
048addec 8339 * makefile.w32-in: Include sound.c and link with WinMM.lib.
a0f0878d 8340
048addec
JD
8341 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
8342 added support for play-sound-internal under Windows would be
8343 included in the build of Emacs.
517f42a0 8344
048addec 83452002-11-16 Jason Rumney <jasonr@gnu.org>
517f42a0 8346
048addec 8347 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
517f42a0 8348
048addec 8349 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
a0f0878d 8350
048addec 83512002-11-15 Stefan Monnier <monnier@cs.yale.edu>
a0f0878d 8352
048addec
JD
8353 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
8354 (adjust_point_for_property): Move out of display and invisible even if
8355 we were already inside before (in case a property was added while
8356 we weren't looking). Be more careful when handling invisible props.
8357 Skip invisible text as if it really wasn't there at all.
aab83f91 8358
048addec 83592002-11-15 Jason Rumney <jasonr@gnu.org>
aab83f91 8360
048addec
JD
8361 * w32term.c (x_draw_image_foreground)
8362 (w32_draw_image_foreground_1): Use standard copy and invert
8363 operations to draw images.
aab83f91 8364
048addec
JD
8365 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
8366 depth of 1.
8367 (xbm_read_bitmap_data): Invert bits as xbm is read in.
8368 (XPutPixel): Don't invert bits here.
a4478a76 8369
048addec 83702002-11-15 Jason Rumney <jasonr@gnu.org>
a4478a76 8371
048addec
JD
8372 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
8373 (w32_draw_image_foreground_1): Handle image masks.
8374 (x_draw_image_glyph_string): Don't BitBlt transparently.
a4478a76 8375
048addec
JD
8376 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
8377 (x_from_xcolors): Adjust RGB values for W32.
8378 (image_background, image_background_transparent)
8379 (postprocess_image, x_to_xcolors, x_disable_image)
8380 (x_build_heuristic_mask): Adapt for W32 and enable.
8381 (x_create_x_image_and_pixmap): Mark images with palettes as such.
8382 (xbm_load): Remove unused variable.
03670a65 8383
048addec 83842002-11-14 Richard M. Stallman <rms@gnu.org>
03670a65 8385
048addec 8386 * buffer.c (syms_of_buffer): Doc fix.
59daa29a 8387
048addec 83882002-11-14 Dave Love <fx@gnu.org>
59daa29a 8389
048addec 8390 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
59daa29a 8391
048addec
JD
8392 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
8393 * xmenu.c (unuse_menu_items, digest_single_submenu):
8394 * xfns.c (x_put_x_image):
8395 * xdisp.c (message2_nolog, set_message):
8396 * undo.c (record_point):
8397 * terminfo.c (tparam):
8398 * syntax.c (scan_sexps_forward):
8399 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
8400 * composite.c (update_compositions):
8401 * cm.c (calccost, cmgoto):
8402 * charset.c (c_string_width): Declare all args (per C99).
59daa29a 8403
048addec 8404 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
59daa29a 8405
048addec
JD
8406 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
8407 Don't declare.
59daa29a 8408
048addec 8409 * emacs.c (main) [!VMS]: Avoid third arg.
59daa29a 8410
048addec
JD
8411 * fns.c (Fcopy_sequence): Doc fix.
8412 (Fmap_char_table): Cast `call2'.
3947677c 8413
048addec
JD
84142002-11-14 Francesco Potorti` <pot@gnu.org>
8415
8416 * s/sol2-8.h: New file.
8417
84182002-11-14 Kim F. Storm <storm@cua.dk>
8419
8420 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
8421 dependency on `risky-local-variable' and the :propertize form.
8422
84232002-11-12 Stefan Monnier <monnier@cs.yale.edu>
8424
8425 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
8426
8427 * syntax.c (scan_sexps_forward): Undo last patch.
8428 Use a more obvious fix: check eob before updating the syntax table.
8429
84302002-11-09 Stefan Monnier <monnier@cs.yale.edu>
8431
8432 * syntax.c (scan_sexps_forward): Update syntax table before reading
8433 a char rather than after so we don't update the table past eob.
8434
84352002-11-09 Dave Love <fx@gnu.org>
8436
8437 * buffer.c (Fset_buffer_major_mode): Fix last change.
8438
8439 * regex.c (regexec): Fix pmatch declaration.
8440
8441 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
8442
8443 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
8444 to self-inserting characters.
8445 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
8446
8447 * coding.c (Vtranslation_table_for_input): New.
8448 (syms_of_coding): DEFVAR it.
8449
84502002-11-08 Juanma Barranquero <lektu@terra.es>
8451
8452 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
8453 window.
8454
84552002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8456
6bdb309a 8457 * process.c (Fformat_network_address): Remove unused locals p,
048addec
JD
8458 cp, and i.
8459
84602002-11-06 Dave Love <fx@gnu.org>
8461
8462 * buffer.c (Qset_buffer_major_mode_hook): New.
8463 (Fset_buffer_major_mode): Use it.
8464
84652002-11-06 Richard M. Stallman <rms@gnu.org>
8466
8467 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
8468 and stop_polling.
8469
8470 * process.c (wait_reading_process_input):
8471 Test POLLING_PROBLEM_IN_SELECT, not hpux.
8472 Avoid initialization for auto Lisp_Object var.
8473
8474 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
8475
8476 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
8477
84782002-11-05 Richard M. Stallman <rms@gnu.org>
8479
8480 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
8481
8482 * callint.c (Fcall_interactively): New local filter_specs.
8483 (Fcall_interactively): Check for progn as well as let.
8484 Add a gcpro.
8485 (Qprogn): New variable.
8486 (syms_of_callint): Staticpro and init Qprogn.
8487
84882002-11-04 John Paul Wallington <jpw@shootybangbang.com>
8489
8490 * lread.c (Feval_buffer): Doc fix.
8491
84922002-11-04 Dave Love <fx@gnu.org>
8493
8494 * keyboard.c (read_char): Always translate iff
8495 Vkeyboard_translate_table is a char table and c is valid.
8496
8497 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
8498 and fix C types.
8499
85002002-11-03 Stefan Monnier <monnier@cs.yale.edu>
8501
8502 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
8503
8504 * editfns.c (get_pos_property): Don't hardcode Qfield.
8505
8506 * keyboard.c (adjust_point_for_property): Handle `display' prop on
8507 overlays. Also handle `invisible' prop.
8508
85092002-11-02 Stefan Monnier <monnier@cs.yale.edu>
8510
8511 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
8512 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
8513
85142002-11-01 Andreas Schwab <schwab@suse.de>
8515
8516 * editfns.c (Fmessage): Revert last change to properly handle %%.
8517
85182002-11-01 Stefan Monnier <monnier@cs.yale.edu>
8519
8520 * xmenu.c (unuse_menu_items): New fun.
8521 (menu_items_inuse): New var.
8522 (syms_of_xmenu): Initialize it.
8523 (init_menu_items): Use it to detect re-entrance.
8524 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
8525 (Fx_popup_menu): Remove spurious XSETFRAME.
8526
8527 * editfns.c (find_field): Make an exception for nil fields.
8528
85292002-11-01 Dave Love <fx@gnu.org>
8530
8531 * m/gec63.h: Deleted.
8532
85332002-10-31 Dave Love <fx@gnu.org>
8534
8535 * xterm.c (XTread_socket): Fix last change.
8536 (xaw_scroll_callback): Cast call_data to long to avoid warning.
8537
85382002-10-31 Stefan Monnier <monnier@cs.yale.edu>
8539
8540 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
8541
85422002-10-30 Stefan Monnier <monnier@cs.yale.edu>
8543
8544 * editfns.c (overlays_around, get_pos_property): New funs.
8545 (find_field): Use them.
8546 Also be careful not to modify POS before its last use.
8547 (Fmessage): Don't Fformat if there's nothing to format.
8548
85492002-10-30 Dave Love <fx@gnu.org>
8550
8551 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
8552 [HAVE_PTY_H]; Include pty.h.
8553
8554 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
8555
8556 * xterm.c (Qeql): Declare.
8557 (Vx_keysym_table): New.
8558 (syms_of_xterm): Initialize it.
8559 (XTread_socket): Use it. Deal with ASCII keysyms.
8560 (XSetIMValues) [HAVE_X11R6]: Prototype.
8561
8562 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
8563 (lispy_kana_keys): Comment out.
8564 (make_lispy_event) [XK_kana_A]: Comment out.
8565 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
8566 Fix sprintf call.
8567
8568 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
8569 regexp.h change).
8570 (TERMINFO, LIBS_TERMCAP): Define.
8571
8572 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
8573 (bcmp): Define conditional on HAVE_BCMP.
8574 (NO_SIOCTL_H): Don't define.
8575 (TIOCSIGSEND): Don't make conditional on IRIX6.
8576
8577 * s/sol2-5.h: Don't include strings.h.
8578 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
8579
8580 * s/irix6-0.h (IRIX6): Don't define.
8581 (bcopy, bcmp, bzero): Don't undef.
8582
8583 * s/irix6-5.h: Don't include strings.h.
8584 (IRIX6): Don't define.
8585 (bcopy, bcmp, bzero): Don't undef.
8586
8587 * syntax.c (Fforward_comment): Doc fix.
8588
85892002-10-29 Kim F. Storm <storm@cua.dk>
8590
8591 * process.c (Fsignal_process): Allow PROCESS to be specified by
8592 name in addition to pid (as integer or string).
8593
85942002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
8595
8596 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
8597 environments.
8598
85992002-10-27 Kim F. Storm <storm@cua.dk>
8600
8601 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
8602
8603 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
8604
8605 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
8606
8607 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
8608
86092002-10-26 Richard M. Stallman <rms@gnu.org>
8610
8611 * editfns.c (Fformat): Detect invalid format letters for floats.
8612
86132002-10-25 Kenichi Handa <handa@m17n.org>
8614
8615 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
8616 (x_set_title): Likewise.
8617
86182002-10-25 Juanma Barranquero <lektu@terra.es>
8619
8620 * macgui.h:
8621 * w32gui.h: Remove definition of XColor.
8622
8623 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
8624
86252002-10-24 Kim F. Storm <storm@cua.dk>
8626
8627 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
8628 Callers changed (supply dummy arg).
8629
8630 * lisp.h (get_window_cursor_type): Update prototype.
8631
8632 * w32term.c (x_display_and_set_cursor): Get active_cursor from
8633 get_window_cursor_type to track system caret.
8634
86352002-10-24 Kim F. Storm <storm@cua.dk>
8636
8637 * process.c (Fformat_network_address): New function.
8638 (syms_of_process): Defsubr it.
8639 (list_processes_1): Use it to format :local/:remote address if
f9711de4 8640 service/host is not set; before Emacs would crash in that case.
048addec
JD
8641 (Fmake_network_process): Don't use Ffind_operation_coding_system
8642 to setup coding system if host or service is not set.
8643
86442002-10-23 Juanma Barranquero <lektu@terra.es>
8645
8646 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
8647
8648 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
8649 COLORREF.
8650
8651 * macgui.h:
8652 * w32gui.h: Add definition of XColor.
8653
8654 * macfns.c:
8655 * w32fns.c:
8656 * xfaces.c: Remove definition of XColor.
8657
86582002-10-22 Stefan Monnier <monnier@cs.yale.edu>
8659
8660 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
8661
8662 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
8663 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
8664 window if it is dedicated.
8665 (Fshrink_window): Add preserve_before as was done for enlarge_window.
8666 (Vspecial_display_function): Update docstring.
8667
8668 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
8669 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
8670 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
8671
86722002-10-21 Stefan Monnier <monnier@cs.yale.edu>
8673
8674 * casefiddle.c (casify_region): Don't treat a prefix char as part
8675 of a word when at the beginning.
8676
86772002-10-17 Juanma Barranquero <lektu@terra.es>
8678
8679 * lread.c (syms_of_lread): Fix typos.
8680
86812002-10-17 Dave Love <fx@gnu.org>
8682
8683 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
8684
86852002-10-16 Richard M. Stallman <rms@gnu.org>
8686
8687 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
8688
86892002-10-14 Juanma Barranquero <lektu@terra.es>
8690
8691 * w16select.c (syms_of_win16select): Fix docstring for
8692 `selection-coding-system'.
8693
8694 * w32select.c (syms_of_w32select): Likewise.
8695
86962002-10-14 Stefan Monnier <monnier@cs.yale.edu>
8697
8698 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
8699 a backslash-quoted char.
8700 (scan_lists, scan_sexps_forward): Pacify the compiler.
8701
87022002-10-13 Richard M. Stallman <rms@gnu.org>
8703
8704 * window.c (window_scroll): Set immediate_quit.
8705
8706 * print.c (print): When backquote form is the car of a list,
8707 output in old style. Use old_backquote_output to output all
8708 comma forms inside it in old style too.
8709
8710 * buffer.h (struct buffer): Move `undo_list' down below `name'.
8711
87122002-10-11 Markus Rost <rost@math.ohio-state.edu>
8713
8714 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
8715 batch mode).
8716
8717 * lread.c (Fload): Doc fix (load-suffixes).
8718
87192002-10-10 Steven Tamm <steventamm@mac.com>
8720
8721 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
8722 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
8723 Also switch the default to Qnil from Qt.
8724
87252002-10-08 Kenichi Handa <handa@m17n.org>
8726
8727 * coding.c (code_convert_region): When we need more GAP for
8728 conversion, pay attention to the case that coding->produced is not
8729 greater than coding->consumed.
8730
87312002-10-07 Richard M. Stallman <rms@gnu.org>
8732
8733 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
8734
87352002-10-06 Andrew Choi <akochoi@shaw.ca>
8736
8737 * macmenu.c (mac_menu_show): Add j to count menu items; match
8738 menu_item_selection to it to find selected item.
8739
87402002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8741
8742 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
8743 cases. The correct fix is to pass ReparentNotify to Xt.
8744 The shell widget interprets ConfigureNotify differently depending
8745 on if it has been reparented or not.
8746
87472002-10-05 Markus Rost <rost@math.ohio-state.edu>
8748
8749 * editfns.c (Fformat_time_string): Doc fix.
8750
87512002-10-05 John Paul Wallington <jpw@shootybangbang.com>
8752
8753 * fns.c (Flength): Doc fix.
8754
87552002-10-04 Stefan Monnier <monnier@cs.yale.edu>
8756
8757 * keyboard.c (keyremap): New struct.
8758 (read_key_sequence): Use it: globally replace keytran_foo with
8759 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
8760 keytran_next and fkey_next to just `next'.
8761
87622002-10-04 Steven Tamm <steventamm@mac.com>
8763
8764 * macterm.c (keycode_to_xkeysym_table): Change return to be
8765 treated like an X keysym.
8766
87672002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8768
8769 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
8770 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
8771 This is to also handle x/y changes that occur because of a resize.
8772
87732002-10-02 John Paul Wallington <jpw@shootybangbang.com>
8774
8775 * frame.c (Vdelete_frame_functions): New variable.
8776 (syms_of_frame): Initialize and defvar it.
8777 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
8778 it when frame's `tooltip' parameter is non-nil.
8779
8780 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
8781
8782 * w32fns.c (x_create_tip_frame): Likewise.
8783
8784 * macfns.c (x_create_tip_frame): Likewise.
8785
87862002-09-30 Kenichi Handa <handa@m17n.org>
8787
8788 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
8789 -1 before calling ccl_driver.
8790
8791 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
8792 Only when it is non-nil, handle composition sequence.
8793 (setup_coding_system) <0>: Don't force composition handling.
8794
8795 * Makefile.in (lisp, shortlisp): Add utf-16.elc
8796
87972002-09-29 Richard M. Stallman <rms@gnu.org>
8798
8799 * search.c (Freplace_match): Adjust match data for the substitution
8800 just made in the buffer.
8801
8802 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
8803 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
8804
88052002-09-27 Richard M. Stallman <rms@gnu.org>
8806
8807 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
8808 (read_char): Use them. Do all exits thru the end of the function.
8809
88102002-09-27 Kenichi Handa <handa@etl.go.jp>
8811
8812 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
8813 is nil.
8814
88152002-09-26 Richard M. Stallman <rms@gnu.org>
8816
8817 * regex.h (__restrict_arr): Don't define if already defined.
8818
8819 * coding.c (run_pre_post_conversion_on_str):
8820 Save and restore Vdeactivate_mark.
8821
88222002-09-26 John Paul Wallington <jpw@shootybangbang.com>
8823
8824 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
8825
88262002-09-26 Kenichi Handa <handa@etl.go.jp>
8827
8828 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
8829 nonzero, try face's family at first. Otherwise try FAMILY at first.
8830 (choose_face_font): If C is a single byte char or latin-1, call
8831 try_font_list with PREFER_FACE_FAMILY 1.
8832
88332002-09-21 Richard M. Stallman <rms@gnu.org>
8834
8835 * window.c (select_window_1): Don't select frame.
8836 Set frame's selected window only when frame itself is selected.
8837 (Fselect_window): Doc fix.
8838
88392002-09-18 Kim F. Storm <storm@cua.dk>
8840
8841 * process.c (make-network-process): Doc fix (there is no
8842 network-server-log-function hook).
8843
88442002-09-18 Richard M. Stallman <rms@gnu.org>
8845
8846 * print.c (print): Clear out the unused parts of Vprint_number_table.
8847 (syms_of_print): Doc fix for `print-number-table'.
8848
8849 * unexelf.c (unexec): Undo previous change.
8850
88512002-09-17 Andreas Schwab <schwab@suse.de>
8852
8853 * m/alpha.h [LINUX]: Don't define DATA_START.
8854
88552002-09-16 Dave Love <fx@gnu.org>
8856
8857 * unexelf.c (unexec): Deal with .got, reinstating change from
8858 25-08-1999.
8859
88602002-09-13 Richard M. Stallman <rms@gnu.org>
8861
8862 * s/sol2-6.h (UNEXEC): Comment out definition.
8863
8864 * unexsol.c (unexec): Don't downcase first letter of error msg.
8865
8866 * xfaces.c (Fcolor_supported_p): Just one arg is required.
8867
88682002-09-12 Markus Rost <rost@math.ohio-state.edu>
8869
8870 * unexsol.c: Include buffer.h, charset.h, coding.h.
8871
88722002-09-11 Richard M. Stallman <rms@gnu.org>
8873
8874 * unexsol.c: Don't use report_file_error; do it by hand
8875 using dlerror.
8876
8877 * process.c (wait_reading_process_input, both versions):
8878 Before calling turn_on_atimers, call stop_polling.
8879
8880 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
8881
8882 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
8883 we go to too_near_end, call clear_glyph_matrix.
8884 (redisplay_window): After make_cursor_line_fully_visible,
8885 call clear_glyph_matrix and bypass `goto done'.
8886
8887 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
8888 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
8889
88902002-09-10 Richard M. Stallman <rms@gnu.org>
8891
8892 * fileio.c (Fdo_auto_save): Catch error making directory.
8893 Only call push_message if we need to.
8894 At the same time, make an unwind-protect to pop it.
8895 Rename local message_p to old_message_p.
8896 (do_auto_save_make_dir, do_auto_save_eh): New functions.
8897 (do_auto_save_unwind): Don't call pop_message.
8898
8899 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
8900
8901 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
8902
8903 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
8904
8905 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
8906
89072002-09-10 Stefan Monnier <monnier@cs.yale.edu>
8908
8909 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
8910 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
8911 (re_match_2_internal): Be more careful with infinite loops.
8912
89132002-09-10 Kim F. Storm <storm@cua.dk>
8914
8915 * macros.c (end_kbd_macro): New function.
8916 (Fend_kbd_macro): Use it.
8917
8918 * macros.h (end_kbd_macro): Declare extern.
8919
8920 * keyboard.c (Fdiscard_input): If defining keyboard macro,
8921 end and save it instead of discarding it.
8922
89232002-09-09 Markus Rost <rost@math.ohio-state.edu>
8924
8925 * s/sol2-6.h: Fix typo. Add comment.
8926
89272002-09-09 Richard M. Stallman <rms@gnu.org>
8928
8929 * regex.c (regnum_t): Use signed int, not unsigned int.
8930
8931 * s/sol2-6.h: New file.
8932
8933 * s/sol2-5.h (UNEXEC): Definition deleted.
8934
89352002-09-08 Kim F. Storm <storm@cua.dk>
8936
8937 * macros.c (executing_macro_index): Change type to EMACS_INT.
8938 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
8939
8940 * macros.h (executing_macro_index): Change type to EMACS_INT.
8941
89422002-09-06 Richard M. Stallman <rms@gnu.org>
8943
8944 * casetab.c (set_case_table): Make canon table point to eqv table.
8945
89462002-09-06 Juanma Barranquero <lektu@terra.es>
8947
8948 * coding.c (syms_of_coding): Fix spacing.
8949
8950 * composite.c (Fcompose_region_internal)
8951 (Fcompose_string_internal): Likewise.
8952
8953 * data.c (Flsh): Likewise.
8954
8955 * fontset.c (Fset_fontset_font): Likewise.
8956
8957 * macfns.c (Fx_server_max_request_size): Likewise.
8958
8959 * w16select.c (syms_of_win16select): Likewise.
8960
8961 * w32select.c (syms_of_w32select): Likewise.
8962
8963 * xselect.c (syms_of_xselect): Likewise.
8964
89652002-09-05 Richard M. Stallman <rms@gnu.org>
8966
8967 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
8968 call EXTEND_RANGE_TABLE and return a proper value.
8969 (set_image_of_range): Don't call set_image_of_range_1
8970 if no TRANSLATE or if range includes all of Latin-1.
8971 Only call it for the Latin-1 part of the range.
8972 For other cases, make two separate ranges,
8973 one for the original specified characters and one for
8974 their case-conversions.
8975
89762002-09-04 Richard M. Stallman <rms@gnu.org>
8977
8978 * s/sol2-5.h (UNEXEC): Use unexsol.o.
8979
8980 * window.c (displayed_window_lines): Correct for one-off bug
8981 in HEIGHT on non-window displays.
8982
8983 * regex.c (set_image_of_range_1): New function.
8984 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
8985 Return a value to indicate running out of memory.
8986 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
8987 (extend_range_table_work_area): New subroutine.
8988 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
8989 Different calling conventions, and used from set_image_of_range{,_1}.
8990 (IMMEDIATE_QUIT_CHECK): Definitions moved.
8991
89922002-09-04 Juanma Barranquero <lektu@terra.es>
8993
8994 * makefile.w32-in: All dependencies updated.
8995
89962002-09-01 Richard M. Stallman <rms@gnu.org>
8997
8998 * unexsol.c: New file.
8999
9000 * xfns.c (Qbox): Declare external, don't define.
9001
9002 * xdisp.c (redisplay_window) <force-start case>:
9003 If point is on semi-visible last line, reposition
9004 it at previous line.
9005
9006 * alloc.c (display_malloc_warning): Use display-warning.
9007 (malloc_warning_1): Function deleted.
9008
9009 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
9010
9011 * lread.c (read1): Handle #! by skipping the line.
9012
90132002-08-31 Richard M. Stallman <rms@gnu.org>
9014
9015 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
9016 Don't include LDFLAGS.
9017 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
9018
90192002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
9020
9021 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
9022 member of x_display_info unless we compile for some window system.
9023
90242002-08-31 Kim F. Storm <storm@cua.dk>
9025
9026 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
9027 (get_window_cursor_type): Don't use them.
9028 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
9029
90302002-08-30 Kenichi Handa <handa@etl.go.jp>
9031
9032 * xdisp.c (get_next_display_element): Fix previous change.
9033
90342002-08-30 Andrew Choi <akochoi@shaw.ca>
9035
9036 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
9037 (expose_window): Use it to fix the display of overlapping
9038 rows (merge code from xterm.c).
9039
9040 * macfns.c (Qbox): Add extern declaration.
9041
90422002-08-30 Juanma Barranquero <lektu@terra.es>
9043
9044 * w32fns.c (Qbox): Make extern.
9045 (syms_of_w32fns): Remove initialization of Qbox.
9046
90472002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
9048
9049 * xfns.c (Fx_open_connection): Fix error message.
9050
90512002-08-30 Kim F. Storm <storm@cua.dk>
9052
9053 The following changes consolidates the handling of the cursor
9054 type in xdisp.c, moving duplicate code and functionality from
9055 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
9056
9057 * frame.h (enum text_cursor_kinds): Consolidated here.
9058 Added DEFAULT_CURSOR value.
9059 (struct frame) <desired_cursor, cursor_width>
9060 <blink_off_cursor, blink_off_cursor_width>: New fields.
9061 Consolidated from output_x, output_w32 and output_mac structs.
9062 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
9063 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
9064
9065 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
9066 Variables consolidated here.
9067 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
9068 (Vcursor_in_non_selected_windows): Renamed from
9069 cursor_in_non_selected_windows and changed to Lisp_Object.
9070 (syms_of_xdisp): Define and staticpro new and moved variables.
9071 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
9072 consolidated here. Recognize Qhollow setting.
9073 (set_frame_cursor_types): New function to set frame cursor types
9074 based on the frame parameters.
9075 (get_window_cursor_type): New function to calculate new cursor
9076 type and width for the specified window. Based on duplicated
9077 code consolidated here.
9078 Enhancements: cursor-in-non-selected-windows may be a cursor type,
9079 check buffer-local alternate-cursor-type and blink-cursor-alist
9080 before using built-in blink off methods.
9081
9082 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
9083
9084 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
9085 (get_specified_cursor_type, get_window_cursor_type)
9086 (set_frame_cursor_types): Added prototypes.
9087
9088 * macfns.c (x_specified_cursor_type): Removed.
9089 (x_set_cursor_type): Use set_frame_cursor_types.
9090 (Qbar, Qbox): Removed.
9091 (syms_of_macfns): Don't intern or staticpro them.
9092
9093 * macterm.c (x_specified_cursor_type): Remove prototype.
9094 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
9095 (x_display_and_set_cursor): Use get_window_cursor_type.
9096 Remove unused local variables cursor_non_selected, active_cursor.
9097 Redraw cursor if hbar cursor width changes.
9098 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
9099
9100 * macterm.h (enum text_cursor_kinds): Removed.
9101 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
9102 <blink_off_cursor, blink_off_cursor_width>: Members removed.
9103 (FRAME_DESIRED_CURSOR): Macro removed.
9104
9105 * w32fns.c (Vblink_cursor_alist): Removed.
9106 (Qbar, Qhbar, Qbox, Qhollow): Removed.
9107 (syms_of_w32fns): Don't intern, staticpro, or define them.
9108 (x_specified_cursor_type): Removed.
9109 (x_set_cursor_type): Use set_frame_cursor_types.
9110
9111 * w32term.c (x_specified_cursor_type): Remove prototype.
9112 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
9113 (x_display_and_set_cursor): Use get_window_cursor_type.
9114 Remove unused local variables cursor_off_state.
9115 Redraw cursor if hbar cursor width changes.
9116 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
9117
9118 * w32term.h (enum text_cursor_kinds): Removed.
9119 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
9120 <blink_off_cursor, blink_off_cursor_width>: Members removed.
9121 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
9122 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
9123 (struct w32_display_info) <x_highlight_frame>: Renamed member from
9124 w32_highlight_frame.
9125
9126 * xfns.c (Vblink_cursor_alist): Removed.
9127 (Qbar, Qhbar, Qbox, Qhollow): Removed.
9128 (syms_of_xfns): Don't intern, staticpro, or define them.
9129 (x_specified_cursor_type): Removed.
9130 (x_set_cursor_type): Use set_frame_cursor_types.
9131
9132 * xterm.c (x_specified_cursor_type): Remove prototype.
9133 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
9134 (x_display_and_set_cursor): Use get_window_cursor_type.
9135 Remove unused local variables cursor_off_state.
9136 Redraw cursor if hbar cursor width changes.
9137
9138 * xterm.h (enum text_cursor_kinds): Removed.
9139 (struct output_x) <current_cursor, desired_cursor, cursor_width>
9140 <blink_off_cursor, blink_off_cursor_width>: Members removed.
9141 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
9142 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
9143 (x_specified_cursor_type): Remove prototype.
9144
91452002-08-28 Richard M. Stallman <rms@gnu.org>
9146
9147 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
9148 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
9149 (Vblink_cursor_alist): New variable.
9150 (syms_of_w32fns): Initialize and defvar it.
9151 (x_specified_cursor_type): Recognize Qbox for filled box.
9152 Exceptions are hollow boxes.
9153 (Qbox, Qhollow): New variables.
9154 (syms_of_w32fns): Initialize and staticpro them.
9155
9156 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
9157 New macros.
9158 (struct w32_output): New fields blink_off_cursor,
9159 blink_off_cursor_width.
9160 (FRAME_CURSOR_WIDTH): New macro.
9161
9162 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
9163 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
9164
9165 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
9166 for bar cursor.
9167
9168 * w32term.c (expose_overlaps): New function.
9169 (expose_window): Use it to fix the display of overlapping rows.
9170
91712002-08-28 Simon Josefsson <jas@extundo.com>
9172
9173 * xfns.c (Fx_open_connection): Improve help when X connection
9174 fails, xhost is insecure and xauth is better.
9175
91762002-08-28 Juanma Barranquero <lektu@terra.es>
9177
9178 * makefile.w32-in: Add missing dependencies on w32term.h and
9179 composite.h.
9180
9181 * emacs.c (USAGE1): Add missing newline.
9182
91832002-08-27 Andrew Choi <akochoi@shaw.ca>
9184
9185 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
9186
91872002-08-27 Richard M. Stallman <rms@gnu.org>
9188
9189 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
9190 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
9191 (Vblink_cursor_alist): New variable.
9192 (syms_of_xfns): Initialize and defvar it.
9193 (x_specified_cursor_type): Recognize Qbox for filled box.
9194 Exceptions are hollow boxes.
9195 (Qbox, Qhollow): New variables.
9196 (syms_of_xfns): Initialize and staticpro them.
9197
9198 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
9199 New macros.
9200 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
9201
9202 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
9203 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
9204
9205 * emacs.c (main): Handle --script.
9206 (USAGE1): Mention --script.
9207 (standard_args): Define sort order for --script.
9208
92092002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
9210
9211 * xdisp.c (redisplay_updating_p): Variable removed.
9212 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
9213 New variables.
9214 (init_iterator): Don't free realized faces if
9215 inhibit_free_realized_faces is set.
9216 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
9217 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
9218 initialize Qinhibit_free_realized_faces.
9219
9220 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
9221 when iterator is adding glyphs to a glyph matrix.
9222
92232002-08-27 Kenichi Handa <handa@etl.go.jp>
9224
9225 * xdisp.c (get_next_display_element): In unibyte case, don't use
9226 octal form for such eight-bit characters that can be converted to
9227 multibyte char.
9228
92292002-08-26 Kim F. Storm <storm@cua.dk>
9230
9231 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize foreground
9232 and background colors. From Joe Buehler (tiny change).
9233
92342002-08-26 Miles Bader <miles@gnu.org>
9235
9236 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
9237
92382002-08-25 Andrew Choi <akochoi@shaw.ca>
9239
9240 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
9241 defined instead of MAC_OSX.
9242
9243 * s/darwin.h (select): Define select to sys_select only if
9244 HAVE_CARBON is defined.
9245 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
9246 (DONT_REOPEN_PTY): #def it.
9247
9248 * macterm.c (XTread_socket): Remove code to call
9249 SendEventToEventTarget for keys with command modifiers when
9250 mac_command_key_is_meta is nil.
9251
92522002-08-24 Andreas Schwab <schwab@suse.de>
9253
9254 * eval.c (Fdefvar): Fix last change.
9255
92562002-08-23 Richard M. Stallman <rms@gnu.org>
9257
9258 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
9259 Record variables in load history as (defvar . VAR).
9260 (Fdefvar): Don't record in load history if no initial value.
9261 (Qdefvar): New variable.
9262 (syms_of_eval): Init and staticpro it.
9263
9264 * lread.c (syms_of_lread): Doc fix.
9265 (build_load_history): Use Fmember to see if a definition
9266 is already in the Vload_history element.
9267
9268 * process.c (Fstart_process): Remove /: from program name.
9269
9270 * emacs.c (decode_env_path): Don't add /: if file name handler
9271 has a `safe-magic' property.
9272
9273 * callproc.c (Fcall_process): Remove /: from program name.
9274
92752002-08-23 Stefan Monnier <monnier@cs.yale.edu>
9276
9277 * regex.c (PATFETCH): Remove the translating fetch.
9278 (PATFETCH_RAW): Rename to PATFETCH.
9279 (set_image_of_range): New fun.
9280 (SET_RANGE_TABLE_WORK_AREA): Use it.
9281 (regex_compile): Don't translate the pattern chars so eagerly.
9282 Only do it when inserting an `exactn' bytecode or when handling
9283 a char-range.
9284 (mutually_exclusive_p): Avoid empty statement.
9285
92862002-08-22 Kim F. Storm <storm@cua.dk>
9287
9288 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
9289 end up on a partially visible line; this reverts a specific part
9290 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
9291 display error which has been reported several times now.
9292 However it introduces the problem that changes was supposed to fix.
9293 See my comments in the source if you want to debug this further.
9294
92952002-08-20 Kenichi Handa <handa@etl.go.jp>
9296
9297 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
9298
92992002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
9300
9301 * msdos.c (croak): Add `void' to definition.
9302
c1380aa6 9303 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
048addec
JD
9304 Don't define them, they are defined in msdos.c.
9305
9306 * mem-limits.h [MSDOS]: Declare etext.
9307
9308 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
9309 `const' since CORRECT_DIR_SEPS modifies its target.
9310
93112002-08-19 Kim F. Storm <storm@cua.dk>
9312
2fb0ce67 9313 * keyboard.c (Fclear_this_command_keys): Add optional arg
048addec
JD
9314 KEEP-RECORD to avoid clearing lossage when we just want to clear
9315 the current key sequence (kmacro needs this).
9316
93172002-08-19 Kenichi Handa <handa@localhost>
9318
9319 * composite.c (run_composition_function): Call FUNC if it is fboundp.
9320
9321 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
9322 cons, return Qnil.
9323
93242002-08-17 Richard M. Stallman <rms@gnu.org>
9325
9326 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
9327
9328 * sysdep.c [!VMS]: Include sys/files.h.
9329
9330 * editfns.c (save_restriction_restore): Defend from unchained marker.
9331
9332 * buffer.c (overlays_at): Handle extending vec uniformly.
9333 (overlays_in): Handle extending vec from length 0 as in overlays_at.
9334
93352002-08-15 Andrew Choi <akochoi@shaw.ca>
9336
9337 * mac.c (init_mac_osx_environment): New function.
9338
9339 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
9340
93412002-08-14 Kim F. Storm <storm@cua.dk>
9342
9343 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
9344 executing macro before appending to it (when used from Lisp).
9345 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
9346 which is called prior to each iteration of macro (for kmacro.el).
9347 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
9348
9349 * lisp.h (Fexecute_kbd_macro): Update prototype.
9350
9351 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
9352
93532002-08-14 Kenichi Handa <handa@etl.go.jp>
9354
9355 * xselect.c (QUTF8_STRING): New variable.
9356 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
9357 (x_atom_to_symbol): Likewise.
9358 (x_get_local_selection): New argument local_request. If it is
9359 nonzero, call handler_fn with the second arg nil.
9360 (x_handle_selection_request): Call x_get_local_selection with
9361 local_request 0.
9362 (lisp_data_to_selection_data): Don't encode the string here.
9363 (Fx_get_selection_internal): Call x_get_local_selection with
9364 local_request 1.
9365 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
9366
9367 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
9368
9369 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
9370
93712002-08-13 Richard M. Stallman <rms@gnu.org>
9372
9373 * minibuf.c (Fminibufferp): New function.
9374 (syms_of_minibuf): Defsubr it.
9375 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
9376
93772002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
9378
9379 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
9380
93812002-08-12 Richard M. Stallman <rms@gnu.org>
9382
9383 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
9384 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
9385 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
9386 already.
9387
9388 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
9389
93902002-08-11 Andrew Choi <akochoi@shaw.ca>
9391
9392 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
9393 (Vmac_pass_command_to_system): New variable.
9394 (Vmac_pass_control_to_system): New variable.
9395 (do_mouse_moved): Check wp with is_emacs_window.
9396 (XTread_socket): Check window_ptr with is_emacs_window.
9397 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
9398 events back to Mac Toolbox for processing, depending on values of
9399 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
9400 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
9401 Vmac_pass_control_to_system.
9402
94032002-08-10 Kenichi Handa <handa@etl.go.jp>
9404
9405 * coding.c (unencodable_char_position): New function.
9406 (Funencodable_char_position): New function.
9407 (syms_of_coding): Defsubr Funencodable_char_position.
9408
94092002-08-10 Andrew Choi <akochoi@shaw.ca>
9410
9411 * mac.c (sys_select) [MAC_OSX]: New function.
9412
9413 * macterm.c (MakeMeTheFrontProcess): New function.
9414 (mac_initialize): Call MakeMeTheFrontProcess.
9415
9416 * s/darwin.h: Define select to sys_select.
9417
94182002-08-09 Richard M. Stallman <rms@gnu.org>
9419
9420 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
9421
94222002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
9423
9424 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
9425 end of the buffer.
9426
94272002-08-08 Ken Raeburn <raeburn@mit.edu>
9428
9429 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
9430
9431 * puresize.h (BASE_PURESIZE): Increase to 910000.
9432
94332002-08-08 Kenichi Handa <handa@etl.go.jp>
9434
9435 * coding.c (Ffind_operation_coding_system): For write-region, if
9436 VISIT is a filename, make it the target.
9437
94382002-08-07 Richard M. Stallman <rms@gnu.org>
9439
9440 * alloc.c (mark_object): Detect long lists for debugging.
9441 (mark_object_loop_halt): New variable.
9442
9443 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
9444
9445 * data.c (Fmake_variable_frame_local): Doc fix.
9446
94472002-08-01 David Ponce <david@dponce.com>
9448
9449 * w32menu.c (local_heap, local_alloc, local_free): New macros.
9450 (malloc_widget_value, free_widget_value)
9451 (w32_free_submenu_strings): Use them.
9452
9453 (push_submenu_start, push_submenu_end, push_left_right_boundary)
9454 (push_menu_pane, push_menu_item, single_keymap_panes)
9455 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
9456 (single_submenu, set_frame_menubar)
9457 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
9458
9459 (Fx_popup_menu): Don't show pop up menu until preceding one is
9460 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
9461
9462 * w32menu.c: Changes adapted from xmenu.c
9463 (set_frame_menubar): First parse all submenus,
9464 then make widget_value trees from them.
9465 Don't allocate any widget_value objects
9466 until we are done with the parsing.
9467 (parse_single_submenu): New function.
9468 (digest_single_submenu): New function.
9469 (single_submenu): Function deleted, replaced by those two.
9470
94712002-08-04 Andrew Choi <akochoi@shaw.ca>
9472
9473 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
9474 returns a valid window pointer before proceeding for keyDown and
9475 autoKey events.
9476
94772002-08-03 Andrew Choi <akochoi@shaw.ca>
9478
9479 * macterm.c (USE_CARBON_EVENTS): New macro.
9480 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
9481 (x_iconify_frame): Call CollapseWindow.
9482 (Vmac_reverse_ctrl_meta): New variable.
9483 (Vmac_wheel_button_is_mouse_2): New variable.
9484 (init_mac_drag_n_drop): New function.
9485 (mac_do_receive_drag): New function.
9486 (mac_handle_service_event): New function.
9487 (init_service_handler): New function.
9488 (mac_to_emacs_modifiers): New function.
9489 (mac_event_to_emacs_modifiers): New function.
9490 (mac_get_mouse_btn): New function.
9491 (mac_convert_event_ref): New function.
9492 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
9493 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
9494 mac_get_mouse_btn.
9495 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
9496
9497 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
9498 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
9499 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
9500 TOOL_BAR_EVENT for MAC_OS as well.
9501 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
9502 as for WINDOWS_NT.
9503 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
9504
9505 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
9506
95072002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
9508
9509 * xdisp.c (forward_to_next_line_start): Fix a condition that
9510 lead to a newline being skipped.
9511
95122002-08-02 Andrew Choi <akochoi@shaw.ca>
9513
9514 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
9515
95162002-08-01 Richard M. Stallman <rms@gnu.org>
9517
9518 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
9519
95202002-07-31 Andrew Choi <akochoi@shaw.ca>
9521
9522 * macfns.c: #undef init_process before #define-ing it.
9523
9524 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
9525 HAVE_CARBON is defined.
9526
95272002-07-31 Richard M. Stallman <rms@gnu.org>
9528
9529 * xmenu.c (set_frame_menubar): First parse all submenus,
9530 then make widget_value trees from them.
9531 Don't allocate any widget_value objects
9532 until we are done with the parsing.
9533 (parse_single_submenu): New function.
9534 (digest_single_submenu): New function.
9535 (single_submenu): Function deleted, replaced by those two.
9536
95372002-07-30 Juanma Barranquero <lektu@terra.es>
9538
9539 * w32proc.c (syms_of_ntproc): Fix docstring of
9540 `w32-get-true-file-attributes'.
9541
95422002-07-28 Richard M. Stallman <rms@gnu.org>
9543
9544 * s/hpux8.h (HPUX8): Define this before including hpux.h.
9545 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
9546
9547 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
9548
9549 * keyboard.c (make_lispy_event):
9550 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
9551 Explicitly clear up_modifier in event->modifiers.
9552
95532002-07-27 Richard M. Stallman <rms@gnu.org>
9554
9555 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
9556
9557 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
9558 for bar cursor.
9559
95602002-07-26 Kenichi Handa <handa@etl.go.jp>
9561
9562 * coding.c (detect_coding_iso2022): While checking a byte sequence
9563 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
9564 it in the normal loop.
9565
95662002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
9567
9568 * xterm.c (expose_overlaps): New function.
9569 (expose_window): Use it to fix the display of overlapping rows.
9570
9571 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
9572
95732002-07-23 Ken Raeburn <raeburn@gnu.org>
9574
9575 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
9576 since it only depends on XUINT.
9577
9578 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
9579 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
9580 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
9581 Macros deleted.
3947677c 9582
77d1daf2
AS
9583 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
9584 its value over other approaches.
9585 * sysdep.c (start_of_data): Don't define the function if a macro
9586 form has been defined.
8a8e19a3 9587
048addec
JD
95882002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
9589
9590 * xdisp.c (redisplay_updating_p): New variable.
9591 (init_iterator): Don't free realized faces when
9592 redisplay_updating_p is set.
9593 (redisplay_internal): Set redisplay_updating_p while updating
9594 the display.
9595
95962002-07-23 Richard M. Stallman <rms@gnu.org>
9597
9598 * editfns.c (Fmessage): Treat "" like nil.
9599
96002002-07-23 Kenichi Handa <handa@etl.go.jp>
9601
9602 * xdisp.c (face_before_or_after_it_pos):
9603 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
9604
96052002-07-22 Juanma Barranquero <lektu@terra.es>
9606
9607 * callproc.c (init_callproc) [DOS_NT]:
9608 Initialize Vshared_game_score_directory to nil.
9609 (syms_of_callproc) [DOS_NT]: Likewise.
9610
96112002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
9612
9613 * xdisp.c (display_line): Replace an abort with xassert.
9614
96152002-07-21 Richard M. Stallman <rms@gnu.org>
9616
9617 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
9618 and END_UNCHANGED when setting buffer_unchanged_p.
9619 Use current_matrix_up_to_date_p to decide whether to use
9620 try_cursor_movement.
9621
9622 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
9623
9624 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
9625
9626 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
9627 Set to nil if dir does not exist.
9628 (syms_of_callproc): Init unconditionally and simply.
9629
9630 * buffer.c (Fbuffer_list): Doc fix.
9631
96322002-07-21 Ken Raeburn <raeburn@gnu.org>
9633
9634 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
9635
9636 * buffer.c (mmap_realloc): When shrinking, make sure number of
9637 pages to unmap is rounded towards zero.
9638
9639 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
9640 (XSETINT): Deleted.
9641
9642 * m/att3b.h (XINT): Don't define.
9643 (VALBITS, VALMASK, XTYPE): Deleted.
9644 (DATA_SEG_BITS): Define.
9645 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
9646 ARRAY_MARK_FLAG): Deleted.
9647 (DATA_SEG_BITS): Define.
9648 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
9649 (DATA_SEG_BITS): Define.
9650
96512002-07-20 Richard M. Stallman <rms@gnu.org>
9652
9653 * print.c (print_error_message): New args CONTEXT and CALLER.
9654 Calls changed.
9655
9656 * lisp.h (print_error_message): Declare new args.
9657
9658 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
9659 and CONTEXT to print_error_message, don't print them here.
9660 For a Quit, don't use Vsignaling_function.
9661 Call message_log_maybe_newline.
9662
9663 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
9664
96652002-07-20 Kim F. Storm <storm@cua.dk>
9666
9667 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
9668
96692002-07-19 Ken Raeburn <raeburn@gnu.org>
9670
9671 * bytecode.c (struct byte_stack): Pointers into byte string now
9672 point to const.
9673 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
9674 const.
9675 * charset.h (BCOPY_SHORT): Source pointer now points to const.
9676 * coding.c (encode_eol, detect_coding, detect_eol):
9677 (decode_coding, encode_coding, detect_coding_system):
9678 Source strings now treated as const.
9679 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
9680 modify Lisp string contents.
9681 * coding.h (decode_coding, encode_coding, detect_coding,
9682 detect_eol): Declarations updated.
9683 * composite.c (compose_chars_in_text): Treat Lisp string contents
9684 as const.
9685 * dispnew.c (safe_bcopy): Source pointer now points to const.
9686 * lisp.h (STRING_COPYIN): New macro.
9687 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
9688 (internal_with_output_to_temp_buffer): Declarations updated.
9689 * print.c (temp_output_buffer_setup):
9690 (internal_with_output_to_temp_buffer): Buffer name argument is now
9691 pointer to const.
9692 * sound.c (struct sound_device): Function pointer field "write"
9693 buffer argument now points to const.
9694 (vox_write): Buffer argument points to const.
9695 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
9696 contents as const.
9697 * sysdep.c (emacs_write): Buffer pointer now const.
9698 * term.c (encode_terminal_code): Buffer pointer now const.
9699 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
9700 (x_face_list_fonts, x_update_menu_appearance):
9701 (hash_string_case_insensitive): Treat Lisp string contents as const.
9702
97032002-07-19 Juanma Barranquero <lektu@terra.es>
9704
048addec
JD
9705 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
9706
9707 * fileio.c (syms_of_fileio): Likewise.
c62aec78
JB
9708 (Ffile_name_as_directory): Fix argument name in docstring.
9709 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
048addec
JD
9710
97112002-07-18 Richard M. Stallman <rms@gnu.org>
9712
9713 * data.c (Fdefalias): Doc fix.
9714
97152002-07-17 Dave Love <fx@gnu.org>
9716
9717 * intervals.h (text_property_stickiness): Use P_.
9718
9719 * ccl.c: Remove `emacs' conditionals.
9720 (ccl_backtrace_table): Fix size spec.
9721 (ccl_driver): Fix type errors.
9722
97232002-07-16 Ken Raeburn <raeburn@gnu.org>
9724
9725 * alloc.c (xstrdup, make_string, make_unibyte_string)
9726 (make_multibyte_string, build_string): String pointer args now
9727 point to const.
9728 * charset.c (find_charset_in_text, c_string_width):
9729 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
9730 * fileio.c (report_file_error):
9731 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
9732 (count_combining_before, count_combining_after, insert_1_both):
9733 (insert, insert_and_inherit, insert_string):
9734 (insert_before_markers, insert_before_markers_and_inherit):
9735 * lread.c (intern, oblookup, hash_string):
9736 * minibuf.c (temp_echo_area_glyphs):
9737 * search.c (fast_c_string_match_ignore_case):
9738 * sysdep.c (emacs_open, set_file_times):
9739 * xfaces.c (xstricmp):
9740 * xdisp.c (store_frame_title, string_char_and_length):
9741 (message_dolog, message2, message2_nolog, set_message): Likewise.
9742 (set_message_1): Cast message string argument to const pointer.
9743 * editfns.c (general_insert_function): Insertion function now
9744 takes pointer to const for input data.
9745 * charset.h (find_charset_in_text, c_string_width):
9746 (parse_str_as_multibyte): Declarations updated.
9747 * dispextern.h (xstricmp): Declaration updated.
9748 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
9749 (count_size_as_multibyte, count_combining_before):
9750 (count_combining_after, insert_1, insert_1_both, message_dolog):
9751 (insert, insert_and_inherit, insert_before_markers)
9752 (insert_before_markers_and_inherit, set_message, message2):
9753 (message2_dolog, build_string, make_string, make_unibyte_string):
9754 (make_multibyte_string, intern, oblookup, report_file_error):
9755 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
9756 (emacs_open, xstrdup): Declarations updated.
9757 * systime.h (set_file_times): Declaration updated.
9758
9759 * charset.c (find_charset_in_text, lisp_string_width): Use const
9760 for pointer to lisp string data.
9761 * charset.h (FETCH_STRING_CHAR_ADVANCE):
9762 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
9763 * coding.c (Ffind_coding_systems_region_interval):
9764 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
9765 (Fmake_directory_internal, Fdelete_directory):
9766 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
9767 * fontset.c (font_family_registry, fs_query_fontset):
9768 (list_fontsets):
9769 * frame.c (Fframe_parameter):
9770 * keyboard.c (cmd_error_internal):
9771 * keymap.c (Fdescribe_buffer_bindings):
9772 * lread.c (complete_filename_p, openp):
9773 * minibuf.c (Fminibuffer_complete_word):
9774 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
9775 (face_before_or_after_it_pos, next_element_from_string):
9776 (get_overlay_arrow_glyph_row, display_mode_element):
9777 (decode_mode_spec_coding):
9778 * xterm.c (same_x_server): Likewise.
9779
9780 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
9781 settings of non-existent fields.
9782
9783 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
9784 copy a lisp value.
9785
9786 * lread.c (Fintern_soft): Use string macros instead of
9787 Lisp_String fields.
9788 * keyboard.c (echo_char, parse_modifiers_uncached):
9789 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
9790 * textprop.c (validate_interval_range, interval_of): Likewise.
9791
9792 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
9793
9794 * charset.h (FETCH_STRING_CHAR_ADVANCE)
9795 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
9796 XSTRING()->size_byte.
9797
9798 * lisp.h (SDATA, SREF): Produce rvalue.
9799 (SSET): New macro.
9800 * alloc.c (make_event_array): Use SSET for storing into a string.
9801 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
9802 a string.
9803 * casefiddle.c (casify_object): Use SSET.
9804 * charset.h (FETCH_STRING_CHAR_ADVANCE)
9805 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
9806 address of string contents.
9807 * data.c (Faref): Use SDATA.
9808 (Faset): Use SDATA, SSET.
9809 * dired.c (directory_files_internal): Use SSET.
9810 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
9811 (Fread_file_name): Use SREF, SSET.
9812 * fns.c (concat): Use SSET.
9813 (concat, Fdelete): Use SDATA.
9814 * insdel.c (insert_from_string_1): Use SDATA.
9815 * keyboard.c (Fevent_convert_list): Use SREF.
9816 * lread.c (Fload): Use SDATA, SSET.
9817 * macfns.c (validate_x_resource_name): Use SSET.
9818 * process.c (status_message): Use SSET.
9819 * search.c (wordify): Use SDATA.
9820 (Freplace_match): Use SREF.
9821 * w32fns.c (validate_x_resource_name): Use SSET.
9822 * xfns.c (validate_x_resource_name): Use SSET.
9823 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
9824
98252002-07-16 Richard M. Stallman <rms@gnu.org>
9826
9827 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
9828
9829 * xdisp.c (reconsider_clip_changes):
9830 Don't test prevent_redisplay_optimizations_p.
9831 (redisplay_internal): Test prevent_redisplay_optimizations_p
9832 along with clip_changed in some cases.
9833 (try_window_id): Likewise.
9834 (redisplay_window): New local var buffer_unchanged_p.
9835
9836 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
9837
9838 * process.c (create_process): Test USG_SUBTTY_WORKS.
9839 (process_send_signal): Clean up handling of GID.
9840 Detect errors in ioctls meant to set GID.
9841
9842 * window.c (temp_output_buffer_show):
9843 Don't set prevent_redisplay_optimizations_p.
9844
98452002-07-15 Juanma Barranquero <lektu@terra.es>
9846
9847 * eval.c (Fdefvaralias): Add docstring argument.
9848
98492002-07-15 Ken Raeburn <raeburn@gnu.org>
9850
9851 * lisp.h (STRING_INTERVALS): Produce rvalue.
9852 (STRING_SET_INTERVALS): New macro.
9853 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
9854 * fns.c (Fstring_as_multibyte): Likewise.
9855 * intervals.c (balance_possible_root_interval, delete_interval)
9856 (create_root_interval, copy_intervals_to_string): Likewise.
9857 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
9858 instead of 0.
9859
98602002-07-14 Ken Raeburn <raeburn@gnu.org>
9861
9862 * lisp.h (STRING_SET_CHARS): New macro.
9863 (SCHARS, SBYTES): Produce rvalues.
9864 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
9865 * fns.c (concat): Likewise.
9866 * lread.c (read_vector): Likewise.
9867
9868 * lisp.h (SMBP): Deleted. All uses changed to STRING_MULTIBYTE.
9869 (STRING_SET_UNIBYTE): New macro.
9870 (SET_STRING_BYTES): Deleted. Callers (all of which supplied a
9871 length of -1) changed to use STRING_SET_UNIBYTE.
9872 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
9873 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
9874 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
9875 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
9876 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
9877 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
9878 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
9879 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
9880 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
9881 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
9882 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
9883 STRING_BYTES or indirection changed to SCHARS, SBYTES,
9884 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
9885 unchanged for now.
9886
98872002-07-13 Kim F. Storm <storm@cua.dk>
9888
9889 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
9890
98912002-07-12 Richard M. Stallman <rms@gnu.org>
9892
9893 * fileio.c (Fwrite_region): Doc fix.
9894
9895 * print.c (print_error_message): Don't handle Vsignaling_function here.
9896
9897 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
9898 (command_loop_1): Avoid certain actions after memory-full error.
9899
9900 * eval.c (Fsignal): Don't call cancel_hourglass.
9901 For a memory-full error, don't call Vsignal_hook_function
9902 and don't set Vsignaling_function.
9903
9904 * process.c (process_send_signal): Add abort call.
9905
99062002-07-11 Markus Rost <rost@math.ohio-state.edu>
9907
9908 * keymap.c (Fkey_binding): Fix typo.
9909
99102002-07-11 Richard M. Stallman <rms@gnu.org>
9911
9912 * alloc.c (Vmemory_full): New variable.
9913 (Vmemory_signal_data): Renamed from memory_signal_data.
9914 Uses changed.
9915 (syms_of_alloc): Defvar them.
9916 (memory_full, buffer_memory_full): Set Vmemory_full.
9917
9918 * lisp.h (Vmemory_full): Add declaration.
9919 (current_column, indented_beyond_p): Change declaration.
9920
9921 * indent.c (last_known_column): Declare as double, not float.
9922 (current_column, current_column_1, string_display_width)
9923 (position_indentation): Return `double'.
9924 (indented_beyond_p): Arg `column' is `double'. Callers changed.
9925
9926 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
9927 (back_to_previous_visible_line_start)
9928 (reseat_at_next_visible_line_start, next_element_from_buffer):
9929 Use `double', not `float', when calling indented_beyond_p.
9930
9931 * s/hpux11.h (BROKEN_SA_RESTART): Defined.
9932
9933 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
9934
99352002-07-11 Juanma Barranquero <lektu@terra.es>
9936
9937 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
f9711de4
JB
9938 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
9939 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
9940 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
9941 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
9942 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
048addec
JD
9943
99442002-07-10 Juanma Barranquero <lektu@terra.es>
9945
d814862a
JB
9946 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
9947 All callers changed.
048addec
JD
9948
99492002-07-09 Stefan Monnier <monnier@cs.yale.edu>
9950
9951 * data.c (Fdefalias): Add an optional `docstring' argument.
9952 (set_internal, Fsetq_default): Use XCAR/XCDR.
9953
9954 * composite.c (HASH_VALUE, HASH_KEY):
9955 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
9956
99572002-07-09 Kenichi Handa <handa@etl.go.jp>
9958
9959 * callproc.c (Fcall_process): Fix previous change.
9960
99612002-07-07 Stefan Monnier <monnier@cs.yale.edu>
9962
9963 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
9964 Add support for hash-tables.
9965 (Ftry_completion): Return t even if the string appears multiple times.
9966
9967 * fns.c (Fnconc): Use XCDR.
9968 (Fprovide): Use CONSP and XCDR.
9969 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
9970 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
9971 (Fmake_hash_table): Accept `:size nil'.
9972 (Fmakehash): Delete: moved to subr.el.
9973 (syms_of_fns): Don't defsubr makehash.
9974
9975 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
9976 (HASH_TABLE_SIZE): Move from fns.c.
9977
99782002-07-07 Richard M. Stallman <rms@gnu.org>
9979
9980 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
9981 Instead just return 0 when there is something to be done.
9982 (try_scrolling): If make_cursor_line_fully_visible returns 0,
9983 retry scrolling as if cursor were off the bottom.
9984 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
9985 return CURSOR_MOVEMENT_MUST_SCROLL.
9986 (redisplay_window): If make_cursor_line_fully_visible returns 0,
9987 go to try_to_scroll.
9988
9989 * buffer.c (Fbuffer_local_value): Store current value into its binding
9990 so we get the up-to-date value for the binding that is loaded.
9991
9992 * eval.c (Fdefmacro): Doc fix.
9993
99942002-07-05 Dave Love <fx@gnu.org>
9995
9996 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
9997 correctly.
9998
9999 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
10000 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
10001 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
10002 CCL_LookupCharConstTbl.
10003 (syms_of_ccl): Defvar translation-hash-table-vector.
10004
100052002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10006
10007 * xdisp.c: Remove unused variable `face'.
10008
100092002-07-04 Juanma Barranquero <lektu@terra.es>
10010
10011 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
10012 obsolescence information.
10013
100142002-07-03 Andrew Choi <akochoi@shaw.ca>
10015
10016 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
10017 pattern. Search cache first.
10018 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
10019 for Japanese font.
10020 (XLoadQueryFont): Use it.
10021
100222002-07-02 Richard M. Stallman <rms@gnu.org>
10023
10024 * keymap.c (Fdefine_key): Doc fix.
10025
10026 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
10027
100282002-07-02 Juanma Barranquero <lektu@terra.es>
10029
10030 * keymap.c (syms_of_keymap): Fix typo.
10031
100322002-07-01 Andrew Choi <akochoi@shaw.ca>
10033
10034 * s/darwin.h: Define POSIX_SIGNALS.
10035
10036 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
10037 and FSRefMakePath to convert FSSpec returned with Apple Event to
10038 Posix pathname.
10039 (mac_initialize) [TARGET_API_MAC_CARBON]:
10040 Call init_required_apple_events and disable the `Quit' menu item
10041 provided automatically by the Carbon Toolbox.
10042
100432002-07-01 Dave Love <fx@gnu.org>
10044
10045 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
10046 for K&R.
10047
10048 * xterm.c: Fix prototype for K&R.
10049
10050 * term.c (costs_set): Declare static, non-initialized for pcc.
10051
100522002-07-01 Richard M. Stallman <rms@gnu.org>
10053
10054 * keyboard.c (timer_last_idleness_start_time): New variable.
10055 (timer_start_idle): Set that.
10056 (read_key_sequence): Use that to reset timer_idleness_start_time
10057 to previous value.
10058
10059 * window.c (Frecenter): With arg, set optional_new_start.
10060
10061 * xdisp.c (redisplay_internal): Make optional_new_start really work.
10062
10063 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
10064 buffer for completion.
10065
100662002-06-29 Ken Raeburn <raeburn@gnu.org>
10067
10068 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
10069
100702002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10071
10072 * keyboard.c (readable_filtered_events): New function that filters
10073 FOCUS_IN_EVENT depending on parameter.
10074 (readable_events): Calls readable_filtered_events, not filtering
10075 FOCUS_IN_EVENT.
10076 (get_filtered_input_pending): New function, filtering parameter passed
10077 to readable_filtered_events.
10078 (get_input_pending): Calls get_filtered_input_pending, not filtering
10079 FOCUS_IN_EVENT.
10080 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
10081 FOCUS_IN_EVENT.
10082
10083 * xterm.h (struct x_output): Add focus_state.
10084
10085 * xterm.c (x_focus_changed): New function.
10086 (x_detect_focus_change): New function.
10087 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
10088 EnterNotify and LeaveNotify to track X focus changes.
10089
100902002-06-28 Andreas Schwab <schwab@suse.de>
10091
10092 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
10093
100942002-06-27 Kim F. Storm <storm@cua.dk>
10095
10096 * xdisp.c: (mode_line_string_list, mode_line_string_face)
10097 (mode_line_string_face_prop): New variables.
10098 (store_mode_line_string): New function.
10099 (display_mode_element): Use store_mode_line_string to
10100 add mode-line string elements to mode_line_string_list
10101 when mode_line_string_list is non-nil.
10102 (Fformat_mode_line): Now returns propertized string by
10103 default. New arg NO-PROPS to ignore properties.
10104 (decode_mode_spec): Only add two dashes for %- in propertized
10105 mode-line string.
10106 (syms_of_xdisp): Init and staticpro mode_line_string_list.
10107
101082002-06-27 Stefan Monnier <monnier@cs.yale.edu>
10109
10110 * minibuf.c (minibuffer_completion_contents): Add return type.
10111
101122002-06-27 Juanma Barranquero <lektu@terra.es>
10113
10114 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
10115
101162002-06-26 Juanma Barranquero <lektu@terra.es>
10117
10118 * fileio.c (read_file_name_cleanup): Add missing return.
10119
101202002-06-26 Richard M. Stallman <rms@gnu.org>
10121
10122 * window.c (Frecenter): Don't set force_start flag.
10123
10124 * minibuf.c (do_completion, Fminibuffer_complete_word)
10125 (Fminibuffer_completion_help): Complete just the text before point.
10126 (minibuffer_completion_contents): New function.
10127
10128 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
10129
10130 * frame.c (frames_bury_buffer): Function deleted.
10131
101322002-06-25 Miles Bader <miles@gnu.org>
10133
10134 * callint.c (Fcall_interactively): When checking to see if doprnt hit
10135 the end of callint_message, allow for a terminating '\0'.
10136
101372002-06-24 Juanma Barranquero <lektu@terra.es>
10138
10139 * w32select.c: Include composite.h
10140
10141 * w16select.c: Likewise.
10142
101432002-06-24 Kenichi Handa <handa@etl.go.jp>
10144
10145 * callproc.c (Fcall_process): If code detection is necessary,
10146 call detect_coding directly here.
10147
10148 * coding.c (detect_eol): Preserve coding->cmp_data.
10149
10150 * w16select.c (Fw16_get_clipboard_data):
10151 * w32fns.c (w32_to_x_font):
10152 * w32select.c (Fw32_get_clipboard_data):
10153 * xselect.c (selection_data_to_lisp_data):
10154 * xterm.c (XTread_socket): Disable composition handling.
10155
101562002-06-24 Stefan Monnier <monnier@cs.yale.edu>
10157
10158 * print.c (temp_output_buffer_setup): Kill all local variables.
10159
101602002-06-22 Stefan Monnier <monnier@cs.yale.edu>
10161
10162 * lread.c (Fread): Remove redundant and imprecise declaration.
10163
10164 * xfns.c (check_x_display_info): Use check_x_frame.
10165
10166 * .gdbinit (xprintsym): Use the new `xname' field.
10167 (xsymbol): Use it.
10168
101692002-06-22 Jason Rumney <jasonr@gnu.org>
10170
10171 * w32fns.c (file_dialog_callback): New function.
10172 (Fx_file_dialog): Allow selecting directories as well as files.
10173
101742002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10175
10176 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
f63fd14e 10177 OpenBSD. Add support for mipseb-*-netbsd* machines.
048addec
JD
10178
101792002-06-17 Andrew Choi <akochoi@shaw.ca>
10180
10181 * macterm.c (mac_scroll_area): Set foreground and backcolor to
10182 black and white before scrolling. Restore frame background and
10183 foreground color after scrolling.
10184 (do_window_update): Call XClearWindow before calling expose_frame.
10185 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
10186 FRAME_FOREGROUND_PIXEL of frame.
10187
10188 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
10189 test Mac command key as <ALT> key.
10190
101912002-06-17 Stefan Monnier <monnier@cs.yale.edu>
10192
10193 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
10194
10195 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
10196 Lookup keys in function-key-map immediately so that key-translation-map
10197 can be applied earlier.
10198 Remove function_key_possible and key_translation_possible, replaced
10199 by checking `keytran_start < t'.
10200
10201 * .gdbinit (xsymbol): Use the new `xname' field.
10202
102032002-06-17 Andrew Choi <akochoi@shaw.ca>
10204
10205 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
10206 test Mac command key as <ALT> key.
10207
10208 * mac.c (do_applescript): Call initialize_applescript if necessary
10209 when first called. Dispose of result_desc only when there is no error.
10210 (Fdo_applescript): Use %d format specifier instead of %ld.
10211
102122002-06-16 Andrew Choi <akochoi@shaw.ca>
10213
10214 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
10215 of FrontWindow for cases keyDown and autoKey.
10216
10217 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
10218 Vdefault_fontset to Monaco with mac-roman coding.
10219
10220 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
10221 init_process before and after inclusion of Carbon/Carbon.h, resp.
10222
10223 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
10224 cursor_gc.
10225 (add_font_name_table_entry): New function.
10226 (init_font_name_table): Use add_font_name_table_entry; add italic,
10227 bold, and bold-italic entries for truetype fonts.
10228
10229 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
10230 for Mac too.
10231 (try_font_list) [MAC_OS]: If no font matches given registry, try
10232 fonts with any registry matching face_family.
10233 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
10234
10235 * s/darwin.h: If autoconf detects the Ncurses library, define
10236 LIBS_TERMCAP to -lncurses to use it.
10237
102382002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
10239
10240 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
10241
102422002-06-15 Richard M. Stallman <rms@gnu.org>
10243
10244 * window.c (Fset_window_configuration): Explicitly preserve
10245 the point value that new_current_buffer had at the start.
10246
102472002-06-14 Juanma Barranquero <lektu@terra.es>
10248
10249 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
10250 Fix typos.
10251
102522002-06-14 Kim F. Storm <storm@cua.dk>
10253
10254 * insdel.c (insert_1_both, insert_from_string_1)
10255 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
10256 insert happened in the end_unchanged region. Otherwise, the
10257 redisplay may be confused and duplicate the last line in the
10258 buffer [seen after save-buffer when require-final-newline==t].
10259
102602002-06-13 Jason Rumney <jasonr@gnu.org>
10261
10262 * w32.c (init_environment): Remove EMACSLOCKDIR.
10263 (stat): Swap _S_IFDIR and _S_IFREG.
10264
102652002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10266
10267 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
10268 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
10269 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
10270 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
10271 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
10272 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
10273 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
10274 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
10275 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
10276 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
10277 SELECTION_REQUEST_EVENT, selection_clear_event to
10278 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
10279 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
10280 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
10281 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
10282 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
10283 no_event to NO_EVENT.
10284
102852002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10286
10287 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
10288
102892002-06-12 Stefan Monnier <monnier@cs.yale.edu>
10290
10291 * intervals.c (textget): Don't forget to `return'.
10292 (lookup_char_property): Use XCAR/XCDR.
10293
102942002-06-12 Juanma Barranquero <lektu@terra.es>
10295
10296 * xdisp.c (Fformat_mode_line): Fix typo.
10297
102982002-06-12 Kim F. Storm <storm@cua.dk>
10299
10300 * xdisp.c (Fformat_mode_line): New function.
10301 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
10302 (store_frame_title_char, store_frame_title): Use unconditionally.
10303 (init_xdisp): Defsubr Fformat_mode_line.
10304 Initialize frame_title_buf etc. unconditionally.
10305
103062002-06-11 Stefan Monnier <monnier@cs.yale.edu>
10307
10308 * keyboard.c (read_key_sequence):
10309 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
10310 things through those maps after downcasing events.
10311 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
10312 applies after function-key-map.
10313 Make sure that keytran can be done in the middle in the sequence.
10314 Be careful not to throw away events past the one we downcase.
10315
10316 * lread.c (read_integer): Remove unused var `tem'.
10317 (read1): Fix int/Lisp_Object mixup.
10318
10319 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
10320
103212002-06-11 Richard M. Stallman <rms@gnu.org>
10322
10323 * keyboard.c (readable_events): Ignore any number of
10324 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
10325
103262002-06-09 Miles Bader <miles@gnu.org>
10327
10328 * xfaces.c (Ftty_supports_face_attributes_p): New function.
10329 (parse_rgb_list, tty_lookup_color): New functions.
10330 (tty_defined_color): Use `tty_lookup_color' to do all the work.
10331 (color_distance, Fcolor_distance): New functions.
10332 (TTY_SAME_COLOR_THRESHOLD): New macro.
10333 (Qtty_color_standard_values): New variable.
10334 (syms_of_xfaces): Initialize new vars & functions.
10335
103362002-06-08 Colin Walters <walters@verbum.org>
10337
10338 * textprop.c (Vchar_property_alias_alist): New variable.
10339 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
10340
10341 * intervals.c (lookup_char_property): New function for looking up
10342 overlay and text properties, created from textget.
10343 (textget): Use it.
10344
10345 * intervals.h (lookup_char_property): Declare.
10346 (Vchar_property_alias_alist): Declare.
10347
10348 * buffer.c (Foverlay_get): Use lookup_char_property.
10349
103502002-06-07 Sam Steingold <sds@gnu.org>
10351
10352 * xselect.c (lisp_data_to_selection_data): Fix last change:
10353 *data_ret is not a Lisp string, while unibyte_string is.
10354
103552002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
10356
10357 * xselect.c (lisp_data_to_selection_data): Fix last change:
10358 set size_ret.
10359
103602002-06-07 Andreas Schwab <schwab@suse.de>
10361
10362 * m/amdx86-64.h: New file.
10363
103642002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
10365
10366 * fns.c (Fstring_make_unibyte): Doc fix.
10367
10368 * xselect.c (lisp_data_to_selection_data): If the requested type
10369 is STRING, call string_make_unibyte to encode the selected text
10370 as a string.
10371
10372 * window.c (Fset_window_hscroll): Doc fix.
10373
103742002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10375
10376 * fileio.c (choose_write_coding_system):
10377 Call select-safe-coding-system properly.
10378
103792002-06-03 Richard M. Stallman <rms@gnu.org>
10380
10381 * xdisp.c (message_with_string): Error if STRING is not a string.
10382
10383 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
10384
10385 * fileio.c (choose_write_coding_system): Pass FILE arg to
10386 Vselect_safe_coding_system_function.
10387
103882002-06-03 Ken Raeburn <raeburn@gnu.org>
10389
10390 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
10391
103922002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
10393
10394 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
10395 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
10396 * keymap.c (describe_command): Likewise.
10397 * minibuf.c (read_minibuf): Likewise.
10398
10399 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
10400 Cast `current_column' return value to int.
10401 (back_to_previous_visible_line_start)
10402 (reseat_at_next_visible_line_start, next_element_from_buffer):
10403 Cast `indented_beyond_p' 3rd arg to float.
10404
10405 * indent.c (last_known_column): Now a float.
10406 (current_column_1, position_indentation, current_column)
10407 (string_display_width): Return float.
10408 (Fcurrent_column): Cast `current_column' return value to int.
10409 (Fcurrent_indentation): Cast `position_indentation' retval to int.
10410 (indented_beyond_p): Third arg now a float.
10411 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
10412
10413 * lisp.h (current_column): Now returns float.
10414 (indented_beyond_p): 3rd arg now a float.
10415
104162002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
10417
10418 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
10419 is Qcompound_text_with_extensions.
10420
10421 * xselect.c (lisp_data_to_selection_data): Always set selection
10422 type as string if x_encode_text returns streingp non-NULL.
10423
10424 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
10425
104262002-05-30 Richard M. Stallman <rms@gnu.org>
10427
10428 * window.c (Fset_window_configuration): Correct the handling
10429 of point in current buffer, to work with multiple windows.
10430
104312002-05-29 Colin Walters <walters@verbum.org>
10432
10433 * lread.c (Fread_from_string): Don't depend on order of evaluation
10434 for C function parameters.
10435
104362002-05-28 Richard M. Stallman <rms@gnu.org>
10437
10438 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
10439 way for blinked-off state and for a nonselected window.
10440
10441 * window.c (window_scroll_pixel_based): Don't call Fbolp;
10442 instead, see if the new start pos is at beginning of line.
10443
10444 * fileio.c (Fwrite_region): If START is a string, don't
10445 make any annotations.
10446
10447 * eval.c (syms_of_eval): Doc fix.
10448
104492002-05-28 Colin Walters <walters@debian.org>
10450
10451 * emacs.c (USAGE1): Add --no-splash.
10452 (standard_args): Ditto.
10453
104542002-05-28 Colin Walters <walters@gnu.org>
10455
10456 * lread.c (readchar_count): New variable.
10457 (readchar): Increment it.
10458 (unreadchar): Decrement it.
10459 (read_multibyte): Decrement it.
10460 (Vread_with_symbol_positions): New variable.
10461 (Vread_symbol_positions_list): New variable.
10462 (read_internal_start): New function, created from Fread and
10463 Fread_from_string. Handle Vread_symbol_positions_list and
10464 Vread_with_symbol_positions.
10465 (readevalloop, Fread, Fread_from_string): Use it.
10466 (read1): Use readchar_count to add symbol positions to
10467 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
10468 (syms_of_lread): DEFVAR_LISP and initialize them.
10469
10470 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
10471 (substitute_object_recurse, substitute_object_in_subtree)
10472 (substitute_in_interval): Prototype.
10473 (read_multibyte): Return c if it's less than zero.
10474
104752002-05-28 Kim F. Storm <storm@cua.dk>
10476
10477 * fileio.c (Fread_file_name_internal): Added brute-force
10478 speed up for using predicate file-directory-p.
10479
104802002-05-28 Kim F. Storm <storm@cua.dk>
10481
10482 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
10483 New variables.
10484 (syms_of_fileio): DEFVAR_LISP them.
10485 (read_file_name_cleanup): New unwind function.
10486 (Fread_file_name_internal): Only return completions satifying
10487 Vread_file_name_predicate. Temporarily unwind protect and rebind
10488 default-directory while checking completions against the predicate.
10489 (Fread_file_name): Added PREDICATE argument. Specbind it to
10490 Vread_file_name_predicate during completion.
10491 Call Vread_file_name_function to read the file name if non-nil.
10492
10493 * lisp.h (Fread_file_name): Now has 6 args.
10494
10495 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
10496 predicate for Fread_file_name when reading directory name.
10497 Supply Qnil for predicate in other calls to Fread_file_name.
10498
104992002-05-26 Miles Bader <miles@gnu.org>
10500
10501 * term.c (tty_capable_p): New function.
10502 * dispextern.h (tty_capable_p): New function declaration.
10503 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
10504 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
10505
105062002-05-23 Stefan Monnier <monnier@cs.yale.edu>
10507
10508 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
10509 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
10510 (Vwrite_region_annotate_functions): Docstring fix.
10511
105122002-05-23 Kim F. Storm <storm@cua.dk>
10513
10514 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
10515 phys_cursor's hpos is overwritten. This is still not completely
10516 correct, as it doesn't really make sense to use hpos at all to
10517 get the cursor glyph (as that is relative to the width of the
10518 characters on the line, which may have changed during the update).
10519
105202002-05-22 Jason Rumney <jasonr@gnu.org>
10521
10522 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
10523 Lisp_Object.
10524 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
10525 Use modified enumfont_t struct.
10526
10527 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
10528
10529 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
10530 Handle the `hbar' cursor type.
10531 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
10532
10533 * w32fns.c (Qhbar): New variable.
10534 (x_specified_cursor_type): Use it.
10535
105362002-05-21 Ken Raeburn <raeburn@gnu.org>
10537
10538 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
10539 now, when the address is needed.
10540
105412002-05-21 Colin Walters <walters@gnu.org>
10542
10543 * Makefile.in (shortlisp): Add font-core.el.
10544
105452002-05-20 Richard M. Stallman <rms@gnu.org>
10546
10547 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
10548
10549 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
10550 equivalent key bindings here.
10551
105522002-05-20 Ken Raeburn <raeburn@gnu.org>
10553
10554 Change symbol structure to contain a lisp object for the symbol
10555 name:
10556 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
10557 object field named "xname".
10558 (SYMBOL_NAME): New macro.
10559 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
10560 name field.
10561 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
10562 (mark_object, gc_sweep): Use symbol xname field and XSTRING
10563 instead of name field.
10564 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
10565 SYMBOL_NAME instead of XSYMBOL and name field.
10566 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
10567 instead of XSYMBOL and name field.
10568 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
10569 and SYMBOL_NAME instead of XSYMBOL and name field.
10570 * coding.c (Fread_coding_system, code_convert_region1)
10571 (code_convert_string1, code_convert_string_norecord)
10572 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
10573 XSYMBOL and name field.
10574 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
10575 (Fmake_variable_buffer_local, Fmake_local_variable)
10576 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
10577 of XSYMBOL and name field.
10578 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
10579 XSYMBOL and name field.
10580 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
10581 instead of XSYMBOL and name field.
10582 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
10583 XSYMBOL and name field.
10584 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
10585 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
10586 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
10587 instead of XSYMBOL and name field.
10588 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
10589 (parse_modifiers, apply_modifiers, Fevent_convert_list)
10590 (parse_solitary_modifier, Fexecute_extended_command):
10591 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
10592 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
10593 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
10594 of XSYMBOL and name field.
10595 (describe_command, describe_translation): Use SYMBOL_NAME and
10596 assignment instead of XSYMBOL and name field and XSETSTRING.
10597 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
10598 instead of XSYMBOL and name field.
10599 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
10600 name field and XSETSTRING.
10601 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
10602 of XSYMBOL and name field.
10603 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
10604 assignment instead of XSYMBOL and name field and XSETSTRING.
10605 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
10606 XSTRING instead of XSYMBOL and name field.
10607 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
10608 and XSTRING instead of XSYMBOL and name field.
10609 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
10610 and XSTRING instead of XSYMBOL and name field.
10611 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
10612 XSTRING instead of XSYMBOL and name field.
10613 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
10614 of XSYMBOL and name field.
10615 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
10616 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
10617
106182002-05-19 Ken Raeburn <raeburn@gnu.org>
10619
10620 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
10621 and XCDR real rvalues in most configurations.
10622
10623 * buffer.c (fix_overlays_in_range, fix_overlays_before):
10624 Don't take the address of the cdr part of a cons cell; instead, track
10625 the parent cell and call XSETCDR, or set the variable for the head
10626 of the list if we haven't started down the list yet.
10627
106282002-05-19 Richard M. Stallman <rms@gnu.org>
10629
10630 * doc.c (reread_doc_file): Don't ask for confirmation.
10631
106322002-05-18 Jason Rumney <jasonr@gnu.org>
10633
10634 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
10635 (xbm_load_image): Use it.
10636 (xbm_load): Ditto.
10637 (xbm_read_bitmap_data): Reverted to xfns.c version.
10638 From David Ponce <david@dponce.com>.
10639
106402002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
10641
10642 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
10643 2.02 and later.
10644
106452002-05-16 Juanma Barranquero <lektu@terra.es>
10646
10647 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
10648
106492002-05-15 Stefan Monnier <monnier@cs.yale.edu>
10650
10651 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
10652 meaningful test.
10653 (read_char_minibuf_menu_prompt): Fix typo.
10654
106552002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
10656
10657 * eval.c (Fcommandp): Doc fix.
10658
106592002-05-13 Stefan Monnier <monnier@cs.yale.edu>
10660
10661 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
10662 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
10663 (Fset_keymap_parent): Gcpro a bit more.
10664 (access_keymap): Gcpro around meta_map call and around the main loop.
10665 (get_keyelt): Gcpro when following indirect references.
10666 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
10667 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
10668 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
10669 Remove useless ad-hoc remap code.
10670
106712002-05-13 Richard M. Stallman <rms@gnu.org>
10672
10673 * search.c (search_buffer): Give up boyer moore search if inverse
10674 translation change charset_base.
10675
106762002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
10677
10678 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
10679 characters is carried over from the previous block of text, adjust
10680 coding->produced to account for the extra character.
10681
106822002-05-11 Andreas Schwab <schwab@suse.de>
10683
10684 * coding.c (intersection): Keep the elements of the returned list
10685 in the same order as in the first list.
10686
106872002-05-11 Kim F. Storm <storm@cua.dk>
10688
10689 * keymap.c (current_minor_maps): Fixed resizing of cmm_maps;
10690 only update cmm_size if realloc actually succeeds.
10691 Testing with initial size of 2 elements revealed that using
10692 realloc on GNU/Linux would cause a random trap in xmalloc
10693 later on, so I rewrote the code to use malloc/bcopy/free instead
10694 of realloc.
10695
106962002-05-10 Jason Rumney <jasonr@gnu.org>
10697
10698 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
10699
107002002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
10701
10702 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
10703 parens, to ensure correct evaluation order.
10704
107052002-05-10 Kim F. Storm <storm@cua.dk>
10706
10707 * keymap.c (Vemulation_mode_map_alists): New variable.
10708 (syms_of_keymap): DEFVAR_LISP it.
10709 (current_minor_maps): Process keymap alists in that list before
10710 minor-mode-overriding-map-alist and minor-mode-map-alist.
10711
107122002-05-09 Richard M. Stallman <rms@gnu.org>
10713
10714 * search.c (Freplace_match): Doc fix.
10715
107162002-05-09 Kim F. Storm <storm@cua.dk>
10717
10718 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
10719 Enlarge cursor rectangle drawn around image with non-zero relief.
10720
10721 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
10722 Enlarge cursor rectangle drawn around image with non-zero relief.
10723
10724 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
10725 Enlarge cursor rectangle drawn around image with non-zero relief.
10726
107272002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
10728
10729 * xselect.c (lisp_data_to_selection_data): Don't set selection
10730 type if comes from the Lisp object's car. If the selection
10731 contains a pure ASCII text, always return QSTRING as its type.
10732
107332002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10734
10735 * mac.c (mac-cut-function): Doc fix.
10736
107372002-05-05 Richard M. Stallman <rms@gnu.org>
10738
10739 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
10740
107412002-05-04 Jason Rumney <jasonr@gnu.org>
10742
10743 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
10744 for event-click-count.
10745
10746 * process.c (init_process): Only add server subfeature if we can
10747 use non-blocking I/O.
10748
107492002-05-04 Andrew Choi <akochoi@shaw.ca>
10750
10751 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
10752 repeatedly.
10753
107542002-05-03 Jason Rumney <jasonr@gnu.org>
10755
10756 * process.c (Fmake_network_process): Only support server sockets
10757 when we can make them non-blocking.
10758
10759 * s/ms-w32.h (HAVE_SELECT): Define.
10760
10761 * w32.h (FILE_NDELAY): New flag.
10762
10763 * w32.c (sys_getpeername, fcntl): New functions.
10764 (_sys_read_ahead): Temporarily block on non-blocking sockets.
10765
10766 * w32proc.c: include sys/file.h.
10767
107682002-05-03 Colin Walters <walters@verbum.org>
10769
10770 * callproc.c (Vgame_score_directory): Renamed to
10771 Vshared_game_score_directory.
10772
107732002-04-30 Richard M. Stallman <rms@gnu.org>
10774
10775 * s/gnu.h [emacs]: Include stdio.h.
10776 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
10777
10778 * eval.c (do_autoload): Error if called while preparing to dump.
10779
10780 * fns.c (Frequire): Error if need to load while preparing to dump.
10781
107822002-04-28 Colin Walters <walters@verbum.org>
10783
10784 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
10785 Default to "~/.emacs.d/games".
10786
107872002-04-29 Stefan Monnier <monnier@cs.yale.edu>
10788
10789 * lread.c (openp): Change arg exec_only to predicate.
10790 (build_load_history): Use XCAR/XCDR.
10791 (Flocate_file_internal): New fun.
10792 (syms_of_lread): Defsubr it.
10793 (Fload): Update call to openp.
10794
10795 * lisp.h (openp): Update prototype.
10796
10797 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
10798 * w32proc.c (sys_spawnve):
10799 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
10800 * w32.c (check_windows_init_file):
10801 * sound.c (Fplay_sound_internal):
10802 * process.c (Fstart_process):
10803 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
10804 * mac.c (run_mac_command):
10805 * emacs.c (init_cmdargs):
10806 * callproc.c (Fcall_process): Update call to openp.
10807
10808 * textprop.c (remove_properties): Don't use XCAR without CONSP.
10809
10810 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
10811
108122002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10813
10814 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
10815 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
10816
108172002-04-28 Richard M. Stallman <rms@gnu.org>
10818
10819 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
10820
10821 * eval.c (Fcommandp): New arg for_call_interactively.
10822 * lisp.h (Fcommandp): Declare new arg.
10823
108242002-04-28 Jason Rumney <jasonr@gnu.org>
10825
10826 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
10827
10828 * w32.c (stat, fstat): Use file index information to generate
10829 inodes for directories where available.
10830
108312002-04-26 Andrew Choi <akochoi@shaw.ca>
10832
10833 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
10834 [HAVE_CARBON]: Include Mac object files.
10835
10836 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
10837 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
10838 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
10839 MAC_OSX, and MAC_OS instead of macintosh.
10840
10841 * editfns.c [MAC_OS8]: Include stdio.h.
10842
10843 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
10844
10845 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
10846 Apple Monaco.
10847
10848 * process.c: Declare QCfamily and QCfilter as extern.
10849 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
10850 calling select.
10851
10852 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
10853
10854 * tparam.c [MAC_OSX]: Don't define BC and UP.
10855
10856 * config.in [HAVE_CARBON]: Add.
10857
10858 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
10859 Move here from mac/src and mac/inc.
10860
10861 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
10862
108632002-04-26 Gerd Moellmann <gerd@gnu.org>
10864
10865 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
10866 Compute phys_cursor_width from the x position returned
10867 by x_draw_glyhs, which is cheaper.
10868 (x_display_and_set_cursor): Compute the buffer-local value
10869 of `cursor-in-non-selected-windows' only when needed.
10870
108712002-04-25 Gerd Moellmann <gerd@gnu.org>
10872
10873 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
10874 cursor on a stretch glyph has a width that depends on
10875 x_stretch_cursor_p.
10876
108772002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10878
10879 * abbrev.c (abbrev-start-location): Doc fix.
10880
10881 * indent.c (Fvertical_motion): Fix last change.
10882
108832002-04-25 Gerd Moellmann <gerd@gnu.org>
10884
10885 * indent.c (Fvertical_motion): Move to the start of the line
10886 containing PT before moving up or down.
10887
108882002-04-24 Gerd Moellmann <gerd@gnu.org>
10889
10890 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
10891 case of writing a whole row, more or less analogous to the case of
10892 writing only parts of a row.
10893
10894 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
10895 0 for NO_CURSOR.
10896
10897 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
10898
108992002-04-23 Colin Walters <walters@verbum.org>
10900
10901 * buffer.c (syms_of_buffer): Doc fix.
10902
109032002-04-23 Gerd Moellmann <gerd@gnu.org>
10904
10905 * xterm.c (notice_overwritten_cursor): Handle the special case
10906 of the cursor being in the first blank non-text line at the
10907 end of a window.
10908
10909 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
10910 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
10911 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
10912 bar cursors only, to make phys_cursor_width contain what its name
10913 suggests.
10914 (notice_overwritten_cursor): Consider the cursor image erased if
10915 the output area intersects the cursor image in y-direction.
10916
109172002-04-23 Simon Marshall <simon@gnu.org>
10918
10919 * xfns.c (x_set_mouse_color): Change default for cross_cursor
10920 to XC_hand2.
10921
109222002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10923
10924 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
10925
109262002-04-22 Kim F. Storm <storm@cua.dk>
10927
10928 * textprop.c (remove_properties): Fixed trap for malformed plist.
10929
109302002-04-22 Richard M. Stallman <rms@gnu.org>
10931
10932 * cmds.c (Fend_of_line): Handle intangible text in mid line.
10933
10934 * window.c (make_window): Initialize height_fixed_p,
10935 last_cursor_off_p, and p->cursor_off_p slots.
10936
109372002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10938
10939 * fns.c (use-dialog-box): Doc fix.
10940
109412002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10942
10943 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
10944 variables `row', `i' and `area'.
10945 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
10946 toolkit library.
10947
109482002-04-19 Stefan Monnier <monnier@cs.yale.edu>
10949
10950 * xfaces.c (clear_font_table): Don't free the default font of
10951 a frame even if it's on another display.
10952 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
10953 that could be Qt.
10954
109552002-04-19 Juanma Barranquero <lektu@terra.es>
10956
10957 * indent.c (Fmove_to_column): Remove unused local variable
10958 `next_boundary_byte'.
10959 (current_column_1): Likewise.
10960
109612002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
10962
10963 * msdos.c (Qhbar): New variable.
10964 (syms_of_msdos): Intern and staticpro it.
10965 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
10966 cursor type.
10967
109682002-04-19 Dave Lambert <dlambert@acm.org>
10969
10970 Theses change implement an underscore-like (`hbar') cursor.
10971
10972 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
10973
10974 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
10975 Handle the `hbar' cursor type.
10976 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
10977
10978 * xfns.c (Qhbar): New variable.
10979 (syms_of_xfns): Intern and staticpro it.
10980 (x_specified_cursor_type): Handle `hbar' cursor.
10981
10982 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
10983 not defined.
10984
109852002-04-18 Richard M. Stallman <rms@gnu.org>
10986
10987 * textprop.c (remove_properties): New arg LIST allows scanning
10988 either a list or a plist.
10989 (interval_has_some_properties_list): New function, like
10990 interval_has_some_properties using list instead of plist.
10991 All callers changed.
10992 (Fremove_list_of_text_properties): New function.
10993 (syms_of_textprop): Defsubr it.
10994
109952002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
10996
10997 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
10998
109992002-04-17 Juanma Barranquero <lektu@terra.es>
11000
11001 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
11002
110032002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
11004
11005 * window.c (coordinates_in_window): Don't report on margin area
11006 if its width is zero.
11007
110082002-04-16 Jason Rumney <jasonr@gnu.org>
11009
11010 * w32fns.c (Fx_file_dialog): Decode file name before using.
11011
11012 * w32term.c (construct_drag_n_drop): Likewise.
11013
110142002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
11015
11016 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
11017 store load-history in pure space.
11018
11019 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
11020
110212002-04-16 Stefan Monnier <monnier@cs.yale.edu>
11022
11023 * xterm.c (Qlatin_1, Qutf_8): New vars.
11024 (syms_of_xterm): Initialize them.
11025 (XTread_socket): Eliminate incorrect optimization that tried to avoid
11026 decoding the output of X*LookupString.
11027 Always use latin-1 to decode the output of XLookupString.
11028 Try Xutf8LookupString if XmbLookupString failed.
11029
11030 * region-cache.c (new_region_cache): Use BEG.
11031
110322002-04-16 Gerd Moellmann <gerd@gnu.org>
11033
11034 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
11035 configuration files.
11036 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
11037 returns 0.
11038
110392002-04-15 Andreas Schwab <schwab@suse.de>
11040
11041 * config.in: Regenerated using autoheader.
11042
11043 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
11044 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
11045 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
11046 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
11047 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
11048 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
11049 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
11050 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
11051 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
11052 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
11053 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
11054 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
11055 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
11056 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
11057 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
11058 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
11059 STACK_DIRECTION, now set by autoconf.
11060
110612002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11062
11063 * dispnew.c (marginal_area_string): Sort arguments.
11064
11065 * dispextern.h (marginal_area_string): Add prototype.
11066
110672002-04-13 Richard M. Stallman <rms@gnu.org>
11068
11069 * fileio.c (Finsert_file_contents):
11070 Don't call temp_output_buffer_setup--do just part, by hand.
11071
11072 * coding.c (run_pre_post_conversion_on_str):
11073 Don't call temp_output_buffer_setup--do just part, by hand.
11074
11075 * keyboard.c (command_loop_1): Don't call start_hourglass
11076 or cancel_hourglass when executing a macro.
11077
11078 * marker.c (count_markers): New function.
11079
11080 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
11081 grow without limit. Move recently used elements to the front.
11082
110832002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
11084
11085 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
11086
110872002-04-12 Gerd Moellmann <gerd@gnu.org>
11088
11089 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
11090 rows marginal areas.
11091 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
11092 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
11093
11094 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
11095
110962002-04-12 Dave Love <fx@gnu.org>
11097
11098 * dispnew.c (marginal_area_string): New.
11099
11100 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
11101 (Qleft_margin, Qright_margin): Declare.
11102 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
11103
11104 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
11105 note_mode_line_highlight and extended.
11106
11107 * keyboard.c (Qleft_margin, Qright_margin): Declare.
11108 (make_lispy_event): Deal with mouse events in margins.
11109
111102002-04-12 Stefan Monnier <monnier@cs.yale.edu>
11111
11112 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
11113
11114 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
11115 than deactivating the mark if tmm is set to `lambda'.
11116 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
11117 Use a single event for HELP_EVENT.
11118 (Fexecute_extended_command): Save last_point_position.
11119
111202002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11121
11122 * lisp.h (Fpropertize): Add prototype.
11123
11124 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
11125
111262002-04-10 Colin Walters <walters@verbum.org>
11127
11128 * config.in: Add HAVE_SHARED_GAME_DIR.
11129
11130 * callproc.c: (Vgame_score_directory): New variable.
11131 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
11132
111332002-04-10 Richard M. Stallman <rms@gnu.org>
11134
11135 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
11136
111372002-04-09 Stefan Monnier <monnier@cs.yale.edu>
11138
11139 * minibuf.c (read_minibuf): Use empty_string.
11140 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
11141 Short-circuit the search as soon as it "failed".
11142 (Fall_completions): Allow lambda forms and lists of strings for alist.
11143 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
11144 when require_match is nil.
11145 (Ftest_completion): Rename from `test_completion' and export to elisp.
11146 Call the predicate also when alist is a list.
11147 Obey Vcompletion_regexp_list.
11148 (do_completion, Fminibuffer_complete_and_exit): Use it.
11149 (Fassoc_string): Rename from `assoc_for_completion'.
11150 Allow list of strings as well and export to elisp.
11151
111522002-04-08 Stefan Monnier <monnier@cs.yale.edu>
11153
11154 * puresize.h (BASE_PURESIZE): Increase to 900KB.
11155
111562002-04-08 Juanma Barranquero <lektu@terra.es>
11157
11158 * w32.c (sys_accept): Don't hide variable `s'.
11159
111602002-04-05 Gerd Moellmann <gerd@gnu.org>
11161
11162 * callint.c (Fcall_interactively): Use INTEGERP instead of
11163 NUMBERP for checking Vhistory_length.
11164
111652002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11166
11167 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
11168 Doc fix to reflect it.
11169
111702002-04-04 Richard M. Stallman <rms@gnu.org>
11171
11172 * xdisp.c (display_mode_element): New arg RISKY.
11173 Disregard text props found or specified within a variable
11174 that isn't marked risky-local-variable.
11175 (Qrisky_local_variable): New variable.
11176 (syms_of_xdisp): Init and staticpro it.
11177
111782002-04-04 Stefan Monnier <monnier@cs.yale.edu>
11179
11180 * undo.c (record_point): New fun.
11181 (record_delete, record_insert): Use it.
11182
111832002-04-03 Juanma Barranquero <lektu@terra.es>
11184
11185 * doc.c (Fdocumentation): Add missing parentheses.
11186 (Fdocumentation_property): Likewise.
11187
111882002-04-03 Stefan Monnier <monnier@cs.yale.edu>
11189
11190 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
11191 data is 0, just return nil.
11192
111932002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
11194
11195 * msdos.c (syms_of_msdos): Fix last change with
11196 mouse_autoselect_window.
11197
111982002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11199
11200 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
11201 mouse_autoselect_window.
11202
112032002-04-02 Stefan Monnier <monnier@cs.yale.edu>
11204
11205 * keyboard.c (make_lispy_event): Handle unknown keysyms together
11206 with system-specific keysyms. Use it also for unknown function keys.
11207
11208 * doc.c (reread_doc_file): Return whether reload was attempted.
11209 (Fdocumentation, Fdocumentation_property): Don't try to reload
11210 if the doc is 0 and only ask once.
11211
11212 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
11213
112142002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
11215
11216 * keyboard.c (read_char): If the event was Qselect_window,
11217 restore timer_idleness_start_time to its previous value.
11218
11219 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
11220
112212002-04-01 Stefan Monnier <monnier@cs.yale.edu>
11222
11223 * region-cache.c (new_region_cache): Use BEG.
11224
11225 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
11226 Use BEG and BEG_BYTE.
11227
11228 * doc.c (get_doc_string): Return nil if the location is wrong.
11229 (reread_doc_file): New fun.
11230 (Fdocumentation, Fdocumentation_property):
11231 Call it if get_doc_string fails.
11232 (Fsnarf_documentation): Make it work for a dumped Emacs.
11233
11234 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
11235 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
11236
11237 * charset.c (Fstring): Allow 0 arguments.
11238
11239 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
11240
11241 * process.c (DATAGRAM_CONN_P, list_processes_1)
11242 (Fprocess_datagram_address, Fset_process_datagram_address)
11243 (Fset_network_process_options, server_accept_connection):
11244 Fix some int/Lisp_Object confusions (thank you union types).
11245
112462002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11247
11248 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
11249
11250 * w32term.c: Likewise.
11251 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
11252
11253 * keyboard.c (Qselect_window): New symbol.
11254 (head_table): Use it.
11255 (keys_of_keyboard): Bound select-window event to handle-select-window.
11256 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
11257
11258 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
11259 (last_window): New variable.
11260 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
11261 (note_mouse_movement): Remove reimplemented code in #if 0.
11262 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
11263 Emacs windows.
11264
11265 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
11266
112672002-03-31 Gerd Moellmann <gerd@gnu.org>
11268
11269 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
11270 Callers changed.
11271
112722002-03-30 Richard M. Stallman <rms@gnu.org>
11273
11274 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
11275 loop whenever it stops making progress.
11276
11277 * widget.c (set_frame_size): Don't call change_frame_size.
11278
112792002-03-30 Gerd Moellmann <gerd@gnu.org>
11280
11281 * dispnew.c (direct_output_for_insert):
11282 Call mark_window_display_accurate.
11283
112842002-03-29 Jason Rumney <jasonr@gnu.org>
11285
11286 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
11287
112882002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
11289
11290 * Makefile.in (lread.o): Depend on coding.h.
11291
11292 * lread.c (openp, Fload): Encode the file name before passing it
11293 to `stat', `access', and `emacs_open'.
11294 (openp): GCPRO the encoded file name. Don't recompute Lisp
11295 strings unnecessarily.
11296
112972002-03-29 Kim F. Storm <storm@cua.dk>
11298
11299 * fns.c (Flax_plist_put): Doc fix.
11300
113012002-03-28 Miles Bader <miles@gnu.org>
11302
11303 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
11304
113052002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11306
11307 * process.c (set-network-process-options): Add usage.
11308 (make-network-process): Doc fix.
11309
113102002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
11311
11312 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
11313
113142002-03-26 Richard M. Stallman <rms@gnu.org>
11315
11316 * fns.c (Fsubstring_no_properties): New function.
11317 (Flax_plist_get, Flax_plist_put): New functions.
11318 (syms_of_fns): defsubr them.
11319
11320 * xdisp.c (update_menu_bar): Test only update_mode_lines;
11321 don't test or alter w->update_mode_line.
11322
11323 * window.c (Fdisplay_buffer): Doc fix.
11324
113252002-03-24 Richard M. Stallman <rms@gnu.org>
11326
11327 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
11328
113292002-03-24 Gerd Moellmann <gerd@gnu.org>
11330
11331 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
11332 (Fdefmacro): Handle `(declare ...)'.
11333 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
11334 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
11335
113362002-03-24 Jason Rumney <jasonr@gnu.org>
11337
11338 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
11339 (xbm_file_p): Add prototypes.
11340 (xbm_format, xbm_image_p): Sync with xfns.c.
11341 (reflect_byte): New function.
11342 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
11343 (xbm_load_image): Create bitmaps with a depth of 1.
11344 (init_xfns): Enable XBM images.
11345
113462002-03-23 Jason Rumney <jasonr@gnu.org>
11347
11348 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
11349 correctly. Do not pass up_modifier to keyboard buffer.
11350
11351 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
11352
113532002-03-22 Stefan Monnier <monnier@cs.yale.edu>
11354
11355 * Makefile.in (bootstrapclean): New target.
11356 (bootstrap-temacs, bootstrap-doc): Remove.
11357 (bootstrap-emacs): Use a bog-standard `temacs'.
11358 Don't bother to build a DOC file.
11359
11360 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
11361
11362 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
11363 in temacs even if !CANNOT_DUMP.
11364 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
11365
11366 * alloc.c (check_pure_size): Only output a warning.
11367
113682002-03-22 Jason Rumney <jasonr@gnu.org>
11369
11370 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
11371 supported.
11372
11373 * w32term.c (zv_bits): Declare as short, for word alignment.
11374 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
11375 (syms_of_w32term): Define x-use-underline-position-properties.
11376
11377 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
11378 (clear_image_cache): Block input, fix logic, clear matrices in
11379 all frames that share this cache.
11380
113812002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
11382
11383 * emacs.c (main): Update the Copyright year in the blurb printed
11384 by "emacs --version".
11385
11386 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
11387
11388 * xterm.c (XTread_socket): If XK_ISO_Lock and
11389 XK_ISO_Last_Group_Lock are defined, handle keysyms between
11390 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
11391
113922002-03-21 Kim F. Storm <storm@cua.dk>
11393
11394 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
11395 menu-bar bindings in keymap and local-map properties _are_ used.
11396 But try keymap property first in accordance with 2002-01-03 patch.
11397 Added comment describing why this is not always reliable.
11398 (tool_bar_items): Ditto for tool-bar.
11399
114002002-03-21 Jason Rumney <jasonr@gnu.org>
11401
11402 * w32fns.c (x_clear_image_1): Disable color table code.
11403
114042002-03-21 Kim F. Storm <storm@cua.dk>
11405
11406 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
11407 removed the wrong version of the DEFUN macro; fixed it.
11408
11409 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
11410 Fmember rather than Fmemq).
11411 (Fprovide): Check that subfeatures is a list.
11412
11413 * process.c (QCfeature, QCdatagram): Removed variables.
11414 (QCtype, Qdatagram): New variables.
11415 (network_process_featurep): Removed function.
11416 (Fmake_network_process): Removed :feature check.
11417 Use :type 'datagram instead of :datagram t to create a datagram
11418 socket. This allows us to add other connection types (e.g. raw
11419 sockets) later in a consistent manner.
11420 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
11421 supported subfeatures for feature make-network-process.
11422 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
11423 Intern and staticpro QCtype and Qdatagram.
11424 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
11425
11426 * xfns.c: (QCtype): Remove duplicate declaration and
11427 initialization (is now declared in process.c).
11428
11429 * w32fns.c: (QCtype): Remove duplicate declaration and
11430 initialization (is now declared in process.c).
11431
114322002-03-21 Richard M. Stallman <rms@gnu.org>
11433
11434 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
11435 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
11436 when jumping to `fail' to avoid undoing reg changes in the
11437 last iteration of the loop.
11438 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
11439
11440 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
11441 Depend on process.h.
11442
114432002-03-20 Jason Rumney <jasonr@gnu.org>
11444
11445 Most of the following changes are still conditional on HAVE_IMAGES
11446 which is not set by default on Windows.
11447
11448 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
11449
11450 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
11451 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
11452 (four_corners_best, x_clear_image_1, x_clear_image)
11453 (x_alloc_image_color, postprocess_image)
11454 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
11455 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
11456 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
11457
11458 * w32gui.h (struct XImage): Define.
11459
11460 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
11461 extract mouse co-ordinates.
11462
114632002-03-20 Jason Rumney <jasonr@gnu.org>
11464
11465 * w32.c (init_winsock): Dynamically load new server and UDP
11466 socket functions.
11467 (socket_to_fd): New function.
11468 (sys_socket): Use it.
11469 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
11470 (sys_recvfrom, sys_sendto): New wrapper functions.
11471
11472 * process.c (QCfamily, QCfilter): Remove duplicate declaration
11473 and initialization.
11474
11475 * makefile.w32-in (LIBS): Remove $(WSOCK32).
11476
114772002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
11478
11479 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
11480 Don't use "sun" as a variable, it's a predefined constant on Sun
11481 machines.
11482
114832002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11484
11485 * bytecode.c (Fbyte_code): Revert last change.
11486
114872002-03-19 Kim F. Storm <storm@cua.dk>
11488
11489 * makefile.w32-in (LIBS): Add $(WSOCK32).
11490 From David Ponce <dponce@voila.fr>.
11491
114922002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11493
11494 * process.c (wait_reading_process_input): Move variables `pname'
11495 and `pnamelen' down where they are used.
11496
11497 * bytecode.c (Fbyte_code): Discard unused computed value to
11498 prevent gcc warning.
11499
11500 * lisp.h (Fplist_member): Add prototype.
11501
115022002-03-18 Kim F. Storm <storm@cua.dk>
11503
11504 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
11505 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
11506
11507 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
11508 Remove explicit GNU_LINUX settings for datagram support.
11509
115102002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11511
11512 * process.c (Fmake_network_process): Remove unused variable `sa'.
11513 Doc fix. Add usage:.
11514 (set_socket_options): Remove unused variables `optnum' and `opttype'.
11515
115162002-03-17 Richard M. Stallman <rms@gnu.org>
11517
11518 * xdisp.c (cursor_type_changed): New variable.
11519 (redisplay_internal): Redisplay all windows if cursor_type_changed.
11520 Clear it when clearing windows_or_buffers_changed.
11521 (try_cursor_movement, redisplay_window, try_window_id)
11522 (try_window_reusing_current_matrix): Test cursor_type_changed
11523 along with windows_or_buffers_changed.
11524
11525 * window.h (cursor_type_changed): New variable.
11526
11527 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
11528 not update_mode_lines, and always set it to 1.
11529
11530 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
11531 if no frames needed redrawing.
11532
115332002-03-17 Kim F. Storm <storm@cua.dk>
11534
11535 The following changes add support for network server processes,
11536 datagram connections, and local (unix) sockets.
11537
11538 * process.h (struct Lisp_Process): New member log.
11539 Doc fix: Member command used to indicate stopped network process.
11540 Doc fix: Member childp contains plist for network process.
11541 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
11542
11543 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
11544 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
11545 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
11546 New variables.
11547 (NETCONN1_P): New macro.
11548 (DATAGRAM_SOCKETS): New conditional symbol.
11549 (datagram_address): New array.
11550 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
11551 (status_message): Use concat3.
11552 (Fprocess_status): Add `listen' status to doc string. Return `stop'
11553 for a stopped network process.
11554 (Fset_process_buffer): Update contact plist for network process.
11555 (Fset_process_filter): Ditto. Don't enable input for stopped
11556 network processes. Server must listen, even if filter is t.
11557 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
11558 New functions.
11559 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
11560 (Fprocess_contact): Added KEY argument. Handle datagrams.
11561 (list_processes_1): Optionally show only processes with the query
11562 on exit flag set. Dynamically adjust column widths. Omit tty
11563 column if not needed. Report stopped network processes.
11564 Identify server and datagram network processes.
11565 (Flist_processes): New optional arg `query-only'.
11566 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
11567 (conv_lisp_to_sockaddr, set_socket_options)
11568 (network_process_featurep, unwind_request_sigio): New helper functions.
11569 (Fprocess_datagram_address, Fset_process_datagram_address):
11570 (Fset_network_process_options): New lisp functions.
11571 (Fopen_network_stream): Removed. Now defined in simple.el.
11572 (Fmake_network_process): New lisp function. Code is based on previous
11573 Fopen_network_stream, but heavily reworked with new property list based
11574 argument list, support for datagrams, server processes, and local
11575 sockets in addition to old client-only functionality.
11576 (server_accept_connection): New function.
11577 (wait_reading_process_input): Use it to handle incoming connects.
11578 Do not enable input on a new connection if process is stopped.
f63fd14e 11579 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
048addec
JD
11580 (send_process): Handle datagram sockets.
11581 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
11582 network process is indicated by setting command field to t .
11583 (Fprocess_send_eof): No-op if datagram connection.
11584 (Fstatus_notify): Don't read input for a stream server socket or a
11585 stopped network process.
11586 (init_process): Initialize datagram_address array.
11587 (syms_of_process): Intern and staticpro new variables, defsubr new
11588 functions.
11589
115902002-03-16 Jason Rumney <jasonr@gnu.org>
11591
11592 * w32fns.c (w32_to_all_x_charsets): Return correct type in
11593 startup case.
11594
115952002-03-16 Richard M. Stallman <rms@gnu.org>
11596
11597 * xdisp.c (redisplay_internal, redisplay_windows):
11598 Use list_of_error to call internal_condition_case_1.
11599 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
11600 so as to catch all errors with no possibility of debugger redisplay.
11601 (list_of_error): New variable.
11602 (syms_of_xdisp): Init and staticpro it.
11603
11604 * print.c (print_object): Delete `\ ' from printed rep of frame.
11605
116062002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
11607
11608 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
11609 until its implementation is fixed.
11610
116112002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11612
11613 * xfns.c (png_load): Remove unused variable `gamma_str'.
11614
116152002-03-14 Richard M. Stallman <rms@gnu.org>
11616
11617 * xfns.c (x_real_positions): Handle failure in XQueryTree.
11618
116192002-03-14 Miles Bader <miles@gnu.org>
11620
11621 * intervals.c (adjust_for_invis_intang): New function.
11622 (set_point_both): Use `adjust_for_invis_intang' to do most of the
11623 work for dealing with invisible+intangible regions. Do so before
11624 and after both forward and backward movements, to handle both
11625 front-sticky and rear-sticky cases.
11626 * textprop.c (text_property_stickiness): Function moved here from
11627 `editfns.c'.
11628 * intervals.h (text_property_stickiness): New declaration.
11629 * editfns.c (char_property_eq): Function removed.
11630 (text_property_stickiness): Function moved to `textprop.c'.
11631
116322002-03-13 Jason Rumney <jasonr@gnu.org>
11633
11634 * config.in: Add STRFTIME_NO_POSIX2.
11635
11636 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
11637 and %OX when underlying strftime does not.
11638
116392002-03-13 Stefan Monnier <monnier@cs.yale.edu>
11640
11641 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
11642 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
11643 line) to avoid annoying flicker.
11644 (xm_scroll_callback): Get rid of the now unnecessary kludge.
11645 (XTread_socket): Mark it static.
11646
11647 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
11648
116492002-03-13 Kim F. Storm <storm@cua.dk>
11650
11651 * puresize.h (BASE_PURESIZE): Increase to 775000.
11652
116532002-03-12 Juanma Barranquero <lektu@terra.es>
11654
11655 * editfns.c (syms_of_editfns): Fix typo.
11656
116572002-03-12 Gerd Moellmann <gerd@gnu.org>
11658
11659 * xsmfns.c: Include stdio.h because termhooks.h needs it.
11660 Include termopt.h for interrupt_input.
11661
116622002-03-11 Andreas Schwab <schwab@suse.de>
11663
11664 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
11665
116662002-03-11 Gerd Moellmann <gerd@gnu.org>
11667
11668 * xterm.c (note_mouse_movement): Put code for
11669 x_autoselect_window_p in #if 0.
11670
11671 * lread.c (Fload): Don't assume that message_with_string uses the
11672 string it is given like a C string.
11673
116742002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11675
11676 * xterm.h (x_session_check_input, x_session_initialize): Declared.
11677
11678 * xterm.c: (XTread_socket): Add call to x_session_check_input and
11679 x_session_have_connection.
11680 (x_initialize): Add call to x_session_initialize.
11681
11682 * termhooks.h (enum event_kind): Add save_session_event.
11683
11684 * keyboard.c: Add Emacs event save_session_event.
11685
11686 * emacs.c (main): Add call to syms_of_xsmfns.
11687
11688 * lisp.h: Declare syms_of_xsmfns as extern.
11689
11690 * config.in: Add HAVE_X_SM.
11691
11692 * Makefile.in (LIBXT): Add -lSM -lICE
11693 if HAVE_X_SM and not USE_X_TOOLKIT.
11694 (XOBJ): New file xsmfns.c added.
11695
11696 * xsmfns.c: New file for X session management.
11697
116982002-03-09 Jason Rumney <jasonr@gnu.org>
11699
11700 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
11701 read-only when setting modified time.
11702
117032002-03-08 Gerd Moellmann <gerd@gnu.org>
11704
11705 * xdisp.c (move_it_vertically_backward): At the end of the function,
11706 when moving forward by lines, treat terminal frames specially.
11707
11708 * keyboard.c (echo_char): Make sure to add a separator between
11709 keys even if echo_dash hasn't been called.
11710
11711 * xdisp.c: Use new string macros.
11712 (update_echo_area): Pass number of bytes to message3 instead of
11713 number of chars.
11714 (set_message_1): Don't access a string's size_byte directly.
11715 (decode_mode_spec_coding): Use number of bytes of eoltype string
11716 instead number of chars.
11717
11718 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
11719
117202002-03-08 Juanma Barranquero <lektu@terra.es>
11721
11722 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
11723 24-bit.
11724
117252002-03-06 Jason Rumney <jasonr@gnu.org>
11726
11727 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
11728
117292002-03-06 Gerd Moellmann <gerd@gnu.org>
11730
11731 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
11732 (cancel_echoing, echo_length, echo_truncate): Changed to
11733 work with new kboard definition.
11734 (echo_now): Use message3_nolog instead of message2_nolog.
11735
11736 * alloc.c (mark_kboards): Mark echo_string.
11737
11738 * keyboard.h (ECHOBUFSIZE): Removed.
11739 (struct kboard): Member echoptr removed, member echobuf renamed
11740 to echo_string.
11741
11742 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
11743 message3 instead of message2 to display the message using STRING's
11744 text properties.
11745
117462002-03-05 Andreas Schwab <schwab@suse.de>
11747
11748 * xdisp.c (hscroll_margin): Change to EMACS_INT.
11749
117502002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
11751
11752 * frame.c (default-frame-alist): Explain that setting it doesn't
11753 affect existing frames.
11754
117552002-03-05 Stefan Monnier <monnier@cs.yale.edu>
11756
11757 * indent.c (skip_invisible): Fix my brain fart.
11758
11759 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
11760
117612002-03-04 Stefan Monnier <monnier@cs.yale.edu>
11762
11763 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
11764 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
11765 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
11766 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
11767 and variables to use EMACS_INT instead of just int.
11768
11769 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
11770
117712002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
11772
11773 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
11774 environment, pass it down with corrected value.
11775
117762002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11777
11778 * lread.c (read_filtered_event): Do not call start_hourglass
11779 before returning.
11780
117812002-03-04 Juanma Barranquero <lektu@terra.es>
11782
11783 * w32term.c (x_display_and_set_cursor): Fix typo.
11784
117852002-03-03 Richard M. Stallman <rms@gnu.org>
11786
11787 * fileio.c (Fmake_temp_name): Doc fix.
11788
117892002-03-03 Gary Wong <gtw@gnu.org>
11790
11791 * termcap.c [!emacs]: Replace ospeed for building standalone
11792 libtermcap, for binary compatibility.
11793
11794 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
11795
117962002-03-03 Richard M. Stallman <rms@gnu.org>
11797
11798 * xrdb.c (file_p): Rename arg `path' to `filename'.
11799
11800 * abbrev.c (Fexpand_abbrev): Increment plist as use count
11801 only if it is an integer.
11802
11803 * xfns.c (png_load): Set screen_gamma based on f->gamma.
11804 If png_get_sRGB gives an answer, call png_set_gamma
11805 using the default image gamma value.
11806
11807 * lread.c (read1): When reading from a file, default string to
11808 multibyte only if it has some multibyte characters.
11809
11810 * print.c (print_object): Output multibyte chars 128...255
11811 using \x even if ! print_escape_multibyte.
11812
11813 * xdisp.c (display_mode_element): Move the places where
11814 bytepos, charpos, this, and lisp_string are set.
11815 Use lisp_string to set bytepos.
11816
11817 * xdisp.c (redisplay_internal):
11818 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
11819
11820 * xdisp.c (display_mode_element): Merge properties specified with
11821 :propertize onto those that come with the string.
11822
118232002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
11824
11825 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
11826 automatic-hscrolling. Users changed.
11827 <hscroll-margin>: Renamed from automatic-hscroll-margin.
11828 Users changed.
11829 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
11830
118312002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
11832
11833 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
11834
118352002-03-02 Kim F. Storm <storm@cua.dk>
11836
11837 * window.c (Fminibuffer_selected_window): New function.
11838 (syms_of_window): Defsubr it.
11839
118402002-03-01 Kim F. Storm <storm@cua.dk>
11841
11842 * window.h (struct window): New member phys_cursor_width.
11843
11844 * window.c (make_window, replace_window): Init phys_cursor_width.
11845
11846 * xterm.c (x_display_and_set_cursor): Blink box cursor using
11847 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
11848
11849 * w32term.c (x_display_and_set_cursor): Blink box cursor using
11850 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
11851
11852 * lisp.h (GCPRO6): New macro.
11853
11854 * process.c (Fopen_network_stream): Use GCPRO6.
11855
118562002-03-01 Kim F. Storm <storm@cua.dk>
11857
11858 * process.c (Qconnect, Qfailed): New variables.
11859 (syms_of_process): Intern and staticpro them.
11860 (Fprocess_status): Document connect and failed return values.
11861 [NON_BLOCKING_CONNECT]: New conditional.
11862 (connect_wait_mask, num_pending_connects): New variables.
11863 (status_message): Convert Qfailed status.
11864 (Fopen_network_stream): Added support for non-blocking connect.
11865 New optional args: filter, sentinel, non_blocking. Doc updated.
11866 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
11867 (deactivate_process): Handle pending non-blocking connect.
11868 (wait_reading_process_input): Poll for status of non-blocking
11869 connects. Exec sentinel directly when connect succeeds.
11870 (status_notify): Don't read process output if not yet connected.
11871
118722002-02-28 Kim F. Storm <storm@cua.dk>
11873
11874 * window.c: (minibuf_selected_window): Renamed from
11875 Vminibuf_selected_window. Users changed.
11876 (syms_of_window): Staticpro it.
11877
118782002-02-26 Kim F. Storm <storm@cua.dk>
11879
11880 The following changes add a new Vminibuf_selected_window variable
11881 which is similar to Vminibuf_scroll_window, but which is only set
11882 on entry to the minibuffer (from a non-minibuffer window):
11883
11884 * window.c: (Vminibuf_selected_window): New variable.
11885 (struct save_window_data): New member minibuf_selected_window.
11886 (Fset_window_configuration): Restore Vminibuf_selected_window.
11887 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
11888 Set minibuf_scroll_window member to nil if minibuf_level is 0.
11889 (compare_window_configurations): Compare minibuf_selected_window.
11890
11891 * window.h: (Vminibuf_selected_window): Declare extern.
11892
11893 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
11894 entry to minibuffer or on entry from a non-minibuffer window.
11895
11896 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
11897 Vminibuf_selected_window instead of Vminibuf_scroll_window.
11898
11899 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
11900 instead of Vminibuf_scroll_window when deciding in which window
11901 the region should be highlighted. Consequently, the region remains
11902 highlighteded even when a completion buffer is also displayed.
11903
119042002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
11905
11906 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
11907
11908 * xselect.c (Qcompound_text_with_extensions): Renamed from
11909 Qcompound_text_no_extensions.
11910 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
11911
119122002-02-26 Juanma Barranquero <lektu@terra.es>
11913
11914 * w32proc.c (syms_of_ntproc): Doc fix.
11915
119162002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11917
11918 * intervals.h: Include "dispextern.h" unconditionally.
11919
119202002-02-24 Jason Rumney <jasonr@gnu.org>
11921
11922 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
11923 and disp-table.elc.
11924 (lisp): Add emacs-lisp/backquote.elc.
11925
119262002-02-24 Kim F. Storm <storm@cua.dk>
11927
11928 * keymap.c (Flookup_key): Fixed problem in 2001-12-28 patch:
11929 The validation of the event type was too strict as it didn't
11930 allow string events; buffer names are used in bindings for
11931 menu-bar-select-buffer (see `menu-bar-update-buffers').
11932
119332002-02-23 Kim F. Storm <storm@cua.dk>
11934
11935 The following changes rework my patch of 2002-02-06 which
11936 added command remapping by entering the commands directly into
11937 the keymaps. Now, command remapping uses an explicit `remap'
11938 prefix in the keymaps, i.e. [remap COMMAND].
11939
11940 * keymap.c (Qremap, remap_command_vector): New variables.
11941 (is_command_symbol): Removed function.
11942 (Fdefine_key): No longer accept a symbol for KEY.
11943 Added validation of [remap COMMAND] argument for KEY.
11944 The DEF is no longer required to be a symbol when remapping a command.
11945 (Fremap_command): New function to remap command through keymaps.
11946 (Flookup_key): Perform command remapping initiated by
11947 Fremap_command directly for speed.
11948 (Fkey_binding): Use Fremap_command for command remapping.
11949 (where_is_internal): Handle new command remapping representation.
11950 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
11951 staticpro them. Defsubr Fremap_command.
11952
11953 * keymap.h (Fremap_command): Declare extern.
11954 (is_command_symbol): Remove extern.
11955
11956 * keyboard.c (command_loop_1): Use Fremap_command for command
11957 remapping; now try command remapping for all symbols.
11958
119592002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
11960
11961 * coding.h (run_pre_post_conversion_on_str): Add prototype.
11962
119632002-02-23 Jason Rumney <jasonr@gnu.org>
11964
11965 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
11966 on the string before encoding it.
11967 (Fw32_get_clipboard_data): Run post-read-conversion on the string
11968 after decoding it.
11969
11970 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
11971
119722002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11973
11974 * w32term.c (enter_timestamp): Remove unused static variable to
11975 prevent warning.
11976
11977 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
11978
119792002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
11980
11981 * w16select.c (Fw16_get_clipboard_data): Fix last change.
11982
11983 * xselect.c (selection_data_to_lisp_data): Fix last change.
11984
119852002-02-22 Jason Rumney <jasonr@gnu.org>
11986
11987 * w32term.h (struct w32_output): New member menu_command_in_progress.
11988
11989 * w32menu.c (menubar_selection_callback): Free the menu and
11990 clear the menu_command_in_progress flag.
11991
11992 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
11993 (menu_free_timer): New variable.
11994 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
11995 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
11996 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
11997 menu command is in progress.
11998 <WM_COMMAND>: Set the menu_command_in_progress flag.
11999 Kill any menu_free_timer that is running.
12000
12001 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
12002 Call ExtTextOutA rather than ExtTextOut.
12003
120042002-02-22 Eli Zaretskii <eliz@gnu.org>
12005
12006 * puresize.h (BASE_PURESIZE): Increase to 755000.
12007
120082002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
12009
12010 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
12011 on the string before encoding it.
12012 (Fw16_get_clipboard_data): Run post-read-conversion on the string
12013 after decoding it.
12014
120152002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
12016
12017 Support for ICCCM Extended Segments in X selections:
12018
12019 * xselect.c <Qcompound_text_no_extensions>: New variable.
12020 (syms_of_xselect): Intern and staticpro it.
12021 (selection_data_to_lisp_data): Run post-read-conversion on decoded
12022 selection text.
12023 (lisp_data_to_selection_data): If next-selection-coding-system is
12024 compound-text-no-extensions, set the type of selection to be
12025 compound-text.
12026
12027 * xterm.h (x_encode_text): Update prototype.
12028
12029 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
12030 callers changed. If SELECTIONP is non-zero, run the
12031 pre-write-conversion function before encoding the selection text.
12032
120332002-02-21 Kim F. Storm <storm@cua.dk>
12034
12035 * frame.c (syms_of_frame): Change mouse-highlight default to t.
12036
12037 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
12038 Correct composing of language-change event.
12039
120402002-02-20 Kim F. Storm <storm@cua.dk>
12041
12042 * keyboard.c (menu_bar_items): Don't include keymap or local-map
12043 bindings at PT when building menu (the menu is not updated often
12044 enough for this to work reliable).
12045 (tool_bar_items): Likewise.
12046 (current_active_maps): Removed unused (and buggy) function.
12047
120482002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
12049
12050 * xfns.c (gif_load): Use correct width and height for GIF images.
12051
120522002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
12053
12054 * floatfns.c (Fatan): Accept an optional second arg and call
12055 atan2 if passed 2 args.
12056
120572002-02-18 Jason Rumney <jasonr@gnu.org>
12058
12059 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
12060
120612002-02-17 Jason Rumney <jasonr@gnu.org>
12062
12063 * w32term.c (x_autoselect_window_p): New variable.
12064 (syms_of_w32term): DEFVAR_BOOL and initialize it.
12065 (note_mouse_movement): Use it.
12066
12067 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
12068
12069 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
12070
12071 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
12072 New variables.
12073 (syms_of_w32fns): Intern and staticpro them.
12074 (x_frame_parms) <"fullscreen">: New parameter.
12075 (x_fullscreen_move, x_set_fullscreen): New functions.
12076 (x_set_frame_parameters): Support Qfullscreen.
12077 (x_real_positions): Save x/y_pixels_diff frame params.
12078 (x_figure_window_size): Support full-screen frames.
12079 (Fx_create_frame): Default the fullscreen parameter.
12080
12081 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
12082 (x_fullscreen_adjust): New functions.
12083 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
12084 fullscreen. Call x_check_fullscreen_move, and set the
12085 want_fullscreen member of output_data.w32
12086 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
12087
12088 * w32term.h: New enum for FULLSCREEN_* constants.
12089 (struct w32_output): New members want_fullscreen, x_pixels_diff,
12090 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
12091 (x-fullscreen-adjust): New prototype.
12092
120932002-02-17 Kim F. Storm <storm@cua.dk>
12094
12095 * frame.c: (Vmouse_highlight): New variable.
12096 (syms_of_frame): DEFVAR_LISP it.
12097
12098 * frame.h: (Vmouse_highlight): Declare extern.
8a8e19a3 12099
048addec 12100 * xterm.h (struct x_display_info): Add mouse_face_hidden.
8a8e19a3 12101
048addec
JD
12102 * xterm.c (disable_mouse_highlight): Removed variable.
12103 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
12104 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
12105 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
12106 and on after keyboard input.
12107 (x_term_init): Initialize mouse_face_hidden.
8a8e19a3 12108
048addec 12109 * msdos.h (struct display_info): Add mouse_face_hidden.
8a8e19a3 12110
048addec
JD
12111 * msdos.c (disable_mouse_highlight): Removed variable.
12112 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
12113 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
12114 (internal_terminal_init): Initialize mouse_face_hidden.
12115 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
12116 and on after keyboard input.
4f1b1854 12117
048addec 12118 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
4f1b1854 12119
048addec
JD
12120 * w32term.c (disable_mouse_highlight): Removed variable.
12121 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
12122 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
12123 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
12124 and on after keyboard input.
12125 (w32_initialize_display_info): Initialize mouse_face_hidden.
4f1b1854 12126
048addec 121272002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
4f1b1854 12128
048addec
JD
12129 * msdos.c (last_mouse_window): New variable.
12130 (dos_rawgetc): Fix last change--if the mouse is in the same window
12131 as recorded in last_mouse_window, don't select this window.
5cb6905d 12132
048addec 12133 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
5cb6905d 12134
048addec
JD
12135 * msdos.c (x_autoselect_window_p): New variable.
12136 (syms_of_msdos): Defvar it.
12137 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
12138 which the last mouse movement occured, unless it is already selected.
437dfb9f 12139
048addec
JD
12140 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
12141 New variables.
12142 (syms_of_xdisp): DEVFAR them.
12143 (hscroll_window_tree): Use automatic_hscroll_margin and
12144 Vautomatic_hscroll_step to compute the amount of window scrolling.
437dfb9f 12145
048addec 121462002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9f696a00 12147
048addec
JD
12148 * xterm.c (x-autoselect-window): New variable.
12149 (note_mouse_movement): Use it.
9f696a00 12150
048addec 12151 * keyboard.c: Do not include "systime.h" twice.
d57966d7 12152
048addec 121532002-02-15 Andreas Schwab <schwab@suse.de>
d57966d7 12154
048addec 12155 * puresize.h (BASE_PURESIZE): Increase to 9/5.
d57966d7 12156
048addec 12157 * alloc.c (NSTATICS): Increase to 1280.
74779f52 12158
048addec 121592002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
74779f52 12160
048addec 12161 * alloc.c (NSTATICS): Bump to 1026.
a474d59c 12162
048addec
JD
12163 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
12164 (Vx_super_keysym): New variables.
12165 (syms_of_xterm): DEFVAR_LISP them.
12166 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
12167 variables to determine which keys to use for the various modifiers.
a474d59c 12168
048addec 121692002-02-13 Kim F. Storm <storm@cua.dk>
fbb70ad9 12170
048addec
JD
12171 * window.c: (Vmode_line_in_non_selected_windows): Removed.
12172 (mode_line_in_non_selected_windows): New variable.
12173 (syms_of_window): DEFVAR_BOOL it.
fbb70ad9 12174
048addec
JD
12175 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
12176 Use mode_line_in_non_selected_windows.
12177 (mode_line_in_non_selected_windows): Declare extern.
12178 (Vmode_line_in_non_selected_windows): Removed extern.
2d10309f 12179
048addec 121802002-02-13 Richard M. Stallman <rms@gnu.org>
2d10309f 12181
048addec
JD
12182 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
12183 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
12184 (Fclear_this_command_keys): Doc fixes.
2d10309f 12185
048addec
JD
12186 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
12187 (update_face_from_frame_parameter): Increment face_change_count
12188 and windows_or_buffers_changed to force redisplay using changed faces.
7f2cddf3 12189
048addec
JD
12190 * xdisp.c (QCpropertize): New variable.
12191 (mode_line_proptrans_alist): New variable.
12192 (display_mode_element): New arg PROPS; all calls changed.
12193 Implement this, for strings.
12194 Handle literal output of strings by sharing the
12195 main-line code for strings, using local var `literal'.
12196 Handle :propertize feature.
12197 (syms_of_xdisp): Initialze and staticpro QCpropertize and
12198 mode_line_proptrans_alist.
0b1e6b54 12199
048addec 122002002-02-11 Kim F. Storm <storm@cua.dk>
7f2cddf3 12201
048addec
JD
12202 * window.c: (Vmode_line_in_non_selected_windows): New variable.
12203 (syms_of_window): DEFVAR_LISP it.
7f2cddf3 12204
048addec
JD
12205 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
12206 (CURRENT_MODE_LINE_FACE_ID): Use it.
12207 (Vmode_line_in_non_selected_windows): Declare extern.
e17144de 12208
048addec
JD
12209 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
12210 to get mode line face.
e17144de 12211
048addec 122122002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 12213
048addec
JD
12214 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
12215 variables; cus-start.el doesn't need them anymore.
44368f8f 12216
048addec 122172002-02-09 Kim F. Storm <storm@cua.dk>
f884b6f4 12218
048addec
JD
12219 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
12220 reduction. This fixes a display problem where stray newlines were
12221 inserted in the window (corrected by C-l). Clarified code (IMHO).
6637c996 12222
048addec 122232002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 12224
048addec 12225 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
6637c996 12226
048addec 12227 * xdisp.c (display_mode_lines): Fix last change.
453c5510 12228
048addec 122292002-02-09 Jason Rumney <jasonr@gnu.org>
453c5510 12230
048addec
JD
12231 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
12232 match each other.
12233 (w32_load_system_font): Prevent Cleartype fonts from loading.
12234 (Fx_show_tip): Ensure tip frames are above other topmost windows.
d1d070e3 12235
048addec 122362002-02-09 Kim F. Storm <storm@cua.dk>
d1d070e3 12237
048addec
JD
12238 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
12239 (CURRENT_MODE_LINE_HEIGHT): Use it.
12240 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 12241
048addec
JD
12242 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
12243 (pos_visible_p, handle_face_prop): Likewise.
12244 (display_mode_lines): Likewise, but for the real selected window.
12245 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 12246
048addec
JD
12247 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
12248 in non-selected windows.
12249 (realize_basic_faces): Realize it.
12250 (syms_of_term): Intern and staticpro it.
308dd672 12251
048addec 122522002-02-08 Kim F. Storm <storm@cua.dk>
edde72f6 12253
048addec
JD
12254 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
12255 Changed mail addresses to emacs-devel@gnu.org.
308dd672 12256
048addec 122572002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
3c1e6b46 12258
048addec
JD
12259 * fileio.c (Fsubstitute_in_file_name): If the file name includes
12260 ~user, and there's no such user, don't discard everything before ~user.
03950b5b 12261
048addec 12262 * floatfns.c (Fround): Doc fix.
3c1e6b46 12263
048addec 122642002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c1e11810 12265
048addec 12266 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
c1e11810 12267
048addec 122682002-02-07 Stefan Monnier <monnier@cs.yale.edu>
1996baee 12269
048addec 12270 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
1996baee 12271
048addec 122722002-02-07 Kim F. Storm <storm@cua.dk>
0065bb74 12273
048addec
JD
12274 * keymap.c (where_is_internal): Only check whether definition is
12275 remapped if it fulfills is_command_symbol.
0065bb74 12276
048addec 122772002-02-07 Andreas Schwab <schwab@suse.de>
0065bb74 12278
048addec 12279 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
b5cb6072 12280
048addec 12281 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
b5cb6072 12282
048addec 122832002-02-06 Kim F. Storm <storm@cua.dk>
15fff01d 12284
048addec
JD
12285 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
12286 defining command remapping. Doc updated.
12287 (Flookup_key): Remap command through keymap if KEY is a symbol.
12288 (is_command_symbol): New function.
12289 (Fkey_binding): Use it. New optional argument NO-REMAP.
12290 Doc updated. Callers changed. Perform command remapping via
12291 recursive call unless that arg is non-nil.
12292 (where_is_internal): New argument no_remap. Callers changed.
12293 Call recursively to find original key bindings for a remapped
12294 comand unless that arg is non-nil.
12295 (Fwhere_is_internal): New optional argument NO-REMAP.
12296 Doc updated. Callers changed. Pass arg to where_is_internal.
0065bb74 12297
048addec
JD
12298 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
12299 (is_command_symbol): Added prototype.
0d8466cc 12300
048addec
JD
12301 * keyboard.c (Vthis_original_command): New variable.
12302 (syms_of_keyboard): DEFVAR_LISP it.
12303 (command_loop_1): Set it, and perform command remapping.
15fff01d 12304
048addec 123052002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2fae9111 12306
048addec 12307 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
2d6c1fc0 12308
048addec 123092002-02-06 Jason Rumney <jasonr@gnu.org>
07025a55 12310
048addec 12311 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
07025a55 12312
048addec 123132002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
07025a55 12314
048addec 12315 * charset.c (get_charset_id): Use if-else instead of ?:.
3a232704 12316
048addec 123172002-02-06 Richard M. Stallman <rms@gnu.org>
539e92ad 12318
048addec 12319 * filelock.c (S_ISLNK): Define if not defined.
3a232704 12320
048addec 123212002-02-03 Richard M. Stallman <rms@gnu.org>
0cb8bb48 12322
048addec 12323 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
539e92ad 12324
048addec
JD
12325 * lread.c (read1): Redesign strategy for force_multibyte and
12326 force_singlebyte. Now is_multibyte records whether read_buffer
12327 is multibyte. Encountering any multibyte character makes it so.
4e02881b 12328
048addec 123292002-02-02 Stefan Monnier <monnier@cs.yale.edu>
4e02881b 12330
048addec
JD
12331 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
12332 with the same sequence, map that sequence to f10 rather than f0.
1ab964d7 12333
048addec 123342002-02-03 Andreas Schwab <schwab@suse.de>
1ab964d7 12335
048addec
JD
12336 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
12337 latter never being defined on GNU/Linux.
749f499f 12338
048addec 123392002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
749f499f 12340
048addec
JD
12341 * xfaces.c (realize_default_face): Don't set the weight and slant of
12342 the default face to Qnormal, unless these attributes are unspecified.
b5d9aaba 12343
048addec 123442002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3a232704 12345
048addec
JD
12346 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
12347 Call cancel_hourglass unconditionally.
d0fd26dd 12348
048addec
JD
12349 * eval.c (Fsignal): Remove duplicated declaration of
12350 the variable `display_hourglass_p'.
b4c45162 12351
048addec 123522002-01-31 Richard M. Stallman <rms@gnu.org>
d0fd26dd 12353
048addec 12354 * editfns.c (region_limit): Nicer error message.
c95eaa61 12355
048addec
JD
12356 * coding.c (decode_composition_emacs_mule):
12357 Give up if NCOMPONENT gets too large to index `component'.
c95eaa61 12358
048addec
JD
12359 * callint.c (check_mark): New arg to specify clearer error message.
12360 Callers changed.
c95eaa61 12361
048addec 123622002-01-27 Richard M. Stallman <rms@gnu.org>
c95eaa61 12363
048addec 12364 * minibuf.c (Fcompleting_read): Doc fix.
c95eaa61 12365
048addec 123662002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c95eaa61 12367
048addec
JD
12368 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
12369 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
12370 Fix doc-strings.
c95eaa61 12371
048addec 123722002-01-26 Richard M. Stallman <rms@gnu.org>
c95eaa61 12373
048addec 12374 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
c95eaa61 12375
048addec
JD
12376 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
12377 and scroll_up_aggressively.
c95eaa61 12378
048addec 123792002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
31877e0a 12380
048addec 12381 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
31877e0a 12382
048addec 123832002-01-25 Stefan Monnier <monnier@cs.yale.edu>
e2c3786a 12384
048addec
JD
12385 * textprop.c (Fnext_property_change, Fnext_single_property_change)
12386 (Fprevious_property_change, Fprevious_single_property_change):
12387 Stay within the narrowed-buffer boundaries.
e2c3786a 12388
048addec 123892002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
c513fc03 12390
048addec
JD
12391 * term.c (Ftty_display_color_cells): New function.
12392 (syms_of_term): Defsubr it.
12393 (Ftty_display_color_cells, Ftty_display_color_p): Change the
12394 argument name to DISPLAY. Doc fix.
bf794306 12395
048addec
JD
12396 * dispextern.h: Add prototype for set_tty_color_mode and
12397 tty_setup_colors.
bf794306 12398
048addec 123992002-01-24 Jason Rumney <jasonr@gnu.org>
bf794306 12400
048addec
JD
12401 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
12402 If region left to draw is not what was expected, mark the frame as
12403 garbaged.
62582985 12404
048addec
JD
12405 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
12406 Combine the regions returned by BeginPaint and GetUpdateRect.
c513fc03 12407
048addec 124082002-01-23 Jason Rumney <jasonr@gnu.org>
3509a04c 12409
048addec
JD
12410 * w32term.c (x_update_window_begin): Only hide caret if
12411 w32_use_visible_system_caret is set.
12412 (x_update_window_end): Only show caret if
12413 w32_use_visible_system_caret is set.
12414 (syms_of_w32term): Handle SystemParametersInfo call failing.
3509a04c 12415
048addec 12416 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
3509a04c 12417
048addec 124182002-01-22 Richard M. Stallman <rms@gnu.org>
3509a04c 12419
048addec
JD
12420 * unexelf.c (unexec): Define n so as to cause compilation error
12421 for the code where people have often written n instead of nn.
1e9a6186 12422
048addec 12423 * .gdbinit (hookpost-run): Defined.
1e9a6186 12424
048addec 124252002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e4e34e31 12426
048addec 12427 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
e4e34e31 12428
048addec 124292002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4521d1fc 12430
048addec
JD
12431 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
12432 if fullscreen is being set.
7c75be36 12433
048addec 124342002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4521d1fc 12435
048addec
JD
12436 * minibuf.c (Fminibuffer_contents)
12437 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
12438 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
4521d1fc 12439
048addec 124402002-01-21 Richard M. Stallman <rms@gnu.org>
4521d1fc 12441
048addec 12442 * window.c (check_frame_size): Fix minimum height calculation.
93dec019 12443
048addec 124442002-01-20 Ken Raeburn <raeburn@gnu.org>
93dec019 12445
048addec
JD
12446 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
12447 height before comparison.
12448 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
905cc05a 12449
048addec 124502002-01-20 Jason Rumney <jasonr@gnu.org>
2ed06289 12451
048addec
JD
12452 * w32term.c (w32_system_caret_width): Remove.
12453 (w32_use_visible_system_caret): New user flag.
12454 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
12455 Windows reports a screen reader running.
12456 (x_update_window_begin): Hide the system caret.
12457 (x_update_window_end): Show the system caret.
12458 (x_display_and_set_cursor): Don't draw a cursor when
12459 w32_use_visible_system_caret is set. Do not adjust width.
0e79d667 12460
048addec
JD
12461 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
12462 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
12463 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
12464 the user requests it. Use system default width when creating.
12465 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
0e79d667 12466
048addec
JD
12467 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
12468 New window messages.
905cc05a 12469
048addec 124702002-01-20 Richard M. Stallman <rms@gnu.org>
82a7ab23 12471
048addec 12472 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
d75bec6a 12473
048addec 124742002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
52dcb476 12475
048addec 12476 * doprnt.c (doprnt1): Fix typos in error call.
82a7ab23 12477
048addec 124782002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
82a7ab23 12479
048addec 12480 * unexelf.c (unexec) [__sgi]: Support the .got sections.
82a7ab23 12481
048addec 124822002-01-20 Jason Rumney <jasonr@gnu.org>
4d0fa4f3 12483
048addec
JD
12484 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
12485 that Windows returns. If a double check fails, try to guess how
12486 ExtTextOut is going to act.
4d0fa4f3 12487
048addec
JD
12488 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
12489 in place of stricmp.
12490 (w32_list_synthesized_fonts): Removed.
12491 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
12492 (struct enumfont_t): New element; list.
12493 (enum_font_cb2): List all style and charset variations of a font.
12494 (Fw32_select_font): New optional argument; include_proportional.
12495 Exclude vertical fonts. Exclude proportional fonts unless
12496 include_proportional is non-nil.
12497 (w32_enable_synthesized_fonts): Change to a boolean.
12498 (Fw32_send_sys_command): Doc fix.
493faf20 12499
048addec 125002002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
493faf20 12501
048addec
JD
12502 * dispnew.c (update_frame): Move the variable `tem' to the block
12503 where it is used.
4971e491 12504
048addec 125052002-01-19 Jason Rumney <jasonr@gnu.org>
4971e491 12506
048addec
JD
12507 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
12508 call to face-set-after-frame-default.
4971e491 12509
048addec 125102002-01-18 Richard M. Stallman <rms@gnu.org>
d911a0fa 12511
048addec
JD
12512 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
12513 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
d911a0fa 12514
048addec 125152002-01-17 Richard M. Stallman <rms@gnu.org>
d911a0fa 12516
048addec
JD
12517 * window.c (enlarge_window): When exceeding size of parent,
12518 directly delete all the siblings instead of trying to resize it.
201c831a 12519
048addec 125202002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
201c831a 12521
048addec 12522 * term.c (set_tty_color_mode): Remove unused variable `tem'.
201c831a 12523
048addec 125242002-01-16 Henrik Enberg <henrik@enberg.org>
34e39c95 12525
048addec 12526 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
34e39c95 12527
048addec 125282002-01-16 Kim F. Storm <storm@cua.dk>
d77fbc16 12529
048addec
JD
12530 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
12531 is invisible. This can happen if cursor is on top line of a
12532 window, and we switch to a buffer with a header line.
d77fbc16 12533
048addec 12534 * w32term.c (x_erase_phys_cursor): Ditto.
61e3b944 12535
048addec 125362002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
61e3b944 12537
048addec
JD
12538 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
12539 `dont_resize' only when used.
61e3b944 12540
048addec 12541 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
70da46c3 12542
048addec 125432002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
70da46c3 12544
048addec
JD
12545 * xdisp.c (display_mode_element): When computing charpos, depend
12546 on multibyteness of elt, not the text in field.
8af01033 12547
048addec 125482002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8af01033 12549
048addec
JD
12550 * buffer.c (Fkill_all_local_variables):
12551 Increment `update_mode_lines' only once.
7363986a 12552
048addec 125532002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7363986a 12554
048addec
JD
12555 * lisp.h (adjust_after_replace_noundo)
12556 (Fupdate_coding_systems_internal): Add prototypes.
d9e6c4b1 12557
048addec 12558 * sound.c (Fplay_sound): Initialize header_size also for :data case.
d20fc48a 12559
048addec 125602002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
d9e6c4b1 12561
048addec
JD
12562 Support for the --color command-line argument and tty-color-mode
12563 frame parameter:
f1a85b89 12564
048addec
JD
12565 * term.c (tty_default_color_capabilities, tty_setup_colors)
12566 (set_tty_color_mode): New functions.
12567 (term_init): Call tty_default_color_capabilities.
12568 (Qtty_color_mode_alist): New variable.
12569 (syms_of_term): Intern and staticpro it.
f1a85b89 12570
048addec
JD
12571 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
12572 frames.
12573 (do_switch_frame): For termcap frames, switch the tty
12574 color mode as specified by the frame's parameters.
12575 (Qtty_color_mode): New variable.
12576 (syms_of_frame): Intern and staticpro it.
3a62677f 12577
048addec
JD
12578 * emacs.c (USAGE2): Add the --color option.
12579 (standard_args): Ditto.
72244db2 12580
048addec
JD
125812002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12582
12583 * xterm.h (struct x_output): New members want_fullscreen,
12584 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
12585 y_pixels_outer_diff.
12586 New enum for FULLSCREEN_* constants.
12587 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
12588 is NULL.
12589 (x_fullscreen_adjust): Add prototype.
3a62677f 12590
048addec
JD
12591 * emacs.c (USAGE2): Add the new full-screen arguments.
12592 (standard_args): Ditto.
3a62677f 12593
048addec
JD
12594 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
12595 New variables.
12596 (syms_of_xfns): Intern and staticpro them.
12597 (x_frame_parms) <"fullscreen">: New parameter.
12598 (x_fullscreen_move, x_set_fullscreen): New functions.
12599 (x_set_frame_parameters): Support for Qfullscreen.
12600 (x_real_positions): More accurate computation of the frame position.
12601 (x_figure_window_size): Support full-screen frames.
12602 (Fx_create_frame): Default the fullscreen parameter.
3a62677f 12603
048addec
JD
12604 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
12605 (XTread_socket) <Expose>: Call x_check_fullscreen.
12606 <ConfigureNotify>: Don't resize to fullscreen.
12607 Call x_check_fullscreen_move, and set the want_fullscreen member of
12608 output_data.x.
3a62677f 12609
048addec 126102002-01-13 Jason Rumney <jasonr@gnu.org>
9d113d9d 12611
048addec
JD
12612 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
12613 for mice with more than 3 buttons.
b8523839 12614
048addec
JD
12615 * w32term.c (parse_button): New parameter xbutton. Callers changed.
12616 (w32_read_socket): Handle new "XBUTTON" messages.
9464dea4 12617
048addec
JD
12618 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
12619 (syms_of_w32fns): DEFVAR_BOOL it.
12620 (w32_wnd_proc): Handle new "XBUTTON" messages.
9d113d9d 12621
048addec 126222002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
70ec1377 12623
048addec 12624 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
70ec1377 12625
048addec 126262002-01-13 Andreas Schwab <schwab@suse.de>
92f7dd37 12627
048addec 12628 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
92f7dd37 12629
048addec 126302002-01-12 Andreas Schwab <schwab@suse.de>
c93674bb 12631
048addec
JD
12632 * .gdbinit (xbuffer): Remove address operator since data is now a
12633 pointer.
c93674bb 12634
048addec 126352002-01-11 Richard M. Stallman <rms@gnu.org>
59b59892 12636
048addec 12637 * insdel.c (adjust_after_replace_noundo): New function.
59b59892 12638
048addec 12639 * coding.c (code_convert_region): Don't copy old text if undo disabled.
c6ea2775 12640
048addec 126412002-01-09 Jason Rumney <jasonr@gnu.org>
c6ea2775 12642
048addec
JD
12643 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
12644 when checking for multiple frames.
91175673 12645
048addec 126462002-01-08 Richard M. Stallman <rms@gnu.org>
91175673 12647
048addec
JD
12648 * window.c (delete_window): Rewrite the code for changing the
12649 selected window to handle the case where WINDOW is not a leaf.
91175673 12650
048addec 126512002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
e0fead5d 12652
048addec
JD
12653 * process.c (send_process): Set src_multibyte to 1 after the call
12654 top setup_coding_system, not before the call.
e0fead5d 12655
048addec 126562002-01-07 Jason Rumney <jasonr@gnu.org>
e0fead5d 12657
048addec
JD
12658 * xmenu.c (set_frame_menubar, xmenu_show):
12659 (xdialog_show): Initialize wv->help to Qnil.
c186cdb3 12660
048addec
JD
12661 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
12662 (w32_dialog_show): Initialize wv->help to Qnil.
c186cdb3 12663
048addec 126642002-01-06 Jason Rumney <jasonr@gnu.org>
c186cdb3 12665
048addec 12666 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
c186cdb3 12667
048addec 12668 * w32menu.c (w32_menu_display_help): Revert last change.
58cfce98 12669
048addec 12670 * xmenu.c (menu_highlight_callback): Revert last change.
58cfce98 12671
048addec 126722002-01-06 Andreas Schwab <schwab@suse.de>
62854fe2 12673
048addec
JD
12674 * insdel.c (make_gap_larger): Make sure buffer size does not
12675 overflow range of int.
62854fe2 12676
048addec 126772002-01-05 Jason Rumney <jasonr@gnu.org>
656f46bb 12678
048addec
JD
12679 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
12680 OVERLAPS_P.
656f46bb 12681
048addec 12682 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
656f46bb 12683
048addec
JD
12684 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
12685 to the left or to the right of the pointer, put it against
12686 the left screen edge.
12687 (x_frame_parms): Add missing braces around initializer.
036e218d 12688
048addec
JD
12689 * w32term.c (x_setup_relief_colors): Don't compute an image's
12690 background color if it doesn't have a Pixmap.
12691 (notice_overwritten_cursor): Don't depend on
12692 output_cursor and updated_area. Compare pixel coordinates with
12693 window's cursor pixel coordinates.
12694 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
12695 Call notice_overwritten_cursor with new arg list.
12696 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
12697 unconditionally.
12698 (x_draw_image_relief): Use predefined macro instead of
12699 constant when the value of `tool_bar_button_relief' is negative.
036e218d 12700
048addec 12701 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
7ddb2c16 12702
048addec 127032002-01-04 Richard M. Stallman <rms@gnu.org>
7ddb2c16 12704
048addec 12705 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
ace9b298 12706
048addec 127072002-01-03 Richard M. Stallman <rms@gnu.org>
90647b07 12708
048addec
JD
12709 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
12710 (Fkey_binding): Try the `keymap' property map first.
12711 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
12712 minor mode bindings.
90647b07 12713
048addec 127142002-01-03 Kim F. Storm <storm@cua.dk>
ace9b298 12715
048addec 12716 * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
ace9b298 12717
048addec 127182002-01-02 Richard M. Stallman <rms@gnu.org>
ace9b298 12719
048addec
JD
12720 * keyboard.c (read_key_sequence): Handle the keymap property
12721 before minor mode maps.
9fbc32aa 12722
048addec
JD
12723 * editfns.c (Fformat): Update thissize from field_width
12724 based on the actual width, in the string case.
036e218d 12725
048addec 127262002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fbc32aa 12727
048addec
JD
12728 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
12729 when used as truth value to prevent gcc warnings.
9fbc32aa 12730
048addec
JD
12731 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
12732 * w32proc.c: Include <config.h>.
9fbc32aa 12733
048addec 127342002-01-01 Andreas Schwab <schwab@suse.de>
9fbc32aa 12735
048addec
JD
12736 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
12737 not EMACS_INT, to make them compatible with DEFVAR_INT.
12738 * lisp.h (max_specpdl_size): Adjust declaration.
9fbc32aa 12739
048addec 127402002-01-01 Richard M. Stallman <rms@gnu.org>
9fbc32aa 12741
048addec
JD
12742 * print.c (print_object): Test print_escape_nonascii only for
12743 unibyte strings.
12744 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
12745 when outputting to a multibyte buffer.
9fbc32aa 12746
048addec 127472001-12-29 Richard M. Stallman <rms@gnu.org>
9fbc32aa 12748
048addec
JD
12749 * print.c (print_object): In multibyte string, use hex escapes.
12750 Use octal only for unibyte strings.
12751 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
0142178a 12752
048addec
JD
12753 * lread.c (read_escape): New arg BYTEREP for reporting whether
12754 escape forces unibyte or multibyte.
12755 (read1): When reading a string, take note of that info.
0142178a 12756
048addec 127572001-12-29 Ken Raeburn <raeburn@gnu.org>
d4824a5d 12758
048addec
JD
12759 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
12760 comparison to test lisp value returned by Fget.
d4824a5d 12761
048addec 127622001-12-29 Richard M. Stallman <rms@gnu.org>
b1356234 12763
048addec 12764 * lisp.h (max_specpdl_size): Add declaration.
b1356234 12765
048addec 12766 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
3ce081f5 12767
048addec
JD
12768 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
12769 Handle modifier bits. Correct typo in error message.
99e380ee 12770
048addec 127712001-12-28 Richard M. Stallman <rms@gnu.org>
3ce081f5 12772
048addec
JD
12773 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
12774 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
12775 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
12776 Update calls to Fdefine_abbrev.
12777 (write_abbrev): Update for changed data format.
12778 Don't list "system" abbrevs.
12779 (Fexpand_abbrev): Update use count with new data format.
12780 (describe_abbrev): Update for changed data format.
12781 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
66458f32 12782
048addec 12783 * config.in (HAVE_MBSINIT): Add #undef.
66458f32 12784
048addec 12785 * strftime.c (mbsinit): Define as no-op if not available.
66458f32 12786
048addec
JD
12787 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
12788 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
59a86c99 12789
048addec
JD
12790 * keymap.c (Flookup_key): Error message if key has wrong data type.
12791 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
12792 (exclude_key): New variable.
59a86c99 12793
048addec 127942001-12-28 Gerd Moellmann <gerd@gnu.org>
eb77a5f4 12795
048addec
JD
12796 * xterm.c (x_setup_relief_colors): Don't compute an image's
12797 background color if it doesn't have a Pixmap.
eb77a5f4 12798
048addec
JD
12799 * xterm.c (notice_overwritten_cursor): Don't depend on
12800 output_cursor and updated_area. Compare pixel coordinates with
12801 window's cursor pixel coordinates.
12802 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
12803 Call notice_overwritten_cursor with new arg list.
12804 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
12805 unconditionally.
eb77a5f4 12806
048addec
JD
12807 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
12808 height of the cursor line to the amount to scroll.
eb77a5f4 12809
048addec 128102001-12-27 Richard M. Stallman <rms@gnu.org>
bb313871 12811
048addec
JD
12812 * intervals.c (set_point_both): The position after an invisible,
12813 intangible character is not an acceptable stopping point.
bb313871 12814
048addec 128152001-12-27 Ken Raeburn <raeburn@gnu.org>
55b43a63 12816
048addec
JD
12817 * window.c (enlarge_window): In new preserve_before code, convert
12818 CURBEG from lisp object to integer before doing arithmetic.
6052529b 12819
048addec 128202001-12-27 Richard M. Stallman <rms@gnu.org>
3ce081f5 12821
048addec 12822 * bytecode.c (Fbyte_code): Undo previous change.
3ce081f5 12823
048addec 128242001-12-26 Kim F. Storm <storm@cua.dk>
3ce081f5 12825
048addec
JD
12826 * keyboard.c (record_char): Ignore duplicate help-echo events only
12827 separated by mouse-movement. When tracking mouse, only record
12828 first and last mouse-movement event in same window.
12829 Don't record mouse-movement events in keyboard macros.
3ce081f5 12830
048addec 128312001-12-25 Richard M. Stallman <rms@gnu.org>
55b43a63 12832
048addec
JD
12833 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
12834 (Fenlarge_window): New arg PRESERVE_BEFORE.
111ed14e 12835
048addec
JD
12836 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
12837 instead of Fstring_as_unibyte.
9fabb2f5 12838
048addec 128392001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fabb2f5 12840
048addec 12841 The following changes remove mocklisp support:
9fabb2f5 12842
048addec 12843 * mocklisp.h, mocklisp.c: Files removed.
111ed14e 12844
048addec
JD
12845 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
12846 `Qmocklisp' and `Qmocklisp_arguments'.
12847 Remove prototype of syms_of_mocklisp.
2fa0eedf 12848
048addec 12849 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
d1420435 12850
048addec
JD
12851 * callint.c: Do not include mocklisp.h.
12852 (Fcall_interactively): Do not test for mocklisp case.
2fa0eedf 12853
048addec
JD
12854 * eval.c: Remove variables `Qmocklisp_arguments',
12855 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
12856 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
12857 Do not test for mocklisp case.
12858 (Fwhile): Remove unused variable `tem'.
12859 (syms_of_eval): Remove variable `moclisp-arguments'.
ebcbef4e 12860
048addec 12861 * data.c (wrong_type_argument): Remove mocklisp case.
5c131048 12862
048addec 12863 * doc.c (Fdocumentation): Remove mocklisp case.
5c131048 12864
048addec 12865 * emacs.c (main): Do not call syms_of_mocklisp.
5c131048 12866
048addec 128672001-12-21 Richard M. Stallman <rms@gnu.org>
96d276c3 12868
048addec
JD
12869 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
12870 to the left or to the right of the pointer, put it against
12871 the left screen edge.
6108b49c 12872
048addec 128732001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
96d276c3 12874
048addec
JD
12875 * Makefile.in (distclean): Remove .gdbinit if we are building
12876 outside the source tree.
5eea19a4 12877
048addec 128782001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5eea19a4 12879
048addec 12880 * w32.c (emacs_root_dir): New function.
5eea19a4 12881
048addec 12882 * msdos.c (emacs_root_dir): New function.
5eea19a4 12883
048addec
JD
12884 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
12885 of the current drive as the fallback for default_directory.
438e57dd 12886
048addec
JD
12887 * dired.c (file_name_completion): Run the elements of
12888 completion-ignored-extensions through ENCODE_FILE.
438e57dd 12889
048addec
JD
12890 * lisp.h (scmp): Remove prototype, since it's now a static
12891 function private to dired.c.
c88e5347 12892
048addec 128932001-12-18 Richard M. Stallman <rms@gnu.org>
c88e5347 12894
048addec
JD
12895 * dired.c (scmp): Function moved from minibuf.c.
12896 Delete multibyte handling--used only on encoded strings.
59ce1461 12897
048addec 12898 * minibuf.c (scmp): Function moved to dired.c.
59ce1461 12899
048addec 12900 * fns.c (merge): Add QUIT call.
59ce1461 12901
048addec 129022001-12-18 Dave Love <fx@gnu.org>
8727d588 12903
048addec
JD
12904 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
12905 language/georgian.el.
8727d588 12906
048addec 129072001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
cc63037e 12908
048addec
JD
12909 * Makefile.in (lisp, shortlisp): Synchronize with changes to
12910 lisp/Makefile.in:DONTCOMPILE.
cc63037e 12911
048addec 129122001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
cc63037e 12913
048addec
JD
12914 * xdisp.c (window_box_height): Do not return negative values.
12915 From Gerd Moellmann <gerd@gnu.org>.
cc63037e 12916
048addec 12917 * keyboard.c (head_table): Add missing braces around initializer.
cc63037e 12918
048addec 12919 * term.c (keys): Likewise.
deece6f5 12920
048addec 12921 * xfns.c (x_frame_parms, visual_classes): Likewise.
deece6f5 12922
048addec 129232001-12-17 Sam Steingold <sds@gnu.org>
1b944d9c 12924
048addec
JD
12925 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
12926 patch (COMPOSING_P, not COMPOSING).
28ff4293 12927
048addec 129282001-12-17 Richard M. Stallman <rms@gnu.org>
a395ef6a 12929
048addec 12930 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
a395ef6a 12931
048addec
JD
12932 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
12933 before calling decode_coding.
9b46de40 12934
048addec 12935 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
9b46de40 12936
048addec
JD
12937 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
12938 instead of only for COMPOSITION_DISABLED.
9b46de40 12939
048addec 129402001-12-16 Richard M. Stallman <rms@gnu.org>
aff37336 12941
048addec 12942 * alloc.c (pure_alloc): After overflow, allocate just a small block.
aff37336 12943
048addec 12944 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
b9937f07 12945
048addec
JD
12946 * buffer.h (struct buffer): New field `display_error_modiff'.
12947 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
b9937f07 12948
048addec 12949 * window.c (Frecenter): Clear display_error_modiff field.
2cd23960 12950
048addec
JD
12951 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
12952 Call redisplay_window, but not if display_error_modiff field says no.
12953 (redisplay_window_error): New function.
12954 (displayed_buffer): New variable.
12955 (redisplay_internal, redisplay_windows): Call the new functions
12956 instead of redisplay_window directly.
2cd23960 12957
048addec 129582001-12-15 Richard M. Stallman <rms@gnu.org>
2cd23960 12959
048addec 12960 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
2cd23960 12961
048addec 129622001-12-14 Andrew Innes <andrewi@gnu.org>
a4184c1c 12963
048addec 12964 * makefile.w32-in (EMACSLOADPATH): Define.
f9711de4 12965 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
048addec 12966 (bootstrap-temacs): Remove dependency on bootstrap-clean.
a4184c1c 12967
048addec 129682001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
f6fa0866 12969
048addec
JD
12970 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
12971 parameter have a numeric value all the time.
f6fa0866 12972
048addec 12973 * w32fns.c (x_report_frame_params): Likewise.
f4ca4b00 12974
048addec 129752001-12-12 Richard M. Stallman <rms@gnu.org>
f4ca4b00 12976
048addec 12977 * fileio.c (Fwrite_region): Doc fix.
f4e25f94 12978
048addec
JD
12979 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
12980 (redisplay_internal): Call clear_image_cache only for window terminals.
f4e25f94 12981
048addec 129822001-12-12 Gerd Moellmann <gerd@gnu.org>
91c153e2 12983
048addec
JD
12984 * xdisp.c (move_it_vertically_backward): Change heuristic
12985 for the case that we didn't move far enough initially.
91c153e2 12986
048addec
JD
12987 * window.c (Frecenter): Simplify computation in the case of window
12988 system frames and ARG < 0; use window_box_height.
65b7d3e7 12989
048addec 129902001-12-11 Richard M. Stallman <rms@gnu.org>
65b7d3e7 12991
048addec
JD
12992 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
12993 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
6b5f6311 12994
048addec 129952001-12-11 Andrew Innes <andrewi@gnu.org>
6b5f6311 12996
048addec
JD
12997 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
12998 arg is negative.
be676094 12999
048addec 130002001-12-11 Richard M. Stallman <rms@gnu.org>
be676094 13001
048addec
JD
13002 * m/hp800.h: Split the __hpux conditional into the parts
13003 that are right for GNU/Linux too and the parts that are not.
13004 Use the former if GNU_LINUX.
13005 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
032a857d 13006
048addec 13007 * s/gnu-linux.h (GNU_LINUX): Defined.
032a857d 13008
048addec 130092001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
032a857d 13010
048addec
JD
13011 * macros.c, msdos.c, w16select.c: Change doc-string comments to
13012 `new style' [w/`doc:' keyword].
032a857d 13013
048addec 130142001-12-10 Jason Rumney <jasonr@gnu.org>
b6270150 13015
048addec
JD
13016 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
13017 before using.
b6270150 13018
048addec 130192001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
792e5cbd 13020
048addec
JD
13021 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
13022 keyword].
98cbb9fa 13023
048addec 130242001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
98cbb9fa 13025
048addec 13026 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
98cbb9fa 13027
048addec 13028 * s/hpux10.h (srand48): Don't undefine.
98cbb9fa 13029
048addec 130302001-12-09 Jason Rumney <jasonr@gnu.org>
792e5cbd 13031
048addec
JD
13032 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
13033 Add comment to explain where the struct came from.
13034 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
13035 (add_menu_item): Process pop-up menus first to avoid memory leak.
13036 (add_menu_item, w32_menu_display_help): Use `help' field as
13037 Lisp_Object.
13038 (w32_free_submenu_strings): Only free owner-drawn strings.
fa336b91 13039
048addec 130402001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
fa336b91 13041
048addec 13042 * COPYING: Moved back.
fa336b91 13043
048addec
JD
13044 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
13045 Add parentheses around && within ||.
077907d4 13046
048addec 13047 * indent.c (compute_motion): Likewise.
aa2af83a 13048
048addec 13049 * intervals.c (merge_properties_sticky): Likewise.
60a653f1 13050
048addec
JD
13051 * coding.c (setup_coding_system, shrink_encoding_region)
13052 (Fdecode_sjis_char): Likewise.
60a653f1 13053
048addec 130542001-12-07 Andreas Schwab <schwab@suse.de>
60a653f1 13055
048addec
JD
13056 * xdisp.c (display_mode_element): Don't read past end of string if
13057 it ends with '%'.
60a653f1 13058
048addec
JD
13059 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
13060 can hold.
60a653f1 13061
048addec
JD
13062 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
13063 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
13064 type changed to Lisp_Object.
13065 (syms_of_data): DEFVAR_LISP them.
60a653f1 13066
048addec 130672001-12-07 Richard M. Stallman <rms@gnu.org>
60a653f1 13068
048addec
JD
13069 * callproc.c (init_callproc): Set Vdata_directory based on the source
13070 location whenever Emacs was run uninstalled.
60a653f1 13071
048addec 130722001-12-06 Paul Eggert <eggert@twinsun.com>
60a653f1 13073
048addec
JD
13074 * config.in (HAVE_WORKING_VFORK): New #undefs.
13075 * process.c (create_process):
13076 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
13077 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
13078 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
13079 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
13080 * m/intel386.h (HAVE_VFORK): Likewise.
13081 * m/mips-siemens.h (HAVE_VFORK): Likewise.
13082 * m/mips.h (HAVE_VFORK): Likewise.
13083 * s/freebsd.h (vfork): Remove #define.
13084 * s/lynxos.h (HAVE_VFORK): Remove #undef.
13085 * s/usg5-4-2.h: Fix comment about vfork.
60a653f1 13086
048addec 130872001-12-06 Richard M. Stallman <rms@gnu.org>
60a653f1 13088
048addec
JD
13089 * s/hpux10.h (random): Add undef.
13090 (HAVE_RANDOM): Define it just once.
60a653f1 13091
048addec 130922001-12-06 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 13093
048addec 13094 * eval.c: Undo last change: the standard syntax is not wanted.
60a653f1 13095
048addec 130962001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 13097
048addec
JD
13098 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
13099 scroll bars of the frame before deleting the frame itself. If the
13100 frame has a widget, delete the frame with XtDestroyWidget, and do
13101 not call XDestroyWindow before that.
60a653f1 13102
048addec 131032001-12-06 Kim F. Storm <storm@cua.dk>
60a653f1 13104
048addec 13105 * xfns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 13106
048addec 13107 * w32fns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 13108
048addec 131092001-12-05 Andrew Innes <andrewi@gnu.org>
60a653f1 13110
048addec
JD
13111 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
13112 excessively large.
60a653f1 13113
048addec
JD
13114 * insdel.c (make_gap_larger): New function.
13115 (make_gap_smaller): New function.
13116 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
13117 Call make_gap_smaller if arg is negative.
60a653f1 13118
048addec 131192001-12-04 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 13120
048addec
JD
13121 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
13122 Pass a dummy argument when calling interrupt_signal.
13123 (parse_menu_item): Mark disabled items before checking for empty def.
13124 (read_char_minibuf_menu_prompt): Make safety more visible.
13125 (read_key_sequence): Add a `first_unbound' variable.
13126 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
13127 unbound prefix as soon as we can detect it.
60a653f1 13128
048addec
JD
13129 * doc.c (Fsnarf_documentation): Add prototype.
13130 (get_doc_string): Handle negative arguments.
13131 (Fdocumentation): Use AREF and ASIZE.
13132 Move the calls to get_doc_string to a single place.
13133 Don't confuse an interactive-spec for a docstring reference.
13134 (Fdocumentation_property): Take advantage of the fact that
13135 get_doc_string now ignores the sign of the docstring position.
60a653f1 13136
048addec 13137 * eval.c: Use standard syntax for usage in docstrings.
60a653f1 13138
048addec 131392001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 13140
a64387ee 13141 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
60a653f1 13142
048addec 131432001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 13144
048addec
JD
13145 * xterm.c (x_draw_image_relief): Use predefined macro instead of
13146 constant when the value of `tool_bar_button_relief' is negative.
60a653f1 13147
048addec 131482001-12-02 Richard M. Stallman <rms@gnu.org>
60a653f1 13149
048addec
JD
13150 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
13151 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
60a653f1 13152
048addec 13153 * fileio.c (read_non_regular): Delete Fsignal call.
60a653f1 13154
048addec 131552001-12-01 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 13156
048addec 13157 * lisp.h (run_hook_list_with_args): Undo last change.
60a653f1 13158
048addec 131592001-12-01 Gerd Moellmann <gerd@gnu.org>
60a653f1 13160
048addec 13161 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
60a653f1 13162
048addec 131632001-12-01 Jason Rumney <jasonr@gnu.org>
60a653f1 13164
f63fd14e 13165 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
60a653f1 13166
048addec
JD
13167 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
13168 [!WM_MOUSELEAVE]: Define.
60a653f1 13169
048addec
JD
13170 * w32menu.c (current_popup_menu, get_menu_item_info):
13171 (set_menu_item_info): New vars.
13172 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
13173 (w32_menu_show): Set current_popup_menu.
13174 (add_menu_item): Allocate new strings for owner-drawn menu items
13175 and help strings.
13176 Use owner-draw for disabled menu items again.
13177 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
13178 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
60a653f1 13179
048addec
JD
13180 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
13181 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
13182 <WM_EXITMENULOOP>: Free menu strings.
13183 <WM_MOUSELEAVE>: Stop tracking mouse.
13184 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
60a653f1 13185
048addec
JD
13186 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
13187 and mouse face.
60a653f1 13188
048addec 131892001-12-01 Kim F. Storm <storm@cua.dk>
60a653f1 13190
048addec
JD
13191 The following changes add left-fringe and right-fringe
13192 frame parameters to adjust fringe widths, or remove one or
13193 both fringes.
60a653f1 13194
048addec
JD
13195 * frame.h (struct frame): Remove trunc_area_pixel_width and
13196 trunc_area_cols fields.
13197 (Qleft_fringe, Qright_fringe): Declare.
13198 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
60a653f1 13199
048addec
JD
13200 * frame.c (Qleft_fringe, Qright_fringe): New vars.
13201 (syms_of_frame): Initialize them.
60a653f1 13202
048addec
JD
13203 * window.c (coordinates_in_window): Handle separate left and right
13204 fringe widths.
60a653f1 13205
048addec
JD
13206 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
13207 and fringe_cols fields.
13208 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
13209 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
13210 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
13211 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
13212 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
13213 (x_compute_fringe_widths): Add prototype.
60a653f1 13214
048addec
JD
13215 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
13216 fill fringe evenly with small dashes.
f63fd14e 13217 (x_draw_fringe_bitmap): Clear background if necessary. Align and
048addec
JD
13218 clip the new ZV bitmap to avoid jitter between rows.
13219 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
13220 background. Don't draw fringe bitmaps if fringe width is zero.
13221 (x_compute_fringe_widths): New function.
13222 (x_new_font, x_set_window_size_1): Use it.
60a653f1 13223
048addec
JD
13224 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
13225 (x_set_frame_parameters): Process `font' parameter before other
13226 parameters as fringe widths depend on it.
13227 (x_set_fringe_width): New function.
13228 (x_figure_window_size): Use x_compute_fringe_widths.
13229 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
13230 parameters.
60a653f1 13231
048addec
JD
13232 * widget.c (set_frame_size): Use x_compute_fringe_widths.
13233 (EmacsFrameSetCharSize): Ditto.
60a653f1 13234
048addec
JD
13235 * w32term.h: Merged changes from xterm.h.
13236 * w32term.c: Merged changes from xterm.c.
13237 * w32fns.c: Merged changes from xfns.c.
60a653f1 13238
048addec 132392001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 13240
048addec 13241 * COPYING: Removed.
60a653f1 13242
048addec 132432001-11-29 Dave Love <fx@gnu.org>
60a653f1 13244
048addec
JD
13245 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
13246 extra extra slot.
13247 (detect_coding_mask): Fix call of detect_coding_iso2022.
60a653f1 13248
048addec 132492001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 13250
048addec
JD
13251 * fileio.c (file-name-coding-system)
13252 (default-file-name-coding-system): Doc fix (links to referenced
13253 variables added).
60a653f1 13254
048addec 132552001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 13256
048addec
JD
13257 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
13258 Add dummy uses of gcproN variables.
60a653f1 13259
048addec
JD
13260 * category.c (describe_category, describe_category_1)
13261 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
13262 (syms_of_category): Don't defsubr Sdescribe_categories.
60a653f1 13263
048addec 132642001-11-28 Richard M. Stallman <rms@gnu.org>
60a653f1 13265
048addec 13266 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
60a653f1 13267
048addec
JD
13268 * Makefile.in (lispdir): New variable, referring to build dir.
13269 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
60a653f1 13270
048addec 132712001-11-28 Andrew Innes <andrewi@gnu.org>
60a653f1 13272
048addec
JD
13273 * w32menu.c (w32_menu_display_help): Actually add the new argument
13274 OWNER.
60a653f1 13275
048addec 132762001-11-28 Jason Rumney <jasonr@gnu.org>
60a653f1 13277
048addec
JD
13278 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
13279 menu items. From David Ponce <dponce@wanadoo.fr>.
13280 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
13281 conditionally.
f63fd14e 13282 (w32_menu_display_help): New argument OWNER. Rewritten to store a
048addec 13283 help event in the owner frame's keyboard buffer.
60a653f1 13284
048addec
JD
13285 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
13286 (Fx_show_tip): Don't subtract last width from row width.
13287
13288 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
13289 (w32_read_socket): Use EQ to compare frames.
60a653f1 13290
048addec 132912001-11-28 Gerd Moellmann <gerd@gnu.org>
60a653f1 13292
048addec
JD
13293 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
13294 OVERLAPS_P.
60a653f1 13295
048addec 132962001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 13297
048addec
JD
13298 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
13299 `gcpro3' and `gcpro4'.
60a653f1 13300
048addec 13301 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
60a653f1 13302
048addec 133032001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 13304
048addec 13305 * ccl.c: Use AREF and ASIZE.
60a653f1 13306
048addec 133072001-11-27 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 13308
048addec
JD
13309 * lisp.h (run_hook_list_with_args): Remove.
13310 (LIST_END_P): Fix call to wrong_type_argument.
13311 (make_fixnum_or_float): Use EMACS_INT rather than int.
60a653f1 13312
048addec 133132001-11-26 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 13314
048addec
JD
13315 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
13316 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
60a653f1 13317
048addec
JD
13318 * eval.c: Use AREF and ASIZE.
13319 (Ffetch_bytecode): Add the file name to the error message.
60a653f1 13320
048addec
JD
13321 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
13322 which match the end of the file-name.
13323 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
13324 is not a valid env var, but leave it as is instead.
60a653f1 13325
048addec
JD
13326 * keymap.c (access_keymap): Handle t bindings like nil bindings.
13327 Make nil bindings in char-tables transparent.
13328 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
60a653f1 13329
048addec 133302001-11-26 Richard M. Stallman <rms@gnu.org>
60a653f1 13331
048addec
JD
13332 * textprop.c (set_text_properties_1): Allow START, END in either order.
13333 Do nothing if range is empty.
60a653f1 13334
048addec 13335 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
60a653f1 13336
048addec
JD
13337 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
13338 (clean): Not here.
60a653f1 13339
048addec 133402001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 13341
048addec
JD
13342 * textprop.c (set_text_properties_1): Clearly mark that the
13343 interval should not be empty.
60a653f1 13344
048addec
JD
13345 * intervals.c (graft_intervals_into_buffer):
13346 Don't call set_text_properties_1 on an empty interval.
60a653f1 13347
048addec 133482001-11-25 Richard M. Stallman <rms@gnu.org>
60a653f1 13349
048addec 13350 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
60a653f1 13351
048addec
JD
13352 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
13353 don't lose the data in it.
60a653f1 13354
048addec 133552001-11-25 Juanma Barranquero <lektu@terra.es>
60a653f1 13356
048addec 13357 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
60a653f1 13358
c62aec78 13359 * buffer.c (Fkill_buffer): Likewise.
60a653f1 13360
c62aec78 13361 * print.c (temp_output_buffer_setup): Likewise.
60a653f1 13362
048addec 133632001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 13364
048addec 13365 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
60a653f1 13366
048addec 133672001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 13368
048addec
JD
13369 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
13370 Niemitalo <kon@iki.fi>.
60a653f1 13371
048addec 133722001-11-25 Jason Rumney <jasonr@gnu.org>
60a653f1 13373
048addec 13374 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
60a653f1 13375
048addec
JD
13376 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
13377 (Fx_show_tip): Block input during frame creation.
13378 (Fx_show_tip, Fx_hide_tip): Enable.
60a653f1 13379
048addec 133802001-11-24 Richard M. Stallman <rms@gnu.org>
60a653f1 13381
048addec
JD
13382 * lread.c (Fload): Detect recursive load error for more than 3
13383 nestings of the same file.
13384 (Vrecursive_load_depth_limit): Variable deleted.
13385 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
60a653f1 13386
048addec 133872001-11-24 Jason Rumney <jasonr@gnu.org>
60a653f1 13388
048addec
JD
13389 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
13390 mouse position if either left or top is not specified.
60a653f1 13391
048addec
JD
13392 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
13393 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
13394 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
13395 (my_create_tip_window): Assign tip_window.
13396 (x_create_tip_frame): Use same defaults as X.
13397 (compute_tip_xy): Remove unused variable. Use full screen width.
f63fd14e 13398 (Fx_show_tip): Do not double height. Call ShowWindow directly.
60a653f1 13399
048addec
JD
13400 * w32term.c (x_after_update_window_line): Doc fix.
13401 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
13402 frames.
13403 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
60a653f1 13404
048addec
JD
13405 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
13406 for all Windowed systems.
60a653f1 13407
048addec 134082001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 13409
048addec
JD
13410 * msdos.c (IT_clear_screen): If the frame's faces are not yet
13411 realized, use the initial screen colors to clear the screen.
60a653f1 13412
048addec 134132001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 13414
048addec
JD
13415 * textprop.c (Fset_text_properties): Remove unused variables
13416 `unchanged', `prev_changed', `s' and `len'.
60a653f1 13417
048addec
JD
13418 * search.c (Freplace_match): Remove unused variable `inslen'.
13419
13420 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
13421
134222001-11-22 Jason Rumney <jasonr@gnu.org>
13423
13424 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
13425 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
13426 (my_create_tip_window): New function.
13427 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
13428 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
13429
134302001-11-20 Jason Rumney <jasonr@gnu.org>
13431
13432 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
13433 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
13434
13435 * w32fns.c (Vw32_system_coding_system): Remove.
13436 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
13437
134382001-11-19 Stefan Monnier <monnier@cs.yale.edu>
13439
13440 * fileio.c (Fwrite_region): Move choose_write_coding_system to
13441 after build_annotations.
13442
13443 * syntax.c (describe_syntax): Add dummy arg.
13444 (describe_syntax_1): Update call to describe_vector.
13445
13446 * category.c (describe_category): Add dummy arg.
13447 (describe_category_1): Update call to describe_vector.
13448
13449 * keymap.c (Fdescribe_vector): Add `describer' parameter.
13450 (describe_command, describe_translation): Add dummy second param.
13451 (describe_map): Call elt_describer with two arguments.
13452 (describe_vector_princ): Add `fun' parameter.
13453 Call it instead of the hardcoded `princ'.
13454 (describe_vector): Add arg `args'.
13455 Pass it as a new second argument to elt_describer.
60a653f1 13456
048addec 13457 * keymap.h (describe_vector): Update prototype.
60a653f1 13458
048addec
JD
13459 * frame.c: Don't include keymap.h any more.
13460 (keys_of_frame): Remove.
60a653f1 13461
048addec 13462 * lisp.h (keys_of_frame): Remove declaration.
60a653f1 13463
048addec 13464 * emacs.c (main): Don't call `keys_of_frame' any more.
60a653f1 13465
048addec 134662001-11-14 Andreas Schwab <schwab@suse.de>
60a653f1 13467
048addec
JD
13468 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
13469 if defined, 0 otherwise.
13470 (MAP_FAILED): Define if not defined and use it to test mmap failure.
13471 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
60a653f1 13472
048addec 134732001-11-19 Richard M. Stallman <rms@gnu.org>
60a653f1 13474
048addec 13475 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
60a653f1 13476
048addec 134772001-11-18 Jason Rumney <jasonr@gnu.org>
60a653f1 13478
048addec
JD
13479 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
13480 (x_draw_bar_cursor): If the background color of the glyph under
13481 the cursor equals the frame's cursor color, use the glyph's
13482 foreground color for drawing the bar cursor.
13483 (x_after_update_window_line): Clear internal border in different
13484 circumstances.
13485 (w32_set_vertical_scroll_bar): Check for width and height > 0.
13486 (w32_draw_relief_rect): Correct relief by 1 pixel.
13487 (x_set_glyph_string_background_width):
13488 Set extends_to_end_of_line_p if the row's fill_line_p is set and
13489 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
13490 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
13491 if cursor_in_non_selected_windows is false.
13492 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
13493 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
13494 Notice if cursor gets overwritten.
13495 (notice_overwritten_cursor): Renamed from
13496 note_overwritten_text_cursor. Rewritten to take glyph widths
13497 into account, and to take X positions as parameters.
13498 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
13499 around call to x_draw_glyphs.
13500 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
13501 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
13502 color to use for image glyph reliefs.
13503 (x_draw_image_relief): Accept zero tool_bar_button_relief.
13504 (glyph_rect): Remove unused variable `area'.
60a653f1 13505
048addec
JD
13506 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
13507 some items.
13508 (x_set_internal_border_width): Set frame garbaged when window
13509 doesn't exist yet.
13510 (Fx_create_frame): Accept zero tool_bar_button_relief.
13511 (x_clear_image_1, four_corners_best, image_background)
13512 (image_background_transparent): New functions.
13513 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
13514 (gs_format): Add `:background' entry.
13515 (lookup_image): Set IMG's background color if specified.
13516 (pbm_load, xbm_load_image, png_load): Set IMG's background field
13517 when appropriate.
13518 (x_clear_image_1): Reset `background_valid' and
13519 `background_transparent_valid' fields.
13520 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
13521 calculating it here. Set IMG's background_transparent field.
13522 (enum xpm_keyword_index): Add XPM_BACKGROUND.
13523 (enum png_keyword_index): Add PNG_BACKGROUND.
13524 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
13525 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
13526 (enum gif_keyword_index): Add GIF_BACKGROUND.
13527 (enum gs_keyword_index): Add GS_BACKGROUND.
13528 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
13529 Pre-calculate image background color where necessary.
13530 (x_create_x_image_and_pixmap, xbm_load, gs_load):
13531 Use display info's n_cbits entry for screen depth.
13532 (Fx_show_tip): Remove unused variables `buffer', `top',
13533 `left', `max_width' and `max_height'.
60a653f1 13534
048addec 13535 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
60a653f1 13536
048addec 135372001-11-18 Gerd Moellmann <gerd@gnu.org>
60a653f1 13538
048addec 13539 * puresize.h (BASE_PURESIZE): Increase to 750000.
60a653f1 13540
048addec 135412001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 13542
048addec 13543 * frame.c (Fframe_live_p): Doc fix.
60a653f1 13544
048addec 135452001-11-18 Richard M. Stallman <rms@gnu.org>
60a653f1 13546
048addec
JD
13547 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
13548 (message_dolog_marker3): New static variables hold three markers.
13549 (syms_of_xdisp): Initialize and staticpro them.
13550 (message_dolog): Use message_dolog_marker1..3 instead of
13551 allocating markers each time. Unchain them when done.
60a653f1 13552
048addec 135532001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 13554
048addec 13555 * doc.c (Fsnarf_documentation): Doc fix.
60a653f1 13556
048addec 135572001-11-17 Andreas Schwab <schwab@suse.de>
60a653f1 13558
048addec 13559 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
60a653f1 13560
048addec 135612001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 13562
048addec 13563 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
60a653f1 13564
048addec 135652001-11-17 Jason Rumney <jasonr@gnu.org>
60a653f1 13566
048addec 13567 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
60a653f1 13568
048addec 135692001-11-17 Gerd Moellmann <gerd@gnu.org>
60a653f1 13570
048addec
JD
13571 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
13572 with invalid position.
60a653f1 13573
048addec 135742001-11-16 Richard M. Stallman <rms@gnu.org>
60a653f1 13575
048addec 13576 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
60a653f1 13577
048addec
JD
13578 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
13579 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
13580 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
60a653f1 13581
048addec 13582 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
60a653f1 13583
048addec 135842001-11-16 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 13585
048addec
JD
13586 * fileio.c (build_annotations): Split off the tail.
13587 (build_annotations_2): New fun. Extracted from build_annotations.
13588 (Fwrite_region): Split the call to build_annotations into two
13589 calls to build_annotations and build_annotations_2.
077907d4 13590
048addec 135912001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1756e2fb 13592
048addec
JD
13593 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
13594 clear_waiting_for_input with argument.
1756e2fb 13595
048addec 13596 * xterm.h (x_update_cursor): Remove duplicated prototype.
06e8f738 13597
048addec 13598 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
06e8f738 13599
048addec 13600 * xterm.c (waiting_for_input): Remove unnecessary declaration.
fa336b91 13601
048addec 13602 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
fa336b91 13603
048addec 136042001-11-16 Stefan Monnier <monnier@cs.yale.edu>
fa336b91 13605
048addec
JD
13606 * fileio.c (choose_write_coding_system): New fun, extracted
13607 from Fwrite_region.
13608 (Fwrite_region): Use it.
fa336b91 13609
048addec
JD
13610 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
13611 (funcall_lambda, run_hook_with_args): Make static and add prototype.
13612 (ml_apply, find_handler_clause): Add prototype.
fa336b91 13613
048addec 136142001-11-16 Eli Zaretskii <eliz@gnu.org>
fa336b91 13615
048addec 13616 * config.in: Add #undef HAVE_COFF_H.
fa336b91 13617
048addec
JD
13618 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
13619 Required for ISC 4.1.
fa336b91 13620
048addec 136212001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
fa336b91 13622
048addec
JD
13623 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
13624 Andrew Wiseman <a.wiseman@btclick.com>.
fa336b91 13625
048addec 136262001-11-16 Kim F. Storm <storm@cua.dk>
fa336b91 13627
048addec
JD
13628 The following changes are made to clean up the various internal
13629 references to the fringes to actually use the term `fringe' for
13630 them. Previously, they were called `flags areas', `bitmap areas',
13631 `left/right side of windows', or implicitly as `flags' or
13632 `bitmaps':
fa336b91 13633
048addec 13634 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
f63fd14e 13635 Comments fixed. Use renamed symbols.
06e8f738 13636
f63fd14e 13637 * dispnew.c: Comment fix. Use renamed symbols.
06e8f738 13638
048addec
JD
13639 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
13640 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
13641 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
9ce647f4 13642
048addec 13643 * msdos.c: Comment fix.
9ce647f4 13644
048addec 13645 * w32fns.c: Use renamed symbols.
9b784ab8 13646
f63fd14e 13647 * w32term.c: Comment fixes. Use renamed symbols.
048addec
JD
13648 (fringe_bitmap_type): Renamed from bitmap_type.
13649 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
13650 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
13651 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
9f7e52b4 13652
f63fd14e 13653 * w32term.h: Comment fixes. Use renamed symbols.
048addec
JD
13654 (fringes_extra): Renamed from flags_areas_extra.
13655 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
13656 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
13657 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
13658 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
13659 (FRAME_X_LEFT_FRINGE_WIDTH):
13660 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
13661 (FRAME_X_RIGHT_FRINGE_WIDTH):
13662 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
9f7e52b4 13663
048addec 13664 * widget.c: Use renamed symbols.
9f7e52b4 13665
f63fd14e 13666 * window.c: Comment fixes. Use renamed symbols.
048addec 13667 (coordinates-in-window-p): Doc fix.
fa336b91 13668
f63fd14e 13669 * xdisp.c: Comment fixes. Use renamed symbols.
34e5d0af 13670
048addec 13671 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
9b784ab8 13672
048addec 13673 * xfns.c: Use renamed symbols.
89512fcd 13674
f63fd14e 13675 * xterm.c: Comment fixes. Use renamed symbols.
048addec
JD
13676 (fringe_bitmap_type): Renamed from bitmap_type.
13677 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
13678 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
13679 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
89512fcd 13680
f63fd14e 13681 * xterm.h: Comment fixes. Use renamed symbols.
048addec
JD
13682 (fringes_extra): Renamed from flags_areas_extra.
13683 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
13684 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
13685 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
13686 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
13687 (FRAME_X_LEFT_FRINGE_WIDTH):
13688 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
13689 (FRAME_X_RIGHT_FRINGE_WIDTH):
13690 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
13691
136922001-11-15 Jason Rumney <jasonr@gnu.org>
13693
13694 * w32menu.c (add-menu-item): Make help_echo and radio buttons
13695 work for most menu items. From David Ponce
13696 <david.ponce@wanadoo.fr>.
13697
136982001-11-15 Gerd Moellmann <gerd@gnu.org>
13699
13700 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
13701 Some x_set_* function expect to be called even if old and new
13702 value are equal.
13703
13704 * xdisp.c (build_desired_tool_bar_string): Accept zero
13705 tool_bar_button_relief.
13706
13707 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
13708
13709 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
13710
13711 * xterm.c (x_draw_bar_cursor): If the background color of the
13712 glyph under the cursor equals the frame's cursor color, use
13713 the glyph's foreground color for drawing the bar cursor.
13714
13715 * dispnew.c (direct_output_forward_char): Fix character/byte
13716 position comparison.
7d18891d 13717
048addec 137182001-11-15 Miles Bader <miles@gnu.org>
d2936d21 13719
048addec
JD
13720 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
13721 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
13722 Update arguments to find_field.
13723 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
13724 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
13725 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
13726 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
7d18891d 13727
048addec 137282001-11-14 Richard M. Stallman <rms@gnu.org>
7d18891d 13729
048addec 13730 * editfns.c (Fpropertize): Allow call with 1 arg.
7d18891d 13731
048addec
JD
13732 * dispextern.h (image_background, image_background_transparent):
13733 Conditionalize on HAVE_X_WINDOWS.
7d18891d 13734
048addec 137352001-11-13 Richard M. Stallman <rms@gnu.org>
7d18891d 13736
048addec 13737 * print.c (Fprin1_to_string): Doc fix.
7d18891d 13738
048addec 13739 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
7d18891d 13740
048addec 13741 * floatfns.c (Fceiling, Ffloor): Doc fixes.
7d18891d 13742
048addec 13743 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
7d18891d 13744
048addec 13745 * fileio.c (Ffile_accessible_directory_p): Doc fix.
7d18891d 13746
048addec 13747 * eval.c (syms_of_eval): Doc fix.
7d18891d 13748
048addec 13749 * coding.c (syms_of_coding): Doc fix.
7d18891d 13750
048addec 13751 * doc.c (Fsnarf_documentation): Doc fix.
7d18891d 13752
048addec 13753 * dispnew.c (syms_of_display): Doc fix.
9474c847 13754
048addec 13755 * category.c (Fget_unused_category): Doc fix.
9474c847 13756
048addec 13757 * buffer.c (syms_of_buffer): Doc fixes.
e3059a5d 13758
048addec 137592001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
e3059a5d 13760
048addec 13761 * print.c (prin1, print): Doc fix.
e3059a5d 13762
048addec 137632001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
b3700ae7 13764
048addec
JD
13765 * fontset.h: Remove declarations of variables
13766 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
b3700ae7 13767
048addec
JD
13768 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
13769 `Vclip_large_size_font'.
eae936e2 13770
048addec 137712001-11-13 Jason Rumney <jasonr@gnu.org>
4bb962be 13772
048addec 13773 * w32fns.c: Doc fix.
ddb67bdc 13774
048addec 137752001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3467c402 13776
048addec 13777 * xfaces.c (Fface_attributes_as_vector): Doc fix.
3467c402 13778
048addec 13779 * fns.c: Doc fix.
6e1b91d7 13780
048addec 13781 * emacs.c: Doc fix.
1c1d3d69 13782
048addec 13783 * coding.c: Doc fix.
1c1d3d69 13784
048addec
JD
13785 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
13786 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
13787 `new style' [w/`doc:' keyword].
b6f4c7ba 13788
048addec 137892001-11-12 Richard M. Stallman <rms@gnu.org>
b6f4c7ba 13790
048addec
JD
13791 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
13792 LeaveNotify events. Only FocusIn and FocusOut do that now.
13793 (x_display_and_set_cursor): Do display hollow cursors in active
13794 minibuffer windows when they are not selected.
b6f4c7ba 13795
048addec 137962001-11-12 Jason Rumney <jasonr@gnu.org>
a89f435d 13797
048addec 13798 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
f63fd14e
JB
13799 * w32term.c: Change doc-string comments to `new style'
13800 [w/`doc:' keyword]. Doc fixes.
a89f435d 13801
048addec
JD
13802 * w32fns.c: Don't define max.
13803 (Fx_open_connection): Only execute once.
a4cd0cd7 13804
048addec 138052001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
eafb659a 13806
048addec
JD
13807 * ccl.c: Change macros to use do-while block instead of if-else.
13808 Use braces to follow GNU Coding Standards.
eafb659a 13809
048addec 138102001-11-11 Richard M. Stallman <rms@gnu.org>
a4cd0cd7 13811
048addec 13812 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
a4cd0cd7 13813
048addec 13814 * lread.c (read_escape): Use end_of_file_error for reporting eof.
a4cd0cd7 13815
048addec
JD
13816 * insdel.c (replace_range): Use adjust_markers_for_replace
13817 instead of adjust_markers_for_delete and adjust_markers_for_insert.
a4cd0cd7 13818
048addec 13819 * intervals.h: Declare set_text_properties and set_text_properties_1.
a4cd0cd7 13820
048addec
JD
13821 * textprop.c (set_text_properties_1): New subroutine
13822 broken out of set_text_properties.
13823 (set_text_properties): Use set_text_properties_1.
91823618 13824
048addec
JD
13825 * intervals.c (graft_intervals_into_buffer):
13826 Use set_text_properties_1 to clear out properties.
91823618 13827
048addec
JD
13828 * search.c (Freplace_match): Use replace_range to insert
13829 and delete. Don't request property inheritance from
13830 surrounding text.
86928dfb 13831
048addec 138322001-11-10 Jason Rumney <jasonr@gnu.org>
86928dfb 13833
048addec 13834 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
f63fd14e 13835 vertical fonts. Allow them if face name is explicitly specified.
048addec 13836 Do not give up if we find a font that cannot be converted to an xlfd.
40ef1eda 13837
048addec 138382001-11-10 Gerd Moellmann <gerd@gnu.org>
ab8469eb 13839
048addec
JD
13840 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
13841 instead of malloc/free.
a78e0303 13842
048addec 138432001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
40ef1eda 13844
048addec
JD
13845 * xfaces.c (merge_face_vectors): Use braces to follow GNU
13846 Coding Standards.
13847 (Finternal_set_lisp_face_attribute): Likewise.
fabf4a91 13848
048addec 13849 * buffer.c (Fbury_buffer): Likewise.
0c99b139 13850
048addec 13851 * indent.c (current_column_1): Remove unused variable `prev_col'.
0c99b139 13852
048addec
JD
13853 * coding.c (encode_coding): Use precomputed value of `src'.
13854 (encode_coding): Remove unused variable `src_end'.
13855 (code_convert_region): Remove unused variables `count'.
830ddd77 13856
048addec 138572001-11-07 Jason Rumney <jasonr@gnu.org>
830ddd77 13858
048addec
JD
13859 * w32term.c (x_display_and_set_cursor): Do not move system caret
13860 if cursor_glyph is NULL.
55c6d645 13861
048addec 138622001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
55c6d645 13863
048addec 13864 * keymap.c (access_keymap): Fix compilation error.
5de38842 13865
048addec 138662001-11-07 Miles Bader <miles@gnu.org>
7a4564a4 13867
048addec 13868 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
5de38842 13869
048addec 138702001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4fa23df5 13871
048addec
JD
13872 * intervals.c (graft_intervals_into_buffer):
13873 Remove #ifdef'd-out code.
13874 (graft_intervals_into_buffer): Remove unused variable `middle'.
4fa23df5 13875
048addec
JD
13876 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
13877 code (eval-current-buffer).
13878 Change doc-string comments to `new style' [w/`doc:' keyword].
7a6a97d7 13879
048addec 138802001-11-06 Richard M. Stallman <rms@gnu.org>
c191d13c 13881
048addec 13882 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
7a6a97d7 13883
048addec 138842001-11-06 Stefan Monnier <monnier@cs.yale.edu>
44dc78e0 13885
048addec 13886 * lread.c (read1): Fix behavior with nested backquoting.
44dc78e0 13887
048addec
JD
13888 * keyboard.c (make_lispy_event): Check integerness and fix
13889 Lisp_Object/int mixup.
17893c65 13890
048addec 138912001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4d994a79 13892
048addec 13893 * fns.c (copy_hash_table): Remove unused variable `v'.
d5360cc7 13894
048addec
JD
13895 * fontset.c (fontset_font_pattern): Remove unused variable
13896 `family_registry'.
d5360cc7 13897
048addec 13898 * indent.c (current_column_1): Remove unused variable `prev_col'.
d5360cc7 13899
048addec 139002001-11-05 Richard M. Stallman <rms@gnu.org>
96238a5a 13901
048addec 13902 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
96238a5a 13903
048addec
JD
13904 * buffer.c (Fkill_buffer): Don't delete auto save file
13905 if buffer is modified.
d9d54213 13906
048addec 139072001-11-05 Andrew Innes <andrewi@gnu.org>
d9d54213 13908
048addec
JD
13909 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
13910 CHECK_NUMBER_CDR.
b116830b 13911
048addec 139122001-11-05 Richard M. Stallman <rms@gnu.org>
b116830b 13913
048addec 13914 * unexelf.c (unexec): Minor changes; clean up comments.
3297e2a1 13915
048addec 139162001-11-05 Sam Steingold <sds@gnu.org>
3297e2a1 13917
048addec 13918 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
6fb8339c 13919
048addec 139202001-11-05 Andreas Schwab <schwab@suse.de>
6fb8339c 13921
048addec 13922 * sound.c (sound_perror): Save errno from being clobbered.
7dd73b78 13923
048addec 139242001-11-05 Dale Hagglund <rdh@yottayotta.com>
7dd73b78 13925
048addec
JD
13926 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
13927 the program image directly.
982f6c7e 13928
048addec 139292001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d31053f9 13930
048addec 13931 * buffer.h (Fbuffer_local_value): Add prototype.
d31053f9 13932
048addec 139332001-11-04 Richard M. Stallman <rms@gnu.org>
d31053f9 13934
048addec
JD
13935 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
13936 and CHECK_BUFFER.
d31053f9 13937
048addec
JD
13938 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
13939 (record_char): Likewise.
d31053f9 13940
048addec
JD
13941 * keyboard.c (make_lispy_event): Don't insist a drag event must
13942 move to a different buffer position. Instead, check for moving at
13943 least double_click_fuzz.
982f6c7e 13944
048addec 13945 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
830047fd 13946
048addec 13947 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
b116830b 13948
048addec
JD
13949 * indent.c (current_column_1, Fmove_to_column): Separate the code
13950 for display-table glyphs from the code for buffer text, to fix
13951 bugs in the former.
830047fd 13952
048addec 139532001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
b116830b 13954
048addec
JD
13955 * buffer.c (Fbuffer_local_value): New function.
13956 (syms_of_buffer): Defsubr it.
2df5238c 13957
048addec
JD
13958 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
13959 value of `cursor-in-non-selected-windows'.
4e397688 13960
048addec
JD
13961 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
13962 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
13963 (syms_of_xdisp): Initialize it.
48b0f3ae 13964
048addec 139652001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2df5238c 13966
048addec 13967 * xfns.c (Fx_create_frame): Doc fix.
3ecaf7e5 13968
048addec
JD
13969 * coding.c: Change doc-string comments to `new style' [w/`doc:'
13970 keyword].
3ecaf7e5 13971
048addec
JD
13972 * eval.c (top_level_value, top_level_set): Remove commented and
13973 #ifdef'd-out code.
13974 (Fdefvar): Fix usage in doc-string.
3ecaf7e5 13975
048addec 139762001-11-03 Richard M. Stallman <rms@gnu.org>
3ecaf7e5 13977
048addec 13978 * xfns.c: Include unistd.h, if it exists.
8db2e33b 13979
048addec 13980 * editfns.c: Move the include of ctype.h after unistd.h.
8db2e33b 13981
048addec 13982 * gmalloc.c: Test BROKEN_PROTOTYPES.
aed29b97 13983
048addec 139842001-11-03 Ken Raeburn <raeburn@gnu.org>
aed29b97 13985
048addec
JD
13986 * lisp.h (CHECK_STRING_CAR): New macro.
13987 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
13988 treating XCAR and XCDR as lvalues.
13989 (openp): Use CHECK_STRING_CAR.
13990 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
aed29b97 13991
048addec 139922001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
6cb16f95 13993
048addec
JD
13994 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
13995 (SIGMASKTYPE): Define.
1b1acc13 13996
048addec 13997 * syssignal.h (sigunblock): Don't define if already defined.
020f9b38 13998
048addec 139992001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
020f9b38 14000
048addec
JD
14001 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
14002 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
14003 Fix typos in comments.
6cb16f95 14004
048addec
JD
14005 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
14006 and #ifdef'd-out code.
14007 Fix and reindent comments.
6cb16f95 14008
048addec 14009 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
6cb16f95 14010
048addec
JD
14011 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
14012 argument `i' in macros.
6cb16f95 14013
048addec
JD
14014 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
14015 `i' in macros.
7e9d3c2f 14016
048addec
JD
14017 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
14018 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
14019 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
14020 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
14021 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
14022 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
14023 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
14024 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
14025 in macros.
7e9d3c2f 14026
048addec
JD
14027 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
14028 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
14029 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
14030 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
14031 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
14032 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
14033 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
14034 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
14035 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
14036 (remove unused second argument).
7e9d3c2f 14037
048addec 140382001-11-02 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 14039
048addec
JD
14040 * syntax.c (describe_syntax): New wrapper.
14041 (Finternal_describe_syntax_value): Rename from describe_syntax.
14042 Don't insert space at front and \n at the end.
14043 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
e6bff182 14044
048addec
JD
14045 * regex.c (re_wctype): Try to fix some warnings.
14046 (regcomp, regexec): Don't forget the __restrict.
9ba48103 14047
048addec 140482001-11-02 Richard M. Stallman <rms@gnu.org>
9ba48103 14049
048addec 14050 * textprop.c (Fget_char_property): Doc fix.
9ba48103 14051
048addec 140522001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9ba48103 14053
048addec 14054 * process.c (Fstart_process): Add usage to doc-string.
c22e59e1 14055
048addec 14056 * data.c (Fsetq_default): Ditto.
c22e59e1 14057
048addec 14058 * callint.c (Finteractive): Ditto.
9271ed2c 14059
048addec 140602001-11-01 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 14061
048addec
JD
14062 * macros.c: Don't include keymap.h any more.
14063
140642001-11-01 Richard M. Stallman <rms@gnu.org>
14065
14066 * data.c (Fmake_local_variable): Doc fix.
14067
14068 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
14069 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
e6bff182 14070
048addec 14071 * keymap.c (Fdescribe_buffer_bindings): Print character property
9271ed2c
RS
14072 bindings along with or instead of the buffer local map.
14073 Make the overriding maps override what they should.
14074
f00691a3 140752001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8b8bd9c6
PJ
14076
14077 * window.c (grow_mini_window): Fix typo in comment.
14078
27188d11
GM
140792001-11-01 Gerd Moellmann <gerd@gnu.org>
14080
7b49b9d2
GM
14081 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
14082 (XTset_vertical_scroll_bar): Likewise.
14083
43f7c3ea
GM
14084 * xfns.c (x_build_heuristic_mask): Use four_corners_best
14085 instead of IMAGE_BACKGROUND.
c22e59e1 14086
b350c2e5
GM
14087 * xfns.c (four_corners_best): Reindent.
14088
c22e59e1 14089 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27188d11
GM
14090 Handle :box so that it is possible to specify sexprs.
14091
bf00d461
EZ
140922001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
14093
14094 * s/hpux11.h: New file.
14095
f00691a3 140962001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e10df59 14097
2b209b97
PJ
14098 * emacs.c (USAGE1): Show command line option --no-window-system
14099 instead of --no-windows in usage.
14100 (standard_args): Rename --no-windows to --no-window-system.
14101 (bug_reporting_address): Follow Emacs coding conventions.
14102
9dbc9081
PJ
14103 * eval.c (Fcommandp): Doc fix.
14104 Change doc-string comments to `new style' [w/`doc:' keyword].
14105
4e10df59
PJ
14106 * frame.c (Fframe_live_p): Doc fix.
14107
14108 * buffer.c (selective-display-ellipses): Doc fix.
14109
dd387b25
GM
141102001-10-31 Gerd Moellmann <gerd@gnu.org>
14111
fe957e65
GM
14112 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
14113
dd387b25
GM
14114 * xfaces.c (realize_x_face): If C is not a single-byte character,
14115 set the face's colors_copied_bitwise_p instead of the defaulted_p
14116 members which have a different meaning.
14117 (free_face_colors): Do nothing for a face whose colors have been
14118 copied bitwise.
14119
c22e59e1 14120 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
dd387b25 14121
f00691a3 141222001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2e1280f8 14123
687784e8
PJ
14124 * marker.c, mocklisp.c: Change doc-string comments to `new style'
14125 [w/`doc:' keyword].
2e1280f8 14126
b9d9a9b9
GM
141272001-10-31 Gerd Moellmann <gerd@gnu.org>
14128
14129 * fns.c (require_unwind): Return Lisp_Object.
14130
f00691a3 141312001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
48400103 14132
fa1361cb
PJ
14133 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
14134 (last-input-char): Revert doc-string to be the same as the
14135 doc-string of `last-input-event'.
14136
6c465a15 14137 * xdisp.c: Fix typos in comments.
48400103 14138
eafa3196
GM
141392001-10-31 Gerd Moellmann <gerd@gnu.org>
14140
14141 * window.c (grow_mini_window): Handle case that the root
14142 window is already smaller than the nominal mininum height.
14143
747d3f2a
SM
141442001-10-30 Stefan Monnier <monnier@cs.yale.edu>
14145
bf9bb76f
SM
14146 * emacs.c (main): Don't call keys_of_macros any more.
14147
14148 * lisp.h (keys_of_macros): Remove.
14149
14150 * macros.c (keys_of_macros): Remove.
14151
747d3f2a
SM
14152 * xfaces.c (Fface_attribute_relative_p): Declare args.
14153
5e905a57
JR
141542001-10-30 Jason Rumney <jasonr@gnu.org>
14155
14156 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
14157 (enum_font_cb2): Ignore fonts with vertical orientation.
14158
3a426197
RS
141592001-10-30 Richard M. Stallman <rms@gnu.org>
14160
14161 * keyboard.c (Finput_pending_p): Doc fix.
14162
a742d646
GM
141632001-10-30 Gerd Moellmann <gerd@gnu.org>
14164
259cf6bc
GM
14165 * xterm.c (x_after_update_window_line): Don't run the code
14166 clearing in borders for rows whose visible height is 0.
14167
3f99f948
GM
14168 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
14169 resized_p flag is set. If not set, use the much less flickering
14170 method previously used.
14171
14172 * dispnew.c (change_frame_size_1): Set frame's resized_p.
14173
14174 * frame.h (struct frame) <resized_p>: New member.
14175
b4a3be43
GM
14176 * lread.c (to_multibyte): Ensure read_buffer is at least twice
14177 as large as the number of bytes to convert.
747d3f2a 14178
a742d646
GM
14179 * lread.c (to_multibyte): New function.
14180 (read1): Use it.
14181
cacbb9e9
EZ
141822001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
14183
14184 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
14185
99cb6b2f
GM
141862001-10-30 Gerd Moellmann <gerd@gnu.org>
14187
327f42ee 14188 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
14189 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
14190 if the row's fill_line_p is set and drawing the last glyph with
14191 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 14192
99cb6b2f
GM
14193 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
14194
8e8223e2
SM
141952001-10-29 Stefan Monnier <monnier@cs.yale.edu>
14196
14197 * xmenu.c: Include coding.h and charset.h.
14198 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
14199 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
14200 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
14201 Explicitly set wv->help. Use `TRUE' rather than `True'.
14202 (menu_help_callback): Use empty_string.
14203
14204 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
14205 (Fx_popup_dialog): Explicitly init f.
14206 (w32_menu_display_help): Use empty_string.
14207
4d083a8f
RS
142082001-10-29 Richard M. Stallman <rms@gnu.org>
14209
b2304472
RS
14210 * fns.c (Frequire): Detect recursive try to require the same
14211 feature 3 or more levels deep, and get error.
14212 (require_unwind): New subroutine.
14213 (require_nesting_list): New variable.
14214 (syms_of_fns): Init and staticpro it.
14215
4d083a8f
RS
14216 * print.c (print_object): Clarify indication of insertion type.
14217
2fe41216
EZ
142182001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
14219
90480000
EZ
14220 * coding.c (syms_of_coding): Document that locale-coding-system is
14221 used for decoding input on X.
14222
2fe41216
EZ
14223 * window.c (Fscroll_left, Fscroll_right): Doc fix.
14224
f00691a3 142252001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
74e79967
PJ
14226
14227 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
14228 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
14229
60ebcfe8
GM
142302001-10-29 Gerd Moellmann <gerd@gnu.org>
14231
9a7bdceb
GM
14232 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
14233 use NO_CURSOR if cursor_in_non_selected_windows is false.
14234
3f08fcd2
GM
14235 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
14236 the slant attribute if FRAME is t.
14237
0ccfdad2
GM
14238 * xfns.c (x_set_internal_border_width): Set frame garbaged
14239 when X window doesn't exist yet.
14240
ef253080
GM
14241 * xterm.c (x_after_update_window_line): Clear internal border
14242 in different circumstances.
b116830b 14243
60ebcfe8
GM
14244 * xterm.c (XTread_socket) <KeyPress>: Don't use
14245 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
14246 <handa@etl.go.jp>.
14247
73d25f9c
EZ
142482001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
14249
14250 * m/ibms390.h: New file. From Adam Thornton
14251 <athornton@sinenomine.net>.
14252
cac1daf0
GM
142532001-10-28 Gerd Moellmann <gerd@gnu.org>
14254
053b3256 14255 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
b116830b 14256
cac1daf0
GM
14257 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
14258 a loop counter.
14259
f00691a3 142602001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13b1a09c 14261
f9711de4 14262 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
186486eb 14263
4707d2d0
PJ
14264 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
14265 keyword].
14266 Fix typos in comments.
b116830b 14267
d883731c
PJ
14268 * emacs.c (bug_reporting_address): New function.
14269 Use it when displaying usage message.
14270
04012254
PJ
14271 * minibuf.c (read_minibuf): Remove unused external declaration of
14272 variable `Qread_only'.
14273
13b1a09c
PJ
14274 * keymap.c (access_keymap): Remove unused variable `charset'.
14275
5bbf4378
MB
142762001-10-28 Miles Bader <miles@gnu.org>
14277
14278 * xfaces.c (merge_face_heights): Handle TO being relative as well.
14279 Remove #ifdef'd-out code.
14280 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
14281 (syms_of_xfaces): Initialize them.
14282
1ce1e4ee
JR
142832001-10-27 Jason Rumney <jasonr@gnu.org>
14284
14285 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
14286 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
14287 position using the system caret.
14288
14289 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
14290 (w32_system_caret_height, w32_system_caret_x)
14291 (w32_system_caret_y): New variables for tracking system caret.
14292 (w32_initialize): Initialize them.
c2d53558 14293 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 14294
c2d53558
SM
14295 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
14296 New messages types.
1ce1e4ee
JR
14297
14298 * w32term.c (note_mouse_highlight): Clear old help_echo.
14299
f00691a3 143002001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e30ce42 14301
bb4600a4
PJ
14302 * xterm.c: Fix typo in a comment.
14303
7db35a48
PJ
14304 * emacs.c: Fix typos in comments.
14305 Remove unnecessary spaces.
14306 Change doc-string comments to `new style' [w/`doc:' keyword].
14307 (USAGE2): Fix typos in usage string.
14308
a7248e4f
PJ
14309 * xterm.c: Fix typo in a comment.
14310
4e30ce42
PJ
14311 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
14312 emacs.c.
14313
62725a92
GM
143142001-10-27 Gerd Moellmann <gerd@gnu.org>
14315
798dbe1f 14316 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 14317 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
14318 farther backward when target_y was not reached.
14319
62725a92
GM
14320 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
14321 Display errno only if non-zero.
14322 (sound_warning): New function.
14323 (vox_configure): Don't treat failing to set sample rate as error.
14324 (various places): Improve error messages.
14325
d4e34d24
EZ
143262001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
14327
944e6f60
EZ
14328 * fileio.c (Faccess_file): Run the argument filename through
14329 Fexpand_file_name, before using it.
14330
d4e34d24
EZ
14331 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
14332 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
14333
38d2af0c
GM
143342001-10-26 Gerd Moellmann <gerd@gnu.org>
14335
da80a8d5
GM
14336 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
14337
38d2af0c
GM
14338 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
14339 Fix clearing in the case of scroll bars on the right.
c2d53558 14340
45de4a6f 143412001-10-26 Juanma Barranquero <lektu@terra.es>
56f508dd
EZ
14342
14343 * w32gui.h (XImage): Add a dummy typedef.
14344
fbd5ceb2
GM
143452001-10-26 Gerd Moellmann <gerd@gnu.org>
14346
c2d53558 14347 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 14348
b23236fb
EZ
143492001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
14350
14351 * frame.c (Fframe_parameter): Fix last change.
14352
5d991fc4
EZ
14353 * fileio.c: Revert last change (which removed old commented-out
14354 version of expand-file-name). Add a comment that explains why
14355 this old version should not be removed.
14356
879eadc3
GM
143572001-10-25 Gerd Moellmann <gerd@gnu.org>
14358
75700ff2
GM
14359 * frame.c (Fframe_parameter): Fix a bug whereby some
14360 ``artificial'' frame parameters, like `minibuffer' were not
14361 obtained by calling Fframe_parameters.
14362
dfe92a6a
GM
14363 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
14364 cursor differently.
14365
879eadc3
GM
14366 * xdisp.c (move_it_vertically_backward): Compute line height
14367 differently. Add heuristic to try to be more compatible to 20.x.
14368
e1010ebe
SM
143692001-10-25 Stefan Monnier <monnier@cs.yale.edu>
14370
d73a471b
SM
14371 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
14372
d6da5a06
GM
14373 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
14374 boolean.
e1010ebe 14375
f66bd220
MB
143762001-10-25 Miles Bader <miles@gnu.org>
14377
14378 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
14379 BG is a pointer to a structure, not a structure.
14380 (gif_format, png_format): Add missing commas.
14381
d436d538
RS
143822001-10-24 Richard M. Stallman <rms@gnu.org>
14383
14384 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 14385 (syms_of_xfaces): Defsubr it.
d436d538 14386
f00691a3 143872001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
075c507b
PJ
14388
14389 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
14390 variable `area'.
14391
f00691a3 143922001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d492b584 14393
c2d53558 14394 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 14395
e2a57b34
MB
143962001-10-25 Miles Bader <miles@gnu.org>
14397
14398 * dispextern.h (struct image): Add `background',
14399 `background_valid', and `background_transparent' fields.
14400 (image_background, image_background_transparent): New declarations.
14401 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
14402 * xfns.c (image_background, image_background_transparent)
14403 (four_corners_best): New functions.
c2d53558 14404 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
14405 (gs_format): Add `:background' entry.
14406 (lookup_image): Set IMG's background color if specified.
14407 (pbm_load, xbm_load_image, png_load): Set IMG's background field
14408 when appropriate.
14409 (x_clear_image_1): Reset `background_valid' and
14410 `background_transparent_valid' fields.
14411 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
14412 calculating it here. Set IMG's background_transparent field.
14413 (enum xpm_keyword_index): Add XPM_BACKGROUND.
14414 (enum png_keyword_index): Add PNG_BACKGROUND.
14415 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
14416 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
14417 (enum gif_keyword_index): Add GIF_BACKGROUND.
14418 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 14419 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
14420 Pre-calculate image background color where necessary.
14421 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
14422 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
14423 color to use for image glyph reliefs.
14424
b547b6e8
GM
144252001-10-24 Gerd Moellmann <gerd@gnu.org>
14426
d9e3b8c6
GM
14427 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
14428 in full-width rows.
c2d53558 14429
b547b6e8
GM
14430 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
14431 Fix clearing of area not covered by scroll bar.
14432
f00691a3 144332001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2beb36f9
PJ
14434
14435 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
14436 and `real_start'.
c2d53558 14437 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
14438 (glyph_rect): Remove unused variable `area'.
14439
76cb5e06
GM
144402001-10-24 Gerd Moellmann <gerd@gnu.org>
14441
bdbdebff 14442 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
14443
14444 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
14445 (row_containing_pos): Take additional argument DY.
14446 Treat rows ending in middle of char differently.
62e33982
GM
14447 (display_line): Handle tabs on window systems differently.
14448
14449 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
14450 with additional argument.
14451
14452 * dispextern.h (row_containing_pos): Adjust prototype.
14453
76cb5e06
GM
14454 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
14455 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
14456 (try_window_id, try_window_reusing_current_matrix)
14457 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
6c465a15 14458 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
76cb5e06 14459
f00691a3 144602001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
996fee11 14461
c9e60620
PJ
14462 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
14463 gnuemacs).
14464 (HAVE_BOXES): Fix typo in comment.
14465 (push_menu_pane): Fix typo in comment.
14466
3b552d56
PJ
14467 * xdisp.c: (display_prop_string_p): Remove unused local declaration
14468 of `Qwhen'.
14469 (single_display_prop_string_p): Remove unused local declarations
14470 of `Qwhen' and `Qmargin'.
14471 (string_buffer_position): Remove unused variable `around'.
14472 (store_frame_title): Remove unused variable `width'.
14473
15c565ac
PJ
14474 * window.c: Don't define max.
14475 (coordinates_in_window): Remove unused variable `uy'.
14476
a8818eb9
PJ
14477 * widget.c: Don't define max.
14478
996fee11
PJ
14479 * process.c: Don't define max.
14480 (create_process): Remove unused variable `buffer'.
14481
496e1a5b
GM
144822001-10-23 Gerd Moellmann <gerd@gnu.org>
14483
c2d53558 14484 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 14485
5905ae8b
EZ
144862001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
14487
14488 * xfaces.c (Finternal_set_lisp_face_attribute)
14489 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
14490 frame is on a windowed display.
14491
24db49fb
GM
144922001-10-23 Gerd Moellmann <gerd@gnu.org>
14493
c2d53558
SM
14494 * dispnew.c (sync_window_with_frame_matrix_rows):
14495 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
14496 of marginal areas.
14497
c2d53558 14498 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 14499
f0487f05
EZ
145002001-10-23 Andreas Schwab <schwab@suse.de>
14501
14502 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
14503 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
14504
f0a48a01
GM
145052001-10-23 Gerd Moellmann <gerd@gnu.org>
14506
c2d53558 14507 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
14508 REAL_END. Notice if cursor gets overwritten.
14509 (notice_overwritten_cursor): Take X positions as parameters.
14510 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
14511 around call to x_draw_glyphs.
14512
f00691a3 145132001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a50a10a0 14514
fc11dff0
PJ
14515 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
14516 instead of C) and usage.
a50a10a0 14517
fc11dff0
PJ
14518 * editfns.c (char-to-string): Fix argument names (use CHAR instead
14519 of C) and usage.
a50a10a0
PJ
14520
14521 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
14522 `left', `max_width' and `max_height'.
14523
8738febd
GM
145242001-10-23 Gerd Moellmann <gerd@gnu.org>
14525
14526 * xdisp.c (display_line): For a tab continued to the next line,
14527 set row's ends_in_middle_of_char_p.
14528
653c329b
GM
145292001-10-22 Gerd Moellmann <gerd@gnu.org>
14530
14531 * xdisp.c (display_line): Fix computation of continuation lines
14532 width for TABs.
14533
f00691a3 145342001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f958c5ac 14535
7ba51063
PJ
14536 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
14537 `Qlaplace'.
14538
f958c5ac
PJ
14539 * fileio.c: Remove unused code.
14540
eb360291
MB
145412001-10-22 Miles Bader <miles@gnu.org>
14542
14543 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
14544 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
14545 Remove `DOC_STRINGS_IN_COMMENTS' cases.
14546
98515cf0
JR
145472001-10-21 Jason Rumney <jasonr@gnu.org>
14548
14549 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
14550
93026d88
EZ
145512001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
14552
14553 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
14554 (Finsert_string): Avoid the multi-line string literals warning.
14555
c9a95b79
MB
145562001-10-22 Miles Bader <miles@gnu.org>
14557
14558 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
14559 (Fdocumentation): Don't use it.
14560 (syms_of_doc): Don't initialize it.
14561
14562 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
14563 * print.c (Fwith_output_to_temp_buffer): Likewise.
14564 * window.c (Fsave_window_excursion): Likewise.
c2d53558 14565 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 14566 (Fsave_restriction): Likewise.
c2d53558
SM
14567 * eval.c (Frun_hooks, Frun_hook_with_args)
14568 (Frun_hook_with_args_until_failure)
14569 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
14570 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
14571 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
14572 (Funwind_protect, Fcondition_case): Likewise.
14573 * coding.c (Ffind_operation_coding_system): Likewise.
14574 * keyboard.c (Ftrack_mouse): Likewise.
14575
a3b10252
MB
145762001-10-21 Miles Bader <miles@gnu.org>
14577
c2d53558 14578 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
14579 (Fmake_hash_table): Add usage: string to doc string.
14580 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 14581 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
14582 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
14583 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
14584 (Fml_prefix_argument_loop): Likewise.
14585
f00691a3 145862001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c6f73eec 14587
c2d53558 14588 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 14589
c6f73eec
PJ
14590 * sysdep.c (init_sys_modes): Change doc-string comments to `new
14591 style' [w/`doc:' keyword].
14592
14593 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
14594 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
14595 comments to `new style' [w/`doc:' keyword].
14596
3cf3436e
JR
145972001-10-21 Jason Rumney <jasonr@gnu.org>
14598
14599 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
14600
c169b8f1
JR
14601 * w32term.c (remember_mouse_glyph): New function.
14602 (w32_mouse_position): Use it.
14603 (note_mouse_movement): If the mouse moved off the glyph, remember
14604 its new position.
c2d53558 14605
4fdd691b
JR
14606 * w32term.h (struct w32_output): Correct spelling of x_compatible.
14607 (w32_display_info): Add mouse_face_overlay.
14608
c169b8f1
JR
14609 * w32term.c (notice_overwritten_cursor): Renamed from
14610 note_overwritten_text_cursor. Rewritten to take glyph widths into
14611 account.
14612 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
14613 (fast_find_string_pos): New function.
14614 (fast_find_position): Return the correct vpos. Add parameter
14615 STOP. In the final row, stop before glyphs having STOP as object.
14616 Don't consider glyphs that are not from a buffer.
14617 (fast_find_position) [0]: Add a presumably more correct version
14618 for after 21.1.
14619 (expose_window_tree, expose_frame): Don't compute intersections here.
14620 (expose_window): Do it here instead.
14621 (expose_window_tree, expose_window, expose_line): Return 1 when
14622 overwriting mouse-face.
14623 (expose_window): If W is the window currently being updated, mark
14624 the frame garbaged.
14625 (expose_frame): If mouse-face was overwritten, redo it.
14626 (x_use_underline_position_properties): New variable.
14627 (syms_of_xterm): DEFVAR_BOOL it.
14628 (x_draw_glyph_string): Add comment to use it in future.
14629 (x_draw_glyph_string): Restore clipping after drawing box.
14630 Fix a computation of the underline position.
14631 (w32_get_glyph_string_clip_rect): Minor cleanup.
14632 (x_fill_stretch_glyph_string): Remove an assertion.
14633 (x_produce_glyphs): Don't convert multibyte characters
14634 to unibyte characters in unibyte buffers.
14635 (cursor_in_mouse_face_p): New function.
14636 (x_draw_stretch_glyph_string): Use it to choose a different GC
14637 when drawing a cursor within highlighted text. Don't draw
14638 background again if it has already been drawn.
14639 (x_draw_glyph_string_box): Don't draw a full-width
14640 box just because the glyph row's full_width_p flag is set.
14641 (x_draw_glyphs): Fix computation of rightmost x for
14642 full-width rows.
14643 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
14644 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
f63fd14e 14645 change bottom shadow accordingly. Some cleanup.
c169b8f1
JR
14646 (x_update_window_end): Handle overwritten mouse face
14647 also for tool bar windows.
14648 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
14649 DRAW is DRAW_IMAGE_RAISED.
14650 (clear_mouse_face): Return 1 if text with mouse face was
2c568af5
SM
14651 actually redrawn. Make the function static.
14652 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
c169b8f1
JR
14653 optimize away highlighting if we pass over that same overlay again.
14654 (note_mouse_highlight): Call mouse_face_overlay_overlaps
14655 to detect a case where we have to highlight a different region
14656 despite not having left the currently highlighted region.
14657 Set mouse_face_overlay in the x_display_info. Avoid changing the
14658 mouse pointer shape when show_mouse_face has already done it, or
14659 there is no need. Handle mouse-face and help-echo in strings.
14660 (glyph_rect): New function.
14661 (w32_mouse_position): Use it to raise the threshold for mouse
14662 movement event generation.
14663 (w32_initialize_display_info): Initialize the x_display_info's
14664 mouse_face_overlay.
14665 (w32_set_vertical_scroll_bar): Don't clear a zero height
14666 or width area.
14667 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
14668 a widget to zero height.
14669
3cf3436e 14670 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 14671 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
14672 equivalents in menu_items.
14673 (w32_menu_show): Don't overwrite an item's name with its key
14674 description in case the description is a multibyte string.
14675 (single_submenu): Some cleanup.
14676
14677 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
14678 (postprocess_image): New function.
14679 (lookup_image): Call it for all image types except PostScript.
14680 (x_kill_gs_process): Call postprocess_image.
14681 (tiff_error_handler, tiff_warning_handler): New functions.
14682 (tiff_load): Install them as handlers.
14683 (x_kill_gs_process): Recognize if someone has cleared the image
14684 cache under us.
14685 (valid_image_p): Protect better against invalid image
14686 specifications. Previous code could signal an error.
14687 (Fx_hide_tip, Fshow_tip): Doc fix.
14688 (Fv_max_tooltip_size): New variable.
14689 (syns_of_xfns): DEFVAR_LISP it.
14690 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
f63fd14e 14691 window buffer to *tip* right after creating the frame. Set frame's
3cf3436e
JR
14692 window_width. Use a maximum tooltip size specified by
14693 Vx_max_tooltip_size, if that has valid contents.
14694 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
14695 Make sure the tooltip is completely visible.
14696 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
14697 (Fx_create_frame): Adjust the frame's height for presence
14698 of the tool bar before calling x_figure_window_size.
14699 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
14700 when the window gets smaller.
14701 (x_set_foreground_color): Set frame's cursor_pixel.
14702 (x_set_foreground_color, x_set_background_color): Cleaned up.
14703 (x_set_font): Handle case of x_new_fontset returning the same name
14704 as before, although there was a change in fontsets.
14705
386ca361
MB
147062001-10-21 Miles Bader <miles@gnu.org>
14707
c2d53558 14708 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
14709 (Flogxor): Add usage: string to doc string.
14710 * charset.c (Fstring): Likewise.
14711 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
14712 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
14713
f00691a3 147142001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14ff1ee0 14715
03be2694
PJ
14716 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
14717
14718 * alloc.c: Reindent DEFUNs with doc: keywords.
14719
14720 * abbrev.c (Finsert_abbrev_table_description): Reindent.
14721
14ff1ee0
PJ
14722 * frame.c: Change doc-string comments to `new style' [w/`doc:'
14723 keyword].
14724
2f147815 14725See ChangeLog.9 for earlier changes.
6922b018
KH
14726
14727;; Local Variables:
49b3bd82 14728;; coding: iso-2022-7bit
6922b018 14729;; End:
2a34a036 14730
2f147815 14731 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
2a34a036
GM
14732 Copying and distribution of this file, with or without modification,
14733 are permitted provided the copyright notice and this notice are preserved.
ab5796a9
MB
14734
14735;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4