Add self.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
fc80da24
AS
12004-05-15 Andreas Schwab <schwab@suse.de>
2
3 * emacs.c (gdb_array_mark_flag): Define.
4 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
5
c1380aa6
EZ
62004-05-15 Eli Zaretskii <eliz@gnu.org>
7
8 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
9 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
10 defined for the MS-DOS build.
11
89458937
SM
122004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
13
14 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
15
08020f9a
KH
162004-05-14 Kenichi Handa <handa@m17n.org>
17
18 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
19
a433994a
ST
202004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21
22 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
23 section to frame.c section.
24 (Fxw_display_color_p, Fx_file_dialog): Declare if
89458937 25 HAVE_WINDOW_SYSTEM defined.
a433994a
ST
26 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
27 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
28 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
29 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
30 (XTread_socket): Fix int/Lisp_Object mixup.
31 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
32 * macterm.h (struct frame, struct face, struct image)
33 (display_x_get_resource, Fx_display_color_p)
89458937
SM
34 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
35 Add prototypes.
a433994a 36
b51a51b9
KS
372004-05-14 Kim F. Storm <storm@cua.dk>
38
39 * process.c (wait_reading_process_input): Make reentrant.
40 Make Available and Connecting non-static. Save and restore value
41 of waiting_for_user_input_p.
42
2bde1dd8
KS
432004-05-13 Kim F. Storm <storm@cua.dk>
44
45 * keyboard.c (mark_kboards): Don't mark x and y members
46 that are overloaded in selection request events.
47
a267ab4d
SM
482004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
49
50 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
51
eb15ce9e
GM
522004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
53
54 * window.c (Fdisplay_buffer, Fsplit_window)
55 (split-height-threshold): Doc fix.
56
7fc92635
JB
572004-05-13 Juanma Barranquero <lektu@terra.es>
58
59 * xfaces.c (Ftty_supports_face_attributes_p)
60 (Finternal_copy_lisp_face): Fix typo in docstring.
61 (Finternal_get_lisp_face_attribute): Fix docstring.
62
1ec2a572
JD
632004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
64
65 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
66
ae9292e0
ST
672004-05-11 Steven Tamm <steventamm@mac.com>
68
69 * macfns.c (Fx_create_frame): Default to using tool-bar by
70 setting tool-bar-lines to 1 in default-frame-alist.
71
722004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ea1aaa6f
ST
73
74 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
75 (xpm_get_color_table_v, xpm_make_color_table_h)
76 (xpm_put_color_table_h, xpm_get_color_table_h)
77 (xpm_str_to_color_key, xpm_load_image, xpm_load)
78 (syms_of_image): Support XPM on Carbon Emacs. Does not
a267ab4d 79 depend on libXpm, but only supports XPM version 3 without extensions.
ea1aaa6f 80
fe97e8df
ST
812004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
82
a267ab4d 83 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
fe97e8df
ST
84 instead of FRAME_X_P
85
b47e779e
KS
862004-05-11 Kim F. Storm <storm@cua.dk>
87
88 * process.c (read_process_output): Grow decoding_buf when needed;
89 this could cause a crash in allocate_string and compact_small_strings.
90
cdc9b845
EZ
912004-04-29 Jim Blandy <jimb@redhat.com>
92
93 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
94 against proper opcode.
95
aa7094ba
JB
962004-05-10 Juanma Barranquero <lektu@terra.es>
97
98 * process.c (Fstart_process): Fix docstring.
99
100 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
101 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
102 (Fsplit_char, Fchar_charset): Make argument names match their use
103 in docstring.
104
e109331a
RS
1052004-05-10 Richard M. Stallman <rms@gnu.org>
106
107 * print.c (print_preprocess): Use being_printed, loop_count and
108 halftail to detect overdeep nesting and cyclic cdr chains.
109
9a28b921
AS
1102004-05-10 Andreas Schwab <schwab@suse.de>
111
112 * lisp.h: Declare Fmake_symbolic_link.
113
114 * fileio.c (Frename_file): Remove extra argument in call to
115 Fmake_symbolic_link.
116
e2c02c1a
KS
1172004-05-10 Kim F. Storm <storm@cua.dk>
118
119 * xdisp.c (calc_line_height_property): Use string position when
120 object is a string.
121
cfe9d13e
KH
1222004-05-10 Kenichi Handa <handa@m17n.org>
123
a57e8159
KH
124 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
125 inhibit-modification-hooks to t temporarily before calling
126 Ferase_buffer.
127
128 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
129 inhibit-modification-hooks to t temporarily before calling
130 Ferase_buffer.
131
132 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
133 inhibit-modification-hooks to t temporarily before calling
134 Ferase_buffer.
135
cfe9d13e
KH
136 * fns.c (count_combining): Delete it.
137 (concat): Don't check combining bytes.
138
ceb96489
JR
1392004-05-09 Jason Rumney <jasonr@gnu.org>
140
141 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
142 (globals_of_w32fns): Set it.
143
b1c661c7
JB
1442004-05-09 Piet van Oostrum <piet@cs.uu.nl> (tiny change)
145
146 * data.c (Fquo): Simplify.
147
28712a21
JB
1482004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
149
150 * data.c (Fquo): If any argument is float, do the computation in
151 floating point.
152
0f0af7a8
JB
1532004-05-08 Juanma Barranquero <lektu@terra.es>
154
88214ef6
JB
155 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
156 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
157 Fix spelling of Emacs on docstring.
158 (Fset_process_coding_system, Fprocess_coding_system)
159 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
160 Make argument names match their use in docstring.
161 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
162 Fix docstring.
163
0f0af7a8
JB
164 * editfns.c (Finsert_buffer_substring): Make argument names match their
165 use in docstring.
166
167 * syntax.c (Fmodify_syntax_entry): Fix docstring.
168
2a316a84
ST
1692004-05-07 Steven Tamm <steventamm@mac.com>
170
171 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
172 around call to ReceiveEvent to avoid certain crashes.
173
1742004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
175 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
176 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
177 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
178 Save/restore the current graphics port and device handle when
179 drawing into an offscreen graphics world.
180
181 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
182 (gif_load): Likewise.
183
ab80314b
JB
1842004-05-07 Juanma Barranquero <lektu@terra.es>
185
186 * window.c (Fset_window_buffer): Fix docstring.
187
70646bb5
TTN
1882004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
189
190 * emacs.c (main) [VMS]: Fix var ref.
191
b03a4fdd
JB
1922004-05-06 Romain Francoise <romain@orebokech.com> (tiny change)
193
194 * data.c (Fsetq_default): Fix docstring.
195
279d3293
JR
1962004-05-06 Jason Rumney <jasonr@gnu.org>
197
198 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
199 to avoid name clash.
200
f72b5416
JD
2012004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
202
203 * fileio.c (barf_or_query_if_file_exists): Use lstat.
204 (Frename_file): Handle renaming of symlinks across file systems.
440c7d00 205 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
f72b5416 206
6ab66799
KS
2072004-05-04 Kim F. Storm <storm@cua.dk>
208
209 * xdisp.c (Qtotal): New var.
210 (syms_of_xdisp): Intern and staticpro it.
211 (calc_line_height_property): New arg total. Set it if
212 line-spacing property has format (total . VALUE).
213 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
214 Handle total line-spacing property.
215
ab2d724b
JD
2162004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
217
218 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
219 "under" scroll bar when size/position changes.
220
238add5e
JR
2212004-05-03 Jason Rumney <jasonr@gnu.org>
222
223 * makefile.nt: Remove.
224
1644f4e4
EZ
2252004-05-02 Eli Zaretskii <eliz@gnu.org>
226
a267ab4d
SM
227 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
228 Avoid compiler warnings.
05fdbeb8 229
1644f4e4
EZ
230 * Makefile.in (region-cache.o): Depend on config.h.
231
6cbc951e
SM
2322004-05-02 Romain Francoise <romain@orebokech.com> (tiny change)
233
234 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
235 with continuation lines, too.
236
2b98b088
TTN
2372004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
238
239 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
240
d9bf7950
SM
2412004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
242
243 * xdisp.c (calc_line_height_property): YAILOM (yet another
244 int/Lisp_Object mixup).
245
affa509c
EZ
2462004-05-01 Eli Zaretskii <eliz@gnu.org>
247
248 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
249 undo bad effect of pack(4) in some versions of system headers.
250
07c07cfe
JR
2512004-05-01 Jason Rumney <jasonr@gnu.org>
252
253 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
254
e71caa4e
KS
2552004-04-30 Kim F. Storm <storm@cua.dk>
256
257 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
b2b55d03 258 (syms_of_buffer) <cursor-type>: Doc fix.
e71caa4e
KS
259
260 * dispextern.h (struct it): Remove member use_default_face.
261 Add members override_ascent, override_descent, override_boff.
262
263 * xdisp.c (init_iterator): Handle line-spacing float value.
264 Initialize override_ascent member.
265 (append_space_for_newline): Reset override_ascent.
266 Remove use_default_face.
267 (calc_line_height_property): New function to calculate value of
268 line-height and line-spacing properties. Look at overlays, too.
269 Set override_ascent, override_descent, override_boff members when
270 using another face than the current face. Float values are now
271 relative to the frame default font, by default; accept a cons
272 of ratio and face name to specify value relative to a specific face.
273 (x_produce_glyphs): Use calc_line_height_property.
274 Use override_ascent etc. when set to handle different face heights.
275 A negative line-spacing property value is interpreted as a total
276 line height, rather than inter-line spacing.
277 (note_mouse_highlight): Allocate room for 40 overlays initially.
278
0fddae66
SM
2792004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
280
281 * data.c (Fsubr_name): New fun.
282 (syms_of_data): Defsubr it.
283
712d23dc
KS
2842004-04-29 Kim F. Storm <storm@cua.dk>
285
286 * xdisp.c (null_glyph_slice): New var.
287 (append_glyph, append_composite_glyph, append_stretch_glyph):
288 Use it to initialize glyph slice.
289
033ad8c6
SM
2902004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
291
292 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
293 (on_hot_spot_p): Make sure we always return a value.
294 (Flookup_image_map): Remove unused var ix and iy.
295 (note_mode_line_or_margin_highlight): Remove unused var `image'.
296
93397360
EZ
2972004-04-27 Eli Zaretskii <eliz@gnu.org>
298
299 * msdos.c (init_environment): If one of the TMP... environment
300 variables is set to a drive letter without a trailing slash,
301 append a slash.
302
0c54865e
EZ
3032004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
304
305 * editfns.c (lisp_time_argument): Provide externally.
306
307 * fileio.c (Fset_file_times): New function.
308 (syms_of_fileio): Intern and staticpro it.
309
d3b111bd
KS
3102004-04-27 Kim F. Storm <storm@cua.dk>
311
07dc1231
KS
312 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
313 header line strings.
314
360fe9d2
KS
315 * dispextern.h (struct it): New member use_default_face.
316
d3b111bd
KS
317 * xdisp.c (Qline_height): New variable.
318 (syms_of_xdisp): Intern and staticpro it.
319 (append_space_for_newline): Partially undo 2004-04-25 change;
320 add default_face_p arg, and restore callers.
321 Clear it->use_default_face after use.
322 (x_produce_glyphs): Set default font for ascii char if
323 it->use_default_font is set. Change line-spacing property to set
324 just extra line spacing. Handle new line-height property.
325
0448588b
AS
3262004-04-26 Andreas Schwab <schwab@suse.de>
327
328 * print.c (print_object): Print non-ascii characters in bool
329 vector representation as octal escapes.
330
331 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
332 * print.c (print_object): Use it instead of BITS_PER_CHAR for
333 bool vectors.
334 * lread.c (read1): Likewise.
335 * alloc.c (Fmake_bool_vector): Likewise.
336 * data.c (Faref, Faset): Likewise.
337 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
338 (mapcar1): Likewise.
d3b111bd 339
536d6baa
ST
3402004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
341
342 * lread.c (init_lread): Fixing typo HAVE_CARBON test logic
343
ae11577a
MB
3442004-04-26 Miles Bader <miles@gnu.org>
345
346 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
347
e198ba87
JB
3482004-04-26 Juanma Barranquero <lektu@terra.es>
349
350 * buffer.c (Fpop_to_buffer): Fix docstring.
351
f3d5f92d 3522004-04-26 Steven Tamm <steventamm@mac.com>
e198ba87 353
f3d5f92d
ST
354 * lread.c (init_lread): Don't display missing lisp directory
355 warnings with Carbon Emacs because self-contained bundled Emacs
e198ba87 356 may be built without correct installation path.
f3d5f92d 357
03e35edc
KS
3582004-04-25 Kim F. Storm <storm@cua.dk>
359
9ff3aa31
KS
360 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
361
362 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
363
03e35edc
KS
364 * xdisp.c (append_space_for_newline): Rename from append_space.
365 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
366 (x_produce_glyphs): Handle line-spacing property on newline char.
367 If value is t, adjust ascent and descent to fit current row height.
368 If value is an integer or float, set extra_line_spacing to integer
369 value, or to float value x current line height.
370
f24814e0
KH
3712004-04-23 Kenichi Handa <handa@m17n.org>
372
373 * fontset.c (Finternal_char_font): If POSITION is nil, return
374 font for displaying CH with the default face.
375
d814862a
JB
3762004-04-23 Juanma Barranquero <lektu@terra.es>
377
378 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
379
063a45c5
SM
3802004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
381
382 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
383 Don't make assumptions about the relative place of i and val.
384 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
385
ae7ab2d3
KS
3862004-04-21 Kim F. Storm <storm@cua.dk>
387
388 * dispextern.h (struct glyph_slice): New struct.
389 (struct glyph): New member slice.
390 (GLYPH_SLICE_EQUAL_P): New macro.
391 (GLYPH_EQUAL_P): Use it.
392 (struct glyph_string): New member slice.
393 (struct it_slice): New struct.
394 (struct it): New member slice, add member to stack too.
395 New member constrain_row_ascent_descent_p.
396 (image_ascent): Add prototype.
397
398 * dispnew.c (buffer_posn_from_coords): Return full image width
399 and height even for image slices (posn is relative to full image).
400 (marginal_area_string): Adjust x0,y0 for image slice.
401
402 * image.c (image_ascent): Add slice arg; calculate ascent for
403 image slice (or full image).
404
405 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
406 (syms_of_keyboard): Defsubr them.
407
408 * lisp.h (pos_visible_p): Fix prototype.
409
c62aec78 410 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
ae7ab2d3
KS
411 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
412 (x_draw_image_foreground, x_draw_image_relief)
413 (x_draw_image_foreground_1, x_draw_image_glyph_string):
414 Draw sliced images.
415
416 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
417 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
418 (x_draw_image_foreground, x_draw_image_relief)
419 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
420 Draw sliced images.
421
422 * w32term.h (image_ascent): Remove prototype.
423
424 * window.c (Fpos_visible_in_window_p): Return pixel position if
425 PARTIALLY arg is non-nil. Simplify. Doc fix.
426 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
427 to return/set vscroll in pixels.
428
429 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
430
431 * xdisp.c (Qslice): New variable.
432 (syms_of_xdisp): Intern and staticpro it.
433 (pos_visible_p): Return pixel position in new x and y args.
434 (init_iterator): Reset it->slice info.
435 (handle_display_prop): Parse (slice ...) property.
436 (push_it, pop_it): Save/restore slice info.
437 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
438 force repositioning of tall row if window is vscrolled, as that
439 would reset vscroll.
440 (append_space): Set it->constrain_row_ascent_descent_p to avoid
441 increasing row height if row is non-empty.
442 (fill_image_glyph_string): Copy slice info.
443 (take_vertical_position_into_account): Simplify.
444 (produce_image_glyph): Handle iterator slice info, setup glyph
445 slice info. Do not force minimum line height.
446 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
447 do not increase height (ascent/descent) of non-empty row when
448 adding normal character glyph; instead reduce glyph ascent/descent
449 appropriately; if row is higher than current glyph, adjust glyph
450 descent/ascent to reposition glyph within the existing row.
451 Likewise, when char is newline, only set ascent/descent if row is
452 currently empty.
453 (note_mouse_highlight): Handle hotspots with sliced image.
454
455 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
456 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
457 (x_draw_image_foreground, x_draw_image_relief)
458 (x_draw_image_foreground_1, x_draw_image_glyph_string):
459 Draw sliced images.
460
461 * xterm.h (image_ascent): Remove prototype.
462
d58f8753
SM
4632004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
464
465 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
466
4ce2719d
JPW
4672004-04-20 John Paul Wallington <jpw@gnu.org>
468
469 * fns.c (Fassoc, Feql): Fix indentation.
470
d58f8753 471 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
4ce2719d 472
95f8c3b9
JPW
4732004-04-19 John Paul Wallington <jpw@gnu.org>
474
475 * fns.c (Feql): New function.
d58f8753 476 (syms_of_fns): Defsubr it.
95f8c3b9 477
b7e85537
JR
4782004-04-18 Jason Rumney <jasonr@gnu.org>
479
480 * w32select.c (Fw32_set_clipboard_data): Get sequence number
481 after closing the clipboard.
482
5a72efd4
LT
4832004-04-16 Luc Teirlinck <teirllm@auburn.edu>
484
485 * buffer.c (Fbuffer_base_buffer): Doc fix.
486
20dc8583
KS
4872004-04-17 Kim F. Storm <storm@cua.dk>
488
60962ec4
KS
489 * keymap.c (Fkey_description): Add optional PREFIX arg.
490 Combine prefix with KEYS to make up the full key sequence to describe.
491 Correlate meta_prefix_char and following (simple) key to describe
492 as meta modifier. All callers changed.
493 (describe_map): Rename arg `keys' to `prefix'. Remove local
494 `elt_prefix' var. Use Fkey_description with prefix instead of
495 elt_prefix combined with Fsingle_key_description.
496 (describe_vector): Declare static. Replace arg `elt_prefix' with
497 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
498 if !KEYMAP_P. Use Fkey_description with prefix instead of
499 Fsingle_key_description.
500
501 * keymap.h (Fkey_description): Fix prototype.
502 (describe_vector): Remove prototype.
503
409368b9
KS
504 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
505
20dc8583
KS
506 * image.c (PNG_BG_COLOR_SHIFT): Remove.
507 (png_load): Fix calculation of transparent background color on X
508 and W32 platforms.
509
75c5501b
JB
5102004-04-16 Juanma Barranquero <lektu@terra.es>
511
512 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
513 not too large before computing how much to scroll.
514
da879ae8
SM
5152004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
516
517 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
518
d01ca4a8
LT
5192004-04-14 Luc Teirlinck <teirllm@auburn.edu>
520
521 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
522 Add hyperlink to Elisp manual to the docstring.
523
572943b3
SM
5242004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
525
526 * callint.c (fix_command): Use XDCR.
527
5e30a0fb
NR
5282004-04-14 Nick Roberts <nick@nick.uklinux.net>
529
530 * window.c (Fget_lru_window): Doc fix.
531
a27ddfaf
KS
5322004-04-14 Kim F. Storm <storm@cua.dk>
533
534 * editfns.c (Fformat): Fix allocation size of precision array.
535
536 * dispnew.c (update_window): Only set changed_p if
537 scrolling_window actually did scroll.
538 (scrolling_window): Only return 1 if we actually did scroll.
539
540 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
541 height to glyph height when cursor row is not fully visible.
542 (make_cursor_line_fully_visible): Add FORCE_P arg to return
543 failure in case row is higher than window. Callers changed.
544 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
545 Try to scroll partially visible, higher-than-window cursor row.
546 (redisplay_window): Always try to scroll partially visible,
547 higher-than-window cursor row - both initially and again with
548 centering_position = 0.
549 Clear desired matrix before retrying with centering_position = 0.
550
da879ae8
SM
5512004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
552
553 * syntax.c (scan_lists): Simplify backward string scan.
554 Fix off-by-one boundary check for string and comment fences.
555
5fc16e8e
SM
5562004-04-13 Joe Buehler <jbuehler@hekimian.com>
557
558 * sheap.c, unexcw.c: New files.
559
c9aac8e6
LT
5602004-04-12 Luc Teirlinck <teirllm@auburn.edu>
561
562 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
563 base buffer has been killed. Correct the error message if the
564 base buffer does not exist.
565
1e88a355
SM
5662004-04-12 Joe Buehler <jbuehler@hekimian.com>
567
568 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
569 Cygwin itself. Add support for Xaw3d scrollbars.
570
571 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
572
573 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
574
575 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
576 before Cygwin unexec.
577
578 * Makefile.in: Link changes for Cygwin unexec() support.
579
8dbff9a0
AS
5802004-04-12 Andreas Schwab <schwab@suse.de>
581
582 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
583
54dffe35
LT
5842004-04-11 Luc Teirlinck <teirllm@auburn.edu>
585
586 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
587 IGNORE argument equals NAME. Doc fix.
588
99a72bdf
MY
5892004-04-11 Masatake YAMATO <jet@gyve.org>
590
1e88a355 591 * buffer.c (fix_start_end_in_overlays): Make overlays
99a72bdf
MY
592 empty if they are backwards.
593
40899d7b
SM
5942004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
595
596 * xfaces.c (face_color_supported_p): Fix compilation without X11.
597
f8f853de
SM
5982004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
599
600 * doc.c (Fsnarf_documentation): Ignore new file name entries.
601
c953fe1b
KS
6022004-04-06 Kim F. Storm <storm@cua.dk>
603
661e85c1
KS
604 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
605 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
606
607 * w32term.c (w32_read_socket): Set mouse_face_hidden after
608 clearing highlight.
609
610 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
611
612 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
613 clearing highlight.
614
c953fe1b
KS
615 * indent.c (vmotion): Do not reserve one column for continuation
616 marks on window frames.
617
c1994268
EZ
6182004-04-04 Eli Zaretskii <eliz@gnu.org>
619
620 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
621 from GCC.
622
9f691b0d
SM
6232004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
624
625 * .gdbinit-union: Remove.
626
627 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
628 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
629 ($nonvalbits): Remove.
630 ($valmask): Set it by calling xreload to avoid redundancy.
631
632 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
633 (gdb_emacs_intbits): Remove.
634
7a8560d7
JD
6352004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
636
9f691b0d 637 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
7a8560d7 638
3c8111fc
KH
6392004-03-30 Kenichi Handa <handa@m17n.org>
640
641 * editfns.c (Fformat): Fix initialization of the array info.
642
48a0bce4
KS
6432004-03-30 Kim F. Storm <storm@cua.dk>
644
645 * xterm.c (x_mouse_click_focus_ignore_position): New var.
646 (syms_of_xterm): DEFVAR_BOOL it.
647 (ignore_next_mouse_click_timeout): New var.
648 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
649 Use it to filter mouse clicks following focus event.
650
1cd0066c
KS
6512004-03-29 David Ponce <david@dponce.com>
652
653 * callint.c (Fcall_interactively): Fix last change.
654
adb3b353
SM
6552004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
656
657 * eval.c (Fcommandp): Simplify.
658
659 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
660 Extend to handle all kinds of functions.
661
662 * lisp.h (Finteractive_form): Declare.
663
664 * callint.c (Fcall_interactively): Use it.
665
6fc4c9c9
KS
6662004-03-26 Kim F. Storm <storm@cua.dk>
667
668 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
669 to catch errors in calc_pixel_width_or_height during redisplay.
670
abdb9b83
MY
6712004-03-26 Masatake YAMATO <jet@gyve.org>
672
b17856dd 673 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
abdb9b83 674
b17856dd 675 * lisp.h (fix_start_end_in_overlays): Likewise.
abdb9b83 676
b17856dd 677 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
abdb9b83 678
b17856dd 679 * editfns.c (Ftranspose_regions): Likewise.
abdb9b83 680
e8a84b6c
JD
6812004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
682
b17856dd 683 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
e8a84b6c 684
36a3fd05
RS
6852004-03-19 Richard M. Stallman <rms@gnu.org>
686
687 * s/sol2-6.h: Delete previous change.
688
ab24c127
KS
6892004-03-19 Kim F. Storm <storm@cua.dk>
690
691 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
692 to_charpos corresponds to newline in right fringe. Use local
693 BUFFER_POS_REACHED_P macro.
694
992126de
JD
6952004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
696
697 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
698 to compile on non-window system.
699
45dbfc84
KS
7002004-03-19 Kim F. Storm <storm@cua.dk>
701
702 * dispextern.h (calc_pixel_width_or_height): Add prototype.
703
704 * image.c (Qcenter): Move to xdisp.c.
705
706 * xdisp.c (Qcenter): Declare here.
adb3b353 707 (syms_of_xdisp): Intern and staticpro it.
45dbfc84
KS
708 (handle_single_display_prop): Allow space display property on all
709 platforms.
710 (display_mode_line): Set mode_line_p before displaying line.
711 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
712 handling. Remove complex cases for fringes and scroll-bars.
713 Add left, right, and center alignment positions. Add text (area)
714 width/height. Return width or height for image specs.
715 (produce_stretch_glyph): Improve handling of :align-to. Is now
716 relative to left of text area by default, but other base offsets
717 can be specified -- also for text lines.
718
719 * term.c (produce_glyphs): Handle IT_STRETCH.
720 (produce_stretch_glyph): New function to handle space width and
721 align-to display properties on non-window systems.
722
37264101
SM
7232004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
724
725 * fileio.c (Fread_file_name): Set completion-ignore-case for
726 case-insensitive systems.
727
73bc43da
MY
7282004-03-14 Masatake YAMATO <jet@gyve.org>
729
730 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
731 when keymap and cursor are setup.
732
9062aa89
ST
7332004-03-14 Steven Tamm <steventamm@mac.com>
734
b17856dd 735 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
9062aa89 736
e4b1b5ab
KS
7372004-03-14 Kim F. Storm <storm@cua.dk>
738
739 * dispextern.h (x_find_image_file): Add prototype.
740
741 * image.c (x_find_image_file): Make extern.
742
743 * xfns.c (x_find_image_file): Remove prototype.
744
a6eeaa81 7452004-03-13 Eli Zaretskii <eliz@gnu.org>
5109b06a 746
37264101 747 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
5109b06a 748
37264101 749 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
5109b06a 750
e69cfac2
RS
7512004-03-12 Richard M. Stallman <rms@gnu.org>
752
753 * fns.c (internal_equal): New arg PROPS controls comparing
754 text properties. All callers changed.
755 (Fequal_including_properties): New function.
756 (syms_of_fns): defsubr it.
757
45034953
KS
7582004-03-12 Kim F. Storm <storm@cua.dk>
759
760 Fix image support on MAC. From YAMAMOTO Mitsuharu.
37264101 761
45034953
KS
762 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
763 (image_background, image_background_transparent): Fix prototypes.
764
37264101 765 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
45034953
KS
766
767 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
768 (x_query_font, x_find_ccl_program, x_set_window_size)
769 (x_make_frame_visible, mac_initialize, XCreatePixmap)
770 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
771 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
772
773 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
774 (x_query_font, x_find_ccl_program, x_set_window_size)
775 (x_make_frame_visible, mac_initialize, XCreatePixmap)
776 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
777 (mac_draw_line_to_pixmap): Add prototypes.
778
7792004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
780
781 * macterm.c (XTread_socket): Fix mouse click on tool bar.
782
a12d3d87
KS
7832004-03-11 Kim F. Storm <storm@cua.dk>
784
d3ab1cf1
KS
785 * dispextern.h: Move image related prototypes from xfns.c section
786 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
787 HAVE_X_WINDOWS.
37264101 788
37de9f51 789 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
37264101 790 Move gtkutil.o to new GTK_OBJ list.
a12d3d87
KS
791 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
792 (GTK_OBJ) [USE_GTK]: New declaration.
793 (obj): Add $(GTK_OBJ) to list.
794
5243c06a 7952004-03-11 Steven Tamm <steventamm@mac.com>
5109b06a 796
5243c06a
ST
797 * image.c [MAC_OSX]: Include sys/stat.h
798
799 * macfns.c (syms_of_macfns): Remove definitions of things now
800 defined in image.c
801
c0f97789
KS
8022004-03-11 Kim F. Storm <storm@cua.dk>
803
804 The following changes consolidates the identical/similar image
805 support code previously found in xfns.c, w32fns.c, and macfns.c
806 into a new file image.c.
807
808 * makefile.w32-in (OBJ1): Add image.o.
809 ($(BLD)/image.$(O)): Add dependencies.
810
811 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
812 (image.o): Add dependencies.
37264101 813
c0f97789
KS
814 * image.c: New file with consolidated image support code.
815 (COLOR_TABLE_SUPPORT): New define to control whether
816 color table support is available (X only).
817 (Bitmap_Record): Common name for x_bitmap_record,
818 w32_bitmap_record, and mac_bitmap_record.
819 (XImagePtr): Common name for pointer to XImage or equivalent.
820 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
821 to XImagePtr on X+MAC, and to HDC on W32.
822 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
823 (NO_PIXMAP): Common name for "None" or equivalent.
824 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
825 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
826 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
37264101
SM
827 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
828 Define with suitable equivalents on W32 and MAC for code sharing.
c0f97789
KS
829 (XDrawLine): Define on MAC for code sharing.
830 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
831 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
832 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
833 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
834 (x_reference_bitmap, x_create_bitmap_from_data)
835 (x_create_bitmap_from_file, x_destroy_bitmap)
836 (x_destroy_all_bitmaps, x_create_bitmap_mask)
837 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
838 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
839 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
840 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
841 (define_image_type, lookup_image_type, valid_image_p)
842 (image_error, enum image_value_type, struct image_keyword)
843 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
844 (make_image, free_image, prepare_image_for_display, image_ascent)
845 (four_corners_best, image_background, image_background_transparent)
846 (x_clear_image_1, x_clear_image, x_alloc_image_color)
847 (make_image_cache, free_image_cache, clear_image_cache)
848 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
849 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
850 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
851 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
852 (init_image_func_pointer, image_load_quartz2d)
853 (struct ct_color, init_color_table, free_color_table)
854 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
855 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
856 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
857 (x_disable_image, x_build_heuristic_mask)
858 (XBM support, XPM support, PBM support, PNG support, JPEG support)
859 (TIFF support, GIF support, Ghostscript support): Consolidate image
860 code from xfns.c, w32fns.c, and macfns.c.
861 (syms_of_image): Consolidate image related symbol setup here.
862 (init_image): Consolidate image related initializations here.
37264101 863
c0f97789
KS
864 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
865 and init_image. Remove call to init_xfns.
866
37264101
SM
867 * macterm.h (struct mac_bitmap_record): Add file member.
868 Not currently used, but simplifies code sharing.
c0f97789
KS
869
870 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
871 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
872 (x_reference_bitmap, x_create_bitmap_from_data)
873 (x_create_bitmap_from_file, x_destroy_bitmap)
874 (x_destroy_all_bitmaps, x_create_bitmap_mask)
875 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
876 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
877 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
878 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
879 (define_image_type, lookup_image_type, valid_image_p)
880 (image_error, enum image_value_type, struct image_keyword)
881 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
882 (make_image, free_image, prepare_image_for_display, image_ascent)
883 (four_corners_best, image_background, image_background_transparent)
884 (x_clear_image_1, x_clear_image, x_alloc_image_color)
885 (make_image_cache, free_image_cache, clear_image_cache)
886 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
887 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
888 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
889 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
890 (init_image_func_pointer, image_load_quartz2d)
891 (struct ct_color, init_color_table, free_color_table)
892 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
893 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
894 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
895 (x_disable_image, x_build_heuristic_mask)
896 (XBM support, XPM support, PBM support, PNG support, JPEG support)
897 (TIFF support, GIF support, Ghostscript support): Merge with image
898 code from xfns.c and macfns.c into image.c.
899 (syms_of_xfns): Move image related symbols to image.c.
900 (init_external_image_libraries, init_xfns): Remove; initialization
901 moved to init_image in image.c.
902
903 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
904 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
905 (x_reference_bitmap, x_create_bitmap_from_data)
906 (x_create_bitmap_from_file, x_destroy_bitmap)
907 (x_destroy_all_bitmaps, x_create_bitmap_mask)
908 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
909 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
910 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
911 (define_image_type, lookup_image_type, valid_image_p)
912 (image_error, enum image_value_type, struct image_keyword)
913 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
914 (make_image, free_image, prepare_image_for_display, image_ascent)
915 (four_corners_best, image_background, image_background_transparent)
916 (x_clear_image_1, x_clear_image, x_alloc_image_color)
917 (make_image_cache, free_image_cache, clear_image_cache)
918 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
919 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
920 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
921 (struct ct_color, init_color_table, free_color_table)
922 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
923 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
924 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
925 (x_disable_image, x_build_heuristic_mask)
926 (XBM support, XPM support, PBM support, PNG support, JPEG support)
927 (TIFF support, GIF support, Ghostscript support): Merge with image
928 code from xfns.c and macfns.c into image.c.
929 (syms_of_xfns): Move image related symbols to image.c.
930 (init_external_image_libraries, init_xfns): Remove; initialization
931 moved to init_image in image.c.
932
933 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
934 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
935 (x_reference_bitmap, x_create_bitmap_from_data)
936 (x_create_bitmap_from_file, x_destroy_bitmap)
937 (x_destroy_all_bitmaps, x_create_bitmap_mask)
938 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
939 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
940 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
941 (define_image_type, lookup_image_type, valid_image_p)
942 (image_error, enum image_value_type, struct image_keyword)
943 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
944 (make_image, free_image, prepare_image_for_display, image_ascent)
945 (four_corners_best, image_background, image_background_transparent)
946 (x_clear_image_1, x_clear_image, x_alloc_image_color)
947 (make_image_cache, free_image_cache, clear_image_cache)
948 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
949 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
950 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
951 (struct ct_color, init_color_table, free_color_table)
952 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
953 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
954 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
955 (x_disable_image, x_build_heuristic_mask)
956 (XBM support, XPM support, PBM support, PNG support, JPEG support)
957 (TIFF support, GIF support, Ghostscript support): Merge with
958 w32fns.c and macfns.c image code into image.c.
959 (syms_of_xfns): Move image related symbols to image.c.
960 (init_xfns): Remove; initialization moved to init_image in image.c.
961
962 * lisp.h (syms_of_image, init_image): Add protoypes.
963 (init_xfns): Remove prototype.
964
965 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
966 (x_reference_bitmap, x_create_bitmap_from_data)
967 (x_create_bitmap_from_file, x_destroy_bitmap)
968 (x_create_bitmap_mask): Move prototypes from dispextern.h.
969 (gamma_correct) [MAC_OS]: Add prototype.
970
971 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
972 (x_reference_bitmap, x_create_bitmap_from_data)
973 (x_create_bitmap_from_file, x_destroy_bitmap)
974 (x_create_bitmap_mask): Move prototypes to dispextern.h.
975
6eced09c
KH
9762004-03-09 Kenichi Handa <handa@etlken2>
977
978 * coding.c (decode_coding_emacs_mule): Handle insufficent source
979 correctly.
980
9a7e95f3
RS
9812004-03-04 Richard M. Stallman <rms@gnu.org>
982
04a6e76b
RS
983 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
984
9a7e95f3
RS
985 * window.c (Fdisplay_buffer): Doc fix.
986
987 * buffer.c (Fpop_to_buffer): Doc fix.
988
6c2488df
KS
9892004-03-03 Kim F. Storm <storm@cua.dk>
990
991 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
992
d8d95bc7
SM
9932004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
994
995 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
996
357589bf
RS
9972004-03-02 Richard M. Stallman <rms@gnu.org>
998
999 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
1000
409949b5
KH
10012004-03-02 Kenichi Handa <handa@m17n.org>
1002
1003 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
1004
d24bc50f
KS
10052004-03-02 Kim F. Storm <storm@cua.dk>
1006
1007 * window.h (struct window): New member overlay_arrow_bitmap.
1008
1009 * window.c (make_window): Initialize overlay_arrow_bitmap.
1010
1011 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
1012 implement and integrate multiple overlay arrows with redisplay.
1013 (syms_of_xdisp): DEFVAR_LISP and initialize it.
1014 (last_arrow_position, last_arrow_string): Replace by properties.
1015 (Qlast_arrow_position, Qlast_arrow_string)
1016 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
1017 (syms_of_xdisp): Intern and staticpro them.
1018 (overlay_arrow_string_or_property, update_overlay_arrows)
1019 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
1020 (overlay_arrow_at_row): New functions for multiple overlay arrows.
1021 (redisplay_internal): Use them instead of directly accessing
1022 Voverlay_arrow_position etc. for multiple overlay arrows.
1023 (mark_window_display_accurate): Use update_overlay_arrows.
1024 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
1025 (try_window_id): Use overlay_arrows_changed_p.
1026 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
1027 (display_line): Use overlay_arrow_at_row to check multiple
1028 overlay arrows, and get relevant overlay-arrow-string and
d8d95bc7 1029 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
d24bc50f
KS
1030 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
1031 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
1032
1033 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
1034 (update_window_fringes): Remove unused code.
1035
c1464661
JR
10362004-03-01 Jason Rumney <jasonr@gnu.org>
1037
1038 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
1039
a64387ee
JB
10402004-03-01 Juanma Barranquero <lektu@terra.es>
1041
1042 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
1043
1044 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
1045
334faa08
JD
10462004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1047
1048 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
1049 how many colors can be displayed.
1050
bb62616f
KH
10512004-03-01 Kenichi Handa <handa@m17n.org>
1052
1053 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
1054 correctly.
1055
0fd16104
KS
10562004-02-28 Kim F. Storm <storm@cua.dk>
1057
1058 * dispnew.c (update_window): Update header line also if there are
1059 no other changes in window (move code after set_cursor label).
1060
1061 * lisp.h (mark_window_display_accurate): Remove prototype.
1062
1063 * window.c (window_loop, Fforce_window_update): Force mode line
1064 updates by setting prevent_redisplay_optimizations_p and
1065 update_mode_lines.
1066
b59dd9c8
JD
10672004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1068
d8d95bc7 1069 * xfns.c (x_window): Fix indentation.
b59dd9c8
JD
1070
1071 * xterm.c (x_calc_absolute_position): Call x_real_positions
1072 to get WM window sizes and use those to calculate position.
d8d95bc7 1073 (x_set_offset): Remove code commented out.
b59dd9c8 1074
a874691c
MB
10752004-02-28 Miles Bader <miles@gnu.org>
1076
1077 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
1078
3e0c6482
KS
10792004-02-28 Kim F. Storm <storm@cua.dk>
1080
1081 * keyboard.c (kbd_buffer_store_event_hold): New function to store
1082 an event into kbd fifo, but with special handling of quit event;
1083 a quit event is saved for later, and further events are discarded
1084 until the saved quit event has been processed.
1085 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
1086 (gen_help_event): Store help event in kbd fifo.
1087 (NREAD_INPUT_EVENTS): Remove.
1088 (read_avail_input): Adapt to new read_socket_hook interface.
1089 Remove allocation and initialization of local input_event buffer,
1090 as read_socket_hook stores events directly in fifo. Allocate and
1091 initialize local hold_quit event to handle postponed quit event
1092 (and store it if set by kbd_buffer_store_event_hold).
1093
1094 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
1095 (gen_help_event): Fix prototype.
1096
a64387ee 1097 * macterm.c (XTread_socket): Remove bufp_r and
3e0c6482
KS
1098 numcharsp args. Add hold_quit arg.
1099 Rework to use just one, local, inev input_event. Store inev
1100 directly in fifo using kbd_buffer_store_event_hold.
1101
1102 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
1103 (read_input_waiting): Adapt to new read_socket_hook interface.
1104 Remove allocation and initialization of local input_event buffer,
1105 as read_socket_hook stores events directly in fifo. Allocate and
1106 initialize local hold_quit event to handle postponed quit event
1107 (and store it if set by kbd_buffer_store_event_hold).
1108
a64387ee 1109 * term.c (read_socket_hook): Fix arg list.
3e0c6482
KS
1110
1111 * termhooks.h (read_socket_hook): Fix prototype.
1112
1113 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
1114 numcharsp args. Add hold_quit arg.
1115 Rework to use just one, local, inev input_event. Store inev
1116 directly in fifo using kbd_buffer_store_event_hold.
1117
1118 * w32inevt.h (w32_console_mouse_position): Fix prototype.
1119
1120 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
1121 Add hold_quit arg. Rework to use just one, local, inev
1122 input_event. Store inev directly in fifo using
1123 kbd_buffer_store_event_hold. Update count in one place.
1124 Postpone call to gen_help_event until inev is stored; use new
1125 local do_help for this.
1126 Remove local emacs_event in handing of ButtonPress event; just use
1127 inev instead (so no reason to copy it later).
1128
1129 * xsmfns.c (x_session_check_input): Remove numchars arg.
1130
d8d95bc7
SM
1131 * xterm.c (x_focus_changed, x_detect_focus_change):
1132 Remove numchars arg. Always store event into bufp arg.
1133 Return nothing. Callers changed accordingly.
3e0c6482
KS
1134 (glyph_rect): Simplify.
1135 (STORE_KEYSYM_FOR_DEBUG): New macro.
1136 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
1137 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
1138 (current_hold_quit) [USE_GTK]: Add.
1139 (event_handler_gdk): Adapt to new handle_one_xevent.
1140 (handle_one_xevent): Remove bufp_r and numcharsp args.
1141 Add hold_quit arg. Rework to use just one, local, inev
1142 input_event. Store inev directly in fifo using
1143 kbd_buffer_store_event_hold. Update count in one place.
1144 Postpone call to gen_help_event until inev is stored; use new
1145 local do_help for this.
1146 Simplify handling of keysyms (consolidate common code). Fix bug
1147 where count was updated with nchars instead of nbytes.
1148 Remove local emacs_event in handing of ButtonPress event; just use
1149 inev instead (so no reason to copy it later).
1150 Remove `out' label. Rename label `ret' to `done'; add various
1151 `goto done' to clarify code flow in deeply nested blocks.
1152 (x_dispatch_event): Simplify as handle_one_xevent now calls
1153 kbd_buffer_store_event itself.
1154 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
1155 arg. Call handle_one_xevent with new arglist. Store event from
1156 x_session_check_input in fifo.
1157 [USE_GTK]: Setup current_hold_quit.
1158 Decrement handling_signal before unblocking input.
1159 (x_initialize) [USE_GTK]: Initialize current_count.
1160
1161 * xterm.h (x_session_check_input): Fix prototype.
1162
e3564461 11632004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
a64387ee 1164
d8d95bc7 1165 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
a64387ee 1166
e3564461
ST
1167 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
1168 macgui.h).
a64387ee 1169
e3564461 1170 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
a64387ee 1171
e3564461
ST
1172 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
1173 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
1174 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
1175 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
1176 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
1177 (Bitmap): Remove typedef.
1178 (Pixmap): Change int to GWorldPtr.
1179
d8d95bc7 1180 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
a64387ee 1181
d8d95bc7
SM
1182 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
1183 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
1184 New #define to extract 16-bit depth color components from unsigned
e3564461
ST
1185 long representation.
1186 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
1187 colors used for masks.
1188 (struct mac_display_info): Add color_p. Remove n_cbits.
a64387ee 1189
e3564461
ST
1190 * macfns.c: Include sys/types.h and sys/stat.h.
1191 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
1192 Include QuickTime/QuickTime.h.
1193 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
1194 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
1195 functions defined in macterm.c.
1196 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
1197 (ZPixmap): New #define for compatibility with xfns.c.
1198 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
1199 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
d8d95bc7
SM
1200 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
1201 New functions.
e3564461 1202 (four_corners_best, x_create_x_image_and_pixmap)
d8d95bc7
SM
1203 (x_destroy_x_image, unwind_create_frame, x_disable_image)
1204 (x_edge_detection, init_color_table, colors_in_color_table)
e3564461
ST
1205 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
1206 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
1207 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
1208 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
1209 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
1210 long mixup.
1211 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
1212 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
1213 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
1214 (x_set_cursor_type, Fxw_color_values, valid_image_p)
1215 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
1216 (x_alloc_image_color, clear_image_cache, lookup_image)
1217 (x_find_image_file, xbm_read_bitmap_file_data)
1218 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
1219 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
1220 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
1221 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
1222 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
d8d95bc7 1223 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
e3564461
ST
1224 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
1225 #if 0.
1226 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
1227 #if 0. Free white_relief.gc and black_relief.gc.
d8d95bc7
SM
1228 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
1229 New functions (from xfns.c).
e3564461
ST
1230 (Fx_create_frame): Record unwind_create_frame.
1231 (Fxw_display_color_p): Use dpyinfo->color_p.
1232 (Fx_display_grayscale_p, Fx_display_planes): Don't use
1233 dpyinfo->n_cbits.
1234 (Fx_display_color_cells): Use dpyinfo->n_planes;
1235 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
1236 (Qheuristic, cross_disabled_images, emboss_matrix)
1237 (laplace_matrix): New variables (from xfns.c).
1238 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
1239 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
1240 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
d8d95bc7
SM
1241 (image_background_transparent): New function (from xfns.c).
1242 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
1243 (image_load_quicktime): Add declaration.
1244 [MAC_OSX] (image_load_quartz2d): Likewise.
1245 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
1246 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
d8d95bc7 1247 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
e3564461
ST
1248 (xbm_load_image_from_file, x_laplace_read_row)
1249 (x_laplace_write_row, pbm_read_file): Remove functions.
1250 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
1251 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
1252 (colors_in_color_table): Sync with xfns.c (although not used).
1253 (lookup_rgb_color): Don't lookup color table. Just do gamma
1254 correction.
1255 (COLOR_INTENSITY): New #define (from xfns.c).
d8d95bc7
SM
1256 (x_disable_image): New function (from xfns.c).
1257 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
1258 (x_build_heuristic_mask): Sync with xfns.c.
1259 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
1260 (HAVE_PBM): Remove #ifdef.
1261 (pbm_load): Sync with xfns.c. Set img->width and img->height
1262 before IMAGE_BACKGROUND.
d8d95bc7 1263 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
e3564461
ST
1264 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
1265 Don't enclose with #if HAVE_PNG.
1266 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
d8d95bc7
SM
1267 symbol _CGImageCreateWithPNGDataProvider is defined.
1268 Otherwise use image_load_quicktime.
e3564461 1269 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
d8d95bc7
SM
1270 [HAVE_PNG] (png_load): Sync with xfns.c.
1271 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
1272 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
1273 HAVE_JPEG.
1274 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
1275 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
1276 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
1277 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
1278 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
1279 (tiff_image_p, tiff_load): Don't enclose declarations with #if
1280 HAVE_TIFF.
1281 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
1282 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
1283 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
d8d95bc7
SM
1284 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
1285 New functions (from xfns.c).
e3564461 1286 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
d8d95bc7 1287 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
e3564461
ST
1288 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
1289 Don't enclose with #if HAVE_GIF.
1290 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
1291 animated gif. Otherwise use image_load_quicktime.
1292 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
1293 gif_DrawText to avoid conflict with QuickdrawText.h.
1294 [HAVE_GIF] (gif_load): Sync with xfns.c.
1295 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
1296 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
1297 Ghostscript is not supported yet).
1298 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
1299 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
1300 cross_disabled_images (from xfns.c). Remove #if 0 for supported
1301 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
1302 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
1303 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
d8d95bc7
SM
1304 HAVE_PNG. Call EnterMovies to support animated gifs.
1305 Call init_image_func_pointer to bind a symbol
e3564461 1306 _CGImageCreateWithPNGDataProvider if it is defined.
a64387ee 1307
d8d95bc7 1308 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
e3564461
ST
1309 (x_draw_bar_cursor): Sync declaration with xterm.c.
1310 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
1311 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
1312 graphics).
1313 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
1314 (mac_draw_line_to_pixmap, XCreatePixmap)
1315 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
d8d95bc7
SM
1316 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
1317 New functions.
1318 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
1319 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
1320 Cast bits to char *.
e3564461
ST
1321 (reflect_byte): New function (from w32fns.c).
1322 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
1323 due to byte alignment.
d8d95bc7
SM
1324 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
1325 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
e3564461
ST
1326 (XSetForeground): Remove static (now used in macfns.c).
1327 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
1328 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
1329 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
1330 (x_draw_glyph_string_box, x_draw_image_foreground)
1331 (x_draw_image_foreground_1, x_draw_image_glyph_string)
1332 (x_draw_stretch_glyph_string, x_draw_glyph_string)
1333 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
1334 Sync with xterm.c.
1335 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
1336 than the xterm.c version when a strictly horizontal or vertical
1337 line is drawn.
1338 (XTset_terminal_window): Add static.
1339 (x_make_frame_visible): Add UNBLOCK_INPUT.
1340 (x_free_frame_resources): New funcion (from xterm.c).
1341 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
1342 occurs in tool bar area.
d8d95bc7
SM
1343 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
1344 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
e3564461
ST
1345 Initialize image cache.
1346 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
1347 Enclose unused functions with #if 0.
1348 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
1349 (decode_mac_font_name): New function to apply code conversions
d8d95bc7 1350 from a mac font name to an XLFD font name according to its script code.
e3564461 1351 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
d8d95bc7 1352 font name to a mac font name according to REGISTRY and ENCODING fields.
e3564461
ST
1353 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
1354 whose name starts with `.'.
1355 (init_font_name_table): Use decode_mac_font_name. Add both
1356 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
1357 of a font is smJapanese.
1358 (mac_do_list_fonts): New function to list fonts that match a given
1359 pattern.
1360 (x_list_fonts, XLoadQueryFont): Use it.
1361 (XLoadQueryFont): Set rbearing field for each variable width
1362 character to avoid needless redraw.
1363 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
1364
446f5f3d
KS
13652004-02-26 Kim F. Storm <storm@cua.dk>
1366
af617d0f
KS
1367 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
1368 as read_socket_hook handler on X aborts if buffer is too small
1369 and W32 handler doesn't always check buffer limit.
1370
446f5f3d
KS
1371 * xdisp.c (handle_single_display_prop): Handle left-fringe and
1372 right-fringe similar to a display margin image. Specifically,
1373 the characters having the fringe prop are no longer shown, and
1374 we use IT_IMAGE/next_element_from_image with image_id = -1 to
1375 do this. Set fringe bitmap face_id in it->face_id.
1376 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
1377 still realize it->face (i.e. the fringe bitmap face).
1378
7d8a0b55
MB
13792004-02-25 Miles Bader <miles@gnu.org>
1380
1381 * xdisp.c (check_it): Check string/string_pos consistency.
1382 (init_iterator): Initialize string-related fields properly.
1383
13842004-02-11 Miles Bader <miles@gnu.org>
1385
1386 * xdisp.c (produce_image_glyph): Force negative descents to zero.
1387
13882004-02-10 Miles Bader <miles@gnu.org>
1389
1390 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
1391 BLOCK_INPUT can be nested, so it doesn't make much sense.
1392
a64387ee 13932004-02-24 Michael Mauger <mmaug@yahoo.com>
ce35edd1
JR
1394
1395 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
1396 (xbm_read_bitmap_data): Use unsigned char for image data.
1397
92f5fba2
LT
13982004-02-23 Luc Teirlinck <teirllm@auburn.edu>
1399
1400 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
1401
8565fb3d
JR
14022004-02-22 Jason Rumney <jasonr@gnu.org>
1403
1404 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
1405 correctly over other bitmaps.
1406
a6eeaa81 14072004-02-21 Eli Zaretskii <eliz@gnu.org>
f8125c39
EZ
1408
1409 * emacs.c (USAGE1): Split into two halves.
1410 (USAGE2): Second half of the old USAGE1.
d8d95bc7
SM
1411 (USAGE3): Rename from USAGE2.
1412 (USAGE4): Rename from USAGE3.
f8125c39 1413
4effffca
EZ
14142004-02-21 Juri Linkov <juri@jurta.org>
1415
1416 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
1417 Fix --multibyte. Move --help, --version to USAGE2. Add alias
1418 --file. Fix -f, -l. Sort options. Untabify.
1419 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
1420
923c1e6f
LT
14212004-02-19 Luc Teirlinck <teirllm@auburn.edu>
1422
1423 * category.c (Fdefine_category, Fcategory_docstring)
1424 (Fget_unused_category, Fset_category_table)
1425 (Fcategory_set_mnemonics): Doc fixes.
1426
b0e225fd
KS
14272004-02-20 Kim F. Storm <storm@cua.dk>
1428
1429 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
1430 The following changes are relative to the 2004-01-21 revision.
1431 (NREAD_INPUT_EVENTS): Define as max number of input events to read
1432 in one call to read_socket_hook. Value is 8.
1433 (read_avail_input): Separate and rework handling of read_socket_hook
1434 and non-read_socket_hook cases. Use smaller input_event buffer
d8d95bc7
SM
1435 in read_socket_hook case, and repeat if full buffer is read.
1436 Use new local variable 'discard' to skip input after C-g.
b0e225fd
KS
1437 In non-read_socket_hook case, just use a single input_event, and
1438 call kbd_buffer_store_event on the fly for each character.
1439
b15aa9f9
SM
14402004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
1441
1442 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
1443 Remove unused `gu' alternative.
1444
83c9aa95
AS
14452004-02-19 Andreas Schwab <schwab@suse.de>
1446
1447 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
1448 warning.
1449
cc808173
KS
14502004-02-18 Kim F. Storm <storm@cua.dk>
1451
1452 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
1453 Fix last change.
1454
ab90a54d
KS
14552004-02-17 Kim F. Storm <storm@cua.dk>
1456
b26f249f
KS
1457 * xdisp.c (fast_find_position): Fix return value of new version;
1458 it was inverted compared to the 21.1 version.
1459 (get_window_cursor_type): Don't look at glyph if NULL.
1460 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
0bf7d005 1461
ab90a54d
KS
1462 * keyboard.c: Rework previous change; it didn't consider that the
1463 buf array was allocated on the stack.
1464 (prev_read): Remove variable.
1465 (read_avail_input_buf): New static event buffer array.
b9568dfc 1466 (in_read_avail_input): New static variable to handle re-entrancy.
ab90a54d 1467 (read_avail_input): Change buf to pinter to read_avail_input_buf.
b9568dfc
KS
1468 Use in_read_avail_input to handle re-entrance; when re-entered,
1469 fully initialize and use tmp_buf array instead of read_avail_input_buf.
1470 Do not initialize read_avail_input_buf in full here; instead assume it
ab90a54d
KS
1471 is always cleared on entry. To ensure that, we clear (just) the
1472 entries that were used before we return.
1473 (init_keyboard): Initialize read_avail_input_buf here.
1474
4e039f3f
EZ
14752004-02-16 Jesper Harder <harder@ifa.au.dk> (tiny change)
1476
1477 * cmds.c (Fend_of_line): Doc fix.
1478
7b5368c1
EZ
14792004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
1480
1481 * keyboard.c (prev_read): New static variable.
1482 (read_avail_input): Use it to zero out only those slots in buf[]
1483 that were used last time we were called.
1484
a6eeaa81 14852004-02-16 Eli Zaretskii <eliz@gnu.org>
ca4bc494
EZ
1486
1487 * Makefile.in (obj): Move fringe.o from here...
1488 (XOBJ, MAC_OBJ): ...to here.
1489
159c348e
SE
14902004-02-16 Stephen Eglen <stephen@gnu.org>
1491
1492 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
1493
d2f14999
SM
14942004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
1495
b15aa9f9
SM
1496 * data.c (Fbyteorder):
1497 * fringe.c (Fdefine_fringe_bitmap):
1498 * xdisp.c (handle_single_display_prop):
d2f14999
SM
1499 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
1500
8d50508a
JR
15012004-02-16 Jason Rumney <jasonr@gnu.org>
1502
1503 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
1504
dd4497dc
ST
15052004-02-15 Steven Tamm <steventamm@mac.com>
1506
1507 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
1508 controlling emulation of a three button mouse with option and
1509 command keys.
1510 (Qreverse, mac_get_enumlated_btn): Handle the emulation
b15aa9f9 1511 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
dd4497dc 1512
c9159cb3
KS
15132004-02-15 Kim F. Storm <storm@cua.dk>
1514
2cc52658
KS
1515 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
1516
c9159cb3
KS
1517 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
1518 Perform byte-swapping.
1519
12fde2dc
KS
15202004-02-14 Kim F. Storm <storm@cua.dk>
1521
1522 * dispextern.h (struct draw_fringe_bitmap_params): Change member
1523 bits from char to short to facilitate wider bitmaps.
1524 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
1525 member.
1526
1527 * fringe.c (struct fringe_bitmap): Change member bits from char to
1528 short to facilitate 16 bits wide bitmaps. Modify all standard
1529 bitmaps accordingly.
1530 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
1531 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
1532 (draw_fringe_bitmap): Ditto.
1533 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
1534 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
1535 handle up to 16 bits wide bitmaps.
1536 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
f21a7192 1537 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
12fde2dc
KS
1538
1539 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
1540 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
1541 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
1542
1543 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
1544 so it is no longer necessary to expand them here.
1545
1546 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
1547
9d7271e8
KS
15482004-02-12 Kim F. Storm <storm@cua.dk>
1549
1550 * window.c (Fwindow_fringes): Doc fix.
1551
706c1e4f
JD
15522004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1553
1554 * xselect.c (x_get_foreign_selection): Add new optional parameter
1555 time_stamp.
1556 (Fx_get_selection_internal): Ditto, pass time_stamp to
1557 x_get_foreign_selection.
1558
1559 * data.c (Fbyteorder): New function.
1560
c2d12b5d
JD
15612004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1562
1563 * atimer.c: Move include stdio.h to same place as in other files.
1564
1565 * region-cache.c: Ditto.
1566
1567 * sysdep.c: Ditto.
1568
1569 * xfaces.c: Ditto.
1570
4c1947b9
SS
15712004-02-09 Sam Steingold <sds@gnu.org>
1572
89458937 1573 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
4c1947b9 1574
82722af3
KS
15752004-02-09 Kim F. Storm <storm@cua.dk>
1576
1577 * fringe.c: New file. Move original fringe related declarations
1578 and code from dispextern.h and xdisp.c here.
1579 Rework code to support user defined fringe bitmaps, redefining
1580 standard bitmaps, ability to overlay user defined bitmap with
1581 overlay arrow bitmap, and add faces to bitmaps.
1582 (Voverflow_newline_into_fringe): Declare here.
1583 (enum fringe_bitmap_align): New enum.
1584 (..._bits): All bitmaps are now defined without bitswapping; that
1585 is now done in init_fringe_once (if necessary).
1586 (standard_bitmaps): New array with specifications for the
1587 standard fringe bitmaps.
1588 (fringe_faces): New array.
1589 (valid_fringe_bitmap_id_p): New function.
1590 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
1591 (draw_fringe_bitmap): New function which draws fringe bitmap,
1592 possibly overlaying bitmap with cursor in right fringe or the
1593 overlay arrow in the left fringe.
1594 (update_window_fringes): Do not handle overlay arrow here.
1595 Compare and copy fringe bitmap faces.
1596 (init_fringe_bitmap): New function.
1597 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
1598 define and destroy user defined fringe bitmaps.
1599 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
1600 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
1601 (syms_of_fringe): New function. Defsubr new DEFUNs.
1602 DEFVAR_LISP Voverflow_newline_into_fringe.
1603 (init_fringe_once, init_fringe): New functions.
1604 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
4c1947b9 1605
82722af3
KS
1606 * Makefile.in (obj): Add fringe.o.
1607 (fringe.o): New dependencies.
1608
1609 * dispextern.h (FRINGE_ID_BITS): New definition for number of
1610 bits allocated to hold a fringe number. Increase number of bits
1611 from 4 to 8 to allow user defined fringe bitmaps.
1612 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
1613 left_user_fringe_face_id, right_user_fringe_bitmap,
1614 right_user_fringe_face_id.
1615 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
1616 Move to new file fringe.c.
1617 (MAX_FRINGE_BITMAPS): Define here.
1618 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
1619 and overlay_p. Change member which to int.
1620 (struct redisplay_interface): New members define_fringe_bitmap
1621 and destroy_fringe_bitmap.
1622 (valid_fringe_bitmap_id_p): Add prototype.
1623 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
1624
1625 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
1626 arrows.
1627 (update_frame): Do flush_display if force_flush_display_p to
1628 ensure display (specifically fringes) are updated in a timely
1629 manner when resizing the frame by dragging the mouse.
1630 (update_window_line): Update row if overlay arrow changed.
1631 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
1632 or overlay arrow changed.
1633
1634 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
1635 syms_of_fringe, and init_fringe.
1636
1637 * frame.h (struct frame): New member force_flush_display_p.
1638
1639 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
1640 Add prototypes.
1641
a3993cc8 1642 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
a64387ee 1643 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
a3993cc8
KS
1644 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
1645 Use cursor color for displaying cursor in fringe.
82722af3
KS
1646 (x_redisplay_interface): Add null handlers for
1647 define_fringe_bitmap and destroy_fringe_bitmap functions.
1648
1649 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
1650 xterm.c to handle overlayed fringe bitmaps and to use cursor color
1651 for displaying cursor in fringe.
1652 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
1653 specific functions to define and destroy fringe bitmaps in fringe_bmp.
1654 (w32_redisplay_interface): Add them to redisplay_interface.
1655 (w32_term_init): Call w32_init_fringe instead of explicitly
1656 defining fringe bitmaps in fringe_bmp array.
1657 (x_delete_display): Call w32_reset_fringes instead of explicitly
1658 destroying fringe bitmaps in fringe_bmp array.
1659
1660 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
1661 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
1662 (continued_bits, continuation_bits, ov_bits, first_line_bits)
1663 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
1664 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
1665 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
1666 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
1667 Move fringe handling vars and code to new file fringe.c.
1668 (handle_display_prop): Handle left-fringe and right-fringe
1669 display properties; store user fringe bitmaps in iterator.
1670 (move_it_in_display_line_to): Handle cursor in fringe at eob.
1671 (clear_garbaged_frames): Set force_flush_display_p if resized.
1672 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
1673 (display_line): Handle cursor in fringe at eob.
1674 (display_line): Set row user fringe bitmaps from iterator.
1675
1676 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
1677 Use cursor color for displaying cursor in fringe.
1678 (x_redisplay_interface): Add null handlers for
1679 define_fringe_bitmap and destroy_fringe_bitmap functions.
1680
030400eb
JD
16812004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1682
1683 * macfns.c (Fx_change_window_property): Make doc string and
1684 parameters same as for X version.
1685
1686 * w32fns.c (Fx_change_window_property): Ditto.
1687
3af55251
KS
16882004-02-07 Kim F. Storm <storm@cua.dk>
1689
ec110e9e
KS
1690 * xdisp.c (hscroll_window_tree): Position cursor near to right
1691 margin in hscrolled window when jumping to end of line (rather
1692 than centering cursor).
1693
3af55251
KS
1694 * process.c (wait_reading_process_input): Don't do adaptive read
1695 buffering if waiting for a specific process.
1696
b0c138ce
LT
16972004-02-05 Luc Teirlinck <teirllm@auburn.edu>
1698
1699 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
1700 (Fread_minibuffer, Feval_minibuffer)
1701 (Fread_string, Fread_no_blanks_input)
1702 (Fcompleting_read): Doc fixes.
1703 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
1704 completion-regexp-list. Define Qcase_fold_search and staticpro it.
1705 (read_minibuf): Fix initial comment.
1706 (Ftry_completion, Fall_completions, Ftest_completion): Bind
1707 case-fold-serach to the value of completion-ignore-case when
1708 checking completion-regexp-list.
1709 (Fdisplay_completion_list): Make it handle arguments that are
1710 symbols. Doc fix.
1711
9676f5ad 17122004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
64d1e373 1713
9676f5ad 1714 * xterm.h: Add declaration of free_frame_menubar.
64d1e373 1715
9676f5ad
JD
1716 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
1717 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
b0c138ce 1718 (Fx_change_window_property): Add declaration of parameters type and
9676f5ad 1719 format. Remove unused variable cons.
5b698285
JD
1720
1721 * xselect.c: Include stdio,h.
1722
fc1d15f6
KH
17232004-02-05 Kenichi Handa <handa@m17n.org>
1724
ebaff4af
KH
1725 * fns.c (Fset_char_table_range): Fix previous change.
1726
fc1d15f6
KH
1727 * buffer.c (Fset_buffer_multibyte): Fix docstring.
1728
9676f5ad
JD
17292004-02-04 Luc Teirlinck <teirllm@auburn.edu>
1730
1731 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
1732
da75761f
SM
17332004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
1734
1735 * keymap.c (Vmouse_events): Rename from Vmenu_events.
1736 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
1737
13c5d120
KH
17382004-02-04 Kenichi Handa <handa@m17n.org>
1739
1740 * fns.c (Fset_char_table_range): Handle charsets ascii,
1741 eight-bit-control, and eight-bit-graphic correctly.
1742
2883d842
JR
17432004-02-03 Jason Rumney <jasonr@gnu.org>
1744
1745 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
1746
1747 * w32fns.c (x_to_w32_font): Likewise.
1748
69eff41f
JD
17492004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1750
1751 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
1752 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
1753
1754 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
1755 ClientMessages.
1756
1757 * xselect.c: Include termhooks.h and X11/Xproto.h
1758 (x_check_property_data, x_fill_property_data)
1759 (x_property_data_to_lisp, mouse_position_for_drop)
1760 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
da75761f 1761 (Fx_send_client_event): Move here from xfns.c.
69eff41f
JD
1762 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
1763
da75761f 1764 * xfns.c (x-send-client-message): Move to xselect.c
69eff41f
JD
1765 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
1766 OUTER_P.
1767 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
1768 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
1769 if vector_ret_p is true.
1770 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
69eff41f 1771
a6eeaa81 17722004-02-02 Eli Zaretskii <eliz@gnu.org>
dcdbbb5d
EZ
1773
1774 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
1775 basename of FILE relative to it, not FILE itself.
1776
09721b31
KH
17772004-02-02 Kenichi Handa <handa@m17n.org>
1778
1779 * coding.c (coding_restore_composition): Check invalid
1780 composition data more rigidly.
1781
eb996101
LT
17822004-01-30 Luc Teirlinck <teirllm@auburn.edu>
1783
1784 * fileio.c (Fread_file_name_internal): Correctly handle the case
1785 where insert-default-directory is nil.
1786 (Fread_file_name): Always return an empty string if the user exits
1787 with an empty minibuffer. Adapt the docstring accordingly.
1788 (syms_of_fileio): Adapt the docstring of insert-default-directory
1789 to the change in Fread_file_name.
1790
a6eeaa81 17912004-01-29 Eli Zaretskii <eliz@gnu.org>
a0367d42
EZ
1792
1793 * alloca.c [!alloca]: Fix the prototype for xfree.
1794
13f52ed8
KH
17952004-01-29 Kenichi Handa <handa@m17n.org>
1796
1797 * fns.c (string_char_to_byte): Optimize for ASCII only string.
1798 (string_byte_to_char): Likewise.
1799
d57625a0
JR
18002004-01-28 Peter Runestig <peter@runestig.com>
1801
1802 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
1803
a64387ee 18042004-01-27 Steven Tamm <steventamm@mac.com>
911c78b4
ST
1805
1806 * unexmacosx.c (unexec_copy): Do not copy more than was
1807 requested to prevent overwriting during unexec.
1808
eb37b8fd
JD
18092004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1810
ce38070a
JD
1811 * process.c (sigchld_handler): Add comment about not calling malloc.
1812
eb37b8fd
JD
1813 * process.h: Add extern to synch_process_termsig.
1814
a64387ee 18152004-01-27 Steven Tamm <steventamm@mac.com>
21a3e657 1816
da75761f
SM
1817 * macterm.c (make_mac_frame, make_mac_terminal_frame):
1818 Move setting of scroll bars from make_mac_frame to
1819 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
21a3e657 1820
d62a265d
RS
18212004-01-26 Richard M. Stallman <rms@gnu.org>
1822
1823 * search.c (Freplace_match): Handle nonexistent
1824 back-references properly.
1825
18262004-01-03 Richard M. Stallman <rms@gnu.org>
1827
1828 * window.c (decode_any_window): New function.
1829 (Fwindow_height, Fwindow_width, Fwindow_edges)
1830 (Fwindow_pixel_edges, Fwindow_inside_edges)
1831 (Fwindow_inside_pixel_edges): Use decode_any_window.
1832
ff236419
JD
18332004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1834
1835 * process.h: synch_process_termsig new variable.
1836
1837 * callproc.c: Define synch_process_termsig.
1838 (Fcall_process): Initiate synch_process_termsig to zero and
1839 check if non-zero and get signal name after subprocess has ended.
1840
1841 * process.c (sigchld_handler): Set synch_process_termsig
1842 if terminated by a signal. synch_process_death setting removed.
1843
1844 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
1845
41b867ea
AS
18462004-01-26 Andreas Schwab <schwab@suse.de>
1847
1848 * print.c (print_preprocess): Declare size as EMACS_INT to not
1849 lose bits.
1850 (print_object): Likewise.
1851 * alloc.c (Fpurecopy): Likewise.
1852
a08084ff
LT
18532004-01-25 Luc Teirlinck <teirllm@auburn.edu>
1854
1855 * window.c (Fwindow_minibuffer_p): Doc fix.
1856
b19ac475
JY
18572004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
1858
1859 * editfns.c (Fformat): Make both passes accept the same set of flags.
1860
fe905025
KH
18612004-01-23 Kenichi Handa <handa@m17n.org>
1862
1863 * fns.c (Fmd5): If OBJECT is a buffer different from the current
1864 one, set buffer to OBJECT temporarily.
1865
438fc6c0
SM
18662004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
1867
455316e2
SM
1868 * keyboard.c (kbd_buffer_gcpro): Remove.
1869 (kbd_buffer_store_event, clear_event, Fdiscard_input)
1870 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
1871 Don't initialize and/or maintain the variable any more. It was made
1872 redundant by my commit of 2003-06-15.
1873
438fc6c0
SM
1874 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
1875
5335a4ee
JD
18762004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1877
1878 * lisp.h: Add undef DECL_ALIGN.
1879
dcdaeebc
SM
18802004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
1881
1882 * process.c (wait_reading_process_input) [SYNC_INPUT]:
1883 Check interrupt_input_pending explicitly.
1884
1885 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
1886
1887 * keyboard.c (handle_async_input): New fun,
1888 extracted from input_available_signal.
1889 (input_available_signal, reinvoke_input_signal): Use it.
1890
9076a823
SM
18912004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
1892
d7107586
SM
1893 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
1894
1895 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
1896 manipulation macros for when tags are in the lower bits.
1897 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
1898 (DECL_ALIGN): New macro.
1899 (DEFUN): Use it.
1900
1901 * lisp.h [ENABLE_CHECKING]: Don't force union type.
1902
1903 * s/darwin.h (__attribute__): Remove outdated workaround.
1904
1905 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
1906
1907 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
1908 Don't check range of malloc address.
1909 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
1910
9076a823
SM
1911 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
1912
1913 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
1914
ba029065
KH
19152004-01-19 Kenichi Handa <handa@m17n.org>
1916
1917 * fontset.c (fontset_font_pattern): Fix previous change.
1918
7af0e8d7
MB
19192004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
1920
1921 * xdisp.c (Voverflow_newline_into_fringe)
1922 (move_it_in_display_line_to, redisplay_internal)
1923 (update_window_fringes, redisplay_window, display_line, window):
1924 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
1925 that it compiles without a window-system.
1926 * dispnew.c (direct_output_for_insert, update_window): Likewise.
1927
77a9cf69
KS
19282004-01-16 Kim F. Storm <storm@cua.dk>
1929
1930 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
1931
a64387ee 1932 * buffer.c (init_buffer_once): Set buffer_defaults and
77a9cf69
KS
1933 buffer_local_flags for indicate_buffer_boundaries.
1934 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
1935 default- variable for it.
1936
1937 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
1938 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
d7107586 1939 New members exact_window_width_line_p and cursor_in_fringe_p for
77a9cf69
KS
1940 overflowing newlines into right fringe.
1941 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
1942 and indicate_bottom_line_p for buffer boundaries and scrolling.
1943 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
1944 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
1945 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
1946 and HOLLOW_SQUARE_BITMAP.
1947 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
1948 Add prototypes.
1949
1950 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
1951 instead of related indicator fields.
1952 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
1953 (direct_output_for_insert): Handle exact width lines like
1954 contined lines. Call update_window_fringes.
1955 (update_window): Call update_window_fringes.
1956 (scrolling_window): Don't skip desired rows with changed bitmaps.
1957 Check if fringe bitmaps changes when assigning scrolled rows.
1958
1959 * xdisp.c (Voverflow_newline_into_fringe): New variable.
1960 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
1961 (move_it_in_display_line_to): Overflow newline into fringe for
1962 rows that are exactly as wide as the window.
1963 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
1964 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
1965 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
1966 (fringe_bitmaps): Add new bitmaps.
1967 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
1968 Select proper bitmap for cursor in fringe when appropriate.
1969 Handle alignment of bitmap to top or bottom of row.
1970 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
1971 done by update_window_fringes.
1972 (update_window_fringes, draw_window_fringes): New functions.
1973 (redisplay_internal): Call update_window_fringes in case only
1974 cursor row is updated.
1975 (redisplay_window): Call update_window_fringes.
1976 Explicitly call draw_window_fringes if redisplay was done using
1977 the current matrix or the overlay arrow is in the window.
1978 (try_window_reusing_current_matrix): Mark scrolled rows for
1979 fringe update (to update buffer-boundaries / scrolling icons).
1980 (find_last_unchanged_at_beg_row): Handle exact width lines line
1981 continued lines.
1982 (display_line): Overflow newline into fringe for rows that are
1983 exactly as wide as the window. Don't append space for newline
d7107586 1984 in this case.
77a9cf69
KS
1985 (notice_overwritten_cursor): Explicitly clear cursor bitmap
1986 in fringe as if it had been overwritten.
1987 (erase_phys_cursor): Erase cursor bitmap in fringe.
d7107586 1988 (syms_of_xdisp): Mark show-trailing-whitespace and
77a9cf69
KS
1989 void-text-area-pointer as user options.
1990 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
d7107586 1991
77a9cf69
KS
1992 * xterm.c (x_update_window_end): Call draw_window_fringes.
1993 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
1994 in row instead of actually drawing fringe bitmaps.
1995 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
1996 (x_draw_window_cursor): Draw cursor in fringe.
1997
1998 * w32term.c (x_update_window_end): Call draw_window_fringes.
1999 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
2000 in row instead of actually drawing fringe bitmaps.
2001 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
2002 (w32_draw_window_cursor): Draw cursor in fringe.
2003
2004 * macterm.c (x_update_window_end): Call draw_window_fringes.
2005 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
2006 in row instead of actually drawing fringe bitmaps.
2007 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
2008 (mac_draw_window_cursor): Draw cursor in fringe.
2009
a633a954
JD
20102004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2011
2012 * xterm.c (handle_one_xevent): Don't handle characters that are part
2013 of an old style (XLookupString) compose sequence.
2014
80460525
KH
20152004-01-15 Kenichi Handa <handa@m17n.org>
2016
2017 * search.c (Freplace_match): Use make_multibyte_string or
2018 make_unibyte_string according to the buffer multibyteness.
2019
7fc34f85
SM
20202004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
2021
2022 * alloc.c (struct interval_block, struct string_block)
2023 (struct symbol_block, struct marker_block, live_string_p)
2024 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
2025 Better preserve alignment for objects in blocks.
2026 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
2027
2028 * lread.c (defvar_per_buffer): Remove dead declaration.
2029
2030 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
2031 space size.
2032
66070bd1
JD
20332004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2034
2035 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
2036 if a key press should pop down. Only pop down if a key is pressed
2037 outside the menu/dialog.
2038 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
2039 popup_get_selection.
2040 (create_and_show_dialog): Pass 1 for down_on_keypress to
2041 popup_get_selection.
2042
de7515d6
JD
20432004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2044
2045 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
2046 BLOCK/UNBLOCK_INPUT.
2047
160b1b50
JD
20482004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2049
2050 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
2051 specified.
2052
3a9f36e6
KH
20532004-01-08 Kenichi Handa <handa@m17n.org>
2054
2055 * editfns.c (Fformat): Fix '&' to '&&'.
2056
3803eb32
AS
20572004-01-08 Andreas Schwab <schwab@suse.de>
2058
2059 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
2060 size if PSEUDOVECTOR_FLAG is set.
2061
9da88f37
KH
20622004-01-07 Kenichi Handa <handa@m17n.org>
2063
74ac5074
KH
2064 * charset.c (Fdeclare_equiv_charset): Fix docstring.
2065
9da88f37
KH
2066 * fontset.c (fontset_ref_via_base): Fix previous change.
2067
05faee07
KS
20682004-01-07 Kim F. Storm <storm@cua.dk>
2069
2070 * process.c (read_process_output): Only activate adaptive
2071 buffering if we read less than 256 bytes at a time.
2072
634910c8
KS
20732004-01-06 Kim F. Storm <storm@cua.dk>
2074
2075 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
2076 object and image object. Return glyph width and height.
2077 (mode_line_string, marginal_area_string): Ditto.
2078
2079 * dispextern.h (buffer_posn_from_coords, mode_line_string)
2080 (marginal_area_string): Fix prototypes.
2081
2082 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
2083 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
2084 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
2085
2086 * keyboard.c (make_lispy_position): Use modified mode_line_string,
2087 buffer_posn_from_coords, and marginal_area_string functions to
2088 include both string object and image object in the lispy position.
2089 Also add actual glyph width and height to position.
2090 (read_key_sequence): Use real buffer position from mouse
2091 event to find keymap property even when click is in marginal area.
2092
2093 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
2094 mode_line_string and marginal_area_string functions to handle
2095 both string object and image object properties.
d7107586 2096
57951c2e
AS
20972004-01-06 Andreas Schwab <schwab@suse.de>
2098
2099 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
2100 character.
2101
181e6a61
AS
21022004-01-02 Andreas Schwab <schwab@suse.de>
2103
d7107586
SM
2104 * macterm.c (emacs_options, x_initialized, same_x_server):
2105 Remove unused (and duplicated) definitions.
181e6a61 2106
31e0fbdd
KS
21072004-01-02 Kim F. Storm <storm@cua.dk>
2108
2109 * process.h (struct Lisp_Process): New members for adaptive read
2110 buffering: adaptive_read_buffering, read_output_delay, and
2111 read_output_skip.
2112
2113 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
2114 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
2115 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
2116 (process_output_delay_count, process_output_skip): New vars.
2117 (Vprocess_adaptive_read_buffering): New variable.
2118 (make_process): Initialize adaptive read buffering members.
2119 (Fstart_process): Set adaptive_read_buffering member.
2120 (deactivate_process): Cleanup adaptive read buffering.
2121 (wait_reading_process_input): Temporarily omit delayed
2122 subprocesses from the set of file descriptors to read from;
2123 adjust the select timeout if we skipped any subprocesses.
2124 (read_process_output): Increase adaptive read buffering delay if
2125 we read less than a full buffer; reduce delay when we read a
2126 full buffer.
2127 (send_process): Simplify using local Lisp_Process var.
2128 Reset adaptive read buffering delay after write.
2129 (init_process): Initialize process_output_delay_count and
2130 process_output_skip.
2131 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
2132
68c6a789
JR
21332004-01-01 Jason Rumney <jasonr@gnu.org>
2134
d7107586 2135 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
68c6a789 2136
3f70fe82
LT
21372003-12-30 Luc Teirlinck <teirllm@auburn.edu>
2138
2139 * print.c (Ferror_message_string): Add hyperlink in the docstring
2140 to the definition of `signal' in the Elisp manual.
2141 * eval.c (Fsignal): Ditto.
2142
a64387ee 21432003-12-29 James Clark <jjc@jclark.com> (tiny change)
c2be49ed
EZ
2144
2145 * fns.c (internal_equal): Return t for two NaN arguments.
2146
7abd90ea
RS
21472003-12-29 Richard M. Stallman <rms@gnu.org>
2148
2149 * data.c (store_symval_forwarding): Handle setting
2150 default-fill-column, etc., by changing the value in
2151 buffers that use the default.
2152
2153 * minibuf.c (Fset_minibuffer_window): Doc fix.
2154
2155 * fileio.c (choose_write_coding_system): Ignore auto_saving
2156 if using the visited file for auto saves.
2157 (Fwrite_region): Don't update SAVE_MODIFF
2158 if auto-saving in visited file.
2159
3e7cfcdc
KH
21602003-12-29 Kenichi Handa <handa@m17n.org>
2161
2162 * dispextern.h (face_font_available_p): Extern it.
2163
2164 * fontset.c (Voverriding_fontspec_alist): New variable.
2165 (lookup_overriding_fontspec): New function.
d7107586 2166 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
3e7cfcdc
KH
2167 (fontset_font_pattern): Likewise.
2168 (regulalize_fontname): New function.
2169 (Fset_fontset_font): Call regulalize_fontname.
2170 (Fset_overriding_fontspec_internal): New function.
d7107586
SM
2171 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
2172 Defsubr Sset_overriding_fontspec_internal.
3e7cfcdc
KH
2173
2174 * xfaces.c (face_font_available_p): New function.
2175
7abd90ea
RS
21762003-12-28 Richard M. Stallman <rms@gnu.org>
2177
2178 * buffer.c (Fother_buffer): Don't crash if BUF is nil
2179 or if its name is nil.
2180
2181 * buffer.c (Fkill_buffer): Don't delete auto-save file
2182 if it's the same as the visited file.
2183
de1d1a40
LT
21842003-12-28 Luc Teirlinck <teirllm@auburn.edu>
2185
2186 * coding.c (Fcheck_coding_system): Doc fix.
2187
204fb75e
KS
21882003-12-28 Kim F. Storm <storm@cua.dk>
2189
2190 * Makefile.in (eval.o): Depend on dispextern.h.
2191
2192 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
2193 image glyph using image's ascent.
2194 (mode_line_string): Return image glyph as object clicked on.
2195 Adjust y0 for image glyph using image's ascent.
2196
2197 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
2198 (struct glyph): New members, ascent and descent. Used to save
2199 this glyph's ascent and descent, instead of having.
2200 (struct glyph): Declare member face_id using FACE_ID_BITS.
2201 (find_hot_spot): Add prototype.
2202
2203 * keyboard.c (Qimage): Remove extern (now in lisp.h).
2204 (QCmap): Declare extern.
2205 (make_lispy_position): When position is inside image hot-spot,
2206 use hot-spot element's id as posn element.
2207
2208 * lisp.h (IMAGEP): New macro to test for image object type.
2209 (Qimage): Declare extern.
2210
2211 * macfns.c (Qimage): Remove extern (now in lisp.h).
2212 (valid_image_p, parse_image_spec): Use IMAGEP macro.
2213
2214 * macterm.c (Qface, Qmouse_face): Remove unused externs.
2215
2216 * w32fns.c (Qimage): Remove extern (now in lisp.h).
2217 (valid_image_p, parse_image_spec): Use IMAGEP macro.
2218
2219 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
2220
2221 * w32term.c (Qface, Qmouse_face): Remove unused externs.
2222
2223 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
2224 pointer types.
2225 (Qrelative_width, Qalign_to): Remove unused variables.
2226 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
2227 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
2228 image maps.
d7107586 2229 (x_y_to_hpos_vpos): Return glyph relative coordinates through
204fb75e
KS
2230 new dx and dy args.
2231 Remove buffer_only_p arg (always 0). Simplify code accordingly.
2232 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
2233 than row's ascent and height, to get sensible height on tall rows.
2234 (build_desired_tool_bar_string): Remove Qimage extern.
2235 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
2236 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
2237 image glyph is alone on the last line.
2238 (append_glyph, append_composite_glyph, produce_image_glyph)
d7107586 2239 (append_stretch_glyph): Set glyph's ascent and descent.
204fb75e 2240 (on_hot_spot_p): New function to check if position is inside an
d7107586 2241 rectangular, circular, or polygon-shaped image hot-spot,
204fb75e
KS
2242 (find_hot_spot): New function to search for image hot-spot.
2243 (Flookup_image_map): New defun to search for image hot-spot.
2244 (define_frame_cursor1): New aux function to determine frame pointer.
2245 (note_mode_line_or_margin_highlight, note_mouse_highlight):
2246 Handle `pointer' text property and :pointer image property to
2247 control frame pointer shape. Detect image hot-spots for pointer
2248 and help_echo properties. Use define_frame_cursor1.
2249 (note_mouse_highlight): Use Vvoid_text_area_pointer.
2250 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
2251 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
2252
2253 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
2254
2255 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
2256 (Qimage): Remove extern (now in lisp.h).
2257 (valid_image_p, parse_image_spec): Use IMAGEP macro.
2258
2259 * xmenu.c (show_help_event): Remove unused code.
2260
2261 * xterm.c (Qface, Qmouse_face): Remove unused externs.
2262 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
2263 row's ascent and descent, to get a sensible height on tall rows.
2264
fc052137
LT
22652003-12-25 Luc Teirlinck <teirllm@auburn.edu>
2266
2267 * minibuf.c (Fcompleting_read): Undo previous change.
2268
a64387ee 22692003-12-25 Lars Hansen <larsh@math.ku.dk>
b9148500
LH
2270
2271 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
2272 Arguments GCPRO'ed in call to file name handler.
2273
56ffd194
TTN
22742003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
2275
2276 * termcap.c (tgetst1): Scan for "%pN"; if all
2277 N are continuous in [1,9], remove all "%pN".
2278
5202d23d
JD
22792003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2280
f26fab36
JD
2281 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
2282
5202d23d
JD
2283 * xfaces.c (lface_fully_specified_p): Take into account that
2284 MAC OS always have unspecified stipple.
2285
8babaa59
TTN
22862003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
2287
2288 * tparam.c (tparam1): Add handling for `%pN', which
2289 means use param N for the next substitution.
2290
2d176448
TTN
22912003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
2292
2293 * xfaces.c (Fcolor_gray_p): Fix omission bug:
2294 In case `frame' is nil, consult the selected frame.
2295 (Fcolor_supported_p): Likewise.
2296
adb0708c
LT
22972003-12-23 Luc Teirlinck <teirllm@auburn.edu>
2298
000eeb15
LT
2299 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
2300 Doc fixes.
0dc72b11
LT
2301
2302 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
2303 and an integer. Adapt the introductory comment accordingly.
adb0708c
LT
2304 (Fread_from_minibuffer): Delete code moved into read_minibuf.
2305 Doc fix.
2306 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
2307 read_minibuf.
2308 (Fcompleting_read): Delete code moved into read_minibuf.
d7107586 2309 (Ftest_completion): Make it handle obarrays and hash tables correctly.
adb0708c 2310
2e4d132b
KH
23112003-12-03 Kenichi Handa <handa@m17n.org>
2312
2313 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
2314 encoding sequence.
2315
3999c705
KH
23162003-12-01 Kenichi Handa <handa@m17n.org>
2317
2318 * composite.c (syms_of_composite): Don't make the compostion hash
2319 table week.
2320
d344ecbb
LT
23212003-11-30 Luc Teirlinck <teirllm@auburn.edu>
2322
2323 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
2324 * textprop.c (Fget_char_property_and_overlay): New function.
2325 (syms_of_textprop): Defsubr it.
2326
03d6484e
JD
23272003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2328
019b1f0e
JD
2329 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
2330 to compile on terminal configuration.
2331
03d6484e
JD
2332 * fileio.c (Fread_file_name): Check use_file_dialog also before
2333 calling Fx_file_dialog.
2334
2335 * fns.c: use_file_dialog: New variable.
2336 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
2337
442d3fd0
KS
23382003-11-29 Kim F. Storm <storm@cua.dk>
2339
2340 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
2341 (syms_of_msdos): Don't intern and staticpro them.
2342
0f6a07a8
KS
23432003-11-27 Kim F. Storm <storm@cua.dk>
2344
2345 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
2346 coordinates relative to glyph at posn. If glyph is an image,
2347 return that as object at posn. Callers changed.
2348 (mode_line_string, marginal_area_string): Calculate and return
2349 pixel coordinates relative to glyph. Callers changed.
2350
2351 * dispextern.h (buffer_posn_from_coords, mode_line_string)
2352 (marginal_area_string): Fix prototypes.
2353 (window_box_left_offset, window_box_right_offset): Add prototypes.
2354
2355 * frame.h (get_specified_cursor_type, get_window_cursor_type):
2356 Remove prototypes.
2357
2358 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
2359
2360 * keyboard.c (make_lispy_position): Add x and y coordinates
2361 relative to the current glyph as 7th element of position.
2362 If glyph is an image, return it in the object element.
2363 (read_key_sequence): Skip checks for keymap property in cases
2364 where POSN_STRING is not a string (e.g. an image).
2365
2366 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
2367 (Vshow_text_cursor_in_void): New variable.
2368 (glyph_to_pixel_coords): Don't use negative hpos.
2369 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
2370 (append_stretch_glyph): Change ascent arg to be actual value
2371 in pixels rather than ratio to height. Callers changed.
2372 (calc_pixel_width_or_height): New aux function, implementing
2373 pixel based artihmetic for glyph widths and heights.
2374 (produce_stretch_glyph): Use calc_pixel_width_or_height for
2375 :width, :height, :align-to, and :ascent, thus allowing these to
2376 be specified in pixels as well as multiples of characters.
2377 Don't produce stretch glyphs with zero width or height.
2378 (get_specified_cursor_type): Declare static.
2379 (get_window_cursor_type): Declare static. Add glyph arg to be
2380 able to know when cursor is on an image; always substitute
2381 hollow-box cursor for filled-box cursor on images, to avoid
2382 negative images and flicker when blinking the cursor.
2383 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
2384 (note_mode_line_or_margin_highlight): Use non-text cursor rather
2385 than vertical scroll-bar cursor in display margins.
2386 (note_mouse_highlight): Use non-text cursor rather than text
2387 cursor in fringes and over images in the text area.
2388 Use non-text cursor when mouse pointer is outside editable text,
2389 i.e. in the void after end-of-line or end-of-buffer; this was
2390 already done for W32, but is now standard for all systems --
2391 user can toggle show-text-cursor-in-void to get old behaviour.
2392 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
2393 Vdisplay_pixels_per_inch.
2394
00498bfc
AS
23952003-11-25 Andreas Schwab <schwab@suse.de>
2396
2397 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
2398 EMACS_INT to not lose bits.
2399 (Ffillarray): Don't set bits beyond the size of a bool vector.
2400
edaa824d
KS
24012003-11-25 Kim F. Storm <storm@cua.dk>
2402
2403 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
2404 define this defun on systems that cannot use stderr as lvalue.
2405
74d6f539
GM
24062003-11-24 Gerd Moellmann <gerd@gnu.org>
2407
2408 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
2409 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
2410 ld's default is incompatible with unexec.
2411
6a1ff3ba
KS
24122003-11-23 Kim F. Storm <storm@cua.dk>
2413
63dc7c6b
KS
2414 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
2415 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
2416 (Fforce_window_update): New defun.
2417 (syms_of_window): Defsubr it.
2418 (Fset_window_margins, Fset_window_fringes): Doc fix.
2419
6a1ff3ba
KS
2420 * print.c (Fredirect_debugging_output): New defun.
2421 (syms_of_print): Defsubr it.
2422
aef109b7
LT
24232003-11-22 Luc Teirlinck <teirllm@auburn.edu>
2424
2425 * fns.c (Fset_char_table_parent): Doc fix.
2426
6a1ff3ba 24272003-11-22 Kim F. Storm <storm@cua.dk>
63ccbe21
KS
2428
2429 * dispnew.c (buffer_posn_from_coords): Return actual row/column
2430 for glyph clicked on, rather than (unused) pixel positions.
2431 (mode_line_string, marginal_area_string): Change X and Y args to
2432 pointers for returning actual row/column for glyph clicked on.
2433 Simplify and optimize loops.
2434
aef109b7
LT
2435 * dispextern.h (mode_line_string, marginal_area_string):
2436 Update prototypes.
63ccbe21
KS
2437
2438 * keyboard.c (make_lispy_position): New function for generating
2439 mouse click positions from frame and pixel coordinates.
2440 Enhanced to return buffer position and actual row/column for
2441 events outside the text area using updated mode_line_string and
2442 marginal_area_string functions.
2443 Return left-fringe and right-fringe clicks as such, rather than
2444 clicks in text area.
2445 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
2446 pixel_to_glyph_coords, as we never use the results.
2447 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
2448 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
2449 Eliminate unused code in WHEEL_EVENT handling.
2450 (make_lispy_movement): Use make_lispy_position.
2451
2452 * window.c (coordinates_in_window): Remove redundant tests.
2453 Fix returned X pixel value for left-margin.
2454
2455 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
2456 mode_line_string and marginal_area_string parameters.
2457
a64387ee 24582003-11-22 Lars Hansen <larsh@math.ku.dk>
930a9995 2459
d7107586
SM
2460 * w32.c (struct the_group, getgrgid): Add.
2461 * mac.c (struct my_group, getgrgid): Add.
aef109b7 2462
3dbf3426
LT
24632003-11-21 Luc Teirlinck <teirllm@auburn.edu>
2464
2465 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
2466
cae8ddbb 24672003-11-21 Lars Hansen <larsh@math.ku.dk>
ded4064f 2468
d7107586
SM
2469 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
2470 include in call to file name handler. Optionally translate numeric
2471 UID and GID to strings. Update docstring.
2472 (directory_files_internal): Add parameter ID-FORMAT.
2473 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
2474 include in call to file name handler and call to
2475 directory_files_internal. Update Docstring.
2476 (Fdirectory_files): Add dummy parameter in call to
2477 directory_files_internal.
2478 * lisp.h (Qinteger): Add.
2479 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
2480 (Ffile_attributes): Add parameter.
2481 * data.c (Qinteger): Export.
cae8ddbb 2482
2550b848
LT
24832003-11-21 Luc Teirlinck <teirllm@auburn.edu>
2484
3dbf3426 2485 * fns.c (Freverse, Fnreverse): Doc fixes.
2550b848 2486
88380018
KS
24872003-11-19 Kim F. Storm <storm@cua.dk>
2488
2489 * xdisp.c (init_iterator): Initialize it->start to position
2490 before reseating (in case start position is invisible).
2491 (init_to_row_start): Set it->start to row-start.
2492 (redisplay_window): Accept optional_new_start if start position
2493 is invisible (in which case IT_CHARPOS overshoots PT).
2494 (display_line): Setup row->start from it->start (rather than
2495 it->current which is wrong if first char on line is invisible).
2496 When done, reseat it->start to it->current (= start of next row).
2497 (expose_area): Fix exposure of text area when first char (e.g. TAB)
2498 is only partially visible.
2499
2500 * dispextern.h (struct it): New member start.
2501
854c1a59
SM
25022003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
2503
455316e2
SM
2504 * alloc.c (make_float, Fcons): Clear the markbit at init time.
2505 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
2506 of block_index outside of the macro call.
2507 (Fgarbage_collect): Remove null code.
2508
2509 * m/amdx86-64.h: Don't redefine XPNTR.
2510
854c1a59
SM
2511 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
2512 of VALMASK.
2513
2514 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
2515 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
2516 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
2517
2518 * lisp.h (VALMASK): Only define for non-union type.
2519 (MARKBIT): Remove.
2520 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
2521 (XTYPE): Define unconditionally.
2522 (XSETTYPE): Remove one more remnant.
2523 (EQ): Define differently for the union and non-union cases.
2524 (INTMASK): New bit mask.
2525 (struct Lisp_Marker): Move down to prepare for upcoming patch.
2526 (GC_EQ): Delegate to EQ.
2527
2528 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
2529
a0c6ef2d
JD
25302003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2531
2532 * xterm.c (x_window_to_scroll_bar): Move check of display to
2533 where window_id is compared.
2534
859492c4
KS
25352003-11-17 Kim F. Storm <storm@cua.dk>
2536
2537 * dispextern.h (struct it): New member first_vpos.
2538
2539 * xdisp.c (start_display): Set it->first_vpos.
2540 (try_window_id): Use first_vpos to start display in first _text_
2541 line if no reusable lines at start of window with header line.
2542
810f2256
JD
25432003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2544
7c402969 2545 * w32fns.c (XPutPixel):
854c1a59
SM
2546 * w32bdf.c (w32_init_bdf_font):
2547 * sunfns.c (sel_read):
2548 * process.c (Fmake_network_process):
2549 * frame.c (store_frame_param):
2550 * fontset.c (Fset_fontset_font):
2551 * emacs.c (shut_down_emacs):
a64387ee 2552 * ccl.c (ccl_driver): Remove period at end of error message.
7c402969 2553
a32e9bfd
JD
2554 * config.in: Regenerate.
2555
810f2256
JD
2556 * xfns.c (x_window_to_frame, x_any_window_to_frame)
2557 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
2558 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
2559 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
2560 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
2561
2562 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
2563
2564 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
2565 (XTmouse_position, handle_one_xevent): Pass Display* to
2566 x_window_to_scroll_bar.
2567 (x_window_to_scroll_bar): Take a Display* argument.
2568 Check that display for frame is equal to Display* argument.
854c1a59 2569 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
810f2256
JD
2570 x_display_info_for_display instead. Use Display in xev instead
2571 of GDK_DISPLAY.
2572 (x_dispatch_event): Call x_display_info_for_display.
2573 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
2574 (x_connection_closed): Call xg_display_close for GTK.
2575 (x_term_init): Call xg_display_open for additional displays.
2576 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
2577 for GTK.
2578
2579 * xmenu.c (single_menu_item, mouse_position_for_popup)
2580 (x_activate_menubar): Formatting adjustments.
2581
2582 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
2583 adjustments.
2584
2585 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
2586 (xg_display_close, xg_create_default_cursor)
2587 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
2588 handling.
854c1a59
SM
2589 (xg_left_ptr_cursor): Remove.
2590 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
810f2256
JD
2591 cursor here.
2592 (xg_win_to_widget): Take Display* argument, call
2593 gdk_xid_table_lookup_for_display.
2594 (xg_create_frame_widgets, xg_get_file_name, create_menus)
2595 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
2596 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
2597 in FRAME_X_DISPLAY_INFO.
2598 (xg_get_scroll_id_for_window): Take Display* argument.
2599 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
854c1a59 2600 (xg_initialize): Remove xg_left_ptr_cursor.
810f2256
JD
2601
2602 * gtkutil.h: xg_get_scroll_id_for_window, xg_win_to_widget takes
2603 Display* argument also. Declare xg_display_open,
2604 xg_display_close, xg_create_default_cursor.
2605
0b03cc78
JD
26062003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2607
2608 * xterm.c (x_detect_focus_change): Do not change focus frame for
2609 Enter/LeaveNotify if the current focus frame has explicit focus.
2610
77e688fa
KS
26112003-11-14 Kim F. Storm <storm@cua.dk>
2612
2613 * dispnew.c (update_text_area): Fix redisplay error when hscroll
2614 is active and first glyph is only partially visible.
854c1a59 2615
dd429b03
KH
26162003-11-13 Kenichi Handa <handa@m17n.org>
2617
2618 * xdisp.c (select_frame_for_redisplay): New function.
2619 (redisplay_internal): Record also selected_frame for
2620 unwind_redisplay. Call select_frame_for_redisplay before
2621 redrawing each frame.
2622 (unwind_redisplay): Argument changed to a cons.
2623
6d9266f4
LT
26242003-11-12 Luc Teirlinck <teirllm@auburn.edu>
2625
2626 * fns.c (Fstring_to_multibyte): Doc fix.
2627
80060eb3
KH
26282003-11-11 Kenichi Handa <handa@m17n.org>
2629
2630 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
2631
74305183
JD
26322003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2633
2634 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
2635 program specified positions.
2636
cfda993e
JD
26372003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2638
2639 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
2640
df211069
KH
26412003-11-08 Kenichi Handa <handa@m17n.org>
2642
2643 * Makefile.in (lisp): Add kannada.el.
2644 (shortlisp): Likewise.
2645
4307d534
KH
26462003-11-07 Kenichi Handa <handa@m17n.org>
2647
854c1a59
SM
2648 * coding.c (coding_allocate_composition_data):
2649 Reset coding->composing to COMPOSITION_NO.
4307d534
KH
2650 (coding_restore_composition): Detect invalid composition data.
2651 Give Fstring and Fvector a Lispy integer, not C int.
2652
854c1a59
SM
26532003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
2654
2655 * floatfns.c (Flogb): Don't use VALMASK.
2656
2657 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
2658 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
2659
2660 * lisp.h (XINT): Move the cast to clarify what is going on.
2661 (GCTYPEMASK, XSETTYPE): Remove.
2662 (XGCTYPE): Make it an alias of XTYPE.
2663
d04103a1
JD
26642003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2665
2666 * xterm.c (x_term_init): Fix formatting.
2667
da18b5ac
JD
26682003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2669
2670 * gtkutil.h: Declare xg_have_tear_offs, remove xg_keep_popup
2671 and xg_did_tearoff.
2672
2673 * gtkutil.c: Remove variable xg_did_tearoff.
2674 (xg_have_tear_offs): New function.
2675 (tearoff_remove): Just decrease xg_detached_menus.
2676 (tearoff_activate): Increase xg_detached_menus and call
2677 tearoff_remove when tearoff is removed.
854c1a59 2678 (xg_keep_popup): Remove function.
da18b5ac
JD
2679 (create_menus): Give add_tearoff_p as argument to recursive
2680 call to create_menus.
2681 (xg_create_widget): Use variables instead of multiple
2682 strcmp. Tell create_menus to create tear off only for
2683 menu bar menus.
2684 (xg_update_menubar): Change title for a detached menu also.
2685 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
2686 of deep_p.
2687 (xg_initialize): Initialize xg_detached_menus, remove
2688 initialization of xg_did_tearoff.
2689
2690 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
2691 xg_have_tear_offs returns non-zero.
2692 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
2693 call to xg_keep_popup.
2694
64d4923e
AC
26952003-11-01 Andrew Choi <akochoi@shaw.ca>
2696
2697 * macterm.c (XTread_socket): Handle menubar selection and grow
2698 window only for mouseDown events.
854c1a59 2699
6cc8bc07
JD
27002003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2701
2702 * xterm.c (x_term_init): For GTK part, increase x_initialized
2703 to check for more than one display. Use error instead of return 0.
2704
043131c4
AC
27052003-10-31 Andrew Choi <akochoi@shaw.ca>
2706
854c1a59 2707 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
043131c4
AC
2708 (copy_dysymtab): Call it.
2709
bdda99a1
LT
27102003-10-31 Luc Teirlinck <teirllm@auburn.edu>
2711
2712 * eval.c (Fdefvaralias): Doc fix.
2713
800f42ff 27142003-10-26 Luc Teirlinck <teirllm@auburn.edu>
0d11571e
LT
2715
2716 * data.c (Fsetplist): Doc fix.
2717
ef35b389
LK
27182003-10-14 Lute Kamstra <lute@gnu.org>
2719
2720 * window.c (Fset_window_fringes): Clarify docstring.
07107abc 2721
ef35b389 27222003-10-14 Kim F. Storm <storm@cua.dk>
854c1a59 2723
07107abc
KS
2724 * window.c (Fset_window_margins): Simplify arg checking.
2725
f7005886
RS
27262003-10-13 Richard M. Stallman <rms@gnu.org>
2727
2728 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
2729 (print_partial_compiled_pattern): Replace assert with a printout.
2730 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
2731
2732 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
2733
2734 * window.c (Fset_window_margins): Allow only integers as args.
2735 (syms_of_window) <special-display-buffer-names, special-display-regexps>:
2736 Doc fixes.
2737
9c0c2af5
LK
27382003-10-13 Lute Kamstra <lute@gnu.org>
2739
2740 * window.c (Fset_window_fringes): Elaborate docstring.
2741
3f080e4e
AC
27422003-10-12 Andrew Choi <akochoi@shaw.ca>
2743
854c1a59 2744 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
a4887377 2745
3f080e4e
AC
2746 * s/darwin.h (GC_MARK_STACK): Define.
2747
0aa513ed
JD
27482003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2749
2750 * window.c (shrink_windows): New function.
2751 (size_window): Call shrink_windows to calculate window sizes when
2752 shrinking frame with more than one window.
2753
6aa8858a
KS
27542003-10-12 Kim F. Storm <storm@cua.dk>
2755
2756 * xdisp.c (compute_fringe_widths): Doc fix.
2757
c2164d91
KH
27582003-10-08 Kenichi Handa <handa@m17n.org>
2759
854c1a59 2760 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
c2164d91 2761
f82ac129
KH
27622003-10-07 Kenichi Handa <handa@m17n.org>
2763
2764 * coding.c (Qcoding_system_define_form): New variable.
2765 (syms_of_coding): Intern and staticpro it.
2766 (Fcheck_coding_system): Try to autoload the definition of
2767 CODING-SYSTEM.
2768
9296c947
LT
27692003-10-05 Luc Teirlinck <teirllm@auburn.edu>
2770
2771 * fns.c (Frequire): Doc fix.
2772
c1f0671a
JD
27732003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2774
3d8c3826
JD
2775 * xfns.c (Fx_send_client_event): New function as a base for
2776 manipulating extended window manager hints.
6dc15d98 2777 (Fx_send_client_event): Remove unused variable s.
3d8c3826 2778
068ae0fd
JD
2779 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
2780 that function is removed.
2781
2782 * xterm.c (x_set_offset): Use move_offset_left/top instead of
2783 x/y_pixels_outer_diff.
2784 (x_check_expected_move): Calculate move_offset_left/top.
2785
2786 * xterm.h (struct x_output): New members: move_offset_top/left.
2787
854c1a59 2788 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
068ae0fd
JD
2789 call x_set_offset directly.
2790
2791 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
2792
96f09305
JD
2793 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
2794
2795 * xterm.c (x_delete_display): Free font names and font_encoder
2796 in dpyinfo->font_table.
2797
854c1a59
SM
2798 * xfns.c (Fx_close_connection): Only call XFreeFont here.
2799 Move xfree of font names to x_delete_display.
96f09305 2800
c1f0671a
JD
2801 * xterm.h (struct x_display_info): New member, wm_type.
2802 (struct x_output): New members, expected_top/left and
2803 check_expected_move.
2804
2805 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
2806 is received.
854c1a59
SM
2807 (handle_one_xevent): Rename x_check_expected_move from
2808 x_check_fullscreen_move.
c1f0671a
JD
2809 (x_set_offset): Only add WM decoration sizes to modified_top/left
2810 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
854c1a59 2811 (x_check_expected_move): Rename from x_check_fullscreen_move.
c1f0671a
JD
2812 Removed fullscreen specific code. Use check_expected_move,
2813 expected_left/top instead. Also, set wm_type.
2814 (x_term_init): Initialize wm_type to unknown.
2815
2816 * frame.c (x_fullscreen_move): Remove addition of WM decoration
2817 sizes to move_x/y.
2818
be2fdba9
KH
28192003-10-03 Kenichi Handa <handa@m17n.org>
2820
2821 * macterm.c (x_load_font): Clear all members of FONTP before start
2822 filling them.
2823
28242003-10-02 Kenichi Handa <handa@m17n.org>
2825
2826 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
2827 before calling find_ccl_program_func. Call find_ccl_program_func
2828 only when fontp->font_encoder is not NULL.
2829
2830 * xterm.c (x_load_font): Clear all members of FONTP before start
2831 filling them.
2832
26a6e439
JPW
28332003-10-03 John Paul Wallington <jpw@gnu.org>
2834
2835 * keymap.c (map_keymap): Don't abort when binding is a vector.
2836
0d4c2dc2
JR
28372003-10-02 Jason Rumney <jasonr@gnu.org>
2838
854c1a59
SM
2839 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
2840 Sync dependencies with Makefile.in.
a63cf46f
JR
2841 (alloca.o): Remove.
2842
0d4c2dc2
JR
2843 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
2844 filling them.
2845
2846 * w32bdf.c (w32_load_bdf_font): Likewise.
2847
ab8f7d5c
RS
28482003-09-30 Richard M. Stallman <rms@gnu.org>
2849
2850 * term.c (set_tty_color_mode): Calculate current_mode_spec
2851 regardless of value of VAL.
2852
854c1a59 2853 * intervals.c (graft_intervals_into_buffer):
ab8f7d5c
RS
2854 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
2855 Handle over_used when splitting UNDER.
2856
a64387ee 28572003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ab8f7d5c
RS
2858
2859 * regex.c (regex_compile): Free the stack when returning from function.
2860
3413f972
KH
28612003-09-28 Kenichi Handa <handa@m17n.org>
2862
2863 * fontset.c (Finternal_char_font): Change return value to
2864 cons (FONT-NAME . GLYPH-CODE).
2865
a6eeaa81 28662003-09-28 Eli Zaretskii <eliz@gnu.org>
40409f05
EZ
2867
2868 * term.c (tty_setup_colors): Treat any negative argument as -1.
2869
f98ddc99
KH
28702003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
2871
2872 * process.c (send_process): Delete unused temp_buf.
2873
66c8f1a8
DL
28742003-09-26 Dave Love <fx@gnu.org>
2875
2876 * xterm.c (x_bitmap_mask): Declare.
2877
ca716c26
DL
28782003-09-25 Dave Love <fx@gnu.org>
2879
2880 * Makefile.in (fns.o): Depend on md5.h.
2881
fbe57420
KS
28822003-09-25 Kim F. Storm <storm@cua.dk>
2883
2884 * window.c (set_window_buffer): Fix redisplay problems when
2885 switching between buffers with different display margin widths.
2886
ef6ae4ff
KS
28872003-09-23 Kim F. Storm <storm@cua.dk>
2888
2889 * process.c (set_socket_option): Fix :bindtodevice option.
2890 (Fset_network_process_option): Update process contact list when
2891 setting option succeeds.
2892 (Fmake_network_process): Doc fix.
2893
68e03c1c
DL
28942003-09-23 Dave Love <fx@gnu.org>
2895
7146d1c1 2896 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
68e03c1c 2897
a6eeaa81 28982003-09-22 Eli Zaretskii <eliz@gnu.org>
2f809aae
EZ
2899
2900 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
2901 color mode is an integer number (it could be -1).
2902
8fe7d8c8
RS
29032003-09-22 Richard M. Stallman <rms@gnu.org>
2904
2905 * intervals.c (graft_intervals_into_buffer): Correct the main loop
2906 in the case where OVER is longer than UNDER.
2907
2f71b5ea
MY
29082003-09-22 Masatake YAMATO <jet@gyve.org>
2909
7146d1c1 2910 * window.c (Fset_window_scroll_bars): Validate the value of
2f71b5ea 2911 `vertical_type'.
7146d1c1 2912
0c4da023
KS
29132003-09-21 Kim F. Storm <storm@cua.dk>
2914
2915 * frame.c (Vdefault_frame_scroll_bars): New variable.
2916 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
2917 (syms_of_frame): DEFVAR_LISP it, and initialize according to
2918 window-system default scroll bar position.
2919
b648413b
KS
2920 * window.c (Fwindow_scroll_bars): Doc fix.
2921
8f5b9e34
JD
29222003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2923
854c1a59 2924 * xterm.c (x_set_offset): Take window manager decorations into account.
8f5b9e34 2925
b0f23edf
RS
29262003-09-19 Richard M. Stallman <rms@gnu.org>
2927
2928 * atimer.h: Don't include lisp.h.
2929 (P_): Define it here (as well as elsewhere).
2930
2931 * print.c (Fprin1_to_string): Move the PRINTPREPARE
2932 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
2933
2934 * data.c (Fvariable_binding_locus): New function.
2935 (syms_of_data): defsubr it.
2936 (Flocal_variable_p): Delete duplicate call to indirect_variable.
2937
e1283999
DL
29382003-09-18 Dave Love <fx@gnu.org>
2939
ad5f3636
DL
2940 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
2941
e1283999
DL
2942 * process.c (Fnetwork_interface_info): Fix type error.
2943 (Fnetwork_interface_list): Doc fix.
2944 (read_process_output, read_process_output): Delete unused var.
2945
b8c7fd71
KS
29462003-09-17 Kim F. Storm <storm@cua.dk>
2947
2948 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
2949 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
2950 (Fnetwork_interface_info): Check that ifreq struct has required
2951 fields before accessing them; this requires that those fields are
2952 defined as macros, which may be too restrictive on some platforms,
2953 but it is better than failing on other platforms.
2954 (syms_of_process): Only defsubr above fns when included.
2955
11e0a411
DL
29562003-09-17 Dave Love <fx@gnu.org>
2957
2958 * unexalpha.c: Don't include varargs.h.
2959
e9c50801
KS
29602003-09-17 Kim F. Storm <storm@cua.dk>
2961
2962 * process.c (Fset_process_sentinel): Add sentinel to childp plist
2963 for network process.
2964 (socket_options): Add `:' prefix to option names. Add optbit field.
2965 (set_socket_option): Remove no_error arg and special handling of s < 0.
2966 Return 1<<optbit for known option, 0 for unknown.
2967 Do not interpret 0 as false for boolean option (only nil).
2968 Pass failed option and value to report_file_error.
7146d1c1 2969 (Fset_network_process_options): Replace by Fset_network_process_option.
e9c50801
KS
2970 (Fset_network_process_option): New function to set just one option.
2971 (Fmake_network_process): Allow :coding arg to be a cons.
2972 Allow :server arg to be an integer specifying backlog size.
2973 Remove :options arg, and allow options to be specified directly
2974 as :KEY, VALUE pairs. Parse these options before binding socket.
2975 As before, :reuseaddr t is default for a server process, but this
2976 can now be disabled by specifying :reuseaddr nil.
2977 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
2978 (init_process): Availability of network options is now checked with
2979 simpler syntax (featurep 'make-network-process :OPTION); use loop to
2980 setup features.
2981 (syms_of_process): Fix defsubr's for the replaced functions.
2982
a0fc3644
DL
29832003-09-16 Dave Love <fx@gnu.org>
2984
2985 * Makefile.in: Depend on coding.h.
2986
6df2a645
KS
29872003-09-14 Kim F. Storm <storm@cua.dk>
2988
2989 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
2990 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
2991 (syms_of_process): Defsubr them.
2992
2993 * config.in: Regenerate.
7146d1c1
SM
2994
29952003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2996
2997 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
2998 * m/news-r6.h (XUNMARK): Remove.
2999 * m/mips.h (XUNMARK): Remove.
3000 * m/mips-siemens.h (XUNMARK): Remove.
3001 * m/iris4d.h (XUNMARK): Remove.
3002 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
3003
0930c1a1
SM
30042003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
3005
31003b9e
SM
3006 * lisp.h (VALBITS): Don't remove 1 for the markbit.
3007 (union Lisp_Object): Use unsigned int for types. Remove markbit.
3008 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
3009 (XTYPE): Use unsigned right-shift.
3010 (XMARKBIT, XMARK, XUNMARK): Remove.
3011
0930c1a1
SM
3012 * alloc.c (init_intervals, init_symbol, init_marker):
3013 Don't preallocate anything.
3014 (Fgarbage_collect, mark_object): Ignore the markbit.
3015
3016 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
3017
19bb0fcd 30182003-09-08 Lute Kamstra <lute@gnu.org>
5df034de
LK
3019
3020 * xdisp.c (pint2hrstr): New function.
3021 (decode_mode_spec): Add `%i' and `%I' specs.
3022 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
3023 for `mode-line-format'.
3024
03bb6a06
AS
30252003-09-07 Andreas Schwab <schwab@suse.de>
3026
3027 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
3028 avoid warning.
3029
a6eeaa81 30302003-09-07 Eli Zaretskii <eliz@gnu.org>
2063d89c 3031
0930c1a1 3032 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
2063d89c 3033
ed159bbf
KS
30342003-09-03 Kim F. Storm <storm@cua.dk>
3035
3036 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
3037 change (superseded by 2002-08-30 change); the default blink-off
3038 cursor is now again "no cursor".
3039
fe64a394
JR
30402003-09-01 Jason Rumney <jasonr@gnu.org>
3041
3042 * makefile.w32-in (alloca.o): Remove.
3043 (coding.o): Depend on intervals.h
3044 (emacs.o, bytecode.o): Depend on window.h
3045
c0175e24
DL
30462003-09-01 Dave Love <fx@gnu.org>
3047
3048 * Makefile.in (alloca.o): Remove commands.
3049 (coding.o): Depend on intervals.h composite.h window.h.
3050 (emacs.o): Depend on window.h keyboard.h keymap.h.
3051 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
3052 (bytecode.o): Depend on window.h.
3053
a24d4cb2
JR
30542003-08-31 Jason Rumney <jasonr@gnu.org>
3055
4bc2315e
JR
3056 * w32term.c (w32_per_char_metric): Allow cached metrics to be
3057 returned even when font_type is unknown.
3058
a24d4cb2
JR
3059 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
3060
9d35adc7
JD
30612003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3062
3063 * xterm.c (x_term_init): Initialize new fields in x_display_info.
3064
3065 * xterm.h (struct x_display_info): Add red/green/blue_bits and
3066 *_offset.
3067
3068 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
3069 calculate pixel value.
3070
6f68b035
GM
30712003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
3072
0930c1a1
SM
3073 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
3074 Don't tell redisplay display is accurate when it's actually been
3075 paused for pending input.
6f68b035 3076
4828b4d7
RS
30772003-08-29 Richard M. Stallman <rms@gnu.org>
3078
3079 * dispnew.c (adjust_glyph_matrix): Call window_box
3080 whenever W is nonzero.
3081
3082 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
3083 (Fkill_local_variable, Fmake_variable_frame_local)
0930c1a1 3084 (Flocal_variable_p, Flocal_variable_if_set_p):
4828b4d7
RS
3085 Use indirect_variable to trace thru variable aliases.
3086
3087 * config.in: Updated.
3088
3089 * callint.c (Fcall_interactively): Save and restore
3090 Vthis_command, Vthis_original_command, real_this_command,
3091 and current_kboard->Vlast_command.
3092
3093 * abbrev.c (Fexpand_abbrev): Insert before deleting.
3094
e019878d
GM
30952003-08-29 Gerd Moellmann <gerd@gnu.org>
3096
3097 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
3098
85478bc6
KH
30992003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
3100
0930c1a1 3101 * coding.c (decode_coding_iso2022): Initialize local variable c2.
85478bc6
KH
3102 (decode_coding_sjis_big5): Likewise.
3103
07ce82d3
JR
31042003-08-27 Jason Rumney <jasonr@gnu.org>
3105
d3703de3
JR
3106 * w32.c (sys_pipe): Protect against file descriptor overflow.
3107
ee4a01d1
JR
3108 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
3109
07ce82d3
JR
3110 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
3111
a64387ee 31122003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
72d19c66
LK
3113
3114 * xfns.c (Vgtk_version_string): New variable.
3115 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
3116
a6eeaa81 31172003-08-24 Eli Zaretskii <eliz@gnu.org>
5459e42a 3118
0930c1a1 3119 * term.c (term_init): Remove `const' from buffer_size's declaration.
3d8714e7 3120
5459e42a
EZ
3121 * Makefile.in (msdos.o): Depend on intervals.h.
3122
0930c1a1 3123 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
5459e42a 3124
231d6cfb
JD
31252003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3126
3127 * xterm.h (struct x_display_info): New fields: client_leader_window
3128 and Xatom_wm_client_leader.
3129
3130 * xterm.c (x_initialize): Move call to x_session_initialize to ...
3131 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
3132
3133 * xsmfns.c (create_client_leader_window): New function.
3134 (x_session_initialize): Call create_client_leader_window, take
3135 dpyinfo as argument.
3136
3137 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
3138
3139 * Makefile.in (xsmfns.o): Add more depenedencies.
3140
afa88464
DL
31412003-08-21 Dave Love <fx@gnu.org>
3142
3143 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
3144
f730033e
KH
31452003-08-21 Kenichi Handa <handa@m17n.org>
3146
3147 * term.c (term_init): Fix previous change; don't rely on the
3148 length of `buffer' if TERMINFO is defined.
3149
6dca786c
DL
31502003-08-20 Dave Love <fx@gnu.org>
3151
3152 * atimer.h: Include lisp.h.
3153
3154 * lisp.h (EMACS_LISP_H): New.
3155 (popup_activated_flag): Don't declare.
3156
3157 * alloca.c: Some merging with gnulib. Change logic and doc
3158 concerning (x)malloc/(x)free -- no longer Emacs-specific.
3159 [DO_BLOCK_INPUT]: Don't include lisp.h.
3160 (xmalloc, xfree): Declare.
3161 (malloc): Don't declare.
3162
0930c1a1 3163 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
6dca786c
DL
3164 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
3165 atimer.h, blockinput.h.
3166
3167 * alloc.c (lisp_align_malloc): Change type of `aligned'.
3168
3169 * alloca.s: Removed.
3170
3a06a6d9
RS
31712003-08-19 Gerd Moellmann <gerd@gnu.org>
3172
3173 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
3174 use -lncurses.
3175
3176 * term.c (term_init): Use a buffer of size 4096 for tgetent since
3177 FreeBSD returns something longer than 2044. Abort if the end of
3178 the buffer is overwritten.
3179
27eeee55
MB
31802003-08-19 Miles Bader <miles@gnu.org>
3181
3182 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
3183
2f297815
GM
31842003-08-19 Gerd Moellmann <gerd@gnu.org>
3185
f4446bbf
GM
3186 * alloc.c (lisp_align_malloc): Check for memory full when
3187 allocating ablocks, which also avoids freeing a pointer into an
3188 ablocks structure.
3189
3190 * puresize.h (BASE_PURESIZE): Increase to 1100000.
3191
0930c1a1 3192 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
2f297815 3193
0e7d7aae
RS
31942003-08-16 Richard M. Stallman <rms@gnu.org>
3195
3196 * editfns.c (Fencode_time): Doc fix.
3197
31982003-08-16 David Ponce <david@dponce.com>
3199
3200 * fileio.c (Fwrite_region): Fix conditional expression to issue
3201 the right message.
3202
32032003-08-16 Juri Linkov <juri@jurta.org> (tiny change)
3204
3205 * syntax.c (Fforward_word): Argument changed to optional.
0930c1a1 3206 Set default value to 1.
0e7d7aae 3207
5d551295
KH
32082003-08-15 Kenichi Handa <handa@m17n.org>
3209
3210 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
3211 what autoscaled.
3212 (best_matching_font): Once we find a better scalable font, set
3213 non_scalable_has_exact_height_p to 1.
3214 (try_font_list): Call try_alternative_families to try any family
3215 with the given registry.
3216
1661e56b
AS
32172003-08-09 Andreas Schwab <schwab@suse.de>
3218
f29181dc
AS
3219 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
3220
1661e56b
AS
3221 * print.c (print_string): Fix printing of multibyte string with
3222 nontrivial printcharfun.
3223
465aa50a
JD
32242003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3225
3226 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
3227
3228 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
3229
e430e5ba
KH
32302003-07-31 Kenichi Handa <handa@m17n.org>
3231
3232 * process.c (read_process_output): Return the actually read bytes
3233 instead of the result of decoding.
3234
97e7188e
KH
32352003-07-31 Kenichi Handa <handa@m17n.org>
3236
3237 * xterm.h (struct x_bitmap_record): New member have_mask.
3238
3239 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
3240 to 0.
3241 (x_create_bitmap_from_file): Likewise.
3242 (x_destroy_bitmap): Check have_mask member before freeing a mask.
3243 (x_destroy_all_bitmaps): Likewise.
3244 (x_create_bitmap_mask): Set have_mask member to 1.
3245
b53094d6
RS
32462003-07-30 Richard M. Stallman <rms@gnu.org>
3247
3248 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
3249
631f2082
JD
32502003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3251
3252 * gtkutil.c (xg_mark_data): Update calls to mark_object.
3253
c855f2ca
RS
32542003-07-29 Richard M. Stallman <rms@gnu.org>
3255
3256 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
3257 Conditionalize XIM code on HAVE_XIM.
3258
3259 * fns.c (Fclear_string): New function.
3260 (syms_of_fns): defsubr it.
3261
17e6d491
KH
32622003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp> (tiny change)
3263
0930c1a1 3264 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
17e6d491 3265
29ea8ae9
SM
32662003-07-22 Stefan Monnier <monnier@cs.yale.edu>
3267
3268 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
3269
3270 * buffer.c (delete_all_overlays): New function.
3271 * buffer.h (delete_all_overlays): Declare.
3272 * coding.c (run_pre_post_conversion_on_str):
3273 * print.c (temp_output_buffer_setup):
3274 * fileio.c (Finsert_file_contents):
3275 * minibuf.c (get_minibuffer): Use it.
3276
1dd7ccf2
AC
32772003-07-22 Andrew Choi <akochoi@shaw.ca>
3278
3279 * unexmacosx.c (unexec_regions_sort_compare):
3280 (unexec_regions_merge): New functions. Sort and merge unexec
3281 regions before dumping them.
3282
f57bd967
DL
32832003-07-22 Dave Love <fx@gnu.org>
3284
3285 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
3286
7cdee936
SM
32872003-07-21 Stefan Monnier <monnier@cs.yale.edu>
3288
3289 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
3290 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
3291 MARKBIT as the gcmarkbit for strings.
3292
e50886d3
RS
32932003-07-21 Richard M. Stallman <rms@gnu.org>
3294
3295 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
3296
29ea8ae9 3297 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
e50886d3
RS
3298 (syms_of_fns): Corresponding change.
3299
3300 * alloc.c (syms_of_alloc): Doc fixes.
3301
33022003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
3303
3304 * s/netbsd.h: Use -Wl syntax.
3305
fdc39b59
RS
33062003-07-17 Richard M. Stallman <rms@gnu.org>
3307
3308 * xterm.c (xim_initialize): Redo 6/24 change.
3309
9c53385f
SM
33102003-07-15 Stefan Monnier <monnier@cs.yale.edu>
3311
3312 * buffer.c (copy_overlays): Use EMACS_INT for positions.
3313 (Fswitch_to_buffer): Don't signal an error when switching to the same
3314 buffer in a dedicated window.
3315
3316 * alloc.c: Use bitmaps for cons, as was done for floats.
3317 (init_float, init_cons): Let the normal code allocate the first block.
3318 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
3319 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
3320 New macros.
3321 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
3322 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
3323 (live_cons_p): Check the pointer is not past the `conses' array.
3324 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
3325 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
3326 (survives_gc_p): Use CONS_MARKED_P and simplify.
3327 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
3328
dde13196
PE
33292003-07-13 Paul Eggert <eggert@twinsun.com>
3330
3331 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
3332 puts it into BSS instead, at least on Solaris 8 and 9.
3333 This is a valid optimization, and it may occur on other platforms,
3334 so Emacs should not assume that initializing a static variable to
3335 zero puts it into data.
3336 * alloc.c (pure, staticvec):
3337 Initialize these arrays to nonzero, so that they're not
3338 put into BSS by that optimization.
3339
a801bc34
SM
33402003-07-13 Stefan Monnier <monnier@cs.yale.edu>
3341
3342 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
3343 (lisp_align_malloc): Use posix_memalign is available.
3344 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
3345 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
3346 for consistency. Update users.
3347
0c8b2afa
RS
33482003-07-13 Richard M. Stallman <rms@gnu.org>
3349
3350 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
3351
668c2ab0
JB
33522003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
3353
3354 * xterm.c (x_bitmap_icon,x_wm_set_icon_pixmap): Modify to add mask,
3355 and use the Gtk+ function gtk_window_icon_from_file if available.
3356
3357 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
3358 handle mask of bitmaps.
3359 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
3360 mask property.
3361 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
3362
3363 * xterm.h (xg_set_icon): New function.
3364
800bebe3
RS
33652003-07-12 Paul Eggert <eggert@twinsun.com>
3366
3367 * unexelf.c (unexec): Consider a section to precede the .bss
3368 section if its addresses overlap that of .bss.
3369
69e38995
RS
33702003-07-12 Richard M. Stallman <rms@gnu.org>
3371
3372 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
3373
3374 * config.in (HAVE_CRTIN): Add #undef.
3375 (INLINE): Really inline only if OPTIMIZE is defined.
3376
3377 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
3378 END_FILES_1.
3379 (START_FILES_1, END_FILES_1): New macros (conditional).
a801bc34 3380 (LD_SWITCH_SYSTEM_TEMACS): Define.
69e38995
RS
3381
3382 * s/openbsd.h: Don't include bsd4-3.h.
a801bc34
SM
3383 (TERMINFO): Define.
3384 (LIBS_TERMCAP): Define.
3385 (LD_SWITCH_SYSTEM): Define (two definitions).
69e38995
RS
3386
3387 * xfns.c: Include libpng/png.h instead of png.h.
3388
f1d0c238
AS
33892003-07-11 Andreas Schwab <schwab@suse.de>
3390
3391 * buffer.c (modify_overlay): Update prototype.
3392 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
3393 Likewise.
3394
5f6bf5fe
SM
33952003-07-09 Stefan Monnier <monnier@cs.yale.edu>
3396
3397 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
3398 (struct interval): Move to intervals.h.
3399 (struct Lisp_Marker): Use EMACS_INT for position info.
3400 (forward_point): Remove prototype of defunct function.
3401 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
3402 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
3403 (syms_of_textprop, set_text_properties): Remove prototypes that are
3404 already in intervals.h.
3405
3406 * intervals.h (struct interval): Move from lisp.h.
3407 Use EMACS_INT for position and size info.
3408
3409 * coding.c: Include intervals.h for Fset_text_properties.
3410
3411 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
3412 position and length information.
3413
2765b457
SM
34142003-07-09 Stefan Monnier <monnier@cs.yale.edu>
3415
3416 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
3417 position and length information.
3418
2410d73a
SM
34192003-07-09 Stefan Monnier <monnier@cs.yale.edu>
3420
3421 Change overlays_after and overlays_before so the overlays themselves
3422 are linked into lists, rather than using cons cells. After all each
3423 Lisp_Misc already occupies 5 words, so we can add a `next' field to
3424 Lisp_Overlay for free and save up one cons cell per overlay (not
3425 to mention one indirection when traversing the list of overlay).
3426
3427 * lisp.h (struct Lisp_Overlay): New field `next'.
3428
3429 * buffer.h (struct buffer): Change overlays_before and overlays_after
3430 from Lisp lists of overlays to pointers to overlays.
3431
3432 * buffer.c (overlay_strings, recenter_overlay_lists):
3433 Fix typo in eassert in last commit.
3434 (unchain_overlay): New function.
3435 (add_overlay_mod_hooklist): Use AREF.
3436 (copy_overlays, reset_buffer, overlays_at, overlays_in)
3437 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
3438 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
3439 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
3440 (report_overlay_modification, evaporate_overlays, init_buffer_once):
3441 Adjust to new type of overlays_(before|after).
3442
3443 * alloc.c (mark_object): Mark the new `next' field of overlays.
3444 (mark_buffer): Manually mark the overlays_(after|before) fields.
3445
3446 * coding.c (run_pre_post_conversion_on_str):
3447 * editfns.c (overlays_around):
3448 * xdisp.c (load_overlay_strings):
3449 * fileio.c (Finsert_file_contents):
3450 * indent.c (current_column):
3451 * insdel.c (signal_before_change, signal_after_change):
3452 * intervals.c (set_point_both):
3453 * print.c (temp_output_buffer_setup): Use new type for
3454 overlays_(before|after).
3455
04812929
SM
34562003-07-08 Stefan Monnier <monnier@cs.yale.edu>
3457
3458 * buffer.c (report_overlay_modification): Don't run hooks while
3459 traversing the list of overlays.
3460
3461 * buffer.h (struct buffer): Use an int for overlay_center.
3462 (overlays_at, evaporate_overlays, recenter_overlay_lists)
3463 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
3464
3465 * buffer.c (reset_buffer, recenter_overlay_lists)
3466 (adjust_overlays_for_insert, adjust_overlays_for_delete)
3467 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
3468 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
3469 (overlays_at, evaporate_overlays, recenter_overlay_lists)
3470 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
3471
3472 * xdisp.c (fast_find_position): Remove unused var.
3473
3474 * cmds.c (Qexpand_abbrev): New sym.
3475 (syms_of_cmds): Initialize it.
3476 (internal_self_insert): Use it to call expand-abbrev.
3477
2e7ecf15
KS
34782003-07-09 Kim F. Storm <storm@cua.dk>
3479
3480 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if emacs
3481 was configured with --without-xim.
42f81f64 3482 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
2e7ecf15 3483
c6de56a0
RS
34842003-07-07 Richard M. Stallman <rms@gnu.org>
3485
3486 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
3487
3488 * alloc.c (Fgarbage_collect): Doc fix.
3489
b93fb365
KH
34902003-07-07 Nozomu Ando <nand@mac.com> (tiny change)
3491
3492 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
3493
bfe1a3f7
SM
34942003-07-06 Stefan Monnier <monnier@cs.yale.edu>
3495
04812929
SM
3496 * minibuf.c (read_minibuf): UNGCPRO before returning.
3497 (Ftry_completion, Fall_completions): Doc fix.
3498
bfe1a3f7
SM
3499 * alloc.c (live_float_p): Check that p is not past the `floats' array,
3500 now that `floats' is not the last element of the struct any more.
3501
ee79d1aa
JR
35022003-07-06 Jason Rumney <jasonr@gnu.org>
3503
3504 * w32term.h (ClipboardSequence_Proc): New type.
3505
3506 * w32fns.c (clipboard_sequence_fn): New variable.
3507 (globals_of_w32fns): Initialize it.
3508
3509 * w32select.c (last_clipboard_sequence_number): New variable.
3510 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
3511 number if possible.
3512
49723c04
SM
35132003-07-06 Stefan Monnier <monnier@cs.yale.edu>
3514
4698665f
SM
3515 * m/amdx86-64.h (MARKBIT):
3516 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
3517 MARKBIT and ARRAY_MARK_FLAG any more.
3518
3519 * m/hp800.h (XSETMARKBIT):
3520 * m/sr2k.h (XSETMARKBIT):
3521 * lisp.h (XSETMARKBIT): Remove unused macro.
3522
49723c04
SM
3523 * lisp.h (mark_object): Change prototype.
3524
3525 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
3526 (last_marked): Change accordingly.
3527 (mark_interval, mark_maybe_object, mark_maybe_pointer)
3528 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
3529 (mark_buffer): Update calls to mark_object.
3530
3531 * bytecode.c (mark_byte_stack):
3532 * fns.c (sweep_weak_table):
3533 * keyboard.c (mark_kboards): Update calls to mark_object.
3534
1d660eca
JR
35352003-07-06 Jason Rumney <jasonr@gnu.org>
3536
3537 * alloc.c (struct ablock): Only include padding when there is some.
3538
618b5ae4
SM
35392003-07-04 Stefan Monnier <monnier@cs.yale.edu>
3540
3541 * alloc.c (ALIGN): Add casts to simplify usage.
3542 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
3543 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
3544 (struct ablock, struct ablocks): New types.
3545 (free_ablock): New global var.
3546 (lisp_align_malloc, lisp_align_free): New functions.
3547 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
3548 (struct float_block): Reorder and add gcmarkbits.
3549 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
3550 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
3551 (init_float, make_float): Use lisp_align_malloc.
3552 (free_float, live_float_p): Don't use `type' any more.
3553 (make_float): Use FLOAT_UNMARK to access to mark bit.
3554 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
3555 Use FLOAT_MARKED_P to access the mark bit.
3556 (pure_alloc): Simplify use of ALIGN.
3557 (mark_object): Use FLOAT_MARK to access the mark bit.
3558 (gc_sweep): Use new macros to access the float's mark bit.
3559 (init_alloc_once): Init free_ablock.
3560
3561 * lisp.h (struct Lisp_Float): Remove unused field `type'.
3562
3ef06d12
SM
35632003-06-27 Stefan Monnier <monnier@cs.yale.edu>
3564
3565 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
3566 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
3567 (allocate_buffer): Move.
3568 (string_bytes): Don't mask markbit of `size_byte'.
3569 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
3570 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
3571 Use the `size' field of buffers (rather than the `name' field) for
3572 the mark bit, as is done for all other vectorlike objects.
3573 Use the new macros to access the mark bit of vectorlike objects.
3574
e81043aa
RS
35752003-06-26 Richard M. Stallman <rms@gnu.org>
3576
3577 * puresize.h (BASE_PURESIZE): Increment base size.
3578
3579 * xdisp.c (fast_find_position): Enable Gerd's new definition.
3580
3581 * xterm.c (xim_initialize): Undo previous change.
3582
2d0834cc
SM
35832003-06-26 Stefan Monnier <monnier@cs.yale.edu>
3584
3585 * alloc.c (survives_gc_p): Simplify.
3586
3587 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
3588
3589 * window.c (Fset_window_dedicated_p): Simplify.
3590 (display_buffer_1): Don't raise the win from which minibuf was entered.
3591 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
3592 (Fminibuffer_selected_window): Simplify.
3593
3594 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
3595
3596 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
3597 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
3598
3599 * insdel.c (check_markers, adjust_markers_for_delete)
3600 (adjust_markers_for_insert, adjust_markers_for_replace)
3601 (prepare_to_modify_buffer, RESTORE_VALUE):
3602 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
3603 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
3604 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
3605 * alloc.c (Fmake_marker, free_marker, gc_sweep):
3606 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
3607 * editfns.c (save_excursion_restore, transpose_markers):
3608 * window.c (delete_window):
3609 * xdisp.c (message_dolog): Update for new types.
3610
d54ae3d8
JD
36112003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3612
a5f696ac
JD
3613 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
3614 (realize_default_face): Use default_face_done_p for the force_p
2d0834cc 3615 argument to set_lface_from_font_name. Set default_face_done_p to one.
a5f696ac
JD
3616
3617 * frame.c (make_frame): Initialize default_face_done_p.
3618
3619 * frame.h (struct frame): Add default_face_done_p.
3620
d54ae3d8
JD
3621 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
3622 will be defined.
3623
2336fe58
SM
36242003-06-25 Stefan Monnier <monnier@cs.yale.edu>
3625
3626 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
3627 Initialize the new field `gcmarkbit'.
3628 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
3629 (mark_interval_tree): Don't mark the tree separately from the nodes.
3630 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
3631 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
3632 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
3633
3634 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
3635 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
3636 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
3637 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
3638 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
3639
bcea31c2
DL
36402003-06-24 Dave Love <fx@gnu.org>
3641
3642 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
3643
3644 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
3645 from gnulib.
3646
2601f59e
RS
36472003-06-21 Richard M. Stallman <rms@gnu.org>
3648
3649 * fileio.c (Fwrite_region): Alternate messages
3650 for append and partial write.
3651
3652 * keyboard.c (read_key_sequence): When converting upcase fn key to
3653 downcase, update fkey and keytran so `backspace' gets translated.
3654
3655 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
3656
3657 * process.c (wait_reading_process_input): Don't signal SIGIO
3658 in batch mode.
3659
b5d2c621
KH
36602003-06-17 Kenichi Handa <handa@m17n.org>
3661
3662 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
3663 composite.h.
3664
3665 * xselect.c: Don't include charset.h, coding.h, composite.h.
3666 (Qforeign_selection): New variable.
3667 (syms_of_xselect): Intern and static it.
3668 (selection_data_to_lisp_data): Return a unibyte string made from
3669 data with `foreign-selection' text property.
3670
6793bc63
SM
36712003-06-15 Stefan Monnier <monnier@cs.yale.edu>
3672
3673 * termhooks.h (EVENT_INIT): New macro.
3674
3675 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
3676
3677 * alloc.c (mark_kboards): Move to keyboard.c.
3678
3679 * keyboard.c (record_asynch_buffer_change, read_avail_input):
3680 * xterm.c (x_dispatch_event):
3681 * xmenu.c (find_and_call_menu_selection):
3682 * xdisp.c (handle_tool_bar_click):
3683 * w32menu.c (menubar_selection_callback):
3684 * sysdep.c (kbd_input_ast, read_input_waiting):
3685 * msdos.c (dos_rawgetc):
3686 * macterm.c (mac_check_for_quit_char):
3687 * macmenu.c (menubar_selection_callback):
3688 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
3689 data to kbd_buffer_store_event.
3690
b3ea810c
KS
36912003-06-15 Kim F. Storm <storm@cua.dk>
3692
3693 * xdisp.c (x_fix_overlapping_area): Always use area relative X
6793bc63 3694 to fix redisplay problem with tall characters (such as \e,AC\e(B).
b3ea810c 3695
b8f75eda
KG
36962003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
3697
3698 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
3699
ba92ce48
KH
37002003-06-12 Kenichi Handa <handa@m17n.org>
3701
3702 * fileio.c (Fwrite_region): Save and restore restriction.
3703
b80263be
DL
37042003-06-12 Dave Love <fx@gnu.org>
3705
3706 * alloca.c (alloca): Declare arg as size_t.
3707
6793bc63
SM
3708 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
3709 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
b80263be 3710
b23c0a83
DL
37112003-06-11 Dave Love <fx@gnu.org>
3712
3713 * search.c (shrink_regexp_cache): Use xrealloc.
3714 (syms_of_search): Use xmalloc.
3715
700e47c2
KS
37162003-06-10 Kim F. Storm <storm@cua.dk>
3717
3718 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
3719 Adjust phys_cursor.x to be relative to window box, rather than
3720 text area before checking -- to ensure cursor is redrawn when
3721 exposing window.
3722 Note: This also fixes a similar (older) bug if display margins
3723 are present.
3724
f11aa0b2
KH
37252003-06-06 Kenichi Handa <handa@m17n.org>
3726
3727 * coding.c (encoding_buffer_size): If coding->type is
3728 coding_type_ccl, double magnification on CRLF encoding.
3729
3d143690
JR
37302003-06-06 Jason Rumney <jasonr@gnu.org>
3731
3732 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
3733 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
3734
3735 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
3736 Mac too.
3737
f16205ca
DL
37382003-06-05 Dave Love <fx@gnu.org>
3739
b23c0a83
DL
3740 * strftime.c: Merge changes from gnulib.
3741
f16205ca
DL
3742 * mktime.c (__mktime_internal): Merge changes from gnulib
3743 involving year 69 and dst2.
3744
3745 Changes to merge with gnulib version and be consistent with the
3746 autoconf test:
3747
6793bc63
SM
3748 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
3749 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
f16205ca
DL
3750 [HAVE_LOCALE_H]: Include locale.h.
3751 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
3752
9b87a0bc
KS
37532003-06-05 Kim F. Storm <storm@cua.dk>
3754
3755 * window.c (coordinates_in_window): Convert X and Y to window
3756 relative coordinates inside mode-line and header-line parts.
3757 Convert X and Y to margin area relative coordinates inside left
3758 and right display margin parts.
3759
5a8a15ec
JR
37602003-06-05 Jason Rumney <jasonr@gnu.org>
3761
3762 * w32fns.c (add_system_logical_colors_to_map): New function.
3763 (Fx_open_connection): Use it.
3764
01ed8ff1
SM
37652003-06-04 Stefan Monnier <monnier@cs.yale.edu>
3766
3767 * process.c (allocate_pty): Revert part of the previous patch.
3768 (Faccept_process_output): Simplify.
3769
b427b65d
JR
37702003-06-04 Jason Rumney <jasonr@gnu.org>
3771
3772 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
3773
3774 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
3775 (lispy_mouse_wheel_names): Remove.
3776 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
3777 Always define drag_and_drop_syms.
3778
3779 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
3780 WHEEL_EVENT events.
3781
914a8c47
SM
37822003-06-03 Stefan Monnier <monnier@cs.yale.edu>
3783
01ed8ff1
SM
3784 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
3785
914a8c47
SM
3786 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
3787
adcb132c
JD
37882003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3789
3790 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
3791 menu item label.
3792
be781fa7
RS
37932003-06-03 Richard M. Stallman <rms@gnu.org>
3794
3795 * window.c (Fwindow_edges): Doc fix.
3796 (Fwindow_pixel_edges, Fwindow_inside_edges)
3797 (Fwindow_inside_pixel_edges): New functions.
3798 (syms_of_window): defsubr them.
3799
3800 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
3801 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
3802
914a8c47
SM
38032003-06-02 Stefan Monnier <monnier@cs.yale.edu>
3804
3805 * dispnew.c (Fsit_for): Don't lie about the number of args.
3806
5b07197a
DL
38072003-06-02 Dave Love <fx@gnu.org>
3808
3809 * callproc.c: Use HAVE_FCNTL_H, not USG5.
3810 (syms_of_callproc) <process-environment>: Doc fix.
3811
3812 * doc.c: Use HAVE_FCNTL_H, not USG5.
3813
3814 * xfaces.c (font_rescale_ratio): Fix for K&R.
3815
3816 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
3817
3818 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
3819
3820 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
3821
3822 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
3823 (xg_create_frame_widgets): Use ENCODE_UTF_8.
3824
d7107586 3825 * xterm.c (Qutf_8): Move to coding.c
5b07197a
DL
3826
3827 * xmenu.c (ENCODE_MENU_STRING): New.
3828 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
3829 Use it.
3830
3831 * coding.h (ENCODE_UTF_8): New.
3832 (Qutf_8): Declare.
3833
3834 * coding.c (Qutf_8): New.
3835 (syms_of_coding): Intern it.
3836
3837 * fns.c: Doc fixes.
3838
7335b336
KH
38392003-06-02 Kenichi Handa <handa@m17n.org>
3840
3841 * buffer.c (Fset_buffer_multibyte): Fix previous change.
3842
914a8c47
SM
38432003-06-01 Stefan Monnier <monnier@cs.yale.edu>
3844
3845 * lread.c (openp): Make sure STR is a string.
3846
9862c135
JR
38472003-06-01 David Ponce <david@dponce.com>
3848
3849 * termhooks.h (enum event_kind): Added new WHEEL_EVENT event.
3850 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
3851
3852 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
3853 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
3854 (discard_mouse_events): Discard WHEEL_EVENT events too.
3855 (lispy_wheel_names, wheel_syms): New.
3856 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
3857 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX
3858 defined.
914a8c47 3859 (make_lispy_event): Add WHEEL_EVENT handler.
9862c135
JR
3860
3861 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
3862 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
3863 WHEEL_EVENT events.
3864
f984e73e
JPW
38652003-05-31 John Paul Wallington <jpw@gnu.org>
3866
3867 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
3868 timer are in lisp/emacs-lisp.
3869
1efcd78f
KH
38702003-05-31 Kenichi Handa <handa@m17n.org>
3871
458c8af4
KH
3872 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
3873 region when a buffer is changed to unibyte.
3874
1efcd78f
KH
3875 * charset.h (VALID_LEADING_CODE_P): New macro.
3876 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
3877
778e2804
KH
3878 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
3879 is nonzero, accept multibyte form of eight-bit-control chars.
3880 (decode_composition_emacs_mule): Likewise.
3881 (decode_coding_emacs_mule): Likewise.
3882 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
3883 multibyte form of eight-bit-control chars.
3884
3885 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
3886 (Finsert_file_contents): If coding-system-for-read is bound to
3887 Qauto_save_coding, use the coding system emacs-mule with special
3888 setting for recovering a file.
3889 (choose_write_coding_system): On auto saving, use the coding
3890 system emacs-mule with special setting for auto saving.
3891 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
3892
034060e4
KH
38932003-05-30 Kenichi Handa <handa@m17n.org>
3894
3895 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
3896 properly before calling ccl_driver.
3897
778e2804 3898 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
034060e4
KH
3899
3900 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is
3901 nonzero.
3902 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
3903 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
3904
595f5aa5
GM
39052003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
3906
3907 * xfaces.c (realize_default_face): Do not abort if lface is
3908 non-existent - reverts change from 2003-05-19.
3909
103e0180
KH
39102003-05-29 Kenichi Handa <handa@m17n.org>
3911
3912 * coding.c (decode_coding_iso2022): Pay attention to the byte
3913 sequence of CTEXT extended segment, and retain those bytes as is.
3914
39152003-05-28 Kenichi Handa <handa@m17n.org>
3916
3917 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjusted for the name change
3918 of CODING_REPLACEMENT_CHARACTER.
3919 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
3920 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
3921 check this flag on encoding.
3922 (encode_coding_sjis_big5): Check
3923 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
3924 (Fset_terminal_coding_system_internal): Set
3925 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
3926 instead of setting CODING_FLAG_ISO_SAFE flag in
3927 terminal_coding.flags.
3928
3929 * coding.h (CODING_REPLACEMENT_CHARACTER): Renamed from
3930 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
3931 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
3932
ff6a3bfb 39332003-05-28 Richard M. Stallman <rms@gnu.org>
45f266dc 3934
ff6a3bfb
RS
3935 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
3936
3937 * eval.c (unbind_to): Move init of this_binding to separate statement.
45f266dc 3938
1963c428
KS
39392003-05-28 Kim F. Storm <storm@cua.dk>
3940
3941 * xdisp.c (expose_window): Fix error in calculation of
3942 window relative coordinates of area to redisplay.
3943
2b5d4601
JR
39442003-05-27 Jason Rumney <jasonr@gnu.org>
3945
3946 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
3947
1c64a4a2
JB
39482003-05-27 David Ponce <david@dponce.com>
3949
3950 Handle W32 mouse wheel events as mouse click events, like in X.
3951
3952 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
3953 MOUSE_WHEEL_EVENT anymore.
3954
3955 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
3956 Scrolling down/up the mouse wheel is respectively mapped to mouse
3957 button 4 and 5.
3958 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
3959 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
3960 WM_MOUSEWHEEL events.
3961
2d031b89
AS
39622003-05-27 Andreas Schwab <schwab@suse.de>
3963
20464fdf
AS
3964 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
3965
2d031b89
AS
3966 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
3967 partially visible line.
3968
3969 * alloc.c (Fgarbage_collect): Fix last change.
3970
97bc76d4
JPW
39712003-05-26 John Paul Wallington <jpw@gnu.org>
3972
3973 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
3974
56613f06
SM
39752003-05-25 Stefan Monnier <monnier@cs.yale.edu>
3976
3977 * window.c (Fset_window_buffer): Add type of `keep_margins'.
3978 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
3979
3980 * window.h (window_box_text_cols): Declare.
3981
3982 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
3983 (x_draw_vertical_border): Remove unused var `f'.
3984
3985 * xfaces.c (build_scalable_font_name): Remove `unused var
3986 pixel_size' warning.
3987
3988 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
3989
3990 * unexelf.c (unexec): Remove `unused var n' warning.
3991
3992 * strftime.c (my_strftime_localtime_r): Remove `defined but
3993 unused' warning.
3994
3995 * process.c (allocate_pty): Remove `unused var stb' and
3996 `cp might be used uninitialized' warnings.
3997
3998 * dispnew.c (mode_line_string): Remove unused var `f'.
3999
4000 * coding.c (find_safe_codings): Remove unused var `i'.
4001
4002 * bytecode.c (Fbyte_code): Remove `unused val' warning.
4003
4004 * buffer.c (Fkill_buffer): Remove unused var `list'.
4005
4006 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
4007
93421a1f
JD
40082003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4009
4010 * frame.c (make_frame): Condition want_fullscreen with
4011 HAVE_WINDOW_SYSTEM.
4012
c4b8aebc
JB
40132003-05-25 Juanma Barranquero <lektu@terra.es>
4014
4015 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
4016 (Fwindow_scroll_bars): Fix typo in docstring.
4017
0416870b
KS
40182003-05-24 Kim F. Storm <storm@cua.dk>
4019
4020 The following changes serve several purposes:
4021
4022 1) Swap the position of fringes and display margins in windows, i.e.
4023 the fringes are now displayed between the margins and the text area
4024 (by default).
4025
4026 2) Allow fringe and scroll bar parameters to be set per-buffer and
4027 per-window (like display margins). Such settings are now stored
4028 in window configurations, preserved when frames are resized, and
9018a88e 4029 copied when windows are split vertically or horizontally.
0416870b
KS
4030 Several bugs related to display margins have been fixed.
4031
4032 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
9018a88e 4033
0416870b
KS
4034 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
4035 rather than FRAME_WIDTH (FRAME_FONT (f)).
4036
4037 5) Introduce a consistent naming of variables, members and macros
4038 depending on whether their value is measured in pixels or in
4039 canonical columns/lines. Pixel dimensions are named *_width and
4040 *_height, while canonical columns/lines are named *_cols and
4041 *_lines. Pixel positions are named *_x and *_y, while column/line
4042 positions are named *_col and *_line.
4043
4044 6) Consolidate more of the X, W32, and MAC gui code by moving
4045 common data into struct frame, and generalize it for the non-gui
4046 case by using suitable defaults.
4047
4048 7) Cleanup and consolidate the macros controlling frame and window
4049 layout into frame.h and window.h, and generalize the use of the
4050 various window_box_* functions (enhanced to handle the new fringe
4051 position and the per-window fringe and scroll bar settings).
4052
4053 * frame.h (struct frame): Rename members height to text_lines,
4054 width to text_cols, window_height to total_lines, window_width to
4055 total_cols, new_height to new_text_lines, new_width to
4056 new_text_cols. All uses changed.
4057 (struct frame): New members which consolidate common members of
4058 x_output, w32_output, and mac_output structures: left_pos,
4059 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
4060 win_gravity, size_hint_flags, border_width, internal_border_width,
4061 line_height, fringe_cols, left_fringe_width, right_fringe_width,
4062 want_fullscreen. All uses changed.
4063 (struct frame): New member column_width contaning the canonical
4064 column width, analogue to line_height. All uses changed.
4065 (struct frame): Rename members scroll_bar_pixel_width to
4066 config_scroll_bar_width, and scroll_bar_cols to
4067 config_scroll_bar_cols. All uses changed.
4068 (struct frame): New member scroll_bar_actual_width which
4069 consolidates and renames the vertical_scroll_bar_extra member of
4070 x_output, w32_output, and mac_output structures. All uses changed.
4071 (FRAME_PIXEL_HEIGHT): Renamed from PIXEL_HEIGHT and moved
4072 from x/w32/macterm.h files. All uses changed. Also change code
4073 which referred to f->output_data...->pixel_height.
4074 (FRAME_PIXEL_WIDTH): Renamed from PIXEL_WIDTH and moved
4075 from x/w32/macterm.h files. All uses changed. Also change code
4076 which referred to f->output_data...->pixel_width.
4077 (FRAME_LINES): Renamed from FRAME_HEIGHT. All uses changed.
4078 Also change code which referred to f->height.
4079 (FRAME_COLS): Renamed from FRAME_WIDTH. All uses changed.
4080 Also change code which referred to f->width.
4081 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
4082 to update new_text_lines and new_text_cols members directly.
4083 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Renamed from
4084 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
4085 (FRAME_CONFIG_SCROLL_BAR_COLS): Renamed from
4086 FRAME_SCROLL_BAR_COLS. All uses changed.
4087 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
4088 Renamed from FRAME_LEFT_SCROLL_BAR_WIDTH and
4089 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
4090 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
4091 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
4092 (FRAME_TOTAL_COLS): Renamed from FRAME_WINDOW_WIDTH.
4093 (SET_FRAME_COLS): Renamed from SET_FRAME_WIDTH.
4094 (FRAME_TOTAL_COLS_ARG): Renamed from FRAME_WINDOW_WIDTH_ARG.
4095 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
4096 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
4097 (FRAME_LINE_HEIGHT): Renamed from CANON_Y_UNIT. Unconditionally
4098 return line_height member (it now has proper value also for
4099 non-window frames).
4100 (FRAME_COLUMN_WIDTH): Renamed from CANON_X_UNIT. Unconditionally
4101 return new column_width member (rather than the default font width).
4102 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
4103 (FRAME_RIGHT_FRINGE_WIDTH): Renamed from FRAME_X_... and moved
4104 from x/w32/macterm.h files. Unconditionally return corresponding
4105 member of frame structure (they now have proper values also for
4106 non-window frames).
4107 (FRAME_TOTAL_FRINGE_WIDTH): Renamed from FRAME_FRINGE_WIDTH.
4108 Calculate return value from left and right widths.
4109 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
4110 internal_border_width member (has proper value for non-window frame).
4111 (FRAME_PIXEL_X_FROM_CANON_X): Renamed from PIXEL_X_FROM_CANON_X.
4112 (FRAME_PIXEL_Y_FROM_CANON_Y): Renamed from PIXEL_Y_FROM_CANON_Y.
4113 (FRAME_CANON_X_FROM_PIXEL_X): Renamed from CANON_X_FROM_PIXEL_X.
4114 (FRAME_CANON_Y_FROM_PIXEL_Y): Renamed from CANON_Y_FROM_PIXEL_Y.
4115 (FRAME_LINE_TO_PIXEL_Y): Renamed from CHAR_TO_PIXEL_ROW,
4116 consolidated from xterm.h, macterm.h, and w32term.h.
4117 (FRAME_COL_TO_PIXEL_X): Renamed from CHAR_TO_PIXEL_COL,
4118 consolidated from xterm.h, macterm.h, and w32term.h.
4119 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Renamed from
4120 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
4121 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Renamed from
4122 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
4123 (FRAME_PIXEL_Y_TO_LINE): Renamed from PIXEL_TO_CHAR_ROW
4124 consolidated from x/mac/w32term.h.
4125 (FRAME_PIXEL_X_TO_COL): Renamed from PIXEL_TO_CHAR_COL
4126 consolidated from x/mac/w32term.h.
4127 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Renamed from
4128 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
4129 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Renamed from
4130 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
4131
4132 * window.h (struct window): Rename members left to left_col,
4133 top to top_line, height to total_lines, width to total_cols,
4134 left_margin_width to left_margin_cols, right_margin_width to
4135 right_margin_cols, orig_height to orig_total_lines, orig_top to
4136 orig_top_line. All uses changed.
4137 (struct window): New members left_fringe_width, right_fringe_width,
4138 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
4139 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
4140 New macros primarily used to simplify other macros.
4141 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
4142 referred to XINT (w->width).
4143 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
4144 referred to XINT (w->height).
4145 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
4146 referred to XINT (w->width) * canon_x_unit.
4147 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
4148 referred to XINT (w->height) * canon_y_unit.
4149 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
4150 referred to XINT (w->left).
4151 (WINDOW_RIGHT_EDGE_COL): Renamed from WINDOW_RIGHT_EDGE. Change
4152 all uses and code that referred to XINT (w->left) + XINT (w->width).
4153 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
4154 referred to XINT (w->top).
4155 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
4156 referred to XINT (w->top) + XINT (w->height).
4157 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
4158 referred to XINT (w->left) * canon_x_unit.
4159 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
4160 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
4161 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
4162 referred to XINT (w->top) * canon_y_unit.
4163 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
4164 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
4165 (WINDOW_LEFTMOST_P): New macro.
4166 (WINDOW_BOX_LEFT_EDGE_COL): Renamed from WINDOW_LEFT_MARGIN.
4167 All uses changed.
4168 (WINDOW_BOX_RIGHT_EDGE_COL): Renamed from WINDOW_RIGHT_MARGIN.
4169 All uses changed.
4170 (WINDOW_BOX_LEFT_EDGE_X): Renamed from
4171 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
4172 Do not exclude left fringe width.
4173 (WINDOW_BOX_RIGHT_EDGE_X): Renamed from
4174 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
4175 Do not exclude fringe widths.
4176 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
4177 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
4178 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
4179 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
4180 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
4181 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
4182 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
4183 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
4184 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
4185 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
4186 New macros. Change code which referenced corresponding
4187 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
4188 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
4189 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
4190 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
4191 allow per-window scroll-bar settings.
4192 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
4193 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
4194 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
4195 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
4196 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
4197 FRAME_SCROLL_BAR_WIDTH.
4198 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
9018a88e 4199 (WINDOW_SCROLL_BAR_AREA_X): New macros.
0416870b
KS
4200 (WINDOW_HEADER_LINE_HEIGHT): Renamed from
4201 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
4202 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Renamed from
4203 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
4204 (WINDOW_BOX_TEXT_HEIGHT): Renamed from
4205 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
4206 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
4207 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
4208 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Moved here from dispextern.h.
4209 (WINDOW_LEFT_MARGIN_WIDTH): Renamed from
4210 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
4211 (WINDOW_RIGHT_MARGIN_WIDTH): Renamed from
4212 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
4213 (window_from_coordinates): Update prototype.
4214 (Fset_window_buffer): Update EXFUN.
4215 (set_window_buffer): Update prototype.
9018a88e 4216
0416870b 4217 * dispextern.h (struct glyph_matrix): Rename members window_left_x
9018a88e 4218 to window_left_col, window_top_y to window_top_line. All uses
0416870b
KS
4219 changed.
4220 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
4221 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
4222 internal_border_width is now set to 0 for non-window frames.
4223 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
4224 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
4225 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
4226 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
4227 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
4228 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
4229 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
4230 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
4231 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
9018a88e 4232 Move to window.h and renamed [see window.h changes].
0416870b
KS
4233 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
4234 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
9018a88e
SM
4235 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
4236 Use WINDOW_TOTAL_LINES.
0416870b
KS
4237 (frame_update_line_height): Remove prototype.
4238
4239 * buffer.h (struct buffer): Rename members measured in columns:
4240 left_margin_width to left_margin_cols, right_margin_width to
4241 right_margin_cols. All uses changed.
4242 New members left_fringe_width, right_fringe_width,
4243 fringes_outside_margins for per-buffer fringe settings.
4244 New members scroll_bar_width and vertical_scroll_bar_type for
4245 per-buffer scroll bar settings.
4246
4247 * buffer.c (init_buffer_once): Set buffer_defaults and
4248 buffer_local_flags for new buffer-local variables
4249 left_fringe_width, right_fringe_width, fringes_outside_margins,
4250 scroll_bar_width, and vertical_scroll_bar_type.
4251 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
4252 default-* variables for them.
4253
4254 * dispnew.c: Make (many) trivial substitutions for renamed and
4255 new macros in dispextern.h, frame.h and window.h.
4256 (mode_line_string): No need to adjust width for mode lines, as it
4257 is already adjusted by the caller.
4258 (marginal_area_string): Handle fringes inside/outside margins.
9018a88e 4259
0416870b
KS
4260 * frame.c: Make (many) trivial substitutions for renamed and
4261 new macros in dispextern.h, frame.h and window.h.
4262 (make_frame): Initialize left_fringe_width, right_fringe_width,
4263 fringe_cols, scroll_bar_actual_width, border_width,
4264 internal_border_width, column_width, line_height, x_pixels_diff,
4265 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
4266 members with values suitable for a non-window frames.
4267
4268 * gtkutil.c: Make (many) trivial substitutions for renamed and
4269 new macros in dispextern.h, frame.h and window.h.
9018a88e 4270
0416870b
KS
4271 * indent.c: Make (few) trivial substitutions for renamed and
4272 new macros in dispextern.h, frame.h and window.h.
4273
4274 * keyboard.c: Make (many) trivial substitutions for renamed and
4275 new macros in dispextern.h, frame.h and window.h.
4276 (make_lispy_event): Use window positions returned from
4277 window_from_coordinates when constructing the lisp event for
4278 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
4279 (incorrect) values locally.
4280 (make_lispy_movement): Use window positions returned from
4281 window_from_coordinates when constructing the lisp event, rather
4282 than calculating (incorrect) values locally.
4283
4284 * scroll.c: Make (some) trivial substitutions for renamed and
4285 new macros in dispextern.h, frame.h and window.h.
4286
4287 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
4288 scroll-bars.
4289
4290 * sysdep.c: Make (few) trivial substitutions for renamed and
4291 new macros in dispextern.h, frame.h and window.h.
4292
4293 * term.c: Make (some) trivial substitutions for renamed and
4294 new macros in dispextern.h, frame.h and window.h.
4295
4296 * widget.c: Make (few) trivial substitutions for renamed and
4297 new macros in dispextern.h, frame.h and window.h.
4298
4299 * window.c: Make (many) trivial substitutions for renamed and
4300 new macros in dispextern.h, frame.h and window.h.
4301 (make_window): Initialize new members
4302 left_margin_cols, right_margin_cols, left_fringe_width,
4303 right_fringe_width, fringes_outside_margins, scroll_bar_width,
4304 and vertical_scroll_bar_type.
4305 (coordinates_in_window): Adapted to new fringe/margin positions
9018a88e 4306 and per-window fringes and scroll-bars.
0416870b 4307 Fix bug related to incorrectly adjusting coordinates by
9018a88e 4308 frame's internal_border_width (the effect normally negible since
0416870b
KS
4309 the internal_border_width is typically 0 or 1 pixel, but very
4310 noticeable for an internal_border_width of e.g. 25 pixels).
4311 Upon successful return (other than ON_NOTHING), the coordinates
4312 are now always properly converted to window relative for the
4313 given display element.
4314 (window_from_coordinates): Add new parameters wx and wy to
4315 return the window relative x and y position in the returned
4316 window and part. A null arg means, don't return the position.
4317 All callers changed.
4318 (adjust_window_margins): New function which may reduce the width
4319 of the display margins if a window's text area is too small after
4320 resizing or splitting windows.
4321 (size_window): Fix bug that did not account for display margin
4322 widths when checking the minimum width of a window; use
4323 adjust_window_margins.
4324 (set_window_buffer): Call Fset_window_fringes and
4325 Fset_window_scroll_bars to setup per-window elements.
4326 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
4327 existing display margin, fringe widths, and scroll bar settings
9018a88e
SM
4328 (e.g. after splitting a window or resizing the frame).
4329 All callers changed.
0416870b
KS
4330 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
4331 (Fsplit_window): Duplicate original window's display margin,
4332 fringe, and scroll-bar settings; then call Fset_window_buffer with
4333 KEEP_MARGINS non-nil. This fixes a bug which caused a split
4334 window to only preserve the display margins in one of the windows.
c4b8aebc 4335 When splitting horizontally, call adjust_window_margins on both
0416870b
KS
4336 windows to ensure that the text area of the new windows is non too
4337 narrow. This fixes a bug which could cause emacs to trap if the
4338 width of the split window was less than the width of the display
4339 margins.
9018a88e
SM
4340 (window_box_text_cols): Renamed from window_internal_width.
4341 All uses changed. Adapt to per-window fringes and scroll bars.
0416870b
KS
4342 Fix bug that caused vertical separator to be subtracted also on
4343 window frames. Fix another bug that did not reduce the returned
4344 value by the columns used for display margins.
4345 (window_scroll_line_based): Fix bug related to scrolling too much
4346 when display margins are present (implicitly fixed by the fix to
4347 window_box_text_cols).
4348 (scroll_left, scroll_right): Fix bug related to scrolling too far
4349 by default when display margins are present (implicitly fixed by
4350 the fix to window_box_text_cols).
4351 (struct saved_window): Rename members left to left_col, top to
4352 top_line, width to total_cols, height to total_lines, orig_top to
4353 orig_top_line, orig_height to orig_total_lines. All uses changed.
4354 New members left_margin_cols, right_margin_cols,
4355 left_fringe_width, right_fringe_width, fringes_outside_margins,
4356 scroll_bar_width, and vertical_scroll_bar_type for saving
4357 per-window display elements.
4358 (Fset_window_configuration): Restore display margins, fringes,
4359 and scroll bar settings. This fixes a bug which caused display
4360 margins to be discarded when saving and restoring a window
4361 configuration.
4362 (save_window_save): Save display margins, fringes, and scroll bar
4363 settings. This fixes a bug which caused display margins to be
4364 discarded when saving and restoring a window configuration.
4365 (Fset_window_margins): Do nothing if display margins are not
4366 really changed. Otherwise, call adjust_window_margins to ensure
4367 the text area doesn't get too narrow. This fixes a bug which
4368 could cause emacs to trap if setting display margins wider than
4369 the width of the window.
4370 (Fset_window_fringes): New defun to allow user to specifically set
4371 this window's fringe widths and position vs. display margins.
4372 (Fwindow_fringes): New defun to return window's actual fringe
4373 settings.
4374 (Fset_window_scroll_bars): New defun to allow user to specifically
4375 set this window's scroll bar width and position.
4376 (Fwindow_scroll_bars): New defun to return window's actual scroll
4377 bar settings.
4378 (compare_window_configurations): Also compare display margins,
4379 fringes, and scroll bar settings.
4380 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
4381
4382 * xdisp.c: Make (many) trivial substitutions for renamed and
4383 new macros in dispextern.h, frame.h and window.h.
4384 (window_box_width): Adapt to per-window fringes and scroll bars,
4385 and new fringe vs. display margin position. Note that returned
4386 value is no longer guaranteed to be a whole multiple of the frame
4387 column width, since per-window fringes may now be any width.
4388 (window_box_left_offset): New function like window_box_left, but
4389 value is relative to left border of window (rather than frame).
4390 (window_box_right_offset): New function like window_box_right,
4391 but value is relative to left border of window.
4392 (window_box_left): Adapt to per-window fringes and scroll bars,
4393 and new fringe vs. display margin position. Simplify by using
4394 WINDOW_LEFT_EDGE_X and window_box_left_offset.
4395 (window_box): Allow null args for unnecessary return values;
4396 change/simplify relevant callers.
4397 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
9018a88e
SM
4398 and new fringe vs. display margin position.
4399 Use window_box_left_offset and window_box_right_offset
0416870b 4400 (get_glyph_string_clip_rect): Adapt to per-window fringes and
9018a88e
SM
4401 scroll bars, and new fringe vs. display margin position.
4402 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
0416870b
KS
4403 (draw_fringe_bitmap): Rework to handle per-window fringes and new
4404 fringe vs. display margin position.
4405 (hscroll_window_tree): Use window_box_width instead of window_box.
a64387ee
JB
4406 (redisplay_window): Adapt to per-window scroll bars.
4407 (draw_glyphs): Rework to handle per-window fringes and scroll
9018a88e
SM
4408 bars, and new fringe vs. display margin position.
4409 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
a64387ee 4410 (x_clear_end_of_line): Adapt to per-window fringes and scroll
0416870b
KS
4411 bars, and new fringe vs. display margin position. Fix bug which
4412 increased total width of full_width rows by width of scroll bars
4413 although window's total width already includes that.
4414 (x_fix_overlapping_area): Simplify using window_box_left_offset.
4415 (expose_area): Simplify using window_box_left_offset.
4416 (x_draw_vertical_border): Handle per-window scroll bar settings,
4417 mixing windows with left, right and no scroll bars.
4418
4419 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
4420 where it's used in x_list_fonts (for clarity).
4421 (frame_update_line_height): Remove unused function; functionality
4422 is now done directly when setting the default font in x_set_font.
4423
4424 * xfns.c: Make (many) trivial substitutions for renamed and
4425 new macros in dispextern.h, frame.h and window.h.
4426
4427 * xmenu.c: Make (some) trivial substitutions for renamed and
4428 new macros in dispextern.h, frame.h and window.h.
4429
4430 * xterm.h (struct x_output): Move members left_pos, top_pos,
4431 border_width, pixel_height, pixel_width, line_height,
4432 internal_border_width, vertical_scroll_bar_extra,
4433 left_fringe_width, right_fringe_width, fringe_cols,
4434 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
4435 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
4436 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
4437 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
4438 (PIXEL_WIDTH, PIXEL_HEIGHT)
4439 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
4440 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to
4441 frame.h and renamed [see frame.h changes].
4442 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
4443 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
4444 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h
4445 and renamed [see frame.h changes].
9018a88e 4446
0416870b
KS
4447 * xterm.c: Make (several) trivial substitutions for renamed and
4448 new macros in dispextern.h, frame.h and window.h.
4449 (x_draw_glyph_string_box): Adapt to per-window fringes and
4450 scroll-bars.
4451 (scroll_run): Adapt to new fringe position.
4452 (glyph_rect): Use window coordinates returned from
4453 window_from_coordinates rather than frame_to_window_pixel_xy.
4454 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
4455 scroll-bars.
4456 (handle_one_xevent): Simplify a USE_GTK conditional.
4457 (x_clip_to_row): Remove superfluous whole_line_p arg and code
4458 (fringes are now inside margins, i.e. always in the clipping area).
4459 All callers changed.
4460 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
4461 directly, then call compute_fringe_widths. Don't call
4462 frame_update_line_height.
4463
4464 * w32term.h (struct w32_output): Move members left_pos, top_pos,
4465 border_width, pixel_height, pixel_width, line_height,
4466 internal_border_width, vertical_scroll_bar_extra,
4467 left_fringe_width, right_fringe_width, fringe_cols,
4468 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
4469 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
4470 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
4471 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
4472 (PIXEL_WIDTH, PIXEL_HEIGHT)
4473 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
4474 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to
4475 frame.h and renamed [see frame.h changes].
4476 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
4477 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
4478 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h
4479 and renamed [see frame.h changes].
9018a88e 4480
0416870b
KS
4481 * w32term.c: Make (several) trivial substitutions for renamed and
4482 new macros in dispextern.h, frame.h and window.h.
4483 (x_draw_glyph_string_box): Adapt to per-window fringes and
4484 scroll-bars.
4485 (glyph_rect): Use window coordinates returned from
4486 window_from_coordinates rather than frame_to_window_pixel_xy.
4487 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
4488 scroll-bars.
4489 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
4490 (fringes are now inside margins, i.e. always in the clipping area).
4491 All callers changed.
4492 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
4493 directly, then call compute_fringe_widths. Don't call
4494 frame_update_line_height.
4495
4496 * w32console.c: Make (few) trivial substitutions for renamed and
4497 new macros in dispextern.h, frame.h and window.h.
4498
4499 * w32fns.c: Make (many) trivial substitutions for renamed and
4500 new macros in dispextern.h, frame.h and window.h.
4501
4502 * w32menu.c: Make (few) trivial substitutions for renamed and
4503 new macros in dispextern.h, frame.h and window.h.
4504
4505 * macterm.h (struct mac_output): Move members left_pos, top_pos,
4506 border_width, pixel_height, pixel_width, line_height,
4507 internal_border_width, vertical_scroll_bar_extra,
4508 left_fringe_width, right_fringe_width, fringe_cols,
4509 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
4510 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
4511 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
4512 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
4513 (PIXEL_WIDTH, PIXEL_HEIGHT)
4514 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
4515 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to
4516 frame.h and renamed [see frame.h changes].
4517 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
4518 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
4519 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h
4520 and renamed [see frame.h changes].
9018a88e 4521
0416870b
KS
4522 * macterm.c: Make (several) trivial substitutions for renamed and
4523 new macros in dispextern.h, frame.h and window.h.
4524 (x_draw_glyph_string_box): Adapt to per-window fringes and
4525 scroll-bars.
4526 (glyph_rect): Use window coordinates returned from
4527 window_from_coordinates rather than frame_to_window_pixel_xy.
4528 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
4529 scroll-bars.
4530 (x_clip_to_row): Remove superfluous whole_line_p arg and code
4531 (fringes are now inside margins, i.e. always in the clipping area).
4532 All callers changed.
4533 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
4534 directly, then call compute_fringe_widths. Don't call
4535 frame_update_line_height.
4536
4537 * macfns.c: Make (several) trivial substitutions for renamed and
4538 new macros in dispextern.h, frame.h and window.h.
9018a88e 4539 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
0416870b
KS
4540
4541 * macmenu.c: Make (few) trivial substitutions for renamed and
4542 new macros in dispextern.h, frame.h and window.h.
4543
4544 * msdos.h (struct x_output): Remove members left_pos, top_pos,
4545 and line_height, and use corresponding new members in struct
4546 frame. All uses changed.
4547 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
4548 superseeded by corresponding macros in frame.h.
4549
4550 * msdos.c: Make (several) trivial substitutions for renamed and
4551 new macros in dispextern.h, frame.h and window.h.
4552 (IT_note_mouse_highlight): Use updated window coordinates returned
9018a88e 4553 by window_from_coordinates, rather than adjusting them locally.
0416870b
KS
4554 (internal_terminal_init): No need to initialize line_height here;
4555 it now defaults to 1.
4556
9018a88e
SM
45572003-05-24 Stefan Monnier <monnier@cs.yale.edu>
4558
4559 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
4560 dropping `down' events.
4561
016bd3c0
AS
45622003-05-24 Andreas Schwab <schwab@suse.de>
4563
4564 * coding.c (find_safe_codings): Fix last change.
4565
4dacadcc
TTN
45662003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
4567
4568 * xfns.c (x_window): Fix typo from 2003-05-21 change.
4569
319830ce
SM
45702003-05-23 Stefan Monnier <monnier@cs.yale.edu>
4571
9018a88e
SM
4572 * xdisp.c (display_mode_element): Increase max depth.
4573 Simplify the error handling code. Use a different error string
4574 for the case where we hit the depth limit.
4575
319830ce
SM
4576 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
4577
4578 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
4579
45802003-05-21 Stefan Monnier <monnier@cs.yale.edu>
4581
4582 * intervals.c (get_local_map): Don't get char-property of previous
4583 point any more: get_pos_property already does it and better.
4584
c67de8ba
DL
45852003-05-21 Dave Love <fx@gnu.org>
4586
4587 [Merged from unicode branch.]
4588
4589 * xfns.c (x_window, x_window): Use use_xim.
4590
4591 * xterm.c (use_xim): Initialize.
4592 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
4593 (x_term_init): Maybe set use_xim.
4594
4595 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
4596
edd3ff1d
JR
45972003-05-21 Jason Rumney <jasonr@gnu.org>
4598
4599 * unexw32.c (_start): Remove _fmode initialization.
4600
4601 * emacs.c (main) [WINDOWSNT]: Move it here.
4602
463f55ee
DL
46032003-05-20 Dave Love <fx@gnu.org>
4604
4605 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
4606
af253914
RS
46072003-05-19 Richard M. Stallman <rms@gnu.org>
4608
4609 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
4610 as value for QCfont attribute.
4611 (realize_default_face): lface should already exist; crash if not.
4612 Specify 0 for FORCE_P when calling set_lface_from_font_name.
4613
4614 * frame.c (Fignore_event): Doc fix.
4615
1d211019
KH
46162003-05-19 Kenichi Handa <handa@m17n.org>
4617
4618 * coding.c (decode_coding_string): Handle post-read-conversion
4619 even if the coding doesn't require decoding.
4620
4dd68254
RS
46212003-05-18 Richard M. Stallman <rms@gnu.org>
4622
4623 * callproc.c (Fcall_process_region): Doc fix.
4624
14d87dc9
SM
46252003-05-17 Stefan Monnier <monnier@cs.yale.edu>
4626
deca5d96
SM
4627 * lread.c (Fload): Print a message if package is obsolete.
4628
14d87dc9
SM
4629 * window.c (Fselect_window): Add optional `norecord' arg.
4630 (select_window_1): Fold into Fselect_window.
4631 (select_window_norecord): New function.
4632 (temp_output_buffer_show): Use it. Preserve current buffer.
4633
4634 * window.h (Fselect_window): Update declaration.
4635
4636 * window.c (delete_window, Fother_window, Fset_window_configuration):
4637 * minibuf.c (read_minibuf):
4638 * macterm.c (x_new_focus_frame):
4639 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
4640 * callint.c (Fcall_interactively):
4641 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
4642
4643 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
4644
78f52183
DK
46452003-05-17 David Kastrup <dak@gnu.org>
4646
4647 * process.c (read_process_output): Back out change from 2003-03-09.
4648
14d87dc9
SM
46492003-05-17 Stefan Monnier <monnier@cs.yale.edu>
4650
4651 * editfns.c (get_pos_property): Don't assume that `object' = nil.
4652
4653 * textprop.c (text_property_stickiness): New arg `buffer'.
4654
4655 * intervals.h (text_property_stickiness): New arg `buffer'.
4656 (get_pos_property): Declare.
4657
4658 * intervals.c (get_local_map): Use get_pos_property, to obey
4659 stickiness and empty overlays.
4660 (create_root_interval, graft_intervals_into_buffer): Use BEG.
4661 (merge_properties, intervals_equal, merge_properties_sticky):
4662 Use XCAR, XCDR.
4663 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
4664
1fd1cc2f
RS
46652003-05-17 Richard M. Stallman <rms@gnu.org>
4666
4f9f637a
RS
4667 * minibuf.c (read_minibuf): If buffer is empty, record the default
4668 in the history.
4669 (Fminibuffer_complete_word): When deleting the overlap, take account
4670 of its real position.
4671
4672 * fns.c (map_char_table): Fix previous change.
4673
1fd1cc2f
RS
4674 * syntax.c (find_defun_start):
4675 When open_paren_in_column_0_is_defun_start,
4676 return beginning of buffer.
4677
4678 * lisp.h (map_char_table): Declare added arg.
4679
4680 * fns.c (map_char_table): New arg TABLE gets the master table.
4681 All calls changed.
4682 Process default and inheritance, resorting to Faref if necessary.
4683
4684 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
4685 (Faccessible_keymaps): Pass new arg to map_char_table.
4686
4687 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
4688
4689 * casetab.c (set_case_table): Pass new arg to map_char_table.
4690
4691 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
4692
4693 * lisp.h (specbinding_func): New typedef.
4694 (struct specbinding): Use specbinding_func, to put the `volatile'
4695 in the right place.
4696
4697 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
4698 to avoid GCC warning.
14d87dc9 4699
b4bd27c5
RS
47002003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org> (tiny change)
4701
14d87dc9 4702 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
b4bd27c5 4703
35fb885d
SM
47042003-05-15 Stefan Monnier <monnier@cs.yale.edu>
4705
4706 * keyboard.c (apply_modifiers): Don't fill the other cache.
4707
9a274fbd
SM
47082003-05-14 Stefan Monnier <monnier@cs.yale.edu>
4709
c55b5fad
SM
4710 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
4711
9a274fbd
SM
4712 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
4713 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
4714 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
4715 (Fset_window_configuration, Fcurrent_window_configuration)
4716 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
4717 (Fpos_visible_in_window_p, mark_window_cursors_off)
4718 (window_internal_height, window_internal_width, Frecenter)
4719 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
4720 (replace_buffer_in_all_windows, init_window_once, init_window)
4721 (syms_of_window, keys_of_window): Move from lisp.h.
4722 * lisp.h: Move window.c declarations to window.h.
4723
4724 * bytecode.c: Include window.h.
4725 * emacs.c: Include window.h.
4726
14d87dc9 4727 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
9a274fbd
SM
4728 (keyremap): Add `parent' field.
4729 (keyremap_step): Use it. Remove `parent' argument.
4730 (read_key_sequence): Setup and use the new `parent' field.
4731
fd93e331
SM
47322003-05-11 Stefan Monnier <monnier@cs.yale.edu>
4733
4734 * keyboard.c (adjust_point_for_property): Ensure termination.
4735
1c4001a1
SM
47362003-05-10 Stefan Monnier <monnier@cs.yale.edu>
4737
4738 * keyboard.c (follow_key): Remove dead variable `did_meta'.
4739 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
4740 duplicated handling of function-key-map and key-translation-map
4741 in read_key_sequence.
4742 (read_key_sequence): Use them.
4743
4744 * keyboard.c (adjust_point_for_property): Try harder to move point
4745 to the non-sticky end of an invisible property.
4746
4747 * xdisp.c (single_display_prop_intangible_p): Make `space' display
4748 property intangible as well.
4749
780379b1
AS
47502003-05-10 Andreas Schwab <schwab@suse.de>
4751
4752 * xmenu.c (single_menu_item): Change last parameter to void* to
4753 avoid warning.
4754
ca2de342
RS
47552003-05-09 Richard M. Stallman <rms@gnu.org>
4756
4757 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
4758 Bind Qinhibit_modification_hooks to t so there will be no GC.
4759 Rename local `tem' to `save_deactivate_mark'.
4760
4761 * eval.c (specpdl_ptr): Declare volatile.
4762 (unbind_to): Copy the whole binding and decrement specpdl_ptr
4763 before doing the work of unbinding it.
4764
4765 * lisp.h (struct specbinding): Declare elements volatile.
4766 (specpdl_ptr): Declare volatile.
4767
4768 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
4769
4770 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
4771 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
4772
347003be
DL
47732003-05-08 Dave Love <fx@gnu.org>
4774
4775 * coding.c (Vlast_coding_system_used): Doc fix.
4776
5adcec23
JR
47772003-05-07 Jason Rumney <jasonr@gnu.org>
4778
4779 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
4780 when system does not support them.
4781
5fe3b8a4
SM
47822003-05-05 Stefan Monnier <monnier@cs.yale.edu>
4783
4784 * fileio.c (Qwrite_region_annotate_functions): New var.
4785 (build_annotations): Use it to process the global part of the hook.
4786 (syms_of_fileio): Init and staticpro it.
4787
4788 * keyboard.c (safe_run_hooks_error): Display a message instead of
4789 silently ignoring the error.
4790
47912003-05-03 Stefan Monnier <monnier@cs.yale.edu>
4792
4793 * keyboard.c (input_available_signal): Mark static.
4794 (menu_bar_items): Use map_keymap.
4795 (menu_bar_one_keymap): Remove.
4796 (menu_bar_item): Adjust arglist (for use in map_keymap).
4797 Properly hide a second binding when not both are keymaps.
4798
4799 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
4800 (single_keymap_panes): Use it and map_keymap.
4801 (single_menu_item): Use skp as well.
4802
4803 * keymap.h (map_keymap_function_t): New type.
4804 (map_keymap): Declare.
4805
4806 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
4807 (map_keymap_call, Fmap_keymap): New functions.
4808 (syms_of_keymap): Defsubr map-keymap.
4809
4b1b4443
JD
48102003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4811
4812 * gtkutil.c (create_dialog, make_widget_for_menu_item)
4813 (make_menu_item, create_menus, xg_update_menu_item): Don't call
4814 ..._with_mnemonic functions for menu items.
4815
1f816871
KH
48162003-05-01 Kenichi Handa <handa@m17n.org>
4817
4818 * coding.c (coding_system_accept_latin_extra_p): Delete this
4819 function.
4820 (find_safe_codings): Pay attention to
4821 the property tranlsation-table-for-encode of each codings.
4822 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
4823
5ed6ba5b
SM
48242003-05-01 Stefan Monnier <monnier@cs.yale.edu>
4825
4826 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
4827
32c06229
SM
48282003-04-30 Stefan Monnier <monnier@cs.yale.edu>
4829
4830 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
4831
4832 * lisp.h (CHECK): Wrap args in parenthesis.
4833 (specbind): Fix doc: symbol = Qnil is not supported any more.
4834
4835 * bytecode.c (Fbyte_code) <unwind-protect>:
4836 Use Fprogn rather than 0 and Qnil.
4837
4838 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
4839 `double', and `triple' modifiers as well.
4840
ed3c3314
RS
48412003-04-30 Richard M. Stallman <rms@gnu.org>
4842
4843 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
4844
4845 * alloc.c (abort_on_gc): New variable.
4846 (Fgarbage_collect): Abort if abort_on_gc is set.
4847
4848 * lisp.h (abort_on_gc): Add decl.
4849
4850 * eval.c (Fsignal): Clear abort_on_gc.
4851
4852 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
32c06229 4853 Reinit FORMAT_START and END before second scan.
ed3c3314
RS
4854
4855 * xdisp.c (move_it_vertically_backward): Do the final big else
4856 even if nlines is 0.
4857
4858 * xdisp.c (redisplay_internal): Finish the per-frame loop
4859 even if redisplay is suspended by input.
4860
0b325c12
AC
48612003-04-24 Andrew Choi <akochoi@shaw.ca>
4862
4863 * macterm.c (x_list_fonts): Return all fonts that match if
4864 maxnames = -1.
4865
4e837cd0
KH
48662003-04-25 Kenichi Handa <handa@m17n.org>
4867
4868 * syntax.c (skip_chars): Fix previous change.
4869
9af7511a
KH
48702003-04-24 Kenichi Handa <handa@m17n.org>
4871
4872 * syntax.c (skip_chars): Make the code faster by using the common
4873 technique of *p, *stop, and *endp.
4874
e3b2c21f
JD
48752003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4876
4877 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
32c06229 4878 tool_bar_items so GTK tool bar expose callback does not access items
e3b2c21f
JD
4879 being updated.
4880
32c06229
SM
48812003-04-19 Stefan Monnier <monnier@cs.yale.edu>
4882
4883 * eval.c (Fapply): Undo last change and add a comment about why.
4884
c6464167
MB
48852003-04-18 Miles Bader <miles@gnu.org>
4886
4887 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
4888 pickier PARSE_MULTIBYTE_SEQ.
4889
e509f168
SM
48902003-04-17 Stefan Monnier <monnier@cs.yale.edu>
4891
4892 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
4893 Use XCDR, XCAR, CONSP.
4894 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
4895 (Fapply): Remove unnecessary GCPRO.
4896
4897 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
4898
4899 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
4900
4901 * buffer.h: Don't hardcode BEG==1.
4902
4903 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
4904
5ceea398
RS
49052003-04-16 Richard M. Stallman <rms@gnu.org>
4906
4907 * xdisp.c (try_window, try_window_reusing_current_matrix):
4908 When at end of window, set window_end_pos to Z-ZV.
4909
4910 * buffer.c (Foverlay_recenter): Doc fix.
4911
e509f168
SM
49122003-04-14 Stefan Monnier <monnier@cs.yale.edu>
4913
4914 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
4915
d243e605
AC
49162003-04-14 Andrew Choi <akochoi@shaw.ca>
4917
4918 * macterm.c (mac_check_for_quit_char): Don't check more often than
4919 once a second.
4920
6901b111
SM
49212003-04-11 Stefan Monnier <monnier@cs.yale.edu>
4922
4923 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
4924 specially, so that they can't hide an implicit switch-frame event.
4925 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
4926 (head_table): Use switch-frame as event_kind for select-window.
4927 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
4928
4929 * editfns.c (Fformat): Lisp_Object/int mixup.
4930 (format2): Remove unused var numargs.
4931
e301806f 49322003-04-11 Kenichi Handa <handa@m17n.org>
aa95b710 4933
6901b111 4934 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
aa95b710
KH
4935 (Qafter_insert_file_set_coding): New variable.
4936 (syms_of_fileio): Initialize and staticpro it. Delete declaration
4937 for after-insert-file-adjust-coding-function.
4938 (Finsert_file_contents): Call Qafter_insert_file_set_coding
4939 instead of Vafter_insert_file_adjust_coding_function.
4940
38914424
KH
49412003-04-11 Kenichi Handa <handa@m17n.org>
4942
4943 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
4944
4945 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
4946 string. Callers changed.
4947
49482003-04-10 Kenichi Handa <handa@m17n.org>
a288d979 4949
6901b111 4950 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
a288d979 4951 (syms_of_fileio): Declare it as a lisp variable.
6901b111
SM
4952 (Finsert_file_contents):
4953 Call Vafter_insert_file_adjust_coding_function before calling
a288d979
KH
4954 decode-format.
4955
f979dc05
JD
49562003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4957
4958 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
4959 get GtkAdjustment as widget now is a GtkRange.
4960
4961 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
4962 GtkRange to avoid memory leak.
4963
f8c6b4c2 49642003-04-09 Kenichi Handa <handa@m17n.org>
cb98871c 4965
50ebc53d
KH
4966 * xfaces.c (Vface_font_rescale_alist): New variable.
4967 (struct font_name): New member rescale_ratio.
4968 (font_rescale_ratio): New function.
6901b111 4969 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
50ebc53d
KH
4970 (better_font_p): On comparing point sized, pay attention to
4971 recale_ratio member of fonts.
4972 (build_scalable_font_name): Reflect font->rescale_ratio in the
4973 font name.
6901b111 4974 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
50ebc53d 4975
cb98871c
KH
4976 * lread.c (read1): Before calling index, check if the 2nd
4977 arguemnt is in ASCII range.
4978
4773b8ca
RS
49792003-04-08 Richard M. Stallman <rms@gnu.org>
4980
b0ada147
RS
4981 * fileio.c (Ffile_symlink_p): Doc fix.
4982
4983 * editfns.c (Fformat): Translate positions of text properties
4984 in the format string to apply them to the result.
4985
4773b8ca
RS
4986 * fileio.c (Finsert_file_contents): Doc fix.
4987 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
4988
49892003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
6901b111 4990
4773b8ca
RS
4991 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
4992
e8f25745 49932003-04-08 Steven Tamm <steventamm@mac.com>
b0ada147 4994
e8f25745
ST
4995 * mac.c (init_mac_osx_environment): Switch libexec and bin so
4996 that self-contained application finds libexec files.
4997
f8c6b4c2 49982003-04-08 Kenichi Handa <handa@m17n.org>
2310d84c 4999
6901b111
SM
5000 * coding.c (code_convert_region_unwind):
5001 Set Vlast_coding_system_used to the argument.
2310d84c
KH
5002 (code_convert_region): If post-read-conversion function changed
5003 the value of last-coding-sytem, keep the new value in
5004 coding->symbol so that it won't be overridden.
5005 (run_pre_post_conversion_on_str): Likewise.
7c086845
KH
5006 (coding_system_accept_latin_extra_p): New function.
5007 (find_safe_codings): Pay attention to characters registered in
5008 latin-extra-code-table.
2310d84c 5009
39c9a034
TTN
50102003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
5011
5012 * Makefile.in (md5.o): Add missing dependency info.
5013
eb67c5d6
RS
50142003-04-06 Richard M. Stallman <rms@gnu.org>
5015
5016 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
5017
5018 * marker.c (verify_bytepos): New function.
5019
5020 * intervals.c (set_intervals_multibyte_1): When becoming
5021 multibyte, adjust right and left child sizes to a whole set of
5022 characters. If an interval gets zero total-length, delete it.
5023 If an interval consists of just its children, delete one of them.
5024
5025 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
5026 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
39c9a034 5027
eb67c5d6
RS
5028 * alloc.c: (VALIDATE_LISP_STORAGE): Macro deleted.
5029 All calls deleted.
5030 (lisp_malloc): Do the work here directly.
5031
b1f81fc5
JB
50322003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
5033
5034 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
5035 char tables.
5036
50372003-04-04 Kenichi Handa <handa@m17n.org>
aa8b70ae
KH
5038
5039 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
5040 destructively change "%S" to "%s".
5041
774666fb
MB
50422003-04-03 Miles Bader <miles@gnu.org>
5043
5044 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
5045 always set.
5046
19c37f01
DL
50472003-04-01 Dave Love <fx@gnu.org>
5048
5049 * xfns.c (xpm_lookup_color): Grok "opaque".
5050
2f4b24c3
AC
50512003-03-31 Andrew Choi <akochoi@shaw.ca>
5052
5053 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
5054 parent window ID.
5055
5056 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
5057
5058 * macterm.h (struct mac_output): Define x_pixels_diff and
5059 y_pixels_diff.
b1f81fc5 5060
9443fcf6
JB
50612003-03-31 Juanma Barranquero <lektu@terra.es>
5062
5063 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
5064 blockinput.h and files included from it.
5065
e072891b
KS
50662003-03-31 Kim F. Storm <storm@cua.dk>
5067
5068 The following changes consolidates the common code related to
5069 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
5070 files into frame.c.
9443fcf6 5071
e072891b
KS
5072 * frame.c: Include blockinput.h.
5073 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
5074 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
5075 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
5076 related vars here.
5077 (struct frame_parm_table, frame_parms): New table for describing
5078 frame parameters and their associated Q-variable.
5079 The order of the parameters corresponds to the sequence of the
5080 frame_parm_handlers table in redisplay_interface.
5081 (x_fullscreen_move, x_set_frame_parameters)
5082 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
5083 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
5084 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
5085 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
5086 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
5087 Generic functions for processing of frame parameters.
5088 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
5089 (display_x_get_resource, x_get_resource_string): Functions for
5090 generic access to X resources.
5091 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
5092 (x_default_parameter, Fx_parse_geometry): Functions for generic
5093 access to frame parameters.
6901b111
SM
5094 (x_figure_window_size): Generic calculation of frame size.
5095 Fixed to add space needed for tool bar. Also setup size_hint_flags.
e072891b
KS
5096 (syms_of_frame): Intern and staticpro frame parameter variables.
5097 Defvar_lisp Vx_resource_class and Vx_resource_name here.
5098 Defsubr Sx_get_resource and Sx_parse_geometry.
9443fcf6 5099
e072891b
KS
5100 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
5101 parameter related vars defined in frame.c.
5102 (EMACS_CLASS): Define here.
5103 (enum FULLSCREEN_*): Define here.
5104 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
5105 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
5106 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
5107 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
5108 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
5109 (x_set_visibility, x_set_autoraise, x_set_autolower)
5110 (x_set_unsplittable, x_set_vertical_scroll_bars)
5111 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
5112 (x_figure_window_size): Add prototypes.
5113
5114 * dispextern.h (frame_parm_handler): New typedef.
5115 (struct redisplay_interface): New member frame_parm_handlers.
5116 (enum resource_types): Move declaration here.
5117 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
5118 (x_default_parameter): Add prototypes.
5119
5120 * window.c: Remove extern decl for frame parameter vars.
5121 (change_window_heights): New generic function;
5122 replaces x_change_window_heights. All users changed.
5123
5124 * window.h (change_window_heights): Add prototype.
5125
5126 * xfaces.c: Remove extern decl for frame parameter vars.
5127
5128 * xterm.h (EMACS_CLASS): Remove. Use generic define.
5129 (struct w32_display_info): Fix type of xrdb member.
5130 (enum FULLSCREEN_*): Remove.
5131 Remove prototypes for generic functions (in frame.h).
5132
5133 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
5134 parameters now defined in frame.h and frame.c.
5135 (Vx_resource_name): Remove. Use generic var.
5136 (enum x_frame_parms): Remove (bogus, unused enum).
5137 (check_x_display_info): Make non-static (for frame.c).
5138 (struct x_frame_parm_table, x_frame_parms): Remove.
5139 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
5140 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
5141 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
5142 (x_change_window_heights, x_set_autoraise, x_set_autolower)
5143 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
5144 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
5145 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
5146 Remove. Use generic functions instead.
5147 (enum resource_types): Remove.
5148 (x_set_scroll_bar_default_width): New global function (for frame.c).
5149 (Fx_create_frame): Depend on x_figure_window_size to add space for
5150 toolbar and setup size_hint_flags.
5151 (x_frame_parm_handlers): New table for redisplay_interface.
5152 (syms_of_xfns): Don't intern/staticpro removed vars.
9443fcf6 5153
e072891b
KS
5154 * xterm.c: Remove unnecessary extern declarations.
5155 (x_fullscreen_adjust): Remove. Use generic instead.
5156 (x_redisplay_interface): Add x_frame_parm_handlers member.
5157
5158 * w32gui.h (XrmDatabase): New (dummy) typedef.
5159
5160 * w32term.h (EMACS_CLASS): Remove. Use generic define.
5161 (struct w32_display_info): Fix type of xrdb member.
5162 (enum FULLSCREEN_*): Remove.
5163 (x_fullscreen_adjust): Remove prototype.
5164
5165 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
5166 parameters now defined in frame.h and frame.c.
5167 (Vx_resource_name): Remove. Use generic var.
5168 (enum x_frame_parms): Remove (bogus, unused enum).
5169 (check_x_display_info): Make non-static (for frame.c).
5170 (struct x_frame_parm_table, x_frame_parms): Remove.
5171 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
5172 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
5173 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
5174 (x_change_window_heights, x_set_autoraise, x_set_autolower)
5175 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
5176 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
5177 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
5178 Remove. Use generic functions instead.
5179 (enum resource_types): Remove.
5180 (x_set_scroll_bar_default_width): New global function (for frame.c).
5181 (Fx_create_frame): Depend on x_figure_window_size to add space for
5182 toolbar and setup size_hint_flags.
5183 (w32_frame_parm_handlers): New table for redisplay_interface.
5184 (syms_of_w32fns): Don't intern/staticpro removed vars.
9443fcf6 5185
e072891b
KS
5186 * w32term.c: Remove unnecessary extern declarations.
5187 (x_fullscreen_adjust): Remove. Use generic instead.
5188 (x_redisplay_interface): Add w32_frame_parm_handlers member.
5189
5190 * w32reg.c (x_get_string_resource): Use XrmDatabase.
5191
5192 * macgui.h (XrmDatabase): New (dummy) typedef.
5193
5194 * macterm.h (EMACS_CLASS): Remove.
5195 (struct mac_display_info): Add xrdb member.
5196 (struct mac_output): Add want_fullscreen member.
5197
5198 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
5199 parameters now defined in frame.h and frame.c.
5200 (Vx_resource_name): Remove. Use generic var.
5201 (check_x_display_info): Make non-static (for frame.c).
5202 (struct x_frame_parm_table, x_frame_parms): Remove.
5203 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
5204 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
5205 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
5206 (x_change_window_heights, x_set_autoraise, x_set_autolower)
5207 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
5208 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
5209 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
5210 Remove. Use generic functions instead.
5211 (enum resource_types): Remove.
5212 (x_set_scroll_bar_default_width): New global function (for frame.c).
5213 (mac_frame_parm_handlers): New table for redisplay_interface.
5214 (syms_of_macfns): Don't intern/staticpro removed vars.
9443fcf6 5215
e072891b
KS
5216 * macterm.c: Remove unnecessary extern declarations.
5217 (x_redisplay_interface): Add mac_frame_parm_handlers member.
5218
3e6a560b
KS
5219 * Makefile.in (frame.o): Add dependency on blockinput.h and files
5220 included from it (atimer.h and systime.h).
5221
7b7b454e
AS
52222003-03-30 Andreas Schwab <schwab@suse.de>
5223
5224 * xdisp.c (x_insert_glyphs): Fix swapped width and height
5225 parameters for shift_glyphs_for_insert.
5226
5227 * macterm.c (x_redisplay_interface): Add missing entry for
5228 draw_vertical_window_border.
5229
beb402de
KG
52302003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
5231
5232 * fileio.c (Fexpand_file_name): In the no-handler case, after
5233 expanding, look again for a handler and invoke it. This is needed
5234 for filenames like "/foo/../user@host:/bar/../baz" -- the first
5235 expansion produces "/user@host:/bar/../baz" which needs to be
5236 expanded again for the finame result "/user@host:/baz".
5237
b676f356
JD
52382003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5239
5240 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
5241 of area to be redrawn for better performance.
5242
3c671a56
SM
52432003-03-28 Stefan Monnier <monnier@cs.yale.edu>
5244
5245 * xterm.c (take_vertical_position_into_account): Remove.
5246 (xt_action_hook): Call set_vertical_scroll_bar if needed.
5247 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
5248 (xm_scroll_callback, x_create_toolkit_scroll_bar)
5249 (x_set_toolkit_scroll_bar_thumb): Simplify.
5250 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
5251 (XTread_socket): Remove unused var.
5252 (x_make_frame_invisible): Replace goto with else.
5253
5254 * xdisp.c (set_vertical_scroll_bar): New fun.
5255 (redisplay_window): Use it.
5256
84f2e615
RS
52572003-03-26 Richard M. Stallman <rms@gnu.org>
5258
5259 * xdisp.c (update_tool_bar): Recompute tool bar if
5260 update_mode_lines is set. Set w->update_mode_line
5261 only if the tool bar contents actually change.
5262 (update_menu_bar): Undo previous change.
5263
70b6104c
JD
52642003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5265
5fd6f727
JD
5266 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
5267 (xg_frame_set_char_size): Calculate scroll bar width before frame
5268 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
5269 (xg_separator_p): Check for all documented separator types.
5270 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
5271 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
5272
70b6104c
JD
5273 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
5274 so tool bar gets updated.
5275
d9b36d19
SM
52762003-03-26 Stefan Monnier <monnier@cs.yale.edu>
5277
5278 * data.c (store_symval_forwarding): Re-instate part of the code
5279 that was deleted with too much enthusiasm.
5280
52812003-03-25 Stefan Monnier <monnier@cs.yale.edu>
5282
5283 * data.c (store_symval_forwarding): Delete special read-only
5284 hack for type == -1, since we now use ->constant instead.
5285 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
5286
5287 * buffer.c (overlays_in): Declare static.
5288 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
5289 `constant' field rather than the variable's `type' field.
5290
365fa1b3
AC
52912003-03-24 Andrew Choi <akochoi@shaw.ca>
5292
5293 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
5294
5295 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
5296
5297 * fns.c [MAC_OSX]: Do not redefine vector.
5298
5299 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
5300
5301 * macgui.h: Remove definition of No_Cursor.
5302
d9b36d19 5303 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
365fa1b3
AC
5304
5305 * xdisp.c: Define No_Cursor.
5306 (x_write_glyphs, notice_overwritten_cursor)
5307 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
5308 (note_mouse_highlight): Remove Mac-specific code.
5309 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
d9b36d19 5310
c0bcce6f
JPW
53112003-03-24 John Paul Wallington <jpw@gnu.org>
5312
5313 * xdisp.c (redisplay_window): If mini window's buffer is not
5314 empty, then redisplay it like other windows.
5315
a526b96c
KS
53162003-03-23 Kim F. Storm <storm@cua.dk>
5317
5318 * w32term.c (w32_draw_window_cursor): Fix last change.
5319
37ab321e
KH
53202003-03-23 Kenichi Handa <handa@m17n.org>
5321
a526b96c
KS
5322 * alloc.c (make_string_from_bytes, make_specified_string):
5323 Add `const' for the arg CONTENTS.
37ab321e
KH
5324
5325 * lisp.h (make_string_from_bytes, make_specified_string):
5326 Prototypes adjusted.
5327
7863d625
JD
53282003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5329
a526b96c 5330 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
fd4c9408 5331
7863d625
JD
5332 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
5333 (XG_SB_RANGE): New define.
5334
5335 * gtkutil.c (xg_fixed_handle_expose): New function.
5336 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
5337 expose events.
5338 (xg_update_scrollbar_pos): Take two more arguments, left and width
5339 of scroll bar including borders.
5340 Clear left and right part outside scroll bar separately as some
5341 themes have bars that are not an even number of pixels.
d9b36d19 5342 Don't set reallocate_redraws, don't call
7863d625
JD
5343 gdk_window_process_all_updates.
5344 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
5345 so no need to change it. Calculate size and value with XG_SB_RANGE.
5346
d9b36d19
SM
5347 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
5348 Pass left and width of scroll bar including borders to
7863d625
JD
5349 xg_update_scrollbar_pos.
5350
af0ad939
TTN
53512003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
5352
5353 * Makefile.in: Make sure space precedes end-of-line backslashes.
5354
b22139fd
KS
53552003-03-22 Kim F. Storm <storm@cua.dk>
5356
5357 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
5358 Add generic versions here. Remove system specific versions
5359 defined elsewhere.
5360
5361 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
5362 Add prototypes.
5363
6e6410cf
KS
5364 * xterm.h (STORE_NATIVE_RECT): New macro.
5365
5c9cc435
KS
53662003-03-21 Kim F. Storm <storm@cua.dk>
5367
00c64fab
SM
5368 * xdisp.c (get_glyph_string_clip_rect):
5369 Use FRAME_INTERNAL_BORDER_WIDTH.
5c9cc435
KS
5370
5371 * dispextern.h (struct redisplay_interface): Add active_p
5372 argument to draw_window_cursor member. All uses changed.
5373
acd37560
KS
53742003-03-21 Kim F. Storm <storm@cua.dk>
5375
5376 The following changes consolidate code related to writing and
5377 inserting glyphs, exposing frame, the tool bar, the mouse face,
5378 the output cursor, and help echo from xterm.c, w32term.c and
5379 macterm.c into xdisp.c. It also generalizes the use of the
5380 window_part enum instead of using numeric values throughout.
af0ad939 5381
acd37560
KS
5382 * xdisp.c: Consolidate gui-independent code here.
5383 Include keymap.h.
5384 (Qhelp_echo): Import.
5385 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
5386 (help_echo_string, help_echo_window, help_echo_object)
5387 (previous_help_echo_string, help_echo_pos): Declare here.
5388 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
5389 (estimate_mode_line_height): Define here. Handle windowing
5390 systems directly (without using estimate_mode_line_height_hook).
5391 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
5392 (update_window_cursor, update_cursor_in_window_tree)
5393 (fast_find_position, fast_find_string_pos)
5394 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
5395 (expose_area, expose_line, expose_overlaps, expose_window)
5396 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
5397 declared static as they are only used locally in xdisp.c.
5398 (draw_glyphs): Rename from x_draw_glyphs and make static.
5399 (tool_bar_item_info, notice_overwritten_cursor): Make static.
5400 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
5401 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
af0ad939 5402 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
acd37560
KS
5403 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
5404 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
5405 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
5406 (note_mouse_highlight, x_clear_window_mouse_face)
5407 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
5408 (x_intersect_rectangles): New generic functions for use by xdisp.c
5409 and GUI front-ends.
5410 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
5411 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
5412
5413 * dispextern.h (Display_Info): Generic typedef for *_display_info.
5414 (NativeRectangle): Generic typedef for rectangle type.
5415 (enum window_part): Move here from window.c.
5416 (struct redisplay_interface): New members flush_display_optional,
5417 define_frame_cursor, clear_frame_area, draw_window_cursor,
5418 draw_vertical_window_border, shift_glyphs_for_insert.
5419 Rename member clear_mouse_face to clear_window_mouse_face.
5420 (estimate_mode_line_height_hook): Remove hook.
5421 (auto_raise_tool_bar_buttons_p): Don't declare extern.
5422 (tool_bar_item_info): Remove prototype.
5423 (help_echo_string, help_echo_window, help_echo_object)
5424 (previous_help_echo_string, help_echo_pos)
5425 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
5426 (x_stretch_cursor_p, output_cursor): Declare extern.
5427 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
5428 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
5429 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
5430 (display_and_set_cursor, set_output_cursor, x_cursor_to)
5431 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
5432 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
5433 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
5434 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
5435 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
5436 Add prototypes.
5437 (mode_line_string, marginal_area_string): Fix prototypes.
5438
5439 * window.c (enum window_part): Move to dispextern.h.
5440 (coordinates_in_window): Use enum window_part member names
5441 instead of numbers to describe return value.
5442 (struct check_window_data): Change part member to window_part.
5443 (check_window_containing): Return window_part unaltered.
5444 (window_from_coordinates): Change part arg from int to enum
5445 window_part. Allow part arg to be null. All users changed.
5446
5447 * window.h (window_from_coordinates): Fix prototype.
5448
5449 * term.c (estimate_mode_line_height): Move to xdisp.c.
5450
5451 * keyboard.c (make_lispy_event): Use enum window_part.
5452
5453 * dispnew.c (mode_line_string, marginal_area_string): Use enum
5454 window_part instead of int in arg list. Users changed.
5455
5456 * xterm.h (No_Cursor): Declare as None for X.
5457 (struct mac_output): Replace member cross_cursor by hand_cursor.
af0ad939 5458
acd37560
KS
5459 * xterm.c: Remove consolidated defines and code.
5460 (BETWEEN): Remove unused macro.
5461 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
5462 (x_define_frame_cursor, x_clear_frame_area)
5463 (x_draw_window_cursor): New X-specific functions for RIF.
5464 (x_redisplay_interface): Add new members.
5465
5466 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
5467
5468 * w32term.h (struct w32_output): Remove cross_cursor member.
5469
5470 * w32term.c: Remove consolidated defines and code.
5471 (BETWEEN): Remove unused macro.
5472 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
5473 (w32_define_frame_cursor, w32_clear_frame_area)
5474 (w32_draw_window_cursor): New W32-specific functions for RIF.
5475 (w32_redisplay_interface): Add new members.
5476
a64387ee 5477 * w32gui.h (No_Cursor): Define as 0 for W32.
acd37560
KS
5478 (XRectangle): Add X compatible rectangle type.
5479 (NativeRectangle): Declare as RECT for W32.
5480 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
5481
5482 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
5483
5484 * w32console.c: Remove consolidated defines and code.
af0ad939 5485
acd37560
KS
5486 * msdos.h (Display_Info): Add generic typedef.
5487
5488 * msdos.c: Remove consolidated defines and code.
5489 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
5490
5491 * macterm.h (struct mac_output): Replace member cross_cursor by
5492 hand_cursor.
5493 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
5494
5495 * macterm.c: Remove consolidated defines and code.
5496 (BETWEEN): Remove unused macro.
5497 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
5498 (mac_define_frame_cursor, mac_clear_frame_area)
5499 (mac_draw_window_cursor): New Mac-specific functions for RIF.
5500 (x_redisplay_interface): Add new members.
5501
5502 * macgui.h (No_Cursor): Define as 0 for Mac.
5503 (XRectangle): Add X compatible rectangle type.
5504 (NativeRectangle): Declare as Rect for Mac.
5505 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
5506
204ccab1
KS
5507 * macfns.c (x_set_mouse_color): Setup hand_cursor.
5508 (x_set_cursor_color): Use x_display_and_set_cursor.
acd37560 5509
9443fcf6 5510 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
acd37560
KS
5511 included from it. Add dependency on keymap.h.
5512
5513 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
5514
8ba01a70 55152003-03-21 Kenichi Handa <handa@m17n.org>
3f817c73
KH
5516
5517 * fileio.c (Fexpand_file_name): Fix previous change.
5518
8ba01a70 55192003-03-19 Kenichi Handa <handa@m17n.org>
4f497b0a
KH
5520
5521 * fileio.c (Ffile_name_directory): Reconstruct file name by
5522 make_specified_string.
5523 (Ffile_name_nondirectory, Ffile_name_as_directory)
5524 (Fdirectory_file_name, Fexpand_file_name)
5525 (Fsubstitute_in_file_name): Likewise.
5526 (Fread_file_name): Compare decoded homedir with DIR and
5527 DEFAULT_FILENAME.
5528
5529 * alloc.c (make_specified_string): If NCHARS is negative, count
5530 the number of characters.
5531
19536747
JD
55322003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5533
de38ae5a
JD
5534 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
5535 all widgets.
5536
19536747
JD
5537 * gtkutil.h: Removed xg_ignore_next_thumb.
5538
37ab321e 55392003-03-18 Kenichi Handa <handa@m17n.org>
cb0d4562
KH
5540
5541 * coding.c (Vchar_coding_system_table): Remove this variable.
5542 (Vcoding_system_safe_chars): New variable.
5543 (intersection): Remove this function.
5544 (find_safe_codings): Don't use Vchar_coding_system_table, but try
5545 all codings in SAFE_CODINGS.
00c64fab 5546 (Ffind_coding_systems_region_internal): Adjust for the change of
cb0d4562
KH
5547 find_safe_codings. Get generic coding systems from
5548 Vcoding_system_safe_chars.
5549 (Fdefine_coding_system_internal): New function.
5550 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
5551 Initialize and staticpro Vcoding_system_safe_chars.
5552
17097258
JD
55532003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5554
2a2071c3
JD
5555 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
5556 equal old values before updating.
5557
17097258
JD
5558 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
5559
5560 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
5561
55622003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5563
5564 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
5565 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
5566 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
5567 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
5568 (xg_create_scroll_bar): Pass bar to button event callback.
5569 (xg_find_top_left_in_fixed): New function.
5570 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
5571 whole scroll bar area. Get old position with
5572 xg_find_top_left_in_fixed, calculate and only clear needed areas.
5573 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
5574 dragging is in progress. Calculate whole as for Motif.
5575 Remove code that saved last values. Call gtk_range functions to
5576 set scroll bar sizes.
5577
5578 * gtkutil.h: Removed xg_ignore_next_thumb.
5579
8cb9dfbf
JB
55802003-03-17 Juanma Barranquero <lektu@terra.es>
5581
5582 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
5583 and files included from it.
5584
00c64fab
SM
55852003-03-18 Stefan Monnier <monnier@cs.yale.edu>
5586
5587 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
5588 multiple occurrences of the same keymap under different prefixes.
5589 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
5590
c45bb3b2
JR
55912003-03-16 Jason Rumney <jasonr@gnu.org>
5592
5593 * w32gui.h: Use HDC for Display.
5594
5595 * w32term.c (w32_encode_char): Prevent double-byte chars from
5596 crashing Emacs.
5597
5598 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
5599 as binary.
5600
2a6d0874
JB
56012003-03-16 Juanma Barranquero <lektu@terra.es>
5602
5603 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
5604
03eb5fab
KS
56052003-03-16 Kim F. Storm <storm@cua.dk>
5606
5607 The following changes consolidate some of the gui-independent
5608 parts of the processing and drawing of "glyph strings" from
5609 xterm.c, w32term.c, and macterm.c into xdisp.c.
2a6d0874 5610
03eb5fab
KS
5611 * dispextern.h (struct glyph): Reduce face_id member from 22 to
5612 21 bits (this reduces number of faces from 4M to 2M).
5613 Replace W32 specific w32_font_type member (2 bits) by generic
5614 font_type member (3 bits) for portability.
5615 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
5616 (enum draw_glyphs_face): Define here.
5617 (struct glyph_string): Define here. Merge W32 and X versions.
5618 (struct redisplay_interface): New members per_char_metric,
5619 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
5620 (VCENTER_BASELINE_OFFSET): Define here.
5621 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
5622 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
5623
5624 * xdisp.c: Consolidate gui-independent "glyph string" code here.
5625 (dump_glyph_string): Moved here.
5626 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
5627 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
5628 (fill_composite_glyph_string, fill_glyph_string)
5629 (fill_image_glyph_string, fill_stretch_glyph_string)
5630 (left_overwritten, left_overwriting, right_overwritten)
5631 (right_overwriting, get_char_face_and_encoding)
5632 (set_glyph_string_background_width, compute_overhangs_and_x)
5633 (append_glyph, append_composite_glyph, produce_image_glyph)
5634 (take_vertical_position_into_account, append_stretch_glyph)
5635 (produce_stretch_glyph): New generic functions (based on X version).
5636 Call platform specific functions through rif.
5637 (INIT_GLYPH_STRING): New macro, hides W32 details.
5638 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
5639 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
5640 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
5641 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
5642 (notice_overwritten_cursor):
5643 Generic functions exported to platform modules. Users changed.
5644
5645 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
5646 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
5647 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
fad49844 5648 New macros for consolidated code.
2a6d0874 5649
03eb5fab
KS
5650 * xterm.c: Remove consolidated defines and code.
5651 (x_per_char_metric, x_encode_char)
5652 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
5653 (x_redisplay_interface): Add new members.
5654
5655 * w32gui.h (Display): Add dummy typedef for consolidation.
5656 (XChar2b): Define alias for wchar_t for consolidation.
5657 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
5658
5659 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
2a6d0874 5660 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
03eb5fab
KS
5661 New macros for consolidation.
5662
fad49844 5663 * w32term.c: Remove consolidated defines and code.
03eb5fab
KS
5664 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
5665 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
5666 (w32_per_char_metric): Change font_type arg to int for RIF.
5667 (w32_encode_char): Return int according to RIF requirements.
5668 (w32_compute_glyph_string_overhangs): Adapt to RIF.
5669 (w32_get_glyph_overhangs): New function for RIF. Uses generic
5670 x_get_glyph_overhangs.
5671 (w32_redisplay_interface): Add new members.
5672
5673 * macgui.h (XChar2b): Move typedef here for consolidation.
5674 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
5675
5676 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
5677 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
5678 consolidation.
5679
5680 * macterm.c: Remove consolidated defines and code.
5681 (mac_per_char_metric): New function for RIF.
00c64fab 5682 (mac_encode_char): Adapt to new RIF requirements.
03eb5fab
KS
5683 (mac_compute_glyph_string_overhangs): Adapt for RIF.
5684 (x_redisplay_interface): Add new members.
5685
00c64fab
SM
56862003-03-15 Stefan Monnier <monnier@cs.yale.edu>
5687
5688 * keymap.c (Vmenu_events): New var.
5689 (syms_of_keymap): Initialize it.
5690 (where_is_internal): Check more carefully what is a menu event.
5691
225c7a07
RS
56922003-03-14 Richard M. Stallman <rms@gnu.org>
5693
5694 * lread.c (read1): After #!, exit loop on eof.
5695
cea9be54
JD
56962003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5697
9ea0e54d
JD
5698 * gtkutil.h: Add declaration for xg_frame_cleared.
5699
0cb35f4e
JD
5700 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
5701
cea9be54
JD
5702 * gtkutil.c (struct xg_last_sb_pos): New structure.
5703 (handle_fixed_child): New function.
5704 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
5705 and force a redraw on them.
5706 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
5707 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
5708 so we can avoid unneeded redraws.
5709 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
5710 and force a redraw on the scroll bar.
5711 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
5712 if xg_last_sb_pos shows the positions are up to date.
0cb35f4e 5713 (xg_frame_cleared): New function.
cea9be54 5714
20b853f3
KH
57152003-03-13 Kenichi Handa <handa@m17n.org>
5716
5717 * coding.c (Fdetect_coding_region): Fix docstring.
5718 (Fdetect_coding_string): Fix docstring.
5719
7a555aff
AS
57202003-03-13 Andreas Schwab <schwab@suse.de>
5721
25cc0080
AS
5722 * gtkutil.c: Add prototype for create_menus.
5723
30225431
AS
5724 * data.c (long_to_cons): Fix type of top.
5725
5726 * xselect.c (selection_data_to_lisp_data): Use int instead of
5727 long for an integer of size 4.
5728
7a555aff 5729 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
30225431 5730 (xg_tool_bar_help_callback): Likewise.
7a555aff 5731
a3e4741f
AS
57322003-03-12 Andreas Schwab <schwab@suse.de>
5733
5734 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
5735
9668be7c
KS
57362003-03-12 Kim F. Storm <storm@cua.dk>
5737
03eb5fab 5738 The following changes consolidate the fringe handling from
9668be7c 5739 xterm.c, w32term.c, and macterm.c into xdisp.c.
00a88f32 5740
9668be7c
KS
5741 * xdisp.c: Consolidate fringe handling code here.
5742 (left_bits, right_bits, continued_bits, continuation_bits)
5743 (ov_bits, zv_bits): Define fringe bitmaps.
5744 (fringe_bitmaps): New array holding fringe bitmaps.
5745 (draw_fringe_bitmap): Draw a specific bitmap; call display
5746 specific drawing routine via rif->draw_fringe_bitmap.
5747 (draw_row_fringe_bitmaps): Generic replacement for
5748 x_draw_row_fringe_bitmaps; all callers changed.
5749 (compute_fringe_widths): Generic replacement for
5750 x_compute_fringe_widths; all callers changed.
5751
5752 * dispextern.h (enum fringe_bitmap_type): Define here.
5753 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
5754 (fringe_bitmaps): Declare extern.
5755 (struct redisplay_interface): New member draw_fringe_bitmap.
5756 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
5757
5758 * xterm.c: Remove generic fringe code.
5759 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
5760 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
5761
5762 * w32term.c: Remove generic fringe code.
5763 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
5764 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
00a88f32 5765
9668be7c
KS
5766 * macterm.c: Remove generic fringe code.
5767 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
5768 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
5769
00a88f32
SM
57702003-03-11 Stefan Monnier <monnier@cs.yale.edu>
5771
5772 * print.c (Fprin1_to_string): Return unibyte string if possible.
5773
1d1de695
DK
57742003-03-09 David Kastrup <dak@gnu.org>
5775
5776 * process.c (read_process_output): We have allocated enough space
5777 for readmax and carryover, so actually use the alloted space.
5778
257f40f2
JD
57792003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5780
5781 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
5782 toolkit scrollbar click.
5783
5784 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
5785 for USE_GTK.
5786 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
5787 also.
5788 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
5789 scrollbar and control is pressed, call x_scroll_bar_handle_click.
00a88f32 5790
257f40f2
JD
5791 * gtkutil.h: Declare xg_get_scroll_id_for_window.
5792
5793 * gtkutil.c (xg_get_scroll_id_for_window): New function.
5794 (xg_tool_bar_item_expose_callback): New function.
5795 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
5796 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
5797 on the tool bar widget.
5798 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
5799 to expose on the tool bar item widgets.
5800
15213141
JD
58012003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5802
26b74a0b 5803 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
00a88f32 5804 struct image* when deciding to update (struct image* may have been
26b74a0b
JD
5805 deleted from the image cache).
5806
15213141
JD
5807 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
5808 the event isn't for a frame (i.e. for dialogs).
5809
20b853f3 58102003-03-07 Kenichi Handa <handa@m17n.org>
cb681b34
KH
5811
5812 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
5813 composition components reaches the limit, terminate composing.
5814 (COMPOSITION_OK): New macro.
00a88f32 5815 (detect_coding_iso2022): Use it if an escape sequence for
cb681b34
KH
5816 composition is found.
5817 (coding_restore_composition): Adjust the number of composition
5818 components if it is not sane.
5819
c9029fe5
JB
58202003-03-06 Juanma Barranquero <lektu@terra.es>
5821
5822 * w32term.h (struct w32_display_info): Add xrdb member to support
5823 passing resources via -xrm on Windows.
5824
5825 * w32term.c (w32_make_rdb): New function.
5826 (w32_term_init): Use it to initialize xrdb member of w32_display_info
5827 struct. Delete leftover code.
5828
5829 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
5830 for resources passed on the command line.
5831
5832 * w32reg.c (w32_get_rdb_resource): New function.
5833 (x_get_string_resource): Use it, so resources passed with -xrm
5834 supercede the ones in the registry.
5835
9d00001f
JD
58362003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5837
5838 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
5839 instead of x_top_window_to_frame.
5840
ca2417b9
JD
58412003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5842
5843 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
5844 when restarting Emacs.
5845
5b20caf0
RS
58462003-03-03 Richard M. Stallman <rms@gnu.org>
5847
5848 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
5849 to run kill-buffer-query-functions.
5850 (Qkill_buffer_query_functions): New var.
5851 (syms_of_buffer): Init and staticpro it.
5852
58e91b77
JD
58532003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5854
5855 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
5856
932357b4
KS
58572003-02-25 Kim F. Storm <storm@cua.dk>
5858
5859 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
5860 If centering point failed to make whole line visible and vscroll
5861 is non-zero, disable vscroll and try centering point again.
5862
5863 * lread.c (read1): Accept `single space' syntax like (? x).
5864
bb8db7e1
JD
58652003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5866
5867 * keyboard.c (cancel_hourglass_unwind): Surround with
5868 #ifdef HAVE_X_WINDOWS
5869
47d77aab
KH
58702003-02-25 Kenichi Handa <handa@m17n.org>
5871
5872 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
5873 process only when "subprocesses" is defined.
5874
6a097c0c
SM
58752003-02-24 Stefan Monnier <monnier@cs.yale.edu>
5876
5877 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
5878
0b063c27
JB
58792003-02-24 Juanma Barranquero <lektu@terra.es>
5880
d1135afc
JB
5881 * callint.c (fix_command): Declare as static void and move before
5882 Fcall_interactively.
5883
0b063c27
JB
5884 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
5885 (syms_of_xdisp): Don't initialize Qwhen.
5886
0af912f0
JD
58872003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5888
5889 * keyboard.c (cancel_hourglass_unwind): New function.
5890 (command_loop_1): Cancel hourglass with unwind-protect.
5891
120d0a23
RS
58922003-02-23 Richard M. Stallman <rms@gnu.org>
5893
5894 * callint.c (fix_command): New subroutine, from Fcall_interactively.
5895 Detect (when ... (region-beginning)) etc.
5896 (Fcall_interactively): Call fix_command.
5897 (Qif, Qwhen): New variables.
5898 (syms_of_callint): Init and staticpro them.
0b063c27 5899
120d0a23
RS
5900 * regex.c (print_partial_compiled_pattern): Output to stderr.
5901
4ece81a6
KG
59022003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
5903
5904 * dired.c (directory_files_internal): Don't expand directory.
5905 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
5906 instead. From Lars Hansen <larsh@math.ku.dk>.
5907
e52bd6b7
SM
59082003-02-22 Stefan Monnier <monnier@cs.yale.edu>
5909
5910 * fns.c (string_to_multibyte): Remove unused var i.
5911 (Flanginfo): Fix int/Lisp_Object mixup.
5912 (void_call2): New fun.
5913 (Fmap_char_table): Use it in place of call2.
5914
5915 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
5916
5917 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
5918
5919 * keymap.c (copy_keymap_1): Make it static.
5920
5921 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
5922
c33ef7c4
JB
59232003-02-22 David Ponce <david@dponce.com>
5924
5925 * lread.c (Fload): Don't check STRING_MULTIBYTE.
5926
16782258
JD
59272003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5928
5929 * process.h: Removed subtty field from struct Lisp_Process.
5930
5931 * process.c (create_process): Remove setting of subtty.
5932 (emacs_get_tty_pgrp): New function.
e52bd6b7
SM
5933 (Fprocess_running_child_p, process_send_signal):
5934 Call emacs_get_tty_pgrp instead of ioctl.
16782258
JD
5935 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
5936
3abeca61
KG
59372003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
5938
5939 * keymap.c (Fdefine_key): Doc fix.
5940
92a8ce63
JB
59412003-02-21 Juanma Barranquero <lektu@terra.es>
5942
5943 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
5944
5945 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
5946 POLLING_PROBLEM_IN_SELECT.
5947
5948 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
5949 Delete #undef of POLLING_PROBLEM_IN_SELECT.
5950
5951 * s/hpux10-20.h: New file.
5952
e52bd6b7
SM
5953 * process.c (wait_reading_process_input):
5954 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
92a8ce63 5955
20f1ef2e
KH
59562003-02-20 Kenichi Handa <handa@m17n.org>
5957
32d0a9dc
KH
5958 * fontset.c (check_fontset_name): If NAME is nil, return the
5959 default fontset.
5960 (override_font_info): New function.
e52bd6b7 5961 (Fset_fontset_font): Document that NAME nil means the default fontset.
32d0a9dc
KH
5962 (Ffontset_info): If FONTSET is not the default fontset, merge
5963 FONTSET onto the copy of the default fontset, and work on that
5964 copy. Document that NAME nil means the default fontset.
5965 (Ffontset_font): Document that NAME nil means the default fontset.
5966
20f1ef2e
KH
5967 * process.c (setup_process_coding_systems): If the process's
5968 in/out descriptor is -1, do nothing.
5969
77d1daf2
AS
59702003-02-19 Andreas Schwab <schwab@suse.de>
5971
e52bd6b7
SM
5972 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
5973 Add prototypes.
77d1daf2 5974
f9a45bb3
KH
59752003-02-19 Kenichi Handa <handa@m17n.org>
5976
5977 * xfaces.c (try_alternative_families): Try all scalable fonts if
5978 Vscalable_fonts_allowed is not Qt.
5979
72ecb43c
JD
59802003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5981
5982 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
5983
ee5be7c3
JD
59842003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5985
5986 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
5987 names.
5988
5989 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
e52bd6b7 5990 (sorted_font_list): Move allocation of struct font_name to
ee5be7c3
JD
5991 x_face_list_fonts.
5992 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
5993 (Fx_list_fonts): Set maxnames to -1 to get all font names.
5994
4cd519a7
KS
59952003-02-18 Kim F. Storm <storm@cua.dk>
5996
068f9882
KS
5997 * lread.c (read1): Fix last change.
5998 "`" is not always special. Allow "?" after a character constant.
4cd519a7 5999
7290a344
AC
60002003-02-18 Andrew Choi <akochoi@shaw.ca>
6001
6002 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
6003
1f7fa69b
AS
60042003-02-18 Andreas Schwab <schwab@suse.de>
6005
6006 * window.c (window_scroll_pixel_based): Move outside a
6007 multi-glyph character before setting new window start.
6008
6009 * xdisp.c (in_display_vector_p): New function.
6010 * dispextern.h (in_display_vector_p): Declare.
6011
23e21195
KS
60122003-02-18 Kim F. Storm <storm@cua.dk>
6013
6014 * lread.c (read1): Fix and relax read syntax.
6015 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
6016 Only recognize "," after dotted-pair dot if inside backquote.
6017 Never include "`" or "," (inside backquote) in a symbol.
6018 Allow dotted-pair dot after a character constant.
6019 Allow "`" and "," (inside backquote) after a character constant.
92a8ce63 6020
f098b121
JD
60212003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6022
6023 * gtkutil.c (xg_tool_bar_expose_callback): New function.
6024 (xg_create_tool_bar): Force style of tool bar to be horizontal with
6025 icons. Set name of tool bar to emacs-toolbar.
6026 (update_frame_tool_bar): Connect expose event to
6027 xg_tool_bar_expose_callback.
6028
63020c46
RS
60292003-02-17 Richard M. Stallman <rms@gnu.org>
6030
6031 * keyboard.c (this_command_key_count_reset): New variable.
6032 Initiatize to 0 where this_command_key_count is set.
6033 (read_char): Save and restore this_command_key_count_reset
6034 around input method code.
6035 (read_char): If this_command_key_count_reset, echo reread commands.
6036 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
6037
fb4452cc
KH
60382003-02-17 Kenichi Handa <handa@m17n.org>
6039
6040 * fns.c (string_to_multibyte): Always return a multibyte string.
6041
bd11cc09
JR
60422003-02-16 Jason Rumney <jasonr@gnu.org>
6043
e52bd6b7
SM
6044 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
6045 Negative max_fonts parameter means list all.
bd11cc09 6046
4cdf4bde
DL
60472003-02-14 Dave Love <fx@gnu.org>
6048
6049 * fns.c (Flanginfo): Doc fix.
6050
023b93f6
KS
60512003-02-13 Kim F. Storm <storm@cua.dk>
6052
37cd4238
KS
6053 * lread.c (read_escape): Interpret \s as a SPACE character, except
6054 for \s-X in a character constant which still is the super modifier.
6055 (read1): Signal an `invalid read syntax' error if a character
6056 constant is immediately followed by a digit or symbol character.
6057
140a6b7e
KS
6058 * search.c (Fmatch_data): Doc fix. Explicitly state that
6059 match-data is undefined if last search failed.
6060
023b93f6
KS
6061 * keymap.c (Fcommand_remapping): Renamed from Fremap_command.
6062 All uses changed.
6063
7d5c86e5
JB
60642003-02-12 Juanma Barranquero <lektu@terra.es>
6065
6066 * eval.c (Fdefmacro): Fix typo.
6067
295fff2c
KS
60682003-02-12 Kim F. Storm <storm@cua.dk>
6069
6070 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
6071 macro is a string, convert meta modifiers in string when copying
6072 the string into a vector.
6073
60f3202d
KS
60742003-02-11 Kim F. Storm <storm@cua.dk>
6075
6076 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
6077
61cb0b53
KH
60782003-02-11 Kenichi Handa <handa@m17n.org>
6079
6080 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
6081
7392e23c
KS
60822003-02-10 Kim F. Storm <storm@cua.dk>
6083
6084 * process.c: Doc fixes.
6085 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
6086
ce4254bd
KH
60872003-02-10 Kenichi Handa <handa@m17n.org>
6088
9c7a329a
KH
6089 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
6090
ce4254bd
KH
6091 * process.c (QCfilter_multibyte): New variable.
6092 (setup_process_coding_systems): New function.
e52bd6b7
SM
6093 (Fset_process_buffer, Fset_process_filter):
6094 Call setup_process_coding_systems.
ce4254bd
KH
6095 (Fstart_process): Initialize the member `filter_multibyte' of
6096 struct Lisp_Process.
6097 (create_process): Call setup_process_coding_systems.
6098 (Fmake_network_process): New keyward `:filter-multibyte'.
6099 Initialize the member `filter_multibyte' of struct Lisp_Process.
6100 Call setup_process_coding_systems.
6101 (server_accept_connection): Call setup_process_coding_systems.
6102 (read_process_output): If the process has a filter, decide the
6103 multibyteness of a string to given to the filter by
6104 `filter_multibyte' member of the process. If the process doesn't
6105 have a filter and the result of conversion is unibyte, use
6106 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
6107 multibyte form.
6108 (Fset_process_coding_system): Call setup_process_coding_systems.
6109 (Fset_process_filter_multibyte): New function.
6110 (Fprocess_filter_multibyte_p): New function.
6111 (syms_of_process): Intern and staticpro QCfilter_multibyte.
6112 Defsubr Sset_process_filter_multibyte and
6113 Sprocess_filter_multibyte_p.
6114
6115 * process.h (struct Lisp_Process): New member filter_multibyte.
6116
6117 * lisp.h (setup_process_coding_systems): Add prototype.
6118
6119 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
6120 process, update coding systems for the process.
6121
b08d5f59
KH
61222003-02-09 Kenichi Handa <handa@m17n.org>
6123
6124 * fns.c (string_to_multibyte): New function.
6125 (Fstring_to_multibyte): New function.
6126 (syms_of_fns): Defsubr it.
6127
0dfd93c0
AS
61282003-02-08 Andreas Schwab <schwab@suse.de>
6129
6130 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
6131 instead of the substitution.
6132
7b76ca1c
JD
61332003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6134
6135 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
6136
6137 * xmenu.c (menu_position_func): Adjust menu popup position so that
6138 the menu is fully visible.
7b76ca1c 6139
2436a4e4
JD
61402003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6141
6142 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
e52bd6b7
SM
6143 (x_make_frame_invisible, x_wm_set_icon_position):
6144 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
2436a4e4
JD
6145
6146 * xfns.c (x_set_name, x_set_title): Ditto.
6147
37d1e680
RS
61482003-02-04 Richard M. Stallman <rms@gnu.org>
6149
6150 * keyboard.c (echo_now): Update before_command_echo_length.
6151 (Freset_this_command_lengths): Reset this_command_key_count etc.
6152 immediately rather than arranging to do it later.
6153 (before_command_key_count_1, before_command_echo_length_1)
6154 (before_command_restore_flag): Vars deleted.
6155 (add_command_key): Don't handle before_command_restore_flag.
6156 (read_char, record_menu_key): Don't update before_command_key_count or
6157 before_command_echo_length.
6158 (read_char): Don't handle before_command_restore_flag.
6159
6160 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
6161 in direct-output clauses if it wouldn't be called in the ordinary case.
6162
578846a3
KS
61632003-02-04 Kim F. Storm <storm@cua.dk>
6164
6165 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
6166
49853a4d
JD
61672003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6168
6169 * gtkutil.c (remove_from_container): Copying list is not needed.
6170 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
6171 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
6172 on list returned from gtk_container_get_children to avoid memory leak.
6173
8b53dc06
JR
61742003-02-01 Jason Rumney <jasonr@gnu.org>
6175
5d54d177
JR
6176 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
6177 local malloc.
6178 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
6179 definitions in xpm.h.
6180 (init_xpm_functions): New function.
6181 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
6182 (init_external_image_libraries): Try to load libXpm.dll.
6183
8b53dc06
JR
6184 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
6185 timestamp.
6186
b222e415
DL
61872003-01-31 Dave Love <fx@gnu.org>
6188
6189 * syntax.c (Fskip_chars_forward)
6190 (open-paren-in-column-0-is-defun-start): Doc fix.
6191
c60ee5e7
JB
61922003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
6193
6194 * fileio.c: Support // at start of name for Cygwin (just added proper
6195 preprocessor tests).
6196
6197 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
6198
6199 * Makefile.in: Use @EXEEXT@ for Cygwin.
6200
6201 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
6202
6203 * s/cygwin.h: Added for Cygwin port.
6204
53b37591
JB
62052003-01-31 Juanma Barranquero <lektu@terra.es>
6206
6207 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
6208 when including gif_lib.h.
fe929957
JB
6209 (init_gif_functions, init_tiff_functions): New functions.
6210 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
6211 Windows. Disable color table lookups. Call library functions
53b37591 6212 through pointers determined at runtime.
fe929957
JB
6213 (init_external_image_libraries): Try to load libungif.dll and
6214 libtiff.dll.
53b37591 6215
45415a8f
KH
62162003-01-31 Kenichi Handa <handa@m17n.org>
6217
6218 * xdisp.c (SKIP_GLYPHS): New macro.
e52bd6b7 6219 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
45415a8f 6220
a97e4138
JD
62212003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6222
e52bd6b7 6223 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
a97e4138 6224
6eed9bed
DL
62252003-01-30 Dave Love <fx@gnu.org>
6226
6227 * alloc.c (Vgc_elapsed, gcs_done): New variables.
6228 (Fgarbage_collect): Use them.
6229 (init_alloc, syms_of_alloc): Set them up.
6230
100dcd40
JB
62312003-01-30 Juanma Barranquero <lektu@terra.es>
6232
6233 * w32fns.c (init_external_image_libraries): Add missing operator.
6234
fbd852af
JR
62352003-01-29 Jason Rumney <jasonr@gnu.org>
6236
6237 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
6238 an alternative name for jpeg.dll.
6239
8a2d8020
KH
62402003-01-29 Kenichi Handa <handa@m17n.org>
6241
6242 * xdisp.c (set_cursor_from_row): Pay attention to string display
6243 properties.
6244
058c18c7
AC
62452003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
6246
6247 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
6248 <escape>.
6249 (keycode_to_xkeysym_table): Reformat and add more comments.
6250 (XTread_socket): Drop special case for backspace.
6251
385f11cf
AC
62522003-01-28 Andrew Choi <akochoi@shaw.ca>
6253
6254 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
6255 values in old-style RGB specs.
6256
c922a224
JB
62572003-01-27 Juanma Barranquero <lektu@terra.es>
6258
6259 * w32fns.c (init_external_image_libraries): Try alternate names for the
6260 jpeg dll.
6261
0a1d6de0
JD
62622003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6263
6264 * gtkutil.c (create_dialog, xg_separator_p)
6265 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
6266 before calling strcmp or strlen.
6267
a97e4138 62682003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1d1885fc
JD
6269
6270 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
6271 and handle image load failure.
6272
28908312
JR
62732003-01-26 Jason Rumney <jasonr@gnu.org>
6274
6275 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
6276 New functions.
6277 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
6278 Disable color table lookups. Call jpeg library functions
6279 through pointers determined at runtime.
6280 (init_external_image_libraries): Try to load jpeg.dll.
6281
84e47416
RS
62822003-01-25 Richard M. Stallman <rms@gnu.org>
6283
6284 * lisp.h: Declare format2 instead of format1.
6285
6286 * fileio.c (barf_or_query_if_file_exists):
6287 Call format2 instead of format1.
6288
6289 * editfns.c (format2): New function, replaces format1
6290 but takes exactly two Lisp Objects as format args.
6291
6292 * buffer.c (Fkill_buffer): Call format2 instead of format1.
6293
a97e4138 62942003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1fcfb866
JD
6295
6296 * xterm.h: Change to return value of x_dispatch_event to int.
6297
6298 * xterm.c (x_filter_event): New function.
6299 (event_handler_gdk, XTread_socket): Call x_filter_event.
6300 (x_dispatch_event): Change to return value of finish.
6301 (event_handler_gdk): Use return value from x_dispatch_event.
6302
6303 * xfns.c (x_window): Call create_frame_xic for GTK version to
6304 initialize input methods.
6305
6306 * gtkutil.h: Add (void) prototypes.
6307
6308 * gtkutil.c (create_menus): Remove code that puts the help menu to
6309 the right.
6310
54eefef1
JR
63112003-01-25 Jason Rumney <jasonr@gnu.org>
6312
6313 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
6314 [HAVE_PNG]: Sync with xfns.c version.
6315 (png_load): Adjust colors for Windows. Use Windows
6316 bitmaps. Disable color table lookups.
c262430d
JR
6317 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
6318 (init_png_functions): New function.
6319 (png_read_from_memory, png_load): Call png library functions
6320 through pointers determined at runtime.
6321 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
6322 (init_external_image_libraries): New function.
6323 (init_xfns): Call it.
54eefef1 6324
1a9e275b
AS
63252003-01-24 Andreas Schwab <schwab@suse.de>
6326
6327 * minibuf.c (Fminibuffer_message): Verify type of parameter.
6328
a97e4138 63292003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
81e302ef
JD
6330
6331 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
6332 of static initializer.
6333
422eec7e
DL
63342003-01-24 Dave Love <fx@gnu.org>
6335
6336 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
6337 architectures.
6338
6339 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
6340 Use __alignof__.
6341
2a026b04
KH
63422003-01-24 Kenichi Handa <handa@m17n.org>
6343
6344 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
e52bd6b7 6345 It it is nonzero, don't pretend that an invisible area doesn't exist.
2a026b04
KH
6346 (command_loop_1): Call adjust_point_for_property with proper
6347 second arg.
6348
a18bb28d
JR
63492003-01-22 Jason Rumney <jasonr@gnu.org>
6350
6351 Sync changes with xterm.c and xfns.c.
6352
6353 * w32term.c (x_draw_glyph_string_foreground)
6354 (x_draw_composite_glyph_string_foreground): Implement overstriking.
6355
6356 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
6357 phys_cursor's hpos is overwritten. This is still not completely
6358 correct, as it doesn't really make sense to use hpos at all to
6359 get the cursor glyph (as that is relative to the width of the
6360 characters on the line, which may have changed during the update).
6361
6362 * w32term.c (notice_overwritten_cursor): Handle the special case
6363 of the cursor being in the first blank non-text line at the
6364 end of a window.
6365
6366 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
6367 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
6368 Compute from the x position returned by x_draw_glyphs.
6369
6370 (x_display_and_set_cursor): Don't set phys_cursor_width here,
6371 except for NO_CURSOR and system caret, to make phys_cursor_width
6372 contain what its name suggests.
6373 (notice_overwritten_cursor): Consider the cursor image erased if
6374 the output area intersects the cursor image in y-direction.
6375
6a097c0c
SM
6376 * w32term.c (note_mode_line_or_margin_highlight): Rename from
6377 note_mode_line_highlight and extend.
a18bb28d
JR
6378
6379 * w32term.c (last_window): New variable.
6380 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
6381 (note_mouse_movement): Remove reimplemented code in #if 0.
6382
6383 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
6384 not update_mode_lines, and always set it to 1.
6385
ac6e47ef
JR
63862003-01-21 Jason Rumney <jasonr@gnu.org>
6387
6388 * w32fns.c (IDC_HAND): Define it if system headers don't.
6389
63902003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
6391
6392 * w32term.h (struct w32_output): New member hand_cursor.
6393 (WM_EMACS_SETCURSOR): New message definition.
6394
6395 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
6396 function w32_define_cursor.
6397 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
6398 position, change member name output_data.x to output_data.w32 and
6399 add function w32_define_cursor.
6400 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
6401 and change member name output_data.x to output_data.w32.
e52bd6b7
SM
6402 (w32_initialize_display_info):
6403 Setup dpyinfo->vertical_scroll_bar_cursor.
ac6e47ef
JR
6404
6405 * w32fns.c (Vx_hand_shape): New variable.
6406 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
6407 WM_EMACS_SETCURSOR.
6408 (x-create-frame): Setup Cursor types.
6409
ceb39a17
JB
64102003-01-21 David Ponce <david@dponce.com>
6411
ac6e47ef
JR
6412 * w32term.c (w32_encode_char): For DIM=1 charset, set
6413 ccl->reg[2] to -1 before calling ccl_driver. (Sync. with xterm.c
6414 x_encode_char change by Kenichi Handa <handa@m17n.org> on
ceb39a17 6415 2002-09-30.)
ac6e47ef
JR
6416 (w32_draw_relief_rect): Declare all args.
6417 (w32_define_cursor): New.
6418
6419 * w32fns.c (w32_load_cursor): New function.
6420 (w32_init_class): Use it.
6421 (x_put_x_image): Declare all args.
6422
46cf0bed
JB
64232003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk> (tiny change)
6424
6425 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
6426
a97e4138 64272003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e8794476
JD
6428
6429 * gtkutil.c: Must include stdio.h before termhooks.h
6430
83fc9c63
DL
64312003-01-21 Dave Love <fx@gnu.org>
6432
6433 * alloc.c (Fgc_status): Print zombie list.
6434 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
6435 Fix assignment of zombies.
6436 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
6437 Don't take car of non-cons.
6438
6439 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6440
6441 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6442
fe04b8c8
JR
64432003-01-20 David Ponce <david@dponce.com>
6444
6445 * w32menu.c (digest_single_submenu): Declare all args.
6446
6447 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
6448 changes in xmenu.c:
6449
6450 (parse_single_submenu): Use individual keymap's prompt
6451 string as pane name, if there is one.
6452 (set_frame_menubar): Save menu_items_n_panes from each call to
6453 parse_single_submenu and use it when calling digest_single_submenu.
6454
539e69a9
ST
64552003-01-20 Steven Tamm <steventamm@mac.com>
6456
6457 * macterm.c (XTread_socket): Checks for valid, visible window
6458 before sending a scroll-wheel event.
6459
675d000f
RS
64602003-01-20 Richard M. Stallman <rms@gnu.org>
6461
6462 * xdisp.c (redisplay_window): If mini window's buffer is not
6463 a minibuffer, then redisplay it like other windows.
6464
a97e4138 64652003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22174d10
JD
6466
6467 * gtkutil.c (xg_create_frame_widgets): Check if there is an
6468 external tool bar before setting tool bar height.
6469
048addec
JD
64702003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6471
6472 * xterm.c (handle_one_xevent): Surround popup_activated
6473 with #ifdef:s for non-toolkit version.
6474
6475 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
6476 (gtkutil.o): New file.
6477 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
6478 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
6479
6480 * gtkutil.c: New file for GTK version.
6481
6482 * gtkutil.h: New file for GTK version.
6483
6484 * xterm.h: Add xt_or_gtk_widget.
6485 Include gtk files for USE_GTK.
6486 (struct x_output): Add toolbar_height.
6487 (struct x_output): Add GTK widgets and Gdk size_hints.
6488 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
6489 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
6490 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
6491
6492 * xterm.c: Include gtkutil.h for USE_GTK.
6493 Declare extern void free_frame_menubar for USE_GTK.
6494 (note_mouse_highlight): Check popup_activated for USE_GTK.
6495 (xt_action_hook): Don't compile if USE_GTK.
6496 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
6497 (xg_scroll_callback): New function.
6498 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
6499 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
6500 for USE_GTK.
6501 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
6502 xg_show_scroll_bar for USE_GTK.
6503 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
6504 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
6505 (event_handler_gdk): New function for USE_GTK.
6506 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
6507 (handle_one_xevent): Make sure widget is mapped before
6508 calling x_real_positions for USE_GTK.
6509 (XTread_socket): Add GTK event loop for USE_GTK.
6510 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
6511 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
6512 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
6513 (x_iconify_frame): Add code for USE_GTK.
6514 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
6515 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
6516 is in gtkutil.c.
6517 (x_term_init): Add initialization for GTK.
6518 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
6519
6520 * xmenu.c: Include gtkutil.h for USE_GTK.
6521 (Fx_popup_menu): Use current position if x and y is NIL.
6bdb309a
SM
6522 (single_menu_item, single_menu_item, Fx_popup_dialog):
6523 Check for USE_GTK.
048addec
JD
6524 (popup_widget_loop): New function for USE_GTK.
6525 (x_activate_menubar): Add code for USE_GTK.
6526 (popup_activate_callback, popup_deactivate_callback)
6bdb309a
SM
6527 (menu_highlight_callback, menubar_selection_callback):
6528 Add USE_GTK versions.
048addec
JD
6529 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
6530 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
6531 (free_frame_menubar): Only compile if not USE_GTK. GTK version
6532 is in gtkutil.c.
6533 (popup_selection_callback): New version for USE_GTK.
6534 (create_and_show_popup_menu): New fuction, one USE_GTK version and
6bdb309a 6535 one USE_X_TOOLKIT version.
048addec
JD
6536 (xmenu_show): Call create_and_show_popup_menu.
6537 (dialog_selection_callback): New version for USE_GTK.
6538 (create_and_show_dialog): New fuction, one USE_GTK version and
6bdb309a 6539 one USE_X_TOOLKIT version.
048addec
JD
6540 (xdialog_show): Call create_and_show_dialog.
6541
6542 * xfns.c: Include gtkutil for USE_GTK.
6543 (x_window_to_frame, x_any_window_to_frame)
6544 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
6545 (x_top_window_to_frame): Add code for USE_GTK.
6546 (x_set_background_color): Call xg_set_background_color for GTK.
6547 (x_set_menu_bar_lines): Check for USE_GTK.
6548 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
6549 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
6550 (x_window): Call xg_create_frame_widgets for USE_GTK.
6551 (Fx_create_frame): Check for USE_GTK
6552 (Fx_file_dialog): New implementation for USE_GTK.
6553
6554 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
6555 (update_menu_bar): Add check for USE_GTK.
6556 (update_tool_bar): Add check for USE_GTK and external tool bar.
6557 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
6558 (redisplay_internal): Add check for USE_GTK and popup_activated.
6559 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
6560 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
6561 (display_menu_bar): Add check for USE_GTK
6562
6563 * lisp.h: Declare Vx_resource_name extern.
6564
a64387ee 6565 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
048addec
JD
6566 for USE_GTK.
6567 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
6568
6569 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
6570 (FRAME_EXTERNAL_TOOL_BAR): New macro.
6571 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
6572
6573 * fileio.c (Fread_file_name): Add check for USE_GTK.
6574
6bdb309a
SM
6575 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
6576 Add check for USE_GTK.
048addec
JD
6577
6578 * config.in: Added HAVE_GTK
6579
6580 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
6581
65822003-01-18 Stefan Monnier <monnier@cs.yale.edu>
6583
6584 * charset.h (Funibyte_char_to_multibyte): Export.
6585
65862003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6587
6588 * xmenu.c (mouse_position_for_popup): New function.
6589 (Fx_popup_menu): Call mouse_position_for_popup for X and
6590 mouse_position_hook for others.
6591
65922003-01-17 Kim F. Storm <storm@cua.dk>
6593
6594 * editfns.c (Finsert): Mention `string-make-multibyte' and
6595 `string-as-multibyte' in doc string.
6596
65972003-01-17 Kenichi Handa <handa@m17n.org>
6598
6599 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
3c02a6f5 6600
048addec
JD
6601 * editfns.c (Fformat): Convert an unibyte char argument that is
6602 formatted by "%c" to multibyte if the total result must be a
6603 multibyte string.
cd7df9c0 6604
048addec 66052003-01-16 Kim F. Storm <storm@cua.dk>
cd7df9c0 6606
048addec
JD
6607 * process.c (set-process-filter): Document unibyte/multibyte-ness
6608 of string argument.
56210ecd 6609
048addec 66102003-01-16 Kenichi Handa <handa@m17n.org>
56210ecd 6611
048addec 6612 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
56210ecd 6613
048addec
JD
6614 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
6615 (re_search_2): Likewise.
6df8b9fe 6616
048addec 66172003-01-15 Kenichi Handa <handa@m17n.org>
6df8b9fe 6618
048addec
JD
6619 * xdisp.c (message_dolog): Fix bug of the case that *Message*
6620 buffer is unibyte.
292ddc31 6621
048addec 66222003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
292ddc31 6623
048addec 6624 * fns.c (Fsubstring): Clarify doc string.
292ddc31 6625
048addec
JD
6626 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
6627 (Fprevious_char_property_change)
6628 (Fnext_single_char_property_change)
6629 (Fprevious_single_char_property_change, Fnext_property_change)
6630 (Fnext_single_property_change, Fprevious_property_change)
6631 (Fprevious_single_property_change, Fadd_text_properties)
6632 (Fput_text_property, Fset_text_properties)
6633 (Fremove_text_properties, Fremove_list_of_text_properties)
6634 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
63e4e4c6 6635
048addec 66362003-01-14 Kim F. Storm <storm@cua.dk>
63e4e4c6 6637
048addec
JD
6638 * process.h (struct Lisp_Process): New member plist replaces old
6639 member private_vars. All uses changed.
63e4e4c6 6640
048addec 6641 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
6bdb309a 6642 (QCplist): Rename from QCvars. Change all uses.
048addec 6643 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
6bdb309a 6644 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
048addec 6645 (syms_of_process): Intern, staticpro, defsubr these.
6bdb309a 6646 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
7ed16567 6647
048addec 66482003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
7ed16567 6649
6bdb309a 6650 * m/delta.h: Remove (obsolete).
e833850f 6651
048addec 66522003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
e833850f 6653
048addec
JD
6654 * fileio.c (Fdelete_directory, Fdelete_file): Document the
6655 behaviour in front of symlinks.
6656 (Fdelete_file): Raise an error on directories.
817cb127 6657
048addec 66582003-01-13 Dave Love <fx@gnu.org>
817cb127 6659
048addec 6660 * fns.c (Freverse): Use QUIT.
3e8cf2ea 6661
048addec 66622003-01-13 Richard M. Stallman <rms@gnu.org>
3e8cf2ea 6663
048addec
JD
6664 * minibuf.c (minibuffer_completion_contents):
6665 Error if point is inside prompt.
3e8cf2ea 6666
048addec
JD
6667 * keyboard.c (command_loop_1): Don't redisplay directly
6668 if there's a post-command-hook.
3e8cf2ea 6669
048addec
JD
6670 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
6671 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
2c10f029 6672
048addec 66732003-01-12 Kim F. Storm <storm@cua.dk>
94e8ffca 6674
048addec 6675 * process.h (struct Lisp_Process): New member private_vars.
94e8ffca 6676
048addec
JD
6677 * process.c (QCvars): New variable.
6678 (syms_of_process): Intern and staticpro it.
6679 (Fset_process_contact): Removed function.
6680 (Fprocess_variable, Fset_process_variable): New functions.
6681 (syms_of_process): Defsubr them.
6682 (Fstart_process): Initialize private_vars plist to nil.
6683 (Fmake_network_process): New arg :vars to setup the private
6684 variables for new network process.
6685 (server_accept_connection): Copy server's private variables to
6686 client process.
2c10f029 6687
048addec
JD
6688 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
6689 crashes). Code rewritten and simplified. Now directly aligns the
6690 pointer and recalculates pure_bytes_used, rather than aligning the
6691 size and adjusting the pointer.
b8a76c6c 6692
048addec 66932003-01-11 Kim F. Storm <storm@cua.dk>
b8a76c6c 6694
048addec
JD
6695 * process.c (Fset_process_contact): New function.
6696 (syms_of_process): defsubr it.
6697 (make-network-process): Update doc.
3a8d0899 6698
048addec 66992003-01-10 Andreas Schwab <schwab@suse.de>
3a8d0899 6700
048addec
JD
6701 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
6702 Reported by Berthold Gunreben <b.gunreben@web.de>.
4abc7470 6703
048addec 67042003-01-10 Dave Love <fx@gnu.org>
4abc7470 6705
048addec 6706 * composite.c (syms_of_composite): Make composition_hash_table weak.
b809d662 6707
048addec 67082003-01-09 Kim F. Storm <storm@cua.dk>
b809d662 6709
048addec
JD
6710 * process.c (Fmake_network_process): Convert new port number
6711 to host byte order for `:service t' case. From Mario Lang.
bf338245 6712
048addec 67132003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
bf338245 6714
048addec
JD
6715 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
6716 instead of XtAppProcessEvent.
bf338245 6717
048addec
JD
6718 * xterm.c (handle_one_xevent): New function.
6719 (x_dispatch_event): New function.
6720 (XTread_socket): Call handle_one_xevent.
bf338245 6721
048addec 6722 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
e833850f 6723
048addec
JD
6724 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
6725 call XQueryPointer to get coordinates.
6726 (popup_get_selection): Do not set popup_activated_flag to zero,
6727 let popup_deactivate_callback do that. Needed for Motif.
6728 Call x_dispatch_event instead of XtDispatchEvent.
6729 (xmenu_show): Calculate root coordinate from frame top/left position.
c4af2bce 6730
048addec 67312003-01-08 Kim F. Storm <storm@cua.dk>
c4af2bce 6732
6bdb309a 6733 * process.c (server_accept_connection): Fix recording of new
048addec
JD
6734 connection's local address in :local property of contact info.
6735 (Fmake_network_process): Record local network address for new
6736 client processes in :local property of contact info.
6bdb309a 6737 (format-network-address): Add arg OMIT-PORT. Change callers.
00e3ab56 6738
048addec 67392003-01-07 Dave Love <fx@gnu.org>
00e3ab56 6740
048addec 6741 * Makefile.in (fns.o): Depend on coding.h.
f387e1fd 6742
048addec 67432003-01-07 Markus Rost <rost@math.ohio-state.edu>
f387e1fd 6744
048addec 6745 * minibuf.c (Fread_variable): Doc fix.
f387e1fd 6746
048addec
JD
6747 * eval.c (Fuser_variable_p): Doc change. For custom variables,
6748 use the same test as for custom-variable-p.
8c6d74c6 6749
048addec 67502003-01-05 Richard M. Stallman <rms@gnu.org>
e833850f 6751
048addec
JD
6752 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
6753 Count LAST_LINE_MISFIT in scroll margin for end of window.
6754 Move label too_near_end before setting SCROLL_MARGIN_POS.
6755 Set LAST_LINE_MISFIT before jumping there.
8c6d74c6 6756
048addec
JD
6757 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
6758 scroll_conservatively case. If scrolling that much doesn't change
6759 STARTP, move it down one line.
e833850f 6760
048addec
JD
6761 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
6762 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
8c6d74c6 6763
048addec
JD
6764 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
6765 selected frame.
8c6d74c6 6766
048addec
JD
6767 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
6768 (syms_of_keymap): staticpro them.
6769 (Fapropos_internal): Initialize them and clear them out.
6770 Don't GCPRO them.
8c6d74c6 6771
048addec
JD
6772 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
6773 Doc fixes.
8c6d74c6 6774
048addec
JD
6775 * lisp.h: New misc type Lisp_Save_Value.
6776 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
6777 (XSAVE_VALUE): New macro.
6778 (struct Lisp_Save_Value): New data type.
6779 (union Lisp_Misc): Add u_save_value alternative.
6780 (make_save_value): Declared.
8c6d74c6 6781
048addec 6782 * alloc.c (make_save_value): New function.
8c6d74c6 6783
048addec
JD
6784 * xterm.c (x_catch_errors): Save dpy using make_save_value.
6785 (x_catch_errors_unwind): Call XSync.
8c6d74c6 6786
048addec 67872003-01-01 Richard M. Stallman <rms@gnu.org>
8c6d74c6 6788
048addec 6789 * window.c (window_scroll_pixel_based): Partially undo last change.
8c6d74c6 6790
048addec
JD
6791 * keyboard.c (command_loop_1): Call adjust_point_for_property
6792 in direct action cases for Qforward_char and Qbackward_char.
6793 Set already_adjusted so it won't be done twice.
8c6d74c6 6794
048addec 67952002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk> (tiny change)
8c6d74c6 6796
048addec
JD
6797 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
6798 type definition of size_t.
8c609cff 6799
048addec 68002003-01-02 Steven Tamm <steventamm@mac.com>
8c609cff 6801
048addec
JD
6802 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
6803 distinguish Carbon GUI builds from X11 builds on darwin.
b37113a1 6804
048addec 68052002-12-30 Steven Tamm <steventamm@mac.com>
b37113a1 6806
048addec
JD
6807 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
6808 to default to t.
fa634a5e 6809
048addec 68102002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
fa634a5e 6811
048addec 6812 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
ce0669d4 6813
048addec 68142002-12-28 Steven Tamm <steventamm@mac.com>
ce0669d4 6815
048addec
JD
6816 * Makefile.in (macosx-bundle): Fixes to Mac OS X/Carbon port to
6817 allow building in a different directory than source. Uses some
6818 GNU Make extensions, but there is no other make on Mac OS X.
2308af15 6819
048addec 68202002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
2308af15 6821
048addec
JD
6822 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
6823 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
6824 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
6825 (Fstring_to_number): Mention the returned value in the doc strings.
2155ecf3 6826
048addec 68272002-12-23 Richard M. Stallman <rms@gnu.org>
2155ecf3 6828
048addec
JD
6829 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
6830 <scroll-down-aggressively>: Doc fix.
2155ecf3 6831
048addec
JD
6832 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
6833 string as pane name, if there is one.
6834 (set_frame_menubar): Save menu_items_n_panes from each call to
6835 parse_single_submenu and use it when calling digest_single_submenu.
2155ecf3 6836
048addec
JD
6837 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
6838 Don't try to make last line fully visible if it is past end of window.
61f1d295 6839
048addec 68402002-12-22 Steven Tamm <steventamm@mac.com>
61f1d295 6841
048addec
JD
6842 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
6843 (mac_menu_show): Add support for hierarchical popup menus.
6844 (add_menu_item): Remove indentation support.
6845 (fill_submenu, fill_menu): Create hierarchical menus
6846 instead of using indentation.
0b17a217 6847
048addec 68482002-12-22 Richard M. Stallman <rms@gnu.org>
0b17a217 6849
048addec
JD
6850 * xdisp.c (try_cursor_movement): Don't call try_window here.
6851 (redisplay_window): Never redisplay minibuffer when inactive.
0b17a217 6852
048addec 6853 * window.c (select_window_1): Undo 9/21 change.
402e4f8b 6854
048addec 68552002-12-22 Steven Tamm <steventamm@mac.com>
402e4f8b 6856
048addec
JD
6857 * macterm.c (XTread_socket): Call KeyTranslate for control and
6858 meta to deal correctly shifted non-alpha characters, like C-S-5
6859 being treated like C-%. Does not look for shift key to deal
6860 with masking off control-key with mac-reverse-ctrl-meta.
f02cac82 6861
048addec 68622002-12-21 Richard M. Stallman <rms@gnu.org>
f02cac82 6863
048addec
JD
6864 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
6865 If it is non-nil, run timers. Use an unwind-protect to requeue
6866 the events that were read ahead.
6867 (popup_get_selection_unwind): New subroutine.
6868 (popup_get_selection_queue): File-scope variable now holds that queue.
6869 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
6870 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
6871 Use an unwind-protect to pop down the dialog box.
6872 (xdialog_show_unwind): New subroutine implements that.
f02cac82 6873
048addec
JD
6874 * xdisp.c (row_containing_pos): Change exit test using last_y.
6875 (try_window_id): Abort if row_containing_pos returns null.
f02cac82 6876
048addec
JD
6877 * lread.c (load_error_handler): New function.
6878 (Fload): Handle errors in Fsubstitute_in_file_name.
6879 Don't expect Fsignal to return.
f02cac82 6880
048addec
JD
6881 * eval.c: Errors and throws work right with interrupt blocking.
6882 (struct catchtag): New elt interrupt_input_blocked.
6883 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
6884 (internal_catch, Fcondition_case, internal_condition_case)
6885 (internal_condition_case_1, internal_condition_case_2): Save it.
6886 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
f02cac82 6887
048addec 6888 * editfns.c (Fformat): Add parens.
f02cac82 6889
048addec
JD
6890 * dired.c (file_name_completion): Fix that change.
6891 Delete special quit-handling code; just use QUIT.
f02cac82 6892
048addec 68932002-12-21 Tak Ota <Takaaki.Ota@am.sony.com> (tiny change)
f02cac82 6894
048addec
JD
6895 * dired.c (file_name_completion): Close directory on error
6896 just as in directory_files_internal.
1a590729 6897
048addec 68982002-12-19 David Kastrup <David.Kastrup@t-online.de>
1a590729 6899
048addec
JD
6900 * window.c (Fset_window_configuration): Set old_point to correct
6901 value when new_current_buffer == current_buffer.
f02cac82 6902
048addec 69032002-12-17 Ben Key <bkey1@tampabay.rr.com>
2308af15 6904
048addec
JD
6905 Revisited my earlier fix for the following entry in etc/PROBLEMS:
6906 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
6907 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
9785d95b 6908
048addec
JD
6909 These changes were in part based upon suggestions made by Peter
6910 'Luna' Runestig [peter@runestig.com].
9785d95b 6911
048addec
JD
6912 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token,
6913 g_b_init_get_token_information, g_b_init_lookup_account_sid,
6bdb309a 6914 g_b_init_get_sid_identifier_authority ): Add several static
048addec 6915 global variables.
9785d95b 6916
048addec
JD
6917 * w32.c (globals_of_w32): New function. Used to initialize those
6918 global variables that must always be initialized on startup even
6919 when the global variable initialized is non zero. Its primary
6920 purpose at this time is to set the global variables
6921 g_b_init_is_windows_9x, g_b_init_open_process_token,
6922 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
6923 g_b_init_get_sid_identifier_authority to 0 on startup.
6924 Called from main.
9785d95b 6925
048addec
JD
6926 * w32.c (is_windows_9x): Perform initialization only if
6927 g_b_init_is_windows_9x is equal to 0. On initialization set
6928 g_b_init_is_windows_9x equal to 1.
2308af15 6929
048addec
JD
6930 * w32.c (open_process_token): Perform initialization only if
6931 g_b_init_open_process_token is equal to 0. On initialization set
6932 g_b_init_open_process_token equal to 1.
2308af15 6933
048addec
JD
6934 * w32.c (get_token_information): Perform initialization only if
6935 g_b_init_get_token_information is equal to 0. On initialization
6936 set g_b_init_get_token_information equal to 1.
9785d95b 6937
048addec
JD
6938 * w32.c (lookup_account_sid): Perform initialization only if
6939 g_b_init_lookup_account_sid is equal to 0. On initialization
6940 set g_b_init_lookup_account_sid equal to 1.
9785d95b 6941
048addec
JD
6942 * w32.c (get_sid_identifier_authority): Perform initialization
6943 only if g_b_init_get_sid_identifier_authority is equal to 0.
6944 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
9785d95b 6945
048addec
JD
6946 * w32fns.c (globals_of_w32fns): New function. Used to initialize
6947 those global variables that must always be initialized on startup
6948 even when the global variable initialized is non zero.
6949 Its primary purpose at this time is to initialize the global variable
6950 track_mouse_event_fn.
9785d95b 6951
a64387ee 6952 * w32fns.c (w32_wnd_proc): Remove initialization of
048addec 6953 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
9785d95b 6954
048addec 6955 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
9785d95b 6956
a64387ee 6957 * w32menu.c (globals_of_w32menu): New function. Used to
048addec
JD
6958 initialize those global variables that must always be initialized
6959 on startup even when the global variable initialized is non zero.
6960 Its primary purpose at this time is to initialize the global
6961 variables get_menu_item_info and set_menu_item_info.
9785d95b 6962
048addec
JD
6963 * w32menu.c (initialize_frame_menubar): Remove initialization of
6964 get_menu_item_info and set_menu_item_info.
9785d95b 6965
048addec 6966 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
9785d95b 6967
048addec
JD
6968 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
6969 Declare them.
9785d95b 6970
048addec
JD
6971 * emacs.c (main): Call globals_of_w32 prior to calling
6972 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
6973 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
6974 is defined.
9785d95b 6975
048addec
JD
6976 * w32term.c (x_update_window_begin): Fix Windows API error
6977 detected by BoundsChecker. Test to determine if
6978 w32_system_caret_hwnd is NULL prior to attempting to use
6979 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
2308af15 6980
048addec
JD
6981 * w32term.c (x_update_window_end): Fix Windows API error
6982 detected by BoundsChecker. Test to determine if
6983 w32_system_caret_hwnd is NULL prior to attempting to use
6984 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
b6da19ef 6985
048addec 69862002-12-17 Kenichi Handa <handa@m17n.org>
b6da19ef 6987
048addec
JD
6988 * coding.c (coding_system_require_warning): New variable.
6989 (syms_of_coding): DEFVAR it.
b6da19ef 6990
048addec 6991 * coding.h (coding_system_require_warning): Extern it.
b6da19ef 6992
048addec
JD
6993 * fileio.c (choose_write_coding_system): Even if
6994 Vcoding_system_for_write is non-nil, if
6995 coding_system_require_warning is nonzero, call
6996 Vselect_safe_coding_system_function.
bfcf6dbe 6997
048addec 69982002-12-17 Markus Rost <rost@math.ohio-state.edu>
bfcf6dbe 6999
048addec
JD
7000 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
7001 (lisp): Add font-core.
2c568af5 7002
048addec 70032002-12-13 Stefan Monnier <monnier@cs.yale.edu>
2c568af5 7004
048addec
JD
7005 * textprop.c (text_read_only): New arg `propval'.
7006 (get_char_property_and_overlay): Remove unused var `next_overlay'.
7007 (verify_interval_modification): Use text_read_only's new arg.
b8c6225c 7008
048addec 70092002-12-13 Kenichi Handa <handa@m17n.org>
b8c6225c 7010
048addec 7011 * coding.c (Funencodable_char_position): Set pend correctly.
706ddb8f 7012
048addec 70132002-12-12 Jason Rumney <jasonr@gnu.org>
706ddb8f 7014
048addec
JD
7015 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
7016 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
7017 Be more careful about when help_events are generated.
96720f09 7018
048addec 70192002-12-12 Steven Tamm <steventamm@mac.com>
96720f09 7020
048addec
JD
7021 * macterm.c (mac_check_for_quit_char): Correctly set the
7022 modifiers of the event to 0.
7023 * mac.c (sys_select): Duplicate rfds before calling select to
7024 ensure that rfds survive the while loop.
e5ae1c49 7025
048addec 70262002-12-11 Kim F. Storm <storm@cua.dk>
e5ae1c49 7027
048addec
JD
7028 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
7029 row_containing_pos returned NULL.
2eb46b2d 7030
048addec 70312002-12-10 Steven Tamm <steventamm@mac.com>
2eb46b2d 7032
6bdb309a 7033 * mac.c (sys_read): Fix sys_read to not call select if IO is
048addec 7034 non-blocking.
6bdb309a 7035 (sys_select): Fix sys_select to not use a timeout larger than
048addec 7036 the one given.
b11f1d8a 7037
048addec 70382002-12-10 Juanma Barranquero <lektu@terra.es>
b11f1d8a 7039
048addec 7040 * editfns.c (Fformat): Use alloca, not _alloca.
d8528226 7041
048addec 70422002-12-09 Richard M. Stallman <rms@gnu.org>
d8528226 7043
048addec
JD
7044 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
7045 as the last thing.
a4ac5b17 7046
048addec 70472002-12-09 Dave Love <fx@gnu.org>
a4ac5b17 7048
048addec 7049 * s/sol2-8.h: Removed. (Not necessary.)
ac42d7b9 7050
048addec 70512002-12-09 Matthew Swift <swift@alum.mit.edu>
ac42d7b9 7052
048addec
JD
7053 * editfns.c (Fformat): Handle precision in string conversion
7054 specifiers like libc functions do (ie, print at most that many
7055 characters).
85cce843 7056
048addec 70572002-12-08 Richard M. Stallman <rms@gnu.org>
85cce843 7058
048addec
JD
7059 * xdisp.c (row_containing_pos): Check more carefully
7060 whether charpos is really in the row before returning it.
0d4d26a7 7061
048addec 70622002-12-07 Steven Tamm <steventamm@mac.com>
0d4d26a7 7063
048addec 7064 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
b11f1d8a 7065
048addec
JD
7066 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
7067 each stack frame. This may change as it could be time consuming.
0d4d26a7 7068
048addec
JD
7069 * macterm.c (mac_check_for_quit_char, quit_char_comp)
7070 (init_quit_char_handler, mac_determine_quit_char_modifiers)
6bdb309a 7071 (mac_initialize): Add code to check for pressing of quit_char
048addec 7072 in the OS event queue.
b11f1d8a 7073
048addec
JD
7074 * mac.c (sys_select): Call mac_check_for_quit_char every second
7075 while blocking on select.
0d4d26a7 7076
048addec
JD
7077 * mac.c (sys_read): Use sys_select to test for input first
7078 before calling read, to allow C-g to break.
9252f7bc 7079
048addec 70802002-12-07 Richard M. Stallman <rms@gnu.org>
9252f7bc 7081
048addec 7082 * minibuf.c (Fcompleting_read): Doc fix.
9252f7bc 7083
048addec 7084 * lread.c (syms_of_lread) <load-history>: Doc fix.
9252f7bc 7085
048addec 7086 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
9252f7bc 7087
048addec
JD
7088 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
7089 autoload.
9252f7bc 7090
048addec 7091 * data.c (Fdefalias): Record in load-history redefining an autoload.
9252f7bc 7092
048addec 7093 * alloca.c: Undo ifdef change accidentally made on 12-04.
bfa261c0 7094
048addec 70952002-12-06 Francesco Potorti` <pot@gnu.org>
bfa261c0 7096
048addec 7097 * xfns.c (png_load): Avoid double gamma correction for PNG images.
c5992177 7098
048addec 70992002-12-04 Richard M. Stallman <rms@gnu.org>
c5992177 7100
048addec 7101 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 7102
048addec 7103 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 7104
048addec 7105 * alloca.c: Don't use #error.
02d588e2 7106
048addec 71072002-12-03 Dave Love <fx@gnu.org>
02d588e2 7108
048addec
JD
7109 * buffer.c (Qucs_set_table_for_input): New.
7110 (Fget_buffer_create): Use it.
7111 (Qset_buffer_major_mode_hook): Deleted.
7112 (Fset_buffer_major_mode): Revert previous change.
7113 (init_buffer_once): Intern ucs-set-table-for-input.
7114 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
7115 Add &Qucs_set_table_for_input.
451e2697 7116
048addec 71172002-12-03 Andreas Schwab <schwab@suse.de>
451e2697 7118
048addec
JD
7119 * callint.c (Fcall_interactively): Use next_event only if less
7120 than key_count.
72742a99 7121
048addec 71222002-12-02 Andrew Choi <akochoi@shaw.ca>
72742a99 7123
048addec
JD
7124 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
7125 names to 255 characters.
72742a99 7126
048addec
JD
7127 * macterm.c (XTread_socket): If all frames have been collapsed,
7128 expand the first one before handling drag-and-drop events.
72742a99 7129
048addec
JD
7130 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
7131 which is detected by autoconf.
40e6ff95 7132
048addec 71332002-12-01 Steven Tamm <steventamm@mac.com>
40e6ff95 7134
048addec
JD
7135 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
7136 offset in two hints table to allow prebinding to be redone and
7137 allow the executable to be stripped.
c02138c6 7138
048addec 71392002-11-29 Dave Love <fx@gnu.org>
c02138c6 7140
048addec
JD
7141 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
7142 already provided.
0e47bbf7 7143
048addec 71442002-11-29 Richard M. Stallman <rms@gnu.org>
0e47bbf7 7145
048addec
JD
7146 * xdisp.c (start_display): Check more intelligently for
7147 whether the line is continued.
7148 (move_it_vertically_backward): Clear it->continuation_lines_width.
44129dcb 7149
048addec 71502002-11-28 Dave Love <fx@gnu.org>
44129dcb 7151
048addec
JD
7152 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
7153 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
f707342d 7154
048addec 71552002-11-27 Steven Tamm <steventamm@mac.com>
f707342d 7156
048addec
JD
7157 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
7158 more descriptive error output from lread.c:Fload upon most require
7159 cycles during boostrapping.
1637fd2c 7160
048addec 71612002-11-27 Jason Rumney <jasonr@gnu.org>
1637fd2c 7162
048addec
JD
7163 * fileio.c (Finsert_file_contents): Give a more appropriate error
7164 for files bigger than 2Gb when off_t is 32 bit.
1637fd2c 7165
048addec
JD
7166 * dired.c (Ffile_attributes): Don't return negative file sizes for
7167 files bigger than 2Gb when off_t is 32 bit.
540c2788 7168
048addec 71692002-11-27 Dave Love <fx@gnu.org>
6b2fd6ea 7170
048addec 7171 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6b2fd6ea 7172
048addec
JD
7173 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
7174 Test GETPGRP_VOID instead.
7175 [BSD_TERMIOS]: Remove definitions (never used).
6b2fd6ea 7176
048addec
JD
7177 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
7178 Don't define.
7179 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
540c2788 7180
048addec 7181 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
8cc03716 7182
048addec 71832002-11-25 Jason Rumney <jasonr@gnu.org>
8cc03716 7184
048addec
JD
7185 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
7186 supported.
4042a81a 7187
048addec 71882002-11-25 Dave Love <fx@gnu.org>
4042a81a 7189
048addec 7190 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
4042a81a 7191
048addec 7192 * Makefile.in (TEMACS_LDFLAGS): Update last change.
be4ee72f 7193
048addec 71942002-11-25 Andreas Schwab <schwab@suse.de>
be4ee72f 7195
048addec 7196 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
82122254 7197
048addec 71982002-11-24 Steven Tamm <steventamm@mac.com>
82122254 7199
048addec
JD
7200 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
7201 determine the size of pointers alloced in unexed space instead
7202 of using possibly invalid emacs_zone pointers. This fixes the
7203 binary incompatibility problems caused by updates to libSystem.B.
c1ee53bc 7204
048addec 72052002-11-24 Richard M. Stallman <rms@gnu.org>
c1ee53bc 7206
048addec 7207 * search.c (Fstring_match): Doc fix.
c1ee53bc 7208
048addec
JD
7209 * callint.c (Fcall_interactively): If a command fails because
7210 `*' detects a read-only buffer, but RECORD_FLAG is set,
7211 record it anyway if the args don't actually do tty input.
5598c32e 7212
048addec 72132002-11-22 Dave Love <fx@gnu.org>
5598c32e 7214
048addec 7215 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
5598c32e 7216
048addec
JD
7217 * keyboard.c (interrupt_signal): Provide forward declaration.
7218 (kbd_buffer_store_event): Don't declare interrupt_signal.
5598c32e 7219
048addec 7220 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
97b14e22 7221
048addec 72222002-11-21 Richard M. Stallman <rms@gnu.org>
97b14e22 7223
048addec
JD
7224 * eval.c (interactive_p): Skip any number of bytecode
7225 and special form frames, in any order.
516eea8e 7226
048addec 72272002-11-20 Jason Rumney <jasonr@gnu.org>
516eea8e 7228
048addec
JD
7229 * w32fns.c (convert_mono_to_color_image): New function.
7230 (xbm_load, xbm_load_image): Use it when foreground or background
7231 is explicitly set.
04dbfa08 7232
048addec 72332002-11-19 Dave Love <fx@gnu.org>
04dbfa08 7234
048addec 7235 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
b4aebae3 7236
048addec 72372002-11-18 Jason Rumney <jasonr@gnu.org>
b4aebae3 7238
048addec
JD
7239 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
7240 (XPutPixel): Swap blue and red.
7241 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
7242 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
7243 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
7244 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
1998560a 7245
048addec 72462002-11-18 Dave Love <fx@gnu.org>
d824beee 7247
048addec 7248 * m/orion105.h (HAVE_ALLOCA): Don't define.
d824beee 7249
048addec 7250 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
d824beee 7251
048addec 7252 * m/intel386.h: Don't include alloca.h or define alloca.
d824beee 7253
048addec
JD
7254 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
7255 malloc, realloc, calloc.
d824beee 7256
048addec
JD
7257 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
7258 (bcmp): Don't define.
d824beee 7259
048addec 7260 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
d824beee 7261
048addec 7262 * m/amdahl.h: Don't define LIB_STANDARD.
d824beee 7263
048addec 7264 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
d824beee 7265
048addec 7266 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
d824beee 7267
048addec
JD
7268 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
7269 Don't include alloca.h.
d824beee 7270
048addec 7271 * s/aix3-2.h (HAVE_FSYNC): Don't define.
1998560a 7272
048addec 7273 * regex.c (_GNU_SOURCE): Don't define.
1998560a 7274
048addec 7275 * process.c (_GNU_SOURCE): Don't define.
1998560a 7276
048addec 7277 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
8704a6ab 7278
048addec 72792002-11-18 Markus Rost <rost@math.ohio-state.edu>
8704a6ab 7280
048addec 7281 * s/sol2-8.h: Include sol2-6.h.
6ae2cd57 7282
048addec 72832002-11-18 Miles Bader <miles@gnu.org>
6ae2cd57 7284
048addec
JD
7285 * dispextern.h (struct face): Add `overstrike' field.
7286 * xterm.c (x_draw_glyph_string_foreground)
7287 (x_draw_composite_glyph_string_foreground): Implement overstriking.
7288 * xfaces.c (load_face_font): Set `face->overstrike' based on
7289 result from choose_face_font.
7290 (best_matching_font, choose_face_font): Add `needs_overstrike'
7291 argument, and use it to return whether overstriking is desirable
7292 for this face/font combo.
7293 (set_font_frame_param: Pass new argument to choose_face_font.
6ae2cd57 7294
048addec 72952002-11-17 Ben Key <BKey1@tampabay.rr.com>
3582b6a3 7296
048addec
JD
7297 This change is my fix for the following entry in etc/PROBLEMS:
7298 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
7299 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
f60ae425 7300
048addec
JD
7301 * w32.c: Added wrapper functions around the win32 API functions
7302 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
7303 GetSidIdentifierAuthority. These wrapper functions serve two
7304 purposes:
7305 1. They ensure that the wrapped function can never be called
7306 when Emacs is running on an operating system on which they are
7307 not supported (Microsoft Windows 95 / 98 / ME).
7308 2. They call the wrapped functions via function pointers rather
7309 than calling them directly. This avoids taking advantage of the
7310 undocumented fact that although these functions are not supported
7311 in the 9x branch of Microsoft Windows, the functions do exist in
7312 the version of advapi32.dll that is found in the 9x branch of
7313 Microsoft Windows.
f60ae425 7314
6bdb309a 7315 * w32.c (init_user_info): Replace the calls to the win32 API
048addec
JD
7316 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
7317 and GetSidIdentifierAuthority with calls to the newly added
7318 wrapper functions.
f60ae425 7319
048addec
JD
7320 * w32.h: Added extern declarations for the following functions:
7321 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
7322 syms_of_w32menu, and void syms_of_fontset.
f60ae425 7323
6bdb309a 7324 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
048addec
JD
7325 function pointer track_mouse_event_fn in the handler for the
7326 WM_SETFOCUS message.
3582b6a3 7327
6bdb309a 7328 * w32menu.c (initialize_frame_menubar): Add code to
048addec
JD
7329 reinitialize the function pointers set_menu_item_info and
7330 get_menu_item_info.
f60ae425 7331
048addec 73322002-11-17 Ben Key <BKey1@tampabay.rr.com>
f60ae425 7333
048addec
JD
7334 * sound.c: Added a partial implementation of play-sound-internal
7335 for Microsoft Windows. Added various #ifdef / #else / #endif
7336 code blocks to separate the code that will compile under
7337 Microsoft Windows from the code that is specific to Gnu/Linux.
7338 Moved several blocks of code around to make this separation of code
7339 into Windows compatible and Gnu/Linux compatible code blocks easier.
f60ae425 7340
048addec 7341 * makefile.w32-in: Include sound.c and link with WinMM.lib.
a0f0878d 7342
048addec
JD
7343 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
7344 added support for play-sound-internal under Windows would be
7345 included in the build of Emacs.
517f42a0 7346
048addec 73472002-11-16 Jason Rumney <jasonr@gnu.org>
517f42a0 7348
048addec 7349 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
517f42a0 7350
048addec 7351 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
a0f0878d 7352
048addec 73532002-11-15 Stefan Monnier <monnier@cs.yale.edu>
a0f0878d 7354
048addec
JD
7355 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
7356 (adjust_point_for_property): Move out of display and invisible even if
7357 we were already inside before (in case a property was added while
7358 we weren't looking). Be more careful when handling invisible props.
7359 Skip invisible text as if it really wasn't there at all.
aab83f91 7360
048addec 73612002-11-15 Jason Rumney <jasonr@gnu.org>
aab83f91 7362
048addec
JD
7363 * w32term.c (x_draw_image_foreground)
7364 (w32_draw_image_foreground_1): Use standard copy and invert
7365 operations to draw images.
aab83f91 7366
048addec
JD
7367 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
7368 depth of 1.
7369 (xbm_read_bitmap_data): Invert bits as xbm is read in.
7370 (XPutPixel): Don't invert bits here.
a4478a76 7371
048addec 73722002-11-15 Jason Rumney <jasonr@gnu.org>
a4478a76 7373
048addec
JD
7374 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
7375 (w32_draw_image_foreground_1): Handle image masks.
7376 (x_draw_image_glyph_string): Don't BitBlt transparently.
a4478a76 7377
048addec
JD
7378 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
7379 (x_from_xcolors): Adjust RGB values for W32.
7380 (image_background, image_background_transparent)
7381 (postprocess_image, x_to_xcolors, x_disable_image)
7382 (x_build_heuristic_mask): Adapt for W32 and enable.
7383 (x_create_x_image_and_pixmap): Mark images with palettes as such.
7384 (xbm_load): Remove unused variable.
03670a65 7385
048addec 73862002-11-14 Richard M. Stallman <rms@gnu.org>
03670a65 7387
048addec 7388 * buffer.c (syms_of_buffer): Doc fix.
59daa29a 7389
048addec 73902002-11-14 Dave Love <fx@gnu.org>
59daa29a 7391
048addec 7392 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
59daa29a 7393
048addec
JD
7394 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
7395 * xmenu.c (unuse_menu_items, digest_single_submenu):
7396 * xfns.c (x_put_x_image):
7397 * xdisp.c (message2_nolog, set_message):
7398 * undo.c (record_point):
7399 * terminfo.c (tparam):
7400 * syntax.c (scan_sexps_forward):
7401 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
7402 * composite.c (update_compositions):
7403 * cm.c (calccost, cmgoto):
7404 * charset.c (c_string_width): Declare all args (per C99).
59daa29a 7405
048addec 7406 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
59daa29a 7407
048addec
JD
7408 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
7409 Don't declare.
59daa29a 7410
048addec 7411 * emacs.c (main) [!VMS]: Avoid third arg.
59daa29a 7412
048addec
JD
7413 * fns.c (Fcopy_sequence): Doc fix.
7414 (Fmap_char_table): Cast `call2'.
3947677c 7415
048addec
JD
74162002-11-14 Francesco Potorti` <pot@gnu.org>
7417
7418 * s/sol2-8.h: New file.
7419
74202002-11-14 Kim F. Storm <storm@cua.dk>
7421
7422 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
7423 dependency on `risky-local-variable' and the :propertize form.
7424
74252002-11-12 Stefan Monnier <monnier@cs.yale.edu>
7426
7427 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
7428
7429 * syntax.c (scan_sexps_forward): Undo last patch.
7430 Use a more obvious fix: check eob before updating the syntax table.
7431
74322002-11-09 Stefan Monnier <monnier@cs.yale.edu>
7433
7434 * syntax.c (scan_sexps_forward): Update syntax table before reading
7435 a char rather than after so we don't update the table past eob.
7436
74372002-11-09 Dave Love <fx@gnu.org>
7438
7439 * buffer.c (Fset_buffer_major_mode): Fix last change.
7440
7441 * regex.c (regexec): Fix pmatch declaration.
7442
7443 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
7444
7445 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
7446 to self-inserting characters.
7447 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
7448
7449 * coding.c (Vtranslation_table_for_input): New.
7450 (syms_of_coding): DEFVAR it.
7451
74522002-11-08 Juanma Barranquero <lektu@terra.es>
7453
7454 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
7455 window.
7456
74572002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7458
6bdb309a 7459 * process.c (Fformat_network_address): Remove unused locals p,
048addec
JD
7460 cp, and i.
7461
74622002-11-06 Dave Love <fx@gnu.org>
7463
7464 * buffer.c (Qset_buffer_major_mode_hook): New.
7465 (Fset_buffer_major_mode): Use it.
7466
74672002-11-06 Richard M. Stallman <rms@gnu.org>
7468
7469 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
7470 and stop_polling.
7471
7472 * process.c (wait_reading_process_input):
7473 Test POLLING_PROBLEM_IN_SELECT, not hpux.
7474 Avoid initialization for auto Lisp_Object var.
7475
7476 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
7477
7478 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
7479
74802002-11-05 Richard M. Stallman <rms@gnu.org>
7481
7482 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
7483
7484 * callint.c (Fcall_interactively): New local filter_specs.
7485 (Fcall_interactively): Check for progn as well as let.
7486 Add a gcpro.
7487 (Qprogn): New variable.
7488 (syms_of_callint): Staticpro and init Qprogn.
7489
74902002-11-04 John Paul Wallington <jpw@shootybangbang.com>
7491
7492 * lread.c (Feval_buffer): Doc fix.
7493
74942002-11-04 Dave Love <fx@gnu.org>
7495
7496 * keyboard.c (read_char): Always translate iff
7497 Vkeyboard_translate_table is a char table and c is valid.
7498
7499 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
7500 and fix C types.
7501
75022002-11-03 Stefan Monnier <monnier@cs.yale.edu>
7503
7504 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
7505
7506 * editfns.c (get_pos_property): Don't hardcode Qfield.
7507
7508 * keyboard.c (adjust_point_for_property): Handle `display' prop on
7509 overlays. Also handle `invisible' prop.
7510
75112002-11-02 Stefan Monnier <monnier@cs.yale.edu>
7512
7513 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
7514 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
7515
75162002-11-01 Andreas Schwab <schwab@suse.de>
7517
7518 * editfns.c (Fmessage): Revert last change to properly handle %%.
7519
75202002-11-01 Stefan Monnier <monnier@cs.yale.edu>
7521
7522 * xmenu.c (unuse_menu_items): New fun.
7523 (menu_items_inuse): New var.
7524 (syms_of_xmenu): Initialize it.
7525 (init_menu_items): Use it to detect re-entrance.
7526 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
7527 (Fx_popup_menu): Remove spurious XSETFRAME.
7528
7529 * editfns.c (find_field): Make an exception for nil fields.
7530
75312002-11-01 Dave Love <fx@gnu.org>
7532
7533 * m/gec63.h: Deleted.
7534
75352002-10-31 Dave Love <fx@gnu.org>
7536
7537 * xterm.c (XTread_socket): Fix last change.
7538 (xaw_scroll_callback): Cast call_data to long to avoid warning.
7539
75402002-10-31 Stefan Monnier <monnier@cs.yale.edu>
7541
7542 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
7543
75442002-10-30 Stefan Monnier <monnier@cs.yale.edu>
7545
7546 * editfns.c (overlays_around, get_pos_property): New funs.
7547 (find_field): Use them.
7548 Also be careful not to modify POS before its last use.
7549 (Fmessage): Don't Fformat if there's nothing to format.
7550
75512002-10-30 Dave Love <fx@gnu.org>
7552
7553 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
7554 [HAVE_PTY_H]; Include pty.h.
7555
7556 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
7557
7558 * xterm.c (Qeql): Declare.
7559 (Vx_keysym_table): New.
7560 (syms_of_xterm): Initialize it.
7561 (XTread_socket): Use it. Deal with ASCII keysyms.
7562 (XSetIMValues) [HAVE_X11R6]: Prototype.
7563
7564 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
7565 (lispy_kana_keys): Comment out.
7566 (make_lispy_event) [XK_kana_A]: Comment out.
7567 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
7568 Fix sprintf call.
7569
7570 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
7571 regexp.h change).
7572 (TERMINFO, LIBS_TERMCAP): Define.
7573
7574 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
7575 (bcmp): Define conditional on HAVE_BCMP.
7576 (NO_SIOCTL_H): Don't define.
7577 (TIOCSIGSEND): Don't make conditional on IRIX6.
7578
7579 * s/sol2-5.h: Don't include strings.h.
7580 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
7581
7582 * s/irix6-0.h (IRIX6): Don't define.
7583 (bcopy, bcmp, bzero): Don't undef.
7584
7585 * s/irix6-5.h: Don't include strings.h.
7586 (IRIX6): Don't define.
7587 (bcopy, bcmp, bzero): Don't undef.
7588
7589 * syntax.c (Fforward_comment): Doc fix.
7590
75912002-10-29 Kim F. Storm <storm@cua.dk>
7592
7593 * process.c (Fsignal_process): Allow PROCESS to be specified by
7594 name in addition to pid (as integer or string).
7595
75962002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
7597
7598 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
7599 environments.
7600
76012002-10-27 Kim F. Storm <storm@cua.dk>
7602
7603 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
7604
7605 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
7606
7607 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
7608
7609 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
7610
76112002-10-26 Richard M. Stallman <rms@gnu.org>
7612
7613 * editfns.c (Fformat): Detect invalid format letters for floats.
7614
76152002-10-25 Kenichi Handa <handa@m17n.org>
7616
7617 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
7618 (x_set_title): Likewise.
7619
76202002-10-25 Juanma Barranquero <lektu@terra.es>
7621
7622 * macgui.h:
7623 * w32gui.h: Remove definition of XColor.
7624
7625 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
7626
76272002-10-24 Kim F. Storm <storm@cua.dk>
7628
7629 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
7630 Callers changed (supply dummy arg).
7631
7632 * lisp.h (get_window_cursor_type): Update prototype.
7633
7634 * w32term.c (x_display_and_set_cursor): Get active_cursor from
7635 get_window_cursor_type to track system caret.
7636
76372002-10-24 Kim F. Storm <storm@cua.dk>
7638
7639 * process.c (Fformat_network_address): New function.
7640 (syms_of_process): Defsubr it.
7641 (list_processes_1): Use it to format :local/:remote address if
7642 service/host is not set; before emacs would crash in that case.
7643 (Fmake_network_process): Don't use Ffind_operation_coding_system
7644 to setup coding system if host or service is not set.
7645
76462002-10-23 Juanma Barranquero <lektu@terra.es>
7647
7648 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
7649
7650 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
7651 COLORREF.
7652
7653 * macgui.h:
7654 * w32gui.h: Add definition of XColor.
7655
7656 * macfns.c:
7657 * w32fns.c:
7658 * xfaces.c: Remove definition of XColor.
7659
76602002-10-22 Stefan Monnier <monnier@cs.yale.edu>
7661
7662 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
7663
7664 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
7665 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
7666 window if it is dedicated.
7667 (Fshrink_window): Add preserve_before as was done for enlarge_window.
7668 (Vspecial_display_function): Update docstring.
7669
7670 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
7671 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
7672 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
7673
76742002-10-21 Stefan Monnier <monnier@cs.yale.edu>
7675
7676 * casefiddle.c (casify_region): Don't treat a prefix char as part
7677 of a word when at the beginning.
7678
76792002-10-17 Juanma Barranquero <lektu@terra.es>
7680
7681 * lread.c (syms_of_lread): Fix typos.
7682
76832002-10-17 Dave Love <fx@gnu.org>
7684
7685 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
7686
76872002-10-16 Richard M. Stallman <rms@gnu.org>
7688
7689 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
7690
76912002-10-14 Juanma Barranquero <lektu@terra.es>
7692
7693 * w16select.c (syms_of_win16select): Fix docstring for
7694 `selection-coding-system'.
7695
7696 * w32select.c (syms_of_w32select): Likewise.
7697
76982002-10-14 Stefan Monnier <monnier@cs.yale.edu>
7699
7700 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
7701 a backslash-quoted char.
7702 (scan_lists, scan_sexps_forward): Pacify the compiler.
7703
77042002-10-13 Richard M. Stallman <rms@gnu.org>
7705
7706 * window.c (window_scroll): Set immediate_quit.
7707
7708 * print.c (print): When backquote form is the car of a list,
7709 output in old style. Use old_backquote_output to output all
7710 comma forms inside it in old style too.
7711
7712 * buffer.h (struct buffer): Move `undo_list' down below `name'.
7713
77142002-10-11 Markus Rost <rost@math.ohio-state.edu>
7715
7716 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
7717 batch mode).
7718
7719 * lread.c (Fload): Doc fix (load-suffixes).
7720
77212002-10-10 Steven Tamm <steventamm@mac.com>
7722
7723 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
7724 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
7725 Also switch the default to Qnil from Qt.
7726
77272002-10-08 Kenichi Handa <handa@m17n.org>
7728
7729 * coding.c (code_convert_region): When we need more GAP for
7730 conversion, pay attention to the case that coding->produced is not
7731 greater than coding->consumed.
7732
77332002-10-07 Richard M. Stallman <rms@gnu.org>
7734
7735 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
7736
77372002-10-06 Andrew Choi <akochoi@shaw.ca>
7738
7739 * macmenu.c (mac_menu_show): Add j to count menu items; match
7740 menu_item_selection to it to find selected item.
7741
77422002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7743
7744 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
7745 cases. The correct fix is to pass ReparentNotify to Xt.
7746 The shell widget interprets ConfigureNotify differently depending
7747 on if it has been reparented or not.
7748
77492002-10-05 Markus Rost <rost@math.ohio-state.edu>
7750
7751 * editfns.c (Fformat_time_string): Doc fix.
7752
77532002-10-05 John Paul Wallington <jpw@shootybangbang.com>
7754
7755 * fns.c (Flength): Doc fix.
7756
77572002-10-04 Stefan Monnier <monnier@cs.yale.edu>
7758
7759 * keyboard.c (keyremap): New struct.
7760 (read_key_sequence): Use it: globally replace keytran_foo with
7761 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
7762 keytran_next and fkey_next to just `next'.
7763
77642002-10-04 Steven Tamm <steventamm@mac.com>
7765
7766 * macterm.c (keycode_to_xkeysym_table): Change return to be
7767 treated like an X keysym.
7768
77692002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7770
7771 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
7772 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
7773 This is to also handle x/y changes that occur because of a resize.
7774
77752002-10-02 John Paul Wallington <jpw@shootybangbang.com>
7776
7777 * frame.c (Vdelete_frame_functions): New variable.
7778 (syms_of_frame): Initialize and defvar it.
7779 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
7780 it when frame's `tooltip' parameter is non-nil.
7781
7782 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
7783
7784 * w32fns.c (x_create_tip_frame): Likewise.
7785
7786 * macfns.c (x_create_tip_frame): Likewise.
7787
77882002-09-30 Kenichi Handa <handa@m17n.org>
7789
7790 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
7791 -1 before calling ccl_driver.
7792
7793 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
7794 Only when it is non-nil, handle composition sequence.
7795 (setup_coding_system) <0>: Don't force composition handling.
7796
7797 * Makefile.in (lisp, shortlisp): Add utf-16.elc
7798
77992002-09-29 Richard M. Stallman <rms@gnu.org>
7800
7801 * search.c (Freplace_match): Adjust match data for the substitution
7802 just made in the buffer.
7803
7804 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
7805 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
7806
78072002-09-27 Richard M. Stallman <rms@gnu.org>
7808
7809 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
7810 (read_char): Use them. Do all exits thru the end of the function.
7811
78122002-09-27 Kenichi Handa <handa@etl.go.jp>
7813
7814 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
7815 is nil.
7816
78172002-09-26 Richard M. Stallman <rms@gnu.org>
7818
7819 * regex.h (__restrict_arr): Don't define if already defined.
7820
7821 * coding.c (run_pre_post_conversion_on_str):
7822 Save and restore Vdeactivate_mark.
7823
78242002-09-26 John Paul Wallington <jpw@shootybangbang.com>
7825
7826 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
7827
78282002-09-26 Kenichi Handa <handa@etl.go.jp>
7829
7830 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
7831 nonzero, try face's family at first. Otherwise try FAMILY at first.
7832 (choose_face_font): If C is a single byte char or latin-1, call
7833 try_font_list with PREFER_FACE_FAMILY 1.
7834
78352002-09-21 Richard M. Stallman <rms@gnu.org>
7836
7837 * window.c (select_window_1): Don't select frame.
7838 Set frame's selected window only when frame itself is selected.
7839 (Fselect_window): Doc fix.
7840
78412002-09-18 Kim F. Storm <storm@cua.dk>
7842
7843 * process.c (make-network-process): Doc fix (there is no
7844 network-server-log-function hook).
7845
78462002-09-18 Richard M. Stallman <rms@gnu.org>
7847
7848 * print.c (print): Clear out the unused parts of Vprint_number_table.
7849 (syms_of_print): Doc fix for `print-number-table'.
7850
7851 * unexelf.c (unexec): Undo previous change.
7852
78532002-09-17 Andreas Schwab <schwab@suse.de>
7854
7855 * m/alpha.h [LINUX]: Don't define DATA_START.
7856
78572002-09-16 Dave Love <fx@gnu.org>
7858
7859 * unexelf.c (unexec): Deal with .got, reinstating change from
7860 25-08-1999.
7861
78622002-09-13 Richard M. Stallman <rms@gnu.org>
7863
7864 * s/sol2-6.h (UNEXEC): Comment out definition.
7865
7866 * unexsol.c (unexec): Don't downcase first letter of error msg.
7867
7868 * xfaces.c (Fcolor_supported_p): Just one arg is required.
7869
78702002-09-12 Markus Rost <rost@math.ohio-state.edu>
7871
7872 * unexsol.c: Include buffer.h, charset.h, coding.h.
7873
78742002-09-11 Richard M. Stallman <rms@gnu.org>
7875
7876 * unexsol.c: Don't use report_file_error; do it by hand
7877 using dlerror.
7878
7879 * process.c (wait_reading_process_input, both versions):
7880 Before calling turn_on_atimers, call stop_polling.
7881
7882 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
7883
7884 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
7885 we go to too_near_end, call clear_glyph_matrix.
7886 (redisplay_window): After make_cursor_line_fully_visible,
7887 call clear_glyph_matrix and bypass `goto done'.
7888
7889 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
7890 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
7891
78922002-09-10 Richard M. Stallman <rms@gnu.org>
7893
7894 * fileio.c (Fdo_auto_save): Catch error making directory.
7895 Only call push_message if we need to.
7896 At the same time, make an unwind-protect to pop it.
7897 Rename local message_p to old_message_p.
7898 (do_auto_save_make_dir, do_auto_save_eh): New functions.
7899 (do_auto_save_unwind): Don't call pop_message.
7900
7901 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
7902
7903 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
7904
7905 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
7906
7907 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
7908
79092002-09-10 Stefan Monnier <monnier@cs.yale.edu>
7910
7911 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
7912 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
7913 (re_match_2_internal): Be more careful with infinite loops.
7914
79152002-09-10 Kim F. Storm <storm@cua.dk>
7916
7917 * macros.c (end_kbd_macro): New function.
7918 (Fend_kbd_macro): Use it.
7919
7920 * macros.h (end_kbd_macro): Declare extern.
7921
7922 * keyboard.c (Fdiscard_input): If defining keyboard macro,
7923 end and save it instead of discarding it.
7924
79252002-09-09 Markus Rost <rost@math.ohio-state.edu>
7926
7927 * s/sol2-6.h: Fix typo. Add comment.
7928
79292002-09-09 Richard M. Stallman <rms@gnu.org>
7930
7931 * regex.c (regnum_t): Use signed int, not unsigned int.
7932
7933 * s/sol2-6.h: New file.
7934
7935 * s/sol2-5.h (UNEXEC): Definition deleted.
7936
79372002-09-08 Kim F. Storm <storm@cua.dk>
7938
7939 * macros.c (executing_macro_index): Change type to EMACS_INT.
7940 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
7941
7942 * macros.h (executing_macro_index): Change type to EMACS_INT.
7943
79442002-09-06 Richard M. Stallman <rms@gnu.org>
7945
7946 * casetab.c (set_case_table): Make canon table point to eqv table.
7947
79482002-09-06 Juanma Barranquero <lektu@terra.es>
7949
7950 * coding.c (syms_of_coding): Fix spacing.
7951
7952 * composite.c (Fcompose_region_internal)
7953 (Fcompose_string_internal): Likewise.
7954
7955 * data.c (Flsh): Likewise.
7956
7957 * fontset.c (Fset_fontset_font): Likewise.
7958
7959 * macfns.c (Fx_server_max_request_size): Likewise.
7960
7961 * w16select.c (syms_of_win16select): Likewise.
7962
7963 * w32select.c (syms_of_w32select): Likewise.
7964
7965 * xselect.c (syms_of_xselect): Likewise.
7966
79672002-09-05 Richard M. Stallman <rms@gnu.org>
7968
7969 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
7970 call EXTEND_RANGE_TABLE and return a proper value.
7971 (set_image_of_range): Don't call set_image_of_range_1
7972 if no TRANSLATE or if range includes all of Latin-1.
7973 Only call it for the Latin-1 part of the range.
7974 For other cases, make two separate ranges,
7975 one for the original specified characters and one for
7976 their case-conversions.
7977
79782002-09-04 Richard M. Stallman <rms@gnu.org>
7979
7980 * s/sol2-5.h (UNEXEC): Use unexsol.o.
7981
7982 * window.c (displayed_window_lines): Correct for one-off bug
7983 in HEIGHT on non-window displays.
7984
7985 * regex.c (set_image_of_range_1): New function.
7986 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
7987 Return a value to indicate running out of memory.
7988 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
7989 (extend_range_table_work_area): New subroutine.
7990 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
7991 Different calling conventions, and used from set_image_of_range{,_1}.
7992 (IMMEDIATE_QUIT_CHECK): Definitions moved.
7993
79942002-09-04 Juanma Barranquero <lektu@terra.es>
7995
7996 * makefile.w32-in: All dependencies updated.
7997
79982002-09-01 Richard M. Stallman <rms@gnu.org>
7999
8000 * unexsol.c: New file.
8001
8002 * xfns.c (Qbox): Declare external, don't define.
8003
8004 * xdisp.c (redisplay_window) <force-start case>:
8005 If point is on semi-visible last line, reposition
8006 it at previous line.
8007
8008 * alloc.c (display_malloc_warning): Use display-warning.
8009 (malloc_warning_1): Function deleted.
8010
8011 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
8012
8013 * lread.c (read1): Handle #! by skipping the line.
8014
80152002-08-31 Richard M. Stallman <rms@gnu.org>
8016
8017 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
8018 Don't include LDFLAGS.
8019 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
8020
80212002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
8022
8023 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
8024 member of x_display_info unless we compile for some window system.
8025
80262002-08-31 Kim F. Storm <storm@cua.dk>
8027
8028 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
8029 (get_window_cursor_type): Don't use them.
8030 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
8031
80322002-08-30 Kenichi Handa <handa@etl.go.jp>
8033
8034 * xdisp.c (get_next_display_element): Fix previous change.
8035
80362002-08-30 Andrew Choi <akochoi@shaw.ca>
8037
8038 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
8039 (expose_window): Use it to fix the display of overlapping
8040 rows (merge code from xterm.c).
8041
8042 * macfns.c (Qbox): Add extern declaration.
8043
80442002-08-30 Juanma Barranquero <lektu@terra.es>
8045
8046 * w32fns.c (Qbox): Make extern.
8047 (syms_of_w32fns): Remove initialization of Qbox.
8048
80492002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
8050
8051 * xfns.c (Fx_open_connection): Fix error message.
8052
80532002-08-30 Kim F. Storm <storm@cua.dk>
8054
8055 The following changes consolidates the handling of the cursor
8056 type in xdisp.c, moving duplicate code and functionality from
8057 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
8058
8059 * frame.h (enum text_cursor_kinds): Consolidated here.
8060 Added DEFAULT_CURSOR value.
8061 (struct frame) <desired_cursor, cursor_width>
8062 <blink_off_cursor, blink_off_cursor_width>: New fields.
8063 Consolidated from output_x, output_w32 and output_mac structs.
8064 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
8065 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
8066
8067 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
8068 Variables consolidated here.
8069 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
8070 (Vcursor_in_non_selected_windows): Renamed from
8071 cursor_in_non_selected_windows and changed to Lisp_Object.
8072 (syms_of_xdisp): Define and staticpro new and moved variables.
8073 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
8074 consolidated here. Recognize Qhollow setting.
8075 (set_frame_cursor_types): New function to set frame cursor types
8076 based on the frame parameters.
8077 (get_window_cursor_type): New function to calculate new cursor
8078 type and width for the specified window. Based on duplicated
8079 code consolidated here.
8080 Enhancements: cursor-in-non-selected-windows may be a cursor type,
8081 check buffer-local alternate-cursor-type and blink-cursor-alist
8082 before using built-in blink off methods.
8083
8084 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
8085
8086 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
8087 (get_specified_cursor_type, get_window_cursor_type)
8088 (set_frame_cursor_types): Added prototypes.
8089
8090 * macfns.c (x_specified_cursor_type): Removed.
8091 (x_set_cursor_type): Use set_frame_cursor_types.
8092 (Qbar, Qbox): Removed.
8093 (syms_of_macfns): Don't intern or staticpro them.
8094
8095 * macterm.c (x_specified_cursor_type): Remove prototype.
8096 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
8097 (x_display_and_set_cursor): Use get_window_cursor_type.
8098 Remove unused local variables cursor_non_selected, active_cursor.
8099 Redraw cursor if hbar cursor width changes.
8100 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
8101
8102 * macterm.h (enum text_cursor_kinds): Removed.
8103 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
8104 <blink_off_cursor, blink_off_cursor_width>: Members removed.
8105 (FRAME_DESIRED_CURSOR): Macro removed.
8106
8107 * w32fns.c (Vblink_cursor_alist): Removed.
8108 (Qbar, Qhbar, Qbox, Qhollow): Removed.
8109 (syms_of_w32fns): Don't intern, staticpro, or define them.
8110 (x_specified_cursor_type): Removed.
8111 (x_set_cursor_type): Use set_frame_cursor_types.
8112
8113 * w32term.c (x_specified_cursor_type): Remove prototype.
8114 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
8115 (x_display_and_set_cursor): Use get_window_cursor_type.
8116 Remove unused local variables cursor_off_state.
8117 Redraw cursor if hbar cursor width changes.
8118 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
8119
8120 * w32term.h (enum text_cursor_kinds): Removed.
8121 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
8122 <blink_off_cursor, blink_off_cursor_width>: Members removed.
8123 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
8124 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
8125 (struct w32_display_info) <x_highlight_frame>: Renamed member from
8126 w32_highlight_frame.
8127
8128 * xfns.c (Vblink_cursor_alist): Removed.
8129 (Qbar, Qhbar, Qbox, Qhollow): Removed.
8130 (syms_of_xfns): Don't intern, staticpro, or define them.
8131 (x_specified_cursor_type): Removed.
8132 (x_set_cursor_type): Use set_frame_cursor_types.
8133
8134 * xterm.c (x_specified_cursor_type): Remove prototype.
8135 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
8136 (x_display_and_set_cursor): Use get_window_cursor_type.
8137 Remove unused local variables cursor_off_state.
8138 Redraw cursor if hbar cursor width changes.
8139
8140 * xterm.h (enum text_cursor_kinds): Removed.
8141 (struct output_x) <current_cursor, desired_cursor, cursor_width>
8142 <blink_off_cursor, blink_off_cursor_width>: Members removed.
8143 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
8144 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
8145 (x_specified_cursor_type): Remove prototype.
8146
81472002-08-28 Richard M. Stallman <rms@gnu.org>
8148
8149 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
8150 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
8151 (Vblink_cursor_alist): New variable.
8152 (syms_of_w32fns): Initialize and defvar it.
8153 (x_specified_cursor_type): Recognize Qbox for filled box.
8154 Exceptions are hollow boxes.
8155 (Qbox, Qhollow): New variables.
8156 (syms_of_w32fns): Initialize and staticpro them.
8157
8158 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
8159 New macros.
8160 (struct w32_output): New fields blink_off_cursor,
8161 blink_off_cursor_width.
8162 (FRAME_CURSOR_WIDTH): New macro.
8163
8164 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
8165 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
8166
8167 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
8168 for bar cursor.
8169
8170 * w32term.c (expose_overlaps): New function.
8171 (expose_window): Use it to fix the display of overlapping rows.
8172
81732002-08-28 Simon Josefsson <jas@extundo.com>
8174
8175 * xfns.c (Fx_open_connection): Improve help when X connection
8176 fails, xhost is insecure and xauth is better.
8177
81782002-08-28 Juanma Barranquero <lektu@terra.es>
8179
8180 * makefile.w32-in: Add missing dependencies on w32term.h and
8181 composite.h.
8182
8183 * emacs.c (USAGE1): Add missing newline.
8184
81852002-08-27 Andrew Choi <akochoi@shaw.ca>
8186
8187 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
8188
81892002-08-27 Richard M. Stallman <rms@gnu.org>
8190
8191 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
8192 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
8193 (Vblink_cursor_alist): New variable.
8194 (syms_of_xfns): Initialize and defvar it.
8195 (x_specified_cursor_type): Recognize Qbox for filled box.
8196 Exceptions are hollow boxes.
8197 (Qbox, Qhollow): New variables.
8198 (syms_of_xfns): Initialize and staticpro them.
8199
8200 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
8201 New macros.
8202 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
8203
8204 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
8205 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
8206
8207 * emacs.c (main): Handle --script.
8208 (USAGE1): Mention --script.
8209 (standard_args): Define sort order for --script.
8210
82112002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
8212
8213 * xdisp.c (redisplay_updating_p): Variable removed.
8214 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
8215 New variables.
8216 (init_iterator): Don't free realized faces if
8217 inhibit_free_realized_faces is set.
8218 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
8219 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
8220 initialize Qinhibit_free_realized_faces.
8221
8222 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
8223 when iterator is adding glyphs to a glyph matrix.
8224
82252002-08-27 Kenichi Handa <handa@etl.go.jp>
8226
8227 * xdisp.c (get_next_display_element): In unibyte case, don't use
8228 octal form for such eight-bit characters that can be converted to
8229 multibyte char.
8230
82312002-08-26 Kim F. Storm <storm@cua.dk>
8232
8233 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize foreground
8234 and background colors. From Joe Buehler (tiny change).
8235
82362002-08-26 Miles Bader <miles@gnu.org>
8237
8238 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
8239
82402002-08-25 Andrew Choi <akochoi@shaw.ca>
8241
8242 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
8243 defined instead of MAC_OSX.
8244
8245 * s/darwin.h (select): Define select to sys_select only if
8246 HAVE_CARBON is defined.
8247 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
8248 (DONT_REOPEN_PTY): #def it.
8249
8250 * macterm.c (XTread_socket): Remove code to call
8251 SendEventToEventTarget for keys with command modifiers when
8252 mac_command_key_is_meta is nil.
8253
82542002-08-24 Andreas Schwab <schwab@suse.de>
8255
8256 * eval.c (Fdefvar): Fix last change.
8257
82582002-08-23 Richard M. Stallman <rms@gnu.org>
8259
8260 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
8261 Record variables in load history as (defvar . VAR).
8262 (Fdefvar): Don't record in load history if no initial value.
8263 (Qdefvar): New variable.
8264 (syms_of_eval): Init and staticpro it.
8265
8266 * lread.c (syms_of_lread): Doc fix.
8267 (build_load_history): Use Fmember to see if a definition
8268 is already in the Vload_history element.
8269
8270 * process.c (Fstart_process): Remove /: from program name.
8271
8272 * emacs.c (decode_env_path): Don't add /: if file name handler
8273 has a `safe-magic' property.
8274
8275 * callproc.c (Fcall_process): Remove /: from program name.
8276
82772002-08-23 Stefan Monnier <monnier@cs.yale.edu>
8278
8279 * regex.c (PATFETCH): Remove the translating fetch.
8280 (PATFETCH_RAW): Rename to PATFETCH.
8281 (set_image_of_range): New fun.
8282 (SET_RANGE_TABLE_WORK_AREA): Use it.
8283 (regex_compile): Don't translate the pattern chars so eagerly.
8284 Only do it when inserting an `exactn' bytecode or when handling
8285 a char-range.
8286 (mutually_exclusive_p): Avoid empty statement.
8287
82882002-08-22 Kim F. Storm <storm@cua.dk>
8289
8290 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
8291 end up on a partially visible line; this reverts a specific part
8292 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
8293 display error which has been reported several times now.
8294 However it introduces the problem that changes was supposed to fix.
8295 See my comments in the source if you want to debug this further.
8296
82972002-08-20 Kenichi Handa <handa@etl.go.jp>
8298
8299 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
8300
83012002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
8302
8303 * msdos.c (croak): Add `void' to definition.
8304
c1380aa6 8305 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
048addec
JD
8306 Don't define them, they are defined in msdos.c.
8307
8308 * mem-limits.h [MSDOS]: Declare etext.
8309
8310 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
8311 `const' since CORRECT_DIR_SEPS modifies its target.
8312
83132002-08-19 Kim F. Storm <storm@cua.dk>
8314
8315 * keyboard.c (Fclear_this_command_keys): Added optional arg
8316 KEEP-RECORD to avoid clearing lossage when we just want to clear
8317 the current key sequence (kmacro needs this).
8318
83192002-08-19 Kenichi Handa <handa@localhost>
8320
8321 * composite.c (run_composition_function): Call FUNC if it is fboundp.
8322
8323 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
8324 cons, return Qnil.
8325
83262002-08-17 Richard M. Stallman <rms@gnu.org>
8327
8328 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
8329
8330 * sysdep.c [!VMS]: Include sys/files.h.
8331
8332 * editfns.c (save_restriction_restore): Defend from unchained marker.
8333
8334 * buffer.c (overlays_at): Handle extending vec uniformly.
8335 (overlays_in): Handle extending vec from length 0 as in overlays_at.
8336
83372002-08-15 Andrew Choi <akochoi@shaw.ca>
8338
8339 * mac.c (init_mac_osx_environment): New function.
8340
8341 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
8342
83432002-08-14 Kim F. Storm <storm@cua.dk>
8344
8345 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
8346 executing macro before appending to it (when used from Lisp).
8347 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
8348 which is called prior to each iteration of macro (for kmacro.el).
8349 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
8350
8351 * lisp.h (Fexecute_kbd_macro): Update prototype.
8352
8353 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
8354
83552002-08-14 Kenichi Handa <handa@etl.go.jp>
8356
8357 * xselect.c (QUTF8_STRING): New variable.
8358 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
8359 (x_atom_to_symbol): Likewise.
8360 (x_get_local_selection): New argument local_request. If it is
8361 nonzero, call handler_fn with the second arg nil.
8362 (x_handle_selection_request): Call x_get_local_selection with
8363 local_request 0.
8364 (lisp_data_to_selection_data): Don't encode the string here.
8365 (Fx_get_selection_internal): Call x_get_local_selection with
8366 local_request 1.
8367 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
8368
8369 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
8370
8371 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
8372
83732002-08-13 Richard M. Stallman <rms@gnu.org>
8374
8375 * minibuf.c (Fminibufferp): New function.
8376 (syms_of_minibuf): Defsubr it.
8377 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
8378
83792002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
8380
8381 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
8382
83832002-08-12 Richard M. Stallman <rms@gnu.org>
8384
8385 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
8386 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
8387 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
8388 already.
8389
8390 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
8391
83922002-08-11 Andrew Choi <akochoi@shaw.ca>
8393
8394 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
8395 (Vmac_pass_command_to_system): New variable.
8396 (Vmac_pass_control_to_system): New variable.
8397 (do_mouse_moved): Check wp with is_emacs_window.
8398 (XTread_socket): Check window_ptr with is_emacs_window.
8399 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
8400 events back to Mac Toolbox for processing, depending on values of
8401 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
8402 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
8403 Vmac_pass_control_to_system.
8404
84052002-08-10 Kenichi Handa <handa@etl.go.jp>
8406
8407 * coding.c (unencodable_char_position): New function.
8408 (Funencodable_char_position): New function.
8409 (syms_of_coding): Defsubr Funencodable_char_position.
8410
84112002-08-10 Andrew Choi <akochoi@shaw.ca>
8412
8413 * mac.c (sys_select) [MAC_OSX]: New function.
8414
8415 * macterm.c (MakeMeTheFrontProcess): New function.
8416 (mac_initialize): Call MakeMeTheFrontProcess.
8417
8418 * s/darwin.h: Define select to sys_select.
8419
84202002-08-09 Richard M. Stallman <rms@gnu.org>
8421
8422 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
8423
84242002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
8425
8426 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
8427 end of the buffer.
8428
84292002-08-08 Ken Raeburn <raeburn@mit.edu>
8430
8431 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
8432
8433 * puresize.h (BASE_PURESIZE): Increase to 910000.
8434
84352002-08-08 Kenichi Handa <handa@etl.go.jp>
8436
8437 * coding.c (Ffind_operation_coding_system): For write-region, if
8438 VISIT is a filename, make it the target.
8439
84402002-08-07 Richard M. Stallman <rms@gnu.org>
8441
8442 * alloc.c (mark_object): Detect long lists for debugging.
8443 (mark_object_loop_halt): New variable.
8444
8445 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
8446
8447 * data.c (Fmake_variable_frame_local): Doc fix.
8448
84492002-08-01 David Ponce <david@dponce.com>
8450
8451 * w32menu.c (local_heap, local_alloc, local_free): New macros.
8452 (malloc_widget_value, free_widget_value)
8453 (w32_free_submenu_strings): Use them.
8454
8455 (push_submenu_start, push_submenu_end, push_left_right_boundary)
8456 (push_menu_pane, push_menu_item, single_keymap_panes)
8457 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
8458 (single_submenu, set_frame_menubar)
8459 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
8460
8461 (Fx_popup_menu): Don't show pop up menu until preceding one is
8462 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
8463
8464 * w32menu.c: Changes adapted from xmenu.c
8465 (set_frame_menubar): First parse all submenus,
8466 then make widget_value trees from them.
8467 Don't allocate any widget_value objects
8468 until we are done with the parsing.
8469 (parse_single_submenu): New function.
8470 (digest_single_submenu): New function.
8471 (single_submenu): Function deleted, replaced by those two.
8472
84732002-08-04 Andrew Choi <akochoi@shaw.ca>
8474
8475 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
8476 returns a valid window pointer before proceeding for keyDown and
8477 autoKey events.
8478
84792002-08-03 Andrew Choi <akochoi@shaw.ca>
8480
8481 * macterm.c (USE_CARBON_EVENTS): New macro.
8482 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
8483 (x_iconify_frame): Call CollapseWindow.
8484 (Vmac_reverse_ctrl_meta): New variable.
8485 (Vmac_wheel_button_is_mouse_2): New variable.
8486 (init_mac_drag_n_drop): New function.
8487 (mac_do_receive_drag): New function.
8488 (mac_handle_service_event): New function.
8489 (init_service_handler): New function.
8490 (mac_to_emacs_modifiers): New function.
8491 (mac_event_to_emacs_modifiers): New function.
8492 (mac_get_mouse_btn): New function.
8493 (mac_convert_event_ref): New function.
8494 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
8495 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
8496 mac_get_mouse_btn.
8497 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
8498
8499 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
8500 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
8501 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
8502 TOOL_BAR_EVENT for MAC_OS as well.
8503 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
8504 as for WINDOWS_NT.
8505 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
8506
8507 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
8508
85092002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
8510
8511 * xdisp.c (forward_to_next_line_start): Fix a condition that
8512 lead to a newline being skipped.
8513
85142002-08-02 Andrew Choi <akochoi@shaw.ca>
8515
8516 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
8517
85182002-08-01 Richard M. Stallman <rms@gnu.org>
8519
8520 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
8521
85222002-07-31 Andrew Choi <akochoi@shaw.ca>
8523
8524 * macfns.c: #undef init_process before #define-ing it.
8525
8526 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
8527 HAVE_CARBON is defined.
8528
85292002-07-31 Richard M. Stallman <rms@gnu.org>
8530
8531 * xmenu.c (set_frame_menubar): First parse all submenus,
8532 then make widget_value trees from them.
8533 Don't allocate any widget_value objects
8534 until we are done with the parsing.
8535 (parse_single_submenu): New function.
8536 (digest_single_submenu): New function.
8537 (single_submenu): Function deleted, replaced by those two.
8538
85392002-07-30 Juanma Barranquero <lektu@terra.es>
8540
8541 * w32proc.c (syms_of_ntproc): Fix docstring of
8542 `w32-get-true-file-attributes'.
8543
85442002-07-28 Richard M. Stallman <rms@gnu.org>
8545
8546 * s/hpux8.h (HPUX8): Define this before including hpux.h.
8547 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
8548
8549 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
8550
8551 * keyboard.c (make_lispy_event):
8552 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
8553 Explicitly clear up_modifier in event->modifiers.
8554
85552002-07-27 Richard M. Stallman <rms@gnu.org>
8556
8557 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
8558
8559 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
8560 for bar cursor.
8561
85622002-07-26 Kenichi Handa <handa@etl.go.jp>
8563
8564 * coding.c (detect_coding_iso2022): While checking a byte sequence
8565 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
8566 it in the normal loop.
8567
85682002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
8569
8570 * xterm.c (expose_overlaps): New function.
8571 (expose_window): Use it to fix the display of overlapping rows.
8572
8573 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
8574
85752002-07-23 Ken Raeburn <raeburn@gnu.org>
8576
8577 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
8578 since it only depends on XUINT.
8579
8580 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
8581 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
8582 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
8583 Macros deleted.
3947677c 8584
77d1daf2
AS
8585 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
8586 its value over other approaches.
8587 * sysdep.c (start_of_data): Don't define the function if a macro
8588 form has been defined.
8a8e19a3 8589
048addec
JD
85902002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
8591
8592 * xdisp.c (redisplay_updating_p): New variable.
8593 (init_iterator): Don't free realized faces when
8594 redisplay_updating_p is set.
8595 (redisplay_internal): Set redisplay_updating_p while updating
8596 the display.
8597
85982002-07-23 Richard M. Stallman <rms@gnu.org>
8599
8600 * editfns.c (Fmessage): Treat "" like nil.
8601
86022002-07-23 Kenichi Handa <handa@etl.go.jp>
8603
8604 * xdisp.c (face_before_or_after_it_pos):
8605 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
8606
86072002-07-22 Juanma Barranquero <lektu@terra.es>
8608
8609 * callproc.c (init_callproc) [DOS_NT]:
8610 Initialize Vshared_game_score_directory to nil.
8611 (syms_of_callproc) [DOS_NT]: Likewise.
8612
86132002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
8614
8615 * xdisp.c (display_line): Replace an abort with xassert.
8616
86172002-07-21 Richard M. Stallman <rms@gnu.org>
8618
8619 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
8620 and END_UNCHANGED when setting buffer_unchanged_p.
8621 Use current_matrix_up_to_date_p to decide whether to use
8622 try_cursor_movement.
8623
8624 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
8625
8626 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
8627
8628 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
8629 Set to nil if dir does not exist.
8630 (syms_of_callproc): Init unconditionally and simply.
8631
8632 * buffer.c (Fbuffer_list): Doc fix.
8633
86342002-07-21 Ken Raeburn <raeburn@gnu.org>
8635
8636 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
8637
8638 * buffer.c (mmap_realloc): When shrinking, make sure number of
8639 pages to unmap is rounded towards zero.
8640
8641 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
8642 (XSETINT): Deleted.
8643
8644 * m/att3b.h (XINT): Don't define.
8645 (VALBITS, VALMASK, XTYPE): Deleted.
8646 (DATA_SEG_BITS): Define.
8647 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
8648 ARRAY_MARK_FLAG): Deleted.
8649 (DATA_SEG_BITS): Define.
8650 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
8651 (DATA_SEG_BITS): Define.
8652
86532002-07-20 Richard M. Stallman <rms@gnu.org>
8654
8655 * print.c (print_error_message): New args CONTEXT and CALLER.
8656 Calls changed.
8657
8658 * lisp.h (print_error_message): Declare new args.
8659
8660 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
8661 and CONTEXT to print_error_message, don't print them here.
8662 For a Quit, don't use Vsignaling_function.
8663 Call message_log_maybe_newline.
8664
8665 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
8666
86672002-07-20 Kim F. Storm <storm@cua.dk>
8668
8669 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
8670
86712002-07-19 Ken Raeburn <raeburn@gnu.org>
8672
8673 * bytecode.c (struct byte_stack): Pointers into byte string now
8674 point to const.
8675 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
8676 const.
8677 * charset.h (BCOPY_SHORT): Source pointer now points to const.
8678 * coding.c (encode_eol, detect_coding, detect_eol):
8679 (decode_coding, encode_coding, detect_coding_system):
8680 Source strings now treated as const.
8681 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
8682 modify Lisp string contents.
8683 * coding.h (decode_coding, encode_coding, detect_coding,
8684 detect_eol): Declarations updated.
8685 * composite.c (compose_chars_in_text): Treat Lisp string contents
8686 as const.
8687 * dispnew.c (safe_bcopy): Source pointer now points to const.
8688 * lisp.h (STRING_COPYIN): New macro.
8689 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
8690 (internal_with_output_to_temp_buffer): Declarations updated.
8691 * print.c (temp_output_buffer_setup):
8692 (internal_with_output_to_temp_buffer): Buffer name argument is now
8693 pointer to const.
8694 * sound.c (struct sound_device): Function pointer field "write"
8695 buffer argument now points to const.
8696 (vox_write): Buffer argument points to const.
8697 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
8698 contents as const.
8699 * sysdep.c (emacs_write): Buffer pointer now const.
8700 * term.c (encode_terminal_code): Buffer pointer now const.
8701 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
8702 (x_face_list_fonts, x_update_menu_appearance):
8703 (hash_string_case_insensitive): Treat Lisp string contents as const.
8704
87052002-07-19 Juanma Barranquero <lektu@terra.es>
8706
048addec
JD
8707 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
8708
8709 * fileio.c (syms_of_fileio): Likewise.
c62aec78
JB
8710 (Ffile_name_as_directory): Fix argument name in docstring.
8711 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
048addec
JD
8712
87132002-07-18 Richard M. Stallman <rms@gnu.org>
8714
8715 * data.c (Fdefalias): Doc fix.
8716
87172002-07-17 Dave Love <fx@gnu.org>
8718
8719 * intervals.h (text_property_stickiness): Use P_.
8720
8721 * ccl.c: Remove `emacs' conditionals.
8722 (ccl_backtrace_table): Fix size spec.
8723 (ccl_driver): Fix type errors.
8724
87252002-07-16 Ken Raeburn <raeburn@gnu.org>
8726
8727 * alloc.c (xstrdup, make_string, make_unibyte_string)
8728 (make_multibyte_string, build_string): String pointer args now
8729 point to const.
8730 * charset.c (find_charset_in_text, c_string_width):
8731 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
8732 * fileio.c (report_file_error):
8733 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
8734 (count_combining_before, count_combining_after, insert_1_both):
8735 (insert, insert_and_inherit, insert_string):
8736 (insert_before_markers, insert_before_markers_and_inherit):
8737 * lread.c (intern, oblookup, hash_string):
8738 * minibuf.c (temp_echo_area_glyphs):
8739 * search.c (fast_c_string_match_ignore_case):
8740 * sysdep.c (emacs_open, set_file_times):
8741 * xfaces.c (xstricmp):
8742 * xdisp.c (store_frame_title, string_char_and_length):
8743 (message_dolog, message2, message2_nolog, set_message): Likewise.
8744 (set_message_1): Cast message string argument to const pointer.
8745 * editfns.c (general_insert_function): Insertion function now
8746 takes pointer to const for input data.
8747 * charset.h (find_charset_in_text, c_string_width):
8748 (parse_str_as_multibyte): Declarations updated.
8749 * dispextern.h (xstricmp): Declaration updated.
8750 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
8751 (count_size_as_multibyte, count_combining_before):
8752 (count_combining_after, insert_1, insert_1_both, message_dolog):
8753 (insert, insert_and_inherit, insert_before_markers)
8754 (insert_before_markers_and_inherit, set_message, message2):
8755 (message2_dolog, build_string, make_string, make_unibyte_string):
8756 (make_multibyte_string, intern, oblookup, report_file_error):
8757 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
8758 (emacs_open, xstrdup): Declarations updated.
8759 * systime.h (set_file_times): Declaration updated.
8760
8761 * charset.c (find_charset_in_text, lisp_string_width): Use const
8762 for pointer to lisp string data.
8763 * charset.h (FETCH_STRING_CHAR_ADVANCE):
8764 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
8765 * coding.c (Ffind_coding_systems_region_interval):
8766 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
8767 (Fmake_directory_internal, Fdelete_directory):
8768 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
8769 * fontset.c (font_family_registry, fs_query_fontset):
8770 (list_fontsets):
8771 * frame.c (Fframe_parameter):
8772 * keyboard.c (cmd_error_internal):
8773 * keymap.c (Fdescribe_buffer_bindings):
8774 * lread.c (complete_filename_p, openp):
8775 * minibuf.c (Fminibuffer_complete_word):
8776 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
8777 (face_before_or_after_it_pos, next_element_from_string):
8778 (get_overlay_arrow_glyph_row, display_mode_element):
8779 (decode_mode_spec_coding):
8780 * xterm.c (same_x_server): Likewise.
8781
8782 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
8783 settings of non-existent fields.
8784
8785 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
8786 copy a lisp value.
8787
8788 * lread.c (Fintern_soft): Use string macros instead of
8789 Lisp_String fields.
8790 * keyboard.c (echo_char, parse_modifiers_uncached):
8791 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
8792 * textprop.c (validate_interval_range, interval_of): Likewise.
8793
8794 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
8795
8796 * charset.h (FETCH_STRING_CHAR_ADVANCE)
8797 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
8798 XSTRING()->size_byte.
8799
8800 * lisp.h (SDATA, SREF): Produce rvalue.
8801 (SSET): New macro.
8802 * alloc.c (make_event_array): Use SSET for storing into a string.
8803 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
8804 a string.
8805 * casefiddle.c (casify_object): Use SSET.
8806 * charset.h (FETCH_STRING_CHAR_ADVANCE)
8807 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
8808 address of string contents.
8809 * data.c (Faref): Use SDATA.
8810 (Faset): Use SDATA, SSET.
8811 * dired.c (directory_files_internal): Use SSET.
8812 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
8813 (Fread_file_name): Use SREF, SSET.
8814 * fns.c (concat): Use SSET.
8815 (concat, Fdelete): Use SDATA.
8816 * insdel.c (insert_from_string_1): Use SDATA.
8817 * keyboard.c (Fevent_convert_list): Use SREF.
8818 * lread.c (Fload): Use SDATA, SSET.
8819 * macfns.c (validate_x_resource_name): Use SSET.
8820 * process.c (status_message): Use SSET.
8821 * search.c (wordify): Use SDATA.
8822 (Freplace_match): Use SREF.
8823 * w32fns.c (validate_x_resource_name): Use SSET.
8824 * xfns.c (validate_x_resource_name): Use SSET.
8825 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
8826
88272002-07-16 Richard M. Stallman <rms@gnu.org>
8828
8829 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
8830
8831 * xdisp.c (reconsider_clip_changes):
8832 Don't test prevent_redisplay_optimizations_p.
8833 (redisplay_internal): Test prevent_redisplay_optimizations_p
8834 along with clip_changed in some cases.
8835 (try_window_id): Likewise.
8836 (redisplay_window): New local var buffer_unchanged_p.
8837
8838 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
8839
8840 * process.c (create_process): Test USG_SUBTTY_WORKS.
8841 (process_send_signal): Clean up handling of GID.
8842 Detect errors in ioctls meant to set GID.
8843
8844 * window.c (temp_output_buffer_show):
8845 Don't set prevent_redisplay_optimizations_p.
8846
88472002-07-15 Juanma Barranquero <lektu@terra.es>
8848
8849 * eval.c (Fdefvaralias): Add docstring argument.
8850
88512002-07-15 Ken Raeburn <raeburn@gnu.org>
8852
8853 * lisp.h (STRING_INTERVALS): Produce rvalue.
8854 (STRING_SET_INTERVALS): New macro.
8855 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
8856 * fns.c (Fstring_as_multibyte): Likewise.
8857 * intervals.c (balance_possible_root_interval, delete_interval)
8858 (create_root_interval, copy_intervals_to_string): Likewise.
8859 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
8860 instead of 0.
8861
88622002-07-14 Ken Raeburn <raeburn@gnu.org>
8863
8864 * lisp.h (STRING_SET_CHARS): New macro.
8865 (SCHARS, SBYTES): Produce rvalues.
8866 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
8867 * fns.c (concat): Likewise.
8868 * lread.c (read_vector): Likewise.
8869
8870 * lisp.h (SMBP): Deleted. All uses changed to STRING_MULTIBYTE.
8871 (STRING_SET_UNIBYTE): New macro.
8872 (SET_STRING_BYTES): Deleted. Callers (all of which supplied a
8873 length of -1) changed to use STRING_SET_UNIBYTE.
8874 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
8875 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
8876 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
8877 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
8878 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
8879 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
8880 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
8881 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
8882 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
8883 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
8884 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
8885 STRING_BYTES or indirection changed to SCHARS, SBYTES,
8886 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
8887 unchanged for now.
8888
88892002-07-13 Kim F. Storm <storm@cua.dk>
8890
8891 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
8892
88932002-07-12 Richard M. Stallman <rms@gnu.org>
8894
8895 * fileio.c (Fwrite_region): Doc fix.
8896
8897 * print.c (print_error_message): Don't handle Vsignaling_function here.
8898
8899 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
8900 (command_loop_1): Avoid certain actions after memory-full error.
8901
8902 * eval.c (Fsignal): Don't call cancel_hourglass.
8903 For a memory-full error, don't call Vsignal_hook_function
8904 and don't set Vsignaling_function.
8905
8906 * process.c (process_send_signal): Add abort call.
8907
89082002-07-11 Markus Rost <rost@math.ohio-state.edu>
8909
8910 * keymap.c (Fkey_binding): Fix typo.
8911
89122002-07-11 Richard M. Stallman <rms@gnu.org>
8913
8914 * alloc.c (Vmemory_full): New variable.
8915 (Vmemory_signal_data): Renamed from memory_signal_data.
8916 Uses changed.
8917 (syms_of_alloc): Defvar them.
8918 (memory_full, buffer_memory_full): Set Vmemory_full.
8919
8920 * lisp.h (Vmemory_full): Add declaration.
8921 (current_column, indented_beyond_p): Change declaration.
8922
8923 * indent.c (last_known_column): Declare as double, not float.
8924 (current_column, current_column_1, string_display_width)
8925 (position_indentation): Return `double'.
8926 (indented_beyond_p): Arg `column' is `double'. Callers changed.
8927
8928 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
8929 (back_to_previous_visible_line_start)
8930 (reseat_at_next_visible_line_start, next_element_from_buffer):
8931 Use `double', not `float', when calling indented_beyond_p.
8932
8933 * s/hpux11.h (BROKEN_SA_RESTART): Defined.
8934
8935 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
8936
89372002-07-11 Juanma Barranquero <lektu@terra.es>
8938
8939 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
d814862a
JB
8940 composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
8941 fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
8942 macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
8943 textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
8944 xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
048addec
JD
8945
89462002-07-10 Juanma Barranquero <lektu@terra.es>
8947
d814862a
JB
8948 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
8949 All callers changed.
048addec
JD
8950
89512002-07-09 Stefan Monnier <monnier@cs.yale.edu>
8952
8953 * data.c (Fdefalias): Add an optional `docstring' argument.
8954 (set_internal, Fsetq_default): Use XCAR/XCDR.
8955
8956 * composite.c (HASH_VALUE, HASH_KEY):
8957 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
8958
89592002-07-09 Kenichi Handa <handa@etl.go.jp>
8960
8961 * callproc.c (Fcall_process): Fix previous change.
8962
89632002-07-07 Stefan Monnier <monnier@cs.yale.edu>
8964
8965 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
8966 Add support for hash-tables.
8967 (Ftry_completion): Return t even if the string appears multiple times.
8968
8969 * fns.c (Fnconc): Use XCDR.
8970 (Fprovide): Use CONSP and XCDR.
8971 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
8972 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
8973 (Fmake_hash_table): Accept `:size nil'.
8974 (Fmakehash): Delete: moved to subr.el.
8975 (syms_of_fns): Don't defsubr makehash.
8976
8977 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
8978 (HASH_TABLE_SIZE): Move from fns.c.
8979
89802002-07-07 Richard M. Stallman <rms@gnu.org>
8981
8982 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
8983 Instead just return 0 when there is something to be done.
8984 (try_scrolling): If make_cursor_line_fully_visible returns 0,
8985 retry scrolling as if cursor were off the bottom.
8986 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
8987 return CURSOR_MOVEMENT_MUST_SCROLL.
8988 (redisplay_window): If make_cursor_line_fully_visible returns 0,
8989 go to try_to_scroll.
8990
8991 * buffer.c (Fbuffer_local_value): Store current value into its binding
8992 so we get the up-to-date value for the binding that is loaded.
8993
8994 * eval.c (Fdefmacro): Doc fix.
8995
89962002-07-05 Dave Love <fx@gnu.org>
8997
8998 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
8999 correctly.
9000
9001 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
9002 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
9003 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
9004 CCL_LookupCharConstTbl.
9005 (syms_of_ccl): Defvar translation-hash-table-vector.
9006
90072002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9008
9009 * xdisp.c: Remove unused variable `face'.
9010
90112002-07-04 Juanma Barranquero <lektu@terra.es>
9012
9013 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
9014 obsolescence information.
9015
90162002-07-03 Andrew Choi <akochoi@shaw.ca>
9017
9018 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
9019 pattern. Search cache first.
9020 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
9021 for Japanese font.
9022 (XLoadQueryFont): Use it.
9023
90242002-07-02 Richard M. Stallman <rms@gnu.org>
9025
9026 * keymap.c (Fdefine_key): Doc fix.
9027
9028 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
9029
90302002-07-02 Juanma Barranquero <lektu@terra.es>
9031
9032 * keymap.c (syms_of_keymap): Fix typo.
9033
90342002-07-01 Andrew Choi <akochoi@shaw.ca>
9035
9036 * s/darwin.h: Define POSIX_SIGNALS.
9037
9038 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
9039 and FSRefMakePath to convert FSSpec returned with Apple Event to
9040 Posix pathname.
9041 (mac_initialize) [TARGET_API_MAC_CARBON]:
9042 Call init_required_apple_events and disable the `Quit' menu item
9043 provided automatically by the Carbon Toolbox.
9044
90452002-07-01 Dave Love <fx@gnu.org>
9046
9047 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
9048 for K&R.
9049
9050 * xterm.c: Fix prototype for K&R.
9051
9052 * term.c (costs_set): Declare static, non-initialized for pcc.
9053
90542002-07-01 Richard M. Stallman <rms@gnu.org>
9055
9056 * keyboard.c (timer_last_idleness_start_time): New variable.
9057 (timer_start_idle): Set that.
9058 (read_key_sequence): Use that to reset timer_idleness_start_time
9059 to previous value.
9060
9061 * window.c (Frecenter): With arg, set optional_new_start.
9062
9063 * xdisp.c (redisplay_internal): Make optional_new_start really work.
9064
9065 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
9066 buffer for completion.
9067
90682002-06-29 Ken Raeburn <raeburn@gnu.org>
9069
9070 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
9071
90722002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9073
9074 * keyboard.c (readable_filtered_events): New function that filters
9075 FOCUS_IN_EVENT depending on parameter.
9076 (readable_events): Calls readable_filtered_events, not filtering
9077 FOCUS_IN_EVENT.
9078 (get_filtered_input_pending): New function, filtering parameter passed
9079 to readable_filtered_events.
9080 (get_input_pending): Calls get_filtered_input_pending, not filtering
9081 FOCUS_IN_EVENT.
9082 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
9083 FOCUS_IN_EVENT.
9084
9085 * xterm.h (struct x_output): Add focus_state.
9086
9087 * xterm.c (x_focus_changed): New function.
9088 (x_detect_focus_change): New function.
9089 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
9090 EnterNotify and LeaveNotify to track X focus changes.
9091
90922002-06-28 Andreas Schwab <schwab@suse.de>
9093
9094 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
9095
90962002-06-27 Kim F. Storm <storm@cua.dk>
9097
9098 * xdisp.c: (mode_line_string_list, mode_line_string_face)
9099 (mode_line_string_face_prop): New variables.
9100 (store_mode_line_string): New function.
9101 (display_mode_element): Use store_mode_line_string to
9102 add mode-line string elements to mode_line_string_list
9103 when mode_line_string_list is non-nil.
9104 (Fformat_mode_line): Now returns propertized string by
9105 default. New arg NO-PROPS to ignore properties.
9106 (decode_mode_spec): Only add two dashes for %- in propertized
9107 mode-line string.
9108 (syms_of_xdisp): Init and staticpro mode_line_string_list.
9109
91102002-06-27 Stefan Monnier <monnier@cs.yale.edu>
9111
9112 * minibuf.c (minibuffer_completion_contents): Add return type.
9113
91142002-06-27 Juanma Barranquero <lektu@terra.es>
9115
9116 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
9117
91182002-06-26 Juanma Barranquero <lektu@terra.es>
9119
9120 * fileio.c (read_file_name_cleanup): Add missing return.
9121
91222002-06-26 Richard M. Stallman <rms@gnu.org>
9123
9124 * window.c (Frecenter): Don't set force_start flag.
9125
9126 * minibuf.c (do_completion, Fminibuffer_complete_word)
9127 (Fminibuffer_completion_help): Complete just the text before point.
9128 (minibuffer_completion_contents): New function.
9129
9130 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
9131
9132 * frame.c (frames_bury_buffer): Function deleted.
9133
91342002-06-25 Miles Bader <miles@gnu.org>
9135
9136 * callint.c (Fcall_interactively): When checking to see if doprnt hit
9137 the end of callint_message, allow for a terminating '\0'.
9138
91392002-06-24 Juanma Barranquero <lektu@terra.es>
9140
9141 * w32select.c: Include composite.h
9142
9143 * w16select.c: Likewise.
9144
91452002-06-24 Kenichi Handa <handa@etl.go.jp>
9146
9147 * callproc.c (Fcall_process): If code detection is necessary,
9148 call detect_coding directly here.
9149
9150 * coding.c (detect_eol): Preserve coding->cmp_data.
9151
9152 * w16select.c (Fw16_get_clipboard_data):
9153 * w32fns.c (w32_to_x_font):
9154 * w32select.c (Fw32_get_clipboard_data):
9155 * xselect.c (selection_data_to_lisp_data):
9156 * xterm.c (XTread_socket): Disable composition handling.
9157
91582002-06-24 Stefan Monnier <monnier@cs.yale.edu>
9159
9160 * print.c (temp_output_buffer_setup): Kill all local variables.
9161
91622002-06-22 Stefan Monnier <monnier@cs.yale.edu>
9163
9164 * lread.c (Fread): Remove redundant and imprecise declaration.
9165
9166 * xfns.c (check_x_display_info): Use check_x_frame.
9167
9168 * .gdbinit (xprintsym): Use the new `xname' field.
9169 (xsymbol): Use it.
9170
91712002-06-22 Jason Rumney <jasonr@gnu.org>
9172
9173 * w32fns.c (file_dialog_callback): New function.
9174 (Fx_file_dialog): Allow selecting directories as well as files.
9175
91762002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9177
9178 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
9179 OpenBSD. Add support for mipseb-*-netbsd* machines.
9180
91812002-06-17 Andrew Choi <akochoi@shaw.ca>
9182
9183 * macterm.c (mac_scroll_area): Set foreground and backcolor to
9184 black and white before scrolling. Restore frame background and
9185 foreground color after scrolling.
9186 (do_window_update): Call XClearWindow before calling expose_frame.
9187 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
9188 FRAME_FOREGROUND_PIXEL of frame.
9189
9190 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
9191 test Mac command key as <ALT> key.
9192
91932002-06-17 Stefan Monnier <monnier@cs.yale.edu>
9194
9195 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
9196
9197 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
9198 Lookup keys in function-key-map immediately so that key-translation-map
9199 can be applied earlier.
9200 Remove function_key_possible and key_translation_possible, replaced
9201 by checking `keytran_start < t'.
9202
9203 * .gdbinit (xsymbol): Use the new `xname' field.
9204
92052002-06-17 Andrew Choi <akochoi@shaw.ca>
9206
9207 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
9208 test Mac command key as <ALT> key.
9209
9210 * mac.c (do_applescript): Call initialize_applescript if necessary
9211 when first called. Dispose of result_desc only when there is no error.
9212 (Fdo_applescript): Use %d format specifier instead of %ld.
9213
92142002-06-16 Andrew Choi <akochoi@shaw.ca>
9215
9216 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
9217 of FrontWindow for cases keyDown and autoKey.
9218
9219 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
9220 Vdefault_fontset to Monaco with mac-roman coding.
9221
9222 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
9223 init_process before and after inclusion of Carbon/Carbon.h, resp.
9224
9225 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
9226 cursor_gc.
9227 (add_font_name_table_entry): New function.
9228 (init_font_name_table): Use add_font_name_table_entry; add italic,
9229 bold, and bold-italic entries for truetype fonts.
9230
9231 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
9232 for Mac too.
9233 (try_font_list) [MAC_OS]: If no font matches given registry, try
9234 fonts with any registry matching face_family.
9235 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
9236
9237 * s/darwin.h: If autoconf detects the Ncurses library, define
9238 LIBS_TERMCAP to -lncurses to use it.
9239
92402002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
9241
9242 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
9243
92442002-06-15 Richard M. Stallman <rms@gnu.org>
9245
9246 * window.c (Fset_window_configuration): Explicitly preserve
9247 the point value that new_current_buffer had at the start.
9248
92492002-06-14 Juanma Barranquero <lektu@terra.es>
9250
9251 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
9252 Fix typos.
9253
92542002-06-14 Kim F. Storm <storm@cua.dk>
9255
9256 * insdel.c (insert_1_both, insert_from_string_1)
9257 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
9258 insert happened in the end_unchanged region. Otherwise, the
9259 redisplay may be confused and duplicate the last line in the
9260 buffer [seen after save-buffer when require-final-newline==t].
9261
92622002-06-13 Jason Rumney <jasonr@gnu.org>
9263
9264 * w32.c (init_environment): Remove EMACSLOCKDIR.
9265 (stat): Swap _S_IFDIR and _S_IFREG.
9266
92672002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9268
9269 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
9270 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
9271 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
9272 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
9273 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
9274 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
9275 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
9276 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
9277 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
9278 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
9279 SELECTION_REQUEST_EVENT, selection_clear_event to
9280 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
9281 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
9282 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
9283 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
9284 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
9285 no_event to NO_EVENT.
9286
92872002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9288
9289 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
9290
92912002-06-12 Stefan Monnier <monnier@cs.yale.edu>
9292
9293 * intervals.c (textget): Don't forget to `return'.
9294 (lookup_char_property): Use XCAR/XCDR.
9295
92962002-06-12 Juanma Barranquero <lektu@terra.es>
9297
9298 * xdisp.c (Fformat_mode_line): Fix typo.
9299
93002002-06-12 Kim F. Storm <storm@cua.dk>
9301
9302 * xdisp.c (Fformat_mode_line): New function.
9303 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
9304 (store_frame_title_char, store_frame_title): Use unconditionally.
9305 (init_xdisp): Defsubr Fformat_mode_line.
9306 Initialize frame_title_buf etc. unconditionally.
9307
93082002-06-11 Stefan Monnier <monnier@cs.yale.edu>
9309
9310 * keyboard.c (read_key_sequence):
9311 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
9312 things through those maps after downcasing events.
9313 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
9314 applies after function-key-map.
9315 Make sure that keytran can be done in the middle in the sequence.
9316 Be careful not to throw away events past the one we downcase.
9317
9318 * lread.c (read_integer): Remove unused var `tem'.
9319 (read1): Fix int/Lisp_Object mixup.
9320
9321 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
9322
93232002-06-11 Richard M. Stallman <rms@gnu.org>
9324
9325 * keyboard.c (readable_events): Ignore any number of
9326 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
9327
93282002-06-09 Miles Bader <miles@gnu.org>
9329
9330 * xfaces.c (Ftty_supports_face_attributes_p): New function.
9331 (parse_rgb_list, tty_lookup_color): New functions.
9332 (tty_defined_color): Use `tty_lookup_color' to do all the work.
9333 (color_distance, Fcolor_distance): New functions.
9334 (TTY_SAME_COLOR_THRESHOLD): New macro.
9335 (Qtty_color_standard_values): New variable.
9336 (syms_of_xfaces): Initialize new vars & functions.
9337
93382002-06-08 Colin Walters <walters@verbum.org>
9339
9340 * textprop.c (Vchar_property_alias_alist): New variable.
9341 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
9342
9343 * intervals.c (lookup_char_property): New function for looking up
9344 overlay and text properties, created from textget.
9345 (textget): Use it.
9346
9347 * intervals.h (lookup_char_property): Declare.
9348 (Vchar_property_alias_alist): Declare.
9349
9350 * buffer.c (Foverlay_get): Use lookup_char_property.
9351
93522002-06-07 Sam Steingold <sds@gnu.org>
9353
9354 * xselect.c (lisp_data_to_selection_data): Fix last change:
9355 *data_ret is not a Lisp string, while unibyte_string is.
9356
93572002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
9358
9359 * xselect.c (lisp_data_to_selection_data): Fix last change:
9360 set size_ret.
9361
93622002-06-07 Andreas Schwab <schwab@suse.de>
9363
9364 * m/amdx86-64.h: New file.
9365
93662002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
9367
9368 * fns.c (Fstring_make_unibyte): Doc fix.
9369
9370 * xselect.c (lisp_data_to_selection_data): If the requested type
9371 is STRING, call string_make_unibyte to encode the selected text
9372 as a string.
9373
9374 * window.c (Fset_window_hscroll): Doc fix.
9375
93762002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9377
9378 * fileio.c (choose_write_coding_system):
9379 Call select-safe-coding-system properly.
9380
93812002-06-03 Richard M. Stallman <rms@gnu.org>
9382
9383 * xdisp.c (message_with_string): Error if STRING is not a string.
9384
9385 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
9386
9387 * fileio.c (choose_write_coding_system): Pass FILE arg to
9388 Vselect_safe_coding_system_function.
9389
93902002-06-03 Ken Raeburn <raeburn@gnu.org>
9391
9392 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
9393
93942002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
9395
9396 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
9397 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
9398 * keymap.c (describe_command): Likewise.
9399 * minibuf.c (read_minibuf): Likewise.
9400
9401 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
9402 Cast `current_column' return value to int.
9403 (back_to_previous_visible_line_start)
9404 (reseat_at_next_visible_line_start, next_element_from_buffer):
9405 Cast `indented_beyond_p' 3rd arg to float.
9406
9407 * indent.c (last_known_column): Now a float.
9408 (current_column_1, position_indentation, current_column)
9409 (string_display_width): Return float.
9410 (Fcurrent_column): Cast `current_column' return value to int.
9411 (Fcurrent_indentation): Cast `position_indentation' retval to int.
9412 (indented_beyond_p): Third arg now a float.
9413 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
9414
9415 * lisp.h (current_column): Now returns float.
9416 (indented_beyond_p): 3rd arg now a float.
9417
94182002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
9419
9420 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
9421 is Qcompound_text_with_extensions.
9422
9423 * xselect.c (lisp_data_to_selection_data): Always set selection
9424 type as string if x_encode_text returns streingp non-NULL.
9425
9426 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
9427
94282002-05-30 Richard M. Stallman <rms@gnu.org>
9429
9430 * window.c (Fset_window_configuration): Correct the handling
9431 of point in current buffer, to work with multiple windows.
9432
94332002-05-29 Colin Walters <walters@verbum.org>
9434
9435 * lread.c (Fread_from_string): Don't depend on order of evaluation
9436 for C function parameters.
9437
94382002-05-28 Richard M. Stallman <rms@gnu.org>
9439
9440 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
9441 way for blinked-off state and for a nonselected window.
9442
9443 * window.c (window_scroll_pixel_based): Don't call Fbolp;
9444 instead, see if the new start pos is at beginning of line.
9445
9446 * fileio.c (Fwrite_region): If START is a string, don't
9447 make any annotations.
9448
9449 * eval.c (syms_of_eval): Doc fix.
9450
94512002-05-28 Colin Walters <walters@debian.org>
9452
9453 * emacs.c (USAGE1): Add --no-splash.
9454 (standard_args): Ditto.
9455
94562002-05-28 Colin Walters <walters@gnu.org>
9457
9458 * lread.c (readchar_count): New variable.
9459 (readchar): Increment it.
9460 (unreadchar): Decrement it.
9461 (read_multibyte): Decrement it.
9462 (Vread_with_symbol_positions): New variable.
9463 (Vread_symbol_positions_list): New variable.
9464 (read_internal_start): New function, created from Fread and
9465 Fread_from_string. Handle Vread_symbol_positions_list and
9466 Vread_with_symbol_positions.
9467 (readevalloop, Fread, Fread_from_string): Use it.
9468 (read1): Use readchar_count to add symbol positions to
9469 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
9470 (syms_of_lread): DEFVAR_LISP and initialize them.
9471
9472 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
9473 (substitute_object_recurse, substitute_object_in_subtree)
9474 (substitute_in_interval): Prototype.
9475 (read_multibyte): Return c if it's less than zero.
9476
94772002-05-28 Kim F. Storm <storm@cua.dk>
9478
9479 * fileio.c (Fread_file_name_internal): Added brute-force
9480 speed up for using predicate file-directory-p.
9481
94822002-05-28 Kim F. Storm <storm@cua.dk>
9483
9484 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
9485 New variables.
9486 (syms_of_fileio): DEFVAR_LISP them.
9487 (read_file_name_cleanup): New unwind function.
9488 (Fread_file_name_internal): Only return completions satifying
9489 Vread_file_name_predicate. Temporarily unwind protect and rebind
9490 default-directory while checking completions against the predicate.
9491 (Fread_file_name): Added PREDICATE argument. Specbind it to
9492 Vread_file_name_predicate during completion.
9493 Call Vread_file_name_function to read the file name if non-nil.
9494
9495 * lisp.h (Fread_file_name): Now has 6 args.
9496
9497 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
9498 predicate for Fread_file_name when reading directory name.
9499 Supply Qnil for predicate in other calls to Fread_file_name.
9500
95012002-05-26 Miles Bader <miles@gnu.org>
9502
9503 * term.c (tty_capable_p): New function.
9504 * dispextern.h (tty_capable_p): New function declaration.
9505 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
9506 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
9507
95082002-05-23 Stefan Monnier <monnier@cs.yale.edu>
9509
9510 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
9511 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
9512 (Vwrite_region_annotate_functions): Docstring fix.
9513
95142002-05-23 Kim F. Storm <storm@cua.dk>
9515
9516 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
9517 phys_cursor's hpos is overwritten. This is still not completely
9518 correct, as it doesn't really make sense to use hpos at all to
9519 get the cursor glyph (as that is relative to the width of the
9520 characters on the line, which may have changed during the update).
9521
95222002-05-22 Jason Rumney <jasonr@gnu.org>
9523
9524 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
9525 Lisp_Object.
9526 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
9527 Use modified enumfont_t struct.
9528
9529 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
9530
9531 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
9532 Handle the `hbar' cursor type.
9533 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
9534
9535 * w32fns.c (Qhbar): New variable.
9536 (x_specified_cursor_type): Use it.
9537
95382002-05-21 Ken Raeburn <raeburn@gnu.org>
9539
9540 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
9541 now, when the address is needed.
9542
95432002-05-21 Colin Walters <walters@gnu.org>
9544
9545 * Makefile.in (shortlisp): Add font-core.el.
9546
95472002-05-20 Richard M. Stallman <rms@gnu.org>
9548
9549 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
9550
9551 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
9552 equivalent key bindings here.
9553
95542002-05-20 Ken Raeburn <raeburn@gnu.org>
9555
9556 Change symbol structure to contain a lisp object for the symbol
9557 name:
9558 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
9559 object field named "xname".
9560 (SYMBOL_NAME): New macro.
9561 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
9562 name field.
9563 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
9564 (mark_object, gc_sweep): Use symbol xname field and XSTRING
9565 instead of name field.
9566 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
9567 SYMBOL_NAME instead of XSYMBOL and name field.
9568 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
9569 instead of XSYMBOL and name field.
9570 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
9571 and SYMBOL_NAME instead of XSYMBOL and name field.
9572 * coding.c (Fread_coding_system, code_convert_region1)
9573 (code_convert_string1, code_convert_string_norecord)
9574 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
9575 XSYMBOL and name field.
9576 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
9577 (Fmake_variable_buffer_local, Fmake_local_variable)
9578 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
9579 of XSYMBOL and name field.
9580 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
9581 XSYMBOL and name field.
9582 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
9583 instead of XSYMBOL and name field.
9584 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
9585 XSYMBOL and name field.
9586 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
9587 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
9588 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
9589 instead of XSYMBOL and name field.
9590 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
9591 (parse_modifiers, apply_modifiers, Fevent_convert_list)
9592 (parse_solitary_modifier, Fexecute_extended_command):
9593 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
9594 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
9595 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
9596 of XSYMBOL and name field.
9597 (describe_command, describe_translation): Use SYMBOL_NAME and
9598 assignment instead of XSYMBOL and name field and XSETSTRING.
9599 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
9600 instead of XSYMBOL and name field.
9601 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
9602 name field and XSETSTRING.
9603 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
9604 of XSYMBOL and name field.
9605 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
9606 assignment instead of XSYMBOL and name field and XSETSTRING.
9607 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
9608 XSTRING instead of XSYMBOL and name field.
9609 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
9610 and XSTRING instead of XSYMBOL and name field.
9611 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
9612 and XSTRING instead of XSYMBOL and name field.
9613 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
9614 XSTRING instead of XSYMBOL and name field.
9615 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
9616 of XSYMBOL and name field.
9617 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
9618 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
9619
96202002-05-19 Ken Raeburn <raeburn@gnu.org>
9621
9622 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
9623 and XCDR real rvalues in most configurations.
9624
9625 * buffer.c (fix_overlays_in_range, fix_overlays_before):
9626 Don't take the address of the cdr part of a cons cell; instead, track
9627 the parent cell and call XSETCDR, or set the variable for the head
9628 of the list if we haven't started down the list yet.
9629
96302002-05-19 Richard M. Stallman <rms@gnu.org>
9631
9632 * doc.c (reread_doc_file): Don't ask for confirmation.
9633
96342002-05-18 Jason Rumney <jasonr@gnu.org>
9635
9636 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
9637 (xbm_load_image): Use it.
9638 (xbm_load): Ditto.
9639 (xbm_read_bitmap_data): Reverted to xfns.c version.
9640 From David Ponce <david@dponce.com>.
9641
96422002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
9643
9644 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
9645 2.02 and later.
9646
96472002-05-16 Juanma Barranquero <lektu@terra.es>
9648
9649 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
9650
96512002-05-15 Stefan Monnier <monnier@cs.yale.edu>
9652
9653 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
9654 meaningful test.
9655 (read_char_minibuf_menu_prompt): Fix typo.
9656
96572002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
9658
9659 * eval.c (Fcommandp): Doc fix.
9660
96612002-05-13 Stefan Monnier <monnier@cs.yale.edu>
9662
9663 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
9664 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
9665 (Fset_keymap_parent): Gcpro a bit more.
9666 (access_keymap): Gcpro around meta_map call and around the main loop.
9667 (get_keyelt): Gcpro when following indirect references.
9668 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
9669 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
9670 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
9671 Remove useless ad-hoc remap code.
9672
96732002-05-13 Richard M. Stallman <rms@gnu.org>
9674
9675 * search.c (search_buffer): Give up boyer moore search if inverse
9676 translation change charset_base.
9677
96782002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
9679
9680 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
9681 characters is carried over from the previous block of text, adjust
9682 coding->produced to account for the extra character.
9683
96842002-05-11 Andreas Schwab <schwab@suse.de>
9685
9686 * coding.c (intersection): Keep the elements of the returned list
9687 in the same order as in the first list.
9688
96892002-05-11 Kim F. Storm <storm@cua.dk>
9690
9691 * keymap.c (current_minor_maps): Fixed resizing of cmm_maps;
9692 only update cmm_size if realloc actually succeeds.
9693 Testing with initial size of 2 elements revealed that using
9694 realloc on GNU/Linux would cause a random trap in xmalloc
9695 later on, so I rewrote the code to use malloc/bcopy/free instead
9696 of realloc.
9697
96982002-05-10 Jason Rumney <jasonr@gnu.org>
9699
9700 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
9701
97022002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
9703
9704 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
9705 parens, to ensure correct evaluation order.
9706
97072002-05-10 Kim F. Storm <storm@cua.dk>
9708
9709 * keymap.c (Vemulation_mode_map_alists): New variable.
9710 (syms_of_keymap): DEFVAR_LISP it.
9711 (current_minor_maps): Process keymap alists in that list before
9712 minor-mode-overriding-map-alist and minor-mode-map-alist.
9713
97142002-05-09 Richard M. Stallman <rms@gnu.org>
9715
9716 * search.c (Freplace_match): Doc fix.
9717
97182002-05-09 Kim F. Storm <storm@cua.dk>
9719
9720 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
9721 Enlarge cursor rectangle drawn around image with non-zero relief.
9722
9723 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
9724 Enlarge cursor rectangle drawn around image with non-zero relief.
9725
9726 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
9727 Enlarge cursor rectangle drawn around image with non-zero relief.
9728
97292002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
9730
9731 * xselect.c (lisp_data_to_selection_data): Don't set selection
9732 type if comes from the Lisp object's car. If the selection
9733 contains a pure ASCII text, always return QSTRING as its type.
9734
97352002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9736
9737 * mac.c (mac-cut-function): Doc fix.
9738
97392002-05-05 Richard M. Stallman <rms@gnu.org>
9740
9741 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
9742
97432002-05-04 Jason Rumney <jasonr@gnu.org>
9744
9745 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
9746 for event-click-count.
9747
9748 * process.c (init_process): Only add server subfeature if we can
9749 use non-blocking I/O.
9750
97512002-05-04 Andrew Choi <akochoi@shaw.ca>
9752
9753 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
9754 repeatedly.
9755
97562002-05-03 Jason Rumney <jasonr@gnu.org>
9757
9758 * process.c (Fmake_network_process): Only support server sockets
9759 when we can make them non-blocking.
9760
9761 * s/ms-w32.h (HAVE_SELECT): Define.
9762
9763 * w32.h (FILE_NDELAY): New flag.
9764
9765 * w32.c (sys_getpeername, fcntl): New functions.
9766 (_sys_read_ahead): Temporarily block on non-blocking sockets.
9767
9768 * w32proc.c: include sys/file.h.
9769
97702002-05-03 Colin Walters <walters@verbum.org>
9771
9772 * callproc.c (Vgame_score_directory): Renamed to
9773 Vshared_game_score_directory.
9774
97752002-04-30 Richard M. Stallman <rms@gnu.org>
9776
9777 * s/gnu.h [emacs]: Include stdio.h.
9778 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
9779
9780 * eval.c (do_autoload): Error if called while preparing to dump.
9781
9782 * fns.c (Frequire): Error if need to load while preparing to dump.
9783
97842002-04-28 Colin Walters <walters@verbum.org>
9785
9786 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
9787 Default to "~/.emacs.d/games".
9788
97892002-04-29 Stefan Monnier <monnier@cs.yale.edu>
9790
9791 * lread.c (openp): Change arg exec_only to predicate.
9792 (build_load_history): Use XCAR/XCDR.
9793 (Flocate_file_internal): New fun.
9794 (syms_of_lread): Defsubr it.
9795 (Fload): Update call to openp.
9796
9797 * lisp.h (openp): Update prototype.
9798
9799 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
9800 * w32proc.c (sys_spawnve):
9801 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
9802 * w32.c (check_windows_init_file):
9803 * sound.c (Fplay_sound_internal):
9804 * process.c (Fstart_process):
9805 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
9806 * mac.c (run_mac_command):
9807 * emacs.c (init_cmdargs):
9808 * callproc.c (Fcall_process): Update call to openp.
9809
9810 * textprop.c (remove_properties): Don't use XCAR without CONSP.
9811
9812 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
9813
98142002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9815
9816 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
9817 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
9818
98192002-04-28 Richard M. Stallman <rms@gnu.org>
9820
9821 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
9822
9823 * eval.c (Fcommandp): New arg for_call_interactively.
9824 * lisp.h (Fcommandp): Declare new arg.
9825
98262002-04-28 Jason Rumney <jasonr@gnu.org>
9827
9828 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
9829
9830 * w32.c (stat, fstat): Use file index information to generate
9831 inodes for directories where available.
9832
98332002-04-26 Andrew Choi <akochoi@shaw.ca>
9834
9835 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
9836 [HAVE_CARBON]: Include Mac object files.
9837
9838 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
9839 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
9840 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
9841 MAC_OSX, and MAC_OS instead of macintosh.
9842
9843 * editfns.c [MAC_OS8]: Include stdio.h.
9844
9845 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
9846
9847 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
9848 Apple Monaco.
9849
9850 * process.c: Declare QCfamily and QCfilter as extern.
9851 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
9852 calling select.
9853
9854 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
9855
9856 * tparam.c [MAC_OSX]: Don't define BC and UP.
9857
9858 * config.in [HAVE_CARBON]: Add.
9859
9860 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
9861 Move here from mac/src and mac/inc.
9862
9863 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
9864
98652002-04-26 Gerd Moellmann <gerd@gnu.org>
9866
9867 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
9868 Compute phys_cursor_width from the x position returned
9869 by x_draw_glyhs, which is cheaper.
9870 (x_display_and_set_cursor): Compute the buffer-local value
9871 of `cursor-in-non-selected-windows' only when needed.
9872
98732002-04-25 Gerd Moellmann <gerd@gnu.org>
9874
9875 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
9876 cursor on a stretch glyph has a width that depends on
9877 x_stretch_cursor_p.
9878
98792002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9880
9881 * abbrev.c (abbrev-start-location): Doc fix.
9882
9883 * indent.c (Fvertical_motion): Fix last change.
9884
98852002-04-25 Gerd Moellmann <gerd@gnu.org>
9886
9887 * indent.c (Fvertical_motion): Move to the start of the line
9888 containing PT before moving up or down.
9889
98902002-04-24 Gerd Moellmann <gerd@gnu.org>
9891
9892 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
9893 case of writing a whole row, more or less analogous to the case of
9894 writing only parts of a row.
9895
9896 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
9897 0 for NO_CURSOR.
9898
9899 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
9900
99012002-04-23 Colin Walters <walters@verbum.org>
9902
9903 * buffer.c (syms_of_buffer): Doc fix.
9904
99052002-04-23 Gerd Moellmann <gerd@gnu.org>
9906
9907 * xterm.c (notice_overwritten_cursor): Handle the special case
9908 of the cursor being in the first blank non-text line at the
9909 end of a window.
9910
9911 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
9912 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
9913 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
9914 bar cursors only, to make phys_cursor_width contain what its name
9915 suggests.
9916 (notice_overwritten_cursor): Consider the cursor image erased if
9917 the output area intersects the cursor image in y-direction.
9918
99192002-04-23 Simon Marshall <simon@gnu.org>
9920
9921 * xfns.c (x_set_mouse_color): Change default for cross_cursor
9922 to XC_hand2.
9923
99242002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9925
9926 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
9927
99282002-04-22 Kim F. Storm <storm@cua.dk>
9929
9930 * textprop.c (remove_properties): Fixed trap for malformed plist.
9931
99322002-04-22 Richard M. Stallman <rms@gnu.org>
9933
9934 * cmds.c (Fend_of_line): Handle intangible text in mid line.
9935
9936 * window.c (make_window): Initialize height_fixed_p,
9937 last_cursor_off_p, and p->cursor_off_p slots.
9938
99392002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9940
9941 * fns.c (use-dialog-box): Doc fix.
9942
99432002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9944
9945 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
9946 variables `row', `i' and `area'.
9947 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
9948 toolkit library.
9949
99502002-04-19 Stefan Monnier <monnier@cs.yale.edu>
9951
9952 * xfaces.c (clear_font_table): Don't free the default font of
9953 a frame even if it's on another display.
9954 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
9955 that could be Qt.
9956
99572002-04-19 Juanma Barranquero <lektu@terra.es>
9958
9959 * indent.c (Fmove_to_column): Remove unused local variable
9960 `next_boundary_byte'.
9961 (current_column_1): Likewise.
9962
99632002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
9964
9965 * msdos.c (Qhbar): New variable.
9966 (syms_of_msdos): Intern and staticpro it.
9967 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
9968 cursor type.
9969
99702002-04-19 Dave Lambert <dlambert@acm.org>
9971
9972 Theses change implement an underscore-like (`hbar') cursor.
9973
9974 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
9975
9976 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
9977 Handle the `hbar' cursor type.
9978 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
9979
9980 * xfns.c (Qhbar): New variable.
9981 (syms_of_xfns): Intern and staticpro it.
9982 (x_specified_cursor_type): Handle `hbar' cursor.
9983
9984 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
9985 not defined.
9986
99872002-04-18 Richard M. Stallman <rms@gnu.org>
9988
9989 * textprop.c (remove_properties): New arg LIST allows scanning
9990 either a list or a plist.
9991 (interval_has_some_properties_list): New function, like
9992 interval_has_some_properties using list instead of plist.
9993 All callers changed.
9994 (Fremove_list_of_text_properties): New function.
9995 (syms_of_textprop): Defsubr it.
9996
99972002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
9998
9999 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
10000
100012002-04-17 Juanma Barranquero <lektu@terra.es>
10002
10003 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
10004
100052002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
10006
10007 * window.c (coordinates_in_window): Don't report on margin area
10008 if its width is zero.
10009
100102002-04-16 Jason Rumney <jasonr@gnu.org>
10011
10012 * w32fns.c (Fx_file_dialog): Decode file name before using.
10013
10014 * w32term.c (construct_drag_n_drop): Likewise.
10015
100162002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
10017
10018 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
10019 store load-history in pure space.
10020
10021 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
10022
100232002-04-16 Stefan Monnier <monnier@cs.yale.edu>
10024
10025 * xterm.c (Qlatin_1, Qutf_8): New vars.
10026 (syms_of_xterm): Initialize them.
10027 (XTread_socket): Eliminate incorrect optimization that tried to avoid
10028 decoding the output of X*LookupString.
10029 Always use latin-1 to decode the output of XLookupString.
10030 Try Xutf8LookupString if XmbLookupString failed.
10031
10032 * region-cache.c (new_region_cache): Use BEG.
10033
100342002-04-16 Gerd Moellmann <gerd@gnu.org>
10035
10036 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
10037 configuration files.
10038 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
10039 returns 0.
10040
100412002-04-15 Andreas Schwab <schwab@suse.de>
10042
10043 * config.in: Regenerated using autoheader.
10044
10045 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
10046 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
10047 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
10048 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
10049 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
10050 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
10051 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
10052 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
10053 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
10054 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
10055 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
10056 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
10057 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
10058 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
10059 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
10060 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
10061 STACK_DIRECTION, now set by autoconf.
10062
100632002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10064
10065 * dispnew.c (marginal_area_string): Sort arguments.
10066
10067 * dispextern.h (marginal_area_string): Add prototype.
10068
100692002-04-13 Richard M. Stallman <rms@gnu.org>
10070
10071 * fileio.c (Finsert_file_contents):
10072 Don't call temp_output_buffer_setup--do just part, by hand.
10073
10074 * coding.c (run_pre_post_conversion_on_str):
10075 Don't call temp_output_buffer_setup--do just part, by hand.
10076
10077 * keyboard.c (command_loop_1): Don't call start_hourglass
10078 or cancel_hourglass when executing a macro.
10079
10080 * marker.c (count_markers): New function.
10081
10082 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
10083 grow without limit. Move recently used elements to the front.
10084
100852002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
10086
10087 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
10088
100892002-04-12 Gerd Moellmann <gerd@gnu.org>
10090
10091 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
10092 rows marginal areas.
10093 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
10094 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
10095
10096 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
10097
100982002-04-12 Dave Love <fx@gnu.org>
10099
10100 * dispnew.c (marginal_area_string): New.
10101
10102 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
10103 (Qleft_margin, Qright_margin): Declare.
10104 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
10105
10106 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
10107 note_mode_line_highlight and extended.
10108
10109 * keyboard.c (Qleft_margin, Qright_margin): Declare.
10110 (make_lispy_event): Deal with mouse events in margins.
10111
101122002-04-12 Stefan Monnier <monnier@cs.yale.edu>
10113
10114 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
10115
10116 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
10117 than deactivating the mark if tmm is set to `lambda'.
10118 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
10119 Use a single event for HELP_EVENT.
10120 (Fexecute_extended_command): Save last_point_position.
10121
101222002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10123
10124 * lisp.h (Fpropertize): Add prototype.
10125
10126 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
10127
101282002-04-10 Colin Walters <walters@verbum.org>
10129
10130 * config.in: Add HAVE_SHARED_GAME_DIR.
10131
10132 * callproc.c: (Vgame_score_directory): New variable.
10133 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
10134
101352002-04-10 Richard M. Stallman <rms@gnu.org>
10136
10137 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
10138
101392002-04-09 Stefan Monnier <monnier@cs.yale.edu>
10140
10141 * minibuf.c (read_minibuf): Use empty_string.
10142 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
10143 Short-circuit the search as soon as it "failed".
10144 (Fall_completions): Allow lambda forms and lists of strings for alist.
10145 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
10146 when require_match is nil.
10147 (Ftest_completion): Rename from `test_completion' and export to elisp.
10148 Call the predicate also when alist is a list.
10149 Obey Vcompletion_regexp_list.
10150 (do_completion, Fminibuffer_complete_and_exit): Use it.
10151 (Fassoc_string): Rename from `assoc_for_completion'.
10152 Allow list of strings as well and export to elisp.
10153
101542002-04-08 Stefan Monnier <monnier@cs.yale.edu>
10155
10156 * puresize.h (BASE_PURESIZE): Increase to 900KB.
10157
101582002-04-08 Juanma Barranquero <lektu@terra.es>
10159
10160 * w32.c (sys_accept): Don't hide variable `s'.
10161
101622002-04-05 Gerd Moellmann <gerd@gnu.org>
10163
10164 * callint.c (Fcall_interactively): Use INTEGERP instead of
10165 NUMBERP for checking Vhistory_length.
10166
101672002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10168
10169 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
10170 Doc fix to reflect it.
10171
101722002-04-04 Richard M. Stallman <rms@gnu.org>
10173
10174 * xdisp.c (display_mode_element): New arg RISKY.
10175 Disregard text props found or specified within a variable
10176 that isn't marked risky-local-variable.
10177 (Qrisky_local_variable): New variable.
10178 (syms_of_xdisp): Init and staticpro it.
10179
101802002-04-04 Stefan Monnier <monnier@cs.yale.edu>
10181
10182 * undo.c (record_point): New fun.
10183 (record_delete, record_insert): Use it.
10184
101852002-04-03 Juanma Barranquero <lektu@terra.es>
10186
10187 * doc.c (Fdocumentation): Add missing parentheses.
10188 (Fdocumentation_property): Likewise.
10189
101902002-04-03 Stefan Monnier <monnier@cs.yale.edu>
10191
10192 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
10193 data is 0, just return nil.
10194
101952002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
10196
10197 * msdos.c (syms_of_msdos): Fix last change with
10198 mouse_autoselect_window.
10199
102002002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10201
10202 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
10203 mouse_autoselect_window.
10204
102052002-04-02 Stefan Monnier <monnier@cs.yale.edu>
10206
10207 * keyboard.c (make_lispy_event): Handle unknown keysyms together
10208 with system-specific keysyms. Use it also for unknown function keys.
10209
10210 * doc.c (reread_doc_file): Return whether reload was attempted.
10211 (Fdocumentation, Fdocumentation_property): Don't try to reload
10212 if the doc is 0 and only ask once.
10213
10214 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
10215
102162002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
10217
10218 * keyboard.c (read_char): If the event was Qselect_window,
10219 restore timer_idleness_start_time to its previous value.
10220
10221 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
10222
102232002-04-01 Stefan Monnier <monnier@cs.yale.edu>
10224
10225 * region-cache.c (new_region_cache): Use BEG.
10226
10227 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
10228 Use BEG and BEG_BYTE.
10229
10230 * doc.c (get_doc_string): Return nil if the location is wrong.
10231 (reread_doc_file): New fun.
10232 (Fdocumentation, Fdocumentation_property):
10233 Call it if get_doc_string fails.
10234 (Fsnarf_documentation): Make it work for a dumped Emacs.
10235
10236 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
10237 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
10238
10239 * charset.c (Fstring): Allow 0 arguments.
10240
10241 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
10242
10243 * process.c (DATAGRAM_CONN_P, list_processes_1)
10244 (Fprocess_datagram_address, Fset_process_datagram_address)
10245 (Fset_network_process_options, server_accept_connection):
10246 Fix some int/Lisp_Object confusions (thank you union types).
10247
102482002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10249
10250 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
10251
10252 * w32term.c: Likewise.
10253 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
10254
10255 * keyboard.c (Qselect_window): New symbol.
10256 (head_table): Use it.
10257 (keys_of_keyboard): Bound select-window event to handle-select-window.
10258 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
10259
10260 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
10261 (last_window): New variable.
10262 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
10263 (note_mouse_movement): Remove reimplemented code in #if 0.
10264 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
10265 Emacs windows.
10266
10267 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
10268
102692002-03-31 Gerd Moellmann <gerd@gnu.org>
10270
10271 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
10272 Callers changed.
10273
102742002-03-30 Richard M. Stallman <rms@gnu.org>
10275
10276 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
10277 loop whenever it stops making progress.
10278
10279 * widget.c (set_frame_size): Don't call change_frame_size.
10280
102812002-03-30 Gerd Moellmann <gerd@gnu.org>
10282
10283 * dispnew.c (direct_output_for_insert):
10284 Call mark_window_display_accurate.
10285
102862002-03-29 Jason Rumney <jasonr@gnu.org>
10287
10288 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
10289
102902002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
10291
10292 * Makefile.in (lread.o): Depend on coding.h.
10293
10294 * lread.c (openp, Fload): Encode the file name before passing it
10295 to `stat', `access', and `emacs_open'.
10296 (openp): GCPRO the encoded file name. Don't recompute Lisp
10297 strings unnecessarily.
10298
102992002-03-29 Kim F. Storm <storm@cua.dk>
10300
10301 * fns.c (Flax_plist_put): Doc fix.
10302
103032002-03-28 Miles Bader <miles@gnu.org>
10304
10305 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
10306
103072002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10308
10309 * process.c (set-network-process-options): Add usage.
10310 (make-network-process): Doc fix.
10311
103122002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
10313
10314 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
10315
103162002-03-26 Richard M. Stallman <rms@gnu.org>
10317
10318 * fns.c (Fsubstring_no_properties): New function.
10319 (Flax_plist_get, Flax_plist_put): New functions.
10320 (syms_of_fns): defsubr them.
10321
10322 * xdisp.c (update_menu_bar): Test only update_mode_lines;
10323 don't test or alter w->update_mode_line.
10324
10325 * window.c (Fdisplay_buffer): Doc fix.
10326
103272002-03-24 Richard M. Stallman <rms@gnu.org>
10328
10329 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
10330
103312002-03-24 Gerd Moellmann <gerd@gnu.org>
10332
10333 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
10334 (Fdefmacro): Handle `(declare ...)'.
10335 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
10336 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
10337
103382002-03-24 Jason Rumney <jasonr@gnu.org>
10339
10340 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
10341 (xbm_file_p): Add prototypes.
10342 (xbm_format, xbm_image_p): Sync with xfns.c.
10343 (reflect_byte): New function.
10344 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
10345 (xbm_load_image): Create bitmaps with a depth of 1.
10346 (init_xfns): Enable XBM images.
10347
103482002-03-23 Jason Rumney <jasonr@gnu.org>
10349
10350 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
10351 correctly. Do not pass up_modifier to keyboard buffer.
10352
10353 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
10354
103552002-03-22 Stefan Monnier <monnier@cs.yale.edu>
10356
10357 * Makefile.in (bootstrapclean): New target.
10358 (bootstrap-temacs, bootstrap-doc): Remove.
10359 (bootstrap-emacs): Use a bog-standard `temacs'.
10360 Don't bother to build a DOC file.
10361
10362 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
10363
10364 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
10365 in temacs even if !CANNOT_DUMP.
10366 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
10367
10368 * alloc.c (check_pure_size): Only output a warning.
10369
103702002-03-22 Jason Rumney <jasonr@gnu.org>
10371
10372 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
10373 supported.
10374
10375 * w32term.c (zv_bits): Declare as short, for word alignment.
10376 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
10377 (syms_of_w32term): Define x-use-underline-position-properties.
10378
10379 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
10380 (clear_image_cache): Block input, fix logic, clear matrices in
10381 all frames that share this cache.
10382
103832002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
10384
10385 * emacs.c (main): Update the Copyright year in the blurb printed
10386 by "emacs --version".
10387
10388 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
10389
10390 * xterm.c (XTread_socket): If XK_ISO_Lock and
10391 XK_ISO_Last_Group_Lock are defined, handle keysyms between
10392 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
10393
103942002-03-21 Kim F. Storm <storm@cua.dk>
10395
10396 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
10397 menu-bar bindings in keymap and local-map properties _are_ used.
10398 But try keymap property first in accordance with 2002-01-03 patch.
10399 Added comment describing why this is not always reliable.
10400 (tool_bar_items): Ditto for tool-bar.
10401
104022002-03-21 Jason Rumney <jasonr@gnu.org>
10403
10404 * w32fns.c (x_clear_image_1): Disable color table code.
10405
104062002-03-21 Kim F. Storm <storm@cua.dk>
10407
10408 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
10409 removed the wrong version of the DEFUN macro; fixed it.
10410
10411 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
10412 Fmember rather than Fmemq).
10413 (Fprovide): Check that subfeatures is a list.
10414
10415 * process.c (QCfeature, QCdatagram): Removed variables.
10416 (QCtype, Qdatagram): New variables.
10417 (network_process_featurep): Removed function.
10418 (Fmake_network_process): Removed :feature check.
10419 Use :type 'datagram instead of :datagram t to create a datagram
10420 socket. This allows us to add other connection types (e.g. raw
10421 sockets) later in a consistent manner.
10422 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
10423 supported subfeatures for feature make-network-process.
10424 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
10425 Intern and staticpro QCtype and Qdatagram.
10426 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
10427
10428 * xfns.c: (QCtype): Remove duplicate declaration and
10429 initialization (is now declared in process.c).
10430
10431 * w32fns.c: (QCtype): Remove duplicate declaration and
10432 initialization (is now declared in process.c).
10433
104342002-03-21 Richard M. Stallman <rms@gnu.org>
10435
10436 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
10437 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
10438 when jumping to `fail' to avoid undoing reg changes in the
10439 last iteration of the loop.
10440 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
10441
10442 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
10443 Depend on process.h.
10444
104452002-03-20 Jason Rumney <jasonr@gnu.org>
10446
10447 Most of the following changes are still conditional on HAVE_IMAGES
10448 which is not set by default on Windows.
10449
10450 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
10451
10452 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
10453 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
10454 (four_corners_best, x_clear_image_1, x_clear_image)
10455 (x_alloc_image_color, postprocess_image)
10456 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
10457 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
10458 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
10459
10460 * w32gui.h (struct XImage): Define.
10461
10462 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
10463 extract mouse co-ordinates.
10464
104652002-03-20 Jason Rumney <jasonr@gnu.org>
10466
10467 * w32.c (init_winsock): Dynamically load new server and UDP
10468 socket functions.
10469 (socket_to_fd): New function.
10470 (sys_socket): Use it.
10471 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
10472 (sys_recvfrom, sys_sendto): New wrapper functions.
10473
10474 * process.c (QCfamily, QCfilter): Remove duplicate declaration
10475 and initialization.
10476
10477 * makefile.w32-in (LIBS): Remove $(WSOCK32).
10478
104792002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
10480
10481 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
10482 Don't use "sun" as a variable, it's a predefined constant on Sun
10483 machines.
10484
104852002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10486
10487 * bytecode.c (Fbyte_code): Revert last change.
10488
104892002-03-19 Kim F. Storm <storm@cua.dk>
10490
10491 * makefile.w32-in (LIBS): Add $(WSOCK32).
10492 From David Ponce <dponce@voila.fr>.
10493
104942002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10495
10496 * process.c (wait_reading_process_input): Move variables `pname'
10497 and `pnamelen' down where they are used.
10498
10499 * bytecode.c (Fbyte_code): Discard unused computed value to
10500 prevent gcc warning.
10501
10502 * lisp.h (Fplist_member): Add prototype.
10503
105042002-03-18 Kim F. Storm <storm@cua.dk>
10505
10506 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
10507 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
10508
10509 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
10510 Remove explicit GNU_LINUX settings for datagram support.
10511
105122002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10513
10514 * process.c (Fmake_network_process): Remove unused variable `sa'.
10515 Doc fix. Add usage:.
10516 (set_socket_options): Remove unused variables `optnum' and `opttype'.
10517
105182002-03-17 Richard M. Stallman <rms@gnu.org>
10519
10520 * xdisp.c (cursor_type_changed): New variable.
10521 (redisplay_internal): Redisplay all windows if cursor_type_changed.
10522 Clear it when clearing windows_or_buffers_changed.
10523 (try_cursor_movement, redisplay_window, try_window_id)
10524 (try_window_reusing_current_matrix): Test cursor_type_changed
10525 along with windows_or_buffers_changed.
10526
10527 * window.h (cursor_type_changed): New variable.
10528
10529 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
10530 not update_mode_lines, and always set it to 1.
10531
10532 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
10533 if no frames needed redrawing.
10534
105352002-03-17 Kim F. Storm <storm@cua.dk>
10536
10537 The following changes add support for network server processes,
10538 datagram connections, and local (unix) sockets.
10539
10540 * process.h (struct Lisp_Process): New member log.
10541 Doc fix: Member command used to indicate stopped network process.
10542 Doc fix: Member childp contains plist for network process.
10543 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
10544
10545 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
10546 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
10547 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
10548 New variables.
10549 (NETCONN1_P): New macro.
10550 (DATAGRAM_SOCKETS): New conditional symbol.
10551 (datagram_address): New array.
10552 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
10553 (status_message): Use concat3.
10554 (Fprocess_status): Add `listen' status to doc string. Return `stop'
10555 for a stopped network process.
10556 (Fset_process_buffer): Update contact plist for network process.
10557 (Fset_process_filter): Ditto. Don't enable input for stopped
10558 network processes. Server must listen, even if filter is t.
10559 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
10560 New functions.
10561 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
10562 (Fprocess_contact): Added KEY argument. Handle datagrams.
10563 (list_processes_1): Optionally show only processes with the query
10564 on exit flag set. Dynamically adjust column widths. Omit tty
10565 column if not needed. Report stopped network processes.
10566 Identify server and datagram network processes.
10567 (Flist_processes): New optional arg `query-only'.
10568 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
10569 (conv_lisp_to_sockaddr, set_socket_options)
10570 (network_process_featurep, unwind_request_sigio): New helper functions.
10571 (Fprocess_datagram_address, Fset_process_datagram_address):
10572 (Fset_network_process_options): New lisp functions.
10573 (Fopen_network_stream): Removed. Now defined in simple.el.
10574 (Fmake_network_process): New lisp function. Code is based on previous
10575 Fopen_network_stream, but heavily reworked with new property list based
10576 argument list, support for datagrams, server processes, and local
10577 sockets in addition to old client-only functionality.
10578 (server_accept_connection): New function.
10579 (wait_reading_process_input): Use it to handle incoming connects.
10580 Do not enable input on a new connection if process is stopped.
10581 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
10582 (send_process): Handle datagram sockets.
10583 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
10584 network process is indicated by setting command field to t .
10585 (Fprocess_send_eof): No-op if datagram connection.
10586 (Fstatus_notify): Don't read input for a stream server socket or a
10587 stopped network process.
10588 (init_process): Initialize datagram_address array.
10589 (syms_of_process): Intern and staticpro new variables, defsubr new
10590 functions.
10591
105922002-03-16 Jason Rumney <jasonr@gnu.org>
10593
10594 * w32fns.c (w32_to_all_x_charsets): Return correct type in
10595 startup case.
10596
105972002-03-16 Richard M. Stallman <rms@gnu.org>
10598
10599 * xdisp.c (redisplay_internal, redisplay_windows):
10600 Use list_of_error to call internal_condition_case_1.
10601 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
10602 so as to catch all errors with no possibility of debugger redisplay.
10603 (list_of_error): New variable.
10604 (syms_of_xdisp): Init and staticpro it.
10605
10606 * print.c (print_object): Delete `\ ' from printed rep of frame.
10607
106082002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
10609
10610 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
10611 until its implementation is fixed.
10612
106132002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10614
10615 * xfns.c (png_load): Remove unused variable `gamma_str'.
10616
106172002-03-14 Richard M. Stallman <rms@gnu.org>
10618
10619 * xfns.c (x_real_positions): Handle failure in XQueryTree.
10620
106212002-03-14 Miles Bader <miles@gnu.org>
10622
10623 * intervals.c (adjust_for_invis_intang): New function.
10624 (set_point_both): Use `adjust_for_invis_intang' to do most of the
10625 work for dealing with invisible+intangible regions. Do so before
10626 and after both forward and backward movements, to handle both
10627 front-sticky and rear-sticky cases.
10628 * textprop.c (text_property_stickiness): Function moved here from
10629 `editfns.c'.
10630 * intervals.h (text_property_stickiness): New declaration.
10631 * editfns.c (char_property_eq): Function removed.
10632 (text_property_stickiness): Function moved to `textprop.c'.
10633
106342002-03-13 Jason Rumney <jasonr@gnu.org>
10635
10636 * config.in: Add STRFTIME_NO_POSIX2.
10637
10638 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
10639 and %OX when underlying strftime does not.
10640
106412002-03-13 Stefan Monnier <monnier@cs.yale.edu>
10642
10643 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
10644 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
10645 line) to avoid annoying flicker.
10646 (xm_scroll_callback): Get rid of the now unnecessary kludge.
10647 (XTread_socket): Mark it static.
10648
10649 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
10650
106512002-03-13 Kim F. Storm <storm@cua.dk>
10652
10653 * puresize.h (BASE_PURESIZE): Increase to 775000.
10654
106552002-03-12 Juanma Barranquero <lektu@terra.es>
10656
10657 * editfns.c (syms_of_editfns): Fix typo.
10658
106592002-03-12 Gerd Moellmann <gerd@gnu.org>
10660
10661 * xsmfns.c: Include stdio.h because termhooks.h needs it.
10662 Include termopt.h for interrupt_input.
10663
106642002-03-11 Andreas Schwab <schwab@suse.de>
10665
10666 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
10667
106682002-03-11 Gerd Moellmann <gerd@gnu.org>
10669
10670 * xterm.c (note_mouse_movement): Put code for
10671 x_autoselect_window_p in #if 0.
10672
10673 * lread.c (Fload): Don't assume that message_with_string uses the
10674 string it is given like a C string.
10675
106762002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10677
10678 * xterm.h (x_session_check_input, x_session_initialize): Declared.
10679
10680 * xterm.c: (XTread_socket): Add call to x_session_check_input and
10681 x_session_have_connection.
10682 (x_initialize): Add call to x_session_initialize.
10683
10684 * termhooks.h (enum event_kind): Add save_session_event.
10685
10686 * keyboard.c: Add Emacs event save_session_event.
10687
10688 * emacs.c (main): Add call to syms_of_xsmfns.
10689
10690 * lisp.h: Declare syms_of_xsmfns as extern.
10691
10692 * config.in: Add HAVE_X_SM.
10693
10694 * Makefile.in (LIBXT): Add -lSM -lICE
10695 if HAVE_X_SM and not USE_X_TOOLKIT.
10696 (XOBJ): New file xsmfns.c added.
10697
10698 * xsmfns.c: New file for X session management.
10699
107002002-03-09 Jason Rumney <jasonr@gnu.org>
10701
10702 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
10703 read-only when setting modified time.
10704
107052002-03-08 Gerd Moellmann <gerd@gnu.org>
10706
10707 * xdisp.c (move_it_vertically_backward): At the end of the function,
10708 when moving forward by lines, treat terminal frames specially.
10709
10710 * keyboard.c (echo_char): Make sure to add a separator between
10711 keys even if echo_dash hasn't been called.
10712
10713 * xdisp.c: Use new string macros.
10714 (update_echo_area): Pass number of bytes to message3 instead of
10715 number of chars.
10716 (set_message_1): Don't access a string's size_byte directly.
10717 (decode_mode_spec_coding): Use number of bytes of eoltype string
10718 instead number of chars.
10719
10720 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
10721
107222002-03-08 Juanma Barranquero <lektu@terra.es>
10723
10724 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
10725 24-bit.
10726
107272002-03-06 Jason Rumney <jasonr@gnu.org>
10728
10729 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
10730
107312002-03-06 Gerd Moellmann <gerd@gnu.org>
10732
10733 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
10734 (cancel_echoing, echo_length, echo_truncate): Changed to
10735 work with new kboard definition.
10736 (echo_now): Use message3_nolog instead of message2_nolog.
10737
10738 * alloc.c (mark_kboards): Mark echo_string.
10739
10740 * keyboard.h (ECHOBUFSIZE): Removed.
10741 (struct kboard): Member echoptr removed, member echobuf renamed
10742 to echo_string.
10743
10744 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
10745 message3 instead of message2 to display the message using STRING's
10746 text properties.
10747
107482002-03-05 Andreas Schwab <schwab@suse.de>
10749
10750 * xdisp.c (hscroll_margin): Change to EMACS_INT.
10751
107522002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
10753
10754 * frame.c (default-frame-alist): Explain that setting it doesn't
10755 affect existing frames.
10756
107572002-03-05 Stefan Monnier <monnier@cs.yale.edu>
10758
10759 * indent.c (skip_invisible): Fix my brain fart.
10760
10761 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
10762
107632002-03-04 Stefan Monnier <monnier@cs.yale.edu>
10764
10765 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
10766 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
10767 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
10768 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
10769 and variables to use EMACS_INT instead of just int.
10770
10771 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
10772
107732002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
10774
10775 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
10776 environment, pass it down with corrected value.
10777
107782002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10779
10780 * lread.c (read_filtered_event): Do not call start_hourglass
10781 before returning.
10782
107832002-03-04 Juanma Barranquero <lektu@terra.es>
10784
10785 * w32term.c (x_display_and_set_cursor): Fix typo.
10786
107872002-03-03 Richard M. Stallman <rms@gnu.org>
10788
10789 * fileio.c (Fmake_temp_name): Doc fix.
10790
107912002-03-03 Gary Wong <gtw@gnu.org>
10792
10793 * termcap.c [!emacs]: Replace ospeed for building standalone
10794 libtermcap, for binary compatibility.
10795
10796 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
10797
107982002-03-03 Richard M. Stallman <rms@gnu.org>
10799
10800 * xrdb.c (file_p): Rename arg `path' to `filename'.
10801
10802 * abbrev.c (Fexpand_abbrev): Increment plist as use count
10803 only if it is an integer.
10804
10805 * xfns.c (png_load): Set screen_gamma based on f->gamma.
10806 If png_get_sRGB gives an answer, call png_set_gamma
10807 using the default image gamma value.
10808
10809 * lread.c (read1): When reading from a file, default string to
10810 multibyte only if it has some multibyte characters.
10811
10812 * print.c (print_object): Output multibyte chars 128...255
10813 using \x even if ! print_escape_multibyte.
10814
10815 * xdisp.c (display_mode_element): Move the places where
10816 bytepos, charpos, this, and lisp_string are set.
10817 Use lisp_string to set bytepos.
10818
10819 * xdisp.c (redisplay_internal):
10820 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
10821
10822 * xdisp.c (display_mode_element): Merge properties specified with
10823 :propertize onto those that come with the string.
10824
108252002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
10826
10827 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
10828 automatic-hscrolling. Users changed.
10829 <hscroll-margin>: Renamed from automatic-hscroll-margin.
10830 Users changed.
10831 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
10832
108332002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
10834
10835 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
10836
108372002-03-02 Kim F. Storm <storm@cua.dk>
10838
10839 * window.c (Fminibuffer_selected_window): New function.
10840 (syms_of_window): Defsubr it.
10841
108422002-03-01 Kim F. Storm <storm@cua.dk>
10843
10844 * window.h (struct window): New member phys_cursor_width.
10845
10846 * window.c (make_window, replace_window): Init phys_cursor_width.
10847
10848 * xterm.c (x_display_and_set_cursor): Blink box cursor using
10849 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
10850
10851 * w32term.c (x_display_and_set_cursor): Blink box cursor using
10852 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
10853
10854 * lisp.h (GCPRO6): New macro.
10855
10856 * process.c (Fopen_network_stream): Use GCPRO6.
10857
108582002-03-01 Kim F. Storm <storm@cua.dk>
10859
10860 * process.c (Qconnect, Qfailed): New variables.
10861 (syms_of_process): Intern and staticpro them.
10862 (Fprocess_status): Document connect and failed return values.
10863 [NON_BLOCKING_CONNECT]: New conditional.
10864 (connect_wait_mask, num_pending_connects): New variables.
10865 (status_message): Convert Qfailed status.
10866 (Fopen_network_stream): Added support for non-blocking connect.
10867 New optional args: filter, sentinel, non_blocking. Doc updated.
10868 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
10869 (deactivate_process): Handle pending non-blocking connect.
10870 (wait_reading_process_input): Poll for status of non-blocking
10871 connects. Exec sentinel directly when connect succeeds.
10872 (status_notify): Don't read process output if not yet connected.
10873
108742002-02-28 Kim F. Storm <storm@cua.dk>
10875
10876 * window.c: (minibuf_selected_window): Renamed from
10877 Vminibuf_selected_window. Users changed.
10878 (syms_of_window): Staticpro it.
10879
108802002-02-26 Kim F. Storm <storm@cua.dk>
10881
10882 The following changes add a new Vminibuf_selected_window variable
10883 which is similar to Vminibuf_scroll_window, but which is only set
10884 on entry to the minibuffer (from a non-minibuffer window):
10885
10886 * window.c: (Vminibuf_selected_window): New variable.
10887 (struct save_window_data): New member minibuf_selected_window.
10888 (Fset_window_configuration): Restore Vminibuf_selected_window.
10889 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
10890 Set minibuf_scroll_window member to nil if minibuf_level is 0.
10891 (compare_window_configurations): Compare minibuf_selected_window.
10892
10893 * window.h: (Vminibuf_selected_window): Declare extern.
10894
10895 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
10896 entry to minibuffer or on entry from a non-minibuffer window.
10897
10898 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
10899 Vminibuf_selected_window instead of Vminibuf_scroll_window.
10900
10901 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
10902 instead of Vminibuf_scroll_window when deciding in which window
10903 the region should be highlighted. Consequently, the region remains
10904 highlighteded even when a completion buffer is also displayed.
10905
109062002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
10907
10908 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
10909
10910 * xselect.c (Qcompound_text_with_extensions): Renamed from
10911 Qcompound_text_no_extensions.
10912 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
10913
109142002-02-26 Juanma Barranquero <lektu@terra.es>
10915
10916 * w32proc.c (syms_of_ntproc): Doc fix.
10917
109182002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10919
10920 * intervals.h: Include "dispextern.h" unconditionally.
10921
109222002-02-24 Jason Rumney <jasonr@gnu.org>
10923
10924 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
10925 and disp-table.elc.
10926 (lisp): Add emacs-lisp/backquote.elc.
10927
109282002-02-24 Kim F. Storm <storm@cua.dk>
10929
10930 * keymap.c (Flookup_key): Fixed problem in 2001-12-28 patch:
10931 The validation of the event type was too strict as it didn't
10932 allow string events; buffer names are used in bindings for
10933 menu-bar-select-buffer (see `menu-bar-update-buffers').
10934
109352002-02-23 Kim F. Storm <storm@cua.dk>
10936
10937 The following changes rework my patch of 2002-02-06 which
10938 added command remapping by entering the commands directly into
10939 the keymaps. Now, command remapping uses an explicit `remap'
10940 prefix in the keymaps, i.e. [remap COMMAND].
10941
10942 * keymap.c (Qremap, remap_command_vector): New variables.
10943 (is_command_symbol): Removed function.
10944 (Fdefine_key): No longer accept a symbol for KEY.
10945 Added validation of [remap COMMAND] argument for KEY.
10946 The DEF is no longer required to be a symbol when remapping a command.
10947 (Fremap_command): New function to remap command through keymaps.
10948 (Flookup_key): Perform command remapping initiated by
10949 Fremap_command directly for speed.
10950 (Fkey_binding): Use Fremap_command for command remapping.
10951 (where_is_internal): Handle new command remapping representation.
10952 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
10953 staticpro them. Defsubr Fremap_command.
10954
10955 * keymap.h (Fremap_command): Declare extern.
10956 (is_command_symbol): Remove extern.
10957
10958 * keyboard.c (command_loop_1): Use Fremap_command for command
10959 remapping; now try command remapping for all symbols.
10960
109612002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
10962
10963 * coding.h (run_pre_post_conversion_on_str): Add prototype.
10964
109652002-02-23 Jason Rumney <jasonr@gnu.org>
10966
10967 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
10968 on the string before encoding it.
10969 (Fw32_get_clipboard_data): Run post-read-conversion on the string
10970 after decoding it.
10971
10972 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
10973
109742002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10975
10976 * w32term.c (enter_timestamp): Remove unused static variable to
10977 prevent warning.
10978
10979 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
10980
109812002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
10982
10983 * w16select.c (Fw16_get_clipboard_data): Fix last change.
10984
10985 * xselect.c (selection_data_to_lisp_data): Fix last change.
10986
109872002-02-22 Jason Rumney <jasonr@gnu.org>
10988
10989 * w32term.h (struct w32_output): New member menu_command_in_progress.
10990
10991 * w32menu.c (menubar_selection_callback): Free the menu and
10992 clear the menu_command_in_progress flag.
10993
10994 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
10995 (menu_free_timer): New variable.
10996 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
10997 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
10998 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
10999 menu command is in progress.
11000 <WM_COMMAND>: Set the menu_command_in_progress flag.
11001 Kill any menu_free_timer that is running.
11002
11003 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
11004 Call ExtTextOutA rather than ExtTextOut.
11005
110062002-02-22 Eli Zaretskii <eliz@gnu.org>
11007
11008 * puresize.h (BASE_PURESIZE): Increase to 755000.
11009
110102002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
11011
11012 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
11013 on the string before encoding it.
11014 (Fw16_get_clipboard_data): Run post-read-conversion on the string
11015 after decoding it.
11016
110172002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
11018
11019 Support for ICCCM Extended Segments in X selections:
11020
11021 * xselect.c <Qcompound_text_no_extensions>: New variable.
11022 (syms_of_xselect): Intern and staticpro it.
11023 (selection_data_to_lisp_data): Run post-read-conversion on decoded
11024 selection text.
11025 (lisp_data_to_selection_data): If next-selection-coding-system is
11026 compound-text-no-extensions, set the type of selection to be
11027 compound-text.
11028
11029 * xterm.h (x_encode_text): Update prototype.
11030
11031 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
11032 callers changed. If SELECTIONP is non-zero, run the
11033 pre-write-conversion function before encoding the selection text.
11034
110352002-02-21 Kim F. Storm <storm@cua.dk>
11036
11037 * frame.c (syms_of_frame): Change mouse-highlight default to t.
11038
11039 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
11040 Correct composing of language-change event.
11041
110422002-02-20 Kim F. Storm <storm@cua.dk>
11043
11044 * keyboard.c (menu_bar_items): Don't include keymap or local-map
11045 bindings at PT when building menu (the menu is not updated often
11046 enough for this to work reliable).
11047 (tool_bar_items): Likewise.
11048 (current_active_maps): Removed unused (and buggy) function.
11049
110502002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
11051
11052 * xfns.c (gif_load): Use correct width and height for GIF images.
11053
110542002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
11055
11056 * floatfns.c (Fatan): Accept an optional second arg and call
11057 atan2 if passed 2 args.
11058
110592002-02-18 Jason Rumney <jasonr@gnu.org>
11060
11061 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
11062
110632002-02-17 Jason Rumney <jasonr@gnu.org>
11064
11065 * w32term.c (x_autoselect_window_p): New variable.
11066 (syms_of_w32term): DEFVAR_BOOL and initialize it.
11067 (note_mouse_movement): Use it.
11068
11069 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
11070
11071 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
11072
11073 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
11074 New variables.
11075 (syms_of_w32fns): Intern and staticpro them.
11076 (x_frame_parms) <"fullscreen">: New parameter.
11077 (x_fullscreen_move, x_set_fullscreen): New functions.
11078 (x_set_frame_parameters): Support Qfullscreen.
11079 (x_real_positions): Save x/y_pixels_diff frame params.
11080 (x_figure_window_size): Support full-screen frames.
11081 (Fx_create_frame): Default the fullscreen parameter.
11082
11083 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
11084 (x_fullscreen_adjust): New functions.
11085 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
11086 fullscreen. Call x_check_fullscreen_move, and set the
11087 want_fullscreen member of output_data.w32
11088 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
11089
11090 * w32term.h: New enum for FULLSCREEN_* constants.
11091 (struct w32_output): New members want_fullscreen, x_pixels_diff,
11092 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
11093 (x-fullscreen-adjust): New prototype.
11094
110952002-02-17 Kim F. Storm <storm@cua.dk>
11096
11097 * frame.c: (Vmouse_highlight): New variable.
11098 (syms_of_frame): DEFVAR_LISP it.
11099
11100 * frame.h: (Vmouse_highlight): Declare extern.
8a8e19a3 11101
048addec 11102 * xterm.h (struct x_display_info): Add mouse_face_hidden.
8a8e19a3 11103
048addec
JD
11104 * xterm.c (disable_mouse_highlight): Removed variable.
11105 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
11106 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
11107 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
11108 and on after keyboard input.
11109 (x_term_init): Initialize mouse_face_hidden.
8a8e19a3 11110
048addec 11111 * msdos.h (struct display_info): Add mouse_face_hidden.
8a8e19a3 11112
048addec
JD
11113 * msdos.c (disable_mouse_highlight): Removed variable.
11114 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
11115 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
11116 (internal_terminal_init): Initialize mouse_face_hidden.
11117 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
11118 and on after keyboard input.
4f1b1854 11119
048addec 11120 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
4f1b1854 11121
048addec
JD
11122 * w32term.c (disable_mouse_highlight): Removed variable.
11123 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
11124 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
11125 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
11126 and on after keyboard input.
11127 (w32_initialize_display_info): Initialize mouse_face_hidden.
4f1b1854 11128
048addec 111292002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
4f1b1854 11130
048addec
JD
11131 * msdos.c (last_mouse_window): New variable.
11132 (dos_rawgetc): Fix last change--if the mouse is in the same window
11133 as recorded in last_mouse_window, don't select this window.
5cb6905d 11134
048addec 11135 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
5cb6905d 11136
048addec
JD
11137 * msdos.c (x_autoselect_window_p): New variable.
11138 (syms_of_msdos): Defvar it.
11139 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
11140 which the last mouse movement occured, unless it is already selected.
437dfb9f 11141
048addec
JD
11142 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
11143 New variables.
11144 (syms_of_xdisp): DEVFAR them.
11145 (hscroll_window_tree): Use automatic_hscroll_margin and
11146 Vautomatic_hscroll_step to compute the amount of window scrolling.
437dfb9f 11147
048addec 111482002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9f696a00 11149
048addec
JD
11150 * xterm.c (x-autoselect-window): New variable.
11151 (note_mouse_movement): Use it.
9f696a00 11152
048addec 11153 * keyboard.c: Do not include "systime.h" twice.
d57966d7 11154
048addec 111552002-02-15 Andreas Schwab <schwab@suse.de>
d57966d7 11156
048addec 11157 * puresize.h (BASE_PURESIZE): Increase to 9/5.
d57966d7 11158
048addec 11159 * alloc.c (NSTATICS): Increase to 1280.
74779f52 11160
048addec 111612002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
74779f52 11162
048addec 11163 * alloc.c (NSTATICS): Bump to 1026.
a474d59c 11164
048addec
JD
11165 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
11166 (Vx_super_keysym): New variables.
11167 (syms_of_xterm): DEFVAR_LISP them.
11168 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
11169 variables to determine which keys to use for the various modifiers.
a474d59c 11170
048addec 111712002-02-13 Kim F. Storm <storm@cua.dk>
fbb70ad9 11172
048addec
JD
11173 * window.c: (Vmode_line_in_non_selected_windows): Removed.
11174 (mode_line_in_non_selected_windows): New variable.
11175 (syms_of_window): DEFVAR_BOOL it.
fbb70ad9 11176
048addec
JD
11177 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
11178 Use mode_line_in_non_selected_windows.
11179 (mode_line_in_non_selected_windows): Declare extern.
11180 (Vmode_line_in_non_selected_windows): Removed extern.
2d10309f 11181
048addec 111822002-02-13 Richard M. Stallman <rms@gnu.org>
2d10309f 11183
048addec
JD
11184 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
11185 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
11186 (Fclear_this_command_keys): Doc fixes.
2d10309f 11187
048addec
JD
11188 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
11189 (update_face_from_frame_parameter): Increment face_change_count
11190 and windows_or_buffers_changed to force redisplay using changed faces.
7f2cddf3 11191
048addec
JD
11192 * xdisp.c (QCpropertize): New variable.
11193 (mode_line_proptrans_alist): New variable.
11194 (display_mode_element): New arg PROPS; all calls changed.
11195 Implement this, for strings.
11196 Handle literal output of strings by sharing the
11197 main-line code for strings, using local var `literal'.
11198 Handle :propertize feature.
11199 (syms_of_xdisp): Initialze and staticpro QCpropertize and
11200 mode_line_proptrans_alist.
0b1e6b54 11201
048addec 112022002-02-11 Kim F. Storm <storm@cua.dk>
7f2cddf3 11203
048addec
JD
11204 * window.c: (Vmode_line_in_non_selected_windows): New variable.
11205 (syms_of_window): DEFVAR_LISP it.
7f2cddf3 11206
048addec
JD
11207 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
11208 (CURRENT_MODE_LINE_FACE_ID): Use it.
11209 (Vmode_line_in_non_selected_windows): Declare extern.
e17144de 11210
048addec
JD
11211 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
11212 to get mode line face.
e17144de 11213
048addec 112142002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 11215
048addec
JD
11216 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
11217 variables; cus-start.el doesn't need them anymore.
44368f8f 11218
048addec 112192002-02-09 Kim F. Storm <storm@cua.dk>
f884b6f4 11220
048addec
JD
11221 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
11222 reduction. This fixes a display problem where stray newlines were
11223 inserted in the window (corrected by C-l). Clarified code (IMHO).
6637c996 11224
048addec 112252002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 11226
048addec 11227 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
6637c996 11228
048addec 11229 * xdisp.c (display_mode_lines): Fix last change.
453c5510 11230
048addec 112312002-02-09 Jason Rumney <jasonr@gnu.org>
453c5510 11232
048addec
JD
11233 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
11234 match each other.
11235 (w32_load_system_font): Prevent Cleartype fonts from loading.
11236 (Fx_show_tip): Ensure tip frames are above other topmost windows.
d1d070e3 11237
048addec 112382002-02-09 Kim F. Storm <storm@cua.dk>
d1d070e3 11239
048addec
JD
11240 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
11241 (CURRENT_MODE_LINE_HEIGHT): Use it.
11242 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 11243
048addec
JD
11244 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
11245 (pos_visible_p, handle_face_prop): Likewise.
11246 (display_mode_lines): Likewise, but for the real selected window.
11247 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 11248
048addec
JD
11249 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
11250 in non-selected windows.
11251 (realize_basic_faces): Realize it.
11252 (syms_of_term): Intern and staticpro it.
308dd672 11253
048addec 112542002-02-08 Kim F. Storm <storm@cua.dk>
edde72f6 11255
048addec
JD
11256 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
11257 Changed mail addresses to emacs-devel@gnu.org.
308dd672 11258
048addec 112592002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
3c1e6b46 11260
048addec
JD
11261 * fileio.c (Fsubstitute_in_file_name): If the file name includes
11262 ~user, and there's no such user, don't discard everything before ~user.
03950b5b 11263
048addec 11264 * floatfns.c (Fround): Doc fix.
3c1e6b46 11265
048addec 112662002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c1e11810 11267
048addec 11268 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
c1e11810 11269
048addec 112702002-02-07 Stefan Monnier <monnier@cs.yale.edu>
1996baee 11271
048addec 11272 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
1996baee 11273
048addec 112742002-02-07 Kim F. Storm <storm@cua.dk>
0065bb74 11275
048addec
JD
11276 * keymap.c (where_is_internal): Only check whether definition is
11277 remapped if it fulfills is_command_symbol.
0065bb74 11278
048addec 112792002-02-07 Andreas Schwab <schwab@suse.de>
0065bb74 11280
048addec 11281 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
b5cb6072 11282
048addec 11283 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
b5cb6072 11284
048addec 112852002-02-06 Kim F. Storm <storm@cua.dk>
15fff01d 11286
048addec
JD
11287 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
11288 defining command remapping. Doc updated.
11289 (Flookup_key): Remap command through keymap if KEY is a symbol.
11290 (is_command_symbol): New function.
11291 (Fkey_binding): Use it. New optional argument NO-REMAP.
11292 Doc updated. Callers changed. Perform command remapping via
11293 recursive call unless that arg is non-nil.
11294 (where_is_internal): New argument no_remap. Callers changed.
11295 Call recursively to find original key bindings for a remapped
11296 comand unless that arg is non-nil.
11297 (Fwhere_is_internal): New optional argument NO-REMAP.
11298 Doc updated. Callers changed. Pass arg to where_is_internal.
0065bb74 11299
048addec
JD
11300 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
11301 (is_command_symbol): Added prototype.
0d8466cc 11302
048addec
JD
11303 * keyboard.c (Vthis_original_command): New variable.
11304 (syms_of_keyboard): DEFVAR_LISP it.
11305 (command_loop_1): Set it, and perform command remapping.
15fff01d 11306
048addec 113072002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2fae9111 11308
048addec 11309 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
2d6c1fc0 11310
048addec 113112002-02-06 Jason Rumney <jasonr@gnu.org>
07025a55 11312
048addec 11313 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
07025a55 11314
048addec 113152002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
07025a55 11316
048addec 11317 * charset.c (get_charset_id): Use if-else instead of ?:.
3a232704 11318
048addec 113192002-02-06 Richard M. Stallman <rms@gnu.org>
539e92ad 11320
048addec 11321 * filelock.c (S_ISLNK): Define if not defined.
3a232704 11322
048addec 113232002-02-03 Richard M. Stallman <rms@gnu.org>
0cb8bb48 11324
048addec 11325 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
539e92ad 11326
048addec
JD
11327 * lread.c (read1): Redesign strategy for force_multibyte and
11328 force_singlebyte. Now is_multibyte records whether read_buffer
11329 is multibyte. Encountering any multibyte character makes it so.
4e02881b 11330
048addec 113312002-02-02 Stefan Monnier <monnier@cs.yale.edu>
4e02881b 11332
048addec
JD
11333 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
11334 with the same sequence, map that sequence to f10 rather than f0.
1ab964d7 11335
048addec 113362002-02-03 Andreas Schwab <schwab@suse.de>
1ab964d7 11337
048addec
JD
11338 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
11339 latter never being defined on GNU/Linux.
749f499f 11340
048addec 113412002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
749f499f 11342
048addec
JD
11343 * xfaces.c (realize_default_face): Don't set the weight and slant of
11344 the default face to Qnormal, unless these attributes are unspecified.
b5d9aaba 11345
048addec 113462002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3a232704 11347
048addec
JD
11348 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
11349 Call cancel_hourglass unconditionally.
d0fd26dd 11350
048addec
JD
11351 * eval.c (Fsignal): Remove duplicated declaration of
11352 the variable `display_hourglass_p'.
b4c45162 11353
048addec 113542002-01-31 Richard M. Stallman <rms@gnu.org>
d0fd26dd 11355
048addec 11356 * editfns.c (region_limit): Nicer error message.
c95eaa61 11357
048addec
JD
11358 * coding.c (decode_composition_emacs_mule):
11359 Give up if NCOMPONENT gets too large to index `component'.
c95eaa61 11360
048addec
JD
11361 * callint.c (check_mark): New arg to specify clearer error message.
11362 Callers changed.
c95eaa61 11363
048addec 113642002-01-27 Richard M. Stallman <rms@gnu.org>
c95eaa61 11365
048addec 11366 * minibuf.c (Fcompleting_read): Doc fix.
c95eaa61 11367
048addec 113682002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c95eaa61 11369
048addec
JD
11370 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
11371 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
11372 Fix doc-strings.
c95eaa61 11373
048addec 113742002-01-26 Richard M. Stallman <rms@gnu.org>
c95eaa61 11375
048addec 11376 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
c95eaa61 11377
048addec
JD
11378 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
11379 and scroll_up_aggressively.
c95eaa61 11380
048addec 113812002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
31877e0a 11382
048addec 11383 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
31877e0a 11384
048addec 113852002-01-25 Stefan Monnier <monnier@cs.yale.edu>
e2c3786a 11386
048addec
JD
11387 * textprop.c (Fnext_property_change, Fnext_single_property_change)
11388 (Fprevious_property_change, Fprevious_single_property_change):
11389 Stay within the narrowed-buffer boundaries.
e2c3786a 11390
048addec 113912002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
c513fc03 11392
048addec
JD
11393 * term.c (Ftty_display_color_cells): New function.
11394 (syms_of_term): Defsubr it.
11395 (Ftty_display_color_cells, Ftty_display_color_p): Change the
11396 argument name to DISPLAY. Doc fix.
bf794306 11397
048addec
JD
11398 * dispextern.h: Add prototype for set_tty_color_mode and
11399 tty_setup_colors.
bf794306 11400
048addec 114012002-01-24 Jason Rumney <jasonr@gnu.org>
bf794306 11402
048addec
JD
11403 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
11404 If region left to draw is not what was expected, mark the frame as
11405 garbaged.
62582985 11406
048addec
JD
11407 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
11408 Combine the regions returned by BeginPaint and GetUpdateRect.
c513fc03 11409
048addec 114102002-01-23 Jason Rumney <jasonr@gnu.org>
3509a04c 11411
048addec
JD
11412 * w32term.c (x_update_window_begin): Only hide caret if
11413 w32_use_visible_system_caret is set.
11414 (x_update_window_end): Only show caret if
11415 w32_use_visible_system_caret is set.
11416 (syms_of_w32term): Handle SystemParametersInfo call failing.
3509a04c 11417
048addec 11418 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
3509a04c 11419
048addec 114202002-01-22 Richard M. Stallman <rms@gnu.org>
3509a04c 11421
048addec
JD
11422 * unexelf.c (unexec): Define n so as to cause compilation error
11423 for the code where people have often written n instead of nn.
1e9a6186 11424
048addec 11425 * .gdbinit (hookpost-run): Defined.
1e9a6186 11426
048addec 114272002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e4e34e31 11428
048addec 11429 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
e4e34e31 11430
048addec 114312002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4521d1fc 11432
048addec
JD
11433 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
11434 if fullscreen is being set.
7c75be36 11435
048addec 114362002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4521d1fc 11437
048addec
JD
11438 * minibuf.c (Fminibuffer_contents)
11439 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
11440 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
4521d1fc 11441
048addec 114422002-01-21 Richard M. Stallman <rms@gnu.org>
4521d1fc 11443
048addec 11444 * window.c (check_frame_size): Fix minimum height calculation.
93dec019 11445
048addec 114462002-01-20 Ken Raeburn <raeburn@gnu.org>
93dec019 11447
048addec
JD
11448 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
11449 height before comparison.
11450 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
905cc05a 11451
048addec 114522002-01-20 Jason Rumney <jasonr@gnu.org>
2ed06289 11453
048addec
JD
11454 * w32term.c (w32_system_caret_width): Remove.
11455 (w32_use_visible_system_caret): New user flag.
11456 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
11457 Windows reports a screen reader running.
11458 (x_update_window_begin): Hide the system caret.
11459 (x_update_window_end): Show the system caret.
11460 (x_display_and_set_cursor): Don't draw a cursor when
11461 w32_use_visible_system_caret is set. Do not adjust width.
0e79d667 11462
048addec
JD
11463 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
11464 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
11465 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
11466 the user requests it. Use system default width when creating.
11467 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
0e79d667 11468
048addec
JD
11469 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
11470 New window messages.
905cc05a 11471
048addec 114722002-01-20 Richard M. Stallman <rms@gnu.org>
82a7ab23 11473
048addec 11474 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
d75bec6a 11475
048addec 114762002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
52dcb476 11477
048addec 11478 * doprnt.c (doprnt1): Fix typos in error call.
82a7ab23 11479
048addec 114802002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
82a7ab23 11481
048addec 11482 * unexelf.c (unexec) [__sgi]: Support the .got sections.
82a7ab23 11483
048addec 114842002-01-20 Jason Rumney <jasonr@gnu.org>
4d0fa4f3 11485
048addec
JD
11486 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
11487 that Windows returns. If a double check fails, try to guess how
11488 ExtTextOut is going to act.
4d0fa4f3 11489
048addec
JD
11490 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
11491 in place of stricmp.
11492 (w32_list_synthesized_fonts): Removed.
11493 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
11494 (struct enumfont_t): New element; list.
11495 (enum_font_cb2): List all style and charset variations of a font.
11496 (Fw32_select_font): New optional argument; include_proportional.
11497 Exclude vertical fonts. Exclude proportional fonts unless
11498 include_proportional is non-nil.
11499 (w32_enable_synthesized_fonts): Change to a boolean.
11500 (Fw32_send_sys_command): Doc fix.
493faf20 11501
048addec 115022002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
493faf20 11503
048addec
JD
11504 * dispnew.c (update_frame): Move the variable `tem' to the block
11505 where it is used.
4971e491 11506
048addec 115072002-01-19 Jason Rumney <jasonr@gnu.org>
4971e491 11508
048addec
JD
11509 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
11510 call to face-set-after-frame-default.
4971e491 11511
048addec 115122002-01-18 Richard M. Stallman <rms@gnu.org>
d911a0fa 11513
048addec
JD
11514 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
11515 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
d911a0fa 11516
048addec 115172002-01-17 Richard M. Stallman <rms@gnu.org>
d911a0fa 11518
048addec
JD
11519 * window.c (enlarge_window): When exceeding size of parent,
11520 directly delete all the siblings instead of trying to resize it.
201c831a 11521
048addec 115222002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
201c831a 11523
048addec 11524 * term.c (set_tty_color_mode): Remove unused variable `tem'.
201c831a 11525
048addec 115262002-01-16 Henrik Enberg <henrik@enberg.org>
34e39c95 11527
048addec 11528 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
34e39c95 11529
048addec 115302002-01-16 Kim F. Storm <storm@cua.dk>
d77fbc16 11531
048addec
JD
11532 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
11533 is invisible. This can happen if cursor is on top line of a
11534 window, and we switch to a buffer with a header line.
d77fbc16 11535
048addec 11536 * w32term.c (x_erase_phys_cursor): Ditto.
61e3b944 11537
048addec 115382002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
61e3b944 11539
048addec
JD
11540 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
11541 `dont_resize' only when used.
61e3b944 11542
048addec 11543 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
70da46c3 11544
048addec 115452002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
70da46c3 11546
048addec
JD
11547 * xdisp.c (display_mode_element): When computing charpos, depend
11548 on multibyteness of elt, not the text in field.
8af01033 11549
048addec 115502002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8af01033 11551
048addec
JD
11552 * buffer.c (Fkill_all_local_variables):
11553 Increment `update_mode_lines' only once.
7363986a 11554
048addec 115552002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7363986a 11556
048addec
JD
11557 * lisp.h (adjust_after_replace_noundo)
11558 (Fupdate_coding_systems_internal): Add prototypes.
d9e6c4b1 11559
048addec 11560 * sound.c (Fplay_sound): Initialize header_size also for :data case.
d20fc48a 11561
048addec 115622002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
d9e6c4b1 11563
048addec
JD
11564 Support for the --color command-line argument and tty-color-mode
11565 frame parameter:
f1a85b89 11566
048addec
JD
11567 * term.c (tty_default_color_capabilities, tty_setup_colors)
11568 (set_tty_color_mode): New functions.
11569 (term_init): Call tty_default_color_capabilities.
11570 (Qtty_color_mode_alist): New variable.
11571 (syms_of_term): Intern and staticpro it.
f1a85b89 11572
048addec
JD
11573 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
11574 frames.
11575 (do_switch_frame): For termcap frames, switch the tty
11576 color mode as specified by the frame's parameters.
11577 (Qtty_color_mode): New variable.
11578 (syms_of_frame): Intern and staticpro it.
3a62677f 11579
048addec
JD
11580 * emacs.c (USAGE2): Add the --color option.
11581 (standard_args): Ditto.
72244db2 11582
048addec
JD
115832002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11584
11585 * xterm.h (struct x_output): New members want_fullscreen,
11586 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
11587 y_pixels_outer_diff.
11588 New enum for FULLSCREEN_* constants.
11589 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
11590 is NULL.
11591 (x_fullscreen_adjust): Add prototype.
3a62677f 11592
048addec
JD
11593 * emacs.c (USAGE2): Add the new full-screen arguments.
11594 (standard_args): Ditto.
3a62677f 11595
048addec
JD
11596 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
11597 New variables.
11598 (syms_of_xfns): Intern and staticpro them.
11599 (x_frame_parms) <"fullscreen">: New parameter.
11600 (x_fullscreen_move, x_set_fullscreen): New functions.
11601 (x_set_frame_parameters): Support for Qfullscreen.
11602 (x_real_positions): More accurate computation of the frame position.
11603 (x_figure_window_size): Support full-screen frames.
11604 (Fx_create_frame): Default the fullscreen parameter.
3a62677f 11605
048addec
JD
11606 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
11607 (XTread_socket) <Expose>: Call x_check_fullscreen.
11608 <ConfigureNotify>: Don't resize to fullscreen.
11609 Call x_check_fullscreen_move, and set the want_fullscreen member of
11610 output_data.x.
3a62677f 11611
048addec 116122002-01-13 Jason Rumney <jasonr@gnu.org>
9d113d9d 11613
048addec
JD
11614 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
11615 for mice with more than 3 buttons.
b8523839 11616
048addec
JD
11617 * w32term.c (parse_button): New parameter xbutton. Callers changed.
11618 (w32_read_socket): Handle new "XBUTTON" messages.
9464dea4 11619
048addec
JD
11620 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
11621 (syms_of_w32fns): DEFVAR_BOOL it.
11622 (w32_wnd_proc): Handle new "XBUTTON" messages.
9d113d9d 11623
048addec 116242002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
70ec1377 11625
048addec 11626 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
70ec1377 11627
048addec 116282002-01-13 Andreas Schwab <schwab@suse.de>
92f7dd37 11629
048addec 11630 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
92f7dd37 11631
048addec 116322002-01-12 Andreas Schwab <schwab@suse.de>
c93674bb 11633
048addec
JD
11634 * .gdbinit (xbuffer): Remove address operator since data is now a
11635 pointer.
c93674bb 11636
048addec 116372002-01-11 Richard M. Stallman <rms@gnu.org>
59b59892 11638
048addec 11639 * insdel.c (adjust_after_replace_noundo): New function.
59b59892 11640
048addec 11641 * coding.c (code_convert_region): Don't copy old text if undo disabled.
c6ea2775 11642
048addec 116432002-01-09 Jason Rumney <jasonr@gnu.org>
c6ea2775 11644
048addec
JD
11645 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
11646 when checking for multiple frames.
91175673 11647
048addec 116482002-01-08 Richard M. Stallman <rms@gnu.org>
91175673 11649
048addec
JD
11650 * window.c (delete_window): Rewrite the code for changing the
11651 selected window to handle the case where WINDOW is not a leaf.
91175673 11652
048addec 116532002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
e0fead5d 11654
048addec
JD
11655 * process.c (send_process): Set src_multibyte to 1 after the call
11656 top setup_coding_system, not before the call.
e0fead5d 11657
048addec 116582002-01-07 Jason Rumney <jasonr@gnu.org>
e0fead5d 11659
048addec
JD
11660 * xmenu.c (set_frame_menubar, xmenu_show):
11661 (xdialog_show): Initialize wv->help to Qnil.
c186cdb3 11662
048addec
JD
11663 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
11664 (w32_dialog_show): Initialize wv->help to Qnil.
c186cdb3 11665
048addec 116662002-01-06 Jason Rumney <jasonr@gnu.org>
c186cdb3 11667
048addec 11668 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
c186cdb3 11669
048addec 11670 * w32menu.c (w32_menu_display_help): Revert last change.
58cfce98 11671
048addec 11672 * xmenu.c (menu_highlight_callback): Revert last change.
58cfce98 11673
048addec 116742002-01-06 Andreas Schwab <schwab@suse.de>
62854fe2 11675
048addec
JD
11676 * insdel.c (make_gap_larger): Make sure buffer size does not
11677 overflow range of int.
62854fe2 11678
048addec 116792002-01-05 Jason Rumney <jasonr@gnu.org>
656f46bb 11680
048addec
JD
11681 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
11682 OVERLAPS_P.
656f46bb 11683
048addec 11684 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
656f46bb 11685
048addec
JD
11686 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
11687 to the left or to the right of the pointer, put it against
11688 the left screen edge.
11689 (x_frame_parms): Add missing braces around initializer.
036e218d 11690
048addec
JD
11691 * w32term.c (x_setup_relief_colors): Don't compute an image's
11692 background color if it doesn't have a Pixmap.
11693 (notice_overwritten_cursor): Don't depend on
11694 output_cursor and updated_area. Compare pixel coordinates with
11695 window's cursor pixel coordinates.
11696 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
11697 Call notice_overwritten_cursor with new arg list.
11698 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
11699 unconditionally.
11700 (x_draw_image_relief): Use predefined macro instead of
11701 constant when the value of `tool_bar_button_relief' is negative.
036e218d 11702
048addec 11703 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
7ddb2c16 11704
048addec 117052002-01-04 Richard M. Stallman <rms@gnu.org>
7ddb2c16 11706
048addec 11707 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
ace9b298 11708
048addec 117092002-01-03 Richard M. Stallman <rms@gnu.org>
90647b07 11710
048addec
JD
11711 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
11712 (Fkey_binding): Try the `keymap' property map first.
11713 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
11714 minor mode bindings.
90647b07 11715
048addec 117162002-01-03 Kim F. Storm <storm@cua.dk>
ace9b298 11717
048addec 11718 * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
ace9b298 11719
048addec 117202002-01-02 Richard M. Stallman <rms@gnu.org>
ace9b298 11721
048addec
JD
11722 * keyboard.c (read_key_sequence): Handle the keymap property
11723 before minor mode maps.
9fbc32aa 11724
048addec
JD
11725 * editfns.c (Fformat): Update thissize from field_width
11726 based on the actual width, in the string case.
036e218d 11727
048addec 117282002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fbc32aa 11729
048addec
JD
11730 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
11731 when used as truth value to prevent gcc warnings.
9fbc32aa 11732
048addec
JD
11733 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
11734 * w32proc.c: Include <config.h>.
9fbc32aa 11735
048addec 117362002-01-01 Andreas Schwab <schwab@suse.de>
9fbc32aa 11737
048addec
JD
11738 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
11739 not EMACS_INT, to make them compatible with DEFVAR_INT.
11740 * lisp.h (max_specpdl_size): Adjust declaration.
9fbc32aa 11741
048addec 117422002-01-01 Richard M. Stallman <rms@gnu.org>
9fbc32aa 11743
048addec
JD
11744 * print.c (print_object): Test print_escape_nonascii only for
11745 unibyte strings.
11746 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
11747 when outputting to a multibyte buffer.
9fbc32aa 11748
048addec 117492001-12-29 Richard M. Stallman <rms@gnu.org>
9fbc32aa 11750
048addec
JD
11751 * print.c (print_object): In multibyte string, use hex escapes.
11752 Use octal only for unibyte strings.
11753 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
0142178a 11754
048addec
JD
11755 * lread.c (read_escape): New arg BYTEREP for reporting whether
11756 escape forces unibyte or multibyte.
11757 (read1): When reading a string, take note of that info.
0142178a 11758
048addec 117592001-12-29 Ken Raeburn <raeburn@gnu.org>
d4824a5d 11760
048addec
JD
11761 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
11762 comparison to test lisp value returned by Fget.
d4824a5d 11763
048addec 117642001-12-29 Richard M. Stallman <rms@gnu.org>
b1356234 11765
048addec 11766 * lisp.h (max_specpdl_size): Add declaration.
b1356234 11767
048addec 11768 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
3ce081f5 11769
048addec
JD
11770 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
11771 Handle modifier bits. Correct typo in error message.
99e380ee 11772
048addec 117732001-12-28 Richard M. Stallman <rms@gnu.org>
3ce081f5 11774
048addec
JD
11775 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
11776 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
11777 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
11778 Update calls to Fdefine_abbrev.
11779 (write_abbrev): Update for changed data format.
11780 Don't list "system" abbrevs.
11781 (Fexpand_abbrev): Update use count with new data format.
11782 (describe_abbrev): Update for changed data format.
11783 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
66458f32 11784
048addec 11785 * config.in (HAVE_MBSINIT): Add #undef.
66458f32 11786
048addec 11787 * strftime.c (mbsinit): Define as no-op if not available.
66458f32 11788
048addec
JD
11789 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
11790 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
59a86c99 11791
048addec
JD
11792 * keymap.c (Flookup_key): Error message if key has wrong data type.
11793 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
11794 (exclude_key): New variable.
59a86c99 11795
048addec 117962001-12-28 Gerd Moellmann <gerd@gnu.org>
eb77a5f4 11797
048addec
JD
11798 * xterm.c (x_setup_relief_colors): Don't compute an image's
11799 background color if it doesn't have a Pixmap.
eb77a5f4 11800
048addec
JD
11801 * xterm.c (notice_overwritten_cursor): Don't depend on
11802 output_cursor and updated_area. Compare pixel coordinates with
11803 window's cursor pixel coordinates.
11804 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
11805 Call notice_overwritten_cursor with new arg list.
11806 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
11807 unconditionally.
eb77a5f4 11808
048addec
JD
11809 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
11810 height of the cursor line to the amount to scroll.
eb77a5f4 11811
048addec 118122001-12-27 Richard M. Stallman <rms@gnu.org>
bb313871 11813
048addec
JD
11814 * intervals.c (set_point_both): The position after an invisible,
11815 intangible character is not an acceptable stopping point.
bb313871 11816
048addec 118172001-12-27 Ken Raeburn <raeburn@gnu.org>
55b43a63 11818
048addec
JD
11819 * window.c (enlarge_window): In new preserve_before code, convert
11820 CURBEG from lisp object to integer before doing arithmetic.
6052529b 11821
048addec 118222001-12-27 Richard M. Stallman <rms@gnu.org>
3ce081f5 11823
048addec 11824 * bytecode.c (Fbyte_code): Undo previous change.
3ce081f5 11825
048addec 118262001-12-26 Kim F. Storm <storm@cua.dk>
3ce081f5 11827
048addec
JD
11828 * keyboard.c (record_char): Ignore duplicate help-echo events only
11829 separated by mouse-movement. When tracking mouse, only record
11830 first and last mouse-movement event in same window.
11831 Don't record mouse-movement events in keyboard macros.
3ce081f5 11832
048addec 118332001-12-25 Richard M. Stallman <rms@gnu.org>
55b43a63 11834
048addec
JD
11835 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
11836 (Fenlarge_window): New arg PRESERVE_BEFORE.
111ed14e 11837
048addec
JD
11838 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
11839 instead of Fstring_as_unibyte.
9fabb2f5 11840
048addec 118412001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fabb2f5 11842
048addec 11843 The following changes remove mocklisp support:
9fabb2f5 11844
048addec 11845 * mocklisp.h, mocklisp.c: Files removed.
111ed14e 11846
048addec
JD
11847 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
11848 `Qmocklisp' and `Qmocklisp_arguments'.
11849 Remove prototype of syms_of_mocklisp.
2fa0eedf 11850
048addec 11851 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
d1420435 11852
048addec
JD
11853 * callint.c: Do not include mocklisp.h.
11854 (Fcall_interactively): Do not test for mocklisp case.
2fa0eedf 11855
048addec
JD
11856 * eval.c: Remove variables `Qmocklisp_arguments',
11857 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
11858 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
11859 Do not test for mocklisp case.
11860 (Fwhile): Remove unused variable `tem'.
11861 (syms_of_eval): Remove variable `moclisp-arguments'.
ebcbef4e 11862
048addec 11863 * data.c (wrong_type_argument): Remove mocklisp case.
5c131048 11864
048addec 11865 * doc.c (Fdocumentation): Remove mocklisp case.
5c131048 11866
048addec 11867 * emacs.c (main): Do not call syms_of_mocklisp.
5c131048 11868
048addec 118692001-12-21 Richard M. Stallman <rms@gnu.org>
96d276c3 11870
048addec
JD
11871 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
11872 to the left or to the right of the pointer, put it against
11873 the left screen edge.
6108b49c 11874
048addec 118752001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
96d276c3 11876
048addec
JD
11877 * Makefile.in (distclean): Remove .gdbinit if we are building
11878 outside the source tree.
5eea19a4 11879
048addec 118802001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5eea19a4 11881
048addec 11882 * w32.c (emacs_root_dir): New function.
5eea19a4 11883
048addec 11884 * msdos.c (emacs_root_dir): New function.
5eea19a4 11885
048addec
JD
11886 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
11887 of the current drive as the fallback for default_directory.
438e57dd 11888
048addec
JD
11889 * dired.c (file_name_completion): Run the elements of
11890 completion-ignored-extensions through ENCODE_FILE.
438e57dd 11891
048addec
JD
11892 * lisp.h (scmp): Remove prototype, since it's now a static
11893 function private to dired.c.
c88e5347 11894
048addec 118952001-12-18 Richard M. Stallman <rms@gnu.org>
c88e5347 11896
048addec
JD
11897 * dired.c (scmp): Function moved from minibuf.c.
11898 Delete multibyte handling--used only on encoded strings.
59ce1461 11899
048addec 11900 * minibuf.c (scmp): Function moved to dired.c.
59ce1461 11901
048addec 11902 * fns.c (merge): Add QUIT call.
59ce1461 11903
048addec 119042001-12-18 Dave Love <fx@gnu.org>
8727d588 11905
048addec
JD
11906 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
11907 language/georgian.el.
8727d588 11908
048addec 119092001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
cc63037e 11910
048addec
JD
11911 * Makefile.in (lisp, shortlisp): Synchronize with changes to
11912 lisp/Makefile.in:DONTCOMPILE.
cc63037e 11913
048addec 119142001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
cc63037e 11915
048addec
JD
11916 * xdisp.c (window_box_height): Do not return negative values.
11917 From Gerd Moellmann <gerd@gnu.org>.
cc63037e 11918
048addec 11919 * keyboard.c (head_table): Add missing braces around initializer.
cc63037e 11920
048addec 11921 * term.c (keys): Likewise.
deece6f5 11922
048addec 11923 * xfns.c (x_frame_parms, visual_classes): Likewise.
deece6f5 11924
048addec 119252001-12-17 Sam Steingold <sds@gnu.org>
1b944d9c 11926
048addec
JD
11927 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
11928 patch (COMPOSING_P, not COMPOSING).
28ff4293 11929
048addec 119302001-12-17 Richard M. Stallman <rms@gnu.org>
a395ef6a 11931
048addec 11932 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
a395ef6a 11933
048addec
JD
11934 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
11935 before calling decode_coding.
9b46de40 11936
048addec 11937 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
9b46de40 11938
048addec
JD
11939 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
11940 instead of only for COMPOSITION_DISABLED.
9b46de40 11941
048addec 119422001-12-16 Richard M. Stallman <rms@gnu.org>
aff37336 11943
048addec 11944 * alloc.c (pure_alloc): After overflow, allocate just a small block.
aff37336 11945
048addec 11946 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
b9937f07 11947
048addec
JD
11948 * buffer.h (struct buffer): New field `display_error_modiff'.
11949 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
b9937f07 11950
048addec 11951 * window.c (Frecenter): Clear display_error_modiff field.
2cd23960 11952
048addec
JD
11953 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
11954 Call redisplay_window, but not if display_error_modiff field says no.
11955 (redisplay_window_error): New function.
11956 (displayed_buffer): New variable.
11957 (redisplay_internal, redisplay_windows): Call the new functions
11958 instead of redisplay_window directly.
2cd23960 11959
048addec 119602001-12-15 Richard M. Stallman <rms@gnu.org>
2cd23960 11961
048addec 11962 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
2cd23960 11963
048addec 119642001-12-14 Andrew Innes <andrewi@gnu.org>
a4184c1c 11965
048addec
JD
11966 * makefile.w32-in (EMACSLOADPATH): Define.
11967 ($(EMACS)): Run `list-load-path-shadows' after dumping emacs.
11968 (bootstrap-temacs): Remove dependency on bootstrap-clean.
a4184c1c 11969
048addec 119702001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
f6fa0866 11971
048addec
JD
11972 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
11973 parameter have a numeric value all the time.
f6fa0866 11974
048addec 11975 * w32fns.c (x_report_frame_params): Likewise.
f4ca4b00 11976
048addec 119772001-12-12 Richard M. Stallman <rms@gnu.org>
f4ca4b00 11978
048addec 11979 * fileio.c (Fwrite_region): Doc fix.
f4e25f94 11980
048addec
JD
11981 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
11982 (redisplay_internal): Call clear_image_cache only for window terminals.
f4e25f94 11983
048addec 119842001-12-12 Gerd Moellmann <gerd@gnu.org>
91c153e2 11985
048addec
JD
11986 * xdisp.c (move_it_vertically_backward): Change heuristic
11987 for the case that we didn't move far enough initially.
91c153e2 11988
048addec
JD
11989 * window.c (Frecenter): Simplify computation in the case of window
11990 system frames and ARG < 0; use window_box_height.
65b7d3e7 11991
048addec 119922001-12-11 Richard M. Stallman <rms@gnu.org>
65b7d3e7 11993
048addec
JD
11994 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
11995 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
6b5f6311 11996
048addec 119972001-12-11 Andrew Innes <andrewi@gnu.org>
6b5f6311 11998
048addec
JD
11999 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
12000 arg is negative.
be676094 12001
048addec 120022001-12-11 Richard M. Stallman <rms@gnu.org>
be676094 12003
048addec
JD
12004 * m/hp800.h: Split the __hpux conditional into the parts
12005 that are right for GNU/Linux too and the parts that are not.
12006 Use the former if GNU_LINUX.
12007 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
032a857d 12008
048addec 12009 * s/gnu-linux.h (GNU_LINUX): Defined.
032a857d 12010
048addec 120112001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
032a857d 12012
048addec
JD
12013 * macros.c, msdos.c, w16select.c: Change doc-string comments to
12014 `new style' [w/`doc:' keyword].
032a857d 12015
048addec 120162001-12-10 Jason Rumney <jasonr@gnu.org>
b6270150 12017
048addec
JD
12018 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
12019 before using.
b6270150 12020
048addec 120212001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
792e5cbd 12022
048addec
JD
12023 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
12024 keyword].
98cbb9fa 12025
048addec 120262001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
98cbb9fa 12027
048addec 12028 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
98cbb9fa 12029
048addec 12030 * s/hpux10.h (srand48): Don't undefine.
98cbb9fa 12031
048addec 120322001-12-09 Jason Rumney <jasonr@gnu.org>
792e5cbd 12033
048addec
JD
12034 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
12035 Add comment to explain where the struct came from.
12036 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
12037 (add_menu_item): Process pop-up menus first to avoid memory leak.
12038 (add_menu_item, w32_menu_display_help): Use `help' field as
12039 Lisp_Object.
12040 (w32_free_submenu_strings): Only free owner-drawn strings.
fa336b91 12041
048addec 120422001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
fa336b91 12043
048addec 12044 * COPYING: Moved back.
fa336b91 12045
048addec
JD
12046 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
12047 Add parentheses around && within ||.
077907d4 12048
048addec 12049 * indent.c (compute_motion): Likewise.
aa2af83a 12050
048addec 12051 * intervals.c (merge_properties_sticky): Likewise.
60a653f1 12052
048addec
JD
12053 * coding.c (setup_coding_system, shrink_encoding_region)
12054 (Fdecode_sjis_char): Likewise.
60a653f1 12055
048addec 120562001-12-07 Andreas Schwab <schwab@suse.de>
60a653f1 12057
048addec
JD
12058 * xdisp.c (display_mode_element): Don't read past end of string if
12059 it ends with '%'.
60a653f1 12060
048addec
JD
12061 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
12062 can hold.
60a653f1 12063
048addec
JD
12064 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
12065 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
12066 type changed to Lisp_Object.
12067 (syms_of_data): DEFVAR_LISP them.
60a653f1 12068
048addec 120692001-12-07 Richard M. Stallman <rms@gnu.org>
60a653f1 12070
048addec
JD
12071 * callproc.c (init_callproc): Set Vdata_directory based on the source
12072 location whenever Emacs was run uninstalled.
60a653f1 12073
048addec 120742001-12-06 Paul Eggert <eggert@twinsun.com>
60a653f1 12075
048addec
JD
12076 * config.in (HAVE_WORKING_VFORK): New #undefs.
12077 * process.c (create_process):
12078 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
12079 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
12080 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
12081 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
12082 * m/intel386.h (HAVE_VFORK): Likewise.
12083 * m/mips-siemens.h (HAVE_VFORK): Likewise.
12084 * m/mips.h (HAVE_VFORK): Likewise.
12085 * s/freebsd.h (vfork): Remove #define.
12086 * s/lynxos.h (HAVE_VFORK): Remove #undef.
12087 * s/usg5-4-2.h: Fix comment about vfork.
60a653f1 12088
048addec 120892001-12-06 Richard M. Stallman <rms@gnu.org>
60a653f1 12090
048addec
JD
12091 * s/hpux10.h (random): Add undef.
12092 (HAVE_RANDOM): Define it just once.
60a653f1 12093
048addec 120942001-12-06 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 12095
048addec 12096 * eval.c: Undo last change: the standard syntax is not wanted.
60a653f1 12097
048addec 120982001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 12099
048addec
JD
12100 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
12101 scroll bars of the frame before deleting the frame itself. If the
12102 frame has a widget, delete the frame with XtDestroyWidget, and do
12103 not call XDestroyWindow before that.
60a653f1 12104
048addec 121052001-12-06 Kim F. Storm <storm@cua.dk>
60a653f1 12106
048addec 12107 * xfns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 12108
048addec 12109 * w32fns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 12110
048addec 121112001-12-05 Andrew Innes <andrewi@gnu.org>
60a653f1 12112
048addec
JD
12113 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
12114 excessively large.
60a653f1 12115
048addec
JD
12116 * insdel.c (make_gap_larger): New function.
12117 (make_gap_smaller): New function.
12118 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
12119 Call make_gap_smaller if arg is negative.
60a653f1 12120
048addec 121212001-12-04 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 12122
048addec
JD
12123 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
12124 Pass a dummy argument when calling interrupt_signal.
12125 (parse_menu_item): Mark disabled items before checking for empty def.
12126 (read_char_minibuf_menu_prompt): Make safety more visible.
12127 (read_key_sequence): Add a `first_unbound' variable.
12128 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
12129 unbound prefix as soon as we can detect it.
60a653f1 12130
048addec
JD
12131 * doc.c (Fsnarf_documentation): Add prototype.
12132 (get_doc_string): Handle negative arguments.
12133 (Fdocumentation): Use AREF and ASIZE.
12134 Move the calls to get_doc_string to a single place.
12135 Don't confuse an interactive-spec for a docstring reference.
12136 (Fdocumentation_property): Take advantage of the fact that
12137 get_doc_string now ignores the sign of the docstring position.
60a653f1 12138
048addec 12139 * eval.c: Use standard syntax for usage in docstrings.
60a653f1 12140
048addec 121412001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 12142
a64387ee 12143 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
60a653f1 12144
048addec 121452001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 12146
048addec
JD
12147 * xterm.c (x_draw_image_relief): Use predefined macro instead of
12148 constant when the value of `tool_bar_button_relief' is negative.
60a653f1 12149
048addec 121502001-12-02 Richard M. Stallman <rms@gnu.org>
60a653f1 12151
048addec
JD
12152 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
12153 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
60a653f1 12154
048addec 12155 * fileio.c (read_non_regular): Delete Fsignal call.
60a653f1 12156
048addec 121572001-12-01 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 12158
048addec 12159 * lisp.h (run_hook_list_with_args): Undo last change.
60a653f1 12160
048addec 121612001-12-01 Gerd Moellmann <gerd@gnu.org>
60a653f1 12162
048addec 12163 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
60a653f1 12164
048addec 121652001-12-01 Jason Rumney <jasonr@gnu.org>
60a653f1 12166
048addec 12167 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
60a653f1 12168
048addec
JD
12169 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
12170 [!WM_MOUSELEAVE]: Define.
60a653f1 12171
048addec
JD
12172 * w32menu.c (current_popup_menu, get_menu_item_info):
12173 (set_menu_item_info): New vars.
12174 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
12175 (w32_menu_show): Set current_popup_menu.
12176 (add_menu_item): Allocate new strings for owner-drawn menu items
12177 and help strings.
12178 Use owner-draw for disabled menu items again.
12179 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
12180 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
60a653f1 12181
048addec
JD
12182 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
12183 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
12184 <WM_EXITMENULOOP>: Free menu strings.
12185 <WM_MOUSELEAVE>: Stop tracking mouse.
12186 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
60a653f1 12187
048addec
JD
12188 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
12189 and mouse face.
60a653f1 12190
048addec 121912001-12-01 Kim F. Storm <storm@cua.dk>
60a653f1 12192
048addec
JD
12193 The following changes add left-fringe and right-fringe
12194 frame parameters to adjust fringe widths, or remove one or
12195 both fringes.
60a653f1 12196
048addec
JD
12197 * frame.h (struct frame): Remove trunc_area_pixel_width and
12198 trunc_area_cols fields.
12199 (Qleft_fringe, Qright_fringe): Declare.
12200 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
60a653f1 12201
048addec
JD
12202 * frame.c (Qleft_fringe, Qright_fringe): New vars.
12203 (syms_of_frame): Initialize them.
60a653f1 12204
048addec
JD
12205 * window.c (coordinates_in_window): Handle separate left and right
12206 fringe widths.
60a653f1 12207
048addec
JD
12208 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
12209 and fringe_cols fields.
12210 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
12211 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
12212 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
12213 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
12214 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
12215 (x_compute_fringe_widths): Add prototype.
60a653f1 12216
048addec
JD
12217 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
12218 fill fringe evenly with small dashes.
12219 (x_draw_fringe_bitmap): Clear background if necessary. Align and
12220 clip the new ZV bitmap to avoid jitter between rows.
12221 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
12222 background. Don't draw fringe bitmaps if fringe width is zero.
12223 (x_compute_fringe_widths): New function.
12224 (x_new_font, x_set_window_size_1): Use it.
60a653f1 12225
048addec
JD
12226 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
12227 (x_set_frame_parameters): Process `font' parameter before other
12228 parameters as fringe widths depend on it.
12229 (x_set_fringe_width): New function.
12230 (x_figure_window_size): Use x_compute_fringe_widths.
12231 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
12232 parameters.
60a653f1 12233
048addec
JD
12234 * widget.c (set_frame_size): Use x_compute_fringe_widths.
12235 (EmacsFrameSetCharSize): Ditto.
60a653f1 12236
048addec
JD
12237 * w32term.h: Merged changes from xterm.h.
12238 * w32term.c: Merged changes from xterm.c.
12239 * w32fns.c: Merged changes from xfns.c.
60a653f1 12240
048addec 122412001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 12242
048addec 12243 * COPYING: Removed.
60a653f1 12244
048addec 122452001-11-29 Dave Love <fx@gnu.org>
60a653f1 12246
048addec
JD
12247 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
12248 extra extra slot.
12249 (detect_coding_mask): Fix call of detect_coding_iso2022.
60a653f1 12250
048addec 122512001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 12252
048addec
JD
12253 * fileio.c (file-name-coding-system)
12254 (default-file-name-coding-system): Doc fix (links to referenced
12255 variables added).
60a653f1 12256
048addec 122572001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 12258
048addec
JD
12259 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
12260 Add dummy uses of gcproN variables.
60a653f1 12261
048addec
JD
12262 * category.c (describe_category, describe_category_1)
12263 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
12264 (syms_of_category): Don't defsubr Sdescribe_categories.
60a653f1 12265
048addec 122662001-11-28 Richard M. Stallman <rms@gnu.org>
60a653f1 12267
048addec 12268 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
60a653f1 12269
048addec
JD
12270 * Makefile.in (lispdir): New variable, referring to build dir.
12271 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
60a653f1 12272
048addec 122732001-11-28 Andrew Innes <andrewi@gnu.org>
60a653f1 12274
048addec
JD
12275 * w32menu.c (w32_menu_display_help): Actually add the new argument
12276 OWNER.
60a653f1 12277
048addec 122782001-11-28 Jason Rumney <jasonr@gnu.org>
60a653f1 12279
048addec
JD
12280 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
12281 menu items. From David Ponce <dponce@wanadoo.fr>.
12282 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
12283 conditionally.
12284 (w32_menu_display_help): New argument OWNER. Rewritten to store a
12285 help event in the owner frame's keyboard buffer.
60a653f1 12286
048addec
JD
12287 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
12288 (Fx_show_tip): Don't subtract last width from row width.
12289
12290 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
12291 (w32_read_socket): Use EQ to compare frames.
60a653f1 12292
048addec 122932001-11-28 Gerd Moellmann <gerd@gnu.org>
60a653f1 12294
048addec
JD
12295 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
12296 OVERLAPS_P.
60a653f1 12297
048addec 122982001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 12299
048addec
JD
12300 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
12301 `gcpro3' and `gcpro4'.
60a653f1 12302
048addec 12303 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
60a653f1 12304
048addec 123052001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 12306
048addec 12307 * ccl.c: Use AREF and ASIZE.
60a653f1 12308
048addec 123092001-11-27 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 12310
048addec
JD
12311 * lisp.h (run_hook_list_with_args): Remove.
12312 (LIST_END_P): Fix call to wrong_type_argument.
12313 (make_fixnum_or_float): Use EMACS_INT rather than int.
60a653f1 12314
048addec 123152001-11-26 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 12316
048addec
JD
12317 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
12318 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
60a653f1 12319
048addec
JD
12320 * eval.c: Use AREF and ASIZE.
12321 (Ffetch_bytecode): Add the file name to the error message.
60a653f1 12322
048addec
JD
12323 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
12324 which match the end of the file-name.
12325 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
12326 is not a valid env var, but leave it as is instead.
60a653f1 12327
048addec
JD
12328 * keymap.c (access_keymap): Handle t bindings like nil bindings.
12329 Make nil bindings in char-tables transparent.
12330 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
60a653f1 12331
048addec 123322001-11-26 Richard M. Stallman <rms@gnu.org>
60a653f1 12333
048addec
JD
12334 * textprop.c (set_text_properties_1): Allow START, END in either order.
12335 Do nothing if range is empty.
60a653f1 12336
048addec 12337 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
60a653f1 12338
048addec
JD
12339 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
12340 (clean): Not here.
60a653f1 12341
048addec 123422001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 12343
048addec
JD
12344 * textprop.c (set_text_properties_1): Clearly mark that the
12345 interval should not be empty.
60a653f1 12346
048addec
JD
12347 * intervals.c (graft_intervals_into_buffer):
12348 Don't call set_text_properties_1 on an empty interval.
60a653f1 12349
048addec 123502001-11-25 Richard M. Stallman <rms@gnu.org>
60a653f1 12351
048addec 12352 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
60a653f1 12353
048addec
JD
12354 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
12355 don't lose the data in it.
60a653f1 12356
048addec 123572001-11-25 Juanma Barranquero <lektu@terra.es>
60a653f1 12358
048addec 12359 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
60a653f1 12360
c62aec78 12361 * buffer.c (Fkill_buffer): Likewise.
60a653f1 12362
c62aec78 12363 * print.c (temp_output_buffer_setup): Likewise.
60a653f1 12364
048addec 123652001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 12366
048addec 12367 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
60a653f1 12368
048addec 123692001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 12370
048addec
JD
12371 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
12372 Niemitalo <kon@iki.fi>.
60a653f1 12373
048addec 123742001-11-25 Jason Rumney <jasonr@gnu.org>
60a653f1 12375
048addec 12376 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
60a653f1 12377
048addec
JD
12378 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
12379 (Fx_show_tip): Block input during frame creation.
12380 (Fx_show_tip, Fx_hide_tip): Enable.
60a653f1 12381
048addec 123822001-11-24 Richard M. Stallman <rms@gnu.org>
60a653f1 12383
048addec
JD
12384 * lread.c (Fload): Detect recursive load error for more than 3
12385 nestings of the same file.
12386 (Vrecursive_load_depth_limit): Variable deleted.
12387 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
60a653f1 12388
048addec 123892001-11-24 Jason Rumney <jasonr@gnu.org>
60a653f1 12390
048addec
JD
12391 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
12392 mouse position if either left or top is not specified.
60a653f1 12393
048addec
JD
12394 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
12395 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
12396 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
12397 (my_create_tip_window): Assign tip_window.
12398 (x_create_tip_frame): Use same defaults as X.
12399 (compute_tip_xy): Remove unused variable. Use full screen width.
12400 (Fx_show_tip): Do not double height. Call ShowWindow directly.
60a653f1 12401
048addec
JD
12402 * w32term.c (x_after_update_window_line): Doc fix.
12403 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
12404 frames.
12405 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
60a653f1 12406
048addec
JD
12407 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
12408 for all Windowed systems.
60a653f1 12409
048addec 124102001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 12411
048addec
JD
12412 * msdos.c (IT_clear_screen): If the frame's faces are not yet
12413 realized, use the initial screen colors to clear the screen.
60a653f1 12414
048addec 124152001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 12416
048addec
JD
12417 * textprop.c (Fset_text_properties): Remove unused variables
12418 `unchanged', `prev_changed', `s' and `len'.
60a653f1 12419
048addec
JD
12420 * search.c (Freplace_match): Remove unused variable `inslen'.
12421
12422 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
12423
124242001-11-22 Jason Rumney <jasonr@gnu.org>
12425
12426 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
12427 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
12428 (my_create_tip_window): New function.
12429 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
12430 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
12431
124322001-11-20 Jason Rumney <jasonr@gnu.org>
12433
12434 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
12435 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
12436
12437 * w32fns.c (Vw32_system_coding_system): Remove.
12438 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
12439
124402001-11-19 Stefan Monnier <monnier@cs.yale.edu>
12441
12442 * fileio.c (Fwrite_region): Move choose_write_coding_system to
12443 after build_annotations.
12444
12445 * syntax.c (describe_syntax): Add dummy arg.
12446 (describe_syntax_1): Update call to describe_vector.
12447
12448 * category.c (describe_category): Add dummy arg.
12449 (describe_category_1): Update call to describe_vector.
12450
12451 * keymap.c (Fdescribe_vector): Add `describer' parameter.
12452 (describe_command, describe_translation): Add dummy second param.
12453 (describe_map): Call elt_describer with two arguments.
12454 (describe_vector_princ): Add `fun' parameter.
12455 Call it instead of the hardcoded `princ'.
12456 (describe_vector): Add arg `args'.
12457 Pass it as a new second argument to elt_describer.
60a653f1 12458
048addec 12459 * keymap.h (describe_vector): Update prototype.
60a653f1 12460
048addec
JD
12461 * frame.c: Don't include keymap.h any more.
12462 (keys_of_frame): Remove.
60a653f1 12463
048addec 12464 * lisp.h (keys_of_frame): Remove declaration.
60a653f1 12465
048addec 12466 * emacs.c (main): Don't call `keys_of_frame' any more.
60a653f1 12467
048addec 124682001-11-14 Andreas Schwab <schwab@suse.de>
60a653f1 12469
048addec
JD
12470 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
12471 if defined, 0 otherwise.
12472 (MAP_FAILED): Define if not defined and use it to test mmap failure.
12473 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
60a653f1 12474
048addec 124752001-11-19 Richard M. Stallman <rms@gnu.org>
60a653f1 12476
048addec 12477 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
60a653f1 12478
048addec 124792001-11-18 Jason Rumney <jasonr@gnu.org>
60a653f1 12480
048addec
JD
12481 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
12482 (x_draw_bar_cursor): If the background color of the glyph under
12483 the cursor equals the frame's cursor color, use the glyph's
12484 foreground color for drawing the bar cursor.
12485 (x_after_update_window_line): Clear internal border in different
12486 circumstances.
12487 (w32_set_vertical_scroll_bar): Check for width and height > 0.
12488 (w32_draw_relief_rect): Correct relief by 1 pixel.
12489 (x_set_glyph_string_background_width):
12490 Set extends_to_end_of_line_p if the row's fill_line_p is set and
12491 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
12492 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
12493 if cursor_in_non_selected_windows is false.
12494 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
12495 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
12496 Notice if cursor gets overwritten.
12497 (notice_overwritten_cursor): Renamed from
12498 note_overwritten_text_cursor. Rewritten to take glyph widths
12499 into account, and to take X positions as parameters.
12500 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
12501 around call to x_draw_glyphs.
12502 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
12503 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
12504 color to use for image glyph reliefs.
12505 (x_draw_image_relief): Accept zero tool_bar_button_relief.
12506 (glyph_rect): Remove unused variable `area'.
60a653f1 12507
048addec
JD
12508 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
12509 some items.
12510 (x_set_internal_border_width): Set frame garbaged when window
12511 doesn't exist yet.
12512 (Fx_create_frame): Accept zero tool_bar_button_relief.
12513 (x_clear_image_1, four_corners_best, image_background)
12514 (image_background_transparent): New functions.
12515 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
12516 (gs_format): Add `:background' entry.
12517 (lookup_image): Set IMG's background color if specified.
12518 (pbm_load, xbm_load_image, png_load): Set IMG's background field
12519 when appropriate.
12520 (x_clear_image_1): Reset `background_valid' and
12521 `background_transparent_valid' fields.
12522 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
12523 calculating it here. Set IMG's background_transparent field.
12524 (enum xpm_keyword_index): Add XPM_BACKGROUND.
12525 (enum png_keyword_index): Add PNG_BACKGROUND.
12526 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
12527 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
12528 (enum gif_keyword_index): Add GIF_BACKGROUND.
12529 (enum gs_keyword_index): Add GS_BACKGROUND.
12530 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
12531 Pre-calculate image background color where necessary.
12532 (x_create_x_image_and_pixmap, xbm_load, gs_load):
12533 Use display info's n_cbits entry for screen depth.
12534 (Fx_show_tip): Remove unused variables `buffer', `top',
12535 `left', `max_width' and `max_height'.
60a653f1 12536
048addec 12537 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
60a653f1 12538
048addec 125392001-11-18 Gerd Moellmann <gerd@gnu.org>
60a653f1 12540
048addec 12541 * puresize.h (BASE_PURESIZE): Increase to 750000.
60a653f1 12542
048addec 125432001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 12544
048addec 12545 * frame.c (Fframe_live_p): Doc fix.
60a653f1 12546
048addec 125472001-11-18 Richard M. Stallman <rms@gnu.org>
60a653f1 12548
048addec
JD
12549 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
12550 (message_dolog_marker3): New static variables hold three markers.
12551 (syms_of_xdisp): Initialize and staticpro them.
12552 (message_dolog): Use message_dolog_marker1..3 instead of
12553 allocating markers each time. Unchain them when done.
60a653f1 12554
048addec 125552001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 12556
048addec 12557 * doc.c (Fsnarf_documentation): Doc fix.
60a653f1 12558
048addec 125592001-11-17 Andreas Schwab <schwab@suse.de>
60a653f1 12560
048addec 12561 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
60a653f1 12562
048addec 125632001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 12564
048addec 12565 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
60a653f1 12566
048addec 125672001-11-17 Jason Rumney <jasonr@gnu.org>
60a653f1 12568
048addec 12569 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
60a653f1 12570
048addec 125712001-11-17 Gerd Moellmann <gerd@gnu.org>
60a653f1 12572
048addec
JD
12573 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
12574 with invalid position.
60a653f1 12575
048addec 125762001-11-16 Richard M. Stallman <rms@gnu.org>
60a653f1 12577
048addec 12578 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
60a653f1 12579
048addec
JD
12580 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
12581 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
12582 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
60a653f1 12583
048addec 12584 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
60a653f1 12585
048addec 125862001-11-16 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 12587
048addec
JD
12588 * fileio.c (build_annotations): Split off the tail.
12589 (build_annotations_2): New fun. Extracted from build_annotations.
12590 (Fwrite_region): Split the call to build_annotations into two
12591 calls to build_annotations and build_annotations_2.
077907d4 12592
048addec 125932001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1756e2fb 12594
048addec
JD
12595 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
12596 clear_waiting_for_input with argument.
1756e2fb 12597
048addec 12598 * xterm.h (x_update_cursor): Remove duplicated prototype.
06e8f738 12599
048addec 12600 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
06e8f738 12601
048addec 12602 * xterm.c (waiting_for_input): Remove unnecessary declaration.
fa336b91 12603
048addec 12604 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
fa336b91 12605
048addec 126062001-11-16 Stefan Monnier <monnier@cs.yale.edu>
fa336b91 12607
048addec
JD
12608 * fileio.c (choose_write_coding_system): New fun, extracted
12609 from Fwrite_region.
12610 (Fwrite_region): Use it.
fa336b91 12611
048addec
JD
12612 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
12613 (funcall_lambda, run_hook_with_args): Make static and add prototype.
12614 (ml_apply, find_handler_clause): Add prototype.
fa336b91 12615
048addec 126162001-11-16 Eli Zaretskii <eliz@gnu.org>
fa336b91 12617
048addec 12618 * config.in: Add #undef HAVE_COFF_H.
fa336b91 12619
048addec
JD
12620 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
12621 Required for ISC 4.1.
fa336b91 12622
048addec 126232001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
fa336b91 12624
048addec
JD
12625 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
12626 Andrew Wiseman <a.wiseman@btclick.com>.
fa336b91 12627
048addec 126282001-11-16 Kim F. Storm <storm@cua.dk>
fa336b91 12629
048addec
JD
12630 The following changes are made to clean up the various internal
12631 references to the fringes to actually use the term `fringe' for
12632 them. Previously, they were called `flags areas', `bitmap areas',
12633 `left/right side of windows', or implicitly as `flags' or
12634 `bitmaps':
fa336b91 12635
048addec
JD
12636 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
12637 Comments fixed. Use renamed symbols.
06e8f738 12638
048addec 12639 * dispnew.c: Comment fix. Use renamed symbols.
06e8f738 12640
048addec
JD
12641 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
12642 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
12643 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
9ce647f4 12644
048addec 12645 * msdos.c: Comment fix.
9ce647f4 12646
048addec 12647 * w32fns.c: Use renamed symbols.
9b784ab8 12648
048addec
JD
12649 * w32term.c: Comment fixes. Use renamed symbols.
12650 (fringe_bitmap_type): Renamed from bitmap_type.
12651 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
12652 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
12653 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
9f7e52b4 12654
048addec
JD
12655 * w32term.h: Comment fixes. Use renamed symbols.
12656 (fringes_extra): Renamed from flags_areas_extra.
12657 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
12658 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
12659 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
12660 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
12661 (FRAME_X_LEFT_FRINGE_WIDTH):
12662 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
12663 (FRAME_X_RIGHT_FRINGE_WIDTH):
12664 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
9f7e52b4 12665
048addec 12666 * widget.c: Use renamed symbols.
9f7e52b4 12667
048addec
JD
12668 * window.c: Comment fixes. Use renamed symbols.
12669 (coordinates-in-window-p): Doc fix.
fa336b91 12670
048addec 12671 * xdisp.c: Comment fixes. Use renamed symbols.
34e5d0af 12672
048addec 12673 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
9b784ab8 12674
048addec 12675 * xfns.c: Use renamed symbols.
89512fcd 12676
048addec
JD
12677 * xterm.c: Comment fixes. Use renamed symbols.
12678 (fringe_bitmap_type): Renamed from bitmap_type.
12679 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
12680 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
12681 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
89512fcd 12682
048addec
JD
12683 * xterm.h: Comment fixes. Use renamed symbols.
12684 (fringes_extra): Renamed from flags_areas_extra.
12685 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
12686 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
12687 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
12688 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
12689 (FRAME_X_LEFT_FRINGE_WIDTH):
12690 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
12691 (FRAME_X_RIGHT_FRINGE_WIDTH):
12692 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
12693
126942001-11-15 Jason Rumney <jasonr@gnu.org>
12695
12696 * w32menu.c (add-menu-item): Make help_echo and radio buttons
12697 work for most menu items. From David Ponce
12698 <david.ponce@wanadoo.fr>.
12699
127002001-11-15 Gerd Moellmann <gerd@gnu.org>
12701
12702 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
12703 Some x_set_* function expect to be called even if old and new
12704 value are equal.
12705
12706 * xdisp.c (build_desired_tool_bar_string): Accept zero
12707 tool_bar_button_relief.
12708
12709 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
12710
12711 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
12712
12713 * xterm.c (x_draw_bar_cursor): If the background color of the
12714 glyph under the cursor equals the frame's cursor color, use
12715 the glyph's foreground color for drawing the bar cursor.
12716
12717 * dispnew.c (direct_output_forward_char): Fix character/byte
12718 position comparison.
7d18891d 12719
048addec 127202001-11-15 Miles Bader <miles@gnu.org>
d2936d21 12721
048addec
JD
12722 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
12723 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
12724 Update arguments to find_field.
12725 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
12726 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
12727 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
12728 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
7d18891d 12729
048addec 127302001-11-14 Richard M. Stallman <rms@gnu.org>
7d18891d 12731
048addec 12732 * editfns.c (Fpropertize): Allow call with 1 arg.
7d18891d 12733
048addec
JD
12734 * dispextern.h (image_background, image_background_transparent):
12735 Conditionalize on HAVE_X_WINDOWS.
7d18891d 12736
048addec 127372001-11-13 Richard M. Stallman <rms@gnu.org>
7d18891d 12738
048addec 12739 * print.c (Fprin1_to_string): Doc fix.
7d18891d 12740
048addec 12741 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
7d18891d 12742
048addec 12743 * floatfns.c (Fceiling, Ffloor): Doc fixes.
7d18891d 12744
048addec 12745 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
7d18891d 12746
048addec 12747 * fileio.c (Ffile_accessible_directory_p): Doc fix.
7d18891d 12748
048addec 12749 * eval.c (syms_of_eval): Doc fix.
7d18891d 12750
048addec 12751 * coding.c (syms_of_coding): Doc fix.
7d18891d 12752
048addec 12753 * doc.c (Fsnarf_documentation): Doc fix.
7d18891d 12754
048addec 12755 * dispnew.c (syms_of_display): Doc fix.
9474c847 12756
048addec 12757 * category.c (Fget_unused_category): Doc fix.
9474c847 12758
048addec 12759 * buffer.c (syms_of_buffer): Doc fixes.
e3059a5d 12760
048addec 127612001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
e3059a5d 12762
048addec 12763 * print.c (prin1, print): Doc fix.
e3059a5d 12764
048addec 127652001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
b3700ae7 12766
048addec
JD
12767 * fontset.h: Remove declarations of variables
12768 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
b3700ae7 12769
048addec
JD
12770 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
12771 `Vclip_large_size_font'.
eae936e2 12772
048addec 127732001-11-13 Jason Rumney <jasonr@gnu.org>
4bb962be 12774
048addec 12775 * w32fns.c: Doc fix.
ddb67bdc 12776
048addec 127772001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3467c402 12778
048addec 12779 * xfaces.c (Fface_attributes_as_vector): Doc fix.
3467c402 12780
048addec 12781 * fns.c: Doc fix.
6e1b91d7 12782
048addec 12783 * emacs.c: Doc fix.
1c1d3d69 12784
048addec 12785 * coding.c: Doc fix.
1c1d3d69 12786
048addec
JD
12787 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
12788 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
12789 `new style' [w/`doc:' keyword].
b6f4c7ba 12790
048addec 127912001-11-12 Richard M. Stallman <rms@gnu.org>
b6f4c7ba 12792
048addec
JD
12793 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
12794 LeaveNotify events. Only FocusIn and FocusOut do that now.
12795 (x_display_and_set_cursor): Do display hollow cursors in active
12796 minibuffer windows when they are not selected.
b6f4c7ba 12797
048addec 127982001-11-12 Jason Rumney <jasonr@gnu.org>
a89f435d 12799
048addec
JD
12800 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
12801 * w32term.c: Change doc-string comments to `new style'.
12802 [w/`doc:' keyword]. Doc fixes.
a89f435d 12803
048addec
JD
12804 * w32fns.c: Don't define max.
12805 (Fx_open_connection): Only execute once.
a4cd0cd7 12806
048addec 128072001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
eafb659a 12808
048addec
JD
12809 * ccl.c: Change macros to use do-while block instead of if-else.
12810 Use braces to follow GNU Coding Standards.
eafb659a 12811
048addec 128122001-11-11 Richard M. Stallman <rms@gnu.org>
a4cd0cd7 12813
048addec 12814 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
a4cd0cd7 12815
048addec 12816 * lread.c (read_escape): Use end_of_file_error for reporting eof.
a4cd0cd7 12817
048addec
JD
12818 * insdel.c (replace_range): Use adjust_markers_for_replace
12819 instead of adjust_markers_for_delete and adjust_markers_for_insert.
a4cd0cd7 12820
048addec 12821 * intervals.h: Declare set_text_properties and set_text_properties_1.
a4cd0cd7 12822
048addec
JD
12823 * textprop.c (set_text_properties_1): New subroutine
12824 broken out of set_text_properties.
12825 (set_text_properties): Use set_text_properties_1.
91823618 12826
048addec
JD
12827 * intervals.c (graft_intervals_into_buffer):
12828 Use set_text_properties_1 to clear out properties.
91823618 12829
048addec
JD
12830 * search.c (Freplace_match): Use replace_range to insert
12831 and delete. Don't request property inheritance from
12832 surrounding text.
86928dfb 12833
048addec 128342001-11-10 Jason Rumney <jasonr@gnu.org>
86928dfb 12835
048addec
JD
12836 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
12837 vertical fonts. Allow them if face name is explicitly specified.
12838 Do not give up if we find a font that cannot be converted to an xlfd.
40ef1eda 12839
048addec 128402001-11-10 Gerd Moellmann <gerd@gnu.org>
ab8469eb 12841
048addec
JD
12842 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
12843 instead of malloc/free.
a78e0303 12844
048addec 128452001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
40ef1eda 12846
048addec
JD
12847 * xfaces.c (merge_face_vectors): Use braces to follow GNU
12848 Coding Standards.
12849 (Finternal_set_lisp_face_attribute): Likewise.
fabf4a91 12850
048addec 12851 * buffer.c (Fbury_buffer): Likewise.
0c99b139 12852
048addec 12853 * indent.c (current_column_1): Remove unused variable `prev_col'.
0c99b139 12854
048addec
JD
12855 * coding.c (encode_coding): Use precomputed value of `src'.
12856 (encode_coding): Remove unused variable `src_end'.
12857 (code_convert_region): Remove unused variables `count'.
830ddd77 12858
048addec 128592001-11-07 Jason Rumney <jasonr@gnu.org>
830ddd77 12860
048addec
JD
12861 * w32term.c (x_display_and_set_cursor): Do not move system caret
12862 if cursor_glyph is NULL.
55c6d645 12863
048addec 128642001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
55c6d645 12865
048addec 12866 * keymap.c (access_keymap): Fix compilation error.
5de38842 12867
048addec 128682001-11-07 Miles Bader <miles@gnu.org>
7a4564a4 12869
048addec 12870 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
5de38842 12871
048addec 128722001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4fa23df5 12873
048addec
JD
12874 * intervals.c (graft_intervals_into_buffer):
12875 Remove #ifdef'd-out code.
12876 (graft_intervals_into_buffer): Remove unused variable `middle'.
4fa23df5 12877
048addec
JD
12878 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
12879 code (eval-current-buffer).
12880 Change doc-string comments to `new style' [w/`doc:' keyword].
7a6a97d7 12881
048addec 128822001-11-06 Richard M. Stallman <rms@gnu.org>
c191d13c 12883
048addec 12884 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
7a6a97d7 12885
048addec 128862001-11-06 Stefan Monnier <monnier@cs.yale.edu>
44dc78e0 12887
048addec 12888 * lread.c (read1): Fix behavior with nested backquoting.
44dc78e0 12889
048addec
JD
12890 * keyboard.c (make_lispy_event): Check integerness and fix
12891 Lisp_Object/int mixup.
17893c65 12892
048addec 128932001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4d994a79 12894
048addec 12895 * fns.c (copy_hash_table): Remove unused variable `v'.
d5360cc7 12896
048addec
JD
12897 * fontset.c (fontset_font_pattern): Remove unused variable
12898 `family_registry'.
d5360cc7 12899
048addec 12900 * indent.c (current_column_1): Remove unused variable `prev_col'.
d5360cc7 12901
048addec 129022001-11-05 Richard M. Stallman <rms@gnu.org>
96238a5a 12903
048addec 12904 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
96238a5a 12905
048addec
JD
12906 * buffer.c (Fkill_buffer): Don't delete auto save file
12907 if buffer is modified.
d9d54213 12908
048addec 129092001-11-05 Andrew Innes <andrewi@gnu.org>
d9d54213 12910
048addec
JD
12911 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
12912 CHECK_NUMBER_CDR.
b116830b 12913
048addec 129142001-11-05 Richard M. Stallman <rms@gnu.org>
b116830b 12915
048addec 12916 * unexelf.c (unexec): Minor changes; clean up comments.
3297e2a1 12917
048addec 129182001-11-05 Sam Steingold <sds@gnu.org>
3297e2a1 12919
048addec 12920 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
6fb8339c 12921
048addec 129222001-11-05 Andreas Schwab <schwab@suse.de>
6fb8339c 12923
048addec 12924 * sound.c (sound_perror): Save errno from being clobbered.
7dd73b78 12925
048addec 129262001-11-05 Dale Hagglund <rdh@yottayotta.com>
7dd73b78 12927
048addec
JD
12928 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
12929 the program image directly.
982f6c7e 12930
048addec 129312001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d31053f9 12932
048addec 12933 * buffer.h (Fbuffer_local_value): Add prototype.
d31053f9 12934
048addec 129352001-11-04 Richard M. Stallman <rms@gnu.org>
d31053f9 12936
048addec
JD
12937 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
12938 and CHECK_BUFFER.
d31053f9 12939
048addec
JD
12940 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
12941 (record_char): Likewise.
d31053f9 12942
048addec
JD
12943 * keyboard.c (make_lispy_event): Don't insist a drag event must
12944 move to a different buffer position. Instead, check for moving at
12945 least double_click_fuzz.
982f6c7e 12946
048addec 12947 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
830047fd 12948
048addec 12949 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
b116830b 12950
048addec
JD
12951 * indent.c (current_column_1, Fmove_to_column): Separate the code
12952 for display-table glyphs from the code for buffer text, to fix
12953 bugs in the former.
830047fd 12954
048addec 129552001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
b116830b 12956
048addec
JD
12957 * buffer.c (Fbuffer_local_value): New function.
12958 (syms_of_buffer): Defsubr it.
2df5238c 12959
048addec
JD
12960 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
12961 value of `cursor-in-non-selected-windows'.
4e397688 12962
048addec
JD
12963 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
12964 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
12965 (syms_of_xdisp): Initialize it.
48b0f3ae 12966
048addec 129672001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2df5238c 12968
048addec 12969 * xfns.c (Fx_create_frame): Doc fix.
3ecaf7e5 12970
048addec
JD
12971 * coding.c: Change doc-string comments to `new style' [w/`doc:'
12972 keyword].
3ecaf7e5 12973
048addec
JD
12974 * eval.c (top_level_value, top_level_set): Remove commented and
12975 #ifdef'd-out code.
12976 (Fdefvar): Fix usage in doc-string.
3ecaf7e5 12977
048addec 129782001-11-03 Richard M. Stallman <rms@gnu.org>
3ecaf7e5 12979
048addec 12980 * xfns.c: Include unistd.h, if it exists.
8db2e33b 12981
048addec 12982 * editfns.c: Move the include of ctype.h after unistd.h.
8db2e33b 12983
048addec 12984 * gmalloc.c: Test BROKEN_PROTOTYPES.
aed29b97 12985
048addec 129862001-11-03 Ken Raeburn <raeburn@gnu.org>
aed29b97 12987
048addec
JD
12988 * lisp.h (CHECK_STRING_CAR): New macro.
12989 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
12990 treating XCAR and XCDR as lvalues.
12991 (openp): Use CHECK_STRING_CAR.
12992 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
aed29b97 12993
048addec 129942001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
6cb16f95 12995
048addec
JD
12996 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
12997 (SIGMASKTYPE): Define.
1b1acc13 12998
048addec 12999 * syssignal.h (sigunblock): Don't define if already defined.
020f9b38 13000
048addec 130012001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
020f9b38 13002
048addec
JD
13003 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
13004 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
13005 Fix typos in comments.
6cb16f95 13006
048addec
JD
13007 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
13008 and #ifdef'd-out code.
13009 Fix and reindent comments.
6cb16f95 13010
048addec 13011 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
6cb16f95 13012
048addec
JD
13013 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
13014 argument `i' in macros.
6cb16f95 13015
048addec
JD
13016 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
13017 `i' in macros.
7e9d3c2f 13018
048addec
JD
13019 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
13020 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
13021 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
13022 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
13023 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
13024 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
13025 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
13026 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
13027 in macros.
7e9d3c2f 13028
048addec
JD
13029 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
13030 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
13031 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
13032 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
13033 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
13034 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
13035 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
13036 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
13037 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
13038 (remove unused second argument).
7e9d3c2f 13039
048addec 130402001-11-02 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 13041
048addec
JD
13042 * syntax.c (describe_syntax): New wrapper.
13043 (Finternal_describe_syntax_value): Rename from describe_syntax.
13044 Don't insert space at front and \n at the end.
13045 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
e6bff182 13046
048addec
JD
13047 * regex.c (re_wctype): Try to fix some warnings.
13048 (regcomp, regexec): Don't forget the __restrict.
9ba48103 13049
048addec 130502001-11-02 Richard M. Stallman <rms@gnu.org>
9ba48103 13051
048addec 13052 * textprop.c (Fget_char_property): Doc fix.
9ba48103 13053
048addec 130542001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9ba48103 13055
048addec 13056 * process.c (Fstart_process): Add usage to doc-string.
c22e59e1 13057
048addec 13058 * data.c (Fsetq_default): Ditto.
c22e59e1 13059
048addec 13060 * callint.c (Finteractive): Ditto.
9271ed2c 13061
048addec 130622001-11-01 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 13063
048addec
JD
13064 * macros.c: Don't include keymap.h any more.
13065
130662001-11-01 Richard M. Stallman <rms@gnu.org>
13067
13068 * data.c (Fmake_local_variable): Doc fix.
13069
13070 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
13071 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
e6bff182 13072
048addec 13073 * keymap.c (Fdescribe_buffer_bindings): Print character property
9271ed2c
RS
13074 bindings along with or instead of the buffer local map.
13075 Make the overriding maps override what they should.
13076
f00691a3 130772001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8b8bd9c6
PJ
13078
13079 * window.c (grow_mini_window): Fix typo in comment.
13080
27188d11
GM
130812001-11-01 Gerd Moellmann <gerd@gnu.org>
13082
7b49b9d2
GM
13083 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
13084 (XTset_vertical_scroll_bar): Likewise.
13085
43f7c3ea
GM
13086 * xfns.c (x_build_heuristic_mask): Use four_corners_best
13087 instead of IMAGE_BACKGROUND.
c22e59e1 13088
b350c2e5
GM
13089 * xfns.c (four_corners_best): Reindent.
13090
c22e59e1 13091 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27188d11
GM
13092 Handle :box so that it is possible to specify sexprs.
13093
bf00d461
EZ
130942001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
13095
13096 * s/hpux11.h: New file.
13097
f00691a3 130982001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e10df59 13099
2b209b97
PJ
13100 * emacs.c (USAGE1): Show command line option --no-window-system
13101 instead of --no-windows in usage.
13102 (standard_args): Rename --no-windows to --no-window-system.
13103 (bug_reporting_address): Follow Emacs coding conventions.
13104
9dbc9081
PJ
13105 * eval.c (Fcommandp): Doc fix.
13106 Change doc-string comments to `new style' [w/`doc:' keyword].
13107
4e10df59
PJ
13108 * frame.c (Fframe_live_p): Doc fix.
13109
13110 * buffer.c (selective-display-ellipses): Doc fix.
13111
dd387b25
GM
131122001-10-31 Gerd Moellmann <gerd@gnu.org>
13113
fe957e65
GM
13114 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
13115
dd387b25
GM
13116 * xfaces.c (realize_x_face): If C is not a single-byte character,
13117 set the face's colors_copied_bitwise_p instead of the defaulted_p
13118 members which have a different meaning.
13119 (free_face_colors): Do nothing for a face whose colors have been
13120 copied bitwise.
13121
c22e59e1 13122 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
dd387b25 13123
f00691a3 131242001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2e1280f8 13125
687784e8
PJ
13126 * marker.c, mocklisp.c: Change doc-string comments to `new style'
13127 [w/`doc:' keyword].
2e1280f8 13128
b9d9a9b9
GM
131292001-10-31 Gerd Moellmann <gerd@gnu.org>
13130
13131 * fns.c (require_unwind): Return Lisp_Object.
13132
f00691a3 131332001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
48400103 13134
fa1361cb
PJ
13135 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
13136 (last-input-char): Revert doc-string to be the same as the
13137 doc-string of `last-input-event'.
13138
6c465a15 13139 * xdisp.c: Fix typos in comments.
48400103 13140
eafa3196
GM
131412001-10-31 Gerd Moellmann <gerd@gnu.org>
13142
13143 * window.c (grow_mini_window): Handle case that the root
13144 window is already smaller than the nominal mininum height.
13145
747d3f2a
SM
131462001-10-30 Stefan Monnier <monnier@cs.yale.edu>
13147
bf9bb76f
SM
13148 * emacs.c (main): Don't call keys_of_macros any more.
13149
13150 * lisp.h (keys_of_macros): Remove.
13151
13152 * macros.c (keys_of_macros): Remove.
13153
747d3f2a
SM
13154 * xfaces.c (Fface_attribute_relative_p): Declare args.
13155
5e905a57
JR
131562001-10-30 Jason Rumney <jasonr@gnu.org>
13157
13158 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
13159 (enum_font_cb2): Ignore fonts with vertical orientation.
13160
3a426197
RS
131612001-10-30 Richard M. Stallman <rms@gnu.org>
13162
13163 * keyboard.c (Finput_pending_p): Doc fix.
13164
a742d646
GM
131652001-10-30 Gerd Moellmann <gerd@gnu.org>
13166
259cf6bc
GM
13167 * xterm.c (x_after_update_window_line): Don't run the code
13168 clearing in borders for rows whose visible height is 0.
13169
3f99f948
GM
13170 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
13171 resized_p flag is set. If not set, use the much less flickering
13172 method previously used.
13173
13174 * dispnew.c (change_frame_size_1): Set frame's resized_p.
13175
13176 * frame.h (struct frame) <resized_p>: New member.
13177
b4a3be43
GM
13178 * lread.c (to_multibyte): Ensure read_buffer is at least twice
13179 as large as the number of bytes to convert.
747d3f2a 13180
a742d646
GM
13181 * lread.c (to_multibyte): New function.
13182 (read1): Use it.
13183
cacbb9e9
EZ
131842001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
13185
13186 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
13187
99cb6b2f
GM
131882001-10-30 Gerd Moellmann <gerd@gnu.org>
13189
327f42ee 13190 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
13191 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
13192 if the row's fill_line_p is set and drawing the last glyph with
13193 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 13194
99cb6b2f
GM
13195 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
13196
8e8223e2
SM
131972001-10-29 Stefan Monnier <monnier@cs.yale.edu>
13198
13199 * xmenu.c: Include coding.h and charset.h.
13200 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
13201 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
13202 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
13203 Explicitly set wv->help. Use `TRUE' rather than `True'.
13204 (menu_help_callback): Use empty_string.
13205
13206 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
13207 (Fx_popup_dialog): Explicitly init f.
13208 (w32_menu_display_help): Use empty_string.
13209
4d083a8f
RS
132102001-10-29 Richard M. Stallman <rms@gnu.org>
13211
b2304472
RS
13212 * fns.c (Frequire): Detect recursive try to require the same
13213 feature 3 or more levels deep, and get error.
13214 (require_unwind): New subroutine.
13215 (require_nesting_list): New variable.
13216 (syms_of_fns): Init and staticpro it.
13217
4d083a8f
RS
13218 * print.c (print_object): Clarify indication of insertion type.
13219
2fe41216
EZ
132202001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
13221
90480000
EZ
13222 * coding.c (syms_of_coding): Document that locale-coding-system is
13223 used for decoding input on X.
13224
2fe41216
EZ
13225 * window.c (Fscroll_left, Fscroll_right): Doc fix.
13226
f00691a3 132272001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
74e79967
PJ
13228
13229 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
13230 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
13231
60ebcfe8
GM
132322001-10-29 Gerd Moellmann <gerd@gnu.org>
13233
9a7bdceb
GM
13234 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
13235 use NO_CURSOR if cursor_in_non_selected_windows is false.
13236
3f08fcd2
GM
13237 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
13238 the slant attribute if FRAME is t.
13239
0ccfdad2
GM
13240 * xfns.c (x_set_internal_border_width): Set frame garbaged
13241 when X window doesn't exist yet.
13242
ef253080
GM
13243 * xterm.c (x_after_update_window_line): Clear internal border
13244 in different circumstances.
b116830b 13245
60ebcfe8
GM
13246 * xterm.c (XTread_socket) <KeyPress>: Don't use
13247 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
13248 <handa@etl.go.jp>.
13249
73d25f9c
EZ
132502001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
13251
13252 * m/ibms390.h: New file. From Adam Thornton
13253 <athornton@sinenomine.net>.
13254
cac1daf0
GM
132552001-10-28 Gerd Moellmann <gerd@gnu.org>
13256
053b3256 13257 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
b116830b 13258
cac1daf0
GM
13259 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
13260 a loop counter.
13261
f00691a3 132622001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13b1a09c 13263
186486eb
PJ
13264 * emacs.c: Use argv[0] instead of emacs when -t was specified.
13265
4707d2d0
PJ
13266 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
13267 keyword].
13268 Fix typos in comments.
b116830b 13269
d883731c
PJ
13270 * emacs.c (bug_reporting_address): New function.
13271 Use it when displaying usage message.
13272
04012254
PJ
13273 * minibuf.c (read_minibuf): Remove unused external declaration of
13274 variable `Qread_only'.
13275
13b1a09c
PJ
13276 * keymap.c (access_keymap): Remove unused variable `charset'.
13277
5bbf4378
MB
132782001-10-28 Miles Bader <miles@gnu.org>
13279
13280 * xfaces.c (merge_face_heights): Handle TO being relative as well.
13281 Remove #ifdef'd-out code.
13282 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
13283 (syms_of_xfaces): Initialize them.
13284
1ce1e4ee
JR
132852001-10-27 Jason Rumney <jasonr@gnu.org>
13286
13287 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
13288 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
13289 position using the system caret.
13290
13291 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
13292 (w32_system_caret_height, w32_system_caret_x)
13293 (w32_system_caret_y): New variables for tracking system caret.
13294 (w32_initialize): Initialize them.
c2d53558 13295 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 13296
c2d53558
SM
13297 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
13298 New messages types.
1ce1e4ee
JR
13299
13300 * w32term.c (note_mouse_highlight): Clear old help_echo.
13301
f00691a3 133022001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e30ce42 13303
bb4600a4
PJ
13304 * xterm.c: Fix typo in a comment.
13305
7db35a48
PJ
13306 * emacs.c: Fix typos in comments.
13307 Remove unnecessary spaces.
13308 Change doc-string comments to `new style' [w/`doc:' keyword].
13309 (USAGE2): Fix typos in usage string.
13310
a7248e4f
PJ
13311 * xterm.c: Fix typo in a comment.
13312
4e30ce42
PJ
13313 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
13314 emacs.c.
13315
62725a92
GM
133162001-10-27 Gerd Moellmann <gerd@gnu.org>
13317
798dbe1f 13318 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 13319 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
13320 farther backward when target_y was not reached.
13321
62725a92
GM
13322 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
13323 Display errno only if non-zero.
13324 (sound_warning): New function.
13325 (vox_configure): Don't treat failing to set sample rate as error.
13326 (various places): Improve error messages.
13327
d4e34d24
EZ
133282001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
13329
944e6f60
EZ
13330 * fileio.c (Faccess_file): Run the argument filename through
13331 Fexpand_file_name, before using it.
13332
d4e34d24
EZ
13333 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
13334 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
13335
38d2af0c
GM
133362001-10-26 Gerd Moellmann <gerd@gnu.org>
13337
da80a8d5
GM
13338 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
13339
38d2af0c
GM
13340 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
13341 Fix clearing in the case of scroll bars on the right.
c2d53558 13342
45de4a6f 133432001-10-26 Juanma Barranquero <lektu@terra.es>
56f508dd
EZ
13344
13345 * w32gui.h (XImage): Add a dummy typedef.
13346
fbd5ceb2
GM
133472001-10-26 Gerd Moellmann <gerd@gnu.org>
13348
c2d53558 13349 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 13350
b23236fb
EZ
133512001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
13352
13353 * frame.c (Fframe_parameter): Fix last change.
13354
5d991fc4
EZ
13355 * fileio.c: Revert last change (which removed old commented-out
13356 version of expand-file-name). Add a comment that explains why
13357 this old version should not be removed.
13358
879eadc3
GM
133592001-10-25 Gerd Moellmann <gerd@gnu.org>
13360
75700ff2
GM
13361 * frame.c (Fframe_parameter): Fix a bug whereby some
13362 ``artificial'' frame parameters, like `minibuffer' were not
13363 obtained by calling Fframe_parameters.
13364
dfe92a6a
GM
13365 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
13366 cursor differently.
13367
879eadc3
GM
13368 * xdisp.c (move_it_vertically_backward): Compute line height
13369 differently. Add heuristic to try to be more compatible to 20.x.
13370
e1010ebe
SM
133712001-10-25 Stefan Monnier <monnier@cs.yale.edu>
13372
d73a471b
SM
13373 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
13374
d6da5a06
GM
13375 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
13376 boolean.
e1010ebe 13377
f66bd220
MB
133782001-10-25 Miles Bader <miles@gnu.org>
13379
13380 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
13381 BG is a pointer to a structure, not a structure.
13382 (gif_format, png_format): Add missing commas.
13383
d436d538
RS
133842001-10-24 Richard M. Stallman <rms@gnu.org>
13385
13386 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 13387 (syms_of_xfaces): Defsubr it.
d436d538 13388
f00691a3 133892001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
075c507b
PJ
13390
13391 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
13392 variable `area'.
13393
f00691a3 133942001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d492b584 13395
c2d53558 13396 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 13397
e2a57b34
MB
133982001-10-25 Miles Bader <miles@gnu.org>
13399
13400 * dispextern.h (struct image): Add `background',
13401 `background_valid', and `background_transparent' fields.
13402 (image_background, image_background_transparent): New declarations.
13403 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
13404 * xfns.c (image_background, image_background_transparent)
13405 (four_corners_best): New functions.
c2d53558 13406 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
13407 (gs_format): Add `:background' entry.
13408 (lookup_image): Set IMG's background color if specified.
13409 (pbm_load, xbm_load_image, png_load): Set IMG's background field
13410 when appropriate.
13411 (x_clear_image_1): Reset `background_valid' and
13412 `background_transparent_valid' fields.
13413 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
13414 calculating it here. Set IMG's background_transparent field.
13415 (enum xpm_keyword_index): Add XPM_BACKGROUND.
13416 (enum png_keyword_index): Add PNG_BACKGROUND.
13417 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
13418 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
13419 (enum gif_keyword_index): Add GIF_BACKGROUND.
13420 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 13421 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
13422 Pre-calculate image background color where necessary.
13423 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
13424 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
13425 color to use for image glyph reliefs.
13426
b547b6e8
GM
134272001-10-24 Gerd Moellmann <gerd@gnu.org>
13428
d9e3b8c6
GM
13429 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
13430 in full-width rows.
c2d53558 13431
b547b6e8
GM
13432 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
13433 Fix clearing of area not covered by scroll bar.
13434
f00691a3 134352001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2beb36f9
PJ
13436
13437 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
13438 and `real_start'.
c2d53558 13439 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
13440 (glyph_rect): Remove unused variable `area'.
13441
76cb5e06
GM
134422001-10-24 Gerd Moellmann <gerd@gnu.org>
13443
bdbdebff 13444 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
13445
13446 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
13447 (row_containing_pos): Take additional argument DY.
13448 Treat rows ending in middle of char differently.
62e33982
GM
13449 (display_line): Handle tabs on window systems differently.
13450
13451 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
13452 with additional argument.
13453
13454 * dispextern.h (row_containing_pos): Adjust prototype.
13455
76cb5e06
GM
13456 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
13457 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
13458 (try_window_id, try_window_reusing_current_matrix)
13459 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
6c465a15 13460 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
76cb5e06 13461
f00691a3 134622001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
996fee11 13463
c9e60620
PJ
13464 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
13465 gnuemacs).
13466 (HAVE_BOXES): Fix typo in comment.
13467 (push_menu_pane): Fix typo in comment.
13468
3b552d56
PJ
13469 * xdisp.c: (display_prop_string_p): Remove unused local declaration
13470 of `Qwhen'.
13471 (single_display_prop_string_p): Remove unused local declarations
13472 of `Qwhen' and `Qmargin'.
13473 (string_buffer_position): Remove unused variable `around'.
13474 (store_frame_title): Remove unused variable `width'.
13475
15c565ac
PJ
13476 * window.c: Don't define max.
13477 (coordinates_in_window): Remove unused variable `uy'.
13478
a8818eb9
PJ
13479 * widget.c: Don't define max.
13480
996fee11
PJ
13481 * process.c: Don't define max.
13482 (create_process): Remove unused variable `buffer'.
13483
496e1a5b
GM
134842001-10-23 Gerd Moellmann <gerd@gnu.org>
13485
c2d53558 13486 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 13487
5905ae8b
EZ
134882001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
13489
13490 * xfaces.c (Finternal_set_lisp_face_attribute)
13491 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
13492 frame is on a windowed display.
13493
24db49fb
GM
134942001-10-23 Gerd Moellmann <gerd@gnu.org>
13495
c2d53558
SM
13496 * dispnew.c (sync_window_with_frame_matrix_rows):
13497 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
13498 of marginal areas.
13499
c2d53558 13500 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 13501
f0487f05
EZ
135022001-10-23 Andreas Schwab <schwab@suse.de>
13503
13504 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
13505 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
13506
f0a48a01
GM
135072001-10-23 Gerd Moellmann <gerd@gnu.org>
13508
c2d53558 13509 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
13510 REAL_END. Notice if cursor gets overwritten.
13511 (notice_overwritten_cursor): Take X positions as parameters.
13512 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
13513 around call to x_draw_glyphs.
13514
f00691a3 135152001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a50a10a0 13516
fc11dff0
PJ
13517 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
13518 instead of C) and usage.
a50a10a0 13519
fc11dff0
PJ
13520 * editfns.c (char-to-string): Fix argument names (use CHAR instead
13521 of C) and usage.
a50a10a0
PJ
13522
13523 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
13524 `left', `max_width' and `max_height'.
13525
8738febd
GM
135262001-10-23 Gerd Moellmann <gerd@gnu.org>
13527
13528 * xdisp.c (display_line): For a tab continued to the next line,
13529 set row's ends_in_middle_of_char_p.
13530
653c329b
GM
135312001-10-22 Gerd Moellmann <gerd@gnu.org>
13532
13533 * xdisp.c (display_line): Fix computation of continuation lines
13534 width for TABs.
13535
f00691a3 135362001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f958c5ac 13537
7ba51063
PJ
13538 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
13539 `Qlaplace'.
13540
f958c5ac
PJ
13541 * fileio.c: Remove unused code.
13542
eb360291
MB
135432001-10-22 Miles Bader <miles@gnu.org>
13544
13545 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
13546 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
13547 Remove `DOC_STRINGS_IN_COMMENTS' cases.
13548
98515cf0
JR
135492001-10-21 Jason Rumney <jasonr@gnu.org>
13550
13551 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
13552
93026d88
EZ
135532001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
13554
13555 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
13556 (Finsert_string): Avoid the multi-line string literals warning.
13557
c9a95b79
MB
135582001-10-22 Miles Bader <miles@gnu.org>
13559
13560 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
13561 (Fdocumentation): Don't use it.
13562 (syms_of_doc): Don't initialize it.
13563
13564 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
13565 * print.c (Fwith_output_to_temp_buffer): Likewise.
13566 * window.c (Fsave_window_excursion): Likewise.
c2d53558 13567 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 13568 (Fsave_restriction): Likewise.
c2d53558
SM
13569 * eval.c (Frun_hooks, Frun_hook_with_args)
13570 (Frun_hook_with_args_until_failure)
13571 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
13572 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
13573 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
13574 (Funwind_protect, Fcondition_case): Likewise.
13575 * coding.c (Ffind_operation_coding_system): Likewise.
13576 * keyboard.c (Ftrack_mouse): Likewise.
13577
a3b10252
MB
135782001-10-21 Miles Bader <miles@gnu.org>
13579
c2d53558 13580 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
13581 (Fmake_hash_table): Add usage: string to doc string.
13582 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 13583 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
13584 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
13585 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
13586 (Fml_prefix_argument_loop): Likewise.
13587
f00691a3 135882001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c6f73eec 13589
c2d53558 13590 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 13591
c6f73eec
PJ
13592 * sysdep.c (init_sys_modes): Change doc-string comments to `new
13593 style' [w/`doc:' keyword].
13594
13595 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
13596 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
13597 comments to `new style' [w/`doc:' keyword].
13598
3cf3436e
JR
135992001-10-21 Jason Rumney <jasonr@gnu.org>
13600
13601 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
13602
c169b8f1
JR
13603 * w32term.c (remember_mouse_glyph): New function.
13604 (w32_mouse_position): Use it.
13605 (note_mouse_movement): If the mouse moved off the glyph, remember
13606 its new position.
c2d53558 13607
4fdd691b
JR
13608 * w32term.h (struct w32_output): Correct spelling of x_compatible.
13609 (w32_display_info): Add mouse_face_overlay.
13610
c169b8f1
JR
13611 * w32term.c (notice_overwritten_cursor): Renamed from
13612 note_overwritten_text_cursor. Rewritten to take glyph widths into
13613 account.
13614 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
13615 (fast_find_string_pos): New function.
13616 (fast_find_position): Return the correct vpos. Add parameter
13617 STOP. In the final row, stop before glyphs having STOP as object.
13618 Don't consider glyphs that are not from a buffer.
13619 (fast_find_position) [0]: Add a presumably more correct version
13620 for after 21.1.
13621 (expose_window_tree, expose_frame): Don't compute intersections here.
13622 (expose_window): Do it here instead.
13623 (expose_window_tree, expose_window, expose_line): Return 1 when
13624 overwriting mouse-face.
13625 (expose_window): If W is the window currently being updated, mark
13626 the frame garbaged.
13627 (expose_frame): If mouse-face was overwritten, redo it.
13628 (x_use_underline_position_properties): New variable.
13629 (syms_of_xterm): DEFVAR_BOOL it.
13630 (x_draw_glyph_string): Add comment to use it in future.
13631 (x_draw_glyph_string): Restore clipping after drawing box.
13632 Fix a computation of the underline position.
13633 (w32_get_glyph_string_clip_rect): Minor cleanup.
13634 (x_fill_stretch_glyph_string): Remove an assertion.
13635 (x_produce_glyphs): Don't convert multibyte characters
13636 to unibyte characters in unibyte buffers.
13637 (cursor_in_mouse_face_p): New function.
13638 (x_draw_stretch_glyph_string): Use it to choose a different GC
13639 when drawing a cursor within highlighted text. Don't draw
13640 background again if it has already been drawn.
13641 (x_draw_glyph_string_box): Don't draw a full-width
13642 box just because the glyph row's full_width_p flag is set.
13643 (x_draw_glyphs): Fix computation of rightmost x for
13644 full-width rows.
13645 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
13646 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
13647 change bottom shadow accordingly. Some cleanup.
13648 (x_update_window_end): Handle overwritten mouse face
13649 also for tool bar windows.
13650 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
13651 DRAW is DRAW_IMAGE_RAISED.
13652 (clear_mouse_face): Return 1 if text with mouse face was
2c568af5
SM
13653 actually redrawn. Make the function static.
13654 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
c169b8f1
JR
13655 optimize away highlighting if we pass over that same overlay again.
13656 (note_mouse_highlight): Call mouse_face_overlay_overlaps
13657 to detect a case where we have to highlight a different region
13658 despite not having left the currently highlighted region.
13659 Set mouse_face_overlay in the x_display_info. Avoid changing the
13660 mouse pointer shape when show_mouse_face has already done it, or
13661 there is no need. Handle mouse-face and help-echo in strings.
13662 (glyph_rect): New function.
13663 (w32_mouse_position): Use it to raise the threshold for mouse
13664 movement event generation.
13665 (w32_initialize_display_info): Initialize the x_display_info's
13666 mouse_face_overlay.
13667 (w32_set_vertical_scroll_bar): Don't clear a zero height
13668 or width area.
13669 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
13670 a widget to zero height.
13671
3cf3436e 13672 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 13673 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
13674 equivalents in menu_items.
13675 (w32_menu_show): Don't overwrite an item's name with its key
13676 description in case the description is a multibyte string.
13677 (single_submenu): Some cleanup.
13678
13679 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
13680 (postprocess_image): New function.
13681 (lookup_image): Call it for all image types except PostScript.
13682 (x_kill_gs_process): Call postprocess_image.
13683 (tiff_error_handler, tiff_warning_handler): New functions.
13684 (tiff_load): Install them as handlers.
13685 (x_kill_gs_process): Recognize if someone has cleared the image
13686 cache under us.
13687 (valid_image_p): Protect better against invalid image
13688 specifications. Previous code could signal an error.
13689 (Fx_hide_tip, Fshow_tip): Doc fix.
13690 (Fv_max_tooltip_size): New variable.
13691 (syns_of_xfns): DEFVAR_LISP it.
13692 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
13693 window buffer to *tip* right after creating the frame. Set frame's
13694 window_width. Use a maximum tooltip size specified by
13695 Vx_max_tooltip_size, if that has valid contents.
13696 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
13697 Make sure the tooltip is completely visible.
13698 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
13699 (Fx_create_frame): Adjust the frame's height for presence
13700 of the tool bar before calling x_figure_window_size.
13701 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
13702 when the window gets smaller.
13703 (x_set_foreground_color): Set frame's cursor_pixel.
13704 (x_set_foreground_color, x_set_background_color): Cleaned up.
13705 (x_set_font): Handle case of x_new_fontset returning the same name
13706 as before, although there was a change in fontsets.
13707
386ca361
MB
137082001-10-21 Miles Bader <miles@gnu.org>
13709
c2d53558 13710 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
13711 (Flogxor): Add usage: string to doc string.
13712 * charset.c (Fstring): Likewise.
13713 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
13714 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
13715
f00691a3 137162001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14ff1ee0 13717
03be2694
PJ
13718 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
13719
13720 * alloc.c: Reindent DEFUNs with doc: keywords.
13721
13722 * abbrev.c (Finsert_abbrev_table_description): Reindent.
13723
14ff1ee0
PJ
13724 * frame.c: Change doc-string comments to `new style' [w/`doc:'
13725 keyword].
13726
2f147815 13727See ChangeLog.9 for earlier changes.
6922b018
KH
13728
13729;; Local Variables:
49b3bd82 13730;; coding: iso-2022-7bit
6922b018 13731;; End:
2a34a036 13732
2f147815 13733 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
2a34a036
GM
13734 Copying and distribution of this file, with or without modification,
13735 are permitted provided the copyright notice and this notice are preserved.
ab5796a9
MB
13736
13737;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4